@piserve-tech/octa-form-submission-webcomponent 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/bundle.js ADDED
@@ -0,0 +1,4 @@
1
+ (()=>{"use strict";var e,m={},_={};function r(e){var i=_[e];if(void 0!==i)return i.exports;var t=_[e]={exports:{}};return m[e].call(t.exports,t,t.exports,r),t.exports}r.m=m,e=[],r.O=(i,t,a,f)=>{if(!t){var n=1/0;for(o=0;o<e.length;o++){for(var[t,a,f]=e[o],c=!0,u=0;u<t.length;u++)(!1&f||n>=f)&&Object.keys(r.O).every(b=>r.O[b](t[u]))?t.splice(u--,1):(c=!1,f<n&&(n=f));if(c){e.splice(o--,1);var d=a();void 0!==d&&(i=d)}}return i}f=f||0;for(var o=e.length;o>0&&e[o-1][2]>f;o--)e[o]=e[o-1];e[o]=[t,a,f]},(()=>{var i,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__;r.t=function(t,a){if(1&a&&(t=this(t)),8&a||"object"==typeof t&&t&&(4&a&&t.__esModule||16&a&&"function"==typeof t.then))return t;var f=Object.create(null);r.r(f);var o={};i=i||[null,e({}),e([]),e(e)];for(var n=2&a&&t;"object"==typeof n&&!~i.indexOf(n);n=e(n))Object.getOwnPropertyNames(n).forEach(c=>o[c]=()=>t[c]);return o.default=()=>t,r.d(f,o),f}})(),r.d=(e,i)=>{for(var t in i)r.o(i,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:i[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((i,t)=>(r.f[t](e,i),i),[])),r.u=e=>"quill.426e6e697a90fb6d.js",r.miniCssF=e=>{},r.o=(e,i)=>Object.prototype.hasOwnProperty.call(e,i),(()=>{var e={},i="octa-form-submission-webcomponent:";r.l=(t,a,f,o)=>{if(e[t])e[t].push(a);else{var n,c;if(void 0!==f)for(var u=document.getElementsByTagName("script"),d=0;d<u.length;d++){var s=u[d];if(s.getAttribute("src")==t||s.getAttribute("data-webpack")==i+f){n=s;break}}n||(c=!0,(n=document.createElement("script")).type="module",n.charset="utf-8",n.timeout=120,r.nc&&n.setAttribute("nonce",r.nc),n.setAttribute("data-webpack",i+f),n.src=r.tu(t)),e[t]=[a];var l=(v,b)=>{n.onerror=n.onload=null,clearTimeout(p);var g=e[t];if(delete e[t],n.parentNode&&n.parentNode.removeChild(n),g&&g.forEach(h=>h(b)),v)return v(b)},p=setTimeout(l.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=l.bind(null,n.onerror),n.onload=l.bind(null,n.onload),c&&document.head.appendChild(n)}}})(),r.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:i=>i},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={121:0};r.f.j=(a,f)=>{var o=r.o(e,a)?e[a]:void 0;if(0!==o)if(o)f.push(o[2]);else if(121!=a){var n=new Promise((s,l)=>o=e[a]=[s,l]);f.push(o[2]=n);var c=r.p+r.u(a),u=new Error;r.l(c,s=>{if(r.o(e,a)&&(0!==(o=e[a])&&(e[a]=void 0),o)){var l=s&&("load"===s.type?"missing":s.type),p=s&&s.target&&s.target.src;u.message="Loading chunk "+a+" failed.\n("+l+": "+p+")",u.name="ChunkLoadError",u.type=l,u.request=p,o[1](u)}},"chunk-"+a,a)}else e[a]=0},r.O.j=a=>0===e[a];var i=(a,f)=>{var u,d,[o,n,c]=f,s=0;if(o.some(p=>0!==e[p])){for(u in n)r.o(n,u)&&(r.m[u]=n[u]);if(c)var l=c(r)}for(a&&a(f);s<o.length;s++)r.o(e,d=o[s])&&e[d]&&e[d][0](),e[d]=0;return r.O(l)},t=self.webpackChunkocta_form_submission_webcomponent=self.webpackChunkocta_form_submission_webcomponent||[];t.forEach(i.bind(null,0)),t.push=i.bind(null,t.push.bind(t))})()})();
2
+ "use strict";(self.webpackChunkocta_form_submission_webcomponent=self.webpackChunkocta_form_submission_webcomponent||[]).push([[461],{6935:()=>{!function(e){const n=e.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=e.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===e[a("forceDuplicateZoneCheck")];if(e.Zone){if(y||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}let d=(()=>{class L{static{this.__symbol__=a}static assertZonePatched(){if(e.Promise!==oe.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 t=L.current;for(;t.parent;)t=t.parent;return t}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(t,r,k=!1){if(oe.hasOwnProperty(t)){if(!k&&y)throw Error("Already loaded patch: "+t)}else if(!e["__Zone_disable_"+t]){const C="Zone:"+t;i(C),oe[t]=r(e,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(t,r){this._parent=t,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(t){const r=this.getZoneWith(t);if(r)return r._properties[t]}getZoneWith(t){let r=this;for(;r;){if(r._properties.hasOwnProperty(t))return r;r=r._parent}return null}fork(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)}wrap(t,r){if("function"!=typeof t)throw new Error("Expecting function got: "+t);const k=this._zoneDelegate.intercept(this,t,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(t,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,t,r,k,C)}finally{U=U.parent}}runGuarded(t,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,t,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(t,r,k){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===x&&(t.type===Q||t.type===w))return;const C=t.state!=E;C&&t._transitionTo(E,A),t.runCount++;const $=re;re=t,U={parent:U,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,t,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{t.state!==x&&t.state!==h&&(t.type==Q||t.data&&t.data.isPeriodic?C&&t._transitionTo(A,E):(t.runCount=0,this._updateTaskCount(t,-1),C&&t._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(t){if(t.zone&&t.zone!==this){let k=this;for(;k;){if(k===t.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${t.zone.name}`);k=k.parent}}t._transitionTo(X,x);const r=[];t._zoneDelegates=r,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(k){throw t._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return t._zoneDelegates===r&&this._updateTaskCount(t,1),t.state==X&&t._transitionTo(A,X),t}scheduleMicroTask(t,r,k,C){return this.scheduleTask(new m(I,t,r,k,C,void 0))}scheduleMacroTask(t,r,k,C,$){return this.scheduleTask(new m(w,t,r,k,C,$))}scheduleEventTask(t,r,k,C,$){return this.scheduleTask(new m(Q,t,r,k,C,$))}cancelTask(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||J).name+"; Execution: "+this.name+")");if(t.state===A||t.state===E){t._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,t)}catch(r){throw t._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(t,-1),t._transitionTo(x,G),t.runCount=0,t}}_updateTaskCount(t,r){const k=t._zoneDelegates;-1==r&&(t._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(t.type,r)}}return L})();const b={name:"",onHasTask:(L,T,t,r)=>L.hasTask(t,r),onScheduleTask:(L,T,t,r)=>L.scheduleTask(t,r),onInvokeTask:(L,T,t,r,k,C)=>L.invokeTask(t,r,k,C),onCancelTask:(L,T,t,r)=>L.cancelTask(t,r)};class v{constructor(T,t,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=t,this._forkZS=r&&(r&&r.onFork?r:t._forkZS),this._forkDlgt=r&&(r.onFork?t:t._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:t._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:t._interceptZS),this._interceptDlgt=r&&(r.onIntercept?t:t._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:t._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:t._invokeZS),this._invokeDlgt=r&&(r.onInvoke?t:t._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:t._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:t._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?t:t._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:t._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:t._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?t:t._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:t._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:t._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?t:t._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:t._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:t._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?t:t._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:t._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||t&&t._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=t,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=t,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=t,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=t,this._cancelTaskCurrZone=this.zone))}fork(T,t){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,t):new d(T,t)}intercept(T,t,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,t,r):t}invoke(T,t,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,t,r,k,C):t.apply(r,k)}handleError(T,t){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,t)}scheduleTask(T,t){let r=t;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,t),r||(r=t);else if(t.scheduleFn)t.scheduleFn(t);else{if(t.type!=I)throw new Error("Task is missing scheduleFn.");R(t)}return r}invokeTask(T,t,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,t,r,k):t.callback.apply(r,k)}cancelTask(T,t){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,t);else{if(!t.cancelFn)throw Error("Task is not cancelable");r=t.cancelFn(t)}return r}hasTask(T,t){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,t)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,t){const r=this._taskCounts,k=r[T],C=r[T]=k+t;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class m{constructor(T,t,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=t,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(e,l,this,arguments)}}static invokeTask(T,t,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,t,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,t,r){if(this._state!==t&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${t}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==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 M=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||e[O]&&(K=e[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else e[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;T<L.length;T++){const t=L[T];try{t.zone.runTask(t,null,null)}catch(r){z.onUnhandledError(r)}}}z.microtaskDrainDone(),H=!1}}const J={name:"NO ZONE"},x="notScheduled",X="scheduling",A="scheduled",E="running",G="canceling",h="unknown",I="microTask",w="macroTask",Q="eventTask",oe={},z={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("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:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),e.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,me=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,Ze="addEventListener",De="removeEventListener",Oe=Zone.__symbol__(Ze),Ne=Zone.__symbol__(De),ie="true",ce="false",pe=Zone.__symbol__("");function Ie(e,n){return Zone.current.wrap(e,n)}function Me(e,n,i,o,c){return Zone.current.scheduleMacroTask(e,n,i,o,c)}const j=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Le(e,n){for(let i=e.length-1;i>=0;i--)"function"==typeof e[i]&&(e[i]=Ie(e[i],n+"_"+i));return e}function Ve(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),Pe={},Ue=function(e){if(!(e=e||Y.event))return;let n=Pe[e.type];n||(n=Pe[e.type]=j("ON_PROPERTY"+e.type));const i=this||e.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===e.type?(c=o&&o.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===c&&e.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&e.preventDefault()),c};function We(e,n,i){let o=ue(e,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(e.hasOwnProperty(c)&&e[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=Pe[d];b||(b=Pe[d]=j("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&e===Y&&(m=Y),m&&("function"==typeof m[b]&&m.removeEventListener(d,Ue),y&&y.call(m,null),m[b]=v,"function"==typeof v&&m.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&e===Y&&(v=Y),!v)return null;const m=v[b];if(m)return m;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},me(e,n,o),e[c]=!0}function qe(e,n,i){if(n)for(let o=0;o<n.length;o++)We(e,"on"+n[o],i);else{const o=[];for(const c in e)"on"==c.slice(0,2)&&o.push(c);for(let c=0;c<o.length;c++)We(e,o[c],i)}}const ne=j("originalInstance");function ge(e){const n=Y[e];if(!n)return;Y[j(e)]=n,Y[e]=function(){const c=Le(arguments,e);switch(c.length){case 0:this[ne]=new n;break;case 1:this[ne]=new n(c[0]);break;case 2:this[ne]=new n(c[0],c[1]);break;case 3:this[ne]=new n(c[0],c[1],c[2]);break;case 4:this[ne]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},le(Y[e],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===e&&"responseBlob"===o||function(c){"function"==typeof i[c]?Y[e].prototype[c]=function(){return this[ne][c].apply(this[ne],arguments)}:me(Y[e].prototype,c,{set:function(a){"function"==typeof a?(this[ne][c]=Ie(a,e+"."+c),le(this[ne][c],a)):this[ne][c]=a},get:function(){return this[ne][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&(Y[e][o]=n[o])}function ae(e,n,i){let o=e;for(;o&&!o.hasOwnProperty(n);)o=ve(o);!o&&e[n]&&(o=e);const c=j(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Ve(o&&ue(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},le(o[n],a)}return a}function lt(e,n,i){let o=null;function c(a){const y=a.data;return y.args[y.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(y.target,y.args),a}o=ae(e,n,a=>function(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Me(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function le(e,n){e[j("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const e=_e.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(e,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!0===e[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const O=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[O];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return t.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(P){return f(()=>{z(l,!1,P)})(),l}if(u!==G&&s instanceof t&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(P){f(()=>{z(l,!1,P)})()}else{l[q]=u;const P=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const p=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];p&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p<P.length;)ee(l,P[p++],P[p++],P[p++],P[p++]);if(0==P.length&&u==G){l[q]=h;let p=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(S){p=S}b&&(p.throwOriginal=!0),p.rejection=s,p.promise=l,p.zone=n.current,p.task=n.currentTask,d.push(p),i.scheduleMicroTask()}}}return l}const U=y("rejectionHandledHandler");function re(l){if(l[q]===h){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch{}l[q]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ee(l,u,s,f,g){re(l);const P=l[q],p=P?"function"==typeof f?f:H:"function"==typeof g?g:K;u.scheduleMicroTask(X,()=>{try{const S=l[R],Z=!!s&&_===s[_];Z&&(s[J]=S,s[x]=P);const D=u.run(p,void 0,Z&&p!==K&&p!==H?[]:[S]);z(s,!0,D)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=e.AggregateError;class t{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let p of u)f++,s.push(t.resolve(p))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const P=[];return new t((p,S)=>{for(let Z=0;Z<s.length;Z++)s[Z].then(D=>{g||(g=!0,p(D))},D=>{P.push(D),f--,0===f&&(g=!0,S(new T(P,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,Z)=>{s=S,f=Z});function P(S){s(S)}function p(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.then(P,p);return g}static all(u){return t.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof t?this:t).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,P=new this((D,V)=>{f=D,g=V}),p=2,S=0;const Z=[];for(let D of u){B(D)||(D=this.resolve(D));const V=S;try{D.then(F=>{Z[V]=s?s.thenCallback(F):F,p--,0===p&&f(Z)},F=>{s?(Z[V]=s.errorCallback(F),p--,0===p&&f(Z)):g(F)})}catch(F){g(F)}p++,S++}return p-=2,0===p&&f(Z),P}constructor(u){const s=this;if(!(s instanceof t))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=w();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return t}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||t);const g=new f(L),P=n.current;return this[q]==A?this[R].push(P,g,u,s):ee(this,P,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=t);const f=new s(L);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}t.resolve=t.resolve,t.reject=t.reject,t.race=t.race,t.all=t.all;const r=e[v]=e.Promise;e.Promise=t;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,P){return new t((S,Z)=>{f.call(this,S,Z)}).then(g,P)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(e,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof t)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,t}),Zone.__load_patch("toString",e=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=e[o];if(m)return n.call(m)}if(this===Error){const m=e[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const e=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+pe+"(\\w+)(true|false)$"),$e=j("propagationStopped");function Je(e,n){const i=(n?n(e):e)+ce,o=(n?n(e):e)+ie,c=pe+i,a=pe+o;te[e]={},te[e][ce]=c,te[e][ie]=a}function dt(e,n,i,o){const c=o&&o.add||Ze,a=o&&o.rm||De,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(c),v="."+c+":",m="prependListener",M="."+m+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,J){if(!(_=_||e.event))return;const x=R||_.target||e,X=x[te[_.type][J?ie:ce]];if(X){const A=[];if(1===X.length){const E=O(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G<E.length&&(!_||!0!==_[$e]);G++){const h=O(E[G],x,_);h&&A.push(h)}}if(1===A.length)throw A[0];for(let E=0;E<A.length;E++){const G=A[E];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],w=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const t=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const P=g&&s.target[g];if(P)for(let p=0;p<P.length;p++)if(P[p]===s){P.splice(p,1),s.isRemoved=!0,0===P.length&&(s.allRemoved=!0,s.target[g]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:B,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const g=typeof f;return"function"===g&&s.callback===f||"object"===g&&s.originalDelegate===f},$=Zone[j("UNPATCHED_EVENTS")],l=e[j("PASSIVE_EVENTS")],u=function(s,f,g,P,p=!1,S=!1){return function(){const Z=this||e;let D=arguments[0];_&&_.transferEventName&&(D=_.transferEventName(D));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===D)return s.apply(this,arguments);let F=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);F=!0}if(x&&!x(s,V,Z,arguments))return;const fe=Ee&&!!l&&-1!==l.indexOf(D),se=function U(s,f){return!Ee&&"object"==typeof s&&s?!!s.capture:Ee&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?{...s,passive:!0}:s:{passive:!0}:s}(arguments[2],fe);if($)for(let de=0;de<$.length;de++)if(D===$[de])return fe?s.call(Z,D,V,se):s.apply(this,arguments);const xe=!!se&&("boolean"==typeof se||se.capture),tt=!(!se||"object"!=typeof se)&&se.once,kt=Zone.current;let Ge=te[D];Ge||(Je(D,G),Ge=te[D]);const nt=Ge[xe?ie:ce];let Ce,ye=Z[nt],rt=!1;if(ye){if(rt=!0,X)for(let de=0;de<ye.length;de++)if(C(ye[de],V))return}else ye=Z[nt]=[];const ot=Z.constructor.name,st=ze[ot];st&&(Ce=st[D]),Ce||(Ce=ot+f+(G?G(D):D)),h.options=se,tt&&(h.options.once=!1),h.target=Z,h.capture=xe,h.eventName=D,h.isExisting=rt;const ke=J?ht:void 0;ke&&(ke.taskData=h);const he=kt.scheduleEventTask(Ce,V,ke,g,P);return h.target=null,ke&&(ke.taskData=null),tt&&(se.once=!0),!Ee&&"boolean"==typeof he.options||(he.options=se),he.target=Z,he.capture=xe,he.eventName=D,F&&(he.originalDelegate=V),S?ye.unshift(he):ye.push(he),p?Z:void 0}};return E[c]=u(I,v,t,r,A),z&&(E[m]=u(z,M,function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,A,!0)),E[a]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],P=!!g&&("boolean"==typeof g||g.capture),p=arguments[1];if(!p)return w.apply(this,arguments);if(x&&!x(w,p,s,arguments))return;const S=te[f];let Z;S&&(Z=S[P?ie:ce]);const D=Z&&s[Z];if(D)for(let V=0;V<D.length;V++){const F=D[V];if(C(F,p))return D.splice(V,1),F.isRemoved=!0,0===D.length&&(F.allRemoved=!0,s[Z]=null,"string"==typeof f)&&(s[pe+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),A?s:void 0}return w.apply(this,arguments)},E[y]=function(){const s=this||e;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],P=Ke(s,G?G(f):f);for(let p=0;p<P.length;p++){const S=P[p];g.push(S.originalDelegate?S.originalDelegate:S.callback)}return g},E[d]=function(){const s=this||e;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=te[f];if(g){const S=s[g[ce]],Z=s[g[ie]];if(S){const D=S.slice();for(let V=0;V<D.length;V++){const F=D[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(Z){const D=Z.slice();for(let V=0;V<D.length;V++){const F=D[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let P=0;P<g.length;P++){const S=Ye.exec(g[P]);let Z=S&&S[1];Z&&"removeListener"!==Z&&this[d].call(this,Z)}this[d].call(this,"removeListener")}if(A)return this},le(E[c],I),le(E[a],w),oe&&le(E[d],oe),Q&&le(E[y],Q),!0}let q=[];for(let R=0;R<i.length;R++)q[R]=K(i[R],o);return q}function Ke(e,n){if(!n){const a=[];for(let y in e){const d=Ye.exec(y);let b=d&&d[1];if(b&&(!n||b===n)){const v=e[y];if(v)for(let m=0;m<v.length;m++)a.push(v[m])}}return a}let i=te[n];i||(Je(n),i=te[n]);const o=e[i[ce]],c=e[i[ie]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function _t(e,n){const i=e.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(e,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(m){const M=`${i}.${o}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){const N=e.ObjectGetOwnPropertyDescriptor(O,m);N&&N.value?(N.value=e.wrapWithCurrentZone(N.value,M),e._redefineProperty(b.prototype,m,N)):O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],M))}else O[m]&&(O[m]=e.wrapWithCurrentZone(O[m],M))}catch{}}),y.call(n,d,b,v)},e.attachOriginToPatched(n[o],y)}function Qe(e,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===e);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(e,n,i,o){e&&qe(e,Qe(e,n,i),o)}function He(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(e,n,i)=>{const o=He(e);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");e[a]&&(e[c]=e[a]),e[c]&&(n[c]=n[a]=e[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=me,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Be,isNode:we,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:De})});const Re=j("zoneTask");function Te(e,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(e,m.args),v}function b(v){return a.call(e,v.data.handleId)}c=ae(e,n+=o,v=>function(m,M){if("function"==typeof M[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Re]=null))}};const B=Me(n,M[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Re]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(e,M)}),a=ae(e,i,v=>function(m,M){const O=M[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Re],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Re]=null),N.zone.cancelTask(N)):v.apply(e,M)})}Zone.__load_patch("legacy",e=>{const n=e[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("timers",e=>{const n="set",i="clear";Te(e,n,i,"Timeout"),Te(e,n,i,"Interval"),Te(e,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",e=>{Te(e,"request","cancel","AnimationFrame"),Te(e,"mozRequest","mozCancel","AnimationFrame"),Te(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(e,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)ae(e,i[o],(a,y,d)=>function(b,v){return n.current.run(a,e,v,d)})}),Zone.__load_patch("EventTarget",(e,n,i)=>{(function gt(e,n){n.patchEventPrototype(e,n)})(e,i),function pt(e,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b<i.length;b++){const v=i[b],O=y+(v+a),N=y+(v+c);o[v]={},o[v][a]=O,o[v][c]=N}const d=e.EventTarget;d&&d.prototype&&n.patchEventTarget(e,n,[d&&d.prototype])}(e,i);const o=e.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(e,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(e,n,i)=>{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(e,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(e,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(e,n,i)=>{!function Tt(e,n){if(we&&!Be||Zone[e.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const e=_e.navigator.userAgent;if(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&et(a.prototype,He(a.prototype),i)}}(i,e)}),Zone.__load_patch("customElements",(e,n,i)=>{!function mt(e,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&e.customElements&&"customElements"in e&&n.patchCallbacks(n,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(e,i)}),Zone.__load_patch("XHR",(e,n)=>{!function b(v){const m=v.XMLHttpRequest;if(!m)return;const M=m.prototype;let N=M[Oe],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Oe],B=I[Ne]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Oe],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===K){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;W<ee.length;W++)ee[W]===h&&ee.splice(W,1);!I.aborted&&h.state===K&&re.call(h)},U.push(h)}else h.invoke()}else!I.aborted&&!1===w[a]&&(w[d]=!0)};return N.call(w,H,oe),w[i]||(w[i]=h),E.apply(w,I.args),w[a]=!0,h}function R(){}function _(h){const I=h.data;return I.aborted=!0,G.apply(I.target,I.args)}const J=ae(M,"open",()=>function(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=ae(M,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const w={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===K&&Q.invoke()}}),G=ae(M,"abort",()=>function(h,I){const w=function O(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(e);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",e=>{e.navigator&&e.navigator.geolocation&&function at(e,n){const i=e.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=e[c];if(a){if(!Ve(ue(e,c)))continue;e[c]=(d=>{const b=function(){return d.apply(this,Le(arguments,i+"."+c))};return le(b,d),b})(a)}}}(e.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(e,n)=>{function i(o){return function(c){Ke(e,o).forEach(y=>{const d=e.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}e.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))}),Zone.__load_patch("queueMicrotask",(e,n,i)=>{!function yt(e,n){n.patchMethod(e,"queueMicrotask",i=>function(o,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}(e,i)})}},ue=>{ue(ue.s=6935)}]);
3
+ (self.webpackChunkocta_form_submission_webcomponent=self.webpackChunkocta_form_submission_webcomponent||[]).push([[58],{7436:function(ct){typeof self<"u"&&self,ct.exports=function(B){var O={};function p(P){if(O[P])return O[P].exports;var T=O[P]={i:P,l:!1,exports:{}};return B[P].call(T.exports,T,T.exports,p),T.l=!0,T.exports}return p.m=B,p.c=O,p.d=function(P,T,w){p.o(P,T)||Object.defineProperty(P,T,{configurable:!1,enumerable:!0,get:w})},p.n=function(P){var T=P&&P.__esModule?function(){return P.default}:function(){return P};return p.d(T,"a",T),T},p.o=function(P,T){return Object.prototype.hasOwnProperty.call(P,T)},p.p="",p(p.s=109)}([function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(17),T=p(18),w=p(19),m=p(45),y=p(46),c=p(47),o=p(48),t=p(49),e=p(12),u=p(32),l=p(33),a=p(31),r=p(1);O.default={Scope:r.Scope,create:r.create,find:r.find,query:r.query,register:r.register,Container:P.default,Format:T.default,Leaf:w.default,Embed:o.default,Scroll:m.default,Block:c.default,Inline:y.default,Text:t.default,Attributor:{Attribute:e.default,Class:u.default,Style:l.default,Store:a.default}}},function(B,O,p){"use strict";var a,P=this&&this.__extends||(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var f in i)i.hasOwnProperty(f)&&(r[f]=i[f])},function(r,i){function f(){this.constructor=r}a(r,i),r.prototype=null===i?Object.create(i):(f.prototype=i.prototype,new f)});Object.defineProperty(O,"__esModule",{value:!0});var T=function(a){function r(i){var f=this;return(f=a.call(this,i="[Parchment] "+i)||this).message=i,f.name=f.constructor.name,f}return P(r,a),r}(Error);O.ParchmentError=T;var o,w={},m={},y={},c={};function u(a,r){var i;if(void 0===r&&(r=o.ANY),"string"==typeof a)i=c[a]||w[a];else if(a instanceof Text||a.nodeType===Node.TEXT_NODE)i=c.text;else if("number"==typeof a)a&o.LEVEL&o.BLOCK?i=c.block:a&o.LEVEL&o.INLINE&&(i=c.inline);else if(a instanceof HTMLElement){var f=(a.getAttribute("class")||"").split(/\s+/);for(var n in f)if(i=m[f[n]])break;i=i||y[a.tagName]}return null==i?null:r&o.LEVEL&i.scope&&r&o.TYPE&i.scope?i:null}O.DATA_KEY="__blot",function(a){a[a.TYPE=3]="TYPE",a[a.LEVEL=12]="LEVEL",a[a.ATTRIBUTE=13]="ATTRIBUTE",a[a.BLOT=14]="BLOT",a[a.INLINE=7]="INLINE",a[a.BLOCK=11]="BLOCK",a[a.BLOCK_BLOT=10]="BLOCK_BLOT",a[a.INLINE_BLOT=6]="INLINE_BLOT",a[a.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",a[a.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",a[a.ANY=15]="ANY"}(o=O.Scope||(O.Scope={})),O.create=function t(a,r){var i=u(a);if(null==i)throw new T("Unable to create "+a+" blot");var f=i,n=a instanceof Node||a.nodeType===Node.TEXT_NODE?a:f.create(r);return new f(n,r)},O.find=function e(a,r){return void 0===r&&(r=!1),null==a?null:null!=a[O.DATA_KEY]?a[O.DATA_KEY].blot:r?e(a.parentNode,r):null},O.query=u,O.register=function l(){for(var a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];if(a.length>1)return a.map(function(n){return l(n)});var i=a[0];if("string"!=typeof i.blotName&&"string"!=typeof i.attrName)throw new T("Invalid definition");if("abstract"===i.blotName)throw new T("Cannot register abstract class");return c[i.blotName||i.attrName]=i,"string"==typeof i.keyName?w[i.keyName]=i:(null!=i.className&&(m[i.className]=i),null!=i.tagName&&(i.tagName=Array.isArray(i.tagName)?i.tagName.map(function(n){return n.toUpperCase()}):i.tagName.toUpperCase(),(Array.isArray(i.tagName)?i.tagName:[i.tagName]).forEach(function(n){(null==y[n]||null==i.className)&&(y[n]=i)}))),i}},function(B,O,p){var P=p(51),T=p(11),w=p(3),m=p(20),y=String.fromCharCode(0),c=function(o){this.ops=Array.isArray(o)?o:null!=o&&Array.isArray(o.ops)?o.ops:[]};c.prototype.insert=function(o,t){var e={};return 0===o.length?this:(e.insert=o,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(e.attributes=t),this.push(e))},c.prototype.delete=function(o){return o<=0?this:this.push({delete:o})},c.prototype.retain=function(o,t){if(o<=0)return this;var e={retain:o};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(e.attributes=t),this.push(e)},c.prototype.push=function(o){var t=this.ops.length,e=this.ops[t-1];if(o=w(!0,{},o),"object"==typeof e){if("number"==typeof o.delete&&"number"==typeof e.delete)return this.ops[t-1]={delete:e.delete+o.delete},this;if("number"==typeof e.delete&&null!=o.insert&&"object"!=typeof(e=this.ops[(t-=1)-1]))return this.ops.unshift(o),this;if(T(o.attributes,e.attributes)){if("string"==typeof o.insert&&"string"==typeof e.insert)return this.ops[t-1]={insert:e.insert+o.insert},"object"==typeof o.attributes&&(this.ops[t-1].attributes=o.attributes),this;if("number"==typeof o.retain&&"number"==typeof e.retain)return this.ops[t-1]={retain:e.retain+o.retain},"object"==typeof o.attributes&&(this.ops[t-1].attributes=o.attributes),this}}return t===this.ops.length?this.ops.push(o):this.ops.splice(t,0,o),this},c.prototype.chop=function(){var o=this.ops[this.ops.length-1];return o&&o.retain&&!o.attributes&&this.ops.pop(),this},c.prototype.filter=function(o){return this.ops.filter(o)},c.prototype.forEach=function(o){this.ops.forEach(o)},c.prototype.map=function(o){return this.ops.map(o)},c.prototype.partition=function(o){var t=[],e=[];return this.forEach(function(u){(o(u)?t:e).push(u)}),[t,e]},c.prototype.reduce=function(o,t){return this.ops.reduce(o,t)},c.prototype.changeLength=function(){return this.reduce(function(o,t){return t.insert?o+m.length(t):t.delete?o-t.delete:o},0)},c.prototype.length=function(){return this.reduce(function(o,t){return o+m.length(t)},0)},c.prototype.slice=function(o,t){o=o||0,"number"!=typeof t&&(t=1/0);for(var e=[],u=m.iterator(this.ops),l=0;l<t&&u.hasNext();){var a;l<o?a=u.next(o-l):(a=u.next(t-l),e.push(a)),l+=m.length(a)}return new c(e)},c.prototype.compose=function(o){var t=m.iterator(this.ops),e=m.iterator(o.ops),u=[],l=e.peek();if(null!=l&&"number"==typeof l.retain&&null==l.attributes){for(var a=l.retain;"insert"===t.peekType()&&t.peekLength()<=a;)a-=t.peekLength(),u.push(t.next());l.retain-a>0&&e.next(l.retain-a)}for(var r=new c(u);t.hasNext()||e.hasNext();)if("insert"===e.peekType())r.push(e.next());else if("delete"===t.peekType())r.push(t.next());else{var i=Math.min(t.peekLength(),e.peekLength()),f=t.next(i),n=e.next(i);if("number"==typeof n.retain){var s={};"number"==typeof f.retain?s.retain=i:s.insert=f.insert;var A=m.attributes.compose(f.attributes,n.attributes,"number"==typeof f.retain);if(A&&(s.attributes=A),r.push(s),!e.hasNext()&&T(r.ops[r.ops.length-1],s)){var g=new c(t.rest());return r.concat(g).chop()}}else"number"==typeof n.delete&&"number"==typeof f.retain&&r.push(n)}return r.chop()},c.prototype.concat=function(o){var t=new c(this.ops.slice());return o.ops.length>0&&(t.push(o.ops[0]),t.ops=t.ops.concat(o.ops.slice(1))),t},c.prototype.diff=function(o,t){if(this.ops===o.ops)return new c;var e=[this,o].map(function(i){return i.map(function(f){if(null!=f.insert)return"string"==typeof f.insert?f.insert:y;throw new Error("diff() called "+(i===o?"on":"with")+" non-document")}).join("")}),u=new c,l=P(e[0],e[1],t),a=m.iterator(this.ops),r=m.iterator(o.ops);return l.forEach(function(i){for(var f=i[1].length;f>0;){var n=0;switch(i[0]){case P.INSERT:n=Math.min(r.peekLength(),f),u.push(r.next(n));break;case P.DELETE:n=Math.min(f,a.peekLength()),a.next(n),u.delete(n);break;case P.EQUAL:n=Math.min(a.peekLength(),r.peekLength(),f);var s=a.next(n),A=r.next(n);T(s.insert,A.insert)?u.retain(n,m.attributes.diff(s.attributes,A.attributes)):u.push(A).delete(n)}f-=n}}),u.chop()},c.prototype.eachLine=function(o,t){t=t||"\n";for(var e=m.iterator(this.ops),u=new c,l=0;e.hasNext();){if("insert"!==e.peekType())return;var a=e.peek(),r=m.length(a)-e.peekLength(),i="string"==typeof a.insert?a.insert.indexOf(t,r)-r:-1;if(i<0)u.push(e.next());else if(i>0)u.push(e.next(i));else{if(!1===o(u,e.next(1).attributes||{},l))return;l+=1,u=new c}}u.length()>0&&o(u,{},l)},c.prototype.transform=function(o,t){if(t=!!t,"number"==typeof o)return this.transformPosition(o,t);for(var e=m.iterator(this.ops),u=m.iterator(o.ops),l=new c;e.hasNext()||u.hasNext();)if("insert"!==e.peekType()||!t&&"insert"===u.peekType())if("insert"===u.peekType())l.push(u.next());else{var a=Math.min(e.peekLength(),u.peekLength()),r=e.next(a),i=u.next(a);if(r.delete)continue;i.delete?l.push(i):l.retain(a,m.attributes.transform(r.attributes,i.attributes,t))}else l.retain(m.length(e.next()));return l.chop()},c.prototype.transformPosition=function(o,t){t=!!t;for(var e=m.iterator(this.ops),u=0;e.hasNext()&&u<=o;){var l=e.peekLength(),a=e.peekType();e.next(),"delete"!==a?("insert"===a&&(u<o||!t)&&(o+=l),u+=l):o-=Math.min(l,o-u)}return o},B.exports=c},function(B,O){"use strict";var p=Object.prototype.hasOwnProperty,P=Object.prototype.toString,T=Object.defineProperty,w=Object.getOwnPropertyDescriptor,m=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===P.call(e)},y=function(e){if(!e||"[object Object]"!==P.call(e))return!1;var a,u=p.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&p.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!u&&!l)return!1;for(a in e);return typeof a>"u"||p.call(e,a)},c=function(e,u){T&&"__proto__"===u.name?T(e,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):e[u.name]=u.newValue},o=function(e,u){if("__proto__"===u){if(!p.call(e,u))return;if(w)return w(e,u).value}return e[u]};B.exports=function t(){var e,u,l,a,r,i,f=arguments[0],n=1,s=arguments.length,A=!1;for("boolean"==typeof f&&(A=f,f=arguments[1]||{},n=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});n<s;++n)if(null!=(e=arguments[n]))for(u in e)l=o(f,u),f!==(a=o(e,u))&&(A&&a&&(y(a)||(r=m(a)))?(r?(r=!1,i=l&&m(l)?l:[]):i=l&&y(l)?l:{},c(f,{name:u,newValue:t(A,i,a)})):typeof a<"u"&&c(f,{name:u,newValue:a}));return f}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BlockEmbed=O.bubbleFormats=void 0;var P=function(){function h(d,k){for(var _=0;_<k.length;_++){var q=k[_];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}return function(d,k,_){return k&&h(d.prototype,k),_&&h(d,_),d}}(),T=function h(d,k,_){null===d&&(d=Function.prototype);var q=Object.getOwnPropertyDescriptor(d,k);if(void 0===q){var D=Object.getPrototypeOf(d);return null===D?void 0:h(D,k,_)}if("value"in q)return q.value;var C=q.get;return void 0===C?void 0:C.call(_)},m=f(p(3)),c=f(p(2)),t=f(p(0)),u=f(p(16)),a=f(p(6)),i=f(p(7));function f(h){return h&&h.__esModule?h:{default:h}}function n(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}function s(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?h:d}function A(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}var b=function(h){function d(){return n(this,d),s(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return A(d,h),P(d,[{key:"attach",value:function(){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"attach",this).call(this),this.attributes=new t.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new c.default).insert(this.value(),(0,m.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(_,q){var D=t.default.query(_,t.default.Scope.BLOCK_ATTRIBUTE);null!=D&&this.attributes.attribute(D,q)}},{key:"formatAt",value:function(_,q,D,C){this.format(D,C)}},{key:"insertAt",value:function(_,q,D){if("string"==typeof q&&q.endsWith("\n")){var C=t.default.create(N.blotName);this.parent.insertBefore(C,0===_?this:this.next),C.insertAt(0,q.slice(0,-1))}else T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,_,q,D)}}]),d}(t.default.Embed);b.scope=t.default.Scope.BLOCK_BLOT;var N=function(h){function d(k){n(this,d);var _=s(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,k));return _.cache={},_}return A(d,h),P(d,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(t.default.Leaf).reduce(function(_,q){return 0===q.length()?_:_.insert(q.value(),v(q))},new c.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(_,q){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"deleteAt",this).call(this,_,q),this.cache={}}},{key:"formatAt",value:function(_,q,D,C){q<=0||(t.default.query(D,t.default.Scope.BLOCK)?_+q===this.length()&&this.format(D,C):T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,_,Math.min(q,this.length()-_-1),D,C),this.cache={})}},{key:"insertAt",value:function(_,q,D){if(null!=D)return T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,_,q,D);if(0!==q.length){var C=q.split("\n"),Z=C.shift();Z.length>0&&(_<this.length()-1||null==this.children.tail?T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertAt",this).call(this,Math.min(_,this.length()-1),Z):this.children.tail.insertAt(this.children.tail.length(),Z),this.cache={});var I=this;C.reduce(function(R,E){return(I=I.split(R,!0)).insertAt(0,E),E.length},_+Z.length)}}},{key:"insertBefore",value:function(_,q){var D=this.children.head;T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"insertBefore",this).call(this,_,q),D instanceof u.default&&D.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(_,q){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"moveChildren",this).call(this,_,q),this.cache={}}},{key:"optimize",value:function(_){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,_),this.cache={}}},{key:"path",value:function(_){return T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"path",this).call(this,_,!0)}},{key:"removeChild",value:function(_){T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"removeChild",this).call(this,_),this.cache={}}},{key:"split",value:function(_){var q=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(q&&(0===_||_>=this.length()-1)){var D=this.clone();return 0===_?(this.parent.insertBefore(D,this),this):(this.parent.insertBefore(D,this.next),D)}var C=T(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"split",this).call(this,_,q);return this.cache={},C}}]),d}(t.default.Block);function v(h){var d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==h||("function"==typeof h.formats&&(d=(0,m.default)(d,h.formats())),null==h.parent||"scroll"==h.parent.blotName||h.parent.statics.scope!==h.statics.scope)?d:v(h.parent,d)}N.blotName="block",N.tagName="P",N.defaultChild="break",N.allowedChildren=[a.default,t.default.Embed,i.default],O.bubbleFormats=v,O.BlockEmbed=b,O.default=N},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.overload=O.expandConfig=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},T=function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function I(R,E){var S=[],L=!0,F=!1,M=void 0;try{for(var j,x=R[Symbol.iterator]();!(L=(j=x.next()).done)&&(S.push(j.value),!E||S.length!==E);L=!0);}catch(U){F=!0,M=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw M}}return S}(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")},w=function(){function I(R,E){for(var S=0;S<E.length;S++){var L=E[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,E,S){return E&&I(R.prototype,E),S&&I(R,S),R}}();p(50);var y=v(p(2)),o=v(p(14)),e=v(p(8)),l=v(p(9)),r=v(p(0)),i=p(15),f=v(i),s=v(p(3)),g=v(p(10)),N=v(p(34));function v(I){return I&&I.__esModule?I:{default:I}}function h(I,R,E){return R in I?Object.defineProperty(I,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):I[R]=E,I}var k=(0,g.default)("quill"),_=function(){function I(R){var E=this,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function d(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")}(this,I),this.options=q(R,S),this.container=this.options.container,null==this.container)return k.error("Invalid Quill container",R);this.options.debug&&I.debug(this.options.debug);var L=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new e.default,this.scroll=r.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new o.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),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.theme.init(),this.emitter.on(e.default.events.EDITOR_CHANGE,function(M){M===e.default.events.TEXT_CHANGE&&E.root.classList.toggle("ql-blank",E.editor.isBlank())}),this.emitter.on(e.default.events.SCROLL_UPDATE,function(M,x){var j=E.selection.lastRange,U=j&&0===j.length?j.index:void 0;D.call(E,function(){return E.editor.update(null,x,U)},M)});var F=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+L+"<p><br></p></div>");this.setContents(F),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return w(I,null,[{key:"debug",value:function(E){!0===E&&(E="log"),g.default.level(E)}},{key:"find",value:function(E){return E.__quill||r.default.find(E)}},{key:"import",value:function(E){return null==this.imports[E]&&k.error("Cannot import "+E+". Are you sure it was registered?"),this.imports[E]}},{key:"register",value:function(E,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof E){var M=E.attrName||E.blotName;"string"==typeof M?this.register("formats/"+M,E,S):Object.keys(E).forEach(function(x){L.register(x,E[x],S)})}else null!=this.imports[E]&&!F&&k.warn("Overwriting "+E+" with",S),this.imports[E]=S,(E.startsWith("blots/")||E.startsWith("formats/"))&&"abstract"!==S.blotName?r.default.register(S):E.startsWith("modules")&&"function"==typeof S.register&&S.register()}}]),w(I,[{key:"addContainer",value:function(E){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof E){var L=E;(E=document.createElement("div")).classList.add(L)}return this.container.insertBefore(E,S),E}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(E,S,L){var F=this,M=C(E,S,L),x=T(M,4);return D.call(this,function(){return F.editor.deleteText(E,S)},L=x[3],E=x[0],-1*(S=x[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var E=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(E),this.container.classList.toggle("ql-disabled",!E)}},{key:"focus",value:function(){var E=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=E,this.scrollIntoView()}},{key:"format",value:function(E,S){var L=this;return D.call(this,function(){var M=L.getSelection(!0),x=new y.default;if(null==M)return x;if(r.default.query(E,r.default.Scope.BLOCK))x=L.editor.formatLine(M.index,M.length,h({},E,S));else{if(0===M.length)return L.selection.format(E,S),x;x=L.editor.formatText(M.index,M.length,h({},E,S))}return L.setSelection(M,e.default.sources.SILENT),x},arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.default.sources.API)}},{key:"formatLine",value:function(E,S,L,F,M){var j,x=this,U=C(E,S,L,F,M),H=T(U,4);return S=H[1],j=H[2],D.call(this,function(){return x.editor.formatLine(E,S,j)},M=H[3],E=H[0],0)}},{key:"formatText",value:function(E,S,L,F,M){var j,x=this,U=C(E,S,L,F,M),H=T(U,4);return S=H[1],j=H[2],D.call(this,function(){return x.editor.formatText(E,S,j)},M=H[3],E=H[0],0)}},{key:"getBounds",value:function(E){var L;L="number"==typeof E?this.selection.getBounds(E,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(E.index,E.length);var F=this.container.getBoundingClientRect();return{bottom:L.bottom-F.top,height:L.height,left:L.left-F.left,right:L.right-F.left,top:L.top-F.top,width:L.width}}},{key:"getContents",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-E,L=C(E,S),F=T(L,2);return this.editor.getContents(E=F[0],S=F[1])}},{key:"getFormat",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof E?this.editor.getFormat(E,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(E.index,E.length)}},{key:"getIndex",value:function(E){return E.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(E){return this.scroll.leaf(E)}},{key:"getLine",value:function(E){return this.scroll.line(E)}},{key:"getLines",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof E?this.scroll.lines(E.index,E.length):this.scroll.lines(E,S)}},{key:"getModule",value:function(E){return this.theme.modules[E]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-E,L=C(E,S),F=T(L,2);return this.editor.getText(E=F[0],S=F[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(E,S,L){var F=this;return D.call(this,function(){return F.editor.insertEmbed(E,S,L)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:I.sources.API,E)}},{key:"insertText",value:function(E,S,L,F,M){var j,x=this,U=C(E,0,L,F,M),H=T(U,4);return j=H[2],D.call(this,function(){return x.editor.insertText(E,S,j)},M=H[3],E=H[0],S.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(E,S,L){this.clipboard.dangerouslyPasteHTML(E,S,L)}},{key:"removeFormat",value:function(E,S,L){var F=this,M=C(E,S,L),x=T(M,4);return S=x[1],D.call(this,function(){return F.editor.removeFormat(E,S)},L=x[3],E=x[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(E){var S=this;return D.call(this,function(){E=new y.default(E);var F=S.getLength(),M=S.editor.deleteText(0,F),x=S.editor.applyDelta(E),j=x.ops[x.ops.length-1];return null!=j&&"string"==typeof j.insert&&"\n"===j.insert[j.insert.length-1]&&(S.editor.deleteText(S.getLength()-1,1),x.delete(1)),M.compose(x)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.default.sources.API)}},{key:"setSelection",value:function(E,S,L){if(null==E)this.selection.setRange(null,S||I.sources.API);else{var F=C(E,S,L),M=T(F,4);L=M[3],this.selection.setRange(new i.Range(E=M[0],S=M[1]),L),L!==e.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(E){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.default.sources.API,L=(new y.default).insert(E);return this.setContents(L,S)}},{key:"update",value:function(){var E=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.default.sources.USER,S=this.scroll.update(E);return this.selection.update(E),S}},{key:"updateContents",value:function(E){var S=this,L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.default.sources.API;return D.call(this,function(){return E=new y.default(E),S.editor.applyDelta(E,L)},L,!0)}}]),I}();function q(I,R){if((R=(0,s.default)(!0,{container:I,modules:{clipboard:!0,keyboard:!0,history:!0}},R)).theme&&R.theme!==_.DEFAULTS.theme){if(R.theme=_.import("themes/"+R.theme),null==R.theme)throw new Error("Invalid theme "+R.theme+". Did you register it?")}else R.theme=N.default;var E=(0,s.default)(!0,{},R.theme.DEFAULTS);[E,R].forEach(function(F){F.modules=F.modules||{},Object.keys(F.modules).forEach(function(M){!0===F.modules[M]&&(F.modules[M]={})})});var L=Object.keys(E.modules).concat(Object.keys(R.modules)).reduce(function(F,M){var x=_.import("modules/"+M);return null==x?k.error("Cannot load "+M+" module. Are you sure you registered it?"):F[M]=x.DEFAULTS||{},F},{});return null!=R.modules&&R.modules.toolbar&&R.modules.toolbar.constructor!==Object&&(R.modules.toolbar={container:R.modules.toolbar}),R=(0,s.default)(!0,{},_.DEFAULTS,{modules:L},E,R),["bounds","container","scrollingContainer"].forEach(function(F){"string"==typeof R[F]&&(R[F]=document.querySelector(R[F]))}),R.modules=Object.keys(R.modules).reduce(function(F,M){return R.modules[M]&&(F[M]=R.modules[M]),F},{}),R}function D(I,R,E,S){if(this.options.strict&&!this.isEnabled()&&R===e.default.sources.USER)return new y.default;var L=null==E?null:this.getSelection(),F=this.editor.delta,M=I();if(null!=L&&(!0===E&&(E=L.index),null==S?L=Z(L,M,R):0!==S&&(L=Z(L,E,S,R)),this.setSelection(L,e.default.sources.SILENT)),M.length()>0){var x,U,j=[e.default.events.TEXT_CHANGE,M,F,R];(x=this.emitter).emit.apply(x,[e.default.events.EDITOR_CHANGE].concat(j)),R!==e.default.sources.SILENT&&(U=this.emitter).emit.apply(U,j)}return M}function C(I,R,E,S,L){var F={};return"number"==typeof I.index&&"number"==typeof I.length?"number"!=typeof R?(L=S,S=E,E=R,R=I.length,I=I.index):(R=I.length,I=I.index):"number"!=typeof R&&(L=S,S=E,E=R,R=0),"object"===(typeof E>"u"?"undefined":P(E))?(F=E,L=S):"string"==typeof E&&(null!=S?F[E]=S:L=E),[I,R,F,L=L||e.default.sources.API]}function Z(I,R,E,S){if(null==I)return null;var L=void 0,F=void 0;if(R instanceof y.default){var M=[I.index,I.index+I.length].map(function(H){return R.transformPosition(H,S!==e.default.sources.USER)}),x=T(M,2);L=x[0],F=x[1]}else{var j=[I.index,I.index+I.length].map(function(H){return H<R||H===R&&S===e.default.sources.USER?H:E>=0?H+E:Math.max(R,H+E)}),U=T(j,2);L=U[0],F=U[1]}return new i.Range(L,F-L)}_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},_.events=e.default.events,_.sources=e.default.sources,_.version="1.3.7",_.imports={delta:y.default,parchment:r.default,"core/module":l.default,"core/theme":N.default},O.expandConfig=q,O.overload=C,O.default=_},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},m=o(p(7)),c=o(p(0));function o(a){return a&&a.__esModule?a:{default:a}}var l=function(a){function r(){return function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function e(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function u(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"formatAt",value:function(f,n,s,A){if(r.compare(this.statics.blotName,s)<0&&c.default.query(s,c.default.Scope.BLOT)){var g=this.isolate(f,n);A&&g.wrap(s,A)}else T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"formatAt",this).call(this,f,n,s,A)}},{key:"optimize",value:function(f){if(T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"optimize",this).call(this,f),this.parent instanceof r&&r.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(f,n){var s=r.order.indexOf(f),A=r.order.indexOf(n);return s>=0||A>=0?s-A:f===n?0:f<n?-1:1}}]),r}(c.default.Inline);l.allowedChildren=[l,c.default.Embed,m.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(0)).default.Text);O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function i(f,n){for(var s=0;s<n.length;s++){var A=n[s];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(f,A.key,A)}}return function(f,n,s){return n&&i(f.prototype,n),s&&i(f,s),f}}(),T=function i(f,n,s){null===f&&(f=Function.prototype);var A=Object.getOwnPropertyDescriptor(f,n);if(void 0===A){var g=Object.getPrototypeOf(f);return null===g?void 0:i(g,n,s)}if("value"in A)return A.value;var b=A.get;return void 0===b?void 0:b.call(s)},m=o(p(54));function o(i){return i&&i.__esModule?i:{default:i}}var l=(0,o(p(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(i){document.addEventListener(i,function(){for(var f=arguments.length,n=Array(f),s=0;s<f;s++)n[s]=arguments[s];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(A){var g;A.__quill&&A.__quill.emitter&&(g=A.__quill.emitter).handleDOM.apply(g,n)})})});var r=function(i){function f(){!function t(i,f){if(!(i instanceof f))throw new TypeError("Cannot call a class as a function")}(this,f);var n=function e(i,f){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?i:f}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return n.listeners={},n.on("error",l.error),n}return function u(i,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);i.prototype=Object.create(f&&f.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(i,f):i.__proto__=f)}(f,i),P(f,[{key:"emit",value:function(){l.log.apply(l,arguments),T(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(s){for(var A=arguments.length,g=Array(A>1?A-1:0),b=1;b<A;b++)g[b-1]=arguments[b];(this.listeners[s.type]||[]).forEach(function(N){var v=N.node,h=N.handler;(s.target===v||v.contains(s.target))&&h.apply(void 0,[s].concat(g))})}},{key:"listenDOM",value:function(s,A,g){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push({node:A,handler:g})}}]),f}(m.default);r.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},r.sources={API:"api",SILENT:"silent",USER:"user"},O.default=r},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var T=function w(m){var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function P(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")})(this,w),this.quill=m,this.options=y};T.DEFAULTS={},O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=["error","warn","log","info"],T="warn";function w(y){if(P.indexOf(y)<=P.indexOf(T)){for(var c,o=arguments.length,t=Array(o>1?o-1:0),e=1;e<o;e++)t[e-1]=arguments[e];(c=console)[y].apply(c,t)}}function m(y){return P.reduce(function(c,o){return c[o]=w.bind(console,o,y),c},{})}w.level=m.level=function(y){T=y},O.default=m},function(B,O,p){var P=Array.prototype.slice,T=p(52),w=p(53),m=B.exports=function(t,e,u){return u||(u={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?u.strict?t===e:t==e:function o(t,e,u){var l,a;if(y(t)||y(e)||t.prototype!==e.prototype)return!1;if(w(t))return!!w(e)&&(t=P.call(t),e=P.call(e),m(t,e,u));if(c(t)){if(!c(e)||t.length!==e.length)return!1;for(l=0;l<t.length;l++)if(t[l]!==e[l])return!1;return!0}try{var r=T(t),i=T(e)}catch{return!1}if(r.length!=i.length)return!1;for(r.sort(),i.sort(),l=r.length-1;l>=0;l--)if(r[l]!=i[l])return!1;for(l=r.length-1;l>=0;l--)if(!m(t[a=r[l]],e[a],u))return!1;return typeof t==typeof e}(t,e,u))};function y(t){return null==t}function c(t){return!(!t||"object"!=typeof t||"number"!=typeof t.length||"function"!=typeof t.copy||"function"!=typeof t.slice||t.length>0&&"number"!=typeof t[0])}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function w(m,y,c){void 0===c&&(c={}),this.attrName=m,this.keyName=y,this.scope=null!=c.scope?c.scope&P.Scope.LEVEL|P.Scope.TYPE&P.Scope.ATTRIBUTE:P.Scope.ATTRIBUTE,null!=c.whitelist&&(this.whitelist=c.whitelist)}return w.keys=function(m){return[].map.call(m.attributes,function(y){return y.name})},w.prototype.add=function(m,y){return!!this.canAdd(m,y)&&(m.setAttribute(this.keyName,y),!0)},w.prototype.canAdd=function(m,y){return null!=P.query(m,P.Scope.BLOT&(this.scope|P.Scope.TYPE))&&(null==this.whitelist||("string"==typeof y?this.whitelist.indexOf(y.replace(/["']/g,""))>-1:this.whitelist.indexOf(y)>-1))},w.prototype.remove=function(m){m.removeAttribute(this.keyName)},w.prototype.value=function(m){var y=m.getAttribute(this.keyName);return this.canAdd(m,y)&&y?y:""},w}();O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Code=void 0;var P=function(N,v){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return function b(N,v){var h=[],d=!0,k=!1,_=void 0;try{for(var D,q=N[Symbol.iterator]();!(d=(D=q.next()).done)&&(h.push(D.value),!v||h.length!==v);d=!0);}catch(C){k=!0,_=C}finally{try{!d&&q.return&&q.return()}finally{if(k)throw _}}return h}(N,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function b(N,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(N,d.key,d)}}return function(N,v,h){return v&&b(N.prototype,v),h&&b(N,h),N}}(),w=function b(N,v,h){null===N&&(N=Function.prototype);var d=Object.getOwnPropertyDescriptor(N,v);if(void 0===d){var k=Object.getPrototypeOf(N);return null===k?void 0:b(k,v,h)}if("value"in d)return d.value;var _=d.get;return void 0===_?void 0:_.call(h)},y=i(p(2)),o=i(p(0)),e=i(p(4)),l=i(p(6)),r=i(p(7));function i(b){return b&&b.__esModule?b:{default:b}}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}function n(b,N){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!N||"object"!=typeof N&&"function"!=typeof N?b:N}function s(b,N){if("function"!=typeof N&&null!==N)throw new TypeError("Super expression must either be null or a function, not "+typeof N);b.prototype=Object.create(N&&N.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),N&&(Object.setPrototypeOf?Object.setPrototypeOf(b,N):b.__proto__=N)}var A=function(b){function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return s(N,b),N}(l.default);A.blotName="code",A.tagName="CODE";var g=function(b){function N(){return f(this,N),n(this,(N.__proto__||Object.getPrototypeOf(N)).apply(this,arguments))}return s(N,b),T(N,[{key:"delta",value:function(){var h=this,d=this.domNode.textContent;return d.endsWith("\n")&&(d=d.slice(0,-1)),d.split("\n").reduce(function(k,_){return k.insert(_).insert("\n",h.formats())},new y.default)}},{key:"format",value:function(h,d){if(h!==this.statics.blotName||!d){var k=this.descendant(r.default,this.length()-1),q=P(k,1)[0];q?.deleteAt(q.length()-1,1),w(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"format",this).call(this,h,d)}}},{key:"formatAt",value:function(h,d,k,_){if(0!==d&&null!=o.default.query(k,o.default.Scope.BLOCK)&&(k!==this.statics.blotName||_!==this.statics.formats(this.domNode))){var q=this.newlineIndex(h);if(!(q<0||q>=h+d)){var D=this.newlineIndex(h,!0)+1,C=q-D+1,Z=this.isolate(D,C),I=Z.next;Z.format(k,_),I instanceof N&&I.formatAt(0,h-D+d-C,k,_)}}}},{key:"insertAt",value:function(h,d,k){if(null==k){var _=this.descendant(r.default,h),q=P(_,2);q[0].insertAt(q[1],d)}}},{key:"length",value:function(){var h=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?h:h+1}},{key:"newlineIndex",value:function(h){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,h).lastIndexOf("\n");var k=this.domNode.textContent.slice(h).indexOf("\n");return k>-1?h+k:-1}},{key:"optimize",value:function(h){this.domNode.textContent.endsWith("\n")||this.appendChild(o.default.create("text","\n")),w(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"optimize",this).call(this,h);var d=this.next;null!=d&&d.prev===this&&d.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===d.statics.formats(d.domNode)&&(d.optimize(h),d.moveChildren(this),d.remove())}},{key:"replace",value:function(h){w(N.prototype.__proto__||Object.getPrototypeOf(N.prototype),"replace",this).call(this,h),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(d){var k=o.default.find(d);null==k?d.parentNode.removeChild(d):k instanceof o.default.Embed?k.remove():k.unwrap()})}}],[{key:"create",value:function(h){var d=w(N.__proto__||Object.getPrototypeOf(N),"create",this).call(this,h);return d.setAttribute("spellcheck",!1),d}},{key:"formats",value:function(){return!0}}]),N}(e.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",O.Code=A,O.default=g},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(I){return typeof I}:function(I){return I&&"function"==typeof Symbol&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},T=function(R,E){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return function I(R,E){var S=[],L=!0,F=!1,M=void 0;try{for(var j,x=R[Symbol.iterator]();!(L=(j=x.next()).done)&&(S.push(j.value),!E||S.length!==E);L=!0);}catch(U){F=!0,M=U}finally{try{!L&&x.return&&x.return()}finally{if(F)throw M}}return S}(R,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")},w=function(){function I(R,E){for(var S=0;S<E.length;S++){var L=E[S];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,E,S){return E&&I(R.prototype,E),S&&I(R,S),R}}(),y=d(p(2)),o=d(p(20)),e=d(p(0)),l=d(p(13)),r=d(p(24)),i=p(4),f=d(i),s=d(p(16)),g=d(p(21)),N=d(p(11)),h=d(p(3));function d(I){return I&&I.__esModule?I:{default:I}}var q=/^[ -~]*$/,D=function(){function I(R){(function _(I,R){if(!(I instanceof R))throw new TypeError("Cannot call a class as a function")})(this,I),this.scroll=R,this.delta=this.getDelta()}return w(I,[{key:"applyDelta",value:function(E){var S=this,L=!1;this.scroll.update();var F=this.scroll.length();return this.scroll.batchStart(),(E=function Z(I){return I.reduce(function(R,E){if(1===E.insert){var S=(0,g.default)(E.attributes);return delete S.image,R.insert({image:E.attributes.image},S)}if(null!=E.attributes&&(!0===E.attributes.list||!0===E.attributes.bullet)&&((E=(0,g.default)(E)).attributes.list?E.attributes.list="ordered":(E.attributes.list="bullet",delete E.attributes.bullet)),"string"==typeof E.insert){var L=E.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return R.insert(L,E.attributes)}return R.push(E)},new y.default)}(E)).reduce(function(M,x){var j=x.retain||x.delete||x.insert.length||1,U=x.attributes||{};if(null!=x.insert){if("string"==typeof x.insert){var H=x.insert;H.endsWith("\n")&&L&&(L=!1,H=H.slice(0,-1)),M>=F&&!H.endsWith("\n")&&(L=!0),S.scroll.insertAt(M,H);var V=S.scroll.line(M),Y=T(V,2),X=Y[0],Q=Y[1],nt=(0,h.default)({},(0,i.bubbleFormats)(X));if(X instanceof f.default){var rt=X.descendant(e.default.Leaf,Q),at=T(rt,1);nt=(0,h.default)(nt,(0,i.bubbleFormats)(at[0]))}U=o.default.attributes.diff(nt,U)||{}}else if("object"===P(x.insert)){var z=Object.keys(x.insert)[0];if(null==z)return M;S.scroll.insertAt(M,z,x.insert[z])}F+=j}return Object.keys(U).forEach(function(K){S.scroll.formatAt(M,j,K,U[K])}),M+j},0),E.reduce(function(M,x){return"number"==typeof x.delete?(S.scroll.deleteAt(M,x.delete),M):M+(x.retain||x.insert.length||1)},0),this.scroll.batchEnd(),this.update(E)}},{key:"deleteText",value:function(E,S){return this.scroll.deleteAt(E,S),this.update((new y.default).retain(E).delete(S))}},{key:"formatLine",value:function(E,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(F).forEach(function(M){if(null==L.scroll.whitelist||L.scroll.whitelist[M]){var x=L.scroll.lines(E,Math.max(S,1)),j=S;x.forEach(function(U){var H=U.length();if(U instanceof l.default){var V=E-U.offset(L.scroll),Y=U.newlineIndex(V+j)-V+1;U.formatAt(V,Y,M,F[M])}else U.format(M,F[M]);j-=H})}}),this.scroll.optimize(),this.update((new y.default).retain(E).retain(S,(0,g.default)(F)))}},{key:"formatText",value:function(E,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(F).forEach(function(M){L.scroll.formatAt(E,S,M,F[M])}),this.update((new y.default).retain(E).retain(S,(0,g.default)(F)))}},{key:"getContents",value:function(E,S){return this.delta.slice(E,E+S)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(E,S){return E.concat(S.delta())},new y.default)}},{key:"getFormat",value:function(E){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,L=[],F=[];0===S?this.scroll.path(E).forEach(function(x){var U=T(x,1)[0];U instanceof f.default?L.push(U):U instanceof e.default.Leaf&&F.push(U)}):(L=this.scroll.lines(E,S),F=this.scroll.descendants(e.default.Leaf,E,S));var M=[L,F].map(function(x){if(0===x.length)return{};for(var j=(0,i.bubbleFormats)(x.shift());Object.keys(j).length>0;){var U=x.shift();if(null==U)return j;j=C((0,i.bubbleFormats)(U),j)}return j});return h.default.apply(h.default,M)}},{key:"getText",value:function(E,S){return this.getContents(E,S).filter(function(L){return"string"==typeof L.insert}).map(function(L){return L.insert}).join("")}},{key:"insertEmbed",value:function(E,S,L){return this.scroll.insertAt(E,S,L),this.update((new y.default).retain(E).insert(function k(I,R,E){return R in I?Object.defineProperty(I,R,{value:E,enumerable:!0,configurable:!0,writable:!0}):I[R]=E,I}({},S,L)))}},{key:"insertText",value:function(E,S){var L=this,F=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return S=S.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(E,S),Object.keys(F).forEach(function(M){L.scroll.formatAt(E,S.length,M,F[M])}),this.update((new y.default).retain(E).insert(S,(0,g.default)(F)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var E=this.scroll.children.head;return!(E.statics.blotName!==f.default.blotName||E.children.length>1)&&E.children.head instanceof s.default}},{key:"removeFormat",value:function(E,S){var L=this.getText(E,S),F=this.scroll.line(E+S),M=T(F,2),x=M[0],j=M[1],U=0,H=new y.default;null!=x&&(U=x instanceof l.default?x.newlineIndex(j)-j+1:x.length()-j,H=x.delta().slice(j,j+U-1).insert("\n"));var Y=this.getContents(E,S+U).diff((new y.default).insert(L).concat(H)),X=(new y.default).retain(E).concat(Y);return this.applyDelta(X)}},{key:"update",value:function(E){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],L=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,F=this.delta;if(1===S.length&&"characterData"===S[0].type&&S[0].target.data.match(q)&&e.default.find(S[0].target)){var M=e.default.find(S[0].target),x=(0,i.bubbleFormats)(M),j=M.offset(this.scroll),U=S[0].oldValue.replace(r.default.CONTENTS,""),H=(new y.default).insert(U),V=(new y.default).insert(M.value());E=(new y.default).retain(j).concat(H.diff(V,L)).reduce(function(X,Q){return Q.insert?X.insert(Q.insert,x):X.push(Q)},new y.default),this.delta=F.compose(E)}else this.delta=this.getDelta(),(!E||!(0,N.default)(F.compose(E),this.delta))&&(E=F.diff(this.delta,L));return E}}]),I}();function C(I,R){return Object.keys(R).reduce(function(E,S){return null==I[S]||(R[S]===I[S]?E[S]=R[S]:Array.isArray(R[S])?R[S].indexOf(I[S])<0&&(E[S]=R[S].concat([I[S]])):E[S]=[R[S],I[S]]),E},{})}O.default=D},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.Range=void 0;var P=function(N,v){if(Array.isArray(N))return N;if(Symbol.iterator in Object(N))return function b(N,v){var h=[],d=!0,k=!1,_=void 0;try{for(var D,q=N[Symbol.iterator]();!(d=(D=q.next()).done)&&(h.push(D.value),!v||h.length!==v);d=!0);}catch(C){k=!0,_=C}finally{try{!d&&q.return&&q.return()}finally{if(k)throw _}}return h}(N,v);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function b(N,v){for(var h=0;h<v.length;h++){var d=v[h];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(N,d.key,d)}}return function(N,v,h){return v&&b(N.prototype,v),h&&b(N,h),N}}(),m=r(p(0)),c=r(p(21)),t=r(p(11)),u=r(p(8));function r(b){return b&&b.__esModule?b:{default:b}}function i(b){if(Array.isArray(b)){for(var N=0,v=Array(b.length);N<b.length;N++)v[N]=b[N];return v}return Array.from(b)}function f(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}var n=(0,r(p(10)).default)("quill:selection"),s=function b(N){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,b),this.index=N,this.length=v},A=function(){function b(N,v){var h=this;f(this,b),this.emitter=v,this.scroll=N,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=m.default.create("cursor",this),this.lastRange=this.savedRange=new s(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){h.mouseDown||setTimeout(h.update.bind(h,u.default.sources.USER),1)}),this.emitter.on(u.default.events.EDITOR_CHANGE,function(d,k){d===u.default.events.TEXT_CHANGE&&k.length()>0&&h.update(u.default.sources.SILENT)}),this.emitter.on(u.default.events.SCROLL_BEFORE_UPDATE,function(){if(h.hasFocus()){var d=h.getNativeRange();null!=d&&d.start.node!==h.cursor.textNode&&h.emitter.once(u.default.events.SCROLL_UPDATE,function(){try{h.setNativeRange(d.start.node,d.start.offset,d.end.node,d.end.offset)}catch{}})}}),this.emitter.on(u.default.events.SCROLL_OPTIMIZE,function(d,k){if(k.range){var _=k.range;h.setNativeRange(_.startNode,_.startOffset,_.endNode,_.endOffset)}}),this.update(u.default.sources.SILENT)}return T(b,[{key:"handleComposition",value:function(){var v=this;this.root.addEventListener("compositionstart",function(){v.composing=!0}),this.root.addEventListener("compositionend",function(){if(v.composing=!1,v.cursor.parent){var h=v.cursor.restore();if(!h)return;setTimeout(function(){v.setNativeRange(h.startNode,h.startOffset,h.endNode,h.endOffset)},1)}})}},{key:"handleDragging",value:function(){var v=this;this.emitter.listenDOM("mousedown",document.body,function(){v.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){v.mouseDown=!1,v.update(u.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(v,h){if(null==this.scroll.whitelist||this.scroll.whitelist[v]){this.scroll.update();var d=this.getNativeRange();if(null!=d&&d.native.collapsed&&!m.default.query(v,m.default.Scope.BLOCK)){if(d.start.node!==this.cursor.textNode){var k=m.default.find(d.start.node,!1);if(null==k)return;if(k instanceof m.default.Leaf){var _=k.split(d.start.offset);k.parent.insertBefore(this.cursor,_)}else k.insertBefore(this.cursor,d.start.node);this.cursor.attach()}this.cursor.format(v,h),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(v){var h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,d=this.scroll.length();v=Math.min(v,d-1),h=Math.min(v+h,d-1)-v;var k=void 0,_=this.scroll.leaf(v),q=P(_,2),D=q[0],C=q[1];if(null==D)return null;var Z=D.position(C,!0),I=P(Z,2);k=I[0],C=I[1];var R=document.createRange();if(h>0){R.setStart(k,C);var E=this.scroll.leaf(v+h),S=P(E,2);if(null==(D=S[0]))return null;var L=D.position(C=S[1],!0),F=P(L,2);return R.setEnd(k=F[0],C=F[1]),R.getBoundingClientRect()}var M="left",x=void 0;return k instanceof Text?(C<k.data.length?(R.setStart(k,C),R.setEnd(k,C+1)):(R.setStart(k,C-1),R.setEnd(k,C),M="right"),x=R.getBoundingClientRect()):(x=D.domNode.getBoundingClientRect(),C>0&&(M="right")),{bottom:x.top+x.height,height:x.height,left:x[M],right:x[M],top:x.top,width:0}}},{key:"getNativeRange",value:function(){var v=document.getSelection();if(null==v||v.rangeCount<=0)return null;var h=v.getRangeAt(0);if(null==h)return null;var d=this.normalizeNative(h);return n.info("getNativeRange",d),d}},{key:"getRange",value:function(){var v=this.getNativeRange();return null==v?[null,null]:[this.normalizedToRange(v),v]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(v){var h=this,d=[[v.start.node,v.start.offset]];v.native.collapsed||d.push([v.end.node,v.end.offset]);var k=d.map(function(D){var C=P(D,2),Z=C[0],I=C[1],R=m.default.find(Z,!0),E=R.offset(h.scroll);return 0===I?E:R instanceof m.default.Container?E+R.length():E+R.index(Z,I)}),_=Math.min(Math.max.apply(Math,i(k)),this.scroll.length()-1),q=Math.min.apply(Math,[_].concat(i(k)));return new s(q,_-q)}},{key:"normalizeNative",value:function(v){if(!g(this.root,v.startContainer)||!v.collapsed&&!g(this.root,v.endContainer))return null;var h={start:{node:v.startContainer,offset:v.startOffset},end:{node:v.endContainer,offset:v.endOffset},native:v};return[h.start,h.end].forEach(function(d){for(var k=d.node,_=d.offset;!(k instanceof Text)&&k.childNodes.length>0;)if(k.childNodes.length>_)k=k.childNodes[_],_=0;else{if(k.childNodes.length!==_)break;_=(k=k.lastChild)instanceof Text?k.data.length:k.childNodes.length+1}d.node=k,d.offset=_}),h}},{key:"rangeToNative",value:function(v){var h=this,d=v.collapsed?[v.index]:[v.index,v.index+v.length],k=[],_=this.scroll.length();return d.forEach(function(q,D){q=Math.min(_-1,q);var Z=h.scroll.leaf(q),I=P(Z,2),E=I[1],S=I[0].position(E,0!==D),L=P(S,2);k.push(L[0],E=L[1])}),k.length<2&&(k=k.concat(k)),k}},{key:"scrollIntoView",value:function(v){var h=this.lastRange;if(null!=h){var d=this.getBounds(h.index,h.length);if(null!=d){var k=this.scroll.length()-1,_=this.scroll.line(Math.min(h.index,k)),D=P(_,1)[0],C=D;if(h.length>0){var Z=this.scroll.line(Math.min(h.index+h.length,k));C=P(Z,1)[0]}if(null!=D&&null!=C){var R=v.getBoundingClientRect();d.top<R.top?v.scrollTop-=R.top-d.top:d.bottom>R.bottom&&(v.scrollTop+=d.bottom-R.bottom)}}}}},{key:"setNativeRange",value:function(v,h){var d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v,k=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h,_=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(n.info("setNativeRange",v,h,d,k),null==v||null!=this.root.parentNode&&null!=v.parentNode&&null!=d.parentNode){var q=document.getSelection();if(null!=q)if(null!=v){this.hasFocus()||this.root.focus();var D=(this.getNativeRange()||{}).native;if(null==D||_||v!==D.startContainer||h!==D.startOffset||d!==D.endContainer||k!==D.endOffset){"BR"==v.tagName&&(h=[].indexOf.call(v.parentNode.childNodes,v),v=v.parentNode),"BR"==d.tagName&&(k=[].indexOf.call(d.parentNode.childNodes,d),d=d.parentNode);var C=document.createRange();C.setStart(v,h),C.setEnd(d,k),q.removeAllRanges(),q.addRange(C)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(v){var h=arguments.length>1&&void 0!==arguments[1]&&arguments[1],d=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof h&&(d=h,h=!1),n.info("setRange",v),null!=v){var k=this.rangeToNative(v);this.setNativeRange.apply(this,i(k).concat([h]))}else this.setNativeRange(null);this.update(d)}},{key:"update",value:function(){var v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,h=this.lastRange,d=this.getRange(),k=P(d,2),q=k[1];if(this.lastRange=k[0],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,t.default)(h,this.lastRange)){var D;!this.composing&&null!=q&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var Z,C=[u.default.events.SELECTION_CHANGE,(0,c.default)(this.lastRange),(0,c.default)(h),v];(D=this.emitter).emit.apply(D,[u.default.events.EDITOR_CHANGE].concat(C)),v!==u.default.sources.SILENT&&(Z=this.emitter).emit.apply(Z,C)}}}]),b}();function g(b,N){return N instanceof Text&&(N=N.parentNode),b.contains(N)}O.Range=s,O.default=A},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"insertInto",value:function(r,i){0===r.children.length?T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"insertInto",this).call(this,r,i):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(0)).default.Embed);e.blotName="break",e.tagName="BR",O.default=e},function(B,O,p){"use strict";var o,P=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])},function(t,e){function u(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(44),w=p(30),m=p(1),y=function(o){function t(e){var u=o.call(this,e)||this;return u.build(),u}return P(t,o),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){o.prototype.attach.call(this),this.children.forEach(function(e){e.attach()})},t.prototype.build=function(){var e=this;this.children=new T.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(u){try{var l=c(u);e.insertBefore(l,e.children.head||void 0)}catch(a){if(a instanceof m.ParchmentError)return;throw a}})},t.prototype.deleteAt=function(e,u){if(0===e&&u===this.length())return this.remove();this.children.forEachAt(e,u,function(l,a,r){l.deleteAt(a,r)})},t.prototype.descendant=function(e,u){var l=this.children.find(u),a=l[0],r=l[1];return null==e.blotName&&e(a)||null!=e.blotName&&a instanceof e?[a,r]:a instanceof t?a.descendant(e,r):[null,-1]},t.prototype.descendants=function(e,u,l){void 0===u&&(u=0),void 0===l&&(l=Number.MAX_VALUE);var a=[],r=l;return this.children.forEachAt(u,l,function(i,f,n){(null==e.blotName&&e(i)||null!=e.blotName&&i instanceof e)&&a.push(i),i instanceof t&&(a=a.concat(i.descendants(e,f,r))),r-=n}),a},t.prototype.detach=function(){this.children.forEach(function(e){e.detach()}),o.prototype.detach.call(this)},t.prototype.formatAt=function(e,u,l,a){this.children.forEachAt(e,u,function(r,i,f){r.formatAt(i,f,l,a)})},t.prototype.insertAt=function(e,u,l){var a=this.children.find(e),r=a[0];if(r)r.insertAt(a[1],u,l);else{var f=null==l?m.create("text",u):m.create(u,l);this.appendChild(f)}},t.prototype.insertBefore=function(e,u){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(l){return e instanceof l}))throw new m.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,u)},t.prototype.length=function(){return this.children.reduce(function(e,u){return e+u.length()},0)},t.prototype.moveChildren=function(e,u){this.children.forEach(function(l){e.insertBefore(l,u)})},t.prototype.optimize=function(e){if(o.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var u=m.create(this.statics.defaultChild);this.appendChild(u),u.optimize(e)}else this.remove()},t.prototype.path=function(e,u){void 0===u&&(u=!1);var l=this.children.find(e,u),a=l[0],r=l[1],i=[[this,e]];return a instanceof t?i.concat(a.path(r,u)):(null!=a&&i.push([a,r]),i)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(e){e instanceof t&&e.moveChildren(this),o.prototype.replace.call(this,e)},t.prototype.split=function(e,u){if(void 0===u&&(u=!1),!u){if(0===e)return this;if(e===this.length())return this.next}var l=this.clone();return this.parent.insertBefore(l,this.next),this.children.forEachAt(e,this.length(),function(a,r,i){a=a.split(r,u),l.appendChild(a)}),l},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,u){var l=this,a=[],r=[];e.forEach(function(i){i.target===l.domNode&&"childList"===i.type&&(a.push.apply(a,i.addedNodes),r.push.apply(r,i.removedNodes))}),r.forEach(function(i){if(!(null!=i.parentNode&&"IFRAME"!==i.tagName&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var f=m.find(i);null!=f&&(null==f.domNode.parentNode||f.domNode.parentNode===l.domNode)&&f.detach()}}),a.filter(function(i){return i.parentNode==l.domNode}).sort(function(i,f){return i===f?0:i.compareDocumentPosition(f)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(i){var f=null;null!=i.nextSibling&&(f=m.find(i.nextSibling));var n=c(i);(n.next!=f||null==n.next)&&(null!=n.parent&&n.parent.removeChild(l),l.insertBefore(n,f||void 0))})},t}(w.default);function c(o){var t=m.find(o);if(null==t)try{t=m.create(o)}catch{t=m.create(m.Scope.INLINE),[].slice.call(o.childNodes).forEach(function(u){t.domNode.appendChild(u)}),o.parentNode&&o.parentNode.replaceChild(t.domNode,o),t.attach()}return t}O.default=y},function(B,O,p){"use strict";var o,P=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])},function(t,e){function u(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(12),w=p(31),m=p(17),y=p(1),c=function(o){function t(e){var u=o.call(this,e)||this;return u.attributes=new w.default(u.domNode),u}return P(t,o),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,u){var l=y.query(e);l instanceof T.default?this.attributes.attribute(l,u):u&&null!=l&&(e!==this.statics.blotName||this.formats()[e]!==u)&&this.replaceWith(e,u)},t.prototype.formats=function(){var e=this.attributes.values(),u=this.statics.formats(this.domNode);return null!=u&&(e[this.statics.blotName]=u),e},t.prototype.replaceWith=function(e,u){var l=o.prototype.replaceWith.call(this,e,u);return this.attributes.copy(l),l},t.prototype.update=function(e,u){var l=this;o.prototype.update.call(this,e,u),e.some(function(a){return a.target===l.domNode&&"attributes"===a.type})&&this.attributes.build()},t.prototype.wrap=function(e,u){var l=o.prototype.wrap.call(this,e,u);return l instanceof t&&l.statics.scope===this.statics.scope&&this.attributes.move(l),l},t}(m.default);O.default=c},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(30),w=p(1),m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.value=function(o){return!0},c.prototype.index=function(o,t){return this.domNode===o||this.domNode.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},c.prototype.position=function(o,t){var e=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return o>0&&(e+=1),[this.parent.domNode,e]},c.prototype.value=function(){var o;return(o={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,o},c.scope=w.Scope.INLINE_BLOT,c}(T.default);O.default=m},function(B,O,p){var P=p(11),T=p(3),w={attributes:{compose:function(y,c,o){"object"!=typeof y&&(y={}),"object"!=typeof c&&(c={});var t=T(!0,{},c);for(var e in o||(t=Object.keys(t).reduce(function(u,l){return null!=t[l]&&(u[l]=t[l]),u},{})),y)void 0!==y[e]&&void 0===c[e]&&(t[e]=y[e]);return Object.keys(t).length>0?t:void 0},diff:function(y,c){"object"!=typeof y&&(y={}),"object"!=typeof c&&(c={});var o=Object.keys(y).concat(Object.keys(c)).reduce(function(t,e){return P(y[e],c[e])||(t[e]=void 0===c[e]?null:c[e]),t},{});return Object.keys(o).length>0?o:void 0},transform:function(y,c,o){if("object"!=typeof y)return c;if("object"==typeof c){if(!o)return c;var t=Object.keys(c).reduce(function(e,u){return void 0===y[u]&&(e[u]=c[u]),e},{});return Object.keys(t).length>0?t:void 0}}},iterator:function(y){return new m(y)},length:function(y){return"number"==typeof y.delete?y.delete:"number"==typeof y.retain?y.retain:"string"==typeof y.insert?y.insert.length:1}};function m(y){this.ops=y,this.index=0,this.offset=0}m.prototype.hasNext=function(){return this.peekLength()<1/0},m.prototype.next=function(y){y||(y=1/0);var c=this.ops[this.index];if(c){var o=this.offset,t=w.length(c);if(y>=t-o?(y=t-o,this.index+=1,this.offset=0):this.offset+=y,"number"==typeof c.delete)return{delete:y};var e={};return c.attributes&&(e.attributes=c.attributes),"number"==typeof c.retain?e.retain=y:e.insert="string"==typeof c.insert?c.insert.substr(o,y):c.insert,e}return{retain:1/0}},m.prototype.peek=function(){return this.ops[this.index]},m.prototype.peekLength=function(){return this.ops[this.index]?w.length(this.ops[this.index])-this.offset:1/0},m.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},m.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var y=this.offset,c=this.index,o=this.next(),t=this.ops.slice(this.index);return this.offset=y,this.index=c,[o].concat(t)}return[]},B.exports=w},function(B,O){var p=function(){"use strict";function P(l,a){return null!=a&&l instanceof a}var T,w,m;try{T=Map}catch{T=function(){}}try{w=Set}catch{w=function(){}}try{m=Promise}catch{m=function(){}}function y(l,a,r,i,f){"object"==typeof a&&(r=a.depth,i=a.prototype,f=a.includeNonEnumerable,a=a.circular);var n=[],s=[],A=typeof Buffer<"u";return typeof a>"u"&&(a=!0),typeof r>"u"&&(r=1/0),function g(b,N){if(null===b)return null;if(0===N)return b;var v,h;if("object"!=typeof b)return b;if(P(b,T))v=new T;else if(P(b,w))v=new w;else if(P(b,m))v=new m(function(R,E){b.then(function(S){R(g(S,N-1))},function(S){E(g(S,N-1))})});else if(y.__isArray(b))v=[];else if(y.__isRegExp(b))v=new RegExp(b.source,u(b)),b.lastIndex&&(v.lastIndex=b.lastIndex);else if(y.__isDate(b))v=new Date(b.getTime());else{if(A&&Buffer.isBuffer(b))return v=Buffer.allocUnsafe?Buffer.allocUnsafe(b.length):new Buffer(b.length),b.copy(v),v;P(b,Error)?v=Object.create(b):typeof i>"u"?(h=Object.getPrototypeOf(b),v=Object.create(h)):(v=Object.create(i),h=i)}if(a){var d=n.indexOf(b);if(-1!=d)return s[d];n.push(b),s.push(v)}for(var k in P(b,T)&&b.forEach(function(R,E){var S=g(E,N-1),L=g(R,N-1);v.set(S,L)}),P(b,w)&&b.forEach(function(R){var E=g(R,N-1);v.add(E)}),b){var _;h&&(_=Object.getOwnPropertyDescriptor(h,k)),(!_||null!=_.set)&&(v[k]=g(b[k],N-1))}if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(b);for(k=0;k<q.length;k++){var D=q[k];(C=Object.getOwnPropertyDescriptor(b,D))&&!C.enumerable&&!f||(v[D]=g(b[D],N-1),C.enumerable||Object.defineProperty(v,D,{enumerable:!1}))}}if(f){var Z=Object.getOwnPropertyNames(b);for(k=0;k<Z.length;k++){var C,I=Z[k];(C=Object.getOwnPropertyDescriptor(b,I))&&C.enumerable||(v[I]=g(b[I],N-1),Object.defineProperty(v,I,{enumerable:!1}))}}return v}(l,r)}function c(l){return Object.prototype.toString.call(l)}function u(l){var a="";return l.global&&(a+="g"),l.ignoreCase&&(a+="i"),l.multiline&&(a+="m"),a}return y.clonePrototype=function(a){if(null===a)return null;var r=function(){};return r.prototype=a,new r},y.__objToStr=c,y.__isDate=function o(l){return"object"==typeof l&&"[object Date]"===c(l)},y.__isArray=function t(l){return"object"==typeof l&&"[object Array]"===c(l)},y.__isRegExp=function e(l){return"object"==typeof l&&"[object RegExp]"===c(l)},y.__getRegExpFlags=u,y}();"object"==typeof B&&B.exports&&(B.exports=p)},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return function v(h,d){var k=[],_=!0,q=!1,D=void 0;try{for(var Z,C=h[Symbol.iterator]();!(_=(Z=C.next()).done)&&(k.push(Z.value),!d||k.length!==d);_=!0);}catch(I){q=!0,D=I}finally{try{!_&&C.return&&C.return()}finally{if(q)throw D}}return k}(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function v(h,d){for(var k=0;k<d.length;k++){var _=d[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,_.key,_)}}return function(h,d,k){return d&&v(h.prototype,d),k&&v(h,k),h}}(),w=function v(h,d,k){null===h&&(h=Function.prototype);var _=Object.getOwnPropertyDescriptor(h,d);if(void 0===_){var q=Object.getPrototypeOf(h);return null===q?void 0:v(q,d,k)}if("value"in _)return _.value;var D=_.get;return void 0===D?void 0:D.call(k)},y=n(p(0)),o=n(p(8)),t=p(4),e=n(t),l=n(p(16)),r=n(p(13)),f=n(p(25));function n(v){return v&&v.__esModule?v:{default:v}}function b(v){return v instanceof e.default||v instanceof t.BlockEmbed}var N=function(v){function h(d,k){!function s(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}(this,h);var _=function A(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?v:h}(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d));return _.emitter=k.emitter,Array.isArray(k.whitelist)&&(_.whitelist=k.whitelist.reduce(function(q,D){return q[D]=!0,q},{})),_.domNode.addEventListener("DOMNodeInserted",function(){}),_.optimize(),_.enable(),_}return function g(v,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}(h,v),T(h,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(k,_){var q=this.line(k),D=P(q,2),C=D[0],Z=D[1],I=this.line(k+_),E=P(I,1)[0];if(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"deleteAt",this).call(this,k,_),null!=E&&C!==E&&Z>0){if(C instanceof t.BlockEmbed||E instanceof t.BlockEmbed)return void this.optimize();if(C instanceof r.default){var S=C.newlineIndex(C.length(),!0);if(S>-1&&(C=C.split(S+1))===E)return void this.optimize()}else if(E instanceof r.default){var L=E.newlineIndex(0);L>-1&&E.split(L+1)}C.moveChildren(E,E.children.head instanceof l.default?null:E.children.head),C.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(k,_,q,D){null!=this.whitelist&&!this.whitelist[q]||(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"formatAt",this).call(this,k,_,q,D),this.optimize())}},{key:"insertAt",value:function(k,_,q){if(null==q||null==this.whitelist||this.whitelist[_]){if(k>=this.length())if(null==q||null==y.default.query(_,y.default.Scope.BLOCK)){var D=y.default.create(this.statics.defaultChild);this.appendChild(D),null==q&&_.endsWith("\n")&&(_=_.slice(0,-1)),D.insertAt(0,_,q)}else{var C=y.default.create(_,q);this.appendChild(C)}else w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertAt",this).call(this,k,_,q);this.optimize()}}},{key:"insertBefore",value:function(k,_){if(k.statics.scope===y.default.Scope.INLINE_BLOT){var q=y.default.create(this.statics.defaultChild);q.appendChild(k),k=q}w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"insertBefore",this).call(this,k,_)}},{key:"leaf",value:function(k){return this.path(k).pop()||[null,-1]}},{key:"line",value:function(k){return k===this.length()?this.line(k-1):this.descendant(b,k)}},{key:"lines",value:function(){return function D(C,Z,I){var R=[],E=I;return C.children.forEachAt(Z,I,function(S,L,F){b(S)?R.push(S):S instanceof y.default.Container&&(R=R.concat(D(S,L,E))),E-=F}),R}(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 k=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],_=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"optimize",this).call(this,k,_),k.length>0&&this.emitter.emit(o.default.events.SCROLL_OPTIMIZE,k,_))}},{key:"path",value:function(k){return w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"path",this).call(this,k).slice(1)}},{key:"update",value:function(k){if(!0!==this.batch){var _=o.default.sources.USER;"string"==typeof k&&(_=k),Array.isArray(k)||(k=this.observer.takeRecords()),k.length>0&&this.emitter.emit(o.default.events.SCROLL_BEFORE_UPDATE,_,k),w(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"update",this).call(this,k.concat([])),k.length>0&&this.emitter.emit(o.default.events.SCROLL_UPDATE,_,k)}}}]),h}(y.default.Scroll);N.blotName="scroll",N.className="ql-editor",N.tagName="DIV",N.defaultChild="block",N.allowedChildren=[e.default,t.BlockEmbed,f.default],O.default=N},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SHORTKEY=O.default=void 0;var P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(x){return typeof x}:function(x){return x&&"function"==typeof Symbol&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},T=function(j,U){if(Array.isArray(j))return j;if(Symbol.iterator in Object(j))return function x(j,U){var H=[],V=!0,Y=!1,X=void 0;try{for(var nt,Q=j[Symbol.iterator]();!(V=(nt=Q.next()).done)&&(H.push(nt.value),!U||H.length!==U);V=!0);}catch(rt){Y=!0,X=rt}finally{try{!V&&Q.return&&Q.return()}finally{if(Y)throw X}}return H}(j,U);throw new TypeError("Invalid attempt to destructure non-iterable instance")},w=function(){function x(j,U){for(var H=0;H<U.length;H++){var V=U[H];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(j,V.key,V)}}return function(j,U,H){return U&&x(j.prototype,U),H&&x(j,H),j}}(),y=v(p(21)),o=v(p(11)),e=v(p(3)),l=v(p(2)),r=v(p(20)),f=v(p(0)),s=v(p(5)),g=v(p(10)),N=v(p(9));function v(x){return x&&x.__esModule?x:{default:x}}function h(x,j,U){return j in x?Object.defineProperty(x,j,{value:U,enumerable:!0,configurable:!0,writable:!0}):x[j]=U,x}var q=(0,g.default)("quill:keyboard"),D=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",C=function(x){function j(U,H){!function d(x,j){if(!(x instanceof j))throw new TypeError("Cannot call a class as a function")}(this,j);var V=function k(x,j){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!j||"object"!=typeof j&&"function"!=typeof j?x:j}(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,U,H));return V.bindings={},Object.keys(V.options.bindings).forEach(function(Y){"list autofill"===Y&&null!=U.scroll.whitelist&&!U.scroll.whitelist.list||V.options.bindings[Y]&&V.addBinding(V.options.bindings[Y])}),V.addBinding({key:j.keys.ENTER,shiftKey:null},S),V.addBinding({key:j.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0},I),V.addBinding({key:j.keys.DELETE},{collapsed:!0},R)):(V.addBinding({key:j.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},I),V.addBinding({key:j.keys.DELETE},{collapsed:!0,suffix:/^.?$/},R)),V.addBinding({key:j.keys.BACKSPACE},{collapsed:!1},E),V.addBinding({key:j.keys.DELETE},{collapsed:!1},E),V.addBinding({key:j.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},I),V.listen(),V}return function _(x,j){if("function"!=typeof j&&null!==j)throw new TypeError("Super expression must either be null or a function, not "+typeof j);x.prototype=Object.create(j&&j.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(x,j):x.__proto__=j)}(j,x),w(j,null,[{key:"match",value:function(H,V){return V=M(V),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(Y){return!!V[Y]!==H[Y]&&null!==V[Y]})&&V.key===(H.which||H.keyCode)}}]),w(j,[{key:"addBinding",value:function(H){var V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},X=M(H);if(null==X||null==X.key)return q.warn("Attempted to add invalid keyboard binding",X);"function"==typeof V&&(V={handler:V}),"function"==typeof Y&&(Y={handler:Y}),X=(0,e.default)(X,V,Y),this.bindings[X.key]=this.bindings[X.key]||[],this.bindings[X.key].push(X)}},{key:"listen",value:function(){var H=this;this.quill.root.addEventListener("keydown",function(V){if(!V.defaultPrevented){var X=(H.bindings[V.which||V.keyCode]||[]).filter(function(ot){return j.match(V,ot)});if(0!==X.length){var Q=H.quill.getSelection();if(null!=Q&&H.quill.hasFocus()){var nt=H.quill.getLine(Q.index),rt=T(nt,2),at=rt[0],lt=rt[1],z=H.quill.getLeaf(Q.index),K=T(z,2),$=K[0],G=K[1],W=0===Q.length?[$,G]:H.quill.getLeaf(Q.index+Q.length),J=T(W,2),tt=J[0],et=J[1],ut=$ instanceof f.default.Text?$.value().slice(0,G):"",ft=tt instanceof f.default.Text?tt.value().slice(et):"",it={collapsed:0===Q.length,empty:0===Q.length&&at.length()<=1,format:H.quill.getFormat(Q),offset:lt,prefix:ut,suffix:ft};X.some(function(ot){if(null!=ot.collapsed&&ot.collapsed!==it.collapsed||null!=ot.empty&&ot.empty!==it.empty||null!=ot.offset&&ot.offset!==it.offset)return!1;if(Array.isArray(ot.format)){if(ot.format.every(function(st){return null==it.format[st]}))return!1}else if("object"===P(ot.format)&&!Object.keys(ot.format).every(function(st){return!0===ot.format[st]?null!=it.format[st]:!1===ot.format[st]?null==it.format[st]:(0,o.default)(ot.format[st],it.format[st])}))return!1;return!(null!=ot.prefix&&!ot.prefix.test(it.prefix)||null!=ot.suffix&&!ot.suffix.test(it.suffix))&&!0!==ot.handler.call(H,Q,it)})&&V.preventDefault()}}}})}}]),j}(N.default);function Z(x,j){var U;return h(U={key:x,shiftKey:j,altKey:null},x===C.keys.LEFT?"prefix":"suffix",/^$/),h(U,"handler",function(Y){var X=Y.index;x===C.keys.RIGHT&&(X+=Y.length+1);var Q=this.quill.getLeaf(X);return!(T(Q,1)[0]instanceof f.default.Embed&&(x===C.keys.LEFT?j?this.quill.setSelection(Y.index-1,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index-1,s.default.sources.USER):j?this.quill.setSelection(Y.index,Y.length+1,s.default.sources.USER):this.quill.setSelection(Y.index+Y.length+1,s.default.sources.USER),1))}),U}function I(x,j){if(!(0===x.index||this.quill.getLength()<=1)){var U=this.quill.getLine(x.index),V=T(U,1)[0],Y={};if(0===j.offset){var X=this.quill.getLine(x.index-1),nt=T(X,1)[0];if(null!=nt&&nt.length()>1){var rt=V.formats(),at=this.quill.getFormat(x.index-1,1);Y=r.default.attributes.diff(rt,at)||{}}}var lt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(j.prefix)?2:1;this.quill.deleteText(x.index-lt,lt,s.default.sources.USER),Object.keys(Y).length>0&&this.quill.formatLine(x.index-lt,lt,Y,s.default.sources.USER),this.quill.focus()}}function R(x,j){var U=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(j.suffix)?2:1;if(!(x.index>=this.quill.getLength()-U)){var H={},V=0,Y=this.quill.getLine(x.index),Q=T(Y,1)[0];if(j.offset>=Q.length()-1){var nt=this.quill.getLine(x.index+1),at=T(nt,1)[0];if(at){var lt=Q.formats(),z=this.quill.getFormat(x.index,1);H=r.default.attributes.diff(lt,z)||{},V=at.length()}}this.quill.deleteText(x.index,U,s.default.sources.USER),Object.keys(H).length>0&&this.quill.formatLine(x.index+V-1,U,H,s.default.sources.USER)}}function E(x){var j=this.quill.getLines(x),U={};if(j.length>1){var H=j[0].formats(),V=j[j.length-1].formats();U=r.default.attributes.diff(V,H)||{}}this.quill.deleteText(x,s.default.sources.USER),Object.keys(U).length>0&&this.quill.formatLine(x.index,1,U,s.default.sources.USER),this.quill.setSelection(x.index,s.default.sources.SILENT),this.quill.focus()}function S(x,j){var U=this;x.length>0&&this.quill.scroll.deleteAt(x.index,x.length);var H=Object.keys(j.format).reduce(function(V,Y){return f.default.query(Y,f.default.Scope.BLOCK)&&!Array.isArray(j.format[Y])&&(V[Y]=j.format[Y]),V},{});this.quill.insertText(x.index,"\n",H,s.default.sources.USER),this.quill.setSelection(x.index+1,s.default.sources.SILENT),this.quill.focus(),Object.keys(j.format).forEach(function(V){null==H[V]&&(Array.isArray(j.format[V])||"link"!==V&&U.quill.format(V,j.format[V],s.default.sources.USER))})}function L(x){return{key:C.keys.TAB,shiftKey:!x,format:{"code-block":!0},handler:function(U){var H=f.default.query("code-block"),V=U.index,Y=U.length,X=this.quill.scroll.descendant(H,V),Q=T(X,2),nt=Q[0],rt=Q[1];if(null!=nt){var at=this.quill.getIndex(nt),lt=nt.newlineIndex(rt,!0)+1,z=nt.newlineIndex(at+rt+Y),K=nt.domNode.textContent.slice(lt,z).split("\n");rt=0,K.forEach(function($,G){x?(nt.insertAt(lt+rt,H.TAB),rt+=H.TAB.length,0===G?V+=H.TAB.length:Y+=H.TAB.length):$.startsWith(H.TAB)&&(nt.deleteAt(lt+rt,H.TAB.length),rt-=H.TAB.length,0===G?V-=H.TAB.length:Y-=H.TAB.length),rt+=$.length+1}),this.quill.update(s.default.sources.USER),this.quill.setSelection(V,Y,s.default.sources.SILENT)}}}}function F(x){return{key:x[0].toUpperCase(),shortKey:!0,handler:function(U,H){this.quill.format(x,!H.format[x],s.default.sources.USER)}}}function M(x){if("string"==typeof x||"number"==typeof x)return M({key:x});if("object"===(typeof x>"u"?"undefined":P(x))&&(x=(0,y.default)(x,!1)),"string"==typeof x.key)if(null!=C.keys[x.key.toUpperCase()])x.key=C.keys[x.key.toUpperCase()];else{if(1!==x.key.length)return null;x.key=x.key.toUpperCase().charCodeAt(0)}return x.shortKey&&(x[D]=x.shortKey,delete x.shortKey),x}C.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},C.DEFAULTS={bindings:{bold:F("bold"),italic:F("italic"),underline:F("underline"),indent:{key:C.keys.TAB,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&0!==U.offset)return!0;this.quill.format("indent","+1",s.default.sources.USER)}},outdent:{key:C.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(j,U){if(U.collapsed&&0!==U.offset)return!0;this.quill.format("indent","-1",s.default.sources.USER)}},"outdent backspace":{key:C.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(j,U){null!=U.format.indent?this.quill.format("indent","-1",s.default.sources.USER):null!=U.format.list&&this.quill.format("list",!1,s.default.sources.USER)}},"indent code-block":L(!0),"outdent code-block":L(!1),"remove tab":{key:C.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(j){this.quill.deleteText(j.index-1,1,s.default.sources.USER)}},tab:{key:C.keys.TAB,handler:function(j){this.quill.history.cutoff();var U=(new l.default).retain(j.index).delete(j.length).insert("\t");this.quill.updateContents(U,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index+1,s.default.sources.SILENT)}},"list empty enter":{key:C.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(j,U){this.quill.format("list",!1,s.default.sources.USER),U.format.indent&&this.quill.format("indent",!1,s.default.sources.USER)}},"checklist enter":{key:C.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(j){var U=this.quill.getLine(j.index),H=T(U,2),V=H[0],Y=H[1],X=(0,e.default)({},V.formats(),{list:"checked"}),Q=(new l.default).retain(j.index).insert("\n",X).retain(V.length()-Y-1).retain(1,{list:"unchecked"});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:C.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(j,U){var H=this.quill.getLine(j.index),V=T(H,2),Y=V[0],X=V[1],Q=(new l.default).retain(j.index).insert("\n",U.format).retain(Y.length()-X-1).retain(1,{header:null});this.quill.updateContents(Q,s.default.sources.USER),this.quill.setSelection(j.index+1,s.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(j,U){var H=U.prefix.length,V=this.quill.getLine(j.index),Y=T(V,2),X=Y[0],Q=Y[1];if(Q>H)return!0;var nt=void 0;switch(U.prefix.trim()){case"[]":case"[ ]":nt="unchecked";break;case"[x]":nt="checked";break;case"-":case"*":nt="bullet";break;default:nt="ordered"}this.quill.insertText(j.index," ",s.default.sources.USER),this.quill.history.cutoff();var rt=(new l.default).retain(j.index-Q).delete(H+1).retain(X.length()-2-Q).retain(1,{list:nt});this.quill.updateContents(rt,s.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(j.index-H,s.default.sources.SILENT)}},"code exit":{key:C.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(j){var U=this.quill.getLine(j.index),H=T(U,2),V=H[0],Y=H[1],X=(new l.default).retain(j.index+V.length()-Y-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(X,s.default.sources.USER)}},"embed left":Z(C.keys.LEFT,!1),"embed left shift":Z(C.keys.LEFT,!0),"embed right":Z(C.keys.RIGHT,!1),"embed right shift":Z(C.keys.RIGHT,!0)}},O.default=C,O.SHORTKEY=D},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(i,f){if(Array.isArray(i))return i;if(Symbol.iterator in Object(i))return function r(i,f){var n=[],s=!0,A=!1,g=void 0;try{for(var N,b=i[Symbol.iterator]();!(s=(N=b.next()).done)&&(n.push(N.value),!f||n.length!==f);s=!0);}catch(v){A=!0,g=v}finally{try{!s&&b.return&&b.return()}finally{if(A)throw g}}return n}(i,f);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function r(i,f,n){null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(void 0===s){var A=Object.getPrototypeOf(i);return null===A?void 0:r(A,f,n)}if("value"in s)return s.value;var g=s.get;return void 0===g?void 0:g.call(n)},w=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),y=t(p(0)),o=t(p(7));function t(r){return r&&r.__esModule?r:{default:r}}var a=function(r){function i(f,n){!function e(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i);var s=function u(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?r:i}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return s.selection=n,s.textNode=document.createTextNode(i.CONTENTS),s.domNode.appendChild(s.textNode),s._length=0,s}return function l(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}(i,r),w(i,null,[{key:"value",value:function(){}}]),w(i,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(n,s){if(0!==this._length)return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"format",this).call(this,n,s);for(var A=this,g=0;null!=A&&A.statics.scope!==y.default.Scope.BLOCK_BLOT;)g+=A.offset(A.parent),A=A.parent;null!=A&&(this._length=i.CONTENTS.length,A.optimize(),A.formatAt(g,i.CONTENTS.length,n,s),this._length=0)}},{key:"index",value:function(n,s){return n===this.textNode?0:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var n=this.textNode,s=this.selection.getNativeRange(),A=void 0,g=void 0,b=void 0;if(null!=s&&s.start.node===n&&s.end.node===n){var N=[n,s.start.offset,s.end.offset];A=N[0],g=N[1],b=N[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==i.CONTENTS){var v=this.textNode.data.split(i.CONTENTS).join("");this.next instanceof o.default?(A=this.next.domNode,this.next.insertAt(0,v),this.textNode.data=i.CONTENTS):(this.textNode.data=v,this.parent.insertBefore(y.default.create(this.textNode),this),this.textNode=document.createTextNode(i.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=g){var h=[g,b].map(function(k){return Math.max(0,Math.min(A.data.length,k-1))}),d=P(h,2);return{startNode:A,startOffset:g=d[0],endNode:A,endOffset:b=d[1]}}}}},{key:"update",value:function(n,s){var A=this;if(n.some(function(b){return"characterData"===b.type&&b.target===A.textNode})){var g=this.restore();g&&(s.range=g)}}},{key:"value",value:function(){return""}}]),i}(y.default.Embed);a.blotName="cursor",a.className="ql-cursor",a.tagName="span",a.CONTENTS="\ufeff",O.default=a},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var T=y(p(0)),w=p(4),m=y(w);function y(u){return u&&u.__esModule?u:{default:u}}var e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),l}(T.default.Container);e.allowedChildren=[m.default,w.BlockEmbed,e],O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.ColorStyle=O.ColorClass=O.ColorAttributor=void 0;var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},m=function y(a){return a&&a.__esModule?a:{default:a}}(p(0));var e=function(a){function r(){return function c(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function o(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function t(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"value",value:function(f){var n=T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"value",this).call(this,f);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(s){return("00"+parseInt(s).toString(16)).slice(-2)}).join(""):n}}]),r}(m.default.Attributor.Style),u=new m.default.Attributor.Class("color","ql-color",{scope:m.default.Scope.INLINE}),l=new e("color","color",{scope:m.default.Scope.INLINE});O.ColorAttributor=e,O.ColorClass=u,O.ColorStyle=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.sanitize=O.default=void 0;var P=function(){function l(a,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),T=function l(a,r,i){null===a&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(void 0===f){var n=Object.getPrototypeOf(a);return null===n?void 0:l(n,r,i)}if("value"in f)return f.value;var s=f.get;return void 0===s?void 0:s.call(i)};var e=function(l){function a(){return function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a),function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?l:a}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return function t(l,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}(a,l),P(a,[{key:"format",value:function(i,f){if(i!==this.statics.blotName||!f)return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"format",this).call(this,i,f);f=this.constructor.sanitize(f),this.domNode.setAttribute("href",f)}}],[{key:"create",value:function(i){var f=T(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,i);return i=this.sanitize(i),f.setAttribute("href",i),f.setAttribute("rel","noopener noreferrer"),f.setAttribute("target","_blank"),f}},{key:"formats",value:function(i){return i.getAttribute("href")}},{key:"sanitize",value:function(i){return u(i,this.PROTOCOL_WHITELIST)?i:this.SANITIZED_URL}}]),a}(function y(l){return l&&l.__esModule?l:{default:l}}(p(6)).default);function u(l,a){var r=document.createElement("a");r.href=l;var i=r.href.slice(0,r.href.indexOf(":"));return a.indexOf(i)>-1}e.blotName="link",e.tagName="A",e.SANITIZED_URL="about:blank",e.PROTOCOL_WHITELIST=["http","https","mailto","tel"],O.default=e,O.sanitize=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P="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},T=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),m=o(p(23)),c=o(p(107));function o(a){return a&&a.__esModule?a:{default:a}}var e=0;function u(a,r){a.setAttribute(r,"true"!==a.getAttribute(r))}var l=function(){function a(r){var i=this;(function t(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")})(this,a),this.select=r,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){i.togglePicker()}),this.label.addEventListener("keydown",function(f){switch(f.keyCode){case m.default.keys.ENTER:i.togglePicker();break;case m.default.keys.ESCAPE:i.escape(),f.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return T(a,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(i){var f=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),i.hasAttribute("value")&&n.setAttribute("data-value",i.getAttribute("value")),i.textContent&&n.setAttribute("data-label",i.textContent),n.addEventListener("click",function(){f.selectItem(n,!0)}),n.addEventListener("keydown",function(s){switch(s.keyCode){case m.default.keys.ENTER:f.selectItem(n,!0),s.preventDefault();break;case m.default.keys.ESCAPE:f.escape(),s.preventDefault()}}),n}},{key:"buildLabel",value:function(){var i=document.createElement("span");return i.classList.add("ql-picker-label"),i.innerHTML=c.default,i.tabIndex="0",i.setAttribute("role","button"),i.setAttribute("aria-expanded","false"),this.container.appendChild(i),i}},{key:"buildOptions",value:function(){var i=this,f=document.createElement("span");f.classList.add("ql-picker-options"),f.setAttribute("aria-hidden","true"),f.tabIndex="-1",f.id="ql-picker-options-"+e,e+=1,this.label.setAttribute("aria-controls",f.id),this.options=f,[].slice.call(this.select.options).forEach(function(n){var s=i.buildItem(n);f.appendChild(s),!0===n.selected&&i.selectItem(s)}),this.container.appendChild(f)}},{key:"buildPicker",value:function(){var i=this;[].slice.call(this.select.attributes).forEach(function(f){i.container.setAttribute(f.name,f.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var i=this;this.close(),setTimeout(function(){return i.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(i){var f=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(i!==n&&(n?.classList.remove("ql-selected"),null!=i&&(i.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(i.parentNode.children,i),i.hasAttribute("data-value")?this.label.setAttribute("data-value",i.getAttribute("data-value")):this.label.removeAttribute("data-value"),i.hasAttribute("data-label")?this.label.setAttribute("data-label",i.getAttribute("data-label")):this.label.removeAttribute("data-label"),f))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":P(Event))){var s=document.createEvent("Event");s.initEvent("change",!0,!0),this.select.dispatchEvent(s)}this.close()}}},{key:"update",value:function(){var i=void 0;if(this.select.selectedIndex>-1){var f=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];i=this.select.options[this.select.selectedIndex],this.selectItem(f)}else this.selectItem(null);var n=null!=i&&i!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),a}();O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var T=q(p(0)),m=q(p(5)),y=p(4),c=q(y),t=q(p(16)),u=q(p(25)),a=q(p(24)),i=q(p(35)),n=q(p(6)),A=q(p(22)),b=q(p(7)),v=q(p(55)),d=q(p(42)),_=q(p(23));function q(D){return D&&D.__esModule?D:{default:D}}m.default.register({"blots/block":c.default,"blots/block/embed":y.BlockEmbed,"blots/break":t.default,"blots/container":u.default,"blots/cursor":a.default,"blots/embed":i.default,"blots/inline":n.default,"blots/scroll":A.default,"blots/text":b.default,"modules/clipboard":v.default,"modules/history":d.default,"modules/keyboard":_.default}),T.default.register(c.default,t.default,a.default,n.default,A.default,b.default),O.default=m.default},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(1),T=function(){function w(m){this.domNode=m,this.domNode[P.DATA_KEY]={blot:this}}return Object.defineProperty(w.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),w.create=function(m){if(null==this.tagName)throw new P.ParchmentError("Blot definition missing tagName");var y;return Array.isArray(this.tagName)?("string"==typeof m&&(m=m.toUpperCase(),parseInt(m).toString()===m&&(m=parseInt(m))),y="number"==typeof m?document.createElement(this.tagName[m-1]):this.tagName.indexOf(m)>-1?document.createElement(m):document.createElement(this.tagName[0])):y=document.createElement(this.tagName),this.className&&y.classList.add(this.className),y},w.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},w.prototype.clone=function(){var m=this.domNode.cloneNode(!1);return P.create(m)},w.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[P.DATA_KEY]},w.prototype.deleteAt=function(m,y){this.isolate(m,y).remove()},w.prototype.formatAt=function(m,y,c,o){var t=this.isolate(m,y);if(null!=P.query(c,P.Scope.BLOT)&&o)t.wrap(c,o);else if(null!=P.query(c,P.Scope.ATTRIBUTE)){var e=P.create(this.statics.scope);t.wrap(e),e.format(c,o)}},w.prototype.insertAt=function(m,y,c){var o=null==c?P.create("text",y):P.create(y,c),t=this.split(m);this.parent.insertBefore(o,t)},w.prototype.insertInto=function(m,y){void 0===y&&(y=null),null!=this.parent&&this.parent.children.remove(this);var c=null;m.children.insertBefore(this,y),null!=y&&(c=y.domNode),(this.domNode.parentNode!=m.domNode||this.domNode.nextSibling!=c)&&m.domNode.insertBefore(this.domNode,c),this.parent=m,this.attach()},w.prototype.isolate=function(m,y){var c=this.split(m);return c.split(y),c},w.prototype.length=function(){return 1},w.prototype.offset=function(m){return void 0===m&&(m=this.parent),null==this.parent||this==m?0:this.parent.children.offset(this)+this.parent.offset(m)},w.prototype.optimize=function(m){null!=this.domNode[P.DATA_KEY]&&delete this.domNode[P.DATA_KEY].mutations},w.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},w.prototype.replace=function(m){null!=m.parent&&(m.parent.insertBefore(this,m.next),m.remove())},w.prototype.replaceWith=function(m,y){var c="string"==typeof m?P.create(m,y):m;return c.replace(this),c},w.prototype.split=function(m,y){return 0===m?this:this.next},w.prototype.update=function(m,y){},w.prototype.wrap=function(m,y){var c="string"==typeof m?P.create(m,y):m;return null!=this.parent&&this.parent.insertBefore(c,this.next),c.appendChild(this),c},w.blotName="abstract",w}();O.default=T},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=p(12),T=p(32),w=p(33),m=p(1),y=function(){function c(o){this.attributes={},this.domNode=o,this.build()}return c.prototype.attribute=function(o,t){t?o.add(this.domNode,t)&&(null!=o.value(this.domNode)?this.attributes[o.attrName]=o:delete this.attributes[o.attrName]):(o.remove(this.domNode),delete this.attributes[o.attrName])},c.prototype.build=function(){var o=this;this.attributes={};var t=P.default.keys(this.domNode),e=T.default.keys(this.domNode),u=w.default.keys(this.domNode);t.concat(e).concat(u).forEach(function(l){var a=m.query(l,m.Scope.ATTRIBUTE);a instanceof P.default&&(o.attributes[a.attrName]=a)})},c.prototype.copy=function(o){var t=this;Object.keys(this.attributes).forEach(function(e){var u=t.attributes[e].value(t.domNode);o.format(e,u)})},c.prototype.move=function(o){var t=this;this.copy(o),Object.keys(this.attributes).forEach(function(e){t.attributes[e].remove(t.domNode)}),this.attributes={}},c.prototype.values=function(){var o=this;return Object.keys(this.attributes).reduce(function(t,e){return t[e]=o.attributes[e].value(o.domNode),t},{})},c}();O.default=y},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});function w(y,c){return(y.getAttribute("class")||"").split(/\s+/).filter(function(t){return 0===t.indexOf(c+"-")})}Object.defineProperty(O,"__esModule",{value:!0});var m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.keys=function(o){return(o.getAttribute("class")||"").split(/\s+/).map(function(t){return t.split("-").slice(0,-1).join("-")})},c.prototype.add=function(o,t){return!!this.canAdd(o,t)&&(this.remove(o),o.classList.add(this.keyName+"-"+t),!0)},c.prototype.remove=function(o){w(o,this.keyName).forEach(function(e){o.classList.remove(e)}),0===o.classList.length&&o.removeAttribute("class")},c.prototype.value=function(o){var e=(w(o,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(o,e)?e:""},c}(p(12).default);O.default=m},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});function w(y){var c=y.split("-"),o=c.slice(1).map(function(t){return t[0].toUpperCase()+t.slice(1)}).join("");return c[0]+o}Object.defineProperty(O,"__esModule",{value:!0});var m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.keys=function(o){return(o.getAttribute("style")||"").split(";").map(function(t){return t.split(":")[0].trim()})},c.prototype.add=function(o,t){return!!this.canAdd(o,t)&&(o.style[w(this.keyName)]=t,!0)},c.prototype.remove=function(o){o.style[w(this.keyName)]="",o.getAttribute("style")||o.removeAttribute("style")},c.prototype.value=function(o){var t=o.style[w(this.keyName)];return this.canAdd(o,t)?t:""},c}(p(12).default);O.default=m},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function m(y,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,c,o){return c&&m(y.prototype,c),o&&m(y,o),y}}();var w=function(){function m(y,c){(function T(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,m),this.quill=y,this.options=c,this.modules={}}return P(m,[{key:"init",value:function(){var c=this;Object.keys(this.options.modules).forEach(function(o){null==c.modules[o]&&c.addModule(o)})}},{key:"addModule",value:function(c){var o=this.quill.constructor.import("modules/"+c);return this.modules[c]=new o(this.quill,this.options.modules[c]||{}),this.modules[c]}}]),m}();w.DEFAULTS={modules:{}},w.themes={default:w},O.default=w},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),T=function r(i,f,n){null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(void 0===s){var A=Object.getPrototypeOf(i);return null===A?void 0:r(A,f,n)}if("value"in s)return s.value;var g=s.get;return void 0===g?void 0:g.call(n)},m=o(p(0)),c=o(p(7));function o(r){return r&&r.__esModule?r:{default:r}}var l="\ufeff",a=function(r){function i(f){!function t(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i);var n=function e(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?r:i}(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,f));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach(function(s){n.contentNode.appendChild(s)}),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function u(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}(i,r),P(i,[{key:"index",value:function(n,s){return n===this.leftGuard?0:n===this.rightGuard?1:T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"index",this).call(this,n,s)}},{key:"restore",value:function(n){var s=void 0,A=void 0,g=n.data.split(l).join("");if(n===this.leftGuard)if(this.prev instanceof c.default){var b=this.prev.length();this.prev.insertAt(b,g),s={startNode:this.prev.domNode,startOffset:b+g.length}}else A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this),s={startNode:A,startOffset:g.length};else n===this.rightGuard&&(this.next instanceof c.default?(this.next.insertAt(0,g),s={startNode:this.next.domNode,startOffset:g.length}):(A=document.createTextNode(g),this.parent.insertBefore(m.default.create(A),this.next),s={startNode:A,startOffset:g.length}));return n.data=l,s}},{key:"update",value:function(n,s){var A=this;n.forEach(function(g){if("characterData"===g.type&&(g.target===A.leftGuard||g.target===A.rightGuard)){var b=A.restore(g.target);b&&(s.range=b)}})}}]),i}(m.default.Embed);O.default=a},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.AlignStyle=O.AlignClass=O.AlignAttribute=void 0;var T=function w(t){return t&&t.__esModule?t:{default:t}}(p(0));var m={scope:T.default.Scope.BLOCK,whitelist:["right","center","justify"]},y=new T.default.Attributor.Attribute("align","align",m),c=new T.default.Attributor.Class("align","ql-align",m),o=new T.default.Attributor.Style("align","text-align",m);O.AlignAttribute=y,O.AlignClass=c,O.AlignStyle=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.BackgroundStyle=O.BackgroundClass=void 0;var T=function m(o){return o&&o.__esModule?o:{default:o}}(p(0)),w=p(26);var y=new T.default.Attributor.Class("background","ql-bg",{scope:T.default.Scope.INLINE}),c=new w.ColorAttributor("background","background-color",{scope:T.default.Scope.INLINE});O.BackgroundClass=y,O.BackgroundStyle=c},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.DirectionStyle=O.DirectionClass=O.DirectionAttribute=void 0;var T=function w(t){return t&&t.__esModule?t:{default:t}}(p(0));var m={scope:T.default.Scope.BLOCK,whitelist:["rtl"]},y=new T.default.Attributor.Attribute("direction","dir",m),c=new T.default.Attributor.Class("direction","ql-direction",m),o=new T.default.Attributor.Style("direction","direction",m);O.DirectionAttribute=y,O.DirectionClass=c,O.DirectionStyle=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.FontClass=O.FontStyle=void 0;var P=function(){function r(i,f){for(var n=0;n<f.length;n++){var s=f[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,s.key,s)}}return function(i,f,n){return f&&r(i.prototype,f),n&&r(i,n),i}}(),T=function r(i,f,n){null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,f);if(void 0===s){var A=Object.getPrototypeOf(i);return null===A?void 0:r(A,f,n)}if("value"in s)return s.value;var g=s.get;return void 0===g?void 0:g.call(n)},m=function y(r){return r&&r.__esModule?r:{default:r}}(p(0));var e={scope:m.default.Scope.INLINE,whitelist:["serif","monospace"]},u=new m.default.Attributor.Class("font","ql-font",e),l=function(r){function i(){return function c(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}(this,i),function o(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?r:i}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}return function t(r,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}(i,r),P(i,[{key:"value",value:function(n){return T(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),"value",this).call(this,n).replace(/["']/g,"")}}]),i}(m.default.Attributor.Style),a=new l("font","font-family",e);O.FontStyle=a,O.FontClass=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.SizeStyle=O.SizeClass=void 0;var T=function w(c){return c&&c.__esModule?c:{default:c}}(p(0));var m=new T.default.Attributor.Class("size","ql-size",{scope:T.default.Scope.INLINE,whitelist:["small","large","huge"]}),y=new T.default.Attributor.Style("size","font-size",{scope:T.default.Scope.INLINE,whitelist:["10px","18px","32px"]});O.SizeClass=m,O.SizeStyle=y},function(B,O,p){"use strict";B.exports={align:{"":p(76),center:p(77),right:p(78),justify:p(79)},background:p(80),blockquote:p(81),bold:p(82),clean:p(83),code:p(58),"code-block":p(58),color:p(84),direction:{"":p(85),rtl:p(86)},float:{center:p(87),full:p(88),left:p(89),right:p(90)},formula:p(91),header:{1:p(92),2:p(93)},italic:p(94),image:p(95),indent:{"+1":p(96),"-1":p(97)},link:p(98),list:{ordered:p(99),bullet:p(100),check:p(101)},script:{sub:p(102),super:p(103)},strike:p(104),underline:p(105),video:p(106)}},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.getLastChangeIndex=O.default=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),w=t(p(0)),y=t(p(5));function t(f){return f&&f.__esModule?f:{default:f}}var a=function(f){function n(s,A){!function e(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n);var g=function u(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?f:n}(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,s,A));return g.lastRecorded=0,g.ignoreChange=!1,g.clear(),g.quill.on(y.default.events.EDITOR_CHANGE,function(b,N,v,h){b!==y.default.events.TEXT_CHANGE||g.ignoreChange||(g.options.userOnly&&h!==y.default.sources.USER?g.transform(N):g.record(N,v))}),g.quill.keyboard.addBinding({key:"Z",shortKey:!0},g.undo.bind(g)),g.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},g.redo.bind(g)),/Win/i.test(navigator.platform)&&g.quill.keyboard.addBinding({key:"Y",shortKey:!0},g.redo.bind(g)),g}return function l(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}(n,f),P(n,[{key:"change",value:function(A,g){if(0!==this.stack[A].length){var b=this.stack[A].pop();this.stack[g].push(b),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(b[A],y.default.sources.USER),this.ignoreChange=!1;var N=i(b[A]);this.quill.setSelection(N)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(A,g){if(0!==A.ops.length){this.stack.redo=[];var b=this.quill.getContents().diff(g),N=Date.now();if(this.lastRecorded+this.options.delay>N&&this.stack.undo.length>0){var v=this.stack.undo.pop();b=b.compose(v.undo),A=v.redo.compose(A)}else this.lastRecorded=N;this.stack.undo.push({redo:A,undo:b}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(A){this.stack.undo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)}),this.stack.redo.forEach(function(g){g.undo=A.transform(g.undo,!0),g.redo=A.transform(g.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),n}(t(p(9)).default);function i(f){var n=f.reduce(function(A,g){return A+(g.delete||0)},0),s=f.length()-n;return function r(f){var n=f.ops[f.ops.length-1];return null!=n&&(null!=n.insert?"string"==typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes&&Object.keys(n.attributes).some(function(s){return null!=w.default.query(s,w.default.Scope.BLOCK)}))}(f)&&(s-=1),s}a.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},O.default=a,O.getLastChangeIndex=i},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BaseTooltip=void 0;var P=function(){function S(L,F){for(var M=0;M<F.length;M++){var x=F[M];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(L,x.key,x)}}return function(L,F,M){return F&&S(L.prototype,F),M&&S(L,M),L}}(),T=function S(L,F,M){null===L&&(L=Function.prototype);var x=Object.getOwnPropertyDescriptor(L,F);if(void 0===x){var j=Object.getPrototypeOf(L);return null===j?void 0:S(j,F,M)}if("value"in x)return x.value;var U=x.get;return void 0===U?void 0:U.call(M)},m=N(p(3)),c=N(p(2)),t=N(p(8)),u=N(p(23)),a=N(p(34)),i=N(p(59)),n=N(p(60)),A=N(p(28)),b=N(p(61));function N(S){return S&&S.__esModule?S:{default:S}}function v(S,L){if(!(S instanceof L))throw new TypeError("Cannot call a class as a function")}function h(S,L){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!L||"object"!=typeof L&&"function"!=typeof L?S:L}function d(S,L){if("function"!=typeof L&&null!==L)throw new TypeError("Super expression must either be null or a function, not "+typeof L);S.prototype=Object.create(L&&L.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(S,L):S.__proto__=L)}var k=[!1,"center","right","justify"],_=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],q=[!1,"serif","monospace"],D=["1","2","3",!1],C=["small",!1,"large","huge"],Z=function(S){function L(F,M){v(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M));return F.emitter.listenDOM("click",document.body,function U(H){if(!document.body.contains(F.root))return document.body.removeEventListener("click",U);null!=x.tooltip&&!x.tooltip.root.contains(H.target)&&document.activeElement!==x.tooltip.textbox&&!x.quill.hasFocus()&&x.tooltip.hide(),null!=x.pickers&&x.pickers.forEach(function(V){V.container.contains(H.target)||V.close()})}),x}return d(L,S),P(L,[{key:"addModule",value:function(M){var x=T(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"addModule",this).call(this,M);return"toolbar"===M&&this.extendToolbar(x),x}},{key:"buildButtons",value:function(M,x){M.forEach(function(j){(j.getAttribute("class")||"").split(/\s+/).forEach(function(H){if(H.startsWith("ql-")&&(H=H.slice(3),null!=x[H]))if("direction"===H)j.innerHTML=x[H][""]+x[H].rtl;else if("string"==typeof x[H])j.innerHTML=x[H];else{var V=j.value||"";null!=V&&x[H][V]&&(j.innerHTML=x[H][V])}})})}},{key:"buildPickers",value:function(M,x){var j=this;this.pickers=M.map(function(H){if(H.classList.contains("ql-align"))return null==H.querySelector("option")&&E(H,k),new n.default(H,x.align);if(H.classList.contains("ql-background")||H.classList.contains("ql-color")){var V=H.classList.contains("ql-background")?"background":"color";return null==H.querySelector("option")&&E(H,_,"background"===V?"#ffffff":"#000000"),new i.default(H,x[V])}return null==H.querySelector("option")&&(H.classList.contains("ql-font")?E(H,q):H.classList.contains("ql-header")?E(H,D):H.classList.contains("ql-size")&&E(H,C)),new A.default(H)}),this.quill.on(t.default.events.EDITOR_CHANGE,function(){j.pickers.forEach(function(V){V.update()})})}}]),L}(a.default);Z.DEFAULTS=(0,m.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var L=this,F=this.container.querySelector("input.ql-image[type=file]");null==F&&((F=document.createElement("input")).setAttribute("type","file"),F.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),F.classList.add("ql-image"),F.addEventListener("change",function(){if(null!=F.files&&null!=F.files[0]){var M=new FileReader;M.onload=function(x){var j=L.quill.getSelection(!0);L.quill.updateContents((new c.default).retain(j.index).delete(j.length).insert({image:x.target.result}),t.default.sources.USER),L.quill.setSelection(j.index+1,t.default.sources.SILENT),F.value=""},M.readAsDataURL(F.files[0])}}),this.container.appendChild(F)),F.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var I=function(S){function L(F,M){v(this,L);var x=h(this,(L.__proto__||Object.getPrototypeOf(L)).call(this,F,M));return x.textbox=x.root.querySelector('input[type="text"]'),x.listen(),x}return d(L,S),P(L,[{key:"listen",value:function(){var M=this;this.textbox.addEventListener("keydown",function(x){u.default.match(x,"enter")?(M.save(),x.preventDefault()):u.default.match(x,"escape")&&(M.cancel(),x.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",x=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=x?this.textbox.value=x:M!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+M)||""),this.root.setAttribute("data-mode",M)}},{key:"restoreFocus",value:function(){var M=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=M}},{key:"save",value:function(){var M=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var x=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",M,t.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",M,t.default.sources.USER)),this.quill.root.scrollTop=x;break;case"video":M=function R(S){var L=S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||S.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return L?(L[1]||"https")+"://www.youtube.com/embed/"+L[2]+"?showinfo=0":(L=S.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(L[1]||"https")+"://player.vimeo.com/video/"+L[2]+"/":S}(M);case"formula":if(!M)break;var j=this.quill.getSelection(!0);if(null!=j){var U=j.index+j.length;this.quill.insertEmbed(U,this.root.getAttribute("data-mode"),M,t.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(U+1," ",t.default.sources.USER),this.quill.setSelection(U+2,t.default.sources.USER)}}this.textbox.value="",this.hide()}}]),L}(b.default);function E(S,L){var F=arguments.length>2&&void 0!==arguments[2]&&arguments[2];L.forEach(function(M){var x=document.createElement("option");M===F?x.setAttribute("selected","selected"):x.setAttribute("value",M),S.appendChild(x)})}O.BaseTooltip=I,O.default=Z},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function T(){this.head=this.tail=null,this.length=0}return T.prototype.append=function(){for(var w=[],m=0;m<arguments.length;m++)w[m]=arguments[m];this.insertBefore(w[0],null),w.length>1&&this.append.apply(this,w.slice(1))},T.prototype.contains=function(w){for(var m,y=this.iterator();m=y();)if(m===w)return!0;return!1},T.prototype.insertBefore=function(w,m){w&&(w.next=m,null!=m?(w.prev=m.prev,null!=m.prev&&(m.prev.next=w),m.prev=w,m===this.head&&(this.head=w)):null!=this.tail?(this.tail.next=w,w.prev=this.tail,this.tail=w):(w.prev=null,this.head=this.tail=w),this.length+=1)},T.prototype.offset=function(w){for(var m=0,y=this.head;null!=y;){if(y===w)return m;m+=y.length(),y=y.next}return-1},T.prototype.remove=function(w){this.contains(w)&&(null!=w.prev&&(w.prev.next=w.next),null!=w.next&&(w.next.prev=w.prev),w===this.head&&(this.head=w.next),w===this.tail&&(this.tail=w.prev),this.length-=1)},T.prototype.iterator=function(w){return void 0===w&&(w=this.head),function(){var m=w;return null!=w&&(w=w.next),m}},T.prototype.find=function(w,m){void 0===m&&(m=!1);for(var y,c=this.iterator();y=c();){var o=y.length();if(w<o||m&&w===o&&(null==y.next||0!==y.next.length()))return[y,w];w-=o}return[null,0]},T.prototype.forEach=function(w){for(var m,y=this.iterator();m=y();)w(m)},T.prototype.forEachAt=function(w,m,y){if(!(m<=0))for(var e,c=this.find(w),u=w-c[1],l=this.iterator(c[0]);(e=l())&&u<w+m;){var a=e.length();w>u?y(e,w-u,Math.min(m,u+a-w)):y(e,0,Math.min(a,w+m-u)),u+=a}},T.prototype.map=function(w){return this.reduce(function(m,y){return m.push(w(y)),m},[])},T.prototype.reduce=function(w,m){for(var y,c=this.iterator();y=c();)m=w(m,y);return m},T}();O.default=P},function(B,O,p){"use strict";var o,P=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var u in e)e.hasOwnProperty(u)&&(t[u]=e[u])},function(t,e){function u(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(u.prototype=e.prototype,new u)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(17),w=p(1),m={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=function(o){function t(e){var u=o.call(this,e)||this;return u.scroll=u,u.observer=new MutationObserver(function(l){u.update(l)}),u.observer.observe(u.domNode,m),u.attach(),u}return P(t,o),t.prototype.detach=function(){o.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(e,u){this.update(),0===e&&u===this.length()?this.children.forEach(function(l){l.remove()}):o.prototype.deleteAt.call(this,e,u)},t.prototype.formatAt=function(e,u,l,a){this.update(),o.prototype.formatAt.call(this,e,u,l,a)},t.prototype.insertAt=function(e,u,l){this.update(),o.prototype.insertAt.call(this,e,u,l)},t.prototype.optimize=function(e,u){var l=this;void 0===e&&(e=[]),void 0===u&&(u={}),o.prototype.optimize.call(this,u);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var r=function(s,A){void 0===A&&(A=!0),null!=s&&s!==l&&null!=s.domNode.parentNode&&(null==s.domNode[w.DATA_KEY].mutations&&(s.domNode[w.DATA_KEY].mutations=[]),A&&r(s.parent))},i=function(s){null==s.domNode[w.DATA_KEY]||null==s.domNode[w.DATA_KEY].mutations||(s instanceof T.default&&s.children.forEach(i),s.optimize(u))},f=e,n=0;f.length>0;n+=1){if(n>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(f.forEach(function(s){var A=w.find(s.target,!0);null!=A&&(A.domNode===s.target&&("childList"===s.type?(r(w.find(s.previousSibling,!1)),[].forEach.call(s.addedNodes,function(g){var b=w.find(g,!1);r(b,!1),b instanceof T.default&&b.children.forEach(function(N){r(N,!1)})})):"attributes"===s.type&&r(A.prev)),r(A))}),this.children.forEach(i),a=(f=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)e.push(a.pop())}},t.prototype.update=function(e,u){var l=this;void 0===u&&(u={}),(e=e||this.observer.takeRecords()).map(function(a){var r=w.find(a.target,!0);return null==r?null:null==r.domNode[w.DATA_KEY].mutations?(r.domNode[w.DATA_KEY].mutations=[a],r):(r.domNode[w.DATA_KEY].mutations.push(a),null)}).forEach(function(a){null==a||a===l||null==a.domNode[w.DATA_KEY]||a.update(a.domNode[w.DATA_KEY].mutations||[],u)}),null!=this.domNode[w.DATA_KEY].mutations&&o.prototype.update.call(this,this.domNode[w.DATA_KEY].mutations,u),this.optimize(e,u)},t.blotName="scroll",t.defaultChild="block",t.scope=w.Scope.BLOCK_BLOT,t.tagName="DIV",t}(T.default);O.default=c},function(B,O,p){"use strict";var c,P=this&&this.__extends||(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var e in t)t.hasOwnProperty(e)&&(o[e]=t[e])},function(o,t){function e(){this.constructor=o}c(o,t),o.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),w=p(1);var y=function(c){function o(){return null!==c&&c.apply(this,arguments)||this}return P(o,c),o.formats=function(t){if(t.tagName!==o.tagName)return c.formats.call(this,t)},o.prototype.format=function(t,e){var u=this;t!==this.statics.blotName||e?c.prototype.format.call(this,t,e):(this.children.forEach(function(l){l instanceof T.default||(l=l.wrap(o.blotName,!0)),u.attributes.copy(l)}),this.unwrap())},o.prototype.formatAt=function(t,e,u,l){null!=this.formats()[u]||w.query(u,w.Scope.ATTRIBUTE)?this.isolate(t,e).format(u,l):c.prototype.formatAt.call(this,t,e,u,l)},o.prototype.optimize=function(t){c.prototype.optimize.call(this,t);var e=this.formats();if(0===Object.keys(e).length)return this.unwrap();var u=this.next;u instanceof o&&u.prev===this&&function m(c,o){if(Object.keys(c).length!==Object.keys(o).length)return!1;for(var t in c)if(c[t]!==o[t])return!1;return!0}(e,u.formats())&&(u.moveChildren(this),u.remove())},o.blotName="inline",o.scope=w.Scope.INLINE_BLOT,o.tagName="SPAN",o}(T.default);O.default=y},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(18),w=p(1),m=function(y){function c(){return null!==y&&y.apply(this,arguments)||this}return P(c,y),c.formats=function(o){var t=w.query(c.blotName).tagName;if(o.tagName!==t)return y.formats.call(this,o)},c.prototype.format=function(o,t){null!=w.query(o,w.Scope.BLOCK)&&(o!==this.statics.blotName||t?y.prototype.format.call(this,o,t):this.replaceWith(c.blotName))},c.prototype.formatAt=function(o,t,e,u){null!=w.query(e,w.Scope.BLOCK)?this.format(e,u):y.prototype.formatAt.call(this,o,t,e,u)},c.prototype.insertAt=function(o,t,e){if(null==e||null!=w.query(t,w.Scope.INLINE))y.prototype.insertAt.call(this,o,t,e);else{var u=this.split(o),l=w.create(t,e);u.parent.insertBefore(l,u)}},c.prototype.update=function(o,t){navigator.userAgent.match(/Trident/)?this.build():y.prototype.update.call(this,o,t)},c.blotName="block",c.scope=w.Scope.BLOCK_BLOT,c.tagName="P",c}(T.default);O.default=m},function(B,O,p){"use strict";var m,P=this&&this.__extends||(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,c){y.__proto__=c}||function(y,c){for(var o in c)c.hasOwnProperty(o)&&(y[o]=c[o])},function(y,c){function o(){this.constructor=y}m(y,c),y.prototype=null===c?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(O,"__esModule",{value:!0});var w=function(m){function y(){return null!==m&&m.apply(this,arguments)||this}return P(y,m),y.formats=function(c){},y.prototype.format=function(c,o){m.prototype.formatAt.call(this,0,this.length(),c,o)},y.prototype.formatAt=function(c,o,t,e){0===c&&o===this.length()?this.format(t,e):m.prototype.formatAt.call(this,c,o,t,e)},y.prototype.formats=function(){return this.statics.formats(this.domNode)},y}(p(19).default);O.default=w},function(B,O,p){"use strict";var y,P=this&&this.__extends||(y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,o){c.__proto__=o}||function(c,o){for(var t in o)o.hasOwnProperty(t)&&(c[t]=o[t])},function(c,o){function t(){this.constructor=c}y(c,o),c.prototype=null===o?Object.create(o):(t.prototype=o.prototype,new t)});Object.defineProperty(O,"__esModule",{value:!0});var T=p(19),w=p(1),m=function(y){function c(o){var t=y.call(this,o)||this;return t.text=t.statics.value(t.domNode),t}return P(c,y),c.create=function(o){return document.createTextNode(o)},c.value=function(o){var t=o.data;return t.normalize&&(t=t.normalize()),t},c.prototype.deleteAt=function(o,t){this.domNode.data=this.text=this.text.slice(0,o)+this.text.slice(o+t)},c.prototype.index=function(o,t){return this.domNode===o?t:-1},c.prototype.insertAt=function(o,t,e){null==e?(this.text=this.text.slice(0,o)+t+this.text.slice(o),this.domNode.data=this.text):y.prototype.insertAt.call(this,o,t,e)},c.prototype.length=function(){return this.text.length},c.prototype.optimize=function(o){y.prototype.optimize.call(this,o),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof c&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},c.prototype.position=function(o,t){return void 0===t&&(t=!1),[this.domNode,o]},c.prototype.split=function(o,t){if(void 0===t&&(t=!1),!t){if(0===o)return this;if(o===this.length())return this.next}var e=w.create(this.domNode.splitText(o));return this.parent.insertBefore(e,this.next),this.text=this.statics.value(this.domNode),e},c.prototype.update=function(o,t){var e=this;o.some(function(u){return"characterData"===u.type&&u.target===e.domNode})&&(this.text=this.statics.value(this.domNode))},c.prototype.value=function(){return this.text},c.blotName="text",c.scope=w.Scope.INLINE_BLOT,c}(T.default);O.default=m},function(B,O,p){"use strict";var P=document.createElement("div");if(P.classList.toggle("test-class",!1),P.classList.contains("test-class")){var T=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(w,m){return arguments.length>1&&!this.contains(w)==!m?m:T.call(this,w)}}String.prototype.startsWith||(String.prototype.startsWith=function(w,m){return this.substr(m=m||0,w.length)===w}),String.prototype.endsWith||(String.prototype.endsWith=function(w,m){var y=this.toString();("number"!=typeof m||!isFinite(m)||Math.floor(m)!==m||m>y.length)&&(m=y.length);var c=y.indexOf(w,m-=w.length);return-1!==c&&c===m}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(m){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof m)throw new TypeError("predicate must be a function");for(var t,y=Object(this),c=y.length>>>0,o=arguments[1],e=0;e<c;e++)if(m.call(o,t=y[e],e,y))return t}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(B,O){var p=-1,P=1,T=0;function w(n,s,A){if(n==s)return n?[[T,n]]:[];(A<0||n.length<A)&&(A=null);var g=o(n,s),b=n.substring(0,g);g=t(n=n.substring(g),s=s.substring(g));var N=n.substring(n.length-g),v=function m(n,s){var A;if(!n)return[[P,s]];if(!s)return[[p,n]];var g=n.length>s.length?n:s,b=n.length>s.length?s:n,N=g.indexOf(b);if(-1!=N)return A=[[P,g.substring(0,N)],[T,b],[P,g.substring(N+b.length)]],n.length>s.length&&(A[0][0]=A[2][0]=p),A;if(1==b.length)return[[p,n],[P,s]];var v=function e(n,s){var A=n.length>s.length?n:s,g=n.length>s.length?s:n;if(A.length<4||2*g.length<A.length)return null;function b(C,Z,I){for(var L,F,M,x,R=C.substring(I,I+Math.floor(C.length/4)),E=-1,S="";-1!=(E=Z.indexOf(R,E+1));){var j=o(C.substring(I),Z.substring(E)),U=t(C.substring(0,I),Z.substring(0,E));S.length<U+j&&(S=Z.substring(E-U,E)+Z.substring(E,E+j),L=C.substring(0,I-U),F=C.substring(I+j),M=Z.substring(0,E-U),x=Z.substring(E+j))}return 2*S.length>=C.length?[L,F,M,x,S]:null}var h,d,k,_,q,N=b(A,g,Math.ceil(A.length/4)),v=b(A,g,Math.ceil(A.length/2));return N||v?(h=v?N&&N[4].length>v[4].length?N:v:N,n.length>s.length?(d=h[0],k=h[1],_=h[2],q=h[3]):(_=h[0],q=h[1],d=h[2],k=h[3]),[d,k,_,q,h[4]]):null}(n,s);if(v){var d=v[1],_=v[3],q=v[4],D=w(v[0],v[2]),C=w(d,_);return D.concat([[T,q]],C)}return function y(n,s){for(var A=n.length,g=s.length,b=Math.ceil((A+g)/2),N=b,v=2*b,h=new Array(v),d=new Array(v),k=0;k<v;k++)h[k]=-1,d[k]=-1;h[N+1]=0,d[N+1]=0;for(var _=A-g,q=_%2!=0,D=0,C=0,Z=0,I=0,R=0;R<b;R++){for(var E=-R+D;E<=R-C;E+=2){for(var S=N+E,F=(L=E==-R||E!=R&&h[S-1]<h[S+1]?h[S+1]:h[S-1]+1)-E;L<A&&F<g&&n.charAt(L)==s.charAt(F);)L++,F++;if(h[S]=L,L>A)C+=2;else if(F>g)D+=2;else if(q&&(M=N+_-E)>=0&&M<v&&-1!=d[M]&&L>=(x=A-d[M]))return c(n,s,L,F)}for(var j=-R+Z;j<=R-I;j+=2){for(var x,M=N+j,U=(x=j==-R||j!=R&&d[M-1]<d[M+1]?d[M+1]:d[M-1]+1)-j;x<A&&U<g&&n.charAt(A-x-1)==s.charAt(g-U-1);)x++,U++;if(d[M]=x,x>A)I+=2;else if(U>g)Z+=2;else if(!q){var L;if((S=N+_-j)>=0&&S<v&&-1!=h[S]&&(F=N+(L=h[S])-S,L>=(x=A-x)))return c(n,s,L,F)}}}return[[p,n],[P,s]]}(n,s)}(n=n.substring(0,n.length-g),s=s.substring(0,s.length-g));return b&&v.unshift([T,b]),N&&v.push([T,N]),u(v),null!=A&&(v=function r(n,s){var A=function a(n,s){if(0===s)return[T,n];for(var A=0,g=0;g<n.length;g++){var b=n[g];if(b[0]===p||b[0]===T){var N=A+b[1].length;if(s===N)return[g+1,n];if(s<N){n=n.slice();var v=s-A,h=[b[0],b[1].slice(0,v)],d=[b[0],b[1].slice(v)];return n.splice(g,1,h,d),[g+1,n]}A=N}}throw new Error("cursor_pos is out of bounds!")}(n,s),g=A[1],b=A[0],N=g[b],v=g[b+1];if(null==N)return n;if(N[0]!==T)return n;if(null!=v&&N[1]+v[1]===v[1]+N[1])return g.splice(b,2,v,N),f(g,b,2);if(null!=v&&0===v[1].indexOf(N[1])){g.splice(b,2,[v[0],N[1]],[0,N[1]]);var h=v[1].slice(N[1].length);return h.length>0&&g.splice(b+2,0,[v[0],h]),f(g,b,3)}return n}(v,A)),function i(n){for(var s=!1,A=function(v){return v.charCodeAt(0)>=56320&&v.charCodeAt(0)<=57343},g=function(v){return v.charCodeAt(v.length-1)>=55296&&v.charCodeAt(v.length-1)<=56319},b=2;b<n.length;b+=1)n[b-2][0]===T&&g(n[b-2][1])&&n[b-1][0]===p&&A(n[b-1][1])&&n[b][0]===P&&A(n[b][1])&&(s=!0,n[b-1][1]=n[b-2][1].slice(-1)+n[b-1][1],n[b][1]=n[b-2][1].slice(-1)+n[b][1],n[b-2][1]=n[b-2][1].slice(0,-1));if(!s)return n;var N=[];for(b=0;b<n.length;b+=1)n[b][1].length>0&&N.push(n[b]);return N}(v)}function c(n,s,A,g){var b=n.substring(0,A),N=s.substring(0,g),v=n.substring(A),h=s.substring(g),d=w(b,N),k=w(v,h);return d.concat(k)}function o(n,s){if(!n||!s||n.charAt(0)!=s.charAt(0))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(N,b)==s.substring(N,b)?N=A=b:g=b,b=Math.floor((g-A)/2+A);return b}function t(n,s){if(!n||!s||n.charAt(n.length-1)!=s.charAt(s.length-1))return 0;for(var A=0,g=Math.min(n.length,s.length),b=g,N=0;A<b;)n.substring(n.length-b,n.length-N)==s.substring(s.length-b,s.length-N)?N=A=b:g=b,b=Math.floor((g-A)/2+A);return b}function u(n){n.push([T,""]);for(var v,s=0,A=0,g=0,b="",N="";s<n.length;)switch(n[s][0]){case P:g++,N+=n[s][1],s++;break;case p:A++,b+=n[s][1],s++;break;case T:A+g>1?(0!==A&&0!==g&&(0!==(v=o(N,b))&&(s-A-g>0&&n[s-A-g-1][0]==T?n[s-A-g-1][1]+=N.substring(0,v):(n.splice(0,0,[T,N.substring(0,v)]),s++),N=N.substring(v),b=b.substring(v)),0!==(v=t(N,b))&&(n[s][1]=N.substring(N.length-v)+n[s][1],N=N.substring(0,N.length-v),b=b.substring(0,b.length-v))),0===A?n.splice(s-g,A+g,[P,N]):0===g?n.splice(s-A,A+g,[p,b]):n.splice(s-A-g,A+g,[p,b],[P,N]),s=s-A-g+(A?1:0)+(g?1:0)+1):0!==s&&n[s-1][0]==T?(n[s-1][1]+=n[s][1],n.splice(s,1)):s++,g=0,A=0,b="",N=""}""===n[n.length-1][1]&&n.pop();var h=!1;for(s=1;s<n.length-1;)n[s-1][0]==T&&n[s+1][0]==T&&(n[s][1].substring(n[s][1].length-n[s-1][1].length)==n[s-1][1]?(n[s][1]=n[s-1][1]+n[s][1].substring(0,n[s][1].length-n[s-1][1].length),n[s+1][1]=n[s-1][1]+n[s+1][1],n.splice(s-1,1),h=!0):n[s][1].substring(0,n[s+1][1].length)==n[s+1][1]&&(n[s-1][1]+=n[s+1][1],n[s][1]=n[s][1].substring(n[s+1][1].length)+n[s+1][1],n.splice(s+1,1),h=!0)),s++;h&&u(n)}var l=w;function f(n,s,A){for(var g=s+A-1;g>=0&&g>=s-1;g--)if(g+1<n.length){var b=n[g],N=n[g+1];b[0]===N[1]&&n.splice(g,2,[b[0],b[1]+N[1]])}return n}l.INSERT=P,l.DELETE=p,l.EQUAL=T,B.exports=l},function(B,O){function p(P){var T=[];for(var w in P)T.push(w);return T}(B.exports="function"==typeof Object.keys?Object.keys:p).shim=p},function(B,O){var p="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function P(w){return"[object Arguments]"==Object.prototype.toString.call(w)}function T(w){return w&&"object"==typeof w&&"number"==typeof w.length&&Object.prototype.hasOwnProperty.call(w,"callee")&&!Object.prototype.propertyIsEnumerable.call(w,"callee")||!1}(O=B.exports=p?P:T).supported=P,O.unsupported=T},function(B,O){"use strict";var p=Object.prototype.hasOwnProperty,P="~";function T(){}function w(y,c,o){this.fn=y,this.context=c,this.once=o||!1}function m(){this._events=new T,this._eventsCount=0}Object.create&&(T.prototype=Object.create(null),(new T).__proto__||(P=!1)),m.prototype.eventNames=function(){var o,t,c=[];if(0===this._eventsCount)return c;for(t in o=this._events)p.call(o,t)&&c.push(P?t.slice(1):t);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(o)):c},m.prototype.listeners=function(c,o){var e=this._events[P?P+c:c];if(o)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var u=0,l=e.length,a=new Array(l);u<l;u++)a[u]=e[u].fn;return a},m.prototype.emit=function(c,o,t,e,u,l){var a=P?P+c:c;if(!this._events[a])return!1;var f,n,r=this._events[a],i=arguments.length;if(r.fn){switch(r.once&&this.removeListener(c,r.fn,void 0,!0),i){case 1:return r.fn.call(r.context),!0;case 2:return r.fn.call(r.context,o),!0;case 3:return r.fn.call(r.context,o,t),!0;case 4:return r.fn.call(r.context,o,t,e),!0;case 5:return r.fn.call(r.context,o,t,e,u),!0;case 6:return r.fn.call(r.context,o,t,e,u,l),!0}for(n=1,f=new Array(i-1);n<i;n++)f[n-1]=arguments[n];r.fn.apply(r.context,f)}else{var A,s=r.length;for(n=0;n<s;n++)switch(r[n].once&&this.removeListener(c,r[n].fn,void 0,!0),i){case 1:r[n].fn.call(r[n].context);break;case 2:r[n].fn.call(r[n].context,o);break;case 3:r[n].fn.call(r[n].context,o,t);break;case 4:r[n].fn.call(r[n].context,o,t,e);break;default:if(!f)for(A=1,f=new Array(i-1);A<i;A++)f[A-1]=arguments[A];r[n].fn.apply(r[n].context,f)}}return!0},m.prototype.on=function(c,o,t){var e=new w(o,t||this),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.once=function(c,o,t){var e=new w(o,t||this,!0),u=P?P+c:c;return this._events[u]?this._events[u].fn?this._events[u]=[this._events[u],e]:this._events[u].push(e):(this._events[u]=e,this._eventsCount++),this},m.prototype.removeListener=function(c,o,t,e){var u=P?P+c:c;if(!this._events[u])return this;if(!o)return 0==--this._eventsCount?this._events=new T:delete this._events[u],this;var l=this._events[u];if(l.fn)l.fn===o&&(!e||l.once)&&(!t||l.context===t)&&(0==--this._eventsCount?this._events=new T:delete this._events[u]);else{for(var a=0,r=[],i=l.length;a<i;a++)(l[a].fn!==o||e&&!l[a].once||t&&l[a].context!==t)&&r.push(l[a]);r.length?this._events[u]=1===r.length?r[0]:r:0==--this._eventsCount?this._events=new T:delete this._events[u]}return this},m.prototype.removeAllListeners=function(c){var o;return c?this._events[o=P?P+c:c]&&(0==--this._eventsCount?this._events=new T:delete this._events[o]):(this._events=new T,this._eventsCount=0),this},m.prototype.off=m.prototype.removeListener,m.prototype.addListener=m.prototype.on,m.prototype.setMaxListeners=function(){return this},m.prefixed=P,m.EventEmitter=m,typeof B<"u"&&(B.exports=m)},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.matchText=O.matchSpacing=O.matchNewline=O.matchBlot=O.matchAttributor=O.default=void 0;var 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},T=function(K,$){if(Array.isArray(K))return K;if(Symbol.iterator in Object(K))return function z(K,$){var G=[],W=!0,J=!1,tt=void 0;try{for(var ut,et=K[Symbol.iterator]();!(W=(ut=et.next()).done)&&(G.push(ut.value),!$||G.length!==$);W=!0);}catch(ft){J=!0,tt=ft}finally{try{!W&&et.return&&et.return()}finally{if(J)throw tt}}return G}(K,$);throw new TypeError("Invalid attempt to destructure non-iterable instance")},w=function(){function z(K,$){for(var G=0;G<$.length;G++){var W=$[G];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(K,W.key,W)}}return function(K,$,G){return $&&z(K.prototype,$),G&&z(K,G),K}}(),y=d(p(3)),o=d(p(2)),e=d(p(0)),l=d(p(5)),r=d(p(10)),f=d(p(9)),n=p(36),s=p(37),g=d(p(13)),b=p(26),N=p(38),v=p(39),h=p(40);function d(z){return z&&z.__esModule?z:{default:z}}function k(z,K,$){return K in z?Object.defineProperty(z,K,{value:$,enumerable:!0,configurable:!0,writable:!0}):z[K]=$,z}var C=(0,r.default)("quill:clipboard"),Z="__ql-matcher",I=[[Node.TEXT_NODE,lt],[Node.TEXT_NODE,nt],["br",function Y(z,K){return M(K,"\n")||K.insert("\n"),K}],[Node.ELEMENT_NODE,nt],[Node.ELEMENT_NODE,V],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,H],[Node.ELEMENT_NODE,function at(z,K){var $={},G=z.style||{};return G.fontStyle&&"italic"===F(z).fontStyle&&($.italic=!0),G.fontWeight&&(F(z).fontWeight.startsWith("bold")||parseInt(F(z).fontWeight)>=700)&&($.bold=!0),Object.keys($).length>0&&(K=L(K,$)),parseFloat(G.textIndent||0)>0&&(K=(new o.default).insert("\t").concat(K)),K}],["li",function Q(z,K){var $=e.default.query(z);if(null==$||"list-item"!==$.blotName||!M(K,"\n"))return K;for(var G=-1,W=z.parentNode;!W.classList.contains("ql-clipboard");)"list"===(e.default.query(W)||{}).blotName&&(G+=1),W=W.parentNode;return G<=0?K:K.compose((new o.default).retain(K.length()-1).retain(1,{indent:G}))}],["b",U.bind(U,"bold")],["i",U.bind(U,"italic")],["style",function X(){return new o.default}]],R=[n.AlignAttribute,N.DirectionAttribute].reduce(function(z,K){return z[K.keyName]=K,z},{}),E=[n.AlignStyle,s.BackgroundStyle,b.ColorStyle,N.DirectionStyle,v.FontStyle,h.SizeStyle].reduce(function(z,K){return z[K.keyName]=K,z},{}),S=function(z){function K($,G){!function _(z,K){if(!(z instanceof K))throw new TypeError("Cannot call a class as a function")}(this,K);var W=function q(z,K){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!K||"object"!=typeof K&&"function"!=typeof K?z:K}(this,(K.__proto__||Object.getPrototypeOf(K)).call(this,$,G));return W.quill.root.addEventListener("paste",W.onPaste.bind(W)),W.container=W.quill.addContainer("ql-clipboard"),W.container.setAttribute("contenteditable",!0),W.container.setAttribute("tabindex",-1),W.matchers=[],I.concat(W.options.matchers).forEach(function(J){var tt=T(J,2),ut=tt[1];!G.matchVisual&&ut===rt||W.addMatcher(tt[0],ut)}),W}return function D(z,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function, not "+typeof K);z.prototype=Object.create(K&&K.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),K&&(Object.setPrototypeOf?Object.setPrototypeOf(z,K):z.__proto__=K)}(K,z),w(K,[{key:"addMatcher",value:function(G,W){this.matchers.push([G,W])}},{key:"convert",value:function(G){if("string"==typeof G)return this.container.innerHTML=G.replace(/\>\r?\n +\</g,"><"),this.convert();var W=this.quill.getFormat(this.quill.selection.savedRange.index);if(W[g.default.blotName]){var J=this.container.innerText;return this.container.innerHTML="",(new o.default).insert(J,k({},g.default.blotName,W[g.default.blotName]))}var tt=this.prepareMatching(),et=T(tt,2),it=j(this.container,et[0],et[1]);return M(it,"\n")&&null==it.ops[it.ops.length-1].attributes&&(it=it.compose((new o.default).retain(it.length()-1).delete(1))),C.log("convert",this.container.innerHTML,it),this.container.innerHTML="",it}},{key:"dangerouslyPasteHTML",value:function(G,W){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof G)this.quill.setContents(this.convert(G),W),this.quill.setSelection(0,l.default.sources.SILENT);else{var tt=this.convert(W);this.quill.updateContents((new o.default).retain(G).concat(tt),J),this.quill.setSelection(G+tt.length(),l.default.sources.SILENT)}}},{key:"onPaste",value:function(G){var W=this;if(!G.defaultPrevented&&this.quill.isEnabled()){var J=this.quill.getSelection(),tt=(new o.default).retain(J.index),et=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(l.default.sources.SILENT),setTimeout(function(){tt=tt.concat(W.convert()).delete(J.length),W.quill.updateContents(tt,l.default.sources.USER),W.quill.setSelection(tt.length()-J.length,l.default.sources.SILENT),W.quill.scrollingContainer.scrollTop=et,W.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var G=this,W=[],J=[];return this.matchers.forEach(function(tt){var et=T(tt,2),ut=et[0],ft=et[1];switch(ut){case Node.TEXT_NODE:J.push(ft);break;case Node.ELEMENT_NODE:W.push(ft);break;default:[].forEach.call(G.container.querySelectorAll(ut),function(it){it[Z]=it[Z]||[],it[Z].push(ft)})}}),[W,J]}}]),K}(f.default);function L(z,K,$){return"object"===(typeof K>"u"?"undefined":P(K))?Object.keys(K).reduce(function(G,W){return L(G,W,K[W])},z):z.reduce(function(G,W){return W.attributes&&W.attributes[K]?G.push(W):G.insert(W.insert,(0,y.default)({},k({},K,$),W.attributes))},new o.default)}function F(z){if(z.nodeType!==Node.ELEMENT_NODE)return{};var K="__ql-computed-style";return z[K]||(z[K]=window.getComputedStyle(z))}function M(z,K){for(var $="",G=z.ops.length-1;G>=0&&$.length<K.length;--G){var W=z.ops[G];if("string"!=typeof W.insert)break;$=W.insert+$}return $.slice(-1*K.length)===K}function x(z){if(0===z.childNodes.length)return!1;var K=F(z);return["block","list-item"].indexOf(K.display)>-1}function j(z,K,$){return z.nodeType===z.TEXT_NODE?$.reduce(function(G,W){return W(z,G)},new o.default):z.nodeType===z.ELEMENT_NODE?[].reduce.call(z.childNodes||[],function(G,W){var J=j(W,K,$);return W.nodeType===z.ELEMENT_NODE&&(J=K.reduce(function(tt,et){return et(W,tt)},J),J=(W[Z]||[]).reduce(function(tt,et){return et(W,tt)},J)),G.concat(J)},new o.default):new o.default}function U(z,K,$){return L($,z,!0)}function H(z,K){var $=e.default.Attributor.Attribute.keys(z),G=e.default.Attributor.Class.keys(z),W=e.default.Attributor.Style.keys(z),J={};return $.concat(G).concat(W).forEach(function(tt){var et=e.default.query(tt,e.default.Scope.ATTRIBUTE);null!=et&&(J[et.attrName]=et.value(z),J[et.attrName])||(null!=(et=R[tt])&&(et.attrName===tt||et.keyName===tt)&&(J[et.attrName]=et.value(z)||void 0),null!=(et=E[tt])&&(et.attrName===tt||et.keyName===tt)&&(J[(et=E[tt]).attrName]=et.value(z)||void 0))}),Object.keys(J).length>0&&(K=L(K,J)),K}function V(z,K){var $=e.default.query(z);if(null==$)return K;if($.prototype instanceof e.default.Embed){var G={},W=$.value(z);null!=W&&(G[$.blotName]=W,K=(new o.default).insert(G,$.formats(z)))}else"function"==typeof $.formats&&(K=L(K,$.blotName,$.formats(z)));return K}function nt(z,K){return M(K,"\n")||(x(z)||K.length()>0&&z.nextSibling&&x(z.nextSibling))&&K.insert("\n"),K}function rt(z,K){if(x(z)&&null!=z.nextElementSibling&&!M(K,"\n\n")){var $=z.offsetHeight+parseFloat(F(z).marginTop)+parseFloat(F(z).marginBottom);z.nextElementSibling.offsetTop>z.offsetTop+1.5*$&&K.insert("\n")}return K}function lt(z,K){var $=z.data;if("O:P"===z.parentNode.tagName)return K.insert($.trim());if(0===$.trim().length&&z.parentNode.classList.contains("ql-clipboard"))return K;if(!F(z.parentNode).whiteSpace.startsWith("pre")){var G=function(J,tt){return(tt=tt.replace(/[^\u00a0]/g,"")).length<1&&J?" ":tt};$=($=$.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,G.bind(G,!0)),(null==z.previousSibling&&x(z.parentNode)||null!=z.previousSibling&&x(z.previousSibling))&&($=$.replace(/^\s+/,G.bind(G,!1))),(null==z.nextSibling&&x(z.parentNode)||null!=z.nextSibling&&x(z.nextSibling))&&($=$.replace(/\s+$/,G.bind(G,!1)))}return K.insert($)}S.DEFAULTS={matchers:[],matchVisual:!0},O.default=S,O.matchAttributor=H,O.matchBlot=V,O.matchNewline=nt,O.matchSpacing=rt,O.matchText=lt},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"optimize",value:function(r){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"optimize",this).call(this,r),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return T(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(6)).default);e.blotName="bold",e.tagName=["STRONG","B"],O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.addControls=O.default=void 0;var P=function(d,k){if(Array.isArray(d))return d;if(Symbol.iterator in Object(d))return function h(d,k){var _=[],q=!0,D=!1,C=void 0;try{for(var I,Z=d[Symbol.iterator]();!(q=(I=Z.next()).done)&&(_.push(I.value),!k||_.length!==k);q=!0);}catch(R){D=!0,C=R}finally{try{!q&&Z.return&&Z.return()}finally{if(D)throw C}}return _}(d,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function(){function h(d,k){for(var _=0;_<k.length;_++){var q=k[_];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(d,q.key,q)}}return function(d,k,_){return k&&h(d.prototype,k),_&&h(d,_),d}}(),m=r(p(2)),c=r(p(0)),t=r(p(5)),u=r(p(10)),a=r(p(9));function r(h){return h&&h.__esModule?h:{default:h}}function n(h,d){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?h:d}var A=(0,u.default)("quill:toolbar"),g=function(h){function d(k,_){!function f(h,d){if(!(h instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d);var C,q=n(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,k,_));if(Array.isArray(q.options.container)){var D=document.createElement("div");N(D,q.options.container),k.container.parentNode.insertBefore(D,k.container),q.container=D}else q.container="string"==typeof q.options.container?document.querySelector(q.options.container):q.options.container;return q.container instanceof HTMLElement?(q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(Z){q.addHandler(Z,q.options.handlers[Z])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(Z){q.attach(Z)}),q.quill.on(t.default.events.EDITOR_CHANGE,function(Z,I){Z===t.default.events.SELECTION_CHANGE&&q.update(I)}),q.quill.on(t.default.events.SCROLL_OPTIMIZE,function(){var Z=q.quill.selection.getRange(),I=P(Z,1);q.update(I[0])}),q):(C=A.error("Container required for toolbar",q.options),n(q,C))}return function s(h,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);h.prototype=Object.create(d&&d.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(h,d):h.__proto__=d)}(d,h),T(d,[{key:"addHandler",value:function(_,q){this.handlers[_]=q}},{key:"attach",value:function(_){var q=this,D=[].find.call(_.classList,function(Z){return 0===Z.indexOf("ql-")});if(D){if(D=D.slice(3),"BUTTON"===_.tagName&&_.setAttribute("type","button"),null==this.handlers[D]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[D])return void A.warn("ignoring attaching to disabled format",D,_);if(null==c.default.query(D))return void A.warn("ignoring attaching to nonexistent format",D,_)}_.addEventListener("SELECT"===_.tagName?"change":"click",function(Z){var I=void 0;if("SELECT"===_.tagName){if(_.selectedIndex<0)return;var R=_.options[_.selectedIndex];I=!R.hasAttribute("selected")&&(R.value||!1)}else I=!_.classList.contains("ql-active")&&(_.value||!_.hasAttribute("value")),Z.preventDefault();q.quill.focus();var E=q.quill.selection.getRange(),L=P(E,1)[0];if(null!=q.handlers[D])q.handlers[D].call(q,I);else if(c.default.query(D).prototype instanceof c.default.Embed){if(!(I=prompt("Enter "+D)))return;q.quill.updateContents((new m.default).retain(L.index).delete(L.length).insert(function i(h,d,k){return d in h?Object.defineProperty(h,d,{value:k,enumerable:!0,configurable:!0,writable:!0}):h[d]=k,h}({},D,I)),t.default.sources.USER)}else q.quill.format(D,I,t.default.sources.USER);q.update(L)}),this.controls.push([D,_])}}},{key:"update",value:function(_){var q=null==_?{}:this.quill.getFormat(_);this.controls.forEach(function(D){var C=P(D,2),Z=C[0],I=C[1];if("SELECT"===I.tagName){var R=void 0;if(null==_)R=null;else if(null==q[Z])R=I.querySelector("option[selected]");else if(!Array.isArray(q[Z])){var E=q[Z];"string"==typeof E&&(E=E.replace(/\"/g,'\\"')),R=I.querySelector('option[value="'+E+'"]')}null==R?(I.value="",I.selectedIndex=-1):R.selected=!0}else if(null==_)I.classList.remove("ql-active");else if(I.hasAttribute("value")){var S=q[Z]===I.getAttribute("value")||null!=q[Z]&&q[Z].toString()===I.getAttribute("value")||null==q[Z]&&!I.getAttribute("value");I.classList.toggle("ql-active",S)}else I.classList.toggle("ql-active",null!=q[Z])})}}]),d}(a.default);function b(h,d,k){var _=document.createElement("button");_.setAttribute("type","button"),_.classList.add("ql-"+d),null!=k&&(_.value=k),h.appendChild(_)}function N(h,d){Array.isArray(d[0])||(d=[d]),d.forEach(function(k){var _=document.createElement("span");_.classList.add("ql-formats"),k.forEach(function(q){if("string"==typeof q)b(_,q);else{var D=Object.keys(q)[0],C=q[D];Array.isArray(C)?function v(h,d,k){var _=document.createElement("select");_.classList.add("ql-"+d),k.forEach(function(q){var D=document.createElement("option");!1!==q?D.setAttribute("value",q):D.setAttribute("selected","selected"),_.appendChild(D)}),h.appendChild(_)}(_,D,C):b(_,D,C)}}),h.appendChild(_)})}g.DEFAULTS={},g.DEFAULTS={container:null,handlers:{clean:function(){var d=this,k=this.quill.getSelection();if(null!=k)if(0==k.length){var _=this.quill.getFormat();Object.keys(_).forEach(function(q){null!=c.default.query(q,c.default.Scope.INLINE)&&d.quill.format(q,!1)})}else this.quill.removeFormat(k,t.default.sources.USER)},direction:function(d){var k=this.quill.getFormat().align;"rtl"===d&&null==k?this.quill.format("align","right",t.default.sources.USER):!d&&"right"===k&&this.quill.format("align",!1,t.default.sources.USER),this.quill.format("direction",d,t.default.sources.USER)},indent:function(d){var k=this.quill.getSelection(),_=this.quill.getFormat(k),q=parseInt(_.indent||0);if("+1"===d||"-1"===d){var D="+1"===d?1:-1;"rtl"===_.direction&&(D*=-1),this.quill.format("indent",q+D,t.default.sources.USER)}},link:function(d){!0===d&&(d=prompt("Enter link URL:")),this.quill.format("link",d,t.default.sources.USER)},list:function(d){var k=this.quill.getSelection(),_=this.quill.getFormat(k);this.quill.format("list","check"===d?"checked"!==_.list&&"unchecked"!==_.list&&"unchecked":d,t.default.sources.USER)}}},O.default=g,O.addControls=N},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(a,r){!function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var i=function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return i.label.innerHTML=r,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(f){f.classList.add("ql-primary")}),i}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"buildItem",value:function(r){var i=T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"buildItem",this).call(this,r);return i.style.backgroundColor=r.getAttribute("value")||"",i}},{key:"selectItem",value:function(r,i){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i);var f=this.label.querySelector(".ql-color-label"),n=r&&r.getAttribute("data-value")||"";f&&("line"===f.tagName?f.style.stroke=n:f.style.fill=n)}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(28)).default);O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(a,r){!function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l);var i=function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,a));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),function(f){f.innerHTML=r[f.getAttribute("data-value")||""]}),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,[{key:"selectItem",value:function(r,i){T(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"selectItem",this).call(this,r,i),this.label.innerHTML=(r=r||this.defaultItem).innerHTML}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(28)).default);O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function m(y,c){for(var o=0;o<c.length;o++){var t=c[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(y,t.key,t)}}return function(y,c,o){return c&&m(y.prototype,c),o&&m(y,o),y}}();var w=function(){function m(y,c){var o=this;(function T(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,m),this.quill=y,this.boundsContainer=c||document.body,this.root=y.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"}),this.hide()}return P(m,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var o=c.left+c.width/2-this.root.offsetWidth/2,t=c.bottom+this.quill.root.scrollTop;this.root.style.left=o+"px",this.root.style.top=t+"px",this.root.classList.remove("ql-flip");var e=this.boundsContainer.getBoundingClientRect(),u=this.root.getBoundingClientRect(),l=0;return u.right>e.right&&(this.root.style.left=o+(l=e.right-u.right)+"px"),u.left<e.left&&(this.root.style.left=o+(l=e.left-u.left)+"px"),u.bottom>e.bottom&&(this.root.style.top=t-(c.bottom-c.top+(u.bottom-u.top))+"px",this.root.classList.add("ql-flip")),l}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),m}();O.default=w},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(h,d){if(Array.isArray(h))return h;if(Symbol.iterator in Object(h))return function v(h,d){var k=[],_=!0,q=!1,D=void 0;try{for(var Z,C=h[Symbol.iterator]();!(_=(Z=C.next()).done)&&(k.push(Z.value),!d||k.length!==d);_=!0);}catch(I){q=!0,D=I}finally{try{!_&&C.return&&C.return()}finally{if(q)throw D}}return k}(h,d);throw new TypeError("Invalid attempt to destructure non-iterable instance")},T=function v(h,d,k){null===h&&(h=Function.prototype);var _=Object.getOwnPropertyDescriptor(h,d);if(void 0===_){var q=Object.getPrototypeOf(h);return null===q?void 0:v(q,d,k)}if("value"in _)return _.value;var D=_.get;return void 0===D?void 0:D.call(k)},w=function(){function v(h,d){for(var k=0;k<d.length;k++){var _=d[k];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(h,_.key,_)}}return function(h,d,k){return d&&v(h.prototype,d),k&&v(h,k),h}}(),y=f(p(3)),o=f(p(8)),t=p(43),e=f(t),l=f(p(27)),a=p(15),i=f(p(41));function f(v){return v&&v.__esModule?v:{default:v}}function n(v,h){if(!(v instanceof h))throw new TypeError("Cannot call a class as a function")}function s(v,h){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||"object"!=typeof h&&"function"!=typeof h?v:h}function A(v,h){if("function"!=typeof h&&null!==h)throw new TypeError("Super expression must either be null or a function, not "+typeof h);v.prototype=Object.create(h&&h.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(v,h):v.__proto__=h)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(v){function h(d,k){n(this,h),null!=k.modules.toolbar&&null==k.modules.toolbar.container&&(k.modules.toolbar.container=g);var _=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d,k));return _.quill.container.classList.add("ql-snow"),_}return A(h,v),w(h,[{key:"extendToolbar",value:function(k){k.container.classList.add("ql-snow"),this.buildButtons([].slice.call(k.container.querySelectorAll("button")),i.default),this.buildPickers([].slice.call(k.container.querySelectorAll("select")),i.default),this.tooltip=new N(this.quill,this.options.bounds),k.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(_,q){k.handlers.link.call(k,!q.format.link)})}}]),h}(e.default);b.DEFAULTS=(0,y.default)(!0,{},e.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(h){if(h){var d=this.quill.getSelection();if(null==d||0==d.length)return;var k=this.quill.getText(d);/^\S+@\S+\.\S+$/.test(k)&&0!==k.indexOf("mailto:")&&(k="mailto:"+k),this.quill.theme.tooltip.edit("link",k)}else this.quill.format("link",!1)}}}}});var N=function(v){function h(d,k){n(this,h);var _=s(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,d,k));return _.preview=_.root.querySelector("a.ql-preview"),_}return A(h,v),w(h,[{key:"listen",value:function(){var k=this;T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(_){k.root.classList.contains("ql-editing")?k.save():k.edit("link",k.preview.textContent),_.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(_){if(null!=k.linkRange){var q=k.linkRange;k.restoreFocus(),k.quill.formatText(q,"link",!1,o.default.sources.USER),delete k.linkRange}_.preventDefault(),k.hide()}),this.quill.on(o.default.events.SELECTION_CHANGE,function(_,q,D){if(null!=_){if(0===_.length&&D===o.default.sources.USER){var C=k.quill.scroll.descendant(l.default,_.index),Z=P(C,2),I=Z[0];if(null!=I){k.linkRange=new a.Range(_.index-Z[1],I.length());var E=l.default.formats(I.domNode);return k.preview.textContent=E,k.preview.setAttribute("href",E),k.show(),void k.position(k.quill.getBounds(k.linkRange))}}else delete k.linkRange;k.hide()}})}},{key:"show",value:function(){T(h.prototype.__proto__||Object.getPrototypeOf(h.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),h}(t.BaseTooltip);N.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),O.default=b},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var T=W(p(29)),w=p(36),m=p(38),y=p(64),o=W(p(65)),e=W(p(66)),u=p(67),l=W(u),a=p(37),r=p(26),i=p(39),f=p(40),s=W(p(56)),g=W(p(68)),N=W(p(27)),h=W(p(69)),k=W(p(70)),q=W(p(71)),C=W(p(72)),I=W(p(73)),R=p(13),E=W(R),L=W(p(74)),M=W(p(75)),j=W(p(57)),H=W(p(41)),Y=W(p(28)),Q=W(p(59)),rt=W(p(60)),lt=W(p(61)),K=W(p(108)),G=W(p(62));function W(J){return J&&J.__esModule?J:{default:J}}T.default.register({"attributors/attribute/direction":m.DirectionAttribute,"attributors/class/align":w.AlignClass,"attributors/class/background":a.BackgroundClass,"attributors/class/color":r.ColorClass,"attributors/class/direction":m.DirectionClass,"attributors/class/font":i.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":w.AlignStyle,"attributors/style/background":a.BackgroundStyle,"attributors/style/color":r.ColorStyle,"attributors/style/direction":m.DirectionStyle,"attributors/style/font":i.FontStyle,"attributors/style/size":f.SizeStyle},!0),T.default.register({"formats/align":w.AlignClass,"formats/direction":m.DirectionClass,"formats/indent":y.IndentClass,"formats/background":a.BackgroundStyle,"formats/color":r.ColorStyle,"formats/font":i.FontClass,"formats/size":f.SizeClass,"formats/blockquote":o.default,"formats/code-block":E.default,"formats/header":e.default,"formats/list":l.default,"formats/bold":s.default,"formats/code":R.Code,"formats/italic":g.default,"formats/link":N.default,"formats/script":h.default,"formats/strike":k.default,"formats/underline":q.default,"formats/image":C.default,"formats/video":I.default,"formats/list/item":u.ListItem,"modules/formula":L.default,"modules/syntax":M.default,"modules/toolbar":j.default,"themes/bubble":K.default,"themes/snow":G.default,"ui/icons":H.default,"ui/picker":Y.default,"ui/icon-picker":rt.default,"ui/color-picker":Q.default,"ui/tooltip":lt.default},!0),O.default=T.default},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.IndentClass=void 0;var P=function(){function l(a,r){for(var i=0;i<r.length;i++){var f=r[i];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}return function(a,r,i){return r&&l(a.prototype,r),i&&l(a,i),a}}(),T=function l(a,r,i){null===a&&(a=Function.prototype);var f=Object.getOwnPropertyDescriptor(a,r);if(void 0===f){var n=Object.getPrototypeOf(a);return null===n?void 0:l(n,r,i)}if("value"in f)return f.value;var s=f.get;return void 0===s?void 0:s.call(i)},m=function y(l){return l&&l.__esModule?l:{default:l}}(p(0));var e=function(l){function a(){return function c(l,a){if(!(l instanceof a))throw new TypeError("Cannot call a class as a function")}(this,a),function o(l,a){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||"object"!=typeof a&&"function"!=typeof a?l:a}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return function t(l,a){if("function"!=typeof a&&null!==a)throw new TypeError("Super expression must either be null or a function, not "+typeof a);l.prototype=Object.create(a&&a.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(l,a):l.__proto__=a)}(a,l),P(a,[{key:"add",value:function(i,f){if("+1"===f||"-1"===f){var n=this.value(i)||0;f="+1"===f?n+1:n-1}return 0===f?(this.remove(i),!0):T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"add",this).call(this,i,f)}},{key:"canAdd",value:function(i,f){return T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,f)||T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"canAdd",this).call(this,i,parseInt(f))}},{key:"value",value:function(i){return parseInt(T(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"value",this).call(this,i))||void 0}}]),a}(m.default.Attributor.Class),u=new e("indent","ql-indent",{scope:m.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});O.IndentClass=u},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(4)).default);o.blotName="blockquote",o.tagName="blockquote",O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function e(u,l){for(var a=0;a<l.length;a++){var r=l[a];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(u,r.key,r)}}return function(u,l,a){return l&&e(u.prototype,l),a&&e(u,a),u}}();var t=function(e){function u(){return function y(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function c(e,u){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?e:u}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function o(e,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);e.prototype=Object.create(u&&u.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(e,u):e.__proto__=u)}(u,e),P(u,null,[{key:"formats",value:function(a){return this.tagName.indexOf(a.tagName)+1}}]),u}(function m(e){return e&&e.__esModule?e:{default:e}}(p(4)).default);t.blotName="header",t.tagName=["H1","H2","H3","H4","H5","H6"],O.default=t},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.ListItem=void 0;var P=function(){function n(s,A){for(var g=0;g<A.length;g++){var b=A[g];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(s,b.key,b)}}return function(s,A,g){return A&&n(s.prototype,A),g&&n(s,g),s}}(),T=function n(s,A,g){null===s&&(s=Function.prototype);var b=Object.getOwnPropertyDescriptor(s,A);if(void 0===b){var N=Object.getPrototypeOf(s);return null===N?void 0:n(N,A,g)}if("value"in b)return b.value;var v=b.get;return void 0===v?void 0:v.call(g)},m=e(p(0)),c=e(p(4)),t=e(p(25));function e(n){return n&&n.__esModule?n:{default:n}}function l(n,s){if(!(n instanceof s))throw new TypeError("Cannot call a class as a function")}function a(n,s){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||"object"!=typeof s&&"function"!=typeof s?n:s}function r(n,s){if("function"!=typeof s&&null!==s)throw new TypeError("Super expression must either be null or a function, not "+typeof s);n.prototype=Object.create(s&&s.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(n,s):n.__proto__=s)}var i=function(n){function s(){return l(this,s),a(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}return r(s,n),P(s,[{key:"format",value:function(g,b){g!==f.blotName||b?T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,g,b):this.replaceWith(m.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(g,b){return this.parent.isolate(this.offset(this.parent),this.length()),g===this.parent.statics.blotName?(this.parent.replaceWith(g,b),this):(this.parent.unwrap(),T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replaceWith",this).call(this,g,b))}}],[{key:"formats",value:function(g){return g.tagName===this.tagName?void 0:T(s.__proto__||Object.getPrototypeOf(s),"formats",this).call(this,g)}}]),s}(c.default);i.blotName="list-item",i.tagName="LI";var f=function(n){function s(A){l(this,s);var g=a(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,A)),b=function(v){if(v.target.parentNode===A){var h=g.statics.formats(A),d=m.default.find(v.target);"checked"===h?d.format("list","unchecked"):"unchecked"===h&&d.format("list","checked")}};return A.addEventListener("touchstart",b),A.addEventListener("mousedown",b),g}return r(s,n),P(s,null,[{key:"create",value:function(g){var b="ordered"===g?"OL":"UL",N=T(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,b);return("checked"===g||"unchecked"===g)&&N.setAttribute("data-checked","checked"===g),N}},{key:"formats",value:function(g){return"OL"===g.tagName?"ordered":"UL"===g.tagName?g.hasAttribute("data-checked")?"true"===g.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),P(s,[{key:"format",value:function(g,b){this.children.length>0&&this.children.tail.format(g,b)}},{key:"formats",value:function(){return function u(n,s,A){return s in n?Object.defineProperty(n,s,{value:A,enumerable:!0,configurable:!0,writable:!0}):n[s]=A,n}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(g,b){if(g instanceof i)T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"insertBefore",this).call(this,g,b);else{var N=null==b?this.length():b.offset(this),v=this.split(N);v.parent.insertBefore(g,v)}}},{key:"optimize",value:function(g){T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,g);var b=this.next;null!=b&&b.prev===this&&b.statics.blotName===this.statics.blotName&&b.domNode.tagName===this.domNode.tagName&&b.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(b.moveChildren(this),b.remove())}},{key:"replace",value:function(g){if(g.statics.blotName!==this.statics.blotName){var b=m.default.create(this.statics.defaultChild);g.moveChildren(b),this.appendChild(b)}T(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"replace",this).call(this,g)}}]),s}(t.default);f.blotName="list",f.scope=m.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[i],O.ListItem=i,O.default=f},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(56)).default);o.blotName="italic",o.tagName=["EM","I"],O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function u(l,a){for(var r=0;r<a.length;r++){var i=a[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(l,i.key,i)}}return function(l,a,r){return a&&u(l.prototype,a),r&&u(l,r),l}}(),T=function u(l,a,r){null===l&&(l=Function.prototype);var i=Object.getOwnPropertyDescriptor(l,a);if(void 0===i){var f=Object.getPrototypeOf(l);return null===f?void 0:u(f,a,r)}if("value"in i)return i.value;var n=i.get;return void 0===n?void 0:n.call(r)};var e=function(u){function l(){return function c(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}(this,l),function o(u,l){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||"object"!=typeof l&&"function"!=typeof l?u:l}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}return function t(u,l){if("function"!=typeof l&&null!==l)throw new TypeError("Super expression must either be null or a function, not "+typeof l);u.prototype=Object.create(l&&l.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(u,l):u.__proto__=l)}(l,u),P(l,null,[{key:"create",value:function(r){return"super"===r?document.createElement("sup"):"sub"===r?document.createElement("sub"):T(l.__proto__||Object.getPrototypeOf(l),"create",this).call(this,r)}},{key:"formats",value:function(r){return"SUB"===r.tagName?"sub":"SUP"===r.tagName?"super":void 0}}]),l}(function y(u){return u&&u.__esModule?u:{default:u}}(p(6)).default);e.blotName="script",e.tagName=["SUB","SUP"],O.default=e},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(6)).default);o.blotName="strike",o.tagName="S",O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var o=function(t){function e(){return function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(function w(t){return t&&t.__esModule?t:{default:t}}(p(6)).default);o.blotName="underline",o.tagName="U",O.default=o},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},m=function c(a){return a&&a.__esModule?a:{default:a}}(p(0)),y=p(27);var u=["alt","height","width"],l=function(a){function r(){return function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function e(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=T(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return"string"==typeof f&&n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),n},{})}},{key:"match",value:function(f){return/\.(jpe?g|gif|png)$/.test(f)||/^data:image\/.+;base64/.test(f)}},{key:"sanitize",value:function(f){return(0,y.sanitize)(f,["http","https","data"])?f:"//:0"}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(m.default.Embed);l.blotName="image",l.tagName="IMG",O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0});var P=function(){function a(r,i){for(var f=0;f<i.length;f++){var n=i[f];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,n.key,n)}}return function(r,i,f){return i&&a(r.prototype,i),f&&a(r,f),r}}(),T=function a(r,i,f){null===r&&(r=Function.prototype);var n=Object.getOwnPropertyDescriptor(r,i);if(void 0===n){var s=Object.getPrototypeOf(r);return null===s?void 0:a(s,i,f)}if("value"in n)return n.value;var A=n.get;return void 0===A?void 0:A.call(f)},w=p(4),y=function c(a){return a&&a.__esModule?a:{default:a}}(p(27));var u=["height","width"],l=function(a){function r(){return function o(a,r){if(!(a instanceof r))throw new TypeError("Cannot call a class as a function")}(this,r),function t(a,r){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?a:r}(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return function e(a,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);a.prototype=Object.create(r&&r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(a,r):a.__proto__=r)}(r,a),P(r,[{key:"format",value:function(f,n){u.indexOf(f)>-1?n?this.domNode.setAttribute(f,n):this.domNode.removeAttribute(f):T(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),"format",this).call(this,f,n)}}],[{key:"create",value:function(f){var n=T(r.__proto__||Object.getPrototypeOf(r),"create",this).call(this,f);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(f)),n}},{key:"formats",value:function(f){return u.reduce(function(n,s){return f.hasAttribute(s)&&(n[s]=f.getAttribute(s)),n},{})}},{key:"sanitize",value:function(f){return y.default.sanitize(f)}},{key:"value",value:function(f){return f.getAttribute("src")}}]),r}(w.BlockEmbed);l.blotName="video",l.className="ql-video",l.tagName="IFRAME",O.default=l},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.FormulaBlot=void 0;var P=function(){function f(n,s){for(var A=0;A<s.length;A++){var g=s[A];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(n,g.key,g)}}return function(n,s,A){return s&&f(n.prototype,s),A&&f(n,A),n}}(),T=function f(n,s,A){null===n&&(n=Function.prototype);var g=Object.getOwnPropertyDescriptor(n,s);if(void 0===g){var b=Object.getPrototypeOf(n);return null===b?void 0:f(b,s,A)}if("value"in g)return g.value;var N=g.get;return void 0===N?void 0:N.call(A)},m=e(p(35)),c=e(p(5)),t=e(p(9));function e(f){return f&&f.__esModule?f:{default:f}}function u(f,n){if(!(f instanceof n))throw new TypeError("Cannot call a class as a function")}function l(f,n){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?f:n}function a(f,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);f.prototype=Object.create(n&&n.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(f,n):f.__proto__=n)}var r=function(f){function n(){return u(this,n),l(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return a(n,f),P(n,null,[{key:"create",value:function(A){var g=T(n.__proto__||Object.getPrototypeOf(n),"create",this).call(this,A);return"string"==typeof A&&(window.katex.render(A,g,{throwOnError:!1,errorColor:"#f00"}),g.setAttribute("data-value",A)),g}},{key:"value",value:function(A){return A.getAttribute("data-value")}}]),n}(m.default);r.blotName="formula",r.className="ql-formula",r.tagName="SPAN";var i=function(f){function n(){u(this,n);var s=l(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return s}return a(n,f),P(n,null,[{key:"register",value:function(){c.default.register(r,!0)}}]),n}(t.default);O.FormulaBlot=r,O.default=i},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.CodeToken=O.CodeBlock=void 0;var P=function(){function A(g,b){for(var N=0;N<b.length;N++){var v=b[N];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,b,N){return b&&A(g.prototype,b),N&&A(g,N),g}}(),T=function A(g,b,N){null===g&&(g=Function.prototype);var v=Object.getOwnPropertyDescriptor(g,b);if(void 0===v){var h=Object.getPrototypeOf(g);return null===h?void 0:A(h,b,N)}if("value"in v)return v.value;var d=v.get;return void 0===d?void 0:d.call(N)},m=l(p(0)),c=l(p(5)),t=l(p(9));function l(A){return A&&A.__esModule?A:{default:A}}function a(A,g){if(!(A instanceof g))throw new TypeError("Cannot call a class as a function")}function r(A,g){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||"object"!=typeof g&&"function"!=typeof g?A:g}function i(A,g){if("function"!=typeof g&&null!==g)throw new TypeError("Super expression must either be null or a function, not "+typeof g);A.prototype=Object.create(g&&g.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(A,g):A.__proto__=g)}var f=function(A){function g(){return a(this,g),r(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,A),P(g,[{key:"replaceWith",value:function(N){this.domNode.textContent=this.domNode.textContent,this.attach(),T(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replaceWith",this).call(this,N)}},{key:"highlight",value:function(N){var v=this.domNode.textContent;this.cachedText!==v&&((v.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=N(v),this.domNode.normalize(),this.attach()),this.cachedText=v)}}]),g}(l(p(13)).default);f.className="ql-syntax";var n=new m.default.Attributor.Class("token","hljs",{scope:m.default.Scope.INLINE}),s=function(A){function g(b,N){a(this,g);var v=r(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,b,N));if("function"!=typeof v.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var h=null;return v.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(h),h=setTimeout(function(){v.highlight(),h=null},v.options.interval)}),v.highlight(),v}return i(g,A),P(g,null,[{key:"register",value:function(){c.default.register(n,!0),c.default.register(f,!0)}}]),P(g,[{key:"highlight",value:function(){var N=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var v=this.quill.getSelection();this.quill.scroll.descendants(f).forEach(function(h){h.highlight(N.options.highlight)}),this.quill.update(c.default.sources.SILENT),null!=v&&this.quill.setSelection(v,c.default.sources.SILENT)}}}]),g}(t.default);s.DEFAULTS={highlight:null==window.hljs?null:function(A){return window.hljs.highlightAuto(A).value},interval:1e3},O.CodeBlock=f,O.CodeToken=n,O.default=s},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(B,O){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(B,O){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(B,O){B.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(B,O){B.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(B,O){B.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(B,O,p){"use strict";Object.defineProperty(O,"__esModule",{value:!0}),O.default=O.BubbleTooltip=void 0;var P=function g(b,N,v){null===b&&(b=Function.prototype);var h=Object.getOwnPropertyDescriptor(b,N);if(void 0===h){var d=Object.getPrototypeOf(b);return null===d?void 0:g(d,N,v)}if("value"in h)return h.value;var k=h.get;return void 0===k?void 0:k.call(v)},T=function(){function g(b,N){for(var v=0;v<N.length;v++){var h=N[v];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(b,h.key,h)}}return function(b,N,v){return N&&g(b.prototype,N),v&&g(b,v),b}}(),m=a(p(3)),c=a(p(8)),o=p(43),t=a(o),e=p(15),l=a(p(41));function a(g){return g&&g.__esModule?g:{default:g}}function r(g,b){if(!(g instanceof b))throw new TypeError("Cannot call a class as a function")}function i(g,b){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?g:b}function f(g,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);g.prototype=Object.create(b&&b.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(g,b):g.__proto__=b)}var n=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],s=function(g){function b(N,v){r(this,b),null!=v.modules.toolbar&&null==v.modules.toolbar.container&&(v.modules.toolbar.container=n);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,N,v));return h.quill.container.classList.add("ql-bubble"),h}return f(b,g),T(b,[{key:"extendToolbar",value:function(v){this.tooltip=new A(this.quill,this.options.bounds),this.tooltip.root.appendChild(v.container),this.buildButtons([].slice.call(v.container.querySelectorAll("button")),l.default),this.buildPickers([].slice.call(v.container.querySelectorAll("select")),l.default)}}]),b}(t.default);s.DEFAULTS=(0,m.default)(!0,{},t.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(b){b?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var A=function(g){function b(N,v){r(this,b);var h=i(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,N,v));return h.quill.on(c.default.events.EDITOR_CHANGE,function(d,k,_,q){if(d===c.default.events.SELECTION_CHANGE)if(null!=k&&k.length>0&&q===c.default.sources.USER){h.show(),h.root.style.left="0px",h.root.style.width="",h.root.style.width=h.root.offsetWidth+"px";var D=h.quill.getLines(k.index,k.length);if(1===D.length)h.position(h.quill.getBounds(k));else{var C=D[D.length-1],Z=h.quill.getIndex(C),I=Math.min(C.length()-1,k.index+k.length-Z),R=h.quill.getBounds(new e.Range(Z,I));h.position(R)}}else document.activeElement!==h.textbox&&h.quill.hasFocus()&&h.hide()}),h}return f(b,g),T(b,[{key:"listen",value:function(){var v=this;P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){v.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!v.root.classList.contains("ql-hidden")){var h=v.quill.getSelection();null!=h&&v.position(v.quill.getBounds(h))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(v){var h=P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"position",this).call(this,v),d=this.root.querySelector(".ql-tooltip-arrow");if(d.style.marginLeft="",0===h)return h;d.style.marginLeft=-1*h-d.offsetWidth/2+"px"}}]),b}(o.BaseTooltip);A.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),O.BubbleTooltip=A,O.default=s},function(B,O,p){B.exports=p(63)}]).default}}]);
4
+ "use strict";(self.webpackChunkocta_form_submission_webcomponent=self.webpackChunkocta_form_submission_webcomponent||[]).push([[792],{3624:(pn,ct,N)=>{var e=N(345),h=N(7705),ne=N(2771),Z=N(7786),De=N(5558),we=N(6354);const Ie={schedule(y,v){const u=setTimeout(y,v);return()=>clearTimeout(u)},scheduleBeforeRender(y){if(typeof window>"u")return Ie.schedule(y,0);if(typeof window.requestAnimationFrame>"u")return Ie.schedule(y,16);const v=window.requestAnimationFrame(y);return()=>window.cancelAnimationFrame(v)}};let Ue;function en(y,v,u){let C=u;return function Ne(y){return!!y&&y.nodeType===Node.ELEMENT_NODE}(y)&&v.some((F,H)=>!("*"===F||!function yt(y,v){if(!Ue){const u=Element.prototype;Ue=u.matches||u.matchesSelector||u.mozMatchesSelector||u.msMatchesSelector||u.oMatchesSelector||u.webkitMatchesSelector}return y.nodeType===Node.ELEMENT_NODE&&Ue.call(y,v)}(y,F)||(C=H,0))),C}class At{constructor(v,u){this.componentFactory=u.get(h.OM3).resolveComponentFactory(v)}create(v){return new me(this.componentFactory,v)}}class me{constructor(v,u){this.componentFactory=v,this.injector=u,this.eventEmitters=new ne.m(1),this.events=this.eventEmitters.pipe((0,De.n)(C=>(0,Z.h)(...C))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:C})=>C)),this.ngZone=this.injector.get(h.SKi),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(v){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(v)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Ie.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(v){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(v):this.componentRef.instance[v])}setInputValue(v,u,C){this.runInZone(()=>{C&&(u=C.call(this.componentRef?.instance,u)),null!==this.componentRef?function _t(y,v){return y===v||y!=y&&v!=v}(u,this.getInputValue(v))&&(void 0!==u||!this.unchangedInputs.has(v))||(this.recordInputChange(v,u),this.unchangedInputs.delete(v),this.hasInputChanges=!0,this.componentRef.instance[v]=u,this.scheduleDetectChanges()):this.initialInputValues.set(v,u)})}initializeComponent(v){const u=h.zZn.create({providers:[],parent:this.injector}),C=function mt(y,v){const u=y.childNodes,C=v.map(()=>[]);let F=-1;v.some((H,pe)=>"*"===H&&(F=pe,!0));for(let H=0,pe=u.length;H<pe;++H){const Ae=u[H],it=en(Ae,v,F);-1!==it&&C[it].push(Ae)}return C}(v,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(u,C,v),this.viewChangeDetectorRef=this.componentRef.injector.get(h.gRc),this.implementsOnChanges=function Me(y){return"function"==typeof y}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(h.o8S).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:v,transform:u})=>{this.initialInputValues.has(v)&&this.setInputValue(v,this.initialInputValues.get(v),u)}),this.initialInputValues.clear()}initializeOutputs(v){const u=this.componentFactory.outputs.map(({propName:C,templateName:F})=>v.instance[C].pipe((0,we.T)(pe=>({name:F,value:pe}))));this.eventEmitters.next(u)}callNgOnChanges(v){if(!this.implementsOnChanges||null===this.inputChanges)return;const u=this.inputChanges;this.inputChanges=null,v.instance.ngOnChanges(u)}markViewForCheck(v){this.hasInputChanges&&(this.hasInputChanges=!1,v.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Ie.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(v,u){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const C=this.inputChanges[v];if(C)return void(C.currentValue=u);const F=this.unchangedInputs.has(v),H=F?void 0:this.getInputValue(v);this.inputChanges[v]=new h.FRM(H,u,F)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(v){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(v):v()}}class at extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}var St=N(467),Mt=N(177);let cn={production:!1,googleRecaptchaSiteKey:"",htmlDirection:"ltr"};function En(y){return{name:y.result.name,formConfiguration:Wt(y.result.moduleConfiguration),pages:y.result.pages.map(v=>function ze(y){return{title:y.title,testElementName:y.testElementName,rows:y.rows.map(v=>be(v))}}(v)),questionAnswers:y.result.questionAnswers,parentId:y.result.parentId,emitters:y.result.emittersDTOS?y.result.emittersDTOS.map(v=>function dn(y){return{id:y.id,keyName:y.keyName,valueSource:y.valueSource,questionId:y.questionId,inputValue:y.inputValue,isConflict:y.isConflict??!1}}(v)):[]}}function Wt(y){return{saveAutomatically:y?.saveAutomatically,saveInterval:y?.saveInterval,customizeFont:y?.customizeFont,fontFamily:y?.fontFamily,fontSize:y?.fontSize,enableDataExport:y?.enableDataExport,fileFormats:y?.fileFormats,enableQuestionNumbering:y?.enableQuestionNumbering,questionNumbering:y?.questionNumbering,enableGoogleRecaptcha:y?.enableGoogleRecaptcha,googleRecaptchaKey:y?.googleRecaptchaKey,googleRecaptchaSecret:y?.googleRecaptchaSecret,navigation:y?.navigation,markAllQuestionsAsRequired:y?.markAllQuestionsAsRequired}}function be(y){return{grid:y.grid.map(v=>function Se(y){let v;switch(y.entityType){case"QUESTION":v=function K(y){return{count:y.count,id:y.id,questionNumber:y.questionNumber,required:y.required,hint:y.hint,question:y.question,testElementName:y.testElementName,answer:y?.answer,validation:!0,formElement:je(y.formElement),childLogics:y?.childLogics?.map(v=>function Le(y){return{id:y.id,inputValue:y.inputValue,condition:y.condition,showLogic:!1,rows:y?.rows?.map(v=>be(v))}}(v)),answerId:y?.answerId,attachments:y?.attachments?.map(v=>ge(v))||[],deleteFiles:[],defaultValue:y?.defaultValue,disableEdit:y?.disableEdit}}(y.element);break;case"SECTION":v=function Nt(y){return{id:y.id,title:y.title,description:y.description,testElementName:y.testElementName}}(y.element);break;case"SUBFORM":v=function ue(y){return{id:y.id,count:y.count,title:y.title,description:y.description,testElementName:y.testElementName,rows:y.rows.map(v=>be(v)),submissions:y?.submissions?.map(v=>Vt(v)),property:y.property?Be(y.property):void 0,defaultAnswers:y.defaultAnswers?Ye(y.defaultAnswers):void 0,deleted:!1}}(y.element);break;case"QUESTION_GROUP":v=function pt(y){return{id:y.id,count:y.count,title:y.title,description:y.description,testElementName:y.testElementName,rows:y.rows.map(v=>be(v)),submissions:y?.submissions?.map(v=>Vt(v))}}(y.element);break;case"MULTIFIELD":v=function dt(y){return{id:y.id,question:y.question,questionNumber:y.questionNumber,count:y.count,testElementName:y.testElementName,rows:y.rows.map(v=>be(v)),submissions:y?.submissions?.map(v=>Vt(v))}}(y.element);break;default:throw new Error(`Unknown entity type: ${y.entityType}`)}return{entityType:y.entityType,element:v}}(v))}}function ge(y){return{fileId:y.fileId,fileName:y.fileName,fileUrl:y.fileUrl,fileSize:y?.fileSize}}function je(y){return{elementType:y.elementType,appearance:Vn(y.appearance),validation:oi(y.validation),option:xe(y?.option),aggregateFunction:le(y?.aggregateFunction),selectionMatrixLabel:y.selectionMatrixLabel,selectionMatrixColumn:y.selectionMatrixColumn,termsAndConditionType:ce(y)}}function le(y){if(y)return{aggregateOperation:y.aggregateOperation,formula:y.formula}}function ce(y){if(null!=y.termsAndCondition){let v=y.termsAndCondition;return{termsAndConditionType:v.termsAndConditionType,fileUrl:v.fileUrl,fileName:v.fileName}}return{termsAndConditionType:"",fileUrl:"",fileName:""}}function Ye(y){return{answers:y.answers.map(v=>function L(y){return{isDeleteEnable:y.isDeleteEnable,defaultQuestionsAnswers:y.defaultQuestionsAnswers.map(v=>function z(y){return{defaultAnswer:y.defaultAnswer,readOnly:y.readOnly,isDeleteEnable:y.isDeleteEnable,questionId:y.questionId}}(v))}}(v))}}function Be(y){return{subFormStructure:y.subFormStructure,subFormType:y.subFormType,allowDelete:y.allowDelete,allowCopy:y.allowCopy}}function Vt(y){return{submissionId:y?.submissionId,answers:y?.answers?.map(v=>function bn(y){return{questionId:y.questionId,answer:y?.answer,answerId:y?.answerId,attachments:y?.attachments?.map(v=>ge(v))}}(v)),configuration:jn(y?.configuration)}}function jn(y){if(y)return{allowDelete:!!y.allowDelete,isDefault:!!y.isDefault}}function Vn(y){return{placeholder:y?.placeholder,fontSize:y?.fontSize,textAlign:y?.textAlign,font:y?.font,underline:y?.underline,bold:y?.bold,italics:y?.italics,defaultValue:y?.defaultValue,numberOfRows:y?.numberOfRows,singleSelection:y?.singleSelection,displayCountryCode:y?.displayCountryCode,displayFlag:y?.displayFlag,displayCode:y?.displayCode,showCountryName:y?.showCountryName,beautifyNumbers:y?.beautifyNumbers,upAndDownButton:y?.upAndDownButton,allowNegativeValues:y?.allowNegativeValues,showPreviewButton:y?.showPreviewButton,confirmPassword:y?.confirmPassword,viewButton:y?.viewButton,displayStrong:y?.displayStrong,dateType:y?.dateType,format:y?.format,setCurrentPosition:y?.setCurrentPosition,defaultZoomLevel:y?.defaultZoomLevel,allowFullScreen:y?.allowFullScreen,latitude:y?.latitude,longitude:y?.longitude,showAcceptButton:y?.showAcceptButton,labelOnValue:y?.labelOnValue,labelOffValue:y?.labelOffValue,labelOnColor:y?.labelOnColor,labelOffColor:y?.labelOffColor,minValue:y?.minValue,maxValue:y?.maxValue,stepValue:y?.stepValue,changeSliderColor:y?.changeSliderColor,sliderColor:y?.sliderColor,canvasOption:y?.canvasOption,selectionType:y?.selectionType,dragAndDrop:y?.dragAndDrop,previewUploadedFiles:y?.previewUploadedFiles,multiFileUploads:y?.multiFileUploads,selectionColorRequired:y?.selectionColorRequired,selectionColor:y?.selectionColor,color:y?.color,avatarPicker:y?.avatarPicker,timeFormat:y?.timeFormat,displayOptionsInColumn:y?.displayOptionsInColumn}}function oi(y){return{regexValidation:y?.regexValidation,regex:y?.regex,validationMessage:y?.validationMessage,limitedCharacters:y?.limitedCharacters,count:y?.count,minimumSelection:y?.minimumSelection,maximumSelection:y?.maximumSelection,countryWiseValidation:y?.countryWiseValidation,restrictCountry:y?.restrictCountry,allowedCountries:y?.allowedCountries,blockedCountries:y?.blockedCountries,regularExpression:y?.regularExpression,expectedDomains:y?.expectedDomains,min:y?.min,max:y?.max,minLength:y?.minLength,maxLength:y?.maxLength,requireLowercaseLetters:y?.requireLowercaseLetters,requireUppercaseLetters:y?.requireUppercaseLetters,requireNumbers:y?.requireNumbers,requireSpecialCharacters:y?.requireSpecialCharacters,allowedSpecialCharacters:y?.allowedSpecialCharacters,minDateOption:y?.minDateOption,minDate:y?.minDate,maxDateOption:y?.maxDateOption,maxDate:y?.maxDate,regionBoundary:y?.regionBoundary,region:y?.region,preventFromProceedingWithoutAgree:y?.preventFromProceedingWithoutAgree,buttonColour:y?.buttonColour,maxFileSize:y?.maxFileSize,minFileSize:y?.minFileSize,minSelection:y?.minSelection,maxSelection:y?.maxSelection,fileTypes:y?.fileTypes,fileSize:y?.fileSize,fileSizeUnit:y?.fileSizeUnit,totalFileSize:y?.totalFileSize,minSelectionRequired:y?.minSelectionRequired,minSelectionValue:y?.minSelectionValue,validationType:y?.validationType,validation:y?.validation,minTime:y?.minTime,maxTime:y?.maxTime,minTimeOption:y?.minTimeOption,maxTimeOption:y?.maxTimeOption}}function Ci(y){return{tableName:y.tableName,valueField:y.valueField,labelField:y.labelField,criteria:y?.criteria.map(v=>function xt(y){return{field:y?.field,condition:y?.condition,valueSource:y?.valueSource,inputValue:y?.inputValue,logicalOperator:y?.logicalOperator}}(v))}}function ke(y){return{external:y?.external,url:y?.url,valueField:y?.valueField,labelField:y?.labelField,pathToValue:y?.pathToValue,headers:y?.headers?.map(re),params:y?.params?.map(re),pathVariables:y?.pathVariables?.map(re)}}function re(y){return{keyName:y?.keyName,valueSource:y?.valueSource,inputValue:y?.inputValue}}function xe(y){return{optionType:y?.optionType,lookupTable:y?.lookupTable,customOptions:y?.customOptions?.map(v=>({value:v.value})),database:y?.database?Ci(y?.database):void 0,api:y?.api?ke(y.api):void 0}}var Ve=N(3628);let ut=(()=>{class y{constructor(u){this.validationService=u}validateRequiredQuestions(u){const C=(F,H=null)=>{for(let pe of F)if("QUESTION"===pe.entityType){const Ae=pe.element,it=Ae.required,It=Ae.id;let Jt;if(H?.isInMultipleSubform){const{submission:Cn}=H;Jt=Cn.answers.find(Fn=>Fn.questionId===It)?.answer}else Jt=Ae.answer;const Un=null==Jt||"string"==typeof Jt&&""===Jt.trim()||"object"==typeof Jt&&0===Object.keys(Jt).length;if(it&&Un){const Cn=H?.isInMultipleSubform?`Required question ${Ae.questionNumber} is not answered in a subform.`:`Required question ${Ae.questionNumber} is not answered.`;return this.validationService.setInvalid(It,Cn,u.pageIndex??0),{isValid:!1,message:Cn}}if(Ae.childLogics)for(let Cn of Ae.childLogics)if(Cn.showLogic)for(let Fn of Cn.rows){const Yn=C(Fn.grid,H);if(!Yn.isValid)return Yn}}else if("SUBFORM"===pe.entityType){const Ae=pe.element;if("multiple"===Ae.property?.subFormStructure){const it=Ae.submissions||[];if(it.length>0){if(Ae.rows.some(Jt=>Jt.grid.some(Un=>"QUESTION"===Un.entityType&&Un.element.required))&&0===it.length){const Jt=`Subform "${Ae.title||"Untitled"}" is missing required submissions.`;return this.validationService.setInvalid(Ae.id,Jt,u.pageIndex??0),{isValid:!1,message:Jt}}const rn=new Map;Ae.rows.forEach(Jt=>Jt.grid.forEach(Un=>{"QUESTION"===Un.entityType&&rn.set(Un.element.id,Un.element)}));for(let Jt of it)for(let Un of Ae.rows){const Cn=C(Un.grid,{isInMultipleSubform:!0,submission:Jt,questionMap:rn});if(!Cn.isValid)return Cn}}}else for(let it of Ae.rows||[]){const It=C(it.grid);if(!It.isValid)return It}}else if(("QUESTION_GROUP"===pe.entityType||"MULTIFIELD"===pe.entityType)&&pe.element.rows)for(let Ae of pe.element.rows){const it=C(Ae.grid,H);if(!it.isValid)return it}return{isValid:!0,message:"All required questions are answered."}};for(const F of u.rows){const H=C(F.grid);if(!H.isValid)return H}return{isValid:!0,message:"All required questions are answered."}}static{this.\u0275fac=function(C){return new(C||y)(h.KVO(Ve.B))}}static{this.\u0275prov=h.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();var Ft=N(7869),sn=N(7673),Ln=N(3726),Qt=N(1397),qt=N(8141),st=N(5964),Dt=N(3236),wt=N(9974),Rn=N(4360),yn=N(8750),ti=N(1584);function us(y,v,u,C){const F=window&&!!window.document&&window.document.documentElement;let H=F&&v?window:u;if(y&&(H=y&&F&&"string"==typeof y?function Bi(y,v,u){return(u?window.document:v).querySelector(y)}(y,u.nativeElement,C):y,!H))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return H}function Ps(y){return y&&!y.firstChange}const qs={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},Mn={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class io{constructor(v=!0){this.vertical=v,this.propsMap=v?qs:Mn}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function Pe(y){return["Window","global"].some(u=>Object.prototype.toString.call(y).includes(u))}function Fe(y,v){return y?v.document.documentElement:null}function Xe(y,v){const u=function Ke({container:y,isWindow:v,axis:u}){const{offsetHeightKey:C,clientHeightKey:F}=gt(u);return Ee(y,v,C,F)}(v);return v.isWindow?function zt(y,v,u){const{axis:C,container:F,isWindow:H}=u,{offsetHeightKey:pe,clientHeightKey:Ae}=gt(C),it=y+Bt(Fe(H,F),C,H),It=Ee(v.nativeElement,H,pe,Ae),rn=function Qe(y,v,u){const C=v.topKey();if(y.getBoundingClientRect)return y.getBoundingClientRect()[C]+Bt(y,v,u)}(v.nativeElement,C,H)+It;return{height:y,scrolled:it,totalToScroll:rn,isWindow:H}}(u,y,v):function on(y,v,u){const{axis:C,container:F}=u;return{height:y,scrolled:F[C.scrollTopKey()],totalToScroll:F[C.scrollHeightKey()],isWindow:!1}}(u,0,v)}function gt(y){return{offsetHeightKey:y.offsetHeightKey(),clientHeightKey:y.clientHeightKey()}}function Ee(y,v,u,C){if(isNaN(y[u])){const F=Fe(v,y);return F?F[C]:0}return y[u]}function Bt(y,v,u){const C=v.pageYOffsetKey(),F=v.scrollTopKey(),H=v.offsetTopKey();return isNaN(window.pageYOffset)?Fe(u,y)[F]:y.ownerDocument?y.ownerDocument.defaultView[C]:y[H]}function hn(y,v={down:0,up:0},u){let C,F;if(y.totalToScroll<=0)return!1;const H=y.isWindow?y.scrolled:y.height+y.scrolled;return u?(C=(y.totalToScroll-H)/y.totalToScroll,F=(v?.down?v.down:0)/10):(C=y.scrolled/(y.scrolled+(y.totalToScroll-H)),F=(v?.up?v.up:0)/10),C<=F}class Sn{constructor({totalToScroll:v}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=v}updateScrollPosition(v){return this.lastScrollPosition=v}updateTotalToScroll(v){this.lastTotalToScroll!==v&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=v)}updateScroll(v,u){this.updateScrollPosition(v),this.updateTotalToScroll(u)}updateTriggeredFlag(v,u){u?this.triggered.down=v:this.triggered.up=v}isTriggeredScroll(v,u){return u?this.triggered.down===v:this.triggered.up===v}}function Ei(y){const{scrollContainer:v,scrollWindow:u,element:C,fromRoot:F}=y,H=function kt({windowElement:y,axis:v}){return function ye(y,v){const u=y.isWindow||v&&!v.nativeElement?v:v.nativeElement;return{...y,container:u}}({axis:v,isWindow:Pe(y)},y)}({axis:new io(!y.horizontal),windowElement:us(v,u,C,F)}),pe=new Sn({totalToScroll:Xe(C,H)}),it={up:y.upDistance,down:y.downDistance};return function Ns(y){let v=(0,Ln.R)(y.container,"scroll");return y.throttle&&(v=v.pipe(function ai(y,v=Dt.E,u){const C=(0,ti.O)(y,v);return function Hn(y,v){return(0,wt.N)((u,C)=>{const{leading:F=!0,trailing:H=!1}=v??{};let pe=!1,Ae=null,it=null,It=!1;const rn=()=>{it?.unsubscribe(),it=null,H&&(Cn(),It&&C.complete())},Jt=()=>{it=null,It&&C.complete()},Un=Fn=>it=(0,yn.Tg)(y(Fn)).subscribe((0,Rn._)(C,rn,Jt)),Cn=()=>{if(pe){pe=!1;const Fn=Ae;Ae=null,C.next(Fn),!It&&Un(Fn)}};u.subscribe((0,Rn._)(C,Fn=>{pe=!0,Ae=Fn,(!it||it.closed)&&(F?Cn():Un(Fn))},()=>{It=!0,(!(H&&pe&&it)||it.closed)&&C.complete()}))})}(()=>C,u)}(y.throttle,void 0,{leading:!0,trailing:!0}))),v}({container:H.container,throttle:y.throttle}).pipe((0,Qt.Z)(()=>(0,sn.of)(Xe(C,H))),(0,we.T)(It=>function gs(y,v,u){const{scrollDown:C,fire:F}=function He(y,v,u){const C=function nt(y,v){return y<v.scrolled}(y,v);return{fire:hn(v,u,C),scrollDown:C}}(y,v,u);return{scrollDown:C,fire:F,stats:v}}(pe.lastScrollPosition,It,it)),(0,qt.M)(({stats:It})=>pe.updateScroll(It.scrolled,It.totalToScroll)),(0,st.p)(({fire:It,scrollDown:rn,stats:{totalToScroll:Jt}})=>function an(y,v,u){return!!(y&&v||!u&&v)}(y.alwaysCallback,It,pe.isTriggeredScroll(Jt,rn))),(0,qt.M)(({scrollDown:It,stats:{totalToScroll:rn}})=>{pe.updateTriggeredFlag(rn,It)}),(0,we.T)(Cs))}const ms={DOWN:"[NGX_ISE] DOWN",UP:"[NGX_ISE] UP"};function Cs(y){const{scrollDown:v,stats:{scrolled:u}}=y;return{type:v?ms.DOWN:ms.UP,payload:{currentScrollPosition:u}}}let Es=(()=>{class y{constructor(u,C){this.element=u,this.zone=C,this.scrolled=new h.bkB,this.scrolledUp=new h.bkB,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:u,infiniteScrollDisabled:C,infiniteScrollDistance:F}){const H=Ps(u),pe=Ps(C),Ae=Ps(F),it=!pe&&!this.infiniteScrollDisabled||pe&&!C.currentValue||Ae;(H||pe||Ae)&&(this.destroyScroller(),it&&this.setup())}setup(){(function ei(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=Ei({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(u=>this.handleOnScroll(u))})}handleOnScroll({type:u,payload:C}){const F=u===ms.DOWN?this.scrolled:this.scrolledUp;(function xi(y){return y.observed??y.observers.length>0})(F)&&this.zone.run(()=>F.emit(C))}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}static{this.\u0275fac=function(C){return new(C||y)(h.rXU(h.aKT),h.rXU(h.SKi))}}static{this.\u0275dir=h.FsC({type:y,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[h.OA$]})}}return y})(),Re=(()=>{class y{static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({})}}return y})();const Rt=function(y,v){return{"nav-item-ara":y,"nav-item-default":v}};function oe(y,v){if(1&y){const u=h.RV6();h.j41(0,"li",9)(1,"button",10),h.bIt("click",function(){const H=h.eBV(u).index,pe=h.XpG(2);return h.Njj(pe.setCurrentPage(H))}),h.EFF(2),h.k0s()()}if(2&y){const u=v.$implicit,C=v.index,F=h.XpG(2);h.Y8G("ngClass",h.l_i(8,Rt,"ara"===F.acceptedLanguage,"ara"!==F.acceptedLanguage)),h.R7$(1),h.AVh("active",C===F.currentPageIndex),h.Mz_("id","tab-",C,""),h.Y8G("title",u.name),h.BMQ("aria-controls","content-"+C)("aria-selected",C===F.currentPageIndex),h.R7$(1),h.SpI(" ",u.name," ")}}function _e(y,v){if(1&y&&(h.j41(0,"div",6)(1,"ul",7),h.DNE(2,oe,3,11,"li",8),h.k0s()()),2&y){const u=h.XpG();h.R7$(2),h.Y8G("ngForOf",u.pageDetails)("ngForTrackBy",u.trackByIndex)}}function $e(y,v){if(1&y){const u=h.RV6();h.j41(0,"div",11)(1,"button",12)(2,"img",13),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.scrollTabs(-1))}),h.k0s(),h.j41(3,"img",14),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.scrollTabs(1))}),h.k0s()()()}}const Pt=function(y){return{"width.%":y}};function tn(y,v){if(1&y){const u=h.RV6();h.j41(0,"div",23)(1,"octa-form-elements",24),h.bIt("subFormChange",function(F){h.eBV(u);const H=h.XpG(4);return h.Njj(H.updateSubFormWithSubmissions(F))}),h.k0s()()}if(2&y){const u=v.$implicit,C=h.XpG(4);h.Y8G("ngStyle",h.eq3(5,Pt,u.element.count*(100/12))),h.R7$(1),h.Y8G("grid",u)("edit",C.edit)("acceptedLanguage",C.acceptedLanguage)("pages",C.pages)}}function An(y,v){if(1&y&&(h.j41(0,"div")(1,"div",21),h.DNE(2,tn,2,7,"div",22),h.k0s()()),2&y){const u=v.$implicit;h.R7$(2),h.Y8G("ngForOf",u.grid)}}function zn(y,v){1&y&&(h.qex(0),h.nrm(1,"span",30),h.EFF(2," Submitting... "),h.bVm())}function hi(y,v){1&y&&h.EFF(0," Submit ")}const Kn=function(y){return{"background-color":y}};function li(y,v){if(1&y){const u=h.RV6();h.j41(0,"button",27),h.bIt("click",function(){h.eBV(u);const F=h.XpG(4);return h.Njj(F.submitForm())}),h.DNE(1,zn,3,0,"ng-container",28),h.DNE(2,hi,1,0,"ng-template",null,29,h.C5r),h.k0s()}if(2&y){const u=h.sdS(3),C=h.XpG(4);h.Y8G("ngStyle",h.eq3(4,Kn,C.primaryColor?C.primaryColor:"#084fff"))("disabled",!C.eligibleForSubmission.status||C.submissionInProgress),h.R7$(1),h.Y8G("ngIf",C.submissionInProgress)("ngIfElse",u)}}function es(y,v){if(1&y&&(h.j41(0,"div",31),h.EFF(1),h.k0s()),2&y){const u=h.XpG(4);h.R7$(1),h.SpI(" ",u.eligibleForSubmission.message," ")}}function Ls(y,v){if(1&y&&(h.j41(0,"div"),h.DNE(1,li,4,6,"button",25),h.DNE(2,es,2,1,"div",26),h.k0s()),2&y){const u=h.XpG(3);h.R7$(1),h.Y8G("ngIf",!u.isActionTriggered),h.R7$(1),h.Y8G("ngIf",u.showTooltip&&!u.eligibleForSubmission.status)}}const dr=function(y){return{display:y}};function Fo(y,v){if(1&y){const u=h.RV6();h.j41(0,"div")(1,"div",16),h.bIt("scrolled",function(){h.eBV(u);const F=h.XpG(2);return h.Njj(F.loadMoreData())}),h.DNE(2,An,3,1,"div",17),h.k0s(),h.j41(3,"div",18),h.nrm(4,"div",19),h.j41(5,"div",20),h.bIt("mouseenter",function(){h.eBV(u);const F=h.XpG(2);return h.Njj(F.showTooltip=!0)})("mouseleave",function(){h.eBV(u);const F=h.XpG(2);return h.Njj(F.showTooltip=!1)}),h.DNE(6,Ls,3,2,"div",5),h.k0s()()()}if(2&y){const u=h.XpG(2);h.R7$(1),h.Y8G("infiniteScrollDistance",2)("infiniteScrollThrottle",200),h.R7$(1),h.Y8G("ngForOf",u.pages[u.currentPageIndex].rows),h.R7$(2),h.Y8G("ngStyle",h.eq3(5,dr,u.currentPageIndex===u.pageDetails.length-1?"block":"none")),h.R7$(2),h.Y8G("ngIf",u.currentPageIndex==u.pageDetails.length-1)}}function Ri(y,v){if(1&y&&(h.qex(0),h.j41(1,"div",15),h.DNE(2,Fo,7,7,"div",5),h.k0s(),h.bVm()),2&y){const u=h.XpG();h.R7$(1),h.Mz_("id","content-",u.currentPageIndex,""),h.BMQ("aria-labelledby","tab-"+u.currentPageIndex),h.R7$(1),h.Y8G("ngIf",u.loadedPages[u.currentPageIndex])}}const Xs=function(y){return{"skip-margin":y}};let as=(()=>{class y{constructor(u,C){this.formValidationService=u,this.cdr=C,this.pages=[],this.currentPageIndex=0,this.pageChanged=new h.bkB,this.submitEmit=new h.bkB,this.edit=!1,this.acceptedLanguage="",this.eligibleForSubmission={status:!0,message:""},this.subFormChange=new h.bkB,this.pageDetails=[],this.markAllQuestionsAsRequired=!1,this.skipMargin=!1,this.rowSetIndex=new h.bkB,this.primaryColor="",this.secondaryColor="",this.isActionTriggered=!1,this.submissionInProgress=!1,this.loadedPages={},this.showTooltip=!1,this.showNavArrows=!1,this.hideTabs=!1,this.loadedPages[this.currentPageIndex]=!0}ngOnInit(){this.checkPageDetails()}ngAfterViewInit(){setTimeout(()=>this.checkOverflow()),this.cdr.detectChanges()}checkPageDetails(){this.pageDetails&&1==this.pageDetails?.length&&""==this.pageDetails[0]?.name&&(this.hideTabs=!0)}updateSubFormWithSubmissions(u){this.subFormChange.emit(u)}triggerFunction(u){this.setCurrentPage(u)}setCurrentPage(u){this.markAllQuestionsAsRequired?this.formValidationService.validateRequiredQuestions(this.pages[this.currentPageIndex]).isValid&&(this.pageChanged.emit(u),this.currentPageIndex=u,this.loadedPages[u]||(this.loadedPages[u]=!0)):(this.pageChanged.emit(u),this.currentPageIndex=u,this.loadedPages[u]||(this.loadedPages[u]=!0))}submitForm(){this.submitEmit.emit()}trackByIndex(u,C){return u}loadMoreData(){this.rowSetIndex.emit(this.currentPageIndex)}toggleTooltip(){this.showTooltip=!this.eligibleForSubmission.status}scrollTabs(u){const C=document.querySelector(".navTabs");C&&(C.scrollBy({left:100*u,behavior:"smooth"}),setTimeout(()=>this.checkOverflow(),300))}checkOverflow(){const u=document.querySelector(".navTabs");u&&(this.showNavArrows=u.scrollWidth>u.clientWidth)}static{this.\u0275fac=function(C){return new(C||y)(h.rXU(ut),h.rXU(h.gRc))}}static{this.\u0275cmp=h.VBU({type:y,selectors:[["octa-navigation-tabs"]],inputs:{pages:"pages",currentPageIndex:"currentPageIndex",edit:"edit",acceptedLanguage:"acceptedLanguage",eligibleForSubmission:"eligibleForSubmission",pageDetails:"pageDetails",markAllQuestionsAsRequired:"markAllQuestionsAsRequired",skipMargin:"skipMargin",primaryColor:"primaryColor",secondaryColor:"secondaryColor",isActionTriggered:"isActionTriggered",submissionInProgress:"submissionInProgress"},outputs:{pageChanged:"pageChanged",submitEmit:"submitEmit",subFormChange:"subFormChange",rowSetIndex:"rowSetIndex"},decls:6,vars:7,consts:[[1,"tab-inner-container",3,"ngClass"],[1,"d-flex","gap-2"],["class","tab-navigation",4,"ngIf"],["class","d-flex align-items-center",4,"ngIf"],[1,"tab-content","pt-5","pb-3","px-1"],[4,"ngIf"],[1,"tab-navigation"],["id","myTab","role","tablist",1,"nav","nav-tabs","navTabs"],["class","nav-item","role","presentation",3,"ngClass",4,"ngFor","ngForOf","ngForTrackBy"],["role","presentation",1,"nav-item",3,"ngClass"],["data-bs-toggle","tooltip","data-bs-placement","top","data-bs-custom-class","custom-tooltip","type","button","role","tab",1,"nav-link",3,"title","id","click"],[1,"d-flex","align-items-center"],[1,"nav-arrow"],["src","/assets/octa-form-submission-webcomponent/icons/left_arrow.svg","alt","left arrow",3,"click"],["src","/assets/octa-form-submission-webcomponent/icons/right_arrow.svg","alt","right arrow",3,"click"],["role","tabpanel",1,"tab-pane","fade","show","active",3,"id"],["infiniteScroll","",1,"data-container",3,"infiniteScrollDistance","infiniteScrollThrottle","scrolled"],[4,"ngFor","ngForOf"],[1,"footerButton","d-flex","justify-content-between","align-items-center","me-4","ms-4","position-relative"],["id","captcha-container",3,"ngStyle"],[1,"button-container","position-relative",3,"mouseenter","mouseleave"],[1,"margin","d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[3,"grid","edit","acceptedLanguage","pages","subFormChange"],["class","btn rounded-pill submitButton text-white","type","button",3,"ngStyle","disabled","click",4,"ngIf"],["class","custom-tooltip",4,"ngIf"],["type","button",1,"btn","rounded-pill","submitButton","text-white",3,"ngStyle","disabled","click"],[4,"ngIf","ngIfElse"],["showSubmitText",""],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","me-2"],[1,"custom-tooltip"]],template:function(C,F){1&C&&(h.j41(0,"div",0)(1,"div",1),h.DNE(2,_e,3,2,"div",2),h.DNE(3,$e,4,0,"div",3),h.k0s(),h.j41(4,"div",4),h.DNE(5,Ri,3,3,"ng-container",5),h.k0s()()),2&C&&(h.Y8G("ngClass",h.eq3(5,Xs,F.skipMargin)),h.R7$(2),h.Y8G("ngIf",!F.hideTabs),h.R7$(1),h.Y8G("ngIf",F.showNavArrows),h.R7$(1),h.BMQ("name",F.pages[F.currentPageIndex].testElementName),h.R7$(1),h.Y8G("ngIf",F.pages[F.currentPageIndex]))},dependencies:[Mt.YU,Mt.Sq,Mt.bT,Mt.B3,Ft.FormElementsComponent,Es],styles:['.tab-inner-container[_ngcontent-%COMP%]{width:100%;position:relative;padding:3rem}@media (max-width: 1024px){.tab-inner-container[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}@media (max-width: 576px){.tab-inner-container[_ngcontent-%COMP%]{padding:2rem .5rem}}.skip-margin[_ngcontent-%COMP%]{padding:0}.custom-tooltip[_ngcontent-%COMP%]{visibility:hidden;position:absolute;top:-40px;right:0;background:#efefef;color:#7b7878;padding:8px 12px;border-radius:12px;box-shadow:0 4px 8px #00000026;font-size:14px;white-space:nowrap;z-index:10}.custom-tooltip.warning[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ffd700,#ffb400)}.fade-in[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_fadeIn .3s ease-in-out}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.footerButton[_ngcontent-%COMP%]:hover .custom-tooltip[_ngcontent-%COMP%]{visibility:visible}.navTabs[_ngcontent-%COMP%]{overflow-x:auto;overflow-y:hidden;flex-wrap:unset;margin:0 0 -1px!important;padding-right:0}.nav-item[_ngcontent-%COMP%]{background-color:#fff;border-radius:5px}.nav-item.nav-item-default[_ngcontent-%COMP%]{margin-right:.5%}.nav-item.nav-item-ara[_ngcontent-%COMP%]{margin-left:.5%}.nav-link[_ngcontent-%COMP%]{position:relative;margin-bottom:-2px;padding-left:25px;padding-right:25px}.nav-link[_ngcontent-%COMP%]:after{content:"";position:absolute;left:0;bottom:0;width:101%;height:6px;background:#efefef}.nav-link.active[_ngcontent-%COMP%]:after{display:none}.tab-content[_ngcontent-%COMP%]{background-color:#fff}.custom-tooltip[_ngcontent-%COMP%]{--bs-tooltip-bg: var(--bd-violet-bg);--bs-tooltip-color: var(--bs-white)}.tab-navigation[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;width:95%}.navTabs[_ngcontent-%COMP%]{display:flex;overflow-x:auto;scroll-behavior:smooth;white-space:nowrap;width:100%;padding:0;margin:0;scrollbar-width:none;-ms-overflow-style:none}.navTabs[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.nav-arrow[_ngcontent-%COMP%]{position:absolute;background:white;border:none;cursor:pointer;font-size:20px;font-weight:700;padding:5px 10px;z-index:1000;box-shadow:0 2px 5px #0003;width:45px;height:27px;gap:13px;display:flex;justify-content:center;align-items:center;border-radius:6px}.nav-arrow[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:8px;height:15px}.spinner-border[_ngcontent-%COMP%]{display:inline-block;width:1rem;height:1rem;vertical-align:text-bottom;border:.15em solid currentColor;border-right-color:transparent;border-radius:50%;animation:_ngcontent-%COMP%_spinner-border .75s linear infinite}@keyframes _ngcontent-%COMP%_spinner-border{to{transform:rotate(360deg)}}']})}}return y})();var ur=N(541),In=N(9969),Ao=N(1413);const Bs=["toast-component",""];function Ws(y,v){if(1&y){const u=h.RV6();h.j41(0,"button",5),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.remove())}),h.j41(1,"span",6),h.EFF(2,"\xd7"),h.k0s()()}}function Tr(y,v){if(1&y&&(h.qex(0),h.EFF(1),h.bVm()),2&y){const u=h.XpG(2);h.R7$(1),h.SpI("[",u.duplicatesCount+1,"]")}}function hr(y,v){if(1&y&&(h.j41(0,"div"),h.EFF(1),h.DNE(2,Tr,2,1,"ng-container",4),h.k0s()),2&y){const u=h.XpG();h.HbH(u.options.titleClass),h.BMQ("aria-label",u.title),h.R7$(1),h.SpI(" ",u.title," "),h.R7$(1),h.Y8G("ngIf",u.duplicatesCount)}}function Po(y,v){if(1&y&&h.nrm(0,"div",7),2&y){const u=h.XpG();h.HbH(u.options.messageClass),h.Y8G("innerHTML",u.message,h.npT)}}function er(y,v){if(1&y&&(h.j41(0,"div",8),h.EFF(1),h.k0s()),2&y){const u=h.XpG();h.HbH(u.options.messageClass),h.BMQ("aria-label",u.message),h.R7$(1),h.SpI(" ",u.message," ")}}function Lo(y,v){if(1&y&&(h.j41(0,"div"),h.nrm(1,"div",9),h.k0s()),2&y){const u=h.XpG();h.R7$(1),h.xc7("width",u.width()+"%")}}class hs{_attachedHost;component;viewContainerRef;injector;constructor(v,u){this.component=v,this.injector=u}attach(v,u){return this._attachedHost=v,v.attach(this,u)}detach(){const v=this._attachedHost;if(v)return this._attachedHost=void 0,v.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(v){this._attachedHost=v}}class Qs{_attachedPortal;_disposeFn;attach(v,u){return this._attachedPortal=v,this.attachComponentPortal(v,u)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(v){this._disposeFn=v}}class Zs{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new Ao.B;_activate=new Ao.B;_manualClose=new Ao.B;_resetTimeout=new Ao.B;_countDuplicate=new Ao.B;constructor(v){this._overlayRef=v}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(v,u){v&&this._resetTimeout.next(),u&&this._countDuplicate.next(++this.duplicatesCount)}}class Wo{toastId;config;message;title;toastType;toastRef;_onTap=new Ao.B;_onAction=new Ao.B;constructor(v,u,C,F,H,pe){this.toastId=v,this.config=u,this.message=C,this.title=F,this.toastType=H,this.toastRef=pe,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(v){this._onAction.next(v)}onAction(){return this._onAction.asObservable()}}const Vi=new h.nKC("ToastConfig");class On extends Qs{_hostDomElement;_componentFactoryResolver;_appRef;constructor(v,u,C){super(),this._hostDomElement=v,this._componentFactoryResolver=u,this._appRef=C}attachComponentPortal(v,u){const C=this._componentFactoryResolver.resolveComponentFactory(v.component);let F;return F=C.create(v.injector),this._appRef.attachView(F.hostView),this.setDisposeFn(()=>{this._appRef.detachView(F.hostView),F.destroy()}),u?this._hostDomElement.insertBefore(this._getComponentRootNode(F),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(F)),F}_getComponentRootNode(v){return v.hostView.rootNodes[0]}}let ni=(()=>{class y{_document=(0,h.WQX)(Mt.qQ);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const u=this._document.createElement("div");u.classList.add("overlay-container"),u.setAttribute("aria-live","polite"),this._document.body.appendChild(u),this._containerElement=u}static \u0275fac=function(C){return new(C||y)};static \u0275prov=h.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();class Xi{_portalHost;constructor(v){this._portalHost=v}attach(v,u=!0){return this._portalHost.attach(v,u)}detach(){return this._portalHost.detach()}}let Us=(()=>{class y{_overlayContainer=(0,h.WQX)(ni);_componentFactoryResolver=(0,h.WQX)(h.OM3);_appRef=(0,h.WQX)(h.o8S);_document=(0,h.WQX)(Mt.qQ);_paneElements=new Map;create(u,C){return this._createOverlayRef(this.getPaneElement(u,C))}getPaneElement(u="",C){return this._paneElements.get(C)||this._paneElements.set(C,{}),this._paneElements.get(C)[u]||(this._paneElements.get(C)[u]=this._createPaneElement(u,C)),this._paneElements.get(C)[u]}_createPaneElement(u,C){const F=this._document.createElement("div");return F.id="toast-container",F.classList.add(u),F.classList.add("toast-container"),C?C.getContainerElement().appendChild(F):this._overlayContainer.getContainerElement().appendChild(F),F}_createPortalHost(u){return new On(u,this._componentFactoryResolver,this._appRef)}_createOverlayRef(u){return new Xi(this._createPortalHost(u))}static \u0275fac=function(C){return new(C||y)};static \u0275prov=h.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})(),go=(()=>{class y{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(u,C,F,H,pe){this.overlay=C,this._injector=F,this.sanitizer=H,this.ngZone=pe,this.toastrConfig={...u.default,...u.config},u.config.iconClasses&&(this.toastrConfig.iconClasses={...u.default.iconClasses,...u.config.iconClasses})}show(u,C,F={},H=""){return this._preBuildNotification(H,u,C,this.applyConfig(F))}success(u,C,F={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",u,C,this.applyConfig(F))}error(u,C,F={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",u,C,this.applyConfig(F))}info(u,C,F={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",u,C,this.applyConfig(F))}warning(u,C,F={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",u,C,this.applyConfig(F))}clear(u){for(const C of this.toasts)if(void 0!==u){if(C.toastId===u)return void C.toastRef.manualClose()}else C.toastRef.manualClose()}remove(u){const C=this._findToast(u);if(!C||(C.activeToast.toastRef.close(),this.toasts.splice(C.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const F=this.toasts[this.currentlyActive].toastRef;F.isInactive()||(this.currentlyActive=this.currentlyActive+1,F.activate())}return!0}findDuplicate(u="",C="",F,H){const{includeTitleDuplicates:pe}=this.toastrConfig;for(const Ae of this.toasts)if((!pe||pe&&Ae.title===u)&&Ae.message===C)return Ae.toastRef.onDuplicate(F,H),Ae;return null}applyConfig(u={}){return{...this.toastrConfig,...u}}_findToast(u){for(let C=0;C<this.toasts.length;C++)if(this.toasts[C].toastId===u)return{index:C,activeToast:this.toasts[C]};return null}_preBuildNotification(u,C,F,H){return H.onActivateTick?this.ngZone.run(()=>this._buildNotification(u,C,F,H)):this._buildNotification(u,C,F,H)}_buildNotification(u,C,F,H){if(!H.toastComponent)throw new Error("toastComponent required");const pe=this.findDuplicate(F,C,this.toastrConfig.resetTimeoutOnDuplicate&&H.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&F||C)&&this.toastrConfig.preventDuplicates&&null!==pe)return pe;this.previousToastMessage=C;let Ae=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Ae=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const it=this.overlay.create(H.positionClass,this.overlayContainer);this.index=this.index+1;let It=C;C&&H.enableHtml&&(It=this.sanitizer.sanitize(h.WPN.HTML,C));const rn=new Zs(it),Jt=new Wo(this.index,H,It,F,u,rn),Cn=h.zZn.create({providers:[{provide:Wo,useValue:Jt}],parent:this._injector}),Fn=new hs(H.toastComponent,Cn),Yn=it.attach(Fn,H.newestOnTop);rn.componentInstance=Yn.instance;const Ui={toastId:this.index,title:F||"",message:C||"",toastRef:rn,onShown:rn.afterActivate(),onHidden:rn.afterClosed(),onTap:Jt.onTap(),onAction:Jt.onAction(),portal:Yn};return Ae||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Ui.toastRef.activate()})),this.toasts.push(Ui),Ui}static \u0275fac=function(C){return new(C||y)(h.KVO(Vi),h.KVO(Us),h.KVO(h.zZn),h.KVO(e.up),h.KVO(h.SKi))};static \u0275prov=h.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}return y})();const Ko={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",toastComponent:(()=>{class y{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=(0,h.vPA)(-1);toastClasses="";state;get _state(){return this.state()}get displayStyle(){if("inactive"===this.state().value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(u,C,F){this.toastrService=u,this.toastPackage=C,this.ngZone=F,this.message=C.message,this.title=C.title,this.options=C.config,this.originalTimeout=C.config.timeOut,this.toastClasses=`${C.toastType} ${C.config.toastClass}`,this.sub=C.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=C.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=C.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=C.toastRef.countDuplicate().subscribe(H=>{this.duplicatesCount=H}),this.state=(0,h.vPA)({value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}})}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state.update(u=>({...u,value:"active"})),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width()||100===this.width()||!this.options.timeOut)return;const u=(new Date).getTime();this.width.set((this.hideTime-u)/this.options.timeOut*100),"increasing"===this.options.progressAnimation&&this.width.update(F=>100-F),this.width()<=0&&this.width.set(0),this.width()>=100&&this.width.set(100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state.update(u=>({...u,value:"active"})),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state().value&&(clearTimeout(this.timeout),this.state.update(u=>({...u,value:"removed"})),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state().value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state().value&&"extendedTimeOut"!==this.options.disableTimeOut&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width.set(0))}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state().value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width.set(-1),this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout(u,C){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(u),C)):this.timeout=setTimeout(()=>u(),C)}outsideInterval(u,C){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(u),C)):this.intervalId=setInterval(()=>u(),C)}runInsideAngular(u){this.ngZone?this.ngZone.run(()=>u()):u()}static \u0275fac=function(C){return new(C||y)(h.rXU(go),h.rXU(Wo),h.rXU(h.SKi))};static \u0275cmp=h.VBU({type:y,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(C,F){1&C&&h.bIt("click",function(){return F.tapToast()})("mouseenter",function(){return F.stickAround()})("mouseleave",function(){return F.delayedHideToast()}),2&C&&(h.zvX("@flyInOut",F._state),h.HbH(F.toastClasses),h.xc7("display",F.displayStyle))},standalone:!0,features:[h.aNF],attrs:Bs,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(C,F){1&C&&(h.DNE(0,Ws,3,0,"button",0),h.DNE(1,hr,3,5,"div",1),h.DNE(2,Po,1,3,"div",2),h.DNE(3,er,2,4,"div",3),h.DNE(4,Lo,2,2,"div",4)),2&C&&(h.Y8G("ngIf",F.options.closeButton),h.R7$(1),h.Y8G("ngIf",F.title),h.R7$(1),h.Y8G("ngIf",F.message&&F.options.enableHtml),h.R7$(1),h.Y8G("ngIf",F.message&&!F.options.enableHtml),h.R7$(1),h.Y8G("ngIf",F.options.progressBar))},dependencies:[Mt.bT],encapsulation:2,data:{animation:[(0,In.hZ)("flyInOut",[(0,In.wk)("inactive",(0,In.iF)({opacity:0})),(0,In.wk)("active",(0,In.iF)({opacity:1})),(0,In.wk)("removed",(0,In.iF)({opacity:0})),(0,In.kY)("inactive => active",(0,In.i0)("{{ easeTime }}ms {{ easing }}")),(0,In.kY)("active => removed",(0,In.i0)("{{ easeTime }}ms {{ easing }}"))])]},changeDetection:0})}return y})()},Wi=(y={})=>(0,h.EmA)([{provide:Vi,useValue:{default:Ko,config:y}}]);let fr=(()=>{class y{static forRoot(u={}){return{ngModule:y,providers:[Wi(u)]}}static \u0275fac=function(C){return new(C||y)};static \u0275mod=h.$C({type:y});static \u0275inj=h.G2t({})}return y})();var qr=N(1593),Ni=N(1339),Xr=N(1626);let ls=(()=>{class y{constructor(u,C,F){this.toastr=u,this.http=C,this.dataService=F,this.siteKey="",this.apiUrl="",this.widgetId=null,this.initialized=!1,this.resolved=!1,this.dataService.apiUrl$.subscribe(H=>{this.apiUrl=H})}ngOnInit(){this.fetchSiteKeyFromApi().subscribe({next:u=>this.siteKey=u,error:()=>this.toastr.error("Failed to load CAPTCHA config")})}fetchSiteKeyFromApi(){return this.http.get(`${this.apiUrl}/api/application-settings/recaptcha/siteKey`).pipe((0,we.T)(u=>u.message))}initialize(){return(!this.siteKey||""===this.siteKey)&&this.fetchSiteKeyFromApi().subscribe({next:u=>this.siteKey=u,error:()=>this.toastr.error("Failed to load CAPTCHA config")}),new Promise((u,C)=>{if(null!==this.widgetId)return console.log("reCAPTCHA already initialized, skipping initialization."),void u();if(this.initialized&&typeof grecaptcha<"u"&&"function"==typeof grecaptcha.render)return void u();const F=document.querySelector('script[src*="recaptcha/api.js"]');if(F)return F.addEventListener("load",()=>u()),void u();const H=document.createElement("script");H.src="https://www.google.com/recaptcha/api.js?onload=onRecaptchaLoadCallback&render=explicit",H.async=!0,H.defer=!0,window.onRecaptchaLoadCallback=()=>{this.initialized=!0,u()},H.onerror=()=>{C("Failed to load reCAPTCHA script")},document.head.appendChild(H)})}render(u,C){if(typeof grecaptcha>"u")throw new Error("reCAPTCHA is not loaded");null===this.widgetId?this.widgetId=grecaptcha.render(u,{sitekey:this.siteKey,callback:F=>{this.resolved=!0,C(F)},"expired-callback":()=>{this.resolved=!1,this.toastr.warning("reCAPTCHA expired, please verify again")},"error-callback":()=>{this.resolved=!1,this.toastr.error("reCAPTCHA error occurred")},size:"normal",theme:"light"}):console.warn("reCAPTCHA already rendered, skipping render.")}reset(){typeof grecaptcha<"u"&&null!==this.widgetId&&(grecaptcha.reset(this.widgetId),this.resolved=!1)}getResponse(){return typeof grecaptcha>"u"||null===this.widgetId?"":grecaptcha.getResponse(this.widgetId)}isRendered(){return null!==this.widgetId}isResolved(){return this.resolved&&!!this.getResponse()}removeRecaptchaScript(){const u=document.querySelector('script[src*="recaptcha/api.js"]');u&&u.remove();const C=document.querySelector(".grecaptcha-badge");C&&C.remove(),this.widgetId=null,this.initialized=!1,this.resolved=!1}static{this.\u0275fac=function(C){return new(C||y)(h.KVO(go),h.KVO(Xr.Qq),h.KVO(Ni.u))}}static{this.\u0275prov=h.jDH({token:y,factory:y.\u0275fac,providedIn:"root"})}}return y})();var Mo=N(1852),Qo=N(6);function Fr(y,v){1&y&&h.SdG(0,0,["*ngIf","appearance === 'custom-content'"])}const Ss=function(y,v,u,C,F){return{"custom-content":y,circle:v,progress:u,"progress-dark":C,pulse:F}};function _o(y,v){if(1&y&&(h.j41(0,"div",1),h.DNE(1,Fr,1,0,"ng-content",2),h.k0s()),2&y){const u=h.XpG();h.Y8G("ngClass",h.s1E(5,Ss,"custom-content"===u.appearance,"circle"===u.appearance,"progress"===u.animation,"progress-dark"===u.animation,"pulse"===u.animation))("ngStyle",u.theme),h.BMQ("aria-label",u.ariaLabel)("aria-valuetext",u.loadingText),h.R7$(1),h.Y8G("ngIf","custom-content"===u.appearance)}}const pr=["*"],ua=new h.nKC("ngx-skeleton-loader.config");let gi=(()=>{class y{constructor(u){this.config=u;const{appearance:C="line",animation:F="progress",theme:H=null,loadingText:pe="Loading...",count:Ae=1,ariaLabel:it="loading"}=u||{};this.appearance=C,this.animation=F,this.theme=H,this.loadingText=pe,this.count=Ae,this.items=[],this.ariaLabel=it}ngOnInit(){this.validateInputValues()}validateInputValues(){/^\d+$/.test(`${this.count}`)||((0,h.naY)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'count' a numeric value. Forcing default to \"1\"."),this.count=1),"custom-content"===this.appearance&&(0,h.naY)()&&1!==this.count&&(console.error('`NgxSkeletonLoaderComponent` enforces elements with "custom-content" appearance as DOM nodes. Forcing "count" to "1".'),this.count=1),this.items.length=this.count;const u=["progress","progress-dark","pulse","false"];-1===u.indexOf(String(this.animation))&&((0,h.naY)()&&console.error(`\`NgxSkeletonLoaderComponent\` need to receive 'animation' as: ${u.join(", ")}. Forcing default to "progress".`),this.animation="progress"),-1===["circle","line","custom-content",""].indexOf(String(this.appearance))&&((0,h.naY)()&&console.error("`NgxSkeletonLoaderComponent` need to receive 'appearance' as: circle or line or custom-content or empty string. Forcing default to \"''\"."),this.appearance="");const{theme:C}=this.config||{};C&&C.extendsFromRoot&&null!==this.theme&&(this.theme={...this.config.theme,...this.theme})}ngOnChanges(u){["count","animation","appearance"].find(C=>u[C]&&(u[C].isFirstChange()||u[C].previousValue===u[C].currentValue))||this.validateInputValues()}static{this.\u0275fac=function(C){return new(C||y)(h.rXU(ua,8))}}static{this.\u0275cmp=h.VBU({type:y,selectors:[["ngx-skeleton-loader"]],inputs:{count:"count",loadingText:"loadingText",appearance:"appearance",animation:"animation",ariaLabel:"ariaLabel",theme:"theme"},features:[h.OA$],ngContentSelectors:pr,decls:1,vars:1,consts:[["class","skeleton-loader","aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","-1",3,"ngClass","ngStyle",4,"ngFor","ngForOf"],["aria-busy","true","aria-valuemin","0","aria-valuemax","100","role","progressbar","tabindex","-1",1,"skeleton-loader",3,"ngClass","ngStyle"],[4,"ngIf"]],template:function(C,F){1&C&&(h.NAR(),h.DNE(0,_o,2,11,"div",0)),2&C&&h.Y8G("ngForOf",F.items)},dependencies:[Mt.YU,Mt.Sq,Mt.bT,Mt.B3],styles:['.skeleton-loader[_ngcontent-%COMP%]{box-sizing:border-box;overflow:hidden;position:relative;background:rgb(239,241,246) no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.skeleton-loader[_ngcontent-%COMP%]:after, .skeleton-loader[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.circle[_ngcontent-%COMP%]{width:40px;height:40px;margin:5px;border-radius:50%}.skeleton-loader.progress[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%]{transform:translateZ(0)}.skeleton-loader.progress[_ngcontent-%COMP%]:after, .skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:after, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{box-sizing:border-box}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_progress 2s ease-in-out infinite;background-size:200px 100%;position:absolute;z-index:1;top:0;left:0;width:200px;height:100%;content:""}.skeleton-loader.progress[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.6),rgba(255,255,255,0))}.skeleton-loader.progress-dark[_ngcontent-%COMP%]:before{background-image:linear-gradient(90deg,transparent,rgba(0,0,0,.2),transparent)}.skeleton-loader.pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_pulse 1.5s cubic-bezier(.4,0,.2,1) infinite;animation-delay:.5s}.skeleton-loader.custom-content[_ngcontent-%COMP%]{height:100%;background:none}@media (prefers-reduced-motion: reduce){.skeleton-loader.pulse[_ngcontent-%COMP%], .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%], .skeleton-loader.progress[_ngcontent-%COMP%]:before{animation:none}.skeleton-loader.progress[_ngcontent-%COMP%]:before, .skeleton-loader.progress-dark[_ngcontent-%COMP%], .skeleton-loader.custom-content[_ngcontent-%COMP%]{background-image:none}}@media screen and (min-device-width: 1200px){.skeleton-loader[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;cursor:wait}}@keyframes _ngcontent-%COMP%_progress{0%{transform:translate3d(-200px,0,0)}to{transform:translate3d(calc(200px + 100vw),0,0)}}@keyframes _ngcontent-%COMP%_pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}'],changeDetection:0})}}return y})(),Vs=(()=>{class y{static forRoot(u){return{ngModule:y,providers:[{provide:ua,useValue:u}]}}static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({imports:[Mt.MD]})}}return y})();function Ar(y,v){1&y&&h.nrm(0,"div",3)}let mr=(()=>{class y{constructor(){this.name="",this.skipMargin=!1}static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275cmp=h.VBU({type:y,selectors:[["octa-header"]],inputs:{name:"name",skipMargin:"skipMargin"},decls:5,vars:2,consts:[[1,"head","container"],[1,"registration-header"],["class","line",4,"ngIf"],[1,"line"]],template:function(C,F){1&C&&(h.j41(0,"div",0)(1,"div",1)(2,"p"),h.EFF(3),h.k0s()(),h.DNE(4,Ar,1,0,"div",2),h.k0s()),2&C&&(h.R7$(3),h.JRh(F.name),h.R7$(1),h.Y8G("ngIf",!F.skipMargin))},dependencies:[Mt.bT],styles:[".head[_ngcontent-%COMP%]{background-color:#fff;padding:0!important}.registration-header[_ngcontent-%COMP%]{top:20px;left:50%}.registration-header[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:20px;font-weight:600}.line[_ngcontent-%COMP%]{margin-top:1%;margin-bottom:2%;width:100%;height:0px;border:1.5px solid #eaeaea;transform:rotate(180deg)}@media (max-width: 576px){.line[_ngcontent-%COMP%]{margin-bottom:5%}}"]})}}return y})();function ro(y,v){if(1&y&&(h.j41(0,"div",14)(1,"p",15),h.EFF(2),h.k0s()()),2&y){const u=h.XpG();h.R7$(2),h.JRh(null==u.pageDetails[u.currentPageIndex]?null:u.pageDetails[u.currentPageIndex].name)}}const Ms=function(y){return{"width.%":y}};function Bo(y,v){if(1&y){const u=h.RV6();h.j41(0,"div",18)(1,"octa-form-elements",19),h.bIt("subFormChange",function(F){h.eBV(u);const H=h.XpG(2);return h.Njj(H.updateSubFormWithSubmissions(F))}),h.k0s()()}if(2&y){const u=v.$implicit,C=h.XpG(2);h.Y8G("ngStyle",h.eq3(5,Ms,u.element.count*(100/12))),h.R7$(1),h.Y8G("grid",u)("currentPageIndex",C.currentPageIndex)("edit",C.edit)("acceptedLanguage",C.acceptedLanguage)}}function tr(y,v){if(1&y&&(h.j41(0,"div",16),h.DNE(1,Bo,2,7,"div",17),h.k0s()),2&y){const u=v.$implicit;h.R7$(1),h.Y8G("ngForOf",u.grid)}}function ks(y,v){1&y&&(h.qex(0),h.qSk(),h.j41(1,"svg",23),h.nrm(2,"path",24)(3,"path",25),h.k0s(),h.bVm())}function Wr(y,v){1&y&&(h.qSk(),h.j41(0,"svg",23),h.nrm(1,"path",26)(2,"path",27),h.k0s())}const Fs=function(y){return{"background-color":y}};function Ki(y,v){if(1&y){const u=h.RV6();h.j41(0,"button",20),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.onNavigatePrevious())}),h.DNE(1,ks,4,0,"ng-container",21),h.DNE(2,Wr,3,0,"ng-template",null,22,h.C5r),h.EFF(4),h.k0s()}if(2&y){const u=h.sdS(3),C=h.XpG();h.Y8G("ngStyle",h.eq3(4,Fs,C.primaryColor?C.primaryColor:"#084fff")),h.R7$(1),h.Y8G("ngIf","ara"===C.acceptedLanguage)("ngIfElse",u),h.R7$(3),h.SpI(" Previous | ",C.previousPage.name," ")}}function gr(y,v){1&y&&(h.qex(0),h.qSk(),h.j41(1,"svg",23),h.nrm(2,"path",26)(3,"path",27),h.k0s(),h.bVm())}function Vo(y,v){1&y&&(h.qSk(),h.j41(0,"svg",23),h.nrm(1,"path",24)(2,"path",25),h.k0s())}function Kr(y,v){if(1&y){const u=h.RV6();h.j41(0,"button",28),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.onNavigateNext())}),h.EFF(1),h.DNE(2,gr,4,0,"ng-container",21),h.DNE(3,Vo,3,0,"ng-template",null,22,h.C5r),h.k0s()}if(2&y){const u=h.sdS(4),C=h.XpG();h.Y8G("ngStyle",h.eq3(4,Fs,C.primaryColor?C.primaryColor:"#084fff")),h.R7$(1),h.SpI(" Next | ",C.nextPage.name," "),h.R7$(1),h.Y8G("ngIf","ara"===C.acceptedLanguage)("ngIfElse",u)}}function Mi(y,v){1&y&&(h.qex(0),h.nrm(1,"span",31),h.EFF(2," Submitting... "),h.bVm())}function ha(y,v){1&y&&h.EFF(0," Submit ")}function cl(y,v){if(1&y){const u=h.RV6();h.j41(0,"button",29),h.bIt("click",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.submitForm())}),h.DNE(1,Mi,3,0,"ng-container",21),h.DNE(2,ha,1,0,"ng-template",null,30,h.C5r),h.k0s()}if(2&y){const u=h.sdS(3),C=h.XpG();h.Y8G("ngStyle",h.eq3(4,Fs,C.primaryColor?C.primaryColor:"#084fff"))("disabled",!C.eligibleForSubmission.status||C.submissionInProgress),h.R7$(1),h.Y8G("ngIf",C.submissionInProgress)("ngIfElse",u)}}function wa(y,v){if(1&y&&(h.j41(0,"div",32),h.EFF(1),h.k0s()),2&y){const u=h.XpG();h.R7$(1),h.SpI(" ",u.eligibleForSubmission.message," ")}}const Rl=function(y){return{"skip-margin":y}},nr=function(y){return{display:y}},J=function(y){return{"prevDirection-rtl":y}},ee=function(y){return{"nextDirection-rtl":y}};let U=(()=>{class y{constructor(){this.currentPageIndex=0,this.pages=[],this.previousPage={},this.nextPage={},this.currentPage={},this.pageDetails=[],this.skipMargin=!1,this.navigateNext=new h.bkB,this.navigatePrevious=new h.bkB,this.submitEmit=new h.bkB,this.edit=!1,this.acceptedLanguage="",this.subFormChange=new h.bkB,this.rowSetIndex=new h.bkB,this.primaryColor="",this.secondaryColor="",this.isActionTriggered=!1,this.submissionInProgress=!1,this.eligibleForSubmission={status:!0,message:""},this.showTooltip=!1}ngOnInit(){}updateSubFormWithSubmissions(u){this.subFormChange.emit(u)}onNavigateNext(){this.navigateNext.emit()}onNavigatePrevious(){this.navigatePrevious.emit()}submitForm(){this.submitEmit.emit()}loadMoreData(){this.rowSetIndex.emit(this.currentPageIndex)}toggleTooltip(){this.showTooltip=!this.eligibleForSubmission.status}static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275cmp=h.VBU({type:y,selectors:[["octa-next-prev-navigation"]],inputs:{currentPageIndex:"currentPageIndex",pages:"pages",previousPage:"previousPage",nextPage:"nextPage",currentPage:"currentPage",pageDetails:"pageDetails",skipMargin:"skipMargin",edit:"edit",acceptedLanguage:"acceptedLanguage",primaryColor:"primaryColor",secondaryColor:"secondaryColor",isActionTriggered:"isActionTriggered",submissionInProgress:"submissionInProgress",eligibleForSubmission:"eligibleForSubmission"},outputs:{navigateNext:"navigateNext",navigatePrevious:"navigatePrevious",submitEmit:"submitEmit",subFormChange:"subFormChange",rowSetIndex:"rowSetIndex"},decls:14,vars:21,consts:[["class","pageTitleDiv",4,"ngIf"],[1,"button-inner-container","rounded",3,"ngClass"],[1,"tab-content","pt-5","pb-3","row"],["infiniteScroll","",1,"data-container",3,"infiniteScrollDistance","infiniteScrollThrottle","scrolled"],["class","marginSize d-flex",4,"ngFor","ngForOf"],["id","captcha-container",3,"ngStyle"],[1,"footerButton"],[1,"prevButtonDiv",3,"ngClass"],["class","me-md-2 rounded-pill navButton","type","button",3,"ngStyle","click",4,"ngIf"],[1,"nextButtonDiv",3,"ngClass"],["class","md-2 rounded-pill navButton","type","button",3,"ngStyle","click",4,"ngIf"],[1,"button-container","position-relative",3,"mouseenter","mouseleave"],["class","submitBtn ms-md-2 me-md-2 rounded-pill d-flex align-items-center justify-content-center","type","button",3,"ngStyle","disabled","click",4,"ngIf"],["class","custom-tooltip",4,"ngIf"],[1,"pageTitleDiv"],[1,"pageTitle"],[1,"marginSize","d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],["state","parent",3,"grid","currentPageIndex","edit","acceptedLanguage","subFormChange"],["type","button",1,"me-md-2","rounded-pill","navButton",3,"ngStyle","click"],[4,"ngIf","ngIfElse"],["defaultSvg",""],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M19.4897 12.0117L4.49975 12.0117","stroke","white","stroke-linecap","round","stroke-linejoin","round"],["d","M13.486 6.02344L19.502 12.0004L13.486 17.9774","stroke","white","stroke-linecap","round","stroke-linejoin","round"],["d","M4.51025 11.9883L19.5003 11.9883","stroke","white","stroke-linecap","round","stroke-linejoin","round"],["d","M10.514 17.9766L4.49805 11.9996L10.514 6.02256","stroke","white","stroke-linecap","round","stroke-linejoin","round"],["type","button",1,"md-2","rounded-pill","navButton",3,"ngStyle","click"],["type","button",1,"submitBtn","ms-md-2","me-md-2","rounded-pill","d-flex","align-items-center","justify-content-center",3,"ngStyle","disabled","click"],["showSubmitText",""],["role","status","aria-hidden","true",1,"spinner-border","spinner-border-sm","me-2"],[1,"custom-tooltip"]],template:function(C,F){1&C&&(h.DNE(0,ro,3,1,"div",0),h.j41(1,"div",1)(2,"div",2)(3,"div",3),h.bIt("scrolled",function(){return F.loadMoreData()}),h.DNE(4,tr,2,1,"div",4),h.k0s(),h.nrm(5,"div",5),h.j41(6,"div",6)(7,"div",7),h.DNE(8,Ki,5,6,"button",8),h.k0s(),h.j41(9,"div",9),h.DNE(10,Kr,5,6,"button",10),h.j41(11,"div",11),h.bIt("mouseenter",function(){return F.showTooltip=!0})("mouseleave",function(){return F.showTooltip=!1}),h.DNE(12,cl,4,6,"button",12),h.DNE(13,wa,2,1,"div",13),h.k0s()()()()()),2&C&&(h.Y8G("ngIf",!F.skipMargin),h.R7$(1),h.Y8G("ngClass",h.eq3(13,Rl,F.skipMargin)),h.R7$(1),h.BMQ("name",F.pages[F.currentPageIndex].testElementName),h.R7$(1),h.Y8G("infiniteScrollDistance",2)("infiniteScrollThrottle",200),h.R7$(1),h.Y8G("ngForOf",null==F.pages[F.currentPageIndex]?null:F.pages[F.currentPageIndex].rows),h.R7$(1),h.Y8G("ngStyle",h.eq3(15,nr,F.currentPageIndex===F.pageDetails.length-1?"block":"none")),h.R7$(2),h.Y8G("ngClass",h.eq3(17,J,"ara"===F.acceptedLanguage)),h.R7$(1),h.Y8G("ngIf",0<F.currentPageIndex),h.R7$(1),h.Y8G("ngClass",h.eq3(19,ee,"ara"===F.acceptedLanguage)),h.R7$(1),h.Y8G("ngIf",F.currentPageIndex<F.pageDetails.length-1),h.R7$(2),h.Y8G("ngIf",F.currentPageIndex==F.pageDetails.length-1&&!F.isActionTriggered),h.R7$(1),h.Y8G("ngIf",F.showTooltip&&!F.eligibleForSubmission.status))},dependencies:[Mt.YU,Mt.Sq,Mt.bT,Mt.B3,Ft.FormElementsComponent,Es],styles:[".pageTitle[_ngcontent-%COMP%]{font-size:15px;font-weight:500}#captcha-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding-left:1.8rem}.grecaptcha-popup[_ngcontent-%COMP%]{position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:9999;border-radius:50%}@media (max-width: 480px){.g-recaptcha[_ngcontent-%COMP%]{transform:scale(.85);transform-origin:center}}.pageTitleDiv[_ngcontent-%COMP%]{padding-left:3rem;padding-top:3rem;padding-right:3rem}@media (max-width: 1024px){.pageTitleDiv[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem;padding-top:2rem}}@media (max-width: 576px){.pageTitleDiv[_ngcontent-%COMP%]{padding-left:.4rem;padding-right:.4rem;padding-top:1.5rem}}.button-inner-container[_ngcontent-%COMP%]{width:100%;position:relative;padding:0rem 3rem 3rem}@media (max-width: 1024px){.button-inner-container[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}@media (max-width: 576px){.button-inner-container[_ngcontent-%COMP%]{padding:.1rem .5rem 2rem}}.skip-margin[_ngcontent-%COMP%]{padding:0}@media (max-width: 576px){.marginSize[_ngcontent-%COMP%]{padding:0!important}}.footerButton[_ngcontent-%COMP%]{padding:10px 32px 16px 30px;display:flex;flex-wrap:wrap}@media (max-width: 576px){.footerButton[_ngcontent-%COMP%]{padding-left:20px;padding-right:17px}}.navButton[_ngcontent-%COMP%]{color:#fff;border:none;padding:10px 8px;width:auto}.submitBtn[_ngcontent-%COMP%]{color:#fff;border:none;padding:10px 27px;width:auto}.prevButtonDiv[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:5px}.nextButtonDiv[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-left:auto;margin-bottom:5px}.nextDirection-rtl[_ngcontent-%COMP%]{margin-left:0;margin-right:auto}.tab-content[_ngcontent-%COMP%], .row[_ngcontent-%COMP%]{background-color:#fff}.spinner-border[_ngcontent-%COMP%]{display:inline-block;width:1rem;height:1rem;vertical-align:text-bottom;border:.15em solid currentColor;border-right-color:transparent;border-radius:50%;animation:_ngcontent-%COMP%_spinner-border .75s linear infinite}@keyframes _ngcontent-%COMP%_spinner-border{to{transform:rotate(360deg)}}"]})}}return y})();function Ce(y,v){if(1&y&&(h.qex(0),h.nrm(1,"img",11),h.bVm()),2&y){const u=h.XpG().$implicit;h.R7$(1),h.FS9("alt",u.fileName),h.Y8G("src",u.fileUrl,h.B4B)}}function et(y,v){if(1&y&&(h.j41(0,"p"),h.EFF(1),h.k0s(),h.j41(2,"a",12),h.nrm(3,"i",13),h.k0s()),2&y){const u=h.XpG().$implicit;h.R7$(1),h.JRh(u.fileName),h.R7$(1),h.Y8G("href",u.fileUrl,h.B4B)}}function $n(y,v){if(1&y&&(h.j41(0,"div",9),h.DNE(1,Ce,2,2,"ng-container",6),h.DNE(2,et,4,2,"ng-template",null,10,h.C5r),h.k0s()),2&y){const u=v.$implicit,C=h.sdS(3),F=h.XpG(3);h.R7$(1),h.Y8G("ngIf",F.isImageUrl(u.fileName))("ngIfElse",C)}}function _i(y,v){if(1&y&&(h.qex(0),h.DNE(1,$n,4,2,"div",8),h.bVm()),2&y){const u=h.XpG().$implicit;h.R7$(1),h.Y8G("ngForOf",u.attachments)}}function Er(y,v){if(1&y&&h.nrm(0,"p",18),2&y){const u=h.XpG(2).$implicit;h.Y8G("innerHTML",u.values,h.npT)}}function Pr(y,v){if(1&y&&(h.j41(0,"p"),h.EFF(1),h.k0s()),2&y){const u=h.XpG(2).$implicit;h.R7$(1),h.JRh(u.values.join(", "))}}function dl(y,v){if(1&y&&(h.j41(0,"p"),h.EFF(1),h.k0s()),2&y){const u=h.XpG(2).$implicit;h.R7$(1),h.JRh(u.values.join(", "))}}function vc(y,v){if(1&y&&(h.j41(0,"p"),h.EFF(1),h.k0s()),2&y){const u=h.XpG(2).$implicit;h.R7$(1),h.JRh(u.values)}}function bc(y,v){if(1&y&&(h.qex(0,14),h.DNE(1,Er,1,1,"p",15),h.DNE(2,Pr,2,1,"p",16),h.DNE(3,dl,2,1,"p",16),h.DNE(4,vc,2,1,"p",17),h.bVm()),2&y){const u=h.XpG().$implicit;h.Y8G("ngSwitch",u.elementType),h.R7$(1),h.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),h.R7$(1),h.Y8G("ngSwitchCase","DROP_DOWN"),h.R7$(1),h.Y8G("ngSwitchCase","SELECTION_MATRIX")}}function ul(y,v){if(1&y&&(h.j41(0,"div",3)(1,"div",4),h.EFF(2),h.k0s(),h.j41(3,"div",5),h.DNE(4,_i,2,1,"ng-container",6),h.DNE(5,bc,5,4,"ng-template",null,7,h.C5r),h.k0s()()),2&y){const u=v.$implicit,C=h.sdS(6);h.R7$(2),h.JRh(u.question),h.R7$(2),h.Y8G("ngIf","FILE_PICKER"===u.elementType)("ngIfElse",C)}}let Ja=(()=>{class y{isImageUrl(u){return null!=u.match(/\.(jpeg|jpg|gif|png)$/)}static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275cmp=h.VBU({type:y,selectors:[["octa-submission-container"]],inputs:{parentQuestionAnswers:"parentQuestionAnswers"},decls:3,vars:1,consts:[[1,"subModule"],[1,"submission-container"],["class","submission-item",4,"ngFor","ngForOf"],[1,"submission-item"],[1,"key"],[1,"value"],[4,"ngIf","ngIfElse"],["text",""],["class","files",4,"ngFor","ngForOf"],[1,"files"],["fileLink",""],[1,"image",3,"src","alt"],["target","_blank",1,"fileName",3,"href"],[1,"bi","bi-file-earmark"],[3,"ngSwitch"],[3,"innerHTML",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"innerHTML"]],template:function(C,F){1&C&&(h.j41(0,"div",0)(1,"div",1),h.DNE(2,ul,7,3,"div",2),h.k0s()()),2&C&&(h.R7$(2),h.Y8G("ngForOf",F.parentQuestionAnswers))},dependencies:[Mt.Sq,Mt.bT,Mt.ux,Mt.e1,Mt.fG],styles:[".subModule[_ngcontent-%COMP%]{width:100%;position:relative;padding-left:3rem;padding-right:3rem;padding-top:4rem}@media (max-width: 1024px){.subModule[_ngcontent-%COMP%]{padding-left:1rem;padding-right:1rem}}@media (max-width: 576px){.subModule[_ngcontent-%COMP%]{padding:2rem .5rem}}.submission-container[_ngcontent-%COMP%]{background:#fff;display:flex;flex-wrap:wrap;box-shadow:0 4px 4px #00000040;border-radius:6px}.submission-item[_ngcontent-%COMP%]{flex:1 0 15%;margin:5px;padding:10px;border-radius:4px;display:flex;flex-direction:column}.key[_ngcontent-%COMP%]{font-weight:700;margin-bottom:5px}.value[_ngcontent-%COMP%]{word-break:break-word}.image[_ngcontent-%COMP%]{max-width:100%;height:auto;max-height:100px;margin-top:5px;border:1px solid #ddd;border-radius:4px;margin-bottom:10px}.files[_ngcontent-%COMP%]{display:flex;flex-direction:row}.fileName[_ngcontent-%COMP%]{text-decoration:none;margin-left:2%}.fileName[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:20px}"]})}}return y})();function Ql(y,v){1&y&&(h.qex(0),h.nrm(1,"ngx-skeleton-loader",7),h.bVm())}function yc(y,v){if(1&y&&(h.j41(0,"div",8),h.nrm(1,"octa-header",9),h.k0s()),2&y){const u=h.XpG();h.R7$(1),h.Y8G("name",u.name)("skipMargin",u.skipMargin)}}function hl(y,v){if(1&y&&h.nrm(0,"octa-submission-container",10),2&y){const u=h.XpG();h.Y8G("parentQuestionAnswers",u.parentQuestionAnswers)}}function fa(y,v){if(1&y){const u=h.RV6();h.j41(0,"octa-navigation-tabs",11),h.bIt("pageChanged",function(F){h.eBV(u);const H=h.XpG();return h.Njj(H.setCurrentPage(F))})("submitEmit",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.submitForm())})("subFormChange",function(F){h.eBV(u);const H=h.XpG();return h.Njj(H.updateSubFormWithSubmissions(F))})("rowSetIndex",function(F){h.eBV(u);const H=h.XpG();return h.Njj(H.loadMoreData(F))}),h.k0s()}if(2&y){const u=h.XpG();h.Y8G("skipMargin",u.skipMargin)("pages",u.pages)("currentPageIndex",u.currentPageIndex)("pageDetails",u.pageDetails)("eligibleForSubmission",u.eligibleForSubmission)("edit",u.edit)("acceptedLanguage",u.acceptedLanguage)("isActionTriggered",u.isActionTriggered)("primaryColor",u.primaryColor)("secondaryColor",u.secondaryColor)("markAllQuestionsAsRequired",u.markAllQuestionsAsRequired)("submissionInProgress",u.submissionInProgress)}}function jo(y,v){if(1&y){const u=h.RV6();h.j41(0,"octa-next-prev-navigation",12),h.bIt("rowSetIndex",function(F){h.eBV(u);const H=h.XpG();return h.Njj(H.loadMoreData(F))})("navigateNext",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.navigateToNextPage())})("navigatePrevious",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.navigateToPreviousPage())})("submitEmit",function(){h.eBV(u);const F=h.XpG();return h.Njj(F.submitForm())})("subFormChange",function(F){h.eBV(u);const H=h.XpG();return h.Njj(H.updateSubFormWithSubmissions(F))}),h.k0s()}if(2&y){const u=h.XpG();h.Y8G("skipMargin",u.skipMargin)("currentPageIndex",u.currentPageIndex)("pageDetails",u.pageDetails)("pages",u.pages)("previousPage",u.previousPage)("isActionTriggered",u.isActionTriggered)("currentPage",u.currentPage)("primaryColor",u.primaryColor)("secondaryColor",u.secondaryColor)("nextPage",u.nextPage)("acceptedLanguage",u.acceptedLanguage)("edit",u.edit)("eligibleForSubmission",u.eligibleForSubmission)("submissionInProgress",u.submissionInProgress)}}const Go=function(y,v){return{"skip-margin":y,container:v}};let _r=(()=>{class y{constructor(u,C,F,H,pe,Ae,it,It,rn,Jt){this.formService=u,this.toastr=C,this.router=F,this.dataService=H,this.recaptchaService=pe,this.validationService=Ae,this.changeDetectorRef=it,this.elementTracker=It,this.formValidationService=rn,this.aggregateService=Jt,this.question=null,this.edit=!1,this.submissionid="",this.acceptedLanguage="",this.skipMargin=!1,this.submit=new h.bkB,this.apiCalled=new h.bkB,this.currentPageIndexChange=new h.bkB,this.isActionTriggered=!1,this.isLoading=!1,this.name="",this.saveAutomatically=!1,this.saveInterval=0,this.customizeFont=!1,this.fontFamily="",this.fontSize=0,this.enableDataExport=!1,this.fileFormats=[],this.enableQuestionNumbering=!1,this.questionNumbering="",this.enableGoogleRecaptcha=!1,this.googleRecaptchaKey="",this.googleRecaptchaSecret="",this.navigation="",this.markAllQuestionsAsRequired=!1,this.pages=[],this.currentPageIndex=0,this.previousPage={},this.currentPage={},this.nextPage={},this.lastTab=!1,this.questionAnswers={parentId:"",answers:[],forms:[],copySubForms:[]},this.files=[],this.submission={},this.parentSubmissionId="",this.submissionInProgress=!1,this.recaptchaToken="",this.isRefreshing=!1,this.intervalId=null,this.pageDetails=[],this.pageNumber=1,this.rowSet=0,this.rowSetCount=[0],this.retryCount=0,this.maxRetries=5,this.eligibleForSubmission={status:!0,message:""},this.webhookPayloadArray=[],this.inValidQuestions=new Map,this.visitedRows=new Map,this.allElementIds=[],this.primaryColor="",this.secondaryColor="",this.isLoadingPages=!1,this.copySubforms=[],this.emitters=[],this.updateSubForm=(Cn,Fn)=>{Cn.forEach(Yn=>{Yn.rows.forEach(Ui=>{Ui.grid.forEach(Zi=>{"SUBFORM"===Zi.entityType&&Zi.element.id===Fn.formId&&(Zi.element=Fn)})})})};const Un=this.router.getCurrentNavigation();this.submission=Un?.extras.state?.submission,this.parentSubmissionId=this.submission?.id,this.parentQuestionAnswers=this.submission?.questionAnswers,this.parentQuestions=Un?.extras.state?.parentQuestions,this.dataService.setParentQuestions(this.parentQuestions)}ngOnDestroy(){this.visitedRows.clear(),this.recaptchaService.removeRecaptchaScript(),this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null,this.isRefreshing=!1),this.aggregateService.clearAll(),this.recaptchaService.removeRecaptchaScript()}ngOnChanges(u){u.acceptedLanguage&&(this.currentPageIndex=0,this.acceptedLanguage=u.acceptedLanguage.currentValue,console.log("ngOnChanges edit",this.edit),this.edit||setTimeout(()=>{this.getFormData()},500))}ngOnInit(){this.edit&&this.submissionid&&this.getSubmittedFormData(),this.enableGoogleRecaptcha&&this.recaptchaInitialized()}recaptchaInitialized(){var u=this;return(0,St.A)(function*(){yield u.recaptchaService.initialize(),u.recaptchaService.render("captcha-container",C=>{})})()}getToken(){var u=this;return(0,St.A)(function*(){return new Promise(function(){var C=(0,St.A)(function*(F){try{return yield u.recaptchaService.initialize(),u.recaptchaService.isRendered()?u.recaptchaService.isResolved()?F(u.recaptchaService.getResponse()):(console.warn("reCAPTCHA not resolved or expired."),F("")):(console.warn("reCAPTCHA not rendered yet."),F(""))}catch(H){return console.error("reCAPTCHA initialization failed:",H),F("")}});return function(F){return C.apply(this,arguments)}}())})()}loadFont(u){const C=`/assets/octa-form-submission-webcomponent/fonts/${u}.woff2`,F=document.createElement("style");F.innerHTML=`\n @font-face {\n font-family: '${u}';\n src: url('${C}') format('woff2');\n font-weight: normal;\n font-style: normal;\n }\n body {\n font-family: '${u}', sans-serif;\n }\n `,document.head.appendChild(F)}getFormData(){this.isLoadingPages=!0,console.log("getFormData modulename",this.modulename),this.formService.getQuestions(this.modulename,1,0,!0).subscribe(u=>{this.isLoadingPages=!1,this.enableGoogleRecaptcha=u.result.moduleConfiguration?.enableGoogleRecaptcha,this.question=En(u),this.emitters=this.question.emitters||[],this.assignQuestionProperties(this.question),this.setUpFontFamily(u),this.primaryColor=u.result.primaryColor,this.secondaryColor=u.result.secondaryColor,this.enableGoogleRecaptcha&&this.recaptchaInitialized(),u?.result?.pageDetails&&(this.pageDetails=u.result.pageDetails,this.nextPage=this.pageDetails[1]),this.webhookPayloadArray=u?.result?.webhooks?.map(C=>({id:C.id,...this.extractGroupedWebhookData([C])})),this.rowSetCount[0]=u.result.totalNumberRow;for(let C=0;C<this.pageDetails.length;C++)this.pages[C]||(this.pages[C]=[]);this.checkSubmissionEligibility()})}getSubmittedFormData(){this.formService.getSubmittedForm(this.modulename,this.submissionid).subscribe(u=>{this.enableGoogleRecaptcha=u.result.moduleConfiguration.enableGoogleRecaptcha,this.question=En(u),this.assignQuestionProperties(this.question),this.primaryColor=u.result.primaryColor,this.secondaryColor=u.result.secondaryColor,this.emitters=this.question.emitters||[],u?.result?.pageDetails&&(this.pageDetails=u.result.pageDetails,this.nextPage=this.pageDetails[1]),this.webhookPayloadArray=u?.result?.webhooks?.map(C=>({id:C.id,...this.extractGroupedWebhookData([C])})),this.rowSetCount[0]=u.result.totalNumberRow;for(let C=0;C<this.pageDetails.length;C++)this.pages[C]||(this.pages[C]=[]);this.setUpFontFamily(u),this.enableGoogleRecaptcha&&this.recaptchaInitialized(),this.checkSubmissionEligibility()})}setUpFontFamily(u){u.result?.moduleConfiguration?.customizeFont?(this.fontFamily=u.result.moduleConfiguration?.fontFamily,this.fontSize=u.result.moduleConfiguration?.fontSize||18):(this.fontFamily="Poppins",this.fontSize=18),this.loadFont(this.fontFamily),document.documentElement.style.setProperty("--library-font-family",this.fontFamily),document.documentElement.style.setProperty("--library-font-size",this.fontSize+"px")}assignQuestionProperties(u){this.name=u.name,this.pages=u.pages,this.parentQuestions&&(this.parentQuestionAnswers=u?.questionAnswers,this.parentSubmissionId=u?.parentId),this.currentPage=this.pages[0],this.nextPage=this.pages[1],this.saveAutomatically=u.formConfiguration.saveAutomatically,this.saveInterval=u.formConfiguration.saveInterval,this.customizeFont=u.formConfiguration.customizeFont,this.fontFamily=u.formConfiguration.fontFamily,this.fontSize=u.formConfiguration.fontSize,this.enableDataExport=u.formConfiguration.enableDataExport,this.fileFormats=u.formConfiguration.fileFormats,this.enableQuestionNumbering=u.formConfiguration.enableQuestionNumbering,this.questionNumbering=u.formConfiguration.questionNumbering,this.enableGoogleRecaptcha=u.formConfiguration.enableGoogleRecaptcha,this.googleRecaptchaKey=u.formConfiguration.googleRecaptchaKey,this.googleRecaptchaSecret=u.formConfiguration.googleRecaptchaSecret,this.navigation=u.formConfiguration.navigation,this.markAllQuestionsAsRequired=u.formConfiguration.markAllQuestionsAsRequired,this.apiCalled.emit(!0)}navigateToNextPage(){if(!this.isLoading){this.isLoading=!0;const u=this.currentPageIndex+1;u<this.pageDetails.length&&(this.markAllQuestionsAsRequired?this.formValidationService.validateRequiredQuestions(this.pages[this.currentPageIndex]).isValid&&(this.previousPage=this.pageDetails[this.currentPageIndex],0!=this.pages[u].length?(this.currentPage=this.pages[u],this.currentPageIndex=u):this.setCurrentPage(u),this.nextPage=this.pageDetails[u+1]):(this.previousPage=this.pageDetails[this.currentPageIndex],0!=this.pages[u].length?(this.currentPage=this.pages[u],this.currentPageIndex=u):this.setCurrentPage(u),this.nextPage=this.pageDetails[u+1])),this.isLoading=!1,this.checkSubmissionEligibility()}}navigateToPreviousPage(){this.currentPageIndex>0&&(this.markAllQuestionsAsRequired?this.formValidationService.validateRequiredQuestions(this.pages[this.currentPageIndex]).isValid&&(this.nextPage=this.pageDetails[this.currentPageIndex],this.currentPageIndex--,this.currentPage=this.pages[this.currentPageIndex],this.previousPage=this.pageDetails[this.currentPageIndex-1]):(this.nextPage=this.pageDetails[this.currentPageIndex],this.currentPageIndex--,this.currentPage=this.pages[this.currentPageIndex],this.previousPage=this.pageDetails[this.currentPageIndex-1])),this.checkSubmissionEligibility()}checkSubmissionEligibility(){this.eligibleForSubmission=this.validateAllElementLoaded()}setCurrentPage(u){if(!(u<this.pages.length)||this.pages[u]&&0==this.pages[u].length)if(this.pageNumber=u+1,this.edit?this.formService.getSubmittedForm(this.modulename,this.submissionid,this.pageNumber,this.rowSet).subscribe(C=>{C?.result?.pages&&(this.pages[u]=C.result.pages[0]),this.currentPageIndex=u,this.currentPage=this.pages[u],this.rowSetCount[u]=C.result.totalNumberRow,this.checkSubmissionEligibility()}):this.formService.getQuestions(this.modulename,this.pageNumber,this.rowSet,!0).subscribe(C=>{C?.result?.pages&&(this.pages[u]=C.result.pages[0]),this.currentPageIndex=u,this.currentPage=this.pages[u],this.rowSetCount[u]=C.result.totalNumberRow,this.checkSubmissionEligibility()}),this.markAllQuestionsAsRequired){if(!this.formValidationService.validateRequiredQuestions(this.pages[this.currentPageIndex]).isValid)return void this.checkSubmissionEligibility();this.currentPageIndex=u}else this.checkSubmissionEligibility(),this.currentPageIndex=u;else this.checkSubmissionEligibility()}loadMoreData(u){if(!this.isLoading){this.isLoading=!0;let C=this.rowSetCount[u],F=0;this.pages[u].rows.forEach(pe=>{pe.grid.forEach(Ae=>{F++})});let H=F/20;if(H=Math.ceil(H),this.visitedRows.has(u)&&this.visitedRows.get(u)===H)return void(this.isLoading=!1);if(H+1>C)return this.checkSubmissionEligibility(),void(this.isLoading=!1);this.visitedRows.set(u,H),this.edit?this.formService.getSubmittedForm(this.modulename,this.submissionid,u+1,H).subscribe(pe=>{const Ae=pe?.result?.pages[0]?.rows??[];this.pages[u].rows=[...this.pages[u]?.rows??[],...Ae],this.currentPageIndex=u,this.currentPage=this.pages[u],this.rowSetCount[u]=pe.result.totalNumberRow,this.checkSubmissionEligibility(),this.isLoading=!1}):this.formService.getQuestions(this.modulename,u+1,H).subscribe(pe=>{const Ae=pe?.result?.pages[0]?.rows??[];this.pages[u].rows=[...this.pages[u]?.rows??[],...Ae],this.currentPageIndex=u,this.currentPage=this.pages[u],this.rowSetCount[u]=pe.result.totalNumberRow,this.checkSubmissionEligibility(),this.isLoading=!1}),this.checkSubmissionEligibility()}}generateQuestionAnswers(){this.copySubforms=[];const u=(H,pe=null,Ae=!1,it=0)=>{const It=[],rn=[];return H.forEach(Jt=>{if("QUESTION"===Jt.entityType){let Un;if("FILE_PICKER"===Jt.element.formElement.elementType?(Un={questionId:Jt.element.id,answer:""},Array.isArray(Jt.element.answer)&&this.files.push({questionId:Ae?`${pe}_${it}_${Jt.element.id}`:Jt.element.id,file:Jt.element.answer})):Un={questionId:Jt.element.id,answer:Jt.element.answer},It.push(this.edit?{...Un,answerId:Jt.element.answerId||"",deleteFiles:Jt.element.deleteFiles||[]}:Un),Jt.element.childLogics)for(let Cn of Jt.element.childLogics)if(Cn.showLogic)for(let Fn of Cn.rows){const Yn=u(Fn.grid,pe,Ae,it);It.push(...Yn.answers),rn.push(...Yn.forms)}}else if("SUBFORM"===Jt.entityType){const Un=Jt.element.id,Cn=Jt.element.submissionId;if(Jt.element.copySubformMeta&&this.copySubforms.push(Jt.element.copySubformMeta),"single"===Jt.element.property.subFormStructure){let Yn,Fn=[];Jt.element.rows.forEach(Zi=>{u(Zi.grid,Un,!0,rn.length).answers.forEach(zs=>{Fn.push({...zs})})}),Jt.element.copiedForms&&(Yn=Jt.element.copiedForms),rn.push({formId:Un,deleted:Jt.element.deleted,deletedSubmissions:[],submissions:[{submissionId:Cn,answers:Fn}],copiedForms:Yn})}else if("multiple"===Jt.element.property.subFormStructure){let Zi,Yn={answers:[]};Jt.element.rows.forEach(zs=>{Yn=u(zs.grid,Un,!0,rn.length)}),rn.find(zs=>zs.formId===Un),("inline"==Jt.element.property.subFormType||"card"==Jt.element.property.subFormType)&&Jt.element.submissions&&(Jt.element.submissions=this.clearEmptySubmissions(Jt.element.submissions)),Jt.element?.submissions?.forEach((zs,qo)=>{zs.answers.forEach(lr=>{delete lr.htmlContent,Array.isArray(lr.files)&&(this.files.push({questionId:`${Un}_${qo}_${lr.questionId}`,file:lr.files}),delete lr.files),delete lr.attachments})}),Jt.element.copiedForms&&(Zi=Jt.element.copiedForms),rn.push({formId:Un,deleted:Jt.element.deleted,deletedSubmissions:Jt.element.deletedSubmissions,submissions:Jt.element.submissions,copiedForms:Zi})}}else"QUESTION_GROUP"===Jt.entityType?Jt.element.rows.forEach(Un=>{Un.grid.forEach(Cn=>{if("QUESTION"===Cn.entityType){let Fn;if("FILE_PICKER"===Cn.element?.formElement.elementType?(Fn={questionId:Cn.element.id,answer:""},Array.isArray(Cn.element.answer)&&this.files.push({questionId:Ae?`${pe}_${it}_${Cn.element.id}`:Cn.element.id,file:Cn.element.answer})):Fn={questionId:Cn.element.id,answer:Cn.element.answer},It.push(this.edit?{...Fn,answerId:Cn.element.answerId||"",deleteFiles:Cn.element.deleteFiles||[]}:Fn),Cn.element.childLogics)for(let Yn of Cn.element.childLogics)if(Yn.showLogic)for(let Ui of Yn.rows){const Zi=u(Ui.grid,pe,Ae,it);It.push(...Zi.answers),rn.push(...Zi.forms)}}})}):"MULTIFIELD"===Jt.entityType&&Jt.element.rows.forEach(Un=>{Un.grid.forEach(Cn=>{"QUESTION"===Cn.entityType&&It.push({questionId:Cn.element.id,answer:Cn.element.answer||""})})})}),{answers:It,forms:rn}},F=(H=>{const pe=[],Ae=[];return this.pages.forEach(it=>{it.rows.forEach(It=>{const rn=u(It.grid);pe.push(...rn.answers),Ae.push(...rn.forms)})}),{answers:pe,forms:Ae}})();this.questionAnswers={parentId:"",answers:F.answers,forms:F.forms,copySubForms:this.copySubforms}}clearEmptySubmissions(u){const C=[],F=[];return u.forEach(H=>{H.answers.some(Ae=>""!==Ae.answer&&null!=Ae.answer)?C.push(H):H.submissionId&&F.push(H.submissionId)}),C}validateAllElementLoaded(){if(this.pages.length<this.pageDetails.length)return{status:!1,message:"Please ensure all pages are fully visible before submitting the form."};const u=[];return this.pages.forEach((C,F)=>{if(C&&Array.isArray(C.rows)){let H=0;C.rows.forEach(pe=>{pe.grid.forEach(Ae=>{H++})}),(!C||!Array.isArray(C.rows)||Math.ceil(H/20)!=this.rowSetCount[F])&&u.push(this.pageDetails[F].name)}else u.push(this.pageDetails[F].name)}),u.length>0?(console.log(u.length>0),{status:!1,message:`Some sections are still loading. Please scroll through the following pages to ensure all questions are loaded: ${u.join(", ")}.`}):{status:!0,message:"Great! All sections are complete. You can now submit the form."}}submitForm(){var u=this;return(0,St.A)(function*(){if(!u.validateAllElementLoaded().status)return void u.toastr.warning("Please wait for all elements to load");if(u.submissionInProgress)return;let C;if(u.inValidQuestions.clear(),u.validationService.clearAll(),u.enableGoogleRecaptcha)try{if(C=yield u.getToken(),!C)return u.toastr.error("Please complete the CAPTCHA verification before submitting the form."),void(u.submissionInProgress=!1)}catch(pe){return console.error("Error while getting reCAPTCHA token:",pe.error?.message),u.toastr.error("Failed to verify reCAPTCHA."),void(u.submissionInProgress=!1)}u.submissionInProgress=!0;let F=u.validateForm(u.pages);if(u.generateQuestionAnswers(),F.isValid){const pe=new FormData;if(u.questionAnswers.parentId=u.parentSubmissionId,pe.append("json",JSON.stringify(u.questionAnswers,(()=>{const pe=new WeakSet;return(Ae,it)=>{if("object"==typeof it&&null!==it){if(pe.has(it))return;pe.add(it)}return it}})())),pe.append("webhookPayload",u.webhookPayloadArray?JSON.stringify(u.webhookPayloadArray):JSON.stringify([])),u.files.length>0){const it=new Set;u.files.filter(rn=>!it.has(rn.questionId)&&(it.add(rn.questionId),!0)).forEach(rn=>{rn.file.forEach(Jt=>{pe.append(rn.questionId,Jt._file)})})}(u.edit&&u.submissionid?u.formService.updateForm(u.modulename,u.submissionid,pe,C??""):u.formService.submitForm(u.modulename,pe,C??"")).subscribe({next:it=>{let It;u.toastr.success(u.edit?"Form updated successfully":"Form submitted successfully"),u.emitters&&(It=u.mapEmittersToValues()),u.submit.emit({status:"success",submissionId:it.result,...It||{}}),u.submissionInProgress=!1},error:it=>{u.validationService.clearAll(),u.findQuestionPageIndex(u.parseErrorsToMap(it.error.message)),u.currentPageIndex=u.pages.length-1,u.navigateToFirstError(),u.submissionInProgress=!1}})}else u.submissionInProgress=!1})()}mapEmittersToValues(){const u=new Map(this.questionAnswers.answers.map(F=>[F.questionId,F.answer])),C={};return this.emitters.forEach(F=>{"CUSTOM_INPUT"===F.valueSource?C[F.keyName]=F.inputValue:"QUESTION"===F.valueSource&&F.questionId&&u.has(F.questionId)&&(C[F.keyName]=u.get(F.questionId))}),C}parseErrorsToMap(u){const C=new Map;return u.replace(/[{}]/g,"").split(", ").forEach(F=>{const[H,pe]=F.split("=");H&&pe&&C.set(H.trim(),pe.trim())}),C}navigateToFirstError(){var u=this;return(0,St.A)(function*(){const C=u.validationService.getFirstInvalid();if(!C)return;const F=`question-${C.id}`;u.retryCount=0,u.currentPageIndex!==C.pageIndex&&(u.currentPageIndex=C.pageIndex,u.currentPageIndex+1<u.pageDetails.length&&(u.nextPage=u.pageDetails[u.currentPageIndex+1]),u.currentPageIndex-1>=0&&(u.previousPage=u.pageDetails[u.currentPageIndex-1]),u.debounce(()=>u.changeDetectorRef.detectChanges(),100),"TAB"===u.navigation&&u.child.triggerFunction(C.pageIndex)),yield u.scrollToElementWithRetry(F)})()}scrollToElementWithRetry(u){var C=this;return(0,St.A)(function*(){C.retryCount++;const F=document.getElementById(u);if(!F)return C.retryCount<C.maxRetries?(yield new Promise(H=>setTimeout(H,100)),C.scrollToElementWithRetry(u)):(console.error(`Element ${u} not found after ${C.maxRetries} attempts`),void requestAnimationFrame(()=>C.fallbackScroll()));requestAnimationFrame(()=>C.scrollAndFocus(F))})()}scrollAndFocus(u){u.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"}),u.querySelector('input, select, textarea, button, [tabindex]:not([tabindex="-1"])')?.focus()}fallbackScroll(){document.querySelector(`.page-${this.currentPageIndex}`)?.scrollIntoView({behavior:"auto"})}debounce(u,C){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(u,C)}findQuestionPageIndex(u){for(let C=0;C<this.pages.length;C++){const F=this.pages[C];for(const H of F.rows)for(const pe of H.grid)this.checkAndStoreInvalidQuestions(pe,u,C)}}checkAndStoreInvalidQuestions(u,C,F){if(u.element.id&&C.has(u.element.id)&&this.validationService.setInvalid(u.element.id,C.get(u.element.id),F),"SUBFORM"===u.entityType&&u.element.rows)for(const H of u.element.rows)for(const pe of H.grid)this.checkAndStoreInvalidQuestions(pe,C,F);if(("QUESTION_GROUP"===u.entityType||"MULTIFIELD"===u.entityType)&&u.element.rows)for(const H of u.element.rows)for(const pe of H.grid)this.checkAndStoreInvalidQuestions(pe,C,F);if("QUESTION"===u.entityType&&u.element.childLogics)for(const H of u.element.childLogics)if(H.showLogic)for(const pe of H.rows)for(const Ae of pe.grid)this.checkAndStoreInvalidQuestions(Ae,C,F)}focusQuestionElement(u){const C=u.querySelector("input, select, textarea, [tabindex]");C?C.focus():u.focus()}validateForm(u){const C=F=>{for(let H of F)if("QUESTION"===H.entityType){const pe=H.element.required,Ae=H.element.answer,it=H.element.validation;if("FILE_PICKER"===H.element.formElement.elementType){const It=H.element.attachments;if(pe&&(!Ae||0===Ae?.length)&&(!It||0==It?.length))return this.inValidQuestions.set(H.element.id,"Required file question has no files uploaded."),{isValid:!1,message:`Form is invalid - Required file question ${H.element.questionNumber} has no files uploaded.`,pageIndex:0}}else if(pe){if(!Ae||0===Object.keys(Ae).length)return this.inValidQuestions.set(H.element.id,"Question is required but no answer provided."),{isValid:!1,message:`Form is invalid - Question ${H.element.questionNumber} is required but no answer provided.`,pageIndex:0};if(!1===it)return this.inValidQuestions.set(H.element.id,"Question is required but validation is false."),{isValid:!1,message:`Form is invalid - Question ${H.element.questionNumber} is required but validation is false.`,pageIndex:0}}else if(!pe&&Ae&&Object.keys(Ae).length>0&&!1===it)return this.inValidQuestions.set(H.element.id,"Question is not required but answer provided with validation false."),{isValid:!1,message:`Form is invalid - Question ${H.element.questionNumber} is not required but answer provided with validation false.`,pageIndex:0};if(H.element.childLogics)for(let It of H.element.childLogics)if(It.showLogic){const rn=C(It.rows);if(!rn.isValid)return rn}}else if(("QUESTION_GROUP"===H.entityType||"MULTIFIELD"===H.entityType)&&H.element.rows)for(const pe of H.element.rows){const Ae=C(pe.grid);if(!Ae.isValid&&"MULTIFIELD"!=H.entityType)return Ae}return{isValid:!0,message:"",pageIndex:0}};for(let F=0;F<u.length;F++){const H=u[F];for(let pe of H.rows)C(pe.grid),this.inValidQuestions.forEach((it,It)=>{this.validationService.setInvalid(It,it,F)}),this.inValidQuestions=new Map}return this.currentPageIndex=u.length-1,this.validationService.getFirstInvalid()?(this.navigateToFirstError(),{isValid:!1,message:"Page",pageIndex:0}):{isValid:!0,message:"Form is valid.",pageIndex:0}}updateSubFormWithSubmissions(u){this.updateSubForm(this.pages,u)}extractGroupedWebhookData(u){const C={headers:{},params:{},pathVariables:{},requestBodies:{}};for(const F of u??[]){for(const H of F?.headers??[]){const pe=this.getValueFromStorage(H.valueSource,H.keyName);null!==pe&&(C.headers[H.keyName]=pe)}for(const H of F?.params??[]){const pe=this.getValueFromStorage(H.valueSource,H.keyName);null!==pe&&(C.params[H.keyName]=pe)}for(const H of F?.pathVariables??[]){const pe=this.getValueFromStorage(H.valueSource,H.keyName);null!==pe&&(C.pathVariables[H.keyName]=pe)}for(const H of F?.requestBodies??[]){const pe=this.getValueFromStorage(H.valueSource,H.keyName);null!==pe&&(C.requestBodies[H.keyName]=pe)}}return C}getValueFromStorage(u,C){return"LOCAL_STORAGE"===u?localStorage.getItem(C):"SESSION_STORAGE"===u?sessionStorage.getItem(C):null}static{this.\u0275fac=function(C){return new(C||y)(h.rXU(ur.u),h.rXU(go),h.rXU(qr.Ix),h.rXU(Ni.u),h.rXU(ls),h.rXU(Ve.B),h.rXU(h.gRc),h.rXU(Mo.U),h.rXU(ut),h.rXU(Qo.q))}}static{this.\u0275cmp=h.VBU({type:y,selectors:[["octa-submit-form"]],viewQuery:function(C,F){if(1&C&&h.GBs(as,5),2&C){let H;h.mGM(H=h.lsd())&&(F.child=H.first)}},inputs:{modulename:"modulename",edit:"edit",submissionid:"submissionid",acceptedLanguage:"acceptedLanguage",skipMargin:"skipMargin",isActionTriggered:"isActionTriggered"},outputs:{submit:"submit",apiCalled:"apiCalled",currentPageIndexChange:"currentPageIndexChange"},features:[h.OA$],decls:7,vars:9,consts:[[1,"outer-container"],[4,"ngIf"],["class","head container",4,"ngIf"],[1,"body",3,"ngClass"],[3,"parentQuestionAnswers",4,"ngIf"],[3,"skipMargin","pages","currentPageIndex","pageDetails","eligibleForSubmission","edit","acceptedLanguage","isActionTriggered","primaryColor","secondaryColor","markAllQuestionsAsRequired","submissionInProgress","pageChanged","submitEmit","subFormChange","rowSetIndex",4,"ngIf"],[3,"skipMargin","currentPageIndex","pageDetails","pages","previousPage","isActionTriggered","currentPage","primaryColor","secondaryColor","nextPage","acceptedLanguage","edit","eligibleForSubmission","submissionInProgress","rowSetIndex","navigateNext","navigatePrevious","submitEmit","subFormChange",4,"ngIf"],["count","5"],[1,"head","container"],[3,"name","skipMargin"],[3,"parentQuestionAnswers"],[3,"skipMargin","pages","currentPageIndex","pageDetails","eligibleForSubmission","edit","acceptedLanguage","isActionTriggered","primaryColor","secondaryColor","markAllQuestionsAsRequired","submissionInProgress","pageChanged","submitEmit","subFormChange","rowSetIndex"],[3,"skipMargin","currentPageIndex","pageDetails","pages","previousPage","isActionTriggered","currentPage","primaryColor","secondaryColor","nextPage","acceptedLanguage","edit","eligibleForSubmission","submissionInProgress","rowSetIndex","navigateNext","navigatePrevious","submitEmit","subFormChange"]],template:function(C,F){1&C&&(h.j41(0,"div",0),h.DNE(1,Ql,2,0,"ng-container",1),h.DNE(2,yc,2,2,"div",2),h.j41(3,"div",3),h.DNE(4,hl,1,1,"octa-submission-container",4),h.DNE(5,fa,1,12,"octa-navigation-tabs",5),h.DNE(6,jo,1,14,"octa-next-prev-navigation",6),h.k0s()()),2&C&&(h.R7$(1),h.Y8G("ngIf",F.isLoadingPages),h.R7$(1),h.Y8G("ngIf",!F.skipMargin),h.R7$(1),h.Y8G("ngClass",h.l_i(6,Go,F.skipMargin,!F.skipMargin)),h.R7$(1),h.Y8G("ngIf",F.parentQuestionAnswers),h.R7$(1),h.Y8G("ngIf","TAB"==F.navigation),h.R7$(1),h.Y8G("ngIf","NEXT_AND_PREVIOUS_BUTTON"==F.navigation))},dependencies:[Mt.YU,Mt.bT,gi,mr,as,U,Ja],styles:[".outer-container[_ngcontent-%COMP%]{background-color:#fff;padding:20px;position:relative;margin-top:25px}@media (max-width: 576px){.outer-container[_ngcontent-%COMP%]{padding:8px}}.head[_ngcontent-%COMP%]{background-color:#fff;padding:0!important}.body[_ngcontent-%COMP%]{position:relative;z-index:1;background:#efefef;border-radius:6px}.skip-margin[_ngcontent-%COMP%]{background:#fff}"]})}}return y})(),Nl=(()=>{class y{constructor(u,C){this.dataService=u,this.document=C,this.formdata={},this.edit=!1,this.submissionid="",this.submitForm=new h.bkB,this.apiCalled=new h.bkB,this.triggerFormSave=null,this.formElements=[],this.isActionTriggered=!1}ngOnChanges(u){if(console.log("Changes detected:",u),u.formdata&&u.formdata.currentValue){if("string"==typeof this.formdata)try{this.formdata=JSON.parse(this.formdata),this.modulename=this.formdata.modulename,console.log("Changes detected: formdata",this.formdata)}catch{this.formdata={},console.log("Changes detected: catch",this.formdata)}this.setHeaders()}u.triggerFormSave&&u.triggerFormSave.currentValue&&("submit"===u.triggerFormSave.currentValue&&(this.isActionTriggered=!0),this.submitFormComponent&&this.submitFormComponent.submitForm())}loadScript(u){return new Promise((C,F)=>{if(document.querySelector(`script[src="${u}"]`))return void C();const H=document.createElement("script");H.src=u,H.onload=()=>C(),H.onerror=()=>F(),document.body.appendChild(H)})}loadStyle(u){return new Promise((C,F)=>{if(document.querySelector(`link[href="${u}"]`))return void C();const H=document.createElement("link");H.rel="stylesheet",H.href=u,H.onload=()=>C(),H.onerror=()=>F(),document.head.appendChild(H)})}ngAfterViewInit(){var u=this;return(0,St.A)(function*(){yield u.loadStyle("./assets/octa-form-submission-webcomponent/bundle.css"),yield u.loadScript("./assets/octa-form-submission-webcomponent/bundle.js"),setTimeout(()=>{const C=u.document.querySelector("octa-submit-form");console.log("Inner Octa Submit Form element:",C),u.formdata&&(u.dataService.setApiUrl(u.formdata?.apiurl),u.dataService.setHeader(u.formdata?.headers),C?(console.log("el formdata",u.formdata),console.log("el modulename",u.modulename),C.formdata=u.formdata,C.submissionid=u.submissionid,C.edit=u.edit,C.skipMargin=u.formdata?.skipMargin,C.acceptedLanguage=u.formdata?.headers?.acceptedLanguage,C.modulename=u.modulename,console.log("Attributes passed to <octa-submit-form>:",C)):console.warn("<octa-submit-form> not found in DOM."))},500)})()}ngOnDestroy(){const u=document.querySelector("octa-submit-form");u&&u.parentNode&&u.parentNode.removeChild(u)}ngOnInit(){if(console.log("Inputs received:"),console.log("formdata:",this.formdata),console.log("submissionId:",this.submissionid),console.log("edit:",this.edit),this.dataService.formData$.subscribe(u=>{console.log("ngOnInit formdata",this.formdata),this.formdata=u}),"string"==typeof this.formdata)try{this.formdata=JSON.parse(this.formdata)}catch{console.warn("formdata is not valid JSON. Please pass proper JSON string."),this.formdata={}}if("string"==typeof this.formElements)try{this.formElements=JSON.parse(this.formElements)}catch{this.formElements=[]}this.setHeaders(),this.dataService.header$.subscribe(u=>{this.header=u,this.setHtmlDirection(this.header?.acceptedLanguage)})}setHeaders(){if(this.formdata&&this.formdata.headers){let u={};const C=this.formdata&&this.formdata.apiurl?this.formdata.apiurl:"";for(const F in this.formdata.headers)null!=this.formdata.headers[F]&&void 0!==this.formdata.headers[F]&&(u[F]=this.formdata.headers[F]);console.log("[FormBuilderComponent] Setting apiurl:",C),console.log("[FormBuilderComponent] Setting headers:",u),this.dataService.setApiUrl(C),this.dataService.setHeader(u)}}setHtmlDirection(u){const C=this.document.getElementsByTagName("html")[0];cn.htmlDirection="ara"===u||"ar"===u?"rtl":"ltr",C.dir=cn.htmlDirection}submit(u){this.submitForm.emit(u)}getFormApiCalled(u){this.apiCalled.emit(!0)}static{this.\u0275fac=function(C){return new(C||y)(h.rXU(Ni.u),h.rXU(Mt.qQ))}}static{this.\u0275cmp=h.VBU({type:y,selectors:[["octa-formSubmission"]],viewQuery:function(C,F){if(1&C&&h.GBs(_r,5),2&C){let H;h.mGM(H=h.lsd())&&(F.submitFormComponent=H.first)}},inputs:{formdata:"formdata",edit:"edit",submissionid:"submissionid",triggerFormSave:"triggerFormSave",formElements:"formElements"},outputs:{submitForm:"submitForm",apiCalled:"apiCalled"},features:[h.OA$],decls:1,vars:6,consts:[[3,"modulename","submissionid","edit","acceptedLanguage","skipMargin","isActionTriggered","submit","apiCalled"]],template:function(C,F){1&C&&(h.j41(0,"octa-submit-form",0),h.bIt("submit",function(pe){return F.submit(pe)})("apiCalled",function(pe){return F.getFormApiCalled(pe)}),h.k0s()),2&C&&h.Y8G("modulename",F.modulename)("submissionid",F.submissionid)("edit",F.edit)("acceptedLanguage",null==F.formdata||null==F.formdata.headers?null:F.formdata.headers.acceptedLanguage)("skipMargin",null==F.formdata?null:F.formdata.skipMargin)("isActionTriggered",F.isActionTriggered)},dependencies:[_r]})}}return y})();function Qr(y){return new h.wOt(3e3,!1)}function Gn(y){switch(y.length){case 0:return new In.sf;case 1:return y[0];default:return new In.ui(y)}}function ts(y,v,u=new Map,C=new Map){const F=[],H=[];let pe=-1,Ae=null;if(v.forEach(it=>{const It=it.get("offset"),rn=It==pe,Jt=rn&&Ae||new Map;it.forEach((Un,Cn)=>{let Fn=Cn,Yn=Un;if("offset"!==Cn)switch(Fn=y.normalizePropertyName(Fn,F),Yn){case In.FX:Yn=u.get(Cn);break;case In.kp:Yn=C.get(Cn);break;default:Yn=y.normalizeStyleValue(Cn,Fn,Yn,F)}Jt.set(Fn,Yn)}),rn||H.push(Jt),Ae=Jt,pe=It}),F.length)throw function Pi(y){return new h.wOt(3502,!1)}();return H}function ji(y,v,u,C){switch(v){case"start":y.onStart(()=>C(u&&Si(u,"start",y)));break;case"done":y.onDone(()=>C(u&&Si(u,"done",y)));break;case"destroy":y.onDestroy(()=>C(u&&Si(u,"destroy",y)))}}function Si(y,v,u){const H=Zn(y.element,y.triggerName,y.fromState,y.toState,v||y.phaseName,u.totalTime??y.totalTime,!!u.disabled),pe=y._data;return null!=pe&&(H._data=pe),H}function Zn(y,v,u,C,F="",H=0,pe){return{element:y,triggerName:v,fromState:u,toState:C,phaseName:F,totalTime:H,disabled:!!pe}}function ki(y,v,u){let C=y.get(v);return C||y.set(v,C=u),C}function Hi(y){const v=y.indexOf(":");return[y.substring(1,v),y.slice(v+1)]}const Li=(()=>typeof document>"u"?null:document.documentElement)();function $o(y){const v=y.parentNode||y.host||null;return v===Li?null:v}let So=null,bo=!1;function vs(y,v){for(;v;){if(v===y)return!0;v=$o(v)}return!1}function Di(y,v,u){if(u)return Array.from(y.querySelectorAll(v));const C=y.querySelector(v);return C?[C]:[]}let ma=(()=>{class y{validateStyleProperty(u){return function ta(y){So||(So=function Yo(){return typeof document<"u"?document.body:null}()||{},bo=!!So.style&&"WebkitAppearance"in So.style);let v=!0;return So.style&&!function cs(y){return"ebkit"==y.substring(1,6)}(y)&&(v=y in So.style,!v&&bo&&(v="Webkit"+y.charAt(0).toUpperCase()+y.slice(1)in So.style)),v}(u)}matchesElement(u,C){return!1}containsElement(u,C){return vs(u,C)}getParentElement(u){return $o(u)}query(u,C,F){return Di(u,C,F)}computeStyle(u,C,F){return F||""}animate(u,C,F,H,pe,Ae=[],it){return new In.sf(F,H)}static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275prov=h.jDH({token:y,factory:y.\u0275fac})}}return y})(),ao=(()=>{class y{static{this.NOOP=new ma}}return y})();const wc=1e3,lo="ng-enter",ko="ng-leave",ml="ng-trigger",Pl=".ng-trigger",xo="ng-animating",Va=".ng-animating";function Ta(y){if("number"==typeof y)return y;const v=y.match(/^(-?[\.\d]+)(m?s)/);return!v||v.length<2?0:gl(parseFloat(v[1]),v[2])}function gl(y,v){return"s"===v?y*wc:y}function nl(y,v,u){return y.hasOwnProperty("duration")?y:function Ll(y,v,u){let F,H=0,pe="";if("string"==typeof y){const Ae=y.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Ae)return v.push(Qr()),{duration:0,delay:0,easing:""};F=gl(parseFloat(Ae[1]),Ae[2]);const it=Ae[3];null!=it&&(H=gl(parseFloat(it),Ae[4]));const It=Ae[5];It&&(pe=It)}else F=y;if(!u){let Ae=!1,it=v.length;F<0&&(v.push(function Ho(){return new h.wOt(3100,!1)}()),Ae=!0),H<0&&(v.push(function Aa(){return new h.wOt(3101,!1)}()),Ae=!0),Ae&&v.splice(it,0,Qr())}return{duration:F,delay:H,easing:pe}}(y,v,u)}function Ea(y,v={}){return Object.keys(y).forEach(u=>{v[u]=y[u]}),v}function Jn(y){const v=new Map;return Object.keys(y).forEach(u=>{v.set(u,y[u])}),v}function ia(y,v=new Map,u){if(u)for(let[C,F]of u)v.set(C,F);for(let[C,F]of y)v.set(C,F);return v}function or(y,v,u){v.forEach((C,F)=>{const H=Zt(F);u&&!u.has(F)&&u.set(F,y.style[H]),y.style[H]=C})}function qn(y,v){v.forEach((u,C)=>{const F=Zt(C);y.style[F]=""})}function Sa(y){return Array.isArray(y)?1==y.length?y[0]:(0,In.K2)(y):y}const Br=new RegExp("{{\\s*(.+?)\\s*}}","g");function jc(y){let v=[];if("string"==typeof y){let u;for(;u=Br.exec(y);)v.push(u[1]);Br.lastIndex=0}return v}function Js(y,v,u){const C=y.toString(),F=C.replace(Br,(H,pe)=>{let Ae=v[pe];return null==Ae&&(u.push(function ir(y){return new h.wOt(3003,!1)}()),Ae=""),Ae.toString()});return F==C?y:F}function _l(y){const v=[];let u=y.next();for(;!u.done;)v.push(u.value),u=y.next();return v}const ld=/-+([a-z0-9])/g;function Zt(y){return y.replace(ld,(...v)=>v[1].toUpperCase())}function fs(y,v,u){switch(v.type){case 7:return y.visitTrigger(v,u);case 0:return y.visitState(v,u);case 1:return y.visitTransition(v,u);case 2:return y.visitSequence(v,u);case 3:return y.visitGroup(v,u);case 4:return y.visitAnimate(v,u);case 5:return y.visitKeyframes(v,u);case 6:return y.visitStyle(v,u);case 8:return y.visitReference(v,u);case 9:return y.visitAnimateChild(v,u);case 10:return y.visitAnimateRef(v,u);case 11:return y.visitQuery(v,u);case 12:return y.visitStagger(v,u);default:throw function Pa(y){return new h.wOt(3004,!1)}()}}function vl(y,v){return window.getComputedStyle(y)[v]}const Vl="*";function co(y,v){const u=[];return"string"==typeof y?y.split(/\s*,\s*/).forEach(C=>function rr(y,v,u){if(":"==y[0]){const it=function A(y,v){switch(y){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(u,C)=>parseFloat(C)>parseFloat(u);case":decrement":return(u,C)=>parseFloat(C)<parseFloat(u);default:return v.push(function el(y){return new h.wOt(3016,!1)}()),"* => *"}}(y,u);if("function"==typeof it)return void v.push(it);y=it}const C=y.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==C||C.length<4)return u.push(function La(y){return new h.wOt(3015,!1)}()),v;const F=C[1],H=C[2],pe=C[3];v.push(j(F,pe));"<"==H[0]&&!(F==Vl&&pe==Vl)&&v.push(j(pe,F))}(C,u,v)):u.push(y),u}const V=new Set(["true","1"]),O=new Set(["false","0"]);function j(y,v){const u=V.has(y)||O.has(y),C=V.has(v)||O.has(v);return(F,H)=>{let pe=y==Vl||y==F,Ae=v==Vl||v==H;return!pe&&u&&"boolean"==typeof F&&(pe=F?V.has(y):O.has(y)),!Ae&&C&&"boolean"==typeof H&&(Ae=H?V.has(v):O.has(v)),pe&&Ae}}const Q=":self",Te=new RegExp(`s*${Q}s*,?`,"g");function Je(y,v,u,C){return new Ht(y).build(v,u,C)}class Ht{constructor(v){this._driver=v}build(v,u,C){const F=new bs(u);return this._resetContextStyleTimingState(F),fs(this,Sa(v),F)}_resetContextStyleTimingState(v){v.currentQuerySelector="",v.collectedStyles=new Map,v.collectedStyles.set("",new Map),v.currentTime=0}visitTrigger(v,u){let C=u.queryCount=0,F=u.depCount=0;const H=[],pe=[];return"@"==v.name.charAt(0)&&u.errors.push(function pa(){return new h.wOt(3006,!1)}()),v.definitions.forEach(Ae=>{if(this._resetContextStyleTimingState(u),0==Ae.type){const it=Ae,It=it.name;It.toString().split(/\s*,\s*/).forEach(rn=>{it.name=rn,H.push(this.visitState(it,u))}),it.name=It}else if(1==Ae.type){const it=this.visitTransition(Ae,u);C+=it.queryCount,F+=it.depCount,pe.push(it)}else u.errors.push(function Uo(){return new h.wOt(3007,!1)}())}),{type:7,name:v.name,states:H,transitions:pe,queryCount:C,depCount:F,options:null}}visitState(v,u){const C=this.visitStyle(v.styles,u),F=v.options&&v.options.params||null;if(C.containsDynamicStyles){const H=new Set,pe=F||{};C.styles.forEach(Ae=>{Ae instanceof Map&&Ae.forEach(it=>{jc(it).forEach(It=>{pe.hasOwnProperty(It)||H.add(It)})})}),H.size&&(_l(H.values()),u.errors.push(function Lr(y,v){return new h.wOt(3008,!1)}()))}return{type:0,name:v.name,style:C,options:F?{params:F}:null}}visitTransition(v,u){u.queryCount=0,u.depCount=0;const C=fs(this,Sa(v.animation),u);return{type:1,matchers:co(v.expr,u.errors),animation:C,queryCount:u.queryCount,depCount:u.depCount,options:Ts(v.options)}}visitSequence(v,u){return{type:2,steps:v.steps.map(C=>fs(this,C,u)),options:Ts(v.options)}}visitGroup(v,u){const C=u.currentTime;let F=0;const H=v.steps.map(pe=>{u.currentTime=C;const Ae=fs(this,pe,u);return F=Math.max(F,u.currentTime),Ae});return u.currentTime=F,{type:3,steps:H,options:Ts(v.options)}}visitAnimate(v,u){const C=function kr(y,v){if(y.hasOwnProperty("duration"))return y;if("number"==typeof y)return Vr(nl(y,v).duration,0,"");const u=y;if(u.split(/\s+/).some(H=>"{"==H.charAt(0)&&"{"==H.charAt(1))){const H=Vr(0,0,"");return H.dynamic=!0,H.strValue=u,H}const F=nl(u,v);return Vr(F.duration,F.delay,F.easing)}(v.timings,u.errors);u.currentAnimateTimings=C;let F,H=v.styles?v.styles:(0,In.iF)({});if(5==H.type)F=this.visitKeyframes(H,u);else{let pe=v.styles,Ae=!1;if(!pe){Ae=!0;const It={};C.easing&&(It.easing=C.easing),pe=(0,In.iF)(It)}u.currentTime+=C.duration+C.delay;const it=this.visitStyle(pe,u);it.isEmptyStep=Ae,F=it}return u.currentAnimateTimings=null,{type:4,timings:C,style:F,options:null}}visitStyle(v,u){const C=this._makeStyleAst(v,u);return this._validateStyleAst(C,u),C}_makeStyleAst(v,u){const C=[],F=Array.isArray(v.styles)?v.styles:[v.styles];for(let Ae of F)"string"==typeof Ae?Ae===In.kp?C.push(Ae):u.errors.push(new h.wOt(3002,!1)):C.push(Jn(Ae));let H=!1,pe=null;return C.forEach(Ae=>{if(Ae instanceof Map&&(Ae.has("easing")&&(pe=Ae.get("easing"),Ae.delete("easing")),!H))for(let it of Ae.values())if(it.toString().indexOf("{{")>=0){H=!0;break}}),{type:6,styles:C,easing:pe,offset:v.offset,containsDynamicStyles:H,options:null}}_validateStyleAst(v,u){const C=u.currentAnimateTimings;let F=u.currentTime,H=u.currentTime;C&&H>0&&(H-=C.duration+C.delay),v.styles.forEach(pe=>{"string"!=typeof pe&&pe.forEach((Ae,it)=>{const It=u.collectedStyles.get(u.currentQuerySelector),rn=It.get(it);let Jt=!0;rn&&(H!=F&&H>=rn.startTime&&F<=rn.endTime&&(u.errors.push(function pl(y,v,u,C,F){return new h.wOt(3010,!1)}()),Jt=!1),H=rn.startTime),Jt&&It.set(it,{startTime:H,endTime:F}),u.options&&function Bl(y,v,u){const C=v.params||{},F=jc(y);F.length&&F.forEach(H=>{C.hasOwnProperty(H)||u.push(function fl(y){return new h.wOt(3001,!1)}())})}(Ae,u.options,u.errors)})})}visitKeyframes(v,u){const C={type:5,styles:[],options:null};if(!u.currentAnimateTimings)return u.errors.push(function sr(){return new h.wOt(3011,!1)}()),C;let H=0;const pe=[];let Ae=!1,it=!1,It=0;const rn=v.steps.map(Zi=>{const uo=this._makeStyleAst(Zi,u);let zs=null!=uo.offset?uo.offset:function Fi(y){if("string"==typeof y)return null;let v=null;if(Array.isArray(y))y.forEach(u=>{if(u instanceof Map&&u.has("offset")){const C=u;v=parseFloat(C.get("offset")),C.delete("offset")}});else if(y instanceof Map&&y.has("offset")){const u=y;v=parseFloat(u.get("offset")),u.delete("offset")}return v}(uo.styles),qo=0;return null!=zs&&(H++,qo=uo.offset=zs),it=it||qo<0||qo>1,Ae=Ae||qo<It,It=qo,pe.push(qo),uo});it&&u.errors.push(function Ma(){return new h.wOt(3012,!1)}()),Ae&&u.errors.push(function Ti(){return new h.wOt(3200,!1)}());const Jt=v.steps.length;let Un=0;H>0&&H<Jt?u.errors.push(function Zr(){return new h.wOt(3202,!1)}()):0==H&&(Un=1/(Jt-1));const Cn=Jt-1,Fn=u.currentTime,Yn=u.currentAnimateTimings,Ui=Yn.duration;return rn.forEach((Zi,uo)=>{const zs=Un>0?uo==Cn?1:Un*uo:pe[uo],qo=zs*Ui;u.currentTime=Fn+Yn.delay+qo,Yn.duration=qo,this._validateStyleAst(Zi,u),Zi.offset=zs,C.styles.push(Zi)}),C}visitReference(v,u){return{type:8,animation:fs(this,Sa(v.animation),u),options:Ts(v.options)}}visitAnimateChild(v,u){return u.depCount++,{type:9,options:Ts(v.options)}}visitAnimateRef(v,u){return{type:10,animation:this.visitReference(v.animation,u),options:Ts(v.options)}}visitQuery(v,u){const C=u.currentQuerySelector,F=v.options||{};u.queryCount++,u.currentQuery=v;const[H,pe]=function Pn(y){const v=!!y.split(/\s*,\s*/).find(u=>u==Q);return v&&(y=y.replace(Te,"")),y=y.replace(/@\*/g,Pl).replace(/@\w+/g,u=>Pl+"-"+u.slice(1)).replace(/:animating/g,Va),[y,v]}(v.selector);u.currentQuerySelector=C.length?C+" "+H:H,ki(u.collectedStyles,u.currentQuerySelector,new Map);const Ae=fs(this,Sa(v.animation),u);return u.currentQuery=null,u.currentQuerySelector=C,{type:11,selector:H,limit:F.limit||0,optional:!!F.optional,includeSelf:pe,animation:Ae,originalSelector:v.selector,options:Ts(v.options)}}visitStagger(v,u){u.currentQuery||u.errors.push(function Fl(){return new h.wOt(3013,!1)}());const C="full"===v.timings?{duration:0,delay:0,easing:"full"}:nl(v.timings,u.errors,!0);return{type:12,animation:fs(this,Sa(v.animation),u),timings:C,options:null}}}class bs{constructor(v){this.errors=v,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Ts(y){return y?(y=Ea(y)).params&&(y.params=function wi(y){return y?Ea(y):null}(y.params)):y={},y}function Vr(y,v,u){return{duration:y,delay:v,easing:u}}function il(y,v,u,C,F,H,pe=null,Ae=!1){return{type:1,element:y,keyframes:v,preStyleProps:u,postStyleProps:C,duration:F,delay:H,totalTime:F+H,easing:pe,subTimeline:Ae}}class ra{constructor(){this._map=new Map}get(v){return this._map.get(v)||[]}append(v,u){let C=this._map.get(v);C||this._map.set(v,C=[]),C.push(...u)}has(v){return this._map.has(v)}clear(){this._map.clear()}}const Ed=new RegExp(":enter","g"),ja=new RegExp(":leave","g");function js(y,v,u,C,F,H=new Map,pe=new Map,Ae,it,It=[]){return(new bl).buildKeyframes(y,v,u,C,F,H,pe,Ae,it,It)}class bl{buildKeyframes(v,u,C,F,H,pe,Ae,it,It,rn=[]){It=It||new ra;const Jt=new Tc(v,u,It,F,H,rn,[]);Jt.options=it;const Un=it.delay?Ta(it.delay):0;Jt.currentTimeline.delayNextStep(Un),Jt.currentTimeline.setStyles([pe],null,Jt.errors,it),fs(this,C,Jt);const Cn=Jt.timelines.filter(Fn=>Fn.containsAnimation());if(Cn.length&&Ae.size){let Fn;for(let Yn=Cn.length-1;Yn>=0;Yn--){const Ui=Cn[Yn];if(Ui.element===u){Fn=Ui;break}}Fn&&!Fn.allowOnlyTimelineStyles()&&Fn.setStyles([Ae],null,Jt.errors,it)}return Cn.length?Cn.map(Fn=>Fn.buildKeyframes()):[il(u,[],[],[],0,Un,"",!1)]}visitTrigger(v,u){}visitState(v,u){}visitTransition(v,u){}visitAnimateChild(v,u){const C=u.subInstructions.get(u.element);if(C){const F=u.createSubContext(v.options),H=u.currentTimeline.currentTime,pe=this._visitSubInstructions(C,F,F.options);H!=pe&&u.transformIntoNewTimeline(pe)}u.previousNode=v}visitAnimateRef(v,u){const C=u.createSubContext(v.options);C.transformIntoNewTimeline(),this._applyAnimationRefDelays([v.options,v.animation.options],u,C),this.visitReference(v.animation,C),u.transformIntoNewTimeline(C.currentTimeline.currentTime),u.previousNode=v}_applyAnimationRefDelays(v,u,C){for(const F of v){const H=F?.delay;if(H){const pe="number"==typeof H?H:Ta(Js(H,F?.params??{},u.errors));C.delayNextStep(pe)}}}_visitSubInstructions(v,u,C){let H=u.currentTimeline.currentTime;const pe=null!=C.duration?Ta(C.duration):null,Ae=null!=C.delay?Ta(C.delay):null;return 0!==pe&&v.forEach(it=>{const It=u.appendInstructionToTimeline(it,pe,Ae);H=Math.max(H,It.duration+It.delay)}),H}visitReference(v,u){u.updateOptions(v.options,!0),fs(this,v.animation,u),u.previousNode=v}visitSequence(v,u){const C=u.subContextCount;let F=u;const H=v.options;if(H&&(H.params||H.delay)&&(F=u.createSubContext(H),F.transformIntoNewTimeline(),null!=H.delay)){6==F.previousNode.type&&(F.currentTimeline.snapshotCurrentStyles(),F.previousNode=jl);const pe=Ta(H.delay);F.delayNextStep(pe)}v.steps.length&&(v.steps.forEach(pe=>fs(this,pe,F)),F.currentTimeline.applyStylesToKeyframe(),F.subContextCount>C&&F.transformIntoNewTimeline()),u.previousNode=v}visitGroup(v,u){const C=[];let F=u.currentTimeline.currentTime;const H=v.options&&v.options.delay?Ta(v.options.delay):0;v.steps.forEach(pe=>{const Ae=u.createSubContext(v.options);H&&Ae.delayNextStep(H),fs(this,pe,Ae),F=Math.max(F,Ae.currentTimeline.currentTime),C.push(Ae.currentTimeline)}),C.forEach(pe=>u.currentTimeline.mergeTimelineCollectedStyles(pe)),u.transformIntoNewTimeline(F),u.previousNode=v}_visitTiming(v,u){if(v.dynamic){const C=v.strValue;return nl(u.params?Js(C,u.params,u.errors):C,u.errors)}return{duration:v.duration,delay:v.delay,easing:v.easing}}visitAnimate(v,u){const C=u.currentAnimateTimings=this._visitTiming(v.timings,u),F=u.currentTimeline;C.delay&&(u.incrementTime(C.delay),F.snapshotCurrentStyles());const H=v.style;5==H.type?this.visitKeyframes(H,u):(u.incrementTime(C.duration),this.visitStyle(H,u),F.applyStylesToKeyframe()),u.currentAnimateTimings=null,u.previousNode=v}visitStyle(v,u){const C=u.currentTimeline,F=u.currentAnimateTimings;!F&&C.hasCurrentStyleProperties()&&C.forwardFrame();const H=F&&F.easing||v.easing;v.isEmptyStep?C.applyEmptyStep(H):C.setStyles(v.styles,H,u.errors,u.options),u.previousNode=v}visitKeyframes(v,u){const C=u.currentAnimateTimings,F=u.currentTimeline.duration,H=C.duration,Ae=u.createSubContext().currentTimeline;Ae.easing=C.easing,v.styles.forEach(it=>{Ae.forwardTime((it.offset||0)*H),Ae.setStyles(it.styles,it.easing,u.errors,u.options),Ae.applyStylesToKeyframe()}),u.currentTimeline.mergeTimelineCollectedStyles(Ae),u.transformIntoNewTimeline(F+H),u.previousNode=v}visitQuery(v,u){const C=u.currentTimeline.currentTime,F=v.options||{},H=F.delay?Ta(F.delay):0;H&&(6===u.previousNode.type||0==C&&u.currentTimeline.hasCurrentStyleProperties())&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=jl);let pe=C;const Ae=u.invokeQuery(v.selector,v.originalSelector,v.limit,v.includeSelf,!!F.optional,u.errors);u.currentQueryTotal=Ae.length;let it=null;Ae.forEach((It,rn)=>{u.currentQueryIndex=rn;const Jt=u.createSubContext(v.options,It);H&&Jt.delayNextStep(H),It===u.element&&(it=Jt.currentTimeline),fs(this,v.animation,Jt),Jt.currentTimeline.applyStylesToKeyframe(),pe=Math.max(pe,Jt.currentTimeline.currentTime)}),u.currentQueryIndex=0,u.currentQueryTotal=0,u.transformIntoNewTimeline(pe),it&&(u.currentTimeline.mergeTimelineCollectedStyles(it),u.currentTimeline.snapshotCurrentStyles()),u.previousNode=v}visitStagger(v,u){const C=u.parentContext,F=u.currentTimeline,H=v.timings,pe=Math.abs(H.duration),Ae=pe*(u.currentQueryTotal-1);let it=pe*u.currentQueryIndex;switch(H.duration<0?"reverse":H.easing){case"reverse":it=Ae-it;break;case"full":it=C.currentStaggerTime}const rn=u.currentTimeline;it&&rn.delayNextStep(it);const Jt=rn.currentTime;fs(this,v.animation,u),u.previousNode=v,C.currentStaggerTime=F.currentTime-Jt+(F.startTime-C.currentTimeline.startTime)}}const jl={};class Tc{constructor(v,u,C,F,H,pe,Ae,it){this._driver=v,this.element=u,this.subInstructions=C,this._enterClassName=F,this._leaveClassName=H,this.errors=pe,this.timelines=Ae,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=jl,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=it||new _a(this._driver,u,0),Ae.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(v,u){if(!v)return;const C=v;let F=this.options;null!=C.duration&&(F.duration=Ta(C.duration)),null!=C.delay&&(F.delay=Ta(C.delay));const H=C.params;if(H){let pe=F.params;pe||(pe=this.options.params={}),Object.keys(H).forEach(Ae=>{(!u||!pe.hasOwnProperty(Ae))&&(pe[Ae]=Js(H[Ae],pe,this.errors))})}}_copyOptions(){const v={};if(this.options){const u=this.options.params;if(u){const C=v.params={};Object.keys(u).forEach(F=>{C[F]=u[F]})}}return v}createSubContext(v=null,u,C){const F=u||this.element,H=new Tc(this._driver,F,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(F,C||0));return H.previousNode=this.previousNode,H.currentAnimateTimings=this.currentAnimateTimings,H.options=this._copyOptions(),H.updateOptions(v),H.currentQueryIndex=this.currentQueryIndex,H.currentQueryTotal=this.currentQueryTotal,H.parentContext=this,this.subContextCount++,H}transformIntoNewTimeline(v){return this.previousNode=jl,this.currentTimeline=this.currentTimeline.fork(this.element,v),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(v,u,C){const F={duration:u??v.duration,delay:this.currentTimeline.currentTime+(C??0)+v.delay,easing:""},H=new cd(this._driver,v.element,v.keyframes,v.preStyleProps,v.postStyleProps,F,v.stretchStartingKeyframe);return this.timelines.push(H),F}incrementTime(v){this.currentTimeline.forwardTime(this.currentTimeline.duration+v)}delayNextStep(v){v>0&&this.currentTimeline.delayNextStep(v)}invokeQuery(v,u,C,F,H,pe){let Ae=[];if(F&&Ae.push(this.element),v.length>0){v=(v=v.replace(Ed,"."+this._enterClassName)).replace(ja,"."+this._leaveClassName);let It=this._driver.query(this.element,v,1!=C);0!==C&&(It=C<0?It.slice(It.length+C,It.length):It.slice(0,C)),Ae.push(...It)}return!H&&0==Ae.length&&pe.push(function xs(y){return new h.wOt(3014,!1)}()),Ae}}class _a{constructor(v,u,C,F){this._driver=v,this.element=u,this.startTime=C,this._elementTimelineStylesLookup=F,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(u),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(u,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(v){const u=1===this._keyframes.size&&this._pendingStyles.size;this.duration||u?(this.forwardTime(this.currentTime+v),u&&this.snapshotCurrentStyles()):this.startTime+=v}fork(v,u){return this.applyStylesToKeyframe(),new _a(this._driver,v,u||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(v){this.applyStylesToKeyframe(),this.duration=v,this._loadKeyframe()}_updateStyle(v,u){this._localTimelineStyles.set(v,u),this._globalTimelineStyles.set(v,u),this._styleSummary.set(v,{time:this.currentTime,value:u})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(v){v&&this._previousKeyframe.set("easing",v);for(let[u,C]of this._globalTimelineStyles)this._backFill.set(u,C||In.kp),this._currentKeyframe.set(u,In.kp);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(v,u,C,F){u&&this._previousKeyframe.set("easing",u);const H=F&&F.params||{},pe=function sl(y,v){const u=new Map;let C;return y.forEach(F=>{if("*"===F){C=C||v.keys();for(let H of C)u.set(H,In.kp)}else ia(F,u)}),u}(v,this._globalTimelineStyles);for(let[Ae,it]of pe){const It=Js(it,H,C);this._pendingStyles.set(Ae,It),this._localTimelineStyles.has(Ae)||this._backFill.set(Ae,this._globalTimelineStyles.get(Ae)??In.kp),this._updateStyle(Ae,It)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((v,u)=>{this._currentKeyframe.set(u,v)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((v,u)=>{this._currentKeyframe.has(u)||this._currentKeyframe.set(u,v)}))}snapshotCurrentStyles(){for(let[v,u]of this._localTimelineStyles)this._pendingStyles.set(v,u),this._updateStyle(v,u)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const v=[];for(let u in this._currentKeyframe)v.push(u);return v}mergeTimelineCollectedStyles(v){v._styleSummary.forEach((u,C)=>{const F=this._styleSummary.get(C);(!F||u.time>F.time)&&this._updateStyle(C,u.value)})}buildKeyframes(){this.applyStylesToKeyframe();const v=new Set,u=new Set,C=1===this._keyframes.size&&0===this.duration;let F=[];this._keyframes.forEach((Ae,it)=>{const It=ia(Ae,new Map,this._backFill);It.forEach((rn,Jt)=>{rn===In.FX?v.add(Jt):rn===In.kp&&u.add(Jt)}),C||It.set("offset",it/this.duration),F.push(It)});const H=v.size?_l(v.values()):[],pe=u.size?_l(u.values()):[];if(C){const Ae=F[0],it=new Map(Ae);Ae.set("offset",0),it.set("offset",1),F=[Ae,it]}return il(this.element,F,H,pe,this.duration,this.startTime,this.easing,!1)}}class cd extends _a{constructor(v,u,C,F,H,pe,Ae=!1){super(v,u,pe.delay),this.keyframes=C,this.preStyleProps=F,this.postStyleProps=H,this._stretchStartingKeyframe=Ae,this.timings={duration:pe.duration,delay:pe.delay,easing:pe.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let v=this.keyframes,{delay:u,duration:C,easing:F}=this.timings;if(this._stretchStartingKeyframe&&u){const H=[],pe=C+u,Ae=u/pe,it=ia(v[0]);it.set("offset",0),H.push(it);const It=ia(v[0]);It.set("offset",Ga(Ae)),H.push(It);const rn=v.length-1;for(let Jt=1;Jt<=rn;Jt++){let Un=ia(v[Jt]);const Cn=Un.get("offset");Un.set("offset",Ga((u+Cn*C)/pe)),H.push(Un)}C=pe,u=0,F="",v=H}return il(this.element,v,this.preStyleProps,this.postStyleProps,C,u,F,!0)}}function Ga(y,v=3){const u=Math.pow(10,v-1);return Math.round(y*u)/u}class xr{}const xa=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Ha extends xr{normalizePropertyName(v,u){return Zt(v)}normalizeStyleValue(v,u,C,F){let H="";const pe=C.toString().trim();if(xa.has(u)&&0!==C&&"0"!==C)if("number"==typeof C)H="px";else{const Ae=C.match(/^[+-]?[\d\.]+([a-z]*)$/);Ae&&0==Ae[1].length&&F.push(function To(y,v){return new h.wOt(3005,!1)}())}return pe+H}}function nc(y,v,u,C,F,H,pe,Ae,it,It,rn,Jt,Un){return{type:0,element:y,triggerName:v,isRemovalTransition:F,fromState:u,fromStyles:H,toState:C,toStyles:pe,timelines:Ae,queriedElements:it,preStyleProps:It,postStyleProps:rn,totalTime:Jt,errors:Un}}const Ec={};class to{constructor(v,u,C){this._triggerName=v,this.ast=u,this._stateStyles=C}match(v,u,C,F){return function ol(y,v,u,C,F){return y.some(H=>H(v,u,C,F))}(this.ast.matchers,v,u,C,F)}buildStyles(v,u,C){let F=this._stateStyles.get("*");return void 0!==v&&(F=this._stateStyles.get(v?.toString())||F),F?F.buildStyles(u,C):new Map}build(v,u,C,F,H,pe,Ae,it,It,rn){const Jt=[],Un=this.ast.options&&this.ast.options.params||Ec,Fn=this.buildStyles(C,Ae&&Ae.params||Ec,Jt),Yn=it&&it.params||Ec,Ui=this.buildStyles(F,Yn,Jt),Zi=new Set,uo=new Map,zs=new Map,qo="void"===F,lr={params:yl(Yn,Un),delay:this.ast.options?.delay},la=rn?[]:js(v,u,this.ast.animation,H,pe,Fn,Ui,lr,It,Jt);let Dr=0;if(la.forEach(Wa=>{Dr=Math.max(Wa.duration+Wa.delay,Dr)}),Jt.length)return nc(u,this._triggerName,C,F,qo,Fn,Ui,[],[],uo,zs,Dr,Jt);la.forEach(Wa=>{const zl=Wa.element,Iu=ki(uo,zl,new Set);Wa.preStyleProps.forEach(Fc=>Iu.add(Fc));const jd=ki(zs,zl,new Set);Wa.postStyleProps.forEach(Fc=>jd.add(Fc)),zl!==u&&Zi.add(zl)});const Xa=_l(Zi.values());return nc(u,this._triggerName,C,F,qo,Fn,Ui,la,Xa,uo,zs,Dr)}}function yl(y,v){const u=Ea(v);for(const C in y)y.hasOwnProperty(C)&&null!=y[C]&&(u[C]=y[C]);return u}class dd{constructor(v,u,C){this.styles=v,this.defaultParams=u,this.normalizer=C}buildStyles(v,u){const C=new Map,F=Ea(this.defaultParams);return Object.keys(v).forEach(H=>{const pe=v[H];null!==pe&&(F[H]=pe)}),this.styles.styles.forEach(H=>{"string"!=typeof H&&H.forEach((pe,Ae)=>{pe&&(pe=Js(pe,F,u));const it=this.normalizer.normalizePropertyName(Ae,u);pe=this.normalizer.normalizeStyleValue(Ae,it,pe,u),C.set(Ae,pe)})}),C}}class Cl{constructor(v,u,C){this.name=v,this.ast=u,this._normalizer=C,this.transitionFactories=[],this.states=new Map,u.states.forEach(F=>{this.states.set(F.name,new dd(F.style,F.options&&F.options.params||{},C))}),Ia(this.states,"true","1"),Ia(this.states,"false","0"),u.transitions.forEach(F=>{this.transitionFactories.push(new to(v,F,this.states))}),this.fallbackTransition=function yo(y,v,u){return new to(y,{type:1,animation:{type:2,steps:[],options:null},matchers:[(pe,Ae)=>!0],options:null,queryCount:0,depCount:0},v)}(v,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(v,u,C,F){return this.transitionFactories.find(pe=>pe.match(v,u,C,F))||null}matchStyles(v,u,C){return this.fallbackTransition.buildStyles(v,u,C)}}function Ia(y,v,u){y.has(v)?y.has(u)||y.set(u,y.get(v)):y.has(u)&&y.set(v,y.get(u))}const kc=new ra;class br{constructor(v,u,C){this.bodyNode=v,this._driver=u,this._normalizer=C,this._animations=new Map,this._playersById=new Map,this.players=[]}register(v,u){const C=[],H=Je(this._driver,u,C,[]);if(C.length)throw function Cc(y){return new h.wOt(3503,!1)}();this._animations.set(v,H)}_buildPlayer(v,u,C){const F=v.element,H=ts(this._normalizer,v.keyframes,u,C);return this._driver.animate(F,H,v.duration,v.delay,v.easing,[],!0)}create(v,u,C={}){const F=[],H=this._animations.get(v);let pe;const Ae=new Map;if(H?(pe=js(this._driver,u,H,lo,ko,new Map,new Map,C,kc,F),pe.forEach(rn=>{const Jt=ki(Ae,rn.element,new Map);rn.postStyleProps.forEach(Un=>Jt.set(Un,null))})):(F.push(function Jr(){return new h.wOt(3300,!1)}()),pe=[]),F.length)throw function tl(y){return new h.wOt(3504,!1)}();Ae.forEach((rn,Jt)=>{rn.forEach((Un,Cn)=>{rn.set(Cn,this._driver.computeStyle(Jt,Cn,In.kp))})});const It=Gn(pe.map(rn=>{const Jt=Ae.get(rn.element);return this._buildPlayer(rn,new Map,Jt)}));return this._playersById.set(v,It),It.onDestroy(()=>this.destroy(v)),this.players.push(It),It}destroy(v){const u=this._getPlayer(v);u.destroy(),this._playersById.delete(v);const C=this.players.indexOf(u);C>=0&&this.players.splice(C,1)}_getPlayer(v){const u=this._playersById.get(v);if(!u)throw function ea(y){return new h.wOt(3301,!1)}();return u}listen(v,u,C,F){const H=Zn(u,"","","");return ji(this._getPlayer(v),C,H,F),()=>{}}command(v,u,C,F){if("register"==C)return void this.register(v,F[0]);if("create"==C)return void this.create(v,u,F[0]||{});const H=this._getPlayer(v);switch(C){case"play":H.play();break;case"pause":H.pause();break;case"reset":H.reset();break;case"restart":H.restart();break;case"finish":H.finish();break;case"init":H.init();break;case"setPosition":H.setPosition(parseFloat(F[0]));break;case"destroy":this.destroy(v)}}}const va="ng-animate-queued",$a="ng-animate-disabled",ba=[],xc={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Gc={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},jr="__ng_removed";class oc{get params(){return this.options.params}constructor(v,u=""){this.namespaceId=u;const C=v&&v.hasOwnProperty("value");if(this.value=function Hc(y){return y??null}(C?v.value:v),C){const H=Ea(v);delete H.value,this.options=H}else this.options={};this.options.params||(this.options.params={})}absorbOptions(v){const u=v.params;if(u){const C=this.options.params;Object.keys(u).forEach(F=>{null==C[F]&&(C[F]=u[F])})}}}const $s="void",zo=new oc($s);class Ya{constructor(v,u,C){this.id=v,this.hostElement=u,this._engine=C,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+v,di(u,this._hostClassName)}listen(v,u,C,F){if(!this._triggers.has(u))throw function Eo(y,v){return new h.wOt(3302,!1)}();if(null==C||0==C.length)throw function P(y){return new h.wOt(3303,!1)}();if(!function Ml(y){return"start"==y||"done"==y}(C))throw function ae(y,v){return new h.wOt(3400,!1)}();const H=ki(this._elementListeners,v,[]),pe={name:u,phase:C,callback:F};H.push(pe);const Ae=ki(this._engine.statesByElement,v,new Map);return Ae.has(u)||(di(v,ml),di(v,ml+"-"+u),Ae.set(u,zo)),()=>{this._engine.afterFlush(()=>{const it=H.indexOf(pe);it>=0&&H.splice(it,1),this._triggers.has(u)||Ae.delete(u)})}}register(v,u){return!this._triggers.has(v)&&(this._triggers.set(v,u),!0)}_getTrigger(v){const u=this._triggers.get(v);if(!u)throw function Y(y){return new h.wOt(3401,!1)}();return u}trigger(v,u,C,F=!0){const H=this._getTrigger(u),pe=new Ic(this.id,u,v);let Ae=this._engine.statesByElement.get(v);Ae||(di(v,ml),di(v,ml+"-"+u),this._engine.statesByElement.set(v,Ae=new Map));let it=Ae.get(u);const It=new oc(C,this.id);if(!(C&&C.hasOwnProperty("value"))&&it&&It.absorbOptions(it.options),Ae.set(u,It),it||(it=zo),It.value!==$s&&it.value===It.value){if(!function kd(y,v){const u=Object.keys(y),C=Object.keys(v);if(u.length!=C.length)return!1;for(let F=0;F<u.length;F++){const H=u[F];if(!v.hasOwnProperty(H)||y[H]!==v[H])return!1}return!0}(it.params,It.params)){const Yn=[],Ui=H.matchStyles(it.value,it.params,Yn),Zi=H.matchStyles(It.value,It.params,Yn);Yn.length?this._engine.reportError(Yn):this._engine.afterFlush(()=>{qn(v,Ui),or(v,Zi)})}return}const Un=ki(this._engine.playersByElement,v,[]);Un.forEach(Yn=>{Yn.namespaceId==this.id&&Yn.triggerName==u&&Yn.queued&&Yn.destroy()});let Cn=H.matchTransition(it.value,It.value,v,It.params),Fn=!1;if(!Cn){if(!F)return;Cn=H.fallbackTransition,Fn=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:v,triggerName:u,transition:Cn,fromState:it,toState:It,player:pe,isFallbackTransition:Fn}),Fn||(di(v,va),pe.onStart(()=>{Ra(v,va)})),pe.onDone(()=>{let Yn=this.players.indexOf(pe);Yn>=0&&this.players.splice(Yn,1);const Ui=this._engine.playersByElement.get(v);if(Ui){let Zi=Ui.indexOf(pe);Zi>=0&&Ui.splice(Zi,1)}}),this.players.push(pe),Un.push(pe),pe}deregister(v){this._triggers.delete(v),this._engine.statesByElement.forEach(u=>u.delete(v)),this._elementListeners.forEach((u,C)=>{this._elementListeners.set(C,u.filter(F=>F.name!=v))})}clearElementCache(v){this._engine.statesByElement.delete(v),this._elementListeners.delete(v);const u=this._engine.playersByElement.get(v);u&&(u.forEach(C=>C.destroy()),this._engine.playersByElement.delete(v))}_signalRemovalForInnerTriggers(v,u){const C=this._engine.driver.query(v,Pl,!0);C.forEach(F=>{if(F[jr])return;const H=this._engine.fetchNamespacesByElement(F);H.size?H.forEach(pe=>pe.triggerLeaveAnimation(F,u,!1,!0)):this.clearElementCache(F)}),this._engine.afterFlushAnimationsDone(()=>C.forEach(F=>this.clearElementCache(F)))}triggerLeaveAnimation(v,u,C,F){const H=this._engine.statesByElement.get(v),pe=new Map;if(H){const Ae=[];if(H.forEach((it,It)=>{if(pe.set(It,it.value),this._triggers.has(It)){const rn=this.trigger(v,It,$s,F);rn&&Ae.push(rn)}}),Ae.length)return this._engine.markElementAsRemoved(this.id,v,!0,u,pe),C&&Gn(Ae).onDone(()=>this._engine.processLeaveNode(v)),!0}return!1}prepareLeaveAnimationListeners(v){const u=this._elementListeners.get(v),C=this._engine.statesByElement.get(v);if(u&&C){const F=new Set;u.forEach(H=>{const pe=H.name;if(F.has(pe))return;F.add(pe);const it=this._triggers.get(pe).fallbackTransition,It=C.get(pe)||zo,rn=new oc($s),Jt=new Ic(this.id,pe,v);this._engine.totalQueuedPlayers++,this._queue.push({element:v,triggerName:pe,transition:it,fromState:It,toState:rn,player:Jt,isFallbackTransition:!0})})}}removeNode(v,u){const C=this._engine;if(v.childElementCount&&this._signalRemovalForInnerTriggers(v,u),this.triggerLeaveAnimation(v,u,!0))return;let F=!1;if(C.totalAnimations){const H=C.players.length?C.playersByQueriedElement.get(v):[];if(H&&H.length)F=!0;else{let pe=v;for(;pe=pe.parentNode;)if(C.statesByElement.get(pe)){F=!0;break}}}if(this.prepareLeaveAnimationListeners(v),F)C.markElementAsRemoved(this.id,v,!1,u);else{const H=v[jr];(!H||H===xc)&&(C.afterFlush(()=>this.clearElementCache(v)),C.destroyInnerAnimations(v),C._onRemovalComplete(v,u))}}insertNode(v,u){di(v,this._hostClassName)}drainQueuedTransitions(v){const u=[];return this._queue.forEach(C=>{const F=C.player;if(F.destroyed)return;const H=C.element,pe=this._elementListeners.get(H);pe&&pe.forEach(Ae=>{if(Ae.name==C.triggerName){const it=Zn(H,C.triggerName,C.fromState.value,C.toState.value);it._data=v,ji(C.player,Ae.phase,it,Ae.callback)}}),F.markedForDestroy?this._engine.afterFlush(()=>{F.destroy()}):u.push(C)}),this._queue=[],u.sort((C,F)=>{const H=C.transition.ast.depCount,pe=F.transition.ast.depCount;return 0==H||0==pe?H-pe:this._engine.driver.containsElement(C.element,F.element)?1:-1})}destroy(v){this.players.forEach(u=>u.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,v)}}class yr{_onRemovalComplete(v,u){this.onRemovalComplete(v,u)}constructor(v,u,C){this.bodyNode=v,this.driver=u,this._normalizer=C,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(F,H)=>{}}get queuedPlayers(){const v=[];return this._namespaceList.forEach(u=>{u.players.forEach(C=>{C.queued&&v.push(C)})}),v}createNamespace(v,u){const C=new Ya(v,u,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,u)?this._balanceNamespaceList(C,u):(this.newHostElements.set(u,C),this.collectEnterElement(u)),this._namespaceLookup[v]=C}_balanceNamespaceList(v,u){const C=this._namespaceList,F=this.namespacesByHostElement;if(C.length-1>=0){let pe=!1,Ae=this.driver.getParentElement(u);for(;Ae;){const it=F.get(Ae);if(it){const It=C.indexOf(it);C.splice(It+1,0,v),pe=!0;break}Ae=this.driver.getParentElement(Ae)}pe||C.unshift(v)}else C.push(v);return F.set(u,v),v}register(v,u){let C=this._namespaceLookup[v];return C||(C=this.createNamespace(v,u)),C}registerTrigger(v,u,C){let F=this._namespaceLookup[v];F&&F.register(u,C)&&this.totalAnimations++}destroy(v,u){v&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const C=this._fetchNamespace(v);this.namespacesByHostElement.delete(C.hostElement);const F=this._namespaceList.indexOf(C);F>=0&&this._namespaceList.splice(F,1),C.destroy(u),delete this._namespaceLookup[v]}))}_fetchNamespace(v){return this._namespaceLookup[v]}fetchNamespacesByElement(v){const u=new Set,C=this.statesByElement.get(v);if(C)for(let F of C.values())if(F.namespaceId){const H=this._fetchNamespace(F.namespaceId);H&&u.add(H)}return u}trigger(v,u,C,F){if(Gl(u)){const H=this._fetchNamespace(v);if(H)return H.trigger(u,C,F),!0}return!1}insertNode(v,u,C,F){if(!Gl(u))return;const H=u[jr];if(H&&H.setForRemoval){H.setForRemoval=!1,H.setForMove=!0;const pe=this.collectedLeaveElements.indexOf(u);pe>=0&&this.collectedLeaveElements.splice(pe,1)}if(v){const pe=this._fetchNamespace(v);pe&&pe.insertNode(u,C)}F&&this.collectEnterElement(u)}collectEnterElement(v){this.collectedEnterElements.push(v)}markElementAsDisabled(v,u){u?this.disabledNodes.has(v)||(this.disabledNodes.add(v),di(v,$a)):this.disabledNodes.has(v)&&(this.disabledNodes.delete(v),Ra(v,$a))}removeNode(v,u,C){if(Gl(u)){const F=v?this._fetchNamespace(v):null;F?F.removeNode(u,C):this.markElementAsRemoved(v,u,!1,C);const H=this.namespacesByHostElement.get(u);H&&H.id!==v&&H.removeNode(u,C)}else this._onRemovalComplete(u,C)}markElementAsRemoved(v,u,C,F,H){this.collectedLeaveElements.push(u),u[jr]={namespaceId:v,setForRemoval:F,hasAnimation:C,removedBeforeQueried:!1,previousTriggersValues:H}}listen(v,u,C,F,H){return Gl(u)?this._fetchNamespace(v).listen(u,C,F,H):()=>{}}_buildInstruction(v,u,C,F,H){return v.transition.build(this.driver,v.element,v.fromState.value,v.toState.value,C,F,v.fromState.options,v.toState.options,u,H)}destroyInnerAnimations(v){let u=this.driver.query(v,Pl,!0);u.forEach(C=>this.destroyActiveAnimationsForElement(C)),0!=this.playersByQueriedElement.size&&(u=this.driver.query(v,Va,!0),u.forEach(C=>this.finishActiveQueriedAnimationOnElement(C)))}destroyActiveAnimationsForElement(v){const u=this.playersByElement.get(v);u&&u.forEach(C=>{C.queued?C.markedForDestroy=!0:C.destroy()})}finishActiveQueriedAnimationOnElement(v){const u=this.playersByQueriedElement.get(v);u&&u.forEach(C=>C.finish())}whenRenderingDone(){return new Promise(v=>{if(this.players.length)return Gn(this.players).onDone(()=>v());v()})}processLeaveNode(v){const u=v[jr];if(u&&u.setForRemoval){if(v[jr]=xc,u.namespaceId){this.destroyInnerAnimations(v);const C=this._fetchNamespace(u.namespaceId);C&&C.clearElementCache(v)}this._onRemovalComplete(v,u.setForRemoval)}v.classList?.contains($a)&&this.markElementAsDisabled(v,!1),this.driver.query(v,".ng-animate-disabled",!0).forEach(C=>{this.markElementAsDisabled(C,!1)})}flush(v=-1){let u=[];if(this.newHostElements.size&&(this.newHostElements.forEach((C,F)=>this._balanceNamespaceList(C,F)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let C=0;C<this.collectedEnterElements.length;C++)di(this.collectedEnterElements[C],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const C=[];try{u=this._flushAnimations(C,v)}finally{for(let F=0;F<C.length;F++)C[F]()}}else for(let C=0;C<this.collectedLeaveElements.length;C++)this.processLeaveNode(this.collectedLeaveElements[C]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(C=>C()),this._flushFns=[],this._whenQuietFns.length){const C=this._whenQuietFns;this._whenQuietFns=[],u.length?Gn(u).onDone(()=>{C.forEach(F=>F())}):C.forEach(F=>F())}}reportError(v){throw function te(y){return new h.wOt(3402,!1)}()}_flushAnimations(v,u){const C=new ra,F=[],H=new Map,pe=[],Ae=new Map,it=new Map,It=new Map,rn=new Set;this.disabledNodes.forEach(Wn=>{rn.add(Wn);const ci=this.driver.query(Wn,".ng-animate-queued",!0);for(let bi=0;bi<ci.length;bi++)rn.add(ci[bi])});const Jt=this.bodyNode,Un=Array.from(this.statesByElement.keys()),Cn=Oc(Un,this.collectedEnterElements),Fn=new Map;let Yn=0;Cn.forEach((Wn,ci)=>{const bi=lo+Yn++;Fn.set(ci,bi),Wn.forEach(ss=>di(ss,bi))});const Ui=[],Zi=new Set,uo=new Set;for(let Wn=0;Wn<this.collectedLeaveElements.length;Wn++){const ci=this.collectedLeaveElements[Wn],bi=ci[jr];bi&&bi.setForRemoval&&(Ui.push(ci),Zi.add(ci),bi.hasAnimation?this.driver.query(ci,".ng-star-inserted",!0).forEach(ss=>Zi.add(ss)):uo.add(ci))}const zs=new Map,qo=Oc(Un,Array.from(Zi));qo.forEach((Wn,ci)=>{const bi=ko+Yn++;zs.set(ci,bi),Wn.forEach(ss=>di(ss,bi))}),v.push(()=>{Cn.forEach((Wn,ci)=>{const bi=Fn.get(ci);Wn.forEach(ss=>Ra(ss,bi))}),qo.forEach((Wn,ci)=>{const bi=zs.get(ci);Wn.forEach(ss=>Ra(ss,bi))}),Ui.forEach(Wn=>{this.processLeaveNode(Wn)})});const lr=[],la=[];for(let Wn=this._namespaceList.length-1;Wn>=0;Wn--)this._namespaceList[Wn].drainQueuedTransitions(u).forEach(bi=>{const ss=bi.player,Os=bi.element;if(lr.push(ss),this.collectedEnterElements.length){const cr=Os[jr];if(cr&&cr.setForMove){if(cr.previousTriggersValues&&cr.previousTriggersValues.has(bi.triggerName)){const _d=cr.previousTriggersValues.get(bi.triggerName),Ca=this.statesByElement.get(bi.element);if(Ca&&Ca.has(bi.triggerName)){const vd=Ca.get(bi.triggerName);vd.value=_d,Ca.set(bi.triggerName,vd)}}return void ss.destroy()}}const Ka=!Jt||!this.driver.containsElement(Jt,Os),$r=zs.get(Os),kl=Fn.get(Os),As=this._buildInstruction(bi,C,kl,$r,Ka);if(As.errors&&As.errors.length)return void la.push(As);if(Ka)return ss.onStart(()=>qn(Os,As.fromStyles)),ss.onDestroy(()=>or(Os,As.toStyles)),void F.push(ss);if(bi.isFallbackTransition)return ss.onStart(()=>qn(Os,As.fromStyles)),ss.onDestroy(()=>or(Os,As.toStyles)),void F.push(ss);const td=[];As.timelines.forEach(cr=>{cr.stretchStartingKeyframe=!0,this.disabledNodes.has(cr.element)||td.push(cr)}),As.timelines=td,C.append(Os,As.timelines),pe.push({instruction:As,player:ss,element:Os}),As.queriedElements.forEach(cr=>ki(Ae,cr,[]).push(ss)),As.preStyleProps.forEach((cr,_d)=>{if(cr.size){let Ca=it.get(_d);Ca||it.set(_d,Ca=new Set),cr.forEach((vd,ou)=>Ca.add(ou))}}),As.postStyleProps.forEach((cr,_d)=>{let Ca=It.get(_d);Ca||It.set(_d,Ca=new Set),cr.forEach((vd,ou)=>Ca.add(ou))})});if(la.length){const Wn=[];la.forEach(ci=>{Wn.push(function Yt(y,v){return new h.wOt(3505,!1)}())}),lr.forEach(ci=>ci.destroy()),this.reportError(Wn)}const Dr=new Map,Xa=new Map;pe.forEach(Wn=>{const ci=Wn.element;C.has(ci)&&(Xa.set(ci,ci),this._beforeAnimationBuild(Wn.player.namespaceId,Wn.instruction,Dr))}),F.forEach(Wn=>{const ci=Wn.element;this._getPreviousPlayers(ci,!1,Wn.namespaceId,Wn.triggerName,null).forEach(ss=>{ki(Dr,ci,[]).push(ss),ss.destroy()})});const Wa=Ui.filter(Wn=>Tl(Wn,it,It)),zl=new Map;Uc(zl,this.driver,uo,It,In.kp).forEach(Wn=>{Tl(Wn,it,It)&&Wa.push(Wn)});const jd=new Map;Cn.forEach((Wn,ci)=>{Uc(jd,this.driver,new Set(Wn),it,In.FX)}),Wa.forEach(Wn=>{const ci=zl.get(Wn),bi=jd.get(Wn);zl.set(Wn,new Map([...ci?.entries()??[],...bi?.entries()??[]]))});const Fc=[],Ou=[],Ru={};pe.forEach(Wn=>{const{element:ci,player:bi,instruction:ss}=Wn;if(C.has(ci)){if(rn.has(ci))return bi.onDestroy(()=>or(ci,ss.toStyles)),bi.disabled=!0,bi.overrideTotalTime(ss.totalTime),void F.push(bi);let Os=Ru;if(Xa.size>1){let $r=ci;const kl=[];for(;$r=$r.parentNode;){const As=Xa.get($r);if(As){Os=As;break}kl.push($r)}kl.forEach(As=>Xa.set(As,Os))}const Ka=this._buildAnimation(bi.namespaceId,ss,Dr,H,jd,zl);if(bi.setRealPlayer(Ka),Os===Ru)Fc.push(bi);else{const $r=this.playersByElement.get(Os);$r&&$r.length&&(bi.parentPlayer=Gn($r)),F.push(bi)}}else qn(ci,ss.fromStyles),bi.onDestroy(()=>or(ci,ss.toStyles)),Ou.push(bi),rn.has(ci)&&F.push(bi)}),Ou.forEach(Wn=>{const ci=H.get(Wn.element);if(ci&&ci.length){const bi=Gn(ci);Wn.setRealPlayer(bi)}}),F.forEach(Wn=>{Wn.parentPlayer?Wn.syncPlayerEvents(Wn.parentPlayer):Wn.destroy()});for(let Wn=0;Wn<Ui.length;Wn++){const ci=Ui[Wn],bi=ci[jr];if(Ra(ci,ko),bi&&bi.hasAnimation)continue;let ss=[];if(Ae.size){let Ka=Ae.get(ci);Ka&&Ka.length&&ss.push(...Ka);let $r=this.driver.query(ci,Va,!0);for(let kl=0;kl<$r.length;kl++){let As=Ae.get($r[kl]);As&&As.length&&ss.push(...As)}}const Os=ss.filter(Ka=>!Ka.destroyed);Os.length?Cr(this,ci,Os):this.processLeaveNode(ci)}return Ui.length=0,Fc.forEach(Wn=>{this.players.push(Wn),Wn.onDone(()=>{Wn.destroy();const ci=this.players.indexOf(Wn);this.players.splice(ci,1)}),Wn.play()}),Fc}afterFlush(v){this._flushFns.push(v)}afterFlushAnimationsDone(v){this._whenQuietFns.push(v)}_getPreviousPlayers(v,u,C,F,H){let pe=[];if(u){const Ae=this.playersByQueriedElement.get(v);Ae&&(pe=Ae)}else{const Ae=this.playersByElement.get(v);if(Ae){const it=!H||H==$s;Ae.forEach(It=>{It.queued||!it&&It.triggerName!=F||pe.push(It)})}}return(C||F)&&(pe=pe.filter(Ae=>!(C&&C!=Ae.namespaceId||F&&F!=Ae.triggerName))),pe}_beforeAnimationBuild(v,u,C){const H=u.element,pe=u.isRemovalTransition?void 0:v,Ae=u.isRemovalTransition?void 0:u.triggerName;for(const it of u.timelines){const It=it.element,rn=It!==H,Jt=ki(C,It,[]);this._getPreviousPlayers(It,rn,pe,Ae,u.toState).forEach(Cn=>{const Fn=Cn.getRealPlayer();Fn.beforeDestroy&&Fn.beforeDestroy(),Cn.destroy(),Jt.push(Cn)})}qn(H,u.fromStyles)}_buildAnimation(v,u,C,F,H,pe){const Ae=u.triggerName,it=u.element,It=[],rn=new Set,Jt=new Set,Un=u.timelines.map(Fn=>{const Yn=Fn.element;rn.add(Yn);const Ui=Yn[jr];if(Ui&&Ui.removedBeforeQueried)return new In.sf(Fn.duration,Fn.delay);const Zi=Yn!==it,uo=function Sd(y){const v=[];return rc(y,v),v}((C.get(Yn)||ba).map(Dr=>Dr.getRealPlayer())).filter(Dr=>!!Dr.element&&Dr.element===Yn),zs=H.get(Yn),qo=pe.get(Yn),lr=ts(this._normalizer,Fn.keyframes,zs,qo),la=this._buildPlayer(Fn,lr,uo);if(Fn.subTimeline&&F&&Jt.add(Yn),Zi){const Dr=new Ic(v,Ae,Yn);Dr.setRealPlayer(la),It.push(Dr)}return la});It.forEach(Fn=>{ki(this.playersByQueriedElement,Fn.element,[]).push(Fn),Fn.onDone(()=>function Oa(y,v,u){let C=y.get(v);if(C){if(C.length){const F=C.indexOf(u);C.splice(F,1)}0==C.length&&y.delete(v)}return C}(this.playersByQueriedElement,Fn.element,Fn))}),rn.forEach(Fn=>di(Fn,xo));const Cn=Gn(Un);return Cn.onDestroy(()=>{rn.forEach(Fn=>Ra(Fn,xo)),or(it,u.toStyles)}),Jt.forEach(Fn=>{ki(F,Fn,[]).push(Cn)}),Cn}_buildPlayer(v,u,C){return u.length>0?this.driver.animate(v.element,u,v.duration,v.delay,v.easing,C):new In.sf(v.duration,v.delay)}}class Ic{constructor(v,u,C){this.namespaceId=v,this.triggerName=u,this.element=C,this._player=new In.sf,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(v){this._containsRealPlayer||(this._player=v,this._queuedCallbacks.forEach((u,C)=>{u.forEach(F=>ji(v,C,void 0,F))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(v.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(v){this.totalTime=v}syncPlayerEvents(v){const u=this._player;u.triggerCallback&&v.onStart(()=>u.triggerCallback("start")),v.onDone(()=>this.finish()),v.onDestroy(()=>this.destroy())}_queueEvent(v,u){ki(this._queuedCallbacks,v,[]).push(u)}onDone(v){this.queued&&this._queueEvent("done",v),this._player.onDone(v)}onStart(v){this.queued&&this._queueEvent("start",v),this._player.onStart(v)}onDestroy(v){this.queued&&this._queueEvent("destroy",v),this._player.onDestroy(v)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(v){this.queued||this._player.setPosition(v)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(v){const u=this._player;u.triggerCallback&&u.triggerCallback(v)}}function Gl(y){return y&&1===y.nodeType}function Hl(y,v){const u=y.style.display;return y.style.display=v??"none",u}function Uc(y,v,u,C,F){const H=[];u.forEach(it=>H.push(Hl(it)));const pe=[];C.forEach((it,It)=>{const rn=new Map;it.forEach(Jt=>{const Un=v.computeStyle(It,Jt,F);rn.set(Jt,Un),(!Un||0==Un.length)&&(It[jr]=Gc,pe.push(It))}),y.set(It,rn)});let Ae=0;return u.forEach(it=>Hl(it,H[Ae++])),pe}function Oc(y,v){const u=new Map;if(y.forEach(Ae=>u.set(Ae,[])),0==v.length)return u;const F=new Set(v),H=new Map;function pe(Ae){if(!Ae)return 1;let it=H.get(Ae);if(it)return it;const It=Ae.parentNode;return it=u.has(It)?It:F.has(It)?1:pe(It),H.set(Ae,it),it}return v.forEach(Ae=>{const it=pe(Ae);1!==it&&u.get(it).push(Ae)}),u}function di(y,v){y.classList?.add(v)}function Ra(y,v){y.classList?.remove(v)}function Cr(y,v,u){Gn(u).onDone(()=>y.processLeaveNode(v))}function rc(y,v){for(let u=0;u<y.length;u++){const C=y[u];C instanceof In.ui?rc(C.players,v):v.push(C)}}function Tl(y,v,u){const C=u.get(y);if(!C)return!1;let F=v.get(y);return F?C.forEach(H=>F.add(H)):v.set(y,C),u.delete(y),!0}class Ul{constructor(v,u,C){this.bodyNode=v,this._driver=u,this._normalizer=C,this._triggerCache={},this.onRemovalComplete=(F,H)=>{},this._transitionEngine=new yr(v,u,C),this._timelineEngine=new br(v,u,C),this._transitionEngine.onRemovalComplete=(F,H)=>this.onRemovalComplete(F,H)}registerTrigger(v,u,C,F,H){const pe=v+"-"+F;let Ae=this._triggerCache[pe];if(!Ae){const it=[],rn=Je(this._driver,H,it,[]);if(it.length)throw function Al(y,v){return new h.wOt(3404,!1)}();Ae=function Ua(y,v,u){return new Cl(y,v,u)}(F,rn,this._normalizer),this._triggerCache[pe]=Ae}this._transitionEngine.registerTrigger(u,F,Ae)}register(v,u){this._transitionEngine.register(v,u)}destroy(v,u){this._transitionEngine.destroy(v,u)}onInsert(v,u,C,F){this._transitionEngine.insertNode(v,u,C,F)}onRemove(v,u,C){this._transitionEngine.removeNode(v,u,C)}disableAnimations(v,u){this._transitionEngine.markElementAsDisabled(v,u)}process(v,u,C,F){if("@"==C.charAt(0)){const[H,pe]=Hi(C);this._timelineEngine.command(H,u,pe,F)}else this._transitionEngine.trigger(v,u,C,F)}listen(v,u,C,F,H){if("@"==C.charAt(0)){const[pe,Ae]=Hi(C);return this._timelineEngine.listen(pe,u,Ae,H)}return this._transitionEngine.listen(v,u,C,F,H)}flush(v=-1){this._transitionEngine.flush(v)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(v){this._transitionEngine.afterFlushAnimationsDone(v)}}let $c=(()=>{class y{static{this.initialStylesByElement=new WeakMap}constructor(u,C,F){this._element=u,this._startStyles=C,this._endStyles=F,this._state=0;let H=y.initialStylesByElement.get(u);H||y.initialStylesByElement.set(u,H=new Map),this._initialStyles=H}start(){this._state<1&&(this._startStyles&&or(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(or(this._element,this._initialStyles),this._endStyles&&(or(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(y.initialStylesByElement.delete(this._element),this._startStyles&&(qn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(qn(this._element,this._endStyles),this._endStyles=null),or(this._element,this._initialStyles),this._state=3)}}return y})();function ac(y){let v=null;return y.forEach((u,C)=>{(function Yc(y){return"display"===y||"position"===y})(C)&&(v=v||new Map,v.set(C,u))}),v}class ud{constructor(v,u,C,F){this.element=v,this.keyframes=u,this.options=C,this._specialStyles=F,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=C.duration,this._delay=C.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(v=>v()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const v=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,v,this.options),this._finalKeyframe=v.length?v[v.length-1]:new Map;const u=()=>this._onFinish();this.domPlayer.addEventListener("finish",u),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",u)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(v){const u=[];return v.forEach(C=>{u.push(Object.fromEntries(C))}),u}_triggerWebAnimation(v,u,C){return v.animate(this._convertKeyframesToObject(u),C)}onStart(v){this._originalOnStartFns.push(v),this._onStartFns.push(v)}onDone(v){this._originalOnDoneFns.push(v),this._onDoneFns.push(v)}onDestroy(v){this._onDestroyFns.push(v)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(v=>v()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(v=>v()),this._onDestroyFns=[])}setPosition(v){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=v*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const v=new Map;this.hasStarted()&&this._finalKeyframe.forEach((C,F)=>{"offset"!==F&&v.set(F,this._finished?C:vl(this.element,F))}),this.currentSnapshot=v}triggerCallback(v){const u="start"===v?this._onStartFns:this._onDoneFns;u.forEach(C=>C()),u.length=0}}class no{validateStyleProperty(v){return!0}validateAnimatableStyleProperty(v){return!0}matchesElement(v,u){return!1}containsElement(v,u){return vs(v,u)}getParentElement(v){return $o(v)}query(v,u,C){return Di(v,u,C)}computeStyle(v,u,C){return window.getComputedStyle(v)[u]}animate(v,u,C,F,H,pe=[]){const it={duration:C,delay:F,fill:0==F?"both":"forwards"};H&&(it.easing=H);const It=new Map,rn=pe.filter(Cn=>Cn instanceof ud);(function Io(y,v){return 0===y||0===v})(C,F)&&rn.forEach(Cn=>{Cn.currentSnapshot.forEach((Fn,Yn)=>It.set(Yn,Fn))});let Jt=function ga(y){return y.length?y[0]instanceof Map?y:y.map(v=>Jn(v)):[]}(u).map(Cn=>ia(Cn));Jt=function Sr(y,v,u){if(u.size&&v.length){let C=v[0],F=[];if(u.forEach((H,pe)=>{C.has(pe)||F.push(pe),C.set(pe,H)}),F.length)for(let H=1;H<v.length;H++){let pe=v[H];F.forEach(Ae=>pe.set(Ae,vl(y,Ae)))}}return v}(v,Jt,It);const Un=function Oo(y,v){let u=null,C=null;return Array.isArray(v)&&v.length?(u=ac(v[0]),v.length>1&&(C=ac(v[v.length-1]))):v instanceof Map&&(u=ac(v)),u||C?new $c(y,u,C):null}(v,Jt);return new ud(v,Jt,it,Un)}}let S=(()=>{class y extends In.S6{constructor(u,C){super(),this._nextAnimationId=0,this._renderer=u.createRenderer(C.body,{id:"0",encapsulation:h.gXe.None,styles:[],data:{animation:[]}})}build(u){const C=this._nextAnimationId.toString();this._nextAnimationId++;const F=Array.isArray(u)?(0,In.K2)(u):u;return I(this._renderer,null,C,"register",[F]),new w(C,this._renderer)}static{this.\u0275fac=function(C){return new(C||y)(h.KVO(h._9s),h.KVO(Mt.qQ))}}static{this.\u0275prov=h.jDH({token:y,factory:y.\u0275fac})}}return y})();class w extends In.Ro{constructor(v,u){super(),this._id=v,this._renderer=u}create(v,u){return new b(this._id,v,u||{},this._renderer)}}class b{constructor(v,u,C,F){this.id=v,this.element=u,this._renderer=F,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",C)}_listen(v,u){return this._renderer.listen(this.element,`@@${this.id}:${v}`,u)}_command(v,...u){return I(this._renderer,this.element,this.id,v,u)}onDone(v){this._listen("done",v)}onStart(v){this._listen("start",v)}onDestroy(v){this._listen("destroy",v)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(v){this._command("setPosition",v)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function I(y,v,u,C,F){return y.setProperty(v,`@@${u}:${C}`,F)}const X="@",de="@.disabled";let tt=(()=>{class y{constructor(u,C,F){this.delegate=u,this.engine=C,this._zone=F,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,C.onRemovalComplete=(H,pe)=>{const Ae=pe?.parentNode(H);Ae&&pe.removeChild(Ae,H)}}createRenderer(u,C){const H=this.delegate.createRenderer(u,C);if(!(u&&C&&C.data&&C.data.animation)){let rn=this._rendererCache.get(H);return rn||(rn=new Ot("",H,this.engine,()=>this._rendererCache.delete(H)),this._rendererCache.set(H,rn)),rn}const pe=C.id,Ae=C.id+"-"+this._currentId;this._currentId++,this.engine.register(Ae,u);const it=rn=>{Array.isArray(rn)?rn.forEach(it):this.engine.registerTrigger(pe,Ae,u,rn.name,rn)};return C.data.animation.forEach(it),new Kt(this,Ae,H,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(u,C,F){u>=0&&u<this._microtaskId?this._zone.run(()=>C(F)):(0==this._animationCallbacksBuffer.length&&queueMicrotask(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(H=>{const[pe,Ae]=H;pe(Ae)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([C,F]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}static{this.\u0275fac=function(C){return new(C||y)(h.KVO(h._9s),h.KVO(Ul),h.KVO(h.SKi))}}static{this.\u0275prov=h.jDH({token:y,factory:y.\u0275fac})}}return y})();class Ot{constructor(v,u,C,F){this.namespaceId=v,this.delegate=u,this.engine=C,this._onDestroy=F}get data(){return this.delegate.data}destroyNode(v){this.delegate.destroyNode?.(v)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(v,u){return this.delegate.createElement(v,u)}createComment(v){return this.delegate.createComment(v)}createText(v){return this.delegate.createText(v)}appendChild(v,u){this.delegate.appendChild(v,u),this.engine.onInsert(this.namespaceId,u,v,!1)}insertBefore(v,u,C,F=!0){this.delegate.insertBefore(v,u,C),this.engine.onInsert(this.namespaceId,u,v,F)}removeChild(v,u,C){this.engine.onRemove(this.namespaceId,u,this.delegate)}selectRootElement(v,u){return this.delegate.selectRootElement(v,u)}parentNode(v){return this.delegate.parentNode(v)}nextSibling(v){return this.delegate.nextSibling(v)}setAttribute(v,u,C,F){this.delegate.setAttribute(v,u,C,F)}removeAttribute(v,u,C){this.delegate.removeAttribute(v,u,C)}addClass(v,u){this.delegate.addClass(v,u)}removeClass(v,u){this.delegate.removeClass(v,u)}setStyle(v,u,C,F){this.delegate.setStyle(v,u,C,F)}removeStyle(v,u,C){this.delegate.removeStyle(v,u,C)}setProperty(v,u,C){u.charAt(0)==X&&u==de?this.disableAnimations(v,!!C):this.delegate.setProperty(v,u,C)}setValue(v,u){this.delegate.setValue(v,u)}listen(v,u,C){return this.delegate.listen(v,u,C)}disableAnimations(v,u){this.engine.disableAnimations(v,u)}}class Kt extends Ot{constructor(v,u,C,F,H){super(u,C,F,H),this.factory=v,this.namespaceId=u}setProperty(v,u,C){u.charAt(0)==X?"."==u.charAt(1)&&u==de?this.disableAnimations(v,C=void 0===C||!!C):this.engine.process(this.namespaceId,v,u.slice(1),C):this.delegate.setProperty(v,u,C)}listen(v,u,C){if(u.charAt(0)==X){const F=function _n(y){switch(y){case"body":return document.body;case"document":return document;case"window":return window;default:return y}}(v);let H=u.slice(1),pe="";return H.charAt(0)!=X&&([H,pe]=function fi(y){const v=y.indexOf(".");return[y.substring(0,v),y.slice(v+1)]}(H)),this.engine.listen(this.namespaceId,F,H,pe,Ae=>{this.factory.scheduleListenerCallback(Ae._data||-1,C,Ae)})}return this.delegate.listen(v,u,C)}}const Ro=[{provide:In.S6,useClass:S},{provide:xr,useFactory:function Gi(){return new Ha}},{provide:Ul,useClass:(()=>{class y extends Ul{constructor(u,C,F,H){super(u.body,C,F)}ngOnDestroy(){this.flush()}static{this.\u0275fac=function(C){return new(C||y)(h.KVO(Mt.qQ),h.KVO(ao),h.KVO(xr),h.KVO(h.o8S))}}static{this.\u0275prov=h.jDH({token:y,factory:y.\u0275fac})}}return y})()},{provide:h._9s,useFactory:function vi(y,v,u){return new tt(y,v,u)},deps:[e.B7,Ul,h.SKi]}],wr=[{provide:ao,useFactory:()=>new no},{provide:h.bc$,useValue:"BrowserAnimations"},...Ro],Gr=[{provide:ao,useClass:ma},{provide:h.bc$,useValue:"NoopAnimations"},...Ro];let Hr=(()=>{class y{static withConfig(u){return{ngModule:y,providers:u.disableAnimations?Gr:wr}}static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({providers:wr,imports:[e.Bb]})}}return y})(),El=(()=>{class y{static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({})}}return y})();var ar=N(9417),Qi=N(6600),Ir=N(6939),Id=N(2318),mu=N(6039);N(6860);let ys=(()=>{class y{static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({imports:[Mt.MD,Qi.yE,Ir.jc,Qi.pZ,Id.w5,mu.Pd,Qi.yE]})}}return y})();var Or=N(3881),Co=N(8031),Nc=N(969),Tu=N(4958),Ld=N(8737),Eu=N(2356),Bd=N(8466);let Su=(()=>{class y{static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({imports:[Mt.MD,ar.YN,Or.Ez,Co.YN.forRoot(),Tu.kr,Ld.GQ,Nc.rJ,El,Eu.c9,Bd.Qs]})}}return y})();var su=N(5351),Ju=N(7675),ku=N(9115),eh=N(9213),th=N(6911);let Ur=(()=>{class y{static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({imports:[Mt.MD,Su,su.hM,Ju.tP,ku.Cn,eh.m_,Bd.Qs,ar.YN,th.UN]})}}return y})(),Vd=(()=>{class y{static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({imports:[Mt.MD,Co.YN.forRoot(),fr,Ur,Re,Vs]})}}return y})(),xu=(()=>{class y{static{this.\u0275fac=function(C){return new(C||y)}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({imports:[Tu.kr,El,Ld.GQ,ar.YN,ys,Su,Vd,fr.forRoot({positionClass:"toast-bottom-left"}),Ur]})}}return y})(),qa=(()=>{class y{constructor(u){this.injector=u}ngDoBootstrap(){const u="octa-form-submission-webcomponent";if(customElements.get(u))console.warn(`${u} is already defined`);else{const C=function rt(y,v){const u=function ft(y,v){return v.get(h.OM3).resolveComponentFactory(y).inputs}(y,v.injector),C=v.strategyFactory||new At(y,v.injector),F=function bt(y){const v={};return y.forEach(({propName:u,templateName:C,transform:F})=>{v[function Oe(y){return y.replace(/[A-Z]/g,v=>`-${v.toLowerCase()}`)}(C)]=[u,F]}),v}(u);class H extends at{static{this.observedAttributes=Object.keys(F)}get ngElementStrategy(){if(!this._ngElementStrategy){const Ae=this._ngElementStrategy=C.create(this.injector||v.injector);u.forEach(({propName:it,transform:It})=>{if(!this.hasOwnProperty(it))return;const rn=this[it];delete this[it],Ae.setInputValue(it,rn,It)})}return this._ngElementStrategy}constructor(Ae){super(),this.injector=Ae}attributeChangedCallback(Ae,it,It,rn){const[Jt,Un]=F[Ae];this.ngElementStrategy.setInputValue(Jt,It,Un)}connectedCallback(){let Ae=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),Ae=!0),this.ngElementStrategy.connect(this),Ae||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(Ae=>{const it=new CustomEvent(Ae.name,{detail:Ae.value});this.dispatchEvent(it)})}}return u.forEach(({propName:pe,transform:Ae})=>{Object.defineProperty(H.prototype,pe,{get(){return this.ngElementStrategy.getInputValue(pe)},set(it){this.ngElementStrategy.setInputValue(pe,it,Ae)},configurable:!0,enumerable:!0})}),H}(Nl,{injector:this.injector});customElements.define(u,C)}}static{this.\u0275fac=function(C){return new(C||y)(h.KVO(h.zZn))}}static{this.\u0275mod=h.$C({type:y})}static{this.\u0275inj=h.G2t({imports:[e.Bb,Hr,Xr.q1,xu]})}}return y})();e.sG().bootstrapModule(qa).catch(y=>console.error(y))},7869:(pn,ct,N)=>{N.r(ct),N.d(ct,{FormElementsComponent:()=>Sh});var e=N(7705),h=N(177);let ne=(()=>{class _{constructor(){this.section={},this.decodedDescription=""}decodeHtml(l){const k=document.createElement("textarea");return k.innerHTML=l,k.value}ngOnChanges(){this.section.description&&(this.decodedDescription=this.decodeHtml(this.section.description))}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-section-fields"]],inputs:{section:"section"},features:[e.OA$],decls:4,vars:3,consts:[[1,"mb-4","px-3"],[1,"sectionTitle"],[1,"description",3,"innerHTML"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"p",1),e.EFF(2),e.k0s(),e.nrm(3,"p",2),e.k0s()),2&k&&(e.BMQ("name",M.section.testElementName),e.R7$(2),e.JRh(M.section.title),e.R7$(1),e.Y8G("innerHTML",M.decodedDescription,e.npT))},styles:[".sectionTitle[_ngcontent-%COMP%]{font-size:19px;font-weight:700;margin-bottom:20px;word-break:break-word}.description[_ngcontent-%COMP%]{font-size:17px;font-weight:500;margin-bottom:18px;word-break:break-word} .description img{max-width:100%}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}"]})}}return _})();var Z=N(467),De=N(541),we=N(3628),Ie=N(1852);function Oe(_,ie){if(1&_&&e.nrm(0,"div",10),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Ne(_,ie){1&_&&e.nrm(0,"span",11)}function Me(_,ie){1&_&&(e.j41(0,"span",12),e.EFF(1,"*"),e.k0s())}function Ge(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",14),e.nrm(2,"path",15)(3,"path",16)(4,"path",17),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Ue(_,ie){if(1&_&&(e.j41(0,"div",6),e.DNE(1,Oe,1,1,"div",7),e.DNE(2,Ne,1,0,"span",8),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Me,2,0,"span",5),e.DNE(7,Ge,5,1,"div",9),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function yt(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",18)(1,"input",19),e.bIt("change",function(M){const ve=e.eBV(l).$implicit,Et=e.XpG();return e.Njj(Et.onCheckboxChange(ve,M))}),e.k0s(),e.j41(2,"label",20),e.EFF(3),e.k0s()()}if(2&_){const l=ie.$implicit,k=e.XpG();e.R7$(1),e.Y8G("id",l.value+(null==k.question?null:k.question.id))("name",l.value+"Checkbox")("value",l.value)("disabled",k.isOptionDisabled(l))("checked",k.selectedOptions.includes(l)),e.BMQ("data-value",k.selectedOptions.includes(l)),e.R7$(1),e.Y8G("for",l.value+(null==k.question?null:k.question.id)),e.R7$(1),e.JRh(l.label)}}function _t(_,ie){if(1&_&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function bt(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",22),e.nrm(2,"path",23)(3,"path",24)(4,"path",25)(5,"circle",26),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const ft=function(_){return{"mb-4":_}};let mt=(()=>{class _{constructor(l,k,M){this.formService=l,this.validationService=k,this.tracker=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.selectionType="",this.optionType="",this.lookupTable={},this.customOptions=[],this.database={},this.api={},this.apiOptions=[],this.selectedOptions=[],this.validationFailed=!1,this.displayOptionsInColumn=!1,this.validationMessage="",this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){switch(this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.selectionType=this.question.formElement.appearance.selectionType,this.displayOptionsInColumn=this.question.formElement.appearance.displayOptionsInColumn??!1,this.minimumSelection=this.question.formElement.validation.minimumSelection,this.maximumSelection=this.question.formElement.validation.maximumSelection,this.optionType=this.question.formElement.option.optionType,this.optionType){case"OPTION":this.customOptions=this.question.formElement.option.customOptions,this.customOptions=this.question.formElement.option.customOptions.map(l=>({value:l.value,label:l.value})),this.question.answer&&this.initializeCustomOption();break;case"LOOKUP":this.lookupTable=this.question.formElement.option.lookupTable,this.fetchDataFromLookup();break;case"DATABASE":this.database=this.question.formElement.option.database,this.fetchDataFromDatabase();break;case"API":this.api=this.question.formElement.option.api,this.fetchDataFromAPI();break;default:console.warn("Unknown option type:",this.optionType)}"SINGLE"===this.selectionType&&(this.minimumSelection=1,this.maximumSelection=1),"MULTIPLE"===this.selectionType&&!this.minimumSelection&&!this.maximumSelection&&(this.minimumSelection=void 0,this.maximumSelection=void 0)}initializeCustomOption(){this.selectedOptions=[],this.customOptions?.forEach(l=>{this.question?.answer?.find(k=>"string"==typeof k&&k.includes("|")?k.split("|")[1]===l.value.toString():k.toString()===l.value.toString())&&this.selectedOptions.push(l)}),this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question)}onCheckboxChange(l,k){"SINGLE"===this.selectionType?(k.target.checked?(this.selectedOptions=[l],this.question.answer=[`${l.label}|${l.value}`]):(this.selectedOptions=[],this.question.answer=[]),this.isMinimumSelectionValid()):"MULTIPLE"===this.selectionType&&(k.target.checked?this.selectedOptions.includes(l)||this.selectedOptions.push(l):this.selectedOptions=this.selectedOptions.filter(M=>M!==l),this.question.answer=this.selectedOptions.map(M=>`${M.label}|${M.value}`),this.isMinimumSelectionValid()),void 0!==this.maximumSelection&&this.selectedOptions.length>this.maximumSelection&&(k.target.checked=!1,this.selectedOptions=this.selectedOptions.filter(M=>M!==l),this.question.answer=this.selectedOptions.map(M=>`${M.label}|${M.value}`),this.isMinimumSelectionValid()),this.question.childLogics&&this.updateChildLogics(this.question),this.answerChange.emit(this.question.answer)}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{if("SINGLE"===this.selectionType)0===this.selectedOptions.length?(k.showLogic=!1,this.clearAnswersRecursively(k)):this.evaluateCondition(this.selectedOptions[0]?.label,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k));else if("MULTIPLE"===this.selectionType)if(0===this.selectedOptions.length)k.showLogic=!1,this.clearAnswersRecursively(k);else{const M=this.selectedOptions.map($=>$.label);this.evaluateMultipleCondition(M,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))}})}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const $=M.element;"QUESTION"===M.entityType&&$&&("answer"in $&&($.answer=""),$.childLogics&&$.childLogics.length>0&&$.childLogics.forEach(ve=>{this.clearAnswersRecursively(ve)})),"SUBFORM"===M.entityType&&$&&$.rows&&this.clearAnswersRecursively({rows:$.rows})})})}evaluateCondition(l,k,M){const $=Array.isArray(M)?M.map(ve=>ve.toString()):[M.toString()];switch(k){case"!=":case"NOT IN":return!$.includes(l);case"=":case"IN":return $.includes(l);default:return!1}}evaluateMultipleCondition(l,k,M){const $=Array.isArray(M)?M.map(ve=>ve.toString()):[M.toString()];switch(k){case"!=":case"NOT IN":return l.every(ve=>!$.includes(ve));case"=":case"IN":return l.some(ve=>$.includes(ve));default:return!1}}fetchDataFromLookup(){this.formService.fetchDataFromLookup(this.lookupTable).subscribe(l=>{this.customOptions=l.result.values.map(k=>({value:k.value,label:k.label})),this.question.answer&&this.initializeCustomOption()},l=>{console.error("HTTP Error:",l)})}fetchDataFromDatabase(){const l=this.transformDatabaseObject(this.database);this.formService.fetchDataFromDatabase(l).subscribe(k=>{k.success?(this.customOptions=k.result.map(M=>({value:M.value,label:M.label})),this.question.answer&&this.initializeCustomOption()):console.error("Error fetching data from database:",k.message)},k=>{console.error("HTTP Error:",k)})}transformDatabaseObject(l){return{tableName:l.tableName,valueField:l.valueField,labelField:l.labelField,labelPattern:l.labelPattern,criteria:l.criteria.map(k=>({field:k?.field,valueSource:k?.valueSource,condition:k?.condition,value:k?.inputValue,logicalOperator:k?.logicalOperator}))}}fetchDataFromAPI(){const l=this.api;this.formService.fetchDataFromExternalAPI(l).subscribe(k=>{let M;M=l.pathToValue?this.extractDataByPath(k,l.pathToValue):k,this.customOptions=M.map($=>({value:$[l.valueField],label:$[l.labelField]})),this.question.answer&&this.initializeCustomOption()},k=>{console.error("HTTP Error:",k)})}extractDataByPath(l,k){return k.split(".").reduce((M,$)=>M&&M[$],l)}isMinimumSelectionValid(){this.validationFailed=!1,0==this.selectedOptions.length&&this.required?(this.validationService.clearInvalid(this.question.id),this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):void 0!==this.minimumSelection?"SINGLE"==this.selectionType?(this.validationService.clearInvalid(this.question.id),this.selectedOptions.length<this.minimumSelection&&this.required?(this.validationFailed=!0,this.validationMessage=`Minimum ${this.minimumSelection} selection(s) required.`,this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0)):this.selectedOptions.length<this.minimumSelection?(this.validationService.clearInvalid(this.question.id),this.validationFailed=!0,this.validationMessage=`Minimum ${this.minimumSelection} selection(s) required.`,this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0)}getOptions(){return"OPTION"===this.optionType?this.customOptions:"LOOKUP"===this.optionType?Object.values(this.lookupTable):"API"===this.optionType?this.apiOptions.map(l=>l.valueField):[]}isOptionDisabled(l){return void 0!==this.maximumSelection&&this.selectedOptions.length>=this.maximumSelection&&!this.selectedOptions.includes(l)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(De.u),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-check-box-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:6,vars:11,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-3",4,"ngIf"],[1,"checkboxField-container"],["class","form-check",4,"ngFor","ngForOf"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-3"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"id","name","value","disabled","checked","change"],[1,"formCheckLabel","me-4","mb-2",3,"for"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Ue,8,5,"div",1),e.j41(2,"div",2),e.DNE(3,yt,4,8,"div",3),e.k0s(),e.DNE(4,_t,2,1,"div",4),e.DNE(5,bt,7,1,"div",5),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,ft,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("two-column",M.displayOptionsInColumn),e.R7$(1),e.Y8G("ngForOf",M.customOptions),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||0===M.selectedOptions.length)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.Sq,h.bT],styles:['@charset "UTF-8";.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.form-check-input[_ngcontent-%COMP%]{cursor:pointer}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.formCheckLabel[_ngcontent-%COMP%]{margin-top:5px;cursor:pointer}.checkboxField-container[_ngcontent-%COMP%]{display:block}.checkboxField-container.two-column[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr)}']})}}return _})();var en=N(1593),vt=N(9417),At=N(8031),me=N(2356);const at=["datepickerYMD"],rt=["daterangepicker"],ht=["dateAndTimePicker"],St=["fullTime3"],Mt=["fullTime4"];function cn(_,ie){if(1&_&&e.nrm(0,"div",8),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function En(_,ie){1&_&&e.nrm(0,"span",9)}function dn(_,ie){1&_&&(e.j41(0,"span",10),e.EFF(1,"*"),e.k0s())}function Wt(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",12),e.nrm(2,"path",13)(3,"path",14)(4,"path",15),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function ze(_,ie){if(1&_&&(e.j41(0,"div",3),e.DNE(1,cn,1,1,"div",4),e.DNE(2,En,1,0,"span",5),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,dn,2,0,"span",6),e.DNE(7,Wt,5,1,"div",7),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function be(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Se(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Nt=function(_){return{dateInputFormat:_,containerClass:"theme-custom"}};function K(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",17,18),e.bIt("ngModelChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.selectedDate=M)})("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(4,"i",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.openDatePicker())}),e.k0s()(),e.DNE(5,be,2,1,"div",20),e.DNE(6,Se,7,1,"div",21),e.bVm()}if(2&_){const l=e.XpG();e.R7$(2),e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid&&(!l.inLine||!l.selectedDate)),e.Y8G("minDate",l.minDate?l.minDate:void 0)("maxDate",l.maxDate?l.maxDate:void 0)("bsConfig",e.eq3(10,Nt,l.format))("ngModel",l.selectedDate),e.R7$(3),e.Y8G("ngIf",l.isInvalid&&(!l.inLine||!l.selectedDate)),e.R7$(1),e.Y8G("ngIf",l.validationFailed)}}function ge(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function je(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const le=function(_){return{containerClass:"theme-dark-blue",isAnimated:!0,adaptivePosition:!0,showWeekNumbers:!1,minMode:"month",dateInputFormat:_}};function ce(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",17,18),e.bIt("ngModelChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.selectedDate=M)})("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(4,"i",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.openDatePicker())}),e.k0s()(),e.DNE(5,ge,2,1,"div",20),e.DNE(6,je,7,1,"div",21),e.bVm()}if(2&_){const l=e.XpG();e.R7$(2),e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid&&(!l.inLine||!l.selectedDate)),e.Y8G("minDate",l.minDate?l.minDate:void 0)("maxDate",l.maxDate?l.maxDate:void 0)("bsConfig",e.eq3(10,le,l.format))("ngModel",l.selectedDate),e.R7$(3),e.Y8G("ngIf",l.isInvalid&&(!l.inLine||!l.selectedDate)),e.R7$(1),e.Y8G("ngIf",l.validationFailed)}}function Le(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function ue(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}function Ye(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",29),e.bIt("ngModelChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.selectedTime=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(3,"i",30),e.bIt("click",function(){e.eBV(l);const M=e.sdS(5);return e.Njj(M.open())}),e.k0s(),e.nrm(4,"ngx-material-timepicker",null,31),e.k0s(),e.DNE(6,Le,2,1,"div",20),e.DNE(7,ue,7,1,"div",21),e.bVm()}if(2&_){const l=e.sdS(5),k=e.XpG();e.R7$(2),e.AVh("invalid",k.validationFailed)("invalid-question",k.isInvalid&&(!k.inLine||!k.selectedTime)),e.Y8G("format","24"===k.timeFormat?24:12)("ngxTimepicker",l)("ngModel",k.selectedTime)("max",k.maxTime)("min",k.minTime),e.R7$(4),e.Y8G("ngIf",k.isInvalid&&(!k.inLine||!k.selectedTime)),e.R7$(1),e.Y8G("ngIf",k.validationFailed)}}function L(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",16)(1,"input",35),e.bIt("ngModelChange",function(M){e.eBV(l);const $=e.XpG(2);return e.Njj($.selectedTime=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG(2);return e.Njj(M.validateField())})("focus",function(){e.eBV(l);const M=e.XpG(2);return e.Njj(M.closeDatepicker())}),e.k0s(),e.j41(2,"i",30),e.bIt("click",function(){e.eBV(l);const M=e.sdS(4);return e.Njj(M.open())}),e.k0s(),e.nrm(3,"ngx-material-timepicker",null,36),e.k0s()}if(2&_){const l=e.sdS(4),k=e.XpG(2);e.R7$(1),e.AVh("invalid",k.timeValidationFailed)("invalid-question",k.isInvalid&&(!k.inLine||!k.selectedTime)),e.Y8G("format","24"===k.timeFormat?24:12)("ngxTimepicker",l)("ngModel",k.selectedTime)("max",k.maxTime)("min",k.minTime)}}function z(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Be(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}function pt(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",32,33),e.bIt("ngModelChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.selectedDateAndTime=M)})("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(4,"i",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.openDateAndTimePicker())}),e.k0s()(),e.DNE(5,L,5,9,"div",34),e.DNE(6,z,2,1,"div",20),e.DNE(7,Be,7,1,"div",21),e.bVm()}if(2&_){const l=e.XpG();e.R7$(2),e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid),e.Y8G("minDate",l.minDate?l.minDate:void 0)("maxDate",l.maxDate?l.maxDate:void 0)("bsConfig",e.eq3(11,Nt,l.format))("ngModel",l.selectedDateAndTime),e.R7$(3),e.Y8G("ngIf",l.selectedDateAndTime&&null!=l.selectedDateAndTime),e.R7$(1),e.Y8G("ngIf",l.isInvalid&&(!l.inLine||!l.selectedTime)),e.R7$(1),e.Y8G("ngIf",l.validationFailed||l.timeValidationFailed)}}function dt(_,ie){if(1&_&&(e.j41(0,"div",22),e.EFF(1),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Vt(_,ie){if(1&_&&(e.j41(0,"div",23),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG(2);e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const bn=function(_,ie){return{rangeInputFormat:_,dateInputFormat:ie,containerClass:"theme-custom",displayOneMonthRange:!0}};function jn(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",16)(2,"input",37,38),e.bIt("ngModelChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.selectedDateRange=M)})("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateField())}),e.k0s(),e.j41(4,"i",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.openDateRangePicker())}),e.k0s()(),e.DNE(5,dt,2,1,"div",20),e.DNE(6,Vt,7,1,"div",21),e.bVm()}if(2&_){const l=e.XpG();e.R7$(2),e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid&&(!l.inLine||!l.selectedDateRange)),e.Y8G("minDate",l.minDate)("maxDate",l.maxDate)("bsConfig",e.l_i(10,bn,l.format,l.format))("ngModel",l.selectedDateRange),e.R7$(3),e.Y8G("ngIf",l.isInvalid&&(!l.inLine||!l.selectedDateRange)),e.R7$(1),e.Y8G("ngIf",l.validationFailed&&!l.isInvalid)}}const nn=function(_){return{"mb-4":_}};let Vn=(()=>{class _{constructor(l,k,M,$){this.datePipe=l,this.router=k,this.validationService=M,this.tracker=$,this.bsConfig={containerClass:"theme-custom",isAnimated:!0,adaptivePosition:!0,showWeekNumbers:!1},this.rangeBsConfig={},this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.required=!1,this.hint="",this.count=0,this.minTime="",this.maxTime="",this.dateType="",this.format="",this.Dateformat="",this.timeFormat="",this.minDateOption="",this.maxDateOption="",this.todayDate=new Date,this.selectedDate=null,this.selectedTime="",this.selectedDateRange="",this.selectedDateAndTime=null,this.validationMessage="",this.maxTimeOption="",this.minTimeOption="",this.elementId="",this.timePickerOpened=!1,this.subscriptions=[],this.timePickersOpened={}}ngOnInit(){this.valueAssigned(),this.setRangeConfig()}setRangeConfig(){this.rangeBsConfig={containerClass:"theme-custom",isAnimated:!0,adaptivePosition:!0,showWeekNumbers:!1,dateInputFormat:this.format,rangeInputFormat:this.format,displayOneMonthRange:!0}}valueAssigned(){if(this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.dateType=this.question.formElement.appearance.dateType,this.minDateOption=this.question.formElement.validation.minDateOption,this.Dateformat=this.question.formElement.appearance.format.replace(/DD/g,"dd"),this.minDate=this.getMinDate(),this.maxDateOption=this.question.formElement.validation.maxDateOption,this.maxDate=this.getMaxDate(),this.setDateTimeFormat(),this.question?.answer&&(this.question?.answer).length>0&&(this.selectedDate=this.question?.answer),this.selectedTime=this.question.answer,this.question?.answer&&(this.question?.answer).length>0&&(this.selectedDateAndTime=new Date(this.question.answer)),this.selectedDateRange=this.question.answer,this.minTimeOption=this.question.formElement.validation.minTimeOption,this.maxTimeOption=this.question.formElement.validation.maxTimeOption,"DATE_AND_TIME"!==this.dateType&&(this.minTime=this.getMinTime().toString(),this.maxTime=this.getMaxTime().toString()),"DATE_AND_TIME"===this.dateType&&this.question?.answer){const l=this.question.answer?this.question.answer.split(","):[];if(2===l.length){const ve=l[0].trim(),Et=l[1].trim();this.selectedDate=ve,this.selectedTime=Et}const k=this.datePipe.transform(this.selectedDateAndTime,this.Dateformat),M=this.datePipe.transform(this.minDate,this.Dateformat),$=this.datePipe.transform(this.maxDate,this.Dateformat);k===M&&(this.minTime=this.getMinTime().toString(),this.maxTime="12"===this.timeFormat?"12:00 pm":"23:59"),k===$&&(this.maxTime=this.getMaxTime().toString(),this.minTime="12"===this.timeFormat?"12:00 am":"00:00"),k!==M&&k!==$&&("12"===this.timeFormat?(this.minTime="12:00 am",this.maxTime="12:00 pm"):(this.minTime="00:00",this.maxTime="23:59"))}(!this.minTime||0===this.minTime.length)&&(this.minTime="12"===this.timeFormat?"12:00 am":"00:00"),(!this.maxTime||0===this.maxTime.length)&&(this.maxTime="12"===this.timeFormat?"11:59 pm":"23:59")}setDateTimeFormat(){switch(this.dateType){case"DATE_ONLY":case"DATE_RANGE":case"MONTH_YEAR":this.format=this.question.formElement.appearance.format;break;case"TIME_ONLY":this.timeFormat=this.question.formElement.appearance.timeFormat;break;case"DATE_AND_TIME":this.format=this.question.formElement.appearance.format,this.timeFormat=this.question.formElement.appearance.timeFormat;break;default:this.format="DD/MM/YYYY"}}getMinDate(){if("CURRENT_DATE"===this.minDateOption)return this.todayDate;if("CUSTOM"===this.minDateOption)return new Date(this.question.formElement.validation.minDate);if("MONTH_YEAR"===this.dateType){const k=new Date(this.question.formElement.validation.minDate).getFullYear();return new Date(k,0,1)}}getMaxDate(){if("CURRENT_DATE"===this.maxDateOption)return this.todayDate;if("CUSTOM"===this.maxDateOption)return new Date(this.question.formElement.validation.maxDate);if("MONTH_YEAR"===this.dateType){const k=new Date(this.question.formElement.validation.maxDate).getFullYear();return new Date(k,11,31)}}getMinTime(){if(this.minTimeOption){const l="24"===this.timeFormat?"HH:mm":"hh:mm a";if("CURRENT_TIME"===this.minTimeOption)return this.datePipe.transform(new Date,l)||"";if("CUSTOM"===this.minTimeOption){const k=this.question.formElement.validation.minTime,[M,$]=k.split(":"),ve=new Date;return ve.setHours(parseInt(M,10),parseInt($,10),0,0),this.datePipe.transform(ve,l)||""}}return""}getMaxTime(){if(this.maxTimeOption){const l="24"===this.timeFormat?"HH:mm":"hh:mm a";if("CURRENT_TIME"===this.maxTimeOption)return this.datePipe.transform(new Date,l)||"";if("CUSTOM"===this.maxTimeOption){const k=this.question.formElement.validation.maxTime,[M,$]=k.split(":"),ve=new Date;return ve.setHours(parseInt(M,10),parseInt($,10),0,0),this.datePipe.transform(ve,l)||""}}return""}openDatePicker(){this.datepicker.toggle()}openDateRangePicker(){this.dateRangePicker.toggle()}openDateAndTimePicker(){this.dateAndTimePicker.toggle()}closeDatepicker(){this.dateAndTimePicker&&this.dateAndTimePicker.hide()}validateField(){"DATE_ONLY"===this.dateType||"MONTH_YEAR"===this.dateType?(this.question.answer=this.selectedDate?this.formatDate(this.selectedDate.toString()):"",this.validateDateOnly()):"TIME_ONLY"===this.dateType?(this.question.answer=String(this.selectedTime),this.validateTimeOnly()):"DATE_AND_TIME"===this.dateType?(this.question.answer=this.selectedDateAndTime?this.formatDate(this.selectedDateAndTime.toString()):"",this.validateDateAndTime()):(this.question.answer=this.formatDate(this.selectedDateRange),this.validateDateRange()),this.answerChange.emit(this.question.answer)}formatDate(l,k="dateTime"){switch(this.dateType){case"DATE_ONLY":return this.datePipe.transform(this.selectedDate,this.Dateformat)||"";case"MONTH_YEAR":const M=this.extractMonthYear(this.selectedDate?.toString());return M?(this.selectedDate=new Date(M.year,M.month-1,1),this.datePipe.transform(this.selectedDate,this.Dateformat)||""):(console.error("Invalid date format"),"");case"DATE_AND_TIME":const $=this.datePipe.transform(this.selectedDateAndTime,this.Dateformat),ve=this.datePipe.transform(this.minDate,this.Dateformat),Et=this.datePipe.transform(this.maxDate,this.Dateformat);$===ve&&(this.minTime=this.getMinTime().toString(),this.maxTime="12"===this.timeFormat?"11:59 pm":"23:59"),$===Et&&(this.maxTime=this.getMaxTime().toString(),this.minTime="12"===this.timeFormat?"12:00 am":"00:00"),$!==ve&&$!==Et&&(this.minTime="12"===this.timeFormat?"12:00 am":"00:00",this.maxTime="12"===this.timeFormat?"11:59 pm":"23:59");const Dn=this.selectedTime||"";return $&&Dn?`${$}, ${Dn}`:"";case"DATE_RANGE":const kn=l;return Array.isArray(kn)&&2===kn.length?`${this.datePipe.transform(kn[0],this.Dateformat)} - ${this.datePipe.transform(kn[1],this.Dateformat)}`:"";default:return this.datePipe.transform(l,this.Dateformat)||""}}extractMonthYear(l){if(!l)return null;if("string"==typeof l){const k=new Date(l);if(!isNaN(k.getTime()))return{month:k.getMonth()+1,year:k.getFullYear()};const M=l.split(/[-/]/);if(2!==M.length)return null;let $=0,ve=0;return 4===M[0].length?($=parseInt(M[0],10),ve=parseInt(M[1],10)):(ve=parseInt(M[0],10),$=parseInt(M[1],10)),{month:ve,year:$}}return l instanceof Date&&!isNaN(l.getTime())?{month:l.getMonth()+1,year:l.getFullYear()}:null}validateDateOnly(){this.validationFailed=!1,this.validationMessage="",this.required&&!this.selectedDate?(this.validationFailed=!0,this.validationService.clearInvalid(this.question.id),this.validationMessage="This is a required question",this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0)}validateTimeOnly(){this.validationFailed=!1,this.validationMessage="",this.required&&!this.selectedTime?(this.validationService.clearInvalid(this.question.id),this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0)}validateDateRange(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",this.required&&!this.selectedDateRange?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0}validateDateAndTime(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.timeValidationFailed=!1,this.validationMessage="",this.required&&!this.selectedDateAndTime?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.required&&!this.selectedTime?(this.timeValidationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0}convertToISODate(l){if(!l)return null;let k,M,$;if(Array.isArray(l)){if([k,M,$]=l,"number"!=typeof k||"number"!=typeof M||"number"!=typeof $||isNaN(k)||isNaN(M)||isNaN($)||!Number.isInteger(k)||!Number.isInteger(M)||!Number.isInteger($)||M<1||M>12||$<1||$>31)return null}else{if("string"!=typeof l)return null;{const Et=l.split("-");if(3!==Et.length||([k,M,$]=Et.map(Number),isNaN(k)||isNaN(M)||isNaN($)||!Number.isInteger(k)||!Number.isInteger(M)||!Number.isInteger($)||M<1||M>12||$<1||$>31))return null}}const ve=new Date(k,M-1,$);return ve.getFullYear()!==k||ve.getMonth()!==M-1||ve.getDate()!==$?null:ve}ngAfterViewInit(){if(this.initializeTimePickers(),this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId),0===this.subscriptions.length){const l=this.router.events.subscribe(k=>{k instanceof en.wF&&this.closeTimepickers()});this.subscriptions.push(l)}}ngAfterViewChecked(){this.initializeTimePickers()}ngOnDestroy(){this.closeTimepickers(),this.elementId&&this.tracker.unregisterElement(this.elementId),this.subscriptions.forEach(l=>{l&&"function"==typeof l.unsubscribe&&l.unsubscribe()})}initializeTimePickers(){this.fullTime3&&!this.timePickersOpened.fullTime3&&this.trackTimePicker(this.fullTime3,"fullTime3"),this.fullTime4&&!this.timePickersOpened.fullTime4&&this.trackTimePicker(this.fullTime4,"fullTime4")}trackTimePicker(l,k){if(l){const M=l.opened.subscribe(()=>{this.timePickersOpened[k]=!0});this.subscriptions.push(M)}}closeTimepickers(){this.fullTime3&&this.timePickersOpened.fullTime3&&"function"==typeof this.fullTime3.close&&(this.fullTime3.close(),this.timePickersOpened.fullTime3=!1),this.fullTime4&&this.timePickersOpened.fullTime4&&"function"==typeof this.fullTime4.close&&(this.fullTime4.close(),this.timePickersOpened.fullTime4=!1)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(h.vh),e.rXU(en.Ix),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-date-time-fields"]],viewQuery:function(k,M){if(1&k&&(e.GBs(at,5),e.GBs(rt,5),e.GBs(ht,5),e.GBs(St,5),e.GBs(Mt,5)),2&k){let $;e.mGM($=e.lsd())&&(M.datepicker=$.first),e.mGM($=e.lsd())&&(M.dateRangePicker=$.first),e.mGM($=e.lsd())&&(M.dateAndTimePicker=$.first),e.mGM($=e.lsd())&&(M.fullTime3=$.first),e.mGM($=e.lsd())&&(M.fullTime4=$.first)}},inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},features:[e.Jv_([h.vh])],decls:7,vars:11,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"input-container"],["bsDatepicker","","placeholder","Select date",1,"form-control","height",3,"minDate","maxDate","bsConfig","ngModel","ngModelChange","blur"],["datepickerYMD","bsDatepicker"],[1,"fa-solid","fa-calendar-days","calendar-icon","text-primary","fs-5",3,"click"],["class","error-message",4,"ngIf"],["class","text-danger mt-2",4,"ngIf"],[1,"error-message"],[1,"text-danger","mt-2"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"],["aria-label","Select time","placeholder","Select time","readonly","",1,"form-control","height","appearanceInput","mt-3",3,"format","ngxTimepicker","ngModel","max","min","ngModelChange"],["id","startDateIcon",1,"fa-solid","fa-clock","text-primary","fs-6","clock-icon",2,"cursor","pointer",3,"click"],["fullTime3",""],["type","text","placeholder","Select date","bsDatepicker","",1,"form-control","height",3,"minDate","maxDate","bsConfig","ngModel","ngModelChange","blur"],["dateAndTimePicker","bsDatepicker"],["class","input-container",4,"ngIf"],["aria-label","Select time","placeholder","Select time","readonly","",1,"form-control","height","appearanceInput","mt-3",3,"format","ngxTimepicker","ngModel","max","min","ngModelChange","focus"],["fullTime4",""],["type","text","bsDaterangepicker","","placeholder","Select date",1,"form-control","height",3,"minDate","maxDate","bsConfig","ngModel","ngModelChange","blur"],["daterangepicker","bsDaterangepicker"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,ze,8,5,"div",1),e.DNE(2,K,7,12,"ng-container",2),e.DNE(3,ce,7,12,"ng-container",2),e.DNE(4,Ye,8,11,"ng-container",2),e.DNE(5,pt,8,13,"ng-container",2),e.DNE(6,jn,7,13,"ng-container",2),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,nn,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("ngIf","DATE_ONLY"===M.dateType),e.R7$(1),e.Y8G("ngIf","MONTH_YEAR"===M.dateType),e.R7$(1),e.Y8G("ngIf","TIME_ONLY"===M.dateType),e.R7$(1),e.Y8G("ngIf","DATE_AND_TIME"===M.dateType),e.R7$(1),e.Y8G("ngIf","DATE_RANGE"===M.dateType))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS,At.pc,At.p0,At.Kn,At.mO,me.zk,me.v2],styles:['.input-wrapper{display:flex;align-items:flex-start}.svg-wrapper{margin-inline-start:auto;z-index:999}.hintIcon{position:relative;cursor:pointer}.hintIcon:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height{height:42px}.invalid{border-color:red}.hintSvg{width:30px;height:30px;fill:none}.validationSvg{width:24px;height:24px;fill:none}::ng-deep html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important}::ng-deep .timepicker-overlay{z-index:1000!important}::ng-deep .timepicker-backdrop-overlay{z-index:1000!important}.space{width:5px}.error-message{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.input-container{position:relative}.input-container .form-control{padding-right:30px}.input-container .calendar-icon,.clock-icon{position:absolute;top:50%;right:10px;transform:translateY(-50%);cursor:pointer}.appearanceInput{background-color:#fff}::ng-deep ngx-material-timepicker-content{--body-background-color: #fff;--button-color: #08bff6 !important;--dial-active-color: #fff;--dial-inactive-color: rgba(255, 255, 255, .5);--dial-background-color: #08bff6 !important;--dial-editable-active-color: #08bff6!important;--dial-editable-background-color: #fff;--clock-face-time-active-color: #fff;--clock-face-time-inactive-color: #6c6c6c;--clock-face-inner-time-inactive-color: #929292;--clock-face-time-disabled-color: #c5c5c5;--clock-face-background-color: #f0f0f0;--clock-hand-color: #08bff6 !important;position:relative;z-index:99999999}::ng-deep ngx-material-timepicker-container{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000052;z-index:99998}.theme-custom .bs-datepicker-head,.timepicker__header{background-color:#08bff6!important}.invalid-question{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.bs-datepicker-body table td span.selected,.bs-datepicker-body table td.selected span{color:#fff!important;background-color:#08bff6!important;border-radius:50%}\n'],encapsulation:2})}}return _})();var oi=N(4958);function Ci(_,ie){if(1&_&&e.nrm(0,"div",10),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function xt(_,ie){1&_&&e.nrm(0,"span",11)}function ke(_,ie){1&_&&(e.j41(0,"span",12),e.EFF(1,"*"),e.k0s())}function re(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",14),e.nrm(2,"path",15)(3,"path",16)(4,"path",17),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function xe(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,Ci,1,1,"div",6),e.DNE(2,xt,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,ke,2,0,"span",8),e.DNE(7,re,5,1,"div",9),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Ve(_,ie){if(1&_&&(e.j41(0,"div",18),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function ut(_,ie){if(1&_&&(e.j41(0,"div",19),e.qSk(),e.j41(1,"svg",20),e.nrm(2,"path",21)(3,"path",22)(4,"path",23)(5,"circle",24),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Ft=function(_){return{"mb-4":_}};let sn=(()=>{class _{constructor(l,k,M,$){this.formService=l,this.cdr=k,this.validationService=M,this.tracker=$,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.selectionType="",this.minimumSelection=0,this.maximumSelection=0,this.optionType="",this.lookupTable="",this.customOptions=[],this.database={},this.api={},this.selectedValue=[],this.validationMessage="",this.elementId=""}ngOnInit(){this.valueAssigned()}onValueChange(l){this.selectedValue=l,this.selectItems()}valueAssigned(){switch(this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.selectionType=this.question.formElement.appearance.selectionType,this.minimumSelection=this.question.formElement.validation.minimumSelection,this.maximumSelection=this.question.formElement.validation.maximumSelection,this.optionType=this.question.formElement.option.optionType,this.optionType){case"OPTION":this.customOptions=this.question.formElement.option.customOptions.map(l=>({label:l.value,value:l.value,image:""})),this.question.answer&&this.initializeCustomOption();break;case"LOOKUP":this.lookupTable=this.question.formElement.option.lookupTable,this.fetchDataFromLookup();break;case"DATABASE":this.database=this.question.formElement.option.database,this.fetchDataFromDatabase();break;case"API":this.api=this.question.formElement.option.api,this.fetchDataFromAPI();break;default:console.warn("Unknown option type:",this.optionType)}}initializeCustomOption(){this.customOptions.forEach(l=>{this.question?.answer?.some(M=>{const $=M.trim().split("|");return 2===$.length&&$[1]===l.value})&&this.selectedValue.push(l),this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question)}),this.cdr.detectChanges()}transformDatabaseObject(l){return{tableName:l.tableName,valueField:l.valueField,labelField:l.labelField,labelPattern:l.labelPattern,criteria:l.criteria.map(k=>({field:k.field,valueSource:k?.valueSource,condition:k.condition,value:k.inputValue,logicalOperator:k.logicalOperator}))}}fetchDataFromDatabase(){const l=this.transformDatabaseObject(this.database);this.formService.fetchDataFromDatabase(l).subscribe(k=>{k.success?(this.customOptions=k.result.map(M=>({value:M.value,label:M.label})),this.question.answer&&this.initializeCustomOption()):console.error("Error fetching data from database:",k.message),this.cdr.detectChanges()},k=>{console.error("HTTP Error:",k),this.cdr.detectChanges()})}fetchDataFromLookup(){this.formService.fetchDataFromLookup(this.lookupTable).subscribe(l=>{this.customOptions=l.result.values.map(k=>({value:k.value,label:k.label})),this.question.answer&&this.initializeCustomOption()},l=>{console.error("HTTP Error:",l)})}fetchDataFromAPI(){const l=this.api;this.formService.fetchDataFromExternalAPI(l).subscribe(k=>{let M;M=l.pathToValue?this.extractDataByPath(k,l.pathToValue):k,this.customOptions=M.map($=>({value:$[l.valueField.trim()],label:$[l.labelField.trim()]})),this.question.answer&&this.initializeCustomOption()},k=>{console.error("HTTP Error:",k)})}extractDataByPath(l,k){return k.split(".").reduce((M,$)=>M&&M[$],l)}selectItems(){const l=this.selectedValue.map(k=>`${k.label}|${k.value}`);this.question.answer=l,this.validationFailed=!1,this.validationMessage="",0==this.selectedValue.length&&this.required?(this.validationFailed=!0,this.validationService.clearInvalid(this.question.id),this.validationMessage="This is a required question",this.question.validation=!1):this.selectedValue.length<this.minimumSelection||this.selectedValue.length>this.maximumSelection?(this.validationService.clearInvalid(this.question.id),this.validationFailed=!0,this.validationMessage=`selected options must be between ${this.minimumSelection} & ${this.maximumSelection}`,this.question.validation=!1):(this.validationService.clearInvalid(this.question.id),this.question.validation=!0),this.question.childLogics&&this.updateChildLogics(this.question),this.answerChange.emit(this.question.answer)}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{if("SINGLE"==this.selectionType)if(0==this.selectedValue.length)k.show=!1,this.clearAnswersRecursively(k);else{const M=this.selectedValue[0]?.label;this.evaluateCondition(M,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))}else if("MULTIPLE"===this.selectionType)if(0==this.selectedValue.length)k.show=!1,this.clearAnswersRecursively(k);else{const M=this.selectedValue.map($=>$.label);this.evaluateMultipleCondition(M,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))}})}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const $=M.element;"QUESTION"===M.entityType&&$&&("answer"in $&&($.answer=""),$.childLogics&&$.childLogics.length>0&&$.childLogics.forEach(ve=>{this.clearAnswersRecursively(ve)})),"SUBFORM"===M.entityType&&$&&$.rows&&this.clearAnswersRecursively({rows:$.rows})})})}evaluateCondition(l,k,M){const $=Array.isArray(M)?M.map(ve=>ve.toString().toLowerCase()):M.toLowerCase();switch(l=Array.isArray(l)?l?.map(ve=>ve.toLowerCase()):l.toLowerCase(),k){case"!=":return l!=M;case"=":return l==M;case"IN":return $.includes(l);case"NOT IN":return!$.includes(l);default:return!1}}evaluateMultipleCondition(l,k,M){const $=Array.isArray(M)?M.map(ve=>ve.toString()):M.toString();switch(l=Array.isArray(l)?l?.map(ve=>ve.toLowerCase()):l.toLowerCase(),k){case"!=":return l.every(ve=>ve!=$);case"=":return l.some(ve=>ve==$);case"IN":return l.some(ve=>$.includes(ve));case"NOT IN":return l.every(ve=>!$.includes(ve));default:return!1}}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(De.u),e.rXU(e.gRc),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-drop-down-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:5,vars:12,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[3,"placeholder","items","multiple","selectedItems","click","selectedItemsChange"],["class","error-message",4,"ngIf"],["class","text-danger mb-2",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],[1,"text-danger","mb-2"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,xe,8,5,"div",1),e.j41(2,"lib-dropdown",2),e.bIt("click",function(){return M.selectItems()})("selectedItemsChange",function(ve){return M.selectedValue=ve}),e.k0s(),e.DNE(3,Ve,2,1,"div",3),e.DNE(4,ut,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(10,Ft,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("placeholder","select")("items",M.customOptions)("multiple","SINGLE"!==M.selectionType)("selectedItems",M.selectedValue),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||0===M.selectedValue.length)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,oi.Ps],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();var Ln=N(1339),Qt=N(8737);function qt(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function st(_,ie){1&_&&e.nrm(0,"span",10)}function Dt(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function wt(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Rn(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,qt,1,1,"div",6),e.DNE(2,st,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Dt,2,0,"span",4),e.DNE(7,wt,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function yn(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Hn(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const ti=function(_){return{"mb-4":_}};let ai=(()=>{class _{constructor(l,k,M){this.validationService=l,this.tracker=k,this.dataService=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.inlineDeleteFiles=new e.bkB,this.count=0,this.required=!1,this.hint="",this.multiFileUploads=!0,this.fileTypes=[],this.fileSize=0,this.fileSizeUnit="",this.totalFileSize=0,this.initialFileSize=0,this.initialTotalSize=0,this.dragAndDrop=!1,this.previewUploadedFiles=!0,this.validationFailed=!1,this.validationMessage="",this.attachments=[],this.avatarPicker=!1,this.elementId="",this.apiUrl="",this.selectedFiles=[],this.dataService.apiUrl$.subscribe($=>{this.apiUrl=$+"/api/cdn/preview?url="})}handleFileTypeNotAllowed(l){this.validationFailed=!0,this.validationMessage="File type not allowed",this.clearValidationMessageAfterTimeout()}handleFileSize(l){this.validationFailed=!0,this.validationMessage="File size exceeds the limit"===l?`${l} ${this.initialFileSize} ${this.fileSizeUnit}`:"Total size exceeds the limit"===l?`${l} ${this.initialTotalSize} ${this.fileSizeUnit}`:l,this.clearValidationMessageAfterTimeout()}clearValidationMessageAfterTimeout(){setTimeout(()=>{this.validationMessage="",this.validationFailed=!1},5e3)}handleFinalArray(l){const k=l.map($=>({name:$._file.name,size:$._file.size,type:$._file.type}));JSON.stringify(k),this.question.answer=l,this.answerChange.emit(this.question.answer)}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.multiFileUploads=this.question.formElement.appearance.multiFileUploads,this.dragAndDrop=this.question.formElement.appearance.dragAndDrop,this.previewUploadedFiles=this.question.formElement.appearance.previewUploadedFiles,this.fileTypes=this.question.formElement.validation.fileTypes,this.fileSizeUnit=this.question.formElement.validation.fileSizeUnit,this.avatarPicker=this.question.formElement.appearance.avatarPicker,this.initialFileSize=this.question.formElement.validation?.fileSize,this.fileSize=this.convertToBytes(this.initialFileSize,this.fileSizeUnit),this.initialTotalSize=this.question.formElement.validation?.totalFileSize,this.totalFileSize=this.convertToBytes(this.initialTotalSize,this.fileSizeUnit),this.question.answer&&(this.files=this.question.answer),this.attachments=this.question?.attachments,this.convertUrl()}convertUrl(){this.attachments&&(this.attachments=this.attachments.map(l=>({...l,fileUrl:this.apiUrl+l.fileUrl.replace(/\//g,"%2F")})))}convertToBytes(l,k){return l*({B:1,KB:1024,MB:1048576,GB:1073741824}[k.toUpperCase()]||1)}onFileChange(l){this.selectedFile=l.target.files[0],this.selectedFiles.push(this.selectedFile),this.question.answer=this.selectedFiles,this.answerChange.emit(this.question.answer)}deleteFiles(l){this.question.deleteFiles=l,this.question.attachments=this.question.attachments.filter(k=>!l.includes(k.fileId)),this.inlineDeleteFiles.emit(this.question.deleteFiles)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U),e.rXU(Ln.u))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-file-picker-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange",inlineDeleteFiles:"inlineDeleteFiles"},decls:5,vars:14,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[3,"totalSize","fileAllowed","multiple","fileSize","avatarPicker","attachments","fileTypeNotAllowed","fileSizeAllowed","finalArray","deleteFiles"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Rn,8,5,"div",1),e.j41(2,"lib-docUpload",2),e.bIt("fileTypeNotAllowed",function(ve){return M.handleFileTypeNotAllowed(ve)})("fileSizeAllowed",function(ve){return M.handleFileSize(ve)})("finalArray",function(ve){return M.handleFinalArray(ve)})("deleteFiles",function(ve){return M.deleteFiles(ve)}),e.k0s(),e.DNE(3,yn,2,1,"div",3),e.DNE(4,Hn,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(12,ti,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("totalSize",M.totalFileSize)("fileAllowed",M.fileTypes)("multiple",M.multiFileUploads)("fileSize",M.fileSize)("avatarPicker",M.avatarPicker)("attachments",M.attachments),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.question.answer||!M.attachments)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,Qt.pl],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.fileInput[_ngcontent-%COMP%]{position:relative;height:44px;width:111px;background:#d3d3d3;border-radius:6px;padding:0 16px;display:flex;align-items:center;justify-content:center;cursor:pointer}.fileInput[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{opacity:0;position:absolute;left:0;top:0;width:100%;height:inherit}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();var zi=N(969);const us=["mapSearchField"];function Bi(_,ie){if(1&_&&e.nrm(0,"div",13),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Ps(_,ie){1&_&&e.nrm(0,"span",14)}function ei(_,ie){1&_&&(e.j41(0,"span",15),e.EFF(1,"*"),e.k0s())}function qs(_,ie){if(1&_&&(e.j41(0,"div",16),e.qSk(),e.j41(1,"svg",17),e.nrm(2,"path",18)(3,"path",19)(4,"path",20),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Mn(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,Bi,1,1,"div",9),e.DNE(2,Ps,1,0,"span",10),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,ei,2,0,"span",11),e.DNE(7,qs,5,1,"div",12),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const io=function(_){return{"mb-4":_}};let an=(()=>{class _{constructor(){this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.defaultZoomLevel=0,this.setCurrentPosition=!1,this.allowFullScreen=!1,this.latitude=0,this.longitude=0,this.regionBoundary=!1,this.region="",this.mapConfigurations={}}ngOnInit(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.defaultZoomLevel=this.question.formElement.appearance.defaultZoomLevel,this.setCurrentPosition=this.question.formElement.appearance.setCurrentPosition,this.allowFullScreen=this.question.formElement.appearance.allowFullScreen,this.latitude=this.question.formElement.appearance.latitude,this.longitude=this.question.formElement.appearance.longitude,this.regionBoundary=this.question.formElement.validation.regionBoundary,this.region=this.question.formElement.validation.region,this.mapConfigurations={disableDefaultUI:!0,fullscreenControl:this.allowFullScreen,zoomControl:!0}}ngAfterViewInit(){const l=new google.maps.places.SearchBox(this.searchField.nativeElement);this.map.controls[google.maps.ControlPosition.TOP_CENTER].push(this.searchField.nativeElement),l.addListener("places_changed",()=>{const k=l.getPlaces();if(0===k?.length)return;const M=new google.maps.LatLngBounds;k?.forEach($=>{!$.geometry||!$.geometry.location||($.geometry.viewport?M.union($.geometry.viewport):M.extend($.geometry.location))}),this.map.fitBounds(M)})}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-location-fields"]],viewQuery:function(k,M){if(1&k&&(e.GBs(us,5),e.GBs(zi.u6,5)),2&k){let $;e.mGM($=e.lsd())&&(M.searchField=$.first),e.mGM($=e.lsd())&&(M.map=$.first)}},inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:8,vars:6,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],[1,"input-group"],["type","text","placeholder","Enter location",1,"form-control","location-input"],["locationInput",""],["type","text",1,"my-map-search-field"],["mapSearchField",""],["width","100%",3,"options"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Mn,8,5,"div",1),e.j41(2,"div",2),e.nrm(3,"input",3,4),e.k0s(),e.nrm(5,"input",5,6)(7,"google-map",7),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(4,io,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(6),e.Y8G("options",M.mapConfigurations))},dependencies:[h.YU,h.bT,zi.u6],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.location-input[_ngcontent-%COMP%]{position:relative}.input-group-append[_ngcontent-%COMP%]{cursor:pointer;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function kt(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function ye(_,ie){1&_&&e.nrm(0,"span",10)}function Pe(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Fe(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Xe(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,kt,1,1,"div",6),e.DNE(2,ye,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Pe,2,0,"span",4),e.DNE(7,Fe,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function zt(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function on(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const gt=function(_){return{"mb-4":_}};let Ke=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.placeholder="",this.expectedDomains=[],this.regularExpression="",this.email="",this.validationFailed=!1,this.validationMessage="",this.defaultValue="",this.disableEdit=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.placeholder=this.question.formElement?.appearance?.placeholder||"",this.expectedDomains=this.question?.formElement?.validation?.expectedDomains?.split(",").map(l=>l.trim()),this.regularExpression=this.question.formElement.validation.regularExpression,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.email=this.defaultValue,this.question.answer?this.email=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue)}validateEmail(){this.validationFailed=!1,this.validationMessage="";const l=this.email?.trim().toLowerCase();if(this.required&&!this.email)this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1;else if(this.expectedDomains){const k=this.expectedDomains?.some(M=>l?.endsWith(M));this.validationFailed=!k,this.validationMessage="Please enter valid email address",this.question.validation=!this.validationFailed}else this.question.validation=!0}validateInput(l){this.validationService.clearInvalid(this.question.id),this.question.answer=l.target.value,this.answerChange.emit(this.question.answer),this.validateEmail()}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-mail-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:5,vars:15,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["type","email",1,"form-control","mb-2","height",3,"placeholder","ngModel","disabled","ngModelChange","blur","input"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Xe,8,5,"div",1),e.j41(2,"input",2),e.bIt("ngModelChange",function(ve){return M.email=ve})("blur",function(){return M.validateEmail()})("input",function(ve){return M.validateInput(ve)}),e.k0s(),e.DNE(3,zt,2,1,"div",3),e.DNE(4,on,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(13,gt,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.email)),e.Y8G("placeholder",M.placeholder)("ngModel",M.email)("disabled",M.disableEdit),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.email)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();var Ee=N(1626);let Qe=(()=>{class _{constructor(l,k){this.http=l,this.dataService=k,this.apiUrl="",this.header={},this.dataService.apiUrl$.subscribe(M=>{this.apiUrl=M})}loadCountryDetails(l,k,M,$){return this.http.get(`${this.apiUrl}/api/public/json/country?page=${k}&size=${M}&searchKey=${$}`)}processCountryDetails(l,k,M,$){const ve=[];return l.forEach(Et=>{const Dn=k&&Et.flag?Et.flag:"",kn=$&&Et.name||"",pi=Et.isd?.root||"",ys=Et.isd?.suffixes||[];if(pi&&ys.length>0)ys.forEach(Or=>{const Co=`${pi}${Or}`;if(!k||M||$){let Nc="";$&&(Nc+=kn),M&&(Nc+=(Nc?" ":"")+Co),Nc||(Nc=Co),ve.push({value:Co,label:Nc.trim(),image:Dn})}else ve.push({value:Co,label:"",image:Dn})});else{const Or=pi||Et.code||"";if(!k||M||$){let Co="";$&&(Co+=kn),M&&(Co+=(Co?" ":"")+Or),Co||(Co=Or),ve.push({value:Or,label:Co.trim(),image:Dn})}else ve.push({value:Or,label:"",image:Dn})}}),ve}static{this.\u0275fac=function(k){return new(k||_)(e.KVO(Ee.Qq),e.KVO(Ln.u))}}static{this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();function Bt(_,ie){if(1&_&&e.nrm(0,"div",11),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function hn(_,ie){1&_&&e.nrm(0,"span",12)}function nt(_,ie){1&_&&(e.j41(0,"span",13),e.EFF(1,"*"),e.k0s())}function He(_,ie){if(1&_&&(e.j41(0,"div",14),e.qSk(),e.j41(1,"svg",15),e.nrm(2,"path",16)(3,"path",17)(4,"path",18),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Ze(_,ie){if(1&_&&(e.j41(0,"div",7),e.DNE(1,Bt,1,1,"div",8),e.DNE(2,hn,1,0,"span",9),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,nt,2,0,"span",6),e.DNE(7,He,5,1,"div",10),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const $t=function(_){return{disable:_}};function fn(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"div",19)(2,"lib-dropdown",20),e.bIt("selectedItemsChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.selectedCountry=M)})("selectedItemsChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.onCountryChange())})("onDropdownScroll",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.getNextSetOfItems(M))})("onSearch",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.search(M))}),e.k0s()(),e.j41(3,"input",21),e.bIt("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateMobile())})("ngModelChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.mobileNumber=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.onMobileNumberChange())})("input",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.onInput(M))}),e.k0s(),e.bVm()}if(2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngClass",e.eq3(7,$t,l.disableEdit)),e.R7$(1),e.Y8G("items",l.countryDetails)("multiple",!1)("selectedItems",l.selectedCountry),e.R7$(1),e.Y8G("placeholder",l.placeholder)("ngModel",l.mobileNumber)("disabled",l.disableEdit)}}function mn(_,ie){if(1&_){const l=e.RV6();e.j41(0,"input",22),e.bIt("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateMobile())})("ngModelChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.mobileNumber=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.onMobileNumberChange())})("input",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.onInput(M))}),e.k0s()}if(2&_){const l=e.XpG();e.AVh("invalid",l.validationFailed)("invalid-question",l.isInvalid),e.Y8G("placeholder",l.placeholder)("ngModel",l.mobileNumber)}}function gn(_,ie){if(1&_&&(e.j41(0,"div",23),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function ri(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",24),e.nrm(2,"path",25)(3,"path",26)(4,"path",27)(5,"circle",28),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Sn=function(_){return{"mb-4":_}};let Ei=(()=>{class _{constructor(l,k,M){this.countryService=l,this.validationService=k,this.tracker=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.placeholder="",this.displayCountryCode=!0,this.displayFlag=!0,this.displayCode=!0,this.showCountryName=!0,this.beautifyNumbers=!0,this.countryWiseValidation=!0,this.countryDetails=[],this.selectedCountry=[],this.validationFailed=!1,this.validationMessage="",this.mobileNumber="",this.questionId="",this.currentPage=0,this.size=30,this.totalPages=0,this.searchKey="",this.lastPage=!1,this.isFirstPage=!1,this.defaultValue="",this.disableEdit=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.placeholder=this.question.formElement.appearance.placeholder,this.displayCountryCode=this.question.formElement.appearance.displayCountryCode,this.displayFlag=this.question.formElement.appearance.displayFlag,this.displayCode=this.question.formElement.appearance.displayCode,this.showCountryName=this.question.formElement.appearance.showCountryName,this.beautifyNumbers=this.question.formElement.appearance.beautifyNumbers,this.countryWiseValidation=this.question.formElement.validation.countryWiseValidation,this.questionId=this.question.id,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.loadCountry(this.questionId,this.currentPage,this.size,this.searchKey)}initializeAnswer(l){let k,M;[k,M]="answer"===l&&this.question?.answer?this.question.answer.split(" "):this.question.defaultValue.split(" "),this.mobileNumber=M||"",this.selectedCountry||(this.selectedCountry=[]);const $=this.countryDetails.find(ve=>ve.value===k);$&&this.selectedCountry.push($)}onCountryChange(){this.validationFailed=!1,this.validationMessage="",this.updateAnswer()}onInput(l){this.validationService.clearInvalid(this.question.id);const k=l.target;/^(\d+)(-\d+)*$/.test(k.value)||(k.value=k.value.replace(/[^\d-]/g,""),k.value=k.value.split("-").filter(($,ve,Et)=>$||0===ve||ve===Et.length-1).join("-")),this.mobileNumber=k.value,this.updateAnswer()}onMobileNumberChange(){}updateAnswer(){this.displayCountryCode?this.selectedCountry.length>0&&this.mobileNumber&&(this.question.answer=`${this.selectedCountry[0].value} ${this.mobileNumber}`):this.question.answer=this.mobileNumber,this.answerChange.emit(this.question.answer)}validateMobile(){this.validationFailed=!1,this.validationMessage="",this.required&&(!this.mobileNumber||this.displayCountryCode&&0===this.selectedCountry.length)?(this.validationFailed=!0,this.validationService.clearInvalid(this.question.id),this.validationMessage="This is a required question"):this.updateAnswer()}loadCountry(l,k,M,$){this.countryService.loadCountryDetails(this.questionId,k,M,$).subscribe(ve=>{0===this.totalPages&&(this.totalPages=ve.result.totalPages),this.lastPage=ve.result.last,this.isFirstPage=ve.result.first;let Et=this.countryService.processCountryDetails(ve.result.content,this.displayFlag,this.displayCode,this.showCountryName);this.countryDetails=this.currentPage>0?[...this.countryDetails,...Et.filter(Dn=>!this.countryDetails.some(kn=>kn.value===Dn.value))]:[...Et.filter(Dn=>!this.countryDetails.some(kn=>kn.value===Dn.value)),...this.countryDetails],this.defaultValue&&this.initializeAnswer("default"),this.question.answer&&this.initializeAnswer("answer")})}getNextSetOfItems(l){const k=l.target;this.lastPage||Math.floor(k.scrollHeight-k.scrollTop)<=k.clientHeight&&this.loadMoreData(),!this.isFirstPage&&k.scrollTop<=150&&this.loadPreviousData()}loadMoreData(){setTimeout(()=>{this.currentPage++,this.currentPage>=0&&this.loadCountry(this.questionId,this.currentPage,this.size,"")},0)}loadPreviousData(){setTimeout(()=>{this.currentPage--,this.currentPage>=0&&this.loadCountry(this.questionId,this.currentPage,this.size,"")},0)}search(l){""==l?this.loadCountry(this.questionId,this.currentPage,this.size,""):(this.countryDetails=[],this.loadCountry(this.questionId,this.currentPage,this.size,l))}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(Qe),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-mobile-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:8,vars:10,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[1,"input-group","mb-2"],[4,"ngIf","ngIfElse"],["fullWidthInput",""],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"col-xs-5","col-5","col-md-3","px-0","pe-2","ps-2",3,"ngClass"],[3,"items","multiple","selectedItems","selectedItemsChange","onDropdownScroll","onSearch"],["type","text","aria-label","Mobile Number",1,"form-control","col-xs-7","col-7","col-md-9","height","mobileField",3,"placeholder","ngModel","disabled","blur","ngModelChange","input"],["type","text","aria-label","Mobile Number",1,"form-control","col-12","height","mobileField",3,"placeholder","ngModel","blur","ngModelChange","input"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){if(1&k&&(e.j41(0,"div",0),e.DNE(1,Ze,8,5,"div",1),e.j41(2,"div",2),e.DNE(3,fn,4,9,"ng-container",3),e.DNE(4,mn,1,6,"ng-template",null,4,e.C5r),e.k0s(),e.DNE(6,gn,2,1,"div",5),e.DNE(7,ri,7,1,"div",6),e.k0s()),2&k){const $=e.sdS(5);e.Y8G("ngClass",e.eq3(8,Sn,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(2),e.Y8G("ngIf",M.displayCountryCode)("ngIfElse",$),e.R7$(3),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.mobileNumber)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid)}},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS,oi.Ps],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}input[_ngcontent-%COMP%]::-webkit-outer-spin-button, input[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.mobileField[_ngcontent-%COMP%]{border-radius:6px!important} .dropdown .dropdown-field .input-field .dropdown_text{height:40px!important;width:80%!important}@media (max-width: 992px){ .dropdown .dropdown-field .input-field .dropdown_text{height:40px!important;width:50%!important}}@media screen and (max-width: 786px){ .dropdown .dropdown-field .input-field .dropdown_text{height:40px!important;width:50%!important}}@media screen and (max-width: 576px){ .dropdown .dropdown-field .input-field .dropdown_text{height:40px!important;width:39%!important}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.disable[_ngcontent-%COMP%]{pointer-events:none} .disable .dropdown .dropdown-field .input-field .dropdown_text{background:#e9ecef!important} .disable .dropdown .dropdown-field{background:#e9ecef!important}']})}}return _})();var Ns=N(6);function gs(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function ms(_,ie){1&_&&e.nrm(0,"span",10)}function Cs(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Es(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function xi(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,gs,1,1,"div",6),e.DNE(2,ms,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Cs,2,0,"span",4),e.DNE(7,Es,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Re(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Rt(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const oe=function(_){return{"mb-4":_}};let _e=(()=>{class _{constructor(l,k,M){this.validationService=l,this.tracker=k,this.aggregateService=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.placeholder="",this.validationFailed=!1,this.validationMessage="",this.disableEdit=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.upDown=this.question.formElement.appearance.upAndDownButton,this.allowNegativeValues=this.question.formElement.appearance.allowNegativeValues,this.placeholder=this.question.formElement?.appearance?.placeholder||"",this.min=this.question.formElement.validation.min,this.max=this.question.formElement.validation.max,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.enteredNumber=this.defaultValue,this.question.answer?this.enteredNumber=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue),this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question),this.aggregateService.setNumberField(this.rowId,this.question.id,this.question.answer)}preventNumberScroll(l){document.activeElement===l.target&&l.preventDefault()}validateNumber(){this.validationFailed=!1,this.validationService.clearInvalid(this.question.id),this.validationMessage="",this.required&&!this.enteredNumber?(this.validationFailed=!0,this.validationMessage="Please enter a valid number",this.question.validation=!1):!this.allowNegativeValues&&this.enteredNumber<0?(this.validationFailed=!0,this.validationMessage="Please enter a positive number",this.question.validation=!1):void 0!==this.min&&this.enteredNumber<this.min||void 0!==this.max&&this.enteredNumber>this.max?(this.validationFailed=!0,void 0!==this.min&&void 0!==this.max?this.validationMessage=`Please enter a valid number between ${this.min} and ${this.max}`:void 0!==this.min?this.validationMessage=`Please enter a number greater than or equal to ${this.min}`:void 0!==this.max&&(this.validationMessage=`Please enter a number less than or equal to ${this.max}`),this.question.validation=!1):this.question.validation=!0,this.question.childLogics&&this.updateChildLogics(this.question)}validateInput(l){this.validationService.clearInvalid(this.question.id),this.question.answer=l.target.value,this.aggregateService.setNumberField(this.rowId,this.question.id,l.target.value),this.question.childLogics&&this.updateChildLogics(this.question),this.answerChange.emit(this.question.answer)}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{this.evaluateCondition(l.answer,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))})}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const $=M.element;"QUESTION"===M.entityType&&$&&("answer"in $&&($.answer=""),$.childLogics&&$.childLogics.length>0&&$.childLogics.forEach(ve=>{this.clearAnswersRecursively(ve)})),"SUBFORM"===M.entityType&&$&&$.rows&&this.clearAnswersRecursively({rows:$.rows})})})}evaluateCondition(l,k,M){switch(k){case">":return l>Number(M);case"<":return l<Number(M);case">=":return l>=Number(M);case"<=":return l<=Number(M);case"=":return l==M;case"!=":return l!=M;default:return!1}}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U),e.rXU(Ns.q))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-number-fields"]],inputs:{question:"question",inLine:"inLine",rowId:"rowId"},outputs:{answerChange:"answerChange"},decls:5,vars:19,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["type","number",1,"form-control","mb-2","height",3,"placeholder","ngModel","disabled","blur","ngModelChange","input","wheel"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,xi,8,5,"div",1),e.j41(2,"input",2),e.bIt("blur",function(){return M.validateNumber()})("ngModelChange",function(ve){return M.enteredNumber=ve})("input",function(ve){return M.validateInput(ve)})("wheel",function(ve){return M.preventNumberScroll(ve)}),e.k0s(),e.DNE(3,Re,2,1,"div",3),e.DNE(4,Rt,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(17,oe,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("hide-spin-buttons",!M.upDown)("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredNumber)),e.Y8G("placeholder",M.placeholder)("ngModel",M.enteredNumber)("disabled",M.disableEdit),e.BMQ("min",M.min)("max",M.max),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredNumber)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.Q0,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.hide-spin-buttons[_ngcontent-%COMP%]::-webkit-outer-spin-button, .hide-spin-buttons[_ngcontent-%COMP%]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function $e(_,ie){if(1&_&&e.nrm(0,"div",15),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Pt(_,ie){1&_&&e.nrm(0,"span",16)}function tn(_,ie){1&_&&(e.j41(0,"span",17),e.EFF(1,"*"),e.k0s())}function An(_,ie){if(1&_&&(e.j41(0,"div",18),e.qSk(),e.j41(1,"svg",19),e.nrm(2,"path",20)(3,"path",21)(4,"path",22),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function zn(_,ie){if(1&_&&(e.j41(0,"div",10),e.DNE(1,$e,1,1,"div",11),e.DNE(2,Pt,1,0,"span",12),e.j41(3,"label",13),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,tn,2,0,"span",9),e.DNE(7,An,5,1,"div",14),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("for","passwordField"+l.questionId),e.R7$(1),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function hi(_,ie){if(1&_){const l=e.RV6();e.j41(0,"button",23),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.togglePasswordVisibility())}),e.nrm(1,"i",24),e.k0s()}if(2&_){const l=e.XpG();e.R7$(1),e.Y8G("id","passwordEyeIcon"+l.questionId)}}function Kn(_,ie){if(1&_&&(e.j41(0,"div",25)(1,"div",26),e.nrm(2,"div",27),e.k0s()()),2&_){const l=e.XpG();e.R7$(2),e.xc7("width",l.passwordStrength+"%"),e.AVh("bg-danger",l.passwordStrength<30)("bg-warning",l.passwordStrength>=30&&l.passwordStrength<70)("bg-success",l.passwordStrength>=70)}}function li(_,ie){if(1&_&&(e.j41(0,"div",28),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function es(_,ie){if(1&_&&(e.j41(0,"div",29),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32)(4,"path",33)(5,"circle",34),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}function Ls(_,ie){if(1&_){const l=e.RV6();e.j41(0,"button",38),e.bIt("click",function(){e.eBV(l);const M=e.XpG(2);return e.Njj(M.toggleCnfrmPasswordVisibility())}),e.nrm(1,"i",24),e.k0s()}if(2&_){const l=e.XpG(2);e.R7$(1),e.Y8G("id","CnfrmPasswordEyeIcon"+l.questionId)}}function dr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",35)(1,"label",36),e.EFF(2,"Confirm password"),e.k0s(),e.j41(3,"input",3),e.bIt("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.checkPasswordMatch())})("ngModelChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.enteredCnfrmPassword=M)})("input",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.validateCnfrm(M))}),e.k0s(),e.DNE(4,Ls,2,1,"button",37),e.k0s()}if(2&_){const l=e.XpG();e.R7$(3),e.AVh("invalid",l.validatedCnfrmPassword),e.Y8G("id","cnfrmPasswordField"+l.questionId)("ngModel",l.enteredCnfrmPassword),e.R7$(1),e.Y8G("ngIf",l.viewButton)}}function Fo(_,ie){if(1&_&&(e.j41(0,"div",17),e.qSk(),e.j41(1,"svg",30),e.nrm(2,"path",31)(3,"path",32)(4,"path",33)(5,"circle",34),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.cnfrmValidationMessage," ")}}const Ri=function(_){return{"mb-4":_}};let Xs=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.allowedSpecialCharacters=[],this.validationMessage="",this.cnfrmValidationMessage="",this.validationFailed=!1,this.validatedCnfrmPassword=!1,this.enteredPassword="",this.enteredCnfrmPassword="",this.passwordStrength=0,this.questionId="",this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.questionId=this.question.id,this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.confirmPassword=this.question.formElement.appearance.confirmPassword,this.displayStrength=this.question.formElement.appearance.displayStrong,this.viewButton=this.question.formElement.appearance.viewButton,this.maxLength=this.question.formElement.validation.maxLength,this.minLength=this.question.formElement.validation.minLength,this.requireLowercaseLetters=this.question.formElement.validation.requireLowercaseLetters,this.requireUppercaseLetters=this.question.formElement.validation.requireUppercaseLetters,this.requireNumbers=this.question.formElement.validation.requireNumbers,this.requireSpecialCharacters=this.question.formElement.validation.requireSpecialCharacters,this.requireSpecialCharacters&&(this.allowedSpecialCharacters=this.question.formElement.validation.allowedSpecialCharacters.split(",").map(l=>l.trim())),this.enteredPassword=this.question?.answer}togglePasswordVisibility(){let l=document.getElementById("passwordField"+this.questionId),k=document.getElementById("passwordEyeIcon"+this.questionId);"password"===l.type?(l.type="text",k.classList.remove("bi-eye-fill"),k.classList.add("bi-eye-slash-fill")):(l.type="password",k.classList.remove("bi-eye-slash-fill"),k.classList.add("bi-eye-fill"))}toggleCnfrmPasswordVisibility(){let l=document.getElementById("cnfrmPasswordField"+this.questionId),k=document.getElementById("CnfrmPasswordEyeIcon"+this.questionId);"password"===l.type?(l.type="text",k.classList.remove("bi-eye-fill"),k.classList.add("bi-eye-slash-fill")):(l.type="password",k.classList.remove("bi-eye-slash-fill"),k.classList.add("bi-eye-fill"))}checkPasswordMatch(){this.validationService.clearInvalid(this.question.id),this.validatedCnfrmPassword=!1,this.cnfrmValidationMessage="",this.required&&this.confirmPassword&&!this.enteredCnfrmPassword?(this.validatedCnfrmPassword=!0,this.cnfrmValidationMessage="Please enter a valid password",this.question.validation=!1):this.enteredPassword!=this.enteredCnfrmPassword&&this.confirmPassword?(this.validatedCnfrmPassword=!0,this.cnfrmValidationMessage="Passwords do not match",this.question.validation=!1):this.question.validation=!0,this.validatePassword()}validatePassword(){if(this.validationFailed=!1,this.validationService.clearInvalid(this.question.id),this.validationMessage="",this.required&&!this.enteredPassword)this.validationFailed=!0,this.validationMessage="Please enter a valid password",this.question.validation=!1;else if(this.requireLowercaseLetters||this.requireUppercaseLetters||this.requireNumbers||this.requireSpecialCharacters||this.minLength||this.maxLength){const l=/[a-z]/,k=/[A-Z]/,M=/\d/,$=new RegExp(`[${this.allowedSpecialCharacters.join("")}]`),ve=new RegExp(`[^a-zA-Z0-9${this.allowedSpecialCharacters.join("")}]`);let Et=l.test(this.enteredPassword),Dn=k.test(this.enteredPassword),kn=M.test(this.enteredPassword),pi=$.test(this.enteredPassword),ys=ve.test(this.enteredPassword);!Et&&this.requireLowercaseLetters?(this.validationFailed=!0,this.validationMessage="Password must contain at least one lowercase letter",this.question.validation=!1):!Dn&&this.requireUppercaseLetters?(this.validationFailed=!0,this.validationMessage="Password must contain at least one uppercase letter",this.question.validation=!1):!kn&&this.requireNumbers?(this.validationFailed=!0,this.validationMessage="Password must contain at least one number",this.question.validation=!1):this.enteredPassword.length<this.minLength?(this.validationFailed=!0,this.validationMessage=`Password must contain at least ${this.minLength} characters`,this.question.validation=!1):this.enteredPassword.length>this.maxLength?(this.validationFailed=!0,this.validationMessage=`Password must be less than ${this.maxLength} characters`,this.question.validation=!1):!pi&&this.allowedSpecialCharacters.length>0?(this.validationFailed=!0,this.validationMessage=`Password must contain at least one special character from ${this.allowedSpecialCharacters}`,this.question.validation=!1):ys&&this.allowedSpecialCharacters.length>0?(this.validationFailed=!0,this.validationMessage="Password contains an invalid special character",this.question.validation=!1):this.confirmPassword?this.checkPasswordMatch():this.question.validation=!0}else this.passwordStrength=this.calculateStrength(this.enteredPassword);this.passwordStrength=this.calculateStrength(this.enteredPassword)}validateInput(l){const k=l.target.value.replace(/\s+/g,"");this.enteredPassword=k,this.question.answer=k,this.validatePassword(),this.answerChange.emit(this.question.answer)}validateCnfrm(l){const k=l.target.value.replace(/\s+/g,"");this.enteredCnfrmPassword=k,this.checkPasswordMatch()}calculateStrength(l){return Math.min(100,l.length/12*100)+(/[a-z]/.test(l)?20:0)+(/[A-Z]/.test(l)?20:0)+(/\d/.test(l)?20:0)+(/[!@#$%^&*(),.?":{}|<>]/.test(l)?20:0)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-password-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:10,vars:18,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[1,"passwordWrapper"],["type","password",1,"form-control","mb-2","height",3,"id","ngModel","blur","ngModelChange","input"],["id","togglePasswordBtn","class","toggle-password-btn",3,"click",4,"ngIf"],["class","password-strength-meter",4,"ngIf"],["class","error-message",4,"ngIf"],["class","text-danger mb-2",4,"ngIf"],["class","cnfrmPasswordWrapper",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],[3,"for"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["id","togglePasswordBtn",1,"toggle-password-btn",3,"click"],[1,"bi","bi-eye-fill",3,"id"],[1,"password-strength-meter"],[1,"progress"],["role","progressbar",1,"progress-bar"],[1,"error-message"],[1,"text-danger","mb-2"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"],[1,"cnfrmPasswordWrapper"],["for","'cnfrmPasswordField'+questionId"],["id","toggleCnfrmPasswordBtn","class","toggle-password-btn",3,"click",4,"ngIf"],["id","toggleCnfrmPasswordBtn",1,"toggle-password-btn",3,"click"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,zn,8,6,"div",1),e.j41(2,"div",2)(3,"input",3),e.bIt("blur",function(){return M.validatePassword()})("ngModelChange",function(ve){return M.enteredPassword=ve})("input",function(ve){return M.validateInput(ve)}),e.k0s(),e.DNE(4,hi,2,1,"button",4),e.k0s(),e.DNE(5,Kn,3,8,"div",5),e.DNE(6,li,2,1,"div",6),e.DNE(7,es,7,1,"div",7),e.DNE(8,dr,5,5,"div",8),e.DNE(9,Fo,7,1,"div",9),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(16,Ri,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(2),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredPassword)),e.Y8G("id","passwordField"+M.questionId)("ngModel",M.enteredPassword),e.R7$(1),e.Y8G("ngIf",M.viewButton),e.R7$(1),e.Y8G("ngIf",M.displayStrength),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredPassword)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid),e.R7$(1),e.Y8G("ngIf",M.confirmPassword),e.R7$(1),e.Y8G("ngIf",M.validatedCnfrmPassword))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.form-control[_ngcontent-%COMP%], .password-input-wrapper[_ngcontent-%COMP%]{position:relative}.password-input[_ngcontent-%COMP%]{padding-right:40px}.toggle-password-btn[_ngcontent-%COMP%]{position:absolute;top:70%;right:15px;transform:translateY(-50%);border:none;background-color:transparent;cursor:pointer}.toggle-password-btn[_ngcontent-%COMP%]:focus{outline:none}.passwordWrapper[_ngcontent-%COMP%], .cnfrmPasswordWrapper[_ngcontent-%COMP%]{position:relative}.password-strength-meter[_ngcontent-%COMP%]{width:40%;margin-top:10px;margin-left:auto}.progress[_ngcontent-%COMP%]{height:10px}.progress-bar[_ngcontent-%COMP%]{transition:width .3s ease-in-out}.bi[_ngcontent-%COMP%]{font-size:20px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function as(_,ie){if(1&_&&e.nrm(0,"div",10),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function ur(_,ie){1&_&&e.nrm(0,"span",11)}function In(_,ie){1&_&&(e.j41(0,"span",12),e.EFF(1,"*"),e.k0s())}function Ao(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",14),e.nrm(2,"path",15)(3,"path",16)(4,"path",17),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Bs(_,ie){if(1&_&&(e.j41(0,"div",6),e.DNE(1,as,1,1,"div",7),e.DNE(2,ur,1,0,"span",8),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,In,2,0,"span",5),e.DNE(7,Ao,5,1,"div",9),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Ws(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",18)(1,"input",19),e.bIt("blur",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateInput())})("ngModelChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.selectedOption=M)})("ngModelChange",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.validateInput())}),e.k0s(),e.j41(2,"label",20),e.EFF(3),e.k0s()()}if(2&_){const l=ie.$implicit,k=e.XpG();e.R7$(1),e.xc7("accent-color",k.color),e.Y8G("name",k.question.id+"-"+k.rowId)("id",l.value)("value",l.label+"|"+l.value)("ngModel",k.selectedOption),e.BMQ("data-state",l.label+"|"+l.value)("data-value",k.selectedOption==l.label+"|"+l.value),e.R7$(1),e.Y8G("for",l.value),e.R7$(1),e.JRh(l.label)}}function Tr(_,ie){if(1&_&&(e.j41(0,"div",21),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function hr(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",22),e.nrm(2,"path",23)(3,"path",24)(4,"path",25)(5,"circle",26),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Po=function(_){return{"mb-4":_}};let er=(()=>{class _{constructor(l,k,M){this.formService=l,this.validationService=k,this.tracker=M,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.rowId=0,this.count=0,this.required=!1,this.hint="",this.color="",this.minimumSelection=0,this.maximumSelection=0,this.optionType="",this.lookupTable="",this.customOptions=[],this.database={},this.api={},this.apiOptions=[],this.validationMessage="",this.displayOptionsInColumn=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){switch(this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.color=this.question.formElement.appearance.color,this.displayOptionsInColumn=this.question.formElement.appearance.displayOptionsInColumn,this.optionType=this.question.formElement.option.optionType,this.optionType){case"OPTION":this.customOptions=this.question.formElement.option.customOptions.map(l=>({value:l.value,label:l.value})),this.initializeOption();break;case"LOOKUP":this.lookupTable=this.question.formElement.option.lookupTable,this.fetchDataFromLookup();break;case"DATABASE":this.database=this.question.formElement.option.database,this.fetchDataFromDatabase();break;case"API":this.api=this.question.formElement.option.api,this.fetchDataFromAPI();break;default:console.warn("Unknown option type:",this.optionType)}this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question)}initializeOption(){if(this.question.answer){let k;switch(typeof this.customOptions[0]?.value){case"number":k=Number(this.question.answer);break;case"boolean":k="true"===this.question.answer;break;case"string":k=String(this.question.answer);break;default:k=this.question.answer}this.selectedOption=k}}fetchDataFromLookup(){this.formService.fetchDataFromLookup(this.lookupTable).subscribe(l=>{this.customOptions=l.result.values.map(k=>({value:k.value,label:k.label})),this.initializeOption()},l=>{console.error("HTTP Error:",l)})}fetchDataFromDatabase(){const l=this.transformDatabaseObject(this.database);this.formService.fetchDataFromDatabase(l).subscribe(k=>{k.success?(this.customOptions=k.result.map(M=>({value:M.value,label:M.label})),this.initializeOption()):console.error("Error fetching data from database:",k.message)},k=>{console.error("HTTP Error:",k)})}transformDatabaseObject(l){return{tableName:l.tableName,valueField:l.valueField,labelField:l.labelField,labelPattern:l.labelPattern,criteria:l.criteria.map(k=>({field:k.field,valueSource:k?.valueSource,condition:k.condition,value:k.inputValue,logicalOperator:k.logicalOperator}))}}fetchDataFromAPI(){const l=this.api;this.formService.fetchDataFromExternalAPI(l).subscribe(k=>{let M;M=l.pathToValue?this.extractDataByPath(k,l.pathToValue):k,this.customOptions=M.map($=>({value:$[l.valueField],label:$[l.labelField]})),this.initializeOption()},k=>{console.error("HTTP Error:",k)})}extractDataByPath(l,k){return k.split(".").reduce((M,$)=>M&&M[$],l)}validateInput(){this.question.answer=this.selectedOption,this.validationFailed=!1,this.validationService.clearInvalid(this.question.id),this.validationMessage="",this.required&&!this.selectedOption?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0,this.question.childLogics&&this.updateChildLogics(this.question),this.answerChange.emit(this.question.answer)}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{this.evaluateCondition(this.selectedOption,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))})}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const $=M.element;"QUESTION"===M.entityType&&$&&("answer"in $&&($.answer=""),$.childLogics&&$.childLogics.length>0&&$.childLogics.forEach(ve=>{this.clearAnswersRecursively(ve)})),"SUBFORM"===M.entityType&&$&&$.rows&&this.clearAnswersRecursively({rows:$.rows})})})}evaluateCondition(l,k,M){let $=l;"string"==typeof l&&l.includes("|")&&($=l.split("|")[0]);const ve=Array.isArray(M)?M.map(Et=>Et.toString()):M;switch(k){case"!=":return $!=ve;case"=":return $==ve;case"IN":return ve.includes($);case"NOT IN":return!ve.includes($);default:return!1}}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(De.u),e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-radio-button-fields"]],inputs:{question:"question",inLine:"inLine",rowId:"rowId"},outputs:{answerChange:"answerChange"},decls:6,vars:11,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-3",4,"ngIf"],[1,"checkboxField-container"],["class","checkboxField",4,"ngFor","ngForOf"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-3"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"checkboxField"],["type","radio",1,"formCheckbox","mb-2",3,"name","id","value","ngModel","blur","ngModelChange"],[1,"formCheckLabel","ms-2","me-2","mb-2",3,"for"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Bs,8,5,"div",1),e.j41(2,"div",2),e.DNE(3,Ws,4,10,"div",3),e.k0s(),e.DNE(4,Tr,2,1,"div",4),e.DNE(5,hr,7,1,"div",5),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,Po,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("two-column",M.displayOptionsInColumn),e.R7$(1),e.Y8G("ngForOf",M.customOptions),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.selectedOption)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.Sq,h.bT,vt.me,vt.Fm,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.formCheckbox[_ngcontent-%COMP%], .formCheckLabel[_ngcontent-%COMP%]{cursor:pointer}.formCheckbox[_ngcontent-%COMP%]{width:15px;height:15px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.checkboxField-container[_ngcontent-%COMP%]{display:block}.checkboxField-container.two-column[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}']})}}return _})();var Lo=N(8466);function po(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function mo(_,ie){1&_&&e.nrm(0,"span",10)}function yi(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function ws(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function qi(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,po,1,1,"div",6),e.DNE(2,mo,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,yi,2,0,"span",4),e.DNE(7,ws,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Ks(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Ds(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const hs=function(_){return{"mb-4":_}},Qs=function(_,ie){return{inSubform:_,disable:ie}};let Zs=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.inSubForm=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.limitedCharacters=!1,this.counts=0,this.htmlContent="",this.validationFailed=!1,this.validationMessage="",this.elementId="",this.defaultValue="",this.disableEdit=!1}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.numberOfRows=this.question.formElement.appearance.numberOfRows,this.limitedCharacters=this.question.formElement.validation.limitedCharacters,this.counts=this.question.formElement.validation.count,this.numberOfRows=this.question.formElement.appearance.numberOfRows,this.limitedCharacters=this.question.formElement.validation.limitedCharacters,this.limitedCharacters&&(this.characterCount=this.question.formElement.validation.count),this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.htmlContent=this.defaultValue,this.question.answer?this.htmlContent=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue)}editorCreated(l){this.editor=l,this.updateEditorContent(this.htmlContent),this.editor.on("selection-change",k=>{null===k&&this.validateEditor()})}updateEditorContent(l){if(this.editor){const k=this.editor.clipboard.convert(l);this.editor.setContents(k,"silent")}this.htmlContent=l}validateEditor(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",!this.htmlContent&&this.required&&(this.validationFailed=!0,this.validationMessage="This is a required question")}updateAnswer(l){this.question.answer=l,this.validationService.clearInvalid(this.question.id),this.htmlContent?.length>=this.characterCount&&(this.htmlContent=this.htmlContent.substring(0,this.characterCount)),this.question.answer=this.htmlContent,this.validateEditor(),this.answerChange.emit(this.question.answer)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-rich-text-editor-fields"]],inputs:{question:"question",inLine:"inLine",inSubForm:"inSubForm"},outputs:{answerChange:"answerChange"},decls:5,vars:14,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["placeholder","",1,"editor",3,"ngModel","ngClass","disabled","ngModelChange","onEditorCreated","blur"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,qi,8,5,"div",1),e.j41(2,"quill-editor",2),e.bIt("ngModelChange",function(ve){return M.htmlContent=ve})("ngModelChange",function(ve){return M.updateAnswer(ve)})("onEditorCreated",function(ve){return M.editorCreated(ve)})("blur",function(){return M.validateEditor()}),e.k0s(),e.DNE(3,Ks,2,1,"div",3),e.DNE(4,Ds,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,hs,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("ngModel",M.htmlContent)("ngClass",e.l_i(11,Qs,M.inSubForm&&!M.disableEdit,M.disableEdit))("disabled",M.disableEdit),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.htmlContent)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.BC,vt.vS,Lo.i9],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}.editor[_ngcontent-%COMP%]{width:100%} .ql-container{min-height:150px}.inSubform[_ngcontent-%COMP%]{background:#fff!important}.disable[_ngcontent-%COMP%]{background:#e9ecef}']})}}return _})();function Wo(_,ie){if(1&_&&e.nrm(0,"div",14),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Nr(_,ie){1&_&&e.nrm(0,"span",15)}function Vi(_,ie){1&_&&(e.j41(0,"span",16),e.EFF(1,"*"),e.k0s())}function On(_,ie){if(1&_&&(e.j41(0,"div",17),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function ni(_,ie){if(1&_&&(e.j41(0,"div",9),e.DNE(1,Wo,1,1,"div",10),e.DNE(2,Nr,1,0,"span",11),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Vi,2,0,"span",12),e.DNE(7,On,5,1,"div",13),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Xi(_,ie){if(1&_&&(e.j41(0,"th",22),e.EFF(1),e.k0s()),2&_){const l=ie.$implicit;e.R7$(1),e.SpI(" ",l.column," ")}}function Us(_,ie){if(1&_){const l=e.RV6();e.j41(0,"td",25)(1,"input",26),e.bIt("ngModelChange",function(M){e.eBV(l);const $=e.XpG().index,ve=e.XpG();return e.Njj(ve.selectedOptions[$]=M)})("ngModelChange",function(){const $=e.eBV(l).$implicit,ve=e.XpG(),Et=ve.index,Dn=ve.$implicit,kn=e.XpG();return e.Njj(kn.onSelectionChange(Et,Dn.label+"_"+$.column))}),e.k0s()()}if(2&_){const l=ie.$implicit,k=ie.index,M=e.XpG(),$=M.index,ve=M.$implicit,Et=e.XpG();e.R7$(1),e.xc7("accent-color",Et.selectionColor),e.Y8G("name","radio-"+$+"-"+k+"-"+Et.rowId)("value",ve.label+"_"+l.column)("ngModel",Et.selectedOptions[$]),e.BMQ("id","radio-"+$+"-"+k+"-"+Et.rowId)}}function go(_,ie){if(1&_&&(e.j41(0,"tr")(1,"td",23),e.EFF(2),e.k0s(),e.DNE(3,Us,2,6,"td",24),e.k0s()),2&_){const l=ie.$implicit,k=e.XpG();e.R7$(2),e.JRh(l.label),e.R7$(1),e.Y8G("ngForOf",k.selectionMatrixColumn)}}function so(_,ie){if(1&_&&(e.j41(0,"div",27),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Ko(_,ie){if(1&_&&(e.j41(0,"div",28),e.qSk(),e.j41(1,"svg",29),e.nrm(2,"path",30)(3,"path",31)(4,"path",32)(5,"circle",33),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Wi=function(_){return{"mb-4":_}},fr=function(_){return{"labelBorder-rtl":_}};let oo=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.acceptedLanguage="",this.rowId=0,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.selectionMatrixColumn=[],this.selectionMatrixLabel=[],this.selectedOptions=[],this.validationMessage="",this.elementId="",this.selectionColor="",this.selectionColorRequired=!1}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.selectionColorRequired=this.question.formElement.appearance.selectionColorRequired,this.selectionColorRequired&&(this.selectionColor=this.question.formElement.appearance.selectionColor),(this.question?.formElement?.selectionMatrixLabel||this.question?.element?.formElement?.selectionMatrixColumn)&&(this.selectionMatrixLabel=(this.question?.formElement?.selectionMatrixLabel||[]).flatMap(l=>{const k=this.isParsableJSON(l)?JSON.parse(l):l;return Array.isArray(k)?k.map(M=>({label:M})):{label:k}}).filter(l=>""!==l.label),this.selectionMatrixColumn=(this.question?.formElement?.selectionMatrixColumn||[]).flatMap(l=>{const k=this.isParsableJSON(l)?JSON.parse(l):l;return Array.isArray(k)?k.map(M=>({column:M})):{column:k}}).filter(l=>""!==l.column)),this.minSelectionValue=this.question?.formElement?.validation?.minSelectionValue,this.question.answer&&(this.selectedOptions=this.question.answer)}isParsableJSON(l){if("string"!=typeof l)return!1;try{return JSON.parse(l),!0}catch{return!1}}onSelectionChange(l,k){this.selectedOptions[l]=k,this.validateInput()}validateInput(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",this.question.answer=this.selectedOptions,this.required&&0==this.selectedOptions.length?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.selectedOptions.length<this.minSelectionValue?(this.validationFailed=!0,this.validationMessage=`selected options must be greater than ${this.minSelectionValue}`,this.question.validation=!1):this.question.validation=!0,this.answerChange.emit(this.question.answer)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-selection-matrix-fields"]],inputs:{question:"question",inLine:"inLine",acceptedLanguage:"acceptedLanguage",rowId:"rowId"},outputs:{answerChange:"answerChange"},decls:12,vars:13,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[3,"ngClass"],[1,"selectionMatrix"],["class","text-center table-cell-wrap",4,"ngFor","ngForOf"],[1,"table-group-divider"],[4,"ngFor","ngForOf"],["class","error-message",4,"ngIf"],["class","text-danger mt-2",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"text-center","table-cell-wrap"],[1,"table-cell-wrap"],["class","text-center",4,"ngFor","ngForOf"],[1,"text-center"],["type","radio",1,"selectionRadio",3,"name","value","ngModel","ngModelChange"],[1,"error-message"],[1,"text-danger","mt-2"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,ni,8,5,"div",1),e.j41(2,"div",2)(3,"table",3)(4,"thead")(5,"tr"),e.nrm(6,"th"),e.DNE(7,Xi,2,1,"th",4),e.k0s()(),e.j41(8,"tbody",5),e.DNE(9,go,4,2,"tr",6),e.k0s()()(),e.DNE(10,so,2,1,"div",7),e.DNE(11,Ko,7,1,"div",8),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(9,Wi,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("ngClass",e.eq3(11,fr,"ara"===M.acceptedLanguage)),e.R7$(5),e.Y8G("ngForOf",M.selectionMatrixColumn),e.R7$(2),e.Y8G("ngForOf",M.selectionMatrixLabel),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||0==M.selectedOptions.length)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.Sq,h.bT,vt.me,vt.Fm,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.selectionMatrix[_ngcontent-%COMP%]{border-collapse:collapse;width:100%}.selectionMatrix[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .selectionMatrix[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:8px}.selectionMatrix[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-bottom:2px solid black}.selectionMatrix[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child, .selectionMatrix[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child, .labelBorder-rtl[_ngcontent-%COMP%] .selectionMatrix[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child{border-right:1px solid #C9C8C8}.table-group-divider[_ngcontent-%COMP%]{border-top:1px solid #000000}.selectionRadio[_ngcontent-%COMP%]{cursor:pointer;width:18px;height:18px}.table-cell-wrap[_ngcontent-%COMP%]{word-wrap:break-word;white-space:normal;max-width:200px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function ii(_,ie){if(1&_&&e.nrm(0,"div",7),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function zr(_,ie){1&_&&e.nrm(0,"span",8)}function Fa(_,ie){1&_&&(e.j41(0,"span",9),e.EFF(1,"*"),e.k0s())}function qr(_,ie){if(1&_&&(e.j41(0,"div",10),e.qSk(),e.j41(1,"svg",11),e.nrm(2,"path",12)(3,"path",13)(4,"path",14),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Ni(_,ie){if(1&_&&(e.j41(0,"div",2),e.DNE(1,ii,1,1,"div",3),e.DNE(2,zr,1,0,"span",4),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Fa,2,0,"span",5),e.DNE(7,qr,5,1,"div",6),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const Xr=function(_){return{"mb-4":_}};let ls=(()=>{class _{constructor(){this.question={},this.inLine=!1,this.count=0,this.required=!1,this.hint="",this.maxFileSize=0,this.minFileSize=0}ngOnInit(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.maxFileSize=this.question.formElement.validation.maxFileSize,this.minFileSize=this.question.formElement.validation.minFileSize}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-signature-fields"]],inputs:{question:"question",inLine:"inLine"},decls:2,vars:5,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Ni,8,5,"div",1),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(3,Xr,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine))},dependencies:[h.YU,h.bT],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();var Mo=N(3881);function Qo(_,ie){if(1&_&&e.nrm(0,"div",13),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Fr(_,ie){1&_&&e.nrm(0,"span",14)}function Ss(_,ie){1&_&&(e.j41(0,"span",15),e.EFF(1,"*"),e.k0s())}function _o(_,ie){if(1&_&&(e.j41(0,"div",16),e.qSk(),e.j41(1,"svg",17),e.nrm(2,"path",18)(3,"path",19)(4,"path",20),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function pr(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,Qo,1,1,"div",9),e.DNE(2,Fr,1,0,"span",10),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Ss,2,0,"span",11),e.DNE(7,_o,5,1,"div",12),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const ua=function(_){return{"mb-4":_}},gi=function(_){return{"--mdc-slider-active-track-color":_}};let Vs=(()=>{class _{constructor(l,k){this.renderer=l,this.el=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.minValue=0,this.maxValue=0,this.stepValue=0,this.changeSliderColor=!1,this.sliderColor="",this.validationFailed=!1,this.validationMessage="",this.selectedValue=0}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.minValue=this.question.formElement.appearance.minValue,this.maxValue=this.question.formElement.appearance.maxValue,this.stepValue=this.question.formElement.appearance.stepValue,this.changeSliderColor=this.question.formElement.appearance.changeSliderColor,this.changeSliderColor&&(this.sliderColor=this.question.formElement.appearance.sliderColor),this.selectedValue=this.question.answer&&Object.keys(this.question.answer).length>0?this.question?.answer:this.minValue}validateInput(l){this.question.answer=String(this.selectedValue),this.question.validation=!0,this.answerChange.emit(this.question.answer)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(e.sFG),e.rXU(e.aKT))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-slider-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:9,vars:13,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],[1,"sliderRow"],[1,"sliderLeft"],[3,"min","max","step","ngStyle"],["matSliderThumb","",3,"ngModel","ngModelChange","input"],[1,"sliderRight"],[1,"selected-count","font-weight-bold"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,pr,8,5,"div",1),e.j41(2,"div",2)(3,"div",3)(4,"mat-slider",4)(5,"input",5),e.bIt("ngModelChange",function(ve){return M.selectedValue=ve})("input",function(ve){return M.validateInput(ve)}),e.k0s()()(),e.j41(6,"div",6)(7,"label",7),e.EFF(8),e.k0s()()()()),2&k&&(e.Y8G("ngClass",e.eq3(9,ua,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(3),e.Y8G("min",M.minValue)("max",M.maxValue)("step",M.stepValue)("ngStyle",e.eq3(11,gi,M.changeSliderColor?M.sliderColor:"")),e.R7$(1),e.Y8G("ngModel",M.selectedValue),e.R7$(3),e.JRh(M.selectedValue))},dependencies:[h.YU,h.bT,h.B3,vt.me,vt.BC,vt.vS,Mo.IV,Mo.OU],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.selected-count[_ngcontent-%COMP%]{font-size:.8rem;color:#000}mat-slider[_ngcontent-%COMP%]{width:100%}.mat-mdc-slider.mat-primary[_ngcontent-%COMP%]{--mdc-slider-handle-color: #fcfcfc;--mdc-slider-handle-width: 15px;--mdc-slider-handle-height: 15px;--mat-mdc-slider-focus-ripple-color: none;--mat-mdc-slider-hover-ripple-color: none;--mdc-slider-focus-handle-color: #fcfcfc;--mdc-slider-inactive-track-color: #9e9d9d}.mat-mdc-slider[_ngcontent-%COMP%] .mdc-slider__thumb-knob[_ngcontent-%COMP%]{outline:1px solid #ff0000!important}.mat-slider-thumb[_ngcontent-%COMP%]{background-color:none!important;border:none!important;box-shadow:none;outline:none}.sliderRow[_ngcontent-%COMP%]{display:flex;align-items:center;gap:32px;width:100%}.sliderLeft[_ngcontent-%COMP%]{flex:1}.sliderRight[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-bottom:0}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function Ar(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function mr(_,ie){1&_&&e.nrm(0,"span",10)}function ro(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Ms(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Bo(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",3),e.DNE(1,Ar,1,1,"div",4),e.DNE(2,mr,1,0,"span",5),e.j41(3,"label",6),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.preview())}),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,ro,2,0,"span",7),e.DNE(7,Ms,5,1,"div",8),e.k0s()}if(2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function tr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",17)(1,"div",18)(2,"span",19),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.closeModal())}),e.EFF(3,"\xd7"),e.k0s(),e.j41(4,"div",20),e.nrm(5,"img",21),e.k0s()()()}if(2&_){const l=e.XpG();e.R7$(5),e.Y8G("src",l.imgUrl,e.B4B)}}const ks=function(_){return{"mb-4":_}};let Wr=(()=>{class _{constructor(l,k,M){this.formService=l,this.http=k,this.dataService=M,this.question={},this.inLine=!1,this.count=0,this.required=!1,this.hint="",this.apiUrl="",this.header={},this.visible=!1,this.dataService.apiUrl$.subscribe($=>{this.apiUrl=$})}ngOnInit(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.fileDataUrl=this.question.formElement.termsAndConditionType.fileUrl}preview(){const M={headers:new Ee.Lr({"Content-Type":this.header.contentType,"auth-user":this.header.authUser}),body:{}},Et=`?url=${encodeURIComponent(this.fileDataUrl)}`;return this.imgUrl=this.apiUrl+`/api/cdn/preview${Et}`,this.visible=!0,this.http.get(this.apiUrl+`/api/cdn/preview${Et}`,M)}closeModal(){this.visible=!1}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(De.u),e.rXU(Ee.Qq),e.rXU(Ln.u))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-terms-and-condition-fields"]],inputs:{question:"question",inLine:"inLine"},decls:3,vars:6,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],["class","modal1",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],[3,"click"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"modal1"],[1,"modal-content1"],[1,"close",3,"click"],[1,"imgContiner"],["alt","Image",3,"src"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Bo,8,5,"div",1),e.DNE(2,tr,6,1,"div",2),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(4,ks,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.Y8G("ngIf",M.visible))},dependencies:[h.YU,h.bT],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}label[_ngcontent-%COMP%]{color:#084fff}.modal1[_ngcontent-%COMP%]{display:flex;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background-color:#000;background-color:#0006;align-items:center}.modal-content1[_ngcontent-%COMP%]{background-color:#fefefe;margin:15% auto;padding:20px;border:1px solid #888;width:80%;max-width:877px}.close[_ngcontent-%COMP%]{color:#aaa;float:right;font-size:28px;font-weight:700;justify-content:flex-end;display:flex;opacity:1}.close[_ngcontent-%COMP%]:hover, .close[_ngcontent-%COMP%]:focus{color:#000;text-decoration:none;cursor:pointer}.imgContiner[_ngcontent-%COMP%]{height:500px;overflow-y:auto}.imgContiner[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;width:100%}div[_ngcontent-%COMP%]::-webkit-scrollbar, main[_ngcontent-%COMP%]::-webkit-scrollbar, ul[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px;height:8px;visibility:hidden}div[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, main[_ngcontent-%COMP%]::-webkit-scrollbar-thumb, ul[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--scrollBarThumbColor);border-radius:8px;visibility:hidden}div[_ngcontent-%COMP%]:hover::-webkit-scrollbar, main[_ngcontent-%COMP%]:hover::-webkit-scrollbar, ul[_ngcontent-%COMP%]:hover::-webkit-scrollbar{visibility:unset}div[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb, main[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb, ul[_ngcontent-%COMP%]:hover::-webkit-scrollbar-thumb{visibility:unset}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();const Fs=["textarea"];function Ki(_,ie){if(1&_&&e.nrm(0,"div",10),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function gr(_,ie){1&_&&e.nrm(0,"span",11)}function Vo(_,ie){1&_&&(e.j41(0,"span",12),e.EFF(1,"*"),e.k0s())}function Kr(_,ie){if(1&_&&(e.j41(0,"div",13),e.qSk(),e.j41(1,"svg",14),e.nrm(2,"path",15)(3,"path",16)(4,"path",17),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Mi(_,ie){if(1&_&&(e.j41(0,"div",6),e.DNE(1,Ki,1,1,"div",7),e.DNE(2,gr,1,0,"span",8),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,Vo,2,0,"span",5),e.DNE(7,Kr,5,1,"div",9),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function ha(_,ie){if(1&_&&(e.j41(0,"div",18),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function cl(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",19),e.nrm(2,"path",20)(3,"path",21)(4,"path",22)(5,"circle",23),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const wa=function(_){return{"mb-4":_}},Rl=function(_){return{"no-scroll":_}};let nr=(()=>{class _{ngOnInit(){this.valueAssigned()}constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.answer="",this.count=0,this.required=!1,this.hint="",this.validationFailed=!1,this.validationMessage="",this.enteredText="",this.defaultValue="",this.disableEdit=!1,this.elementId=""}ngAfterViewInit(){this.textarea?.nativeElement&&this.calculateMaxHeight(),this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.numberOfRows=this.question.formElement.appearance.numberOfRows,this.limitedCharacters=this.question.formElement.validation.limitedCharacters,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.enteredText=this.defaultValue,this.limitedCharacters&&(this.characterCount=this.question.formElement.validation.count),this.question.answer?this.enteredText=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue)}calculateMaxHeight(){const l=this.textarea.nativeElement,k=window.getComputedStyle(l);this.lineHeight=parseFloat(k.lineHeight);const M=parseFloat(k.paddingTop)||0,$=parseFloat(k.paddingBottom)||0,ve=parseFloat(k.borderTopWidth)||0,Et=parseFloat(k.borderBottomWidth)||0;this.maxHeight=this.lineHeight*this.numberOfRows+M+$+ve+Et,l.style.height=`${this.maxHeight}px`}validateInput(l){const k=l.target;for(;k.scrollHeight>this.maxHeight;)k.value=k.value.slice(0,-1);this.question.answer=k.value,this.answerChange.emit(this.question.answer),this.validateTextarea()}validateTextarea(){this.validationFailed=!1,this.validationService.clearInvalid(this.question.id),this.validationMessage="",!this.enteredText&&this.required?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-text-area-fields"]],viewQuery:function(k,M){if(1&k&&e.GBs(Fs,5),2&k){let $;e.mGM($=e.lsd())&&(M.textarea=$.first)}},inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:6,vars:19,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["wrap","hard",1,"form-control","mb-2",3,"ngClass","rows","ngModel","maxlength","disabled","input","blur","ngModelChange"],["textarea",""],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Mi,8,5,"div",1),e.j41(2,"textarea",2,3),e.bIt("input",function(ve){return M.validateInput(ve)})("blur",function(){return M.validateTextarea()})("ngModelChange",function(ve){return M.enteredText=ve}),e.k0s(),e.DNE(4,ha,2,1,"div",4),e.DNE(5,cl,7,1,"div",5),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(15,wa,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredText)),e.Y8G("ngClass",e.eq3(17,Rl,M.numberOfRows))("rows",M.numberOfRows)("ngModel",M.enteredText)("maxlength",M.characterCount)("disabled",M.disableEdit),e.R7$(2),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredText)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.tU,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.no-scroll[_ngcontent-%COMP%]{overflow:hidden!important;resize:none;line-height:1.5;padding:5px 10px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function J(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function ee(_,ie){1&_&&e.nrm(0,"span",10)}function U(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Ce(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function et(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,J,1,1,"div",6),e.DNE(2,ee,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,U,2,0,"span",4),e.DNE(7,Ce,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function $n(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function _i(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const Er=function(_){return{"mb-4":_}};let Pr=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.inCard=!1,this.answerChange=new e.bkB,this.answer="",this.count=0,this.required=!1,this.hint="",this.placeholder="",this.defaultValue="",this.disableEdit=!1,this.validationType="",this.validation="",this.enteredText="",this.validationFailed=!1,this.validationMessage="",this.elementId=""}ngOnInit(){this.valueAssigned()}valueAssigned(){this.count=this.question?.count,this.required=this.question?.required,this.hint=this.question?.hint,this.placeholder=this.question.formElement?.appearance?.placeholder||"",this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.enteredText=this.defaultValue,this.validationType=this.question.formElement.validation?.validationType,"CUSTOM_VALIDATION"==this.validationType?this.validation=this.question.formElement.validation?.validation:"REGULAR_EXPRESSION"==this.validationType&&(this.regex=this.question.formElement.validation?.regex),null!=this.question.answer&&("string"==typeof this.question.answer&&""!==this.question.answer.trim()||Array.isArray(this.question.answer)&&this.question.answer.length>0||"object"==typeof this.question.answer&&Object.keys(this.question.answer).length>0)?this.enteredText=this.question.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue),this.question.childLogics&&this.question.answer&&this.updateChildLogics(this.question)}validatetextField(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",this.required&&!this.enteredText?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0,this.question.childLogics&&this.updateChildLogics(this.question)}validateInput(l){this.validationService.clearInvalid(this.question.id);let k=l.target.value;"Numbers only"==this.validation?l.target.value=k?.replace(/\D/g,""):"Alphanumeric"==this.validation?l.target.value=k?.replace(/[^a-zA-Z0-9]/g,""):"REGULAR_EXPRESSION"==this.validationType&&this.regex&&(l.target.value=new RegExp(this.regex).test(k)?k:k.slice(0,-1)),this.question.answer=l.target.value,this.answerChange.emit(l.target.value),this.validatetextField(),!this.inLine&&!this.inCard&&setTimeout(()=>{const M=document.getElementById(this.question.id);M&&M.focus()})}updateChildLogics(l){l.childLogics&&Array.isArray(l.childLogics)&&l.childLogics.forEach(k=>{this.evaluateCondition(this.enteredText,k.condition,k.inputValue)?k.showLogic=!0:(k.showLogic=!1,this.clearAnswersRecursively(k))})}evaluateCondition(l,k,M){switch(k){case"!=":return l!=M;case"=":return l==M;case"LIKE":return l.includes(M);case"NOT LIKE":return!l.includes(M);case"BEGIN WITH":return l.startsWith(M);case"END WITH":return l.endsWith(M);default:return!1}}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const $=M.element;"QUESTION"===M.entityType&&$&&("answer"in $&&($.answer=""),$.childLogics&&$.childLogics.length>0&&$.childLogics.forEach(ve=>{this.clearAnswersRecursively(ve)})),"SUBFORM"===M.entityType&&$&&$.rows&&this.clearAnswersRecursively({rows:$.rows})})})}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-text-fields"]],inputs:{question:"question",inLine:"inLine",inCard:"inCard"},outputs:{answerChange:"answerChange"},decls:5,vars:16,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["type","text",1,"form-control","mb-2","height",3,"placeholder","ngModel","id","disabled","ngModelChange","blur","input"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,et,8,5,"div",1),e.j41(2,"input",2),e.bIt("ngModelChange",function(ve){return M.enteredText=ve})("blur",function(){return M.validatetextField()})("input",function(ve){return M.validateInput(ve)}),e.k0s(),e.DNE(3,$n,2,1,"div",3),e.DNE(4,_i,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(14,Er,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredText)),e.Y8G("placeholder",M.placeholder)("ngModel",M.enteredText)("id",M.question.id)("disabled",M.disableEdit),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredText)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.form-control[_ngcontent-%COMP%]:not(:placeholder-shown).bold{font-weight:700}.form-control[_ngcontent-%COMP%]:not(:placeholder-shown).underline{text-decoration:underline}.form-control[_ngcontent-%COMP%]:not(:placeholder-shown).italics{font-style:italic}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function dl(_,ie){if(1&_&&e.nrm(0,"div",13),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function vc(_,ie){1&_&&e.nrm(0,"span",14)}function bc(_,ie){1&_&&(e.j41(0,"span",15),e.EFF(1,"*"),e.k0s())}function ul(_,ie){if(1&_&&(e.j41(0,"div",16),e.qSk(),e.j41(1,"svg",17),e.nrm(2,"path",18)(3,"path",19)(4,"path",20),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Ja(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,dl,1,1,"div",9),e.DNE(2,vc,1,0,"span",10),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,bc,2,0,"span",11),e.DNE(7,ul,5,1,"div",12),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}const Ql=function(_){return{"mb-4":_}},yc=function(_,ie){return{"direction-rtl":_,"direction-ltr":ie}},hl=function(_){return{"background-color":_}};let fa=(()=>{class _{constructor(){this.question={},this.inLine=!1,this.acceptedLanguage="",this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.labelOnValue="",this.labelOffValue="",this.labelOnColor="",this.labelOffColor="",this.toggleBackgroundColor="",this.selectedValue=""}ngOnInit(){this.valueAssigned()}getDirectionClass(){return"ara"===this.acceptedLanguage?"direction-rtl":"direction-ltr"}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.labelOnValue=this.question.formElement.appearance.labelOnValue,this.labelOffValue=this.question.formElement.appearance.labelOffValue,this.labelOnColor=this.question.formElement.appearance.labelOnColor,this.labelOffColor=this.question.formElement.appearance.labelOffColor,this.question.answer||(this.question.answer=this.labelOffValue,this.question.validation=!0,this.selectedValue=this.labelOffValue,this.toggleBackgroundColor=this.labelOffColor),this.question.answer&&(this.question.answer===this.labelOnValue?(this.selectedValue=this.labelOnValue,this.toggleBackgroundColor=this.labelOnColor):(this.selectedValue=this.labelOffValue,this.toggleBackgroundColor=this.labelOffColor),this.question.validation=!0)}toggleSliderColor(l){let k=l.target.checked;this.question.answer=k?this.labelOnValue:this.labelOffValue,this.question.validation=!0,this.selectedValue=this.question.answer,this.toggleBackgroundColor=k?this.question.formElement.appearance.labelOnColor:this.question.formElement.appearance.labelOffColor,this.answerChange.emit(this.question.answer)}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-toggle-switch-fields"]],inputs:{question:"question",inLine:"inLine",acceptedLanguage:"acceptedLanguage"},outputs:{answerChange:"answerChange"},decls:10,vars:18,consts:[[1,"px-3",3,"ngClass"],["class","input-wrapper mb-2",4,"ngIf"],[1,"mt-2"],[1,"switch",3,"ngClass"],["type","checkbox","id","togBtn",3,"checked","change"],[1,"slider","round",3,"ngClass","ngStyle"],[1,"on","action-btn-text"],[1,"off","action-btn-text"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","text-danger",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Ja,8,5,"div",1),e.j41(2,"div",2)(3,"label",3)(4,"input",4),e.bIt("change",function(ve){return M.toggleSliderColor(ve)}),e.k0s(),e.j41(5,"div",5)(6,"span",6),e.EFF(7),e.k0s(),e.j41(8,"span",7),e.EFF(9),e.k0s()()()()()),2&k&&(e.Y8G("ngClass",e.eq3(11,Ql,!M.inLine)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(2),e.Y8G("ngClass",e.l_i(13,yc,"ara"===M.acceptedLanguage,"ara"!==M.acceptedLanguage)),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("checked",M.selectedValue===M.labelOnValue),e.BMQ("data-state",M.selectedValue),e.R7$(1),e.Y8G("ngClass",M.getDirectionClass())("ngStyle",e.eq3(16,hl,M.toggleBackgroundColor)),e.R7$(2),e.JRh(M.labelOnValue),e.R7$(2),e.JRh(M.labelOffValue))},dependencies:[h.YU,h.bT,h.B3],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.switch[_ngcontent-%COMP%]{position:relative;display:inline-block;width:auto;height:34px;min-width:120px}.switch[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:none}.slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0;transition:.4s}.slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:26px;width:26px;bottom:4px;background-color:#fff;transition:.4s}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]{background-color:#00c48c}input[_ngcontent-%COMP%]:not(:checked) + .slider[_ngcontent-%COMP%]{background-color:#00c48c}input[_ngcontent-%COMP%]:focus + .slider[_ngcontent-%COMP%]{box-shadow:0 0 1px #2196f3}.direction-rtl[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(-86px)}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%]:before{transform:translate(86px)}.on[_ngcontent-%COMP%]{display:none}.on[_ngcontent-%COMP%], .off[_ngcontent-%COMP%]{color:#fff;position:absolute;transform:translate(-50%,-50%);top:50%;left:50%;font-size:13px;font-weight:500}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%] .on[_ngcontent-%COMP%]{display:block}input[_ngcontent-%COMP%]:checked + .slider[_ngcontent-%COMP%] .off[_ngcontent-%COMP%]{display:none}.slider.round[_ngcontent-%COMP%]{border-radius:28px}.slider.round[_ngcontent-%COMP%]:before{border-radius:50%}.direction-rtl[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:before{left:59px;right:4px}.direction-ltr[_ngcontent-%COMP%] .slider[_ngcontent-%COMP%]:before{left:4px;right:59px}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function jo(_,ie){if(1&_&&e.nrm(0,"div",12),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function Go(_,ie){1&_&&e.nrm(0,"span",13)}function _r(_,ie){1&_&&(e.j41(0,"span",14),e.EFF(1,"*"),e.k0s())}function Nl(_,ie){if(1&_&&(e.j41(0,"div",15),e.qSk(),e.j41(1,"svg",16),e.nrm(2,"path",17)(3,"path",18)(4,"path",19),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function vo(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,jo,1,1,"div",9),e.DNE(2,Go,1,0,"span",10),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,_r,2,0,"span",7),e.DNE(7,Nl,5,1,"div",11),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Qr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"button",20),e.bIt("click",function(){e.eBV(l);const M=e.XpG();return e.Njj(M.handleClick())}),e.qSk(),e.j41(1,"svg",21),e.nrm(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25),e.k0s()()}}function Ho(_,ie){if(1&_&&(e.j41(0,"div",26),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Aa(_,ie){if(1&_&&(e.j41(0,"div",14),e.qSk(),e.j41(1,"svg",27),e.nrm(2,"path",28)(3,"path",29)(4,"path",30)(5,"circle",31),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const fl=function(_){return{"mb-4":_}};let ir=(()=>{class _{constructor(l,k){this.validationService=l,this.tracker=k,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.count=0,this.required=!1,this.hint="",this.placeholder="",this.enteredUrl="",this.validationFailed=!1,this.validationMessage="",this.defaultValue="",this.disableEdit=!1,this.elementId=""}ngOnInit(){this.valueAssigned()}handleClick(){let l=document.getElementById("textField").value.trim();/^https?:\/\//i.test(l)||(l="http://"+l),window.open(l,"_blank")}valueAssigned(){this.count=this.question.count,this.required=this.question.required,this.hint=this.question.hint,this.placeholder=this.question.formElement.appearance.placeholder,this.showPreviewButton=this.question.formElement.appearance.showPreviewButton,this.defaultValue=this.question?.defaultValue,this.disableEdit=this.question.disableEdit,this.enteredUrl=this.defaultValue,this.question.answer?this.enteredUrl=this.question?.answer:this.defaultValue&&!this.question.answer&&(this.question.answer=this.defaultValue)}validateUrl(){this.validationService.clearInvalid(this.question.id),this.validationFailed=!1,this.validationMessage="",this.required&&!this.enteredUrl?(this.validationFailed=!0,this.validationMessage="This is a required question",this.question.validation=!1):this.question.validation=!0}validateInput(l){this.validateUrl(),this.question.answer=l.target.value,this.answerChange.emit(l.target.value)}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-url-fields"]],inputs:{question:"question",inLine:"inLine"},outputs:{answerChange:"answerChange"},decls:8,vars:17,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],[1,"input-group"],["type","text",1,"form-control","col-11.5","rounded","height",3,"id","placeholder","ngModel","disabled","ngModelChange","blur","input"],[1,"ps-2","pe-2"],["type","button","class","btn col-.5 custom-button rounded d-flex justify-content-center align-items-center height",3,"click",4,"ngIf"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["type","button",1,"btn","col-.5","custom-button","rounded","d-flex","justify-content-center","align-items-center","height",3,"click"],["width","30","height","30","viewBox","0 0 30 30","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M4.99561 16.2503C4.99561 21.7754 9.47462 26.2544 14.9998 26.2544C20.5249 26.2544 25.0039 21.7754 25.0039 16.2503C25.0039 10.7251 20.5249 6.24609 14.9998 6.24609H6.24613","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M9.99766 2.49219L6.24609 6.24375","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M9.99766 9.99766L6.24609 6.24609","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M17.7924 14.8125L14.3035 18.3015L12.2051 16.2106","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,vo,8,5,"div",1),e.j41(2,"div",2)(3,"input",3),e.bIt("ngModelChange",function(ve){return M.enteredUrl=ve})("blur",function(){return M.validateUrl()})("input",function(ve){return M.validateInput(ve)}),e.k0s(),e.j41(4,"div",4),e.DNE(5,Qr,6,0,"button",5),e.k0s()(),e.DNE(6,Ho,2,1,"div",6),e.DNE(7,Aa,7,1,"div",7),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(15,fl,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(2),e.AVh("invalid",M.validationFailed)("invalid-question",M.isInvalid&&(!M.inLine||!M.enteredUrl)),e.Y8G("id",M.question.id)("placeholder",M.placeholder)("ngModel",M.enteredUrl)("disabled",M.disableEdit),e.R7$(2),e.Y8G("ngIf",M.showPreviewButton),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.enteredUrl)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.custom-button[_ngcontent-%COMP%]{border:1px solid #ced4da;background-color:transparent;padding:.375rem .75rem;line-height:1.5;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.invalid-question[_ngcontent-%COMP%]{border:2px solid #f44336;border-radius:4px;padding:8px;margin-bottom:4px}']})}}return _})();function Pa(_,ie){if(1&_&&e.nrm(0,"div",9),2&_){const l=e.XpG(2);e.Y8G("innerHTML",l.question.questionNumber,e.npT)}}function To(_,ie){1&_&&e.nrm(0,"span",10)}function pa(_,ie){1&_&&(e.j41(0,"span",11),e.EFF(1,"*"),e.k0s())}function Uo(_,ie){if(1&_&&(e.j41(0,"div",12),e.qSk(),e.j41(1,"svg",13),e.nrm(2,"path",14)(3,"path",15)(4,"path",16),e.k0s()()),2&_){const l=e.XpG(2);e.BMQ("data-title",l.hint)}}function Lr(_,ie){if(1&_&&(e.j41(0,"div",5),e.DNE(1,Pa,1,1,"div",6),e.DNE(2,To,1,0,"span",7),e.j41(3,"label"),e.EFF(4),e.k0s(),e.EFF(5,"\xa0 "),e.DNE(6,pa,2,0,"span",4),e.DNE(7,Uo,5,1,"div",8),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(1),e.Y8G("ngIf",l.question.questionNumber),e.R7$(2),e.JRh(l.question.question),e.R7$(2),e.Y8G("ngIf",l.required),e.R7$(1),e.Y8G("ngIf",l.hint)}}function Da(_,ie){if(1&_&&(e.j41(0,"div",17),e.EFF(1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.SpI(" ",l.errorMessage," ")}}function Zo(_,ie){if(1&_&&(e.j41(0,"div",11),e.qSk(),e.j41(1,"svg",18),e.nrm(2,"path",19)(3,"path",20)(4,"path",21)(5,"circle",22),e.k0s(),e.EFF(6),e.k0s()),2&_){const l=e.XpG();e.R7$(6),e.SpI(" ",l.validationMessage," ")}}const pl=function(_){return{"mb-4":_}};let sr=(()=>{class _{constructor(l,k,M,$){this.validationService=l,this.tracker=k,this.aggregateService=M,this.cdr=$,this.question={},this.inLine=!1,this.answerChange=new e.bkB,this.answer="",this.count=0,this.required=!1,this.hint="",this.placeholder="",this.validationFailed=!1,this.validationMessage="",this.elementId="",this.result=0}ngOnInit(){this.valueAssigned(),this.aggregateService.setAggregateField(this.rowId,this.question.id,this.question.formElement.aggregateFunction.aggregateOperation,this.question.formElement.aggregateFunction.formula),this.subscription=this.aggregateService.aggregateFieldResults$.subscribe(l=>{l&&l.id===`${this.rowId}:${this.question.id}`&&(l.evaluated?(this.result=l.result,this.question.answer=String(this.result),this.answerChange.emit(this.question.answer),this.validationService.clearInvalid(this.question.id)):(this.result=0,this.question.answer="",this.answerChange.emit(this.question.answer)))})}valueAssigned(){this.count=this.question?.count,this.required=this.question?.required,this.hint=this.question?.hint,this.placeholder=this.question.formElement?.appearance?.placeholder||"",null!=this.question.answer&&("string"==typeof this.question.answer&&""!==this.question.answer.trim()||Array.isArray(this.question.answer)&&this.question.answer.length>0||"object"==typeof this.question.answer&&Object.keys(this.question.answer).length>0)&&(this.result=this.question.answer)}clearAnswersRecursively(l){!l||!l.rows||l.rows.forEach(k=>{k.grid.forEach(M=>{const $=M.element;"QUESTION"===M.entityType&&$&&("answer"in $&&($.answer=""),$.childLogics&&$.childLogics.length>0&&$.childLogics.forEach(ve=>{this.clearAnswersRecursively(ve)})),"SUBFORM"===M.entityType&&$&&$.rows&&this.clearAnswersRecursively({rows:$.rows})})})}handleValidation(l,k="This field is required"){l&&this.validationService.clearInvalid(this.question.id)}get isInvalid(){return!!this.validationService.getErrorMessage(this.question.id)}get errorMessage(){return this.validationService.getErrorMessage(this.question.id)}ngAfterViewInit(){this.elementId=`question-${this.question.id}`,this.tracker.registerElement(this.elementId)}ngOnDestroy(){this.elementId&&this.tracker.unregisterElement(this.elementId),this.subscription&&this.subscription.unsubscribe()}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(we.B),e.rXU(Ie.U),e.rXU(Ns.q),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-aggregate-function"]],inputs:{question:"question",inLine:"inLine",rowId:"rowId"},outputs:{answerChange:"answerChange"},decls:5,vars:13,consts:[[1,"px-3",3,"ngClass","id"],["class","input-wrapper mb-2",4,"ngIf"],["type","text","readonly","",1,"form-control","mb-2","height",3,"placeholder","ngModel","id","ngModelChange"],["class","error-message",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"input-wrapper","mb-2"],[3,"innerHTML",4,"ngIf"],["class","space",4,"ngIf"],["class","svg-wrapper mb-2 hintIcon",4,"ngIf"],[3,"innerHTML"],[1,"space"],[1,"text-danger"],[1,"svg-wrapper","mb-2","hintIcon"],["viewBox","0 0 30 30","xmlns","http://www.w3.org/2000/svg",1,"hintSvg"],["fill-rule","evenodd","clip-rule","evenodd","d","M15 26.25V26.25C8.78625 26.25 3.75 21.2138 3.75 15V15C3.75 8.78625 8.78625 3.75 15 3.75V3.75C21.2138 3.75 26.25 8.78625 26.25 15V15C26.25 21.2138 21.2138 26.25 15 26.25Z","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M15 16.5623V16.2498C15 15.2285 15.6312 14.6748 16.2637 14.2498C16.8812 13.8335 17.5 13.291 17.5 12.291C17.5 10.9098 16.3813 9.79102 15 9.79102C13.6187 9.79102 12.5 10.9098 12.5 12.291","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M14.9988 20C14.8263 20 14.6863 20.14 14.6875 20.3125C14.6875 20.485 14.8275 20.625 15 20.625C15.1725 20.625 15.3125 20.485 15.3125 20.3125C15.3125 20.14 15.1725 20 14.9988 20","stroke","#323232","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"error-message"],["viewBox","0 0 24 24","xmlns","http://www.w3.org/2000/svg",1,"validationSvg"],["d","M12.001 16.75C12.139 16.75 12.251 16.638 12.25 16.5C12.25 16.362 12.138 16.25 12 16.25C11.862 16.25 11.75 16.362 11.75 16.5C11.75 16.638 11.862 16.75 12.001 16.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M12 21C7.029 21 3 16.971 3 12C3 7.029 7.029 3 12 3C16.971 3 21 7.029 21 12C21 16.971 16.971 21 12 21Z","fill","#FF0000","stroke","#FF0000","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M12 12.75L12 7.75","stroke","white","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["cx","12","cy","16","r","1","fill","white"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Lr,8,5,"div",1),e.j41(2,"input",2),e.bIt("ngModelChange",function(ve){return M.result=ve}),e.k0s(),e.DNE(3,Da,2,1,"div",3),e.DNE(4,Zo,7,1,"div",4),e.k0s()),2&k&&(e.Y8G("ngClass",e.eq3(11,pl,!M.inLine))("id","question-"+M.question.id),e.BMQ("name",M.question.testElementName),e.R7$(1),e.Y8G("ngIf",!M.inLine),e.R7$(1),e.AVh("invalid-question",M.isInvalid&&(!M.inLine||!M.result)),e.Y8G("placeholder",M.placeholder)("ngModel",M.result)("id",M.question.id),e.R7$(1),e.Y8G("ngIf",M.isInvalid&&(!M.inLine||!M.result)),e.R7$(1),e.Y8G("ngIf",M.validationFailed&&!M.isInvalid))},dependencies:[h.YU,h.bT,vt.me,vt.BC,vt.vS],styles:['.input-wrapper[_ngcontent-%COMP%]{display:flex;align-items:flex-start}.svg-wrapper[_ngcontent-%COMP%]{margin-inline-start:auto;z-index:999}.hintIcon[_ngcontent-%COMP%]{position:relative;cursor:pointer}.hintIcon[_ngcontent-%COMP%]:hover:before{content:attr(data-title);position:absolute;top:calc(100% + 2px);right:0;padding:4px 8px;border-radius:4px;background-color:#1d252d;color:#8e9aa0;font-size:14px;min-width:300px;word-wrap:break-word;word-break:break-word;text-align:center;white-space:normal}.hintIcon[_ngcontent-%COMP%]:hover:after{content:"";position:absolute;top:calc(100% - 26px);left:50%;border:solid transparent;border-width:18px;border-bottom-color:#1d252d;transform:translate(-50%)}.height[_ngcontent-%COMP%]{height:42px}.invalid[_ngcontent-%COMP%]{border-color:red}.hintSvg[_ngcontent-%COMP%]{width:30px;height:30px;fill:none}.validationSvg[_ngcontent-%COMP%]{width:24px;height:24px;fill:none} html lib-formSubmission{font-family:var(--library-font-family)!important;font-size:var(--library-font-size)!important} .timepicker-overlay{z-index:1000!important} .timepicker-backdrop-overlay{z-index:1000!important}.space[_ngcontent-%COMP%]{width:5px}.error-message[_ngcontent-%COMP%]{color:#f44336;font-size:.8em;margin-top:4px;padding:0 8px}@keyframes _ngcontent-%COMP%_fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}']})}}return _})();function Ma(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-check-box-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Ti(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-date-time-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Zr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-drop-down-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Fl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-file-picker-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function xs(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-location-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function La(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mail-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function el(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mobile-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Zl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-number-fields",6),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)("rowId","0")}}function Jl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-password-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Al(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-radio-button-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Pi(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-rich-text-editor-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Cc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-selection-matrix-fields",7),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)("acceptedLanguage",l.acceptedLanguage)}}function Jr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-signature-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function tl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-slider-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function ea(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-terms-and-condition-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function Eo(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-area-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function P(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function ae(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-toggle-switch-fields",7),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)("acceptedLanguage",l.acceptedLanguage)}}function Y(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-url-fields",5),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)}}function te(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-aggregate-function",6),e.bIt("validate",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.handleValidation(M))}),e.k0s()}if(2&_){const l=e.XpG();e.Y8G("question",l.question)("rowId","0")}}function We(_,ie){1&_&&e.eu8(0)}const Yt=function(_,ie){return{grid:_,answer:ie,state:"child"}};function un(_,ie){if(1&_&&(e.qex(0),e.DNE(1,We,1,0,"ng-container",8),e.bVm()),2&_){const l=e.XpG(2);e.R7$(1),e.Y8G("ngComponentOutlet",l.componentToLoad)("ngComponentOutletInputs",e.l_i(2,Yt,l.question.childLogics,null==l.question?null:l.question.answer))}}function Gn(_,ie){if(1&_&&(e.qex(0),e.DNE(1,un,2,5,"ng-container",4),e.bVm()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}let ts=(()=>{class _{constructor(l){this.cdr=l,this.question={},this.edit=!1,this.acceptedLanguage="",this.currentPageIndex=0,this.emitValidations=new e.bkB,this.subFormChange=new e.bkB,this.validations=[],this.childLogicCache={}}ngOnInit(){this.loadComponent()}removeCircularReferences(l){const k=new WeakSet;return function M($){if(null===$||"object"!=typeof $)return $;if(k.has($))return"[Circular]";if(k.add($),Array.isArray($))return $.map(Et=>M(Et));const ve={};for(const Et of Object.keys($))ve[Et]=M($[Et]);return k.delete($),ve}(l)}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.question?.childLogics},{provide:"state",useValue:"child"}]})}updateSubFormWithSubmissions(l){this.subFormChange.emit(l)}handleValidation(l){this.validations.push(l),this.emitValidations.emit(this.validations),this.cdr.detectChanges()}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-question"]],inputs:{question:"question",edit:"edit",acceptedLanguage:"acceptedLanguage",currentPageIndex:"currentPageIndex"},outputs:{emitValidations:"emitValidations",subFormChange:"subFormChange"},decls:22,vars:22,consts:[[3,"ngSwitch"],[3,"question","validate",4,"ngSwitchCase"],[3,"question","rowId","validate",4,"ngSwitchCase"],[3,"question","acceptedLanguage","validate",4,"ngSwitchCase"],[4,"ngIf"],[3,"question","validate"],[3,"question","rowId","validate"],[3,"question","acceptedLanguage","validate"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(k,M){1&k&&(e.j41(0,"div",0),e.DNE(1,Ma,1,1,"octa-check-box-fields",1),e.DNE(2,Ti,1,1,"octa-date-time-fields",1),e.DNE(3,Zr,1,1,"octa-drop-down-fields",1),e.DNE(4,Fl,1,1,"octa-file-picker-fields",1),e.DNE(5,xs,1,1,"octa-location-fields",1),e.DNE(6,La,1,1,"octa-mail-fields",1),e.DNE(7,el,1,1,"octa-mobile-fields",1),e.DNE(8,Zl,1,2,"octa-number-fields",2),e.DNE(9,Jl,1,1,"octa-password-fields",1),e.DNE(10,Al,1,1,"octa-radio-button-fields",1),e.DNE(11,Pi,1,1,"octa-rich-text-editor-fields",1),e.DNE(12,Cc,1,2,"octa-selection-matrix-fields",3),e.DNE(13,Jr,1,1,"octa-signature-fields",1),e.DNE(14,tl,1,1,"octa-slider-fields",1),e.DNE(15,ea,1,1,"octa-terms-and-condition-fields",1),e.DNE(16,Eo,1,1,"octa-text-area-fields",1),e.DNE(17,P,1,1,"octa-text-fields",1),e.DNE(18,ae,1,2,"octa-toggle-switch-fields",3),e.DNE(19,Y,1,1,"octa-url-fields",1),e.DNE(20,te,1,2,"octa-aggregate-function",2),e.k0s(),e.DNE(21,Gn,2,1,"ng-container",4)),2&k&&(e.Y8G("ngSwitch",M.question.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION"),e.R7$(1),e.Y8G("ngIf",M.question.childLogics))},dependencies:[h.OI,h.bT,h.ux,h.e1,mt,Vn,sn,ai,an,Ke,Ei,_e,Xs,er,Zs,oo,ls,Vs,Wr,nr,Pr,fa,ir,sr]})}}return _})();var ji=N(6911);let Si=(()=>{class _{constructor(l){this.activeModal=l}dismiss(){this.activeModal.close()}confirm(){this.activeModal.close("yes")}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(ji.Lw))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-confirm-dialog"]],inputs:{message:"message"},decls:17,vars:1,consts:[[1,"modal-body"],[1,"modal-header","p-2"],["type","button","data-bs-dismiss","modal","aria-label","Close",1,"btn-close",3,"click"],["aria-hidden","true"],[1,"modal-body","p-2"],[1,"sec-title","mb-3"],[1,"mb-0","text-center"],[1,"d-flex","justify-content-center"],[1,"text-center"],[1,"sec-buttons","d-flex","justify-content-center","mb-4","gap-4"],[1,"btn","btn-secondary","cancelBtn",3,"click"],[1,"btn","btn-primary","submitBtn",3,"click"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.bIt("click",function(){return M.dismiss()}),e.nrm(3,"span",3),e.k0s()(),e.j41(4,"div",4)(5,"div",5)(6,"h4",6),e.EFF(7,"Are you sure ?"),e.k0s()(),e.j41(8,"div",7)(9,"div")(10,"p",8),e.EFF(11),e.k0s()()()(),e.j41(12,"div",9)(13,"button",10),e.bIt("click",function(){return M.dismiss()}),e.EFF(14," No "),e.k0s(),e.j41(15,"button",11),e.bIt("click",function(){return M.confirm()}),e.EFF(16," Yes "),e.k0s()()()),2&k&&(e.R7$(11),e.JRh(M.message))}})}}return _})();const ki={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let Hi;const Li=new Uint8Array(16),cs=[];for(let _=0;_<256;++_)cs.push((_+256).toString(16).slice(1));const Yo=function ns(_,ie,l){if(ki.randomUUID&&!ie&&!_)return ki.randomUUID();const k=(_=_||{}).random??_.rng?.()??function $o(){if(!Hi){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Hi=crypto.getRandomValues.bind(crypto)}return Hi(Li)}();if(k.length<16)throw new Error("Random bytes length must be >= 16");if(k[6]=15&k[6]|64,k[8]=63&k[8]|128,ie){if((l=l||0)<0||l+16>ie.length)throw new RangeError(`UUID byte range ${l}:${l+15} is out of buffer bounds`);for(let M=0;M<16;++M)ie[l+M]=k[M];return ie}return function So(_,ie=0){return(cs[_[ie+0]]+cs[_[ie+1]]+cs[_[ie+2]]+cs[_[ie+3]]+"-"+cs[_[ie+4]]+cs[_[ie+5]]+"-"+cs[_[ie+6]]+cs[_[ie+7]]+"-"+cs[_[ie+8]]+cs[_[ie+9]]+"-"+cs[_[ie+10]]+cs[_[ie+11]]+cs[_[ie+12]]+cs[_[ie+13]]+cs[_[ie+14]]+cs[_[ie+15]]).toLowerCase()}(k)};let vs=(()=>{class _{copySubform(l,k){const M={},$=this.deepCopyWithNewIds(l,M);$.copySubformMeta={id:$.id,title:"",description:"",parentSubform:l.id,questionRelation:M},l.copiedForms||(l.copiedForms=[]),l.copiedForms.push($.id);const ve=this.findPageContainingSubform(l.id,k);if(ve){const Et=ve.rows.findIndex(Dn=>Dn.grid.some(kn=>"SUBFORM"===kn.entityType&&kn.element.id===l.id));$.submissions=[],-1!==Et&&ve.rows.splice(Et+1,0,{grid:[{entityType:"SUBFORM",element:$}]})}return{updatedPages:k}}deepCopyWithNewIds(l,k){const M=new Map,$=Dn=>{if(Array.isArray(Dn))return Dn.map($);if(null!==Dn&&"object"==typeof Dn){const kn={};for(const pi of Object.keys(Dn)){const ys=Dn[pi];"id"===pi&&"string"==typeof ys?(M.has(ys)||M.set(ys,Yo()),kn[pi]=M.get(ys)):kn[pi]=$(ys)}if("QUESTION"===Dn.entityType&&Dn.element&&"string"==typeof Dn.element.id){const pi=Dn.element.id,ys=kn.element?.id;pi&&ys&&(k[ys]=pi),kn.element&&(kn.element.answer="",kn.element.files="")}return kn}return Dn},Et=$(JSON.parse(JSON.stringify(l,(()=>{const Dn=new WeakSet;return(kn,pi)=>{if("object"==typeof pi&&null!==pi){if(Dn.has(pi))return;Dn.add(pi)}return pi}})())));return Et.defaultAnswers&&Array.isArray(Et.defaultAnswers.answers)&&Et.defaultAnswers.answers.forEach(Dn=>{Array.isArray(Dn.defaultQuestionsAnswers)&&Dn.defaultQuestionsAnswers.forEach(kn=>{const pi=kn.questionId;M.has(pi)&&(kn.questionId=M.get(pi))})}),Et.copied=!0,Et}findPageContainingSubform(l,k){return k.find(M=>M.rows.some($=>$.grid.some(ve=>"SUBFORM"===ve.entityType&&ve.element&&ve.element.id===l)))}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275prov=e.jDH({token:_,factory:_.\u0275fac,providedIn:"root"})}}return _})();var Di=N(5351);function ec(_,ie){if(1&_&&e.nrm(0,"octa-check-box-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ma(_,ie){if(1&_&&e.nrm(0,"octa-date-time-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ao(_,ie){if(1&_&&e.nrm(0,"octa-drop-down-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function wc(_,ie){if(1&_&&e.nrm(0,"octa-file-picker-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ba(_,ie){if(1&_&&e.nrm(0,"octa-location-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function na(_,ie){if(1&_&&e.nrm(0,"octa-mail-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function lo(_,ie){if(1&_&&e.nrm(0,"octa-mobile-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ko(_,ie){if(1&_&&e.nrm(0,"octa-number-fields",18),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function ml(_,ie){if(1&_&&e.nrm(0,"octa-password-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Pl(_,ie){if(1&_&&e.nrm(0,"octa-radio-button-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function xo(_,ie){if(1&_&&e.nrm(0,"octa-rich-text-editor-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Va(_,ie){if(1&_&&e.nrm(0,"octa-selection-matrix-fields",19),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function Ta(_,ie){if(1&_&&e.nrm(0,"octa-signature-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function gl(_,ie){if(1&_&&e.nrm(0,"octa-slider-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function nl(_,ie){if(1&_&&e.nrm(0,"octa-terms-and-condition-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ll(_,ie){if(1&_&&e.nrm(0,"octa-text-area-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ea(_,ie){if(1&_&&e.nrm(0,"octa-text-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Jn(_,ie){if(1&_&&e.nrm(0,"octa-toggle-switch-fields",19),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function ga(_,ie){if(1&_&&e.nrm(0,"octa-url-fields",17),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function vr(_,ie){if(1&_&&e.nrm(0,"octa-aggregate-function",18),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function ia(_,ie){1&_&&e.eu8(0)}const or=function(_,ie){return{grid:_,answer:ie,state:"child"}};function qn(_,ie){if(1&_&&(e.qex(0),e.DNE(1,ia,1,0,"ng-container",20),e.bVm()),2&_){const l=e.XpG(3).$implicit,k=e.XpG(2);e.R7$(1),e.Y8G("ngComponentOutlet",k.componentToLoad)("ngComponentOutletInputs",e.l_i(2,or,null==l||null==l.element?null:l.element.childLogics,null==l||null==l.element?null:l.element.answer))}}function Sa(_,ie){if(1&_&&(e.qex(0),e.DNE(1,qn,2,5,"ng-container",13),e.bVm()),2&_){const l=e.XpG(4);e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}function Bl(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,ec,1,1,"octa-check-box-fields",14),e.DNE(2,ma,1,1,"octa-date-time-fields",14),e.DNE(3,ao,1,1,"octa-drop-down-fields",14),e.DNE(4,wc,1,1,"octa-file-picker-fields",14),e.DNE(5,Ba,1,1,"octa-location-fields",14),e.DNE(6,na,1,1,"octa-mail-fields",14),e.DNE(7,lo,1,1,"octa-mobile-fields",14),e.DNE(8,ko,1,2,"octa-number-fields",15),e.DNE(9,ml,1,1,"octa-password-fields",14),e.DNE(10,Pl,1,1,"octa-radio-button-fields",14),e.DNE(11,xo,1,1,"octa-rich-text-editor-fields",14),e.DNE(12,Va,1,2,"octa-selection-matrix-fields",16),e.DNE(13,Ta,1,1,"octa-signature-fields",14),e.DNE(14,gl,1,1,"octa-slider-fields",14),e.DNE(15,nl,1,1,"octa-terms-and-condition-fields",14),e.DNE(16,Ll,1,1,"octa-text-area-fields",14),e.DNE(17,Ea,1,1,"octa-text-fields",14),e.DNE(18,Jn,1,2,"octa-toggle-switch-fields",16),e.DNE(19,ga,1,1,"octa-url-fields",14),e.DNE(20,vr,1,2,"octa-aggregate-function",15),e.DNE(21,Sa,2,1,"ng-container",13),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngIf","CHECK_BOX"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","DATE_TIME"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","DROP_DOWN"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","FILE_PICKER"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","LOCATION"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","EMAIL"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","MOBILE"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","NUMBER"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","PASSWORD"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","RADIO_BUTTON"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","RICH_TEXT_EDITOR"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","SELECTION_MATRIX"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","SIGNATURE"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","SLIDER"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","TERMS_AND_CONDITION"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","TEXT_AREA"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","TEXT_BOX"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","TOGGLE_SWITCH"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","URL"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf","AGGREGATE_FUNCTION"===l.element.formElement.elementType),e.R7$(1),e.Y8G("ngIf",null==l||null==l.element?null:l.element.childLogics)}}function Br(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-section-fields",21),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("section",l.element)}}function jc(_,ie){if(1&_&&(e.qex(0),e.DNE(1,Bl,22,21,"div",13),e.DNE(2,Br,2,1,"div",13),e.bVm()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType),e.R7$(1),e.Y8G("ngIf","SECTION"===l.entityType)}}function Js(_,ie){if(1&_&&(e.qSk(),e.joV(),e.j41(0,"div",11),e.DNE(1,jc,3,2,"ng-container",12),e.k0s()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngForOf",l.grid)}}let _l=(()=>{class _{constructor(l,k,M){this.data=l,this.validationService=k,this.dialogRef=M,this.acceptedLanguage="",this.childLogicCache={}}ngOnInit(){this.subForm=this.data.subForm,this.acceptedLanguage=this.data.acceptedLanguage,this.loadComponent()}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid?.element.childLogics},{provide:"state",useValue:"child"}]})}closeModal(){this.clearModal(),this.dialogRef.close()}saveSubmission(){let l=!0;const k=this.subForm.pageIndex??0;this.subForm.rows.forEach(M=>{M.grid.forEach($=>{if("QUESTION"===$.entityType){const ve=$.element,Et=null!=ve.answer&&("string"==typeof ve.answer&&""!==ve.answer.trim()||Array.isArray(ve.answer)&&ve.answer.length>0||"object"==typeof ve.answer&&Object.keys(ve.answer).length>0);ve.required&&!Et?(this.validationService.setInvalid(ve.id,"This question is required",k),l=!1):this.validationService.clearInvalid(ve.id)}})}),l&&this.dialogRef.close(this.subForm)}clearModal(){this.subForm&&this.subForm.rows&&this.subForm.rows.flatMap(l=>l.grid.forEach(k=>this.clearFormElement(k)))}clearFormElement(l){"QUESTION"===l.entityType&&(l.element.answer="",l.element.formElement&&(l.element.answer="FILE_PICKER"===l.element.formElement.elementType?null:""),l.element.childLogics&&l.element.childLogics?.forEach(k=>{k.showLogic=!1,k?.formElements?.forEach(M=>{this.clearFormElement(M)})}))}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(Di.Vh),e.rXU(we.B),e.rXU(Di.CP))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-submission-modal"]],decls:13,vars:2,consts:[[1,"mb-5"],[1,"modalHeader","mb-4"],[1,"title-div"],[1,"title"],[1,"header-btn"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg",3,"click"],["d","M8 8L16 16","stroke","#1D252D","stroke-linecap","round","stroke-linejoin","round"],["d","M16 8L8 16","stroke","#1D252D","stroke-linecap","round","stroke-linejoin","round"],["class","px-3",4,"ngFor","ngForOf"],[1,"okBtn","me-4","ms-4"],["type","button",1,"submitBtn","ms-md-3","me-md-2","rounded-pill",3,"click"],[1,"px-3"],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"question",4,"ngIf"],[3,"question","rowId",4,"ngIf"],[3,"question","acceptedLanguage",4,"ngIf"],[3,"question"],[3,"question","rowId"],[3,"question","acceptedLanguage"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[3,"section"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e.EFF(4),e.k0s()(),e.j41(5,"div",4),e.qSk(),e.j41(6,"svg",5),e.bIt("click",function(){return M.closeModal()}),e.nrm(7,"path",6)(8,"path",7),e.k0s()()(),e.DNE(9,Js,2,1,"div",8),e.joV(),e.j41(10,"div",9)(11,"button",10),e.bIt("click",function(){return M.saveSubmission()}),e.EFF(12," Ok "),e.k0s()()()),2&k&&(e.R7$(4),e.JRh(M.subForm.title),e.R7$(5),e.Y8G("ngForOf",M.subForm.rows))},dependencies:[h.OI,h.Sq,h.bT,mt,Vn,sn,ai,an,Ke,Ei,_e,Xs,er,Zs,oo,ls,Vs,Wr,nr,Pr,fa,ir,ne,sr],styles:[".modalHeader[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row}.modalHeader[_ngcontent-%COMP%] .title-div[_ngcontent-%COMP%]{width:90%;display:flex;justify-content:center;margin-top:5%}.modalHeader[_ngcontent-%COMP%] .title-div[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{height:24px;font-style:normal;font-weight:600;font-size:24px;font-weight:550;line-height:24px;text-align:center;color:#1d252d;letter-spacing:.5px}.modalHeader[_ngcontent-%COMP%] .header-btn[_ngcontent-%COMP%]{width:10%;margin-top:4%;display:flex;justify-content:center}.modalHeader[_ngcontent-%COMP%] .header-btn[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{font-size:20px;cursor:pointer}.submitBtn[_ngcontent-%COMP%]{background:#084fff;color:#fff;border:none;padding:10px 27px;width:auto}.okBtn[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-left:auto;margin-bottom:5px}"]})}}return _})();var ld=N(345),Zt=N(7675),si=N(9115),Io=N(9213);function Sr(_,ie){if(1&_&&(e.j41(0,"th",20),e.EFF(1),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.SpI(" ",l.element.question," ")}}const fs=function(_){return{hidden:_}};function vl(_,ie){if(1&_&&(e.j41(0,"td",21),e.nrm(1,"div",22),e.k0s()),2&_){const l=ie.$implicit,k=e.XpG().$implicit,M=e.XpG(2);let $,ve;e.Y8G("ngClass",e.eq3(2,fs,null==($=M.getAnswerByQuestionId(l,k.element.id))?null:$.isChild)),e.R7$(1),e.Y8G("innerHTML",null==(ve=M.getAnswerByQuestionId(l,k.element.id))?null:ve.htmlContent,e.npT)}}function tc(_,ie){1&_&&(e.qex(0,17),e.DNE(1,Sr,2,1,"th",18),e.DNE(2,vl,2,4,"td",19),e.bVm()),2&_&&e.Y8G("matColumnDef",ie.$implicit.element.question)}function sa(_,ie){if(1&_&&(e.qex(0),e.DNE(1,tc,3,1,"ng-container",16),e.bVm()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngForOf",l.grid)}}function ka(_,ie){1&_&&(e.j41(0,"th",23),e.EFF(1," Actions "),e.k0s())}function Dc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"td",24)(1,"div")(2,"button",25)(3,"mat-icon"),e.EFF(4,"more_vert"),e.k0s()(),e.j41(5,"mat-menu",null,26)(7,"button",27),e.bIt("click",function(){const M=e.eBV(l),$=M.index,ve=M.$implicit,Et=e.XpG();return e.Njj(Et.editSubFormSubmission($,ve))}),e.qSk(),e.j41(8,"svg",28),e.nrm(9,"rect",29)(10,"path",30)(11,"path",31),e.k0s()(),e.joV(),e.j41(12,"button",27),e.bIt("click",function(){const $=e.eBV(l).index,ve=e.XpG();return e.Njj(ve.deleteSubForm($))}),e.qSk(),e.j41(13,"svg",28),e.nrm(14,"rect",32)(15,"path",33)(16,"path",34)(17,"path",35)(18,"path",36)(19,"path",37),e.k0s()()()()()}if(2&_){const l=e.sdS(6);e.R7$(2),e.Y8G("matMenuTriggerFor",l)}}function Jd(_,ie){1&_&&e.nrm(0,"tr",38)}function oa(_,ie){1&_&&e.nrm(0,"tr",39)}let Vl=(()=>{class _{constructor(l,k){this.dialog=l,this.sanitizer=k,this.subForm={},this.subFormChange=new e.bkB,this.acceptedLanguage="",this.submissions=[],this.deletedSubmissions=[],this.displayedColumns=[]}ngOnInit(){this.subForm?.submissions&&(this.submissions=this.subForm.submissions,this.subForm.deletedSubmissions=[]),this.initializeDisplayedColumns()}initializeDisplayedColumns(){this.displayedColumns=this.subForm.rows.flatMap(l=>l.grid.map(k=>k.element.question)),this.displayedColumns.push("actions")}getAnswerByQuestionId(l,k){const M=l.answers.find(ve=>ve.questionId===k);if(!M)return null;let $="";return M.answer&&(Array.isArray(M.answer)?$=M.answer.map(Et=>"string"==typeof Et&&Et.includes("|")?Et.split("|")[0]:Et).join(", "):"string"==typeof M.answer&&($=M.answer.includes("|")?M.answer.split("|")[0]:M.answer)),M.htmlContent=this.sanitizer.bypassSecurityTrustHtml($),M}subFormSubmission(l){const k=($,ve=!1)=>{const Et=[];return $.flatMap(Dn=>Dn.grid.forEach(kn=>{const pi={questionId:kn.element.id,answer:kn.element?.answer||"",files:"FILE_PICKER"==kn.element.formElement.elementType&&kn.element.answer?kn.element.answer:void 0,isChild:ve};if("FILE_PICKER"==kn.element.formElement.elementType&&kn.element.answer){const ys=kn.element.answer.map(Or=>Or?._file.name);pi.answer=ys}Et.push(pi),kn.element.childLogics&&kn.element.childLogics.forEach(ys=>{ys.showLogic&&(Et.push(...k(ys.rows,!0)),ys.showLogic=!1)})})),Et},M=k(l.rows);M.length>0&&(this.submissions.push({submissionId:"",answers:M}),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions())}editSubFormSubmission(l,k){const M=this.bindAnswers(this.subForm,k),$=new Di.ru;$.position={top:"5%"},$.width="100%",$.data={subForm:M,acceptedLanguage:this.acceptedLanguage},$.hasBackdrop=!0,$.disableClose=!0,$.maxHeight="80vh",this.dialog.open(_l,$).afterClosed().subscribe(Et=>{Et&&this.updateSubmission(Et,l)})}bindAnswers(l,k){const M=(ve,Et)=>{ve.forEach(Dn=>{Dn.grid.forEach(kn=>{const pi=Et.find(ys=>ys.questionId===kn.element.id);pi&&(kn.element.answer="FILE_PICKER"==kn.element.formElement.elementType?pi?.files:pi.answer,kn.element.answerId=pi.answerId,kn.element.attachments=pi.attachments),kn.element.childLogics&&kn.element.childLogics.forEach(ys=>{M(ys.rows,Et)})})})},$={...l};return M($.rows,k.answers),$}deleteSubForm(l){const k=this.submissions[l];k.submissionId&&this.deletedSubmissions.push(k.submissionId),this.submissions.splice(l,1),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}addNewSubmission(){const l=this.cleanCircularReferences(this.subForm);l.rows.forEach($=>{$.grid.forEach(ve=>{ve.element.answer="FILE_PICKER"===ve.element.formElement.elementType?[]:"",ve.element.attachments=[],ve.element.answerId=null})});const k=new Di.ru;k.position={top:"5%"},k.width="100%",k.data={subForm:l,acceptedLanguage:this.acceptedLanguage},k.hasBackdrop=!0,k.disableClose=!0,k.maxHeight="80vh",k.autoFocus=!1,this.dialog.open(_l,k).afterClosed().subscribe($=>{$&&$.rows.flatMap(Et=>Et.grid.some(Dn=>Dn.element.answer&&Dn.element.answer.length>0))&&this.subFormSubmission($)})}cleanCircularReferences(l,k=new WeakSet){if(null===l||"object"!=typeof l)return l;if(k.has(l))return;k.add(l);const M=Array.isArray(l)?[]:{};for(const $ in l)Object.prototype.hasOwnProperty.call(l,$)&&(M[$]=this.cleanCircularReferences(l[$],k));return M}updateSubmission(l,k){const M=($,ve)=>{$.forEach(Et=>{Et.grid.forEach(Dn=>{let kn={questionId:Dn.element.id,answerId:Dn.element?.answerId||"",attachments:Dn.element.attachments||[],answer:[],files:[],deleteFiles:[]};if(kn.attachments&&(kn.answer=kn.attachments.map(pi=>pi.fileName)),"FILE_PICKER"===Dn.element.formElement.elementType){if(Dn.element?.deleteFiles.length>0&&(kn.answer=[],kn.deleteFiles=kn.deleteFiles||[],Dn.element.deleteFiles.forEach(pi=>{kn.deleteFiles?.push(pi)}),kn.attachments&&(kn.attachments=kn.attachments.filter(pi=>!Dn.element.deleteFiles.includes(pi.fileId)),kn.answer=kn.attachments.map(pi=>pi.fileName))),Dn.element.answer){kn.files=Dn.element.answer;let pi=Array.isArray(kn.answer)?[...kn.answer]:[];Dn.element.answer.forEach(ys=>{const Or=ys._file?.name;pi.includes(Or)||pi.push(Or)}),kn.answer=pi}}else kn={questionId:Dn.element.id,answerId:Dn.element?.answerId||"",attachments:Dn.element.attachments,answer:Dn.element.answer};Dn.element.answer="",ve.push(kn),Dn.element.childLogics&&Dn.element.childLogics.forEach(pi=>{pi.showLogic&&M(pi.rows,ve)})})})};this.submissions[k].answers=[],M(l.rows,this.submissions[k].answers),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions(),this.clearEmptyRows()}updateSubFormWithSubmissions(){this.subForm.submissions=this.submissions,this.subForm.deletedSubmissions=this.deletedSubmissions,this.subFormChange.emit(this.subForm)}clearEmptyRows(){const l=[],k=[];this.submissions.forEach(M=>{M.answers.some($=>""!==$.answer)?l.push(M):M.submissionId&&k.push(M.submissionId)}),this.submissions=l,this.deletedSubmissions.push(...k),this.updateSubFormWithSubmissions()}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(Di.bZ),e.rXU(ld.up))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-multiple-subform"]],inputs:{subForm:"subForm",acceptedLanguage:"acceptedLanguage"},outputs:{subFormChange:"subFormChange"},decls:17,vars:4,consts:[["tabindex","0",1,"example-container"],[1,"table-container"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],[4,"ngFor","ngForOf"],["matColumnDef","actions","stickyEnd",""],["mat-header-cell","","class","border border-1",4,"matHeaderCellDef"],["mat-cell","","class","text-center border border-1",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"footer"],[1,"addNewBtn",3,"click"],["width","15","height","14","viewBox","0 0 15 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.5556 13.2778H2.44444C1.64639 13.2778 1 12.6673 1 11.9136V2.3642C1 1.61048 1.64639 1 2.44444 1H12.5556C13.3536 1 14 1.61048 14 2.3642V11.9136C14 12.6673 13.3536 13.2778 12.5556 13.2778Z","stroke","#D8D8D8","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],["d","M5.3335 7.50347H9.66683","stroke","#084FFF","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],["d","M7.50005 5.33594V9.66927","stroke","#084FFF","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],[1,"ms-2","text-decoration-none"],[3,"matColumnDef",4,"ngFor","ngForOf"],[3,"matColumnDef"],["mat-header-cell","","class","border border-1 column-width",4,"matHeaderCellDef"],["mat-cell","","class","border border-1",3,"ngClass",4,"matCellDef"],["mat-header-cell","",1,"border","border-1","column-width"],["mat-cell","",1,"border","border-1",3,"ngClass"],[3,"innerHTML"],["mat-header-cell","",1,"border","border-1"],["mat-cell","",1,"text-center","border","border-1"],["mat-icon-button","","aria-label","Example icon-button with a menu",1,"btn",3,"matMenuTriggerFor"],["menu","matMenu"],["mat-menu-item","",3,"click"],["width","29","height","28","viewBox","0 0 29 28","fill","none","xmlns","http://www.w3.org/2000/svg"],["x","0.5","y","0.5","width","28","height","26.4737","rx","5.5","fill","white","stroke","#D8D8D8"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.0009 19.0787H9.1582V16.2361C9.1582 15.9447 9.2739 15.6653 9.47999 15.4593L16.2224 8.71686C16.4284 8.5105 16.708 8.39453 16.9995 8.39453C17.2911 8.39453 17.5707 8.5105 17.7767 8.71686L19.5201 10.4603C19.7264 10.6663 19.8424 10.9458 19.8424 11.2374C19.8424 11.529 19.7264 11.8086 19.5201 12.0145L12.7777 18.757C12.5715 18.9628 12.2922 19.0785 12.0009 19.0787Z","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M15.1704 10.3984L17.8415 13.0695","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["x","0.5","y","0.5","width","27.6402","height","26.1328","rx","5.5","fill","white","stroke","#D8D8D8"],["d","M8.60449 9.20637H20.0354","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M19.2189 9.20703V17.7863C19.2189 18.6482 18.4881 19.3462 17.5859 19.3462H11.0539C10.1517 19.3462 9.4209 18.6482 9.4209 17.7863V9.20703","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M16.7696 6.67122H11.8706","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M12.6871 12.3242V16.2239","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["d","M15.9532 12.3242V16.2239","stroke","#084FFF","stroke-linecap","round","stroke-linejoin","round"],["mat-header-row",""],["mat-row",""]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"table",2),e.DNE(3,sa,2,1,"ng-container",3),e.qex(4,4),e.DNE(5,ka,2,0,"th",5),e.DNE(6,Dc,20,1,"td",6),e.bVm(),e.DNE(7,Jd,1,0,"tr",7),e.DNE(8,oa,1,0,"tr",8),e.k0s()(),e.j41(9,"div",9)(10,"div",10),e.bIt("click",function(){return M.addNewSubmission()}),e.qSk(),e.j41(11,"svg",11),e.nrm(12,"path",12)(13,"path",13)(14,"path",14),e.k0s(),e.joV(),e.j41(15,"a",15),e.EFF(16,"Add New"),e.k0s()()()()),2&k&&(e.R7$(2),e.Y8G("dataSource",M.submissions),e.R7$(1),e.Y8G("ngForOf",M.subForm.rows),e.R7$(4),e.Y8G("matHeaderRowDef",M.displayedColumns),e.R7$(1),e.Y8G("matRowDefColumns",M.displayedColumns))},dependencies:[h.YU,h.Sq,Zt.Zl,Zt.tL,Zt.ji,Zt.cC,Zt.YV,Zt.iL,Zt.KS,Zt.$R,Zt.YZ,Zt.NB,si.kk,si.fb,si.Cp,Io.An],styles:[".table-container[_ngcontent-%COMP%]{overflow-x:auto;width:100%}.table-container[_ngcontent-%COMP%] .mat-table-sticky[_ngcontent-%COMP%]{background:white;z-index:1}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;cursor:pointer;margin-top:15px}.hidden[_ngcontent-%COMP%]{display:none}.dropdown-menu[_ngcontent-%COMP%]{position:relative;z-index:999}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#dbd9d9;border-radius:6px} .mat-mdc-menu-panel{min-width:65px!important}table[_ngcontent-%COMP%]{border-collapse:separate!important}.column-width[_ngcontent-%COMP%]{min-width:300px;max-width:500px;white-space:nowrap}"]})}}return _})();function co(_,ie){if(1&_&&(e.j41(0,"th",20),e.EFF(1),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.SpI(" ",l.element.question," ")}}function rr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-check-box-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function A(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-date-time-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function V(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-drop-down-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function O(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-file-picker-fields",30),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))})("inlineDeleteFiles",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateDeletedFiles($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function j(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-location-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Q(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mail-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Te(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mobile-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Je(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-number-fields",31),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2),k=l.$implicit,M=l.index,$=e.XpG().$implicit,ve=e.XpG(2);e.Y8G("inLine",!0)("question",ve.getSubmissionQuestion(k,$))("rowId",M)}}function Xt(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-password-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Ht(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-radio-button-fields",31),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2),k=l.$implicit,M=l.index,$=e.XpG().$implicit,ve=e.XpG(2);e.Y8G("inLine",!0)("question",ve.getSubmissionQuestion(k,$))("rowId",M)}}function Pn(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-rich-text-editor-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function wi(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-selection-matrix-fields",32),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2),k=l.$implicit,M=l.index,$=e.XpG().$implicit,ve=e.XpG(2);e.Y8G("inLine",!0)("question",ve.getSubmissionQuestion(k,$))("acceptedLanguage",ve.acceptedLanguage)("rowId",M)}}function bs(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-signature-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Fi(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-slider-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function kr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-terms-and-condition-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Ts(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-area-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Vr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function il(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-toggle-switch-fields",33),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))("acceptedLanguage",M.acceptedLanguage)}}function ra(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-url-fields",29),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG().$implicit,M=e.XpG(2);e.Y8G("inLine",!0)("question",M.getSubmissionQuestion(l,k))}}function Mc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-aggregate-function",31),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG().$implicit,Et=e.XpG(2);return e.Njj(Et.updateInlineAnswer($,ve.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2),k=l.$implicit,M=l.index,$=e.XpG().$implicit,ve=e.XpG(2);e.Y8G("inLine",!0)("question",ve.getSubmissionQuestion(k,$))("rowId",M)}}function eu(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",23),e.DNE(2,rr,1,2,"octa-check-box-fields",24),e.DNE(3,A,1,2,"octa-date-time-fields",24),e.DNE(4,V,1,2,"octa-drop-down-fields",24),e.DNE(5,O,1,2,"octa-file-picker-fields",25),e.DNE(6,j,1,2,"octa-location-fields",24),e.DNE(7,Q,1,2,"octa-mail-fields",24),e.DNE(8,Te,1,2,"octa-mobile-fields",24),e.DNE(9,Je,1,3,"octa-number-fields",26),e.DNE(10,Xt,1,2,"octa-password-fields",24),e.DNE(11,Ht,1,3,"octa-radio-button-fields",26),e.DNE(12,Pn,1,2,"octa-rich-text-editor-fields",24),e.DNE(13,wi,1,4,"octa-selection-matrix-fields",27),e.DNE(14,bs,1,2,"octa-signature-fields",24),e.DNE(15,Fi,1,2,"octa-slider-fields",24),e.DNE(16,kr,1,2,"octa-terms-and-condition-fields",24),e.DNE(17,Ts,1,2,"octa-text-area-fields",24),e.DNE(18,Vr,1,2,"octa-text-fields",24),e.DNE(19,il,1,3,"octa-toggle-switch-fields",28),e.DNE(20,ra,1,2,"octa-url-fields",24),e.DNE(21,Mc,1,3,"octa-aggregate-function",26),e.k0s()()),2&_){const l=e.XpG(2).$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION")}}function Ed(_,ie){if(1&_&&(e.j41(0,"td",21),e.DNE(1,eu,22,21,"div",22),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType)}}function Jo(_,ie){1&_&&(e.qex(0,17),e.DNE(1,co,2,1,"th",18),e.DNE(2,Ed,2,1,"td",19),e.bVm()),2&_&&e.Y8G("matColumnDef",ie.$implicit.element.question)}function ja(_,ie){if(1&_&&(e.qex(0),e.DNE(1,Jo,3,1,"ng-container",16),e.bVm()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngForOf",l.grid)}}function js(_,ie){1&_&&(e.j41(0,"th",34),e.EFF(1," Actions "),e.k0s())}function bl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"td",35)(1,"button",36),e.bIt("click",function(){const $=e.eBV(l).index,ve=e.XpG();return e.Njj(ve.deleteSubmission($))}),e.nrm(2,"i",37),e.k0s()()}}function jl(_,ie){1&_&&e.nrm(0,"tr",38)}function Tc(_,ie){1&_&&e.nrm(0,"tr",39)}let _a=(()=>{class _{constructor(){this.subForm={},this.subFormChange=new e.bkB,this.acceptedLanguage="",this.submissions=[],this.deletedSubmissions=[],this.displayedColumns=[]}ngOnInit(){this.subForm?.submissions&&(this.submissions=this.subForm.submissions,this.subForm.deletedSubmissions=[]),this.initializeDisplayedColumns()}initializeDisplayedColumns(){this.displayedColumns=this.subForm.rows.flatMap(l=>l.grid.map(k=>k.element.question)),this.displayedColumns.push("actions")}addNewSubmission(){const l=[];this.subForm.rows.forEach(M=>{M.grid.forEach($=>{"QUESTION"===$.entityType&&$.element&&$.element.id&&l.push({questionId:$.element.id,answer:""})})}),this.submissions.push({submissionId:"",answers:l}),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}updateSubFormWithSubmissions(){this.subForm.submissions=this.submissions,this.subForm.deletedSubmissions=this.deletedSubmissions,this.subFormChange.emit(this.subForm)}getSubmissionQuestion(l,k){const M=l.answers.find(ve=>ve.questionId===k.element.id),$={...k.element};return $.answer=M?M.answer:"",$.attachments=M?.attachments?M.attachments:[],$}updateInlineAnswer(l,k,M){const $=this.submissions.indexOf(l);if($>-1){const ve=this.submissions[$].answers.find(Et=>Et.questionId===k.id);if(k.formElement&&"FILE_PICKER"===k.formElement.elementType){let Et=[];M&&Array.isArray(M)&&(Et=M.map(kn=>kn?._file?.name));let Dn=[];if(k.deleteFiles&&k.deleteFiles.length>0&&(Dn=k.deleteFiles),ve)ve.files=M,ve.answer=Et,ve.deleteFiles||(ve.deleteFiles=[]),Dn.forEach(kn=>{ve.deleteFiles.includes(kn)||ve.deleteFiles.push(kn)});else{const kn={questionId:k.id,files:M,answer:Et,deleteFiles:Dn.length>0?[...Dn]:[]};this.submissions[$].answers.push(kn)}}else ve?ve.answer=M:this.submissions[$].answers.push({questionId:k.id,answer:M});this.updateSubFormWithSubmissions()}}updateDeletedFiles(l,k,M){const $=l.answers.find(ve=>ve.questionId===k.id);$&&($.deleteFiles||($.deleteFiles=[]),M.forEach(ve=>{$.deleteFiles.includes(ve)||$.deleteFiles.push(ve)}))}deleteSubmission(l){const k=this.submissions[l];k.submissionId&&this.deletedSubmissions.push(k.submissionId),this.submissions.splice(l,1),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}clearEmptySubmissions(){const l=[],k=[];this.submissions.forEach(M=>{M.answers.some(ve=>""!==ve.answer&&null!=ve.answer)?l.push(M):M.submissionId&&k.push(M.submissionId)}),this.submissions=l,this.deletedSubmissions.push(...k),this.updateSubFormWithSubmissions()}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-inline-multiple-subform"]],inputs:{subForm:"subForm",acceptedLanguage:"acceptedLanguage"},outputs:{subFormChange:"subFormChange"},decls:17,vars:4,consts:[["tabindex","0",1,"example-container"],[1,"table-container"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],[4,"ngFor","ngForOf"],["matColumnDef","actions","stickyEnd",""],["mat-header-cell","","class","border border-1 action-column",4,"matHeaderCellDef"],["mat-cell","","class","border-cell text-center",4,"matCellDef"],["mat-header-row","","class","border-row",4,"matHeaderRowDef"],["mat-row","","class","border-row",4,"matRowDef","matRowDefColumns"],[1,"footer"],[1,"addNewBtn",3,"click"],["width","15","height","14","viewBox","0 0 15 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M12.5556 13.2778H2.44444C1.64639 13.2778 1 12.6673 1 11.9136V2.3642C1 1.61048 1.64639 1 2.44444 1H12.5556C13.3536 1 14 1.61048 14 2.3642V11.9136C14 12.6673 13.3536 13.2778 12.5556 13.2778Z","stroke","#D8D8D8","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],["d","M5.3335 7.50347H9.66683","stroke","#084FFF","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],["d","M7.50005 5.33594V9.66927","stroke","#084FFF","stroke-width","0.8","stroke-linecap","round","stroke-linejoin","round"],[1,"ms-2","text-decoration-none"],[3,"matColumnDef",4,"ngFor","ngForOf"],[3,"matColumnDef"],["mat-header-cell","","class","border border-1 column-width",4,"matHeaderCellDef"],["mat-cell","","class","border-cell column-width",4,"matCellDef"],["mat-header-cell","",1,"border","border-1","column-width"],["mat-cell","",1,"border-cell","column-width"],[4,"ngIf"],[3,"ngSwitch"],[3,"inLine","question","answerChange",4,"ngSwitchCase"],[3,"inLine","question","answerChange","inlineDeleteFiles",4,"ngSwitchCase"],[3,"inLine","question","rowId","answerChange",4,"ngSwitchCase"],[3,"inLine","question","acceptedLanguage","rowId","answerChange",4,"ngSwitchCase"],[3,"inLine","question","acceptedLanguage","answerChange",4,"ngSwitchCase"],[3,"inLine","question","answerChange"],[3,"inLine","question","answerChange","inlineDeleteFiles"],[3,"inLine","question","rowId","answerChange"],[3,"inLine","question","acceptedLanguage","rowId","answerChange"],[3,"inLine","question","acceptedLanguage","answerChange"],["mat-header-cell","",1,"border","border-1","action-column"],["mat-cell","",1,"border-cell","text-center"],[1,"delete-button",3,"click"],[1,"bi","bi-trash"],["mat-header-row","",1,"border-row"],["mat-row","",1,"border-row"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"table",2),e.DNE(3,ja,2,1,"ng-container",3),e.qex(4,4),e.DNE(5,js,2,0,"th",5),e.DNE(6,bl,3,0,"td",6),e.bVm(),e.DNE(7,jl,1,0,"tr",7),e.DNE(8,Tc,1,0,"tr",8),e.k0s()(),e.j41(9,"div",9)(10,"div",10),e.bIt("click",function(){return M.addNewSubmission()}),e.qSk(),e.j41(11,"svg",11),e.nrm(12,"path",12)(13,"path",13)(14,"path",14),e.k0s(),e.joV(),e.j41(15,"a",15),e.EFF(16,"Add New"),e.k0s()()()()),2&k&&(e.R7$(2),e.Y8G("dataSource",M.submissions),e.R7$(1),e.Y8G("ngForOf",M.subForm.rows),e.R7$(4),e.Y8G("matHeaderRowDef",M.displayedColumns),e.R7$(1),e.Y8G("matRowDefColumns",M.displayedColumns))},dependencies:[h.Sq,h.bT,h.ux,h.e1,mt,Vn,sn,ai,an,Ke,Ei,_e,Xs,er,Zs,oo,ls,Vs,Wr,nr,Pr,fa,ir,sr,Zt.Zl,Zt.tL,Zt.ji,Zt.cC,Zt.YV,Zt.iL,Zt.KS,Zt.$R,Zt.YZ,Zt.NB],styles:[".table-container[_ngcontent-%COMP%]{overflow-x:auto;width:100%}.table-container[_ngcontent-%COMP%] .mat-table-sticky[_ngcontent-%COMP%]{background:white;z-index:1}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;align-items:center;cursor:pointer;margin-top:15px}.hidden[_ngcontent-%COMP%]{display:none}.dropdown-menu[_ngcontent-%COMP%]{position:relative;z-index:999}[_ngcontent-%COMP%]::-webkit-scrollbar{width:2px;height:8px}[_ngcontent-%COMP%]::-webkit-scrollbar-track{background-color:transparent}[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#dbd9d9;border-radius:6px} .mat-mdc-menu-panel{min-width:65px!important}table[_ngcontent-%COMP%]{border-collapse:separate!important}.border-row[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .border-row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #d8d8d8}.border-cell[_ngcontent-%COMP%]{padding-top:10px;padding-bottom:10px}.delete-button[_ngcontent-%COMP%]{border:none;background-color:#fff;font-size:20px}.action-column[_ngcontent-%COMP%]{width:30px;padding-left:5px;padding-right:5px}.column-width[_ngcontent-%COMP%]{min-width:320px;white-space:nowrap} .ql-toolbar.ql-snow{display:flex}"]})}}return _})();function cd(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",6)(1,"img",7),e.bIt("click",function(){e.eBV(l);const M=e.XpG().index,$=e.XpG();return e.Njj($.deleteSubmission(M))}),e.k0s()()}}function Ga(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-check-box-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function sl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-date-time-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function eo(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-drop-down-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function xr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-file-picker-fields",21),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))})("inlineDeleteFiles",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateDeletedFiles(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Gs(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-location-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function xa(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mail-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Ha(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-mobile-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function nc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-number-fields",22),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("rowId","0")}}function Ec(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-password-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function to(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-radio-button-fields",22),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2),M=k.$implicit,$=k.index,ve=e.XpG();e.Y8G("question",ve.getSubmissionQuestion(M,l))("rowId",$)}}function Sc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-rich-text-editor-fields",23),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("inSubForm",!0)}}function ol(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-selection-matrix-fields",24),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2),M=k.$implicit,$=k.index,ve=e.XpG();e.Y8G("question",ve.getSubmissionQuestion(M,l))("acceptedLanguage",ve.acceptedLanguage)("rowId",$)}}function yl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-slider-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function dd(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-terms-and-condition-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Ua(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-area-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function Cl(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-text-fields",25),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("inCard",!0)}}function yo(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-toggle-switch-fields",26),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("acceptedLanguage",M.acceptedLanguage)}}function Ia(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-url-fields",20),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))}}function kc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-aggregate-function",22),e.bIt("answerChange",function(M){e.eBV(l);const $=e.XpG(2).$implicit,ve=e.XpG(2).$implicit,Et=e.XpG();return e.Njj(Et.updateAnswer(ve,$.element,M))}),e.k0s()}if(2&_){const l=e.XpG(2).$implicit,k=e.XpG(2).$implicit,M=e.XpG();e.Y8G("question",M.getSubmissionQuestion(k,l))("rowId","0")}}function br(_,ie){1&_&&e.eu8(0)}const va=function(_,ie){return{grid:_,answer:ie,state:"child"}};function wl(_,ie){if(1&_&&(e.qex(0),e.DNE(1,br,1,0,"ng-container",27),e.bVm()),2&_){const l=e.XpG(3).$implicit,k=e.XpG(3);e.R7$(1),e.Y8G("ngComponentOutlet",k.componentToLoad)("ngComponentOutletInputs",e.l_i(2,va,null==l||null==l.element?null:l.element.childLogics,null==l||null==l.element?null:l.element.answer))}}function $a(_,ie){if(1&_&&(e.qex(0),e.DNE(1,wl,2,5,"ng-container",11),e.bVm()),2&_){const l=e.XpG(5);e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}function Dl(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",12),e.DNE(2,Ga,1,1,"octa-check-box-fields",13),e.DNE(3,sl,1,1,"octa-date-time-fields",13),e.DNE(4,eo,1,1,"octa-drop-down-fields",13),e.DNE(5,xr,1,1,"octa-file-picker-fields",14),e.DNE(6,Gs,1,1,"octa-location-fields",13),e.DNE(7,xa,1,1,"octa-mail-fields",13),e.DNE(8,Ha,1,1,"octa-mobile-fields",13),e.DNE(9,nc,1,2,"octa-number-fields",15),e.DNE(10,Ec,1,1,"octa-password-fields",13),e.DNE(11,to,1,2,"octa-radio-button-fields",15),e.DNE(12,Sc,1,2,"octa-rich-text-editor-fields",16),e.DNE(13,ol,1,3,"octa-selection-matrix-fields",17),e.DNE(14,yl,1,1,"octa-slider-fields",13),e.DNE(15,dd,1,1,"octa-terms-and-condition-fields",13),e.DNE(16,Ua,1,1,"octa-text-area-fields",13),e.DNE(17,Cl,1,2,"octa-text-fields",18),e.DNE(18,yo,1,2,"octa-toggle-switch-fields",19),e.DNE(19,Ia,1,1,"octa-url-fields",13),e.DNE(20,kc,1,2,"octa-aggregate-function",15),e.k0s(),e.DNE(21,$a,2,1,"ng-container",11),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION"),e.R7$(1),e.Y8G("ngIf",null==l||null==l.element?null:l.element.childLogics)}}function ic(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-section-fields",28),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("section",l.element)}}const sc=function(_){return{"width.%":_}};function ba(_,ie){if(1&_&&(e.j41(0,"div",10),e.DNE(1,Dl,22,21,"div",11),e.DNE(2,ic,2,1,"div",11),e.k0s()),2&_){const l=ie.$implicit;e.Y8G("ngStyle",e.eq3(3,sc,l.element.count*(100/12))),e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType),e.R7$(1),e.Y8G("ngIf","SECTION"===l.entityType)}}function xc(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",8),e.DNE(2,ba,3,5,"div",9),e.k0s()()),2&_){const l=ie.$implicit;e.R7$(2),e.Y8G("ngForOf",l.grid)}}function Gc(_,ie){if(1&_&&(e.qex(0),e.j41(1,"div",3),e.DNE(2,cd,2,0,"div",4),e.DNE(3,xc,3,1,"div",5),e.k0s(),e.bVm()),2&_){const l=ie.$implicit,k=e.XpG();e.R7$(2),e.Y8G("ngIf",null==l.configuration?null:l.configuration.allowDelete),e.R7$(1),e.Y8G("ngForOf",k.subForm.rows)}}let jr=(()=>{class _{constructor(){this.subForm={},this.acceptedLanguage="",this.edit=!1,this.submissions=[],this.deletedSubmissions=[],this.subFormChange=new e.bkB}ngOnInit(){this.loadComponent(),this.edit&&this.subForm?.submissions?(this.submissions=this.subForm.submissions,this.subForm.deletedSubmissions=[]):this.submissions=this.generateSubmissionsFromDefaultAnswers(this.subForm),this.submissions?.length&&this.updateSubFormWithSubmissions()}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid?.element.childLogics},{provide:"state",useValue:"child"}]})}generateSubmissionsFromDefaultAnswers(l){return l.defaultAnswers&&Array.isArray(l.defaultAnswers.answers)?l.defaultAnswers.answers.map(k=>({submissionId:"",configuration:{isDefault:!0,allowDelete:k.isDeleteEnable},answers:k.defaultQuestionsAnswers.map($=>({questionId:$.questionId,answer:$.defaultAnswer,attachments:[]}))})):[]}trackBySubmissionId(l,k){return k?.submissionId||l}getSubmissionQuestion(l,k){const M=l.answers.find(ve=>ve.questionId===k.element.id),$={...k.element};return $.answer=M?M.answer:"",$.defaultValue="",$.disableEdit=!!l.configuration?.isDefault&&$.disableEdit,$.attachments=M?.attachments?M.attachments:[],$}addNewSubmission(){const l=[];this.subForm.rows.forEach(M=>{M.grid.forEach($=>{"QUESTION"===$.entityType&&$.element&&$.element.id&&l.push({questionId:$.element.id,answer:""})})}),this.submissions.push({submissionId:"",answers:l,configuration:{isDefault:!1,allowDelete:!0}}),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}updateSubFormWithSubmissions(){this.subForm.submissions=this.submissions,this.subForm.deletedSubmissions=this.deletedSubmissions,this.subFormChange.emit(this.subForm)}updateAnswer(l,k,M){const $=this.submissions.indexOf(l);if($>-1){const ve=this.submissions[$].answers.find(Et=>Et.questionId===k.id);if(k.formElement&&"FILE_PICKER"===k.formElement.elementType){let Et=[];M&&Array.isArray(M)&&(Et=M.map(kn=>kn?._file?.name));let Dn=[];if(k.deleteFiles&&k.deleteFiles.length>0&&(Dn=k.deleteFiles),ve)ve.files=M,ve.answer=Et,ve.deleteFiles||(ve.deleteFiles=[]),Dn.forEach(kn=>{ve.deleteFiles.includes(kn)||ve.deleteFiles.push(kn)});else{const kn={questionId:k.id,files:M,answer:Et,deleteFiles:Dn.length>0?[...Dn]:[]};this.submissions[$].answers.push(kn)}}else ve?ve.answer=M:this.submissions[$].answers.push({questionId:k.id,answer:M});this.updateSubFormWithSubmissions()}}updateDeletedFiles(l,k,M){const $=l.answers.find(ve=>ve.questionId===k.id);$&&($.deleteFiles||($.deleteFiles=[]),M.forEach(ve=>{$.deleteFiles.includes(ve)||$.deleteFiles.push(ve)}))}deleteSubmission(l){const k=this.submissions[l];k.submissionId&&this.deletedSubmissions.push(k.submissionId),this.submissions.splice(l,1),this.submissions=[...this.submissions],this.updateSubFormWithSubmissions()}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-card-subform"]],inputs:{subForm:"subForm",acceptedLanguage:"acceptedLanguage",edit:"edit"},outputs:{subFormChange:"subFormChange"},decls:4,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],[1,"subform-footer"],[1,"btn","btn-primary",3,"click"],[1,"card-subform","mb-4"],["class","delete d-flex justify-content-end me-4 mb-2 mt-2",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"delete","d-flex","justify-content-end","me-4","mb-2","mt-2"],["src","/assets/octa-form-submission-webcomponent/icons/delete-icon.svg","alt","delete",1,"delete-icon",3,"click"],[1,"d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[4,"ngIf"],[3,"ngSwitch"],[3,"question","answerChange",4,"ngSwitchCase"],[3,"question","answerChange","inlineDeleteFiles",4,"ngSwitchCase"],[3,"question","rowId","answerChange",4,"ngSwitchCase"],[3,"question","inSubForm","answerChange",4,"ngSwitchCase"],[3,"question","acceptedLanguage","rowId","answerChange",4,"ngSwitchCase"],[3,"question","inCard","answerChange",4,"ngSwitchCase"],[3,"question","acceptedLanguage","answerChange",4,"ngSwitchCase"],[3,"question","answerChange"],[3,"question","answerChange","inlineDeleteFiles"],[3,"question","rowId","answerChange"],[3,"question","inSubForm","answerChange"],[3,"question","acceptedLanguage","rowId","answerChange"],[3,"question","inCard","answerChange"],[3,"question","acceptedLanguage","answerChange"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[3,"section"]],template:function(k,M){1&k&&(e.DNE(0,Gc,4,2,"ng-container",0),e.j41(1,"div",1)(2,"button",2),e.bIt("click",function(){return M.addNewSubmission()}),e.EFF(3,"Add New Submission"),e.k0s()()),2&k&&e.Y8G("ngForOf",M.submissions)("ngForTrackBy",M.trackBySubmissionId)},dependencies:[h.OI,h.Sq,h.bT,h.B3,h.ux,h.e1,mt,Vn,sn,ai,an,Ke,Ei,_e,Xs,er,Zs,oo,Vs,Wr,nr,Pr,fa,ir,ne,sr],styles:[".card-subform[_ngcontent-%COMP%]{background:#f9f6f6;border-radius:6px;padding:8px 0}.delete-icon[_ngcontent-%COMP%]{cursor:pointer;margin-right:10px;width:36px;height:36px;fill:none}.delete-icon[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:#084fff;stroke-linecap:round;stroke-linejoin:round}.delete-icon[_ngcontent-%COMP%] rect[_ngcontent-%COMP%]{stroke:#d8d8d8;fill:#fff;width:35px;height:35px}"]})}}return _})();function oc(_,ie){if(1&_){const l=e.RV6();e.j41(0,"img",14),e.bIt("click",function(){e.eBV(l);const M=e.XpG(3);return e.Njj(M.copySubform())}),e.k0s()}}function $s(_,ie){if(1&_){const l=e.RV6();e.j41(0,"img",15),e.bIt("click",function(){e.eBV(l);const M=e.XpG(3);return e.Njj(M.deleteMainSubform(M.subForm.id))}),e.k0s()}}function zo(_,ie){if(1&_&&(e.qex(0),e.j41(1,"div",7)(2,"div",8)(3,"p",9),e.EFF(4),e.k0s(),e.nrm(5,"p",10),e.k0s(),e.j41(6,"div",11),e.DNE(7,oc,1,0,"img",12),e.DNE(8,$s,1,0,"img",13),e.k0s()(),e.bVm()),2&_){const l=e.XpG(2);e.R7$(4),e.JRh(l.subForm.title),e.R7$(1),e.Y8G("innerHTML",l.decodedDescription,e.npT),e.R7$(2),e.Y8G("ngIf",l.allowCopy),e.R7$(1),e.Y8G("ngIf",l.allowDelete)}}function Ya(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div",16),e.bIt("click",function(){e.eBV(l);const M=e.XpG(2);return e.Njj(M.deleteCopySubform(M.subForm.id))}),e.nrm(1,"img",17),e.k0s(),e.j41(2,"div",18)(3,"p"),e.EFF(4,"Title"),e.k0s(),e.j41(5,"input",19),e.bIt("ngModelChange",function(M){e.eBV(l);const $=e.XpG(2);return e.Njj($.subformTitle=M)})("ngModelChange",function(M){e.eBV(l);const $=e.XpG(2);return e.Njj($.updateSubformData(M,$.subForm.id,"title"))}),e.k0s(),e.j41(6,"p",20),e.EFF(7,"Description"),e.k0s(),e.j41(8,"quill-editor",21),e.bIt("ngModelChange",function(M){e.eBV(l);const $=e.XpG(2);return e.Njj($.subformDescription=M)})("ngModelChange",function(M){e.eBV(l);const $=e.XpG(2);return e.Njj($.updateSubformData(M,$.subForm.id,"description"))})("onEditorCreated",function(M){e.eBV(l);const $=e.XpG(2);return e.Njj($.editorCreated(M))}),e.k0s()()}if(2&_){const l=e.XpG(2);e.R7$(5),e.Y8G("ngModel",l.subformTitle),e.R7$(3),e.Y8G("ngModel",l.subformDescription)}}function yr(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-multiple-subform",24),e.bIt("subFormChange",function(M){e.eBV(l);const $=e.XpG(3);return e.Njj($.updateSubFormWithSubmissions(M))}),e.k0s()}if(2&_){const l=e.XpG(3);e.Y8G("subForm",l.subForm)("acceptedLanguage",l.acceptedLanguage)}}function Ic(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-inline-multiple-subform",24),e.bIt("subFormChange",function(M){e.eBV(l);const $=e.XpG(3);return e.Njj($.updateSubFormWithSubmissions(M))}),e.k0s()}if(2&_){const l=e.XpG(3);e.Y8G("subForm",l.subForm)("acceptedLanguage",l.acceptedLanguage)}}function Oa(_,ie){if(1&_){const l=e.RV6();e.j41(0,"octa-card-subform",25),e.bIt("subFormChange",function(M){e.eBV(l);const $=e.XpG(3);return e.Njj($.updateSubFormWithSubmissions(M))}),e.k0s()}if(2&_){const l=e.XpG(3);e.Y8G("subForm",l.subForm)("acceptedLanguage",l.acceptedLanguage)("edit",l.edit)}}function Hc(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,yr,1,2,"octa-multiple-subform",22),e.DNE(2,Ic,1,2,"octa-inline-multiple-subform",22),e.DNE(3,Oa,1,3,"octa-card-subform",23),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.Y8G("ngIf","table"===l.subForm.property.subFormType),e.R7$(1),e.Y8G("ngIf","inline"===l.subForm.property.subFormType),e.R7$(1),e.Y8G("ngIf","card"===l.subForm.property.subFormType)}}function Gl(_,ie){if(1&_&&e.nrm(0,"octa-check-box-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ml(_,ie){if(1&_&&e.nrm(0,"octa-date-time-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Hl(_,ie){if(1&_&&e.nrm(0,"octa-drop-down-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Uc(_,ie){if(1&_&&e.nrm(0,"octa-file-picker-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Oc(_,ie){if(1&_&&e.nrm(0,"octa-location-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function di(_,ie){if(1&_&&e.nrm(0,"octa-mail-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ra(_,ie){if(1&_&&e.nrm(0,"octa-mobile-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Cr(_,ie){if(1&_&&e.nrm(0,"octa-number-fields",35),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function Sd(_,ie){if(1&_&&e.nrm(0,"octa-password-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function rc(_,ie){if(1&_&&e.nrm(0,"octa-radio-button-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function kd(_,ie){if(1&_&&e.nrm(0,"octa-rich-text-editor-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Tl(_,ie){if(1&_&&e.nrm(0,"octa-selection-matrix-fields",36),2&_){const l=e.XpG(2).$implicit,k=e.XpG(4);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function Ul(_,ie){if(1&_&&e.nrm(0,"octa-signature-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Oo(_,ie){if(1&_&&e.nrm(0,"octa-slider-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function $c(_,ie){if(1&_&&e.nrm(0,"octa-terms-and-condition-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ac(_,ie){if(1&_&&e.nrm(0,"octa-text-area-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Yc(_,ie){if(1&_&&e.nrm(0,"octa-text-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ud(_,ie){if(1&_&&e.nrm(0,"octa-toggle-switch-fields",36),2&_){const l=e.XpG(2).$implicit,k=e.XpG(4);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function no(_,ie){if(1&_&&e.nrm(0,"octa-url-fields",34),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function S(_,ie){if(1&_&&e.nrm(0,"octa-aggregate-function",35),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function w(_,ie){1&_&&e.eu8(0)}const b=function(_,ie){return{grid:_,answer:ie,state:"child"}};function I(_,ie){if(1&_&&(e.qex(0),e.DNE(1,w,1,0,"ng-container",37),e.bVm()),2&_){const l=e.XpG(3).$implicit,k=e.XpG(4);e.R7$(1),e.Y8G("ngComponentOutlet",k.componentToLoad)("ngComponentOutletInputs",e.l_i(2,b,null==l||null==l.element?null:l.element.childLogics,null==l||null==l.element?null:l.element.answer))}}function X(_,ie){if(1&_&&(e.qex(0),e.DNE(1,I,2,5,"ng-container",6),e.bVm()),2&_){const l=e.XpG(6);e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}function de(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",30),e.DNE(2,Gl,1,1,"octa-check-box-fields",31),e.DNE(3,Ml,1,1,"octa-date-time-fields",31),e.DNE(4,Hl,1,1,"octa-drop-down-fields",31),e.DNE(5,Uc,1,1,"octa-file-picker-fields",31),e.DNE(6,Oc,1,1,"octa-location-fields",31),e.DNE(7,di,1,1,"octa-mail-fields",31),e.DNE(8,Ra,1,1,"octa-mobile-fields",31),e.DNE(9,Cr,1,2,"octa-number-fields",32),e.DNE(10,Sd,1,1,"octa-password-fields",31),e.DNE(11,rc,1,1,"octa-radio-button-fields",31),e.DNE(12,kd,1,1,"octa-rich-text-editor-fields",31),e.DNE(13,Tl,1,2,"octa-selection-matrix-fields",33),e.DNE(14,Ul,1,1,"octa-signature-fields",31),e.DNE(15,Oo,1,1,"octa-slider-fields",31),e.DNE(16,$c,1,1,"octa-terms-and-condition-fields",31),e.DNE(17,ac,1,1,"octa-text-area-fields",31),e.DNE(18,Yc,1,1,"octa-text-fields",31),e.DNE(19,ud,1,2,"octa-toggle-switch-fields",33),e.DNE(20,no,1,1,"octa-url-fields",31),e.DNE(21,S,1,2,"octa-aggregate-function",32),e.k0s(),e.DNE(22,X,2,1,"ng-container",6),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION"),e.R7$(1),e.Y8G("ngIf",null==l||null==l.element?null:l.element.childLogics)}}function tt(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-section-fields",38),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("section",l.element)}}const Ot=function(_){return{"width.%":_}};function Kt(_,ie){if(1&_&&(e.j41(0,"div",29),e.DNE(1,de,23,22,"div",6),e.DNE(2,tt,2,1,"div",6),e.k0s()),2&_){const l=ie.$implicit;e.Y8G("ngStyle",e.eq3(3,Ot,l.element.count*(100/12))),e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType),e.R7$(1),e.Y8G("ngIf","SECTION"===l.entityType)}}function _n(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",27),e.DNE(2,Kt,3,5,"div",28),e.k0s()()),2&_){const l=ie.$implicit;e.R7$(2),e.Y8G("ngForOf",l.grid)}}function fi(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,_n,3,1,"div",26),e.k0s()),2&_){const l=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",l.subForm.rows)}}function Ii(_,ie){if(1&_&&(e.j41(0,"div",1)(1,"div",2)(2,"div",3),e.DNE(3,zo,9,4,"ng-container",4),e.DNE(4,Ya,9,2,"ng-template",null,5,e.C5r),e.DNE(6,Hc,4,3,"div",6),e.DNE(7,fi,2,1,"div",6),e.k0s()()()),2&_){const l=e.sdS(5),k=e.XpG();e.Y8G("id","question-"+k.subForm.id),e.BMQ("name",k.subForm.testElementName),e.R7$(3),e.Y8G("ngIf",!k.subForm.copied)("ngIfElse",l),e.R7$(3),e.Y8G("ngIf","multiple"==k.subForm.property.subFormStructure),e.R7$(1),e.Y8G("ngIf","single"==k.subForm.property.subFormStructure)}}let Gi=(()=>{class _{constructor(l,k){this.subformCopyService=l,this.modalService=k,this.subForm={},this.edit=!1,this.subFormChange=new e.bkB,this.acceptedLanguage="",this.pages=[],this.decodedDescription="",this.childLogicCache={},this.subformDescription="",this.subformTitle="",this.allowCopy=!1,this.allowDelete=!1}ngOnInit(){this.allowCopy=this.subForm.property?.allowCopy,this.allowDelete=this.subForm.property?.allowDelete,this.copySubFormdata=this.subForm?.copySubformMeta,"single"==this.subForm.property.subFormStructure&&(this.bindAnswersToFormElements(),this.loadComponent())}editorCreated(l){this.editor=l}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid?.element.childLogics},{provide:"state",useValue:"child"}]})}decodeHtml(l){const k=document.createElement("textarea");return k.innerHTML=l,k.value}bindAnswersToFormElements(){const l=(k,M)=>{k?.forEach($=>{$?.grid?.forEach(ve=>{if("QUESTION"===ve.entityType){const Et=M.find(Dn=>Dn.answers.some(kn=>kn.questionId===ve.element.id));if(Et){const Dn=Et.answers.find(kn=>kn.questionId===ve.element.id);Dn&&(ve.element.answer=Dn.answer,ve.element.answerId=Dn.answerId,ve.element.validation=!0,ve.element.attachments=Dn.attachments,this.subForm.submissionId=Et.submissionId)}ve.element.childLogics&&ve.element.childLogics.forEach(Dn=>{l(Dn.rows,M)})}})})};this.subForm&&this.subForm.rows&&this.subForm.submissions&&l(this.subForm.rows,this.subForm.submissions)}updateSubFormWithSubmissions(l){this.subForm=l,this.subFormChange.emit(this.subForm)}ngOnChanges(){this.subForm.description&&(this.decodedDescription=this.decodeHtml(this.subForm.description))}copySubform(){const{updatedPages:l}=this.subformCopyService.copySubform(this.subForm,this.pages);this.pages=l}updateSubformData(l,k,M){this.copySubFormdata.id==k&&(this.copySubFormdata[M]=l)}deleteCopySubform(l){const k=this.modalService.open(Si,{centered:!0});k.componentInstance.message="Do you want to delete this subform?",k.result.then(M=>{if("yes"===M){for(const $ of this.pages){const ve=$.rows.findIndex(Et=>Et.grid.some(Dn=>"SUBFORM"===Dn.entityType&&Dn.element?.id===l&&Dn.element?.copied));if(-1!==ve){$.rows.splice(ve,1);break}}for(const $ of this.pages)for(const ve of $.rows)for(const Et of ve.grid)if("SUBFORM"===Et.entityType&&Et.element?.copiedForms){const Dn=Et.element.copiedForms.indexOf(l);-1!==Dn&&Et.element.copiedForms.splice(Dn,1)}}})}deleteMainSubform(l){const k=this.modalService.open(Si,{centered:!0});k.componentInstance.message="Do you want to delete this subform?",k.result.then(M=>{if("yes"===M)for(const $ of this.pages)for(const ve of $.rows)for(const Et of ve.grid)if("SUBFORM"===Et.entityType&&Et.element?.id===l)return void(Et.element.deleted=!0)})}static{this.\u0275fac=function(k){return new(k||_)(e.rXU(vs),e.rXU(ji.Bq))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-sub-form"]],inputs:{subForm:"subForm",edit:"edit",acceptedLanguage:"acceptedLanguage",pages:"pages"},outputs:{subFormChange:"subFormChange"},features:[e.OA$],decls:1,vars:1,consts:[["class","outer-container mb-4 px-3",3,"id",4,"ngIf"],[1,"outer-container","mb-4","px-3",3,"id"],[1,"body","py-1","px-1"],[1,"tab-content","pt-4","pb-3","px-3"],[4,"ngIf","ngIfElse"],["copySubformContainer",""],[4,"ngIf"],[1,"subform-header"],[1,"data-container"],[1,"sectionTitle"],[1,"description",3,"innerHTML"],[1,"icon-container"],["src","/assets/octa-form-submission-webcomponent/icons/copy-icon.svg","alt","copy-icon",3,"click",4,"ngIf"],["src","/assets/octa-form-submission-webcomponent/icons/delete-icon.svg","class","delete-icon ms-3","alt","delete icon",3,"click",4,"ngIf"],["src","/assets/octa-form-submission-webcomponent/icons/copy-icon.svg","alt","copy-icon",3,"click"],["src","/assets/octa-form-submission-webcomponent/icons/delete-icon.svg","alt","delete icon",1,"delete-icon","ms-3",3,"click"],[1,"icon-container","d-flex","justify-content-end",3,"click"],["src","/assets/octa-form-submission-webcomponent/icons/delete-icon.svg","alt","delete icon",1,"delete-icon"],[1,"copy-subform-container","mb-3"],["type","text",1,"form-control",3,"ngModel","ngModelChange"],[1,"mt-3"],["placeholder","",1,"editor",3,"ngModel","ngModelChange","onEditorCreated"],[3,"subForm","acceptedLanguage","subFormChange",4,"ngIf"],[3,"subForm","acceptedLanguage","edit","subFormChange",4,"ngIf"],[3,"subForm","acceptedLanguage","subFormChange"],[3,"subForm","acceptedLanguage","edit","subFormChange"],[4,"ngFor","ngForOf"],[1,"d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[3,"ngSwitch"],[3,"question",4,"ngSwitchCase"],[3,"question","rowId",4,"ngSwitchCase"],[3,"question","acceptedLanguage",4,"ngSwitchCase"],[3,"question"],[3,"question","rowId"],[3,"question","acceptedLanguage"],[4,"ngComponentOutlet","ngComponentOutletInputs"],[3,"section"]],template:function(k,M){1&k&&e.DNE(0,Ii,8,6,"div",0),2&k&&e.Y8G("ngIf",!M.subForm.deleted)},dependencies:[h.OI,h.Sq,h.bT,h.B3,h.ux,h.e1,mt,Vn,sn,ai,an,Ke,Ei,_e,Xs,er,Zs,oo,ls,Vs,Wr,nr,Pr,fa,ir,ne,sr,Lo.i9,vt.me,vt.BC,vt.vS,Vl,_a,jr],styles:[".outer-container[_ngcontent-%COMP%]{background-color:#fff;position:relative}@media (max-width: 576px){.outer-container[_ngcontent-%COMP%]{padding:8px}}.body[_ngcontent-%COMP%]{position:relative;background:#efefef;border-radius:6px}.tab-content[_ngcontent-%COMP%]{background-color:#fff}.sectionTitle[_ngcontent-%COMP%]{font-size:19px;font-weight:700;margin-bottom:20px;word-break:break-word}.description[_ngcontent-%COMP%]{font-size:17px;font-weight:500;margin-bottom:18px;word-break:break-word} .description img{max-width:100%}.subform-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.icon-container[_ngcontent-%COMP%]{cursor:pointer}.delete-icon[_ngcontent-%COMP%]{height:36px;width:36px}"]})}}return _})();function vi(_,ie){if(1&_&&e.nrm(0,"octa-check-box-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ro(_,ie){if(1&_&&e.nrm(0,"octa-date-time-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function wr(_,ie){if(1&_&&e.nrm(0,"octa-drop-down-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Gr(_,ie){if(1&_&&e.nrm(0,"octa-file-picker-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Hr(_,ie){if(1&_&&e.nrm(0,"octa-location-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ys(_,ie){if(1&_&&e.nrm(0,"octa-mail-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function hd(_,ie){if(1&_&&e.nrm(0,"octa-mobile-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function lc(_,ie){if(1&_&&e.nrm(0,"octa-number-fields",16),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function xd(_,ie){if(1&_&&e.nrm(0,"octa-password-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function aa(_,ie){if(1&_&&e.nrm(0,"octa-radio-button-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function El(_,ie){if(1&_&&e.nrm(0,"octa-rich-text-editor-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function ar(_,ie){if(1&_&&e.nrm(0,"octa-selection-matrix-fields",17),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function Qi(_,ie){if(1&_&&e.nrm(0,"octa-signature-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Ir(_,ie){if(1&_&&e.nrm(0,"octa-slider-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Id(_,ie){if(1&_&&e.nrm(0,"octa-terms-and-condition-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function mu(_,ie){if(1&_&&e.nrm(0,"octa-text-area-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function gu(_,ie){if(1&_&&e.nrm(0,"octa-text-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Dh(_,ie){if(1&_&&e.nrm(0,"octa-toggle-switch-fields",17),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function ya(_,ie){if(1&_&&e.nrm(0,"octa-url-fields",15),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function zc(_,ie){if(1&_&&e.nrm(0,"octa-aggregate-function",16),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)("rowId","0")}}function za(_,ie){1&_&&e.eu8(0)}const _u=function(_,ie){return{grid:_,answer:ie,state:"child"}};function tu(_,ie){if(1&_&&(e.qex(0),e.DNE(1,za,1,0,"ng-container",18),e.bVm()),2&_){const l=e.XpG(3).$implicit,k=e.XpG(2);e.R7$(1),e.Y8G("ngComponentOutlet",k.componentToLoad)("ngComponentOutletInputs",e.l_i(2,_u,null==l||null==l.element?null:l.element.childLogics,null==l||null==l.element?null:l.element.answer))}}function nu(_,ie){if(1&_&&(e.qex(0),e.DNE(1,tu,2,5,"ng-container",10),e.bVm()),2&_){const l=e.XpG(4);e.R7$(1),e.Y8G("ngIf",l.componentToLoad)}}function Od(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",11),e.DNE(2,vi,1,1,"octa-check-box-fields",12),e.DNE(3,Ro,1,1,"octa-date-time-fields",12),e.DNE(4,wr,1,1,"octa-drop-down-fields",12),e.DNE(5,Gr,1,1,"octa-file-picker-fields",12),e.DNE(6,Hr,1,1,"octa-location-fields",12),e.DNE(7,Ys,1,1,"octa-mail-fields",12),e.DNE(8,hd,1,1,"octa-mobile-fields",12),e.DNE(9,lc,1,2,"octa-number-fields",13),e.DNE(10,xd,1,1,"octa-password-fields",12),e.DNE(11,aa,1,1,"octa-radio-button-fields",12),e.DNE(12,El,1,1,"octa-rich-text-editor-fields",12),e.DNE(13,ar,1,2,"octa-selection-matrix-fields",14),e.DNE(14,Qi,1,1,"octa-signature-fields",12),e.DNE(15,Ir,1,1,"octa-slider-fields",12),e.DNE(16,Id,1,1,"octa-terms-and-condition-fields",12),e.DNE(17,mu,1,1,"octa-text-area-fields",12),e.DNE(18,gu,1,1,"octa-text-fields",12),e.DNE(19,Dh,1,2,"octa-toggle-switch-fields",14),e.DNE(20,ya,1,1,"octa-url-fields",12),e.DNE(21,zc,1,2,"octa-aggregate-function",13),e.k0s(),e.DNE(22,nu,2,1,"ng-container",10),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngSwitchCase","AGGREGATE_FUNCTION"),e.R7$(1),e.Y8G("ngIf",null==l||null==l.element?null:l.element.childLogics)}}const vu=function(_){return{"width.%":_}};function bu(_,ie){if(1&_&&(e.j41(0,"div",9),e.DNE(1,Od,23,22,"div",10),e.k0s()),2&_){const l=ie.$implicit;e.Y8G("ngStyle",e.eq3(2,vu,l.element.count*(100/12))),e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType)}}function yu(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",7),e.DNE(2,bu,2,4,"div",8),e.k0s()()),2&_){const l=ie.$implicit;e.R7$(2),e.Y8G("ngForOf",l.grid)}}let Cu=(()=>{class _{constructor(){this.questionGroup={},this.edit=!1,this.acceptedLanguage="",this.decodedDescription="",this.childLogicCache={}}ngOnInit(){this.loadComponent()}decodeHtml(l){const k=document.createElement("textarea");return k.innerHTML=l,k.value}ngOnChanges(){this.questionGroup.description&&(this.decodedDescription=this.decodeHtml(this.questionGroup.description))}removeCircularReferences(l){const k=new WeakSet;return function M($){if(null===$||"object"!=typeof $)return $;if(k.has($))return"[Circular]";if(k.add($),Array.isArray($))return $.map(Et=>M(Et));const ve={};for(const Et of Object.keys($))ve[Et]=M($[Et]);return k.delete($),ve}(l)}loadComponent(){var l=this;return(0,Z.A)(function*(){l.componentToLoad=yield l.loadFormElementsComponent(),l.injector=l.createInjector()})()}loadFormElementsComponent(){return(0,Z.A)(function*(){const{FormElementsComponent:l}=yield Promise.resolve().then(N.bind(N,7869));return l})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid?.element.childLogics},{provide:"state",useValue:"child"}]})}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-question-group"]],inputs:{questionGroup:"questionGroup",edit:"edit",acceptedLanguage:"acceptedLanguage"},features:[e.OA$],decls:8,vars:4,consts:[[1,"outer-container","mb-4","px-3"],[1,"body","container","pt-3","pb-3","px-3"],[1,"tab-content","pt-4","pb-3","px-3"],[1,"sectionTitle"],[1,"description",3,"innerHTML"],[1,"mt-5"],[4,"ngFor","ngForOf"],[1,"d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[4,"ngIf"],[3,"ngSwitch"],[3,"question",4,"ngSwitchCase"],[3,"question","rowId",4,"ngSwitchCase"],[3,"question","acceptedLanguage",4,"ngSwitchCase"],[3,"question"],[3,"question","rowId"],[3,"question","acceptedLanguage"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"p",3),e.EFF(4),e.k0s(),e.nrm(5,"p",4),e.j41(6,"div",5),e.DNE(7,yu,3,1,"div",6),e.k0s()()()()),2&k&&(e.BMQ("name",M.questionGroup.testElementName),e.R7$(4),e.JRh(M.questionGroup.title),e.R7$(1),e.Y8G("innerHTML",M.decodedDescription,e.npT),e.R7$(2),e.Y8G("ngForOf",M.questionGroup.rows))},dependencies:[h.OI,h.Sq,h.bT,h.B3,h.ux,h.e1,mt,Vn,sn,ai,an,Ke,Ei,_e,Xs,er,Zs,oo,ls,Vs,Wr,nr,Pr,fa,ir,sr],styles:[".outer-container[_ngcontent-%COMP%]{background-color:#fff;position:relative}@media (max-width: 576px){.outer-container[_ngcontent-%COMP%]{padding:8px}}.body[_ngcontent-%COMP%]{position:relative;z-index:1;background:#efefef;border-radius:6px}.tab-content[_ngcontent-%COMP%]{background-color:#fff}.sectionTitle[_ngcontent-%COMP%]{font-size:19px;font-weight:700;margin-bottom:20px;word-break:break-word}.description[_ngcontent-%COMP%]{font-size:17px;font-weight:500;margin-bottom:18px;word-break:break-word} .description img{max-width:100%}"]})}}return _})();function Sl(_,ie){if(1&_&&e.nrm(0,"octa-check-box-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function fd(_,ie){if(1&_&&e.nrm(0,"octa-date-time-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function is(_,ie){if(1&_&&e.nrm(0,"octa-drop-down-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Is(_,ie){if(1&_&&e.nrm(0,"octa-file-picker-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function qc(_,ie){if(1&_&&e.nrm(0,"octa-location-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function cc(_,ie){if(1&_&&e.nrm(0,"octa-mail-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Xc(_,ie){if(1&_&&e.nrm(0,"octa-mobile-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Rd(_,ie){if(1&_&&e.nrm(0,"octa-number-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Nd(_,ie){if(1&_&&e.nrm(0,"octa-password-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function dc(_,ie){if(1&_&&e.nrm(0,"octa-radio-button-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Fd(_,ie){if(1&_&&e.nrm(0,"octa-rich-text-editor-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Wc(_,ie){if(1&_&&e.nrm(0,"octa-selection-matrix-fields",14),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function Kc(_,ie){if(1&_&&e.nrm(0,"octa-signature-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function uc(_,ie){if(1&_&&e.nrm(0,"octa-slider-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Qc(_,ie){if(1&_&&e.nrm(0,"octa-terms-and-condition-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function wu(_,ie){if(1&_&&e.nrm(0,"octa-text-area-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Rc(_,ie){if(1&_&&e.nrm(0,"octa-text-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function Zc(_,ie){if(1&_&&e.nrm(0,"octa-toggle-switch-fields",14),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.Y8G("question",l.element)("acceptedLanguage",k.acceptedLanguage)}}function hc(_,ie){if(1&_&&e.nrm(0,"octa-url-fields",13),2&_){const l=e.XpG(2).$implicit;e.Y8G("question",l.element)}}function $l(_,ie){1&_&&e.eu8(0)}function fc(_,ie){if(1&_&&(e.qex(0),e.DNE(1,$l,1,0,"ng-container",15),e.nI1(2,"async"),e.bVm()),2&_){const l=e.XpG(2).$implicit,k=e.XpG(2);e.R7$(1),e.Y8G("ngComponentOutlet",e.bMT(2,1,k.loadFormElementsComponent(l.element.childLogics)))}}function pd(_,ie){if(1&_&&(e.j41(0,"div")(1,"div",10),e.DNE(2,Sl,1,1,"octa-check-box-fields",11),e.DNE(3,fd,1,1,"octa-date-time-fields",11),e.DNE(4,is,1,1,"octa-drop-down-fields",11),e.DNE(5,Is,1,1,"octa-file-picker-fields",11),e.DNE(6,qc,1,1,"octa-location-fields",11),e.DNE(7,cc,1,1,"octa-mail-fields",11),e.DNE(8,Xc,1,1,"octa-mobile-fields",11),e.DNE(9,Rd,1,1,"octa-number-fields",11),e.DNE(10,Nd,1,1,"octa-password-fields",11),e.DNE(11,dc,1,1,"octa-radio-button-fields",11),e.DNE(12,Fd,1,1,"octa-rich-text-editor-fields",11),e.DNE(13,Wc,1,2,"octa-selection-matrix-fields",12),e.DNE(14,Kc,1,1,"octa-signature-fields",11),e.DNE(15,uc,1,1,"octa-slider-fields",11),e.DNE(16,Qc,1,1,"octa-terms-and-condition-fields",11),e.DNE(17,wu,1,1,"octa-text-area-fields",11),e.DNE(18,Rc,1,1,"octa-text-fields",11),e.DNE(19,Zc,1,2,"octa-toggle-switch-fields",12),e.DNE(20,hc,1,1,"octa-url-fields",11),e.k0s(),e.DNE(21,fc,3,3,"ng-container",9),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngSwitch",l.element.formElement.elementType),e.R7$(1),e.Y8G("ngSwitchCase","CHECK_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","DATE_TIME"),e.R7$(1),e.Y8G("ngSwitchCase","DROP_DOWN"),e.R7$(1),e.Y8G("ngSwitchCase","FILE_PICKER"),e.R7$(1),e.Y8G("ngSwitchCase","LOCATION"),e.R7$(1),e.Y8G("ngSwitchCase","EMAIL"),e.R7$(1),e.Y8G("ngSwitchCase","MOBILE"),e.R7$(1),e.Y8G("ngSwitchCase","NUMBER"),e.R7$(1),e.Y8G("ngSwitchCase","PASSWORD"),e.R7$(1),e.Y8G("ngSwitchCase","RADIO_BUTTON"),e.R7$(1),e.Y8G("ngSwitchCase","RICH_TEXT_EDITOR"),e.R7$(1),e.Y8G("ngSwitchCase","SELECTION_MATRIX"),e.R7$(1),e.Y8G("ngSwitchCase","SIGNATURE"),e.R7$(1),e.Y8G("ngSwitchCase","SLIDER"),e.R7$(1),e.Y8G("ngSwitchCase","TERMS_AND_CONDITION"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_AREA"),e.R7$(1),e.Y8G("ngSwitchCase","TEXT_BOX"),e.R7$(1),e.Y8G("ngSwitchCase","TOGGLE_SWITCH"),e.R7$(1),e.Y8G("ngSwitchCase","URL"),e.R7$(1),e.Y8G("ngIf",l.element.childLogics)}}const Jc=function(_){return{"width.%":_}};function pc(_,ie){if(1&_&&(e.j41(0,"div",8),e.DNE(1,pd,22,21,"div",9),e.k0s()),2&_){const l=ie.$implicit;e.Y8G("ngStyle",e.eq3(2,Jc,l.element.count*(100/12))),e.R7$(1),e.Y8G("ngIf","QUESTION"===l.entityType)}}function Yl(_,ie){if(1&_&&(e.qex(0),e.j41(1,"div",6),e.DNE(2,pc,2,4,"div",7),e.k0s(),e.bVm()),2&_){const l=ie.$implicit;e.R7$(2),e.Y8G("ngForOf",l.grid)}}let Ad=(()=>{class _{constructor(){this.multiFields={},this.acceptedLanguage=""}loadFormElementsComponent(l){var k=this;return(0,Z.A)(function*(){k.grid=l;const{FormElementsComponent:M}=yield Promise.resolve().then(N.bind(N,7869));return M})()}createInjector(){return e.zZn.create({providers:[{provide:"grid",useValue:this.grid},{provide:"state",useValue:"child"}]})}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-multifields"]],inputs:{multiFields:"multiFields",acceptedLanguage:"acceptedLanguage"},decls:8,vars:4,consts:[[1,"outer-container","mb-4","px-3","multifields"],[1,"d-flex","align-items-center"],[3,"innerHTML"],[1,"space"],[1,"multifields-row"],[4,"ngFor","ngForOf"],[1,"d-flex"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[4,"ngIf"],[3,"ngSwitch"],[3,"question",4,"ngSwitchCase"],[3,"question","acceptedLanguage",4,"ngSwitchCase"],[3,"question"],[3,"question","acceptedLanguage"],[4,"ngComponentOutlet"]],template:function(k,M){1&k&&(e.j41(0,"div",0)(1,"div",1),e.nrm(2,"div",2)(3,"span",3),e.j41(4,"label"),e.EFF(5),e.k0s()(),e.j41(6,"div",4),e.DNE(7,Yl,3,1,"ng-container",5),e.k0s()()),2&k&&(e.BMQ("name",M.multiFields.testElementName),e.R7$(2),e.Y8G("innerHTML",M.multiFields.questionNumber,e.npT),e.R7$(3),e.JRh(M.multiFields.question),e.R7$(2),e.Y8G("ngForOf",M.multiFields.rows))},dependencies:[h.OI,h.Sq,h.bT,h.B3,h.ux,h.e1,mt,Vn,sn,ai,an,Ke,Ei,_e,Xs,er,Zs,oo,ls,Vs,Wr,nr,Pr,fa,ir,h.Jj],styles:[".multifields .mb-5{margin:0!important}.space[_ngcontent-%COMP%]{width:5px}"]})}}return _})();function Du(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-question",1),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("question",null==l.grid?null:l.grid.element)("edit",l.edit)("acceptedLanguage",l.acceptedLanguage)}}function Mh(_,ie){if(1&_&&(e.j41(0,"div"),e.nrm(1,"octa-section-fields",2),e.k0s()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("section",l.grid.element)}}function Mu(_,ie){if(1&_){const l=e.RV6();e.qex(0),e.j41(1,"octa-sub-form",3),e.bIt("subFormChange",function(M){e.eBV(l);const $=e.XpG();return e.Njj($.updateSubFormWithSubmissions(M))}),e.k0s(),e.bVm()}if(2&_){const l=e.XpG();e.R7$(1),e.Y8G("subForm",l.grid.element)("acceptedLanguage",l.acceptedLanguage)("edit",l.edit)("pages",l.pages)}}function Th(_,ie){if(1&_&&(e.qex(0),e.nrm(1,"octa-question-group",4),e.bVm()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("questionGroup",l.grid.element)("acceptedLanguage",l.acceptedLanguage)}}function Qu(_,ie){if(1&_&&(e.qex(0),e.nrm(1,"octa-multifields",5),e.bVm()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("multiFields",l.grid.element)("acceptedLanguage",l.acceptedLanguage)}}let Zu=(()=>{class _{constructor(){this.grid={},this.currentPageIndex=0,this.edit=!1,this.acceptedLanguage="",this.subFormChange=new e.bkB,this.pages=[]}updateSubFormWithSubmissions(l){this.subFormChange.emit(l)}static{this.\u0275fac=function(k){return new(k||_)}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-recursive-logic"]],inputs:{grid:"grid",currentPageIndex:"currentPageIndex",edit:"edit",acceptedLanguage:"acceptedLanguage",state:"state",answer:"answer",pages:"pages"},outputs:{subFormChange:"subFormChange"},decls:5,vars:5,consts:[[4,"ngIf"],[3,"question","edit","acceptedLanguage"],[3,"section"],[3,"subForm","acceptedLanguage","edit","pages","subFormChange"],[3,"questionGroup","acceptedLanguage"],[3,"multiFields","acceptedLanguage"]],template:function(k,M){1&k&&(e.DNE(0,Du,2,3,"div",0),e.DNE(1,Mh,2,1,"div",0),e.DNE(2,Mu,2,4,"ng-container",0),e.DNE(3,Th,2,2,"ng-container",0),e.DNE(4,Qu,2,2,"ng-container",0)),2&k&&(e.Y8G("ngIf","QUESTION"===M.grid.entityType),e.R7$(1),e.Y8G("ngIf","SECTION"===M.grid.entityType),e.R7$(1),e.Y8G("ngIf","SUBFORM"===M.grid.entityType),e.R7$(1),e.Y8G("ngIf","QUESTION_GROUP"===M.grid.entityType),e.R7$(1),e.Y8G("ngIf","MULTIFIELD"===M.grid.entityType))},dependencies:[h.bT,ne,ts,Gi,Cu,Ad]})}}return _})();function iu(_,ie){if(1&_){const l=e.RV6();e.j41(0,"div")(1,"octa-recursive-logic",4),e.bIt("subFormChange",function(M){e.eBV(l);const $=e.XpG(5);return e.Njj($.updateSubFormWithSubmissions(M))}),e.k0s()()}if(2&_){const l=ie.$implicit,k=e.XpG(5);e.R7$(1),e.Y8G("grid",l)("edit",k.edit)("acceptedLanguage",k.acceptedLanguage)("pages",k.pages)}}function Eh(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,iu,2,4,"div",2),e.k0s()),2&_){const l=ie.$implicit;e.R7$(1),e.Y8G("ngForOf",l.grid)}}function md(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,Eh,2,1,"div",2),e.k0s()),2&_){const l=e.XpG().$implicit;e.R7$(1),e.Y8G("ngForOf",l.rows)}}function ed(_,ie){if(1&_&&(e.j41(0,"div"),e.DNE(1,md,2,1,"div",3),e.k0s()),2&_){const l=ie.$implicit,k=e.XpG(2);e.R7$(1),e.Y8G("ngIf",l.showLogic&&k.answer)}}function Pd(_,ie){if(1&_&&(e.qex(0),e.DNE(1,ed,2,1,"div",2),e.bVm()),2&_){const l=e.XpG();e.R7$(1),e.Y8G("ngForOf",l.grid)}}function gd(_,ie){if(1&_&&e.nrm(0,"octa-recursive-logic",5),2&_){const l=e.XpG();e.Y8G("grid",l.grid)("edit",l.edit)("acceptedLanguage",l.acceptedLanguage)("pages",l.pages)}}let Sh=(()=>{class _{constructor(l,k,M){this.injectedGrid=l,this.injectedState=k,this.injectedAnswer=M,this.currentPageIndex=0,this.edit=!1,this.acceptedLanguage="",this.subFormChange=new e.bkB,this.pages=[]}ngOnInit(){this.grid=this.injectedGrid??this.grid,this.state=this.injectedState??this.state,this.answer=this.injectedAnswer??this.answer}updateSubFormWithSubmissions(l){this.subFormChange.emit(l)}static{this.\u0275fac=function(k){return new(k||_)(e.rXU("grid",8),e.rXU("state",8),e.rXU("answer",8))}}static{this.\u0275cmp=e.VBU({type:_,selectors:[["octa-form-elements"]],inputs:{currentPageIndex:"currentPageIndex",edit:"edit",acceptedLanguage:"acceptedLanguage",answer:"answer",grid:"grid",state:"state",pages:"pages"},outputs:{subFormChange:"subFormChange"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["parentBlock",""],[4,"ngFor","ngForOf"],[4,"ngIf"],[3,"grid","edit","acceptedLanguage","pages","subFormChange"],[3,"grid","edit","acceptedLanguage","pages"]],template:function(k,M){if(1&k&&(e.DNE(0,Pd,2,1,"ng-container",0),e.DNE(1,gd,1,4,"ng-template",null,1,e.C5r)),2&k){const $=e.sdS(2);e.Y8G("ngIf","child"===M.state)("ngIfElse",$)}},dependencies:[h.Sq,h.bT,Zu]})}}return _})()},6:(pn,ct,N)=>{N.d(ct,{q:()=>ne});var e=N(4412),h=N(7705);let ne=(()=>{class Z{constructor(){this.aggregateFieldsMap=new Map,this.numberFieldsMap=new Map,this.aggregateFieldResultsSubject=new e.t(null),this.aggregateFieldResults$=this.aggregateFieldResultsSubject.asObservable()}setAggregateField(we,Ie,Oe,Ne){this.aggregateFieldsMap.has(we)||this.aggregateFieldsMap.set(we,new Map),this.aggregateFieldsMap.get(we).set(Ie,{id:Ie,operation:Oe,formula:Ne})}setNumberField(we,Ie,Oe){this.numberFieldsMap.has(we)||this.numberFieldsMap.set(we,new Map),this.numberFieldsMap.get(we).set(Ie,{id:Ie,answer:Oe}),this.checkAndEvaluateFormulas(we)}emitAggregateResult(we,Ie,Oe){this.aggregateFieldResultsSubject.next({id:we,result:Ie,evaluated:Oe})}evaluateCustomFormula(we,Ie){const Oe=this.numberFieldsMap.get(we);if(!Ie||!Oe)return null;const Ne=/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}/g;if(!(Ie.match(Ne)||[]).every(yt=>{const _t=Oe.get(yt);return void 0!==_t&&null!=_t.answer&&""!==String(_t.answer).trim()}))return null;const Ue=Ie.replace(Ne,yt=>Oe.get(yt)?.answer?.toString()||"0");try{return new Function(`return ${Ue};`)()}catch(yt){return console.error("Error evaluating formula:",yt),null}}evaluatePredefinedOperation(we,Ie,Oe){const Ne=this.numberFieldsMap.get(we);if(!Ne)return null;const Me=Oe.split(",").map(_t=>_t.trim()),Ge=[];let Ue=!1;for(const _t of Me){const ft=Ne.get(_t)?.answer;null!=ft&&""!==String(ft).trim()?(Ue=!0,Ge.push(Number(ft))):Ge.push(0)}if(!Ue)return null;let yt=0;switch(Ie){case"SUM":yt=Ge.reduce((_t,bt)=>_t+bt,0);break;case"SUBTRACTION":yt=Ge.reduce((_t,bt)=>_t-bt);break;case"MULTIPLICATION":yt=Ge.reduce((_t,bt)=>_t*bt,1);break;default:return console.warn(`Unsupported operation: ${Ie}`),null}return yt}checkAndEvaluateFormulas(we){const Ie=this.aggregateFieldsMap.get(we);Ie&&Ie.forEach((Oe,Ne)=>{let Me=null;Me="CUSTOM"===Oe.operation?this.evaluateCustomFormula(we,Oe.formula):this.evaluatePredefinedOperation(we,Oe.operation,Oe.formula),null!==Me?(Oe.result=Me,this.aggregateFieldsMap.get(we).set(Ne,Oe),this.emitAggregateResult(`${we}:${Ne}`,Me,!0)):this.emitAggregateResult(`${we}:${Ne}`,0,!1)})}clearAll(){this.aggregateFieldsMap.clear(),this.numberFieldsMap.clear(),this.aggregateFieldResultsSubject.next(null)}ngOnDestroy(){this.clearAll()}static{this.\u0275fac=function(Ie){return new(Ie||Z)}}static{this.\u0275prov=h.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}}return Z})()},1339:(pn,ct,N)=>{N.d(ct,{u:()=>ne});var e=N(4412),h=N(7705);let ne=(()=>{class Z{constructor(){this.dataSubject=new e.t(""),this.apiUrl$=this.dataSubject.asObservable(),this.headerSubject=new e.t({}),this.header$=this.headerSubject.asObservable(),this.formDataSubject=new e.t({}),this.formData$=this.formDataSubject.asObservable(),this.parentQuestionsSubject=new e.t(null),this.parentQuestions$=this.parentQuestionsSubject.asObservable()}setApiUrl(we){this.dataSubject.next(we)}setHeader(we){this.headerSubject.next(we)}setFormData(we){this.formDataSubject.next(we)}setParentQuestions(we){this.parentQuestionsSubject.next(we)}static{this.\u0275fac=function(Ie){return new(Ie||Z)}}static{this.\u0275prov=h.jDH({token:Z,factory:Z.\u0275fac,providedIn:"root"})}}return Z})()},1852:(pn,ct,N)=>{N.d(ct,{U:()=>h});var e=N(7705);let h=(()=>{class ne{constructor(){this.elementIds=new Set}registerElement(De){this.elementIds.add(De)}unregisterElement(De){this.elementIds.delete(De)}getAllElementIds(){return Array.from(this.elementIds)}clear(){this.elementIds.clear()}static{this.\u0275fac=function(we){return new(we||ne)}}static{this.\u0275prov=e.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},541:(pn,ct,N)=>{N.d(ct,{u:()=>Z});var e=N(1626),h=N(7705),ne=N(1339);let Z=(()=>{class De{constructor(Ie,Oe){this.http=Ie,this.dataService=Oe,this.header={},this.dataService.apiUrl$.subscribe(Ne=>{console.log("constructor apiurl",Ne),this.apiUrl=Ne}),this.dataService.header$.subscribe(Ne=>{this.header=Ne,console.log("constructor header",Ne)}),this.dataService.parentQuestions$.subscribe(Ne=>{Ne&&(this.parentQuestions=Ne)})}getSafeHeaders(){const Ie={};if(this.header&&"object"==typeof this.header)for(const Oe of Object.keys(this.header)){const Ne=this.header[Oe];null!=Ne&&(Ie[Oe]=String(Ne))}return console.log("[ApiService] getSafeHeaders, input header:",this.header,"output safe:",Ie),Ie}getQuestions(Ie,Oe=1,Ne=0,Me=!0){const Ge=new e.Lr(this.getSafeHeaders()),Ue=(new e.Nl).set("pageNumber",Oe.toString()).set("rowSet",Ne.toString()).set("progressiveLoading",Me);return this.http.get(`${this.apiUrl}/api/public/forms/${Ie}`,{headers:Ge,params:Ue})}fetchDataFromDatabase(Ie){const Oe=new e.Lr(this.getSafeHeaders());return this.http.post(`${this.apiUrl}/api/load-from-db`,Ie,{headers:Oe})}fetchDataFromLookup(Ie){return this.http.get(`${this.apiUrl}/api/public/lookup/${Ie}`)}fetchDataFromExternalAPI(Ie){let Oe=new e.Lr(this.getSafeHeaders()),Ne=new e.Nl;Ie.params&&Ie.params.forEach(Ge=>{Ge.keyName&&Ge.inputValue&&(Ne=Ne.set(Ge.keyName,Ge.inputValue))});let Me=Ie.url;return Ie.pathVariables&&Ie.pathVariables.forEach(Ge=>{Ge.keyName&&Ge.inputValue&&(Me=Me.replace(`{${Ge.keyName}}`,Ge.inputValue))}),this.http.get(Me,{headers:Oe,params:Ne})}submitForm(Ie,Oe,Ne){const Me=new e.Lr(this.getSafeHeaders()),Ge=`${this.apiUrl}/api/public/forms/${Ie}/submissions`;return Ne&&Oe.append("recaptchaToken",Ne),this.http.post(Ge,Oe,{headers:Me})}getSubmittedForm(Ie,Oe,Ne=1,Me=0){let Ge=new e.Lr(this.getSafeHeaders()),Ue=(new e.Nl).set("pageNumber",Ne.toString()).set("rowSet",Me.toString());return this.parentQuestions&&this.parentQuestions.forEach(yt=>{Ue=Ue.append("parentQuestions",yt)}),this.http.get(`${this.apiUrl}/api/forms/${Ie}/submissions/${Oe}`,{headers:Ge,params:Ue})}updateForm(Ie,Oe,Ne,Me){const Ge=new e.Lr(this.getSafeHeaders()),Ue=`${this.apiUrl}/api/public/forms/${Ie}/submissions/${Oe}`;return Me&&Ne.append("recaptchaToken",Me),this.http.put(Ue,Ne,{headers:Ge})}previewFile(Ie){const Ne={headers:new e.Lr(this.getSafeHeaders())},Ue=`?url=${encodeURIComponent(Ie)}`;return this.http.get(this.apiUrl+`/api/cdn/preview${Ue}`,Ne)}static{this.\u0275fac=function(Oe){return new(Oe||De)(h.KVO(e.Qq),h.KVO(ne.u))}}static{this.\u0275prov=h.jDH({token:De,factory:De.\u0275fac,providedIn:"root"})}}return De})()},3628:(pn,ct,N)=>{N.d(ct,{B:()=>h});var e=N(7705);let h=(()=>{class ne{constructor(){this.invalidQuestions={}}setInvalid(De,we,Ie){this.invalidQuestions[De]={message:we,pageIndex:Ie}}clearInvalid(De){delete this.invalidQuestions[De]}getFirstInvalid(){const De=Object.keys(this.invalidQuestions);return De.length>0?{id:De[0],pageIndex:this.invalidQuestions[De[0]].pageIndex}:null}getErrorMessage(De){return this.invalidQuestions[De]?.message||null}clearAll(){this.invalidQuestions={}}static{this.\u0275fac=function(we){return new(we||ne)}}static{this.\u0275prov=e.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},2356:(pn,ct,N)=>{N.d(ct,{zk:()=>rc,c9:()=>no,v2:()=>Ul});var e=N(7705),h=N(177),ne=N(4412),Z=N(1413),De=N(7786),we=N(4668),Ie=N(8141),Oe=N(152),Ne=N(3294),Me=N(5964),Ge=N(6977),Ue=N(9969);class yt extends Error{}class _t extends yt{constructor(w){super(`Invalid DateTime: ${w.toMessage()}`)}}class bt extends yt{constructor(w){super(`Invalid Interval: ${w.toMessage()}`)}}class ft extends yt{constructor(w){super(`Invalid Duration: ${w.toMessage()}`)}}class mt extends yt{}class en extends yt{constructor(w){super(`Invalid unit ${w}`)}}class vt extends yt{}class At extends yt{constructor(){super("Zone is an abstract class")}}const me="numeric",at="short",rt="long",ht={year:me,month:me,day:me},St={year:me,month:at,day:me},Mt={year:me,month:at,day:me,weekday:at},cn={year:me,month:rt,day:me},En={year:me,month:rt,day:me,weekday:rt},dn={hour:me,minute:me},Wt={hour:me,minute:me,second:me},ze={hour:me,minute:me,second:me,timeZoneName:at},be={hour:me,minute:me,second:me,timeZoneName:rt},Se={hour:me,minute:me,hourCycle:"h23"},Nt={hour:me,minute:me,second:me,hourCycle:"h23"},K={hour:me,minute:me,second:me,hourCycle:"h23",timeZoneName:at},ge={hour:me,minute:me,second:me,hourCycle:"h23",timeZoneName:rt},je={year:me,month:me,day:me,hour:me,minute:me},le={year:me,month:me,day:me,hour:me,minute:me,second:me},ce={year:me,month:at,day:me,hour:me,minute:me},Le={year:me,month:at,day:me,hour:me,minute:me,second:me},ue={year:me,month:at,day:me,weekday:at,hour:me,minute:me},Ye={year:me,month:rt,day:me,hour:me,minute:me,timeZoneName:at},L={year:me,month:rt,day:me,hour:me,minute:me,second:me,timeZoneName:at},z={year:me,month:rt,day:me,weekday:rt,hour:me,minute:me,timeZoneName:rt},Be={year:me,month:rt,day:me,weekday:rt,hour:me,minute:me,second:me,timeZoneName:rt};class pt{get type(){throw new At}get name(){throw new At}get ianaName(){return this.name}get isUniversal(){throw new At}offsetName(w,b){throw new At}formatOffset(w,b){throw new At}offset(w){throw new At}equals(w){throw new At}get isValid(){throw new At}}let dt=null;class Vt extends pt{static get instance(){return null===dt&&(dt=new Vt),dt}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(w,{format:b,locale:I}){return mo(w,b,I)}formatOffset(w,b){return Ks(this.offset(w),b)}offset(w){return-new Date(w).getTimezoneOffset()}equals(w){return"system"===w.type}get isValid(){return!0}}let bn={};const nn={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Ci={};class xt extends pt{static create(w){return Ci[w]||(Ci[w]=new xt(w)),Ci[w]}static resetCache(){Ci={},bn={}}static isValidSpecifier(w){return this.isValidZone(w)}static isValidZone(w){if(!w)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:w}).format(),!0}catch{return!1}}constructor(w){super(),this.zoneName=w,this.valid=xt.isValidZone(w)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(w,{format:b,locale:I}){return mo(w,b,I,this.name)}formatOffset(w,b){return Ks(this.offset(w),b)}offset(w){const b=new Date(w);if(isNaN(b))return NaN;const I=function jn(S){return bn[S]||(bn[S]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),bn[S]}(this.name);let[X,de,tt,Ot,Kt,_n,fi]=I.formatToParts?function oi(S,w){const b=S.formatToParts(w),I=[];for(let X=0;X<b.length;X++){const{type:de,value:tt}=b[X],Ot=nn[de];"era"===de?I[Ot]=tt:$e(Ot)||(I[Ot]=parseInt(tt,10))}return I}(I,b):function Vn(S,w){const b=S.format(w).replace(/\u200E/g,""),I=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(b),[,X,de,tt,Ot,Kt,_n,fi]=I;return[tt,X,de,Ot,Kt,_n,fi]}(I,b);"BC"===Ot&&(X=1-Math.abs(X));let vi=+b;const Ro=vi%1e3;return vi-=Ro>=0?Ro:1e3+Ro,(Po({year:X,month:de,day:tt,hour:24===Kt?0:Kt,minute:_n,second:fi,millisecond:0})-vi)/6e4}equals(w){return"iana"===w.type&&w.name===this.name}get isValid(){return this.valid}}let ke={},xe={};function Ve(S,w={}){const b=JSON.stringify([S,w]);let I=xe[b];return I||(I=new Intl.DateTimeFormat(S,w),xe[b]=I),I}let ut={},sn={},Qt=null,st={};function ti(S,w,b,I){const X=S.listingMode();return"error"===X?null:"en"===X?b(w):I(w)}class zi{constructor(w,b,I){this.padTo=I.padTo||0,this.floor=I.floor||!1;const{padTo:X,floor:de,...tt}=I;if(!b||Object.keys(tt).length>0){const Ot={useGrouping:!1,...I};I.padTo>0&&(Ot.minimumIntegerDigits=I.padTo),this.inf=function Ft(S,w={}){const b=JSON.stringify([S,w]);let I=ut[b];return I||(I=new Intl.NumberFormat(S,w),ut[b]=I),I}(w,Ot)}}format(w){if(this.inf){const b=this.floor?Math.floor(w):w;return this.inf.format(b)}return as(this.floor?Math.floor(w):Bs(w,3),this.padTo)}}class us{constructor(w,b,I){let X;if(this.opts=I,this.originalZone=void 0,this.opts.timeZone)this.dt=w;else if("fixed"===w.zone.type){const tt=w.offset/60*-1,Ot=tt>=0?`Etc/GMT+${tt}`:`Etc/GMT${tt}`;0!==w.offset&&xt.create(Ot).valid?(X=Ot,this.dt=w):(X="UTC",this.dt=0===w.offset?w:w.setZone("UTC").plus({minutes:w.offset}),this.originalZone=w.zone)}else"system"===w.zone.type?this.dt=w:"iana"===w.zone.type?(this.dt=w,X=w.zone.name):(X="UTC",this.dt=w.setZone("UTC").plus({minutes:w.offset}),this.originalZone=w.zone);const de={...this.opts};de.timeZone=de.timeZone||X,this.dtf=Ve(b,de)}format(){return this.originalZone?this.formatToParts().map(({value:w})=>w).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const w=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?w.map(b=>{if("timeZoneName"===b.type){const I=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...b,value:I}}return b}):w}resolvedOptions(){return this.dtf.resolvedOptions()}}class Bi{constructor(w,b,I){this.opts={style:"long",...I},!b&&hi()&&(this.rtf=function Ln(S,w={}){const{base:b,...I}=w,X=JSON.stringify([S,I]);let de=sn[X];return de||(de=new Intl.RelativeTimeFormat(S,w),sn[X]=de),de}(w,I))}format(w,b){return this.rtf?this.rtf.format(w,b):function Fa(S,w,b="always",I=!1){const X={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},de=-1===["hours","minutes","seconds"].indexOf(S);if("auto"===b&&de){const Ii="days"===S;switch(w){case 1:return Ii?"tomorrow":`next ${X[S][0]}`;case-1:return Ii?"yesterday":`last ${X[S][0]}`;case 0:return Ii?"today":`this ${X[S][0]}`}}const tt=Object.is(w,-0)||w<0,Ot=Math.abs(w),Kt=1===Ot,_n=X[S],fi=I?Kt?_n[1]:_n[2]||_n[1]:Kt?X[S][0]:S;return tt?`${Ot} ${fi} ago`:`in ${Ot} ${fi}`}(b,w,this.opts.numeric,"long"!==this.opts.style)}formatToParts(w,b){return this.rtf?this.rtf.formatToParts(w,b):[]}}const Ps={firstDay:1,minimalDays:4,weekend:[6,7]};class ei{static fromOpts(w){return ei.create(w.locale,w.numberingSystem,w.outputCalendar,w.weekSettings,w.defaultToEN)}static create(w,b,I,X,de=!1){const tt=w||Ze.defaultLocale,Ot=tt||(de?"en-US":function qt(){return Qt||(Qt=(new Intl.DateTimeFormat).resolvedOptions().locale,Qt)}()),Kt=b||Ze.defaultNumberingSystem,_n=I||Ze.defaultOutputCalendar,fi=Fo(X)||Ze.defaultWeekSettings;return new ei(Ot,Kt,_n,fi,tt)}static resetCache(){Qt=null,xe={},ut={},sn={}}static fromObject({locale:w,numberingSystem:b,outputCalendar:I,weekSettings:X}={}){return ei.create(w,b,I,X)}constructor(w,b,I,X,de){const[tt,Ot,Kt]=function wt(S){const w=S.indexOf("-x-");-1!==w&&(S=S.substring(0,w));const b=S.indexOf("-u-");if(-1===b)return[S];{let I,X;try{I=Ve(S).resolvedOptions(),X=S}catch{const Kt=S.substring(0,b);I=Ve(Kt).resolvedOptions(),X=Kt}const{numberingSystem:de,calendar:tt}=I;return[X,de,tt]}}(w);this.locale=tt,this.numberingSystem=b||Ot||null,this.outputCalendar=I||Kt||null,this.weekSettings=X,this.intl=function Rn(S,w,b){return(b||w)&&(S.includes("-u-")||(S+="-u"),b&&(S+=`-ca-${b}`),w&&(S+=`-nu-${w}`)),S}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=de,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=function ai(S){return(!S.numberingSystem||"latn"===S.numberingSystem)&&("latn"===S.numberingSystem||!S.locale||S.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(S.intl).resolvedOptions().numberingSystem)}(this)),this.fastNumbersCached}listingMode(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"}clone(w){return w&&0!==Object.getOwnPropertyNames(w).length?ei.create(w.locale||this.specifiedLocale,w.numberingSystem||this.numberingSystem,w.outputCalendar||this.outputCalendar,Fo(w.weekSettings)||this.weekSettings,w.defaultToEN||!1):this}redefaultToEN(w={}){return this.clone({...w,defaultToEN:!0})}redefaultToSystem(w={}){return this.clone({...w,defaultToEN:!1})}months(w,b=!1){return ti(this,w,Nr,()=>{const I=b?{month:w,day:"numeric"}:{month:w},X=b?"format":"standalone";return this.monthsCache[X][w]||(this.monthsCache[X][w]=function yn(S){const w=[];for(let b=1;b<=12;b++){const I=qn.utc(2009,b,1);w.push(S(I))}return w}(de=>this.extract(de,I,"month"))),this.monthsCache[X][w]})}weekdays(w,b=!1){return ti(this,w,Xi,()=>{const I=b?{weekday:w,year:"numeric",month:"long",day:"numeric"}:{weekday:w},X=b?"format":"standalone";return this.weekdaysCache[X][w]||(this.weekdaysCache[X][w]=function Hn(S){const w=[];for(let b=1;b<=7;b++){const I=qn.utc(2016,11,13+b);w.push(S(I))}return w}(de=>this.extract(de,I,"weekday"))),this.weekdaysCache[X][w]})}meridiems(){return ti(this,void 0,()=>Us,()=>{if(!this.meridiemCache){const w={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[qn.utc(2016,11,13,9),qn.utc(2016,11,13,19)].map(b=>this.extract(b,w,"dayperiod"))}return this.meridiemCache})}eras(w){return ti(this,w,Wi,()=>{const b={era:w};return this.eraCache[w]||(this.eraCache[w]=[qn.utc(-40,1,1),qn.utc(2017,1,1)].map(I=>this.extract(I,b,"era"))),this.eraCache[w]})}extract(w,b,I){const tt=this.dtFormatter(w,b).formatToParts().find(Ot=>Ot.type.toLowerCase()===I);return tt?tt.value:null}numberFormatter(w={}){return new zi(this.intl,w.forceSimple||this.fastNumbers,w)}dtFormatter(w,b={}){return new us(w,this.intl,b)}relFormatter(w={}){return new Bi(this.intl,this.isEnglish(),w)}listFormatter(w={}){return function re(S,w={}){const b=JSON.stringify([S,w]);let I=ke[b];return I||(I=new Intl.ListFormat(S,w),ke[b]=I),I}(this.intl,w)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Kn()?function Dt(S){let w=st[S];if(!w){const b=new Intl.Locale(S);w="getWeekInfo"in b?b.getWeekInfo():b.weekInfo,st[S]=w}return w}(this.locale):Ps}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(w){return this.locale===w.locale&&this.numberingSystem===w.numberingSystem&&this.outputCalendar===w.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}let qs=null;class Mn extends pt{static get utcInstance(){return null===qs&&(qs=new Mn(0)),qs}static instance(w){return 0===w?Mn.utcInstance:new Mn(w)}static parseSpecifier(w){if(w){const b=w.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(b)return new Mn(yi(b[1],b[2]))}return null}constructor(w){super(),this.fixed=w}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Ks(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Ks(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(w,b){return Ks(this.fixed,b)}get isUniversal(){return!0}offset(){return this.fixed}equals(w){return"fixed"===w.type&&w.fixed===this.fixed}get isValid(){return!0}}class io extends pt{constructor(w){super(),this.zoneName=w}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function an(S,w){if($e(S)||null===S)return w;if(S instanceof pt)return S;if(function An(S){return"string"==typeof S}(S)){const I=S.toLowerCase();return"default"===I?w:"local"===I||"system"===I?Vt.instance:"utc"===I||"gmt"===I?Mn.utcInstance:Mn.parseSpecifier(I)||xt.create(S)}return Pt(S)?Mn.instance(S):"object"==typeof S&&"offset"in S&&"function"==typeof S.offset?S:new io(S)}const kt={arab:"[\u0660-\u0669]",arabext:"[\u06f0-\u06f9]",bali:"[\u1b50-\u1b59]",beng:"[\u09e6-\u09ef]",deva:"[\u0966-\u096f]",fullwide:"[\uff10-\uff19]",gujr:"[\u0ae6-\u0aef]",hanidec:"[\u3007|\u4e00|\u4e8c|\u4e09|\u56db|\u4e94|\u516d|\u4e03|\u516b|\u4e5d]",khmr:"[\u17e0-\u17e9]",knda:"[\u0ce6-\u0cef]",laoo:"[\u0ed0-\u0ed9]",limb:"[\u1946-\u194f]",mlym:"[\u0d66-\u0d6f]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0b66-\u0b6f]",tamldec:"[\u0be6-\u0bef]",telu:"[\u0c66-\u0c6f]",thai:"[\u0e50-\u0e59]",tibt:"[\u0f20-\u0f29]",latn:"\\d"},ye={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},Pe=kt.hanidec.replace(/[\[|\]]/g,"").split("");let Xe={};function on({numberingSystem:S},w=""){const b=S||"latn";return Xe[b]||(Xe[b]={}),Xe[b][w]||(Xe[b][w]=new RegExp(`${kt[b]}${w}`)),Xe[b][w]}let nt,gt=()=>Date.now(),Ke="system",Ee=null,Qe=null,Bt=null,hn=60,He=null;class Ze{static get now(){return gt}static set now(w){gt=w}static set defaultZone(w){Ke=w}static get defaultZone(){return an(Ke,Vt.instance)}static get defaultLocale(){return Ee}static set defaultLocale(w){Ee=w}static get defaultNumberingSystem(){return Qe}static set defaultNumberingSystem(w){Qe=w}static get defaultOutputCalendar(){return Bt}static set defaultOutputCalendar(w){Bt=w}static get defaultWeekSettings(){return He}static set defaultWeekSettings(w){He=Fo(w)}static get twoDigitCutoffYear(){return hn}static set twoDigitCutoffYear(w){hn=w%100}static get throwOnInvalid(){return nt}static set throwOnInvalid(w){nt=w}static resetCaches(){ei.resetCache(),xt.resetCache(),qn.resetCache(),function zt(){Xe={}}()}}class $t{constructor(w,b){this.reason=w,this.explanation=b}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const fn=[0,31,59,90,120,151,181,212,243,273,304,334],mn=[0,31,60,91,121,152,182,213,244,274,305,335];function gn(S,w){return new $t("unit out of range",`you specified ${w} (of type ${typeof w}) as a ${S}, which is invalid`)}function ri(S,w,b){const I=new Date(Date.UTC(S,w-1,b));S<100&&S>=0&&I.setUTCFullYear(I.getUTCFullYear()-1900);const X=I.getUTCDay();return 0===X?7:X}function Sn(S,w,b){return b+(Ws(S)?mn:fn)[w-1]}function Ei(S,w){const b=Ws(S)?mn:fn,I=b.findIndex(de=>de<w);return{month:I+1,day:w-b[I]}}function Ns(S,w){return(S-w+7)%7+1}function gs(S,w=4,b=1){const{year:I,month:X,day:de}=S,tt=Sn(I,X,de),Ot=Ns(ri(I,X,de),b);let _n,Kt=Math.floor((tt-Ot+14-w)/7);return Kt<1?(_n=I-1,Kt=Lo(_n,w,b)):Kt>Lo(I,w,b)?(_n=I+1,Kt=1):_n=I,{weekYear:_n,weekNumber:Kt,weekday:Ot,...Ds(S)}}function ms(S,w=4,b=1){const{weekYear:I,weekNumber:X,weekday:de}=S,tt=Ns(ri(I,1,w),b),Ot=Tr(I);let _n,Kt=7*X+de-tt-7+w;Kt<1?(_n=I-1,Kt+=Tr(_n)):Kt>Ot?(_n=I+1,Kt-=Tr(I)):_n=I;const{month:fi,day:Ii}=Ei(_n,Kt);return{year:_n,month:fi,day:Ii,...Ds(S)}}function Cs(S){const{year:w,month:b,day:I}=S;return{year:w,ordinal:Sn(w,b,I),...Ds(S)}}function Es(S){const{year:w,ordinal:b}=S,{month:I,day:X}=Ei(w,b);return{year:w,month:I,day:X,...Ds(S)}}function xi(S,w){if($e(S.localWeekday)&&$e(S.localWeekNumber)&&$e(S.localWeekYear))return{minDaysInFirstWeek:4,startOfWeek:1};if(!$e(S.weekday)||!$e(S.weekNumber)||!$e(S.weekYear))throw new mt("Cannot mix locale-based week fields with ISO-based week fields");return $e(S.localWeekday)||(S.weekday=S.localWeekday),$e(S.localWeekNumber)||(S.weekNumber=S.localWeekNumber),$e(S.localWeekYear)||(S.weekYear=S.localWeekYear),delete S.localWeekday,delete S.localWeekNumber,delete S.localWeekYear,{minDaysInFirstWeek:w.getMinDaysInFirstWeek(),startOfWeek:w.getStartOfWeek()}}function oe(S){const w=tn(S.year),b=Ri(S.month,1,12),I=Ri(S.day,1,hr(S.year,S.month));return w?b?!I&&gn("day",S.day):gn("month",S.month):gn("year",S.year)}function _e(S){const{hour:w,minute:b,second:I,millisecond:X}=S,de=Ri(w,0,23)||24===w&&0===b&&0===I&&0===X,tt=Ri(b,0,59),Ot=Ri(I,0,59),Kt=Ri(X,0,999);return de?tt?Ot?!Kt&&gn("millisecond",X):gn("second",I):gn("minute",b):gn("hour",w)}function $e(S){return typeof S>"u"}function Pt(S){return"number"==typeof S}function tn(S){return"number"==typeof S&&S%1==0}function hi(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Kn(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function es(S,w,b){if(0!==S.length)return S.reduce((I,X)=>{const de=[w(X),X];return I&&b(I[0],de[0])===I[0]?I:de},null)[1]}function dr(S,w){return Object.prototype.hasOwnProperty.call(S,w)}function Fo(S){if(null==S)return null;if("object"!=typeof S)throw new vt("Week settings must be an object");if(!Ri(S.firstDay,1,7)||!Ri(S.minimalDays,1,7)||!Array.isArray(S.weekend)||S.weekend.some(w=>!Ri(w,1,7)))throw new vt("Invalid week settings");return{firstDay:S.firstDay,minimalDays:S.minimalDays,weekend:Array.from(S.weekend)}}function Ri(S,w,b){return tn(S)&&S>=w&&S<=b}function as(S,w=2){let I;return I=S<0?"-"+(""+-S).padStart(w,"0"):(""+S).padStart(w,"0"),I}function ur(S){if(!$e(S)&&null!==S&&""!==S)return parseInt(S,10)}function In(S){if(!$e(S)&&null!==S&&""!==S)return parseFloat(S)}function Ao(S){if(!$e(S)&&null!==S&&""!==S){const w=1e3*parseFloat("0."+S);return Math.floor(w)}}function Bs(S,w,b=!1){const I=10**w;return(b?Math.trunc:Math.round)(S*I)/I}function Ws(S){return S%4==0&&(S%100!=0||S%400==0)}function Tr(S){return Ws(S)?366:365}function hr(S,w){const b=function Xs(S,w){return S-w*Math.floor(S/w)}(w-1,12)+1;return 2===b?Ws(S+(w-b)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][b-1]}function Po(S){let w=Date.UTC(S.year,S.month-1,S.day,S.hour,S.minute,S.second,S.millisecond);return S.year<100&&S.year>=0&&(w=new Date(w),w.setUTCFullYear(S.year,S.month-1,S.day)),+w}function er(S,w,b){return-Ns(ri(S,1,w),b)+w-1}function Lo(S,w=4,b=1){const I=er(S,w,b),X=er(S+1,w,b);return(Tr(S)-I+X)/7}function po(S){return S>99?S:S>Ze.twoDigitCutoffYear?1900+S:2e3+S}function mo(S,w,b,I=null){const X=new Date(S),de={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};I&&(de.timeZone=I);const tt={timeZoneName:w,...de},Ot=new Intl.DateTimeFormat(b,tt).formatToParts(X).find(Kt=>"timezonename"===Kt.type.toLowerCase());return Ot?Ot.value:null}function yi(S,w){let b=parseInt(S,10);Number.isNaN(b)&&(b=0);const I=parseInt(w,10)||0;return 60*b+(b<0||Object.is(b,-0)?-I:I)}function ws(S){const w=Number(S);if("boolean"==typeof S||""===S||Number.isNaN(w))throw new vt(`Invalid unit value ${S}`);return w}function qi(S,w){const b={};for(const I in S)if(dr(S,I)){const X=S[I];if(null==X)continue;b[w(I)]=ws(X)}return b}function Ks(S,w){const b=Math.trunc(Math.abs(S/60)),I=Math.trunc(Math.abs(S%60)),X=S>=0?"+":"-";switch(w){case"short":return`${X}${as(b,2)}:${as(I,2)}`;case"narrow":return`${X}${b}${I>0?`:${I}`:""}`;case"techie":return`${X}${as(b,2)}${as(I,2)}`;default:throw new RangeError(`Value format ${w} is out of range for property format`)}}function Ds(S){return function Ls(S,w){return w.reduce((b,I)=>(b[I]=S[I],b),{})}(S,["hour","minute","second","millisecond"])}const Qs=["January","February","March","April","May","June","July","August","September","October","November","December"],Zs=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Wo=["J","F","M","A","M","J","J","A","S","O","N","D"];function Nr(S){switch(S){case"narrow":return[...Wo];case"short":return[...Zs];case"long":return[...Qs];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Vi=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],On=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],ni=["M","T","W","T","F","S","S"];function Xi(S){switch(S){case"narrow":return[...ni];case"short":return[...On];case"long":return[...Vi];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Us=["AM","PM"],go=["Before Christ","Anno Domini"],so=["BC","AD"],Ko=["B","A"];function Wi(S){switch(S){case"narrow":return[...Ko];case"short":return[...so];case"long":return[...go];default:return null}}function Ni(S,w){let b="";for(const I of S)b+=I.literal?I.val:w(I.val);return b}const Xr={D:ht,DD:St,DDD:cn,DDDD:En,t:dn,tt:Wt,ttt:ze,tttt:be,T:Se,TT:Nt,TTT:K,TTTT:ge,f:je,ff:ce,fff:Ye,ffff:z,F:le,FF:Le,FFF:L,FFFF:Be};class ls{static create(w,b={}){return new ls(w,b)}static parseFormat(w){let b=null,I="",X=!1;const de=[];for(let tt=0;tt<w.length;tt++){const Ot=w.charAt(tt);"'"===Ot?(I.length>0&&de.push({literal:X||/^\s+$/.test(I),val:I}),b=null,I="",X=!X):X||Ot===b?I+=Ot:(I.length>0&&de.push({literal:/^\s+$/.test(I),val:I}),I=Ot,b=Ot)}return I.length>0&&de.push({literal:X||/^\s+$/.test(I),val:I}),de}static macroTokenToFormatOpts(w){return Xr[w]}constructor(w,b){this.opts=b,this.loc=w,this.systemLoc=null}formatWithSystemDefault(w,b){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(w,{...this.opts,...b}).format()}dtFormatter(w,b={}){return this.loc.dtFormatter(w,{...this.opts,...b})}formatDateTime(w,b){return this.dtFormatter(w,b).format()}formatDateTimeParts(w,b){return this.dtFormatter(w,b).formatToParts()}formatInterval(w,b){return this.dtFormatter(w.start,b).dtf.formatRange(w.start.toJSDate(),w.end.toJSDate())}resolvedOptions(w,b){return this.dtFormatter(w,b).resolvedOptions()}num(w,b=0){if(this.opts.forceSimple)return as(w,b);const I={...this.opts};return b>0&&(I.padTo=b),this.loc.numberFormatter(I).format(w)}formatDateTimeFromString(w,b){const I="en"===this.loc.listingMode(),X=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,de=(vi,Ro)=>this.loc.extract(w,vi,Ro),tt=vi=>w.isOffsetFixed&&0===w.offset&&vi.allowZ?"Z":w.isValid?w.zone.formatOffset(w.ts,vi.format):"",Kt=(vi,Ro)=>I?function ii(S,w){return Nr(w)[S.month-1]}(w,vi):de(Ro?{month:vi}:{month:vi,day:"numeric"},"month"),_n=(vi,Ro)=>I?function oo(S,w){return Xi(w)[S.weekday-1]}(w,vi):de(Ro?{weekday:vi}:{weekday:vi,month:"long",day:"numeric"},"weekday"),fi=vi=>{const Ro=ls.macroTokenToFormatOpts(vi);return Ro?this.formatWithSystemDefault(w,Ro):vi},Ii=vi=>I?function zr(S,w){return Wi(w)[S.year<0?0:1]}(w,vi):de({era:vi},"era");return Ni(ls.parseFormat(b),vi=>{switch(vi){case"S":return this.num(w.millisecond);case"u":case"SSS":return this.num(w.millisecond,3);case"s":return this.num(w.second);case"ss":return this.num(w.second,2);case"uu":return this.num(Math.floor(w.millisecond/10),2);case"uuu":return this.num(Math.floor(w.millisecond/100));case"m":return this.num(w.minute);case"mm":return this.num(w.minute,2);case"h":return this.num(w.hour%12==0?12:w.hour%12);case"hh":return this.num(w.hour%12==0?12:w.hour%12,2);case"H":return this.num(w.hour);case"HH":return this.num(w.hour,2);case"Z":return tt({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return tt({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return tt({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return w.zone.offsetName(w.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return w.zone.offsetName(w.ts,{format:"long",locale:this.loc.locale});case"z":return w.zoneName;case"a":return I?function fr(S){return Us[S.hour<12?0:1]}(w):de({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return X?de({day:"numeric"},"day"):this.num(w.day);case"dd":return X?de({day:"2-digit"},"day"):this.num(w.day,2);case"c":case"E":return this.num(w.weekday);case"ccc":return _n("short",!0);case"cccc":return _n("long",!0);case"ccccc":return _n("narrow",!0);case"EEE":return _n("short",!1);case"EEEE":return _n("long",!1);case"EEEEE":return _n("narrow",!1);case"L":return X?de({month:"numeric",day:"numeric"},"month"):this.num(w.month);case"LL":return X?de({month:"2-digit",day:"numeric"},"month"):this.num(w.month,2);case"LLL":return Kt("short",!0);case"LLLL":return Kt("long",!0);case"LLLLL":return Kt("narrow",!0);case"M":return X?de({month:"numeric"},"month"):this.num(w.month);case"MM":return X?de({month:"2-digit"},"month"):this.num(w.month,2);case"MMM":return Kt("short",!1);case"MMMM":return Kt("long",!1);case"MMMMM":return Kt("narrow",!1);case"y":return X?de({year:"numeric"},"year"):this.num(w.year);case"yy":return X?de({year:"2-digit"},"year"):this.num(w.year.toString().slice(-2),2);case"yyyy":return X?de({year:"numeric"},"year"):this.num(w.year,4);case"yyyyyy":return X?de({year:"numeric"},"year"):this.num(w.year,6);case"G":return Ii("short");case"GG":return Ii("long");case"GGGGG":return Ii("narrow");case"kk":return this.num(w.weekYear.toString().slice(-2),2);case"kkkk":return this.num(w.weekYear,4);case"W":return this.num(w.weekNumber);case"WW":return this.num(w.weekNumber,2);case"n":return this.num(w.localWeekNumber);case"nn":return this.num(w.localWeekNumber,2);case"ii":return this.num(w.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(w.localWeekYear,4);case"o":return this.num(w.ordinal);case"ooo":return this.num(w.ordinal,3);case"q":return this.num(w.quarter);case"qq":return this.num(w.quarter,2);case"X":return this.num(Math.floor(w.ts/1e3));case"x":return this.num(w.ts);default:return fi(vi)}})}formatDurationFromString(w,b){const I=Kt=>{switch(Kt[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},de=ls.parseFormat(b),tt=de.reduce((Kt,{literal:_n,val:fi})=>_n?Kt:Kt.concat(fi),[]);return Ni(de,(Kt=>_n=>{const fi=I(_n);return fi?this.num(Kt.get(fi),_n.length):_n})(w.shiftTo(...tt.map(I).filter(Kt=>Kt))))}}const Mo=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function Qo(...S){const w=S.reduce((b,I)=>b+I.source,"");return RegExp(`^${w}$`)}function Fr(...S){return w=>S.reduce(([b,I,X],de)=>{const[tt,Ot,Kt]=de(w,X);return[{...b,...tt},Ot||I,Kt]},[{},null,1]).slice(0,2)}function Ss(S,...w){if(null==S)return[null,null];for(const[b,I]of w){const X=b.exec(S);if(X)return I(X)}return[null,null]}function _o(...S){return(w,b)=>{const I={};let X;for(X=0;X<S.length;X++)I[S[X]]=ur(w[b+X]);return[I,null,b+X]}}const pr=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,gi=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,Vs=RegExp(`${gi.source}(?:${pr.source}?(?:\\[(${Mo.source})\\])?)?`),Ar=RegExp(`(?:T${Vs.source})?`),Bo=_o("weekYear","weekNumber","weekDay"),tr=_o("year","ordinal"),Wr=RegExp(`${gi.source} ?(?:${pr.source}|(${Mo.source}))?`),Fs=RegExp(`(?: ${Wr.source})?`);function Ki(S,w,b){const I=S[w];return $e(I)?b:ur(I)}function Vo(S,w){return[{hours:Ki(S,w,0),minutes:Ki(S,w+1,0),seconds:Ki(S,w+2,0),milliseconds:Ao(S[w+3])},null,w+4]}function Kr(S,w){const b=!S[w]&&!S[w+1],I=yi(S[w+1],S[w+2]);return[{},b?null:Mn.instance(I),w+3]}function Mi(S,w){return[{},S[w]?xt.create(S[w]):null,w+1]}const ha=RegExp(`^T?${gi.source}$`),cl=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function wa(S){const[w,b,I,X,de,tt,Ot,Kt,_n]=S,fi="-"===w[0],Ii=Kt&&"-"===Kt[0],Gi=(vi,Ro=!1)=>void 0!==vi&&(Ro||vi&&fi)?-vi:vi;return[{years:Gi(In(b)),months:Gi(In(I)),weeks:Gi(In(X)),days:Gi(In(de)),hours:Gi(In(tt)),minutes:Gi(In(Ot)),seconds:Gi(In(Kt),"-0"===Kt),milliseconds:Gi(Ao(_n),Ii)}]}const Rl={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function nr(S,w,b,I,X,de,tt){const Ot={year:2===w.length?po(ur(w)):ur(w),month:Zs.indexOf(b)+1,day:ur(I),hour:ur(X),minute:ur(de)};return tt&&(Ot.second=ur(tt)),S&&(Ot.weekday=S.length>3?Vi.indexOf(S)+1:On.indexOf(S)+1),Ot}const J=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ee(S){const[,w,b,I,X,de,tt,Ot,Kt,_n,fi,Ii]=S,Gi=nr(w,X,I,b,de,tt,Ot);let vi;return vi=Kt?Rl[Kt]:_n?0:yi(fi,Ii),[Gi,new Mn(vi)]}const Ce=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,et=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,$n=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function _i(S){const[,w,b,I,X,de,tt,Ot]=S;return[nr(w,X,I,b,de,tt,Ot),Mn.utcInstance]}function Er(S){const[,w,b,I,X,de,tt,Ot]=S;return[nr(w,Ot,b,I,X,de,tt),Mn.utcInstance]}const Pr=Qo(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Ar),dl=Qo(/(\d{4})-?W(\d\d)(?:-?(\d))?/,Ar),vc=Qo(/(\d{4})-?(\d{3})/,Ar),bc=Qo(Vs),ul=Fr(function gr(S,w){return[{year:Ki(S,w),month:Ki(S,w+1,1),day:Ki(S,w+2,1)},null,w+3]},Vo,Kr,Mi),Ja=Fr(Bo,Vo,Kr,Mi),Ql=Fr(tr,Vo,Kr,Mi),yc=Fr(Vo,Kr,Mi),_r=Fr(Vo),vo=Qo(/(\d{4})-(\d\d)-(\d\d)/,Fs),Qr=Qo(Wr),Ho=Fr(Vo,Kr,Mi),fl="Invalid Duration",ir={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Pa={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...ir},To=365.2425,pa=30.436875,Uo={years:{quarters:4,months:12,weeks:To/7,days:To,hours:24*To,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:To/28,days:To/4,hours:24*To/4,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:pa/7,days:pa,hours:24*pa,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...ir},Lr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Da=Lr.slice(0).reverse();function Zo(S,w,b=!1){const I={values:b?w.values:{...S.values,...w.values||{}},loc:S.loc.clone(w.loc),conversionAccuracy:w.conversionAccuracy||S.conversionAccuracy,matrix:w.matrix||S.matrix};return new Ti(I)}function pl(S,w){let b=w.milliseconds??0;for(const I of Da.slice(1))w[I]&&(b+=w[I]*S[I].milliseconds);return b}function sr(S,w){const b=pl(S,w)<0?-1:1;Lr.reduceRight((I,X)=>{if($e(w[X]))return I;if(I){const tt=S[X][I],Ot=Math.floor(w[I]*b/tt);w[X]+=Ot*b,w[I]-=Ot*tt*b}return X},null),Lr.reduce((I,X)=>{if($e(w[X]))return I;if(I){const de=w[I]%1;w[I]-=de,w[X]+=de*S[I][X]}return X},null)}class Ti{constructor(w){const b="longterm"===w.conversionAccuracy||!1;let I=b?Uo:Pa;w.matrix&&(I=w.matrix),this.values=w.values,this.loc=w.loc||ei.create(),this.conversionAccuracy=b?"longterm":"casual",this.invalid=w.invalid||null,this.matrix=I,this.isLuxonDuration=!0}static fromMillis(w,b){return Ti.fromObject({milliseconds:w},b)}static fromObject(w,b={}){if(null==w||"object"!=typeof w)throw new vt("Duration.fromObject: argument expected to be an object, got "+(null===w?"null":typeof w));return new Ti({values:qi(w,Ti.normalizeUnit),loc:ei.fromObject(b),conversionAccuracy:b.conversionAccuracy,matrix:b.matrix})}static fromDurationLike(w){if(Pt(w))return Ti.fromMillis(w);if(Ti.isDuration(w))return w;if("object"==typeof w)return Ti.fromObject(w);throw new vt(`Unknown duration argument ${w} of type ${typeof w}`)}static fromISO(w,b){const[I]=function Go(S){return Ss(S,[cl,wa])}(w);return I?Ti.fromObject(I,b):Ti.invalid("unparsable",`the input "${w}" can't be parsed as ISO 8601`)}static fromISOTime(w,b){const[I]=function Nl(S){return Ss(S,[ha,_r])}(w);return I?Ti.fromObject(I,b):Ti.invalid("unparsable",`the input "${w}" can't be parsed as ISO 8601`)}static invalid(w,b=null){if(!w)throw new vt("need to specify a reason the Duration is invalid");const I=w instanceof $t?w:new $t(w,b);if(Ze.throwOnInvalid)throw new ft(I);return new Ti({invalid:I})}static normalizeUnit(w){const b={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[w&&w.toLowerCase()];if(!b)throw new en(w);return b}static isDuration(w){return w&&w.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(w,b={}){const I={...b,floor:!1!==b.round&&!1!==b.floor};return this.isValid?ls.create(this.loc,I).formatDurationFromString(this,w):fl}toHuman(w={}){if(!this.isValid)return fl;const b=Lr.map(I=>{const X=this.values[I];return $e(X)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...w,unit:I.slice(0,-1)}).format(X)}).filter(I=>I);return this.loc.listFormatter({type:"conjunction",style:w.listStyle||"narrow",...w}).format(b)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let w="P";return 0!==this.years&&(w+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(w+=this.months+3*this.quarters+"M"),0!==this.weeks&&(w+=this.weeks+"W"),0!==this.days&&(w+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(w+="T"),0!==this.hours&&(w+=this.hours+"H"),0!==this.minutes&&(w+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(w+=Bs(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===w&&(w+="T0S"),w}toISOTime(w={}){if(!this.isValid)return null;const b=this.toMillis();return b<0||b>=864e5?null:(w={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...w,includeOffset:!1},qn.fromMillis(b,{zone:"UTC"}).toISOTime(w))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?pl(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(w){if(!this.isValid)return this;const b=Ti.fromDurationLike(w),I={};for(const X of Lr)(dr(b.values,X)||dr(this.values,X))&&(I[X]=b.get(X)+this.get(X));return Zo(this,{values:I},!0)}minus(w){if(!this.isValid)return this;const b=Ti.fromDurationLike(w);return this.plus(b.negate())}mapUnits(w){if(!this.isValid)return this;const b={};for(const I of Object.keys(this.values))b[I]=ws(w(this.values[I],I));return Zo(this,{values:b},!0)}get(w){return this[Ti.normalizeUnit(w)]}set(w){return this.isValid?Zo(this,{values:{...this.values,...qi(w,Ti.normalizeUnit)}}):this}reconfigure({locale:w,numberingSystem:b,conversionAccuracy:I,matrix:X}={}){return Zo(this,{loc:this.loc.clone({locale:w,numberingSystem:b}),matrix:X,conversionAccuracy:I})}as(w){return this.isValid?this.shiftTo(w).get(w):NaN}normalize(){if(!this.isValid)return this;const w=this.toObject();return sr(this.matrix,w),Zo(this,{values:w},!0)}rescale(){return this.isValid?Zo(this,{values:function Ma(S){const w={};for(const[b,I]of Object.entries(S))0!==I&&(w[b]=I);return w}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...w){if(!this.isValid)return this;if(0===w.length)return this;w=w.map(tt=>Ti.normalizeUnit(tt));const b={},I={},X=this.toObject();let de;for(const tt of Lr)if(w.indexOf(tt)>=0){de=tt;let Ot=0;for(const _n in I)Ot+=this.matrix[_n][tt]*I[_n],I[_n]=0;Pt(X[tt])&&(Ot+=X[tt]);const Kt=Math.trunc(Ot);b[tt]=Kt,I[tt]=(1e3*Ot-1e3*Kt)/1e3}else Pt(X[tt])&&(I[tt]=X[tt]);for(const tt in I)0!==I[tt]&&(b[de]+=tt===de?I[tt]:I[tt]/this.matrix[de][tt]);return sr(this.matrix,b),Zo(this,{values:b},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const w={};for(const b of Object.keys(this.values))w[b]=0===this.values[b]?0:-this.values[b];return Zo(this,{values:w},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(w){if(!this.isValid||!w.isValid||!this.loc.equals(w.loc))return!1;function b(I,X){return void 0===I||0===I?void 0===X||0===X:I===X}for(const I of Lr)if(!b(this.values[I],w.values[I]))return!1;return!0}}const Zr="Invalid Interval";class xs{constructor(w){this.s=w.start,this.e=w.end,this.invalid=w.invalid||null,this.isLuxonInterval=!0}static invalid(w,b=null){if(!w)throw new vt("need to specify a reason the Interval is invalid");const I=w instanceof $t?w:new $t(w,b);if(Ze.throwOnInvalid)throw new bt(I);return new xs({invalid:I})}static fromDateTimes(w,b){const I=Sa(w),X=Sa(b),de=function Fl(S,w){return S&&S.isValid?w&&w.isValid?w<S?xs.invalid("end before start",`The end of an interval must be after its start, but you had start=${S.toISO()} and end=${w.toISO()}`):null:xs.invalid("missing or invalid end"):xs.invalid("missing or invalid start")}(I,X);return de??new xs({start:I,end:X})}static after(w,b){const I=Ti.fromDurationLike(b),X=Sa(w);return xs.fromDateTimes(X,X.plus(I))}static before(w,b){const I=Ti.fromDurationLike(b),X=Sa(w);return xs.fromDateTimes(X.minus(I),X)}static fromISO(w,b){const[I,X]=(w||"").split("/",2);if(I&&X){let de,tt,Ot,Kt;try{de=qn.fromISO(I,b),tt=de.isValid}catch{tt=!1}try{Ot=qn.fromISO(X,b),Kt=Ot.isValid}catch{Kt=!1}if(tt&&Kt)return xs.fromDateTimes(de,Ot);if(tt){const _n=Ti.fromISO(X,b);if(_n.isValid)return xs.after(de,_n)}else if(Kt){const _n=Ti.fromISO(I,b);if(_n.isValid)return xs.before(Ot,_n)}}return xs.invalid("unparsable",`the input "${w}" can't be parsed as ISO 8601`)}static isInterval(w){return w&&w.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(w="milliseconds"){return this.isValid?this.toDuration(w).get(w):NaN}count(w="milliseconds",b){if(!this.isValid)return NaN;const I=this.start.startOf(w,b);let X;return X=b?.useLocaleWeeks?this.end.reconfigure({locale:I.locale}):this.end,X=X.startOf(w,b),Math.floor(X.diff(I,w).get(w))+(X.valueOf()!==this.end.valueOf())}hasSame(w){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,w))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(w){return!!this.isValid&&this.s>w}isBefore(w){return!!this.isValid&&this.e<=w}contains(w){return!!this.isValid&&this.s<=w&&this.e>w}set({start:w,end:b}={}){return this.isValid?xs.fromDateTimes(w||this.s,b||this.e):this}splitAt(...w){if(!this.isValid)return[];const b=w.map(Sa).filter(tt=>this.contains(tt)).sort((tt,Ot)=>tt.toMillis()-Ot.toMillis()),I=[];let{s:X}=this,de=0;for(;X<this.e;){const tt=b[de]||this.e,Ot=+tt>+this.e?this.e:tt;I.push(xs.fromDateTimes(X,Ot)),X=Ot,de+=1}return I}splitBy(w){const b=Ti.fromDurationLike(w);if(!this.isValid||!b.isValid||0===b.as("milliseconds"))return[];let de,{s:I}=this,X=1;const tt=[];for(;I<this.e;){const Ot=this.start.plus(b.mapUnits(Kt=>Kt*X));de=+Ot>+this.e?this.e:Ot,tt.push(xs.fromDateTimes(I,de)),I=de,X+=1}return tt}divideEqually(w){return this.isValid?this.splitBy(this.length()/w).slice(0,w):[]}overlaps(w){return this.e>w.s&&this.s<w.e}abutsStart(w){return!!this.isValid&&+this.e==+w.s}abutsEnd(w){return!!this.isValid&&+w.e==+this.s}engulfs(w){return!!this.isValid&&this.s<=w.s&&this.e>=w.e}equals(w){return!(!this.isValid||!w.isValid)&&this.s.equals(w.s)&&this.e.equals(w.e)}intersection(w){if(!this.isValid)return this;const b=this.s>w.s?this.s:w.s,I=this.e<w.e?this.e:w.e;return b>=I?null:xs.fromDateTimes(b,I)}union(w){return this.isValid?xs.fromDateTimes(this.s<w.s?this.s:w.s,this.e>w.e?this.e:w.e):this}static merge(w){const[b,I]=w.sort((X,de)=>X.s-de.s).reduce(([X,de],tt)=>de?de.overlaps(tt)||de.abutsStart(tt)?[X,de.union(tt)]:[X.concat([de]),tt]:[X,tt],[[],null]);return I&&b.push(I),b}static xor(w){let b=null,I=0;const X=[],de=w.map(Kt=>[{time:Kt.s,type:"s"},{time:Kt.e,type:"e"}]),Ot=Array.prototype.concat(...de).sort((Kt,_n)=>Kt.time-_n.time);for(const Kt of Ot)I+="s"===Kt.type?1:-1,1===I?b=Kt.time:(b&&+b!=+Kt.time&&X.push(xs.fromDateTimes(b,Kt.time)),b=null);return xs.merge(X)}difference(...w){return xs.xor([this].concat(w)).map(b=>this.intersection(b)).filter(b=>b&&!b.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Zr}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(w=ht,b={}){return this.isValid?ls.create(this.s.loc.clone(b),w).formatInterval(this):Zr}toISO(w){return this.isValid?`${this.s.toISO(w)}/${this.e.toISO(w)}`:Zr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Zr}toISOTime(w){return this.isValid?`${this.s.toISOTime(w)}/${this.e.toISOTime(w)}`:Zr}toFormat(w,{separator:b=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(w)}${b}${this.e.toFormat(w)}`:Zr}toDuration(w,b){return this.isValid?this.e.diff(this.s,w,b):Ti.invalid(this.invalidReason)}mapEndpoints(w){return xs.fromDateTimes(w(this.s),w(this.e))}}class La{static hasDST(w=Ze.defaultZone){const b=qn.now().setZone(w).set({month:12});return!w.isUniversal&&b.offset!==b.set({month:6}).offset}static isValidIANAZone(w){return xt.isValidZone(w)}static normalizeZone(w){return an(w,Ze.defaultZone)}static getStartOfWeek({locale:w=null,locObj:b=null}={}){return(b||ei.create(w)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:w=null,locObj:b=null}={}){return(b||ei.create(w)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:w=null,locObj:b=null}={}){return(b||ei.create(w)).getWeekendDays().slice()}static months(w="long",{locale:b=null,numberingSystem:I=null,locObj:X=null,outputCalendar:de="gregory"}={}){return(X||ei.create(b,I,de)).months(w)}static monthsFormat(w="long",{locale:b=null,numberingSystem:I=null,locObj:X=null,outputCalendar:de="gregory"}={}){return(X||ei.create(b,I,de)).months(w,!0)}static weekdays(w="long",{locale:b=null,numberingSystem:I=null,locObj:X=null}={}){return(X||ei.create(b,I,null)).weekdays(w)}static weekdaysFormat(w="long",{locale:b=null,numberingSystem:I=null,locObj:X=null}={}){return(X||ei.create(b,I,null)).weekdays(w,!0)}static meridiems({locale:w=null}={}){return ei.create(w).meridiems()}static eras(w="short",{locale:b=null}={}){return ei.create(b,null,"gregory").eras(w)}static features(){return{relative:hi(),localeWeek:Kn()}}}function el(S,w){const b=X=>X.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),I=b(w)-b(S);return Math.floor(Ti.fromMillis(I).as("days"))}function Pi(S,w=(b=>b)){return{regex:S,deser:([b])=>w(function Fe(S){let w=parseInt(S,10);if(isNaN(w)){w="";for(let b=0;b<S.length;b++){const I=S.charCodeAt(b);if(-1!==S[b].search(kt.hanidec))w+=Pe.indexOf(S[b]);else for(const X in ye){const[de,tt]=ye[X];I>=de&&I<=tt&&(w+=I-de)}}return parseInt(w,10)}return w}(b))}}const Jr=`[ ${String.fromCharCode(160)}]`,tl=new RegExp(Jr,"g");function ea(S){return S.replace(/\./g,"\\.?").replace(tl,Jr)}function Eo(S){return S.replace(/\./g,"").replace(tl," ").toLowerCase()}function P(S,w){return null===S?null:{regex:RegExp(S.map(ea).join("|")),deser:([b])=>S.findIndex(I=>Eo(b)===Eo(I))+w}}function ae(S,w){return{regex:S,deser:([,b,I])=>yi(b,I),groups:w}}function Y(S){return{regex:S,deser:([w])=>w}}function te(S){return S.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}const Yt={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let Si=null;function Hi(S,w){return Array.prototype.concat(...S.map(b=>function ki(S,w){if(S.literal)return S;const I=So(ls.macroTokenToFormatOpts(S.val),w);return null==I||I.includes(void 0)?S:I}(b,w)))}class Li{constructor(w,b){if(this.locale=w,this.format=b,this.tokens=Hi(ls.parseFormat(b),w),this.units=this.tokens.map(I=>function We(S,w){const b=on(w),I=on(w,"{2}"),X=on(w,"{3}"),de=on(w,"{4}"),tt=on(w,"{6}"),Ot=on(w,"{1,2}"),Kt=on(w,"{1,3}"),_n=on(w,"{1,6}"),fi=on(w,"{1,9}"),Ii=on(w,"{2,4}"),Gi=on(w,"{4,6}"),vi=Gr=>({regex:RegExp(te(Gr.val)),deser:([Hr])=>Hr,literal:!0}),wr=(Gr=>{if(S.literal)return vi(Gr);switch(Gr.val){case"G":return P(w.eras("short"),0);case"GG":return P(w.eras("long"),0);case"y":return Pi(_n);case"yy":case"kk":return Pi(Ii,po);case"yyyy":case"kkkk":return Pi(de);case"yyyyy":return Pi(Gi);case"yyyyyy":return Pi(tt);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return Pi(Ot);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return Pi(I);case"MMM":return P(w.months("short",!0),1);case"MMMM":return P(w.months("long",!0),1);case"LLL":return P(w.months("short",!1),1);case"LLLL":return P(w.months("long",!1),1);case"o":case"S":return Pi(Kt);case"ooo":case"SSS":return Pi(X);case"u":return Y(fi);case"uu":return Y(Ot);case"uuu":case"E":case"c":return Pi(b);case"a":return P(w.meridiems(),0);case"EEE":return P(w.weekdays("short",!1),1);case"EEEE":return P(w.weekdays("long",!1),1);case"ccc":return P(w.weekdays("short",!0),1);case"cccc":return P(w.weekdays("long",!0),1);case"Z":case"ZZ":return ae(new RegExp(`([+-]${Ot.source})(?::(${I.source}))?`),2);case"ZZZ":return ae(new RegExp(`([+-]${Ot.source})(${I.source})?`),2);case"z":return Y(/[a-z_+-/]{1,256}?/i);case" ":return Y(/[^\S\n\r]/);default:return vi(Gr)}})(S)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return wr.token=S,wr}(I,w)),this.disqualifyingUnit=this.units.find(I=>I.invalidReason),!this.disqualifyingUnit){const[I,X]=function Gn(S){return[`^${S.map(b=>b.regex).reduce((b,I)=>`${b}(${I.source})`,"")}$`,S]}(this.units);this.regex=RegExp(I,"i"),this.handlers=X}}explainFromTokens(w){if(this.isValid){const[b,I]=function ts(S,w,b){const I=S.match(w);if(I){const X={};let de=1;for(const tt in b)if(dr(b,tt)){const Ot=b[tt],Kt=Ot.groups?Ot.groups+1:1;!Ot.literal&&Ot.token&&(X[Ot.token.val[0]]=Ot.deser(I.slice(de,de+Kt))),de+=Kt}return[I,X]}return[I,{}]}(w,this.regex,this.handlers),[X,de,tt]=I?function ji(S){let I,b=null;return $e(S.z)||(b=xt.create(S.z)),$e(S.Z)||(b||(b=new Mn(S.Z)),I=S.Z),$e(S.q)||(S.M=3*(S.q-1)+1),$e(S.h)||(S.h<12&&1===S.a?S.h+=12:12===S.h&&0===S.a&&(S.h=0)),0===S.G&&S.y&&(S.y=-S.y),$e(S.u)||(S.S=Ao(S.u)),[Object.keys(S).reduce((de,tt)=>{const Ot=(de=>{switch(de){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(tt);return Ot&&(de[Ot]=S[tt]),de},{}),b,I]}(I):[null,null,void 0];if(dr(I,"a")&&dr(I,"H"))throw new mt("Can't include meridiem when specifying 24-hour format");return{input:w,tokens:this.tokens,regex:this.regex,rawMatches:b,matches:I,result:X,zone:de,specificOffset:tt}}return{input:w,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}function $o(S,w,b){return new Li(S,b).explainFromTokens(w)}function So(S,w){if(!S)return null;const I=ls.create(w,S).dtFormatter(function Zn(){return Si||(Si=qn.fromMillis(1555555555555)),Si}()),X=I.formatToParts(),de=I.resolvedOptions();return X.map(tt=>function un(S,w,b){const{type:I,value:X}=S;if("literal"===I){const Kt=/^\s+$/.test(X);return{literal:!Kt,val:Kt?" ":X}}let tt=I;"hour"===I&&(tt=null!=w.hour12?w.hour12?"hour12":"hour24":null!=w.hourCycle?"h11"===w.hourCycle||"h12"===w.hourCycle?"hour12":"hour24":b.hour12?"hour12":"hour24");let Ot=Yt[tt];if("object"==typeof Ot&&(Ot=Ot[w[I]]),Ot)return{literal:!1,val:Ot}}(tt,S,de))}const bo="Invalid DateTime",ta=864e13;function ns(S){return new $t("unsupported zone",`the zone "${S.name}" is not supported`)}function Yo(S){return null===S.weekData&&(S.weekData=gs(S.c)),S.weekData}function vs(S){return null===S.localWeekData&&(S.localWeekData=gs(S.c,S.loc.getMinDaysInFirstWeek(),S.loc.getStartOfWeek())),S.localWeekData}function Di(S,w){const b={ts:S.ts,zone:S.zone,c:S.c,o:S.o,loc:S.loc,invalid:S.invalid};return new qn({...b,...w,old:b})}function ec(S,w,b){let I=S-60*w*1e3;const X=b.offset(I);if(w===X)return[I,w];I-=60*(X-w)*1e3;const de=b.offset(I);return X===de?[I,X]:[S-60*Math.min(X,de)*1e3,Math.max(X,de)]}function ma(S,w){const b=new Date(S+=60*w*1e3);return{year:b.getUTCFullYear(),month:b.getUTCMonth()+1,day:b.getUTCDate(),hour:b.getUTCHours(),minute:b.getUTCMinutes(),second:b.getUTCSeconds(),millisecond:b.getUTCMilliseconds()}}function ao(S,w,b){return ec(Po(S),w,b)}function wc(S,w){const b=S.o,I=S.c.year+Math.trunc(w.years),X=S.c.month+Math.trunc(w.months)+3*Math.trunc(w.quarters),de={...S.c,year:I,month:X,day:Math.min(S.c.day,hr(I,X))+Math.trunc(w.days)+7*Math.trunc(w.weeks)},tt=Ti.fromObject({years:w.years-Math.trunc(w.years),quarters:w.quarters-Math.trunc(w.quarters),months:w.months-Math.trunc(w.months),weeks:w.weeks-Math.trunc(w.weeks),days:w.days-Math.trunc(w.days),hours:w.hours,minutes:w.minutes,seconds:w.seconds,milliseconds:w.milliseconds}).as("milliseconds"),Ot=Po(de);let[Kt,_n]=ec(Ot,b,S.zone);return 0!==tt&&(Kt+=tt,_n=S.zone.offset(Kt)),{ts:Kt,o:_n}}function Ba(S,w,b,I,X,de){const{setZone:tt,zone:Ot}=b;if(S&&0!==Object.keys(S).length||w){const Kt=w||Ot,_n=qn.fromObject(S,{...b,zone:Kt,specificOffset:de});return tt?_n:_n.setZone(Ot)}return qn.invalid(new $t("unparsable",`the input "${X}" can't be parsed as ${I}`))}function na(S,w,b=!0){return S.isValid?ls.create(ei.create("en-US"),{allowZ:b,forceSimple:!0}).formatDateTimeFromString(S,w):null}function lo(S,w){const b=S.c.year>9999||S.c.year<0;let I="";return b&&S.c.year>=0&&(I+="+"),I+=as(S.c.year,b?6:4),w?(I+="-",I+=as(S.c.month),I+="-",I+=as(S.c.day)):(I+=as(S.c.month),I+=as(S.c.day)),I}function ko(S,w,b,I,X,de){let tt=as(S.c.hour);return w?(tt+=":",tt+=as(S.c.minute),(0!==S.c.millisecond||0!==S.c.second||!b)&&(tt+=":")):tt+=as(S.c.minute),(0!==S.c.millisecond||0!==S.c.second||!b)&&(tt+=as(S.c.second),(0!==S.c.millisecond||!I)&&(tt+=".",tt+=as(S.c.millisecond,3))),X&&(S.isOffsetFixed&&0===S.offset&&!de?tt+="Z":S.o<0?(tt+="-",tt+=as(Math.trunc(-S.o/60)),tt+=":",tt+=as(Math.trunc(-S.o%60))):(tt+="+",tt+=as(Math.trunc(S.o/60)),tt+=":",tt+=as(Math.trunc(S.o%60)))),de&&(tt+="["+S.zone.ianaName+"]"),tt}const ml={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Pl={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},xo={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Va=["year","month","day","hour","minute","second","millisecond"],Ta=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],gl=["year","ordinal","hour","minute","second","millisecond"];function Ll(S){switch(S.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function nl(S){const w={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[S.toLowerCase()];if(!w)throw new en(S);return w}(S)}}function Jn(S,w){const b=an(w.zone,Ze.defaultZone);if(!b.isValid)return qn.invalid(ns(b));const I=ei.fromObject(w);let X,de;if($e(S.year))X=Ze.now();else{for(const Kt of Va)$e(S[Kt])&&(S[Kt]=ml[Kt]);const tt=oe(S)||_e(S);if(tt)return qn.invalid(tt);const Ot=function Ea(S){return or[S]||(void 0===ia&&(ia=Ze.now()),or[S]=S.offset(ia)),or[S]}(b);[X,de]=ao(S,Ot,b)}return new qn({ts:X,zone:b,loc:I,o:de})}function ga(S,w,b){const I=!!$e(b.round)||b.round,X=(tt,Ot)=>(tt=Bs(tt,I||b.calendary?0:2,!0),w.loc.clone(b).relFormatter(b).format(tt,Ot)),de=tt=>b.calendary?w.hasSame(S,tt)?0:w.startOf(tt).diff(S.startOf(tt),tt).get(tt):w.diff(S,tt).get(tt);if(b.unit)return X(de(b.unit),b.unit);for(const tt of b.units){const Ot=de(tt);if(Math.abs(Ot)>=1)return X(Ot,tt)}return X(S>w?-0:0,b.units[b.units.length-1])}function vr(S){let b,w={};return S.length>0&&"object"==typeof S[S.length-1]?(w=S[S.length-1],b=Array.from(S).slice(0,S.length-1)):b=Array.from(S),[w,b]}let ia,or={};class qn{constructor(w){const b=w.zone||Ze.defaultZone;let I=w.invalid||(Number.isNaN(w.ts)?new $t("invalid input"):null)||(b.isValid?null:ns(b));this.ts=$e(w.ts)?Ze.now():w.ts;let X=null,de=null;if(!I)if(w.old&&w.old.ts===this.ts&&w.old.zone.equals(b))[X,de]=[w.old.c,w.old.o];else{const Ot=Pt(w.o)&&!w.old?w.o:b.offset(this.ts);X=ma(this.ts,Ot),I=Number.isNaN(X.year)?new $t("invalid input"):null,X=I?null:X,de=I?null:Ot}this._zone=b,this.loc=w.loc||ei.create(),this.invalid=I,this.weekData=null,this.localWeekData=null,this.c=X,this.o=de,this.isLuxonDateTime=!0}static now(){return new qn({})}static local(){const[w,b]=vr(arguments),[I,X,de,tt,Ot,Kt,_n]=b;return Jn({year:I,month:X,day:de,hour:tt,minute:Ot,second:Kt,millisecond:_n},w)}static utc(){const[w,b]=vr(arguments),[I,X,de,tt,Ot,Kt,_n]=b;return w.zone=Mn.utcInstance,Jn({year:I,month:X,day:de,hour:tt,minute:Ot,second:Kt,millisecond:_n},w)}static fromJSDate(w,b={}){const I=function zn(S){return"[object Date]"===Object.prototype.toString.call(S)}(w)?w.valueOf():NaN;if(Number.isNaN(I))return qn.invalid("invalid input");const X=an(b.zone,Ze.defaultZone);return X.isValid?new qn({ts:I,zone:X,loc:ei.fromObject(b)}):qn.invalid(ns(X))}static fromMillis(w,b={}){if(Pt(w))return w<-ta||w>ta?qn.invalid("Timestamp out of range"):new qn({ts:w,zone:an(b.zone,Ze.defaultZone),loc:ei.fromObject(b)});throw new vt(`fromMillis requires a numerical input, but received a ${typeof w} with value ${w}`)}static fromSeconds(w,b={}){if(Pt(w))return new qn({ts:1e3*w,zone:an(b.zone,Ze.defaultZone),loc:ei.fromObject(b)});throw new vt("fromSeconds requires a numerical input")}static fromObject(w,b={}){w=w||{};const I=an(b.zone,Ze.defaultZone);if(!I.isValid)return qn.invalid(ns(I));const X=ei.fromObject(b),de=qi(w,Ll),{minDaysInFirstWeek:tt,startOfWeek:Ot}=xi(de,X),Kt=Ze.now(),_n=$e(b.specificOffset)?I.offset(Kt):b.specificOffset,fi=!$e(de.ordinal),Ii=!$e(de.year),Gi=!$e(de.month)||!$e(de.day),vi=Ii||Gi,Ro=de.weekYear||de.weekNumber;if((vi||fi)&&Ro)throw new mt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Gi&&fi)throw new mt("Can't mix ordinal dates with month/day");const wr=Ro||de.weekday&&!vi;let Gr,Hr,Ys=ma(Kt,_n);wr?(Gr=Ta,Hr=Pl,Ys=gs(Ys,tt,Ot)):fi?(Gr=gl,Hr=xo,Ys=Cs(Ys)):(Gr=Va,Hr=ml);let hd=!1;for(const Ir of Gr)$e(de[Ir])?de[Ir]=hd?Hr[Ir]:Ys[Ir]:hd=!0;const lc=wr?function Re(S,w=4,b=1){const I=tn(S.weekYear),X=Ri(S.weekNumber,1,Lo(S.weekYear,w,b)),de=Ri(S.weekday,1,7);return I?X?!de&&gn("weekday",S.weekday):gn("week",S.weekNumber):gn("weekYear",S.weekYear)}(de,tt,Ot):fi?function Rt(S){const w=tn(S.year),b=Ri(S.ordinal,1,Tr(S.year));return w?!b&&gn("ordinal",S.ordinal):gn("year",S.year)}(de):oe(de),xd=lc||_e(de);if(xd)return qn.invalid(xd);const aa=wr?ms(de,tt,Ot):fi?Es(de):de,[El,ar]=ao(aa,_n,I),Qi=new qn({ts:El,zone:I,o:ar,loc:X});return de.weekday&&vi&&w.weekday!==Qi.weekday?qn.invalid("mismatched weekday",`you can't specify both a weekday of ${de.weekday} and a date of ${Qi.toISO()}`):Qi.isValid?Qi:qn.invalid(Qi.invalid)}static fromISO(w,b={}){const[I,X]=function hl(S){return Ss(S,[Pr,ul],[dl,Ja],[vc,Ql],[bc,yc])}(w);return Ba(I,X,b,"ISO 8601",w)}static fromRFC2822(w,b={}){const[I,X]=function fa(S){return Ss(function U(S){return S.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(S),[J,ee])}(w);return Ba(I,X,b,"RFC 2822",w)}static fromHTTP(w,b={}){const[I,X]=function jo(S){return Ss(S,[Ce,_i],[et,_i],[$n,Er])}(w);return Ba(I,X,b,"HTTP",b)}static fromFormat(w,b,I={}){if($e(w)||$e(b))throw new vt("fromFormat requires an input string and a format");const{locale:X=null,numberingSystem:de=null}=I,tt=ei.fromOpts({locale:X,numberingSystem:de,defaultToEN:!0}),[Ot,Kt,_n,fi]=function cs(S,w,b){const{result:I,zone:X,specificOffset:de,invalidReason:tt}=$o(S,w,b);return[I,X,de,tt]}(tt,w,b);return fi?qn.invalid(fi):Ba(Ot,Kt,I,`format ${b}`,w,_n)}static fromString(w,b,I={}){return qn.fromFormat(w,b,I)}static fromSQL(w,b={}){const[I,X]=function Aa(S){return Ss(S,[vo,ul],[Qr,Ho])}(w);return Ba(I,X,b,"SQL",w)}static invalid(w,b=null){if(!w)throw new vt("need to specify a reason the DateTime is invalid");const I=w instanceof $t?w:new $t(w,b);if(Ze.throwOnInvalid)throw new _t(I);return new qn({invalid:I})}static isDateTime(w){return w&&w.isLuxonDateTime||!1}static parseFormatForOpts(w,b={}){const I=So(w,ei.fromObject(b));return I?I.map(X=>X?X.val:null).join(""):null}static expandFormat(w,b={}){return Hi(ls.parseFormat(w),ei.fromObject(b)).map(X=>X.val).join("")}static resetCache(){ia=void 0,or={}}get(w){return this[w]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Yo(this).weekYear:NaN}get weekNumber(){return this.isValid?Yo(this).weekNumber:NaN}get weekday(){return this.isValid?Yo(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?vs(this).weekday:NaN}get localWeekNumber(){return this.isValid?vs(this).weekNumber:NaN}get localWeekYear(){return this.isValid?vs(this).weekYear:NaN}get ordinal(){return this.isValid?Cs(this.c).ordinal:NaN}get monthShort(){return this.isValid?La.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?La.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?La.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?La.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const w=864e5,b=6e4,I=Po(this.c),X=this.zone.offset(I-w),de=this.zone.offset(I+w),tt=this.zone.offset(I-X*b),Ot=this.zone.offset(I-de*b);if(tt===Ot)return[this];const Kt=I-tt*b,_n=I-Ot*b,fi=ma(Kt,tt),Ii=ma(_n,Ot);return fi.hour===Ii.hour&&fi.minute===Ii.minute&&fi.second===Ii.second&&fi.millisecond===Ii.millisecond?[Di(this,{ts:Kt}),Di(this,{ts:_n})]:[this]}get isInLeapYear(){return Ws(this.year)}get daysInMonth(){return hr(this.year,this.month)}get daysInYear(){return this.isValid?Tr(this.year):NaN}get weeksInWeekYear(){return this.isValid?Lo(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Lo(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(w={}){const{locale:b,numberingSystem:I,calendar:X}=ls.create(this.loc.clone(w),w).resolvedOptions(this);return{locale:b,numberingSystem:I,outputCalendar:X}}toUTC(w=0,b={}){return this.setZone(Mn.instance(w),b)}toLocal(){return this.setZone(Ze.defaultZone)}setZone(w,{keepLocalTime:b=!1,keepCalendarTime:I=!1}={}){if((w=an(w,Ze.defaultZone)).equals(this.zone))return this;if(w.isValid){let X=this.ts;if(b||I){const de=w.offset(this.ts),tt=this.toObject();[X]=ao(tt,de,w)}return Di(this,{ts:X,zone:w})}return qn.invalid(ns(w))}reconfigure({locale:w,numberingSystem:b,outputCalendar:I}={}){return Di(this,{loc:this.loc.clone({locale:w,numberingSystem:b,outputCalendar:I})})}setLocale(w){return this.reconfigure({locale:w})}set(w){if(!this.isValid)return this;const b=qi(w,Ll),{minDaysInFirstWeek:I,startOfWeek:X}=xi(b,this.loc),de=!$e(b.weekYear)||!$e(b.weekNumber)||!$e(b.weekday),tt=!$e(b.ordinal),Ot=!$e(b.year),Kt=!$e(b.month)||!$e(b.day);if((Ot||Kt||tt)&&(b.weekYear||b.weekNumber))throw new mt("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(Kt&&tt)throw new mt("Can't mix ordinal dates with month/day");let Ii;de?Ii=ms({...gs(this.c,I,X),...b},I,X):$e(b.ordinal)?(Ii={...this.toObject(),...b},$e(b.day)&&(Ii.day=Math.min(hr(Ii.year,Ii.month),Ii.day))):Ii=Es({...Cs(this.c),...b});const[Gi,vi]=ao(Ii,this.o,this.zone);return Di(this,{ts:Gi,o:vi})}plus(w){return this.isValid?Di(this,wc(this,Ti.fromDurationLike(w))):this}minus(w){return this.isValid?Di(this,wc(this,Ti.fromDurationLike(w).negate())):this}startOf(w,{useLocaleWeeks:b=!1}={}){if(!this.isValid)return this;const I={},X=Ti.normalizeUnit(w);switch(X){case"years":I.month=1;case"quarters":case"months":I.day=1;case"weeks":case"days":I.hour=0;case"hours":I.minute=0;case"minutes":I.second=0;case"seconds":I.millisecond=0}if("weeks"===X)if(b){const de=this.loc.getStartOfWeek(),{weekday:tt}=this;tt<de&&(I.weekNumber=this.weekNumber-1),I.weekday=de}else I.weekday=1;if("quarters"===X){const de=Math.ceil(this.month/3);I.month=3*(de-1)+1}return this.set(I)}endOf(w,b){return this.isValid?this.plus({[w]:1}).startOf(w,b).minus(1):this}toFormat(w,b={}){return this.isValid?ls.create(this.loc.redefaultToEN(b)).formatDateTimeFromString(this,w):bo}toLocaleString(w=ht,b={}){return this.isValid?ls.create(this.loc.clone(b),w).formatDateTime(this):bo}toLocaleParts(w={}){return this.isValid?ls.create(this.loc.clone(w),w).formatDateTimeParts(this):[]}toISO({format:w="extended",suppressSeconds:b=!1,suppressMilliseconds:I=!1,includeOffset:X=!0,extendedZone:de=!1}={}){if(!this.isValid)return null;const tt="extended"===w;let Ot=lo(this,tt);return Ot+="T",Ot+=ko(this,tt,b,I,X,de),Ot}toISODate({format:w="extended"}={}){return this.isValid?lo(this,"extended"===w):null}toISOWeekDate(){return na(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:w=!1,suppressSeconds:b=!1,includeOffset:I=!0,includePrefix:X=!1,extendedZone:de=!1,format:tt="extended"}={}){return this.isValid?(X?"T":"")+ko(this,"extended"===tt,b,w,I,de):null}toRFC2822(){return na(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return na(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?lo(this,!0):null}toSQLTime({includeOffset:w=!0,includeZone:b=!1,includeOffsetSpace:I=!0}={}){let X="HH:mm:ss.SSS";return(b||w)&&(I&&(X+=" "),b?X+="z":w&&(X+="ZZ")),na(this,X,!0)}toSQL(w={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(w)}`:null}toString(){return this.isValid?this.toISO():bo}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(w={}){if(!this.isValid)return{};const b={...this.c};return w.includeConfig&&(b.outputCalendar=this.outputCalendar,b.numberingSystem=this.loc.numberingSystem,b.locale=this.loc.locale),b}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(w,b="milliseconds",I={}){if(!this.isValid||!w.isValid)return Ti.invalid("created by diffing an invalid DateTime");const X={locale:this.locale,numberingSystem:this.numberingSystem,...I},de=function li(S){return Array.isArray(S)?S:[S]}(b).map(Ti.normalizeUnit),tt=w.valueOf()>this.valueOf(),_n=function Jl(S,w,b,I){let[X,de,tt,Ot]=function Zl(S,w,b){const I=[["years",(Kt,_n)=>_n.year-Kt.year],["quarters",(Kt,_n)=>_n.quarter-Kt.quarter+4*(_n.year-Kt.year)],["months",(Kt,_n)=>_n.month-Kt.month+12*(_n.year-Kt.year)],["weeks",(Kt,_n)=>{const fi=el(Kt,_n);return(fi-fi%7)/7}],["days",el]],X={},de=S;let tt,Ot;for(const[Kt,_n]of I)b.indexOf(Kt)>=0&&(tt=Kt,X[Kt]=_n(S,w),Ot=de.plus(X),Ot>w?(X[Kt]--,(S=de.plus(X))>w&&(Ot=S,X[Kt]--,S=de.plus(X))):S=Ot);return[S,X,Ot,tt]}(S,w,b);const Kt=w-X,_n=b.filter(Ii=>["hours","minutes","seconds","milliseconds"].indexOf(Ii)>=0);0===_n.length&&(tt<w&&(tt=X.plus({[Ot]:1})),tt!==X&&(de[Ot]=(de[Ot]||0)+Kt/(tt-X)));const fi=Ti.fromObject(de,I);return _n.length>0?Ti.fromMillis(Kt,I).shiftTo(..._n).plus(fi):fi}(tt?this:w,tt?w:this,de,X);return tt?_n.negate():_n}diffNow(w="milliseconds",b={}){return this.diff(qn.now(),w,b)}until(w){return this.isValid?xs.fromDateTimes(this,w):this}hasSame(w,b,I){if(!this.isValid)return!1;const X=w.valueOf(),de=this.setZone(w.zone,{keepLocalTime:!0});return de.startOf(b,I)<=X&&X<=de.endOf(b,I)}equals(w){return this.isValid&&w.isValid&&this.valueOf()===w.valueOf()&&this.zone.equals(w.zone)&&this.loc.equals(w.loc)}toRelative(w={}){if(!this.isValid)return null;const b=w.base||qn.fromObject({},{zone:this.zone}),I=w.padding?this<b?-w.padding:w.padding:0;let X=["years","months","days","hours","minutes","seconds"],de=w.unit;return Array.isArray(w.unit)&&(X=w.unit,de=void 0),ga(b,this.plus(I),{...w,numeric:"always",units:X,unit:de})}toRelativeCalendar(w={}){return this.isValid?ga(w.base||qn.fromObject({},{zone:this.zone}),this,{...w,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...w){if(!w.every(qn.isDateTime))throw new vt("min requires all arguments be DateTimes");return es(w,b=>b.valueOf(),Math.min)}static max(...w){if(!w.every(qn.isDateTime))throw new vt("max requires all arguments be DateTimes");return es(w,b=>b.valueOf(),Math.max)}static fromFormatExplain(w,b,I={}){const{locale:X=null,numberingSystem:de=null}=I;return $o(ei.fromOpts({locale:X,numberingSystem:de,defaultToEN:!0}),w,b)}static fromStringExplain(w,b,I={}){return qn.fromFormatExplain(w,b,I)}static buildFormatParser(w,b={}){const{locale:I=null,numberingSystem:X=null}=b,de=ei.fromOpts({locale:I,numberingSystem:X,defaultToEN:!0});return new Li(de,w)}static fromFormatParser(w,b,I={}){if($e(w)||$e(b))throw new vt("fromFormatParser requires an input string and a format parser");const{locale:X=null,numberingSystem:de=null}=I,tt=ei.fromOpts({locale:X,numberingSystem:de,defaultToEN:!0});if(!tt.equals(b.locale))throw new vt(`fromFormatParser called with a locale of ${tt}, but the format parser was created for ${b.locale}`);const{result:Ot,zone:Kt,specificOffset:_n,invalidReason:fi}=b.explainFromTokens(w);return fi?qn.invalid(fi):Ba(Ot,Kt,I,`format ${b.format}`,w,_n)}static get DATE_SHORT(){return ht}static get DATE_MED(){return St}static get DATE_MED_WITH_WEEKDAY(){return Mt}static get DATE_FULL(){return cn}static get DATE_HUGE(){return En}static get TIME_SIMPLE(){return dn}static get TIME_WITH_SECONDS(){return Wt}static get TIME_WITH_SHORT_OFFSET(){return ze}static get TIME_WITH_LONG_OFFSET(){return be}static get TIME_24_SIMPLE(){return Se}static get TIME_24_WITH_SECONDS(){return Nt}static get TIME_24_WITH_SHORT_OFFSET(){return K}static get TIME_24_WITH_LONG_OFFSET(){return ge}static get DATETIME_SHORT(){return je}static get DATETIME_SHORT_WITH_SECONDS(){return le}static get DATETIME_MED(){return ce}static get DATETIME_MED_WITH_SECONDS(){return Le}static get DATETIME_MED_WITH_WEEKDAY(){return ue}static get DATETIME_FULL(){return Ye}static get DATETIME_FULL_WITH_SECONDS(){return L}static get DATETIME_HUGE(){return z}static get DATETIME_HUGE_WITH_SECONDS(){return Be}}function Sa(S){if(qn.isDateTime(S))return S;if(S&&S.valueOf&&Pt(S.valueOf()))return qn.fromJSDate(S);if(S&&"object"==typeof S)return qn.fromObject(S);throw new vt(`Unknown datetime argument: ${S}, of type ${typeof S}`)}var Br=N(9417);function jc(S,w){1&S&&e.eu8(0)}function Js(S,w){if(1&S&&(e.j41(0,"div",3),e.DNE(1,jc,1,0,"ng-container",4),e.k0s()),2&S){const b=e.XpG(),I=e.sdS(4);e.Y8G("ngxAppendToInput",b.inputElement),e.R7$(1),e.Y8G("ngTemplateOutlet",I)}}function _l(S,w){1&S&&e.eu8(0)}function ld(S,w){if(1&S&&e.DNE(0,_l,1,0,"ng-container",4),2&S){e.XpG();const b=e.sdS(4);e.Y8G("ngTemplateOutlet",b)}}function Zt(S,w){1&S&&e.SdG(0)}const si=["*"],Io=["editableTimeTmpl"],Sr=function(S){return{"timepicker-dial__item_active":S}};function fs(S,w){if(1&S){const b=e.RV6();e.j41(0,"input",2),e.bIt("ngModelChange",function(X){e.eBV(b);const de=e.XpG();return e.Njj(de.time=X)})("input",function(){e.eBV(b);const X=e.XpG();return e.Njj(X.updateTime())})("focus",function(X){e.eBV(b);const de=e.XpG();return e.Njj(de.saveTimeAndChangeTimeUnit(X,de.timeUnit))}),e.nI1(1,"timeLocalizer"),e.k0s()}if(2&S){const b=e.XpG();e.Y8G("ngClass",e.eq3(7,Sr,b.isActive))("ngModel",e.i5U(1,4,b.time,b.timeUnit))("disabled",b.disabled)("timepickerAutofocus",b.isActive)}}function vl(S,w){if(1&S){const b=e.RV6();e.j41(0,"input",3,4),e.bIt("focus",function(X){e.eBV(b);const de=e.XpG();return e.Njj(de.saveTimeAndChangeTimeUnit(X,de.timeUnit))})("keydown",function(X){e.eBV(b);const de=e.XpG();return e.Njj(de.onKeydown(X))}),e.k0s()}if(2&S){const b=e.XpG();e.Y8G("formControl",b.timeControl)("ngClass",e.eq3(3,Sr,b.isActive))("timepickerAutofocus",b.isActive)}}function tc(S,w){if(1&S){const b=e.RV6();e.j41(0,"div",3),e.bIt("@scaleInOut.done",function(){e.eBV(b);const X=e.XpG();return e.Njj(X.animationDone())}),e.j41(1,"p"),e.EFF(2,"Current time would be invalid in this period."),e.k0s()()}2&S&&e.Y8G("@scaleInOut",void 0)}function sa(S,w){1&S&&e.eu8(0)}function ka(S,w){1&S&&(e.j41(0,"small",10),e.EFF(1," * use arrows ("),e.j41(2,"span"),e.EFF(3,"\u21c5"),e.k0s(),e.EFF(4,") to change the time"),e.k0s())}const Dc=function(S){return{"timepicker-dial__hint-container--hidden":S}};function Jd(S,w){if(1&S&&(e.j41(0,"div",7),e.DNE(1,sa,1,0,"ng-container",8),e.DNE(2,ka,5,0,"ng-template",null,9,e.C5r),e.k0s()),2&S){const b=e.sdS(3),I=e.XpG();e.Y8G("ngClass",e.eq3(2,Dc,!I.isHintVisible)),e.R7$(1),e.Y8G("ngTemplateOutlet",I.editableHintTmpl?I.editableHintTmpl:b)}}const oa=function(S){return{"timepicker-dial__period--hidden":S}},Vl=["clockFace"],co=["clockHand"],rr=function(S){return{transform:S}},A=function(S,w){return{active:S,disabled:w}};function V(S,w){if(1&S&&(e.j41(0,"div",9)(1,"span",10),e.nI1(2,"activeHour"),e.EFF(3),e.nI1(4,"timeLocalizer"),e.k0s()()),2&S){const b=w.$implicit,I=e.XpG(2);e.Y8G("ngStyle",e.eq3(11,rr,"rotateZ("+b.angle+"deg) translateX(-50%)")),e.R7$(1),e.Y8G("ngStyle",e.eq3(13,rr,"rotateZ(-"+b.angle+"deg)"))("ngClass",e.l_i(15,A,e.brH(2,4,b.time,I.selectedTime.time,I.isClockFaceDisabled),b.disabled)),e.R7$(2),e.SpI(" ",e.i5U(4,8,b.time,I.timeUnit.HOUR)," ")}}function O(S,w){if(1&S&&(e.j41(0,"div",13)(1,"span",10),e.nI1(2,"activeHour"),e.EFF(3),e.nI1(4,"timeLocalizer"),e.k0s()()),2&S){const b=w.$implicit,I=e.XpG(3);e.xc7("height",I.innerClockFaceSize,"px"),e.Y8G("ngStyle",e.eq3(13,rr,"rotateZ("+b.angle+"deg) translateX(-50%)")),e.R7$(1),e.Y8G("ngStyle",e.eq3(15,rr,"rotateZ(-"+b.angle+"deg)"))("ngClass",e.l_i(17,A,e.brH(2,6,b.time,null==I.selectedTime?null:I.selectedTime.time,I.isClockFaceDisabled),b.disabled)),e.R7$(2),e.SpI(" ",e.i5U(4,10,b.time,I.timeUnit.HOUR),"")}}function j(S,w){if(1&S&&(e.j41(0,"div",11),e.DNE(1,O,5,20,"div",12),e.nI1(2,"slice"),e.k0s()),2&S){const b=e.XpG(2);e.xc7("top","calc(50% - "+b.innerClockFaceSize+"px)"),e.R7$(1),e.Y8G("ngForOf",e.brH(2,4,b.faceTime,12,24))("ngForTrackBy",b.trackByTime)}}function Q(S,w){if(1&S&&(e.j41(0,"div",6),e.DNE(1,V,5,18,"div",7),e.nI1(2,"slice"),e.DNE(3,j,3,8,"div",8),e.k0s()),2&S){const b=e.XpG();e.R7$(1),e.Y8G("ngForOf",e.brH(2,3,b.faceTime,0,12))("ngForTrackBy",b.trackByTime),e.R7$(2),e.Y8G("ngIf",b.faceTime.length>12)}}function Te(S,w){if(1&S&&(e.j41(0,"div",9)(1,"span",10),e.nI1(2,"activeMinute"),e.EFF(3),e.nI1(4,"timeLocalizer"),e.nI1(5,"minutesFormatter"),e.k0s()()),2&S){const b=w.$implicit,I=e.XpG(2);e.Y8G("ngStyle",e.eq3(15,rr,"rotateZ("+b.angle+"deg) translateX(-50%)")),e.R7$(1),e.Y8G("ngStyle",e.eq3(17,rr,"rotateZ(-"+b.angle+"deg)"))("ngClass",e.l_i(19,A,e.ii3(2,4,b.time,null==I.selectedTime?null:I.selectedTime.time,I.minutesGap,I.isClockFaceDisabled),b.disabled)),e.R7$(2),e.SpI(" ",e.i5U(4,9,e.i5U(5,12,b.time,I.minutesGap),I.timeUnit.MINUTE),"")}}function Je(S,w){if(1&S&&(e.j41(0,"div",6),e.DNE(1,Te,6,22,"div",7),e.k0s()),2&S){const b=e.XpG();e.R7$(1),e.Y8G("ngForOf",b.faceTime)("ngForTrackBy",b.trackByTime)}}const Xt=function(S){return{"clock-face__clock-hand_minute":S}};function Ht(S,w){if(1&S){const b=e.RV6();e.j41(0,"ngx-material-timepicker-24-hours-face",17),e.bIt("hourChange",function(X){e.eBV(b);const de=e.XpG(2);return e.Njj(de.onHourChange(X))})("hourSelected",function(X){e.eBV(b);const de=e.XpG(2);return e.Njj(de.onHourSelected(X))}),e.nI1(1,"async"),e.k0s()}if(2&S){const b=e.XpG(2);e.Y8G("selectedHour",e.bMT(1,4,b.selectedHour))("minTime",b.minTime)("maxTime",b.maxTime)("format",b.format)}}function Pn(S,w){if(1&S){const b=e.RV6();e.j41(0,"ngx-material-timepicker-12-hours-face",18),e.bIt("hourChange",function(X){e.eBV(b);const de=e.XpG(2);return e.Njj(de.onHourChange(X))})("hourSelected",function(X){e.eBV(b);const de=e.XpG(2);return e.Njj(de.onHourSelected(X))}),e.nI1(1,"async"),e.nI1(2,"async"),e.k0s()}if(2&S){const b=e.XpG(2);e.Y8G("selectedHour",e.bMT(1,4,b.selectedHour))("period",e.bMT(2,6,b.selectedPeriod))("minTime",b.minTime)("maxTime",b.maxTime)}}function wi(S,w){if(1&S&&(e.j41(0,"div"),e.DNE(1,Ht,2,6,"ngx-material-timepicker-24-hours-face",15),e.DNE(2,Pn,3,8,"ng-template",null,16,e.C5r),e.k0s()),2&S){const b=e.sdS(3),I=e.XpG();e.R7$(1),e.Y8G("ngIf",24===I.format)("ngIfElse",b)}}function bs(S,w){if(1&S){const b=e.RV6();e.j41(0,"ngx-material-timepicker-minutes-face",19),e.bIt("minuteChange",function(X){e.eBV(b);const de=e.XpG();return e.Njj(de.onMinuteChange(X))}),e.nI1(1,"async"),e.nI1(2,"async"),e.nI1(3,"async"),e.k0s()}if(2&S){const b=e.XpG();let I;e.Y8G("selectedMinute",e.bMT(1,7,b.selectedMinute))("selectedHour",null==(I=e.bMT(2,9,b.selectedHour))?null:I.time)("minTime",b.minTime)("maxTime",b.maxTime)("format",b.format)("period",e.bMT(3,11,b.selectedPeriod))("minutesGap",b.minutesGap)}}function Fi(S,w){1&S&&e.eu8(0)}function kr(S,w){1&S&&e.eu8(0)}function Ts(S,w){1&S&&(e.j41(0,"ngx-material-timepicker-button"),e.EFF(1,"Cancel"),e.k0s())}function Vr(S,w){1&S&&(e.j41(0,"ngx-material-timepicker-button"),e.EFF(1,"Ok"),e.k0s())}const il=function(S){return{"timepicker-backdrop-overlay--transparent":S}};var eo=function(S){return S[S.HOUR=0]="HOUR",S[S.MINUTE=1]="MINUTE",S}(eo||{}),xr=function(S){return S.AM="AM",S.PM="PM",S}(xr||{}),Gs=function(S){return S.TWELVE="hh:mm a",S.TWELVE_SHORT="h:m a",S.TWENTY_FOUR="HH:mm",S.TWENTY_FOUR_SHORT="H:m",S}(Gs||{});function xa(S,w,b="minutes"){return"hours"===b?S.hour>=w.hour:"minutes"===b?S.hasSame(w,b)||S.valueOf()>w.valueOf():void 0}function Ha(S,w,b="minutes"){return"hours"===b?S.hour<=w.hour:"minutes"===b?S.hasSame(w,b)||S.valueOf()<=w.valueOf():void 0}let to=(()=>{class S{static parseTime(b,I){const{numberingSystem:X,locale:de}=S.getLocaleOptionsByTime(b,I),Ot=2===b.split(" ").length?Gs.TWELVE_SHORT:Gs.TWENTY_FOUR_SHORT;return qn.fromFormat(b,Ot,{numberingSystem:X,locale:de})}static formatTime(b,I){if(!b)return"Invalid Time";const{format:X}=I,de=S.parseTime(b,I).setLocale(S.DEFAULT_LOCALE);return de.isValid?24!==X?de.toLocaleString(Object.assign(Object.assign({},qn.TIME_SIMPLE),{hour12:24!==X,numberingSystem:S.DEFAULT_NUMBERING_SYSTEM})).replace(/\u200E/g,"").replace(/\u202F/g," "):de.toISOTime({includeOffset:!1,suppressMilliseconds:!0,suppressSeconds:!0}).replace(/\u200E/g,"").replace(/\u202F/g," "):null}static toLocaleTimeString(b,I={}){const{format:X=S.DEFAULT_FORMAT,locale:de=S.DEFAULT_LOCALE}=I,tt=24===X?"h23":"h12",Ot=Object.assign(Object.assign({},qn.TIME_SIMPLE),{hourCycle:tt}),Kt=24===X?Gs.TWENTY_FOUR_SHORT:Gs.TWELVE_SHORT,_n=Object.assign({locale:I.locale,numberingSystem:I.numberingSystem},Ot);return qn.fromFormat(b,Kt).setLocale(de).toLocaleString(_n).replace(/\u202F/g," ")}static isTimeAvailable(b,I,X,de,tt,Ot){if(!b)return;const Kt=this.parseTime(b,{format:Ot}),_n=Kt.minute;if(tt&&_n==_n&&_n%tt!=0)throw new Error(`Your minutes - ${_n} doesn't match your minutesGap - ${tt}`);const fi=I&&!X&&xa(Kt,I,de),Ii=X&&!I&&Ha(Kt,X,de),Gi=I&&X&&function nc(S,w,b,I="minutes"){return"hours"===I?Ha(S,b,I)&&xa(S,w,I):"minutes"===I?Ha(S,b)&&xa(S,w):void 0}(Kt,I,X,de);return fi||Ii||Gi||!I&&!X}static formatHour(b,I,X){if(24===I)return b;const de=X===xr.AM?b:b+12;return X===xr.AM&&12===de?0:X===xr.PM&&24===de?12:de}static fromDateTimeToString(b,I){const X=24===I?Gs.TWENTY_FOUR:Gs.TWELVE;return b.reconfigure({numberingSystem:S.DEFAULT_NUMBERING_SYSTEM,locale:S.DEFAULT_LOCALE}).toFormat(X).replace(/\u202F/g," ")}static getLocaleOptionsByTime(b,I){const X={numberingSystem:I.numberingSystem,locale:I.locale},de={numberingSystem:S.DEFAULT_NUMBERING_SYSTEM,locale:S.DEFAULT_LOCALE};return isNaN(parseInt(b,10))?X:de}}return S.DEFAULT_FORMAT=12,S.DEFAULT_LOCALE="en-US",S.DEFAULT_NUMBERING_SYSTEM="latn",S})();const Sc={time:12,angle:360},ol={time:0,angle:360};let yl=(()=>{class S{constructor(){this.hourSubject=new ne.t(Sc),this.minuteSubject=new ne.t(ol),this.periodSubject=new ne.t(xr.AM)}set hour(b){this.hourSubject.next(b)}get selectedHour(){return this.hourSubject.asObservable()}set minute(b){this.minuteSubject.next(b)}get selectedMinute(){return this.minuteSubject.asObservable()}set period(b){(b===xr.AM||b===xr.PM)&&this.periodSubject.next(b)}get selectedPeriod(){return this.periodSubject.asObservable()}setDefaultTimeIfAvailable(b,I,X,de,tt){try{to.isTimeAvailable(b,I,X,"minutes",tt)&&this.setDefaultTime(b,de)}catch(Ot){console.error(Ot)}}getFullTime(b){const I=this.hourSubject.getValue().time,X=this.minuteSubject.getValue().time,Kt=`${I??Sc.time}:${X??ol.time} ${12===b?this.periodSubject.getValue():""}`.trim();return to.formatTime(Kt,{format:b})}setDefaultTime(b,I){const X=to.parseTime(b,{format:I}).toJSDate();if(qn.fromJSDate(X).isValid){const de=b.substr(b.length-2).toUpperCase(),tt=X.getHours();this.hour=Object.assign(Object.assign({},Sc),{time:dd(tt,de)}),this.minute=Object.assign(Object.assign({},ol),{time:X.getMinutes()}),this.period=de}else this.resetTime()}resetTime(){this.hour=Object.assign({},Sc),this.minute=Object.assign({},ol),this.period=xr.AM}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();function dd(S,w){switch(w){case xr.AM:return 0===S?12:S;case xr.PM:return 12===S?12:S-12;default:return S}}const Ua=new e.nKC("TimeLocale",{providedIn:"root",factory:()=>to.DEFAULT_LOCALE}),Cl=new e.nKC("NumberingSystem",{providedIn:"root",factory:()=>to.DEFAULT_NUMBERING_SYSTEM});let yo=(()=>{class S{constructor(){this.backdropClickSubject=new Z.B,this.keydownEventSubject=new Z.B}get backdropClick(){return this.backdropClickSubject.asObservable().pipe((0,we.t)({bufferSize:1,refCount:!0}))}get keydownEvent(){return this.keydownEventSubject.asObservable().pipe((0,we.t)({bufferSize:1,refCount:!0}))}dispatchEvent(b){switch(b.type){case"click":this.backdropClickSubject.next(b);break;case"keydown":this.keydownEventSubject.next(b);break;default:throw new Error("no such event type")}}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),Ia=(()=>{class S{constructor(b,I){this.renderer=I,this.element=b.nativeElement}get inputCords(){return this.inputElement.getBoundingClientRect()}get direction(){const b=this.element.offsetHeight,{bottom:I,top:X}=this._inputCords,de=(window&&window.innerHeight)-I<b;return de&&X>b?"top":de&&X<b?"center":"bottom"}ngAfterViewInit(){this._inputCords=this.inputCords,this._direction=this.direction,this.append()}changePosition(){const{bottom:b,top:I}=this.inputCords,X=this.defineElementYByDirection(I,b);this.setStyle("top",`${X}px`)}append(){const{left:b,bottom:I,top:X}=this._inputCords,de=this.defineElementYByDirection(X,I);this.setStyle("position","fixed"),this.setStyle("left",`${b}px`),this.setStyle("top",`${de}px`)}setStyle(b,I){this.renderer.setStyle(this.element,b,I)}defineElementYByDirection(b,I){return"top"===this._direction?b-this.element.offsetHeight:"center"===this._direction?b-this.element.offsetHeight/2:I}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(e.aKT),e.rXU(e.sFG))},S.\u0275dir=e.FsC({type:S,selectors:[["","ngxAppendToInput",""]],hostBindings:function(b,I){1&b&&e.bIt("scroll",function(){return I.changePosition()},!1,e.tSv)},inputs:{inputElement:["ngxAppendToInput","inputElement"]}}),S})(),kc=(()=>{class S{}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-content"]],inputs:{appendToInput:"appendToInput",inputElement:"inputElement"},ngContentSelectors:si,decls:5,vars:2,consts:[[3,"ngxAppendToInput",4,"ngIf","ngIfElse"],["timepickerModal",""],["timepickerOutlet",""],[3,"ngxAppendToInput"],[4,"ngTemplateOutlet"]],template:function(b,I){if(1&b&&(e.NAR(),e.DNE(0,Js,2,2,"div",0),e.DNE(1,ld,1,1,"ng-template",null,1,e.C5r),e.DNE(3,Zt,1,0,"ng-template",null,2,e.C5r)),2&b){const X=e.sdS(2);e.Y8G("ngIf",I.appendToInput)("ngIfElse",X)}},dependencies:[h.bT,Ia,h.T3],encapsulation:2}),S})();class br{static getHours(w){return Array(w).fill(1).map((b,I)=>{const de=b+I;return{time:24===de?0:de,angle:30*de}})}static disableHours(w,b){return b.min||b.max?w.map(I=>{const X=24===b.format?I.time:to.formatHour(I.time,b.format,b.period),de=qn.fromObject({hour:X}).toFormat(Gs.TWELVE);return Object.assign(Object.assign({},I),{disabled:!to.isTimeAvailable(de,b.min,b.max,"hours")})}):w}static getMinutes(w=1){const X=[];for(let de=0;de<60;de++){const tt=6*de;de%w==0&&X.push({time:de,angle:0!==tt?tt:360})}return X}static disableMinutes(w,b,I){if(I.min||I.max){const X=to.formatHour(b,I.format,I.period);return w.map(de=>{const tt=qn.fromObject({hour:X,minute:de.time}).toFormat(Gs.TWELVE);return Object.assign(Object.assign({},de),{disabled:!to.isTimeAvailable(tt,I.min,I.max,"minutes")})})}return w}}let va=(()=>{class S{constructor(b){this.locale=b}transform(b,I,X=!1){if(null==b||""===b)return"";switch(I){case eo.HOUR:return this.formatTime("hour",b,0===b||X?"HH":"H");case eo.MINUTE:return this.formatTime("minute",b,"mm");default:throw new Error(`There is no Time Unit with type ${I}`)}}formatTime(b,I,X){try{return qn.fromObject({[b]:+I}).setLocale(this.locale).toFormat(X)}catch{throw new Error(`Cannot format provided time - ${I} to locale - ${this.locale}`)}}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(Ua,16))},S.\u0275pipe=e.EJ8({name:"timeLocalizer",type:S,pure:!0}),S})(),wl=(()=>{class S{constructor(b,I){this.locale=b,this.numberingSystem=I}transform(b,I=eo.HOUR){return null==b||""===b?"":isNaN(+b)?I===eo.MINUTE?this.parseTime(b,"m","minute"):this.parseTime(b,"H","hour"):b}parseTime(b,I,X){const de=qn.fromFormat(String(b),I,{numberingSystem:this.numberingSystem,locale:this.locale})[X];if(!isNaN(de))return de;throw new Error(`Cannot parse time - ${b}`)}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(Ua,16),e.rXU(Cl,16))},S.\u0275pipe=e.EJ8({name:"timeParser",type:S,pure:!0}),S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac}),S})(),$a=(()=>{class S{constructor(b,I){this.element=b,this.document=I,this.activeElement=this.document.activeElement}ngOnChanges(){this.isFocusActive&&setTimeout(()=>this.element.nativeElement.focus({preventScroll:!0}))}ngOnDestroy(){setTimeout(()=>this.activeElement.focus({preventScroll:!0}))}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(e.aKT),e.rXU(h.qQ,8))},S.\u0275dir=e.FsC({type:S,selectors:[["","timepickerAutofocus",""]],inputs:{isFocusActive:["timepickerAutofocus","isFocusActive"]},features:[e.OA$]}),S})(),Dl=(()=>{class S{constructor(b,I){this.timeParserPipe=b,this.timeLocalizerPipe=I,this.timeUnitChanged=new e.bkB,this.timeChanged=new e.bkB,this.focused=new e.bkB,this.unfocused=new e.bkB}get selectedTime(){if(this.time)return this.timeList.find(b=>b.time===+this.time)}ngOnInit(){this.isEditable&&(this.timeControl=new Br.MJ({value:this.formatTimeForUI(this.time),disabled:this.disabled}),this.timeControl.valueChanges.pipe((0,Ie.M)(b=>{b.length>2&&this.updateInputValue(b.slice(-1))}),(0,Oe.B)(500),(0,Ne.F)(),(0,Me.p)(b=>!function ic(S,w,b){if(/\d/.test(w))return sc(w,b)}(0,b,this.timeList)),(0,Ie.M)(b=>this.time=this.timeParserPipe.transform(b,this.timeUnit).toString())).subscribe(()=>this.updateTime()))}saveTimeAndChangeTimeUnit(b,I){b.preventDefault(),this.previousTime=this.time,this.timeUnitChanged.next(I),this.focused.next()}updateTime(){const b=this.selectedTime;b&&(this.timeChanged.next(b),this.previousTime=b.time,this.isEditable&&this.updateInputValue(this.formatTimeForUI(b.time)))}onKeydown(b){!function Ec(S){return!!([46,8,9,27,13].some(w=>w===S.keyCode)||65==S.keyCode&&(!0===S.ctrlKey||!0===S.metaKey)||67==S.keyCode&&(!0===S.ctrlKey||!0===S.metaKey)||88==S.keyCode&&(!0===S.ctrlKey||!0===S.metaKey)||S.keyCode>=35&&S.keyCode<=40)||!((S.keyCode<48||S.keyCode>57)&&(S.keyCode<96||S.keyCode>105))}(b)?b.preventDefault():this.changeTimeByArrow(b.keyCode)}changeTimeByArrow(b){let de;38===b?de=String(+this.time+(this.minutesGap||1)):40===b&&(de=String(+this.time-(this.minutesGap||1))),sc(de,this.timeList)||(this.time=de,this.updateTime())}formatTimeForUI(b){const I=this.timeParserPipe.transform(b,this.timeUnit).toString();return this.timeLocalizerPipe.transform(I,this.timeUnit,!0)}updateInputValue(b){this.editableTimeTmpl.nativeElement.value=b}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(wl),e.rXU(va))},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-dial-control"]],viewQuery:function(b,I){if(1&b&&e.GBs(Io,5),2&b){let X;e.mGM(X=e.lsd())&&(I.editableTimeTmpl=X.first)}},inputs:{timeList:"timeList",timeUnit:"timeUnit",time:"time",isActive:"isActive",isEditable:"isEditable",minutesGap:"minutesGap",disabled:"disabled"},outputs:{timeUnitChanged:"timeUnitChanged",timeChanged:"timeChanged",focused:"focused",unfocused:"unfocused"},features:[e.Jv_([wl,va])],decls:3,vars:2,consts:[["class","timepicker-dial__control timepicker-dial__item","readonly","",3,"ngClass","ngModel","disabled","timepickerAutofocus","ngModelChange","input","focus",4,"ngIf","ngIfElse"],["editableTemplate",""],["readonly","",1,"timepicker-dial__control","timepicker-dial__item",3,"ngClass","ngModel","disabled","timepickerAutofocus","ngModelChange","input","focus"],[1,"timepicker-dial__control","timepicker-dial__item","timepicker-dial__control_editable",3,"formControl","ngClass","timepickerAutofocus","focus","keydown"],["editableTimeTmpl",""]],template:function(b,I){if(1&b&&(e.DNE(0,fs,2,9,"input",0),e.DNE(1,vl,2,5,"ng-template",null,1,e.C5r)),2&b){const X=e.sdS(2);e.Y8G("ngIf",!I.isEditable)("ngIfElse",X)}},dependencies:[h.bT,Br.me,h.YU,Br.BC,Br.vS,$a,Br.l_,va],styles:['.timepicker-dial__item[_ngcontent-%COMP%]{cursor:pointer;color:#ffffff80;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-dial__item[_ngcontent-%COMP%]{font-family:var(--primary-font-family);color:var(--dial-inactive-color)}}.timepicker-dial__item_active[_ngcontent-%COMP%]{color:#fff}@supports (color: var(--dial-active-color)){.timepicker-dial__item_active[_ngcontent-%COMP%]{color:var(--dial-active-color)}}.timepicker-dial__control[_ngcontent-%COMP%]{border:none;background-color:transparent;font-size:50px;width:60px;padding:0;border-radius:3px;text-align:right}.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{color:#00bfff;background-color:#fff;outline:deepskyblue}@supports (color: var(--dial-editable-active-color)){.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{color:var(--dial-editable-active-color)}}@supports (background-color: var(--dial-editable-background-color)){.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{background-color:var(--dial-editable-background-color)}}@supports (outline: var(--dial-editable-active-color)){.timepicker-dial__control_editable[_ngcontent-%COMP%]:focus{outline:var(--dial-editable-active-color)}}.timepicker-dial__control[_ngcontent-%COMP%]:disabled{cursor:default}.timepicker-dial__control[_ngcontent-%COMP%]:focus-visible{outline:none}']}),S})();function sc(S,w){const b=w.find(I=>I.time===+S);return!b||b&&b.disabled}let ba=(()=>{class S{constructor(){this.timePeriod=xr,this.isPeriodAvailable=!0,this.periodChanged=new e.bkB}changePeriod(b){this.isPeriodAvailable=this.isSwitchPeriodAvailable(b),this.isPeriodAvailable&&this.periodChanged.next(b)}animationDone(){this.isPeriodAvailable=!0}isSwitchPeriodAvailable(b){return!this.getDisabledTimeByPeriod(b).every(X=>X.disabled)}getDisabledTimeByPeriod(b){switch(this.activeTimeUnit){case eo.HOUR:return br.disableHours(this.hours,{min:this.minTime,max:this.maxTime,format:this.format,period:b});case eo.MINUTE:return br.disableMinutes(this.minutes,+this.selectedHour,{min:this.minTime,max:this.maxTime,format:this.format,period:b});default:throw new Error("no such TimeUnit")}}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-period"]],inputs:{selectedPeriod:"selectedPeriod",format:"format",activeTimeUnit:"activeTimeUnit",hours:"hours",minutes:"minutes",minTime:"minTime",maxTime:"maxTime",selectedHour:"selectedHour",meridiems:"meridiems"},outputs:{periodChanged:"periodChanged"},decls:6,vars:9,consts:[[1,"timepicker-period"],["type","button",1,"timepicker-dial__item","timepicker-period__btn",3,"ngClass","click"],["class","timepicker-period__warning",4,"ngIf"],[1,"timepicker-period__warning"]],template:function(b,I){1&b&&(e.j41(0,"div",0)(1,"button",1),e.bIt("click",function(){return I.changePeriod(I.timePeriod.AM)}),e.EFF(2),e.k0s(),e.j41(3,"button",1),e.bIt("click",function(){return I.changePeriod(I.timePeriod.PM)}),e.EFF(4),e.k0s(),e.DNE(5,tc,3,1,"div",2),e.k0s()),2&b&&(e.R7$(1),e.Y8G("ngClass",e.eq3(5,Sr,I.selectedPeriod===I.timePeriod.AM)),e.R7$(1),e.JRh(I.meridiems[0]),e.R7$(1),e.Y8G("ngClass",e.eq3(7,Sr,I.selectedPeriod===I.timePeriod.PM)),e.R7$(1),e.JRh(I.meridiems[1]),e.R7$(1),e.Y8G("ngIf",!I.isPeriodAvailable))},dependencies:[h.YU,h.bT],styles:['.timepicker-dial__item[_ngcontent-%COMP%]{cursor:pointer;color:#ffffff80;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-dial__item[_ngcontent-%COMP%]{font-family:var(--primary-font-family);color:var(--dial-inactive-color)}}.timepicker-dial__item_active[_ngcontent-%COMP%]{color:#fff}@supports (color: var(--dial-active-color)){.timepicker-dial__item_active[_ngcontent-%COMP%]{color:var(--dial-active-color)}}.timepicker-period[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative}.timepicker-period__btn[_ngcontent-%COMP%]{padding:1px 3px;border:0;background-color:transparent;font-size:18px;font-weight:500;-webkit-user-select:none;-moz-user-select:none;user-select:none;outline:none;border-radius:3px;transition:background-color .5s;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-period__btn[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}.timepicker-period__btn[_ngcontent-%COMP%]:focus{background-color:#00000012}.timepicker-period__warning[_ngcontent-%COMP%]{padding:5px 10px;border-radius:3px;background-color:#0000008c;color:#fff;position:absolute;width:200px;left:-20px;top:40px}.timepicker-period__warning[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{margin:0;font-size:12px;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-period__warning[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}'],data:{animation:[(0,Ue.hZ)("scaleInOut",[(0,Ue.kY)(":enter",[(0,Ue.iF)({transform:"scale(0)"}),(0,Ue.i0)(".2s",(0,Ue.iF)({transform:"scale(1)"})),(0,Ue.K2)([(0,Ue.i0)("3s",(0,Ue.iF)({opacity:1})),(0,Ue.i0)(".3s",(0,Ue.iF)({opacity:0}))])])])]}}),S})(),xc=(()=>{class S{constructor(b){this.locale=b,this.timeUnit=eo,this.meridiems=La.meridiems({locale:this.locale}),this.periodChanged=new e.bkB,this.timeUnitChanged=new e.bkB,this.hourChanged=new e.bkB,this.minuteChanged=new e.bkB}ngOnChanges(b){if(b.period&&b.period.currentValue||b.format&&b.format.currentValue){const I=br.getHours(this.format);this.hours=br.disableHours(I,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period})}if(b.period&&b.period.currentValue||b.hour&&b.hour.currentValue){const I=br.getMinutes(this.minutesGap);this.minutes=br.disableMinutes(I,+this.hour,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period})}}changeTimeUnit(b){this.timeUnitChanged.next(b)}changePeriod(b){this.periodChanged.next(b)}changeHour(b){this.hourChanged.next(b),this.isEditable&&this.changeTimeUnit(eo.MINUTE)}changeMinute(b){this.minuteChanged.next(b)}showHint(){this.isHintVisible=!0}hideHint(){this.isHintVisible=!1}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(Ua))},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-dial"]],inputs:{editableHintTmpl:"editableHintTmpl",hour:"hour",minute:"minute",format:"format",period:"period",activeTimeUnit:"activeTimeUnit",minTime:"minTime",maxTime:"maxTime",isEditable:"isEditable",minutesGap:"minutesGap",hoursOnly:"hoursOnly"},outputs:{periodChanged:"periodChanged",timeUnitChanged:"timeUnitChanged",hourChanged:"hourChanged",minuteChanged:"minuteChanged"},features:[e.OA$],decls:9,vars:25,consts:[[1,"timepicker-dial"],[1,"timepicker-dial__container"],[1,"timepicker-dial__time"],[3,"timeList","time","timeUnit","isActive","isEditable","timeUnitChanged","timeChanged","focused","unfocused"],[3,"timeList","time","timeUnit","isActive","isEditable","minutesGap","disabled","timeUnitChanged","timeChanged","focused","unfocused"],[1,"timepicker-dial__period",3,"ngClass","selectedPeriod","activeTimeUnit","maxTime","minTime","format","hours","minutes","selectedHour","meridiems","periodChanged"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[4,"ngTemplateOutlet"],["editableHintDefault",""],[1,"timepicker-dial__hint"]],template:function(b,I){1&b&&(e.j41(0,"div",0)(1,"div",1)(2,"div",2)(3,"ngx-material-timepicker-dial-control",3),e.bIt("timeUnitChanged",function(de){return I.changeTimeUnit(de)})("timeChanged",function(de){return I.changeHour(de)})("focused",function(){return I.showHint()})("unfocused",function(){return I.hideHint()}),e.k0s(),e.j41(4,"span"),e.EFF(5,":"),e.k0s(),e.j41(6,"ngx-material-timepicker-dial-control",4),e.bIt("timeUnitChanged",function(de){return I.changeTimeUnit(de)})("timeChanged",function(de){return I.changeMinute(de)})("focused",function(){return I.showHint()})("unfocused",function(){return I.hideHint()}),e.k0s()(),e.j41(7,"ngx-material-timepicker-period",5),e.bIt("periodChanged",function(de){return I.changePeriod(de)}),e.k0s()(),e.DNE(8,Jd,4,4,"div",6),e.k0s()),2&b&&(e.R7$(3),e.Y8G("timeList",I.hours)("time",I.hour)("timeUnit",I.timeUnit.HOUR)("isActive",I.activeTimeUnit===I.timeUnit.HOUR)("isEditable",I.isEditable),e.R7$(3),e.Y8G("timeList",I.minutes)("time",I.minute)("timeUnit",I.timeUnit.MINUTE)("isActive",I.activeTimeUnit===I.timeUnit.MINUTE)("isEditable",I.isEditable)("minutesGap",I.minutesGap)("disabled",I.hoursOnly),e.R7$(1),e.Y8G("ngClass",e.eq3(23,oa,24===I.format))("selectedPeriod",I.period)("activeTimeUnit",I.activeTimeUnit)("maxTime",I.maxTime)("minTime",I.minTime)("format",I.format)("hours",I.hours)("minutes",I.minutes)("selectedHour",I.hour)("meridiems",I.meridiems),e.R7$(1),e.Y8G("ngIf",I.isEditable||I.editableHintTmpl))},dependencies:[Dl,ba,h.YU,h.bT,h.T3],styles:['.timepicker-dial[_ngcontent-%COMP%]{text-align:right}.timepicker-dial__container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;-webkit-tap-highlight-color:rgba(0,0,0,0)}.timepicker-dial__time[_ngcontent-%COMP%]{display:flex;align-items:baseline;line-height:normal;font-size:50px;color:#ffffff80;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-dial__time[_ngcontent-%COMP%]{font-family:var(--primary-font-family);color:var(--dial-inactive-color)}}.timepicker-dial__period[_ngcontent-%COMP%]{display:block;margin-left:10px}.timepicker-dial__period--hidden[_ngcontent-%COMP%]{visibility:hidden}.timepicker-dial__hint-container--hidden[_ngcontent-%COMP%]{visibility:hidden}.timepicker-dial__hint[_ngcontent-%COMP%]{display:inline-block;font-size:10px;color:#fff}@supports (color: var(--dial-active-color)){.timepicker-dial__hint[_ngcontent-%COMP%]{color:var(--dial-active-color)}}.timepicker-dial__hint[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}@media (max-device-width: 1023px) and (orientation: landscape){.timepicker-dial__container[_ngcontent-%COMP%]{flex-direction:column}.timepicker-dial__period[_ngcontent-%COMP%]{margin-left:0}}'],changeDetection:0}),S})(),Gc=(()=>{class S{constructor(b){this.hourChange=new e.bkB,this.hourSelected=new e.bkB,this.hoursList=[],this.hoursList=br.getHours(b)}onTimeSelected(b){this.hourSelected.next(b)}}return S.\u0275fac=function(b){e.QTQ()},S.\u0275dir=e.FsC({type:S,inputs:{selectedHour:"selectedHour",minTime:"minTime",maxTime:"maxTime",format:"format"},outputs:{hourChange:"hourChange",hourSelected:"hourSelected"}}),S})(),jr=(()=>{class S{transform(b,I,X){return null!=b&&!X&&b===I}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275pipe=e.EJ8({name:"activeHour",type:S,pure:!0}),S})(),oc=(()=>{class S{transform(b,I,X,de){return null!=b&&!de&&I===b&&b%(X||5)==0}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275pipe=e.EJ8({name:"activeMinute",type:S,pure:!0}),S})(),$s=(()=>{class S{transform(b,I=5){return b&&(b%I==0?b:"")}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275pipe=e.EJ8({name:"minutesFormatter",type:S,pure:!0}),S})();const zo_small_height="75px",zo_small_top="calc(50% - 75px)",zo_large_height="103px",zo_large_top="calc(50% - 103px)";let Ya=(()=>{class S{constructor(){this.timeUnit=eo,this.innerClockFaceSize=85,this.timeChange=new e.bkB,this.timeSelected=new e.bkB}ngAfterViewInit(){this.setClockHandPosition(),this.addTouchEvents()}ngOnChanges(b){const I=b.faceTime,X=b.selectedTime;I&&I.currentValue&&X&&X.currentValue&&(this.selectedTime=this.faceTime.find(de=>de.time===this.selectedTime.time)),X&&X.currentValue&&this.setClockHandPosition(),I&&I.currentValue&&setTimeout(()=>this.selectAvailableTime())}trackByTime(b,I){return I.time}onMousedown(b){b.preventDefault(),this.isStarted=!0}selectTime(b){if(!this.isStarted&&b instanceof MouseEvent&&"click"!==b.type)return;const I=this.clockFace.nativeElement.getBoundingClientRect(),X=I.left+I.width/2,de=I.top+I.height/2,tt=180*Math.atan(Math.abs(b.clientX-X)/Math.abs(b.clientY-de))/Math.PI,Ot=function Ic(S,w,b,I,X){return I>w&&b>=S?180-X:I>w&&b<S?180+X:I<w&&b<S?360-X:X}(X,de,b.clientX,b.clientY,tt),Kt=this.format&&this.isInnerClockFace(X,de,b.clientX,b.clientY),Ii=(function yr(S,w){return Math.round(S/w)*w}(Ot,this.unit===eo.MINUTE?6*(this.minutesGap||1):30)||360)+(Kt?360:0),Gi=this.faceTime.find(vi=>vi.angle===Ii);Gi&&!Gi.disabled&&(this.timeChange.next(Gi),this.isStarted||this.timeSelected.next(Gi.time))}onMouseup(b){b.preventDefault(),this.isStarted=!1}ngOnDestroy(){this.removeTouchEvents()}addTouchEvents(){this.touchStartHandler=this.onMousedown.bind(this),this.touchEndHandler=this.onMouseup.bind(this),this.clockFace.nativeElement.addEventListener("touchstart",this.touchStartHandler),this.clockFace.nativeElement.addEventListener("touchend",this.touchEndHandler)}removeTouchEvents(){this.clockFace.nativeElement.removeEventListener("touchstart",this.touchStartHandler),this.clockFace.nativeElement.removeEventListener("touchend",this.touchEndHandler)}setClockHandPosition(){24===this.format&&(this.selectedTime.time>12||0===this.selectedTime.time?this.decreaseClockHand():this.increaseClockHand()),this.clockHand.nativeElement.style.transform=`rotate(${this.selectedTime.angle}deg)`}selectAvailableTime(){const b=this.faceTime.find(I=>this.selectedTime.time===I.time);if(this.isClockFaceDisabled=this.faceTime.every(I=>I.disabled),b&&b.disabled&&!this.isClockFaceDisabled){const I=this.faceTime.find(X=>!X.disabled);this.timeChange.next(I)}}isInnerClockFace(b,I,X,de){return Math.sqrt(Math.pow(X-b,2)+Math.pow(de-I,2))<this.innerClockFaceSize}decreaseClockHand(){this.clockHand.nativeElement.style.height=zo_small_height,this.clockHand.nativeElement.style.top=zo_small_top}increaseClockHand(){this.clockHand.nativeElement.style.height=zo_large_height,this.clockHand.nativeElement.style.top=zo_large_top}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-face"]],viewQuery:function(b,I){if(1&b&&(e.GBs(Vl,7),e.GBs(co,7)),2&b){let X;e.mGM(X=e.lsd())&&(I.clockFace=X.first),e.mGM(X=e.lsd())&&(I.clockHand=X.first)}},hostBindings:function(b,I){1&b&&e.bIt("mousedown",function(de){return I.onMousedown(de)})("click",function(de){return I.selectTime(de)})("touchmove",function(de){return I.selectTime(de.changedTouches[0])})("touchend",function(de){return I.selectTime(de.changedTouches[0])})("mousemove",function(de){return I.selectTime(de)})("mouseup",function(de){return I.onMouseup(de)})},inputs:{faceTime:"faceTime",selectedTime:"selectedTime",unit:"unit",format:"format",minutesGap:"minutesGap"},outputs:{timeChange:"timeChange",timeSelected:"timeSelected"},features:[e.OA$],decls:7,vars:6,consts:[[1,"clock-face"],["clockFace",""],["class","clock-face__container",4,"ngIf","ngIfElse"],[1,"clock-face__clock-hand",3,"ngClass","hidden"],["clockHand",""],["minutesFace",""],[1,"clock-face__container"],["class","clock-face__number clock-face__number--outer",3,"ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],["class","clock-face__inner",3,"top",4,"ngIf"],[1,"clock-face__number","clock-face__number--outer",3,"ngStyle"],[3,"ngStyle","ngClass"],[1,"clock-face__inner"],["class","clock-face__number clock-face__number--inner",3,"ngStyle","height",4,"ngFor","ngForOf","ngForTrackBy"],[1,"clock-face__number","clock-face__number--inner",3,"ngStyle"]],template:function(b,I){if(1&b&&(e.j41(0,"div",0,1),e.DNE(2,Q,4,7,"div",2),e.nrm(3,"span",3,4),e.k0s(),e.DNE(5,Je,2,2,"ng-template",null,5,e.C5r)),2&b){const X=e.sdS(6);e.R7$(2),e.Y8G("ngIf",I.unit!==I.timeUnit.MINUTE)("ngIfElse",X),e.R7$(1),e.Y8G("ngClass",e.eq3(4,Xt,I.unit===I.timeUnit.MINUTE))("hidden",I.isClockFaceDisabled)}},dependencies:[h.bT,h.Sq,h.B3,h.YU,h.P9,jr,va,oc,$s],styles:['.clock-face[_ngcontent-%COMP%]{width:290px;height:290px;border-radius:50%;position:relative;display:flex;justify-content:center;padding:20px;box-sizing:border-box;background-color:#f0f0f0}@supports (background-color: var(--clock-face-background-color)){.clock-face[_ngcontent-%COMP%]{background-color:var(--clock-face-background-color)}}.clock-face__inner[_ngcontent-%COMP%]{position:absolute}.clock-face__container[_ngcontent-%COMP%]{margin-left:-2px}.clock-face__number[_ngcontent-%COMP%]{position:absolute;transform-origin:0 100%;width:50px;text-align:center;z-index:2}.clock-face__number--outer[_ngcontent-%COMP%]{height:calc(290px / 2 - 20px)}.clock-face__number--outer[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:16px;color:#6c6c6c}@supports (color: var(--clock-face-time-inactive-color)){.clock-face__number--outer[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--clock-face-time-inactive-color)}}.clock-face__number--inner[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:14px;color:#929292}@supports (color: var(--clock-face-inner-time-inactive-color)){.clock-face__number--inner[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:var(--clock-face-inner-time-inactive-color)}}.clock-face__number[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;user-select:none;width:30px;height:30px;display:flex;justify-content:center;align-items:center;margin:auto;border-radius:50%;font-weight:500;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.clock-face__number[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}.clock-face__number[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]{background-color:#00bfff;color:#fff}@supports (background-color: var(--clock-hand-color)){.clock-face__number[_ngcontent-%COMP%] > span.active[_ngcontent-%COMP%]{background-color:var(--clock-hand-color);color:var(--clock-face-time-active-color)}}.clock-face__number[_ngcontent-%COMP%] > span.disabled[_ngcontent-%COMP%]{color:#c5c5c5}@supports (color: var(--clock-face-time-disabled-color)){.clock-face__number[_ngcontent-%COMP%] > span.disabled[_ngcontent-%COMP%]{color:var(--clock-face-time-disabled-color)}}.clock-face__clock-hand[_ngcontent-%COMP%]{height:103px;width:2px;transform-origin:0 100%;position:absolute;top:calc(50% - 103px);z-index:1;background-color:#00bfff}@supports (background-color: var(--clock-hand-color)){.clock-face__clock-hand[_ngcontent-%COMP%]{background-color:var(--clock-hand-color)}}.clock-face__clock-hand[_ngcontent-%COMP%]:after{content:"";width:7px;height:7px;border-radius:50%;background-color:inherit;position:absolute;bottom:-3px;left:-3.5px}.clock-face__clock-hand_minute[_ngcontent-%COMP%]:before{content:"";width:7px;height:7px;background-color:#fff;border-radius:50%;position:absolute;top:-8px;left:calc(50% - 8px);box-sizing:content-box;border-width:4px;border-style:solid;border-color:#00bfff}@supports (border-color: var(--clock-hand-color)){.clock-face__clock-hand_minute[_ngcontent-%COMP%]:before{border-color:var(--clock-hand-color)}}@media (max-device-width: 1023px) and (orientation: landscape){.clock-face[_ngcontent-%COMP%]{width:225px;height:225px;padding:5px}.clock-face__number--outer[_ngcontent-%COMP%]{height:calc(225px / 2 - 5px)}.clock-face__clock-hand_minute[_ngcontent-%COMP%]:before{top:0}}'],changeDetection:0}),S})(),Oa=(()=>{class S extends Gc{constructor(){super(24)}ngAfterContentInit(){this.hoursList=br.disableHours(this.hoursList,{min:this.minTime,max:this.maxTime,format:this.format})}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-24-hours-face"]],features:[e.Vt3],decls:1,vars:3,consts:[[3,"selectedTime","faceTime","format","timeChange","timeSelected"]],template:function(b,I){1&b&&(e.j41(0,"ngx-material-timepicker-face",0),e.bIt("timeChange",function(de){return I.hourChange.next(de)})("timeSelected",function(de){return I.onTimeSelected(de)}),e.k0s()),2&b&&e.Y8G("selectedTime",I.selectedHour)("faceTime",I.hoursList)("format",I.format)},dependencies:[Ya],encapsulation:2,changeDetection:0}),S})(),Hc=(()=>{class S extends Gc{constructor(){super(12)}ngOnChanges(b){b.period&&b.period.currentValue&&(this.hoursList=br.disableHours(this.hoursList,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period}))}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-12-hours-face"]],inputs:{period:"period"},features:[e.Vt3,e.OA$],decls:1,vars:2,consts:[[3,"selectedTime","faceTime","timeChange","timeSelected"]],template:function(b,I){1&b&&(e.j41(0,"ngx-material-timepicker-face",0),e.bIt("timeChange",function(de){return I.hourChange.next(de)})("timeSelected",function(de){return I.onTimeSelected(de)}),e.k0s()),2&b&&e.Y8G("selectedTime",I.selectedHour)("faceTime",I.hoursList)},dependencies:[Ya],encapsulation:2,changeDetection:0}),S})(),Gl=(()=>{class S{constructor(){this.minutesList=[],this.timeUnit=eo,this.minuteChange=new e.bkB}ngOnChanges(b){if(b.period&&b.period.currentValue){const I=br.getMinutes(this.minutesGap);this.minutesList=br.disableMinutes(I,this.selectedHour,{min:this.minTime,max:this.maxTime,format:this.format,period:this.period})}}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-minutes-face"]],inputs:{selectedMinute:"selectedMinute",selectedHour:"selectedHour",period:"period",minTime:"minTime",maxTime:"maxTime",format:"format",minutesGap:"minutesGap"},outputs:{minuteChange:"minuteChange"},features:[e.OA$],decls:1,vars:4,consts:[[3,"faceTime","selectedTime","minutesGap","unit","timeChange"]],template:function(b,I){1&b&&(e.j41(0,"ngx-material-timepicker-face",0),e.bIt("timeChange",function(de){return I.minuteChange.next(de)}),e.k0s()),2&b&&e.Y8G("faceTime",I.minutesList)("selectedTime",I.selectedMinute)("minutesGap",I.minutesGap)("unit",I.timeUnit.MINUTE)},dependencies:[Ya],encapsulation:2}),S})(),Ml=(()=>{class S{}return S.\u0275fac=function(b){return new(b||S)},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-button"]],ngContentSelectors:si,decls:3,vars:0,consts:[["type","button",1,"timepicker-button"]],template:function(b,I){1&b&&(e.NAR(),e.j41(0,"button",0)(1,"span"),e.SdG(2),e.k0s()())},styles:['.timepicker-button[_ngcontent-%COMP%]{display:inline-block;height:36px;min-width:88px;line-height:36px;border:12px;border-radius:2px;background-color:transparent;text-align:center;transition:all .45s cubic-bezier(.23,1,.32,1);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;cursor:pointer;outline:none;color:#00bfff}@supports (color: var(--button-color)){.timepicker-button[_ngcontent-%COMP%]{color:var(--button-color)}}.timepicker-button[_ngcontent-%COMP%]:hover, .timepicker-button[_ngcontent-%COMP%]:focus{background-color:#9993}.timepicker-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-size:14px;text-transform:uppercase;font-weight:600;padding-left:16px;padding-right:16px;font-family:"Roboto",sans-serif}@supports (font-family: var(--primary-font-family)){.timepicker-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{font-family:var(--primary-font-family)}}']}),S})(),Hl=(()=>{class S{constructor(b){this.eventService=b}onClick(b){this.preventClick||this.eventService.dispatchEvent(b),b.preventDefault()}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(yo))},S.\u0275dir=e.FsC({type:S,selectors:[["","overlay",""]],hostBindings:function(b,I){1&b&&e.bIt("click",function(de){return I.onClick(de)})},inputs:{preventClick:["overlay","preventClick"]}}),S})(),Uc=(()=>{class S{constructor(b){this.element=b.nativeElement}ngAfterViewInit(){this.theme&&this.setTheme(this.theme)}setTheme(b){for(const I in b)if(b.hasOwnProperty(I)){if("string"==typeof b[I]){for(const X in b)b.hasOwnProperty(X)&&this.element.style.setProperty(`--${Oc(X)}`,b[X]);return}this.setTheme(b[I])}}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(e.aKT))},S.\u0275dir=e.FsC({type:S,selectors:[["","ngxMaterialTimepickerTheme",""]],inputs:{theme:["ngxMaterialTimepickerTheme","theme"]}}),S})();function Oc(S){return S.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var di=function(S){return S.ENTER="enter",S.LEAVE="leave",S}(di||{});let Ra=(()=>{class S{constructor(b,I,X){this.timepickerService=b,this.eventService=I,this.locale=X,this.timeUnit=eo,this.activeTimeUnit=eo.HOUR,this.unsubscribe=new Z.B}set defaultTime(b){this._defaultTime=b,this.setDefaultTime(b)}get defaultTime(){return this._defaultTime}onKeydown(b){this.eventService.dispatchEvent(b),b.stopPropagation()}ngOnInit(){this.animationState=!this.disableAnimation&&di.ENTER,this.defineTime(),this.selectedHour=this.timepickerService.selectedHour.pipe((0,we.t)({bufferSize:1,refCount:!0})),this.selectedMinute=this.timepickerService.selectedMinute.pipe((0,we.t)({bufferSize:1,refCount:!0})),this.selectedPeriod=this.timepickerService.selectedPeriod.pipe((0,we.t)({bufferSize:1,refCount:!0})),this.timepickerBaseRef.timeUpdated.pipe((0,Ge.Q)(this.unsubscribe)).subscribe(this.setDefaultTime.bind(this))}onHourChange(b){this.timepickerService.hour=b,this.onTimeChange()}onHourSelected(b){this.hoursOnly||this.changeTimeUnit(eo.MINUTE),this.timepickerBaseRef.hourSelected.next(b)}onMinuteChange(b){this.timepickerService.minute=b,this.onTimeChange()}changePeriod(b){this.timepickerService.period=b,this.onTimeChange()}changeTimeUnit(b){this.activeTimeUnit=b}setTime(){this.timepickerBaseRef.timeSet.next(this.timepickerService.getFullTime(this.format)),this.close()}close(){this.disableAnimation?this.timepickerBaseRef.close():this.animationState=di.LEAVE}animationDone(b){"done"===b.phaseName&&b.toState===di.LEAVE&&this.timepickerBaseRef.close()}ngOnDestroy(){this.unsubscribe.next(),this.unsubscribe.complete()}setDefaultTime(b){this.timepickerService.setDefaultTimeIfAvailable(b,this.minTime,this.maxTime,this.format,this.minutesGap)}defineTime(){const b=this.minTime;if(b&&!this.time&&!this.defaultTime){const I=to.fromDateTimeToString(b,this.format);this.setDefaultTime(I)}}onTimeChange(){const b=to.toLocaleTimeString(this.timepickerService.getFullTime(this.format),{locale:this.locale,format:this.format});this.timepickerBaseRef.timeChanged.emit(b)}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(yl),e.rXU(yo),e.rXU(Ua))},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker-container"]],hostBindings:function(b,I){1&b&&e.bIt("keydown",function(de){return I.onKeydown(de)})},inputs:{defaultTime:"defaultTime"},features:[e.Jv_([yl])],decls:22,vars:31,consts:[[1,"timepicker-backdrop-overlay",3,"overlay","ngClass"],[1,"timepicker-overlay"],[3,"appendToInput","inputElement","ngxMaterialTimepickerTheme"],[1,"timepicker",3,"ngClass"],[1,"timepicker__header"],[3,"format","hour","minute","period","activeTimeUnit","minTime","maxTime","isEditable","editableHintTmpl","minutesGap","hoursOnly","periodChanged","timeUnitChanged","hourChanged","minuteChanged"],[1,"timepicker__main-content"],[1,"timepicker__body",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"selectedMinute","selectedHour","minTime","maxTime","format","period","minutesGap","minuteChange",4,"ngSwitchCase"],[1,"timepicker__actions"],[3,"click"],[4,"ngTemplateOutlet"],["cancelBtnDefault",""],["confirmBtnDefault",""],[3,"selectedHour","minTime","maxTime","format","hourChange","hourSelected",4,"ngIf","ngIfElse"],["ampmHours",""],[3,"selectedHour","minTime","maxTime","format","hourChange","hourSelected"],[3,"selectedHour","period","minTime","maxTime","hourChange","hourSelected"],[3,"selectedMinute","selectedHour","minTime","maxTime","format","period","minutesGap","minuteChange"]],template:function(b,I){if(1&b&&(e.nrm(0,"div",0),e.j41(1,"div",1)(2,"ngx-material-timepicker-content",2)(3,"div",3),e.bIt("@timepicker.done",function(de){return I.animationDone(de)}),e.j41(4,"header",4)(5,"ngx-material-timepicker-dial",5),e.bIt("periodChanged",function(de){return I.changePeriod(de)})("timeUnitChanged",function(de){return I.changeTimeUnit(de)})("hourChanged",function(de){return I.onHourChange(de)})("minuteChanged",function(de){return I.onMinuteChange(de)}),e.nI1(6,"async"),e.nI1(7,"async"),e.nI1(8,"async"),e.k0s()(),e.j41(9,"div",6)(10,"div",7),e.DNE(11,wi,4,2,"div",8),e.DNE(12,bs,4,13,"ngx-material-timepicker-minutes-face",9),e.k0s(),e.j41(13,"div",10)(14,"div",11),e.bIt("click",function(){return I.close()}),e.DNE(15,Fi,1,0,"ng-container",12),e.k0s(),e.j41(16,"div",11),e.bIt("click",function(){return I.setTime()}),e.DNE(17,kr,1,0,"ng-container",12),e.k0s()()()()()(),e.DNE(18,Ts,2,0,"ng-template",null,13,e.C5r),e.DNE(20,Vr,2,0,"ng-template",null,14,e.C5r)),2&b){const X=e.sdS(19),de=e.sdS(21);let tt,Ot;e.Y8G("overlay",I.preventOverlayClick)("ngClass",e.eq3(29,il,I.appendToInput)),e.R7$(2),e.Y8G("appendToInput",I.appendToInput)("inputElement",I.inputElement)("ngxMaterialTimepickerTheme",I.theme),e.R7$(1),e.Y8G("@timepicker",I.animationState)("ngClass",I.timepickerClass),e.R7$(2),e.Y8G("format",I.format)("hour",null==(tt=e.bMT(6,23,I.selectedHour))?null:tt.time)("minute",null==(Ot=e.bMT(7,25,I.selectedMinute))?null:Ot.time)("period",e.bMT(8,27,I.selectedPeriod))("activeTimeUnit",I.activeTimeUnit)("minTime",I.minTime)("maxTime",I.maxTime)("isEditable",I.enableKeyboardInput)("editableHintTmpl",I.editableHintTmpl)("minutesGap",I.minutesGap)("hoursOnly",I.hoursOnly),e.R7$(5),e.Y8G("ngSwitch",I.activeTimeUnit),e.R7$(1),e.Y8G("ngSwitchCase",I.timeUnit.HOUR),e.R7$(1),e.Y8G("ngSwitchCase",I.timeUnit.MINUTE),e.R7$(3),e.Y8G("ngTemplateOutlet",I.cancelBtnTmpl?I.cancelBtnTmpl:X),e.R7$(2),e.Y8G("ngTemplateOutlet",I.confirmBtnTmpl?I.confirmBtnTmpl:de)}},dependencies:[kc,xc,Oa,Hc,Gl,Ml,Hl,h.YU,Uc,h.ux,h.e1,h.bT,h.T3,h.Jj],styles:['[_nghost-%COMP%]{--body-background-color: #fff;--primary-font-family: "Roboto", sans-serif;--button-color: deepskyblue;--dial-active-color: #fff;--dial-inactive-color: rgba(255, 255, 255, .5);--dial-background-color: deepskyblue;--dial-editable-active-color: deepskyblue;--dial-editable-background-color: #fff;--clock-face-time-active-color: #fff;--clock-face-time-inactive-color: #6c6c6c;--clock-face-inner-time-inactive-color: #929292;--clock-face-time-disabled-color: #c5c5c5;--clock-face-background-color: #f0f0f0;--clock-hand-color: deepskyblue}.timepicker-backdrop-overlay[_ngcontent-%COMP%]{position:fixed;top:0;bottom:0;right:0;left:0;background-color:#0000004d;z-index:999;pointer-events:auto}.timepicker-backdrop-overlay--transparent[_ngcontent-%COMP%]{background-color:transparent}.timepicker-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;align-items:center;z-index:999;pointer-events:none}.timepicker[_ngcontent-%COMP%]{width:300px;border-radius:2px;box-shadow:#00000040 0 14px 45px,#00000038 0 10px 18px;outline:none;position:static;z-index:999;pointer-events:auto}.timepicker__header[_ngcontent-%COMP%]{padding:15px 30px;background-color:#00bfff}@supports (background-color: var(--dial-background-color)){.timepicker__header[_ngcontent-%COMP%]{background-color:var(--dial-background-color)}}.timepicker__body[_ngcontent-%COMP%]{padding:15px 5px;display:flex;justify-content:center;align-items:center;background-color:#fff}@supports (background-color: var(--body-background-color)){.timepicker__body[_ngcontent-%COMP%]{background-color:var(--body-background-color)}}.timepicker__actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:15px;background-color:#fff}@supports (background-color: var(--body-background-color)){.timepicker__actions[_ngcontent-%COMP%]{background-color:var(--body-background-color)}}@media (max-device-width: 1023px) and (orientation: landscape){.timepicker[_ngcontent-%COMP%]{display:flex;width:515px}.timepicker__header[_ngcontent-%COMP%]{display:flex;align-items:center}.timepicker__main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.timepicker__actions[_ngcontent-%COMP%]{padding:5px;margin-top:-1px}}'],data:{animation:[(0,Ue.hZ)("timepicker",[(0,Ue.kY)(`* => ${di.ENTER}`,[(0,Ue.iF)({transform:"translateY(-30%)"}),(0,Ue.i0)("0.2s ease-out",(0,Ue.iF)({transform:"translateY(0)"}))]),(0,Ue.kY)(`${di.ENTER} => ${di.LEAVE}`,[(0,Ue.iF)({transform:"translateY(0)",opacity:1}),(0,Ue.i0)("0.2s ease-out",(0,Ue.iF)({transform:"translateY(-30%)",opacity:0}))])])]}}),S})(),Cr=(()=>{class S{constructor(b,I,X,de){this.cfr=b,this.appRef=I,this.injector=X,this.document=de}appendTimepickerToBody(b,I){this.componentRef=this.cfr.resolveComponentFactory(b).create(this.injector),Object.keys(I).forEach(de=>this.componentRef.instance[de]=I[de]),this.appRef.attachView(this.componentRef.hostView),this.document.body.appendChild(this.componentRef.hostView.rootNodes[0])}destroyTimepicker(){this.componentRef.destroy(),this.appRef.detachView(this.componentRef.hostView)}}return S.\u0275fac=function(b){return new(b||S)(e.KVO(e.OM3),e.KVO(e.o8S),e.KVO(e.zZn),e.KVO(h.qQ,8))},S.\u0275prov=e.jDH({token:S,factory:S.\u0275fac,providedIn:"root"}),S})(),rc=(()=>{class S{constructor(b,I){this.eventService=b,this.domService=I,this.timeUpdated=new Z.B,this.isEsc=!0,this.hoursOnly=!1,this.timeSet=new e.bkB,this.opened=new e.bkB,this.closed=new e.bkB,this.hourSelected=new e.bkB,this.timeChanged=new e.bkB,this.unsubscribe=new Z.B}set ngxMaterialTimepickerTheme(b){console.warn("'ngxMaterialTimepickerTheme' is deprecated. Use 'theme' instead"),this._ngxMaterialTimepickerTheme=b}set format(b){this._format=24===b?24:12}get format(){return this.timepickerInput?this.timepickerInput.format:this._format}set minutesGap(b){null!=b&&(b=Math.floor(b),this._minutesGap=b<=59?b:1)}get minutesGap(){return this._minutesGap}get minTime(){return this.timepickerInput?this.timepickerInput.min:this.min}get maxTime(){return this.timepickerInput?this.timepickerInput.max:this.max}get disabled(){return this.timepickerInput&&this.timepickerInput.disabled}get time(){return this.timepickerInput&&this.timepickerInput.value}get inputElement(){return this.timepickerInput&&this.timepickerInput.element}registerInput(b){if(this.timepickerInput)throw Error("A Timepicker can only be associated with a single input.");this.timepickerInput=b}open(){this.domService.appendTimepickerToBody(Ra,{timepickerBaseRef:this,time:this.time,defaultTime:this.defaultTime,maxTime:this.maxTime,minTime:this.minTime,format:this.format,minutesGap:this.minutesGap,disableAnimation:this.disableAnimation,cancelBtnTmpl:this.cancelBtnTmpl,confirmBtnTmpl:this.confirmBtnTmpl,editableHintTmpl:this.editableHintTmpl,disabled:this.disabled,enableKeyboardInput:this.enableKeyboardInput,preventOverlayClick:this.preventOverlayClick,appendToInput:this.appendToInput,hoursOnly:this.hoursOnly,theme:this.theme||this._ngxMaterialTimepickerTheme,timepickerClass:this.timepickerClass,inputElement:this.inputElement}),this.opened.next(),this.subscribeToEvents()}close(){this.domService.destroyTimepicker(),this.closed.next(),this.unsubscribeFromEvents()}updateTime(b){this.timeUpdated.next(b)}subscribeToEvents(){(0,De.h)(this.eventService.backdropClick,this.eventService.keydownEvent.pipe((0,Me.p)(b=>27===b.keyCode&&this.isEsc))).pipe((0,Ge.Q)(this.unsubscribe)).subscribe(()=>this.close())}unsubscribeFromEvents(){this.unsubscribe.next(),this.unsubscribe.complete()}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(yo),e.rXU(Cr))},S.\u0275cmp=e.VBU({type:S,selectors:[["ngx-material-timepicker"]],inputs:{cancelBtnTmpl:"cancelBtnTmpl",editableHintTmpl:"editableHintTmpl",confirmBtnTmpl:"confirmBtnTmpl",isEsc:["ESC","isEsc"],enableKeyboardInput:"enableKeyboardInput",preventOverlayClick:"preventOverlayClick",disableAnimation:"disableAnimation",appendToInput:"appendToInput",hoursOnly:"hoursOnly",defaultTime:"defaultTime",timepickerClass:"timepickerClass",theme:"theme",min:"min",max:"max",ngxMaterialTimepickerTheme:"ngxMaterialTimepickerTheme",format:"format",minutesGap:"minutesGap"},outputs:{timeSet:"timeSet",opened:"opened",closed:"closed",hourSelected:"hourSelected",timeChanged:"timeChanged"},decls:0,vars:0,template:function(b,I){},encapsulation:2}),S})(),Ul=(()=>{class S{constructor(b,I){this.elementRef=b,this.locale=I,this._format=12,this._value="",this.timepickerSubscriptions=[],this.onTouched=()=>{},this.onChange=()=>{}}set format(b){this._format=24===b?24:12,b&&this.previousFormat&&this.previousFormat!==this._format&&(this.value=this._value,this._timepicker.updateTime(this._value)),this.previousFormat=this._format}get format(){return this._format}set min(b){console.log(b),this._min="string"!=typeof b?b:to.parseTime(b,{locale:this.locale,format:this.format})}get min(){return this._min}set max(b){this._max="string"!=typeof b?b:to.parseTime(b,{locale:this.locale,format:this.format})}get max(){return this._max}set timepicker(b){this.registerTimepicker(b)}set value(b){if(!b)return this._value="",void this.updateInputValue();this.setTimeIfAvailable(b)}get value(){return this._value?to.toLocaleTimeString(this._value,{format:this.format,locale:this.locale}):""}get element(){return this.elementRef&&this.elementRef.nativeElement}set defaultTime(b){this._timepicker.defaultTime=to.formatTime(b,{locale:this.locale,format:this.format})}updateValue(b){this.value=b,this.onChange(b)}ngOnChanges(b){var I;const X=null===(I=b?.value)||void 0===I?void 0:I.currentValue;X&&(this.setTimeIfAvailable(X),this.defaultTime=X)}onClick(b){this.disableClick||(this._timepicker.open(),b.stopPropagation())}writeValue(b){this.value=b,b&&(this.defaultTime=b)}registerOnChange(b){this.onChange=b}registerOnTouched(b){this.onTouched=b}setDisabledState(b){this.disabled=b}ngOnDestroy(){this.timepickerSubscriptions.forEach(b=>b.unsubscribe())}registerTimepicker(b){if(!b)throw new Error("NgxMaterialTimepickerComponent is not defined. Please make sure you passed the timepicker to ngxTimepicker directive");this._timepicker=b,this._timepicker.registerInput(this),this.timepickerSubscriptions.push(this._timepicker.timeSet.subscribe(I=>{this.value=I,this.onChange(this.value),this.onTouched(),this.defaultTime=this._value}))}updateInputValue(){this.elementRef.nativeElement.value=this.value}setTimeIfAvailable(b){var I;const X=to.formatTime(b,{locale:this.locale,format:this.format});to.isTimeAvailable(X,this._min,this._max,"minutes",null===(I=this._timepicker)||void 0===I?void 0:I.minutesGap,this._format)?(this._value=X,this.updateInputValue()):(this.value=null,console.warn("Selected time doesn't match min or max value"))}}return S.\u0275fac=function(b){return new(b||S)(e.rXU(e.aKT),e.rXU(Ua))},S.\u0275dir=e.FsC({type:S,selectors:[["","ngxTimepicker",""]],hostVars:1,hostBindings:function(b,I){1&b&&e.bIt("change",function(de){return I.updateValue(de.target.value)})("blur",function(){return I.onTouched()})("click",function(de){return I.onClick(de)}),2&b&&e.Mr5("disabled",I.disabled)},inputs:{format:"format",min:"min",max:"max",timepicker:["ngxTimepicker","timepicker"],value:"value",disabled:"disabled",disableClick:"disableClick"},features:[e.Jv_([{provide:Br.kq,useExisting:S,multi:!0}]),e.OA$]}),S})(),no=(()=>{class S{static setOpts(b,I=to.DEFAULT_NUMBERING_SYSTEM){return{ngModule:S,providers:[{provide:Ua,useValue:b},{provide:Cl,useValue:I}]}}}return S.\u0275fac=function(b){return new(b||S)},S.\u0275mod=e.$C({type:S}),S.\u0275inj=e.G2t({imports:[[h.MD,Br.YN,Br.X1]]}),S})()},4412:(pn,ct,N)=>{N.d(ct,{t:()=>h});var e=N(1413);class h extends e.B{constructor(Z){super(),this._value=Z}get value(){return this.getValue()}_subscribe(Z){const De=super._subscribe(Z);return!De.closed&&Z.next(this._value),De}getValue(){const{hasError:Z,thrownError:De,_value:we}=this;if(Z)throw De;return this._throwIfClosed(),we}next(Z){super.next(this._value=Z)}}},1985:(pn,ct,N)=>{N.d(ct,{c:()=>Oe});var e=N(7707),h=N(8359),ne=N(3494),Z=N(1203),De=N(1026),we=N(8071),Ie=N(9786);let Oe=(()=>{class Ue{constructor(_t){_t&&(this._subscribe=_t)}lift(_t){const bt=new Ue;return bt.source=this,bt.operator=_t,bt}subscribe(_t,bt,ft){const mt=function Ge(Ue){return Ue&&Ue instanceof e.vU||function Me(Ue){return Ue&&(0,we.T)(Ue.next)&&(0,we.T)(Ue.error)&&(0,we.T)(Ue.complete)}(Ue)&&(0,h.Uv)(Ue)}(_t)?_t:new e.Ms(_t,bt,ft);return(0,Ie.Y)(()=>{const{operator:en,source:vt}=this;mt.add(en?en.call(mt,vt):vt?this._subscribe(mt):this._trySubscribe(mt))}),mt}_trySubscribe(_t){try{return this._subscribe(_t)}catch(bt){_t.error(bt)}}forEach(_t,bt){return new(bt=Ne(bt))((ft,mt)=>{const en=new e.Ms({next:vt=>{try{_t(vt)}catch(At){mt(At),en.unsubscribe()}},error:mt,complete:ft});this.subscribe(en)})}_subscribe(_t){var bt;return null===(bt=this.source)||void 0===bt?void 0:bt.subscribe(_t)}[ne.s](){return this}pipe(..._t){return(0,Z.m)(_t)(this)}toPromise(_t){return new(_t=Ne(_t))((bt,ft)=>{let mt;this.subscribe(en=>mt=en,en=>ft(en),()=>bt(mt))})}}return Ue.create=yt=>new Ue(yt),Ue})();function Ne(Ue){var yt;return null!==(yt=Ue??De.$.Promise)&&void 0!==yt?yt:Promise}},2771:(pn,ct,N)=>{N.d(ct,{m:()=>ne});var e=N(1413),h=N(6129);class ne extends e.B{constructor(De=1/0,we=1/0,Ie=h.U){super(),this._bufferSize=De,this._windowTime=we,this._timestampProvider=Ie,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=we===1/0,this._bufferSize=Math.max(1,De),this._windowTime=Math.max(1,we)}next(De){const{isStopped:we,_buffer:Ie,_infiniteTimeWindow:Oe,_timestampProvider:Ne,_windowTime:Me}=this;we||(Ie.push(De),!Oe&&Ie.push(Ne.now()+Me)),this._trimBuffer(),super.next(De)}_subscribe(De){this._throwIfClosed(),this._trimBuffer();const we=this._innerSubscribe(De),{_infiniteTimeWindow:Ie,_buffer:Oe}=this,Ne=Oe.slice();for(let Me=0;Me<Ne.length&&!De.closed;Me+=Ie?1:2)De.next(Ne[Me]);return this._checkFinalizedStatuses(De),we}_trimBuffer(){const{_bufferSize:De,_timestampProvider:we,_buffer:Ie,_infiniteTimeWindow:Oe}=this,Ne=(Oe?1:2)*De;if(De<1/0&&Ne<Ie.length&&Ie.splice(0,Ie.length-Ne),!Oe){const Me=we.now();let Ge=0;for(let Ue=1;Ue<Ie.length&&Ie[Ue]<=Me;Ue+=2)Ge=Ue;Ge&&Ie.splice(0,Ge+1)}}}},1413:(pn,ct,N)=>{N.d(ct,{B:()=>Ie});var e=N(1985),h=N(8359);const Z=(0,N(1853).L)(Ne=>function(){Ne(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var De=N(7908),we=N(9786);let Ie=(()=>{class Ne extends e.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(Ge){const Ue=new Oe(this,this);return Ue.operator=Ge,Ue}_throwIfClosed(){if(this.closed)throw new Z}next(Ge){(0,we.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Ue of this.currentObservers)Ue.next(Ge)}})}error(Ge){(0,we.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=Ge;const{observers:Ue}=this;for(;Ue.length;)Ue.shift().error(Ge)}})}complete(){(0,we.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:Ge}=this;for(;Ge.length;)Ge.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var Ge;return(null===(Ge=this.observers)||void 0===Ge?void 0:Ge.length)>0}_trySubscribe(Ge){return this._throwIfClosed(),super._trySubscribe(Ge)}_subscribe(Ge){return this._throwIfClosed(),this._checkFinalizedStatuses(Ge),this._innerSubscribe(Ge)}_innerSubscribe(Ge){const{hasError:Ue,isStopped:yt,observers:_t}=this;return Ue||yt?h.Kn:(this.currentObservers=null,_t.push(Ge),new h.yU(()=>{this.currentObservers=null,(0,De.o)(_t,Ge)}))}_checkFinalizedStatuses(Ge){const{hasError:Ue,thrownError:yt,isStopped:_t}=this;Ue?Ge.error(yt):_t&&Ge.complete()}asObservable(){const Ge=new e.c;return Ge.source=this,Ge}}return Ne.create=(Me,Ge)=>new Oe(Me,Ge),Ne})();class Oe extends Ie{constructor(Me,Ge){super(),this.destination=Me,this.source=Ge}next(Me){var Ge,Ue;null===(Ue=null===(Ge=this.destination)||void 0===Ge?void 0:Ge.next)||void 0===Ue||Ue.call(Ge,Me)}error(Me){var Ge,Ue;null===(Ue=null===(Ge=this.destination)||void 0===Ge?void 0:Ge.error)||void 0===Ue||Ue.call(Ge,Me)}complete(){var Me,Ge;null===(Ge=null===(Me=this.destination)||void 0===Me?void 0:Me.complete)||void 0===Ge||Ge.call(Me)}_subscribe(Me){var Ge,Ue;return null!==(Ue=null===(Ge=this.source)||void 0===Ge?void 0:Ge.subscribe(Me))&&void 0!==Ue?Ue:h.Kn}}},7707:(pn,ct,N)=>{N.d(ct,{Ms:()=>ft,vU:()=>Ue});var e=N(8071),h=N(8359),ne=N(1026),Z=N(5334),De=N(5343);const we=Ne("C",void 0,void 0);function Ne(me,at,rt){return{kind:me,value:at,error:rt}}var Me=N(9270),Ge=N(9786);class Ue extends h.yU{constructor(at){super(),this.isStopped=!1,at?(this.destination=at,(0,h.Uv)(at)&&at.add(this)):this.destination=At}static create(at,rt,ht){return new ft(at,rt,ht)}next(at){this.isStopped?vt(function Oe(me){return Ne("N",me,void 0)}(at),this):this._next(at)}error(at){this.isStopped?vt(function Ie(me){return Ne("E",void 0,me)}(at),this):(this.isStopped=!0,this._error(at))}complete(){this.isStopped?vt(we,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(at){this.destination.next(at)}_error(at){try{this.destination.error(at)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const yt=Function.prototype.bind;function _t(me,at){return yt.call(me,at)}class bt{constructor(at){this.partialObserver=at}next(at){const{partialObserver:rt}=this;if(rt.next)try{rt.next(at)}catch(ht){mt(ht)}}error(at){const{partialObserver:rt}=this;if(rt.error)try{rt.error(at)}catch(ht){mt(ht)}else mt(at)}complete(){const{partialObserver:at}=this;if(at.complete)try{at.complete()}catch(rt){mt(rt)}}}class ft extends Ue{constructor(at,rt,ht){let St;if(super(),(0,e.T)(at)||!at)St={next:at??void 0,error:rt??void 0,complete:ht??void 0};else{let Mt;this&&ne.$.useDeprecatedNextContext?(Mt=Object.create(at),Mt.unsubscribe=()=>this.unsubscribe(),St={next:at.next&&_t(at.next,Mt),error:at.error&&_t(at.error,Mt),complete:at.complete&&_t(at.complete,Mt)}):St=at}this.destination=new bt(St)}}function mt(me){ne.$.useDeprecatedSynchronousErrorHandling?(0,Ge.l)(me):(0,Z.m)(me)}function vt(me,at){const{onStoppedNotification:rt}=ne.$;rt&&Me.f.setTimeout(()=>rt(me,at))}const At={closed:!0,next:De.l,error:function en(me){throw me},complete:De.l}},8359:(pn,ct,N)=>{N.d(ct,{Kn:()=>we,yU:()=>De,Uv:()=>Ie});var e=N(8071);const ne=(0,N(1853).L)(Ne=>function(Ge){Ne(this),this.message=Ge?`${Ge.length} errors occurred during unsubscription:\n${Ge.map((Ue,yt)=>`${yt+1}) ${Ue.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=Ge});var Z=N(7908);class De{constructor(Me){this.initialTeardown=Me,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Me;if(!this.closed){this.closed=!0;const{_parentage:Ge}=this;if(Ge)if(this._parentage=null,Array.isArray(Ge))for(const _t of Ge)_t.remove(this);else Ge.remove(this);const{initialTeardown:Ue}=this;if((0,e.T)(Ue))try{Ue()}catch(_t){Me=_t instanceof ne?_t.errors:[_t]}const{_finalizers:yt}=this;if(yt){this._finalizers=null;for(const _t of yt)try{Oe(_t)}catch(bt){Me=Me??[],bt instanceof ne?Me=[...Me,...bt.errors]:Me.push(bt)}}if(Me)throw new ne(Me)}}add(Me){var Ge;if(Me&&Me!==this)if(this.closed)Oe(Me);else{if(Me instanceof De){if(Me.closed||Me._hasParent(this))return;Me._addParent(this)}(this._finalizers=null!==(Ge=this._finalizers)&&void 0!==Ge?Ge:[]).push(Me)}}_hasParent(Me){const{_parentage:Ge}=this;return Ge===Me||Array.isArray(Ge)&&Ge.includes(Me)}_addParent(Me){const{_parentage:Ge}=this;this._parentage=Array.isArray(Ge)?(Ge.push(Me),Ge):Ge?[Ge,Me]:Me}_removeParent(Me){const{_parentage:Ge}=this;Ge===Me?this._parentage=null:Array.isArray(Ge)&&(0,Z.o)(Ge,Me)}remove(Me){const{_finalizers:Ge}=this;Ge&&(0,Z.o)(Ge,Me),Me instanceof De&&Me._removeParent(this)}}De.EMPTY=(()=>{const Ne=new De;return Ne.closed=!0,Ne})();const we=De.EMPTY;function Ie(Ne){return Ne instanceof De||Ne&&"closed"in Ne&&(0,e.T)(Ne.remove)&&(0,e.T)(Ne.add)&&(0,e.T)(Ne.unsubscribe)}function Oe(Ne){(0,e.T)(Ne)?Ne():Ne.unsubscribe()}},1026:(pn,ct,N)=>{N.d(ct,{$:()=>e});const e={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},17:(pn,ct,N)=>{N.d(ct,{G:()=>we});var e=N(1985),h=N(8359),ne=N(9898),Z=N(4360),De=N(9974);class we extends e.c{constructor(Oe,Ne){super(),this.source=Oe,this.subjectFactory=Ne,this._subject=null,this._refCount=0,this._connection=null,(0,De.S)(Oe)&&(this.lift=Oe.lift)}_subscribe(Oe){return this.getSubject().subscribe(Oe)}getSubject(){const Oe=this._subject;return(!Oe||Oe.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Oe}=this;this._subject=this._connection=null,Oe?.unsubscribe()}connect(){let Oe=this._connection;if(!Oe){Oe=this._connection=new h.yU;const Ne=this.getSubject();Oe.add(this.source.subscribe((0,Z._)(Ne,void 0,()=>{this._teardown(),Ne.complete()},Me=>{this._teardown(),Ne.error(Me)},()=>this._teardown()))),Oe.closed&&(this._connection=null,Oe=h.yU.EMPTY)}return Oe}refCount(){return(0,ne.B)()(this)}}},4572:(pn,ct,N)=>{N.d(ct,{z:()=>Me});var e=N(1985),h=N(3073),ne=N(2806),Z=N(3669),De=N(6450),we=N(9326),Ie=N(8496),Oe=N(4360),Ne=N(5225);function Me(...yt){const _t=(0,we.lI)(yt),bt=(0,we.ms)(yt),{args:ft,keys:mt}=(0,h.D)(yt);if(0===ft.length)return(0,ne.H)([],_t);const en=new e.c(function Ge(yt,_t,bt=Z.D){return ft=>{Ue(_t,()=>{const{length:mt}=yt,en=new Array(mt);let vt=mt,At=mt;for(let me=0;me<mt;me++)Ue(_t,()=>{const at=(0,ne.H)(yt[me],_t);let rt=!1;at.subscribe((0,Oe._)(ft,ht=>{en[me]=ht,rt||(rt=!0,At--),At||ft.next(bt(en.slice()))},()=>{--vt||ft.complete()}))},ft)},ft)}}(ft,_t,mt?vt=>(0,Ie.e)(mt,vt):Z.D));return bt?en.pipe((0,De.I)(bt)):en}function Ue(yt,_t,bt){yt?(0,Ne.N)(bt,yt,_t):_t()}},8793:(pn,ct,N)=>{N.d(ct,{x:()=>De});var e=N(6365),ne=N(9326),Z=N(2806);function De(...we){return function h(){return(0,e.U)(1)}()((0,Z.H)(we,(0,ne.lI)(we)))}},9030:(pn,ct,N)=>{N.d(ct,{v:()=>ne});var e=N(1985),h=N(8750);function ne(Z){return new e.c(De=>{(0,h.Tg)(Z()).subscribe(De)})}},983:(pn,ct,N)=>{N.d(ct,{w:()=>h});const h=new(N(1985).c)(De=>De.complete())},7468:(pn,ct,N)=>{N.d(ct,{p:()=>Oe});var e=N(1985),h=N(3073),ne=N(8750),Z=N(9326),De=N(4360),we=N(6450),Ie=N(8496);function Oe(...Ne){const Me=(0,Z.ms)(Ne),{args:Ge,keys:Ue}=(0,h.D)(Ne),yt=new e.c(_t=>{const{length:bt}=Ge;if(!bt)return void _t.complete();const ft=new Array(bt);let mt=bt,en=bt;for(let vt=0;vt<bt;vt++){let At=!1;(0,ne.Tg)(Ge[vt]).subscribe((0,De._)(_t,me=>{At||(At=!0,en--),ft[vt]=me},()=>mt--,void 0,()=>{(!mt||!At)&&(en||_t.next(Ue?(0,Ie.e)(Ue,ft):ft),_t.complete())}))}});return Me?yt.pipe((0,we.I)(Me)):yt}},2806:(pn,ct,N)=>{N.d(ct,{H:()=>rt});var e=N(8750),h=N(941),ne=N(9974);function Z(ht,St=0){return(0,ne.N)((Mt,cn)=>{cn.add(ht.schedule(()=>Mt.subscribe(cn),St))})}var Ie=N(1985),Ne=N(4761),Me=N(8071),Ge=N(5225);function yt(ht,St){if(!ht)throw new Error("Iterable cannot be null");return new Ie.c(Mt=>{(0,Ge.N)(Mt,St,()=>{const cn=ht[Symbol.asyncIterator]();(0,Ge.N)(Mt,St,()=>{cn.next().then(En=>{En.done?Mt.complete():Mt.next(En.value)})},0,!0)})})}var _t=N(5055),bt=N(9858),ft=N(7441),mt=N(5397),en=N(7953),vt=N(591),At=N(5196);function rt(ht,St){return St?function at(ht,St){if(null!=ht){if((0,_t.l)(ht))return function De(ht,St){return(0,e.Tg)(ht).pipe(Z(St),(0,h.Q)(St))}(ht,St);if((0,ft.X)(ht))return function Oe(ht,St){return new Ie.c(Mt=>{let cn=0;return St.schedule(function(){cn===ht.length?Mt.complete():(Mt.next(ht[cn++]),Mt.closed||this.schedule())})})}(ht,St);if((0,bt.y)(ht))return function we(ht,St){return(0,e.Tg)(ht).pipe(Z(St),(0,h.Q)(St))}(ht,St);if((0,en.T)(ht))return yt(ht,St);if((0,mt.x)(ht))return function Ue(ht,St){return new Ie.c(Mt=>{let cn;return(0,Ge.N)(Mt,St,()=>{cn=ht[Ne.l](),(0,Ge.N)(Mt,St,()=>{let En,dn;try{({value:En,done:dn}=cn.next())}catch(Wt){return void Mt.error(Wt)}dn?Mt.complete():Mt.next(En)},0,!0)}),()=>(0,Me.T)(cn?.return)&&cn.return()})}(ht,St);if((0,At.U)(ht))return function me(ht,St){return yt((0,At.C)(ht),St)}(ht,St)}throw(0,vt.L)(ht)}(ht,St):(0,e.Tg)(ht)}},3726:(pn,ct,N)=>{N.d(ct,{R:()=>Me});var e=N(8750),h=N(1985),ne=N(1397),Z=N(7441),De=N(8071),we=N(6450);const Ie=["addListener","removeListener"],Oe=["addEventListener","removeEventListener"],Ne=["on","off"];function Me(bt,ft,mt,en){if((0,De.T)(mt)&&(en=mt,mt=void 0),en)return Me(bt,ft,mt).pipe((0,we.I)(en));const[vt,At]=function _t(bt){return(0,De.T)(bt.addEventListener)&&(0,De.T)(bt.removeEventListener)}(bt)?Oe.map(me=>at=>bt[me](ft,at,mt)):function Ue(bt){return(0,De.T)(bt.addListener)&&(0,De.T)(bt.removeListener)}(bt)?Ie.map(Ge(bt,ft)):function yt(bt){return(0,De.T)(bt.on)&&(0,De.T)(bt.off)}(bt)?Ne.map(Ge(bt,ft)):[];if(!vt&&(0,Z.X)(bt))return(0,ne.Z)(me=>Me(me,ft,mt))((0,e.Tg)(bt));if(!vt)throw new TypeError("Invalid event target");return new h.c(me=>{const at=(...rt)=>me.next(1<rt.length?rt:rt[0]);return vt(at),()=>At(at)})}function Ge(bt,ft){return mt=>en=>bt[mt](ft,en)}},8750:(pn,ct,N)=>{N.d(ct,{Tg:()=>yt});var e=N(1635),h=N(7441),ne=N(9858),Z=N(1985),De=N(5055),we=N(7953),Ie=N(591),Oe=N(5397),Ne=N(5196),Me=N(8071),Ge=N(5334),Ue=N(3494);function yt(me){if(me instanceof Z.c)return me;if(null!=me){if((0,De.l)(me))return function _t(me){return new Z.c(at=>{const rt=me[Ue.s]();if((0,Me.T)(rt.subscribe))return rt.subscribe(at);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(me);if((0,h.X)(me))return function bt(me){return new Z.c(at=>{for(let rt=0;rt<me.length&&!at.closed;rt++)at.next(me[rt]);at.complete()})}(me);if((0,ne.y)(me))return function ft(me){return new Z.c(at=>{me.then(rt=>{at.closed||(at.next(rt),at.complete())},rt=>at.error(rt)).then(null,Ge.m)})}(me);if((0,we.T)(me))return en(me);if((0,Oe.x)(me))return function mt(me){return new Z.c(at=>{for(const rt of me)if(at.next(rt),at.closed)return;at.complete()})}(me);if((0,Ne.U)(me))return function vt(me){return en((0,Ne.C)(me))}(me)}throw(0,Ie.L)(me)}function en(me){return new Z.c(at=>{(function At(me,at){var rt,ht,St,Mt;return(0,e.sH)(this,void 0,void 0,function*(){try{for(rt=(0,e.xN)(me);!(ht=yield rt.next()).done;)if(at.next(ht.value),at.closed)return}catch(cn){St={error:cn}}finally{try{ht&&!ht.done&&(Mt=rt.return)&&(yield Mt.call(rt))}finally{if(St)throw St.error}}at.complete()})})(me,at).catch(rt=>at.error(rt))})}},7786:(pn,ct,N)=>{N.d(ct,{h:()=>we});var e=N(6365),h=N(8750),ne=N(983),Z=N(9326),De=N(2806);function we(...Ie){const Oe=(0,Z.lI)(Ie),Ne=(0,Z.R0)(Ie,1/0),Me=Ie;return Me.length?1===Me.length?(0,h.Tg)(Me[0]):(0,e.U)(Ne)((0,De.H)(Me,Oe)):ne.w}},7673:(pn,ct,N)=>{N.d(ct,{of:()=>ne});var e=N(9326),h=N(2806);function ne(...Z){const De=(0,e.lI)(Z);return(0,h.H)(Z,De)}},8810:(pn,ct,N)=>{N.d(ct,{$:()=>ne});var e=N(1985),h=N(8071);function ne(Z,De){const we=(0,h.T)(Z)?Z:()=>Z,Ie=Oe=>Oe.error(we());return new e.c(De?Oe=>De.schedule(Ie,0,Oe):Ie)}},1584:(pn,ct,N)=>{N.d(ct,{O:()=>De});var e=N(1985),h=N(3236),ne=N(9470);function De(we=0,Ie,Oe=h.b){let Ne=-1;return null!=Ie&&((0,ne.m)(Ie)?Oe=Ie:Ne=Ie),new e.c(Me=>{let Ge=function Z(we){return we instanceof Date&&!isNaN(we)}(we)?+we-Oe.now():we;Ge<0&&(Ge=0);let Ue=0;return Oe.schedule(function(){Me.closed||(Me.next(Ue++),0<=Ne?this.schedule(void 0,Ne):Me.complete())},Ge)})}},4360:(pn,ct,N)=>{N.d(ct,{_:()=>h});var e=N(7707);function h(Z,De,we,Ie,Oe){return new ne(Z,De,we,Ie,Oe)}class ne extends e.vU{constructor(De,we,Ie,Oe,Ne,Me){super(De),this.onFinalize=Ne,this.shouldUnsubscribe=Me,this._next=we?function(Ge){try{we(Ge)}catch(Ue){De.error(Ue)}}:super._next,this._error=Oe?function(Ge){try{Oe(Ge)}catch(Ue){De.error(Ue)}finally{this.unsubscribe()}}:super._error,this._complete=Ie?function(){try{Ie()}catch(Ge){De.error(Ge)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var De;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:we}=this;super.unsubscribe(),!we&&(null===(De=this.onFinalize)||void 0===De||De.call(this))}}}},9437:(pn,ct,N)=>{N.d(ct,{W:()=>Z});var e=N(8750),h=N(4360),ne=N(9974);function Z(De){return(0,ne.N)((we,Ie)=>{let Me,Oe=null,Ne=!1;Oe=we.subscribe((0,h._)(Ie,void 0,void 0,Ge=>{Me=(0,e.Tg)(De(Ge,Z(De)(we))),Oe?(Oe.unsubscribe(),Oe=null,Me.subscribe(Ie)):Ne=!0})),Ne&&(Oe.unsubscribe(),Oe=null,Me.subscribe(Ie))})}},274:(pn,ct,N)=>{N.d(ct,{H:()=>ne});var e=N(1397),h=N(8071);function ne(Z,De){return(0,h.T)(De)?(0,e.Z)(Z,De,1):(0,e.Z)(Z,1)}},152:(pn,ct,N)=>{N.d(ct,{B:()=>Z});var e=N(3236),h=N(9974),ne=N(4360);function Z(De,we=e.E){return(0,h.N)((Ie,Oe)=>{let Ne=null,Me=null,Ge=null;const Ue=()=>{if(Ne){Ne.unsubscribe(),Ne=null;const _t=Me;Me=null,Oe.next(_t)}};function yt(){const _t=Ge+De,bt=we.now();if(bt<_t)return Ne=this.schedule(void 0,_t-bt),void Oe.add(Ne);Ue()}Ie.subscribe((0,ne._)(Oe,_t=>{Me=_t,Ge=we.now(),Ne||(Ne=we.schedule(yt,De),Oe.add(Ne))},()=>{Ue(),Oe.complete()},void 0,()=>{Me=Ne=null}))})}},1986:(pn,ct,N)=>{N.d(ct,{c:()=>yt});var e=N(3236),h=N(8793),ne=N(6697),Z=N(9974),De=N(4360),we=N(5343),Oe=N(3703),Ne=N(1397),Me=N(8750);function Ge(_t,bt){return bt?ft=>(0,h.x)(bt.pipe((0,ne.s)(1),function Ie(){return(0,Z.N)((_t,bt)=>{_t.subscribe((0,De._)(bt,we.l))})}()),ft.pipe(Ge(_t))):(0,Ne.Z)((ft,mt)=>(0,Me.Tg)(_t(ft,mt)).pipe((0,ne.s)(1),(0,Oe.u)(ft)))}var Ue=N(1584);function yt(_t,bt=e.E){const ft=(0,Ue.O)(_t,bt);return Ge(()=>ft)}},3294:(pn,ct,N)=>{N.d(ct,{F:()=>Z});var e=N(3669),h=N(9974),ne=N(4360);function Z(we,Ie=e.D){return we=we??De,(0,h.N)((Oe,Ne)=>{let Me,Ge=!0;Oe.subscribe((0,ne._)(Ne,Ue=>{const yt=Ie(Ue);(Ge||!we(Me,yt))&&(Ge=!1,Me=yt,Ne.next(Ue))}))})}function De(we,Ie){return we===Ie}},5964:(pn,ct,N)=>{N.d(ct,{p:()=>ne});var e=N(9974),h=N(4360);function ne(Z,De){return(0,e.N)((we,Ie)=>{let Oe=0;we.subscribe((0,h._)(Ie,Ne=>Z.call(De,Ne,Oe++)&&Ie.next(Ne)))})}},980:(pn,ct,N)=>{N.d(ct,{j:()=>h});var e=N(9974);function h(ne){return(0,e.N)((Z,De)=>{try{Z.subscribe(De)}finally{De.add(ne)}})}},6354:(pn,ct,N)=>{N.d(ct,{T:()=>ne});var e=N(9974),h=N(4360);function ne(Z,De){return(0,e.N)((we,Ie)=>{let Oe=0;we.subscribe((0,h._)(Ie,Ne=>{Ie.next(Z.call(De,Ne,Oe++))}))})}},3703:(pn,ct,N)=>{N.d(ct,{u:()=>h});var e=N(6354);function h(ne){return(0,e.T)(()=>ne)}},6365:(pn,ct,N)=>{N.d(ct,{U:()=>ne});var e=N(1397),h=N(3669);function ne(Z=1/0){return(0,e.Z)(h.D,Z)}},1397:(pn,ct,N)=>{N.d(ct,{Z:()=>Oe});var e=N(6354),h=N(8750),ne=N(9974),Z=N(5225),De=N(4360),Ie=N(8071);function Oe(Ne,Me,Ge=1/0){return(0,Ie.T)(Me)?Oe((Ue,yt)=>(0,e.T)((_t,bt)=>Me(Ue,_t,yt,bt))((0,h.Tg)(Ne(Ue,yt))),Ge):("number"==typeof Me&&(Ge=Me),(0,ne.N)((Ue,yt)=>function we(Ne,Me,Ge,Ue,yt,_t,bt,ft){const mt=[];let en=0,vt=0,At=!1;const me=()=>{At&&!mt.length&&!en&&Me.complete()},at=ht=>en<Ue?rt(ht):mt.push(ht),rt=ht=>{_t&&Me.next(ht),en++;let St=!1;(0,h.Tg)(Ge(ht,vt++)).subscribe((0,De._)(Me,Mt=>{yt?.(Mt),_t?at(Mt):Me.next(Mt)},()=>{St=!0},void 0,()=>{if(St)try{for(en--;mt.length&&en<Ue;){const Mt=mt.shift();bt?(0,Z.N)(Me,bt,()=>rt(Mt)):rt(Mt)}me()}catch(Mt){Me.error(Mt)}}))};return Ne.subscribe((0,De._)(Me,at,()=>{At=!0,me()})),()=>{ft?.()}}(Ue,yt,Ne,Ge)))}},941:(pn,ct,N)=>{N.d(ct,{Q:()=>Z});var e=N(5225),h=N(9974),ne=N(4360);function Z(De,we=0){return(0,h.N)((Ie,Oe)=>{Ie.subscribe((0,ne._)(Oe,Ne=>(0,e.N)(Oe,De,()=>Oe.next(Ne),we),()=>(0,e.N)(Oe,De,()=>Oe.complete(),we),Ne=>(0,e.N)(Oe,De,()=>Oe.error(Ne),we)))})}},9898:(pn,ct,N)=>{N.d(ct,{B:()=>ne});var e=N(9974),h=N(4360);function ne(){return(0,e.N)((Z,De)=>{let we=null;Z._refCount++;const Ie=(0,h._)(De,void 0,void 0,void 0,()=>{if(!Z||Z._refCount<=0||0<--Z._refCount)return void(we=null);const Oe=Z._connection,Ne=we;we=null,Oe&&(!Ne||Oe===Ne)&&Oe.unsubscribe(),De.unsubscribe()});Z.subscribe(Ie),Ie.closed||(we=Z.connect())})}},2816:(pn,ct,N)=>{N.d(ct,{S:()=>Z});var e=N(9974),h=N(4360);function Z(De,we){return(0,e.N)(function ne(De,we,Ie,Oe,Ne){return(Me,Ge)=>{let Ue=Ie,yt=we,_t=0;Me.subscribe((0,h._)(Ge,bt=>{const ft=_t++;yt=Ue?De(yt,bt,ft):(Ue=!0,bt),Oe&&Ge.next(yt)},Ne&&(()=>{Ue&&Ge.next(yt),Ge.complete()})))}}(De,we,arguments.length>=2,!0))}},7647:(pn,ct,N)=>{N.d(ct,{u:()=>De});var e=N(8750),h=N(1413),ne=N(7707),Z=N(9974);function De(Ie={}){const{connector:Oe=(()=>new h.B),resetOnError:Ne=!0,resetOnComplete:Me=!0,resetOnRefCountZero:Ge=!0}=Ie;return Ue=>{let yt,_t,bt,ft=0,mt=!1,en=!1;const vt=()=>{_t?.unsubscribe(),_t=void 0},At=()=>{vt(),yt=bt=void 0,mt=en=!1},me=()=>{const at=yt;At(),at?.unsubscribe()};return(0,Z.N)((at,rt)=>{ft++,!en&&!mt&&vt();const ht=bt=bt??Oe();rt.add(()=>{ft--,0===ft&&!en&&!mt&&(_t=we(me,Ge))}),ht.subscribe(rt),!yt&&ft>0&&(yt=new ne.Ms({next:St=>ht.next(St),error:St=>{en=!0,vt(),_t=we(At,Ne,St),ht.error(St)},complete:()=>{mt=!0,vt(),_t=we(At,Me),ht.complete()}}),(0,e.Tg)(at).subscribe(yt))})(Ue)}}function we(Ie,Oe,...Ne){if(!0===Oe)return void Ie();if(!1===Oe)return;const Me=new ne.Ms({next:()=>{Me.unsubscribe(),Ie()}});return(0,e.Tg)(Oe(...Ne)).subscribe(Me)}},4668:(pn,ct,N)=>{N.d(ct,{t:()=>ne});var e=N(2771),h=N(7647);function ne(Z,De,we){let Ie,Oe=!1;return Z&&"object"==typeof Z?({bufferSize:Ie=1/0,windowTime:De=1/0,refCount:Oe=!1,scheduler:we}=Z):Ie=Z??1/0,(0,h.u)({connector:()=>new e.m(Ie,De,we),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Oe})}},5245:(pn,ct,N)=>{N.d(ct,{i:()=>h});var e=N(5964);function h(ne){return(0,e.p)((Z,De)=>ne<=De)}},9172:(pn,ct,N)=>{N.d(ct,{Z:()=>Z});var e=N(8793),h=N(9326),ne=N(9974);function Z(...De){const we=(0,h.lI)(De);return(0,ne.N)((Ie,Oe)=>{(we?(0,e.x)(De,Ie,we):(0,e.x)(De,Ie)).subscribe(Oe)})}},5558:(pn,ct,N)=>{N.d(ct,{n:()=>Z});var e=N(8750),h=N(9974),ne=N(4360);function Z(De,we){return(0,h.N)((Ie,Oe)=>{let Ne=null,Me=0,Ge=!1;const Ue=()=>Ge&&!Ne&&Oe.complete();Ie.subscribe((0,ne._)(Oe,yt=>{Ne?.unsubscribe();let _t=0;const bt=Me++;(0,e.Tg)(De(yt,bt)).subscribe(Ne=(0,ne._)(Oe,ft=>Oe.next(we?we(yt,ft,bt,_t++):ft),()=>{Ne=null,Ue()}))},()=>{Ge=!0,Ue()}))})}},6697:(pn,ct,N)=>{N.d(ct,{s:()=>Z});var e=N(983),h=N(9974),ne=N(4360);function Z(De){return De<=0?()=>e.w:(0,h.N)((we,Ie)=>{let Oe=0;we.subscribe((0,ne._)(Ie,Ne=>{++Oe<=De&&(Ie.next(Ne),De<=Oe&&Ie.complete())}))})}},6977:(pn,ct,N)=>{N.d(ct,{Q:()=>De});var e=N(9974),h=N(4360),ne=N(8750),Z=N(5343);function De(we){return(0,e.N)((Ie,Oe)=>{(0,ne.Tg)(we).subscribe((0,h._)(Oe,()=>Oe.complete(),Z.l)),!Oe.closed&&Ie.subscribe(Oe)})}},8141:(pn,ct,N)=>{N.d(ct,{M:()=>De});var e=N(8071),h=N(9974),ne=N(4360),Z=N(3669);function De(we,Ie,Oe){const Ne=(0,e.T)(we)||Ie||Oe?{next:we,error:Ie,complete:Oe}:we;return Ne?(0,h.N)((Me,Ge)=>{var Ue;null===(Ue=Ne.subscribe)||void 0===Ue||Ue.call(Ne);let yt=!0;Me.subscribe((0,ne._)(Ge,_t=>{var bt;null===(bt=Ne.next)||void 0===bt||bt.call(Ne,_t),Ge.next(_t)},()=>{var _t;yt=!1,null===(_t=Ne.complete)||void 0===_t||_t.call(Ne),Ge.complete()},_t=>{var bt;yt=!1,null===(bt=Ne.error)||void 0===bt||bt.call(Ne,_t),Ge.error(_t)},()=>{var _t,bt;yt&&(null===(_t=Ne.unsubscribe)||void 0===_t||_t.call(Ne)),null===(bt=Ne.finalize)||void 0===bt||bt.call(Ne)}))}):Z.D}},6780:(pn,ct,N)=>{N.d(ct,{R:()=>De});var e=N(8359);class h extends e.yU{constructor(Ie,Oe){super()}schedule(Ie,Oe=0){return this}}const ne={setInterval(we,Ie,...Oe){const{delegate:Ne}=ne;return Ne?.setInterval?Ne.setInterval(we,Ie,...Oe):setInterval(we,Ie,...Oe)},clearInterval(we){const{delegate:Ie}=ne;return(Ie?.clearInterval||clearInterval)(we)},delegate:void 0};var Z=N(7908);class De extends h{constructor(Ie,Oe){super(Ie,Oe),this.scheduler=Ie,this.work=Oe,this.pending=!1}schedule(Ie,Oe=0){var Ne;if(this.closed)return this;this.state=Ie;const Me=this.id,Ge=this.scheduler;return null!=Me&&(this.id=this.recycleAsyncId(Ge,Me,Oe)),this.pending=!0,this.delay=Oe,this.id=null!==(Ne=this.id)&&void 0!==Ne?Ne:this.requestAsyncId(Ge,this.id,Oe),this}requestAsyncId(Ie,Oe,Ne=0){return ne.setInterval(Ie.flush.bind(Ie,this),Ne)}recycleAsyncId(Ie,Oe,Ne=0){if(null!=Ne&&this.delay===Ne&&!1===this.pending)return Oe;null!=Oe&&ne.clearInterval(Oe)}execute(Ie,Oe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Ne=this._execute(Ie,Oe);if(Ne)return Ne;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Ie,Oe){let Me,Ne=!1;try{this.work(Ie)}catch(Ge){Ne=!0,Me=Ge||new Error("Scheduled action threw falsy error")}if(Ne)return this.unsubscribe(),Me}unsubscribe(){if(!this.closed){const{id:Ie,scheduler:Oe}=this,{actions:Ne}=Oe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Z.o)(Ne,this),null!=Ie&&(this.id=this.recycleAsyncId(Oe,Ie,null)),this.delay=null,super.unsubscribe()}}}},9687:(pn,ct,N)=>{N.d(ct,{q:()=>ne});var e=N(6129);class h{constructor(De,we=h.now){this.schedulerActionCtor=De,this.now=we}schedule(De,we=0,Ie){return new this.schedulerActionCtor(this,De).schedule(Ie,we)}}h.now=e.U.now;class ne extends h{constructor(De,we=h.now){super(De,we),this.actions=[],this._active=!1}flush(De){const{actions:we}=this;if(this._active)return void we.push(De);let Ie;this._active=!0;do{if(Ie=De.execute(De.state,De.delay))break}while(De=we.shift());if(this._active=!1,Ie){for(;De=we.shift();)De.unsubscribe();throw Ie}}}},536:(pn,ct,N)=>{N.d(ct,{X:()=>Ie});var e=N(6780),h=N(8359);const ne={schedule(Ne){let Me=requestAnimationFrame,Ge=cancelAnimationFrame;const{delegate:Ue}=ne;Ue&&(Me=Ue.requestAnimationFrame,Ge=Ue.cancelAnimationFrame);const yt=Me(_t=>{Ge=void 0,Ne(_t)});return new h.yU(()=>Ge?.(yt))},requestAnimationFrame(...Ne){const{delegate:Me}=ne;return(Me?.requestAnimationFrame||requestAnimationFrame)(...Ne)},cancelAnimationFrame(...Ne){const{delegate:Me}=ne;return(Me?.cancelAnimationFrame||cancelAnimationFrame)(...Ne)},delegate:void 0};var De=N(9687);const Ie=new class we extends De.q{flush(Me){let Ge;this._active=!0,Me?Ge=Me.id:(Ge=this._scheduled,this._scheduled=void 0);const{actions:Ue}=this;let yt;Me=Me||Ue.shift();do{if(yt=Me.execute(Me.state,Me.delay))break}while((Me=Ue[0])&&Me.id===Ge&&Ue.shift());if(this._active=!1,yt){for(;(Me=Ue[0])&&Me.id===Ge&&Ue.shift();)Me.unsubscribe();throw yt}}}(class Z extends e.R{constructor(Me,Ge){super(Me,Ge),this.scheduler=Me,this.work=Ge}requestAsyncId(Me,Ge,Ue=0){return null!==Ue&&Ue>0?super.requestAsyncId(Me,Ge,Ue):(Me.actions.push(this),Me._scheduled||(Me._scheduled=ne.requestAnimationFrame(()=>Me.flush(void 0))))}recycleAsyncId(Me,Ge,Ue=0){var yt;if(null!=Ue?Ue>0:this.delay>0)return super.recycleAsyncId(Me,Ge,Ue);const{actions:_t}=Me;null!=Ge&&Ge===Me._scheduled&&(null===(yt=_t[_t.length-1])||void 0===yt?void 0:yt.id)!==Ge&&(ne.cancelAnimationFrame(Ge),Me._scheduled=void 0)}})},5007:(pn,ct,N)=>{N.d(ct,{$:()=>_t});var e=N(6780);let ne,h=1;const Z={};function De(ft){return ft in Z&&(delete Z[ft],!0)}const we={setImmediate(ft){const mt=h++;return Z[mt]=!0,ne||(ne=Promise.resolve()),ne.then(()=>De(mt)&&ft()),mt},clearImmediate(ft){De(ft)}},{setImmediate:Oe,clearImmediate:Ne}=we,Me={setImmediate(...ft){const{delegate:mt}=Me;return(mt?.setImmediate||Oe)(...ft)},clearImmediate(ft){const{delegate:mt}=Me;return(mt?.clearImmediate||Ne)(ft)},delegate:void 0};var Ue=N(9687);const _t=new class yt extends Ue.q{flush(mt){this._active=!0;const en=this._scheduled;this._scheduled=void 0;const{actions:vt}=this;let At;mt=mt||vt.shift();do{if(At=mt.execute(mt.state,mt.delay))break}while((mt=vt[0])&&mt.id===en&&vt.shift());if(this._active=!1,At){for(;(mt=vt[0])&&mt.id===en&&vt.shift();)mt.unsubscribe();throw At}}}(class Ge extends e.R{constructor(mt,en){super(mt,en),this.scheduler=mt,this.work=en}requestAsyncId(mt,en,vt=0){return null!==vt&&vt>0?super.requestAsyncId(mt,en,vt):(mt.actions.push(this),mt._scheduled||(mt._scheduled=Me.setImmediate(mt.flush.bind(mt,void 0))))}recycleAsyncId(mt,en,vt=0){var At;if(null!=vt?vt>0:this.delay>0)return super.recycleAsyncId(mt,en,vt);const{actions:me}=mt;null!=en&&(null===(At=me[me.length-1])||void 0===At?void 0:At.id)!==en&&(Me.clearImmediate(en),mt._scheduled===en&&(mt._scheduled=void 0))}})},3236:(pn,ct,N)=>{N.d(ct,{E:()=>ne,b:()=>Z});var e=N(6780);const ne=new(N(9687).q)(e.R),Z=ne},6129:(pn,ct,N)=>{N.d(ct,{U:()=>e});const e={now:()=>(e.delegate||Date).now(),delegate:void 0}},9270:(pn,ct,N)=>{N.d(ct,{f:()=>e});const e={setTimeout(h,ne,...Z){const{delegate:De}=e;return De?.setTimeout?De.setTimeout(h,ne,...Z):setTimeout(h,ne,...Z)},clearTimeout(h){const{delegate:ne}=e;return(ne?.clearTimeout||clearTimeout)(h)},delegate:void 0}},4761:(pn,ct,N)=>{N.d(ct,{l:()=>h});const h=function e(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(pn,ct,N)=>{N.d(ct,{s:()=>e});const e="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(pn,ct,N)=>{N.d(ct,{G:()=>h});const h=(0,N(1853).L)(ne=>function(){ne(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(pn,ct,N)=>{N.d(ct,{R0:()=>we,lI:()=>De,ms:()=>Z});var e=N(8071),h=N(9470);function ne(Ie){return Ie[Ie.length-1]}function Z(Ie){return(0,e.T)(ne(Ie))?Ie.pop():void 0}function De(Ie){return(0,h.m)(ne(Ie))?Ie.pop():void 0}function we(Ie,Oe){return"number"==typeof ne(Ie)?Ie.pop():Oe}},3073:(pn,ct,N)=>{N.d(ct,{D:()=>De});const{isArray:e}=Array,{getPrototypeOf:h,prototype:ne,keys:Z}=Object;function De(Ie){if(1===Ie.length){const Oe=Ie[0];if(e(Oe))return{args:Oe,keys:null};if(function we(Ie){return Ie&&"object"==typeof Ie&&h(Ie)===ne}(Oe)){const Ne=Z(Oe);return{args:Ne.map(Me=>Oe[Me]),keys:Ne}}}return{args:Ie,keys:null}}},7908:(pn,ct,N)=>{function e(h,ne){if(h){const Z=h.indexOf(ne);0<=Z&&h.splice(Z,1)}}N.d(ct,{o:()=>e})},1853:(pn,ct,N)=>{function e(h){const Z=h(De=>{Error.call(De),De.stack=(new Error).stack});return Z.prototype=Object.create(Error.prototype),Z.prototype.constructor=Z,Z}N.d(ct,{L:()=>e})},8496:(pn,ct,N)=>{function e(h,ne){return h.reduce((Z,De,we)=>(Z[De]=ne[we],Z),{})}N.d(ct,{e:()=>e})},9786:(pn,ct,N)=>{N.d(ct,{Y:()=>ne,l:()=>Z});var e=N(1026);let h=null;function ne(De){if(e.$.useDeprecatedSynchronousErrorHandling){const we=!h;if(we&&(h={errorThrown:!1,error:null}),De(),we){const{errorThrown:Ie,error:Oe}=h;if(h=null,Ie)throw Oe}}else De()}function Z(De){e.$.useDeprecatedSynchronousErrorHandling&&h&&(h.errorThrown=!0,h.error=De)}},5225:(pn,ct,N)=>{function e(h,ne,Z,De=0,we=!1){const Ie=ne.schedule(function(){Z(),we?h.add(this.schedule(null,De)):this.unsubscribe()},De);if(h.add(Ie),!we)return Ie}N.d(ct,{N:()=>e})},3669:(pn,ct,N)=>{function e(h){return h}N.d(ct,{D:()=>e})},7441:(pn,ct,N)=>{N.d(ct,{X:()=>e});const e=h=>h&&"number"==typeof h.length&&"function"!=typeof h},7953:(pn,ct,N)=>{N.d(ct,{T:()=>h});var e=N(8071);function h(ne){return Symbol.asyncIterator&&(0,e.T)(ne?.[Symbol.asyncIterator])}},8071:(pn,ct,N)=>{function e(h){return"function"==typeof h}N.d(ct,{T:()=>e})},5055:(pn,ct,N)=>{N.d(ct,{l:()=>ne});var e=N(3494),h=N(8071);function ne(Z){return(0,h.T)(Z[e.s])}},5397:(pn,ct,N)=>{N.d(ct,{x:()=>ne});var e=N(4761),h=N(8071);function ne(Z){return(0,h.T)(Z?.[e.l])}},4402:(pn,ct,N)=>{N.d(ct,{A:()=>ne});var e=N(1985),h=N(8071);function ne(Z){return!!Z&&(Z instanceof e.c||(0,h.T)(Z.lift)&&(0,h.T)(Z.subscribe))}},9858:(pn,ct,N)=>{N.d(ct,{y:()=>h});var e=N(8071);function h(ne){return(0,e.T)(ne?.then)}},5196:(pn,ct,N)=>{N.d(ct,{C:()=>ne,U:()=>Z});var e=N(1635),h=N(8071);function ne(De){return(0,e.AQ)(this,arguments,function*(){const Ie=De.getReader();try{for(;;){const{value:Oe,done:Ne}=yield(0,e.N3)(Ie.read());if(Ne)return yield(0,e.N3)(void 0);yield yield(0,e.N3)(Oe)}}finally{Ie.releaseLock()}})}function Z(De){return(0,h.T)(De?.getReader)}},9470:(pn,ct,N)=>{N.d(ct,{m:()=>h});var e=N(8071);function h(ne){return ne&&(0,e.T)(ne.schedule)}},9974:(pn,ct,N)=>{N.d(ct,{N:()=>ne,S:()=>h});var e=N(8071);function h(Z){return(0,e.T)(Z?.lift)}function ne(Z){return De=>{if(h(De))return De.lift(function(we){try{return Z(we,this)}catch(Ie){this.error(Ie)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(pn,ct,N)=>{N.d(ct,{I:()=>Z});var e=N(6354);const{isArray:h}=Array;function Z(De){return(0,e.T)(we=>function ne(De,we){return h(we)?De(...we):De(we)}(De,we))}},5343:(pn,ct,N)=>{function e(){}N.d(ct,{l:()=>e})},1203:(pn,ct,N)=>{N.d(ct,{F:()=>h,m:()=>ne});var e=N(3669);function h(...Z){return ne(Z)}function ne(Z){return 0===Z.length?e.D:1===Z.length?Z[0]:function(we){return Z.reduce((Ie,Oe)=>Oe(Ie),we)}}},5334:(pn,ct,N)=>{N.d(ct,{m:()=>ne});var e=N(1026),h=N(9270);function ne(Z){h.f.setTimeout(()=>{const{onUnhandledError:De}=e.$;if(!De)throw Z;De(Z)})}},591:(pn,ct,N)=>{function e(h){return new TypeError(`You provided ${null!==h&&"object"==typeof h?"an invalid object":`'${h}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}N.d(ct,{L:()=>e})},9969:(pn,ct,N)=>{N.d(ct,{FX:()=>vt,K2:()=>Ie,MA:()=>yt,Os:()=>we,P:()=>bt,Ro:()=>h,S6:()=>e,hZ:()=>Z,i0:()=>De,iF:()=>Oe,kY:()=>Ge,kp:()=>ne,sf:()=>mt,ui:()=>en,wk:()=>Ne});class e{}class h{}const ne="*";function Z(At,me){return{type:7,name:At,definitions:me,options:{}}}function De(At,me=null){return{type:4,styles:me,timings:At}}function we(At,me=null){return{type:3,steps:At,options:me}}function Ie(At,me=null){return{type:2,steps:At,options:me}}function Oe(At){return{type:6,styles:At,offset:null}}function Ne(At,me,at){return{type:0,name:At,styles:me,options:at}}function Ge(At,me,at=null){return{type:1,expr:At,animation:me,options:at}}function yt(At=null){return{type:9,options:At}}function bt(At,me,at=null){return{type:11,selector:At,animation:me,options:at}}class mt{constructor(me=0,at=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=me+at}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(me=>me()),this._onDoneFns=[])}onStart(me){this._originalOnStartFns.push(me),this._onStartFns.push(me)}onDone(me){this._originalOnDoneFns.push(me),this._onDoneFns.push(me)}onDestroy(me){this._onDestroyFns.push(me)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(me=>me()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(me=>me()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(me){this._position=this.totalTime?me*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(me){const at="start"==me?this._onStartFns:this._onDoneFns;at.forEach(rt=>rt()),at.length=0}}class en{constructor(me){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=me;let at=0,rt=0,ht=0;const St=this.players.length;0==St?queueMicrotask(()=>this._onFinish()):this.players.forEach(Mt=>{Mt.onDone(()=>{++at==St&&this._onFinish()}),Mt.onDestroy(()=>{++rt==St&&this._onDestroy()}),Mt.onStart(()=>{++ht==St&&this._onStart()})}),this.totalTime=this.players.reduce((Mt,cn)=>Math.max(Mt,cn.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(me=>me()),this._onDoneFns=[])}init(){this.players.forEach(me=>me.init())}onStart(me){this._onStartFns.push(me)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(me=>me()),this._onStartFns=[])}onDone(me){this._onDoneFns.push(me)}onDestroy(me){this._onDestroyFns.push(me)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(me=>me.play())}pause(){this.players.forEach(me=>me.pause())}restart(){this.players.forEach(me=>me.restart())}finish(){this._onFinish(),this.players.forEach(me=>me.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(me=>me.destroy()),this._onDestroyFns.forEach(me=>me()),this._onDestroyFns=[])}reset(){this.players.forEach(me=>me.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(me){const at=me*this.totalTime;this.players.forEach(rt=>{const ht=rt.totalTime?Math.min(1,at/rt.totalTime):1;rt.setPosition(ht)})}getPosition(){const me=this.players.reduce((at,rt)=>null===at||rt.totalTime>at.totalTime?rt:at,null);return null!=me?me.getPosition():0}beforeDestroy(){this.players.forEach(me=>{me.beforeDestroy&&me.beforeDestroy()})}triggerCallback(me){const at="start"==me?this._onStartFns:this._onDoneFns;at.forEach(rt=>rt()),at.length=0}}const vt="!"},6039:(pn,ct,N)=>{N.d(ct,{Pd:()=>on,Bu:()=>Be,FN:()=>kt,GX:()=>Ft,Q_:()=>zt,Z7:()=>dt,_G:()=>wt,w6:()=>Rn});var e=N(177),h=N(7705),ne=N(6860),Z=N(1413),De=N(8359),we=N(4412),Ie=N(7673),Oe=N(7336),Ne=N(8141),Me=N(152),Ge=N(5964),Ue=N(6354),yt=N(6697),_t=N(5245),bt=N(3294),ft=N(6977),mt=N(4085),en=N(2318),vt=N(4572),At=N(8793),me=N(1985),at=N(9172);const ht=new Set;let St,Mt=(()=>{class gt{constructor(Ee,Qe){this._platform=Ee,this._nonce=Qe,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):En}matchMedia(Ee){return(this._platform.WEBKIT||this._platform.BLINK)&&function cn(gt,Ke){if(!ht.has(gt))try{St||(St=document.createElement("style"),Ke&&(St.nonce=Ke),St.setAttribute("type","text/css"),document.head.appendChild(St)),St.sheet&&(St.sheet.insertRule(`@media ${gt} {body{ }}`,0),ht.add(gt))}catch(Ee){console.error(Ee)}}(Ee,this._nonce),this._matchMedia(Ee)}static{this.\u0275fac=function(Qe){return new(Qe||gt)(h.KVO(ne.OD),h.KVO(h.BIS,8))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();function En(gt){return{matches:"all"===gt||""===gt,media:gt,addListener:()=>{},removeListener:()=>{}}}let dn=(()=>{class gt{constructor(Ee,Qe){this._mediaMatcher=Ee,this._zone=Qe,this._queries=new Map,this._destroySubject=new Z.B}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ee){return Wt((0,mt.FG)(Ee)).some(Bt=>this._registerQuery(Bt).mql.matches)}observe(Ee){const Bt=Wt((0,mt.FG)(Ee)).map(nt=>this._registerQuery(nt).observable);let hn=(0,vt.z)(Bt);return hn=(0,At.x)(hn.pipe((0,yt.s)(1)),hn.pipe((0,_t.i)(1),(0,Me.B)(0))),hn.pipe((0,Ue.T)(nt=>{const He={matches:!1,breakpoints:{}};return nt.forEach(({matches:Ze,query:$t})=>{He.matches=He.matches||Ze,He.breakpoints[$t]=Ze}),He}))}_registerQuery(Ee){if(this._queries.has(Ee))return this._queries.get(Ee);const Qe=this._mediaMatcher.matchMedia(Ee),hn={observable:new me.c(nt=>{const He=Ze=>this._zone.run(()=>nt.next(Ze));return Qe.addListener(He),()=>{Qe.removeListener(He)}}).pipe((0,at.Z)(Qe),(0,Ue.T)(({matches:nt})=>({query:Ee,matches:nt})),(0,ft.Q)(this._destroySubject)),mql:Qe};return this._queries.set(Ee,hn),hn}static{this.\u0275fac=function(Qe){return new(Qe||gt)(h.KVO(Mt),h.KVO(h.SKi))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();function Wt(gt){return gt.map(Ke=>Ke.split(",")).reduce((Ke,Ee)=>Ke.concat(Ee)).map(Ke=>Ke.trim())}class L{constructor(Ke){this._items=Ke,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Z.B,this._typeaheadSubscription=De.yU.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=Ee=>Ee.disabled,this._pressedLetters=[],this.tabOut=new Z.B,this.change=new Z.B,Ke instanceof h.rOR&&(this._itemChangesSubscription=Ke.changes.subscribe(Ee=>{if(this._activeItem){const Bt=Ee.toArray().indexOf(this._activeItem);Bt>-1&&Bt!==this._activeItemIndex&&(this._activeItemIndex=Bt)}}))}skipPredicate(Ke){return this._skipPredicateFn=Ke,this}withWrap(Ke=!0){return this._wrap=Ke,this}withVerticalOrientation(Ke=!0){return this._vertical=Ke,this}withHorizontalOrientation(Ke){return this._horizontal=Ke,this}withAllowedModifierKeys(Ke){return this._allowedModifierKeys=Ke,this}withTypeAhead(Ke=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,Ne.M)(Ee=>this._pressedLetters.push(Ee)),(0,Me.B)(Ke),(0,Ge.p)(()=>this._pressedLetters.length>0),(0,Ue.T)(()=>this._pressedLetters.join(""))).subscribe(Ee=>{const Qe=this._getItemsArray();for(let Bt=1;Bt<Qe.length+1;Bt++){const hn=(this._activeItemIndex+Bt)%Qe.length,nt=Qe[hn];if(!this._skipPredicateFn(nt)&&0===nt.getLabel().toUpperCase().trim().indexOf(Ee)){this.setActiveItem(hn);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(Ke=!0){return this._homeAndEnd=Ke,this}withPageUpDown(Ke=!0,Ee=10){return this._pageUpAndDown={enabled:Ke,delta:Ee},this}setActiveItem(Ke){const Ee=this._activeItem;this.updateActiveItem(Ke),this._activeItem!==Ee&&this.change.next(this._activeItemIndex)}onKeydown(Ke){const Ee=Ke.keyCode,Bt=["altKey","ctrlKey","metaKey","shiftKey"].every(hn=>!Ke[hn]||this._allowedModifierKeys.indexOf(hn)>-1);switch(Ee){case Oe.wn:return void this.tabOut.next();case Oe.n6:if(this._vertical&&Bt){this.setNextItemActive();break}return;case Oe.i7:if(this._vertical&&Bt){this.setPreviousItemActive();break}return;case Oe.LE:if(this._horizontal&&Bt){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Oe.UQ:if(this._horizontal&&Bt){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case Oe.yZ:if(this._homeAndEnd&&Bt){this.setFirstItemActive();break}return;case Oe.Kp:if(this._homeAndEnd&&Bt){this.setLastItemActive();break}return;case Oe.w_:if(this._pageUpAndDown.enabled&&Bt){const hn=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(hn>0?hn:0,1);break}return;case Oe.dB:if(this._pageUpAndDown.enabled&&Bt){const hn=this._activeItemIndex+this._pageUpAndDown.delta,nt=this._getItemsArray().length;this._setActiveItemByIndex(hn<nt?hn:nt-1,-1);break}return;default:return void((Bt||(0,Oe.rp)(Ke,"shiftKey"))&&(Ke.key&&1===Ke.key.length?this._letterKeyStream.next(Ke.key.toLocaleUpperCase()):(Ee>=Oe.A&&Ee<=Oe.Z||Ee>=Oe.f2&&Ee<=Oe.bn)&&this._letterKeyStream.next(String.fromCharCode(Ee))))}this._pressedLetters=[],Ke.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Ke){const Ee=this._getItemsArray(),Qe="number"==typeof Ke?Ke:Ee.indexOf(Ke);this._activeItem=Ee[Qe]??null,this._activeItemIndex=Qe}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(Ke){this._wrap?this._setActiveInWrapMode(Ke):this._setActiveInDefaultMode(Ke)}_setActiveInWrapMode(Ke){const Ee=this._getItemsArray();for(let Qe=1;Qe<=Ee.length;Qe++){const Bt=(this._activeItemIndex+Ke*Qe+Ee.length)%Ee.length;if(!this._skipPredicateFn(Ee[Bt]))return void this.setActiveItem(Bt)}}_setActiveInDefaultMode(Ke){this._setActiveItemByIndex(this._activeItemIndex+Ke,Ke)}_setActiveItemByIndex(Ke,Ee){const Qe=this._getItemsArray();if(Qe[Ke]){for(;this._skipPredicateFn(Qe[Ke]);)if(!Qe[Ke+=Ee])return;this.setActiveItem(Ke)}}_getItemsArray(){return this._items instanceof h.rOR?this._items.toArray():this._items}}class Be extends L{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Ke){return this._origin=Ke,this}setActiveItem(Ke){super.setActiveItem(Ke),this.activeItem&&this.activeItem.focus(this._origin)}}let dt=(()=>{class gt{constructor(Ee){this._platform=Ee}isDisabled(Ee){return Ee.hasAttribute("disabled")}isVisible(Ee){return function bn(gt){return!!(gt.offsetWidth||gt.offsetHeight||"function"==typeof gt.getClientRects&&gt.getClientRects().length)}(Ee)&&"visible"===getComputedStyle(Ee).visibility}isTabbable(Ee){if(!this._platform.isBrowser)return!1;const Qe=function Vt(gt){try{return gt.frameElement}catch{return null}}(function Ve(gt){return gt.ownerDocument&&gt.ownerDocument.defaultView||window}(Ee));if(Qe&&(-1===ke(Qe)||!this.isVisible(Qe)))return!1;let Bt=Ee.nodeName.toLowerCase(),hn=ke(Ee);return Ee.hasAttribute("contenteditable")?-1!==hn:!("iframe"===Bt||"object"===Bt||this._platform.WEBKIT&&this._platform.IOS&&!function re(gt){let Ke=gt.nodeName.toLowerCase(),Ee="input"===Ke&&gt.type;return"text"===Ee||"password"===Ee||"select"===Ke||"textarea"===Ke}(Ee))&&("audio"===Bt?!!Ee.hasAttribute("controls")&&-1!==hn:"video"===Bt?-1!==hn&&(null!==hn||this._platform.FIREFOX||Ee.hasAttribute("controls")):Ee.tabIndex>=0)}isFocusable(Ee,Qe){return function xe(gt){return!function nn(gt){return function oi(gt){return"input"==gt.nodeName.toLowerCase()}(gt)&&"hidden"==gt.type}(gt)&&(function jn(gt){let Ke=gt.nodeName.toLowerCase();return"input"===Ke||"select"===Ke||"button"===Ke||"textarea"===Ke}(gt)||function Vn(gt){return function Ci(gt){return"a"==gt.nodeName.toLowerCase()}(gt)&&gt.hasAttribute("href")}(gt)||gt.hasAttribute("contenteditable")||xt(gt))}(Ee)&&!this.isDisabled(Ee)&&(Qe?.ignoreVisibility||this.isVisible(Ee))}static{this.\u0275fac=function(Qe){return new(Qe||gt)(h.KVO(ne.OD))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();function xt(gt){if(!gt.hasAttribute("tabindex")||void 0===gt.tabIndex)return!1;let Ke=gt.getAttribute("tabindex");return!(!Ke||isNaN(parseInt(Ke,10)))}function ke(gt){if(!xt(gt))return null;const Ke=parseInt(gt.getAttribute("tabindex")||"",10);return isNaN(Ke)?-1:Ke}class ut{get enabled(){return this._enabled}set enabled(Ke){this._enabled=Ke,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ke,this._startAnchor),this._toggleAnchorTabIndex(Ke,this._endAnchor))}constructor(Ke,Ee,Qe,Bt,hn=!1){this._element=Ke,this._checker=Ee,this._ngZone=Qe,this._document=Bt,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,hn||this.attachAnchors()}destroy(){const Ke=this._startAnchor,Ee=this._endAnchor;Ke&&(Ke.removeEventListener("focus",this.startAnchorListener),Ke.remove()),Ee&&(Ee.removeEventListener("focus",this.endAnchorListener),Ee.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Ke){return new Promise(Ee=>{this._executeOnStable(()=>Ee(this.focusInitialElement(Ke)))})}focusFirstTabbableElementWhenReady(Ke){return new Promise(Ee=>{this._executeOnStable(()=>Ee(this.focusFirstTabbableElement(Ke)))})}focusLastTabbableElementWhenReady(Ke){return new Promise(Ee=>{this._executeOnStable(()=>Ee(this.focusLastTabbableElement(Ke)))})}_getRegionBoundary(Ke){const Ee=this._element.querySelectorAll(`[cdk-focus-region-${Ke}], [cdkFocusRegion${Ke}], [cdk-focus-${Ke}]`);return"start"==Ke?Ee.length?Ee[0]:this._getFirstTabbableElement(this._element):Ee.length?Ee[Ee.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Ke){const Ee=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Ee){if(!this._checker.isFocusable(Ee)){const Qe=this._getFirstTabbableElement(Ee);return Qe?.focus(Ke),!!Qe}return Ee.focus(Ke),!0}return this.focusFirstTabbableElement(Ke)}focusFirstTabbableElement(Ke){const Ee=this._getRegionBoundary("start");return Ee&&Ee.focus(Ke),!!Ee}focusLastTabbableElement(Ke){const Ee=this._getRegionBoundary("end");return Ee&&Ee.focus(Ke),!!Ee}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Ke){if(this._checker.isFocusable(Ke)&&this._checker.isTabbable(Ke))return Ke;const Ee=Ke.children;for(let Qe=0;Qe<Ee.length;Qe++){const Bt=Ee[Qe].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Ee[Qe]):null;if(Bt)return Bt}return null}_getLastTabbableElement(Ke){if(this._checker.isFocusable(Ke)&&this._checker.isTabbable(Ke))return Ke;const Ee=Ke.children;for(let Qe=Ee.length-1;Qe>=0;Qe--){const Bt=Ee[Qe].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Ee[Qe]):null;if(Bt)return Bt}return null}_createAnchor(){const Ke=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Ke),Ke.classList.add("cdk-visually-hidden"),Ke.classList.add("cdk-focus-trap-anchor"),Ke.setAttribute("aria-hidden","true"),Ke}_toggleAnchorTabIndex(Ke,Ee){Ke?Ee.setAttribute("tabindex","0"):Ee.removeAttribute("tabindex")}toggleAnchors(Ke){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Ke,this._startAnchor),this._toggleAnchorTabIndex(Ke,this._endAnchor))}_executeOnStable(Ke){this._ngZone.isStable?Ke():this._ngZone.onStable.pipe((0,yt.s)(1)).subscribe(Ke)}}let Ft=(()=>{class gt{constructor(Ee,Qe,Bt){this._checker=Ee,this._ngZone=Qe,this._document=Bt}create(Ee,Qe=!1){return new ut(Ee,this._checker,this._ngZone,this._document,Qe)}static{this.\u0275fac=function(Qe){return new(Qe||gt)(h.KVO(dt),h.KVO(h.SKi),h.KVO(e.qQ))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();function wt(gt){return 0===gt.buttons||0===gt.detail}function Rn(gt){const Ke=gt.touches&&gt.touches[0]||gt.changedTouches&&gt.changedTouches[0];return!(!Ke||-1!==Ke.identifier||null!=Ke.radiusX&&1!==Ke.radiusX||null!=Ke.radiusY&&1!==Ke.radiusY)}const yn=new h.nKC("cdk-input-modality-detector-options"),Hn={ignoreKeys:[Oe.A$,Oe.W3,Oe.eg,Oe.Ge,Oe.FX]},ai=(0,ne.BQ)({passive:!0,capture:!0});let zi=(()=>{class gt{get mostRecentModality(){return this._modality.value}constructor(Ee,Qe,Bt,hn){this._platform=Ee,this._mostRecentTarget=null,this._modality=new we.t(null),this._lastTouchMs=0,this._onKeydown=nt=>{this._options?.ignoreKeys?.some(He=>He===nt.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,ne.Fb)(nt))},this._onMousedown=nt=>{Date.now()-this._lastTouchMs<650||(this._modality.next(wt(nt)?"keyboard":"mouse"),this._mostRecentTarget=(0,ne.Fb)(nt))},this._onTouchstart=nt=>{Rn(nt)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,ne.Fb)(nt))},this._options={...Hn,...hn},this.modalityDetected=this._modality.pipe((0,_t.i)(1)),this.modalityChanged=this.modalityDetected.pipe((0,bt.F)()),Ee.isBrowser&&Qe.runOutsideAngular(()=>{Bt.addEventListener("keydown",this._onKeydown,ai),Bt.addEventListener("mousedown",this._onMousedown,ai),Bt.addEventListener("touchstart",this._onTouchstart,ai)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ai),document.removeEventListener("mousedown",this._onMousedown,ai),document.removeEventListener("touchstart",this._onTouchstart,ai))}static{this.\u0275fac=function(Qe){return new(Qe||gt)(h.KVO(ne.OD),h.KVO(h.SKi),h.KVO(e.qQ),h.KVO(yn,8))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();const io=new h.nKC("cdk-focus-monitor-default-options"),an=(0,ne.BQ)({passive:!0,capture:!0});let kt=(()=>{class gt{constructor(Ee,Qe,Bt,hn,nt){this._ngZone=Ee,this._platform=Qe,this._inputModalityDetector=Bt,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Z.B,this._rootNodeFocusAndBlurListener=He=>{for(let $t=(0,ne.Fb)(He);$t;$t=$t.parentElement)"focus"===He.type?this._onFocus(He,$t):this._onBlur(He,$t)},this._document=hn,this._detectionMode=nt?.detectionMode||0}monitor(Ee,Qe=!1){const Bt=(0,mt.i8)(Ee);if(!this._platform.isBrowser||1!==Bt.nodeType)return(0,Ie.of)();const hn=(0,ne.KT)(Bt)||this._getDocument(),nt=this._elementInfo.get(Bt);if(nt)return Qe&&(nt.checkChildren=!0),nt.subject;const He={checkChildren:Qe,subject:new Z.B,rootNode:hn};return this._elementInfo.set(Bt,He),this._registerGlobalListeners(He),He.subject}stopMonitoring(Ee){const Qe=(0,mt.i8)(Ee),Bt=this._elementInfo.get(Qe);Bt&&(Bt.subject.complete(),this._setClasses(Qe),this._elementInfo.delete(Qe),this._removeGlobalListeners(Bt))}focusVia(Ee,Qe,Bt){const hn=(0,mt.i8)(Ee);hn===this._getDocument().activeElement?this._getClosestElementsInfo(hn).forEach(([He,Ze])=>this._originChanged(He,Qe,Ze)):(this._setOrigin(Qe),"function"==typeof hn.focus&&hn.focus(Bt))}ngOnDestroy(){this._elementInfo.forEach((Ee,Qe)=>this.stopMonitoring(Qe))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(Ee){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Ee)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:Ee&&this._isLastInteractionFromInputLabel(Ee)?"mouse":"program"}_shouldBeAttributedToTouch(Ee){return 1===this._detectionMode||!!Ee?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(Ee,Qe){Ee.classList.toggle("cdk-focused",!!Qe),Ee.classList.toggle("cdk-touch-focused","touch"===Qe),Ee.classList.toggle("cdk-keyboard-focused","keyboard"===Qe),Ee.classList.toggle("cdk-mouse-focused","mouse"===Qe),Ee.classList.toggle("cdk-program-focused","program"===Qe)}_setOrigin(Ee,Qe=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Ee,this._originFromTouchInteraction="touch"===Ee&&Qe,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Ee,Qe){const Bt=this._elementInfo.get(Qe),hn=(0,ne.Fb)(Ee);!Bt||!Bt.checkChildren&&Qe!==hn||this._originChanged(Qe,this._getFocusOrigin(hn),Bt)}_onBlur(Ee,Qe){const Bt=this._elementInfo.get(Qe);!Bt||Bt.checkChildren&&Ee.relatedTarget instanceof Node&&Qe.contains(Ee.relatedTarget)||(this._setClasses(Qe),this._emitOrigin(Bt,null))}_emitOrigin(Ee,Qe){Ee.subject.observers.length&&this._ngZone.run(()=>Ee.subject.next(Qe))}_registerGlobalListeners(Ee){if(!this._platform.isBrowser)return;const Qe=Ee.rootNode,Bt=this._rootNodeFocusListenerCount.get(Qe)||0;Bt||this._ngZone.runOutsideAngular(()=>{Qe.addEventListener("focus",this._rootNodeFocusAndBlurListener,an),Qe.addEventListener("blur",this._rootNodeFocusAndBlurListener,an)}),this._rootNodeFocusListenerCount.set(Qe,Bt+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ft.Q)(this._stopInputModalityDetector)).subscribe(hn=>{this._setOrigin(hn,!0)}))}_removeGlobalListeners(Ee){const Qe=Ee.rootNode;if(this._rootNodeFocusListenerCount.has(Qe)){const Bt=this._rootNodeFocusListenerCount.get(Qe);Bt>1?this._rootNodeFocusListenerCount.set(Qe,Bt-1):(Qe.removeEventListener("focus",this._rootNodeFocusAndBlurListener,an),Qe.removeEventListener("blur",this._rootNodeFocusAndBlurListener,an),this._rootNodeFocusListenerCount.delete(Qe))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Ee,Qe,Bt){this._setClasses(Ee,Qe),this._emitOrigin(Bt,Qe),this._lastFocusOrigin=Qe}_getClosestElementsInfo(Ee){const Qe=[];return this._elementInfo.forEach((Bt,hn)=>{(hn===Ee||Bt.checkChildren&&hn.contains(Ee))&&Qe.push([hn,Bt])}),Qe}_isLastInteractionFromInputLabel(Ee){const{_mostRecentTarget:Qe,mostRecentModality:Bt}=this._inputModalityDetector;if("mouse"!==Bt||!Qe||Qe===Ee||"INPUT"!==Ee.nodeName&&"TEXTAREA"!==Ee.nodeName||Ee.disabled)return!1;const hn=Ee.labels;if(hn)for(let nt=0;nt<hn.length;nt++)if(hn[nt].contains(Qe))return!0;return!1}static{this.\u0275fac=function(Qe){return new(Qe||gt)(h.KVO(h.SKi),h.KVO(ne.OD),h.KVO(zi),h.KVO(e.qQ,8),h.KVO(io,8))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})();const Pe="cdk-high-contrast-black-on-white",Fe="cdk-high-contrast-white-on-black",Xe="cdk-high-contrast-active";let zt=(()=>{class gt{constructor(Ee,Qe){this._platform=Ee,this._document=Qe,this._breakpointSubscription=(0,h.WQX)(dn).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Ee=this._document.createElement("div");Ee.style.backgroundColor="rgb(1,2,3)",Ee.style.position="absolute",this._document.body.appendChild(Ee);const Qe=this._document.defaultView||window,Bt=Qe&&Qe.getComputedStyle?Qe.getComputedStyle(Ee):null,hn=(Bt&&Bt.backgroundColor||"").replace(/ /g,"");switch(Ee.remove(),hn){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const Ee=this._document.body.classList;Ee.remove(Xe,Pe,Fe),this._hasCheckedHighContrastMode=!0;const Qe=this.getHighContrastMode();1===Qe?Ee.add(Xe,Pe):2===Qe&&Ee.add(Xe,Fe)}}static{this.\u0275fac=function(Qe){return new(Qe||gt)(h.KVO(ne.OD),h.KVO(e.qQ))}}static{this.\u0275prov=h.jDH({token:gt,factory:gt.\u0275fac,providedIn:"root"})}}return gt})(),on=(()=>{class gt{constructor(Ee){Ee._applyBodyHighContrastModeCssClasses()}static{this.\u0275fac=function(Qe){return new(Qe||gt)(h.KVO(zt))}}static{this.\u0275mod=h.$C({type:gt})}static{this.\u0275inj=h.G2t({imports:[en.w5]})}}return gt})()},8203:(pn,ct,N)=>{N.d(ct,{dS:()=>Ie,jI:()=>Ne});var e=N(7705),h=N(177);const ne=new e.nKC("cdk-dir-doc",{providedIn:"root",factory:function Z(){return(0,e.WQX)(h.qQ)}}),De=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ie=(()=>{class Me{constructor(Ue){this.value="ltr",this.change=new e.bkB,Ue&&(this.value=function we(Me){const Ge=Me?.toLowerCase()||"";return"auto"===Ge&&typeof navigator<"u"&&navigator?.language?De.test(navigator.language)?"rtl":"ltr":"rtl"===Ge?"rtl":"ltr"}((Ue.body?Ue.body.dir:null)||(Ue.documentElement?Ue.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static{this.\u0275fac=function(yt){return new(yt||Me)(e.KVO(ne,8))}}static{this.\u0275prov=e.jDH({token:Me,factory:Me.\u0275fac,providedIn:"root"})}}return Me})(),Ne=(()=>{class Me{static{this.\u0275fac=function(yt){return new(yt||Me)}}static{this.\u0275mod=e.$C({type:Me})}static{this.\u0275inj=e.G2t({})}}return Me})()},4085:(pn,ct,N)=>{N.d(ct,{FG:()=>De,OE:()=>ne,a1:()=>we,he:()=>h,i8:()=>Ie,o1:()=>Z});var e=N(7705);function h(Ne){return null!=Ne&&"false"!=`${Ne}`}function ne(Ne,Me=0){return Z(Ne)?Number(Ne):Me}function Z(Ne){return!isNaN(parseFloat(Ne))&&!isNaN(Number(Ne))}function De(Ne){return Array.isArray(Ne)?Ne:[Ne]}function we(Ne){return null==Ne?"":"string"==typeof Ne?Ne:`${Ne}px`}function Ie(Ne){return Ne instanceof e.aKT?Ne.nativeElement:Ne}},7336:(pn,ct,N)=>{N.d(ct,{A:()=>ce,A$:()=>Oe,FX:()=>we,Fm:()=>De,Ge:()=>qt,Kp:()=>bt,LE:()=>vt,UQ:()=>mt,W3:()=>Ie,Z:()=>Qt,_f:()=>Ge,bn:()=>Nt,dB:()=>_t,eg:()=>An,f2:()=>St,i7:()=>en,n6:()=>At,rp:()=>zn,t6:()=>Ue,w_:()=>yt,wn:()=>ne,yZ:()=>ft});const ne=9,De=13,we=16,Ie=17,Oe=18,Ge=27,Ue=32,yt=33,_t=34,bt=35,ft=36,mt=37,en=38,vt=39,At=40,St=48,Nt=57,ce=65,Qt=90,qt=91,An=224;function zn(hi,...Kn){return Kn.length?Kn.some(li=>hi[li]):hi.altKey||hi.shiftKey||hi.ctrlKey||hi.metaKey}},2318:(pn,ct,N)=>{N.d(ct,{w5:()=>De});var e=N(7705);let h=(()=>{class we{create(Oe){return typeof MutationObserver>"u"?null:new MutationObserver(Oe)}static{this.\u0275fac=function(Ne){return new(Ne||we)}}static{this.\u0275prov=e.jDH({token:we,factory:we.\u0275fac,providedIn:"root"})}}return we})(),De=(()=>{class we{static{this.\u0275fac=function(Ne){return new(Ne||we)}}static{this.\u0275mod=e.$C({type:we})}static{this.\u0275inj=e.G2t({providers:[h]})}}return we})()},7987:(pn,ct,N)=>{N.d(ct,{Sf:()=>be,hJ:()=>pt,rR:()=>rt,yY:()=>Se,z_:()=>oi});var e=N(7333),h=N(177),ne=N(7705),Z=N(4085),De=N(6860),we=N(5964),Ie=N(6697),Oe=N(6977),Ne=N(8203),Me=N(6939),Ge=N(1413),Ue=N(8359),yt=N(7786);const _t=(0,De.CZ)();class bt{constructor(ke,re){this._viewportRuler=ke,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=re}attach(){}enable(){if(this._canBeEnabled()){const ke=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=ke.style.left||"",this._previousHTMLStyles.top=ke.style.top||"",ke.style.left=(0,Z.a1)(-this._previousScrollPosition.left),ke.style.top=(0,Z.a1)(-this._previousScrollPosition.top),ke.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const ke=this._document.documentElement,xe=ke.style,Ve=this._document.body.style,ut=xe.scrollBehavior||"",Ft=Ve.scrollBehavior||"";this._isEnabled=!1,xe.left=this._previousHTMLStyles.left,xe.top=this._previousHTMLStyles.top,ke.classList.remove("cdk-global-scrollblock"),_t&&(xe.scrollBehavior=Ve.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),_t&&(xe.scrollBehavior=ut,Ve.scrollBehavior=Ft)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const re=this._document.body,xe=this._viewportRuler.getViewportSize();return re.scrollHeight>xe.height||re.scrollWidth>xe.width}}class mt{constructor(ke,re,xe,Ve){this._scrollDispatcher=ke,this._ngZone=re,this._viewportRuler=xe,this._config=Ve,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(ke){this._overlayRef=ke}enable(){if(this._scrollSubscription)return;const ke=this._scrollDispatcher.scrolled(0).pipe((0,we.p)(re=>!re||!this._overlayRef.overlayElement.contains(re.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=ke.subscribe(()=>{const re=this._viewportRuler.getViewportScrollPosition().top;Math.abs(re-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=ke.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class en{enable(){}disable(){}attach(){}}function vt(xt,ke){return ke.some(re=>xt.bottom<re.top||xt.top>re.bottom||xt.right<re.left||xt.left>re.right)}function At(xt,ke){return ke.some(re=>xt.top<re.top||xt.bottom>re.bottom||xt.left<re.left||xt.right>re.right)}class me{constructor(ke,re,xe,Ve){this._scrollDispatcher=ke,this._viewportRuler=re,this._ngZone=xe,this._config=Ve,this._scrollSubscription=null}attach(ke){this._overlayRef=ke}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const re=this._overlayRef.overlayElement.getBoundingClientRect(),{width:xe,height:Ve}=this._viewportRuler.getViewportSize();vt(re,[{width:xe,height:Ve,bottom:Ve,right:xe,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let at=(()=>{class xt{constructor(re,xe,Ve,ut){this._scrollDispatcher=re,this._viewportRuler=xe,this._ngZone=Ve,this.noop=()=>new en,this.close=Ft=>new mt(this._scrollDispatcher,this._ngZone,this._viewportRuler,Ft),this.block=()=>new bt(this._viewportRuler,this._document),this.reposition=Ft=>new me(this._scrollDispatcher,this._viewportRuler,this._ngZone,Ft),this._document=ut}static{this.\u0275fac=function(xe){return new(xe||xt)(ne.KVO(e.R),ne.KVO(e.Xj),ne.KVO(ne.SKi),ne.KVO(h.qQ))}}static{this.\u0275prov=ne.jDH({token:xt,factory:xt.\u0275fac,providedIn:"root"})}}return xt})();class rt{constructor(ke){if(this.scrollStrategy=new en,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,ke){const re=Object.keys(ke);for(const xe of re)void 0!==ke[xe]&&(this[xe]=ke[xe])}}}class Mt{constructor(ke,re){this.connectionPair=ke,this.scrollableViewProperties=re}}let dn=(()=>{class xt{constructor(re){this._attachedOverlays=[],this._document=re}ngOnDestroy(){this.detach()}add(re){this.remove(re),this._attachedOverlays.push(re)}remove(re){const xe=this._attachedOverlays.indexOf(re);xe>-1&&this._attachedOverlays.splice(xe,1),0===this._attachedOverlays.length&&this.detach()}static{this.\u0275fac=function(xe){return new(xe||xt)(ne.KVO(h.qQ))}}static{this.\u0275prov=ne.jDH({token:xt,factory:xt.\u0275fac,providedIn:"root"})}}return xt})(),Wt=(()=>{class xt extends dn{constructor(re,xe){super(re),this._ngZone=xe,this._keydownListener=Ve=>{const ut=this._attachedOverlays;for(let Ft=ut.length-1;Ft>-1;Ft--)if(ut[Ft]._keydownEvents.observers.length>0){const sn=ut[Ft]._keydownEvents;this._ngZone?this._ngZone.run(()=>sn.next(Ve)):sn.next(Ve);break}}}add(re){super.add(re),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static{this.\u0275fac=function(xe){return new(xe||xt)(ne.KVO(h.qQ),ne.KVO(ne.SKi,8))}}static{this.\u0275prov=ne.jDH({token:xt,factory:xt.\u0275fac,providedIn:"root"})}}return xt})(),ze=(()=>{class xt extends dn{constructor(re,xe,Ve){super(re),this._platform=xe,this._ngZone=Ve,this._cursorStyleIsSet=!1,this._pointerDownListener=ut=>{this._pointerDownEventTarget=(0,De.Fb)(ut)},this._clickListener=ut=>{const Ft=(0,De.Fb)(ut),sn="click"===ut.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:Ft;this._pointerDownEventTarget=null;const Ln=this._attachedOverlays.slice();for(let Qt=Ln.length-1;Qt>-1;Qt--){const qt=Ln[Qt];if(qt._outsidePointerEvents.observers.length<1||!qt.hasAttached())continue;if(qt.overlayElement.contains(Ft)||qt.overlayElement.contains(sn))break;const st=qt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>st.next(ut)):st.next(ut)}}}add(re){if(super.add(re),!this._isAttached){const xe=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(xe)):this._addEventListeners(xe),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=xe.style.cursor,xe.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const re=this._document.body;re.removeEventListener("pointerdown",this._pointerDownListener,!0),re.removeEventListener("click",this._clickListener,!0),re.removeEventListener("auxclick",this._clickListener,!0),re.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(re.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(re){re.addEventListener("pointerdown",this._pointerDownListener,!0),re.addEventListener("click",this._clickListener,!0),re.addEventListener("auxclick",this._clickListener,!0),re.addEventListener("contextmenu",this._clickListener,!0)}static{this.\u0275fac=function(xe){return new(xe||xt)(ne.KVO(h.qQ),ne.KVO(De.OD),ne.KVO(ne.SKi,8))}}static{this.\u0275prov=ne.jDH({token:xt,factory:xt.\u0275fac,providedIn:"root"})}}return xt})(),be=(()=>{class xt{constructor(re,xe){this._platform=xe,this._document=re}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const re="cdk-overlay-container";if(this._platform.isBrowser||(0,De.v8)()){const Ve=this._document.querySelectorAll(`.${re}[platform="server"], .${re}[platform="test"]`);for(let ut=0;ut<Ve.length;ut++)Ve[ut].remove()}const xe=this._document.createElement("div");xe.classList.add(re),(0,De.v8)()?xe.setAttribute("platform","test"):this._platform.isBrowser||xe.setAttribute("platform","server"),this._document.body.appendChild(xe),this._containerElement=xe}static{this.\u0275fac=function(xe){return new(xe||xt)(ne.KVO(h.qQ),ne.KVO(De.OD))}}static{this.\u0275prov=ne.jDH({token:xt,factory:xt.\u0275fac,providedIn:"root"})}}return xt})();class Se{constructor(ke,re,xe,Ve,ut,Ft,sn,Ln,Qt,qt=!1){this._portalOutlet=ke,this._host=re,this._pane=xe,this._config=Ve,this._ngZone=ut,this._keyboardDispatcher=Ft,this._document=sn,this._location=Ln,this._outsideClickDispatcher=Qt,this._animationsDisabled=qt,this._backdropElement=null,this._backdropClick=new Ge.B,this._attachments=new Ge.B,this._detachments=new Ge.B,this._locationChanges=Ue.yU.EMPTY,this._backdropClickHandler=st=>this._backdropClick.next(st),this._backdropTransitionendHandler=st=>{this._disposeBackdrop(st.target)},this._keydownEvents=new Ge.B,this._outsidePointerEvents=new Ge.B,Ve.scrollStrategy&&(this._scrollStrategy=Ve.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Ve.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(ke){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const re=this._portalOutlet.attach(ke);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,Ie.s)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof re?.onDestroy&&re.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),re}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const ke=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),ke}dispose(){const ke=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,ke&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(ke){ke!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=ke,this.hasAttached()&&(ke.attach(this),this.updatePosition()))}updateSize(ke){this._config={...this._config,...ke},this._updateElementSize()}setDirection(ke){this._config={...this._config,direction:ke},this._updateElementDirection()}addPanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!0)}removePanelClass(ke){this._pane&&this._toggleClasses(this._pane,ke,!1)}getDirection(){const ke=this._config.direction;return ke?"string"==typeof ke?ke:ke.value:"ltr"}updateScrollStrategy(ke){ke!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=ke,this.hasAttached()&&(ke.attach(this),ke.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const ke=this._pane.style;ke.width=(0,Z.a1)(this._config.width),ke.height=(0,Z.a1)(this._config.height),ke.minWidth=(0,Z.a1)(this._config.minWidth),ke.minHeight=(0,Z.a1)(this._config.minHeight),ke.maxWidth=(0,Z.a1)(this._config.maxWidth),ke.maxHeight=(0,Z.a1)(this._config.maxHeight)}_togglePointerEvents(ke){this._pane.style.pointerEvents=ke?"":"none"}_attachBackdrop(){const ke="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(ke)})}):this._backdropElement.classList.add(ke)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const ke=this._backdropElement;if(ke){if(this._animationsDisabled)return void this._disposeBackdrop(ke);ke.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{ke.addEventListener("transitionend",this._backdropTransitionendHandler)}),ke.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(ke)},500))}}_toggleClasses(ke,re,xe){const Ve=(0,Z.FG)(re||[]).filter(ut=>!!ut);Ve.length&&(xe?ke.classList.add(...Ve):ke.classList.remove(...Ve))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const ke=this._ngZone.onStable.pipe((0,Oe.Q)((0,yt.h)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),ke.unsubscribe())})})}_disposeScrollStrategy(){const ke=this._scrollStrategy;ke&&(ke.disable(),ke.detach&&ke.detach())}_disposeBackdrop(ke){ke&&(ke.removeEventListener("click",this._backdropClickHandler),ke.removeEventListener("transitionend",this._backdropTransitionendHandler),ke.remove(),this._backdropElement===ke&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const Nt="cdk-overlay-connected-position-bounding-box",K=/([A-Za-z%]+)$/;class ge{get positions(){return this._preferredPositions}constructor(ke,re,xe,Ve,ut){this._viewportRuler=re,this._document=xe,this._platform=Ve,this._overlayContainer=ut,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Ge.B,this._resizeSubscription=Ue.yU.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(ke)}attach(ke){this._validatePositions(),ke.hostElement.classList.add(Nt),this._overlayRef=ke,this._boundingBox=ke.hostElement,this._pane=ke.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const ke=this._originRect,re=this._overlayRect,xe=this._viewportRect,Ve=this._containerRect,ut=[];let Ft;for(let sn of this._preferredPositions){let Ln=this._getOriginPoint(ke,Ve,sn),Qt=this._getOverlayPoint(Ln,re,sn),qt=this._getOverlayFit(Qt,re,xe,sn);if(qt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(sn,Ln);this._canFitWithFlexibleDimensions(qt,Qt,xe)?ut.push({position:sn,origin:Ln,overlayRect:re,boundingBoxRect:this._calculateBoundingBoxRect(Ln,sn)}):(!Ft||Ft.overlayFit.visibleArea<qt.visibleArea)&&(Ft={overlayFit:qt,overlayPoint:Qt,originPoint:Ln,position:sn,overlayRect:re})}if(ut.length){let sn=null,Ln=-1;for(const Qt of ut){const qt=Qt.boundingBoxRect.width*Qt.boundingBoxRect.height*(Qt.position.weight||1);qt>Ln&&(Ln=qt,sn=Qt)}return this._isPushed=!1,void this._applyPosition(sn.position,sn.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(Ft.position,Ft.originPoint);this._applyPosition(Ft.position,Ft.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&je(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(Nt),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const ke=this._lastPosition;if(ke){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const re=this._getOriginPoint(this._originRect,this._containerRect,ke);this._applyPosition(ke,re)}else this.apply()}withScrollableContainers(ke){return this._scrollables=ke,this}withPositions(ke){return this._preferredPositions=ke,-1===ke.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(ke){return this._viewportMargin=ke,this}withFlexibleDimensions(ke=!0){return this._hasFlexibleDimensions=ke,this}withGrowAfterOpen(ke=!0){return this._growAfterOpen=ke,this}withPush(ke=!0){return this._canPush=ke,this}withLockedPosition(ke=!0){return this._positionLocked=ke,this}setOrigin(ke){return this._origin=ke,this}withDefaultOffsetX(ke){return this._offsetX=ke,this}withDefaultOffsetY(ke){return this._offsetY=ke,this}withTransformOriginOn(ke){return this._transformOriginSelector=ke,this}_getOriginPoint(ke,re,xe){let Ve,ut;if("center"==xe.originX)Ve=ke.left+ke.width/2;else{const Ft=this._isRtl()?ke.right:ke.left,sn=this._isRtl()?ke.left:ke.right;Ve="start"==xe.originX?Ft:sn}return re.left<0&&(Ve-=re.left),ut="center"==xe.originY?ke.top+ke.height/2:"top"==xe.originY?ke.top:ke.bottom,re.top<0&&(ut-=re.top),{x:Ve,y:ut}}_getOverlayPoint(ke,re,xe){let Ve,ut;return Ve="center"==xe.overlayX?-re.width/2:"start"===xe.overlayX?this._isRtl()?-re.width:0:this._isRtl()?0:-re.width,ut="center"==xe.overlayY?-re.height/2:"top"==xe.overlayY?0:-re.height,{x:ke.x+Ve,y:ke.y+ut}}_getOverlayFit(ke,re,xe,Ve){const ut=ce(re);let{x:Ft,y:sn}=ke,Ln=this._getOffset(Ve,"x"),Qt=this._getOffset(Ve,"y");Ln&&(Ft+=Ln),Qt&&(sn+=Qt);let Dt=0-sn,wt=sn+ut.height-xe.height,Rn=this._subtractOverflows(ut.width,0-Ft,Ft+ut.width-xe.width),yn=this._subtractOverflows(ut.height,Dt,wt),Hn=Rn*yn;return{visibleArea:Hn,isCompletelyWithinViewport:ut.width*ut.height===Hn,fitsInViewportVertically:yn===ut.height,fitsInViewportHorizontally:Rn==ut.width}}_canFitWithFlexibleDimensions(ke,re,xe){if(this._hasFlexibleDimensions){const Ve=xe.bottom-re.y,ut=xe.right-re.x,Ft=le(this._overlayRef.getConfig().minHeight),sn=le(this._overlayRef.getConfig().minWidth);return(ke.fitsInViewportVertically||null!=Ft&&Ft<=Ve)&&(ke.fitsInViewportHorizontally||null!=sn&&sn<=ut)}return!1}_pushOverlayOnScreen(ke,re,xe){if(this._previousPushAmount&&this._positionLocked)return{x:ke.x+this._previousPushAmount.x,y:ke.y+this._previousPushAmount.y};const Ve=ce(re),ut=this._viewportRect,Ft=Math.max(ke.x+Ve.width-ut.width,0),sn=Math.max(ke.y+Ve.height-ut.height,0),Ln=Math.max(ut.top-xe.top-ke.y,0),Qt=Math.max(ut.left-xe.left-ke.x,0);let qt=0,st=0;return qt=Ve.width<=ut.width?Qt||-Ft:ke.x<this._viewportMargin?ut.left-xe.left-ke.x:0,st=Ve.height<=ut.height?Ln||-sn:ke.y<this._viewportMargin?ut.top-xe.top-ke.y:0,this._previousPushAmount={x:qt,y:st},{x:ke.x+qt,y:ke.y+st}}_applyPosition(ke,re){if(this._setTransformOrigin(ke),this._setOverlayElementStyles(re,ke),this._setBoundingBoxStyles(re,ke),ke.panelClass&&this._addPanelClasses(ke.panelClass),this._lastPosition=ke,this._positionChanges.observers.length){const xe=this._getScrollVisibility(),Ve=new Mt(ke,xe);this._positionChanges.next(Ve)}this._isInitialRender=!1}_setTransformOrigin(ke){if(!this._transformOriginSelector)return;const re=this._boundingBox.querySelectorAll(this._transformOriginSelector);let xe,Ve=ke.overlayY;xe="center"===ke.overlayX?"center":this._isRtl()?"start"===ke.overlayX?"right":"left":"start"===ke.overlayX?"left":"right";for(let ut=0;ut<re.length;ut++)re[ut].style.transformOrigin=`${xe} ${Ve}`}_calculateBoundingBoxRect(ke,re){const xe=this._viewportRect,Ve=this._isRtl();let ut,Ft,sn,qt,st,Dt;if("top"===re.overlayY)Ft=ke.y,ut=xe.height-Ft+this._viewportMargin;else if("bottom"===re.overlayY)sn=xe.height-ke.y+2*this._viewportMargin,ut=xe.height-sn+this._viewportMargin;else{const wt=Math.min(xe.bottom-ke.y+xe.top,ke.y),Rn=this._lastBoundingBoxSize.height;ut=2*wt,Ft=ke.y-wt,ut>Rn&&!this._isInitialRender&&!this._growAfterOpen&&(Ft=ke.y-Rn/2)}if("end"===re.overlayX&&!Ve||"start"===re.overlayX&&Ve)Dt=xe.width-ke.x+this._viewportMargin,qt=ke.x-this._viewportMargin;else if("start"===re.overlayX&&!Ve||"end"===re.overlayX&&Ve)st=ke.x,qt=xe.right-ke.x;else{const wt=Math.min(xe.right-ke.x+xe.left,ke.x),Rn=this._lastBoundingBoxSize.width;qt=2*wt,st=ke.x-wt,qt>Rn&&!this._isInitialRender&&!this._growAfterOpen&&(st=ke.x-Rn/2)}return{top:Ft,left:st,bottom:sn,right:Dt,width:qt,height:ut}}_setBoundingBoxStyles(ke,re){const xe=this._calculateBoundingBoxRect(ke,re);!this._isInitialRender&&!this._growAfterOpen&&(xe.height=Math.min(xe.height,this._lastBoundingBoxSize.height),xe.width=Math.min(xe.width,this._lastBoundingBoxSize.width));const Ve={};if(this._hasExactPosition())Ve.top=Ve.left="0",Ve.bottom=Ve.right=Ve.maxHeight=Ve.maxWidth="",Ve.width=Ve.height="100%";else{const ut=this._overlayRef.getConfig().maxHeight,Ft=this._overlayRef.getConfig().maxWidth;Ve.height=(0,Z.a1)(xe.height),Ve.top=(0,Z.a1)(xe.top),Ve.bottom=(0,Z.a1)(xe.bottom),Ve.width=(0,Z.a1)(xe.width),Ve.left=(0,Z.a1)(xe.left),Ve.right=(0,Z.a1)(xe.right),Ve.alignItems="center"===re.overlayX?"center":"end"===re.overlayX?"flex-end":"flex-start",Ve.justifyContent="center"===re.overlayY?"center":"bottom"===re.overlayY?"flex-end":"flex-start",ut&&(Ve.maxHeight=(0,Z.a1)(ut)),Ft&&(Ve.maxWidth=(0,Z.a1)(Ft))}this._lastBoundingBoxSize=xe,je(this._boundingBox.style,Ve)}_resetBoundingBoxStyles(){je(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){je(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(ke,re){const xe={},Ve=this._hasExactPosition(),ut=this._hasFlexibleDimensions,Ft=this._overlayRef.getConfig();if(Ve){const qt=this._viewportRuler.getViewportScrollPosition();je(xe,this._getExactOverlayY(re,ke,qt)),je(xe,this._getExactOverlayX(re,ke,qt))}else xe.position="static";let sn="",Ln=this._getOffset(re,"x"),Qt=this._getOffset(re,"y");Ln&&(sn+=`translateX(${Ln}px) `),Qt&&(sn+=`translateY(${Qt}px)`),xe.transform=sn.trim(),Ft.maxHeight&&(Ve?xe.maxHeight=(0,Z.a1)(Ft.maxHeight):ut&&(xe.maxHeight="")),Ft.maxWidth&&(Ve?xe.maxWidth=(0,Z.a1)(Ft.maxWidth):ut&&(xe.maxWidth="")),je(this._pane.style,xe)}_getExactOverlayY(ke,re,xe){let Ve={top:"",bottom:""},ut=this._getOverlayPoint(re,this._overlayRect,ke);return this._isPushed&&(ut=this._pushOverlayOnScreen(ut,this._overlayRect,xe)),"bottom"===ke.overlayY?Ve.bottom=this._document.documentElement.clientHeight-(ut.y+this._overlayRect.height)+"px":Ve.top=(0,Z.a1)(ut.y),Ve}_getExactOverlayX(ke,re,xe){let Ft,Ve={left:"",right:""},ut=this._getOverlayPoint(re,this._overlayRect,ke);return this._isPushed&&(ut=this._pushOverlayOnScreen(ut,this._overlayRect,xe)),Ft=this._isRtl()?"end"===ke.overlayX?"left":"right":"end"===ke.overlayX?"right":"left","right"===Ft?Ve.right=this._document.documentElement.clientWidth-(ut.x+this._overlayRect.width)+"px":Ve.left=(0,Z.a1)(ut.x),Ve}_getScrollVisibility(){const ke=this._getOriginRect(),re=this._pane.getBoundingClientRect(),xe=this._scrollables.map(Ve=>Ve.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:At(ke,xe),isOriginOutsideView:vt(ke,xe),isOverlayClipped:At(re,xe),isOverlayOutsideView:vt(re,xe)}}_subtractOverflows(ke,...re){return re.reduce((xe,Ve)=>xe-Math.max(Ve,0),ke)}_getNarrowedViewportRect(){const ke=this._document.documentElement.clientWidth,re=this._document.documentElement.clientHeight,xe=this._viewportRuler.getViewportScrollPosition();return{top:xe.top+this._viewportMargin,left:xe.left+this._viewportMargin,right:xe.left+ke-this._viewportMargin,bottom:xe.top+re-this._viewportMargin,width:ke-2*this._viewportMargin,height:re-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(ke,re){return"x"===re?null==ke.offsetX?this._offsetX:ke.offsetX:null==ke.offsetY?this._offsetY:ke.offsetY}_validatePositions(){}_addPanelClasses(ke){this._pane&&(0,Z.FG)(ke).forEach(re=>{""!==re&&-1===this._appliedPanelClasses.indexOf(re)&&(this._appliedPanelClasses.push(re),this._pane.classList.add(re))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(ke=>{this._pane.classList.remove(ke)}),this._appliedPanelClasses=[])}_getOriginRect(){const ke=this._origin;if(ke instanceof ne.aKT)return ke.nativeElement.getBoundingClientRect();if(ke instanceof Element)return ke.getBoundingClientRect();const re=ke.width||0,xe=ke.height||0;return{top:ke.y,bottom:ke.y+xe,left:ke.x,right:ke.x+re,height:xe,width:re}}}function je(xt,ke){for(let re in ke)ke.hasOwnProperty(re)&&(xt[re]=ke[re]);return xt}function le(xt){if("number"!=typeof xt&&null!=xt){const[ke,re]=xt.split(K);return re&&"px"!==re?null:parseFloat(ke)}return xt||null}function ce(xt){return{top:Math.floor(xt.top),right:Math.floor(xt.right),bottom:Math.floor(xt.bottom),left:Math.floor(xt.left),width:Math.floor(xt.width),height:Math.floor(xt.height)}}const Ye="cdk-global-overlay-wrapper";class L{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(ke){const re=ke.getConfig();this._overlayRef=ke,this._width&&!re.width&&ke.updateSize({width:this._width}),this._height&&!re.height&&ke.updateSize({height:this._height}),ke.hostElement.classList.add(Ye),this._isDisposed=!1}top(ke=""){return this._bottomOffset="",this._topOffset=ke,this._alignItems="flex-start",this}left(ke=""){return this._xOffset=ke,this._xPosition="left",this}bottom(ke=""){return this._topOffset="",this._bottomOffset=ke,this._alignItems="flex-end",this}right(ke=""){return this._xOffset=ke,this._xPosition="right",this}start(ke=""){return this._xOffset=ke,this._xPosition="start",this}end(ke=""){return this._xOffset=ke,this._xPosition="end",this}width(ke=""){return this._overlayRef?this._overlayRef.updateSize({width:ke}):this._width=ke,this}height(ke=""){return this._overlayRef?this._overlayRef.updateSize({height:ke}):this._height=ke,this}centerHorizontally(ke=""){return this.left(ke),this._xPosition="center",this}centerVertically(ke=""){return this.top(ke),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const ke=this._overlayRef.overlayElement.style,re=this._overlayRef.hostElement.style,xe=this._overlayRef.getConfig(),{width:Ve,height:ut,maxWidth:Ft,maxHeight:sn}=xe,Ln=!("100%"!==Ve&&"100vw"!==Ve||Ft&&"100%"!==Ft&&"100vw"!==Ft),Qt=!("100%"!==ut&&"100vh"!==ut||sn&&"100%"!==sn&&"100vh"!==sn),qt=this._xPosition,st=this._xOffset,Dt="rtl"===this._overlayRef.getConfig().direction;let wt="",Rn="",yn="";Ln?yn="flex-start":"center"===qt?(yn="center",Dt?Rn=st:wt=st):Dt?"left"===qt||"end"===qt?(yn="flex-end",wt=st):("right"===qt||"start"===qt)&&(yn="flex-start",Rn=st):"left"===qt||"start"===qt?(yn="flex-start",wt=st):("right"===qt||"end"===qt)&&(yn="flex-end",Rn=st),ke.position=this._cssPosition,ke.marginLeft=Ln?"0":wt,ke.marginTop=Qt?"0":this._topOffset,ke.marginBottom=this._bottomOffset,ke.marginRight=Ln?"0":Rn,re.justifyContent=yn,re.alignItems=Qt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const ke=this._overlayRef.overlayElement.style,re=this._overlayRef.hostElement,xe=re.style;re.classList.remove(Ye),xe.justifyContent=xe.alignItems=ke.marginTop=ke.marginBottom=ke.marginLeft=ke.marginRight=ke.position="",this._overlayRef=null,this._isDisposed=!0}}let z=(()=>{class xt{constructor(re,xe,Ve,ut){this._viewportRuler=re,this._document=xe,this._platform=Ve,this._overlayContainer=ut}global(){return new L}flexibleConnectedTo(re){return new ge(re,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static{this.\u0275fac=function(xe){return new(xe||xt)(ne.KVO(e.Xj),ne.KVO(h.qQ),ne.KVO(De.OD),ne.KVO(be))}}static{this.\u0275prov=ne.jDH({token:xt,factory:xt.\u0275fac,providedIn:"root"})}}return xt})(),Be=0,pt=(()=>{class xt{constructor(re,xe,Ve,ut,Ft,sn,Ln,Qt,qt,st,Dt,wt){this.scrollStrategies=re,this._overlayContainer=xe,this._componentFactoryResolver=Ve,this._positionBuilder=ut,this._keyboardDispatcher=Ft,this._injector=sn,this._ngZone=Ln,this._document=Qt,this._directionality=qt,this._location=st,this._outsideClickDispatcher=Dt,this._animationsModuleType=wt}create(re){const xe=this._createHostElement(),Ve=this._createPaneElement(xe),ut=this._createPortalOutlet(Ve),Ft=new rt(re);return Ft.direction=Ft.direction||this._directionality.value,new Se(ut,xe,Ve,Ft,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(re){const xe=this._document.createElement("div");return xe.id="cdk-overlay-"+Be++,xe.classList.add("cdk-overlay-pane"),re.appendChild(xe),xe}_createHostElement(){const re=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(re),re}_createPortalOutlet(re){return this._appRef||(this._appRef=this._injector.get(ne.o8S)),new Me.aI(re,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static{this.\u0275fac=function(xe){return new(xe||xt)(ne.KVO(at),ne.KVO(be),ne.KVO(ne.OM3),ne.KVO(z),ne.KVO(Wt),ne.KVO(ne.zZn),ne.KVO(ne.SKi),ne.KVO(h.qQ),ne.KVO(Ne.dS),ne.KVO(h.aZ),ne.KVO(ze),ne.KVO(ne.bc$,8))}}static{this.\u0275prov=ne.jDH({token:xt,factory:xt.\u0275fac,providedIn:"root"})}}return xt})();const Vn={provide:new ne.nKC("cdk-connected-overlay-scroll-strategy"),deps:[pt],useFactory:function nn(xt){return()=>xt.scrollStrategies.reposition()}};let oi=(()=>{class xt{static{this.\u0275fac=function(xe){return new(xe||xt)}}static{this.\u0275mod=ne.$C({type:xt})}static{this.\u0275inj=ne.G2t({providers:[pt,Vn],imports:[Ne.jI,Me.jc,e.E9,e.E9]})}}return xt})()},6860:(pn,ct,N)=>{N.d(ct,{BQ:()=>Ge,CZ:()=>_t,Fb:()=>At,KT:()=>en,OD:()=>Z,v8:()=>me,vc:()=>vt});var e=N(7705),h=N(177);let ne;try{ne=typeof Intl<"u"&&Intl.v8BreakIterator}catch{ne=!1}let Ne,yt,ft,Z=(()=>{class at{constructor(ht){this._platformId=ht,this.isBrowser=this._platformId?(0,h.UE)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!ne)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}static{this.\u0275fac=function(St){return new(St||at)(e.KVO(e.Agw))}}static{this.\u0275prov=e.jDH({token:at,factory:at.\u0275fac,providedIn:"root"})}}return at})();function Ge(at){return function Me(){if(null==Ne&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ne=!0}))}finally{Ne=Ne||!1}return Ne}()?at:!!at.capture}function _t(){if(null==yt){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return yt=!1,yt;if("scrollBehavior"in document.documentElement.style)yt=!0;else{const at=Element.prototype.scrollTo;yt=!!at&&!/\{\s*\[native code\]\s*\}/.test(at.toString())}}return yt}function en(at){if(function mt(){if(null==ft){const at=typeof document<"u"?document.head:null;ft=!(!at||!at.createShadowRoot&&!at.attachShadow)}return ft}()){const rt=at.getRootNode?at.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&rt instanceof ShadowRoot)return rt}return null}function vt(){let at=typeof document<"u"&&document?document.activeElement:null;for(;at&&at.shadowRoot;){const rt=at.shadowRoot.activeElement;if(rt===at)break;at=rt}return at}function At(at){return at.composedPath?at.composedPath()[0]:at.target}function me(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6939:(pn,ct,N)=>{N.d(ct,{A8:()=>Me,I3:()=>vt,VA:()=>Ge,aI:()=>bt,jc:()=>me,lb:()=>yt});var e=N(7705),h=N(177);class Ne{attach(ht){return this._attachedHost=ht,ht.attach(this)}detach(){let ht=this._attachedHost;null!=ht&&(this._attachedHost=null,ht.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ht){this._attachedHost=ht}}class Me extends Ne{constructor(ht,St,Mt,cn,En){super(),this.component=ht,this.viewContainerRef=St,this.injector=Mt,this.componentFactoryResolver=cn,this.projectableNodes=En}}class Ge extends Ne{constructor(ht,St,Mt,cn){super(),this.templateRef=ht,this.viewContainerRef=St,this.context=Mt,this.injector=cn}get origin(){return this.templateRef.elementRef}attach(ht,St=this.context){return this.context=St,super.attach(ht)}detach(){return this.context=void 0,super.detach()}}class Ue extends Ne{constructor(ht){super(),this.element=ht instanceof e.aKT?ht.nativeElement:ht}}class yt{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ht){return ht instanceof Me?(this._attachedPortal=ht,this.attachComponentPortal(ht)):ht instanceof Ge?(this._attachedPortal=ht,this.attachTemplatePortal(ht)):this.attachDomPortal&&ht instanceof Ue?(this._attachedPortal=ht,this.attachDomPortal(ht)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(ht){this._disposeFn=ht}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class bt extends yt{constructor(ht,St,Mt,cn,En){super(),this.outletElement=ht,this._componentFactoryResolver=St,this._appRef=Mt,this._defaultInjector=cn,this.attachDomPortal=dn=>{const Wt=dn.element,ze=this._document.createComment("dom-portal");Wt.parentNode.insertBefore(ze,Wt),this.outletElement.appendChild(Wt),this._attachedPortal=dn,super.setDisposeFn(()=>{ze.parentNode&&ze.parentNode.replaceChild(Wt,ze)})},this._document=En}attachComponentPortal(ht){const Mt=(ht.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ht.component);let cn;return ht.viewContainerRef?(cn=ht.viewContainerRef.createComponent(Mt,ht.viewContainerRef.length,ht.injector||ht.viewContainerRef.injector,ht.projectableNodes||void 0),this.setDisposeFn(()=>cn.destroy())):(cn=Mt.create(ht.injector||this._defaultInjector||e.zZn.NULL),this._appRef.attachView(cn.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(cn.hostView),cn.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(cn)),this._attachedPortal=ht,cn}attachTemplatePortal(ht){let St=ht.viewContainerRef,Mt=St.createEmbeddedView(ht.templateRef,ht.context,{injector:ht.injector});return Mt.rootNodes.forEach(cn=>this.outletElement.appendChild(cn)),Mt.detectChanges(),this.setDisposeFn(()=>{let cn=St.indexOf(Mt);-1!==cn&&St.remove(cn)}),this._attachedPortal=ht,Mt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ht){return ht.hostView.rootNodes[0]}}let vt=(()=>{class rt extends yt{constructor(St,Mt,cn){super(),this._componentFactoryResolver=St,this._viewContainerRef=Mt,this._isInitialized=!1,this.attached=new e.bkB,this.attachDomPortal=En=>{const dn=En.element,Wt=this._document.createComment("dom-portal");En.setAttachedHost(this),dn.parentNode.insertBefore(Wt,dn),this._getRootNode().appendChild(dn),this._attachedPortal=En,super.setDisposeFn(()=>{Wt.parentNode&&Wt.parentNode.replaceChild(dn,Wt)})},this._document=cn}get portal(){return this._attachedPortal}set portal(St){this.hasAttached()&&!St&&!this._isInitialized||(this.hasAttached()&&super.detach(),St&&super.attach(St),this._attachedPortal=St||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(St){St.setAttachedHost(this);const Mt=null!=St.viewContainerRef?St.viewContainerRef:this._viewContainerRef,En=(St.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(St.component),dn=Mt.createComponent(En,Mt.length,St.injector||Mt.injector,St.projectableNodes||void 0);return Mt!==this._viewContainerRef&&this._getRootNode().appendChild(dn.hostView.rootNodes[0]),super.setDisposeFn(()=>dn.destroy()),this._attachedPortal=St,this._attachedRef=dn,this.attached.emit(dn),dn}attachTemplatePortal(St){St.setAttachedHost(this);const Mt=this._viewContainerRef.createEmbeddedView(St.templateRef,St.context,{injector:St.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=St,this._attachedRef=Mt,this.attached.emit(Mt),Mt}_getRootNode(){const St=this._viewContainerRef.element.nativeElement;return St.nodeType===St.ELEMENT_NODE?St:St.parentNode}static{this.\u0275fac=function(Mt){return new(Mt||rt)(e.rXU(e.OM3),e.rXU(e.c1b),e.rXU(h.qQ))}}static{this.\u0275dir=e.FsC({type:rt,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[e.Vt3]})}}return rt})(),me=(()=>{class rt{static{this.\u0275fac=function(Mt){return new(Mt||rt)}}static{this.\u0275mod=e.$C({type:rt})}static{this.\u0275inj=e.G2t({})}}return rt})()},7333:(pn,ct,N)=>{N.d(ct,{Gj:()=>Le,R:()=>cn,E9:()=>ue,Xj:()=>Wt});var e=N(4085),h=N(7705),ne=N(1413),Z=N(7673),De=N(1985),we=N(3726),Ne=(N(536),N(5007),N(3236)),Me=N(9974),Ge=N(8750),Ue=N(4360),_t=N(1584);function bt(Ye,L=Ne.E){return function yt(Ye){return(0,Me.N)((L,z)=>{let Be=!1,pt=null,dt=null,Vt=!1;const bn=()=>{if(dt?.unsubscribe(),dt=null,Be){Be=!1;const nn=pt;pt=null,z.next(nn)}Vt&&z.complete()},jn=()=>{dt=null,Vt&&z.complete()};L.subscribe((0,Ue._)(z,nn=>{Be=!0,pt=nn,dt||(0,Ge.Tg)(Ye(nn)).subscribe(dt=(0,Ue._)(z,bn,jn))},()=>{Vt=!0,(!Be||!dt||dt.closed)&&z.complete()}))})}(()=>(0,_t.O)(Ye,L))}var ft=N(5964),mt=N(6860),en=N(177),vt=N(8203);let cn=(()=>{class Ye{constructor(z,Be,pt){this._ngZone=z,this._platform=Be,this._scrolled=new ne.B,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=pt}register(z){this.scrollContainers.has(z)||this.scrollContainers.set(z,z.elementScrolled().subscribe(()=>this._scrolled.next(z)))}deregister(z){const Be=this.scrollContainers.get(z);Be&&(Be.unsubscribe(),this.scrollContainers.delete(z))}scrolled(z=20){return this._platform.isBrowser?new De.c(Be=>{this._globalSubscription||this._addGlobalListener();const pt=z>0?this._scrolled.pipe(bt(z)).subscribe(Be):this._scrolled.subscribe(Be);return this._scrolledCount++,()=>{pt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Z.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((z,Be)=>this.deregister(Be)),this._scrolled.complete()}ancestorScrolled(z,Be){const pt=this.getAncestorScrollContainers(z);return this.scrolled(Be).pipe((0,ft.p)(dt=>!dt||pt.indexOf(dt)>-1))}getAncestorScrollContainers(z){const Be=[];return this.scrollContainers.forEach((pt,dt)=>{this._scrollableContainsElement(dt,z)&&Be.push(dt)}),Be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(z,Be){let pt=(0,e.i8)(Be),dt=z.getElementRef().nativeElement;do{if(pt==dt)return!0}while(pt=pt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const z=this._getWindow();return(0,we.R)(z.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static{this.\u0275fac=function(Be){return new(Be||Ye)(h.KVO(h.SKi),h.KVO(mt.OD),h.KVO(en.qQ,8))}}static{this.\u0275prov=h.jDH({token:Ye,factory:Ye.\u0275fac,providedIn:"root"})}}return Ye})(),Wt=(()=>{class Ye{constructor(z,Be,pt){this._platform=z,this._change=new ne.B,this._changeListener=dt=>{this._change.next(dt)},this._document=pt,Be.runOutsideAngular(()=>{if(z.isBrowser){const dt=this._getWindow();dt.addEventListener("resize",this._changeListener),dt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const z=this._getWindow();z.removeEventListener("resize",this._changeListener),z.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const z={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),z}getViewportRect(){const z=this.getViewportScrollPosition(),{width:Be,height:pt}=this.getViewportSize();return{top:z.top,left:z.left,bottom:z.top+pt,right:z.left+Be,height:pt,width:Be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const z=this._document,Be=this._getWindow(),pt=z.documentElement,dt=pt.getBoundingClientRect();return{top:-dt.top||z.body.scrollTop||Be.scrollY||pt.scrollTop||0,left:-dt.left||z.body.scrollLeft||Be.scrollX||pt.scrollLeft||0}}change(z=20){return z>0?this._change.pipe(bt(z)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const z=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:z.innerWidth,height:z.innerHeight}:{width:0,height:0}}static{this.\u0275fac=function(Be){return new(Be||Ye)(h.KVO(mt.OD),h.KVO(h.SKi),h.KVO(en.qQ,8))}}static{this.\u0275prov=h.jDH({token:Ye,factory:Ye.\u0275fac,providedIn:"root"})}}return Ye})(),Le=(()=>{class Ye{static{this.\u0275fac=function(Be){return new(Be||Ye)}}static{this.\u0275mod=h.$C({type:Ye})}static{this.\u0275inj=h.G2t({})}}return Ye})(),ue=(()=>{class Ye{static{this.\u0275fac=function(Be){return new(Be||Ye)}}static{this.\u0275mod=h.$C({type:Ye})}static{this.\u0275inj=h.G2t({imports:[vt.jI,Le,vt.jI,Le]})}}return Ye})()},177:(pn,ct,N)=>{N.d(ct,{AJ:()=>Wi,B3:()=>Xs,Jj:()=>hr,MD:()=>Ko,N0:()=>Ss,OI:()=>Rt,P9:()=>go,QT:()=>ne,Sq:()=>$e,T3:()=>as,UE:()=>zr,VF:()=>De,Vy:()=>Fa,XO:()=>be,YU:()=>Re,Yq:()=>sn,ZD:()=>Z,_b:()=>Cs,aZ:()=>mt,bT:()=>An,cH:()=>Mt,e1:()=>es,fG:()=>Ls,hb:()=>yt,oV:()=>St,pM:()=>$e,qQ:()=>we,tL:()=>Se,ux:()=>li,vh:()=>qi});var e=N(7705);let h=null;function ne(){return h}function Z(P){h||(h=P)}class De{}const we=new e.nKC("DocumentToken");let Ie=(()=>{class P{historyGo(Y){throw new Error("Not implemented")}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275prov=e.jDH({token:P,factory:function(){return(0,e.WQX)(Ne)},providedIn:"platform"})}}return P})(),Ne=(()=>{class P extends Ie{constructor(){super(),this._doc=(0,e.WQX)(we),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return ne().getBaseHref(this._doc)}onPopState(Y){const te=ne().getGlobalEventTarget(this._doc,"window");return te.addEventListener("popstate",Y,!1),()=>te.removeEventListener("popstate",Y)}onHashChange(Y){const te=ne().getGlobalEventTarget(this._doc,"window");return te.addEventListener("hashchange",Y,!1),()=>te.removeEventListener("hashchange",Y)}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(Y){this._location.pathname=Y}pushState(Y,te,We){this._history.pushState(Y,te,We)}replaceState(Y,te,We){this._history.replaceState(Y,te,We)}forward(){this._history.forward()}back(){this._history.back()}historyGo(Y=0){this._history.go(Y)}getState(){return this._history.state}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275prov=e.jDH({token:P,factory:function(){return new P},providedIn:"platform"})}}return P})();function Me(P,ae){if(0==P.length)return ae;if(0==ae.length)return P;let Y=0;return P.endsWith("/")&&Y++,ae.startsWith("/")&&Y++,2==Y?P+ae.substring(1):1==Y?P+ae:P+"/"+ae}function Ge(P){const ae=P.match(/#|\?|$/),Y=ae&&ae.index||P.length;return P.slice(0,Y-("/"===P[Y-1]?1:0))+P.slice(Y)}function Ue(P){return P&&"?"!==P[0]?"?"+P:P}let yt=(()=>{class P{historyGo(Y){throw new Error("Not implemented")}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275prov=e.jDH({token:P,factory:function(){return(0,e.WQX)(bt)},providedIn:"root"})}}return P})();const _t=new e.nKC("appBaseHref");let bt=(()=>{class P extends yt{constructor(Y,te){super(),this._platformLocation=Y,this._removeListenerFns=[],this._baseHref=te??this._platformLocation.getBaseHrefFromDOM()??(0,e.WQX)(we).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Y){this._removeListenerFns.push(this._platformLocation.onPopState(Y),this._platformLocation.onHashChange(Y))}getBaseHref(){return this._baseHref}prepareExternalUrl(Y){return Me(this._baseHref,Y)}path(Y=!1){const te=this._platformLocation.pathname+Ue(this._platformLocation.search),We=this._platformLocation.hash;return We&&Y?`${te}${We}`:te}pushState(Y,te,We,Yt){const un=this.prepareExternalUrl(We+Ue(Yt));this._platformLocation.pushState(Y,te,un)}replaceState(Y,te,We,Yt){const un=this.prepareExternalUrl(We+Ue(Yt));this._platformLocation.replaceState(Y,te,un)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Y=0){this._platformLocation.historyGo?.(Y)}static{this.\u0275fac=function(te){return new(te||P)(e.KVO(Ie),e.KVO(_t,8))}}static{this.\u0275prov=e.jDH({token:P,factory:P.\u0275fac,providedIn:"root"})}}return P})(),mt=(()=>{class P{constructor(Y){this._subject=new e.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Y;const te=this._locationStrategy.getBaseHref();this._basePath=function me(P){if(new RegExp("^(https?:)?//").test(P)){const[,Y]=P.split(/\/\/[^\/]+/);return Y}return P}(Ge(At(te))),this._locationStrategy.onPopState(We=>{this._subject.emit({url:this.path(!0),pop:!0,state:We.state,type:We.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Y=!1){return this.normalize(this._locationStrategy.path(Y))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Y,te=""){return this.path()==this.normalize(Y+Ue(te))}normalize(Y){return P.stripTrailingSlash(function vt(P,ae){if(!P||!ae.startsWith(P))return ae;const Y=ae.substring(P.length);return""===Y||["/",";","?","#"].includes(Y[0])?Y:ae}(this._basePath,At(Y)))}prepareExternalUrl(Y){return Y&&"/"!==Y[0]&&(Y="/"+Y),this._locationStrategy.prepareExternalUrl(Y)}go(Y,te="",We=null){this._locationStrategy.pushState(We,"",Y,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(Y+Ue(te)),We)}replaceState(Y,te="",We=null){this._locationStrategy.replaceState(We,"",Y,te),this._notifyUrlChangeListeners(this.prepareExternalUrl(Y+Ue(te)),We)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Y=0){this._locationStrategy.historyGo?.(Y)}onUrlChange(Y){return this._urlChangeListeners.push(Y),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(te=>{this._notifyUrlChangeListeners(te.url,te.state)})),()=>{const te=this._urlChangeListeners.indexOf(Y);this._urlChangeListeners.splice(te,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Y="",te){this._urlChangeListeners.forEach(We=>We(Y,te))}subscribe(Y,te,We){return this._subject.subscribe({next:Y,error:te,complete:We})}static{this.normalizeQueryParams=Ue}static{this.joinWithSlash=Me}static{this.stripTrailingSlash=Ge}static{this.\u0275fac=function(te){return new(te||P)(e.KVO(yt))}}static{this.\u0275prov=e.jDH({token:P,factory:function(){return function en(){return new mt((0,e.KVO)(yt))}()},providedIn:"root"})}}return P})();function At(P){return P.replace(/\/index.html$/,"")}var St=function(P){return P[P.Format=0]="Format",P[P.Standalone=1]="Standalone",P}(St||{}),Mt=function(P){return P[P.Narrow=0]="Narrow",P[P.Abbreviated=1]="Abbreviated",P[P.Wide=2]="Wide",P[P.Short=3]="Short",P}(Mt||{}),cn=function(P){return P[P.Short=0]="Short",P[P.Medium=1]="Medium",P[P.Long=2]="Long",P[P.Full=3]="Full",P}(cn||{}),En=function(P){return P[P.Decimal=0]="Decimal",P[P.Group=1]="Group",P[P.List=2]="List",P[P.PercentSign=3]="PercentSign",P[P.PlusSign=4]="PlusSign",P[P.MinusSign=5]="MinusSign",P[P.Exponential=6]="Exponential",P[P.SuperscriptingExponent=7]="SuperscriptingExponent",P[P.PerMille=8]="PerMille",P[P.Infinity=9]="Infinity",P[P.NaN=10]="NaN",P[P.TimeSeparator=11]="TimeSeparator",P[P.CurrencyDecimal=12]="CurrencyDecimal",P[P.CurrencyGroup=13]="CurrencyGroup",P}(En||{});function be(P,ae,Y){const te=(0,e.H5H)(P),Yt=nn([te[e.KH2.DaysFormat],te[e.KH2.DaysStandalone]],ae);return nn(Yt,Y)}function Se(P,ae,Y){const te=(0,e.H5H)(P),Yt=nn([te[e.KH2.MonthsFormat],te[e.KH2.MonthsStandalone]],ae);return nn(Yt,Y)}function je(P,ae){return nn((0,e.H5H)(P)[e.KH2.DateFormat],ae)}function le(P,ae){return nn((0,e.H5H)(P)[e.KH2.TimeFormat],ae)}function ce(P,ae){return nn((0,e.H5H)(P)[e.KH2.DateTimeFormat],ae)}function Le(P,ae){const Y=(0,e.H5H)(P),te=Y[e.KH2.NumberSymbols][ae];if(typeof te>"u"){if(ae===En.CurrencyDecimal)return Y[e.KH2.NumberSymbols][En.Decimal];if(ae===En.CurrencyGroup)return Y[e.KH2.NumberSymbols][En.Group]}return te}function dt(P){if(!P[e.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${P[e.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function nn(P,ae){for(let Y=ae;Y>-1;Y--)if(typeof P[Y]<"u")return P[Y];throw new Error("Locale data API: locale data undefined")}function Vn(P){const[ae,Y]=P.split(":");return{hours:+ae,minutes:+Y}}const ke=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,re={},xe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ve=function(P){return P[P.Short=0]="Short",P[P.ShortGMT=1]="ShortGMT",P[P.Long=2]="Long",P[P.Extended=3]="Extended",P}(Ve||{}),ut=function(P){return P[P.FullYear=0]="FullYear",P[P.Month=1]="Month",P[P.Date=2]="Date",P[P.Hours=3]="Hours",P[P.Minutes=4]="Minutes",P[P.Seconds=5]="Seconds",P[P.FractionalSeconds=6]="FractionalSeconds",P[P.Day=7]="Day",P}(ut||{}),Ft=function(P){return P[P.DayPeriods=0]="DayPeriods",P[P.Days=1]="Days",P[P.Months=2]="Months",P[P.Eras=3]="Eras",P}(Ft||{});function sn(P,ae,Y,te){let We=function ye(P){if(Fe(P))return P;if("number"==typeof P&&!isNaN(P))return new Date(P);if("string"==typeof P){if(P=P.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(P)){const[We,Yt=1,un=1]=P.split("-").map(Gn=>+Gn);return Ln(We,Yt-1,un)}const Y=parseFloat(P);if(!isNaN(P-Y))return new Date(Y);let te;if(te=P.match(ke))return function Pe(P){const ae=new Date(0);let Y=0,te=0;const We=P[8]?ae.setUTCFullYear:ae.setFullYear,Yt=P[8]?ae.setUTCHours:ae.setHours;P[9]&&(Y=Number(P[9]+P[10]),te=Number(P[9]+P[11])),We.call(ae,Number(P[1]),Number(P[2])-1,Number(P[3]));const un=Number(P[4]||0)-Y,Gn=Number(P[5]||0)-te,ts=Number(P[6]||0),ji=Math.floor(1e3*parseFloat("0."+(P[7]||0)));return Yt.call(ae,un,Gn,ts,ji),ae}(te)}const ae=new Date(P);if(!Fe(ae))throw new Error(`Unable to convert "${P}" into a date`);return ae}(P);ae=Qt(Y,ae)||ae;let Gn,un=[];for(;ae;){if(Gn=xe.exec(ae),!Gn){un.push(ae);break}{un=un.concat(Gn.slice(1));const Si=un.pop();if(!Si)break;ae=Si}}let ts=We.getTimezoneOffset();te&&(ts=io(te,ts),We=function kt(P,ae,Y){const te=Y?-1:1,We=P.getTimezoneOffset();return function an(P,ae){return(P=new Date(P.getTime())).setMinutes(P.getMinutes()+ae),P}(P,te*(io(ae,We)-We))}(We,te,!0));let ji="";return un.forEach(Si=>{const Zn=function Mn(P){if(qs[P])return qs[P];let ae;switch(P){case"G":case"GG":case"GGG":ae=yn(Ft.Eras,Mt.Abbreviated);break;case"GGGG":ae=yn(Ft.Eras,Mt.Wide);break;case"GGGGG":ae=yn(Ft.Eras,Mt.Narrow);break;case"y":ae=wt(ut.FullYear,1,0,!1,!0);break;case"yy":ae=wt(ut.FullYear,2,0,!0,!0);break;case"yyy":ae=wt(ut.FullYear,3,0,!1,!0);break;case"yyyy":ae=wt(ut.FullYear,4,0,!1,!0);break;case"Y":ae=ei(1);break;case"YY":ae=ei(2,!0);break;case"YYY":ae=ei(3);break;case"YYYY":ae=ei(4);break;case"M":case"L":ae=wt(ut.Month,1,1);break;case"MM":case"LL":ae=wt(ut.Month,2,1);break;case"MMM":ae=yn(Ft.Months,Mt.Abbreviated);break;case"MMMM":ae=yn(Ft.Months,Mt.Wide);break;case"MMMMM":ae=yn(Ft.Months,Mt.Narrow);break;case"LLL":ae=yn(Ft.Months,Mt.Abbreviated,St.Standalone);break;case"LLLL":ae=yn(Ft.Months,Mt.Wide,St.Standalone);break;case"LLLLL":ae=yn(Ft.Months,Mt.Narrow,St.Standalone);break;case"w":ae=Ps(1);break;case"ww":ae=Ps(2);break;case"W":ae=Ps(1,!0);break;case"d":ae=wt(ut.Date,1);break;case"dd":ae=wt(ut.Date,2);break;case"c":case"cc":ae=wt(ut.Day,1);break;case"ccc":ae=yn(Ft.Days,Mt.Abbreviated,St.Standalone);break;case"cccc":ae=yn(Ft.Days,Mt.Wide,St.Standalone);break;case"ccccc":ae=yn(Ft.Days,Mt.Narrow,St.Standalone);break;case"cccccc":ae=yn(Ft.Days,Mt.Short,St.Standalone);break;case"E":case"EE":case"EEE":ae=yn(Ft.Days,Mt.Abbreviated);break;case"EEEE":ae=yn(Ft.Days,Mt.Wide);break;case"EEEEE":ae=yn(Ft.Days,Mt.Narrow);break;case"EEEEEE":ae=yn(Ft.Days,Mt.Short);break;case"a":case"aa":case"aaa":ae=yn(Ft.DayPeriods,Mt.Abbreviated);break;case"aaaa":ae=yn(Ft.DayPeriods,Mt.Wide);break;case"aaaaa":ae=yn(Ft.DayPeriods,Mt.Narrow);break;case"b":case"bb":case"bbb":ae=yn(Ft.DayPeriods,Mt.Abbreviated,St.Standalone,!0);break;case"bbbb":ae=yn(Ft.DayPeriods,Mt.Wide,St.Standalone,!0);break;case"bbbbb":ae=yn(Ft.DayPeriods,Mt.Narrow,St.Standalone,!0);break;case"B":case"BB":case"BBB":ae=yn(Ft.DayPeriods,Mt.Abbreviated,St.Format,!0);break;case"BBBB":ae=yn(Ft.DayPeriods,Mt.Wide,St.Format,!0);break;case"BBBBB":ae=yn(Ft.DayPeriods,Mt.Narrow,St.Format,!0);break;case"h":ae=wt(ut.Hours,1,-12);break;case"hh":ae=wt(ut.Hours,2,-12);break;case"H":ae=wt(ut.Hours,1);break;case"HH":ae=wt(ut.Hours,2);break;case"m":ae=wt(ut.Minutes,1);break;case"mm":ae=wt(ut.Minutes,2);break;case"s":ae=wt(ut.Seconds,1);break;case"ss":ae=wt(ut.Seconds,2);break;case"S":ae=wt(ut.FractionalSeconds,1);break;case"SS":ae=wt(ut.FractionalSeconds,2);break;case"SSS":ae=wt(ut.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ae=ti(Ve.Short);break;case"ZZZZZ":ae=ti(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ae=ti(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ae=ti(Ve.Long);break;default:return null}return qs[P]=ae,ae}(Si);ji+=Zn?Zn(We,Y,ts):"''"===Si?"'":Si.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),ji}function Ln(P,ae,Y){const te=new Date(0);return te.setFullYear(P,ae,Y),te.setHours(0,0,0),te}function Qt(P,ae){const Y=function Wt(P){return(0,e.H5H)(P)[e.KH2.LocaleId]}(P);if(re[Y]=re[Y]||{},re[Y][ae])return re[Y][ae];let te="";switch(ae){case"shortDate":te=je(P,cn.Short);break;case"mediumDate":te=je(P,cn.Medium);break;case"longDate":te=je(P,cn.Long);break;case"fullDate":te=je(P,cn.Full);break;case"shortTime":te=le(P,cn.Short);break;case"mediumTime":te=le(P,cn.Medium);break;case"longTime":te=le(P,cn.Long);break;case"fullTime":te=le(P,cn.Full);break;case"short":const We=Qt(P,"shortTime"),Yt=Qt(P,"shortDate");te=qt(ce(P,cn.Short),[We,Yt]);break;case"medium":const un=Qt(P,"mediumTime"),Gn=Qt(P,"mediumDate");te=qt(ce(P,cn.Medium),[un,Gn]);break;case"long":const ts=Qt(P,"longTime"),ji=Qt(P,"longDate");te=qt(ce(P,cn.Long),[ts,ji]);break;case"full":const Si=Qt(P,"fullTime"),Zn=Qt(P,"fullDate");te=qt(ce(P,cn.Full),[Si,Zn])}return te&&(re[Y][ae]=te),te}function qt(P,ae){return ae&&(P=P.replace(/\{([^}]+)}/g,function(Y,te){return null!=ae&&te in ae?ae[te]:Y})),P}function st(P,ae,Y="-",te,We){let Yt="";(P<0||We&&P<=0)&&(We?P=1-P:(P=-P,Yt=Y));let un=String(P);for(;un.length<ae;)un="0"+un;return te&&(un=un.slice(un.length-ae)),Yt+un}function wt(P,ae,Y=0,te=!1,We=!1){return function(Yt,un){let Gn=function Rn(P,ae){switch(P){case ut.FullYear:return ae.getFullYear();case ut.Month:return ae.getMonth();case ut.Date:return ae.getDate();case ut.Hours:return ae.getHours();case ut.Minutes:return ae.getMinutes();case ut.Seconds:return ae.getSeconds();case ut.FractionalSeconds:return ae.getMilliseconds();case ut.Day:return ae.getDay();default:throw new Error(`Unknown DateType value "${P}".`)}}(P,Yt);if((Y>0||Gn>-Y)&&(Gn+=Y),P===ut.Hours)0===Gn&&-12===Y&&(Gn=12);else if(P===ut.FractionalSeconds)return function Dt(P,ae){return st(P,3).substring(0,ae)}(Gn,ae);const ts=Le(un,En.MinusSign);return st(Gn,ae,ts,te,We)}}function yn(P,ae,Y=St.Format,te=!1){return function(We,Yt){return function Hn(P,ae,Y,te,We,Yt){switch(Y){case Ft.Months:return Se(ae,We,te)[P.getMonth()];case Ft.Days:return be(ae,We,te)[P.getDay()];case Ft.DayPeriods:const un=P.getHours(),Gn=P.getMinutes();if(Yt){const ji=function Vt(P){const ae=(0,e.H5H)(P);return dt(ae),(ae[e.KH2.ExtraData][2]||[]).map(te=>"string"==typeof te?Vn(te):[Vn(te[0]),Vn(te[1])])}(ae),Si=function bn(P,ae,Y){const te=(0,e.H5H)(P);dt(te);const Yt=nn([te[e.KH2.ExtraData][0],te[e.KH2.ExtraData][1]],ae)||[];return nn(Yt,Y)||[]}(ae,We,te),Zn=ji.findIndex(ki=>{if(Array.isArray(ki)){const[Hi,Li]=ki,$o=un>=Hi.hours&&Gn>=Hi.minutes,cs=un<Li.hours||un===Li.hours&&Gn<Li.minutes;if(Hi.hours<Li.hours){if($o&&cs)return!0}else if($o||cs)return!0}else if(ki.hours===un&&ki.minutes===Gn)return!0;return!1});if(-1!==Zn)return Si[Zn]}return function ze(P,ae,Y){const te=(0,e.H5H)(P),Yt=nn([te[e.KH2.DayPeriodsFormat],te[e.KH2.DayPeriodsStandalone]],ae);return nn(Yt,Y)}(ae,We,te)[un<12?0:1];case Ft.Eras:return function Nt(P,ae){return nn((0,e.H5H)(P)[e.KH2.Eras],ae)}(ae,te)[P.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${Y}`)}}(We,Yt,P,ae,Y,te)}}function ti(P){return function(ae,Y,te){const We=-1*te,Yt=Le(Y,En.MinusSign),un=We>0?Math.floor(We/60):Math.ceil(We/60);switch(P){case Ve.Short:return(We>=0?"+":"")+st(un,2,Yt)+st(Math.abs(We%60),2,Yt);case Ve.ShortGMT:return"GMT"+(We>=0?"+":"")+st(un,1,Yt);case Ve.Long:return"GMT"+(We>=0?"+":"")+st(un,2,Yt)+":"+st(Math.abs(We%60),2,Yt);case Ve.Extended:return 0===te?"Z":(We>=0?"+":"")+st(un,2,Yt)+":"+st(Math.abs(We%60),2,Yt);default:throw new Error(`Unknown zone width "${P}"`)}}}const ai=0,zi=4;function Bi(P){return Ln(P.getFullYear(),P.getMonth(),P.getDate()+(zi-P.getDay()))}function Ps(P,ae=!1){return function(Y,te){let We;if(ae){const Yt=new Date(Y.getFullYear(),Y.getMonth(),1).getDay()-1,un=Y.getDate();We=1+Math.floor((un+Yt)/7)}else{const Yt=Bi(Y),un=function us(P){const ae=Ln(P,ai,1).getDay();return Ln(P,0,1+(ae<=zi?zi:zi+7)-ae)}(Yt.getFullYear()),Gn=Yt.getTime()-un.getTime();We=1+Math.round(Gn/6048e5)}return st(We,P,Le(te,En.MinusSign))}}function ei(P,ae=!1){return function(Y,te){return st(Bi(Y).getFullYear(),P,Le(te,En.MinusSign),ae)}}const qs={};function io(P,ae){P=P.replace(/:/g,"");const Y=Date.parse("Jan 01, 1970 00:00:00 "+P)/6e4;return isNaN(Y)?ae:Y}function Fe(P){return P instanceof Date&&!isNaN(P.valueOf())}function Cs(P,ae){ae=encodeURIComponent(ae);for(const Y of P.split(";")){const te=Y.indexOf("="),[We,Yt]=-1==te?[Y,""]:[Y.slice(0,te),Y.slice(te+1)];if(We.trim()===ae)return decodeURIComponent(Yt)}return null}const Es=/\s+/,xi=[];let Re=(()=>{class P{constructor(Y,te,We,Yt){this._iterableDiffers=Y,this._keyValueDiffers=te,this._ngEl=We,this._renderer=Yt,this.initialClasses=xi,this.stateMap=new Map}set klass(Y){this.initialClasses=null!=Y?Y.trim().split(Es):xi}set ngClass(Y){this.rawClass="string"==typeof Y?Y.trim().split(Es):Y}ngDoCheck(){for(const te of this.initialClasses)this._updateState(te,!0);const Y=this.rawClass;if(Array.isArray(Y)||Y instanceof Set)for(const te of Y)this._updateState(te,!0);else if(null!=Y)for(const te of Object.keys(Y))this._updateState(te,!!Y[te]);this._applyStateDiff()}_updateState(Y,te){const We=this.stateMap.get(Y);void 0!==We?(We.enabled!==te&&(We.changed=!0,We.enabled=te),We.touched=!0):this.stateMap.set(Y,{enabled:te,changed:!0,touched:!0})}_applyStateDiff(){for(const Y of this.stateMap){const te=Y[0],We=Y[1];We.changed?(this._toggleClass(te,We.enabled),We.changed=!1):We.touched||(We.enabled&&this._toggleClass(te,!1),this.stateMap.delete(te)),We.touched=!1}}_toggleClass(Y,te){(Y=Y.trim()).length>0&&Y.split(Es).forEach(We=>{te?this._renderer.addClass(this._ngEl.nativeElement,We):this._renderer.removeClass(this._ngEl.nativeElement,We)})}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e._q3),e.rXU(e.MKu),e.rXU(e.aKT),e.rXU(e.sFG))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}}return P})(),Rt=(()=>{class P{constructor(Y){this._viewContainerRef=Y,this.ngComponentOutlet=null,this._inputsUsed=new Map}_needToReCreateNgModuleInstance(Y){return void 0!==Y.ngComponentOutletNgModule||void 0!==Y.ngComponentOutletNgModuleFactory}_needToReCreateComponentInstance(Y){return void 0!==Y.ngComponentOutlet||void 0!==Y.ngComponentOutletContent||void 0!==Y.ngComponentOutletInjector||this._needToReCreateNgModuleInstance(Y)}ngOnChanges(Y){if(this._needToReCreateComponentInstance(Y)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){const te=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(Y)&&(this._moduleRef?.destroy(),this._moduleRef=this.ngComponentOutletNgModule?(0,e.w6W)(this.ngComponentOutletNgModule,oe(te)):this.ngComponentOutletNgModuleFactory?this.ngComponentOutletNgModuleFactory.create(oe(te)):void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:te,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(const Y of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(Y,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(Y){for(const[te,We]of this._inputsUsed)We?(Y.setInput(te,this.ngComponentOutletInputs[te]),this._inputsUsed.set(te,!1)):(Y.setInput(te,void 0),this._inputsUsed.delete(te))}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[e.OA$]})}}return P})();function oe(P){return P.get(e.Vns).injector}class _e{constructor(ae,Y,te,We){this.$implicit=ae,this.ngForOf=Y,this.index=te,this.count=We}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 $e=(()=>{class P{set ngForOf(Y){this._ngForOf=Y,this._ngForOfDirty=!0}set ngForTrackBy(Y){this._trackByFn=Y}get ngForTrackBy(){return this._trackByFn}constructor(Y,te,We){this._viewContainer=Y,this._template=te,this._differs=We,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Y){Y&&(this._template=Y)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Y=this._ngForOf;!this._differ&&Y&&(this._differ=this._differs.find(Y).create(this.ngForTrackBy))}if(this._differ){const Y=this._differ.diff(this._ngForOf);Y&&this._applyChanges(Y)}}_applyChanges(Y){const te=this._viewContainer;Y.forEachOperation((We,Yt,un)=>{if(null==We.previousIndex)te.createEmbeddedView(this._template,new _e(We.item,this._ngForOf,-1,-1),null===un?void 0:un);else if(null==un)te.remove(null===Yt?void 0:Yt);else if(null!==Yt){const Gn=te.get(Yt);te.move(Gn,un),Pt(Gn,We)}});for(let We=0,Yt=te.length;We<Yt;We++){const Gn=te.get(We).context;Gn.index=We,Gn.count=Yt,Gn.ngForOf=this._ngForOf}Y.forEachIdentityChange(We=>{Pt(te.get(We.currentIndex),We)})}static ngTemplateContextGuard(Y,te){return!0}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(e._q3))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return P})();function Pt(P,ae){P.context.$implicit=ae.item}let An=(()=>{class P{constructor(Y,te){this._viewContainer=Y,this._context=new zn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=te}set ngIf(Y){this._context.$implicit=this._context.ngIf=Y,this._updateView()}set ngIfThen(Y){hi("ngIfThen",Y),this._thenTemplateRef=Y,this._thenViewRef=null,this._updateView()}set ngIfElse(Y){hi("ngIfElse",Y),this._elseTemplateRef=Y,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Y,te){return!0}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b),e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return P})();class zn{constructor(){this.$implicit=null,this.ngIf=null}}function hi(P,ae){if(ae&&!ae.createEmbeddedView)throw new Error(`${P} must be a TemplateRef, but received '${(0,e.Tbb)(ae)}'.`)}class Kn{constructor(ae,Y){this._viewContainerRef=ae,this._templateRef=Y,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ae){ae&&!this._created?this.create():!ae&&this._created&&this.destroy()}}let li=(()=>{class P{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Y){this._ngSwitch=Y,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Y){this._defaultViews.push(Y)}_matchCase(Y){const te=Y==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||te,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),te}_updateDefaultCases(Y){if(this._defaultViews.length>0&&Y!==this._defaultUsed){this._defaultUsed=Y;for(const te of this._defaultViews)te.enforceState(Y)}}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}}return P})(),es=(()=>{class P{constructor(Y,te,We){this.ngSwitch=We,We._addCase(),this._view=new Kn(Y,te)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(li,9))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}}return P})(),Ls=(()=>{class P{constructor(Y,te,We){We._addDefault(new Kn(Y,te))}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b),e.rXU(e.C4Q),e.rXU(li,9))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngSwitchDefault",""]],standalone:!0})}}return P})(),Xs=(()=>{class P{constructor(Y,te,We){this._ngEl=Y,this._differs=te,this._renderer=We,this._ngStyle=null,this._differ=null}set ngStyle(Y){this._ngStyle=Y,!this._differ&&Y&&(this._differ=this._differs.find(Y).create())}ngDoCheck(){if(this._differ){const Y=this._differ.diff(this._ngStyle);Y&&this._applyChanges(Y)}}_setStyle(Y,te){const[We,Yt]=Y.split("."),un=-1===We.indexOf("-")?void 0:e.czy.DashCase;null!=te?this._renderer.setStyle(this._ngEl.nativeElement,We,Yt?`${te}${Yt}`:te,un):this._renderer.removeStyle(this._ngEl.nativeElement,We,un)}_applyChanges(Y){Y.forEachRemovedItem(te=>this._setStyle(te.key,null)),Y.forEachAddedItem(te=>this._setStyle(te.key,te.currentValue)),Y.forEachChangedItem(te=>this._setStyle(te.key,te.currentValue))}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.aKT),e.rXU(e.MKu),e.rXU(e.sFG))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0})}}return P})(),as=(()=>{class P{constructor(Y){this._viewContainerRef=Y,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Y){if(Y.ngTemplateOutlet||Y.ngTemplateOutletInjector){const te=this._viewContainerRef;if(this._viewRef&&te.remove(te.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:We,ngTemplateOutletContext:Yt,ngTemplateOutletInjector:un}=this;this._viewRef=te.createEmbeddedView(We,Yt,un?{injector:un}:void 0)}else this._viewRef=null}else this._viewRef&&Y.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.c1b))}}static{this.\u0275dir=e.FsC({type:P,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[e.OA$]})}}return P})();function In(P,ae){return new e.wOt(2100,!1)}class Ao{createSubscription(ae,Y){return(0,e.O8t)(()=>ae.subscribe({next:Y,error:te=>{throw te}}))}dispose(ae){(0,e.O8t)(()=>ae.unsubscribe())}}class Bs{createSubscription(ae,Y){return ae.then(Y,te=>{throw te})}dispose(ae){}}const Ws=new Bs,Tr=new Ao;let hr=(()=>{class P{constructor(Y){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Y}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Y){return this._obj?Y!==this._obj?(this._dispose(),this.transform(Y)):this._latestValue:(Y&&this._subscribe(Y),this._latestValue)}_subscribe(Y){this._obj=Y,this._strategy=this._selectStrategy(Y),this._subscription=this._strategy.createSubscription(Y,te=>this._updateLatestValue(Y,te))}_selectStrategy(Y){if((0,e.jNT)(Y))return Ws;if((0,e.zjR)(Y))return Tr;throw In()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Y,te){Y===this._obj&&(this._latestValue=te,this._ref.markForCheck())}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.gRc,16))}}static{this.\u0275pipe=e.EJ8({name:"async",type:P,pure:!1,standalone:!0})}}return P})();const yi=new e.nKC("DATE_PIPE_DEFAULT_TIMEZONE"),ws=new e.nKC("DATE_PIPE_DEFAULT_OPTIONS");let qi=(()=>{class P{constructor(Y,te,We){this.locale=Y,this.defaultTimezone=te,this.defaultOptions=We}transform(Y,te,We,Yt){if(null==Y||""===Y||Y!=Y)return null;try{return sn(Y,te??this.defaultOptions?.dateFormat??"mediumDate",Yt||this.locale,We??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(un){throw In()}}static{this.\u0275fac=function(te){return new(te||P)(e.rXU(e.xe9,16),e.rXU(yi,24),e.rXU(ws,24))}}static{this.\u0275pipe=e.EJ8({name:"date",type:P,pure:!0,standalone:!0})}}return P})(),go=(()=>{class P{transform(Y,te,We){if(null==Y)return null;if(!this.supports(Y))throw In();return Y.slice(te,We)}supports(Y){return"string"==typeof Y||Array.isArray(Y)}static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275pipe=e.EJ8({name:"slice",type:P,pure:!1,standalone:!0})}}return P})(),Ko=(()=>{class P{static{this.\u0275fac=function(te){return new(te||P)}}static{this.\u0275mod=e.$C({type:P})}static{this.\u0275inj=e.G2t({})}}return P})();const Wi="browser",fr="server";function zr(P){return P===Wi}function Fa(P){return P===fr}class Ss{}},1626:(pn,ct,N)=>{N.d(ct,{Lr:()=>yt,Nl:()=>me,Qq:()=>ge,q1:()=>Xe});var e=N(7705),h=N(7673),ne=N(2806),Z=N(1985),De=N(274),we=N(5964),Ie=N(6354),Oe=N(980),Ne=N(5558),Me=N(177);class Ge{}class Ue{}class yt{constructor(He){this.normalizedNames=new Map,this.lazyUpdate=null,He?"string"==typeof He?this.lazyInit=()=>{this.headers=new Map,He.split("\n").forEach(Ze=>{const $t=Ze.indexOf(":");if($t>0){const fn=Ze.slice(0,$t),mn=fn.toLowerCase(),gn=Ze.slice($t+1).trim();this.maybeSetNormalizedName(fn,mn),this.headers.has(mn)?this.headers.get(mn).push(gn):this.headers.set(mn,[gn])}})}:typeof Headers<"u"&&He instanceof Headers?(this.headers=new Map,He.forEach((Ze,$t)=>{this.setHeaderEntries($t,Ze)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(He).forEach(([Ze,$t])=>{this.setHeaderEntries(Ze,$t)})}:this.headers=new Map}has(He){return this.init(),this.headers.has(He.toLowerCase())}get(He){this.init();const Ze=this.headers.get(He.toLowerCase());return Ze&&Ze.length>0?Ze[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(He){return this.init(),this.headers.get(He.toLowerCase())||null}append(He,Ze){return this.clone({name:He,value:Ze,op:"a"})}set(He,Ze){return this.clone({name:He,value:Ze,op:"s"})}delete(He,Ze){return this.clone({name:He,value:Ze,op:"d"})}maybeSetNormalizedName(He,Ze){this.normalizedNames.has(Ze)||this.normalizedNames.set(Ze,He)}init(){this.lazyInit&&(this.lazyInit instanceof yt?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(He=>this.applyUpdate(He)),this.lazyUpdate=null))}copyFrom(He){He.init(),Array.from(He.headers.keys()).forEach(Ze=>{this.headers.set(Ze,He.headers.get(Ze)),this.normalizedNames.set(Ze,He.normalizedNames.get(Ze))})}clone(He){const Ze=new yt;return Ze.lazyInit=this.lazyInit&&this.lazyInit instanceof yt?this.lazyInit:this,Ze.lazyUpdate=(this.lazyUpdate||[]).concat([He]),Ze}applyUpdate(He){const Ze=He.name.toLowerCase();switch(He.op){case"a":case"s":let $t=He.value;if("string"==typeof $t&&($t=[$t]),0===$t.length)return;this.maybeSetNormalizedName(He.name,Ze);const fn=("a"===He.op?this.headers.get(Ze):void 0)||[];fn.push(...$t),this.headers.set(Ze,fn);break;case"d":const mn=He.value;if(mn){let gn=this.headers.get(Ze);if(!gn)return;gn=gn.filter(ri=>-1===mn.indexOf(ri)),0===gn.length?(this.headers.delete(Ze),this.normalizedNames.delete(Ze)):this.headers.set(Ze,gn)}else this.headers.delete(Ze),this.normalizedNames.delete(Ze)}}setHeaderEntries(He,Ze){const $t=(Array.isArray(Ze)?Ze:[Ze]).map(mn=>mn.toString()),fn=He.toLowerCase();this.headers.set(fn,$t),this.maybeSetNormalizedName(He,fn)}forEach(He){this.init(),Array.from(this.normalizedNames.keys()).forEach(Ze=>He(this.normalizedNames.get(Ze),this.headers.get(Ze)))}}class bt{encodeKey(He){return vt(He)}encodeValue(He){return vt(He)}decodeKey(He){return decodeURIComponent(He)}decodeValue(He){return decodeURIComponent(He)}}const mt=/%(\d[a-f0-9])/gi,en={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function vt(nt){return encodeURIComponent(nt).replace(mt,(He,Ze)=>en[Ze]??He)}function At(nt){return`${nt}`}class me{constructor(He={}){if(this.updates=null,this.cloneFrom=null,this.encoder=He.encoder||new bt,He.fromString){if(He.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function ft(nt,He){const Ze=new Map;return nt.length>0&&nt.replace(/^\?/,"").split("&").forEach(fn=>{const mn=fn.indexOf("="),[gn,ri]=-1==mn?[He.decodeKey(fn),""]:[He.decodeKey(fn.slice(0,mn)),He.decodeValue(fn.slice(mn+1))],Sn=Ze.get(gn)||[];Sn.push(ri),Ze.set(gn,Sn)}),Ze}(He.fromString,this.encoder)}else He.fromObject?(this.map=new Map,Object.keys(He.fromObject).forEach(Ze=>{const $t=He.fromObject[Ze],fn=Array.isArray($t)?$t.map(At):[At($t)];this.map.set(Ze,fn)})):this.map=null}has(He){return this.init(),this.map.has(He)}get(He){this.init();const Ze=this.map.get(He);return Ze?Ze[0]:null}getAll(He){return this.init(),this.map.get(He)||null}keys(){return this.init(),Array.from(this.map.keys())}append(He,Ze){return this.clone({param:He,value:Ze,op:"a"})}appendAll(He){const Ze=[];return Object.keys(He).forEach($t=>{const fn=He[$t];Array.isArray(fn)?fn.forEach(mn=>{Ze.push({param:$t,value:mn,op:"a"})}):Ze.push({param:$t,value:fn,op:"a"})}),this.clone(Ze)}set(He,Ze){return this.clone({param:He,value:Ze,op:"s"})}delete(He,Ze){return this.clone({param:He,value:Ze,op:"d"})}toString(){return this.init(),this.keys().map(He=>{const Ze=this.encoder.encodeKey(He);return this.map.get(He).map($t=>Ze+"="+this.encoder.encodeValue($t)).join("&")}).filter(He=>""!==He).join("&")}clone(He){const Ze=new me({encoder:this.encoder});return Ze.cloneFrom=this.cloneFrom||this,Ze.updates=(this.updates||[]).concat(He),Ze}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(He=>this.map.set(He,this.cloneFrom.map.get(He))),this.updates.forEach(He=>{switch(He.op){case"a":case"s":const Ze=("a"===He.op?this.map.get(He.param):void 0)||[];Ze.push(At(He.value)),this.map.set(He.param,Ze);break;case"d":if(void 0===He.value){this.map.delete(He.param);break}{let $t=this.map.get(He.param)||[];const fn=$t.indexOf(At(He.value));-1!==fn&&$t.splice(fn,1),$t.length>0?this.map.set(He.param,$t):this.map.delete(He.param)}}}),this.cloneFrom=this.updates=null)}}class rt{constructor(){this.map=new Map}set(He,Ze){return this.map.set(He,Ze),this}get(He){return this.map.has(He)||this.map.set(He,He.defaultValue()),this.map.get(He)}delete(He){return this.map.delete(He),this}has(He){return this.map.has(He)}keys(){return this.map.keys()}}function St(nt){return typeof ArrayBuffer<"u"&&nt instanceof ArrayBuffer}function Mt(nt){return typeof Blob<"u"&&nt instanceof Blob}function cn(nt){return typeof FormData<"u"&&nt instanceof FormData}class dn{constructor(He,Ze,$t,fn){let mn;if(this.url=Ze,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=He.toUpperCase(),function ht(nt){switch(nt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||fn?(this.body=void 0!==$t?$t:null,mn=fn):mn=$t,mn&&(this.reportProgress=!!mn.reportProgress,this.withCredentials=!!mn.withCredentials,mn.responseType&&(this.responseType=mn.responseType),mn.headers&&(this.headers=mn.headers),mn.context&&(this.context=mn.context),mn.params&&(this.params=mn.params)),this.headers||(this.headers=new yt),this.context||(this.context=new rt),this.params){const gn=this.params.toString();if(0===gn.length)this.urlWithParams=Ze;else{const ri=Ze.indexOf("?");this.urlWithParams=Ze+(-1===ri?"?":ri<Ze.length-1?"&":"")+gn}}else this.params=new me,this.urlWithParams=Ze}serializeBody(){return null===this.body?null:St(this.body)||Mt(this.body)||cn(this.body)||function En(nt){return typeof URLSearchParams<"u"&&nt instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof me?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||cn(this.body)?null:Mt(this.body)?this.body.type||null:St(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof me?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(He={}){const Ze=He.method||this.method,$t=He.url||this.url,fn=He.responseType||this.responseType,mn=void 0!==He.body?He.body:this.body,gn=void 0!==He.withCredentials?He.withCredentials:this.withCredentials,ri=void 0!==He.reportProgress?He.reportProgress:this.reportProgress;let Sn=He.headers||this.headers,Ei=He.params||this.params;const Ns=He.context??this.context;return void 0!==He.setHeaders&&(Sn=Object.keys(He.setHeaders).reduce((gs,ms)=>gs.set(ms,He.setHeaders[ms]),Sn)),He.setParams&&(Ei=Object.keys(He.setParams).reduce((gs,ms)=>gs.set(ms,He.setParams[ms]),Ei)),new dn(Ze,$t,mn,{params:Ei,headers:Sn,context:Ns,reportProgress:ri,responseType:fn,withCredentials:gn})}}var Wt=function(nt){return nt[nt.Sent=0]="Sent",nt[nt.UploadProgress=1]="UploadProgress",nt[nt.ResponseHeader=2]="ResponseHeader",nt[nt.DownloadProgress=3]="DownloadProgress",nt[nt.Response=4]="Response",nt[nt.User=5]="User",nt}(Wt||{});class ze{constructor(He,Ze=200,$t="OK"){this.headers=He.headers||new yt,this.status=void 0!==He.status?He.status:Ze,this.statusText=He.statusText||$t,this.url=He.url||null,this.ok=this.status>=200&&this.status<300}}class be extends ze{constructor(He={}){super(He),this.type=Wt.ResponseHeader}clone(He={}){return new be({headers:He.headers||this.headers,status:void 0!==He.status?He.status:this.status,statusText:He.statusText||this.statusText,url:He.url||this.url||void 0})}}class Se extends ze{constructor(He={}){super(He),this.type=Wt.Response,this.body=void 0!==He.body?He.body:null}clone(He={}){return new Se({body:void 0!==He.body?He.body:this.body,headers:He.headers||this.headers,status:void 0!==He.status?He.status:this.status,statusText:He.statusText||this.statusText,url:He.url||this.url||void 0})}}class Nt extends ze{constructor(He){super(He,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${He.url||"(unknown url)"}`:`Http failure response for ${He.url||"(unknown url)"}: ${He.status} ${He.statusText}`,this.error=He.error||null}}function K(nt,He){return{body:He,headers:nt.headers,context:nt.context,observe:nt.observe,params:nt.params,reportProgress:nt.reportProgress,responseType:nt.responseType,withCredentials:nt.withCredentials}}let ge=(()=>{class nt{constructor(Ze){this.handler=Ze}request(Ze,$t,fn={}){let mn;if(Ze instanceof dn)mn=Ze;else{let Sn,Ei;Sn=fn.headers instanceof yt?fn.headers:new yt(fn.headers),fn.params&&(Ei=fn.params instanceof me?fn.params:new me({fromObject:fn.params})),mn=new dn(Ze,$t,void 0!==fn.body?fn.body:null,{headers:Sn,context:fn.context,params:Ei,reportProgress:fn.reportProgress,responseType:fn.responseType||"json",withCredentials:fn.withCredentials})}const gn=(0,h.of)(mn).pipe((0,De.H)(Sn=>this.handler.handle(Sn)));if(Ze instanceof dn||"events"===fn.observe)return gn;const ri=gn.pipe((0,we.p)(Sn=>Sn instanceof Se));switch(fn.observe||"body"){case"body":switch(mn.responseType){case"arraybuffer":return ri.pipe((0,Ie.T)(Sn=>{if(null!==Sn.body&&!(Sn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Sn.body}));case"blob":return ri.pipe((0,Ie.T)(Sn=>{if(null!==Sn.body&&!(Sn.body instanceof Blob))throw new Error("Response is not a Blob.");return Sn.body}));case"text":return ri.pipe((0,Ie.T)(Sn=>{if(null!==Sn.body&&"string"!=typeof Sn.body)throw new Error("Response is not a string.");return Sn.body}));default:return ri.pipe((0,Ie.T)(Sn=>Sn.body))}case"response":return ri;default:throw new Error(`Unreachable: unhandled observe type ${fn.observe}}`)}}delete(Ze,$t={}){return this.request("DELETE",Ze,$t)}get(Ze,$t={}){return this.request("GET",Ze,$t)}head(Ze,$t={}){return this.request("HEAD",Ze,$t)}jsonp(Ze,$t){return this.request("JSONP",Ze,{params:(new me).append($t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ze,$t={}){return this.request("OPTIONS",Ze,$t)}patch(Ze,$t,fn={}){return this.request("PATCH",Ze,K(fn,$t))}post(Ze,$t,fn={}){return this.request("POST",Ze,K(fn,$t))}put(Ze,$t,fn={}){return this.request("PUT",Ze,K(fn,$t))}static{this.\u0275fac=function($t){return new($t||nt)(e.KVO(Ge))}}static{this.\u0275prov=e.jDH({token:nt,factory:nt.\u0275fac})}}return nt})();function z(nt,He){return He(nt)}function Be(nt,He){return(Ze,$t)=>He.intercept(Ze,{handle:fn=>nt(fn,$t)})}const dt=new e.nKC(""),Vt=new e.nKC(""),bn=new e.nKC("");function jn(){let nt=null;return(He,Ze)=>{null===nt&&(nt=((0,e.WQX)(dt,{optional:!0})??[]).reduceRight(Be,z));const $t=(0,e.WQX)(e.$K3),fn=$t.add();return nt(He,Ze).pipe((0,Oe.j)(()=>$t.remove(fn)))}}let nn=(()=>{class nt extends Ge{constructor(Ze,$t){super(),this.backend=Ze,this.injector=$t,this.chain=null,this.pendingTasks=(0,e.WQX)(e.$K3)}handle(Ze){if(null===this.chain){const fn=Array.from(new Set([...this.injector.get(Vt),...this.injector.get(bn,[])]));this.chain=fn.reduceRight((mn,gn)=>function pt(nt,He,Ze){return($t,fn)=>Ze.runInContext(()=>He($t,mn=>nt(mn,fn)))}(mn,gn,this.injector),z)}const $t=this.pendingTasks.add();return this.chain(Ze,fn=>this.backend.handle(fn)).pipe((0,Oe.j)(()=>this.pendingTasks.remove($t)))}static{this.\u0275fac=function($t){return new($t||nt)(e.KVO(Ue),e.KVO(e.uvJ))}}static{this.\u0275prov=e.jDH({token:nt,factory:nt.\u0275fac})}}return nt})();const Ln=/^\)\]\}',?\n/;let qt=(()=>{class nt{constructor(Ze){this.xhrFactory=Ze}handle(Ze){if("JSONP"===Ze.method)throw new e.wOt(-2800,!1);const $t=this.xhrFactory;return($t.\u0275loadImpl?(0,ne.H)($t.\u0275loadImpl()):(0,h.of)(null)).pipe((0,Ne.n)(()=>new Z.c(mn=>{const gn=$t.build();if(gn.open(Ze.method,Ze.urlWithParams),Ze.withCredentials&&(gn.withCredentials=!0),Ze.headers.forEach((xi,Re)=>gn.setRequestHeader(xi,Re.join(","))),Ze.headers.has("Accept")||gn.setRequestHeader("Accept","application/json, text/plain, */*"),!Ze.headers.has("Content-Type")){const xi=Ze.detectContentTypeHeader();null!==xi&&gn.setRequestHeader("Content-Type",xi)}if(Ze.responseType){const xi=Ze.responseType.toLowerCase();gn.responseType="json"!==xi?xi:"text"}const ri=Ze.serializeBody();let Sn=null;const Ei=()=>{if(null!==Sn)return Sn;const xi=gn.statusText||"OK",Re=new yt(gn.getAllResponseHeaders()),Rt=function Qt(nt){return"responseURL"in nt&&nt.responseURL?nt.responseURL:/^X-Request-URL:/m.test(nt.getAllResponseHeaders())?nt.getResponseHeader("X-Request-URL"):null}(gn)||Ze.url;return Sn=new be({headers:Re,status:gn.status,statusText:xi,url:Rt}),Sn},Ns=()=>{let{headers:xi,status:Re,statusText:Rt,url:oe}=Ei(),_e=null;204!==Re&&(_e=typeof gn.response>"u"?gn.responseText:gn.response),0===Re&&(Re=_e?200:0);let $e=Re>=200&&Re<300;if("json"===Ze.responseType&&"string"==typeof _e){const Pt=_e;_e=_e.replace(Ln,"");try{_e=""!==_e?JSON.parse(_e):null}catch(tn){_e=Pt,$e&&($e=!1,_e={error:tn,text:_e})}}$e?(mn.next(new Se({body:_e,headers:xi,status:Re,statusText:Rt,url:oe||void 0})),mn.complete()):mn.error(new Nt({error:_e,headers:xi,status:Re,statusText:Rt,url:oe||void 0}))},gs=xi=>{const{url:Re}=Ei(),Rt=new Nt({error:xi,status:gn.status||0,statusText:gn.statusText||"Unknown Error",url:Re||void 0});mn.error(Rt)};let ms=!1;const Cs=xi=>{ms||(mn.next(Ei()),ms=!0);let Re={type:Wt.DownloadProgress,loaded:xi.loaded};xi.lengthComputable&&(Re.total=xi.total),"text"===Ze.responseType&&gn.responseText&&(Re.partialText=gn.responseText),mn.next(Re)},Es=xi=>{let Re={type:Wt.UploadProgress,loaded:xi.loaded};xi.lengthComputable&&(Re.total=xi.total),mn.next(Re)};return gn.addEventListener("load",Ns),gn.addEventListener("error",gs),gn.addEventListener("timeout",gs),gn.addEventListener("abort",gs),Ze.reportProgress&&(gn.addEventListener("progress",Cs),null!==ri&&gn.upload&&gn.upload.addEventListener("progress",Es)),gn.send(ri),mn.next({type:Wt.Sent}),()=>{gn.removeEventListener("error",gs),gn.removeEventListener("abort",gs),gn.removeEventListener("load",Ns),gn.removeEventListener("timeout",gs),Ze.reportProgress&&(gn.removeEventListener("progress",Cs),null!==ri&&gn.upload&&gn.upload.removeEventListener("progress",Es)),gn.readyState!==gn.DONE&&gn.abort()}})))}static{this.\u0275fac=function($t){return new($t||nt)(e.KVO(Me.N0))}}static{this.\u0275prov=e.jDH({token:nt,factory:nt.\u0275fac})}}return nt})();const st=new e.nKC("XSRF_ENABLED"),wt=new e.nKC("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),yn=new e.nKC("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Hn{}let ti=(()=>{class nt{constructor(Ze,$t,fn){this.doc=Ze,this.platform=$t,this.cookieName=fn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Ze=this.doc.cookie||"";return Ze!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,Me._b)(Ze,this.cookieName),this.lastCookieString=Ze),this.lastToken}static{this.\u0275fac=function($t){return new($t||nt)(e.KVO(Me.qQ),e.KVO(e.Agw),e.KVO(wt))}}static{this.\u0275prov=e.jDH({token:nt,factory:nt.\u0275fac})}}return nt})();function ai(nt,He){const Ze=nt.url.toLowerCase();if(!(0,e.WQX)(st)||"GET"===nt.method||"HEAD"===nt.method||Ze.startsWith("http://")||Ze.startsWith("https://"))return He(nt);const $t=(0,e.WQX)(Hn).getToken(),fn=(0,e.WQX)(yn);return null!=$t&&!nt.headers.has(fn)&&(nt=nt.clone({headers:nt.headers.set(fn,$t)})),He(nt)}var us=function(nt){return nt[nt.Interceptors=0]="Interceptors",nt[nt.LegacyInterceptors=1]="LegacyInterceptors",nt[nt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",nt[nt.NoXsrfProtection=3]="NoXsrfProtection",nt[nt.JsonpSupport=4]="JsonpSupport",nt[nt.RequestsMadeViaParent=5]="RequestsMadeViaParent",nt[nt.Fetch=6]="Fetch",nt}(us||{});function Bi(nt,He){return{\u0275kind:nt,\u0275providers:He}}function Ps(...nt){const He=[ge,qt,nn,{provide:Ge,useExisting:nn},{provide:Ue,useExisting:qt},{provide:Vt,useValue:ai,multi:!0},{provide:st,useValue:!0},{provide:Hn,useClass:ti}];for(const Ze of nt)He.push(...Ze.\u0275providers);return(0,e.EmA)(He)}const qs=new e.nKC("LEGACY_INTERCEPTOR_FN");let Xe=(()=>{class nt{static{this.\u0275fac=function($t){return new($t||nt)}}static{this.\u0275mod=e.$C({type:nt})}static{this.\u0275inj=e.G2t({providers:[Ps(Bi(us.LegacyInterceptors,[{provide:qs,useFactory:jn},{provide:Vt,useExisting:qs,multi:!0}]))]})}}return nt})()},7705:(pn,ct,N)=>{N.d(ct,{$C:()=>Po,$K3:()=>G1,$MX:()=>Tt,AVh:()=>Jm,Af3:()=>Xo,Agw:()=>Uh,B4B:()=>Ud,BIS:()=>cm,BMQ:()=>Pm,C4Q:()=>tp,C5r:()=>D1,Co$:()=>Fb,DNE:()=>nv,EBC:()=>e_,EFF:()=>Vv,EJ8:()=>mo,EmA:()=>Pu,FRM:()=>Si,FS9:()=>Xm,FsC:()=>po,G2t:()=>bn,GBs:()=>_1,GFd:()=>U_,H3F:()=>j1,H5H:()=>sg,H8p:()=>uu,HbH:()=>Rv,Hbi:()=>fT,JRh:()=>tg,JZv:()=>qt,Jv_:()=>Nb,KH2:()=>uf,KVO:()=>Ke,Kcf:()=>Mf,L39:()=>MT,LfX:()=>nn,MKu:()=>Pg,Mr5:()=>ng,Mz_:()=>Gp,NAR:()=>mv,NYb:()=>jM,Njj:()=>Sr,O8t:()=>Yt,OA$:()=>Zn,OM3:()=>s,Ocv:()=>mM,Ol2:()=>Pb,PLl:()=>bp,QTQ:()=>m_,Ql9:()=>vM,QuC:()=>Ks,R7$:()=>f_,RV6:()=>lv,Rfq:()=>bt,RxE:()=>Bn,SKi:()=>Za,SdG:()=>gv,SpI:()=>$p,TL$:()=>dp,Tbb:()=>Ue,UyX:()=>f,VBU:()=>Bs,Vns:()=>Ch,Vt3:()=>Fm,WHO:()=>Y1,WPN:()=>rl,WQX:()=>Qe,XpG:()=>pv,Xx1:()=>Is,Y8G:()=>Hm,Z63:()=>Wl,ZF7:()=>au,_9s:()=>G,_q3:()=>Ag,a0P:()=>ET,aKT:()=>m,aNF:()=>Lb,abz:()=>Lf,bIt:()=>qm,bMT:()=>e1,bVm:()=>jp,bc$:()=>lm,bkB:()=>Xd,brH:()=>n1,c1b:()=>Zp,cWb:()=>Tf,czy:()=>Co,e01:()=>z1,e5t:()=>a,eBV:()=>Io,eq3:()=>$b,eu8:()=>Ym,fpN:()=>hT,gRc:()=>ZM,gXe:()=>gn,giA:()=>q1,h9k:()=>xl,i5U:()=>t1,ii3:()=>s1,j41:()=>Lp,jDH:()=>dt,jNT:()=>zm,joV:()=>Tc,k0s:()=>Bp,kS0:()=>S,kdw:()=>cc,lNU:()=>At,l_i:()=>Yb,lsd:()=>b1,mGM:()=>g1,mq5:()=>sb,n$t:()=>sd,nI1:()=>Jb,nKC:()=>wt,nM4:()=>V_,naY:()=>QM,npT:()=>Qa,nrm:()=>$m,o8S:()=>mf,oH4:()=>Z1,osQ:()=>x,pXf:()=>Ib,plB:()=>yg,qSk:()=>bl,qex:()=>Vp,rOR:()=>Wp,rXU:()=>Kh,rcV:()=>nd,s1E:()=>qb,sFG:()=>fe,sMw:()=>zb,sZ2:()=>fh,sdS:()=>ov,tSv:()=>Jg,uvJ:()=>od,vPA:()=>tl,w6W:()=>rD,wOt:()=>me,wni:()=>v1,xGo:()=>ac,xc7:()=>Zm,xe9:()=>em,zZn:()=>Dd,zcH:()=>Xu,zjR:()=>cv,zvX:()=>ig});var e=N(1413),h=N(8359),ne=N(1985),Z=N(7786),De=N(4412),we=N(7673),Ie=N(7647),Oe=N(5558),Ne=N(3294);function Me(t){for(let n in t)if(t[n]===Me)return n;throw Error("Could not find renamed property on target object.")}function Ge(t,n){for(const i in n)n.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=n[i])}function Ue(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ue).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const i=n.indexOf("\n");return-1===i?n:n.substring(0,i)}function yt(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const _t=Me({__forward_ref__:Me});function bt(t){return t.__forward_ref__=bt,t.toString=function(){return Ue(this())},t}function ft(t){return mt(t)?t():t}function mt(t){return"function"==typeof t&&t.hasOwnProperty(_t)&&t.__forward_ref__===bt}function en(t){return t&&!!t.\u0275providers}const At="https://g.co/ng/security#xss";class me extends Error{constructor(n,i){super(function at(t,n){return`NG0${Math.abs(t)}${n?": "+n:""}`}(n,i)),this.code=n}}function rt(t){return"string"==typeof t?t:null==t?"":String(t)}function En(t,n){throw new me(-201,!1)}function L(t,n,i,o){throw new Error(`ASSERTION ERROR: ${t}`+(null==o?"":` [Expected=> ${i} ${o} ${n} <=Actual]`))}function dt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function bn(t){return{providers:t.providers||[],imports:t.imports||[]}}function jn(t){return Vn(t,xt)||Vn(t,re)}function nn(t){return null!==jn(t)}function Vn(t,n){return t.hasOwnProperty(n)?t[n]:null}function Ci(t){return t&&(t.hasOwnProperty(ke)||t.hasOwnProperty(xe))?t[ke]:null}const xt=Me({\u0275prov:Me}),ke=Me({\u0275inj:Me}),re=Me({ngInjectableDef:Me}),xe=Me({ngInjectorDef:Me});var Ve=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Ve||{});let ut;function Ft(){return ut}function sn(t){const n=ut;return ut=t,n}function Ln(t,n,i){const o=jn(t);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:i&Ve.Optional?null:void 0!==n?n:void En(Ue(t))}const qt=globalThis;class wt{constructor(n,i){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=dt({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Mn={},io="__NG_DI_FLAG__",an="ngTempTokenPath",ye=/\n/gm,Fe="__source";let Xe;function on(t){const n=Xe;return Xe=t,n}function gt(t,n=Ve.Default){if(void 0===Xe)throw new me(-203,!1);return null===Xe?Ln(t,void 0,n):Xe.get(t,n&Ve.Optional?null:void 0,n)}function Ke(t,n=Ve.Default){return(Ft()||gt)(ft(t),n)}function Qe(t,n=Ve.Default){return Ke(t,Bt(n))}function Bt(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function hn(t){const n=[];for(let i=0;i<t.length;i++){const o=ft(t[i]);if(Array.isArray(o)){if(0===o.length)throw new me(900,!1);let d,g=Ve.Default;for(let T=0;T<o.length;T++){const R=o[T],B=He(R);"number"==typeof B?-1===B?d=R.token:g|=B:d=R}n.push(Ke(d,g))}else n.push(Ke(o))}return n}function nt(t,n){return t[io]=n,t.prototype[io]=n,t}function He(t){return t[io]}function fn(t){return{toString:t}.toString()}var mn=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(mn||{}),gn=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(gn||{});const ri={},Sn=[],Ei=Me({\u0275cmp:Me}),Ns=Me({\u0275dir:Me}),gs=Me({\u0275pipe:Me}),ms=Me({\u0275mod:Me}),Cs=Me({\u0275fac:Me}),Es=Me({__NG_ELEMENT_ID__:Me}),xi=Me({__NG_ENV_ID__:Me});function Re(t,n,i){let o=t.length;for(;;){const d=t.indexOf(n,i);if(-1===d)return d;if(0===d||t.charCodeAt(d-1)<=32){const g=n.length;if(d+g===o||t.charCodeAt(d+g)<=32)return d}i=d+1}}function Rt(t,n,i){let o=0;for(;o<i.length;){const d=i[o];if("number"==typeof d){if(0!==d)break;o++;const g=i[o++],T=i[o++],R=i[o++];t.setAttribute(n,T,R,g)}else{const g=d,T=i[++o];_e(g)?t.setProperty(n,g,T):t.setAttribute(n,g,T),o++}}return o}function oe(t){return 3===t||4===t||6===t}function _e(t){return 64===t.charCodeAt(0)}function $e(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let i=-1;for(let o=0;o<n.length;o++){const d=n[o];"number"==typeof d?i=d:0===i||Pt(t,i,d,null,-1===i||2===i?n[++o]:null)}}return t}function Pt(t,n,i,o,d){let g=0,T=t.length;if(-1===n)T=-1;else for(;g<t.length;){const R=t[g++];if("number"==typeof R){if(R===n){T=-1;break}if(R>n){T=g-1;break}}}for(;g<t.length;){const R=t[g];if("number"==typeof R)break;if(R===i){if(null===o)return void(null!==d&&(t[g+1]=d));if(o===t[g+1])return void(t[g+2]=d)}g++,null!==o&&g++,null!==d&&g++}-1!==T&&(t.splice(T,0,n),g=T+1),t.splice(g++,0,i),null!==o&&t.splice(g++,0,o),null!==d&&t.splice(g++,0,d)}const tn="ng-template";function An(t,n,i){let o=0,d=!0;for(;o<t.length;){let g=t[o++];if("string"==typeof g&&d){const T=t[o++];if(i&&"class"===g&&-1!==Re(T.toLowerCase(),n,0))return!0}else{if(1===g){for(;o<t.length&&"string"==typeof(g=t[o++]);)if(g.toLowerCase()===n)return!0;return!1}"number"==typeof g&&(d=!1)}}return!1}function zn(t){return 4===t.type&&t.value!==tn}function hi(t,n,i){return n===(4!==t.type||i?t.value:tn)}function Kn(t,n,i){let o=4;const d=t.attrs||[],g=function Fo(t){for(let n=0;n<t.length;n++)if(oe(t[n]))return n;return t.length}(d);let T=!1;for(let R=0;R<n.length;R++){const B=n[R];if("number"!=typeof B){if(!T)if(4&o){if(o=2|1&o,""!==B&&!hi(t,B,i)||""===B&&1===n.length){if(li(o))return!1;T=!0}}else{const W=8&o?B:n[++R];if(8&o&&null!==t.attrs){if(!An(t.attrs,W,i)){if(li(o))return!1;T=!0}continue}const qe=es(8&o?"class":B,d,zn(t),i);if(-1===qe){if(li(o))return!1;T=!0;continue}if(""!==W){let Ct;Ct=qe>g?"":d[qe+1].toLowerCase();const Lt=8&o?Ct:null;if(Lt&&-1!==Re(Lt,W,0)||2&o&&W!==Ct){if(li(o))return!1;T=!0}}}}else{if(!T&&!li(o)&&!li(B))return!1;if(T&&li(B))continue;T=!1,o=B|1&o}}return li(o)||T}function li(t){return 0==(1&t)}function es(t,n,i,o){if(null===n)return-1;let d=0;if(o||!i){let g=!1;for(;d<n.length;){const T=n[d];if(T===t)return d;if(3===T||6===T)g=!0;else{if(1===T||2===T){let R=n[++d];for(;"string"==typeof R;)R=n[++d];continue}if(4===T)break;if(0===T){d+=4;continue}}d+=g?1:2}return-1}return function Ri(t,n){let i=t.indexOf(4);if(i>-1)for(i++;i<t.length;){const o=t[i];if("number"==typeof o)return-1;if(o===n)return i;i++}return-1}(n,t)}function Ls(t,n,i=!1){for(let o=0;o<n.length;o++)if(Kn(t,n[o],i))return!0;return!1}function Xs(t,n){e:for(let i=0;i<n.length;i++){const o=n[i];if(t.length===o.length){for(let d=0;d<t.length;d++)if(t[d]!==o[d])continue e;return!0}}return!1}function as(t,n){return t?":not("+n.trim()+")":n}function ur(t){let n=t[0],i=1,o=2,d="",g=!1;for(;i<t.length;){let T=t[i];if("string"==typeof T)if(2&o){const R=t[++i];d+="["+T+(R.length>0?'="'+R+'"':"")+"]"}else 8&o?d+="."+T:4&o&&(d+=" "+T);else""!==d&&!li(T)&&(n+=as(g,d),d=""),o=T,g=g||!li(o);i++}return""!==d&&(n+=as(g,d)),n}function Bs(t){return fn(()=>{const n=hs(t),i={...n,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===mn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||gn.Emulated,styles:t.styles||Sn,_:null,schemas:t.schemas||null,tView:null,id:""};Qs(i);const o=t.dependencies;return i.directiveDefs=Zs(o,!1),i.pipeDefs=Zs(o,!0),i.id=function Nr(t){let n=0;const i=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const d of i)n=Math.imul(31,n)+d.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(i),i})}function Tr(t){return yi(t)||ws(t)}function hr(t){return null!==t}function Po(t){return fn(()=>({type:t.type,bootstrap:t.bootstrap||Sn,declarations:t.declarations||Sn,imports:t.imports||Sn,exports:t.exports||Sn,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Lo(t,n){if(null==t)return ri;const i={};for(const o in t)if(t.hasOwnProperty(o)){let d=t[o],g=d;Array.isArray(d)&&(g=d[1],d=d[0]),i[d]=o,n&&(n[d]=g)}return i}function po(t){return fn(()=>{const n=hs(t);return Qs(n),n})}function mo(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function yi(t){return t[Ei]||null}function ws(t){return t[Ns]||null}function qi(t){return t[gs]||null}function Ks(t){const n=yi(t)||ws(t)||qi(t);return null!==n&&n.standalone}function Ds(t,n){const i=t[ms]||null;if(!i&&!0===n)throw new Error(`Type ${Ue(t)} does not have '\u0275mod' property.`);return i}function hs(t){const n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||ri,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||Sn,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lo(t.inputs,n),outputs:Lo(t.outputs)}}function Qs(t){t.features?.forEach(n=>n(t))}function Zs(t,n){if(!t)return null;const i=n?qi:Tr;return()=>("function"==typeof t?t():t).map(o=>i(o)).filter(hr)}const Vi=0,On=1,ni=2,Xi=3,Us=4,go=5,so=6,Ko=7,Wi=8,fr=9,oo=10,ii=11,zr=12,Fa=13,qr=14,Ni=15,Xr=16,ls=17,Mo=18,Qo=19,Fr=20,Ss=21,_o=22,pr=23,ua=24,gi=25,Ar=1,mr=2,ro=7,Bo=9,ks=11;function Fs(t){return Array.isArray(t)&&"object"==typeof t[Ar]}function Ki(t){return Array.isArray(t)&&!0===t[Ar]}function gr(t){return 0!=(4&t.flags)}function Vo(t){return t.componentOffset>-1}function Kr(t){return 1==(1&t.flags)}function Mi(t){return!!t.template}function ha(t){return 0!=(512&t[ni])}function jo(t,n){return t.hasOwnProperty(Cs)?t[Cs]:null}const Go=Symbol("SIGNAL");function Nl(t,n){return(null===t||"object"!=typeof t)&&Object.is(t,n)}let vo=null,Qr=!1;function Ho(t){const n=vo;return vo=t,n}const Aa={version:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{}};function fl(t){if(Qr)throw new Error("");if(null===vo)return;const n=vo.nextProducerIndex++;Ti(vo),n<vo.producerNode.length&&vo.producerNode[n]!==t&&Ma(vo)&&sr(vo.producerNode[n],vo.producerIndexOfThis[n]),vo.producerNode[n]!==t&&(vo.producerNode[n]=t,vo.producerIndexOfThis[n]=Ma(vo)?pl(t,vo,n):0),vo.producerLastReadVersion[n]=t.version}function ir(t){if(!Ma(t)||t.dirty){if(!t.producerMustRecompute(t)&&!Da(t))return void(t.dirty=!1);t.producerRecomputeValue(t),t.dirty=!1}}function Pa(t){if(void 0===t.liveConsumerNode)return;const n=Qr;Qr=!0;try{for(const i of t.liveConsumerNode)i.dirty||pa(i)}finally{Qr=n}}function To(){return!1!==vo?.consumerAllowSignalWrites}function pa(t){t.dirty=!0,Pa(t),t.consumerMarkedDirty?.(t)}function Uo(t){return t&&(t.nextProducerIndex=0),Ho(t)}function Lr(t,n){if(Ho(n),t&&void 0!==t.producerNode&&void 0!==t.producerIndexOfThis&&void 0!==t.producerLastReadVersion){if(Ma(t))for(let i=t.nextProducerIndex;i<t.producerNode.length;i++)sr(t.producerNode[i],t.producerIndexOfThis[i]);for(;t.producerNode.length>t.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function Da(t){Ti(t);for(let n=0;n<t.producerNode.length;n++){const i=t.producerNode[n],o=t.producerLastReadVersion[n];if(o!==i.version||(ir(i),o!==i.version))return!0}return!1}function Zo(t){if(Ti(t),Ma(t))for(let n=0;n<t.producerNode.length;n++)sr(t.producerNode[n],t.producerIndexOfThis[n]);t.producerNode.length=t.producerLastReadVersion.length=t.producerIndexOfThis.length=0,t.liveConsumerNode&&(t.liveConsumerNode.length=t.liveConsumerIndexOfThis.length=0)}function pl(t,n,i){if(Zr(t),Ti(t),0===t.liveConsumerNode.length)for(let o=0;o<t.producerNode.length;o++)t.producerIndexOfThis[o]=pl(t.producerNode[o],t,o);return t.liveConsumerIndexOfThis.push(i),t.liveConsumerNode.push(n)-1}function sr(t,n){if(Zr(t),Ti(t),1===t.liveConsumerNode.length)for(let o=0;o<t.producerNode.length;o++)sr(t.producerNode[o],t.producerIndexOfThis[o]);const i=t.liveConsumerNode.length-1;if(t.liveConsumerNode[n]=t.liveConsumerNode[i],t.liveConsumerIndexOfThis[n]=t.liveConsumerIndexOfThis[i],t.liveConsumerNode.length--,t.liveConsumerIndexOfThis.length--,n<t.liveConsumerNode.length){const o=t.liveConsumerIndexOfThis[n],d=t.liveConsumerNode[n];Ti(d),d.producerIndexOfThis[o]=n}}function Ma(t){return t.consumerIsAlwaysLive||(t?.liveConsumerNode?.length??0)>0}function Ti(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Zr(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}let Al=function Jl(){throw new Error};function Pi(){Al()}let Jr=null;function tl(t,n){const i=Object.create(Eo);function o(){return fl(i),i.value}return i.value=t,n?.equal&&(i.equal=n.equal),o.set=ae,o.update=Y,o.mutate=te,o.asReadonly=We,o[Go]=i,o}const Eo=(()=>({...Aa,equal:Nl,readonlyFn:void 0}))();function P(t){t.version++,Pa(t),Jr?.()}function ae(t){const n=this[Go];To()||Pi(),n.equal(n.value,t)||(n.value=t,P(n))}function Y(t){To()||Pi(),ae.call(this,t(this[Go].value))}function te(t){const n=this[Go];To()||Pi(),t(n.value),P(n)}function We(){const t=this[Go];if(void 0===t.readonlyFn){const n=()=>this();n[Go]=t,t.readonlyFn=n}return t.readonlyFn}function Yt(t){const n=Ho(null);try{return t()}finally{Ho(n)}}const Gn=()=>{},ts=(()=>({...Aa,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:t=>{t.schedule(t.ref)},hasRun:!1,cleanupFn:Gn}))();class Si{constructor(n,i,o){this.previousValue=n,this.currentValue=i,this.firstChange=o}isFirstChange(){return this.firstChange}}function Zn(){return ki}function ki(t){return t.type.prototype.ngOnChanges&&(t.setInput=Li),Hi}function Hi(){const t=cs(this),n=t?.current;if(n){const i=t.previous;if(i===ri)t.previous=n;else for(let o in n)i[o]=n[o];t.current=null,this.ngOnChanges(n)}}function Li(t,n,i,o){const d=this.declaredInputs[i],g=cs(t)||function So(t,n){return t[$o]=n}(t,{previous:ri,current:null}),T=g.current||(g.current={}),R=g.previous,B=R[d];T[d]=new Si(B&&B.currentValue,n,R===ri),t[o]=n}Zn.ngInherit=!0;const $o="__ngSimpleChanges__";function cs(t){return t[$o]||null}const ns=function(t,n,i){},Yo="svg";function Di(t){for(;Array.isArray(t);)t=t[Vi];return t}function ma(t,n){return Di(n[t])}function ao(t,n){return Di(n[t.index])}function Ba(t,n){return t.data[n]}function na(t,n){return t[n]}function lo(t,n){const i=n[t];return Fs(i)?i:i[Vi]}function xo(t,n){return null==n?null:t[n]}function Va(t){t[ls]=0}function Ta(t){1024&t[ni]||(t[ni]|=1024,nl(t,1))}function gl(t){1024&t[ni]&&(t[ni]&=-1025,nl(t,-1))}function nl(t,n){let i=t[Xi];if(null===i)return;i[go]+=n;let o=i;for(i=i[Xi];null!==i&&(1===n&&1===o[go]||-1===n&&0===o[go]);)i[go]+=n,o=i,i=i[Xi]}function Ll(t,n){if(256==(256&t[ni]))throw new me(911,!1);null===t[Ss]&&(t[Ss]=[]),t[Ss].push(n)}const Jn={lFrame:Vr(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Sa(){return Jn.bindingsEnabled}function Bl(){return null!==Jn.skipHydrationRootTNode}function Zt(){return Jn.lFrame.lView}function si(){return Jn.lFrame.tView}function Io(t){return Jn.lFrame.contextLView=t,t[Wi]}function Sr(t){return Jn.lFrame.contextLView=null,t}function fs(){let t=vl();for(;null!==t&&64===t.type;)t=t.parent;return t}function vl(){return Jn.lFrame.currentTNode}function tc(){const t=Jn.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function sa(t,n){const i=Jn.lFrame;i.currentTNode=t,i.isParent=n}function ka(){return Jn.lFrame.isParent}function Dc(){Jn.lFrame.isParent=!1}function co(){const t=Jn.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function V(){return Jn.lFrame.bindingIndex++}function O(t){const n=Jn.lFrame,i=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,i}function Q(t){Jn.lFrame.inI18n=t}function Te(t,n){const i=Jn.lFrame;i.bindingIndex=i.bindingRootIndex=t,Xt(n)}function Xt(t){Jn.lFrame.currentDirectiveIndex=t}function Ht(t){const n=Jn.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}function Pn(){return Jn.lFrame.currentQueryIndex}function wi(t){Jn.lFrame.currentQueryIndex=t}function bs(t){const n=t[On];return 2===n.type?n.declTNode:1===n.type?t[so]:null}function Fi(t,n,i){if(i&Ve.SkipSelf){let d=n,g=t;for(;!(d=d.parent,null!==d||i&Ve.Host||(d=bs(g),null===d||(g=g[qr],10&d.type))););if(null===d)return!1;n=d,t=g}const o=Jn.lFrame=Ts();return o.currentTNode=n,o.lView=t,!0}function kr(t){const n=Ts(),i=t[On];Jn.lFrame=n,n.currentTNode=i.firstChild,n.lView=t,n.tView=i,n.contextLView=t,n.bindingIndex=i.bindingStartIndex,n.inI18n=!1}function Ts(){const t=Jn.lFrame,n=null===t?null:t.child;return null===n?Vr(t):n}function Vr(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function il(){const t=Jn.lFrame;return Jn.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ra=il;function Mc(){const t=il();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Jo(){return Jn.lFrame.selectedIndex}function ja(t){Jn.lFrame.selectedIndex=t}function js(){const t=Jn.lFrame;return Ba(t.tView,t.selectedIndex)}function bl(){Jn.lFrame.currentNamespace=Yo}function Tc(){!function _a(){Jn.lFrame.currentNamespace=null}()}let Ga=!0;function sl(){return Ga}function eo(t){Ga=t}function Gs(t,n){for(let i=n.directiveStart,o=n.directiveEnd;i<o;i++){const g=t.data[i].type.prototype,{ngAfterContentInit:T,ngAfterContentChecked:R,ngAfterViewInit:B,ngAfterViewChecked:W,ngOnDestroy:he}=g;T&&(t.contentHooks??=[]).push(-i,T),R&&((t.contentHooks??=[]).push(i,R),(t.contentCheckHooks??=[]).push(i,R)),B&&(t.viewHooks??=[]).push(-i,B),W&&((t.viewHooks??=[]).push(i,W),(t.viewCheckHooks??=[]).push(i,W)),null!=he&&(t.destroyHooks??=[]).push(i,he)}}function xa(t,n,i){Ec(t,n,3,i)}function Ha(t,n,i,o){(3&t[ni])===i&&Ec(t,n,i,o)}function nc(t,n){let i=t[ni];(3&i)===n&&(i&=8191,i+=1,t[ni]=i)}function Ec(t,n,i,o){const g=o??-1,T=n.length-1;let R=0;for(let B=void 0!==o?65535&t[ls]:0;B<T;B++)if("number"==typeof n[B+1]){if(R=n[B],null!=o&&R>=o)break}else n[B]<0&&(t[ls]+=65536),(R<g||-1==g)&&(Sc(t,i,n,B),t[ls]=(4294901760&t[ls])+B+2),B++}function to(t,n){ns(4,t,n);const i=Ho(null);try{n.call(t)}finally{Ho(i),ns(5,t,n)}}function Sc(t,n,i,o){const d=i[o]<0,g=i[o+1],R=t[d?-i[o]:i[o]];d?t[ni]>>13<t[ls]>>16&&(3&t[ni])===n&&(t[ni]+=8192,to(R,g)):to(R,g)}const ol=-1;class yl{constructor(n,i,o){this.factory=n,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=o}}function wl(t){return t!==ol}function $a(t){return 32767&t}function ic(t,n){let i=function Dl(t){return t>>16}(t),o=n;for(;i>0;)o=o[qr],i--;return o}let sc=!0;function ba(t){const n=sc;return sc=t,n}const Gc=255,jr=5;let oc=0;const $s={};function Ya(t,n){const i=Ic(t,n);if(-1!==i)return i;const o=n[On];o.firstCreatePass&&(t.injectorIndex=n.length,yr(o.data,t),yr(n,null),yr(o.blueprint,null));const d=Oa(t,n),g=t.injectorIndex;if(wl(d)){const T=$a(d),R=ic(d,n),B=R[On].data;for(let W=0;W<8;W++)n[g+W]=R[T+W]|B[T+W]}return n[g+8]=d,g}function yr(t,n){t.push(0,0,0,0,0,0,0,0,n)}function Ic(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Oa(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,o=null,d=n;for(;null!==d;){if(o=no(d),null===o)return ol;if(i++,d=d[qr],-1!==o.injectorIndex)return o.injectorIndex|i<<16}return ol}function Hc(t,n,i){!function zo(t,n,i){let o;"string"==typeof i?o=i.charCodeAt(0)||0:i.hasOwnProperty(Es)&&(o=i[Es]),null==o&&(o=i[Es]=oc++);const d=o&Gc;n.data[t+(d>>jr)]|=1<<d}(t,n,i)}function Ml(t,n,i){if(i&Ve.Optional||void 0!==t)return t;En()}function Hl(t,n,i,o){if(i&Ve.Optional&&void 0===o&&(o=null),!(i&(Ve.Self|Ve.Host))){const d=t[fr],g=sn(void 0);try{return d?d.get(n,o,i&Ve.Optional):Ln(n,o,i&Ve.Optional)}finally{sn(g)}}return Ml(o,0,i)}function Uc(t,n,i,o=Ve.Default,d){if(null!==t){if(2048&n[ni]&&!(o&Ve.Self)){const T=function ud(t,n,i,o,d){let g=t,T=n;for(;null!==g&&null!==T&&2048&T[ni]&&!(512&T[ni]);){const R=Oc(g,T,i,o|Ve.Self,$s);if(R!==$s)return R;let B=g.parent;if(!B){const W=T[Fr];if(W){const he=W.get(i,$s,o);if(he!==$s)return he}B=no(T),T=T[qr]}g=B}return d}(t,n,i,o,$s);if(T!==$s)return T}const g=Oc(t,n,i,o,$s);if(g!==$s)return g}return Hl(n,i,o,d)}function Oc(t,n,i,o,d){const g=function Sd(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Es)?t[Es]:void 0;return"number"==typeof n?n>=0?n&Gc:$c:n}(i);if("function"==typeof g){if(!Fi(n,t,o))return o&Ve.Host?Ml(d,0,o):Hl(n,i,o,d);try{let T;if(T=g(o),null!=T||o&Ve.Optional)return T;En()}finally{ra()}}else if("number"==typeof g){let T=null,R=Ic(t,n),B=ol,W=o&Ve.Host?n[Ni][so]:null;for((-1===R||o&Ve.SkipSelf)&&(B=-1===R?Oa(t,n):n[R+8],B!==ol&&kd(o,!1)?(T=n[On],R=$a(B),n=ic(B,n)):R=-1);-1!==R;){const he=n[On];if(rc(g,R,he.data)){const qe=di(R,n,i,T,o,W);if(qe!==$s)return qe}B=n[R+8],B!==ol&&kd(o,n[On].data[R+8]===W)&&rc(g,R,n)?(T=he,R=$a(B),n=ic(B,n)):R=-1}}return d}function di(t,n,i,o,d,g){const T=n[On],R=T.data[t+8],he=Ra(R,T,i,null==o?Vo(R)&&sc:o!=T&&0!=(3&R.type),d&Ve.Host&&g===R);return null!==he?Cr(n,T,he,R):$s}function Ra(t,n,i,o,d){const g=t.providerIndexes,T=n.data,R=1048575&g,B=t.directiveStart,he=g>>20,Ct=d?R+he:t.directiveEnd;for(let Lt=o?R:R+he;Lt<Ct;Lt++){const ln=T[Lt];if(Lt<B&&i===ln||Lt>=B&&ln.type===i)return Lt}if(d){const Lt=T[B];if(Lt&&Mi(Lt)&&Lt.type===i)return B}return null}function Cr(t,n,i,o){let d=t[i];const g=n.data;if(function dd(t){return t instanceof yl}(d)){const T=d;T.resolving&&function St(t,n){const i=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new me(-200,`Circular dependency in DI detected for ${t}${i}`)}(function ht(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():rt(t)}(g[i]));const R=ba(T.canSeeViewProviders);T.resolving=!0;const W=T.injectImpl?sn(T.injectImpl):null;Fi(t,o,Ve.Default);try{d=t[i]=T.factory(void 0,g,t,o),n.firstCreatePass&&i>=o.directiveStart&&function xr(t,n,i){const{ngOnChanges:o,ngOnInit:d,ngDoCheck:g}=n.type.prototype;if(o){const T=ki(n);(i.preOrderHooks??=[]).push(t,T),(i.preOrderCheckHooks??=[]).push(t,T)}d&&(i.preOrderHooks??=[]).push(0-t,d),g&&((i.preOrderHooks??=[]).push(t,g),(i.preOrderCheckHooks??=[]).push(t,g))}(i,g[i],n)}finally{null!==W&&sn(W),ba(R),T.resolving=!1,ra()}}return d}function rc(t,n,i){return!!(i[n+(t>>jr)]&1<<t)}function kd(t,n){return!(t&Ve.Self||t&Ve.Host&&n)}class Oo{constructor(n,i){this._tNode=n,this._lView=i}get(n,i,o){return Uc(this._tNode,this._lView,n,Bt(o),i)}}function $c(){return new Oo(fs(),Zt())}function ac(t){return fn(()=>{const n=t.prototype.constructor,i=n[Cs]||Yc(n),o=Object.prototype;let d=Object.getPrototypeOf(t.prototype).constructor;for(;d&&d!==o;){const g=d[Cs]||Yc(d);if(g&&g!==i)return g;d=Object.getPrototypeOf(d)}return g=>new g})}function Yc(t){return mt(t)?()=>{const n=Yc(ft(t));return n&&n()}:jo(t)}function no(t){const n=t[On],i=n.type;return 2===i?n.declTNode:1===i?t[so]:null}function S(t){return function Gl(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const i=t.attrs;if(i){const o=i.length;let d=0;for(;d<o;){const g=i[d];if(oe(g))break;if(0===g)d+=2;else if("number"==typeof g)for(d++;d<o&&"string"==typeof i[d];)d++;else{if(g===n)return i[d+1];d+=2}}}return null}(fs(),t)}const b="__parameters__";function tt(t,n,i){return fn(()=>{const o=function de(t){return function(...i){if(t){const o=t(...i);for(const d in o)this[d]=o[d]}}}(n);function d(...g){if(this instanceof d)return o.apply(this,g),this;const T=new d(...g);return R.annotation=T,R;function R(B,W,he){const qe=B.hasOwnProperty(b)?B[b]:Object.defineProperty(B,b,{value:[]})[b];for(;qe.length<=he;)qe.push(null);return(qe[he]=qe[he]||[]).push(T),B}}return i&&(d.prototype=Object.create(i.prototype)),d.prototype.ngMetadataName=t,d.annotationCls=d,d})}function El(t,n){t.forEach(i=>Array.isArray(i)?El(i,n):n(i))}function ar(t,n,i){n>=t.length?t.push(i):t.splice(n,0,i)}function Qi(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Ir(t,n){const i=[];for(let o=0;o<t;o++)i.push(n);return i}function ya(t,n,i){let o=za(t,n);return o>=0?t[1|o]=i:(o=~o,function gu(t,n,i,o){let d=t.length;if(d==n)t.push(i,o);else if(1===d)t.push(o,t[0]),t[0]=i;else{for(d--,t.push(t[d-1],t[d]);d>n;)t[d]=t[d-2],d--;t[n]=i,t[n+1]=o}}(t,o,n,i)),o}function zc(t,n){const i=za(t,n);if(i>=0)return t[1|i]}function za(t,n){return function tu(t,n,i){let o=0,d=t.length>>i;for(;d!==o;){const g=o+(d-o>>1),T=t[g<<i];if(n===T)return g<<i;T>n?d=g:o=g+1}return~(d<<i)}(t,n,1)}const Is=nt(tt("Optional"),8),cc=nt(tt("SkipSelf"),4);function ys(t){return 128==(128&t.flags)}var Co=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Co||{});const Nc=/^>|^->|<!--|-->|--!>|<!-$/g,Tu=/(<|>)/g,Ld="\u200b$1\u200b";const Bd=new Map;let Su=0;const qa="__ngContext__";function y(t,n){Fs(n)?(t[qa]=n[Qo],function Ju(t){Bd.set(t[Qo],t)}(n)):t[qa]=n}let Un;function Cn(t,n){return Un(t,n)}function Yn(t){const n=t[Xi];return Ki(n)?n[Xi]:n}function uo(t){return qo(t[zr])}function zs(t){return qo(t[Us])}function qo(t){for(;null!==t&&!Ki(t);)t=t[Us];return t}function lr(t,n,i,o,d){if(null!=o){let g,T=!1;Ki(o)?g=o:Fs(o)&&(T=!0,o=o[Vi]);const R=Di(o);0===t&&null!==i?null==d?td(n,i,R):As(n,i,R,d||null,!0):1===t&&null!==i?As(n,i,R,d||null,!0):2===t?function oh(t,n,i){const o=Ca(t,n);o&&function cr(t,n,i,o){t.removeChild(n,i,o)}(t,o,n,i)}(n,R,T):3===t&&n.destroyNode(R),null!=g&&function sp(t,n,i,o,d){const g=i[ro];g!==Di(i)&&lr(n,t,o,g,d);for(let R=ks;R<i.length;R++){const B=i[R];Fu(B[On],B,t,n,o,g)}}(n,t,g,i,d)}}function la(t,n){return t.createText(n)}function Xa(t,n){return t.createComment(function Eu(t){return t.replace(Nc,n=>n.replace(Tu,Ld))}(n))}function Wa(t,n,i){return t.createElement(n,i)}function Wn(t,n){const i=t[Bo],o=i.indexOf(n);gl(n),i.splice(o,1)}function ci(t,n){if(t.length<=ks)return;const i=ks+n,o=t[i];if(o){const d=o[Xr];null!==d&&d!==t&&Wn(d,o),n>0&&(t[i-1][Us]=o[Us]);const g=Qi(t,ks+n);!function zl(t,n){Fu(t,n,n[ii],2,null,null),n[Vi]=null,n[so]=null}(o[On],o);const T=g[Mo];null!==T&&T.detachView(g[On]),o[Xi]=null,o[Us]=null,o[ni]&=-129}return o}function bi(t,n){if(!(256&n[ni])){const i=n[ii];n[pr]&&Zo(n[pr]),n[ua]&&Zo(n[ua]),i.destroyNode&&Fu(t,n,i,3,null,null),function Fc(t){let n=t[zr];if(!n)return ss(t[On],t);for(;n;){let i=null;if(Fs(n))i=n[zr];else{const o=n[ks];o&&(i=o)}if(!i){for(;n&&!n[Us]&&n!==t;)Fs(n)&&ss(n[On],n),n=n[Xi];null===n&&(n=t),Fs(n)&&ss(n[On],n),i=n&&n[Us]}n=i}}(n)}}function ss(t,n){if(!(256&n[ni])){n[ni]&=-129,n[ni]|=256,function Ka(t,n){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let o=0;o<i.length;o+=2){const d=n[i[o]];if(!(d instanceof yl)){const g=i[o+1];if(Array.isArray(g))for(let T=0;T<g.length;T+=2){const R=d[g[T]],B=g[T+1];ns(4,R,B);try{B.call(R)}finally{ns(5,R,B)}}else{ns(4,d,g);try{g.call(d)}finally{ns(5,d,g)}}}}}(t,n),function Os(t,n){const i=t.cleanup,o=n[Ko];if(null!==i)for(let g=0;g<i.length-1;g+=2)if("string"==typeof i[g]){const T=i[g+3];T>=0?o[T]():o[-T].unsubscribe(),g+=2}else i[g].call(o[i[g+1]]);null!==o&&(n[Ko]=null);const d=n[Ss];if(null!==d){n[Ss]=null;for(let g=0;g<d.length;g++)(0,d[g])()}}(t,n),1===n[On].type&&n[ii].destroy();const i=n[Xr];if(null!==i&&Ki(n[Xi])){i!==n[Xi]&&Wn(i,n);const o=n[Mo];null!==o&&o.detachView(t)}!function eh(t){Bd.delete(t[Qo])}(n)}}function $r(t,n,i){return kl(t,n.parent,i)}function kl(t,n,i){let o=n;for(;null!==o&&40&o.type;)o=(n=o).parent;if(null===o)return i[Vi];{const{componentOffset:d}=o;if(d>-1){const{encapsulation:g}=t.data[o.directiveStart+d];if(g===gn.None||g===gn.Emulated)return null}return ao(o,i)}}function As(t,n,i,o,d){t.insertBefore(n,i,o,d)}function td(t,n,i){t.appendChild(n,i)}function nh(t,n,i,o,d){null!==o?As(t,n,i,o,d):td(t,n,i)}function Ca(t,n){return t.parentNode(n)}function ou(t,n,i){return ih(t,n,i)}function _f(t,n,i){return 40&t.type?ao(t,i):null}let kh,ah,Ph,lh,ih=_f;function vf(t,n){ih=t,kh=n}function sh(t,n,i,o){const d=$r(t,o,n),g=n[ii],R=ou(o.parent||n[so],o,n);if(null!=d)if(Array.isArray(i))for(let B=0;B<i.length;B++)nh(g,d,i[B],R,!1);else nh(g,d,i,R,!1);void 0!==kh&&kh(g,o,n,i,d)}function Nu(t,n){if(null!==n){const i=n.type;if(3&i)return ao(n,t);if(4&i)return Ih(-1,t[n.index]);if(8&i){const o=n.child;if(null!==o)return Nu(t,o);{const d=t[n.index];return Ki(d)?Ih(-1,d):Di(d)}}if(32&i)return Cn(n,t)()||Di(t[n.index]);{const o=xh(t,n);return null!==o?Array.isArray(o)?o[0]:Nu(Yn(t[Ni]),o):Nu(t,n.next)}}return null}function xh(t,n){return null!==n?t[Ni][so].projection[n.projection]:null}function Ih(t,n){const i=ks+t+1;if(i<n.length){const o=n[i],d=o[On].firstChild;if(null!==d)return Nu(o,d)}return n[ro]}function Rh(t,n,i,o,d,g,T){for(;null!=i;){const R=o[i.index],B=i.type;if(T&&0===n&&(R&&y(Di(R),o),i.flags|=2),32!=(32&i.flags))if(8&B)Rh(t,n,i.child,o,d,g,!1),lr(n,t,d,R,g);else if(32&B){const W=Cn(i,o);let he;for(;he=W();)lr(n,t,d,he,g);lr(n,t,d,R,g)}else 16&B?bf(t,n,o,i,d,g):lr(n,t,d,R,g);i=T?i.projectionNext:i.next}}function Fu(t,n,i,o,d,g){Rh(i,o,t.firstChild,n,d,g,!1)}function bf(t,n,i,o,d,g){const T=i[Ni],B=T[so].projection[o.projection];if(Array.isArray(B))for(let W=0;W<B.length;W++)lr(n,t,d,B[W],g);else{let W=B;const he=T[Xi];ys(o)&&(W.flags|=128),Rh(t,n,W,he,d,g,!0)}}function yf(t,n,i){""===i?t.removeAttribute(n,"class"):t.setAttribute(n,"class",i)}function rh(t,n,i){const{mergedAttrs:o,classes:d,styles:g}=i;null!==o&&Rt(t,n,o),null!==d&&yf(t,n,d),null!==g&&function rp(t,n,i){t.setAttribute(n,"style",i)}(t,n,g)}function ru(t){return function Fh(){if(void 0===ah&&(ah=null,qt.trustedTypes))try{ah=qt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ah}()?.createHTML(t)||t}function dp(t){Ph=t}function Gd(){if(void 0!==Ph)return Ph;if(typeof document<"u")return document;throw new me(210,!1)}function Lh(){if(void 0===lh&&(lh=null,qt.trustedTypes))try{lh=qt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return lh}function Cf(t){return Lh()?.createHTML(t)||t}function ch(t){return Lh()?.createScriptURL(t)||t}class Hd{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${At})`}}class up extends Hd{getTypeName(){return"HTML"}}class Df extends Hd{getTypeName(){return"Style"}}class hp extends Hd{getTypeName(){return"Script"}}class fp extends Hd{getTypeName(){return"URL"}}class pp extends Hd{getTypeName(){return"ResourceURL"}}function nd(t){return t instanceof Hd?t.changingThisBreaksApplicationSecurity:t}function au(t,n){const i=function Bh(t){return t instanceof Hd&&t.getTypeName()||null}(t);if(null!=i&&i!==n){if("ResourceURL"===i&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${i} (see ${At})`)}return i===n}function Mf(t){return new up(t)}function Tf(t){return new Df(t)}function f(t){return new hp(t)}function x(t){return new fp(t)}function a(t){return new pp(t)}function p(t){const n=new q(t);return function se(){try{return!!(new window.DOMParser).parseFromString(ru(""),"text/html")}catch{return!1}}()?new E(n):n}class E{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const i=(new window.DOMParser).parseFromString(ru(n),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(n):(i.removeChild(i.firstChild),i)}catch{return null}}}class q{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const i=this.inertDocument.createElement("template");return i.innerHTML=ru(n),i}}const lt=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Tt(t){return(t=String(t)).match(lt)?t:"unsafe:"+t}function jt(t){const n={};for(const i of t.split(","))n[i]=!0;return n}function Gt(...t){const n={};for(const i of t)for(const o in i)i.hasOwnProperty(o)&&(n[o]=!0);return n}const Nn=jt("area,br,col,hr,img,wbr"),wn=jt("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),xn=jt("rp,rt"),os=Gt(Nn,Gt(wn,jt("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")),Gt(xn,jt("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")),Gt(xn,wn)),Ji=jt("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_s=Gt(Ji,jt("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"),jt("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")),Rs=jt("script,style,template");class wo{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let i=n.firstChild,o=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?o=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,o&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let d=this.checkClobberedElement(i,i.nextSibling);if(d){i=d;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(n){const i=n.nodeName.toLowerCase();if(!os.hasOwnProperty(i))return this.sanitizedSomething=!0,!Rs.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const o=n.attributes;for(let d=0;d<o.length;d++){const g=o.item(d),T=g.name,R=T.toLowerCase();if(!_s.hasOwnProperty(R)){this.sanitizedSomething=!0;continue}let B=g.value;Ji[R]&&(B=Tt(B)),this.buf.push(" ",T,'="',Mr(B),'"')}return this.buf.push(">"),!0}endElement(n){const i=n.nodeName.toLowerCase();os.hasOwnProperty(i)&&!Nn.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(n){this.buf.push(Mr(n))}checkClobberedElement(n,i){if(i&&(n.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return i}}const ho=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Yr=/([^\#-~ |!])/g;function Mr(t){return t.replace(/&/g,"&amp;").replace(ho,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(Yr,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Rr;function xl(t,n){let i=null;try{Rr=Rr||p(t);let o=n?String(n):"";i=Rr.getInertBodyElement(o);let d=5,g=o;do{if(0===d)throw new Error("Failed to sanitize html because the input is unstable");d--,o=g,g=i.innerHTML,i=Rr.getInertBodyElement(o)}while(o!==g);return ru((new wo).sanitizeChildren(ca(i)||i))}finally{if(i){const o=ca(i)||i;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function ca(t){return"content"in t&&function bd(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var rl=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(rl||{});function Qa(t){const n=Il();return n?Cf(n.sanitize(rl.HTML,t)||""):au(t,"HTML")?Cf(nd(t)):xl(Gd(),rt(t))}function Ud(t){const n=Il();return n?n.sanitize(rl.URL,t)||"":au(t,"URL")?nd(t):Tt(rt(t))}function id(t){const n=Il();if(n)return ch(n.sanitize(rl.RESOURCE_URL,t)||"");if(au(t,"ResourceURL"))return ch(nd(t));throw new me(904,!1)}function sd(t,n,i){return function lu(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?id:Ud}(n,i)(t)}function Il(){const t=Zt();return t&&t[oo].sanitizer}const Wl=new wt("ENVIRONMENT_INITIALIZER"),Au=new wt("INJECTOR",-1),Ef=new wt("INJECTOR_DEF_TYPES");class cu{get(n,i=Mn){if(i===Mn){const o=new Error(`NullInjectorError: No provider for ${Ue(n)}!`);throw o.name="NullInjectorError",o}return i}}function Pu(t){return{\u0275providers:t}}function Vh(...t){return{\u0275providers:jh(0,t),\u0275fromNgModule:!0}}function jh(t,...n){const i=[],o=new Set;let d;const g=T=>{i.push(T)};return El(n,T=>{const R=T;Ac(R,g,[],o)&&(d||=[],d.push(R))}),void 0!==d&&Lu(d,g),i}function Lu(t,n){for(let i=0;i<t.length;i++){const{ngModule:o,providers:d}=t[i];du(d,g=>{n(g,o)})}}function Ac(t,n,i,o){if(!(t=ft(t)))return!1;let d=null,g=Ci(t);const T=!g&&yi(t);if(g||T){if(T&&!T.standalone)return!1;d=t}else{const B=t.ngModule;if(g=Ci(B),!g)return!1;d=B}const R=o.has(d);if(T){if(R)return!1;if(o.add(d),T.dependencies){const B="function"==typeof T.dependencies?T.dependencies():T.dependencies;for(const W of B)Ac(W,n,i,o)}}else{if(!g)return!1;{if(null!=g.imports&&!R){let W;o.add(d);try{El(g.imports,he=>{Ac(he,n,i,o)&&(W||=[],W.push(he))})}finally{}void 0!==W&&Lu(W,n)}if(!R){const W=jo(d)||(()=>new d);n({provide:d,useFactory:W,deps:Sn},d),n({provide:Ef,useValue:d,multi:!0},d),n({provide:Wl,useValue:()=>Ke(d),multi:!0},d)}const B=g.providers;if(null!=B&&!R){const W=t;du(B,he=>{n(he,W)})}}}return d!==t&&void 0!==t.providers}function du(t,n){for(let i of t)en(i)&&(i=i.\u0275providers),Array.isArray(i)?du(i,n):n(i)}const Gh=Me({provide:String,useValue:Me});function Pc(t){return null!==t&&"object"==typeof t&&Gh in t}function Lc(t){return"function"==typeof t}const uu=new wt("Set Injector scope."),Cd={},ju={};let Gu;function Hh(){return void 0===Gu&&(Gu=new cu),Gu}class od{}class Hu extends od{get destroyed(){return this._destroyed}constructor(n,i,o,d){super(),this.parent=i,this.source=o,this.scopes=d,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,hh(n,T=>this.processProvider(T)),this.records.set(Au,Uu(void 0,this)),d.has("environment")&&this.records.set(od,Uu(void 0,this));const g=this.records.get(uu);null!=g&&"string"==typeof g.value&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(Ef.multi,Sn,Ve.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const i of this._ngOnDestroyHooks)i.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const i of n)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const i=on(this),o=sn(void 0);try{return n()}finally{on(i),sn(o)}}get(n,i=Mn,o=Ve.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(xi))return n[xi](this);o=Bt(o);const g=on(this),T=sn(void 0);try{if(!(o&Ve.SkipSelf)){let B=this.records.get(n);if(void 0===B){const W=function kf(t){return"function"==typeof t||"object"==typeof t&&t instanceof wt}(n)&&jn(n);B=W&&this.injectableDefInScope(W)?Uu(Sf(n),Cd):null,this.records.set(n,B)}if(null!=B)return this.hydrate(n,B)}return(o&Ve.Self?Hh():this.parent).get(n,i=o&Ve.Optional&&i===Mn?null:i)}catch(R){if("NullInjectorError"===R.name){if((R[an]=R[an]||[]).unshift(Ue(n)),g)throw R;return function Ze(t,n,i,o){const d=t[an];throw n[Fe]&&d.unshift(n[Fe]),t.message=function $t(t,n,i,o=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let d=Ue(n);if(Array.isArray(n))d=n.map(Ue).join(" -> ");else if("object"==typeof n){let g=[];for(let T in n)if(n.hasOwnProperty(T)){let R=n[T];g.push(T+":"+("string"==typeof R?JSON.stringify(R):Ue(R)))}d=`{${g.join(", ")}}`}return`${i}${o?"("+o+")":""}[${d}]: ${t.replace(ye,"\n ")}`}("\n"+t.message,d,i,o),t.ngTokenPath=d,t[an]=null,t}(R,n,"R3InjectorError",this.source)}throw R}finally{sn(T),on(g)}}resolveInjectorInitializers(){const n=on(this),i=sn(void 0);try{const d=this.get(Wl.multi,Sn,Ve.Self);for(const g of d)g()}finally{on(n),sn(i)}}toString(){const n=[],i=this.records;for(const o of i.keys())n.push(Ue(o));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new me(205,!1)}processProvider(n){let i=Lc(n=ft(n))?n:ft(n&&n.provide);const o=function rm(t){return Pc(t)?Uu(void 0,t.useValue):Uu(gp(t),Cd)}(n);if(Lc(n)||!0!==n.multi)this.records.get(i);else{let d=this.records.get(i);d||(d=Uu(void 0,Cd,!0),d.factory=()=>hn(d.multi),this.records.set(i,d)),i=n,d.multi.push(n)}this.records.set(i,o)}hydrate(n,i){return i.value===Cd&&(i.value=ju,i.value=i.factory()),"object"==typeof i.value&&i.value&&function am(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(n){if(!n.providedIn)return!1;const i=ft(n.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}removeOnDestroy(n){const i=this._onDestroyHooks.indexOf(n);-1!==i&&this._onDestroyHooks.splice(i,1)}}function Sf(t){const n=jn(t),i=null!==n?n.factory:jo(t);if(null!==i)return i;if(t instanceof wt)throw new me(204,!1);if(t instanceof Function)return function mp(t){const n=t.length;if(n>0)throw Ir(n,"?"),new me(204,!1);const i=function oi(t){return t&&(t[xt]||t[re])||null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new me(204,!1)}function gp(t,n,i){let o;if(Lc(t)){const d=ft(t);return jo(d)||Sf(d)}if(Pc(t))o=()=>ft(t.useValue);else if(function Bu(t){return!(!t||!t.useFactory)}(t))o=()=>t.useFactory(...hn(t.deps||[]));else if(function Yd(t){return!(!t||!t.useExisting)}(t))o=()=>Ke(ft(t.useExisting));else{const d=ft(t&&(t.useClass||t.provide));if(!function _p(t){return!!t.deps}(t))return jo(d)||Sf(d);o=()=>new d(...hn(t.deps))}return o}function Uu(t,n,i=!1){return{factory:t,value:n,multi:i?[]:void 0}}function hh(t,n){for(const i of t)Array.isArray(i)?hh(i,n):i&&en(i)?hh(i.\u0275providers,n):n(i)}const fh=new wt("AppId",{providedIn:"root",factory:()=>vp}),vp="ng",bp=new wt("Platform Initializer"),Uh=new wt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),lm=new wt("AnimationModuleType"),cm=new wt("CSP nonce",{providedIn:"root",factory:()=>Gd().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Ff=(t,n,i)=>null;function zh(t,n,i=!1){return Ff(t,n,i)}class zd{}class Pf{}class _m{resolveComponentFactory(n){throw function gm(t){const n=Error(`No component factory found for ${Ue(t)}.`);return n.ngComponent=t,n}(n)}}let s=(()=>{class t{static{this.NULL=new _m}}return t})();function c(){return r(fs(),Zt())}function r(t,n){return new m(ao(t,n))}let m=(()=>{class t{constructor(i){this.nativeElement=i}static{this.__NG_ELEMENT_ID__=c}}return t})();function D(t){return t instanceof m?t.nativeElement:t}class G{}let fe=(()=>{class t{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function ot(){const t=Zt(),i=lo(fs().index,t);return(Fs(i)?i:t)[ii]}()}}return t})(),Ut=(()=>{class t{static{this.\u0275prov=dt({token:t,providedIn:"root",factory:()=>null})}}return t})();class Bn{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const Qn=new Bn("16.2.12"),ds={};function Xo(t){if(!Ft()&&!function zt(){return Xe}())throw new me(-203,!1)}function Yg(t,n=null,i=null,o){const d=zg(t,n,i,o);return d.resolveInjectorInitializers(),d}function zg(t,n=null,i=null,o,d=new Set){const g=[i||Sn,Vh(t)];return o=o||("object"==typeof t?void 0:Ue(t)),new Hu(g,n||Hh(),o||null,d)}let Dd=(()=>{class t{static{this.THROW_IF_NOT_FOUND=Mn}static{this.NULL=new cu}static create(i,o){if(Array.isArray(i))return Yg({name:""},o,i,"");{const d=i.name??"";return Yg({name:d},i.parent,i.providers,d)}}static{this.\u0275prov=dt({token:t,providedIn:"any",factory:()=>Ke(Au)})}static{this.__NG_ELEMENT_ID__=-1}}return t})();function vm(t){return t.ngOriginalError}class Xu{constructor(){this._console=console}handleError(n){const i=this._findOriginalError(n);this._console.error("ERROR",n),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(n){let i=n&&vm(n);for(;i&&vm(i);)i=vm(i);return i||null}}let Lf=(()=>{class t{static{this.__NG_ELEMENT_ID__=I0}static{this.__NG_ENV_ID__=i=>i}}return t})();class x0 extends Lf{constructor(n){super(),this._lView=n}onDestroy(n){return Ll(this._lView,n),()=>function Ea(t,n){if(null===t[Ss])return;const i=t[Ss].indexOf(n);-1!==i&&t[Ss].splice(i,1)}(this._lView,n)}}function I0(){return new x0(Zt())}function bm(t){return n=>{setTimeout(t,void 0,n)}}const Xd=class O0 extends e.B{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,i,o){let d=n,g=i||(()=>null),T=o;if(n&&"object"==typeof n){const B=n;d=B.next?.bind(B),g=B.error?.bind(B),T=B.complete?.bind(B)}this.__isAsync&&(g=bm(g),d&&(d=bm(d)),T&&(T=bm(T)));const R=super.subscribe({next:d,error:g,complete:T});return n instanceof h.yU&&n.add(R),R}};function Xg(...t){}class Za{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Xd(!1),this.onMicrotaskEmpty=new Xd(!1),this.onStable=new Xd(!1),this.onError=new Xd(!1),typeof Zone>"u")throw new me(908,!1);Zone.assertZonePatched();const d=this;d._nesting=0,d._outer=d._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(d._inner=d._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(d._inner=d._inner.fork(Zone.longStackTraceZoneSpec)),d.shouldCoalesceEventChangeDetection=!o&&i,d.shouldCoalesceRunChangeDetection=o,d.lastRequestAnimationFrameId=-1,d.nativeRequestAnimationFrame=function R0(){const t="function"==typeof qt.requestAnimationFrame;let n=qt[t?"requestAnimationFrame":"setTimeout"],i=qt[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&i){const o=n[Zone.__symbol__("OriginalDelegate")];o&&(n=o);const d=i[Zone.__symbol__("OriginalDelegate")];d&&(i=d)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:i}}().nativeRequestAnimationFrame,function A0(t){const n=()=>{!function F0(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(qt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Cm(t),t.isCheckStableRunning=!0,ym(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Cm(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,o,d,g,T,R)=>{if(function L0(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(R))return i.invokeTask(d,g,T,R);try{return Wg(t),i.invokeTask(d,g,T,R)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===g.type||t.shouldCoalesceRunChangeDetection)&&n(),Kg(t)}},onInvoke:(i,o,d,g,T,R,B)=>{try{return Wg(t),i.invoke(d,g,T,R,B)}finally{t.shouldCoalesceRunChangeDetection&&n(),Kg(t)}},onHasTask:(i,o,d,g)=>{i.hasTask(d,g),o===d&&("microTask"==g.change?(t._hasPendingMicrotasks=g.microTask,Cm(t),ym(t)):"macroTask"==g.change&&(t.hasPendingMacrotasks=g.macroTask))},onHandleError:(i,o,d,g)=>(i.handleError(d,g),t.runOutsideAngular(()=>t.onError.emit(g)),!1)})}(d)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Za.isInAngularZone())throw new me(909,!1)}static assertNotInAngularZone(){if(Za.isInAngularZone())throw new me(909,!1)}run(n,i,o){return this._inner.run(n,i,o)}runTask(n,i,o,d){const g=this._inner,T=g.scheduleEventTask("NgZoneEvent: "+d,n,N0,Xg,Xg);try{return g.runTask(T,i,o)}finally{g.cancelTask(T)}}runGuarded(n,i,o){return this._inner.runGuarded(n,i,o)}runOutsideAngular(n){return this._outer.run(n)}}const N0={};function ym(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Cm(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Wg(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Kg(t){t._nesting--,ym(t)}class P0{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Xd,this.onMicrotaskEmpty=new Xd,this.onStable=new Xd,this.onError=new Xd}run(n,i,o){return n.apply(i,o)}runGuarded(n,i,o){return n.apply(i,o)}runOutsideAngular(n){return n()}runTask(n,i,o,d){return n.apply(i,o)}}const Qg=new wt("",{providedIn:"root",factory:Zg});function Zg(){const t=Qe(Za);let n=!0;const i=new ne.c(d=>{n=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{d.next(n),d.complete()})}),o=new ne.c(d=>{let g;t.runOutsideAngular(()=>{g=t.onStable.subscribe(()=>{Za.assertNotInAngularZone(),queueMicrotask(()=>{!n&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(n=!0,d.next(!0))})})});const T=t.onUnstable.subscribe(()=>{Za.assertInAngularZone(),n&&(n=!1,t.runOutsideAngular(()=>{d.next(!1)}))});return()=>{g.unsubscribe(),T.unsubscribe()}});return(0,Z.h)(i,o.pipe((0,Ie.u)()))}function Jg(t){return t.ownerDocument.defaultView}function e_(t){return t.ownerDocument}function hu(t){return t instanceof Function?t():t}let wm=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){this.renderDepth--,0===this.renderDepth&&this.handler?.execute()}ngOnDestroy(){this.handler?.destroy(),this.handler=null}static{this.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new t})}}return t})();function Bf(t){for(;t;){t[ni]|=64;const n=Yn(t);if(ha(t)&&!n)return t;t=n}return null}const o_=new wt("",{providedIn:"root",factory:()=>!1});let Ep=null;function c_(t,n){return t[n]??h_()}function d_(t,n){const i=h_();i.producerNode?.length&&(t[n]=Ep,i.lView=t,Ep=u_())}const Y0={...Aa,consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{Bf(t.lView)},lView:null};function u_(){return Object.create(Y0)}function h_(){return Ep??=u_(),Ep}const Yi={};function f_(t){p_(si(),Zt(),Jo()+t,!1)}function p_(t,n,i,o){if(!o)if(3==(3&n[ni])){const g=t.preOrderCheckHooks;null!==g&&xa(n,g,i)}else{const g=t.preOrderHooks;null!==g&&Ha(n,g,0,i)}ja(i)}function Kh(t,n=Ve.Default){const i=Zt();return null===i?Ke(t,n):Uc(fs(),i,ft(t),n)}function m_(){throw new Error("invalid")}function Sp(t,n,i,o,d,g,T,R,B,W,he){const qe=n.blueprint.slice();return qe[Vi]=d,qe[ni]=140|o,(null!==W||t&&2048&t[ni])&&(qe[ni]|=2048),Va(qe),qe[Xi]=qe[qr]=t,qe[Wi]=i,qe[oo]=T||t&&t[oo],qe[ii]=R||t&&t[ii],qe[fr]=B||t&&t[fr]||null,qe[so]=g,qe[Qo]=function su(){return Su++}(),qe[_o]=he,qe[Fr]=W,qe[Ni]=2==n.type?t[Ni]:qe,qe}function Qh(t,n,i,o,d){let g=t.data[n];if(null===g)g=Dm(t,n,i,o,d),function j(){return Jn.lFrame.inI18n}()&&(g.flags|=32);else if(64&g.type){g.type=i,g.value=o,g.attrs=d;const T=tc();g.injectorIndex=null===T?-1:T.injectorIndex}return sa(g,!0),g}function Dm(t,n,i,o,d){const g=vl(),T=ka(),B=t.data[n]=function J0(t,n,i,o,d,g){let T=n?n.injectorIndex:-1,R=0;return Bl()&&(R|=128),{type:i,index:o,insertBeforeIndex:null,injectorIndex:T,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:R,providerIndexes:0,value:d,attrs:g,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,T?g:g&&g.parent,i,n,o,d);return null===t.firstChild&&(t.firstChild=B),null!==g&&(T?null==g.child&&null!==B.parent&&(g.child=B):null===g.next&&(g.next=B,B.prev=g)),B}function Vf(t,n,i,o){if(0===i)return-1;const d=n.length;for(let g=0;g<i;g++)n.push(o),t.blueprint.push(o),t.data.push(null);return d}function g_(t,n,i,o,d){const g=c_(n,pr),T=Jo(),R=2&o;try{ja(-1),R&&n.length>gi&&p_(t,n,gi,!1),ns(R?2:0,d);const W=R?g:null,he=Uo(W);try{null!==W&&(W.dirty=!1),i(o,d)}finally{Lr(W,he)}}finally{R&&null===n[pr]&&d_(n,pr),ja(T),ns(R?3:1,d)}}function Mm(t,n,i){if(gr(n)){const o=Ho(null);try{const g=n.directiveEnd;for(let T=n.directiveStart;T<g;T++){const R=t.data[T];R.contentQueries&&R.contentQueries(1,i[T],T)}}finally{Ho(o)}}}function Tm(t,n,i){Sa()&&(function ry(t,n,i,o){const d=i.directiveStart,g=i.directiveEnd;Vo(i)&&function fy(t,n,i){const o=ao(n,t),d=__(i);let T=16;i.signals?T=4096:i.onPush&&(T=64);const R=kp(t,Sp(t,d,null,T,o,n,null,t[oo].rendererFactory.createRenderer(o,i),null,null,null));t[n.index]=R}(n,i,t.data[d+i.componentOffset]),t.firstCreatePass||Ya(i,n),y(o,n);const T=i.initialInputs;for(let R=d;R<g;R++){const B=t.data[R],W=Cr(n,t,R,i);y(W,n),null!==T&&py(0,R-d,W,B,0,T),Mi(B)&&(lo(i.index,n)[Wi]=Cr(n,t,R,i))}}(t,n,i,ao(i,n)),64==(64&i.flags)&&w_(t,n,i))}function Em(t,n,i=ao){const o=n.localNames;if(null!==o){let d=n.index+1;for(let g=0;g<o.length;g+=2){const T=o[g+1],R=-1===T?i(n,t):t[T];t[d++]=R}}}function __(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Sm(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts,t.id):n}function Sm(t,n,i,o,d,g,T,R,B,W,he){const qe=gi+o,Ct=qe+d,Lt=function q0(t,n){const i=[];for(let o=0;o<n;o++)i.push(o<t?null:Yi);return i}(qe,Ct),ln="function"==typeof W?W():W;return Lt[On]={type:t,blueprint:Lt,template:i,queries:null,viewQuery:R,declTNode:n,data:Lt.slice().fill(null,qe),bindingStartIndex:qe,expandoStartIndex:Ct,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 g?g():g,pipeRegistry:"function"==typeof T?T():T,firstChild:null,schemas:B,consts:ln,incompleteFirstPass:!1,ssrId:he}}let v_=t=>null;function b_(t,n,i,o){for(let d in t)if(t.hasOwnProperty(d)){i=null===i?{}:i;const g=t[d];null===o?y_(i,n,d,g):o.hasOwnProperty(d)&&y_(i,n,o[d],g)}return i}function y_(t,n,i,o){t.hasOwnProperty(i)?t[i].push(n,o):t[i]=[n,o]}function Vc(t,n,i,o,d,g,T,R){const B=ao(n,i);let he,W=n.inputs;!R&&null!=W&&(he=W[o])?(Rm(t,i,he,o,d),Vo(n)&&function ny(t,n){const i=lo(n,t);16&i[ni]||(i[ni]|=64)}(i,n.index)):3&n.type&&(o=function ty(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(o),d=null!=T?T(d,n.value||"",o):d,g.setProperty(B,o,d))}function km(t,n,i,o){if(Sa()){const d=null===o?null:{"":-1},g=function ly(t,n){const i=t.directiveRegistry;let o=null,d=null;if(i)for(let g=0;g<i.length;g++){const T=i[g];if(Ls(n,T.selectors,!1))if(o||(o=[]),Mi(T))if(null!==T.findHostDirectiveDefs){const R=[];d=d||new Map,T.findHostDirectiveDefs(T,R,d),o.unshift(...R,T),xm(t,n,R.length)}else o.unshift(T),xm(t,n,0);else d=d||new Map,T.findHostDirectiveDefs?.(T,o,d),o.push(T)}return null===o?null:[o,d]}(t,i);let T,R;null===g?T=R=null:[T,R]=g,null!==T&&C_(t,n,i,T,d,R),d&&function cy(t,n,i){if(n){const o=t.localNames=[];for(let d=0;d<n.length;d+=2){const g=i[n[d+1]];if(null==g)throw new me(-301,!1);o.push(n[d],g)}}}(i,o,d)}i.mergedAttrs=$e(i.mergedAttrs,i.attrs)}function C_(t,n,i,o,d,g){for(let W=0;W<o.length;W++)Hc(Ya(i,n),t,o[W].type);!function uy(t,n,i){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+i,t.providerIndexes=n}(i,t.data.length,o.length);for(let W=0;W<o.length;W++){const he=o[W];he.providersResolver&&he.providersResolver(he)}let T=!1,R=!1,B=Vf(t,n,o.length,null);for(let W=0;W<o.length;W++){const he=o[W];i.mergedAttrs=$e(i.mergedAttrs,he.hostAttrs),hy(t,i,n,B,he),dy(B,he,d),null!==he.contentQueries&&(i.flags|=4),(null!==he.hostBindings||null!==he.hostAttrs||0!==he.hostVars)&&(i.flags|=64);const qe=he.type.prototype;!T&&(qe.ngOnChanges||qe.ngOnInit||qe.ngDoCheck)&&((t.preOrderHooks??=[]).push(i.index),T=!0),!R&&(qe.ngOnChanges||qe.ngDoCheck)&&((t.preOrderCheckHooks??=[]).push(i.index),R=!0),B++}!function ey(t,n,i){const d=n.directiveEnd,g=t.data,T=n.attrs,R=[];let B=null,W=null;for(let he=n.directiveStart;he<d;he++){const qe=g[he],Ct=i?i.get(qe):null,ln=Ct?Ct.outputs:null;B=b_(qe.inputs,he,B,Ct?Ct.inputs:null),W=b_(qe.outputs,he,W,ln);const Tn=null===B||null===T||zn(n)?null:my(B,he,T);R.push(Tn)}null!==B&&(B.hasOwnProperty("class")&&(n.flags|=8),B.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=R,n.inputs=B,n.outputs=W}(t,i,g)}function w_(t,n,i){const o=i.directiveStart,d=i.directiveEnd,g=i.index,T=function Je(){return Jn.lFrame.currentDirectiveIndex}();try{ja(g);for(let R=o;R<d;R++){const B=t.data[R],W=n[R];Xt(R),(null!==B.hostBindings||0!==B.hostVars||null!==B.hostAttrs)&&ay(B,W)}}finally{ja(-1),Xt(T)}}function ay(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function xm(t,n,i){n.componentOffset=i,(t.components??=[]).push(n.index)}function dy(t,n,i){if(i){if(n.exportAs)for(let o=0;o<n.exportAs.length;o++)i[n.exportAs[o]]=t;Mi(n)&&(i[""]=t)}}function hy(t,n,i,o,d){t.data[o]=d;const g=d.factory||(d.factory=jo(d.type)),T=new yl(g,Mi(d),Kh);t.blueprint[o]=T,i[o]=T,function sy(t,n,i,o,d){const g=d.hostBindings;if(g){let T=t.hostBindingOpCodes;null===T&&(T=t.hostBindingOpCodes=[]);const R=~n.index;(function oy(t){let n=t.length;for(;n>0;){const i=t[--n];if("number"==typeof i&&i<0)return i}return 0})(T)!=R&&T.push(R),T.push(i,o,g)}}(t,n,o,Vf(t,i,d.hostVars,Yi),d)}function Wd(t,n,i,o,d,g){const T=ao(t,n);!function Im(t,n,i,o,d,g,T){if(null==g)t.removeAttribute(n,d,i);else{const R=null==T?rt(g):T(g,o||"",d);t.setAttribute(n,d,R,i)}}(n[ii],T,g,t.value,i,o,d)}function py(t,n,i,o,d,g){const T=g[n];if(null!==T)for(let R=0;R<T.length;)D_(o,i,T[R++],T[R++],T[R++])}function D_(t,n,i,o,d){const g=Ho(null);try{const T=t.inputTransforms;null!==T&&T.hasOwnProperty(o)&&(d=T[o].call(n,d)),null!==t.setInput?t.setInput(n,d,i,o):n[o]=d}finally{Ho(g)}}function my(t,n,i){let o=null,d=0;for(;d<i.length;){const g=i[d];if(0!==g)if(5!==g){if("number"==typeof g)break;if(t.hasOwnProperty(g)){null===o&&(o=[]);const T=t[g];for(let R=0;R<T.length;R+=2)if(T[R]===n){o.push(g,T[R+1],i[d+1]);break}}d+=2}else d+=2;else d+=4}return o}function M_(t,n,i,o){return[t,!0,!1,n,null,0,o,i,null,null,null]}function T_(t,n){const i=t.contentQueries;if(null!==i)for(let o=0;o<i.length;o+=2){const g=i[o+1];if(-1!==g){const T=t.data[g];wi(i[o]),T.contentQueries(2,n[g],g)}}}function kp(t,n){return t[zr]?t[Fa][Us]=n:t[zr]=n,t[Fa]=n,n}function Om(t,n,i){wi(0);const o=Ho(null);try{n(t,i)}finally{Ho(o)}}function E_(t){return t[Ko]||(t[Ko]=[])}function S_(t){return t.cleanup||(t.cleanup=[])}function k_(t,n,i){return(null===t||Mi(t))&&(i=function ec(t){for(;Array.isArray(t);){if("object"==typeof t[Ar])return t;t=t[Vi]}return null}(i[n.index])),i[ii]}function x_(t,n){const i=t[fr],o=i?i.get(Xu,null):null;o&&o.handleError(n)}function Rm(t,n,i,o,d){for(let g=0;g<i.length;){const T=i[g++],R=i[g++];D_(t.data[T],n[T],o,R,d)}}function gy(t,n){const i=lo(n,t),o=i[On];!function _y(t,n){for(let i=n.length;i<t.blueprint.length;i++)n.push(t.blueprint[i])}(o,i);const d=i[Vi];null!==d&&null===i[_o]&&(i[_o]=zh(d,i[fr])),Nm(o,i,i[Wi])}function Nm(t,n,i){kr(n);try{const o=t.viewQuery;null!==o&&Om(1,o,i);const d=t.template;null!==d&&g_(t,n,d,1,i),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&T_(t,n),t.staticViewQueries&&Om(2,t.viewQuery,i);const g=t.components;null!==g&&function vy(t,n){for(let i=0;i<n.length;i++)gy(t,n[i])}(n,g)}catch(o){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),o}finally{n[ni]&=-5,Mc()}}let I_=(()=>{class t{constructor(){this.all=new Set,this.queue=new Map}create(i,o,d){const g=typeof Zone>"u"?null:Zone.current,T=function un(t,n,i){const o=Object.create(ts);i&&(o.consumerAllowSignalWrites=!0),o.fn=t,o.schedule=n;const d=T=>{o.cleanupFn=T};return o.ref={notify:()=>pa(o),run:()=>{if(o.dirty=!1,o.hasRun&&!Da(o))return;o.hasRun=!0;const T=Uo(o);try{o.cleanupFn(),o.cleanupFn=Gn,o.fn(d)}finally{Lr(o,T)}},cleanup:()=>o.cleanupFn()},o.ref}(i,W=>{this.all.has(W)&&this.queue.set(W,g)},d);let R;this.all.add(T),T.notify();const B=()=>{T.cleanup(),R?.(),this.all.delete(T),this.queue.delete(T)};return R=o?.onDestroy(B),{destroy:B}}flush(){if(0!==this.queue.size)for(const[i,o]of this.queue)this.queue.delete(i),o?o.run(()=>i.run()):i.run()}get isQueueEmpty(){return 0===this.queue.size}static{this.\u0275prov=dt({token:t,providedIn:"root",factory:()=>new t})}}return t})();function xp(t,n,i){let o=i?t.styles:null,d=i?t.classes:null,g=0;if(null!==n)for(let T=0;T<n.length;T++){const R=n[T];"number"==typeof R?g=R:1==g?d=yt(d,R):2==g&&(o=yt(o,R+": "+n[++T]+";"))}i?t.styles=o:t.stylesWithoutHost=o,i?t.classes=d:t.classesWithoutHost=d}function jf(t,n,i,o,d=!1){for(;null!==i;){const g=n[i.index];null!==g&&o.push(Di(g)),Ki(g)&&O_(g,o);const T=i.type;if(8&T)jf(t,n,i.child,o);else if(32&T){const R=Cn(i,n);let B;for(;B=R();)o.push(B)}else if(16&T){const R=xh(n,i);if(Array.isArray(R))o.push(...R);else{const B=Yn(n[Ni]);jf(B[On],B,R,o,!0)}}i=d?i.projectionNext:i.next}return o}function O_(t,n){for(let i=ks;i<t.length;i++){const o=t[i],d=o[On].firstChild;null!==d&&jf(o[On],o,d,n)}t[ro]!==t[Vi]&&n.push(t[ro])}function Ip(t,n,i,o=!0){const d=n[oo],g=d.rendererFactory,T=d.afterRenderEventManager;g.begin?.(),T?.begin();try{R_(t,n,t.template,i)}catch(B){throw o&&x_(n,B),B}finally{g.end?.(),d.effectManager?.flush(),T?.end()}}function R_(t,n,i,o){const d=n[ni];if(256!=(256&d)){n[oo].effectManager?.flush(),kr(n);try{Va(n),function A(t){return Jn.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==i&&g_(t,n,i,2,o);const T=3==(3&d);if(T){const W=t.preOrderCheckHooks;null!==W&&xa(n,W,null)}else{const W=t.preOrderHooks;null!==W&&Ha(n,W,0,null),nc(n,0)}if(function Cy(t){for(let n=uo(t);null!==n;n=zs(n)){if(!n[mr])continue;const i=n[Bo];for(let o=0;o<i.length;o++){Ta(i[o])}}}(n),N_(n,2),null!==t.contentQueries&&T_(t,n),T){const W=t.contentCheckHooks;null!==W&&xa(n,W)}else{const W=t.contentHooks;null!==W&&Ha(n,W,1),nc(n,1)}!function z0(t,n){const i=t.hostBindingOpCodes;if(null===i)return;const o=c_(n,ua);try{for(let d=0;d<i.length;d++){const g=i[d];if(g<0)ja(~g);else{const T=g,R=i[++d],B=i[++d];Te(R,T),o.dirty=!1;const W=Uo(o);try{B(2,n[T])}finally{Lr(o,W)}}}}finally{null===n[ua]&&d_(n,ua),ja(-1)}}(t,n);const R=t.components;null!==R&&A_(n,R,0);const B=t.viewQuery;if(null!==B&&Om(2,B,o),T){const W=t.viewCheckHooks;null!==W&&xa(n,W)}else{const W=t.viewHooks;null!==W&&Ha(n,W,2),nc(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[ni]&=-73,gl(n)}finally{Mc()}}}function N_(t,n){for(let i=uo(t);null!==i;i=zs(i))for(let o=ks;o<i.length;o++)F_(i[o],n)}function wy(t,n,i){F_(lo(n,t),i)}function F_(t,n){if(!function ml(t){return 128==(128&t[ni])}(t))return;const i=t[On],o=t[ni];if(80&o&&0===n||1024&o||2===n)R_(i,t,i.template,t[Wi]);else if(t[go]>0){N_(t,1);const d=i.components;null!==d&&A_(t,d,1)}}function A_(t,n,i){for(let o=0;o<n.length;o++)wy(t,n[o],i)}class Gf{get rootNodes(){const n=this._lView,i=n[On];return jf(i,n,i.firstChild,[])}constructor(n,i){this._lView=n,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Wi]}set context(n){this._lView[Wi]=n}get destroyed(){return 256==(256&this._lView[ni])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[Xi];if(Ki(n)){const i=n[8],o=i?i.indexOf(this):-1;o>-1&&(ci(n,o),Qi(i,o))}this._attachedToViewContainer=!1}bi(this._lView[On],this._lView)}onDestroy(n){Ll(this._lView,n)}markForCheck(){Bf(this._cdRefInjectingView||this._lView)}detach(){this._lView[ni]&=-129}reattach(){this._lView[ni]|=128}detectChanges(){Ip(this._lView[On],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new me(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function jd(t,n){Fu(t,n,n[ii],2,null,null)}(this._lView[On],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new me(902,!1);this._appRef=n}}class Dy extends Gf{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Ip(n[On],n,n[Wi],!1)}checkNoChanges(){}get context(){return null}}class P_ extends s{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const i=yi(n);return new Hf(i,this.ngModule)}}function L_(t){const n=[];for(let i in t)t.hasOwnProperty(i)&&n.push({propName:t[i],templateName:i});return n}class Ty{constructor(n,i){this.injector=n,this.parentInjector=i}get(n,i,o){o=Bt(o);const d=this.injector.get(n,ds,o);return d!==ds||i===ds?d:this.parentInjector.get(n,i,o)}}class Hf extends Pf{get inputs(){const n=this.componentDef,i=n.inputTransforms,o=L_(n.inputs);if(null!==i)for(const d of o)i.hasOwnProperty(d.propName)&&(d.transform=i[d.propName]);return o}get outputs(){return L_(this.componentDef.outputs)}constructor(n,i){super(),this.componentDef=n,this.ngModule=i,this.componentType=n.type,this.selector=function In(t){return t.map(ur).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!i}create(n,i,o,d){let g=(d=d||this.ngModule)instanceof od?d:d?.injector;g&&null!==this.componentDef.getStandaloneInjector&&(g=this.componentDef.getStandaloneInjector(g)||g);const T=g?new Ty(n,g):n,R=T.get(G,null);if(null===R)throw new me(407,!1);const qe={rendererFactory:R,sanitizer:T.get(Ut,null),effectManager:T.get(I_,null),afterRenderEventManager:T.get(wm,null)},Ct=R.createRenderer(null,this.componentDef),Lt=this.componentDef.selectors[0][0]||"div",ln=o?function X0(t,n,i,o){const g=o.get(o_,!1)||i===gn.ShadowDom,T=t.selectRootElement(n,g);return function W0(t){v_(t)}(T),T}(Ct,o,this.componentDef.encapsulation,T):Wa(Ct,Lt,function My(t){const n=t.toLowerCase();return"svg"===n?Yo:"math"===n?"math":null}(Lt)),mi=this.componentDef.signals?4608:this.componentDef.onPush?576:528;let vn=null;null!==ln&&(vn=zh(ln,T,!0));const Ai=Sm(0,null,null,1,0,null,null,null,null,null,null),ps=Sp(null,Ai,null,mi,null,null,qe,Ct,T,null,vn);let Do,_c;kr(ps);try{const pu=this.componentDef;let gf,Bg=null;pu.findHostDirectiveDefs?(gf=[],Bg=new Map,pu.findHostDirectiveDefs(pu,gf,Bg),gf.push(pu)):gf=[pu];const ST=function Sy(t,n){const i=t[On],o=gi;return t[o]=n,Qh(i,o,2,"#host",null)}(ps,ln),kT=function ky(t,n,i,o,d,g,T){const R=d[On];!function xy(t,n,i,o){for(const d of t)n.mergedAttrs=$e(n.mergedAttrs,d.hostAttrs);null!==n.mergedAttrs&&(xp(n,n.mergedAttrs,!0),null!==i&&rh(o,i,n))}(o,t,n,T);let B=null;null!==n&&(B=zh(n,d[fr]));const W=g.rendererFactory.createRenderer(n,i);let he=16;i.signals?he=4096:i.onPush&&(he=64);const qe=Sp(d,__(i),null,he,d[t.index],t,g,W,null,null,B);return R.firstCreatePass&&xm(R,t,o.length-1),kp(d,qe),d[t.index]=qe}(ST,ln,pu,gf,ps,qe,Ct);_c=Ba(Ai,gi),ln&&function Oy(t,n,i,o){if(o)Rt(t,i,["ng-version",Qn.full]);else{const{attrs:d,classes:g}=function Ao(t){const n=[],i=[];let o=1,d=2;for(;o<t.length;){let g=t[o];if("string"==typeof g)2===d?""!==g&&n.push(g,t[++o]):8===d&&i.push(g);else{if(!li(d))break;d=g}o++}return{attrs:n,classes:i}}(n.selectors[0]);d&&Rt(t,i,d),g&&g.length>0&&yf(t,i,g.join(" "))}}(Ct,pu,ln,o),void 0!==i&&function Ry(t,n,i){const o=t.projection=[];for(let d=0;d<n.length;d++){const g=i[d];o.push(null!=g?Array.from(g):null)}}(_c,this.ngContentSelectors,i),Do=function Iy(t,n,i,o,d,g){const T=fs(),R=d[On],B=ao(T,d);C_(R,d,T,i,null,o);for(let he=0;he<i.length;he++)y(Cr(d,R,T.directiveStart+he,T),d);w_(R,d,T),B&&y(B,d);const W=Cr(d,R,T.directiveStart+T.componentOffset,T);if(t[Wi]=d[Wi]=W,null!==g)for(const he of g)he(W,n);return Mm(R,T,t),W}(kT,pu,gf,Bg,ps,[Ny]),Nm(Ai,ps,null)}finally{Mc()}return new Ey(this.componentType,Do,r(_c,ps),ps,_c)}}class Ey extends zd{constructor(n,i,o,d,g){super(),this.location=o,this._rootLView=d,this._tNode=g,this.previousInputValues=null,this.instance=i,this.hostView=this.changeDetectorRef=new Dy(d),this.componentType=n}setInput(n,i){const o=this._tNode.inputs;let d;if(null!==o&&(d=o[n])){if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),i))return;const g=this._rootLView;Rm(g[On],g,d,n,i),this.previousInputValues.set(n,i),Bf(lo(this._tNode.index,g))}}get injector(){return new Oo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function Ny(){const t=fs();Gs(Zt()[On],t)}function Fm(t){let n=function B_(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),i=!0;const o=[t];for(;n;){let d;if(Mi(t))d=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new me(903,!1);d=n.\u0275dir}if(d){if(i){o.push(d);const T=t;T.inputs=Op(t.inputs),T.inputTransforms=Op(t.inputTransforms),T.declaredInputs=Op(t.declaredInputs),T.outputs=Op(t.outputs);const R=d.hostBindings;R&&Ly(t,R);const B=d.viewQuery,W=d.contentQueries;if(B&&Ay(t,B),W&&Py(t,W),Ge(t.inputs,d.inputs),Ge(t.declaredInputs,d.declaredInputs),Ge(t.outputs,d.outputs),null!==d.inputTransforms&&(null===T.inputTransforms&&(T.inputTransforms={}),Ge(T.inputTransforms,d.inputTransforms)),Mi(d)&&d.data.animation){const he=t.data;he.animation=(he.animation||[]).concat(d.data.animation)}}const g=d.features;if(g)for(let T=0;T<g.length;T++){const R=g[T];R&&R.ngInherit&&R(t),R===Fm&&(i=!1)}}n=Object.getPrototypeOf(n)}!function Fy(t){let n=0,i=null;for(let o=t.length-1;o>=0;o--){const d=t[o];d.hostVars=n+=d.hostVars,d.hostAttrs=$e(d.hostAttrs,i=$e(i,d.hostAttrs))}}(o)}function Op(t){return t===ri?{}:t===Sn?[]:t}function Ay(t,n){const i=t.viewQuery;t.viewQuery=i?(o,d)=>{n(o,d),i(o,d)}:n}function Py(t,n){const i=t.contentQueries;t.contentQueries=i?(o,d,g)=>{n(o,d,g),i(o,d,g)}:n}function Ly(t,n){const i=t.hostBindings;t.hostBindings=i?(o,d)=>{n(o,d),i(o,d)}:n}function V_(t){return n=>{n.findHostDirectiveDefs=j_,n.hostDirectives=(Array.isArray(t)?t:t()).map(i=>"function"==typeof i?{directive:ft(i),inputs:ri,outputs:ri}:{directive:ft(i.directive),inputs:G_(i.inputs),outputs:G_(i.outputs)})}}function j_(t,n,i){if(null!==t.hostDirectives)for(const o of t.hostDirectives){const d=ws(o.directive);Gy(d.declaredInputs,o.inputs),j_(d,n,i),i.set(d,o),n.push(d)}}function G_(t){if(void 0===t||0===t.length)return ri;const n={};for(let i=0;i<t.length;i+=2)n[t[i]]=t[i+1];return n}function Gy(t,n){for(const i in n)n.hasOwnProperty(i)&&(t[n[i]]=t[i])}function U_(t){const n=t.inputConfig,i={};for(const o in n)if(n.hasOwnProperty(o)){const d=n[o];Array.isArray(d)&&d[2]&&(i[o]=d[2])}t.inputTransforms=i}function Rp(t){return!!Am(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function Am(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Kd(t,n,i){return t[n]=i}function Ol(t,n,i){return!Object.is(t[n],i)&&(t[n]=i,!0)}function vh(t,n,i,o){const d=Ol(t,n,i);return Ol(t,n+1,o)||d}function ad(t,n,i,o,d,g){const T=vh(t,n,i,o);return vh(t,n+2,d,g)||T}function Pm(t,n,i,o){const d=Zt();return Ol(d,V(),n)&&(si(),Wd(js(),d,t,n,i,o)),Pm}function Jh(t,n,i,o){return Ol(t,V(),i)?n+rt(i)+o:Yi}function nv(t,n,i,o,d,g,T,R){const B=Zt(),W=si(),he=t+gi,qe=W.firstCreatePass?function aC(t,n,i,o,d,g,T,R,B){const W=n.consts,he=Qh(n,t,4,T||null,xo(W,R));km(n,i,he,xo(W,B)),Gs(n,he);const qe=he.tView=Sm(2,he,o,d,g,n.directiveRegistry,n.pipeRegistry,null,n.schemas,W,null);return null!==n.queries&&(n.queries.template(n,he),qe.queries=n.queries.embeddedTView(he)),he}(he,W,B,n,i,o,d,g,T):W.data[he];sa(qe,!1);const Ct=iv(W,B,qe,t);sl()&&sh(W,B,Ct,qe),y(Ct,B),kp(B,B[he]=M_(Ct,B,Ct,qe)),Kr(qe)&&Tm(W,B,qe),null!=T&&Em(B,qe,R)}let iv=function sv(t,n,i,o){return eo(!0),n[ii].createComment("")};function ov(t){return na(function Jd(){return Jn.lFrame.contextLView}(),gi+t)}function Hm(t,n,i){const o=Zt();return Ol(o,V(),n)&&Vc(si(),js(),o,t,n,o[ii],i,!1),Hm}function Um(t,n,i,o,d){const T=d?"class":"style";Rm(t,i,n.inputs[T],T,o)}function Lp(t,n,i,o){const d=Zt(),g=si(),T=gi+t,R=d[ii],B=g.firstCreatePass?function uC(t,n,i,o,d,g){const T=n.consts,B=Qh(n,t,2,o,xo(T,d));return km(n,i,B,xo(T,g)),null!==B.attrs&&xp(B,B.attrs,!1),null!==B.mergedAttrs&&xp(B,B.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,B),B}(T,g,d,n,i,o):g.data[T],W=rv(g,d,B,R,n,t);d[T]=W;const he=Kr(B);return sa(B,!0),rh(R,W,B),32!=(32&B.flags)&&sl()&&sh(g,d,W,B),0===function ia(){return Jn.lFrame.elementDepthCount}()&&y(W,d),function or(){Jn.lFrame.elementDepthCount++}(),he&&(Tm(g,d,B),Mm(g,B,d)),null!==o&&Em(d,B),Lp}function Bp(){let t=fs();ka()?Dc():(t=t.parent,sa(t,!1));const n=t;(function Br(t){return Jn.skipHydrationRootTNode===t})(n)&&function ld(){Jn.skipHydrationRootTNode=null}(),function qn(){Jn.lFrame.elementDepthCount--}();const i=si();return i.firstCreatePass&&(Gs(i,t),gr(t)&&i.queries.elementEnd(t)),null!=n.classesWithoutHost&&function Ia(t){return 0!=(8&t.flags)}(n)&&Um(i,n,Zt(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function kc(t){return 0!=(16&t.flags)}(n)&&Um(i,n,Zt(),n.stylesWithoutHost,!1),Bp}function $m(t,n,i,o){return Lp(t,n,i,o),Bp(),$m}let rv=(t,n,i,o,d,g)=>(eo(!0),Wa(o,d,function cd(){return Jn.lFrame.currentNamespace}()));function Vp(t,n,i){const o=Zt(),d=si(),g=t+gi,T=d.firstCreatePass?function pC(t,n,i,o,d){const g=n.consts,T=xo(g,o),R=Qh(n,t,8,"ng-container",T);return null!==T&&xp(R,T,!0),km(n,i,R,xo(g,d)),null!==n.queries&&n.queries.elementStart(n,R),R}(g,d,o,n,i):d.data[g];sa(T,!0);const R=av(d,o,T,t);return o[g]=R,sl()&&sh(d,o,R,T),y(R,o),Kr(T)&&(Tm(d,o,T),Mm(d,T,o)),null!=i&&Em(o,T),Vp}function jp(){let t=fs();const n=si();return ka()?Dc():(t=t.parent,sa(t,!1)),n.firstCreatePass&&(Gs(n,t),gr(t)&&n.queries.elementEnd(t)),jp}function Ym(t,n,i){return Vp(t,n,i),jp(),Ym}let av=(t,n,i,o)=>(eo(!0),Xa(n[ii],""));function lv(){return Zt()}function zm(t){return!!t&&"function"==typeof t.then}function cv(t){return!!t&&"function"==typeof t.subscribe}function qm(t,n,i,o){const d=Zt(),g=si(),T=fs();return function uv(t,n,i,o,d,g,T){const R=Kr(o),W=t.firstCreatePass&&S_(t),he=n[Wi],qe=E_(n);let Ct=!0;if(3&o.type||T){const Tn=ao(o,n),Xn=T?T(Tn):Tn,mi=qe.length,vn=T?ps=>T(Di(ps[o.index])):o.index;let Ai=null;if(!T&&R&&(Ai=function _C(t,n,i,o){const d=t.cleanup;if(null!=d)for(let g=0;g<d.length-1;g+=2){const T=d[g];if(T===i&&d[g+1]===o){const R=n[Ko],B=d[g+2];return R.length>B?R[B]:null}"string"==typeof T&&(g+=2)}return null}(t,n,d,o.index)),null!==Ai)(Ai.__ngLastListenerFn__||Ai).__ngNextListenerFn__=g,Ai.__ngLastListenerFn__=g,Ct=!1;else{g=fv(o,n,he,g,!1);const ps=i.listen(Xn,d,g);qe.push(g,ps),W&&W.push(d,vn,mi,mi+1)}}else g=fv(o,n,he,g,!1);const Lt=o.outputs;let ln;if(Ct&&null!==Lt&&(ln=Lt[d])){const Tn=ln.length;if(Tn)for(let Xn=0;Xn<Tn;Xn+=2){const Do=n[ln[Xn]][ln[Xn+1]].subscribe(g),_c=qe.length;qe.push(g,Do),W&&W.push(d,o.index,_c,-(_c+1))}}}(g,d,d[ii],T,t,n,o),qm}function hv(t,n,i,o){try{return ns(6,n,i),!1!==i(o)}catch(d){return x_(t,d),!1}finally{ns(7,n,i)}}function fv(t,n,i,o,d){return function g(T){if(T===Function)return o;Bf(t.componentOffset>-1?lo(t.index,n):n);let B=hv(n,i,o,T),W=g.__ngNextListenerFn__;for(;W;)B=hv(n,i,W,T)&&B,W=W.__ngNextListenerFn__;return d&&!1===B&&T.preventDefault(),B}}function pv(t=1){return function eu(t){return(Jn.lFrame.contextLView=function Ed(t,n){for(;t>0;)n=n[qr],t--;return n}(t,Jn.lFrame.contextLView))[Wi]}(t)}function vC(t,n){let i=null;const o=function dr(t){const n=t.attrs;if(null!=n){const i=n.indexOf(5);if(!(1&i))return n[i+1]}return null}(t);for(let d=0;d<n.length;d++){const g=n[d];if("*"!==g){if(null===o?Ls(t,g,!0):Xs(o,g))return d}else i=d}return i}function mv(t){const n=Zt()[Ni][so];if(!n.projection){const o=n.projection=Ir(t?t.length:1,null),d=o.slice();let g=n.child;for(;null!==g;){const T=t?vC(g,t):0;null!==T&&(d[T]?d[T].projectionNext=g:o[T]=g,d[T]=g),g=g.next}}}function gv(t,n=0,i){const o=Zt(),d=si(),g=Qh(d,gi+t,16,null,i||null);null===g.projection&&(g.projection=n),Dc(),(!o[_o]||Bl())&&32!=(32&g.flags)&&function Nh(t,n,i){bf(n[ii],0,n,i,$r(t,i,n),ou(i.parent||n[so],i,n))}(d,o,g)}function Xm(t,n,i){return Gp(t,"",n,"",i),Xm}function Gp(t,n,i,o,d){const g=Zt(),T=Jh(g,n,i,o);return T!==Yi&&Vc(si(),js(),g,t,T,g[ii],d,!1),Gp}function Hp(t,n){return t<<17|n<<2}function Wu(t){return t>>17&32767}function Wm(t){return 2|t}function bh(t){return(131068&t)>>2}function Km(t,n){return-131069&t|n<<2}function Qm(t){return 1|t}function Tv(t,n,i,o,d){const g=t[i+1],T=null===n;let R=o?Wu(g):bh(g),B=!1;for(;0!==R&&(!1===B||T);){const he=t[R+1];MC(t[R],n)&&(B=!0,t[R+1]=o?Qm(he):Wm(he)),R=o?Wu(he):bh(he)}B&&(t[i+1]=o?Wm(g):Qm(g))}function MC(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&za(t,n)>=0}const Na={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ev(t){return t.substring(Na.key,Na.keyEnd)}function Sv(t,n){const i=Na.textEnd;return i===n?-1:(n=Na.keyEnd=function kC(t,n,i){for(;n<i&&t.charCodeAt(n)>32;)n++;return n}(t,Na.key=n,i),cf(t,n,i))}function cf(t,n,i){for(;n<i&&t.charCodeAt(n)<=32;)n++;return n}function Zm(t,n,i){return Md(t,n,i,!1),Zm}function Jm(t,n){return Md(t,n,null,!0),Jm}function Rv(t){!function Td(t,n,i,o){const d=si(),g=O(2);d.firstUpdatePass&&Fv(d,null,g,o);const T=Zt();if(i!==Yi&&Ol(T,g,i)){const R=d.data[Jo()];if(Bv(R,o)&&!Nv(d,g)){let B=o?R.classesWithoutHost:R.stylesWithoutHost;null!==B&&(i=yt(B,i||"")),Um(d,R,T,i,o)}else!function BC(t,n,i,o,d,g,T,R){d===Yi&&(d=Sn);let B=0,W=0,he=0<d.length?d[0]:null,qe=0<g.length?g[0]:null;for(;null!==he||null!==qe;){const Ct=B<d.length?d[B+1]:void 0,Lt=W<g.length?g[W+1]:void 0;let Tn,ln=null;he===qe?(B+=2,W+=2,Ct!==Lt&&(ln=qe,Tn=Lt)):null===qe||null!==he&&he<qe?(B+=2,ln=he):(W+=2,ln=qe,Tn=Lt),null!==ln&&Pv(t,n,i,o,ln,Tn,T,R),he=B<d.length?d[B]:null,qe=W<g.length?g[W]:null}}(d,R,T,T[ii],T[g+1],T[g+1]=function PC(t,n,i){if(null==i||""===i)return Sn;const o=[],d=nd(i);if(Array.isArray(d))for(let g=0;g<d.length;g++)t(o,d[g],!0);else if("object"==typeof d)for(const g in d)d.hasOwnProperty(g)&&t(o,g,d[g]);else"string"==typeof d&&n(o,d);return o}(t,n,i),o,g)}}(LC,Zd,t,!0)}function Zd(t,n){for(let i=function EC(t){return function xv(t){Na.key=0,Na.keyEnd=0,Na.value=0,Na.valueEnd=0,Na.textEnd=t.length}(t),Sv(t,cf(t,0,Na.textEnd))}(n);i>=0;i=Sv(n,i))ya(t,Ev(n),!0)}function Md(t,n,i,o){const d=Zt(),g=si(),T=O(2);g.firstUpdatePass&&Fv(g,t,T,o),n!==Yi&&Ol(d,T,n)&&Pv(g,g.data[Jo()],d,d[ii],t,d[T+1]=function VC(t,n){return null==t||""===t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Ue(nd(t)))),t}(n,i),o,T)}function Nv(t,n){return n>=t.expandoStartIndex}function Fv(t,n,i,o){const d=t.data;if(null===d[i+1]){const g=d[Jo()],T=Nv(t,i);Bv(g,o)&&null===n&&!T&&(n=!1),n=function RC(t,n,i,o){const d=Ht(t);let g=o?n.residualClasses:n.residualStyles;if(null===d)0===(o?n.classBindings:n.styleBindings)&&(i=qf(i=eg(null,t,n,i,o),n.attrs,o),g=null);else{const T=n.directiveStylingLast;if(-1===T||t[T]!==d)if(i=eg(d,t,n,i,o),null===g){let B=function NC(t,n,i){const o=i?n.classBindings:n.styleBindings;if(0!==bh(o))return t[Wu(o)]}(t,n,o);void 0!==B&&Array.isArray(B)&&(B=eg(null,t,n,B[1],o),B=qf(B,n.attrs,o),function FC(t,n,i,o){t[Wu(i?n.classBindings:n.styleBindings)]=o}(t,n,o,B))}else g=function AC(t,n,i){let o;const d=n.directiveEnd;for(let g=1+n.directiveStylingLast;g<d;g++)o=qf(o,t[g].hostAttrs,i);return qf(o,n.attrs,i)}(t,n,o)}return void 0!==g&&(o?n.residualClasses=g:n.residualStyles=g),i}(d,g,n,o),function wC(t,n,i,o,d,g){let T=g?n.classBindings:n.styleBindings,R=Wu(T),B=bh(T);t[o]=i;let he,W=!1;if(Array.isArray(i)?(he=i[1],(null===he||za(i,he)>0)&&(W=!0)):he=i,d)if(0!==B){const Ct=Wu(t[R+1]);t[o+1]=Hp(Ct,R),0!==Ct&&(t[Ct+1]=Km(t[Ct+1],o)),t[R+1]=function yC(t,n){return 131071&t|n<<17}(t[R+1],o)}else t[o+1]=Hp(R,0),0!==R&&(t[R+1]=Km(t[R+1],o)),R=o;else t[o+1]=Hp(B,0),0===R?R=o:t[B+1]=Km(t[B+1],o),B=o;W&&(t[o+1]=Wm(t[o+1])),Tv(t,he,o,!0),Tv(t,he,o,!1),function DC(t,n,i,o,d){const g=d?t.residualClasses:t.residualStyles;null!=g&&"string"==typeof n&&za(g,n)>=0&&(i[o+1]=Qm(i[o+1]))}(n,he,t,o,g),T=Hp(R,B),g?n.classBindings=T:n.styleBindings=T}(d,g,n,i,T,o)}}function eg(t,n,i,o,d){let g=null;const T=i.directiveEnd;let R=i.directiveStylingLast;for(-1===R?R=i.directiveStart:R++;R<T&&(g=n[R],o=qf(o,g.hostAttrs,d),g!==t);)R++;return null!==t&&(i.directiveStylingLast=R),o}function qf(t,n,i){const o=i?1:2;let d=-1;if(null!==n)for(let g=0;g<n.length;g++){const T=n[g];"number"==typeof T?d=T:d===o&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),ya(t,T,!!i||n[++g]))}return void 0===t?null:t}function LC(t,n,i){const o=String(n);""!==o&&!o.includes(" ")&&ya(t,o,i)}function Pv(t,n,i,o,d,g,T,R){if(!(3&n.type))return;const B=t.data,W=B[R+1],he=function CC(t){return 1==(1&t)}(W)?Lv(B,n,i,d,bh(W),T):void 0;Up(he)||(Up(g)||function bC(t){return 2==(2&t)}(W)&&(g=Lv(B,null,i,d,R,T)),function op(t,n,i,o,d){if(n)d?t.addClass(i,o):t.removeClass(i,o);else{let g=-1===o.indexOf("-")?void 0:Co.DashCase;null==d?t.removeStyle(i,o,g):("string"==typeof d&&d.endsWith("!important")&&(d=d.slice(0,-10),g|=Co.Important),t.setStyle(i,o,d,g))}}(o,T,ma(Jo(),i),d,g))}function Lv(t,n,i,o,d,g){const T=null===n;let R;for(;d>0;){const B=t[d],W=Array.isArray(B),he=W?B[1]:B,qe=null===he;let Ct=i[d+1];Ct===Yi&&(Ct=qe?Sn:void 0);let Lt=qe?zc(Ct,o):he===o?Ct:void 0;if(W&&!Up(Lt)&&(Lt=zc(B,o)),Up(Lt)&&(R=Lt,T))return R;const ln=t[d+1];d=T?Wu(ln):bh(ln)}if(null!==n){let B=g?n.residualClasses:n.residualStyles;null!=B&&(R=zc(B,o))}return R}function Up(t){return void 0!==t}function Bv(t,n){return 0!=(t.flags&(n?8:16))}function Vv(t,n=""){const i=Zt(),o=si(),d=t+gi,g=o.firstCreatePass?Qh(o,d,1,n,null):o.data[d],T=jv(o,i,g,n,t);i[d]=T,sl()&&sh(o,i,T,g),sa(g,!1)}let jv=(t,n,i,o,d)=>(eo(!0),la(n[ii],o));function tg(t){return $p("",t,""),tg}function $p(t,n,i){const o=Zt(),d=Jh(o,t,n,i);return d!==Yi&&function fu(t,n,i){const o=ma(n,t);!function Dr(t,n,i){t.setValue(n,i)}(t[ii],o,i)}(o,Jo(),d),$p}function ng(t,n,i){const o=Zt();return Ol(o,V(),n)&&Vc(si(),js(),o,t,n,o[ii],i,!0),ng}function ig(t,n,i){const o=Zt();if(Ol(o,V(),n)){const g=si(),T=js();Vc(g,T,o,t,n,k_(Ht(g.data),T,o),i,!0)}return ig}const yh=void 0;var aw=["en",[["a","p"],["AM","PM"],yh],[["AM","PM"],yh,yh],[["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"]],yh,[["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"]],yh,[["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}",yh,"{1} 'at' {0}",yh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function rw(t){const i=Math.floor(Math.abs(t)),o=t.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===o?1:5}];let df={};function sg(t){const n=function lw(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=ob(n);if(i)return i;const o=n.split("-")[0];if(i=ob(o),i)return i;if("en"===o)return aw;throw new me(701,!1)}function sb(t){return sg(t)[uf.PluralCase]}function ob(t){return t in df||(df[t]=qt.ng&&qt.ng.common&&qt.ng.common.locales&&qt.ng.common.locales[t]),df[t]}var uf=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(uf||{});const hf="en-US",Yp={marker:"element"},zp={marker:"ICU"};var mc=function(t){return t[t.SHIFT=2]="SHIFT",t[t.APPEND_EAGERLY=1]="APPEND_EAGERLY",t[t.COMMENT=2]="COMMENT",t}(mc||{});let rb=hf;function ab(t){(function Ye(t,n){null==t&&L(n,t,null,"!=")})(t,"Expected localeId to be defined"),"string"==typeof t&&(rb=t.toLowerCase().replace(/_/g,"-"))}function lb(t,n,i){const o=n.insertBeforeIndex,d=Array.isArray(o)?o[0]:o;return null===d?_f(t,0,i):Di(i[d])}function cb(t,n,i,o,d){const g=n.insertBeforeIndex;if(Array.isArray(g)){let T=o,R=null;if(3&n.type||(R=T,T=d),null!==T&&-1===n.componentOffset)for(let B=1;B<g.length;B++)As(t,T,i[g[B]],R,!1)}}function db(t,n){if(t.push(n),t.length>1)for(let i=t.length-2;i>=0;i--){const o=t[i];ub(o)||fw(o,n)&&null===pw(o)&&mw(o,n.index)}}function ub(t){return!(64&t.type)}function fw(t,n){return ub(n)||t.index>n.index}function pw(t){const n=t.insertBeforeIndex;return Array.isArray(n)?n[0]:n}function mw(t,n){const i=t.insertBeforeIndex;Array.isArray(i)?i[0]=n:(vf(lb,cb),t.insertBeforeIndex=n)}function vw(t,n,i){const o=Dm(t,i,64,null,null);return db(n,o),o}function Tw(){const t=[];let i,o,n=-1;function g(R,B){n=0;const W=function qp(t,n){const i=n[t.currentCaseLViewIndex];return null===i?i:i<0?~i:i}(R,B);o=null!==W?R.remove[W]:Sn}function T(){if(n<o.length){const R=o[n++];return R>0?i[R]:(t.push(n,o),g(i[On].data[~R],i),T())}return 0===t.length?null:(o=t.pop(),n=t.pop(),T())}return function d(R,B){for(i=B;t.length;)t.pop();return g(R.value,B),T}}const Xp=/\ufffd(\d+):?\d*\ufffd/gi,Sw=/\ufffd(\d+)\ufffd/,yb=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,Qf="\ufffd",kw=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,xw=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,Iw=/\uE500/g;function Cb(t,n,i,o,d,g,T){const R=Vf(t,o,1,null);let B=R<<mc.SHIFT,W=tc();n===W&&(W=null),null===W&&(B|=mc.APPEND_EAGERLY),T&&(B|=mc.COMMENT,function Fn(t){void 0===Un&&(Un=t())}(Tw)),d.push(B,null===g?"":g);const he=Dm(t,R,T?32:1,null===g?"":g,null);db(i,he);const qe=he.index;return sa(he,!1),null!==W&&n!==W&&function _w(t,n){let i=t.insertBeforeIndex;null===i?(vf(lb,cb),i=t.insertBeforeIndex=[null,n]):(function Se(t,n,i){t!=n&&L(i,t,n,"==")}(Array.isArray(i),!0,"Expecting array here"),i.push(n))}(W,qe),he}function Nw(t,n,i,o,d,g,T){const R=T.match(Xp),B=Cb(t,n,i,g,o,R?null:T,!1);R&&Zf(d,T,B.index,null,0,null)}function Zf(t,n,i,o,d,g){const T=t.length,R=T+1;t.push(null,null);const B=T+2,W=n.split(Xp);let he=0;for(let qe=0;qe<W.length;qe++){const Ct=W[qe];if(1&qe){const Lt=d+parseInt(Ct,10);t.push(-1-Lt),he|=wb(Lt)}else""!==Ct&&t.push(Ct)}return t.push(i<<2|(o?1:0)),o&&t.push(o,g),t[T]=he,t[R]=t.length-B,he}function wb(t){return 1<<Math.min(t,31)}function Db(t){let n,g,i="",o=0,d=!1;for(;null!==(n=kw.exec(t));)d?n[0]===`${Qf}/*${g}${Qf}`&&(o=n.index,d=!1):(i+=t.substring(o,n.index+n[0].length),g=n[1],d=!0);return i+=t.slice(o),i}function Mb(t,n,i,o,d,g){let T=0;const R={type:d.type,currentCaseLViewIndex:Vf(t,n,1,null),anchorIdx:g,cases:[],create:[],remove:[],update:[]};(function Gw(t,n,i){t.push(wb(n.mainBinding),2,-1-n.mainBinding,i<<2|2)})(i,d,g),function gw(t,n,i){const o=t.data[n];null===o?t.data[n]=i:o.value=i}(t,g,R);const B=d.values;for(let W=0;W<B.length;W++){const he=B[W],qe=[];for(let Ct=0;Ct<he.length;Ct++){const Lt=he[Ct];if("string"!=typeof Lt){const ln=qe.push(Lt)-1;he[Ct]=`\x3c!--\ufffd${ln}\ufffd--\x3e`}}T=Vw(t,R,n,i,o,d.cases[W],he.join(""),qe)|T}T&&function Hw(t,n,i){t.push(n,1,i<<2|3)}(i,T,g)}function Bw(t){const n=[],i=[];let o=1,d=0;const g=og(t=t.replace(yb,function(T,R,B){return o="select"===B?0:1,d=parseInt(R.slice(1),10),""}));for(let T=0;T<g.length;){let R=g[T++].trim();1===o&&(R=R.replace(/\s*(?:=)?(\w+)\s*/,"$1")),R.length&&n.push(R);const B=og(g[T++]);n.length>i.length&&i.push(B)}return{type:o,mainBinding:d,cases:n,values:i}}function og(t){if(!t)return[];let n=0;const i=[],o=[],d=/[{}]/g;let g;for(d.lastIndex=0;g=d.exec(t);){const R=g.index;if("}"==g[0]){if(i.pop(),0==i.length){const B=t.substring(n,R);yb.test(B)?o.push(Bw(B)):o.push(B),n=R+1}}else{if(0==i.length){const B=t.substring(n,R);o.push(B),n=R+1}i.push("{")}}const T=t.substring(n);return o.push(T),o}function Vw(t,n,i,o,d,g,T,R){const B=[],W=[],he=[];n.cases.push(g),n.create.push(B),n.remove.push(W),n.update.push(he);const Ct=p(Gd()).getInertBodyElement(T),Lt=ca(Ct)||Ct;return Lt?Tb(t,n,i,o,B,W,he,Lt,d,R,0):0}function Tb(t,n,i,o,d,g,T,R,B,W,he){let qe=0,Ct=R.firstChild;for(;Ct;){const Lt=Vf(t,i,1,null);switch(Ct.nodeType){case Node.ELEMENT_NODE:const ln=Ct,Tn=ln.tagName.toLowerCase();if(os.hasOwnProperty(Tn)){rg(d,Yp,Tn,B,Lt),t.data[Lt]=Tn;const Ai=ln.attributes;for(let ps=0;ps<Ai.length;ps++){const Do=Ai.item(ps),_c=Do.name.toLowerCase();Do.value.match(Xp)?_s.hasOwnProperty(_c)&&Zf(T,Do.value,Lt,Do.name,0,Ji[_c]?Tt:null):Uw(d,Lt,Do)}qe=Tb(t,n,i,o,d,g,T,Ct,Lt,W,he+1)|qe,Eb(g,Lt,he)}break;case Node.TEXT_NODE:const Xn=Ct.textContent||"",mi=Xn.match(Xp);rg(d,null,mi?"":Xn,B,Lt),Eb(g,Lt,he),mi&&(qe=Zf(T,Xn,Lt,null,0,null)|qe);break;case Node.COMMENT_NODE:const vn=Sw.exec(Ct.textContent||"");if(vn){const ps=W[parseInt(vn[1],10)];rg(d,zp,"",B,Lt),Mb(t,i,o,B,ps,Lt),jw(g,Lt,he)}}Ct=Ct.nextSibling}return qe}function Eb(t,n,i){0===i&&t.push(n)}function jw(t,n,i){0===i&&(t.push(~n),t.push(n))}function rg(t,n,i,o,d){null!==n&&t.push(n),t.push(i,d,function bw(t,n,i){return t|n<<17|i<<1}(0,o,d))}function Uw(t,n,i){t.push(n<<1|1,i.name,i.value)}function kb(t,n,i=-1){const o=si(),d=Zt(),g=gi+t,T=xo(o.consts,n),R=tc();o.firstCreatePass&&function Rw(t,n,i,o,d,g){const T=tc(),R=[],B=[],W=[[]];d=function Lw(t,n){if(function Pw(t){return-1===t}(n))return Db(t);{const i=t.indexOf(`:${n}${Qf}`)+2+n.toString().length,o=t.search(new RegExp(`${Qf}\\/\\*\\d+:${n}${Qf}`));return Db(t.substring(i,o))}}(d,g);const he=function Ow(t){return t.replace(Iw," ")}(d).split(xw);for(let qe=0;qe<he.length;qe++){let Ct=he[qe];if(1&qe){const Lt=47===Ct.charCodeAt(0),Tn=(Ct.charCodeAt(Lt?1:0),gi+Number.parseInt(Ct.substring(Lt?2:1)));if(Lt)W.shift(),sa(tc(),!1);else{const Xn=vw(t,W[0],Tn);W.unshift([]),sa(Xn,!0)}}else{const Lt=og(Ct);for(let ln=0;ln<Lt.length;ln++){let Tn=Lt[ln];if(1&ln){const Xn=Tn;if("object"!=typeof Xn)throw new Error(`Unable to parse ICU expression in "${d}" message.`);Mb(t,i,B,n,Xn,Cb(t,T,W[0],i,R,"",!0).index)}else""!==Tn&&Nw(t,T,W[0],R,B,i,Tn)}}}t.data[o]={create:R,update:B}}(o,null===R?0:R.index,d,g,T,i),2===o.type?d[Ni][ni]|=32:d[ni]|=32;const B=o.data[g],he=kl(o,R===d[so]?null:R,d);(function ww(t,n,i,o){const d=t[ii];for(let g=0;g<n.length;g++){const T=n[g++],R=n[g],W=(T&mc.APPEND_EAGERLY)===mc.APPEND_EAGERLY,he=T>>>mc.SHIFT;let qe=t[he];null===qe&&(qe=t[he]=(T&mc.COMMENT)===mc.COMMENT?d.createComment(R):la(d,R)),W&&null!==i&&As(d,i,qe,o,!1)}})(d,B.create,he,R&&8&R.type?d[R.index]:null),Q(!0)}function Ib(t,n,i){kb(t,n,i),function xb(){Q(!1)}()}function ag(t,n,i,o,d){if(t=ft(t),Array.isArray(t))for(let g=0;g<t.length;g++)ag(t[g],n,i,o,d);else{const g=si(),T=Zt(),R=fs();let B=Lc(t)?t:ft(t.provide);const W=gp(t),he=1048575&R.providerIndexes,qe=R.directiveStart,Ct=R.providerIndexes>>20;if(Lc(t)||!t.multi){const Lt=new yl(W,d,Kh),ln=cg(B,n,d?he:he+Ct,qe);-1===ln?(Hc(Ya(R,T),g,B),lg(g,t,n.length),n.push(B),R.directiveStart++,R.directiveEnd++,d&&(R.providerIndexes+=1048576),i.push(Lt),T.push(Lt)):(i[ln]=Lt,T[ln]=Lt)}else{const Lt=cg(B,n,he+Ct,qe),ln=cg(B,n,he,he+Ct),Xn=ln>=0&&i[ln];if(d&&!Xn||!d&&!(Lt>=0&&i[Lt])){Hc(Ya(R,T),g,B);const mi=function oD(t,n,i,o,d){const g=new yl(t,i,Kh);return g.multi=[],g.index=n,g.componentProviders=0,Rb(g,d,o&&!i),g}(d?sD:iD,i.length,d,o,W);!d&&Xn&&(i[ln].providerFactory=mi),lg(g,t,n.length,0),n.push(B),R.directiveStart++,R.directiveEnd++,d&&(R.providerIndexes+=1048576),i.push(mi),T.push(mi)}else lg(g,t,Lt>-1?Lt:ln,Rb(i[d?ln:Lt],W,!d&&o));!d&&o&&Xn&&i[ln].componentProviders++}}}function lg(t,n,i,o){const d=Lc(n),g=function Vu(t){return!!t.useClass}(n);if(d||g){const B=(g?ft(n.useClass):n).prototype.ngOnDestroy;if(B){const W=t.destroyHooks||(t.destroyHooks=[]);if(!d&&n.multi){const he=W.indexOf(i);-1===he?W.push(i,[o,B]):W[he+1].push(o,B)}else W.push(i,B)}}}function Rb(t,n,i){return i&&t.componentProviders++,t.multi.push(n)-1}function cg(t,n,i,o){for(let d=i;d<o;d++)if(n[d]===t)return d;return-1}function iD(t,n,i,o){return dg(this.multi,[])}function sD(t,n,i,o){const d=this.multi;let g;if(this.providerFactory){const T=this.providerFactory.componentProviders,R=Cr(i,i[On],this.providerFactory.index,o);g=R.slice(0,T),dg(d,g);for(let B=T;B<R.length;B++)g.push(R[B])}else g=[],dg(d,g);return g}function dg(t,n){for(let i=0;i<t.length;i++)n.push((0,t[i])());return n}function Nb(t,n=[]){return i=>{i.providersResolver=(o,d)=>function nD(t,n,i){const o=si();if(o.firstCreatePass){const d=Mi(t);ag(i,o.data,o.blueprint,d,!0),ag(n,o.data,o.blueprint,d,!1)}}(o,d?d(t):t,n)}}class Ch{}class Fb{}function rD(t,n){return new ug(t,n??null,[])}class ug extends Ch{constructor(n,i,o){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new P_(this);const d=Ds(n);this._bootstrapComponents=hu(d.bootstrap),this._r3Injector=zg(n,i,[{provide:Ch,useValue:this},{provide:s,useValue:this.componentFactoryResolver},...o],Ue(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class hg extends Fb{constructor(n){super(),this.moduleType=n}create(n){return new ug(this.moduleType,n,[])}}class Ab extends Ch{constructor(n){super(),this.componentFactoryResolver=new P_(this),this.instance=null;const i=new Hu([...n.providers,{provide:Ch,useValue:this},{provide:s,useValue:this.componentFactoryResolver}],n.parent||Hh(),n.debugName,new Set(["environment"]));this.injector=i,n.runEnvironmentInitializers&&i.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Pb(t,n,i=null){return new Ab({providers:t,parent:n,debugName:i,runEnvironmentInitializers:!0}).injector}let lD=(()=>{class t{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i)){const o=jh(0,i.type),d=o.length>0?Pb([o],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i,d)}return this.cachedInjectors.get(i)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=dt({token:t,providedIn:"environment",factory:()=>new t(Ke(od))})}}return t})();function Lb(t){t.getStandaloneInjector=n=>n.get(lD).getOrCreateStandaloneInjector(t)}function $b(t,n,i,o){return Xb(Zt(),co(),t,n,i,o)}function Yb(t,n,i,o,d){return Wb(Zt(),co(),t,n,i,o,d)}function zb(t,n,i,o,d,g){return Kb(Zt(),co(),t,n,i,o,d,g)}function qb(t,n,i,o,d,g,T,R){const B=co()+t,W=Zt(),he=ad(W,B,i,o,d,g);return Ol(W,B+4,T)||he?Kd(W,B+5,R?n.call(R,i,o,d,g,T):n(i,o,d,g,T)):function Uf(t,n){return t[n]}(W,B+5)}function Jf(t,n){const i=t[n];return i===Yi?void 0:i}function Xb(t,n,i,o,d,g){const T=n+i;return Ol(t,T,d)?Kd(t,T+1,g?o.call(g,d):o(d)):Jf(t,T+1)}function Wb(t,n,i,o,d,g,T){const R=n+i;return vh(t,R,d,g)?Kd(t,R+2,T?o.call(T,d,g):o(d,g)):Jf(t,R+2)}function Kb(t,n,i,o,d,g,T,R){const B=n+i;return function Np(t,n,i,o,d){const g=vh(t,n,i,o);return Ol(t,n+2,d)||g}(t,B,d,g,T)?Kd(t,B+3,R?o.call(R,d,g,T):o(d,g,T)):Jf(t,B+3)}function Jb(t,n){const i=si();let o;const d=t+gi;i.firstCreatePass?(o=function DD(t,n){if(n)for(let i=n.length-1;i>=0;i--){const o=n[i];if(t===o.name)return o}}(n,i.pipeRegistry),i.data[d]=o,o.onDestroy&&(i.destroyHooks??=[]).push(d,o.onDestroy)):o=i.data[d];const g=o.factory||(o.factory=jo(o.type)),R=sn(Kh);try{const B=ba(!1),W=g();return ba(B),function dC(t,n,i,o){i>=t.data.length&&(t.data[i]=null,t.blueprint[i]=null),n[i]=o}(i,Zt(),d,W),W}finally{sn(R)}}function e1(t,n,i){const o=t+gi,d=Zt(),g=na(d,o);return ep(d,o)?Xb(d,co(),n,g.transform,i,g):g.transform(i)}function t1(t,n,i,o){const d=t+gi,g=Zt(),T=na(g,d);return ep(g,d)?Wb(g,co(),n,T.transform,i,o,T):T.transform(i,o)}function n1(t,n,i,o,d){const g=t+gi,T=Zt(),R=na(T,g);return ep(T,g)?Kb(T,co(),n,R.transform,i,o,d,R):R.transform(i,o,d)}function s1(t,n,i,o,d,g){const T=t+gi,R=Zt(),B=na(R,T);return ep(R,T)?function Qb(t,n,i,o,d,g,T,R,B){const W=n+i;return ad(t,W,d,g,T,R)?Kd(t,W+4,B?o.call(B,d,g,T,R):o(d,g,T,R)):Jf(t,W+4)}(R,co(),n,B.transform,i,o,d,g,B):B.transform(i,o,d,g)}function ep(t,n){return t[On].data[n].pure}function TD(){return this._results[Symbol.iterator]()}class Wp{get changes(){return this._changes||(this._changes=new Xd)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const i=Wp.prototype;i[Symbol.iterator]||(i[Symbol.iterator]=TD)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,i){return this._results.reduce(n,i)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,i){const o=this;o.dirty=!1;const d=function aa(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function xd(t,n,i){if(t.length!==n.length)return!1;for(let o=0;o<t.length;o++){let d=t[o],g=n[o];if(i&&(d=i(d),g=i(g)),g!==d)return!1}return!0}(o._results,d,i))&&(o._results=d,o.length=d.length,o.last=d[this.length-1],o.first=d[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}function SD(t,n,i,o=!0){const d=n[On];if(function Ou(t,n,i,o){const d=ks+o,g=i.length;o>0&&(i[d-1][Us]=n),o<g-ks?(n[Us]=i[d],ar(i,ks+o,n)):(i.push(n),n[Us]=null),n[Xi]=i;const T=n[Xr];null!==T&&i!==T&&function Ru(t,n){const i=t[Bo];n[Ni]!==n[Xi][Xi][Ni]&&(t[mr]=!0),null===i?t[Bo]=[n]:i.push(n)}(T,n);const R=n[Mo];null!==R&&R.insertView(t),n[ni]|=128}(d,n,t,i),o){const g=Ih(i,t),T=n[ii],R=Ca(T,t[ro]);null!==R&&function Iu(t,n,i,o,d,g){o[Vi]=d,o[so]=n,Fu(t,o,i,1,d,g)}(d,t[so],T,n,R,g)}}let tp=(()=>{class t{static{this.__NG_ELEMENT_ID__=ID}}return t})();const kD=tp,xD=class extends kD{constructor(n,i,o){super(),this._declarationLView=n,this._declarationTContainer=i,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,i){return this.createEmbeddedViewImpl(n,i)}createEmbeddedViewImpl(n,i,o){const d=function ED(t,n,i,o){const d=n.tView,R=Sp(t,d,i,4096&t[ni]?4096:16,null,n,null,null,null,o?.injector??null,o?.hydrationInfo??null);R[Xr]=t[n.index];const W=t[Mo];return null!==W&&(R[Mo]=W.createEmbeddedView(d)),Nm(d,R,i),R}(this._declarationLView,this._declarationTContainer,n,{injector:i,hydrationInfo:o});return new Gf(d)}};function ID(){return Kp(fs(),Zt())}function Kp(t,n){return 4&t.type?new xD(n,t,r(t,n)):null}let Zp=(()=>{class t{static{this.__NG_ELEMENT_ID__=PD}}return t})();function PD(){return u1(fs(),Zt())}const LD=Zp,c1=class extends LD{constructor(n,i,o){super(),this._lContainer=n,this._hostTNode=i,this._hostLView=o}get element(){return r(this._hostTNode,this._hostLView)}get injector(){return new Oo(this._hostTNode,this._hostLView)}get parentInjector(){const n=Oa(this._hostTNode,this._hostLView);if(wl(n)){const i=ic(n,this._hostLView),o=$a(n);return new Oo(i[On].data[o+8],i)}return new Oo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const i=d1(this._lContainer);return null!==i&&i[n]||null}get length(){return this._lContainer.length-ks}createEmbeddedView(n,i,o){let d,g;"number"==typeof o?d=o:null!=o&&(d=o.index,g=o.injector);const R=n.createEmbeddedViewImpl(i||{},g,null);return this.insertImpl(R,d,false),R}createComponent(n,i,o,d,g){const T=n&&!function lc(t){return"function"==typeof t}(n);let R;if(T)R=i;else{const Tn=i||{};R=Tn.index,o=Tn.injector,d=Tn.projectableNodes,g=Tn.environmentInjector||Tn.ngModuleRef}const B=T?n:new Hf(yi(n)),W=o||this.parentInjector;if(!g&&null==B.ngModule){const Xn=(T?W:this.parentInjector).get(od,null);Xn&&(g=Xn)}yi(B.componentType??{});const Lt=B.create(W,d,null,g);return this.insertImpl(Lt.hostView,R,false),Lt}insert(n,i){return this.insertImpl(n,i,!1)}insertImpl(n,i,o){const d=n._lView;if(function Pl(t){return Ki(t[Xi])}(d)){const B=this.indexOf(n);if(-1!==B)this.detach(B);else{const W=d[Xi],he=new c1(W,W[so],W[Xi]);he.detach(he.indexOf(n))}}const T=this._adjustIndex(i),R=this._lContainer;return SD(R,d,T,!o),n.attachToViewContainerRef(),ar(pg(R),T,n),n}move(n,i){return this.insert(n,i)}indexOf(n){const i=d1(this._lContainer);return null!==i?i.indexOf(n):-1}remove(n){const i=this._adjustIndex(n,-1),o=ci(this._lContainer,i);o&&(Qi(pg(this._lContainer),i),bi(o[On],o))}detach(n){const i=this._adjustIndex(n,-1),o=ci(this._lContainer,i);return o&&null!=Qi(pg(this._lContainer),i)?new Gf(o):null}_adjustIndex(n,i=0){return n??this.length+i}};function d1(t){return t[8]}function pg(t){return t[8]||(t[8]=[])}function u1(t,n){let i;const o=n[t.index];return Ki(o)?i=o:(i=M_(o,n,null,t),n[t.index]=i,kp(n,i)),h1(i,n,t,o),new c1(i,t,n)}let h1=function f1(t,n,i,o){if(t[ro])return;let d;d=8&i.type?Di(o):function BD(t,n){const i=t[ii],o=i.createComment(""),d=ao(n,t);return As(i,Ca(i,d),o,function vd(t,n){return t.nextSibling(n)}(i,d),!1),o}(n,i),t[ro]=d};class mg{constructor(n){this.queryList=n,this.matches=null}clone(){return new mg(this.queryList)}setDirty(){this.queryList.setDirty()}}class gg{constructor(n=[]){this.queries=n}createEmbeddedView(n){const i=n.queries;if(null!==i){const o=null!==n.contentQueries?n.contentQueries[0]:i.length,d=[];for(let g=0;g<o;g++){const T=i.getByIndex(g);d.push(this.queries[T.indexInDeclarationView].clone())}return new gg(d)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let i=0;i<this.queries.length;i++)null!==w1(n,i).matches&&this.queries[i].setDirty()}}class p1{constructor(n,i,o=null){this.predicate=n,this.flags=i,this.read=o}}class _g{constructor(n=[]){this.queries=n}elementStart(n,i){for(let o=0;o<this.queries.length;o++)this.queries[o].elementStart(n,i)}elementEnd(n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(n)}embeddedTView(n){let i=null;for(let o=0;o<this.length;o++){const d=null!==i?i.length:0,g=this.getByIndex(o).embeddedTView(n,d);g&&(g.indexInDeclarationView=o,null!==i?i.push(g):i=[g])}return null!==i?new _g(i):null}template(n,i){for(let o=0;o<this.queries.length;o++)this.queries[o].template(n,i)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class vg{constructor(n,i=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(n,i){this.isApplyingToNode(i)&&this.matchTNode(n,i)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,i){this.elementStart(n,i)}embeddedTView(n,i){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,i),new vg(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const i=this._declarationNodeIndex;let o=n.parent;for(;null!==o&&8&o.type&&o.index!==i;)o=o.parent;return i===(null!==o?o.index:-1)}return this._appliesToNextNode}matchTNode(n,i){const o=this.metadata.predicate;if(Array.isArray(o))for(let d=0;d<o.length;d++){const g=o[d];this.matchTNodeWithReadOption(n,i,GD(i,g)),this.matchTNodeWithReadOption(n,i,Ra(i,n,g,!1,!1))}else o===tp?4&i.type&&this.matchTNodeWithReadOption(n,i,-1):this.matchTNodeWithReadOption(n,i,Ra(i,n,o,!1,!1))}matchTNodeWithReadOption(n,i,o){if(null!==o){const d=this.metadata.read;if(null!==d)if(d===m||d===Zp||d===tp&&4&i.type)this.addMatch(i.index,-2);else{const g=Ra(i,n,d,!1,!1);null!==g&&this.addMatch(i.index,g)}else this.addMatch(i.index,o)}}addMatch(n,i){null===this.matches?this.matches=[n,i]:this.matches.push(n,i)}}function GD(t,n){const i=t.localNames;if(null!==i)for(let o=0;o<i.length;o+=2)if(i[o]===n)return i[o+1];return null}function UD(t,n,i,o){return-1===i?function HD(t,n){return 11&t.type?r(t,n):4&t.type?Kp(t,n):null}(n,t):-2===i?function $D(t,n,i){return i===m?r(n,t):i===tp?Kp(n,t):i===Zp?u1(n,t):void 0}(t,n,o):Cr(t,t[On],i,n)}function m1(t,n,i,o){const d=n[Mo].queries[o];if(null===d.matches){const g=t.data,T=i.matches,R=[];for(let B=0;B<T.length;B+=2){const W=T[B];R.push(W<0?null:UD(n,g[W],T[B+1],i.metadata.read))}d.matches=R}return d.matches}function bg(t,n,i,o){const d=t.queries.getByIndex(i),g=d.matches;if(null!==g){const T=m1(t,n,d,i);for(let R=0;R<g.length;R+=2){const B=g[R];if(B>0)o.push(T[R/2]);else{const W=g[R+1],he=n[-B];for(let qe=ks;qe<he.length;qe++){const Ct=he[qe];Ct[Xr]===Ct[Xi]&&bg(Ct[On],Ct,W,o)}if(null!==he[Bo]){const qe=he[Bo];for(let Ct=0;Ct<qe.length;Ct++){const Lt=qe[Ct];bg(Lt[On],Lt,W,o)}}}}}return o}function g1(t){const n=Zt(),i=si(),o=Pn();wi(o+1);const d=w1(i,o);if(t.dirty&&function ko(t){return 4==(4&t[ni])}(n)===(2==(2&d.metadata.flags))){if(null===d.matches)t.reset([]);else{const g=d.crossesNgTemplate?bg(i,n,o,[]):m1(i,n,d,o);t.reset(g,D),t.notifyOnChanges()}return!0}return!1}function _1(t,n,i){const o=si();o.firstCreatePass&&(C1(o,new p1(t,n,i),-1),2==(2&n)&&(o.staticViewQueries=!0)),y1(o,Zt(),n)}function v1(t,n,i,o){const d=si();if(d.firstCreatePass){const g=fs();C1(d,new p1(n,i,o),g.index),function zD(t,n){const i=t.contentQueries||(t.contentQueries=[]);n!==(i.length?i[i.length-1]:-1)&&i.push(t.queries.length-1,n)}(d,t),2==(2&i)&&(d.staticContentQueries=!0)}y1(d,Zt(),i)}function b1(){return function YD(t,n){return t[Mo].queries[n].queryList}(Zt(),Pn())}function y1(t,n,i){const o=new Wp(4==(4&i));(function Z0(t,n,i,o){const d=E_(n);d.push(i),t.firstCreatePass&&S_(t).push(o,d.length-1)})(t,n,o,o.destroy),null===n[Mo]&&(n[Mo]=new gg),n[Mo].queries.push(new mg(o))}function C1(t,n,i){null===t.queries&&(t.queries=new _g),t.queries.track(new vg(n,i))}function w1(t,n){return t.queries.getByIndex(n)}function D1(t,n){return Kp(t,n)}function yg(t){return!!Ds(t)}const fM=new wt("Application Initializer");let Tg=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,o)=>{this.resolve=i,this.reject=o}),this.appInits=Qe(fM,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const i=[];for(const d of this.appInits){const g=d();if(zm(g))i.push(g);else if(cv(g)){const T=new Promise((R,B)=>{g.subscribe({complete:R,error:B})});i.push(T)}}const o=()=>{this.done=!0,this.resolve()};Promise.all(i).then(()=>{o()}).catch(d=>{this.reject(d)}),0===i.length&&o(),this.initialized=!0}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})(),j1=(()=>{class t{log(i){console.log(i)}warn(i){console.warn(i)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();const em=new wt("LocaleId",{providedIn:"root",factory:()=>Qe(em,Ve.Optional|Ve.SkipSelf)||function pM(){return typeof $localize<"u"&&$localize.locale||hf}()}),mM=new wt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let G1=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new De.t(!1)}add(){this.hasPendingTasks.next(!0);const i=this.taskId++;return this.pendingTasks.add(i),i}remove(i){this.pendingTasks.delete(i),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();class _M{constructor(n,i){this.ngModuleFactory=n,this.componentFactories=i}}let vM=(()=>{class t{compileModuleSync(i){return new hg(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const o=this.compileModuleSync(i),g=hu(Ds(i).declarations).reduce((T,R)=>{const B=yi(R);return B&&T.push(new Hf(B)),T},[]);return new _M(o,g)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();const Y1=new wt(""),z1=new wt("");let kg,jM=(()=>{class t{constructor(i,o,d){this._ngZone=i,this.registry=o,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,kg||(function GM(t){kg=t}(d),d.addToWindow(o)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Za.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(o=>!o.updateCb||!o.updateCb(i)||(clearTimeout(o.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,o,d){let g=-1;o&&o>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(T=>T.timeoutId!==g),i(this._didWork,this.getPendingTasks())},o)),this._callbacks.push({doneCb:i,timeoutId:g,updateCb:d})}whenStable(i,o,d){if(d&&!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(i,o,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,o,d){return[]}static{this.\u0275fac=function(o){return new(o||t)(Ke(Za),Ke(q1),Ke(z1))}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac})}}return t})(),q1=(()=>{class t{constructor(){this._applications=new Map}registerApplication(i,o){this._applications.set(i,o)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,o=!0){return kg?.findTestabilityInTree(this,i,o)??null}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})(),Ku=null;const X1=new wt("AllowMultipleToken"),xg=new wt("PlatformDestroyListeners"),W1=new wt("appBootstrapListener");function Z1(t,n,i=[]){const o=`Platform: ${n}`,d=new wt(o);return(g=[])=>{let T=Ig();if(!T||T.injector.get(X1,!1)){const R=[...i,...g,{provide:d,useValue:!0}];t?t(R):function $M(t){if(Ku&&!Ku.get(X1,!1))throw new me(400,!1);(function K1(){!function Cc(t){Al=t}(()=>{throw new me(600,!1)})})(),Ku=t;const n=t.get(e0);(function Q1(t){t.get(bp,null)?.forEach(i=>i())})(t)}(function J1(t=[],n){return Dd.create({name:n,providers:[{provide:uu,useValue:"platform"},{provide:xg,useValue:new Set([()=>Ku=null])},...t]})}(R,o))}return function zM(t){const n=Ig();if(!n)throw new me(401,!1);return n}()}}function Ig(){return Ku?.get(e0)??null}let e0=(()=>{class t{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,o){const d=function qM(t="zone.js",n){return"noop"===t?new P0:"zone.js"===t?new Za(n):t}(o?.ngZone,function t0(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:o?.ngZoneEventCoalescing,runCoalescing:o?.ngZoneRunCoalescing}));return d.run(()=>{const g=function aD(t,n,i){return new ug(t,n,i)}(i.moduleType,this.injector,function a0(t){return[{provide:Za,useFactory:t},{provide:Wl,multi:!0,useFactory:()=>{const n=Qe(WM,{optional:!0});return()=>n.initialize()}},{provide:r0,useFactory:XM},{provide:Qg,useFactory:Zg}]}(()=>d)),T=g.injector.get(Xu,null);return d.runOutsideAngular(()=>{const R=d.onError.subscribe({next:B=>{T.handleError(B)}});g.onDestroy(()=>{nm(this._modules,g),R.unsubscribe()})}),function n0(t,n,i){try{const o=i();return zm(o)?o.catch(d=>{throw n.runOutsideAngular(()=>t.handleError(d)),d}):o}catch(o){throw n.runOutsideAngular(()=>t.handleError(o)),o}}(T,d,()=>{const R=g.injector.get(Tg);return R.runInitializers(),R.donePromise.then(()=>(ab(g.injector.get(em,hf)||hf),this._moduleDoBootstrap(g),g))})})}bootstrapModule(i,o=[]){const d=s0({},o);return function HM(t,n,i){const o=new hg(i);return Promise.resolve(o)}(0,0,i).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(i){const o=i.injector.get(mf);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(d=>o.bootstrap(d));else{if(!i.instance.ngDoBootstrap)throw new me(-403,!1);i.instance.ngDoBootstrap(o)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new me(404,!1);this._modules.slice().forEach(o=>o.destroy()),this._destroyListeners.forEach(o=>o());const i=this._injector.get(xg,null);i&&(i.forEach(o=>o()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(o){return new(o||t)(Ke(Dd))}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"platform"})}}return t})();function s0(t,n){return Array.isArray(n)?n.reduce(s0,t):{...t,...n}}let mf=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Qe(r0),this.zoneIsStable=Qe(Qg),this.componentTypes=[],this.components=[],this.isStable=Qe(G1).hasPendingTasks.pipe((0,Oe.n)(i=>i?(0,we.of)(!1):this.zoneIsStable),(0,Ne.F)(),(0,Ie.u)()),this._injector=Qe(od)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,o){const d=i instanceof Pf;if(!this._injector.get(Tg).done)throw!d&&Ks(i),new me(405,!1);let T;T=d?i:this._injector.get(s).resolveComponentFactory(i),this.componentTypes.push(T.componentType);const R=function UM(t){return t.isBoundToModule}(T)?void 0:this._injector.get(Ch),W=T.create(Dd.NULL,[],o||T.selector,R),he=W.location.nativeElement,qe=W.injector.get(Y1,null);return qe?.registerApplication(he),W.onDestroy(()=>{this.detachView(W.hostView),nm(this.components,W),qe?.unregisterApplication(he)}),this._loadComponent(W),W}tick(){if(this._runningTick)throw new me(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this.internalErrorHandler(i)}finally{this._runningTick=!1}}attachView(i){const o=i;this._views.push(o),o.attachToAppRef(this)}detachView(i){const o=i;nm(this._views,o),o.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i);const o=this._injector.get(W1,[]);o.push(...this._bootstrapListeners),o.forEach(d=>d(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>nm(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new me(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function nm(t,n){const i=t.indexOf(n);i>-1&&t.splice(i,1)}const r0=new wt("",{providedIn:"root",factory:()=>Qe(Xu).handleError.bind(void 0)});function XM(){const t=Qe(Za),n=Qe(Xu);return i=>t.runOutsideAngular(()=>n.handleError(i))}let WM=(()=>{class t{constructor(){this.zone=Qe(Za),this.applicationRef=Qe(mf)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275prov=dt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function QM(){return!1}let ZM=(()=>{class t{static{this.__NG_ELEMENT_ID__=JM}}return t})();function JM(t){return function eT(t,n,i){if(Vo(t)&&!i){const o=lo(t.index,n);return new Gf(o,o)}return 47&t.type?new Gf(n[Ni],n):null}(fs(),Zt(),16==(16&t))}class h0{constructor(){}supports(n){return Rp(n)}create(n){return new oT(n)}}const sT=(t,n)=>n;class oT{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||sT}forEachItem(n){let i;for(i=this._itHead;null!==i;i=i._next)n(i)}forEachOperation(n){let i=this._itHead,o=this._removalsHead,d=0,g=null;for(;i||o;){const T=!o||i&&i.currentIndex<p0(o,d,g)?i:o,R=p0(T,d,g),B=T.currentIndex;if(T===o)d--,o=o._nextRemoved;else if(i=i._next,null==T.previousIndex)d++;else{g||(g=[]);const W=R-d,he=B-d;if(W!=he){for(let Ct=0;Ct<W;Ct++){const Lt=Ct<g.length?g[Ct]:g[Ct]=0,ln=Lt+Ct;he<=ln&&ln<W&&(g[Ct]=Lt+1)}g[T.previousIndex]=he-W}}R!==B&&n(T,R,B)}}forEachPreviousItem(n){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)n(i)}forEachAddedItem(n){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)n(i)}forEachMovedItem(n){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)n(i)}forEachRemovedItem(n){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)n(i)}forEachIdentityChange(n){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)n(i)}diff(n){if(null==n&&(n=[]),!Rp(n))throw new me(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let d,g,T,i=this._itHead,o=!1;if(Array.isArray(n)){this.length=n.length;for(let R=0;R<this.length;R++)g=n[R],T=this._trackByFn(R,g),null!==i&&Object.is(i.trackById,T)?(o&&(i=this._verifyReinsertion(i,g,T,R)),Object.is(i.item,g)||this._addIdentityChange(i,g)):(i=this._mismatch(i,g,T,R),o=!0),i=i._next}else d=0,function Uy(t,n){if(Array.isArray(t))for(let i=0;i<t.length;i++)n(t[i]);else{const i=t[Symbol.iterator]();let o;for(;!(o=i.next()).done;)n(o.value)}}(n,R=>{T=this._trackByFn(d,R),null!==i&&Object.is(i.trackById,T)?(o&&(i=this._verifyReinsertion(i,R,T,d)),Object.is(i.item,R)||this._addIdentityChange(i,R)):(i=this._mismatch(i,R,T,d),o=!0),i=i._next,d++}),this.length=d;return this._truncate(i),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,i,o,d){let g;return null===n?g=this._itTail:(g=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._reinsertAfter(n,g,d)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(o,d))?(Object.is(n.item,i)||this._addIdentityChange(n,i),this._moveAfter(n,g,d)):n=this._addAfter(new rT(i,o),g,d),n}_verifyReinsertion(n,i,o,d){let g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==g?n=this._reinsertAfter(g,n._prev,d):n.currentIndex!=d&&(n.currentIndex=d,this._addToMoves(n,d)),n}_truncate(n){for(;null!==n;){const i=n._next;this._addToRemovals(this._unlink(n)),n=i}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(n,i,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const d=n._prevRemoved,g=n._nextRemoved;return null===d?this._removalsHead=g:d._nextRemoved=g,null===g?this._removalsTail=d:g._prevRemoved=d,this._insertAfter(n,i,o),this._addToMoves(n,o),n}_moveAfter(n,i,o){return this._unlink(n),this._insertAfter(n,i,o),this._addToMoves(n,o),n}_addAfter(n,i,o){return this._insertAfter(n,i,o),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,i,o){const d=null===i?this._itHead:i._next;return n._next=d,n._prev=i,null===d?this._itTail=n:d._prev=n,null===i?this._itHead=n:i._next=n,null===this._linkedRecords&&(this._linkedRecords=new f0),this._linkedRecords.put(n),n.currentIndex=o,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const i=n._prev,o=n._next;return null===i?this._itHead=o:i._next=o,null===o?this._itTail=i:o._prev=i,n}_addToMoves(n,i){return n.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new f0),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,i){return n.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class rT{constructor(n,i){this.item=n,this.trackById=i,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class aT{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,i){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===i||i<=o.currentIndex)&&Object.is(o.trackById,n))return o;return null}remove(n){const i=n._prevDup,o=n._nextDup;return null===i?this._head=o:i._nextDup=o,null===o?this._tail=i:o._prevDup=i,null===this._head}}class f0{constructor(){this.map=new Map}put(n){const i=n.trackById;let o=this.map.get(i);o||(o=new aT,this.map.set(i,o)),o.add(n)}get(n,i){const d=this.map.get(n);return d?d.get(n,i):null}remove(n){const i=n.trackById;return this.map.get(i).remove(n)&&this.map.delete(i),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function p0(t,n,i){const o=t.previousIndex;if(null===o)return o;let d=0;return i&&o<i.length&&(d=i[o]),o+n+d}class m0{constructor(){}supports(n){return n instanceof Map||Am(n)}create(){return new lT}}class lT{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(n){let i;for(i=this._mapHead;null!==i;i=i._next)n(i)}forEachPreviousItem(n){let i;for(i=this._previousMapHead;null!==i;i=i._nextPrevious)n(i)}forEachChangedItem(n){let i;for(i=this._changesHead;null!==i;i=i._nextChanged)n(i)}forEachAddedItem(n){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)n(i)}forEachRemovedItem(n){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)n(i)}diff(n){if(n){if(!(n instanceof Map||Am(n)))throw new me(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(n,(o,d)=>{if(i&&i.key===d)this._maybeAddToChanges(i,o),this._appendAfter=i,i=i._next;else{const g=this._getOrCreateRecordForKey(d,o);i=this._insertBeforeOrAppend(i,g)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let o=i;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,i){if(n){const o=n._prev;return i._next=n,i._prev=o,n._prev=i,o&&(o._next=i),n===this._mapHead&&(this._mapHead=i),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(n,i){if(this._records.has(n)){const d=this._records.get(n);this._maybeAddToChanges(d,i);const g=d._prev,T=d._next;return g&&(g._next=T),T&&(T._prev=g),d._next=null,d._prev=null,d}const o=new cT(n);return this._records.set(n,o),o.currentValue=i,this._addToAdditions(o),o}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,i){Object.is(i,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=i,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,i){n instanceof Map?n.forEach(i):Object.keys(n).forEach(o=>i(n[o],o))}}class cT{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function g0(){return new Ag([new h0])}let Ag=(()=>{class t{static{this.\u0275prov=dt({token:t,providedIn:"root",factory:g0})}constructor(i){this.factories=i}static create(i,o){if(null!=o){const d=o.factories.slice();i=i.concat(d)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||g0()),deps:[[t,new cc,new Is]]}}find(i){const o=this.factories.find(d=>d.supports(i));if(null!=o)return o;throw new me(901,!1)}}return t})();function _0(){return new Pg([new m0])}let Pg=(()=>{class t{static{this.\u0275prov=dt({token:t,providedIn:"root",factory:_0})}constructor(i){this.factories=i}static create(i,o){if(o){const d=o.factories.slice();i=i.concat(d)}return new t(i)}static extend(i){return{provide:t,useFactory:o=>t.create(i,o||_0()),deps:[[t,new cc,new Is]]}}find(i){const o=this.factories.find(d=>d.supports(i));if(o)return o;throw new me(901,!1)}}return t})();const hT=Z1(null,"core",[]);let fT=(()=>{class t{constructor(i){}static{this.\u0275fac=function(o){return new(o||t)(Ke(mf))}}static{this.\u0275mod=Po({type:t})}static{this.\u0275inj=bn({})}}return t})();function MT(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function ET(t,n){const i=yi(t),o=n.elementInjector||Hh();return new Hf(i).create(o,n.projectableNodes,n.hostElement,n.environmentInjector)}},9417:(pn,ct,N)=>{N.d(ct,{BC:()=>oi,Fm:()=>Lo,MJ:()=>zn,Q0:()=>Ws,X1:()=>nr,YN:()=>Rl,cz:()=>mt,kq:()=>Oe,l_:()=>qi,me:()=>_t,tU:()=>ro,vS:()=>In});var e=N(7705),h=N(177),ne=N(2806),Z=N(7468),De=N(6354);let we=(()=>{class J{constructor(U,Ce){this._renderer=U,this._elementRef=Ce,this.onChange=et=>{},this.onTouched=()=>{}}setProperty(U,Ce){this._renderer.setProperty(this._elementRef.nativeElement,U,Ce)}registerOnTouched(U){this.onTouched=U}registerOnChange(U){this.onChange=U}setDisabledState(U){this.setProperty("disabled",U)}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(e.sFG),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:J})}}return J})(),Ie=(()=>{class J extends we{static{this.\u0275fac=function(){let U;return function(et){return(U||(U=e.xGo(J)))(et||J)}}()}static{this.\u0275dir=e.FsC({type:J,features:[e.Vt3]})}}return J})();const Oe=new e.nKC("NgValueAccessor"),Ge={provide:Oe,useExisting:(0,e.Rfq)(()=>_t),multi:!0},yt=new e.nKC("CompositionEventMode");let _t=(()=>{class J extends we{constructor(U,Ce,et){super(U,Ce),this._compositionMode=et,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Ue(){const J=(0,h.QT)()?(0,h.QT)().getUserAgent():"";return/android (\d+)/.test(J.toLowerCase())}())}writeValue(U){this.setProperty("value",U??"")}_handleInput(U){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(U)}_compositionStart(){this._composing=!0}_compositionEnd(U){this._composing=!1,this._compositionMode&&this.onChange(U)}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(yt,8))}}static{this.\u0275dir=e.FsC({type:J,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(Ce,et){1&Ce&&e.bIt("input",function(_i){return et._handleInput(_i.target.value)})("blur",function(){return et.onTouched()})("compositionstart",function(){return et._compositionStart()})("compositionend",function(_i){return et._compositionEnd(_i.target.value)})},features:[e.Jv_([Ge]),e.Vt3]})}}return J})();const mt=new e.nKC("NgValidators"),en=new e.nKC("NgAsyncValidators");function dn(J){return null}function Wt(J){return null!=J}function ze(J){return(0,e.jNT)(J)?(0,ne.H)(J):J}function be(J){let ee={};return J.forEach(U=>{ee=null!=U?{...ee,...U}:ee}),0===Object.keys(ee).length?null:ee}function Se(J,ee){return ee.map(U=>U(J))}function K(J){return J.map(ee=>function Nt(J){return!J.validate}(ee)?ee:U=>ee.validate(U))}function je(J){return null!=J?function ge(J){if(!J)return null;const ee=J.filter(Wt);return 0==ee.length?null:function(U){return be(Se(U,ee))}}(K(J)):null}function ce(J){return null!=J?function le(J){if(!J)return null;const ee=J.filter(Wt);return 0==ee.length?null:function(U){const Ce=Se(U,ee).map(ze);return(0,Z.p)(Ce).pipe((0,De.T)(be))}}(K(J)):null}function Le(J,ee){return null===J?[ee]:Array.isArray(J)?[...J,ee]:[J,ee]}function ue(J){return J._rawValidators}function Ye(J){return J._rawAsyncValidators}function L(J){return J?Array.isArray(J)?J:[J]:[]}function z(J,ee){return Array.isArray(J)?J.includes(ee):J===ee}function Be(J,ee){const U=L(ee);return L(J).forEach(et=>{z(U,et)||U.push(et)}),U}function pt(J,ee){return L(ee).filter(U=>!z(J,U))}class dt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(ee){this._rawValidators=ee||[],this._composedValidatorFn=je(this._rawValidators)}_setAsyncValidators(ee){this._rawAsyncValidators=ee||[],this._composedAsyncValidatorFn=ce(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ee){this._onDestroyCallbacks.push(ee)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ee=>ee()),this._onDestroyCallbacks=[]}reset(ee=void 0){this.control&&this.control.reset(ee)}hasError(ee,U){return!!this.control&&this.control.hasError(ee,U)}getError(ee,U){return this.control?this.control.getError(ee,U):null}}class Vt extends dt{get formDirective(){return null}get path(){return null}}class bn extends dt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class jn{constructor(ee){this._cd=ee}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let oi=(()=>{class J extends jn{constructor(U){super(U)}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(bn,2))}}static{this.\u0275dir=e.FsC({type:J,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ce,et){2&Ce&&e.AVh("ng-untouched",et.isUntouched)("ng-touched",et.isTouched)("ng-pristine",et.isPristine)("ng-dirty",et.isDirty)("ng-valid",et.isValid)("ng-invalid",et.isInvalid)("ng-pending",et.isPending)},features:[e.Vt3]})}}return J})();const ti="VALID",ai="INVALID",zi="PENDING",us="DISABLED";function Mn(J){return null!=J&&!Array.isArray(J)&&"object"==typeof J}class kt{constructor(ee,U){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ee),this._assignAsyncValidators(U)}get validator(){return this._composedValidatorFn}set validator(ee){this._rawValidators=this._composedValidatorFn=ee}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ee){this._rawAsyncValidators=this._composedAsyncValidatorFn=ee}get parent(){return this._parent}get valid(){return this.status===ti}get invalid(){return this.status===ai}get pending(){return this.status==zi}get disabled(){return this.status===us}get enabled(){return this.status!==us}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ee){this._assignValidators(ee)}setAsyncValidators(ee){this._assignAsyncValidators(ee)}addValidators(ee){this.setValidators(Be(ee,this._rawValidators))}addAsyncValidators(ee){this.setAsyncValidators(Be(ee,this._rawAsyncValidators))}removeValidators(ee){this.setValidators(pt(ee,this._rawValidators))}removeAsyncValidators(ee){this.setAsyncValidators(pt(ee,this._rawAsyncValidators))}hasValidator(ee){return z(this._rawValidators,ee)}hasAsyncValidator(ee){return z(this._rawAsyncValidators,ee)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ee={}){this.touched=!0,this._parent&&!ee.onlySelf&&this._parent.markAsTouched(ee)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ee=>ee.markAllAsTouched())}markAsUntouched(ee={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(U=>{U.markAsUntouched({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}markAsDirty(ee={}){this.pristine=!1,this._parent&&!ee.onlySelf&&this._parent.markAsDirty(ee)}markAsPristine(ee={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(U=>{U.markAsPristine({onlySelf:!0})}),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}markAsPending(ee={}){this.status=zi,!1!==ee.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ee.onlySelf&&this._parent.markAsPending(ee)}disable(ee={}){const U=this._parentMarkedDirty(ee.onlySelf);this.status=us,this.errors=null,this._forEachChild(Ce=>{Ce.disable({...ee,onlySelf:!0})}),this._updateValue(),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ee,skipPristineCheck:U}),this._onDisabledChange.forEach(Ce=>Ce(!0))}enable(ee={}){const U=this._parentMarkedDirty(ee.onlySelf);this.status=ti,this._forEachChild(Ce=>{Ce.enable({...ee,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent}),this._updateAncestors({...ee,skipPristineCheck:U}),this._onDisabledChange.forEach(Ce=>Ce(!1))}_updateAncestors(ee){this._parent&&!ee.onlySelf&&(this._parent.updateValueAndValidity(ee),ee.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ee){this._parent=ee}getRawValue(){return this.value}updateValueAndValidity(ee={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ti||this.status===zi)&&this._runAsyncValidator(ee.emitEvent)),!1!==ee.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ee.onlySelf&&this._parent.updateValueAndValidity(ee)}_updateTreeValidity(ee={emitEvent:!0}){this._forEachChild(U=>U._updateTreeValidity(ee)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ee.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?us:ti}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ee){if(this.asyncValidator){this.status=zi,this._hasOwnPendingAsyncValidator=!0;const U=ze(this.asyncValidator(this));this._asyncValidationSubscription=U.subscribe(Ce=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ce,{emitEvent:ee})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ee,U={}){this.errors=ee,this._updateControlsErrors(!1!==U.emitEvent)}get(ee){let U=ee;return null==U||(Array.isArray(U)||(U=U.split(".")),0===U.length)?null:U.reduce((Ce,et)=>Ce&&Ce._find(et),this)}getError(ee,U){const Ce=U?this.get(U):this;return Ce&&Ce.errors?Ce.errors[ee]:null}hasError(ee,U){return!!this.getError(ee,U)}get root(){let ee=this;for(;ee._parent;)ee=ee._parent;return ee}_updateControlsErrors(ee){this.status=this._calculateStatus(),ee&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ee)}_initObservables(){this.valueChanges=new e.bkB,this.statusChanges=new e.bkB}_calculateStatus(){return this._allControlsDisabled()?us:this.errors?ai:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(zi)?zi:this._anyControlsHaveStatus(ai)?ai:ti}_anyControlsHaveStatus(ee){return this._anyControls(U=>U.status===ee)}_anyControlsDirty(){return this._anyControls(ee=>ee.dirty)}_anyControlsTouched(){return this._anyControls(ee=>ee.touched)}_updatePristine(ee={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ee.onlySelf&&this._parent._updatePristine(ee)}_updateTouched(ee={}){this.touched=this._anyControlsTouched(),this._parent&&!ee.onlySelf&&this._parent._updateTouched(ee)}_registerOnCollectionChange(ee){this._onCollectionChange=ee}_setUpdateStrategy(ee){Mn(ee)&&null!=ee.updateOn&&(this._updateOn=ee.updateOn)}_parentMarkedDirty(ee){return!ee&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ee){return null}_assignValidators(ee){this._rawValidators=Array.isArray(ee)?ee.slice():ee,this._composedValidatorFn=function Ps(J){return Array.isArray(J)?je(J):J||null}(this._rawValidators)}_assignAsyncValidators(ee){this._rawAsyncValidators=Array.isArray(ee)?ee.slice():ee,this._composedAsyncValidatorFn=function qs(J){return Array.isArray(J)?ce(J):J||null}(this._rawAsyncValidators)}}const on=new e.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>gt}),gt="always";function Ee(J,ee,U=gt){(function nt(J,ee){const U=ue(J);null!==ee.validator?J.setValidators(Le(U,ee.validator)):"function"==typeof U&&J.setValidators([U]);const Ce=Ye(J);null!==ee.asyncValidator?J.setAsyncValidators(Le(Ce,ee.asyncValidator)):"function"==typeof Ce&&J.setAsyncValidators([Ce]);const et=()=>J.updateValueAndValidity();Bt(ee._rawValidators,et),Bt(ee._rawAsyncValidators,et)})(J,ee),ee.valueAccessor.writeValue(J.value),(J.disabled||"always"===U)&&ee.valueAccessor.setDisabledState?.(J.disabled),function Ze(J,ee){ee.valueAccessor.registerOnChange(U=>{J._pendingValue=U,J._pendingChange=!0,J._pendingDirty=!0,"change"===J.updateOn&&fn(J,ee)})}(J,ee),function mn(J,ee){const U=(Ce,et)=>{ee.valueAccessor.writeValue(Ce),et&&ee.viewToModelUpdate(Ce)};J.registerOnChange(U),ee._registerOnDestroy(()=>{J._unregisterOnChange(U)})}(J,ee),function $t(J,ee){ee.valueAccessor.registerOnTouched(()=>{J._pendingTouched=!0,"blur"===J.updateOn&&J._pendingChange&&fn(J,ee),"submit"!==J.updateOn&&J.markAsTouched()})}(J,ee),function hn(J,ee){if(ee.valueAccessor.setDisabledState){const U=Ce=>{ee.valueAccessor.setDisabledState(Ce)};J.registerOnDisabledChange(U),ee._registerOnDestroy(()=>{J._unregisterOnDisabledChange(U)})}}(J,ee)}function Qe(J,ee,U=!0){const Ce=()=>{};ee.valueAccessor&&(ee.valueAccessor.registerOnChange(Ce),ee.valueAccessor.registerOnTouched(Ce)),function He(J,ee){let U=!1;if(null!==J){if(null!==ee.validator){const et=ue(J);if(Array.isArray(et)&&et.length>0){const $n=et.filter(_i=>_i!==ee.validator);$n.length!==et.length&&(U=!0,J.setValidators($n))}}if(null!==ee.asyncValidator){const et=Ye(J);if(Array.isArray(et)&&et.length>0){const $n=et.filter(_i=>_i!==ee.asyncValidator);$n.length!==et.length&&(U=!0,J.setAsyncValidators($n))}}}const Ce=()=>{};return Bt(ee._rawValidators,Ce),Bt(ee._rawAsyncValidators,Ce),U}(J,ee),J&&(ee._invokeOnDestroyCallbacks(),J._registerOnCollectionChange(()=>{}))}function Bt(J,ee){J.forEach(U=>{U.registerOnValidatorChange&&U.registerOnValidatorChange(ee)})}function fn(J,ee){J._pendingDirty&&J.markAsDirty(),J.setValue(J._pendingValue,{emitModelToViewChange:!1}),ee.viewToModelUpdate(J._pendingValue),J._pendingChange=!1}function Cs(J,ee){if(!J.hasOwnProperty("model"))return!1;const U=J.model;return!!U.isFirstChange()||!Object.is(ee,U.currentValue)}function Re(J,ee){if(!ee)return null;let U,Ce,et;return Array.isArray(ee),ee.forEach($n=>{$n.constructor===_t?U=$n:function Es(J){return Object.getPrototypeOf(J.constructor)===Ie}($n)?Ce=$n:et=$n}),et||Ce||U||null}function tn(J,ee){const U=J.indexOf(ee);U>-1&&J.splice(U,1)}function An(J){return"object"==typeof J&&null!==J&&2===Object.keys(J).length&&"value"in J&&"disabled"in J}const zn=class extends kt{constructor(ee=null,U,Ce){super(function Bi(J){return(Mn(J)?J.validators:J)||null}(U),function ei(J,ee){return(Mn(ee)?ee.asyncValidators:J)||null}(Ce,U)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ee),this._setUpdateStrategy(U),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Mn(U)&&(U.nonNullable||U.initialValueIsDefault)&&(this.defaultValue=An(ee)?ee.value:ee)}setValue(ee,U={}){this.value=this._pendingValue=ee,this._onChange.length&&!1!==U.emitModelToViewChange&&this._onChange.forEach(Ce=>Ce(this.value,!1!==U.emitViewToModelChange)),this.updateValueAndValidity(U)}patchValue(ee,U={}){this.setValue(ee,U)}reset(ee=this.defaultValue,U={}){this._applyFormState(ee),this.markAsPristine(U),this.markAsUntouched(U),this.setValue(this.value,U),this._pendingChange=!1}_updateValue(){}_anyControls(ee){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ee){this._onChange.push(ee)}_unregisterOnChange(ee){tn(this._onChange,ee)}registerOnDisabledChange(ee){this._onDisabledChange.push(ee)}_unregisterOnDisabledChange(ee){tn(this._onDisabledChange,ee)}_forEachChild(ee){}_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(ee){An(ee)?(this.value=this._pendingValue=ee.value,ee.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ee}},as={provide:bn,useExisting:(0,e.Rfq)(()=>In)},ur=(()=>Promise.resolve())();let In=(()=>{class J extends bn{constructor(U,Ce,et,$n,_i,Er){super(),this._changeDetectorRef=_i,this.callSetDisabledState=Er,this.control=new zn,this._registered=!1,this.name="",this.update=new e.bkB,this._parent=U,this._setValidators(Ce),this._setAsyncValidators(et),this.valueAccessor=Re(0,$n)}ngOnChanges(U){if(this._checkForErrors(),!this._registered||"name"in U){if(this._registered&&(this._checkName(),this.formDirective)){const Ce=U.name.previousValue;this.formDirective.removeControl({name:Ce,path:this._getPath(Ce)})}this._setUpControl()}"isDisabled"in U&&this._updateDisabled(U),Cs(U,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(U){this.viewModel=U,this.update.emit(U)}_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(){Ee(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(U){ur.then(()=>{this.control.setValue(U,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(U){const Ce=U.isDisabled.currentValue,et=0!==Ce&&(0,e.L39)(Ce);ur.then(()=>{et&&!this.control.disabled?this.control.disable():!et&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(U){return this._parent?function Ke(J,ee){return[...ee.path,J]}(U,this._parent):[U]}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(Vt,9),e.rXU(mt,10),e.rXU(en,10),e.rXU(Oe,10),e.rXU(e.gRc,8),e.rXU(on,8))}}static{this.\u0275dir=e.FsC({type:J,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[e.Jv_([as]),e.Vt3,e.OA$]})}}return J})();const Bs={provide:Oe,useExisting:(0,e.Rfq)(()=>Ws),multi:!0};let Ws=(()=>{class J extends Ie{writeValue(U){this.setProperty("value",U??"")}registerOnChange(U){this.onChange=Ce=>{U(""==Ce?null:parseFloat(Ce))}}static{this.\u0275fac=function(){let U;return function(et){return(U||(U=e.xGo(J)))(et||J)}}()}static{this.\u0275dir=e.FsC({type:J,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ce,et){1&Ce&&e.bIt("input",function(_i){return et.onChange(_i.target.value)})("blur",function(){return et.onTouched()})},features:[e.Jv_([Bs]),e.Vt3]})}}return J})();const Tr={provide:Oe,useExisting:(0,e.Rfq)(()=>Lo),multi:!0};let Po=(()=>{class J{static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275mod=e.$C({type:J})}static{this.\u0275inj=e.G2t({})}}return J})(),er=(()=>{class J{constructor(){this._accessors=[]}add(U,Ce){this._accessors.push([U,Ce])}remove(U){for(let Ce=this._accessors.length-1;Ce>=0;--Ce)if(this._accessors[Ce][1]===U)return void this._accessors.splice(Ce,1)}select(U){this._accessors.forEach(Ce=>{this._isSameGroup(Ce,U)&&Ce[1]!==U&&Ce[1].fireUncheck(U.value)})}_isSameGroup(U,Ce){return!!U[0].control&&U[0]._parent===Ce._control._parent&&U[1].name===Ce.name}static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275prov=e.jDH({token:J,factory:J.\u0275fac,providedIn:Po})}}return J})(),Lo=(()=>{class J extends Ie{constructor(U,Ce,et,$n){super(U,Ce),this._registry=et,this._injector=$n,this.setDisabledStateFired=!1,this.onChange=()=>{},this.callSetDisabledState=(0,e.WQX)(on,{optional:!0})??gt}ngOnInit(){this._control=this._injector.get(bn),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(U){this._state=U===this.value,this.setProperty("checked",this._state)}registerOnChange(U){this._fn=U,this.onChange=()=>{U(this.value),this._registry.select(this)}}setDisabledState(U){(this.setDisabledStateFired||U||"whenDisabledForLegacyCode"===this.callSetDisabledState)&&this.setProperty("disabled",U),this.setDisabledStateFired=!0}fireUncheck(U){this.writeValue(U)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(er),e.rXU(e.zZn))}}static{this.\u0275dir=e.FsC({type:J,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(Ce,et){1&Ce&&e.bIt("change",function(){return et.onChange()})("blur",function(){return et.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[e.Jv_([Tr]),e.Vt3]})}}return J})();const yi=new e.nKC("NgModelWithFormControlWarning"),ws={provide:bn,useExisting:(0,e.Rfq)(()=>qi)};let qi=(()=>{class J extends bn{set isDisabled(U){}static{this._ngModelWarningSentOnce=!1}constructor(U,Ce,et,$n,_i){super(),this._ngModelWarningConfig=$n,this.callSetDisabledState=_i,this.update=new e.bkB,this._ngModelWarningSent=!1,this._setValidators(U),this._setAsyncValidators(Ce),this.valueAccessor=Re(0,et)}ngOnChanges(U){if(this._isControlChanged(U)){const Ce=U.form.previousValue;Ce&&Qe(Ce,this,!1),Ee(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}Cs(U,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Qe(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(U){this.viewModel=U,this.update.emit(U)}_isControlChanged(U){return U.hasOwnProperty("form")}static{this.\u0275fac=function(Ce){return new(Ce||J)(e.rXU(mt,10),e.rXU(en,10),e.rXU(Oe,10),e.rXU(yi,8),e.rXU(on,8))}}static{this.\u0275dir=e.FsC({type:J,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[e.Jv_([ws]),e.Vt3,e.OA$]})}}return J})();let Ni=(()=>{class J{constructor(){this._validator=dn}ngOnChanges(U){if(this.inputName in U){const Ce=this.normalizeInput(U[this.inputName].currentValue);this._enabled=this.enabled(Ce),this._validator=this._enabled?this.createValidator(Ce):dn,this._onChange&&this._onChange()}}validate(U){return this._validator(U)}registerOnValidatorChange(U){this._onChange=U}enabled(U){return null!=U}static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275dir=e.FsC({type:J,features:[e.OA$]})}}return J})();const mr={provide:mt,useExisting:(0,e.Rfq)(()=>ro),multi:!0};let ro=(()=>{class J extends Ni{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=U=>function Fa(J){return"number"==typeof J?J:parseInt(J,10)}(U),this.createValidator=U=>function cn(J){return ee=>function ft(J){return null!=J&&"number"==typeof J.length}(ee.value)&&ee.value.length>J?{maxlength:{requiredLength:J,actualLength:ee.value.length}}:null}(U)}static{this.\u0275fac=function(){let U;return function(et){return(U||(U=e.xGo(J)))(et||J)}}()}static{this.\u0275dir=e.FsC({type:J,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(Ce,et){2&Ce&&e.BMQ("maxlength",et._enabled?et.maxlength:null)},inputs:{maxlength:"maxlength"},features:[e.Jv_([mr]),e.Vt3]})}}return J})(),Fs=(()=>{class J{static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275mod=e.$C({type:J})}static{this.\u0275inj=e.G2t({imports:[Po]})}}return J})(),Rl=(()=>{class J{static withConfig(U){return{ngModule:J,providers:[{provide:on,useValue:U.callSetDisabledState??gt}]}}static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275mod=e.$C({type:J})}static{this.\u0275inj=e.G2t({imports:[Fs]})}}return J})(),nr=(()=>{class J{static withConfig(U){return{ngModule:J,providers:[{provide:yi,useValue:U.warnOnNgModelWithFormControl??"always"},{provide:on,useValue:U.callSetDisabledState??gt}]}}static{this.\u0275fac=function(Ce){return new(Ce||J)}}static{this.\u0275mod=e.$C({type:J})}static{this.\u0275inj=e.G2t({imports:[Fs]})}}return J})()},969:(pn,ct,N)=>{N.d(ct,{rJ:()=>le,u6:()=>ft});var e=N(7705),h=N(177),ne=N(4412),Z=N(1985),Ie=(N(1413),N(4572),N(5558));N(6697),N(6354),N(6977);const Ge=["*"];class Ue{_clearListeners(){for(const Ye of this._listeners)Ye.remove();this._listeners=[]}constructor(Ye){this._ngZone=Ye,this._pending=[],this._listeners=[],this._targetStream=new ne.t(void 0)}getLazyEmitter(Ye){return this._targetStream.pipe((0,Ie.n)(L=>{const z=new Z.c(Be=>{if(!L)return void this._pending.push({observable:z,observer:Be});const pt=L.addListener(Ye,dt=>{this._ngZone.run(()=>Be.next(dt))});if(pt)return this._listeners.push(pt),()=>pt.remove();Be.complete()});return z}))}setTarget(Ye){const L=this._targetStream.value;Ye!==L&&(L&&(this._clearListeners(),this._pending=[]),this._targetStream.next(Ye),this._pending.forEach(z=>z.observable.subscribe(z.observer)),this._pending=[])}destroy(){this._clearListeners(),this._pending=[],this._targetStream.complete()}}const yt={center:{lat:37.421995,lng:-122.084092},zoom:17,mapTypeId:"roadmap"};let ft=(()=>{class ue{set center(L){this._center=L}set zoom(L){this._zoom=L}set options(L){this._options=L||yt}constructor(L,z,Be){if(this._elementRef=L,this._ngZone=z,this._eventManager=new Ue((0,e.WQX)(e.SKi)),this.height="500px",this.width="500px",this._options=yt,this.mapInitialized=new e.bkB,this.authFailure=new e.bkB,this.boundsChanged=this._eventManager.getLazyEmitter("bounds_changed"),this.centerChanged=this._eventManager.getLazyEmitter("center_changed"),this.mapClick=this._eventManager.getLazyEmitter("click"),this.mapDblclick=this._eventManager.getLazyEmitter("dblclick"),this.mapDrag=this._eventManager.getLazyEmitter("drag"),this.mapDragend=this._eventManager.getLazyEmitter("dragend"),this.mapDragstart=this._eventManager.getLazyEmitter("dragstart"),this.headingChanged=this._eventManager.getLazyEmitter("heading_changed"),this.idle=this._eventManager.getLazyEmitter("idle"),this.maptypeidChanged=this._eventManager.getLazyEmitter("maptypeid_changed"),this.mapMousemove=this._eventManager.getLazyEmitter("mousemove"),this.mapMouseout=this._eventManager.getLazyEmitter("mouseout"),this.mapMouseover=this._eventManager.getLazyEmitter("mouseover"),this.projectionChanged=this._eventManager.getLazyEmitter("projection_changed"),this.mapRightclick=this._eventManager.getLazyEmitter("rightclick"),this.tilesloaded=this._eventManager.getLazyEmitter("tilesloaded"),this.tiltChanged=this._eventManager.getLazyEmitter("tilt_changed"),this.zoomChanged=this._eventManager.getLazyEmitter("zoom_changed"),this._isBrowser=(0,h.UE)(Be),this._isBrowser){const pt=window;this._existingAuthFailureCallback=pt.gm_authFailure,pt.gm_authFailure=()=>{this._existingAuthFailureCallback&&this._existingAuthFailureCallback(),this.authFailure.emit()}}}ngOnChanges(L){(L.height||L.width)&&this._setSize();const z=this.googleMap;z&&(L.options&&z.setOptions(this._combineOptions()),L.center&&this._center&&z.setCenter(this._center),L.zoom&&null!=this._zoom&&z.setZoom(this._zoom),L.mapTypeId&&this.mapTypeId&&z.setMapTypeId(this.mapTypeId))}ngOnInit(){this._isBrowser&&(this._mapEl=this._elementRef.nativeElement.querySelector(".map-container"),this._setSize(),this._ngZone.runOutsideAngular(()=>{this.googleMap=new google.maps.Map(this._mapEl,this._combineOptions())}),this._eventManager.setTarget(this.googleMap),this.mapInitialized.emit(this.googleMap))}ngOnDestroy(){this._eventManager.destroy(),this._isBrowser&&(window.gm_authFailure=this._existingAuthFailureCallback)}fitBounds(L,z){this._assertInitialized(),this.googleMap.fitBounds(L,z)}panBy(L,z){this._assertInitialized(),this.googleMap.panBy(L,z)}panTo(L){this._assertInitialized(),this.googleMap.panTo(L)}panToBounds(L,z){this._assertInitialized(),this.googleMap.panToBounds(L,z)}getBounds(){return this._assertInitialized(),this.googleMap.getBounds()||null}getCenter(){return this._assertInitialized(),this.googleMap.getCenter()}getClickableIcons(){return this._assertInitialized(),this.googleMap.getClickableIcons()}getHeading(){return this._assertInitialized(),this.googleMap.getHeading()}getMapTypeId(){return this._assertInitialized(),this.googleMap.getMapTypeId()}getProjection(){return this._assertInitialized(),this.googleMap.getProjection()||null}getStreetView(){return this._assertInitialized(),this.googleMap.getStreetView()}getTilt(){return this._assertInitialized(),this.googleMap.getTilt()}getZoom(){return this._assertInitialized(),this.googleMap.getZoom()}get controls(){return this._assertInitialized(),this.googleMap.controls}get data(){return this._assertInitialized(),this.googleMap.data}get mapTypes(){return this._assertInitialized(),this.googleMap.mapTypes}get overlayMapTypes(){return this._assertInitialized(),this.googleMap.overlayMapTypes}_setSize(){if(this._mapEl){const L=this._mapEl.style;L.height=null===this.height?"":en(this.height)||"500px",L.width=null===this.width?"":en(this.width)||"500px"}}_combineOptions(){const L=this._options||{};return{...L,center:this._center||L.center||yt.center,zoom:this._zoom??L.zoom??yt.zoom,mapTypeId:this.mapTypeId||L.mapTypeId||yt.mapTypeId}}_assertInitialized(){}static{this.\u0275fac=function(z){return new(z||ue)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(e.Agw))}}static{this.\u0275cmp=e.VBU({type:ue,selectors:[["google-map"]],inputs:{height:"height",width:"width",mapTypeId:"mapTypeId",center:"center",zoom:"zoom",options:"options"},outputs:{mapInitialized:"mapInitialized",authFailure:"authFailure",boundsChanged:"boundsChanged",centerChanged:"centerChanged",mapClick:"mapClick",mapDblclick:"mapDblclick",mapDrag:"mapDrag",mapDragend:"mapDragend",mapDragstart:"mapDragstart",headingChanged:"headingChanged",idle:"idle",maptypeidChanged:"maptypeidChanged",mapMousemove:"mapMousemove",mapMouseout:"mapMouseout",mapMouseover:"mapMouseover",projectionChanged:"projectionChanged",mapRightclick:"mapRightclick",tilesloaded:"tilesloaded",tiltChanged:"tiltChanged",zoomChanged:"zoomChanged"},exportAs:["googleMap"],features:[e.OA$],ngContentSelectors:Ge,decls:2,vars:0,consts:[[1,"map-container"]],template:function(z,Be){1&z&&(e.NAR(),e.nrm(0,"div",0),e.SdG(1))},encapsulation:2,changeDetection:0})}}return ue})();const mt=/([A-Za-z%]+)$/;function en(ue){return null==ue?"":mt.test(ue)?ue:`${ue}px`}let le=(()=>{class ue{static{this.\u0275fac=function(z){return new(z||ue)}}static{this.\u0275mod=e.$C({type:ue})}static{this.\u0275inj=e.G2t({})}}return ue})()},6600:(pn,ct,N)=>{N.d(ct,{$E:()=>re,yE:()=>me,r6:()=>xe,pZ:()=>Ve,Zc:()=>Mt,GG:()=>cn,Ob:()=>St});var e=N(7705),h=N(6039),ne=N(8203),De=N(177),we=N(6860),Ie=N(4085);const At=new e.nKC("mat-sanity-checks",{providedIn:"root",factory:function vt(){return!0}});let me=(()=>{class an{constructor(ye,Pe,Fe){this._sanityChecks=Pe,this._document=Fe,this._hasDoneGlobalChecks=!1,ye._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ye){return!(0,we.v8)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ye])}static{this.\u0275fac=function(Pe){return new(Pe||an)(e.KVO(h.Q_),e.KVO(At,8),e.KVO(De.qQ))}}static{this.\u0275mod=e.$C({type:an})}static{this.\u0275inj=e.G2t({imports:[ne.jI,ne.jI]})}}return an})();function St(an){return class extends an{get disabled(){return this._disabled}set disabled(kt){this._disabled=(0,Ie.he)(kt)}constructor(...kt){super(...kt),this._disabled=!1}}}function Mt(an,kt){return class extends an{get color(){return this._color}set color(ye){const Pe=ye||this.defaultColor;Pe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),Pe&&this._elementRef.nativeElement.classList.add(`mat-${Pe}`),this._color=Pe)}constructor(...ye){super(...ye),this.defaultColor=kt,this.color=kt}}}function cn(an){return class extends an{get disableRipple(){return this._disableRipple}set disableRipple(kt){this._disableRipple=(0,Ie.he)(kt)}constructor(...kt){super(...kt),this._disableRipple=!1}}}class dt{constructor(kt,ye,Pe,Fe=!1){this._renderer=kt,this.element=ye,this.config=Pe,this._animationForciblyDisabledThroughCss=Fe,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Vt=(0,we.BQ)({passive:!0,capture:!0});class bn{constructor(){this._events=new Map,this._delegateEventHandler=kt=>{const ye=(0,we.Fb)(kt);ye&&this._events.get(kt.type)?.forEach((Pe,Fe)=>{(Fe===ye||Fe.contains(ye))&&Pe.forEach(Xe=>Xe.handleEvent(kt))})}}addHandler(kt,ye,Pe,Fe){const Xe=this._events.get(ye);if(Xe){const zt=Xe.get(Pe);zt?zt.add(Fe):Xe.set(Pe,new Set([Fe]))}else this._events.set(ye,new Map([[Pe,new Set([Fe])]])),kt.runOutsideAngular(()=>{document.addEventListener(ye,this._delegateEventHandler,Vt)})}removeHandler(kt,ye,Pe){const Fe=this._events.get(kt);if(!Fe)return;const Xe=Fe.get(ye);Xe&&(Xe.delete(Pe),0===Xe.size&&Fe.delete(ye),0===Fe.size&&(this._events.delete(kt),document.removeEventListener(kt,this._delegateEventHandler,Vt)))}}const jn={enterDuration:225,exitDuration:150},Vn=(0,we.BQ)({passive:!0,capture:!0}),oi=["mousedown","touchstart"],Ci=["mouseup","mouseleave","touchend","touchcancel"];class xt{static{this._eventManager=new bn}constructor(kt,ye,Pe,Fe){this._target=kt,this._ngZone=ye,this._platform=Fe,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,Fe.isBrowser&&(this._containerElement=(0,Ie.i8)(Pe))}fadeInRipple(kt,ye,Pe={}){const Fe=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Xe={...jn,...Pe.animation};Pe.centered&&(kt=Fe.left+Fe.width/2,ye=Fe.top+Fe.height/2);const zt=Pe.radius||function ke(an,kt,ye){const Pe=Math.max(Math.abs(an-ye.left),Math.abs(an-ye.right)),Fe=Math.max(Math.abs(kt-ye.top),Math.abs(kt-ye.bottom));return Math.sqrt(Pe*Pe+Fe*Fe)}(kt,ye,Fe),on=kt-Fe.left,gt=ye-Fe.top,Ke=Xe.enterDuration,Ee=document.createElement("div");Ee.classList.add("mat-ripple-element"),Ee.style.left=on-zt+"px",Ee.style.top=gt-zt+"px",Ee.style.height=2*zt+"px",Ee.style.width=2*zt+"px",null!=Pe.color&&(Ee.style.backgroundColor=Pe.color),Ee.style.transitionDuration=`${Ke}ms`,this._containerElement.appendChild(Ee);const Qe=window.getComputedStyle(Ee),hn=Qe.transitionDuration,nt="none"===Qe.transitionProperty||"0s"===hn||"0s, 0s"===hn||0===Fe.width&&0===Fe.height,He=new dt(this,Ee,Pe,nt);Ee.style.transform="scale3d(1, 1, 1)",He.state=0,Pe.persistent||(this._mostRecentTransientRipple=He);let Ze=null;return!nt&&(Ke||Xe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const $t=()=>this._finishRippleTransition(He),fn=()=>this._destroyRipple(He);Ee.addEventListener("transitionend",$t),Ee.addEventListener("transitioncancel",fn),Ze={onTransitionEnd:$t,onTransitionCancel:fn}}),this._activeRipples.set(He,Ze),(nt||!Ke)&&this._finishRippleTransition(He),He}fadeOutRipple(kt){if(2===kt.state||3===kt.state)return;const ye=kt.element,Pe={...jn,...kt.config.animation};ye.style.transitionDuration=`${Pe.exitDuration}ms`,ye.style.opacity="0",kt.state=2,(kt._animationForciblyDisabledThroughCss||!Pe.exitDuration)&&this._finishRippleTransition(kt)}fadeOutAll(){this._getActiveRipples().forEach(kt=>kt.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(kt=>{kt.config.persistent||kt.fadeOut()})}setupTriggerEvents(kt){const ye=(0,Ie.i8)(kt);!this._platform.isBrowser||!ye||ye===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ye,oi.forEach(Pe=>{xt._eventManager.addHandler(this._ngZone,Pe,ye,this)}))}handleEvent(kt){"mousedown"===kt.type?this._onMousedown(kt):"touchstart"===kt.type?this._onTouchStart(kt):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ci.forEach(ye=>{this._triggerElement.addEventListener(ye,this,Vn)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(kt){0===kt.state?this._startFadeOutTransition(kt):2===kt.state&&this._destroyRipple(kt)}_startFadeOutTransition(kt){const ye=kt===this._mostRecentTransientRipple,{persistent:Pe}=kt.config;kt.state=1,!Pe&&(!ye||!this._isPointerDown)&&kt.fadeOut()}_destroyRipple(kt){const ye=this._activeRipples.get(kt)??null;this._activeRipples.delete(kt),this._activeRipples.size||(this._containerRect=null),kt===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),kt.state=3,null!==ye&&(kt.element.removeEventListener("transitionend",ye.onTransitionEnd),kt.element.removeEventListener("transitioncancel",ye.onTransitionCancel)),kt.element.remove()}_onMousedown(kt){const ye=(0,h._G)(kt),Pe=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ye&&!Pe&&(this._isPointerDown=!0,this.fadeInRipple(kt.clientX,kt.clientY,this._target.rippleConfig))}_onTouchStart(kt){if(!this._target.rippleDisabled&&!(0,h.w6)(kt)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ye=kt.changedTouches;if(ye)for(let Pe=0;Pe<ye.length;Pe++)this.fadeInRipple(ye[Pe].clientX,ye[Pe].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(kt=>{!kt.config.persistent&&(1===kt.state||kt.config.terminateOnPointerUp&&0===kt.state)&&kt.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const kt=this._triggerElement;kt&&(oi.forEach(ye=>xt._eventManager.removeHandler(ye,kt,this)),this._pointerUpEventsRegistered&&Ci.forEach(ye=>kt.removeEventListener(ye,this,Vn)))}}const re=new e.nKC("mat-ripple-global-options");let xe=(()=>{class an{get disabled(){return this._disabled}set disabled(ye){ye&&this.fadeOutAllNonPersistent(),this._disabled=ye,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ye){this._trigger=ye,this._setupTriggerEventsIfEnabled()}constructor(ye,Pe,Fe,Xe,zt){this._elementRef=ye,this._animationMode=zt,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Xe||{},this._rippleRenderer=new xt(this,Pe,ye,Fe)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(ye,Pe=0,Fe){return"number"==typeof ye?this._rippleRenderer.fadeInRipple(ye,Pe,{...this.rippleConfig,...Fe}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...ye})}static{this.\u0275fac=function(Pe){return new(Pe||an)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(we.OD),e.rXU(re,8),e.rXU(e.bc$,8))}}static{this.\u0275dir=e.FsC({type:an,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(Pe,Fe){2&Pe&&e.AVh("mat-ripple-unbounded",Fe.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}}return an})(),Ve=(()=>{class an{static{this.\u0275fac=function(Pe){return new(Pe||an)}}static{this.\u0275mod=e.$C({type:an})}static{this.\u0275inj=e.G2t({imports:[me,me]})}}return an})()},5351:(pn,ct,N)=>{N.d(ct,{Vh:()=>pt,bZ:()=>Ci,ru:()=>Nt,hM:()=>Ft,CP:()=>z});var e=N(7987),h=N(177),ne=N(7705),Z=N(6039),De=N(6860),we=N(6939),Ie=N(7336),Oe=N(1413),Ne=N(9030),Me=N(7673),Ge=N(8203),Ue=N(9172);function yt(Qt,qt){}class _t{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let ft=(()=>{class Qt extends we.lb{constructor(st,Dt,wt,Rn,yn,Hn,ti,ai){super(),this._elementRef=st,this._focusTrapFactory=Dt,this._config=Rn,this._interactivityChecker=yn,this._ngZone=Hn,this._overlayRef=ti,this._focusMonitor=ai,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=zi=>{this._portalOutlet.hasAttached();const us=this._portalOutlet.attachDomPortal(zi);return this._contentAttached(),us},this._document=wt,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(st){this._portalOutlet.hasAttached();const Dt=this._portalOutlet.attachComponentPortal(st);return this._contentAttached(),Dt}attachTemplatePortal(st){this._portalOutlet.hasAttached();const Dt=this._portalOutlet.attachTemplatePortal(st);return this._contentAttached(),Dt}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(st,Dt){this._interactivityChecker.isFocusable(st)||(st.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const wt=()=>{st.removeEventListener("blur",wt),st.removeEventListener("mousedown",wt),st.removeAttribute("tabindex")};st.addEventListener("blur",wt),st.addEventListener("mousedown",wt)})),st.focus(Dt)}_focusByCssSelector(st,Dt){let wt=this._elementRef.nativeElement.querySelector(st);wt&&this._forceFocus(wt,Dt)}_trapFocus(){const st=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||st.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Dt=>{Dt||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const st=this._config.restoreFocus;let Dt=null;if("string"==typeof st?Dt=this._document.querySelector(st):"boolean"==typeof st?Dt=st?this._elementFocusedBeforeDialogWasOpened:null:st&&(Dt=st),this._config.restoreFocus&&Dt&&"function"==typeof Dt.focus){const wt=(0,De.vc)(),Rn=this._elementRef.nativeElement;(!wt||wt===this._document.body||wt===Rn||Rn.contains(wt))&&(this._focusMonitor?(this._focusMonitor.focusVia(Dt,this._closeInteractionType),this._closeInteractionType=null):Dt.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const st=this._elementRef.nativeElement,Dt=(0,De.vc)();return st===Dt||st.contains(Dt)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,De.vc)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static{this.\u0275fac=function(Dt){return new(Dt||Qt)(ne.rXU(ne.aKT),ne.rXU(Z.GX),ne.rXU(h.qQ,8),ne.rXU(_t),ne.rXU(Z.Z7),ne.rXU(ne.SKi),ne.rXU(e.yY),ne.rXU(Z.FN))}}static{this.\u0275cmp=ne.VBU({type:Qt,selectors:[["cdk-dialog-container"]],viewQuery:function(Dt,wt){if(1&Dt&&ne.GBs(we.I3,7),2&Dt){let Rn;ne.mGM(Rn=ne.lsd())&&(wt._portalOutlet=Rn.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(Dt,wt){2&Dt&&ne.BMQ("id",wt._config.id||null)("role",wt._config.role)("aria-modal",wt._config.ariaModal)("aria-labelledby",wt._config.ariaLabel?null:wt._ariaLabelledByQueue[0])("aria-label",wt._config.ariaLabel)("aria-describedby",wt._config.ariaDescribedBy||null)},features:[ne.Vt3],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Dt,wt){1&Dt&&ne.DNE(0,yt,0,0,"ng-template",0)},dependencies:[we.I3],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}}return Qt})();class mt{constructor(qt,st){this.overlayRef=qt,this.config=st,this.closed=new Oe.B,this.disableClose=st.disableClose,this.backdropClick=qt.backdropClick(),this.keydownEvents=qt.keydownEvents(),this.outsidePointerEvents=qt.outsidePointerEvents(),this.id=st.id,this.keydownEvents.subscribe(Dt=>{Dt.keyCode===Ie._f&&!this.disableClose&&!(0,Ie.rp)(Dt)&&(Dt.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=qt.detachments().subscribe(()=>{!1!==st.closeOnOverlayDetachments&&this.close()})}close(qt,st){if(this.containerInstance){const Dt=this.closed;this.containerInstance._closeInteractionType=st?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),Dt.next(qt),Dt.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(qt="",st=""){return this.overlayRef.updateSize({width:qt,height:st}),this}addPanelClass(qt){return this.overlayRef.addPanelClass(qt),this}removePanelClass(qt){return this.overlayRef.removePanelClass(qt),this}}const en=new ne.nKC("DialogScrollStrategy"),vt=new ne.nKC("DialogData"),At=new ne.nKC("DefaultDialogConfig"),at={provide:en,deps:[e.hJ],useFactory:function me(Qt){return()=>Qt.scrollStrategies.block()}};let rt=0,ht=(()=>{class Qt{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(st,Dt,wt,Rn,yn,Hn){this._overlay=st,this._injector=Dt,this._defaultOptions=wt,this._parentDialog=Rn,this._overlayContainer=yn,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Oe.B,this._afterOpenedAtThisLevel=new Oe.B,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,Ne.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,Ue.Z)(void 0))),this._scrollStrategy=Hn}open(st,Dt){(Dt={...this._defaultOptions||new _t,...Dt}).id=Dt.id||"cdk-dialog-"+rt++,Dt.id&&this.getDialogById(Dt.id);const Rn=this._getOverlayConfig(Dt),yn=this._overlay.create(Rn),Hn=new mt(yn,Dt),ti=this._attachContainer(yn,Hn,Dt);return Hn.containerInstance=ti,this._attachDialogContent(st,Hn,ti,Dt),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Hn),Hn.closed.subscribe(()=>this._removeOpenDialog(Hn,!0)),this.afterOpened.next(Hn),Hn}closeAll(){St(this.openDialogs,st=>st.close())}getDialogById(st){return this.openDialogs.find(Dt=>Dt.id===st)}ngOnDestroy(){St(this._openDialogsAtThisLevel,st=>{!1===st.config.closeOnDestroy&&this._removeOpenDialog(st,!1)}),St(this._openDialogsAtThisLevel,st=>st.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(st){const Dt=new e.rR({positionStrategy:st.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:st.scrollStrategy||this._scrollStrategy(),panelClass:st.panelClass,hasBackdrop:st.hasBackdrop,direction:st.direction,minWidth:st.minWidth,minHeight:st.minHeight,maxWidth:st.maxWidth,maxHeight:st.maxHeight,width:st.width,height:st.height,disposeOnNavigation:st.closeOnNavigation});return st.backdropClass&&(Dt.backdropClass=st.backdropClass),Dt}_attachContainer(st,Dt,wt){const Rn=wt.injector||wt.viewContainerRef?.injector,yn=[{provide:_t,useValue:wt},{provide:mt,useValue:Dt},{provide:e.yY,useValue:st}];let Hn;wt.container?"function"==typeof wt.container?Hn=wt.container:(Hn=wt.container.type,yn.push(...wt.container.providers(wt))):Hn=ft;const ti=new we.A8(Hn,wt.viewContainerRef,ne.zZn.create({parent:Rn||this._injector,providers:yn}),wt.componentFactoryResolver);return st.attach(ti).instance}_attachDialogContent(st,Dt,wt,Rn){if(st instanceof ne.C4Q){const yn=this._createInjector(Rn,Dt,wt,void 0);let Hn={$implicit:Rn.data,dialogRef:Dt};Rn.templateContext&&(Hn={...Hn,..."function"==typeof Rn.templateContext?Rn.templateContext():Rn.templateContext}),wt.attachTemplatePortal(new we.VA(st,null,Hn,yn))}else{const yn=this._createInjector(Rn,Dt,wt,this._injector),Hn=wt.attachComponentPortal(new we.A8(st,Rn.viewContainerRef,yn,Rn.componentFactoryResolver));Dt.componentRef=Hn,Dt.componentInstance=Hn.instance}}_createInjector(st,Dt,wt,Rn){const yn=st.injector||st.viewContainerRef?.injector,Hn=[{provide:vt,useValue:st.data},{provide:mt,useValue:Dt}];return st.providers&&("function"==typeof st.providers?Hn.push(...st.providers(Dt,st,wt)):Hn.push(...st.providers)),st.direction&&(!yn||!yn.get(Ge.dS,null,{optional:!0}))&&Hn.push({provide:Ge.dS,useValue:{value:st.direction,change:(0,Me.of)()}}),ne.zZn.create({parent:yn||Rn,providers:Hn})}_removeOpenDialog(st,Dt){const wt=this.openDialogs.indexOf(st);wt>-1&&(this.openDialogs.splice(wt,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Rn,yn)=>{Rn?yn.setAttribute("aria-hidden",Rn):yn.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Dt&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const st=this._overlayContainer.getContainerElement();if(st.parentElement){const Dt=st.parentElement.children;for(let wt=Dt.length-1;wt>-1;wt--){const Rn=Dt[wt];Rn!==st&&"SCRIPT"!==Rn.nodeName&&"STYLE"!==Rn.nodeName&&!Rn.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Rn,Rn.getAttribute("aria-hidden")),Rn.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const st=this._parentDialog;return st?st._getAfterAllClosed():this._afterAllClosedAtThisLevel}static{this.\u0275fac=function(Dt){return new(Dt||Qt)(ne.KVO(e.hJ),ne.KVO(ne.zZn),ne.KVO(At,8),ne.KVO(Qt,12),ne.KVO(e.Sf),ne.KVO(en))}}static{this.\u0275prov=ne.jDH({token:Qt,factory:Qt.\u0275fac})}}return Qt})();function St(Qt,qt){let st=Qt.length;for(;st--;)qt(Qt[st])}let Mt=(()=>{class Qt{static{this.\u0275fac=function(Dt){return new(Dt||Qt)}}static{this.\u0275mod=ne.$C({type:Qt})}static{this.\u0275inj=ne.G2t({providers:[ht,at],imports:[e.z_,we.jc,Z.Pd,we.jc]})}}return Qt})();var cn=N(4085),En=N(7786),dn=N(5964),Wt=N(6697),ze=N(6600);function Se(Qt,qt){}N(9969);class Nt{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const K="mdc-dialog--open",ge="mdc-dialog--opening",je="mdc-dialog--closing";let Le=(()=>{class Qt extends ft{constructor(st,Dt,wt,Rn,yn,Hn,ti,ai){super(st,Dt,wt,Rn,yn,Hn,ti,ai),this._animationStateChanged=new ne.bkB}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(st){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:st})}static{this.\u0275fac=function(Dt){return new(Dt||Qt)(ne.rXU(ne.aKT),ne.rXU(Z.GX),ne.rXU(h.qQ,8),ne.rXU(Nt),ne.rXU(Z.Z7),ne.rXU(ne.SKi),ne.rXU(e.yY),ne.rXU(Z.FN))}}static{this.\u0275cmp=ne.VBU({type:Qt,selectors:[["ng-component"]],features:[ne.Vt3],decls:0,vars:0,template:function(Dt,wt){},encapsulation:2})}}return Qt})();const ue="--mat-dialog-transition-duration";function Ye(Qt){return null==Qt?null:"number"==typeof Qt?Qt:Qt.endsWith("ms")?(0,cn.OE)(Qt.substring(0,Qt.length-2)):Qt.endsWith("s")?1e3*(0,cn.OE)(Qt.substring(0,Qt.length-1)):"0"===Qt?0:null}let L=(()=>{class Qt extends Le{constructor(st,Dt,wt,Rn,yn,Hn,ti,ai,zi){super(st,Dt,wt,Rn,yn,Hn,ti,zi),this._animationMode=ai,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?Ye(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?Ye(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ue,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ge,K)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(K),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(K),this._animationsEnabled?(this._hostElement.style.setProperty(ue,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(je)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(ge,je)}_waitForAnimationToComplete(st,Dt){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(Dt,st)}_requestAnimationFrame(st){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(st):st()})}static{this.\u0275fac=function(Dt){return new(Dt||Qt)(ne.rXU(ne.aKT),ne.rXU(Z.GX),ne.rXU(h.qQ,8),ne.rXU(Nt),ne.rXU(Z.Z7),ne.rXU(ne.SKi),ne.rXU(e.yY),ne.rXU(ne.bc$,8),ne.rXU(Z.FN))}}static{this.\u0275cmp=ne.VBU({type:Qt,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(Dt,wt){2&Dt&&(ne.Mr5("id",wt._config.id),ne.BMQ("aria-modal",wt._config.ariaModal)("role",wt._config.role)("aria-labelledby",wt._config.ariaLabel?null:wt._ariaLabelledByQueue[0])("aria-label",wt._config.ariaLabel)("aria-describedby",wt._config.ariaDescribedBy||null),ne.AVh("_mat-animation-noopable",!wt._animationsEnabled))},features:[ne.Vt3],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(Dt,wt){1&Dt&&(ne.j41(0,"div",0)(1,"div",1),ne.DNE(2,Se,0,0,"ng-template",2),ne.k0s()())},dependencies:[we.I3],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{display:block;width:100%;height:100%}.mat-mdc-dialog-container{--mdc-dialog-container-elevation-shadow:0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);--mdc-dialog-container-shadow-color:#000;--mdc-dialog-container-shape:4px;--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}}return Qt})();class z{constructor(qt,st,Dt){this._ref=qt,this._containerInstance=Dt,this._afterOpened=new Oe.B,this._beforeClosed=new Oe.B,this._state=0,this.disableClose=st.disableClose,this.id=qt.id,Dt._animationStateChanged.pipe((0,dn.p)(wt=>"opened"===wt.state),(0,Wt.s)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Dt._animationStateChanged.pipe((0,dn.p)(wt=>"closed"===wt.state),(0,Wt.s)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),qt.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,En.h)(this.backdropClick(),this.keydownEvents().pipe((0,dn.p)(wt=>wt.keyCode===Ie._f&&!this.disableClose&&!(0,Ie.rp)(wt)))).subscribe(wt=>{this.disableClose||(wt.preventDefault(),function Be(Qt,qt,st){Qt._closeInteractionType=qt,Qt.close(st)}(this,"keydown"===wt.type?"keyboard":"mouse"))})}close(qt){this._result=qt,this._containerInstance._animationStateChanged.pipe((0,dn.p)(st=>"closing"===st.state),(0,Wt.s)(1)).subscribe(st=>{this._beforeClosed.next(qt),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),st.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(qt){let st=this._ref.config.positionStrategy;return qt&&(qt.left||qt.right)?qt.left?st.left(qt.left):st.right(qt.right):st.centerHorizontally(),qt&&(qt.top||qt.bottom)?qt.top?st.top(qt.top):st.bottom(qt.bottom):st.centerVertically(),this._ref.updatePosition(),this}updateSize(qt="",st=""){return this._ref.updateSize(qt,st),this}addPanelClass(qt){return this._ref.addPanelClass(qt),this}removePanelClass(qt){return this._ref.removePanelClass(qt),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const pt=new ne.nKC("MatMdcDialogData"),dt=new ne.nKC("mat-mdc-dialog-default-options"),Vt=new ne.nKC("mat-mdc-dialog-scroll-strategy"),jn={provide:Vt,deps:[e.hJ],useFactory:function bn(Qt){return()=>Qt.scrollStrategies.block()}};let Vn=0,oi=(()=>{class Qt{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const st=this._parentDialog;return st?st._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(st,Dt,wt,Rn,yn,Hn,ti,ai,zi,us){this._overlay=st,this._defaultOptions=wt,this._parentDialog=Rn,this._dialogRefConstructor=ti,this._dialogContainerType=ai,this._dialogDataToken=zi,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Oe.B,this._afterOpenedAtThisLevel=new Oe.B,this._idPrefix="mat-dialog-",this.dialogConfigClass=Nt,this.afterAllClosed=(0,Ne.v)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,Ue.Z)(void 0))),this._scrollStrategy=Hn,this._dialog=Dt.get(ht)}open(st,Dt){let wt;(Dt={...this._defaultOptions||new Nt,...Dt}).id=Dt.id||`${this._idPrefix}${Vn++}`,Dt.scrollStrategy=Dt.scrollStrategy||this._scrollStrategy();const Rn=this._dialog.open(st,{...Dt,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:Dt},{provide:_t,useValue:Dt}]},templateContext:()=>({dialogRef:wt}),providers:(yn,Hn,ti)=>(wt=new this._dialogRefConstructor(yn,Dt,ti),wt.updatePosition(Dt?.position),[{provide:this._dialogContainerType,useValue:ti},{provide:this._dialogDataToken,useValue:Hn.data},{provide:this._dialogRefConstructor,useValue:wt}])});return wt.componentRef=Rn.componentRef,wt.componentInstance=Rn.componentInstance,this.openDialogs.push(wt),this.afterOpened.next(wt),wt.afterClosed().subscribe(()=>{const yn=this.openDialogs.indexOf(wt);yn>-1&&(this.openDialogs.splice(yn,1),this.openDialogs.length||this._getAfterAllClosed().next())}),wt}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(st){return this.openDialogs.find(Dt=>Dt.id===st)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(st){let Dt=st.length;for(;Dt--;)st[Dt].close()}static{this.\u0275fac=function(Dt){ne.QTQ()}}static{this.\u0275prov=ne.jDH({token:Qt,factory:Qt.\u0275fac})}}return Qt})(),Ci=(()=>{class Qt extends oi{constructor(st,Dt,wt,Rn,yn,Hn,ti,ai){super(st,Dt,Rn,Hn,ti,yn,z,L,pt,ai),this._idPrefix="mat-mdc-dialog-"}static{this.\u0275fac=function(Dt){return new(Dt||Qt)(ne.KVO(e.hJ),ne.KVO(ne.zZn),ne.KVO(h.aZ,8),ne.KVO(dt,8),ne.KVO(Vt),ne.KVO(Qt,12),ne.KVO(e.Sf),ne.KVO(ne.bc$,8))}}static{this.\u0275prov=ne.jDH({token:Qt,factory:Qt.\u0275fac})}}return Qt})(),Ft=(()=>{class Qt{static{this.\u0275fac=function(Dt){return new(Dt||Qt)}}static{this.\u0275mod=ne.$C({type:Qt})}static{this.\u0275inj=ne.G2t({providers:[Ci,jn],imports:[Mt,e.z_,we.jc,ze.yE,ze.yE]})}}return Qt})()},9213:(pn,ct,N)=>{N.d(ct,{An:()=>ce,m_:()=>Le});var e=N(7705),h=N(6600),ne=N(4085),Z=N(177),De=N(7673),we=N(8810),Ie=N(7468),Oe=N(8359),Ne=N(8141),Me=N(6354),Ge=N(9437),Ue=N(980),yt=N(7647),_t=N(6697),bt=N(1626),ft=N(345);const mt=["*"];let en;function At(ue){return function vt(){if(void 0===en&&(en=null,typeof window<"u")){const ue=window;void 0!==ue.trustedTypes&&(en=ue.trustedTypes.createPolicy("angular#components",{createHTML:Ye=>Ye}))}return en}()?.createHTML(ue)||ue}function me(ue){return Error(`Unable to find icon with the name "${ue}"`)}function rt(ue){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${ue}".`)}function ht(ue){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${ue}".`)}class St{constructor(Ye,L,z){this.url=Ye,this.svgText=L,this.options=z}}let Mt=(()=>{class ue{constructor(L,z,Be,pt){this._httpClient=L,this._sanitizer=z,this._errorHandler=pt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Be}addSvgIcon(L,z,Be){return this.addSvgIconInNamespace("",L,z,Be)}addSvgIconLiteral(L,z,Be){return this.addSvgIconLiteralInNamespace("",L,z,Be)}addSvgIconInNamespace(L,z,Be,pt){return this._addSvgIconConfig(L,z,new St(Be,null,pt))}addSvgIconResolver(L){return this._resolvers.push(L),this}addSvgIconLiteralInNamespace(L,z,Be,pt){const dt=this._sanitizer.sanitize(e.WPN.HTML,Be);if(!dt)throw ht(Be);const Vt=At(dt);return this._addSvgIconConfig(L,z,new St("",Vt,pt))}addSvgIconSet(L,z){return this.addSvgIconSetInNamespace("",L,z)}addSvgIconSetLiteral(L,z){return this.addSvgIconSetLiteralInNamespace("",L,z)}addSvgIconSetInNamespace(L,z,Be){return this._addSvgIconSetConfig(L,new St(z,null,Be))}addSvgIconSetLiteralInNamespace(L,z,Be){const pt=this._sanitizer.sanitize(e.WPN.HTML,z);if(!pt)throw ht(z);const dt=At(pt);return this._addSvgIconSetConfig(L,new St("",dt,Be))}registerFontClassAlias(L,z=L){return this._fontCssClassesByAlias.set(L,z),this}classNameForFontAlias(L){return this._fontCssClassesByAlias.get(L)||L}setDefaultFontSetClass(...L){return this._defaultFontSetClass=L,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(L){const z=this._sanitizer.sanitize(e.WPN.RESOURCE_URL,L);if(!z)throw rt(L);const Be=this._cachedIconsByUrl.get(z);return Be?(0,De.of)(dn(Be)):this._loadSvgIconFromConfig(new St(L,null)).pipe((0,Ne.M)(pt=>this._cachedIconsByUrl.set(z,pt)),(0,Me.T)(pt=>dn(pt)))}getNamedSvgIcon(L,z=""){const Be=Wt(z,L);let pt=this._svgIconConfigs.get(Be);if(pt)return this._getSvgFromConfig(pt);if(pt=this._getIconConfigFromResolvers(z,L),pt)return this._svgIconConfigs.set(Be,pt),this._getSvgFromConfig(pt);const dt=this._iconSetConfigs.get(z);return dt?this._getSvgFromIconSetConfigs(L,dt):(0,we.$)(me(Be))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(L){return L.svgText?(0,De.of)(dn(this._svgElementFromConfig(L))):this._loadSvgIconFromConfig(L).pipe((0,Me.T)(z=>dn(z)))}_getSvgFromIconSetConfigs(L,z){const Be=this._extractIconWithNameFromAnySet(L,z);if(Be)return(0,De.of)(Be);const pt=z.filter(dt=>!dt.svgText).map(dt=>this._loadSvgIconSetFromConfig(dt).pipe((0,Ge.W)(Vt=>{const jn=`Loading icon set URL: ${this._sanitizer.sanitize(e.WPN.RESOURCE_URL,dt.url)} failed: ${Vt.message}`;return this._errorHandler.handleError(new Error(jn)),(0,De.of)(null)})));return(0,Ie.p)(pt).pipe((0,Me.T)(()=>{const dt=this._extractIconWithNameFromAnySet(L,z);if(!dt)throw me(L);return dt}))}_extractIconWithNameFromAnySet(L,z){for(let Be=z.length-1;Be>=0;Be--){const pt=z[Be];if(pt.svgText&&pt.svgText.toString().indexOf(L)>-1){const dt=this._svgElementFromConfig(pt),Vt=this._extractSvgIconFromSet(dt,L,pt.options);if(Vt)return Vt}}return null}_loadSvgIconFromConfig(L){return this._fetchIcon(L).pipe((0,Ne.M)(z=>L.svgText=z),(0,Me.T)(()=>this._svgElementFromConfig(L)))}_loadSvgIconSetFromConfig(L){return L.svgText?(0,De.of)(null):this._fetchIcon(L).pipe((0,Ne.M)(z=>L.svgText=z))}_extractSvgIconFromSet(L,z,Be){const pt=L.querySelector(`[id="${z}"]`);if(!pt)return null;const dt=pt.cloneNode(!0);if(dt.removeAttribute("id"),"svg"===dt.nodeName.toLowerCase())return this._setSvgAttributes(dt,Be);if("symbol"===dt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(dt),Be);const Vt=this._svgElementFromString(At("<svg></svg>"));return Vt.appendChild(dt),this._setSvgAttributes(Vt,Be)}_svgElementFromString(L){const z=this._document.createElement("DIV");z.innerHTML=L;const Be=z.querySelector("svg");if(!Be)throw Error("<svg> tag not found");return Be}_toSvgElement(L){const z=this._svgElementFromString(At("<svg></svg>")),Be=L.attributes;for(let pt=0;pt<Be.length;pt++){const{name:dt,value:Vt}=Be[pt];"id"!==dt&&z.setAttribute(dt,Vt)}for(let pt=0;pt<L.childNodes.length;pt++)L.childNodes[pt].nodeType===this._document.ELEMENT_NODE&&z.appendChild(L.childNodes[pt].cloneNode(!0));return z}_setSvgAttributes(L,z){return L.setAttribute("fit",""),L.setAttribute("height","100%"),L.setAttribute("width","100%"),L.setAttribute("preserveAspectRatio","xMidYMid meet"),L.setAttribute("focusable","false"),z&&z.viewBox&&L.setAttribute("viewBox",z.viewBox),L}_fetchIcon(L){const{url:z,options:Be}=L,pt=Be?.withCredentials??!1;if(!this._httpClient)throw function at(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==z)throw Error(`Cannot fetch icon from URL "${z}".`);const dt=this._sanitizer.sanitize(e.WPN.RESOURCE_URL,z);if(!dt)throw rt(z);const Vt=this._inProgressUrlFetches.get(dt);if(Vt)return Vt;const bn=this._httpClient.get(dt,{responseType:"text",withCredentials:pt}).pipe((0,Me.T)(jn=>At(jn)),(0,Ue.j)(()=>this._inProgressUrlFetches.delete(dt)),(0,yt.u)());return this._inProgressUrlFetches.set(dt,bn),bn}_addSvgIconConfig(L,z,Be){return this._svgIconConfigs.set(Wt(L,z),Be),this}_addSvgIconSetConfig(L,z){const Be=this._iconSetConfigs.get(L);return Be?Be.push(z):this._iconSetConfigs.set(L,[z]),this}_svgElementFromConfig(L){if(!L.svgElement){const z=this._svgElementFromString(L.svgText);this._setSvgAttributes(z,L.options),L.svgElement=z}return L.svgElement}_getIconConfigFromResolvers(L,z){for(let Be=0;Be<this._resolvers.length;Be++){const pt=this._resolvers[Be](z,L);if(pt)return ze(pt)?new St(pt.url,null,pt.options):new St(pt,null)}}static{this.\u0275fac=function(z){return new(z||ue)(e.KVO(bt.Qq,8),e.KVO(ft.up),e.KVO(Z.qQ,8),e.KVO(e.zcH))}}static{this.\u0275prov=e.jDH({token:ue,factory:ue.\u0275fac,providedIn:"root"})}}return ue})();function dn(ue){return ue.cloneNode(!0)}function Wt(ue,Ye){return ue+":"+Ye}function ze(ue){return!(!ue.url||!ue.options)}const be=(0,h.Zc)(class{constructor(ue){this._elementRef=ue}}),Se=new e.nKC("MAT_ICON_DEFAULT_OPTIONS"),Nt=new e.nKC("mat-icon-location",{providedIn:"root",factory:function K(){const ue=(0,e.WQX)(Z.qQ),Ye=ue?ue.location:null;return{getPathname:()=>Ye?Ye.pathname+Ye.search:""}}}),ge=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],je=ge.map(ue=>`[${ue}]`).join(", "),le=/^url\(['"]?#(.*?)['"]?\)$/;let ce=(()=>{class ue extends be{get inline(){return this._inline}set inline(L){this._inline=(0,ne.he)(L)}get svgIcon(){return this._svgIcon}set svgIcon(L){L!==this._svgIcon&&(L?this._updateSvgIcon(L):this._svgIcon&&this._clearSvgElement(),this._svgIcon=L)}get fontSet(){return this._fontSet}set fontSet(L){const z=this._cleanupFontValue(L);z!==this._fontSet&&(this._fontSet=z,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(L){const z=this._cleanupFontValue(L);z!==this._fontIcon&&(this._fontIcon=z,this._updateFontIconClasses())}constructor(L,z,Be,pt,dt,Vt){super(L),this._iconRegistry=z,this._location=pt,this._errorHandler=dt,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=Oe.yU.EMPTY,Vt&&(Vt.color&&(this.color=this.defaultColor=Vt.color),Vt.fontSet&&(this.fontSet=Vt.fontSet)),Be||L.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(L){if(!L)return["",""];const z=L.split(":");switch(z.length){case 1:return["",z[0]];case 2:return z;default:throw Error(`Invalid icon name: "${L}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const L=this._elementsWithExternalReferences;if(L&&L.size){const z=this._location.getPathname();z!==this._previousPath&&(this._previousPath=z,this._prependPathToReferences(z))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(L){this._clearSvgElement();const z=this._location.getPathname();this._previousPath=z,this._cacheChildrenWithExternalReferences(L),this._prependPathToReferences(z),this._elementRef.nativeElement.appendChild(L)}_clearSvgElement(){const L=this._elementRef.nativeElement;let z=L.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();z--;){const Be=L.childNodes[z];(1!==Be.nodeType||"svg"===Be.nodeName.toLowerCase())&&Be.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const L=this._elementRef.nativeElement,z=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Be=>Be.length>0);this._previousFontSetClass.forEach(Be=>L.classList.remove(Be)),z.forEach(Be=>L.classList.add(Be)),this._previousFontSetClass=z,this.fontIcon!==this._previousFontIconClass&&!z.includes("mat-ligature-font")&&(this._previousFontIconClass&&L.classList.remove(this._previousFontIconClass),this.fontIcon&&L.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(L){return"string"==typeof L?L.trim().split(" ")[0]:L}_prependPathToReferences(L){const z=this._elementsWithExternalReferences;z&&z.forEach((Be,pt)=>{Be.forEach(dt=>{pt.setAttribute(dt.name,`url('${L}#${dt.value}')`)})})}_cacheChildrenWithExternalReferences(L){const z=L.querySelectorAll(je),Be=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let pt=0;pt<z.length;pt++)ge.forEach(dt=>{const Vt=z[pt],bn=Vt.getAttribute(dt),jn=bn?bn.match(le):null;if(jn){let nn=Be.get(Vt);nn||(nn=[],Be.set(Vt,nn)),nn.push({name:dt,value:jn[1]})}})}_updateSvgIcon(L){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),L){const[z,Be]=this._splitIconName(L);z&&(this._svgNamespace=z),Be&&(this._svgName=Be),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Be,z).pipe((0,_t.s)(1)).subscribe(pt=>this._setSvgElement(pt),pt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${z}:${Be}! ${pt.message}`))})}}static{this.\u0275fac=function(z){return new(z||ue)(e.rXU(e.aKT),e.rXU(Mt),e.kS0("aria-hidden"),e.rXU(Nt),e.rXU(e.zcH),e.rXU(Se,8))}}static{this.\u0275cmp=e.VBU({type:ue,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(z,Be){2&z&&(e.BMQ("data-mat-icon-type",Be._usingFontIcon()?"font":"svg")("data-mat-icon-name",Be._svgName||Be.fontIcon)("data-mat-icon-namespace",Be._svgNamespace||Be.fontSet)("fontIcon",Be._usingFontIcon()?Be.fontIcon:null),e.AVh("mat-icon-inline",Be.inline)("mat-icon-no-color","primary"!==Be.color&&"accent"!==Be.color&&"warn"!==Be.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[e.Vt3],ngContentSelectors:mt,decls:1,vars:0,template:function(z,Be){1&z&&(e.NAR(),e.SdG(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}}return ue})(),Le=(()=>{class ue{static{this.\u0275fac=function(z){return new(z||ue)}}static{this.\u0275mod=e.$C({type:ue})}static{this.\u0275inj=e.G2t({imports:[h.yE,h.yE]})}}return ue})()},9115:(pn,ct,N)=>{N.d(ct,{Cn:()=>Ci,Cp:()=>oi,fb:()=>be,kk:()=>pt});var e=N(7705),h=N(6039),ne=N(4085),Z=N(7336),De=N(1413),we=N(7786),Ie=N(8359),Oe=N(7673),Ne=N(5007),Me=N(9172),Ge=N(5558),Ue=N(6697),yt=N(6977),_t=N(5964),bt=N(1986),ft=N(6600),mt=N(177),en=N(6939),vt=N(9969),At=N(8203),me=N(7987),at=N(6860),rt=N(7333);const ht=["mat-menu-item",""];function St(xt,ke){1&xt&&(e.qSk(),e.j41(0,"svg",3),e.nrm(1,"polygon",4),e.k0s())}const Mt=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],cn=["mat-icon, [matMenuItemIcon]","*"];function En(xt,ke){if(1&xt){const re=e.RV6();e.j41(0,"div",0),e.bIt("keydown",function(Ve){e.eBV(re);const ut=e.XpG();return e.Njj(ut._handleKeydown(Ve))})("click",function(){e.eBV(re);const Ve=e.XpG();return e.Njj(Ve.closed.emit("click"))})("@transformMenu.start",function(Ve){e.eBV(re);const ut=e.XpG();return e.Njj(ut._onAnimationStart(Ve))})("@transformMenu.done",function(Ve){e.eBV(re);const ut=e.XpG();return e.Njj(ut._onAnimationDone(Ve))}),e.j41(1,"div",1),e.SdG(2),e.k0s()()}if(2&xt){const re=e.XpG();e.Y8G("id",re.panelId)("ngClass",re._classList)("@transformMenu",re._panelAnimationState),e.BMQ("aria-label",re.ariaLabel||null)("aria-labelledby",re.ariaLabelledby||null)("aria-describedby",re.ariaDescribedby||null)}}const dn=["*"],Wt=new e.nKC("MAT_MENU_PANEL"),ze=(0,ft.GG)((0,ft.Ob)(class{}));let be=(()=>{class xt extends ze{constructor(re,xe,Ve,ut,Ft){super(),this._elementRef=re,this._document=xe,this._focusMonitor=Ve,this._parentMenu=ut,this._changeDetectorRef=Ft,this.role="menuitem",this._hovered=new De.B,this._focused=new De.B,this._highlighted=!1,this._triggersSubmenu=!1,ut?.addItem?.(this)}focus(re,xe){this._focusMonitor&&re?this._focusMonitor.focusVia(this._getHostElement(),re,xe):this._getHostElement().focus(xe),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(re){this.disabled&&(re.preventDefault(),re.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const re=this._elementRef.nativeElement.cloneNode(!0),xe=re.querySelectorAll("mat-icon, .material-icons");for(let Ve=0;Ve<xe.length;Ve++)xe[Ve].remove();return re.textContent?.trim()||""}_setHighlighted(re){this._highlighted=re,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(re){this._triggersSubmenu=re,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static{this.\u0275fac=function(xe){return new(xe||xt)(e.rXU(e.aKT),e.rXU(mt.qQ),e.rXU(h.FN),e.rXU(Wt,8),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:xt,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(xe,Ve){1&xe&&e.bIt("click",function(Ft){return Ve._checkDisabled(Ft)})("mouseenter",function(){return Ve._handleMouseEnter()}),2&xe&&(e.BMQ("role",Ve.role)("tabindex",Ve._getTabIndex())("aria-disabled",Ve.disabled)("disabled",Ve.disabled||null),e.AVh("mat-mdc-menu-item-highlighted",Ve._highlighted)("mat-mdc-menu-item-submenu-trigger",Ve._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[e.Vt3],attrs:ht,ngContentSelectors:cn,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true",4,"ngIf"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(xe,Ve){1&xe&&(e.NAR(Mt),e.SdG(0),e.j41(1,"span",0),e.SdG(2,1),e.k0s(),e.nrm(3,"div",1),e.DNE(4,St,2,0,"svg",2)),2&xe&&(e.R7$(3),e.Y8G("matRippleDisabled",Ve.disableRipple||Ve.disabled)("matRippleTrigger",Ve._getHostElement()),e.R7$(1),e.Y8G("ngIf",Ve._triggersSubmenu))},dependencies:[mt.bT,ft.r6],encapsulation:2,changeDetection:0})}}return xt})();const ge=new e.nKC("MatMenuContent"),ce={transformMenu:(0,vt.hZ)("transformMenu",[(0,vt.wk)("void",(0,vt.iF)({opacity:0,transform:"scale(0.8)"})),(0,vt.kY)("void => enter",(0,vt.i0)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,vt.iF)({opacity:1,transform:"scale(1)"}))),(0,vt.kY)("* => void",(0,vt.i0)("100ms 25ms linear",(0,vt.iF)({opacity:0})))]),fadeInItems:(0,vt.hZ)("fadeInItems",[(0,vt.wk)("showing",(0,vt.iF)({opacity:1})),(0,vt.kY)("void => *",[(0,vt.iF)({opacity:0}),(0,vt.i0)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ye=0;const L=new e.nKC("mat-menu-default-options",{providedIn:"root",factory:function z(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Be=(()=>{class xt{get xPosition(){return this._xPosition}set xPosition(re){this._xPosition=re,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(re){this._yPosition=re,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(re){this._overlapTrigger=(0,ne.he)(re)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(re){this._hasBackdrop=(0,ne.he)(re)}set panelClass(re){const xe=this._previousPanelClass;xe&&xe.length&&xe.split(" ").forEach(Ve=>{this._classList[Ve]=!1}),this._previousPanelClass=re,re&&re.length&&(re.split(" ").forEach(Ve=>{this._classList[Ve]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(re){this.panelClass=re}constructor(re,xe,Ve,ut){this._elementRef=re,this._ngZone=xe,this._changeDetectorRef=ut,this._directDescendantItems=new e.rOR,this._classList={},this._panelAnimationState="void",this._animationDone=new De.B,this.closed=new e.bkB,this.close=this.closed,this.panelId="mat-menu-panel-"+Ye++,this.overlayPanelClass=Ve.overlayPanelClass||"",this._xPosition=Ve.xPosition,this._yPosition=Ve.yPosition,this.backdropClass=Ve.backdropClass,this._overlapTrigger=Ve.overlapTrigger,this._hasBackdrop=Ve.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new h.Bu(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,Me.Z)(this._directDescendantItems),(0,Ge.n)(re=>(0,we.h)(...re.map(xe=>xe._focused)))).subscribe(re=>this._keyManager.updateActiveItem(re)),this._directDescendantItems.changes.subscribe(re=>{const xe=this._keyManager;if("enter"===this._panelAnimationState&&xe.activeItem?._hasFocus()){const Ve=re.toArray(),ut=Math.max(0,Math.min(Ve.length-1,xe.activeItemIndex||0));Ve[ut]&&!Ve[ut].disabled?xe.setActiveItem(ut):xe.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,Me.Z)(this._directDescendantItems),(0,Ge.n)(xe=>(0,we.h)(...xe.map(Ve=>Ve._hovered))))}addItem(re){}removeItem(re){}_handleKeydown(re){const xe=re.keyCode,Ve=this._keyManager;switch(xe){case Z._f:(0,Z.rp)(re)||(re.preventDefault(),this.closed.emit("keydown"));break;case Z.UQ:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case Z.LE:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(xe===Z.i7||xe===Z.n6)&&Ve.setFocusOrigin("keyboard"),void Ve.onKeydown(re)}re.stopPropagation()}focusFirstItem(re="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,Ue.s)(1)).subscribe(()=>{let xe=null;if(this._directDescendantItems.length&&(xe=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!xe||!xe.contains(document.activeElement)){const Ve=this._keyManager;Ve.setFocusOrigin(re).setFirstItemActive(),!Ve.activeItem&&xe&&xe.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(re){const xe=Math.min(this._baseElevation+re,24),Ve=`${this._elevationPrefix}${xe}`,ut=Object.keys(this._classList).find(Ft=>Ft.startsWith(this._elevationPrefix));(!ut||ut===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Ve]=!0,this._previousElevation=Ve)}setPositionClasses(re=this.xPosition,xe=this.yPosition){const Ve=this._classList;Ve["mat-menu-before"]="before"===re,Ve["mat-menu-after"]="after"===re,Ve["mat-menu-above"]="above"===xe,Ve["mat-menu-below"]="below"===xe,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(re){this._animationDone.next(re),this._isAnimating=!1}_onAnimationStart(re){this._isAnimating=!0,"enter"===re.toState&&0===this._keyManager.activeItemIndex&&(re.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,Me.Z)(this._allItems)).subscribe(re=>{this._directDescendantItems.reset(re.filter(xe=>xe._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static{this.\u0275fac=function(xe){return new(xe||xt)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(L),e.rXU(e.gRc))}}static{this.\u0275dir=e.FsC({type:xt,contentQueries:function(xe,Ve,ut){if(1&xe&&(e.wni(ut,ge,5),e.wni(ut,be,5),e.wni(ut,be,4)),2&xe){let Ft;e.mGM(Ft=e.lsd())&&(Ve.lazyContent=Ft.first),e.mGM(Ft=e.lsd())&&(Ve._allItems=Ft),e.mGM(Ft=e.lsd())&&(Ve.items=Ft)}},viewQuery:function(xe,Ve){if(1&xe&&e.GBs(e.C4Q,5),2&xe){let ut;e.mGM(ut=e.lsd())&&(Ve.templateRef=ut.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}})}}return xt})(),pt=(()=>{class xt extends Be{constructor(re,xe,Ve,ut){super(re,xe,Ve,ut),this._elevationPrefix="mat-elevation-z",this._baseElevation=8}static{this.\u0275fac=function(xe){return new(xe||xt)(e.rXU(e.aKT),e.rXU(e.SKi),e.rXU(L),e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:xt,selectors:[["mat-menu"]],hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(xe,Ve){2&xe&&e.BMQ("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[e.Jv_([{provide:Wt,useExisting:xt}]),e.Vt3],ngContentSelectors:dn,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(xe,Ve){1&xe&&(e.NAR(),e.DNE(0,En,3,6,"ng-template"))},dependencies:[mt.YU],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{--mat-menu-container-shape:4px;min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[ce.transformMenu,ce.fadeInItems]},changeDetection:0})}}return xt})();const dt=new e.nKC("mat-menu-scroll-strategy"),bn={provide:dt,deps:[me.hJ],useFactory:function Vt(xt){return()=>xt.scrollStrategies.reposition()}},jn=(0,at.BQ)({passive:!0});let Vn=(()=>{class xt{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(re){this.menu=re}get menu(){return this._menu}set menu(re){re!==this._menu&&(this._menu=re,this._menuCloseSubscription.unsubscribe(),re&&(this._menuCloseSubscription=re.close.subscribe(xe=>{this._destroyMenu(xe),("click"===xe||"tab"===xe)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(xe)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(re,xe,Ve,ut,Ft,sn,Ln,Qt,qt){this._overlay=re,this._element=xe,this._viewContainerRef=Ve,this._menuItemInstance=sn,this._dir=Ln,this._focusMonitor=Qt,this._ngZone=qt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Ie.yU.EMPTY,this._hoverSubscription=Ie.yU.EMPTY,this._menuCloseSubscription=Ie.yU.EMPTY,this._changeDetectorRef=(0,e.WQX)(e.gRc),this._handleTouchStart=st=>{(0,h.w6)(st)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new e.bkB,this.onMenuOpen=this.menuOpened,this.menuClosed=new e.bkB,this.onMenuClose=this.menuClosed,this._scrollStrategy=ut,this._parentMaterialMenu=Ft instanceof Be?Ft:void 0,xe.nativeElement.addEventListener("touchstart",this._handleTouchStart,jn)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,jn),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const re=this.menu;if(this._menuOpen||!re)return;const xe=this._createOverlay(re),Ve=xe.getConfig(),ut=Ve.positionStrategy;this._setPosition(re,ut),Ve.hasBackdrop=null==re.hasBackdrop?!this.triggersSubmenu():re.hasBackdrop,xe.attach(this._getPortal(re)),re.lazyContent&&re.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(re),re instanceof Be&&(re._startAnimation(),re._directDescendantItems.changes.pipe((0,yt.Q)(re.close)).subscribe(()=>{ut.withLockedPosition(!1).reapplyLastPosition(),ut.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(re,xe){this._focusMonitor&&re?this._focusMonitor.focusVia(this._element,re,xe):this._element.nativeElement.focus(xe)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(re){if(!this._overlayRef||!this.menuOpen)return;const xe=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===re||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,xe instanceof Be?(xe._resetAnimation(),xe.lazyContent?xe._animationDone.pipe((0,_t.p)(Ve=>"void"===Ve.toState),(0,Ue.s)(1),(0,yt.Q)(xe.lazyContent._attached)).subscribe({next:()=>xe.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),xe?.lazyContent?.detach())}_initMenu(re){re.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,re.direction=this.dir,this._setMenuElevation(re),re.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(re){if(re.setElevation){let xe=0,Ve=re.parentMenu;for(;Ve;)xe++,Ve=Ve.parentMenu;re.setElevation(xe)}}_setIsMenuOpen(re){re!==this._menuOpen&&(this._menuOpen=re,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(re),this._changeDetectorRef.markForCheck())}_createOverlay(re){if(!this._overlayRef){const xe=this._getOverlayConfig(re);this._subscribeToPositions(re,xe.positionStrategy),this._overlayRef=this._overlay.create(xe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(re){return new me.rR({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:re.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:re.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(re,xe){re.setPositionClasses&&xe.positionChanges.subscribe(Ve=>{const ut="start"===Ve.connectionPair.overlayX?"after":"before",Ft="top"===Ve.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>re.setPositionClasses(ut,Ft)):re.setPositionClasses(ut,Ft)})}_setPosition(re,xe){let[Ve,ut]="before"===re.xPosition?["end","start"]:["start","end"],[Ft,sn]="above"===re.yPosition?["bottom","top"]:["top","bottom"],[Ln,Qt]=[Ft,sn],[qt,st]=[Ve,ut],Dt=0;if(this.triggersSubmenu()){if(st=Ve="before"===re.xPosition?"start":"end",ut=qt="end"===Ve?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const wt=this._parentMaterialMenu.items.first;this._parentInnerPadding=wt?wt._getHostElement().offsetTop:0}Dt="bottom"===Ft?this._parentInnerPadding:-this._parentInnerPadding}}else re.overlapTrigger||(Ln="top"===Ft?"bottom":"top",Qt="top"===sn?"bottom":"top");xe.withPositions([{originX:Ve,originY:Ln,overlayX:qt,overlayY:Ft,offsetY:Dt},{originX:ut,originY:Ln,overlayX:st,overlayY:Ft,offsetY:Dt},{originX:Ve,originY:Qt,overlayX:qt,overlayY:sn,offsetY:-Dt},{originX:ut,originY:Qt,overlayX:st,overlayY:sn,offsetY:-Dt}])}_menuClosingActions(){const re=this._overlayRef.backdropClick(),xe=this._overlayRef.detachments(),Ve=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,Oe.of)(),ut=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,_t.p)(Ft=>Ft!==this._menuItemInstance),(0,_t.p)(()=>this._menuOpen)):(0,Oe.of)();return(0,we.h)(re,Ve,ut,xe)}_handleMousedown(re){(0,h._G)(re)||(this._openedBy=0===re.button?"mouse":void 0,this.triggersSubmenu()&&re.preventDefault())}_handleKeydown(re){const xe=re.keyCode;(xe===Z.Fm||xe===Z.t6)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(xe===Z.LE&&"ltr"===this.dir||xe===Z.UQ&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(re){this.triggersSubmenu()?(re.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,_t.p)(re=>re===this._menuItemInstance&&!re.disabled),(0,bt.c)(0,Ne.$)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Be&&this.menu._isAnimating?this.menu._animationDone.pipe((0,Ue.s)(1),(0,bt.c)(0,Ne.$),(0,yt.Q)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(re){return(!this._portal||this._portal.templateRef!==re.templateRef)&&(this._portal=new en.VA(re.templateRef,this._viewContainerRef)),this._portal}static{this.\u0275fac=function(xe){return new(xe||xt)(e.rXU(me.hJ),e.rXU(e.aKT),e.rXU(e.c1b),e.rXU(dt),e.rXU(Wt,8),e.rXU(be,10),e.rXU(At.dS,8),e.rXU(h.FN),e.rXU(e.SKi))}}static{this.\u0275dir=e.FsC({type:xt,hostVars:3,hostBindings:function(xe,Ve){1&xe&&e.bIt("click",function(Ft){return Ve._handleClick(Ft)})("mousedown",function(Ft){return Ve._handleMousedown(Ft)})("keydown",function(Ft){return Ve._handleKeydown(Ft)}),2&xe&&e.BMQ("aria-haspopup",Ve.menu?"menu":null)("aria-expanded",Ve.menuOpen)("aria-controls",Ve.menuOpen?Ve.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}})}}return xt})(),oi=(()=>{class xt extends Vn{static{this.\u0275fac=function(){let re;return function(Ve){return(re||(re=e.xGo(xt)))(Ve||xt)}}()}static{this.\u0275dir=e.FsC({type:xt,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],exportAs:["matMenuTrigger"],features:[e.Vt3]})}}return xt})(),Ci=(()=>{class xt{static{this.\u0275fac=function(xe){return new(xe||xt)}}static{this.\u0275mod=e.$C({type:xt})}static{this.\u0275inj=e.G2t({providers:[bn],imports:[mt.MD,ft.pZ,ft.yE,me.z_,rt.Gj,ft.yE]})}}return xt})()},3881:(pn,ct,N)=>{N.d(ct,{Ez:()=>be,IV:()=>St,OU:()=>Wt});var e=N(8203),h=N(4085),ne=N(6860),Z=N(7705),De=N(6600),we=N(177),Ie=N(9417),Oe=N(1413);const Ne=["knob"],Me=["valueIndicatorContainer"];function Ge(Se,Nt){if(1&Se&&(Z.j41(0,"div",4,5)(2,"div",6)(3,"span",7),Z.EFF(4),Z.k0s()()()),2&Se){const K=Z.XpG();Z.R7$(4),Z.JRh(K.valueIndicatorText)}}const Ue=["trackActive"];function yt(Se,Nt){if(1&Se&&Z.nrm(0,"div"),2&Se){const K=Nt.$implicit,ge=Nt.index,je=Z.XpG(3);Z.HbH(0===K?"mdc-slider__tick-mark--active":"mdc-slider__tick-mark--inactive"),Z.xc7("transform",je._calcTickMarkTransform(ge))}}function _t(Se,Nt){if(1&Se&&(Z.qex(0),Z.DNE(1,yt,1,4,"div",11),Z.bVm()),2&Se){const K=Z.XpG(2);Z.R7$(1),Z.Y8G("ngForOf",K._tickMarks)}}function bt(Se,Nt){if(1&Se&&(Z.j41(0,"div",8,9),Z.DNE(2,_t,2,1,"ng-container",10),Z.k0s()),2&Se){const K=Z.XpG();Z.R7$(2),Z.Y8G("ngIf",K._cachedWidth)}}function ft(Se,Nt){if(1&Se&&Z.nrm(0,"mat-slider-visual-thumb",7),2&Se){const K=Z.XpG();Z.Y8G("discrete",K.discrete)("thumbPosition",1)("valueIndicatorText",K.startValueIndicatorText)}}const mt=["*"],en=new Z.nKC("_MatSlider"),vt=new Z.nKC("_MatSliderThumb"),At=new Z.nKC("_MatSliderRangeThumb"),me=new Z.nKC("_MatSliderVisualThumb");let rt=(()=>{class Se{constructor(K,ge,je,le){this._cdr=K,this._ngZone=ge,this._slider=le,this._isHovered=!1,this._isActive=!1,this._isValueIndicatorVisible=!1,this._onPointerMove=ce=>{if(this._sliderInput._isFocused)return;const Le=this._hostElement.getBoundingClientRect(),ue=this._slider._isCursorOnSliderThumb(ce,Le);this._isHovered=ue,ue?this._showHoverRipple():this._hideRipple(this._hoverRippleRef)},this._onMouseLeave=()=>{this._isHovered=!1,this._hideRipple(this._hoverRippleRef)},this._onFocus=()=>{this._hideRipple(this._hoverRippleRef),this._showFocusRipple(),this._hostElement.classList.add("mdc-slider__thumb--focused")},this._onBlur=()=>{this._isActive||this._hideRipple(this._focusRippleRef),this._isHovered&&this._showHoverRipple(),this._hostElement.classList.remove("mdc-slider__thumb--focused")},this._onDragStart=ce=>{0===ce.button&&(this._isActive=!0,this._showActiveRipple())},this._onDragEnd=()=>{this._isActive=!1,this._hideRipple(this._activeRippleRef),this._sliderInput._isFocused||this._hideRipple(this._focusRippleRef)},this._hostElement=je.nativeElement}ngAfterViewInit(){this._ripple.radius=24,this._sliderInput=this._slider._getInput(this.thumbPosition),this._sliderInputEl=this._sliderInput._hostElement;const K=this._sliderInputEl;this._ngZone.runOutsideAngular(()=>{K.addEventListener("pointermove",this._onPointerMove),K.addEventListener("pointerdown",this._onDragStart),K.addEventListener("pointerup",this._onDragEnd),K.addEventListener("pointerleave",this._onMouseLeave),K.addEventListener("focus",this._onFocus),K.addEventListener("blur",this._onBlur)})}ngOnDestroy(){const K=this._sliderInputEl;K.removeEventListener("pointermove",this._onPointerMove),K.removeEventListener("pointerdown",this._onDragStart),K.removeEventListener("pointerup",this._onDragEnd),K.removeEventListener("pointerleave",this._onMouseLeave),K.removeEventListener("focus",this._onFocus),K.removeEventListener("blur",this._onBlur)}_showHoverRipple(){this._isShowingRipple(this._hoverRippleRef)||(this._hoverRippleRef=this._showRipple({enterDuration:0,exitDuration:0}),this._hoverRippleRef?.element.classList.add("mat-mdc-slider-hover-ripple"))}_showFocusRipple(){this._isShowingRipple(this._focusRippleRef)||(this._focusRippleRef=this._showRipple({enterDuration:0,exitDuration:0},!0),this._focusRippleRef?.element.classList.add("mat-mdc-slider-focus-ripple"))}_showActiveRipple(){this._isShowingRipple(this._activeRippleRef)||(this._activeRippleRef=this._showRipple({enterDuration:225,exitDuration:400}),this._activeRippleRef?.element.classList.add("mat-mdc-slider-active-ripple"))}_isShowingRipple(K){return 0===K?.state||1===K?.state}_showRipple(K,ge){if(!this._slider.disabled&&(this._showValueIndicator(),this._slider._isRange&&this._slider._getThumb(1===this.thumbPosition?2:1)._showValueIndicator(),!this._slider._globalRippleOptions?.disabled||ge))return this._ripple.launch({animation:this._slider._noopAnimations?{enterDuration:0,exitDuration:0}:K,centered:!0,persistent:!0})}_hideRipple(K){if(K?.fadeOut(),this._isShowingAnyRipple())return;this._slider._isRange||this._hideValueIndicator();const ge=this._getSibling();ge._isShowingAnyRipple()||(this._hideValueIndicator(),ge._hideValueIndicator())}_showValueIndicator(){this._hostElement.classList.add("mdc-slider__thumb--with-indicator")}_hideValueIndicator(){this._hostElement.classList.remove("mdc-slider__thumb--with-indicator")}_getSibling(){return this._slider._getThumb(1===this.thumbPosition?2:1)}_getValueIndicatorContainer(){return this._valueIndicatorContainer?.nativeElement}_getKnob(){return this._knob.nativeElement}_isShowingAnyRipple(){return this._isShowingRipple(this._hoverRippleRef)||this._isShowingRipple(this._focusRippleRef)||this._isShowingRipple(this._activeRippleRef)}static{this.\u0275fac=function(ge){return new(ge||Se)(Z.rXU(Z.gRc),Z.rXU(Z.SKi),Z.rXU(Z.aKT),Z.rXU(en))}}static{this.\u0275cmp=Z.VBU({type:Se,selectors:[["mat-slider-visual-thumb"]],viewQuery:function(ge,je){if(1&ge&&(Z.GBs(De.r6,5),Z.GBs(Ne,5),Z.GBs(Me,5)),2&ge){let le;Z.mGM(le=Z.lsd())&&(je._ripple=le.first),Z.mGM(le=Z.lsd())&&(je._knob=le.first),Z.mGM(le=Z.lsd())&&(je._valueIndicatorContainer=le.first)}},hostAttrs:[1,"mdc-slider__thumb","mat-mdc-slider-visual-thumb"],inputs:{discrete:"discrete",thumbPosition:"thumbPosition",valueIndicatorText:"valueIndicatorText"},features:[Z.Jv_([{provide:me,useExisting:Se}])],decls:4,vars:2,consts:[["class","mdc-slider__value-indicator-container",4,"ngIf"],[1,"mdc-slider__thumb-knob"],["knob",""],["matRipple","",1,"mat-mdc-focus-indicator",3,"matRippleDisabled"],[1,"mdc-slider__value-indicator-container"],["valueIndicatorContainer",""],[1,"mdc-slider__value-indicator"],[1,"mdc-slider__value-indicator-text"]],template:function(ge,je){1&ge&&(Z.DNE(0,Ge,5,1,"div",0),Z.nrm(1,"div",1,2)(3,"div",3)),2&ge&&(Z.Y8G("ngIf",je.discrete),Z.R7$(3),Z.Y8G("matRippleDisabled",!0))},dependencies:[we.bT,De.r6],styles:[".mat-mdc-slider-visual-thumb .mat-ripple{height:100%;width:100%}.mat-mdc-slider .mdc-slider__tick-marks{justify-content:start}.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-marks .mdc-slider__tick-mark--inactive{position:absolute;left:2px}"],encapsulation:2,changeDetection:0})}}return Se})();const ht=(0,De.Zc)((0,De.GG)(class{constructor(Se){this._elementRef=Se}}),"primary");let St=(()=>{class Se extends ht{get disabled(){return this._disabled}set disabled(K){this._disabled=(0,h.he)(K);const ge=this._getInput(2),je=this._getInput(1);ge&&(ge.disabled=this._disabled),je&&(je.disabled=this._disabled)}get discrete(){return this._discrete}set discrete(K){this._discrete=(0,h.he)(K),this._updateValueIndicatorUIs()}get showTickMarks(){return this._showTickMarks}set showTickMarks(K){this._showTickMarks=(0,h.he)(K)}get min(){return this._min}set min(K){const ge=(0,h.OE)(K,this._min);this._min!==ge&&this._updateMin(ge)}_updateMin(K){const ge=this._min;this._min=K,this._isRange?this._updateMinRange({old:ge,new:K}):this._updateMinNonRange(K),this._onMinMaxOrStepChange()}_updateMinRange(K){const ge=this._getInput(2),je=this._getInput(1),le=ge.value,ce=je.value;je.min=K.new,ge.min=Math.max(K.new,je.value),je.max=Math.min(ge.max,ge.value),je._updateWidthInactive(),ge._updateWidthInactive(),K.new<K.old?this._onTranslateXChangeBySideEffect(ge,je):this._onTranslateXChangeBySideEffect(je,ge),le!==ge.value&&this._onValueChange(ge),ce!==je.value&&this._onValueChange(je)}_updateMinNonRange(K){const ge=this._getInput(2);if(ge){const je=ge.value;ge.min=K,ge._updateThumbUIByValue(),this._updateTrackUI(ge),je!==ge.value&&this._onValueChange(ge)}}get max(){return this._max}set max(K){const ge=(0,h.OE)(K,this._max);this._max!==ge&&this._updateMax(ge)}_updateMax(K){const ge=this._max;this._max=K,this._isRange?this._updateMaxRange({old:ge,new:K}):this._updateMaxNonRange(K),this._onMinMaxOrStepChange()}_updateMaxRange(K){const ge=this._getInput(2),je=this._getInput(1),le=ge.value,ce=je.value;ge.max=K.new,je.max=Math.min(K.new,ge.value),ge.min=je.value,ge._updateWidthInactive(),je._updateWidthInactive(),K.new>K.old?this._onTranslateXChangeBySideEffect(je,ge):this._onTranslateXChangeBySideEffect(ge,je),le!==ge.value&&this._onValueChange(ge),ce!==je.value&&this._onValueChange(je)}_updateMaxNonRange(K){const ge=this._getInput(2);if(ge){const je=ge.value;ge.max=K,ge._updateThumbUIByValue(),this._updateTrackUI(ge),je!==ge.value&&this._onValueChange(ge)}}get step(){return this._step}set step(K){const ge=(0,h.OE)(K,this._step);this._step!==ge&&this._updateStep(ge)}_updateStep(K){this._step=K,this._isRange?this._updateStepRange():this._updateStepNonRange(),this._onMinMaxOrStepChange()}_updateStepRange(){const K=this._getInput(2),ge=this._getInput(1),je=K.value,le=ge.value,ce=ge.value;K.min=this._min,ge.max=this._max,K.step=this._step,ge.step=this._step,this._platform.SAFARI&&(K.value=K.value,ge.value=ge.value),K.min=Math.max(this._min,ge.value),ge.max=Math.min(this._max,K.value),ge._updateWidthInactive(),K._updateWidthInactive(),K.value<ce?this._onTranslateXChangeBySideEffect(ge,K):this._onTranslateXChangeBySideEffect(K,ge),je!==K.value&&this._onValueChange(K),le!==ge.value&&this._onValueChange(ge)}_updateStepNonRange(){const K=this._getInput(2);if(K){const ge=K.value;K.step=this._step,this._platform.SAFARI&&(K.value=K.value),K._updateThumbUIByValue(),ge!==K.value&&this._onValueChange(K)}}constructor(K,ge,je,le,ce,Le){super(je),this._ngZone=K,this._cdr=ge,this._dir=le,this._globalRippleOptions=ce,this._disabled=!1,this._discrete=!1,this._showTickMarks=!1,this._min=0,this._max=100,this._step=1,this.displayWith=ue=>`${ue}`,this._rippleRadius=24,this.startValueIndicatorText="",this.endValueIndicatorText="",this._isRange=!1,this._isRtl=!1,this._hasViewInitialized=!1,this._tickMarkTrackWidth=0,this._hasAnimation=!1,this._resizeTimer=null,this._platform=(0,Z.WQX)(ne.OD),this._knobRadius=8,this._thumbsOverlap=!1,this._noopAnimations="NoopAnimations"===Le,this._dirChangeSubscription=this._dir.change.subscribe(()=>this._onDirChange()),this._isRtl="rtl"===this._dir.value}ngAfterViewInit(){this._platform.isBrowser&&this._updateDimensions();const K=this._getInput(2),ge=this._getInput(1);this._isRange=!!K&&!!ge,this._cdr.detectChanges();const je=this._getThumb(2);this._rippleRadius=je._ripple.radius,this._inputPadding=this._rippleRadius-this._knobRadius,this._inputOffset=this._knobRadius,this._isRange?this._initUIRange(K,ge):this._initUINonRange(K),this._updateTrackUI(K),this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._observeHostResize(),this._cdr.detectChanges()}_initUINonRange(K){K.initProps(),K.initUI(),this._updateValueIndicatorUI(K),this._hasViewInitialized=!0,K._updateThumbUIByValue()}_initUIRange(K,ge){K.initProps(),K.initUI(),ge.initProps(),ge.initUI(),K._updateMinMax(),ge._updateMinMax(),K._updateStaticStyles(),ge._updateStaticStyles(),this._updateValueIndicatorUIs(),this._hasViewInitialized=!0,K._updateThumbUIByValue(),ge._updateThumbUIByValue()}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._resizeObserver?.disconnect(),this._resizeObserver=null}_onDirChange(){this._isRtl="rtl"===this._dir.value,this._isRange?this._onDirChangeRange():this._onDirChangeNonRange(),this._updateTickMarkUI()}_onDirChangeRange(){const K=this._getInput(2),ge=this._getInput(1);K._setIsLeftThumb(),ge._setIsLeftThumb(),K.translateX=K._calcTranslateXByValue(),ge.translateX=ge._calcTranslateXByValue(),K._updateStaticStyles(),ge._updateStaticStyles(),K._updateWidthInactive(),ge._updateWidthInactive(),K._updateThumbUIByValue(),ge._updateThumbUIByValue()}_onDirChangeNonRange(){this._getInput(2)._updateThumbUIByValue()}_observeHostResize(){typeof ResizeObserver>"u"||!ResizeObserver||this._ngZone.runOutsideAngular(()=>{this._resizeObserver=new ResizeObserver(()=>{this._isActive()||(this._resizeTimer&&clearTimeout(this._resizeTimer),this._onResize())}),this._resizeObserver.observe(this._elementRef.nativeElement)})}_isActive(){return this._getThumb(1)._isActive||this._getThumb(2)._isActive}_getValue(K=2){const ge=this._getInput(K);return ge?ge.value:this.min}_skipUpdate(){return!(!this._getInput(1)?._skipUIUpdate&&!this._getInput(2)?._skipUIUpdate)}_updateDimensions(){this._cachedWidth=this._elementRef.nativeElement.offsetWidth,this._cachedLeft=this._elementRef.nativeElement.getBoundingClientRect().left}_setTrackActiveStyles(K){const ge=this._trackActive.nativeElement.style;ge.left=K.left,ge.right=K.right,ge.transformOrigin=K.transformOrigin,ge.transform=K.transform}_calcTickMarkTransform(K){return`translateX(${K*(this._tickMarkTrackWidth/(this._tickMarks.length-1))}px`}_onTranslateXChange(K){this._hasViewInitialized&&(this._updateThumbUI(K),this._updateTrackUI(K),this._updateOverlappingThumbUI(K))}_onTranslateXChangeBySideEffect(K,ge){this._hasViewInitialized&&(K._updateThumbUIByValue(),ge._updateThumbUIByValue())}_onValueChange(K){this._hasViewInitialized&&(this._updateValueIndicatorUI(K),this._updateTickMarkUI(),this._cdr.detectChanges())}_onMinMaxOrStepChange(){this._hasViewInitialized&&(this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.markForCheck())}_onResize(){if(this._hasViewInitialized){if(this._updateDimensions(),this._isRange){const K=this._getInput(2),ge=this._getInput(1);K._updateThumbUIByValue(),ge._updateThumbUIByValue(),K._updateStaticStyles(),ge._updateStaticStyles(),K._updateMinMax(),ge._updateMinMax(),K._updateWidthInactive(),ge._updateWidthInactive()}else{const K=this._getInput(2);K&&K._updateThumbUIByValue()}this._updateTickMarkUI(),this._updateTickMarkTrackUI(),this._cdr.detectChanges()}}_areThumbsOverlapping(){const K=this._getInput(1),ge=this._getInput(2);return!(!K||!ge)&&ge.translateX-K.translateX<20}_updateOverlappingThumbClassNames(K){const ge=K.getSibling(),je=this._getThumb(K.thumbPosition);this._getThumb(ge.thumbPosition)._hostElement.classList.remove("mdc-slider__thumb--top"),je._hostElement.classList.toggle("mdc-slider__thumb--top",this._thumbsOverlap)}_updateOverlappingThumbUI(K){!this._isRange||this._skipUpdate()||this._thumbsOverlap!==this._areThumbsOverlapping()&&(this._thumbsOverlap=!this._thumbsOverlap,this._updateOverlappingThumbClassNames(K))}_updateThumbUI(K){this._skipUpdate()||(this._getThumb(2===K.thumbPosition?2:1)._hostElement.style.transform=`translateX(${K.translateX}px)`)}_updateValueIndicatorUI(K){if(this._skipUpdate())return;const ge=this.displayWith(K.value);if(this._hasViewInitialized?K._valuetext=ge:K._hostElement.setAttribute("aria-valuetext",ge),this.discrete){1===K.thumbPosition?this.startValueIndicatorText=ge:this.endValueIndicatorText=ge;const je=this._getThumb(K.thumbPosition);ge.length<3?je._hostElement.classList.add("mdc-slider__thumb--short-value"):je._hostElement.classList.remove("mdc-slider__thumb--short-value")}}_updateValueIndicatorUIs(){const K=this._getInput(2),ge=this._getInput(1);K&&this._updateValueIndicatorUI(K),ge&&this._updateValueIndicatorUI(ge)}_updateTickMarkTrackUI(){if(!this.showTickMarks||this._skipUpdate())return;const K=this._step&&this._step>0?this._step:1,je=(Math.floor(this.max/K)*K-this.min)/(this.max-this.min);this._tickMarkTrackWidth=this._cachedWidth*je-6}_updateTrackUI(K){this._skipUpdate()||(this._isRange?this._updateTrackUIRange(K):this._updateTrackUINonRange(K))}_updateTrackUIRange(K){const ge=K.getSibling();if(!ge||!this._cachedWidth)return;const je=Math.abs(ge.translateX-K.translateX)/this._cachedWidth;this._setTrackActiveStyles(K._isLeftThumb&&this._cachedWidth?{left:"auto",right:this._cachedWidth-ge.translateX+"px",transformOrigin:"right",transform:`scaleX(${je})`}:{left:`${ge.translateX}px`,right:"auto",transformOrigin:"left",transform:`scaleX(${je})`})}_updateTrackUINonRange(K){this._setTrackActiveStyles(this._isRtl?{left:"auto",right:"0px",transformOrigin:"right",transform:`scaleX(${1-K.fillPercentage})`}:{left:"0px",right:"auto",transformOrigin:"left",transform:`scaleX(${K.fillPercentage})`})}_updateTickMarkUI(){if(!this.showTickMarks||void 0===this.step||void 0===this.min||void 0===this.max)return;const K=this.step>0?this.step:1;this._isRange?this._updateTickMarkUIRange(K):this._updateTickMarkUINonRange(K),this._isRtl&&this._tickMarks.reverse()}_updateTickMarkUINonRange(K){const ge=this._getValue();let je=Math.max(Math.round((ge-this.min)/K),0),le=Math.max(Math.round((this.max-ge)/K),0);this._isRtl?je++:le++,this._tickMarks=Array(je).fill(0).concat(Array(le).fill(1))}_updateTickMarkUIRange(K){const ge=this._getValue(),je=this._getValue(1),le=Math.max(Math.floor((je-this.min)/K),0),ce=Math.max(Math.floor((ge-je)/K)+1,0),Le=Math.max(Math.floor((this.max-ge)/K),0);this._tickMarks=Array(le).fill(1).concat(Array(ce).fill(0),Array(Le).fill(1))}_getInput(K){return 2===K&&this._input?this._input:this._inputs?.length?1===K?this._inputs.first:this._inputs.last:void 0}_getThumb(K){return 2===K?this._thumbs?.last:this._thumbs?.first}_setTransition(K){this._hasAnimation=!this._platform.IOS&&K&&!this._noopAnimations,this._elementRef.nativeElement.classList.toggle("mat-mdc-slider-with-animation",this._hasAnimation)}_isCursorOnSliderThumb(K,ge){const je=ge.width/2,ue=K.clientY-(ge.y+je);return Math.pow(K.clientX-(ge.x+je),2)+Math.pow(ue,2)<Math.pow(je,2)}static{this.\u0275fac=function(ge){return new(ge||Se)(Z.rXU(Z.SKi),Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(e.dS,8),Z.rXU(De.$E,8),Z.rXU(Z.bc$,8))}}static{this.\u0275cmp=Z.VBU({type:Se,selectors:[["mat-slider"]],contentQueries:function(ge,je,le){if(1&ge&&(Z.wni(le,vt,5),Z.wni(le,At,4)),2&ge){let ce;Z.mGM(ce=Z.lsd())&&(je._input=ce.first),Z.mGM(ce=Z.lsd())&&(je._inputs=ce)}},viewQuery:function(ge,je){if(1&ge&&(Z.GBs(Ue,5),Z.GBs(me,5)),2&ge){let le;Z.mGM(le=Z.lsd())&&(je._trackActive=le.first),Z.mGM(le=Z.lsd())&&(je._thumbs=le)}},hostAttrs:[1,"mat-mdc-slider","mdc-slider"],hostVars:10,hostBindings:function(ge,je){2&ge&&Z.AVh("mdc-slider--range",je._isRange)("mdc-slider--disabled",je.disabled)("mdc-slider--discrete",je.discrete)("mdc-slider--tick-marks",je.showTickMarks)("_mat-animation-noopable",je._noopAnimations)},inputs:{color:"color",disableRipple:"disableRipple",disabled:"disabled",discrete:"discrete",showTickMarks:"showTickMarks",min:"min",max:"max",step:"step",displayWith:"displayWith"},exportAs:["matSlider"],features:[Z.Jv_([{provide:en,useExisting:Se}]),Z.Vt3],ngContentSelectors:mt,decls:9,vars:5,consts:[[1,"mdc-slider__track"],[1,"mdc-slider__track--inactive"],[1,"mdc-slider__track--active"],[1,"mdc-slider__track--active_fill"],["trackActive",""],["class","mdc-slider__tick-marks",4,"ngIf"],[3,"discrete","thumbPosition","valueIndicatorText",4,"ngIf"],[3,"discrete","thumbPosition","valueIndicatorText"],[1,"mdc-slider__tick-marks"],["tickMarkContainer",""],[4,"ngIf"],[3,"class","transform",4,"ngFor","ngForOf"]],template:function(ge,je){1&ge&&(Z.NAR(),Z.SdG(0),Z.j41(1,"div",0),Z.nrm(2,"div",1),Z.j41(3,"div",2),Z.nrm(4,"div",3,4),Z.k0s(),Z.DNE(6,bt,3,1,"div",5),Z.k0s(),Z.DNE(7,ft,1,3,"mat-slider-visual-thumb",6),Z.nrm(8,"mat-slider-visual-thumb",7)),2&ge&&(Z.R7$(6),Z.Y8G("ngIf",je.showTickMarks),Z.R7$(1),Z.Y8G("ngIf",je._isRange),Z.R7$(1),Z.Y8G("discrete",je.discrete)("thumbPosition",2)("valueIndicatorText",je.endValueIndicatorText))},dependencies:[we.Sq,we.bT,rt],styles:['.mdc-slider{cursor:pointer;height:48px;margin:0 24px;position:relative;touch-action:pan-y}.mdc-slider .mdc-slider__track{position:absolute;top:50%;transform:translateY(-50%);width:100%}.mdc-slider .mdc-slider__track--active,.mdc-slider .mdc-slider__track--inactive{display:flex;height:100%;position:absolute;width:100%}.mdc-slider .mdc-slider__track--active{overflow:hidden}.mdc-slider .mdc-slider__track--active_fill{border-top-style:solid;box-sizing:border-box;height:100%;width:100%;position:relative;-webkit-transform-origin:left;transform-origin:left}[dir=rtl] .mdc-slider .mdc-slider__track--active_fill,.mdc-slider .mdc-slider__track--active_fill[dir=rtl]{-webkit-transform-origin:right;transform-origin:right}.mdc-slider .mdc-slider__track--inactive{left:0;top:0}.mdc-slider .mdc-slider__track--inactive::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__track--inactive::before{border-color:CanvasText}}.mdc-slider .mdc-slider__value-indicator-container{bottom:44px;left:var(--slider-value-indicator-container-left, 50%);pointer-events:none;position:absolute;right:var(--slider-value-indicator-container-right);transform:var(--slider-value-indicator-container-transform, translateX(-50%))}.mdc-slider .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0.4, 0, 1, 1);align-items:center;border-radius:4px;display:flex;height:32px;padding:0 12px;transform:scale(0);transform-origin:bottom}.mdc-slider .mdc-slider__value-indicator::before{border-left:6px solid rgba(0,0,0,0);border-right:6px solid rgba(0,0,0,0);border-top:6px solid;bottom:-5px;content:"";height:0;left:var(--slider-value-indicator-caret-left, 50%);position:absolute;right:var(--slider-value-indicator-caret-right);transform:var(--slider-value-indicator-caret-transform, translateX(-50%));width:0}.mdc-slider .mdc-slider__value-indicator::after{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-slider .mdc-slider__value-indicator::after{border-color:CanvasText}}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator-container{pointer-events:auto}.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:transform 100ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale(1)}@media(prefers-reduced-motion){.mdc-slider .mdc-slider__value-indicator,.mdc-slider .mdc-slider__thumb--with-indicator .mdc-slider__value-indicator{transition:none}}.mdc-slider .mdc-slider__thumb{display:flex;left:-24px;outline:none;position:absolute;user-select:none;height:48px;width:48px}.mdc-slider .mdc-slider__thumb--top{z-index:1}.mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-style:solid;border-width:1px;box-sizing:content-box}.mdc-slider .mdc-slider__thumb-knob{box-sizing:border-box;left:50%;position:absolute;top:50%;transform:translate(-50%, -50%)}.mdc-slider .mdc-slider__tick-marks{align-items:center;box-sizing:border-box;display:flex;height:100%;justify-content:space-between;padding:0 1px;position:absolute;width:100%}.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:transform 80ms ease}@media(prefers-reduced-motion){.mdc-slider--discrete .mdc-slider__thumb,.mdc-slider--discrete .mdc-slider__track--active_fill{transition:none}}.mdc-slider--disabled{cursor:auto}.mdc-slider--disabled .mdc-slider__thumb{pointer-events:none}.mdc-slider__input{cursor:pointer;left:2px;margin:0;height:44px;opacity:0;pointer-events:none;position:absolute;top:2px;width:44px}.mat-mdc-slider{display:inline-block;box-sizing:border-box;outline:none;vertical-align:middle;margin-left:8px;margin-right:8px;width:auto;min-width:112px;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-slider .mdc-slider__thumb-knob{background-color:var(--mdc-slider-handle-color, var(--mdc-theme-primary, #6200ee));border-color:var(--mdc-slider-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb-knob{background-color:var(--mdc-slider-disabled-handle-color, var(--mdc-theme-on-surface, #000));border-color:var(--mdc-slider-disabled-handle-color, var(--mdc-theme-on-surface, #000))}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider.mdc-slider--disabled .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb::before,.mat-mdc-slider .mdc-slider__thumb::after{background-color:var(--mdc-slider-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb:hover::before,.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-surface--hover::before{opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded--background-focused::before,.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mat-mdc-slider .mdc-slider__thumb:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mat-mdc-slider .mdc-slider__thumb.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mat-mdc-slider .mdc-slider__track--active_fill{border-color:var(--mdc-slider-active-track-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--active_fill{border-color:var(--mdc-slider-disabled-active-track-color, var(--mdc-theme-on-surface, #000))}.mat-mdc-slider .mdc-slider__track--inactive{background-color:var(--mdc-slider-inactive-track-color, var(--mdc-theme-primary, #6200ee));opacity:.24}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__track--inactive{background-color:var(--mdc-slider-disabled-inactive-track-color, var(--mdc-theme-on-surface, #000));opacity:.24}.mat-mdc-slider .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color, var(--mdc-theme-on-primary, #fff));opacity:var(--mdc-slider-with-tick-marks-active-container-opacity, 0.6)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--active{background-color:var(--mdc-slider-with-tick-marks-active-container-color, var(--mdc-theme-on-primary, #fff));opacity:var(--mdc-slider-with-tick-marks-active-container-opacity, 0.6)}.mat-mdc-slider .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-inactive-container-color, var(--mdc-theme-primary, #6200ee));opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.6)}.mat-mdc-slider.mdc-slider--disabled .mdc-slider__tick-mark--inactive{background-color:var(--mdc-slider-with-tick-marks-disabled-container-color, var(--mdc-theme-on-surface, #000));opacity:var(--mdc-slider-with-tick-marks-inactive-container-opacity, 0.6)}.mat-mdc-slider .mdc-slider__value-indicator{background-color:var(--mdc-slider-label-container-color, #666666);opacity:1}.mat-mdc-slider .mdc-slider__value-indicator::before{border-top-color:var(--mdc-slider-label-container-color, #666666)}.mat-mdc-slider .mdc-slider__value-indicator{color:var(--mdc-slider-label-label-text-color, var(--mdc-theme-on-primary, #fff))}.mat-mdc-slider .mdc-slider__track{height:var(--mdc-slider-inactive-track-height, 4px)}.mat-mdc-slider .mdc-slider__track--active{height:var(--mdc-slider-active-track-height, 6px);top:calc((var(--mdc-slider-inactive-track-height, 4px) - var(--mdc-slider-active-track-height, 6px)) / 2)}.mat-mdc-slider .mdc-slider__track--active_fill{border-top-width:var(--mdc-slider-active-track-height, 6px)}.mat-mdc-slider .mdc-slider__track--inactive{height:var(--mdc-slider-inactive-track-height, 4px)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{height:var(--mdc-slider-with-tick-marks-container-size, 2px);width:var(--mdc-slider-with-tick-marks-container-size, 2px)}.mat-mdc-slider.mdc-slider--disabled{opacity:0.38}.mat-mdc-slider .mdc-slider__value-indicator-text{letter-spacing:var(--mdc-slider-label-label-text-tracking, 0.0071428571em);font-size:var(--mdc-slider-label-label-text-size, 0.875rem);font-family:var(--mdc-slider-label-label-text-font, Roboto, sans-serif);font-weight:var(--mdc-slider-label-label-text-weight, 500);line-height:var(--mdc-slider-label-label-text-line-height, 1.375rem)}.mat-mdc-slider .mdc-slider__track--active{border-radius:var(--mdc-slider-active-track-shape, 9999px)}.mat-mdc-slider .mdc-slider__track--inactive{border-radius:var(--mdc-slider-inactive-track-shape, 9999px)}.mat-mdc-slider .mdc-slider__thumb-knob{border-radius:var(--mdc-slider-handle-shape, 50%);width:var(--mdc-slider-handle-width, 20px);height:var(--mdc-slider-handle-height, 20px);border-style:solid;border-width:calc(var(--mdc-slider-handle-height, 20px) / 2) calc(var(--mdc-slider-handle-width, 20px) / 2)}.mat-mdc-slider .mdc-slider__tick-mark--active,.mat-mdc-slider .mdc-slider__tick-mark--inactive{border-radius:var(--mdc-slider-with-tick-marks-container-shape, 50%)}.mat-mdc-slider .mdc-slider__thumb-knob{box-shadow:var(--mdc-slider-handle-elevation, 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb-knob{background-color:var(--mdc-slider-hover-handle-color, var(--mdc-theme-primary, #6200ee));border-color:var(--mdc-slider-hover-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:hover .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb-knob{background-color:var(--mdc-slider-focus-handle-color, var(--mdc-theme-primary, #6200ee));border-color:var(--mdc-slider-focus-handle-color, var(--mdc-theme-primary, #6200ee))}.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--focused .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb:not(:disabled):active .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:#fff}.mat-mdc-slider .mdc-slider__thumb--top .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb:hover .mdc-slider__thumb-knob,.mat-mdc-slider .mdc-slider__thumb--top.mdc-slider__thumb--focused .mdc-slider__thumb-knob{border-color:var(--mdc-slider-with-overlap-handle-outline-color, #fff);border-width:var(--mdc-slider-with-overlap-handle-outline-width, 1px)}.mat-mdc-slider .mdc-slider__input{box-sizing:content-box;pointer-events:auto}.mat-mdc-slider .mdc-slider__input.mat-mdc-slider-input-no-pointer-events{pointer-events:none}.mat-mdc-slider .mdc-slider__input.mat-slider__right-input{left:auto;right:0}.mat-mdc-slider .mdc-slider__thumb,.mat-mdc-slider .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider.mdc-slider--discrete .mdc-slider__track--active_fill{transition-duration:0ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__thumb,.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__track--active_fill{transition-duration:80ms}.mat-mdc-slider.mat-mdc-slider-with-animation .mdc-slider__value-indicator{word-break:normal}.mat-mdc-slider .mdc-slider__track,.mat-mdc-slider .mdc-slider__thumb{pointer-events:none}.mat-mdc-slider .mdc-slider__value-indicator{opacity:var(--mat-mdc-slider-value-indicator-opacity, 1)}.mat-mdc-slider .mat-ripple .mat-ripple-element{background-color:var(--mat-mdc-slider-ripple-color, transparent)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-hover-ripple{background-color:var(--mat-mdc-slider-hover-ripple-color, transparent)}.mat-mdc-slider .mat-ripple .mat-mdc-slider-focus-ripple,.mat-mdc-slider .mat-ripple .mat-mdc-slider-active-ripple{background-color:var(--mat-mdc-slider-focus-ripple-color, transparent)}.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__thumb,.mat-mdc-slider._mat-animation-noopable.mdc-slider--discrete .mdc-slider__track--active_fill,.mat-mdc-slider._mat-animation-noopable .mdc-slider__value-indicator{transition:none}.mat-mdc-slider .mat-mdc-focus-indicator::before{border-radius:50%}.mdc-slider__thumb--focused .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}}return Se})();const En={provide:Ie.kq,useExisting:(0,Z.Rfq)(()=>Wt),multi:!0};let Wt=(()=>{class Se{get value(){return(0,h.OE)(this._hostElement.value)}set value(K){const ge=(0,h.OE)(K).toString();this._hasSetInitialValue?this._isActive||(this._hostElement.value=ge,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges(),this._slider._cdr.markForCheck()):this._initialValue=ge}get translateX(){return this._slider.min>=this._slider.max?(this._translateX=0,this._translateX):(void 0===this._translateX&&(this._translateX=this._calcTranslateXByValue()),this._translateX)}set translateX(K){this._translateX=K}get min(){return(0,h.OE)(this._hostElement.min)}set min(K){this._hostElement.min=(0,h.OE)(K).toString(),this._cdr.detectChanges()}get max(){return(0,h.OE)(this._hostElement.max)}set max(K){this._hostElement.max=(0,h.OE)(K).toString(),this._cdr.detectChanges()}get step(){return(0,h.OE)(this._hostElement.step)}set step(K){this._hostElement.step=(0,h.OE)(K).toString(),this._cdr.detectChanges()}get disabled(){return(0,h.he)(this._hostElement.disabled)}set disabled(K){this._hostElement.disabled=(0,h.he)(K),this._cdr.detectChanges(),this._slider.disabled!==this.disabled&&(this._slider.disabled=this.disabled)}get percentage(){return this._slider.min>=this._slider.max?this._slider._isRtl?1:0:(this.value-this._slider.min)/(this._slider.max-this._slider.min)}get fillPercentage(){return this._slider._cachedWidth?0===this._translateX?0:this.translateX/this._slider._cachedWidth:this._slider._isRtl?1:0}_setIsFocused(K){this._isFocused=K}constructor(K,ge,je,le){this._ngZone=K,this._elementRef=ge,this._cdr=je,this._slider=le,this.valueChange=new Z.bkB,this.dragStart=new Z.bkB,this.dragEnd=new Z.bkB,this.thumbPosition=2,this._knobRadius=8,this._isActive=!1,this._isFocused=!1,this._hasSetInitialValue=!1,this._destroyed=new Oe.B,this._skipUIUpdate=!1,this._onTouchedFn=()=>{},this._isControlInitialized=!1,this._platform=(0,Z.WQX)(ne.OD),this._hostElement=ge.nativeElement,this._ngZone.runOutsideAngular(()=>{this._hostElement.addEventListener("pointerdown",this._onPointerDown.bind(this)),this._hostElement.addEventListener("pointermove",this._onPointerMove.bind(this)),this._hostElement.addEventListener("pointerup",this._onPointerUp.bind(this))})}ngOnDestroy(){this._hostElement.removeEventListener("pointerdown",this._onPointerDown),this._hostElement.removeEventListener("pointermove",this._onPointerMove),this._hostElement.removeEventListener("pointerup",this._onPointerUp),this._destroyed.next(),this._destroyed.complete(),this.dragStart.complete(),this.dragEnd.complete()}initProps(){this._updateWidthInactive(),this.disabled!==this._slider.disabled&&(this._slider.disabled=!0),this.step=this._slider.step,this.min=this._slider.min,this.max=this._slider.max,this._initValue()}initUI(){this._updateThumbUIByValue()}_initValue(){this._hasSetInitialValue=!0,void 0===this._initialValue?this.value=this._getDefaultValue():(this._hostElement.value=this._initialValue,this._updateThumbUIByValue(),this._slider._onValueChange(this),this._cdr.detectChanges())}_getDefaultValue(){return this.min}_onBlur(){this._setIsFocused(!1),this._onTouchedFn()}_onFocus(){this._setIsFocused(!0)}_onChange(){this.valueChange.emit(this.value),this._isActive&&this._updateThumbUIByValue({withAnimation:!0})}_onInput(){this._onChangeFn?.(this.value),(this._slider.step||!this._isActive)&&this._updateThumbUIByValue({withAnimation:!0}),this._slider._onValueChange(this)}_onNgControlValueChange(){(!this._isActive||!this._isFocused)&&(this._slider._onValueChange(this),this._updateThumbUIByValue()),this._slider.disabled=this._formControl.disabled}_onPointerDown(K){if(!this.disabled&&0===K.button){if(this._platform.IOS){const ge=this._slider._isCursorOnSliderThumb(K,this._slider._getThumb(this.thumbPosition)._hostElement.getBoundingClientRect());return this._isActive=ge,this._updateWidthActive(),void this._slider._updateDimensions()}this._isActive=!0,this._setIsFocused(!0),this._updateWidthActive(),this._slider._updateDimensions(),this._slider.step||this._updateThumbUIByPointerEvent(K,{withAnimation:!0}),this.disabled||(this._handleValueCorrection(K),this.dragStart.emit({source:this,parent:this._slider,value:this.value}))}}_handleValueCorrection(K){this._skipUIUpdate=!0,setTimeout(()=>{this._skipUIUpdate=!1,this._fixValue(K)},0)}_fixValue(K){const ge=K.clientX-this._slider._cachedLeft,je=this._slider._cachedWidth,le=0===this._slider.step?1:this._slider.step,ce=Math.floor((this._slider.max-this._slider.min)/le),Ye=Math.round((this._slider._isRtl?1-ge/je:ge/je)*ce)/ce*(this._slider.max-this._slider.min)+this._slider.min,L=Math.round(Ye/le)*le;if(L===this.value)return this._slider._onValueChange(this),void(this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(K,{withAnimation:this._slider._hasAnimation}));this.value=L,this.valueChange.emit(this.value),this._onChangeFn?.(this.value),this._slider._onValueChange(this),this._slider.step>0?this._updateThumbUIByValue():this._updateThumbUIByPointerEvent(K,{withAnimation:this._slider._hasAnimation})}_onPointerMove(K){!this._slider.step&&this._isActive&&this._updateThumbUIByPointerEvent(K)}_onPointerUp(){this._isActive&&(this._isActive=!1,this.dragEnd.emit({source:this,parent:this._slider,value:this.value}),setTimeout(()=>this._updateWidthInactive(),this._platform.IOS?10:0))}_clamp(K){return Math.max(Math.min(K,this._slider._cachedWidth),0)}_calcTranslateXByValue(){return this._slider._isRtl?(1-this.percentage)*this._slider._cachedWidth:this.percentage*this._slider._cachedWidth}_calcTranslateXByPointerEvent(K){return K.clientX-this._slider._cachedLeft}_updateWidthActive(){this._hostElement.style.padding=`0 ${this._slider._inputPadding}px`,this._hostElement.style.width=`calc(100% + ${this._slider._inputPadding}px)`}_updateWidthInactive(){this._hostElement.style.padding="0px",this._hostElement.style.width="calc(100% + 48px)",this._hostElement.style.left="-24px"}_updateThumbUIByValue(K){this.translateX=this._clamp(this._calcTranslateXByValue()),this._updateThumbUI(K)}_updateThumbUIByPointerEvent(K,ge){this.translateX=this._clamp(this._calcTranslateXByPointerEvent(K)),this._updateThumbUI(ge)}_updateThumbUI(K){this._slider._setTransition(!!K?.withAnimation),this._slider._onTranslateXChange(this)}writeValue(K){(this._isControlInitialized||null!==K)&&(this.value=K)}registerOnChange(K){this._onChangeFn=K,this._isControlInitialized=!0}registerOnTouched(K){this._onTouchedFn=K}setDisabledState(K){this.disabled=K}focus(){this._hostElement.focus()}blur(){this._hostElement.blur()}static{this.\u0275fac=function(ge){return new(ge||Se)(Z.rXU(Z.SKi),Z.rXU(Z.aKT),Z.rXU(Z.gRc),Z.rXU(en))}}static{this.\u0275dir=Z.FsC({type:Se,selectors:[["input","matSliderThumb",""]],hostAttrs:["type","range",1,"mdc-slider__input"],hostVars:1,hostBindings:function(ge,je){1&ge&&Z.bIt("change",function(){return je._onChange()})("input",function(){return je._onInput()})("blur",function(){return je._onBlur()})("focus",function(){return je._onFocus()}),2&ge&&Z.BMQ("aria-valuetext",je._valuetext)},inputs:{value:"value"},outputs:{valueChange:"valueChange",dragStart:"dragStart",dragEnd:"dragEnd"},exportAs:["matSliderThumb"],features:[Z.Jv_([En,{provide:vt,useExisting:Se}])]})}}return Se})(),be=(()=>{class Se{static{this.\u0275fac=function(ge){return new(ge||Se)}}static{this.\u0275mod=Z.$C({type:Se})}static{this.\u0275inj=Z.G2t({imports:[De.yE,we.MD,De.pZ]})}}return Se})()},7675:(pn,ct,N)=>{N.d(ct,{$R:()=>He,YV:()=>Ke,cC:()=>Bt,KS:()=>hn,tL:()=>Ee,YZ:()=>gn,ji:()=>$t,NB:()=>Sn,iL:()=>mn,Zl:()=>gt,tP:()=>ms});var e=N(7705),h=N(8203),ne=N(4085),Z=N(17),De=N(4402),we=N(7673);function Oe(Re){return Re&&"function"==typeof Re.connect&&!(Re instanceof Z.G)}class Me{applyChanges(Rt,oe,_e,$e,Pt){Rt.forEachOperation((tn,An,zn)=>{let hi,Kn;if(null==tn.previousIndex){const li=_e(tn,An,zn);hi=oe.createEmbeddedView(li.templateRef,li.context,li.index),Kn=1}else null==zn?(oe.remove(An),Kn=3):(hi=oe.get(An),oe.move(hi,zn),Kn=2);Pt&&Pt({context:hi?.context,operation:Kn,record:tn})})}detach(){}}const bt=new e.nKC("_ViewRepeater");var ft=N(6860),mt=N(7333),en=N(177),vt=N(1413),At=N(2806),me=N(4412),at=N(6977),rt=N(6697);const ht=[[["caption"]],[["colgroup"],["col"]]],St=["caption","colgroup, col"];function En(Re){return class extends Re{get sticky(){return this._sticky}set sticky(Rt){const oe=this._sticky;this._sticky=(0,ne.he)(Rt),this._hasStickyChanged=oe!==this._sticky}hasStickyChanged(){const Rt=this._hasStickyChanged;return this._hasStickyChanged=!1,Rt}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...Rt){super(...Rt),this._sticky=!1,this._hasStickyChanged=!1}}}const dn=new e.nKC("CDK_TABLE");let ze=(()=>{class Re{constructor(oe){this.template=oe}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkCellDef",""]]})}}return Re})(),be=(()=>{class Re{constructor(oe){this.template=oe}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkHeaderCellDef",""]]})}}return Re})(),Se=(()=>{class Re{constructor(oe){this.template=oe}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkFooterCellDef",""]]})}}return Re})();class Nt{}const K=En(Nt);let ge=(()=>{class Re extends K{get name(){return this._name}set name(oe){this._setNameInput(oe)}get stickyEnd(){return this._stickyEnd}set stickyEnd(oe){const _e=this._stickyEnd;this._stickyEnd=(0,ne.he)(oe),this._hasStickyChanged=_e!==this._stickyEnd}constructor(oe){super(),this._table=oe,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(oe){oe&&(this._name=oe,this.cssClassFriendlyName=oe.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(dn,8))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkColumnDef",""]],contentQueries:function(_e,$e,Pt){if(1&_e&&(e.wni(Pt,ze,5),e.wni(Pt,be,5),e.wni(Pt,Se,5)),2&_e){let tn;e.mGM(tn=e.lsd())&&($e.cell=tn.first),e.mGM(tn=e.lsd())&&($e.headerCell=tn.first),e.mGM(tn=e.lsd())&&($e.footerCell=tn.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[e.Jv_([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Re}]),e.Vt3]})}}return Re})();class je{constructor(Rt,oe){oe.nativeElement.classList.add(...Rt._columnCssClassName)}}let le=(()=>{class Re extends je{constructor(oe,_e){super(oe,_e)}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(ge),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[e.Vt3]})}}return Re})(),Le=(()=>{class Re extends je{constructor(oe,_e){if(super(oe,_e),1===oe._table?._elementRef.nativeElement.nodeType){const $e=oe._table._elementRef.nativeElement.getAttribute("role");_e.nativeElement.setAttribute("role","grid"===$e||"treegrid"===$e?"gridcell":"cell")}}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(ge),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[e.Vt3]})}}return Re})();class ue{constructor(){this.tasks=[],this.endTasks=[]}}const Ye=new e.nKC("_COALESCED_STYLE_SCHEDULER");let L=(()=>{class Re{constructor(oe){this._ngZone=oe,this._currentSchedule=null,this._destroyed=new vt.B}schedule(oe){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(oe)}scheduleEnd(oe){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(oe)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new ue,this._getScheduleObservable().pipe((0,at.Q)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const oe=this._currentSchedule;this._currentSchedule=new ue;for(const _e of oe.tasks)_e();for(const _e of oe.endTasks)_e()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,At.H)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,rt.s)(1))}static{this.\u0275fac=function(_e){return new(_e||Re)(e.KVO(e.SKi))}}static{this.\u0275prov=e.jDH({token:Re,factory:Re.\u0275fac})}}return Re})(),Be=(()=>{class Re{constructor(oe,_e){this.template=oe,this._differs=_e}ngOnChanges(oe){if(!this._columnsDiffer){const _e=oe.columns&&oe.columns.currentValue||[];this._columnsDiffer=this._differs.find(_e).create(),this._columnsDiffer.diff(_e)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(oe){return this instanceof Vt?oe.headerCell.template:this instanceof nn?oe.footerCell.template:oe.cell.template}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q),e.rXU(e._q3))}}static{this.\u0275dir=e.FsC({type:Re,features:[e.OA$]})}}return Re})();class pt extends Be{}const dt=En(pt);let Vt=(()=>{class Re extends dt{constructor(oe,_e,$e){super(oe,_e),this._table=$e}ngOnChanges(oe){super.ngOnChanges(oe)}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q),e.rXU(e._q3),e.rXU(dn,8))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[e.Vt3,e.OA$]})}}return Re})();class bn extends Be{}const jn=En(bn);let nn=(()=>{class Re extends jn{constructor(oe,_e,$e){super(oe,_e),this._table=$e}ngOnChanges(oe){super.ngOnChanges(oe)}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q),e.rXU(e._q3),e.rXU(dn,8))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[e.Vt3,e.OA$]})}}return Re})(),Vn=(()=>{class Re extends Be{constructor(oe,_e,$e){super(oe,_e),this._table=$e}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q),e.rXU(e._q3),e.rXU(dn,8))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[e.Vt3]})}}return Re})(),oi=(()=>{class Re{static{this.mostRecentCellOutlet=null}constructor(oe){this._viewContainer=oe,Re.mostRecentCellOutlet=this}ngOnDestroy(){Re.mostRecentCellOutlet===this&&(Re.mostRecentCellOutlet=null)}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","cdkCellOutlet",""]]})}}return Re})(),Ci=(()=>{class Re{static{this.\u0275fac=function(_e){return new(_e||Re)}}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,$e){1&_e&&e.eu8(0,0)},dependencies:[oi],encapsulation:2})}}return Re})(),ke=(()=>{class Re{static{this.\u0275fac=function(_e){return new(_e||Re)}}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,$e){1&_e&&e.eu8(0,0)},dependencies:[oi],encapsulation:2})}}return Re})(),re=(()=>{class Re{constructor(oe){this.templateRef=oe,this._contentClassName="cdk-no-data-row"}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.C4Q))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["ng-template","cdkNoDataRow",""]]})}}return Re})();const xe=["top","bottom","left","right"];class Ve{constructor(Rt,oe,_e,$e,Pt=!0,tn=!0,An){this._isNativeHtmlTable=Rt,this._stickCellCss=oe,this.direction=_e,this._coalescedStyleScheduler=$e,this._isBrowser=Pt,this._needsPositionStickyOnElement=tn,this._positionListener=An,this._cachedCellWidths=[],this._borderCellCss={top:`${oe}-border-elem-top`,bottom:`${oe}-border-elem-bottom`,left:`${oe}-border-elem-left`,right:`${oe}-border-elem-right`}}clearStickyPositioning(Rt,oe){const _e=[];for(const $e of Rt)if($e.nodeType===$e.ELEMENT_NODE){_e.push($e);for(let Pt=0;Pt<$e.children.length;Pt++)_e.push($e.children[Pt])}this._coalescedStyleScheduler.schedule(()=>{for(const $e of _e)this._removeStickyStyle($e,oe)})}updateStickyColumns(Rt,oe,_e,$e=!0){if(!Rt.length||!this._isBrowser||!oe.some(es=>es)&&!_e.some(es=>es))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Pt=Rt[0],tn=Pt.children.length,An=this._getCellWidths(Pt,$e),zn=this._getStickyStartColumnPositions(An,oe),hi=this._getStickyEndColumnPositions(An,_e),Kn=oe.lastIndexOf(!0),li=_e.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const es="rtl"===this.direction,Ls=es?"right":"left",dr=es?"left":"right";for(const Fo of Rt)for(let Ri=0;Ri<tn;Ri++){const Xs=Fo.children[Ri];oe[Ri]&&this._addStickyStyle(Xs,Ls,zn[Ri],Ri===Kn),_e[Ri]&&this._addStickyStyle(Xs,dr,hi[Ri],Ri===li)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Kn?[]:An.slice(0,Kn+1).map((Fo,Ri)=>oe[Ri]?Fo:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===li?[]:An.slice(li).map((Fo,Ri)=>_e[Ri+li]?Fo:null).reverse()}))})}stickRows(Rt,oe,_e){if(!this._isBrowser)return;const $e="bottom"===_e?Rt.slice().reverse():Rt,Pt="bottom"===_e?oe.slice().reverse():oe,tn=[],An=[],zn=[];for(let Kn=0,li=0;Kn<$e.length;Kn++){if(!Pt[Kn])continue;tn[Kn]=li;const es=$e[Kn];zn[Kn]=this._isNativeHtmlTable?Array.from(es.children):[es];const Ls=es.getBoundingClientRect().height;li+=Ls,An[Kn]=Ls}const hi=Pt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Kn=0;Kn<$e.length;Kn++){if(!Pt[Kn])continue;const li=tn[Kn],es=Kn===hi;for(const Ls of zn[Kn])this._addStickyStyle(Ls,_e,li,es)}"top"===_e?this._positionListener?.stickyHeaderRowsUpdated({sizes:An,offsets:tn,elements:zn}):this._positionListener?.stickyFooterRowsUpdated({sizes:An,offsets:tn,elements:zn})})}updateStickyFooterContainer(Rt,oe){if(!this._isNativeHtmlTable)return;const _e=Rt.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{oe.some($e=>!$e)?this._removeStickyStyle(_e,["bottom"]):this._addStickyStyle(_e,"bottom",0,!1)})}_removeStickyStyle(Rt,oe){for(const $e of oe)Rt.style[$e]="",Rt.classList.remove(this._borderCellCss[$e]);xe.some($e=>-1===oe.indexOf($e)&&Rt.style[$e])?Rt.style.zIndex=this._getCalculatedZIndex(Rt):(Rt.style.zIndex="",this._needsPositionStickyOnElement&&(Rt.style.position=""),Rt.classList.remove(this._stickCellCss))}_addStickyStyle(Rt,oe,_e,$e){Rt.classList.add(this._stickCellCss),$e&&Rt.classList.add(this._borderCellCss[oe]),Rt.style[oe]=`${_e}px`,Rt.style.zIndex=this._getCalculatedZIndex(Rt),this._needsPositionStickyOnElement&&(Rt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Rt){const oe={top:100,bottom:10,left:1,right:1};let _e=0;for(const $e of xe)Rt.style[$e]&&(_e+=oe[$e]);return _e?`${_e}`:""}_getCellWidths(Rt,oe=!0){if(!oe&&this._cachedCellWidths.length)return this._cachedCellWidths;const _e=[],$e=Rt.children;for(let Pt=0;Pt<$e.length;Pt++)_e.push($e[Pt].getBoundingClientRect().width);return this._cachedCellWidths=_e,_e}_getStickyStartColumnPositions(Rt,oe){const _e=[];let $e=0;for(let Pt=0;Pt<Rt.length;Pt++)oe[Pt]&&(_e[Pt]=$e,$e+=Rt[Pt]);return _e}_getStickyEndColumnPositions(Rt,oe){const _e=[];let $e=0;for(let Pt=Rt.length;Pt>0;Pt--)oe[Pt]&&(_e[Pt]=$e,$e+=Rt[Pt]);return _e}}const wt=new e.nKC("CDK_SPL");let yn=(()=>{class Re{constructor(oe,_e){this.viewContainer=oe,this.elementRef=_e}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","rowOutlet",""]]})}}return Re})(),Hn=(()=>{class Re{constructor(oe,_e){this.viewContainer=oe,this.elementRef=_e}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","headerRowOutlet",""]]})}}return Re})(),ti=(()=>{class Re{constructor(oe,_e){this.viewContainer=oe,this.elementRef=_e}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","footerRowOutlet",""]]})}}return Re})(),ai=(()=>{class Re{constructor(oe,_e){this.viewContainer=oe,this.elementRef=_e}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e.c1b),e.rXU(e.aKT))}}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","noDataRowOutlet",""]]})}}return Re})(),Bi=(()=>{class Re{get trackBy(){return this._trackByFn}set trackBy(oe){this._trackByFn=oe}get dataSource(){return this._dataSource}set dataSource(oe){this._dataSource!==oe&&this._switchDataSource(oe)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(oe){this._multiTemplateDataRows=(0,ne.he)(oe),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(oe){this._fixedLayout=(0,ne.he)(oe),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(oe,_e,$e,Pt,tn,An,zn,hi,Kn,li,es,Ls){this._differs=oe,this._changeDetectorRef=_e,this._elementRef=$e,this._dir=tn,this._platform=zn,this._viewRepeater=hi,this._coalescedStyleScheduler=Kn,this._viewportRuler=li,this._stickyPositioningListener=es,this._ngZone=Ls,this._onDestroy=new vt.B,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new e.bkB,this.viewChange=new me.t({start:0,end:Number.MAX_VALUE}),Pt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=An,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((oe,_e)=>this.trackBy?this.trackBy(_e.dataIndex,_e.data):_e),this._viewportRuler.change().pipe((0,at.Q)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const _e=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||_e,this._forceRecalculateCellWidths=_e,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(oe=>{oe.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),Oe(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const oe=this._dataDiffer.diff(this._renderRows);if(!oe)return this._updateNoDataRow(),void this.contentChanged.next();const _e=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(oe,_e,($e,Pt,tn)=>this._getEmbeddedViewArgs($e.item,tn),$e=>$e.item.data,$e=>{1===$e.operation&&$e.context&&this._renderCellTemplateForItem($e.record.item.rowDef,$e.context)}),this._updateRowIndexContext(),oe.forEachIdentityChange($e=>{_e.get($e.currentIndex).context.$implicit=$e.item.data}),this._updateNoDataRow(),this._ngZone&&e.SKi.isInAngularZone()?this._ngZone.onStable.pipe((0,rt.s)(1),(0,at.Q)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(oe){this._customColumnDefs.add(oe)}removeColumnDef(oe){this._customColumnDefs.delete(oe)}addRowDef(oe){this._customRowDefs.add(oe)}removeRowDef(oe){this._customRowDefs.delete(oe)}addHeaderRowDef(oe){this._customHeaderRowDefs.add(oe),this._headerRowDefChanged=!0}removeHeaderRowDef(oe){this._customHeaderRowDefs.delete(oe),this._headerRowDefChanged=!0}addFooterRowDef(oe){this._customFooterRowDefs.add(oe),this._footerRowDefChanged=!0}removeFooterRowDef(oe){this._customFooterRowDefs.delete(oe),this._footerRowDefChanged=!0}setNoDataRow(oe){this._customNoDataRow=oe}updateStickyHeaderRowStyles(){const oe=this._getRenderedRows(this._headerRowOutlet),$e=this._elementRef.nativeElement.querySelector("thead");$e&&($e.style.display=oe.length?"":"none");const Pt=this._headerRowDefs.map(tn=>tn.sticky);this._stickyStyler.clearStickyPositioning(oe,["top"]),this._stickyStyler.stickRows(oe,Pt,"top"),this._headerRowDefs.forEach(tn=>tn.resetStickyChanged())}updateStickyFooterRowStyles(){const oe=this._getRenderedRows(this._footerRowOutlet),$e=this._elementRef.nativeElement.querySelector("tfoot");$e&&($e.style.display=oe.length?"":"none");const Pt=this._footerRowDefs.map(tn=>tn.sticky);this._stickyStyler.clearStickyPositioning(oe,["bottom"]),this._stickyStyler.stickRows(oe,Pt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Pt),this._footerRowDefs.forEach(tn=>tn.resetStickyChanged())}updateStickyColumnStyles(){const oe=this._getRenderedRows(this._headerRowOutlet),_e=this._getRenderedRows(this._rowOutlet),$e=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...oe,..._e,...$e],["left","right"]),this._stickyColumnStylesNeedReset=!1),oe.forEach((Pt,tn)=>{this._addStickyColumnStyles([Pt],this._headerRowDefs[tn])}),this._rowDefs.forEach(Pt=>{const tn=[];for(let An=0;An<_e.length;An++)this._renderRows[An].rowDef===Pt&&tn.push(_e[An]);this._addStickyColumnStyles(tn,Pt)}),$e.forEach((Pt,tn)=>{this._addStickyColumnStyles([Pt],this._footerRowDefs[tn])}),Array.from(this._columnDefsByName.values()).forEach(Pt=>Pt.resetStickyChanged())}_getAllRenderRows(){const oe=[],_e=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let $e=0;$e<this._data.length;$e++){let Pt=this._data[$e];const tn=this._getRenderRowsForData(Pt,$e,_e.get(Pt));this._cachedRenderRowsMap.has(Pt)||this._cachedRenderRowsMap.set(Pt,new WeakMap);for(let An=0;An<tn.length;An++){let zn=tn[An];const hi=this._cachedRenderRowsMap.get(zn.data);hi.has(zn.rowDef)?hi.get(zn.rowDef).push(zn):hi.set(zn.rowDef,[zn]),oe.push(zn)}}return oe}_getRenderRowsForData(oe,_e,$e){return this._getRowDefs(oe,_e).map(tn=>{const An=$e&&$e.has(tn)?$e.get(tn):[];if(An.length){const zn=An.shift();return zn.dataIndex=_e,zn}return{data:oe,rowDef:tn,dataIndex:_e}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Ps(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(_e=>{this._columnDefsByName.has(_e.name),this._columnDefsByName.set(_e.name,_e)})}_cacheRowDefs(){this._headerRowDefs=Ps(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Ps(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Ps(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const oe=this._rowDefs.filter(_e=>!_e.when);this._defaultRowDef=oe[0]}_renderUpdatedColumns(){const oe=(tn,An)=>tn||!!An.getColumnsDiff(),_e=this._rowDefs.reduce(oe,!1);_e&&this._forceRenderDataRows();const $e=this._headerRowDefs.reduce(oe,!1);$e&&this._forceRenderHeaderRows();const Pt=this._footerRowDefs.reduce(oe,!1);return Pt&&this._forceRenderFooterRows(),_e||$e||Pt}_switchDataSource(oe){this._data=[],Oe(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),oe||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=oe}_observeRenderChanges(){if(!this.dataSource)return;let oe;Oe(this.dataSource)?oe=this.dataSource.connect(this):(0,De.A)(this.dataSource)?oe=this.dataSource:Array.isArray(this.dataSource)&&(oe=(0,we.of)(this.dataSource)),this._renderChangeSubscription=oe.pipe((0,at.Q)(this._onDestroy)).subscribe(_e=>{this._data=_e||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((oe,_e)=>this._renderRow(this._headerRowOutlet,oe,_e)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((oe,_e)=>this._renderRow(this._footerRowOutlet,oe,_e)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(oe,_e){const $e=Array.from(_e.columns||[]).map(An=>this._columnDefsByName.get(An)),Pt=$e.map(An=>An.sticky),tn=$e.map(An=>An.stickyEnd);this._stickyStyler.updateStickyColumns(oe,Pt,tn,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(oe){const _e=[];for(let $e=0;$e<oe.viewContainer.length;$e++){const Pt=oe.viewContainer.get($e);_e.push(Pt.rootNodes[0])}return _e}_getRowDefs(oe,_e){if(1==this._rowDefs.length)return[this._rowDefs[0]];let $e=[];if(this.multiTemplateDataRows)$e=this._rowDefs.filter(Pt=>!Pt.when||Pt.when(_e,oe));else{let Pt=this._rowDefs.find(tn=>tn.when&&tn.when(_e,oe))||this._defaultRowDef;Pt&&$e.push(Pt)}return $e}_getEmbeddedViewArgs(oe,_e){return{templateRef:oe.rowDef.template,context:{$implicit:oe.data},index:_e}}_renderRow(oe,_e,$e,Pt={}){const tn=oe.viewContainer.createEmbeddedView(_e.template,Pt,$e);return this._renderCellTemplateForItem(_e,Pt),tn}_renderCellTemplateForItem(oe,_e){for(let $e of this._getCellTemplates(oe))oi.mostRecentCellOutlet&&oi.mostRecentCellOutlet._viewContainer.createEmbeddedView($e,_e);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const oe=this._rowOutlet.viewContainer;for(let _e=0,$e=oe.length;_e<$e;_e++){const tn=oe.get(_e).context;tn.count=$e,tn.first=0===_e,tn.last=_e===$e-1,tn.even=_e%2==0,tn.odd=!tn.even,this.multiTemplateDataRows?(tn.dataIndex=this._renderRows[_e].dataIndex,tn.renderIndex=_e):tn.index=this._renderRows[_e].dataIndex}}_getCellTemplates(oe){return oe&&oe.columns?Array.from(oe.columns,_e=>{const $e=this._columnDefsByName.get(_e);return oe.extractCellTemplate($e)}):[]}_applyNativeTableSections(){const oe=this._document.createDocumentFragment(),_e=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const $e of _e){const Pt=this._document.createElement($e.tag);Pt.setAttribute("role","rowgroup");for(const tn of $e.outlets)Pt.appendChild(tn.elementRef.nativeElement);oe.appendChild(Pt)}this._elementRef.nativeElement.appendChild(oe)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const oe=(_e,$e)=>_e||$e.hasStickyChanged();this._headerRowDefs.reduce(oe,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(oe,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(oe,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ve(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,we.of)()).pipe((0,at.Q)(this._onDestroy)).subscribe(_e=>{this._stickyStyler.direction=_e,this.updateStickyColumnStyles()})}_getOwnDefs(oe){return oe.filter(_e=>!_e._table||_e._table===this)}_updateNoDataRow(){const oe=this._customNoDataRow||this._noDataRow;if(!oe)return;const _e=0===this._rowOutlet.viewContainer.length;if(_e===this._isShowingNoDataRow)return;const $e=this._noDataRowOutlet.viewContainer;if(_e){const Pt=$e.createEmbeddedView(oe.templateRef),tn=Pt.rootNodes[0];1===Pt.rootNodes.length&&tn?.nodeType===this._document.ELEMENT_NODE&&(tn.setAttribute("role","row"),tn.classList.add(oe._contentClassName))}else $e.clear();this._isShowingNoDataRow=_e,this._changeDetectorRef.markForCheck()}static{this.\u0275fac=function(_e){return new(_e||Re)(e.rXU(e._q3),e.rXU(e.gRc),e.rXU(e.aKT),e.kS0("role"),e.rXU(h.dS,8),e.rXU(en.qQ),e.rXU(ft.OD),e.rXU(bt),e.rXU(Ye),e.rXU(mt.Xj),e.rXU(wt,12),e.rXU(e.SKi,8))}}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(_e,$e,Pt){if(1&_e&&(e.wni(Pt,re,5),e.wni(Pt,ge,5),e.wni(Pt,Vn,5),e.wni(Pt,Vt,5),e.wni(Pt,nn,5)),2&_e){let tn;e.mGM(tn=e.lsd())&&($e._noDataRow=tn.first),e.mGM(tn=e.lsd())&&($e._contentColumnDefs=tn),e.mGM(tn=e.lsd())&&($e._contentRowDefs=tn),e.mGM(tn=e.lsd())&&($e._contentHeaderRowDefs=tn),e.mGM(tn=e.lsd())&&($e._contentFooterRowDefs=tn)}},viewQuery:function(_e,$e){if(1&_e&&(e.GBs(yn,7),e.GBs(Hn,7),e.GBs(ti,7),e.GBs(ai,7)),2&_e){let Pt;e.mGM(Pt=e.lsd())&&($e._rowOutlet=Pt.first),e.mGM(Pt=e.lsd())&&($e._headerRowOutlet=Pt.first),e.mGM(Pt=e.lsd())&&($e._footerRowOutlet=Pt.first),e.mGM(Pt=e.lsd())&&($e._noDataRowOutlet=Pt.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(_e,$e){2&_e&&e.AVh("cdk-table-fixed-layout",$e.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[e.Jv_([{provide:dn,useExisting:Re},{provide:bt,useClass:Me},{provide:Ye,useClass:L},{provide:wt,useValue:null}])],ngContentSelectors:St,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,$e){1&_e&&(e.NAR(ht),e.SdG(0),e.SdG(1,1),e.eu8(2,0)(3,1)(4,2)(5,3))},dependencies:[yn,Hn,ti,ai],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}}return Re})();function Ps(Re,Rt){return Re.concat(Array.from(Rt))}let Mn=(()=>{class Re{static{this.\u0275fac=function(_e){return new(_e||Re)}}static{this.\u0275mod=e.$C({type:Re})}static{this.\u0275inj=e.G2t({imports:[mt.E9]})}}return Re})();var io=N(6600);N(7786),N(4572),N(6354);const Pe=[[["caption"]],[["colgroup"],["col"]]],Fe=["caption","colgroup, col"];let gt=(()=>{class Re extends Bi{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(_e,$e){2&_e&&e.AVh("mdc-table-fixed-layout",$e.fixedLayout)},exportAs:["matTable"],features:[e.Jv_([{provide:Bi,useExisting:Re},{provide:dn,useExisting:Re},{provide:Ye,useClass:L},{provide:bt,useClass:Me},{provide:wt,useValue:null}]),e.Vt3],ngContentSelectors:Fe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(_e,$e){1&_e&&(e.NAR(Pe),e.SdG(0),e.SdG(1,1),e.eu8(2,0)(3,1)(4,2)(5,3))},dependencies:[yn,Hn,ti,ai],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{--mat-table-row-item-outline-width:1px;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}}return Re})(),Ke=(()=>{class Re extends ze{static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matCellDef",""]],features:[e.Jv_([{provide:ze,useExisting:Re}]),e.Vt3]})}}return Re})(),Ee=(()=>{class Re extends be{static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matHeaderCellDef",""]],features:[e.Jv_([{provide:be,useExisting:Re}]),e.Vt3]})}}return Re})(),Bt=(()=>{class Re extends ge{get name(){return this._name}set name(oe){this._setNameInput(oe)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[e.Jv_([{provide:ge,useExisting:Re},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Re}]),e.Vt3]})}}return Re})(),hn=(()=>{class Re extends le{static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[e.Vt3]})}}return Re})(),He=(()=>{class Re extends Le{static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[e.Vt3]})}}return Re})(),$t=(()=>{class Re extends Vt{static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[e.Jv_([{provide:Vt,useExisting:Re}]),e.Vt3]})}}return Re})(),mn=(()=>{class Re extends Vn{static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275dir=e.FsC({type:Re,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[e.Jv_([{provide:Vn,useExisting:Re}]),e.Vt3]})}}return Re})(),gn=(()=>{class Re extends Ci{static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[e.Jv_([{provide:Ci,useExisting:Re}]),e.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,$e){1&_e&&e.eu8(0,0)},dependencies:[oi],encapsulation:2})}}return Re})(),Sn=(()=>{class Re extends ke{static{this.\u0275fac=function(){let oe;return function($e){return(oe||(oe=e.xGo(Re)))($e||Re)}}()}static{this.\u0275cmp=e.VBU({type:Re,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[e.Jv_([{provide:ke,useExisting:Re}]),e.Vt3],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(_e,$e){1&_e&&e.eu8(0,0)},dependencies:[oi],encapsulation:2})}}return Re})(),ms=(()=>{class Re{static{this.\u0275fac=function(_e){return new(_e||Re)}}static{this.\u0275mod=e.$C({type:Re})}static{this.\u0275inj=e.G2t({imports:[io.yE,Mn,io.yE]})}}return Re})()},345:(pn,ct,N)=>{N.d(ct,{B7:()=>Mt,Bb:()=>nn,hE:()=>ke,sG:()=>dt,up:()=>ai});var e=N(7705),h=N(177);class ne extends h.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Z extends ne{static makeCurrent(){(0,h.ZD)(new Z)}onAndCancel(Pe,Fe,Xe){return Pe.addEventListener(Fe,Xe),()=>{Pe.removeEventListener(Fe,Xe)}}dispatchEvent(Pe,Fe){Pe.dispatchEvent(Fe)}remove(Pe){Pe.parentNode&&Pe.parentNode.removeChild(Pe)}createElement(Pe,Fe){return(Fe=Fe||this.getDefaultDocument()).createElement(Pe)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Pe){return Pe.nodeType===Node.ELEMENT_NODE}isShadowRoot(Pe){return Pe instanceof DocumentFragment}getGlobalEventTarget(Pe,Fe){return"window"===Fe?window:"document"===Fe?Pe:"body"===Fe?Pe.body:null}getBaseHref(Pe){const Fe=function we(){return De=De||document.querySelector("base"),De?De.getAttribute("href"):null}();return null==Fe?null:function Oe(ye){Ie=Ie||document.createElement("a"),Ie.setAttribute("href",ye);const Pe=Ie.pathname;return"/"===Pe.charAt(0)?Pe:`/${Pe}`}(Fe)}resetBaseElement(){De=null}getUserAgent(){return window.navigator.userAgent}getCookie(Pe){return(0,h._b)(document.cookie,Pe)}}let Ie,De=null,Me=(()=>{class ye{build(){return new XMLHttpRequest}static{this.\u0275fac=function(Xe){return new(Xe||ye)}}static{this.\u0275prov=e.jDH({token:ye,factory:ye.\u0275fac})}}return ye})();const Ge=new e.nKC("EventManagerPlugins");let Ue=(()=>{class ye{constructor(Fe,Xe){this._zone=Xe,this._eventNameToPlugin=new Map,Fe.forEach(zt=>{zt.manager=this}),this._plugins=Fe.slice().reverse()}addEventListener(Fe,Xe,zt){return this._findPluginFor(Xe).addEventListener(Fe,Xe,zt)}getZone(){return this._zone}_findPluginFor(Fe){let Xe=this._eventNameToPlugin.get(Fe);if(Xe)return Xe;if(Xe=this._plugins.find(on=>on.supports(Fe)),!Xe)throw new e.wOt(5101,!1);return this._eventNameToPlugin.set(Fe,Xe),Xe}static{this.\u0275fac=function(Xe){return new(Xe||ye)(e.KVO(Ge),e.KVO(e.SKi))}}static{this.\u0275prov=e.jDH({token:ye,factory:ye.\u0275fac})}}return ye})();class yt{constructor(Pe){this._doc=Pe}}const _t="ng-app-id";let bt=(()=>{class ye{constructor(Fe,Xe,zt,on={}){this.doc=Fe,this.appId=Xe,this.nonce=zt,this.platformId=on,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,h.Vy)(on),this.resetHostNodes()}addStyles(Fe){for(const Xe of Fe)1===this.changeUsageCount(Xe,1)&&this.onStyleAdded(Xe)}removeStyles(Fe){for(const Xe of Fe)this.changeUsageCount(Xe,-1)<=0&&this.onStyleRemoved(Xe)}ngOnDestroy(){const Fe=this.styleNodesInDOM;Fe&&(Fe.forEach(Xe=>Xe.remove()),Fe.clear());for(const Xe of this.getAllStyles())this.onStyleRemoved(Xe);this.resetHostNodes()}addHost(Fe){this.hostNodes.add(Fe);for(const Xe of this.getAllStyles())this.addStyleToHost(Fe,Xe)}removeHost(Fe){this.hostNodes.delete(Fe)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Fe){for(const Xe of this.hostNodes)this.addStyleToHost(Xe,Fe)}onStyleRemoved(Fe){const Xe=this.styleRef;Xe.get(Fe)?.elements?.forEach(zt=>zt.remove()),Xe.delete(Fe)}collectServerRenderedStyles(){const Fe=this.doc.head?.querySelectorAll(`style[${_t}="${this.appId}"]`);if(Fe?.length){const Xe=new Map;return Fe.forEach(zt=>{null!=zt.textContent&&Xe.set(zt.textContent,zt)}),Xe}return null}changeUsageCount(Fe,Xe){const zt=this.styleRef;if(zt.has(Fe)){const on=zt.get(Fe);return on.usage+=Xe,on.usage}return zt.set(Fe,{usage:Xe,elements:[]}),Xe}getStyleElement(Fe,Xe){const zt=this.styleNodesInDOM,on=zt?.get(Xe);if(on?.parentNode===Fe)return zt.delete(Xe),on.removeAttribute(_t),on;{const gt=this.doc.createElement("style");return this.nonce&&gt.setAttribute("nonce",this.nonce),gt.textContent=Xe,this.platformIsServer&&gt.setAttribute(_t,this.appId),gt}}addStyleToHost(Fe,Xe){const zt=this.getStyleElement(Fe,Xe);Fe.appendChild(zt);const on=this.styleRef,gt=on.get(Xe)?.elements;gt?gt.push(zt):on.set(Xe,{elements:[zt],usage:1})}resetHostNodes(){const Fe=this.hostNodes;Fe.clear(),Fe.add(this.doc.head)}static{this.\u0275fac=function(Xe){return new(Xe||ye)(e.KVO(h.qQ),e.KVO(e.sZ2),e.KVO(e.BIS,8),e.KVO(e.Agw))}}static{this.\u0275prov=e.jDH({token:ye,factory:ye.\u0275fac})}}return ye})();const ft={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},mt=/%COMP%/g,at=new e.nKC("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!1});function St(ye,Pe){return Pe.map(Fe=>Fe.replace(mt,ye))}let Mt=(()=>{class ye{constructor(Fe,Xe,zt,on,gt,Ke,Ee,Qe=null){this.eventManager=Fe,this.sharedStylesHost=Xe,this.appId=zt,this.removeStylesOnCompDestroy=on,this.doc=gt,this.platformId=Ke,this.ngZone=Ee,this.nonce=Qe,this.rendererByCompId=new Map,this.platformIsServer=(0,h.Vy)(Ke),this.defaultRenderer=new cn(Fe,gt,Ee,this.platformIsServer)}createRenderer(Fe,Xe){if(!Fe||!Xe)return this.defaultRenderer;this.platformIsServer&&Xe.encapsulation===e.gXe.ShadowDom&&(Xe={...Xe,encapsulation:e.gXe.Emulated});const zt=this.getOrCreateRenderer(Fe,Xe);return zt instanceof Se?zt.applyToHost(Fe):zt instanceof be&&zt.applyStyles(),zt}getOrCreateRenderer(Fe,Xe){const zt=this.rendererByCompId;let on=zt.get(Xe.id);if(!on){const gt=this.doc,Ke=this.ngZone,Ee=this.eventManager,Qe=this.sharedStylesHost,Bt=this.removeStylesOnCompDestroy,hn=this.platformIsServer;switch(Xe.encapsulation){case e.gXe.Emulated:on=new Se(Ee,Qe,Xe,this.appId,Bt,gt,Ke,hn);break;case e.gXe.ShadowDom:return new ze(Ee,Qe,Fe,Xe,gt,Ke,this.nonce,hn);default:on=new be(Ee,Qe,Xe,Bt,gt,Ke,hn)}zt.set(Xe.id,on)}return on}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(Xe){return new(Xe||ye)(e.KVO(Ue),e.KVO(bt),e.KVO(e.sZ2),e.KVO(at),e.KVO(h.qQ),e.KVO(e.Agw),e.KVO(e.SKi),e.KVO(e.BIS))}}static{this.\u0275prov=e.jDH({token:ye,factory:ye.\u0275fac})}}return ye})();class cn{constructor(Pe,Fe,Xe,zt){this.eventManager=Pe,this.doc=Fe,this.ngZone=Xe,this.platformIsServer=zt,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Pe,Fe){return Fe?this.doc.createElementNS(ft[Fe]||Fe,Pe):this.doc.createElement(Pe)}createComment(Pe){return this.doc.createComment(Pe)}createText(Pe){return this.doc.createTextNode(Pe)}appendChild(Pe,Fe){(Wt(Pe)?Pe.content:Pe).appendChild(Fe)}insertBefore(Pe,Fe,Xe){Pe&&(Wt(Pe)?Pe.content:Pe).insertBefore(Fe,Xe)}removeChild(Pe,Fe){Pe&&Pe.removeChild(Fe)}selectRootElement(Pe,Fe){let Xe="string"==typeof Pe?this.doc.querySelector(Pe):Pe;if(!Xe)throw new e.wOt(-5104,!1);return Fe||(Xe.textContent=""),Xe}parentNode(Pe){return Pe.parentNode}nextSibling(Pe){return Pe.nextSibling}setAttribute(Pe,Fe,Xe,zt){if(zt){Fe=zt+":"+Fe;const on=ft[zt];on?Pe.setAttributeNS(on,Fe,Xe):Pe.setAttribute(Fe,Xe)}else Pe.setAttribute(Fe,Xe)}removeAttribute(Pe,Fe,Xe){if(Xe){const zt=ft[Xe];zt?Pe.removeAttributeNS(zt,Fe):Pe.removeAttribute(`${Xe}:${Fe}`)}else Pe.removeAttribute(Fe)}addClass(Pe,Fe){Pe.classList.add(Fe)}removeClass(Pe,Fe){Pe.classList.remove(Fe)}setStyle(Pe,Fe,Xe,zt){zt&(e.czy.DashCase|e.czy.Important)?Pe.style.setProperty(Fe,Xe,zt&e.czy.Important?"important":""):Pe.style[Fe]=Xe}removeStyle(Pe,Fe,Xe){Xe&e.czy.DashCase?Pe.style.removeProperty(Fe):Pe.style[Fe]=""}setProperty(Pe,Fe,Xe){Pe[Fe]=Xe}setValue(Pe,Fe){Pe.nodeValue=Fe}listen(Pe,Fe,Xe){if("string"==typeof Pe&&!(Pe=(0,h.QT)().getGlobalEventTarget(this.doc,Pe)))throw new Error(`Unsupported event target ${Pe} for event ${Fe}`);return this.eventManager.addEventListener(Pe,Fe,this.decoratePreventDefault(Xe))}decoratePreventDefault(Pe){return Fe=>{if("__ngUnwrap__"===Fe)return Pe;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Pe(Fe)):Pe(Fe))&&Fe.preventDefault()}}}function Wt(ye){return"TEMPLATE"===ye.tagName&&void 0!==ye.content}class ze extends cn{constructor(Pe,Fe,Xe,zt,on,gt,Ke,Ee){super(Pe,on,gt,Ee),this.sharedStylesHost=Fe,this.hostEl=Xe,this.shadowRoot=Xe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Qe=St(zt.id,zt.styles);for(const Bt of Qe){const hn=document.createElement("style");Ke&&hn.setAttribute("nonce",Ke),hn.textContent=Bt,this.shadowRoot.appendChild(hn)}}nodeOrShadowRoot(Pe){return Pe===this.hostEl?this.shadowRoot:Pe}appendChild(Pe,Fe){return super.appendChild(this.nodeOrShadowRoot(Pe),Fe)}insertBefore(Pe,Fe,Xe){return super.insertBefore(this.nodeOrShadowRoot(Pe),Fe,Xe)}removeChild(Pe,Fe){return super.removeChild(this.nodeOrShadowRoot(Pe),Fe)}parentNode(Pe){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Pe)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class be extends cn{constructor(Pe,Fe,Xe,zt,on,gt,Ke,Ee){super(Pe,on,gt,Ke),this.sharedStylesHost=Fe,this.removeStylesOnCompDestroy=zt,this.styles=Ee?St(Ee,Xe.styles):Xe.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Se extends be{constructor(Pe,Fe,Xe,zt,on,gt,Ke,Ee){const Qe=zt+"-"+Xe.id;super(Pe,Fe,Xe,on,gt,Ke,Ee,Qe),this.contentAttr=function rt(ye){return"_ngcontent-%COMP%".replace(mt,ye)}(Qe),this.hostAttr=function ht(ye){return"_nghost-%COMP%".replace(mt,ye)}(Qe)}applyToHost(Pe){this.applyStyles(),this.setAttribute(Pe,this.hostAttr,"")}createElement(Pe,Fe){const Xe=super.createElement(Pe,Fe);return super.setAttribute(Xe,this.contentAttr,""),Xe}}let Nt=(()=>{class ye extends yt{constructor(Fe){super(Fe)}supports(Fe){return!0}addEventListener(Fe,Xe,zt){return Fe.addEventListener(Xe,zt,!1),()=>this.removeEventListener(Fe,Xe,zt)}removeEventListener(Fe,Xe,zt){return Fe.removeEventListener(Xe,zt)}static{this.\u0275fac=function(Xe){return new(Xe||ye)(e.KVO(h.qQ))}}static{this.\u0275prov=e.jDH({token:ye,factory:ye.\u0275fac})}}return ye})();const K=["alt","control","meta","shift"],ge={"\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"},je={alt:ye=>ye.altKey,control:ye=>ye.ctrlKey,meta:ye=>ye.metaKey,shift:ye=>ye.shiftKey};let le=(()=>{class ye extends yt{constructor(Fe){super(Fe)}supports(Fe){return null!=ye.parseEventName(Fe)}addEventListener(Fe,Xe,zt){const on=ye.parseEventName(Xe),gt=ye.eventCallback(on.fullKey,zt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,h.QT)().onAndCancel(Fe,on.domEventName,gt))}static parseEventName(Fe){const Xe=Fe.toLowerCase().split("."),zt=Xe.shift();if(0===Xe.length||"keydown"!==zt&&"keyup"!==zt)return null;const on=ye._normalizeKey(Xe.pop());let gt="",Ke=Xe.indexOf("code");if(Ke>-1&&(Xe.splice(Ke,1),gt="code."),K.forEach(Qe=>{const Bt=Xe.indexOf(Qe);Bt>-1&&(Xe.splice(Bt,1),gt+=Qe+".")}),gt+=on,0!=Xe.length||0===on.length)return null;const Ee={};return Ee.domEventName=zt,Ee.fullKey=gt,Ee}static matchEventFullKeyCode(Fe,Xe){let zt=ge[Fe.key]||Fe.key,on="";return Xe.indexOf("code.")>-1&&(zt=Fe.code,on="code."),!(null==zt||!zt)&&(zt=zt.toLowerCase()," "===zt?zt="space":"."===zt&&(zt="dot"),K.forEach(gt=>{gt!==zt&&(0,je[gt])(Fe)&&(on+=gt+".")}),on+=zt,on===Xe)}static eventCallback(Fe,Xe,zt){return on=>{ye.matchEventFullKeyCode(on,Fe)&&zt.runGuarded(()=>Xe(on))}}static _normalizeKey(Fe){return"esc"===Fe?"escape":Fe}static{this.\u0275fac=function(Xe){return new(Xe||ye)(e.KVO(h.qQ))}}static{this.\u0275prov=e.jDH({token:ye,factory:ye.\u0275fac})}}return ye})();const dt=(0,e.oH4)(e.fpN,"browser",[{provide:e.Agw,useValue:h.AJ},{provide:e.PLl,useValue:function L(){Z.makeCurrent()},multi:!0},{provide:h.qQ,useFactory:function Be(){return(0,e.TL$)(document),document},deps:[]}]),Vt=new e.nKC(""),bn=[{provide:e.e01,useClass:class Ne{addToWindow(Pe){e.JZv.getAngularTestability=(Xe,zt=!0)=>{const on=Pe.findTestabilityInTree(Xe,zt);if(null==on)throw new e.wOt(5103,!1);return on},e.JZv.getAllAngularTestabilities=()=>Pe.getAllTestabilities(),e.JZv.getAllAngularRootElements=()=>Pe.getAllRootElements(),e.JZv.frameworkStabilizers||(e.JZv.frameworkStabilizers=[]),e.JZv.frameworkStabilizers.push(Xe=>{const zt=e.JZv.getAllAngularTestabilities();let on=zt.length,gt=!1;const Ke=function(Ee){gt=gt||Ee,on--,0==on&&Xe(gt)};zt.forEach(Ee=>{Ee.whenStable(Ke)})})}findTestabilityInTree(Pe,Fe,Xe){return null==Fe?null:Pe.getTestability(Fe)??(Xe?(0,h.QT)().isShadowRoot(Fe)?this.findTestabilityInTree(Pe,Fe.host,!0):this.findTestabilityInTree(Pe,Fe.parentElement,!0):null)}},deps:[]},{provide:e.WHO,useClass:e.NYb,deps:[e.SKi,e.giA,e.e01]},{provide:e.NYb,useClass:e.NYb,deps:[e.SKi,e.giA,e.e01]}],jn=[{provide:e.H8p,useValue:"root"},{provide:e.zcH,useFactory:function z(){return new e.zcH},deps:[]},{provide:Ge,useClass:Nt,multi:!0,deps:[h.qQ,e.SKi,e.Agw]},{provide:Ge,useClass:le,multi:!0,deps:[h.qQ]},Mt,bt,Ue,{provide:e._9s,useExisting:Mt},{provide:h.N0,useClass:Me,deps:[]},[]];let nn=(()=>{class ye{constructor(Fe){}static withServerTransition(Fe){return{ngModule:ye,providers:[{provide:e.sZ2,useValue:Fe.appId}]}}static{this.\u0275fac=function(Xe){return new(Xe||ye)(e.KVO(Vt,12))}}static{this.\u0275mod=e.$C({type:ye})}static{this.\u0275inj=e.G2t({providers:[...jn,...bn],imports:[h.MD,e.Hbi]})}}return ye})(),ke=(()=>{class ye{constructor(Fe){this._doc=Fe}getTitle(){return this._doc.title}setTitle(Fe){this._doc.title=Fe||""}static{this.\u0275fac=function(Xe){return new(Xe||ye)(e.KVO(h.qQ))}}static{this.\u0275prov=e.jDH({token:ye,factory:function(Xe){let zt=null;return zt=Xe?new Xe:function xt(){return new ke((0,e.KVO)(h.qQ))}(),zt},providedIn:"root"})}}return ye})();typeof window<"u"&&window;let ai=(()=>{class ye{static{this.\u0275fac=function(Xe){return new(Xe||ye)}}static{this.\u0275prov=e.jDH({token:ye,factory:function(Xe){let zt=null;return zt=Xe?new(Xe||ye):e.KVO(us),zt},providedIn:"root"})}}return ye})(),us=(()=>{class ye extends ai{constructor(Fe){super(),this._doc=Fe}sanitize(Fe,Xe){if(null==Xe)return null;switch(Fe){case e.WPN.NONE:return Xe;case e.WPN.HTML:return(0,e.ZF7)(Xe,"HTML")?(0,e.rcV)(Xe):(0,e.h9k)(this._doc,String(Xe)).toString();case e.WPN.STYLE:return(0,e.ZF7)(Xe,"Style")?(0,e.rcV)(Xe):Xe;case e.WPN.SCRIPT:if((0,e.ZF7)(Xe,"Script"))return(0,e.rcV)(Xe);throw new e.wOt(5200,!1);case e.WPN.URL:return(0,e.ZF7)(Xe,"URL")?(0,e.rcV)(Xe):(0,e.$MX)(String(Xe));case e.WPN.RESOURCE_URL:if((0,e.ZF7)(Xe,"ResourceURL"))return(0,e.rcV)(Xe);throw new e.wOt(5201,!1);default:throw new e.wOt(5202,!1)}}bypassSecurityTrustHtml(Fe){return(0,e.Kcf)(Fe)}bypassSecurityTrustStyle(Fe){return(0,e.cWb)(Fe)}bypassSecurityTrustScript(Fe){return(0,e.UyX)(Fe)}bypassSecurityTrustUrl(Fe){return(0,e.osQ)(Fe)}bypassSecurityTrustResourceUrl(Fe){return(0,e.e5t)(Fe)}static{this.\u0275fac=function(Xe){return new(Xe||ye)(e.KVO(h.qQ))}}static{this.\u0275prov=e.jDH({token:ye,factory:function(Xe){let zt=null;return zt=Xe?new Xe:function zi(ye){return new us(ye.get(h.qQ))}(e.KVO(e.zZn)),zt},providedIn:"root"})}}return ye})()},1593:(pn,ct,N)=>{N.d(ct,{wF:()=>Pt,Ix:()=>ns});var e=N(7705),h=N(4402),ne=N(2806),Z=N(7673),De=N(4412),we=N(9350),Ie=N(4572),Oe=N(8793),Ne=N(9030),Me=N(1203),Ge=N(8810),Ue=N(983),yt=N(17),_t=N(1413),bt=N(8359),ft=N(177),mt=N(6354),en=N(5558),vt=N(6697),At=N(9172),me=N(5964),at=N(1397),rt=N(9974),ht=N(4360);function St(A){return(0,rt.N)((V,O)=>{let j=!1;V.subscribe((0,ht._)(O,Q=>{j=!0,O.next(Q)},()=>{j||O.next(A),O.complete()}))})}function Mt(A=cn){return(0,rt.N)((V,O)=>{let j=!1;V.subscribe((0,ht._)(O,Q=>{j=!0,O.next(Q)},()=>j?O.complete():O.error(A())))})}function cn(){return new we.G}var En=N(3669);function dn(A,V){const O=arguments.length>=2;return j=>j.pipe(A?(0,me.p)((Q,Te)=>A(Q,Te,j)):En.D,(0,vt.s)(1),O?St(V):Mt(()=>new we.G))}var Wt=N(274),ze=N(8141),be=N(9437),Se=N(2816);function Nt(A){return A<=0?()=>Ue.w:(0,rt.N)((V,O)=>{let j=[];V.subscribe((0,ht._)(O,Q=>{j.push(Q),A<j.length&&j.shift()},()=>{for(const Q of j)O.next(Q);O.complete()},void 0,()=>{j=null}))})}var ge=N(3703),je=N(980),le=N(9898),ce=N(6977),ue=(N(6365),N(345));const Ye="primary",L=Symbol("RouteTitle");class z{constructor(V){this.params=V||{}}has(V){return Object.prototype.hasOwnProperty.call(this.params,V)}get(V){if(this.has(V)){const O=this.params[V];return Array.isArray(O)?O[0]:O}return null}getAll(V){if(this.has(V)){const O=this.params[V];return Array.isArray(O)?O:[O]}return[]}get keys(){return Object.keys(this.params)}}function Be(A){return new z(A)}function pt(A,V,O){const j=O.path.split("/");if(j.length>A.length||"full"===O.pathMatch&&(V.hasChildren()||j.length<A.length))return null;const Q={};for(let Te=0;Te<j.length;Te++){const Je=j[Te],Xt=A[Te];if(Je.startsWith(":"))Q[Je.substring(1)]=Xt;else if(Je!==Xt.path)return null}return{consumed:A.slice(0,j.length),posParams:Q}}function Vt(A,V){const O=A?Object.keys(A):void 0,j=V?Object.keys(V):void 0;if(!O||!j||O.length!=j.length)return!1;let Q;for(let Te=0;Te<O.length;Te++)if(Q=O[Te],!bn(A[Q],V[Q]))return!1;return!0}function bn(A,V){if(Array.isArray(A)&&Array.isArray(V)){if(A.length!==V.length)return!1;const O=[...A].sort(),j=[...V].sort();return O.every((Q,Te)=>j[Te]===Q)}return A===V}function jn(A){return A.length>0?A[A.length-1]:null}function nn(A){return(0,h.A)(A)?A:(0,e.jNT)(A)?(0,ne.H)(Promise.resolve(A)):(0,Z.of)(A)}const Vn={exact:function ke(A,V,O){if(!qt(A.segments,V.segments)||!ut(A.segments,V.segments,O)||A.numberOfChildren!==V.numberOfChildren)return!1;for(const j in V.children)if(!A.children[j]||!ke(A.children[j],V.children[j],O))return!1;return!0},subset:xe},oi={exact:function xt(A,V){return Vt(A,V)},subset:function re(A,V){return Object.keys(V).length<=Object.keys(A).length&&Object.keys(V).every(O=>bn(A[O],V[O]))},ignored:()=>!0};function Ci(A,V,O){return Vn[O.paths](A.root,V.root,O.matrixParams)&&oi[O.queryParams](A.queryParams,V.queryParams)&&!("exact"===O.fragment&&A.fragment!==V.fragment)}function xe(A,V,O){return Ve(A,V,V.segments,O)}function Ve(A,V,O,j){if(A.segments.length>O.length){const Q=A.segments.slice(0,O.length);return!(!qt(Q,O)||V.hasChildren()||!ut(Q,O,j))}if(A.segments.length===O.length){if(!qt(A.segments,O)||!ut(A.segments,O,j))return!1;for(const Q in V.children)if(!A.children[Q]||!xe(A.children[Q],V.children[Q],j))return!1;return!0}{const Q=O.slice(0,A.segments.length),Te=O.slice(A.segments.length);return!!(qt(A.segments,Q)&&ut(A.segments,Q,j)&&A.children[Ye])&&Ve(A.children[Ye],V,Te,j)}}function ut(A,V,O){return V.every((j,Q)=>oi[O](A[Q].parameters,j.parameters))}class Ft{constructor(V=new sn([],{}),O={},j=null){this.root=V,this.queryParams=O,this.fragment=j}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Be(this.queryParams)),this._queryParamMap}toString(){return Rn.serialize(this)}}class sn{constructor(V,O){this.segments=V,this.children=O,this.parent=null,Object.values(O).forEach(j=>j.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return yn(this)}}class Ln{constructor(V,O){this.path=V,this.parameters=O}get parameterMap(){return this._parameterMap||(this._parameterMap=Be(this.parameters)),this._parameterMap}toString(){return ei(this)}}function qt(A,V){return A.length===V.length&&A.every((O,j)=>O.path===V[j].path)}let Dt=(()=>{class A{static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:function(){return new wt},providedIn:"root"})}}return A})();class wt{parse(V){const O=new on(V);return new Ft(O.parseRootSegment(),O.parseQueryParams(),O.parseFragment())}serialize(V){const O=`/${Hn(V.root,!0)}`,j=function Mn(A){const V=Object.keys(A).map(O=>{const j=A[O];return Array.isArray(j)?j.map(Q=>`${ai(O)}=${ai(Q)}`).join("&"):`${ai(O)}=${ai(j)}`}).filter(O=>!!O);return V.length?`?${V.join("&")}`:""}(V.queryParams);return`${O}${j}${"string"==typeof V.fragment?`#${function zi(A){return encodeURI(A)}(V.fragment)}`:""}`}}const Rn=new wt;function yn(A){return A.segments.map(V=>ei(V)).join("/")}function Hn(A,V){if(!A.hasChildren())return yn(A);if(V){const O=A.children[Ye]?Hn(A.children[Ye],!1):"",j=[];return Object.entries(A.children).forEach(([Q,Te])=>{Q!==Ye&&j.push(`${Q}:${Hn(Te,!1)}`)}),j.length>0?`${O}(${j.join("//")})`:O}{const O=function st(A,V){let O=[];return Object.entries(A.children).forEach(([j,Q])=>{j===Ye&&(O=O.concat(V(Q,j)))}),Object.entries(A.children).forEach(([j,Q])=>{j!==Ye&&(O=O.concat(V(Q,j)))}),O}(A,(j,Q)=>Q===Ye?[Hn(A.children[Ye],!1)]:[`${Q}:${Hn(j,!1)}`]);return 1===Object.keys(A.children).length&&null!=A.children[Ye]?`${yn(A)}/${O[0]}`:`${yn(A)}/(${O.join("//")})`}}function ti(A){return encodeURIComponent(A).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ai(A){return ti(A).replace(/%3B/gi,";")}function us(A){return ti(A).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Bi(A){return decodeURIComponent(A)}function Ps(A){return Bi(A.replace(/\+/g,"%20"))}function ei(A){return`${us(A.path)}${function qs(A){return Object.keys(A).map(V=>`;${us(V)}=${us(A[V])}`).join("")}(A.parameters)}`}const io=/^[^\/()?;#]+/;function an(A){const V=A.match(io);return V?V[0]:""}const kt=/^[^\/()?;=#]+/,Pe=/^[^=?&#]+/,Xe=/^[^&#]+/;class on{constructor(V){this.url=V,this.remaining=V}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new sn([],{}):new sn([],this.parseChildren())}parseQueryParams(){const V={};if(this.consumeOptional("?"))do{this.parseQueryParam(V)}while(this.consumeOptional("&"));return V}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const V=[];for(this.peekStartsWith("(")||V.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),V.push(this.parseSegment());let O={};this.peekStartsWith("/(")&&(this.capture("/"),O=this.parseParens(!0));let j={};return this.peekStartsWith("(")&&(j=this.parseParens(!1)),(V.length>0||Object.keys(O).length>0)&&(j[Ye]=new sn(V,O)),j}parseSegment(){const V=an(this.remaining);if(""===V&&this.peekStartsWith(";"))throw new e.wOt(4009,!1);return this.capture(V),new Ln(Bi(V),this.parseMatrixParams())}parseMatrixParams(){const V={};for(;this.consumeOptional(";");)this.parseParam(V);return V}parseParam(V){const O=function ye(A){const V=A.match(kt);return V?V[0]:""}(this.remaining);if(!O)return;this.capture(O);let j="";if(this.consumeOptional("=")){const Q=an(this.remaining);Q&&(j=Q,this.capture(j))}V[Bi(O)]=Bi(j)}parseQueryParam(V){const O=function Fe(A){const V=A.match(Pe);return V?V[0]:""}(this.remaining);if(!O)return;this.capture(O);let j="";if(this.consumeOptional("=")){const Je=function zt(A){const V=A.match(Xe);return V?V[0]:""}(this.remaining);Je&&(j=Je,this.capture(j))}const Q=Ps(O),Te=Ps(j);if(V.hasOwnProperty(Q)){let Je=V[Q];Array.isArray(Je)||(Je=[Je],V[Q]=Je),Je.push(Te)}else V[Q]=Te}parseParens(V){const O={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const j=an(this.remaining),Q=this.remaining[j.length];if("/"!==Q&&")"!==Q&&";"!==Q)throw new e.wOt(4010,!1);let Te;j.indexOf(":")>-1?(Te=j.slice(0,j.indexOf(":")),this.capture(Te),this.capture(":")):V&&(Te=Ye);const Je=this.parseChildren();O[Te]=1===Object.keys(Je).length?Je[Ye]:new sn([],Je),this.consumeOptional("//")}return O}peekStartsWith(V){return this.remaining.startsWith(V)}consumeOptional(V){return!!this.peekStartsWith(V)&&(this.remaining=this.remaining.substring(V.length),!0)}capture(V){if(!this.consumeOptional(V))throw new e.wOt(4011,!1)}}function gt(A){return A.segments.length>0?new sn([],{[Ye]:A}):A}function Ke(A){const V={};for(const j of Object.keys(A.children)){const Te=Ke(A.children[j]);if(j===Ye&&0===Te.segments.length&&Te.hasChildren())for(const[Je,Xt]of Object.entries(Te.children))V[Je]=Xt;else(Te.segments.length>0||Te.hasChildren())&&(V[j]=Te)}return function Ee(A){if(1===A.numberOfChildren&&A.children[Ye]){const V=A.children[Ye];return new sn(A.segments.concat(V.segments),V.children)}return A}(new sn(A.segments,V))}function Qe(A){return A instanceof Ft}function hn(A){let V;const Q=gt(function O(Te){const Je={};for(const Ht of Te.children){const Pn=O(Ht);Je[Ht.outlet]=Pn}const Xt=new sn(Te.url,Je);return Te===A&&(V=Xt),Xt}(A.root));return V??Q}function nt(A,V,O,j){let Q=A;for(;Q.parent;)Q=Q.parent;if(0===V.length)return $t(Q,Q,Q,O,j);const Te=function gn(A){if("string"==typeof A[0]&&1===A.length&&"/"===A[0])return new mn(!0,0,A);let V=0,O=!1;const j=A.reduce((Q,Te,Je)=>{if("object"==typeof Te&&null!=Te){if(Te.outlets){const Xt={};return Object.entries(Te.outlets).forEach(([Ht,Pn])=>{Xt[Ht]="string"==typeof Pn?Pn.split("/"):Pn}),[...Q,{outlets:Xt}]}if(Te.segmentPath)return[...Q,Te.segmentPath]}return"string"!=typeof Te?[...Q,Te]:0===Je?(Te.split("/").forEach((Xt,Ht)=>{0==Ht&&"."===Xt||(0==Ht&&""===Xt?O=!0:".."===Xt?V++:""!=Xt&&Q.push(Xt))}),Q):[...Q,Te]},[]);return new mn(O,V,j)}(V);if(Te.toRoot())return $t(Q,Q,new sn([],{}),O,j);const Je=function Sn(A,V,O){if(A.isAbsolute)return new ri(V,!0,0);if(!O)return new ri(V,!1,NaN);if(null===O.parent)return new ri(O,!0,0);const j=He(A.commands[0])?0:1;return function Ei(A,V,O){let j=A,Q=V,Te=O;for(;Te>Q;){if(Te-=Q,j=j.parent,!j)throw new e.wOt(4005,!1);Q=j.segments.length}return new ri(j,!1,Q-Te)}(O,O.segments.length-1+j,A.numberOfDoubleDots)}(Te,Q,A),Xt=Je.processChildren?ms(Je.segmentGroup,Je.index,Te.commands):gs(Je.segmentGroup,Je.index,Te.commands);return $t(Q,Je.segmentGroup,Xt,O,j)}function He(A){return"object"==typeof A&&null!=A&&!A.outlets&&!A.segmentPath}function Ze(A){return"object"==typeof A&&null!=A&&A.outlets}function $t(A,V,O,j,Q){let Je,Te={};j&&Object.entries(j).forEach(([Ht,Pn])=>{Te[Ht]=Array.isArray(Pn)?Pn.map(wi=>`${wi}`):`${Pn}`}),Je=A===V?O:fn(A,V,O);const Xt=gt(Ke(Je));return new Ft(Xt,Te,Q)}function fn(A,V,O){const j={};return Object.entries(A.children).forEach(([Q,Te])=>{j[Q]=Te===V?O:fn(Te,V,O)}),new sn(A.segments,j)}class mn{constructor(V,O,j){if(this.isAbsolute=V,this.numberOfDoubleDots=O,this.commands=j,V&&j.length>0&&He(j[0]))throw new e.wOt(4003,!1);const Q=j.find(Ze);if(Q&&Q!==jn(j))throw new e.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ri{constructor(V,O,j){this.segmentGroup=V,this.processChildren=O,this.index=j}}function gs(A,V,O){if(A||(A=new sn([],{})),0===A.segments.length&&A.hasChildren())return ms(A,V,O);const j=function Cs(A,V,O){let j=0,Q=V;const Te={match:!1,pathIndex:0,commandIndex:0};for(;Q<A.segments.length;){if(j>=O.length)return Te;const Je=A.segments[Q],Xt=O[j];if(Ze(Xt))break;const Ht=`${Xt}`,Pn=j<O.length-1?O[j+1]:null;if(Q>0&&void 0===Ht)break;if(Ht&&Pn&&"object"==typeof Pn&&void 0===Pn.outlets){if(!Rt(Ht,Pn,Je))return Te;j+=2}else{if(!Rt(Ht,{},Je))return Te;j++}Q++}return{match:!0,pathIndex:Q,commandIndex:j}}(A,V,O),Q=O.slice(j.commandIndex);if(j.match&&j.pathIndex<A.segments.length){const Te=new sn(A.segments.slice(0,j.pathIndex),{});return Te.children[Ye]=new sn(A.segments.slice(j.pathIndex),A.children),ms(Te,0,Q)}return j.match&&0===Q.length?new sn(A.segments,{}):j.match&&!A.hasChildren()?Es(A,V,O):j.match?ms(A,0,Q):Es(A,V,O)}function ms(A,V,O){if(0===O.length)return new sn(A.segments,{});{const j=function Ns(A){return Ze(A[0])?A[0].outlets:{[Ye]:A}}(O),Q={};if(Object.keys(j).some(Te=>Te!==Ye)&&A.children[Ye]&&1===A.numberOfChildren&&0===A.children[Ye].segments.length){const Te=ms(A.children[Ye],V,O);return new sn(A.segments,Te.children)}return Object.entries(j).forEach(([Te,Je])=>{"string"==typeof Je&&(Je=[Je]),null!==Je&&(Q[Te]=gs(A.children[Te],V,Je))}),Object.entries(A.children).forEach(([Te,Je])=>{void 0===j[Te]&&(Q[Te]=Je)}),new sn(A.segments,Q)}}function Es(A,V,O){const j=A.segments.slice(0,V);let Q=0;for(;Q<O.length;){const Te=O[Q];if(Ze(Te)){const Ht=xi(Te.outlets);return new sn(j,Ht)}if(0===Q&&He(O[0])){j.push(new Ln(A.segments[V].path,Re(O[0]))),Q++;continue}const Je=Ze(Te)?Te.outlets[Ye]:`${Te}`,Xt=Q<O.length-1?O[Q+1]:null;Je&&Xt&&He(Xt)?(j.push(new Ln(Je,Re(Xt))),Q+=2):(j.push(new Ln(Je,{})),Q++)}return new sn(j,{})}function xi(A){const V={};return Object.entries(A).forEach(([O,j])=>{"string"==typeof j&&(j=[j]),null!==j&&(V[O]=Es(new sn([],{}),0,j))}),V}function Re(A){const V={};return Object.entries(A).forEach(([O,j])=>V[O]=`${j}`),V}function Rt(A,V,O){return A==O.path&&Vt(V,O.parameters)}const oe="imperative";class _e{constructor(V,O){this.id=V,this.url=O}}class $e extends _e{constructor(V,O,j="imperative",Q=null){super(V,O),this.type=0,this.navigationTrigger=j,this.restoredState=Q}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pt extends _e{constructor(V,O,j){super(V,O),this.urlAfterRedirects=j,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class tn extends _e{constructor(V,O,j,Q){super(V,O),this.reason=j,this.code=Q,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class An extends _e{constructor(V,O,j,Q){super(V,O),this.reason=j,this.code=Q,this.type=16}}class zn extends _e{constructor(V,O,j,Q){super(V,O),this.error=j,this.target=Q,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class hi extends _e{constructor(V,O,j,Q){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kn extends _e{constructor(V,O,j,Q){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class li extends _e{constructor(V,O,j,Q,Te){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.shouldActivate=Te,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class es extends _e{constructor(V,O,j,Q){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ls extends _e{constructor(V,O,j,Q){super(V,O),this.urlAfterRedirects=j,this.state=Q,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class dr{constructor(V){this.route=V,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Fo{constructor(V){this.route=V,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Ri{constructor(V){this.snapshot=V,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xs{constructor(V){this.snapshot=V,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class as{constructor(V){this.snapshot=V,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ur{constructor(V){this.snapshot=V,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ao{}class Bs{constructor(V){this.url=V}}class Tr{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new hr,this.attachRef=null}}let hr=(()=>{class A{constructor(){this.contexts=new Map}onChildOutletCreated(O,j){const Q=this.getOrCreateContext(O);Q.outlet=j,this.contexts.set(O,Q)}onChildOutletDestroyed(O){const j=this.getContext(O);j&&(j.outlet=null,j.attachRef=null)}onOutletDeactivated(){const O=this.contexts;return this.contexts=new Map,O}onOutletReAttached(O){this.contexts=O}getOrCreateContext(O){let j=this.getContext(O);return j||(j=new Tr,this.contexts.set(O,j)),j}getContext(O){return this.contexts.get(O)||null}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();class Po{constructor(V){this._root=V}get root(){return this._root.value}parent(V){const O=this.pathFromRoot(V);return O.length>1?O[O.length-2]:null}children(V){const O=er(V,this._root);return O?O.children.map(j=>j.value):[]}firstChild(V){const O=er(V,this._root);return O&&O.children.length>0?O.children[0].value:null}siblings(V){const O=Lo(V,this._root);return O.length<2?[]:O[O.length-2].children.map(Q=>Q.value).filter(Q=>Q!==V)}pathFromRoot(V){return Lo(V,this._root).map(O=>O.value)}}function er(A,V){if(A===V.value)return V;for(const O of V.children){const j=er(A,O);if(j)return j}return null}function Lo(A,V){if(A===V.value)return[V];for(const O of V.children){const j=Lo(A,O);if(j.length)return j.unshift(V),j}return[]}class po{constructor(V,O){this.value=V,this.children=O}toString(){return`TreeNode(${this.value})`}}function mo(A){const V={};return A&&A.children.forEach(O=>V[O.value.outlet]=O),V}class yi extends Po{constructor(V,O){super(V),this.snapshot=O,Wo(this,V)}toString(){return this.snapshot.toString()}}function ws(A,V){const O=function qi(A,V){const Je=new Qs([],{},{},"",{},Ye,V,null,{});return new Zs("",new po(Je,[]))}(0,V),j=new De.t([new Ln("",{})]),Q=new De.t({}),Te=new De.t({}),Je=new De.t({}),Xt=new De.t(""),Ht=new Ks(j,Q,Je,Xt,Te,Ye,V,O.root);return Ht.snapshot=O.root,new yi(new po(Ht,[]),O)}class Ks{constructor(V,O,j,Q,Te,Je,Xt,Ht){this.urlSubject=V,this.paramsSubject=O,this.queryParamsSubject=j,this.fragmentSubject=Q,this.dataSubject=Te,this.outlet=Je,this.component=Xt,this._futureSnapshot=Ht,this.title=this.dataSubject?.pipe((0,mt.T)(Pn=>Pn[L]))??(0,Z.of)(void 0),this.url=V,this.params=O,this.queryParams=j,this.fragment=Q,this.data=Te}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,mt.T)(V=>Be(V)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,mt.T)(V=>Be(V)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ds(A,V="emptyOnly"){const O=A.pathFromRoot;let j=0;if("always"!==V)for(j=O.length-1;j>=1;){const Q=O[j],Te=O[j-1];if(Q.routeConfig&&""===Q.routeConfig.path)j--;else{if(Te.component)break;j--}}return function hs(A){return A.reduce((V,O)=>({params:{...V.params,...O.params},data:{...V.data,...O.data},resolve:{...O.data,...V.resolve,...O.routeConfig?.data,...O._resolvedData}}),{params:{},data:{},resolve:{}})}(O.slice(j))}class Qs{get title(){return this.data?.[L]}constructor(V,O,j,Q,Te,Je,Xt,Ht,Pn){this.url=V,this.params=O,this.queryParams=j,this.fragment=Q,this.data=Te,this.outlet=Je,this.component=Xt,this.routeConfig=Ht,this._resolve=Pn}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Be(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Be(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(j=>j.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Zs extends Po{constructor(V,O){super(O),this.url=V,Wo(this,O)}toString(){return Nr(this._root)}}function Wo(A,V){V.value._routerState=A,V.children.forEach(O=>Wo(A,O))}function Nr(A){const V=A.children.length>0?` { ${A.children.map(Nr).join(", ")} } `:"";return`${A.value}${V}`}function Vi(A){if(A.snapshot){const V=A.snapshot,O=A._futureSnapshot;A.snapshot=O,Vt(V.queryParams,O.queryParams)||A.queryParamsSubject.next(O.queryParams),V.fragment!==O.fragment&&A.fragmentSubject.next(O.fragment),Vt(V.params,O.params)||A.paramsSubject.next(O.params),function dt(A,V){if(A.length!==V.length)return!1;for(let O=0;O<A.length;++O)if(!Vt(A[O],V[O]))return!1;return!0}(V.url,O.url)||A.urlSubject.next(O.url),Vt(V.data,O.data)||A.dataSubject.next(O.data)}else A.snapshot=A._futureSnapshot,A.dataSubject.next(A._futureSnapshot.data)}function On(A,V){const O=Vt(A.params,V.params)&&function Qt(A,V){return qt(A,V)&&A.every((O,j)=>Vt(O.parameters,V[j].parameters))}(A.url,V.url);return O&&!(!A.parent!=!V.parent)&&(!A.parent||On(A.parent,V.parent))}let ni=(()=>{class A{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ye,this.activateEvents=new e.bkB,this.deactivateEvents=new e.bkB,this.attachEvents=new e.bkB,this.detachEvents=new e.bkB,this.parentContexts=(0,e.WQX)(hr),this.location=(0,e.WQX)(e.c1b),this.changeDetector=(0,e.WQX)(e.gRc),this.environmentInjector=(0,e.WQX)(e.uvJ),this.inputBinder=(0,e.WQX)(Us,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(O){if(O.name){const{firstChange:j,previousValue:Q}=O.name;if(j)return;this.isTrackedInParentContexts(Q)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Q)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(O){return this.parentContexts.getContext(O)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const O=this.parentContexts.getContext(this.name);O?.route&&(O.attachRef?this.attach(O.attachRef,O.route):this.activateWith(O.route,O.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new e.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new e.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new e.wOt(4012,!1);this.location.detach();const O=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(O.instance),O}attach(O,j){this.activated=O,this._activatedRoute=j,this.location.insert(O.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(O.instance)}deactivate(){if(this.activated){const O=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(O)}}activateWith(O,j){if(this.isActivated)throw new e.wOt(4013,!1);this._activatedRoute=O;const Q=this.location,Je=O.snapshot.component,Xt=this.parentContexts.getOrCreateContext(this.name).children,Ht=new Xi(O,Xt,Q.injector);this.activated=Q.createComponent(Je,{index:Q.length,injector:Ht,environmentInjector:j??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275dir=e.FsC({type:A,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[e.OA$]})}}return A})();class Xi{constructor(V,O,j){this.route=V,this.childContexts=O,this.parent=j}get(V,O){return V===Ks?this.route:V===hr?this.childContexts:this.parent.get(V,O)}}const Us=new e.nKC("");function Ko(A,V,O){if(O&&A.shouldReuseRoute(V.value,O.value.snapshot)){const j=O.value;j._futureSnapshot=V.value;const Q=function Wi(A,V,O){return V.children.map(j=>{for(const Q of O.children)if(A.shouldReuseRoute(j.value,Q.value.snapshot))return Ko(A,j,Q);return Ko(A,j)})}(A,V,O);return new po(j,Q)}{if(A.shouldAttach(V.value)){const Te=A.retrieve(V.value);if(null!==Te){const Je=Te.route;return Je.value._futureSnapshot=V.value,Je.children=V.children.map(Xt=>Ko(A,Xt)),Je}}const j=function fr(A){return new Ks(new De.t(A.url),new De.t(A.params),new De.t(A.queryParams),new De.t(A.fragment),new De.t(A.data),A.outlet,A.component,A)}(V.value),Q=V.children.map(Te=>Ko(A,Te));return new po(j,Q)}}const oo="ngNavigationCancelingError";function ii(A,V){const{redirectTo:O,navigationBehaviorOptions:j}=Qe(V)?{redirectTo:V,navigationBehaviorOptions:void 0}:V,Q=zr(!1,0,V);return Q.url=O,Q.navigationBehaviorOptions=j,Q}function zr(A,V,O){const j=new Error("NavigationCancelingError: "+(A||""));return j[oo]=!0,j.cancellationCode=V,O&&(j.url=O),j}function qr(A){return A&&A[oo]}let Ni=(()=>{class A{static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275cmp=e.VBU({type:A,selectors:[["ng-component"]],standalone:!0,features:[e.aNF],decls:1,vars:0,template:function(j,Q){1&j&&e.nrm(0,"router-outlet")},dependencies:[ni],encapsulation:2})}}return A})();function gi(A){const V=A.children&&A.children.map(gi),O=V?{...A,children:V}:{...A};return!O.component&&!O.loadComponent&&(V||O.loadChildren)&&O.outlet&&O.outlet!==Ye&&(O.component=Ni),O}function Vs(A){return A.outlet||Ye}function mr(A){if(!A)return null;if(A.routeConfig?._injector)return A.routeConfig._injector;for(let V=A.parent;V;V=V.parent){const O=V.routeConfig;if(O?._loadedInjector)return O._loadedInjector;if(O?._injector)return O._injector}return null}class Bo{constructor(V,O,j,Q,Te){this.routeReuseStrategy=V,this.futureState=O,this.currState=j,this.forwardEvent=Q,this.inputBindingEnabled=Te}activate(V){const O=this.futureState._root,j=this.currState?this.currState._root:null;this.deactivateChildRoutes(O,j,V),Vi(this.futureState.root),this.activateChildRoutes(O,j,V)}deactivateChildRoutes(V,O,j){const Q=mo(O);V.children.forEach(Te=>{const Je=Te.value.outlet;this.deactivateRoutes(Te,Q[Je],j),delete Q[Je]}),Object.values(Q).forEach(Te=>{this.deactivateRouteAndItsChildren(Te,j)})}deactivateRoutes(V,O,j){const Q=V.value,Te=O?O.value:null;if(Q===Te)if(Q.component){const Je=j.getContext(Q.outlet);Je&&this.deactivateChildRoutes(V,O,Je.children)}else this.deactivateChildRoutes(V,O,j);else Te&&this.deactivateRouteAndItsChildren(O,j)}deactivateRouteAndItsChildren(V,O){V.value.component&&this.routeReuseStrategy.shouldDetach(V.value.snapshot)?this.detachAndStoreRouteSubtree(V,O):this.deactivateRouteAndOutlet(V,O)}detachAndStoreRouteSubtree(V,O){const j=O.getContext(V.value.outlet),Q=j&&V.value.component?j.children:O,Te=mo(V);for(const Je of Object.keys(Te))this.deactivateRouteAndItsChildren(Te[Je],Q);if(j&&j.outlet){const Je=j.outlet.detach(),Xt=j.children.onOutletDeactivated();this.routeReuseStrategy.store(V.value.snapshot,{componentRef:Je,route:V,contexts:Xt})}}deactivateRouteAndOutlet(V,O){const j=O.getContext(V.value.outlet),Q=j&&V.value.component?j.children:O,Te=mo(V);for(const Je of Object.keys(Te))this.deactivateRouteAndItsChildren(Te[Je],Q);j&&(j.outlet&&(j.outlet.deactivate(),j.children.onOutletDeactivated()),j.attachRef=null,j.route=null)}activateChildRoutes(V,O,j){const Q=mo(O);V.children.forEach(Te=>{this.activateRoutes(Te,Q[Te.value.outlet],j),this.forwardEvent(new ur(Te.value.snapshot))}),V.children.length&&this.forwardEvent(new Xs(V.value.snapshot))}activateRoutes(V,O,j){const Q=V.value,Te=O?O.value:null;if(Vi(Q),Q===Te)if(Q.component){const Je=j.getOrCreateContext(Q.outlet);this.activateChildRoutes(V,O,Je.children)}else this.activateChildRoutes(V,O,j);else if(Q.component){const Je=j.getOrCreateContext(Q.outlet);if(this.routeReuseStrategy.shouldAttach(Q.snapshot)){const Xt=this.routeReuseStrategy.retrieve(Q.snapshot);this.routeReuseStrategy.store(Q.snapshot,null),Je.children.onOutletReAttached(Xt.contexts),Je.attachRef=Xt.componentRef,Je.route=Xt.route.value,Je.outlet&&Je.outlet.attach(Xt.componentRef,Xt.route.value),Vi(Xt.route.value),this.activateChildRoutes(V,null,Je.children)}else{const Xt=mr(Q.snapshot);Je.attachRef=null,Je.route=Q,Je.injector=Xt,Je.outlet&&Je.outlet.activateWith(Q,Je.injector),this.activateChildRoutes(V,null,Je.children)}}else this.activateChildRoutes(V,null,j)}}class tr{constructor(V){this.path=V,this.route=this.path[this.path.length-1]}}class ks{constructor(V,O){this.component=V,this.route=O}}function Wr(A,V,O){const j=A._root;return gr(j,V?V._root:null,O,[j.value])}function Ki(A,V){const O=Symbol(),j=V.get(A,O);return j===O?"function"!=typeof A||(0,e.LfX)(A)?V.get(A):A:j}function gr(A,V,O,j,Q={canDeactivateChecks:[],canActivateChecks:[]}){const Te=mo(V);return A.children.forEach(Je=>{(function Vo(A,V,O,j,Q={canDeactivateChecks:[],canActivateChecks:[]}){const Te=A.value,Je=V?V.value:null,Xt=O?O.getContext(A.value.outlet):null;if(Je&&Te.routeConfig===Je.routeConfig){const Ht=function Kr(A,V,O){if("function"==typeof O)return O(A,V);switch(O){case"pathParamsChange":return!qt(A.url,V.url);case"pathParamsOrQueryParamsChange":return!qt(A.url,V.url)||!Vt(A.queryParams,V.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!On(A,V)||!Vt(A.queryParams,V.queryParams);default:return!On(A,V)}}(Je,Te,Te.routeConfig.runGuardsAndResolvers);Ht?Q.canActivateChecks.push(new tr(j)):(Te.data=Je.data,Te._resolvedData=Je._resolvedData),gr(A,V,Te.component?Xt?Xt.children:null:O,j,Q),Ht&&Xt&&Xt.outlet&&Xt.outlet.isActivated&&Q.canDeactivateChecks.push(new ks(Xt.outlet.component,Je))}else Je&&Mi(V,Xt,Q),Q.canActivateChecks.push(new tr(j)),gr(A,null,Te.component?Xt?Xt.children:null:O,j,Q)})(Je,Te[Je.value.outlet],O,j.concat([Je.value]),Q),delete Te[Je.value.outlet]}),Object.entries(Te).forEach(([Je,Xt])=>Mi(Xt,O.getContext(Je),Q)),Q}function Mi(A,V,O){const j=mo(A),Q=A.value;Object.entries(j).forEach(([Te,Je])=>{Mi(Je,Q.component?V?V.children.getContext(Te):null:V,O)}),O.canDeactivateChecks.push(new ks(Q.component&&V&&V.outlet&&V.outlet.isActivated?V.outlet.component:null,Q))}function ha(A){return"function"==typeof A}function et(A){return A instanceof we.G||"EmptyError"===A?.name}const $n=Symbol("INITIAL_VALUE");function _i(){return(0,en.n)(A=>(0,Ie.z)(A.map(V=>V.pipe((0,vt.s)(1),(0,At.Z)($n)))).pipe((0,mt.T)(V=>{for(const O of V)if(!0!==O){if(O===$n)return $n;if(!1===O||O instanceof Ft)return O}return!0}),(0,me.p)(V=>V!==$n),(0,vt.s)(1)))}function hl(A){return(0,Me.F)((0,ze.M)(V=>{if(Qe(V))throw ii(0,V)}),(0,mt.T)(V=>!0===V))}class jo{constructor(V){this.segmentGroup=V||null}}class Go{constructor(V){this.urlTree=V}}function _r(A){return(0,Ge.$)(new jo(A))}function Nl(A){return(0,Ge.$)(new Go(A))}class Ho{constructor(V,O){this.urlSerializer=V,this.urlTree=O}noMatchError(V){return new e.wOt(4002,!1)}lineralizeSegments(V,O){let j=[],Q=O.root;for(;;){if(j=j.concat(Q.segments),0===Q.numberOfChildren)return(0,Z.of)(j);if(Q.numberOfChildren>1||!Q.children[Ye])return(0,Ge.$)(new e.wOt(4e3,!1));Q=Q.children[Ye]}}applyRedirectCommands(V,O,j){return this.applyRedirectCreateUrlTree(O,this.urlSerializer.parse(O),V,j)}applyRedirectCreateUrlTree(V,O,j,Q){const Te=this.createSegmentGroup(V,O.root,j,Q);return new Ft(Te,this.createQueryParams(O.queryParams,this.urlTree.queryParams),O.fragment)}createQueryParams(V,O){const j={};return Object.entries(V).forEach(([Q,Te])=>{if("string"==typeof Te&&Te.startsWith(":")){const Xt=Te.substring(1);j[Q]=O[Xt]}else j[Q]=Te}),j}createSegmentGroup(V,O,j,Q){const Te=this.createSegments(V,O.segments,j,Q);let Je={};return Object.entries(O.children).forEach(([Xt,Ht])=>{Je[Xt]=this.createSegmentGroup(V,Ht,j,Q)}),new sn(Te,Je)}createSegments(V,O,j,Q){return O.map(Te=>Te.path.startsWith(":")?this.findPosParam(V,Te,Q):this.findOrReturn(Te,j))}findPosParam(V,O,j){const Q=j[O.path.substring(1)];if(!Q)throw new e.wOt(4001,!1);return Q}findOrReturn(V,O){let j=0;for(const Q of O){if(Q.path===V.path)return O.splice(j),Q;j++}return V}}const Aa={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fl(A,V,O,j,Q){const Te=ir(A,V,O);return Te.matched?(j=function Xr(A,V){return A.providers&&!A._injector&&(A._injector=(0,e.Ol2)(A.providers,V,`Route: ${A.path}`)),A._injector??V}(V,j),function fa(A,V,O,j){const Q=V.canMatch;if(!Q||0===Q.length)return(0,Z.of)(!0);const Te=Q.map(Je=>{const Xt=Ki(Je,A);return nn(function ee(A){return A&&ha(A.canMatch)}(Xt)?Xt.canMatch(V,O):A.runInContext(()=>Xt(V,O)))});return(0,Z.of)(Te).pipe(_i(),hl())}(j,V,O).pipe((0,mt.T)(Je=>!0===Je?Te:{...Aa}))):(0,Z.of)(Te)}function ir(A,V,O){if(""===V.path)return"full"===V.pathMatch&&(A.hasChildren()||O.length>0)?{...Aa}:{matched:!0,consumedSegments:[],remainingSegments:O,parameters:{},positionalParamSegments:{}};const Q=(V.matcher||pt)(O,A,V);if(!Q)return{...Aa};const Te={};Object.entries(Q.posParams??{}).forEach(([Xt,Ht])=>{Te[Xt]=Ht.path});const Je=Q.consumed.length>0?{...Te,...Q.consumed[Q.consumed.length-1].parameters}:Te;return{matched:!0,consumedSegments:Q.consumed,remainingSegments:O.slice(Q.consumed.length),parameters:Je,positionalParamSegments:Q.posParams??{}}}function Pa(A,V,O,j){return O.length>0&&function Uo(A,V,O){return O.some(j=>Da(A,V,j)&&Vs(j)!==Ye)}(A,O,j)?{segmentGroup:new sn(V,pa(j,new sn(O,A.children))),slicedSegments:[]}:0===O.length&&function Lr(A,V,O){return O.some(j=>Da(A,V,j))}(A,O,j)?{segmentGroup:new sn(A.segments,To(A,0,O,j,A.children)),slicedSegments:O}:{segmentGroup:new sn(A.segments,A.children),slicedSegments:O}}function To(A,V,O,j,Q){const Te={};for(const Je of j)if(Da(A,O,Je)&&!Q[Vs(Je)]){const Xt=new sn([],{});Te[Vs(Je)]=Xt}return{...Q,...Te}}function pa(A,V){const O={};O[Ye]=V;for(const j of A)if(""===j.path&&Vs(j)!==Ye){const Q=new sn([],{});O[Vs(j)]=Q}return O}function Da(A,V,O){return(!(A.hasChildren()||V.length>0)||"full"!==O.pathMatch)&&""===O.path}class Ma{constructor(V,O,j,Q,Te,Je,Xt){this.injector=V,this.configLoader=O,this.rootComponentType=j,this.config=Q,this.urlTree=Te,this.paramsInheritanceStrategy=Je,this.urlSerializer=Xt,this.allowRedirects=!0,this.applyRedirects=new Ho(this.urlSerializer,this.urlTree)}noMatchError(V){return new e.wOt(4002,!1)}recognize(){const V=Pa(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,V,Ye).pipe((0,be.W)(O=>{if(O instanceof Go)return this.allowRedirects=!1,this.urlTree=O.urlTree,this.match(O.urlTree);throw O instanceof jo?this.noMatchError(O):O}),(0,mt.T)(O=>{const j=new Qs([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ye,this.rootComponentType,null,{}),Q=new po(j,O),Te=new Zs("",Q),Je=function Bt(A,V,O=null,j=null){return nt(hn(A),V,O,j)}(j,[],this.urlTree.queryParams,this.urlTree.fragment);return Je.queryParams=this.urlTree.queryParams,Te.url=this.urlSerializer.serialize(Je),this.inheritParamsAndData(Te._root),{state:Te,tree:Je}}))}match(V){return this.processSegmentGroup(this.injector,this.config,V.root,Ye).pipe((0,be.W)(j=>{throw j instanceof jo?this.noMatchError(j):j}))}inheritParamsAndData(V){const O=V.value,j=Ds(O,this.paramsInheritanceStrategy);O.params=Object.freeze(j.params),O.data=Object.freeze(j.data),V.children.forEach(Q=>this.inheritParamsAndData(Q))}processSegmentGroup(V,O,j,Q){return 0===j.segments.length&&j.hasChildren()?this.processChildren(V,O,j):this.processSegment(V,O,j,j.segments,Q,!0)}processChildren(V,O,j){const Q=[];for(const Te of Object.keys(j.children))"primary"===Te?Q.unshift(Te):Q.push(Te);return(0,ne.H)(Q).pipe((0,Wt.H)(Te=>{const Je=j.children[Te],Xt=function Ar(A,V){const O=A.filter(j=>Vs(j)===V);return O.push(...A.filter(j=>Vs(j)!==V)),O}(O,Te);return this.processSegmentGroup(V,Xt,Je,Te)}),(0,Se.S)((Te,Je)=>(Te.push(...Je),Te)),St(null),function K(A,V){const O=arguments.length>=2;return j=>j.pipe(A?(0,me.p)((Q,Te)=>A(Q,Te,j)):En.D,Nt(1),O?St(V):Mt(()=>new we.G))}(),(0,at.Z)(Te=>{if(null===Te)return _r(j);const Je=Fl(Te);return function Ti(A){A.sort((V,O)=>V.value.outlet===Ye?-1:O.value.outlet===Ye?1:V.value.outlet.localeCompare(O.value.outlet))}(Je),(0,Z.of)(Je)}))}processSegment(V,O,j,Q,Te,Je){return(0,ne.H)(O).pipe((0,Wt.H)(Xt=>this.processSegmentAgainstRoute(Xt._injector??V,O,Xt,j,Q,Te,Je).pipe((0,be.W)(Ht=>{if(Ht instanceof jo)return(0,Z.of)(null);throw Ht}))),dn(Xt=>!!Xt),(0,be.W)(Xt=>{if(et(Xt))return function pl(A,V,O){return 0===V.length&&!A.children[O]}(j,Q,Te)?(0,Z.of)([]):_r(j);throw Xt}))}processSegmentAgainstRoute(V,O,j,Q,Te,Je,Xt){return function Zo(A,V,O,j){return!!(Vs(A)===j||j!==Ye&&Da(V,O,A))&&("**"===A.path||ir(V,A,O).matched)}(j,Q,Te,Je)?void 0===j.redirectTo?this.matchSegmentAgainstRoute(V,Q,j,Te,Je,Xt):Xt&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(V,Q,O,j,Te,Je):_r(Q):_r(Q)}expandSegmentAgainstRouteUsingRedirect(V,O,j,Q,Te,Je){return"**"===Q.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(V,j,Q,Je):this.expandRegularSegmentAgainstRouteUsingRedirect(V,O,j,Q,Te,Je)}expandWildCardWithParamsAgainstRouteUsingRedirect(V,O,j,Q){const Te=this.applyRedirects.applyRedirectCommands([],j.redirectTo,{});return j.redirectTo.startsWith("/")?Nl(Te):this.applyRedirects.lineralizeSegments(j,Te).pipe((0,at.Z)(Je=>{const Xt=new sn(Je,{});return this.processSegment(V,O,Xt,Je,Q,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(V,O,j,Q,Te,Je){const{matched:Xt,consumedSegments:Ht,remainingSegments:Pn,positionalParamSegments:wi}=ir(O,Q,Te);if(!Xt)return _r(O);const bs=this.applyRedirects.applyRedirectCommands(Ht,Q.redirectTo,wi);return Q.redirectTo.startsWith("/")?Nl(bs):this.applyRedirects.lineralizeSegments(Q,bs).pipe((0,at.Z)(Fi=>this.processSegment(V,j,O,Fi.concat(Pn),Je,!1)))}matchSegmentAgainstRoute(V,O,j,Q,Te,Je){let Xt;if("**"===j.path){const Ht=Q.length>0?jn(Q).parameters:{},Pn=new Qs(Q,Ht,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,La(j),Vs(j),j.component??j._loadedComponent??null,j,el(j));Xt=(0,Z.of)({snapshot:Pn,consumedSegments:[],remainingSegments:[]}),O.children={}}else Xt=fl(O,j,Q,V).pipe((0,mt.T)(({matched:Ht,consumedSegments:Pn,remainingSegments:wi,parameters:bs})=>Ht?{snapshot:new Qs(Pn,bs,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,La(j),Vs(j),j.component??j._loadedComponent??null,j,el(j)),consumedSegments:Pn,remainingSegments:wi}:null));return Xt.pipe((0,en.n)(Ht=>null===Ht?_r(O):this.getChildConfig(V=j._injector??V,j,Q).pipe((0,en.n)(({routes:Pn})=>{const wi=j._loadedInjector??V,{snapshot:bs,consumedSegments:Fi,remainingSegments:kr}=Ht,{segmentGroup:Ts,slicedSegments:Vr}=Pa(O,Fi,kr,Pn);if(0===Vr.length&&Ts.hasChildren())return this.processChildren(wi,Pn,Ts).pipe((0,mt.T)(ra=>null===ra?null:[new po(bs,ra)]));if(0===Pn.length&&0===Vr.length)return(0,Z.of)([new po(bs,[])]);const il=Vs(j)===Te;return this.processSegment(wi,Pn,Ts,Vr,il?Ye:Te,!0).pipe((0,mt.T)(ra=>[new po(bs,ra)]))}))))}getChildConfig(V,O,j){return O.children?(0,Z.of)({routes:O.children,injector:V}):O.loadChildren?void 0!==O._loadedRoutes?(0,Z.of)({routes:O._loadedRoutes,injector:O._loadedInjector}):function yc(A,V,O,j){const Q=V.canLoad;if(void 0===Q||0===Q.length)return(0,Z.of)(!0);const Te=Q.map(Je=>{const Xt=Ki(Je,A);return nn(function wa(A){return A&&ha(A.canLoad)}(Xt)?Xt.canLoad(V,O):A.runInContext(()=>Xt(V,O)))});return(0,Z.of)(Te).pipe(_i(),hl())}(V,O,j).pipe((0,at.Z)(Q=>Q?this.configLoader.loadChildren(V,O).pipe((0,ze.M)(Te=>{O._loadedRoutes=Te.routes,O._loadedInjector=Te.injector})):function Qr(A){return(0,Ge.$)(zr(!1,3))}())):(0,Z.of)({routes:[],injector:V})}}function Zr(A){const V=A.value.routeConfig;return V&&""===V.path}function Fl(A){const V=[],O=new Set;for(const j of A){if(!Zr(j)){V.push(j);continue}const Q=V.find(Te=>j.value.routeConfig===Te.value.routeConfig);void 0!==Q?(Q.children.push(...j.children),O.add(Q)):V.push(j)}for(const j of O){const Q=Fl(j.children);V.push(new po(j.value,Q))}return V.filter(j=>!O.has(j))}function La(A){return A.data||{}}function el(A){return A.resolve||{}}function tl(A){return"string"==typeof A.title||null===A.title}function ea(A){return(0,en.n)(V=>{const O=A(V);return O?(0,ne.H)(O).pipe((0,mt.T)(()=>V)):(0,Z.of)(V)})}const Eo=new e.nKC("ROUTES");let P=(()=>{class A{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,e.WQX)(e.Ql9)}loadComponent(O){if(this.componentLoaders.get(O))return this.componentLoaders.get(O);if(O._loadedComponent)return(0,Z.of)(O._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(O);const j=nn(O.loadComponent()).pipe((0,mt.T)(te),(0,ze.M)(Te=>{this.onLoadEndListener&&this.onLoadEndListener(O),O._loadedComponent=Te}),(0,je.j)(()=>{this.componentLoaders.delete(O)})),Q=new yt.G(j,()=>new _t.B).pipe((0,le.B)());return this.componentLoaders.set(O,Q),Q}loadChildren(O,j){if(this.childrenLoaders.get(j))return this.childrenLoaders.get(j);if(j._loadedRoutes)return(0,Z.of)({routes:j._loadedRoutes,injector:j._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(j);const Te=function ae(A,V,O,j){return nn(A.loadChildren()).pipe((0,mt.T)(te),(0,at.Z)(Q=>Q instanceof e.Co$||Array.isArray(Q)?(0,Z.of)(Q):(0,ne.H)(V.compileModuleAsync(Q))),(0,mt.T)(Q=>{j&&j(A);let Te,Je,Xt=!1;return Array.isArray(Q)?(Je=Q,!0):(Te=Q.create(O).injector,Je=Te.get(Eo,[],{optional:!0,self:!0}).flat()),{routes:Je.map(gi),injector:Te}}))}(j,this.compiler,O,this.onLoadEndListener).pipe((0,je.j)(()=>{this.childrenLoaders.delete(j)})),Je=new yt.G(Te,()=>new _t.B).pipe((0,le.B)());return this.childrenLoaders.set(j,Je),Je}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();function te(A){return function Y(A){return A&&"object"==typeof A&&"default"in A}(A)?A.default:A}let We=(()=>{class A{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new _t.B,this.transitionAbortSubject=new _t.B,this.configLoader=(0,e.WQX)(P),this.environmentInjector=(0,e.WQX)(e.uvJ),this.urlSerializer=(0,e.WQX)(Dt),this.rootContexts=(0,e.WQX)(hr),this.inputBindingEnabled=null!==(0,e.WQX)(Us,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,Z.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Q=>this.events.next(new Fo(Q)),this.configLoader.onLoadStartListener=Q=>this.events.next(new dr(Q))}complete(){this.transitions?.complete()}handleNavigationRequest(O){const j=++this.navigationId;this.transitions?.next({...this.transitions.value,...O,id:j})}setupNavigations(O,j,Q){return this.transitions=new De.t({id:0,currentUrlTree:j,currentRawUrl:j,currentBrowserUrl:j,extractedUrl:O.urlHandlingStrategy.extract(j),urlAfterRedirects:O.urlHandlingStrategy.extract(j),rawUrl:j,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:oe,restoredState:null,currentSnapshot:Q.snapshot,targetSnapshot:null,currentRouterState:Q,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,me.p)(Te=>0!==Te.id),(0,mt.T)(Te=>({...Te,extractedUrl:O.urlHandlingStrategy.extract(Te.rawUrl)})),(0,en.n)(Te=>{this.currentTransition=Te;let Je=!1,Xt=!1;return(0,Z.of)(Te).pipe((0,ze.M)(Ht=>{this.currentNavigation={id:Ht.id,initialUrl:Ht.rawUrl,extractedUrl:Ht.extractedUrl,trigger:Ht.source,extras:Ht.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,en.n)(Ht=>{const Pn=Ht.currentBrowserUrl.toString(),wi=!O.navigated||Ht.extractedUrl.toString()!==Pn||Pn!==Ht.currentUrlTree.toString();if(!wi&&"reload"!==(Ht.extras.onSameUrlNavigation??O.onSameUrlNavigation)){const Fi="";return this.events.next(new An(Ht.id,this.urlSerializer.serialize(Ht.rawUrl),Fi,0)),Ht.resolve(null),Ue.w}if(O.urlHandlingStrategy.shouldProcessUrl(Ht.rawUrl))return(0,Z.of)(Ht).pipe((0,en.n)(Fi=>{const kr=this.transitions?.getValue();return this.events.next(new $e(Fi.id,this.urlSerializer.serialize(Fi.extractedUrl),Fi.source,Fi.restoredState)),kr!==this.transitions?.getValue()?Ue.w:Promise.resolve(Fi)}),function Zl(A,V,O,j,Q,Te){return(0,at.Z)(Je=>function sr(A,V,O,j,Q,Te,Je="emptyOnly"){return new Ma(A,V,O,j,Q,Je,Te).recognize()}(A,V,O,j,Je.extractedUrl,Q,Te).pipe((0,mt.T)(({state:Xt,tree:Ht})=>({...Je,targetSnapshot:Xt,urlAfterRedirects:Ht}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,O.config,this.urlSerializer,O.paramsInheritanceStrategy),(0,ze.M)(Fi=>{Te.targetSnapshot=Fi.targetSnapshot,Te.urlAfterRedirects=Fi.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Fi.urlAfterRedirects};const kr=new hi(Fi.id,this.urlSerializer.serialize(Fi.extractedUrl),this.urlSerializer.serialize(Fi.urlAfterRedirects),Fi.targetSnapshot);this.events.next(kr)}));if(wi&&O.urlHandlingStrategy.shouldProcessUrl(Ht.currentRawUrl)){const{id:Fi,extractedUrl:kr,source:Ts,restoredState:Vr,extras:il}=Ht,ra=new $e(Fi,this.urlSerializer.serialize(kr),Ts,Vr);this.events.next(ra);const Mc=ws(0,this.rootComponentType).snapshot;return this.currentTransition=Te={...Ht,targetSnapshot:Mc,urlAfterRedirects:kr,extras:{...il,skipLocationChange:!1,replaceUrl:!1}},(0,Z.of)(Te)}{const Fi="";return this.events.next(new An(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),Fi,1)),Ht.resolve(null),Ue.w}}),(0,ze.M)(Ht=>{const Pn=new Kn(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot);this.events.next(Pn)}),(0,mt.T)(Ht=>(this.currentTransition=Te={...Ht,guards:Wr(Ht.targetSnapshot,Ht.currentSnapshot,this.rootContexts)},Te)),function Er(A,V){return(0,at.Z)(O=>{const{targetSnapshot:j,currentSnapshot:Q,guards:{canActivateChecks:Te,canDeactivateChecks:Je}}=O;return 0===Je.length&&0===Te.length?(0,Z.of)({...O,guardsResult:!0}):function Pr(A,V,O,j){return(0,ne.H)(A).pipe((0,at.Z)(Q=>function Ql(A,V,O,j,Q){const Te=V&&V.routeConfig?V.routeConfig.canDeactivate:null;if(!Te||0===Te.length)return(0,Z.of)(!0);const Je=Te.map(Xt=>{const Ht=mr(V)??Q,Pn=Ki(Xt,Ht);return nn(function J(A){return A&&ha(A.canDeactivate)}(Pn)?Pn.canDeactivate(A,V,O,j):Ht.runInContext(()=>Pn(A,V,O,j))).pipe(dn())});return(0,Z.of)(Je).pipe(_i())}(Q.component,Q.route,O,V,j)),dn(Q=>!0!==Q,!0))}(Je,j,Q,A).pipe((0,at.Z)(Xt=>Xt&&function cl(A){return"boolean"==typeof A}(Xt)?function dl(A,V,O,j){return(0,ne.H)(V).pipe((0,Wt.H)(Q=>(0,Oe.x)(function bc(A,V){return null!==A&&V&&V(new Ri(A)),(0,Z.of)(!0)}(Q.route.parent,j),function vc(A,V){return null!==A&&V&&V(new as(A)),(0,Z.of)(!0)}(Q.route,j),function Ja(A,V,O){const j=V[V.length-1],Te=V.slice(0,V.length-1).reverse().map(Je=>function Fs(A){const V=A.routeConfig?A.routeConfig.canActivateChild:null;return V&&0!==V.length?{node:A,guards:V}:null}(Je)).filter(Je=>null!==Je).map(Je=>(0,Ne.v)(()=>{const Xt=Je.guards.map(Ht=>{const Pn=mr(Je.node)??O,wi=Ki(Ht,Pn);return nn(function nr(A){return A&&ha(A.canActivateChild)}(wi)?wi.canActivateChild(j,A):Pn.runInContext(()=>wi(j,A))).pipe(dn())});return(0,Z.of)(Xt).pipe(_i())}));return(0,Z.of)(Te).pipe(_i())}(A,Q.path,O),function ul(A,V,O){const j=V.routeConfig?V.routeConfig.canActivate:null;if(!j||0===j.length)return(0,Z.of)(!0);const Q=j.map(Te=>(0,Ne.v)(()=>{const Je=mr(V)??O,Xt=Ki(Te,Je);return nn(function Rl(A){return A&&ha(A.canActivate)}(Xt)?Xt.canActivate(V,A):Je.runInContext(()=>Xt(V,A))).pipe(dn())}));return(0,Z.of)(Q).pipe(_i())}(A,Q.route,O))),dn(Q=>!0!==Q,!0))}(j,Te,A,V):(0,Z.of)(Xt)),(0,mt.T)(Xt=>({...O,guardsResult:Xt})))})}(this.environmentInjector,Ht=>this.events.next(Ht)),(0,ze.M)(Ht=>{if(Te.guardsResult=Ht.guardsResult,Qe(Ht.guardsResult))throw ii(0,Ht.guardsResult);const Pn=new li(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects),Ht.targetSnapshot,!!Ht.guardsResult);this.events.next(Pn)}),(0,me.p)(Ht=>!!Ht.guardsResult||(this.cancelNavigationTransition(Ht,"",3),!1)),ea(Ht=>{if(Ht.guards.canActivateChecks.length)return(0,Z.of)(Ht).pipe((0,ze.M)(Pn=>{const wi=new es(Pn.id,this.urlSerializer.serialize(Pn.extractedUrl),this.urlSerializer.serialize(Pn.urlAfterRedirects),Pn.targetSnapshot);this.events.next(wi)}),(0,en.n)(Pn=>{let wi=!1;return(0,Z.of)(Pn).pipe(function Jl(A,V){return(0,at.Z)(O=>{const{targetSnapshot:j,guards:{canActivateChecks:Q}}=O;if(!Q.length)return(0,Z.of)(O);let Te=0;return(0,ne.H)(Q).pipe((0,Wt.H)(Je=>function Al(A,V,O,j){const Q=A.routeConfig,Te=A._resolve;return void 0!==Q?.title&&!tl(Q)&&(Te[L]=Q.title),function Pi(A,V,O,j){const Q=function Cc(A){return[...Object.keys(A),...Object.getOwnPropertySymbols(A)]}(A);if(0===Q.length)return(0,Z.of)({});const Te={};return(0,ne.H)(Q).pipe((0,at.Z)(Je=>function Jr(A,V,O,j){const Q=mr(V)??j,Te=Ki(A,Q);return nn(Te.resolve?Te.resolve(V,O):Q.runInContext(()=>Te(V,O)))}(A[Je],V,O,j).pipe(dn(),(0,ze.M)(Xt=>{Te[Je]=Xt}))),Nt(1),(0,ge.u)(Te),(0,be.W)(Je=>et(Je)?Ue.w:(0,Ge.$)(Je)))}(Te,A,V,j).pipe((0,mt.T)(Je=>(A._resolvedData=Je,A.data=Ds(A,O).resolve,Q&&tl(Q)&&(A.data[L]=Q.title),null)))}(Je.route,j,A,V)),(0,ze.M)(()=>Te++),Nt(1),(0,at.Z)(Je=>Te===Q.length?(0,Z.of)(O):Ue.w))})}(O.paramsInheritanceStrategy,this.environmentInjector),(0,ze.M)({next:()=>wi=!0,complete:()=>{wi||this.cancelNavigationTransition(Pn,"",2)}}))}),(0,ze.M)(Pn=>{const wi=new Ls(Pn.id,this.urlSerializer.serialize(Pn.extractedUrl),this.urlSerializer.serialize(Pn.urlAfterRedirects),Pn.targetSnapshot);this.events.next(wi)}))}),ea(Ht=>{const Pn=wi=>{const bs=[];wi.routeConfig?.loadComponent&&!wi.routeConfig._loadedComponent&&bs.push(this.configLoader.loadComponent(wi.routeConfig).pipe((0,ze.M)(Fi=>{wi.component=Fi}),(0,mt.T)(()=>{})));for(const Fi of wi.children)bs.push(...Pn(Fi));return bs};return(0,Ie.z)(Pn(Ht.targetSnapshot.root)).pipe(St(),(0,vt.s)(1))}),ea(()=>this.afterPreactivation()),(0,mt.T)(Ht=>{const Pn=function so(A,V,O){const j=Ko(A,V._root,O?O._root:void 0);return new yi(j,V)}(O.routeReuseStrategy,Ht.targetSnapshot,Ht.currentRouterState);return this.currentTransition=Te={...Ht,targetRouterState:Pn},Te}),(0,ze.M)(()=>{this.events.next(new Ao)}),((A,V,O,j)=>(0,mt.T)(Q=>(new Bo(V,Q.targetRouterState,Q.currentRouterState,O,j).activate(A),Q)))(this.rootContexts,O.routeReuseStrategy,Ht=>this.events.next(Ht),this.inputBindingEnabled),(0,vt.s)(1),(0,ze.M)({next:Ht=>{Je=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Pt(Ht.id,this.urlSerializer.serialize(Ht.extractedUrl),this.urlSerializer.serialize(Ht.urlAfterRedirects))),O.titleStrategy?.updateTitle(Ht.targetRouterState.snapshot),Ht.resolve(!0)},complete:()=>{Je=!0}}),(0,ce.Q)(this.transitionAbortSubject.pipe((0,ze.M)(Ht=>{throw Ht}))),(0,je.j)(()=>{Je||Xt||this.cancelNavigationTransition(Te,"",1),this.currentNavigation?.id===Te.id&&(this.currentNavigation=null)}),(0,be.W)(Ht=>{if(Xt=!0,qr(Ht))this.events.next(new tn(Te.id,this.urlSerializer.serialize(Te.extractedUrl),Ht.message,Ht.cancellationCode)),function Fa(A){return qr(A)&&Qe(A.url)}(Ht)?this.events.next(new Bs(Ht.url)):Te.resolve(!1);else{this.events.next(new zn(Te.id,this.urlSerializer.serialize(Te.extractedUrl),Ht,Te.targetSnapshot??void 0));try{Te.resolve(O.errorHandler(Ht))}catch(Pn){Te.reject(Pn)}}return Ue.w}))}))}cancelNavigationTransition(O,j,Q){const Te=new tn(O.id,this.urlSerializer.serialize(O.extractedUrl),j,Q);this.events.next(Te),O.resolve(!1)}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();function Yt(A){return A!==oe}let un=(()=>{class A{buildTitle(O){let j,Q=O.root;for(;void 0!==Q;)j=this.getResolvedTitleForRoute(Q)??j,Q=Q.children.find(Te=>Te.outlet===Ye);return j}getResolvedTitleForRoute(O){return O.data[L]}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:function(){return(0,e.WQX)(Gn)},providedIn:"root"})}}return A})(),Gn=(()=>{class A extends un{constructor(O){super(),this.title=O}updateTitle(O){const j=this.buildTitle(O);void 0!==j&&this.title.setTitle(j)}static{this.\u0275fac=function(j){return new(j||A)(e.KVO(ue.hE))}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})(),ts=(()=>{class A{static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:function(){return(0,e.WQX)(Si)},providedIn:"root"})}}return A})();class ji{shouldDetach(V){return!1}store(V,O){}shouldAttach(V){return!1}retrieve(V){return null}shouldReuseRoute(V,O){return V.routeConfig===O.routeConfig}}let Si=(()=>{class A extends ji{static{this.\u0275fac=function(){let O;return function(Q){return(O||(O=e.xGo(A)))(Q||A)}}()}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();const Zn=new e.nKC("",{providedIn:"root",factory:()=>({})});let ki=(()=>{class A{static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:function(){return(0,e.WQX)(Hi)},providedIn:"root"})}}return A})(),Hi=(()=>{class A{shouldProcessUrl(O){return!0}extract(O){return O}merge(O,j){return O}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();var Li=function(A){return A[A.COMPLETE=0]="COMPLETE",A[A.FAILED=1]="FAILED",A[A.REDIRECTING=2]="REDIRECTING",A}(Li||{});function cs(A){throw A}function So(A,V,O){return V.parse("/")}const bo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ta={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ns=(()=>{class A{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.location.getState()?.\u0275routerPageId??this.currentPageId}get events(){return this._events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,e.WQX)(e.H3F),this.isNgZoneEnabled=!1,this._events=new _t.B,this.options=(0,e.WQX)(Zn,{optional:!0})||{},this.pendingTasks=(0,e.WQX)(e.$K3),this.errorHandler=this.options.errorHandler||cs,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||So,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,e.WQX)(ki),this.routeReuseStrategy=(0,e.WQX)(ts),this.titleStrategy=(0,e.WQX)(un),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=(0,e.WQX)(Eo,{optional:!0})?.flat()??[],this.navigationTransitions=(0,e.WQX)(We),this.urlSerializer=(0,e.WQX)(Dt),this.location=(0,e.WQX)(ft.aZ),this.componentInputBindingEnabled=!!(0,e.WQX)(Us,{optional:!0}),this.eventsSubscription=new bt.yU,this.isNgZoneEnabled=(0,e.WQX)(e.SKi)instanceof e.SKi&&e.SKi.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ft,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ws(0,null),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe(O=>{this.lastSuccessfulId=O.id,this.currentPageId=this.browserPageId},O=>{this.console.warn(`Unhandled Navigation Error: ${O}`)}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const O=this.navigationTransitions.events.subscribe(j=>{try{const{currentTransition:Q}=this.navigationTransitions;if(null===Q)return void(vs(j)&&this._events.next(j));if(j instanceof $e)Yt(Q.source)&&(this.browserUrlTree=Q.extractedUrl);else if(j instanceof An)this.rawUrlTree=Q.rawUrl;else if(j instanceof hi){if("eager"===this.urlUpdateStrategy){if(!Q.extras.skipLocationChange){const Te=this.urlHandlingStrategy.merge(Q.urlAfterRedirects,Q.rawUrl);this.setBrowserUrl(Te,Q)}this.browserUrlTree=Q.urlAfterRedirects}}else if(j instanceof Ao)this.currentUrlTree=Q.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(Q.urlAfterRedirects,Q.rawUrl),this.routerState=Q.targetRouterState,"deferred"===this.urlUpdateStrategy&&(Q.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,Q),this.browserUrlTree=Q.urlAfterRedirects);else if(j instanceof tn)0!==j.code&&1!==j.code&&(this.navigated=!0),(3===j.code||2===j.code)&&this.restoreHistory(Q);else if(j instanceof Bs){const Te=this.urlHandlingStrategy.merge(j.url,Q.currentRawUrl),Je={skipLocationChange:Q.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Yt(Q.source)};this.scheduleNavigation(Te,oe,null,Je,{resolve:Q.resolve,reject:Q.reject,promise:Q.promise})}j instanceof zn&&this.restoreHistory(Q,!0),j instanceof Pt&&(this.navigated=!0),vs(j)&&this._events.next(j)}catch(Q){this.navigationTransitions.transitionAbortSubject.next(Q)}});this.eventsSubscription.add(O)}resetRootComponentType(O){this.routerState.root.component=O,this.navigationTransitions.rootComponentType=O}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const O=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),oe,O)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(O=>{const j="popstate"===O.type?"popstate":"hashchange";"popstate"===j&&setTimeout(()=>{this.navigateToSyncWithBrowser(O.url,j,O.state)},0)}))}navigateToSyncWithBrowser(O,j,Q){const Te={replaceUrl:!0},Je=Q?.navigationId?Q:null;if(Q){const Ht={...Q};delete Ht.navigationId,delete Ht.\u0275routerPageId,0!==Object.keys(Ht).length&&(Te.state=Ht)}const Xt=this.parseUrl(O);this.scheduleNavigation(Xt,j,Je,Te)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(O){this.config=O.map(gi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(O,j={}){const{relativeTo:Q,queryParams:Te,fragment:Je,queryParamsHandling:Xt,preserveFragment:Ht}=j,Pn=Ht?this.currentUrlTree.fragment:Je;let bs,wi=null;switch(Xt){case"merge":wi={...this.currentUrlTree.queryParams,...Te};break;case"preserve":wi=this.currentUrlTree.queryParams;break;default:wi=Te||null}null!==wi&&(wi=this.removeEmptyProps(wi));try{bs=hn(Q?Q.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof O[0]||!O[0].startsWith("/"))&&(O=[]),bs=this.currentUrlTree.root}return nt(bs,O,wi,Pn??null)}navigateByUrl(O,j={skipLocationChange:!1}){const Q=Qe(O)?O:this.parseUrl(O),Te=this.urlHandlingStrategy.merge(Q,this.rawUrlTree);return this.scheduleNavigation(Te,oe,null,j)}navigate(O,j={skipLocationChange:!1}){return function Yo(A){for(let V=0;V<A.length;V++)if(null==A[V])throw new e.wOt(4008,!1)}(O),this.navigateByUrl(this.createUrlTree(O,j),j)}serializeUrl(O){return this.urlSerializer.serialize(O)}parseUrl(O){let j;try{j=this.urlSerializer.parse(O)}catch(Q){j=this.malformedUriErrorHandler(Q,this.urlSerializer,O)}return j}isActive(O,j){let Q;if(Q=!0===j?{...bo}:!1===j?{...ta}:j,Qe(O))return Ci(this.currentUrlTree,O,Q);const Te=this.parseUrl(O);return Ci(this.currentUrlTree,Te,Q)}removeEmptyProps(O){return Object.keys(O).reduce((j,Q)=>{const Te=O[Q];return null!=Te&&(j[Q]=Te),j},{})}scheduleNavigation(O,j,Q,Te,Je){if(this.disposed)return Promise.resolve(!1);let Xt,Ht,Pn;Je?(Xt=Je.resolve,Ht=Je.reject,Pn=Je.promise):Pn=new Promise((bs,Fi)=>{Xt=bs,Ht=Fi});const wi=this.pendingTasks.add();return function $o(A,V){A.events.pipe((0,me.p)(O=>O instanceof Pt||O instanceof tn||O instanceof zn||O instanceof An),(0,mt.T)(O=>O instanceof Pt||O instanceof An?Li.COMPLETE:O instanceof tn&&(0===O.code||1===O.code)?Li.REDIRECTING:Li.FAILED),(0,me.p)(O=>O!==Li.REDIRECTING),(0,vt.s)(1)).subscribe(()=>{V()})}(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(wi))}),this.navigationTransitions.handleNavigationRequest({source:j,restoredState:Q,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,currentBrowserUrl:this.browserUrlTree,rawUrl:O,extras:Te,resolve:Xt,reject:Ht,promise:Pn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Pn.catch(bs=>Promise.reject(bs))}setBrowserUrl(O,j){const Q=this.urlSerializer.serialize(O);if(this.location.isCurrentPathEqualTo(Q)||j.extras.replaceUrl){const Je={...j.extras.state,...this.generateNgRouterState(j.id,this.browserPageId)};this.location.replaceState(Q,"",Je)}else{const Te={...j.extras.state,...this.generateNgRouterState(j.id,this.browserPageId+1)};this.location.go(Q,"",Te)}}restoreHistory(O,j=!1){if("computed"===this.canceledNavigationResolution){const Te=this.currentPageId-this.browserPageId;0!==Te?this.location.historyGo(Te):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Te&&(this.resetState(O),this.browserUrlTree=O.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(j&&this.resetState(O),this.resetUrlToCurrentUrlTree())}resetState(O){this.routerState=O.currentRouterState,this.currentUrlTree=O.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,O.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(O,j){return"computed"===this.canceledNavigationResolution?{navigationId:O,\u0275routerPageId:j}:{navigationId:O}}static{this.\u0275fac=function(j){return new(j||A)}}static{this.\u0275prov=e.jDH({token:A,factory:A.\u0275fac,providedIn:"root"})}}return A})();function vs(A){return!(A instanceof Ao||A instanceof Bs)}},6911:(pn,ct,N)=>{N.d(ct,{Lw:()=>Ld,Bq:()=>Ur,UN:()=>Tf});var e=N(7705),h=N(1985),ne=N(983),Z=N(7673),De=N(1413),we=N(3726),Ie=N(1584),Oe=N(8750);const{isArray:Ne}=Array;function Me(f){return 1===f.length&&Ne(f[0])?f[0]:f}var Ge=N(4360);N(7786);var bt=N(9326);function ft(...f){const x=(0,bt.ms)(f),a=Me(f);return a.length?new h.c(p=>{let E=a.map(()=>[]),q=a.map(()=>!1);p.add(()=>{E=q=null});for(let se=0;!p.closed&&se<a.length;se++)(0,Oe.Tg)(a[se]).subscribe((0,Ge._)(p,lt=>{if(E[se].push(lt),E.every(Tt=>Tt.length)){const Tt=E.map(jt=>jt.shift());p.next(x?x(...Tt):Tt),E.some((jt,Gt)=>!jt.length&&q[Gt])&&p.complete()}},()=>{q[se]=!0,!E[se].length&&p.complete()}));return()=>{E=q=null}}):ne.w}var mt=N(8793),vt=N(6977),At=N(5964),me=N(6697),at=N(8141),rt=N(6354),ht=N(9974),St=N(3669),Mt=N(5343);function cn(...f){const x=(0,bt.ms)(f);return(0,ht.N)((a,p)=>{const E=f.length,q=new Array(E);let se=f.map(()=>!1),lt=!1;for(let Tt=0;Tt<E;Tt++)(0,Oe.Tg)(f[Tt]).subscribe((0,Ge._)(p,jt=>{q[Tt]=jt,!lt&&!se[Tt]&&(se[Tt]=!0,(lt=se.every(St.D))&&(se=null))},Mt.l));a.subscribe((0,Ge._)(p,Tt=>{if(lt){const jt=[Tt,...q];p.next(x?x(...jt):jt)}}))})}N(1986);var dn=N(5558),Se=(N(9172),N(3294),N(5245),N(177));Error,N(9417),Math,Math,Math;const dl=["*"],Zl=["dialog"];function Zt(f){return"string"==typeof f}function Sr(f){return null!=f}function ka(f){return(f||document.body).getBoundingClientRect()}const co={animation:!0,transitionTimerDelayMs:5},rr=()=>{},{transitionTimerDelayMs:A}=co,V=new Map,O=(f,x,a,p)=>{let E=p.context||{};const q=V.get(x);if(q)switch(p.runningTransition){case"continue":return ne.w;case"stop":f.run(()=>q.transition$.complete()),E=Object.assign(q.context,E),V.delete(x)}const se=a(x,p.animation,E)||rr;if(!p.animation||"none"===window.getComputedStyle(x).transitionProperty)return f.run(()=>se()),(0,Z.of)(void 0).pipe(function Dc(f){return x=>new h.c(a=>x.subscribe({next:se=>f.run(()=>a.next(se)),error:se=>f.run(()=>a.error(se)),complete:()=>f.run(()=>a.complete())}))}(f));const lt=new De.B,Tt=new De.B,jt=lt.pipe(function en(...f){return x=>(0,mt.x)(x,(0,Z.of)(...f))}(!0));V.set(x,{transition$:lt,complete:()=>{Tt.next(),Tt.complete()},context:E});const Gt=function Vl(f){const{transitionDelay:x,transitionDuration:a}=window.getComputedStyle(f);return 1e3*(parseFloat(x)+parseFloat(a))}(x);return f.runOutsideAngular(()=>{const Nn=(0,we.R)(x,"transitionend").pipe((0,vt.Q)(jt),(0,At.p)(({target:xn})=>xn===x));(function Ue(...f){return 1===(f=Me(f)).length?(0,Oe.Tg)(f[0]):new h.c(function yt(f){return x=>{let a=[];for(let p=0;a&&!x.closed&&p<f.length;p++)a.push((0,Oe.Tg)(f[p]).subscribe((0,Ge._)(x,E=>{if(a){for(let q=0;q<a.length;q++)q!==p&&a[q].unsubscribe();a=null}x.next(E)})))}}(f))})((0,Ie.O)(Gt+A).pipe((0,vt.Q)(jt)),Nn,Tt).pipe((0,vt.Q)(jt)).subscribe(()=>{V.delete(x),f.run(()=>{se(),lt.next(),lt.complete()})})}),lt.asObservable()};let Je=(()=>{class f{constructor(){this.animation=co.animation}static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),_a=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),eo=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Ua=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Cl=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})();var di=function(f){return f[f.Tab=9]="Tab",f[f.Enter=13]="Enter",f[f.Escape=27]="Escape",f[f.Space=32]="Space",f[f.PageUp=33]="PageUp",f[f.PageDown=34]="PageDown",f[f.End=35]="End",f[f.Home=36]="Home",f[f.ArrowLeft=37]="ArrowLeft",f[f.ArrowUp=38]="ArrowUp",f[f.ArrowRight=39]="ArrowRight",f[f.ArrowDown=40]="ArrowDown",f}(di||{});typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));const S=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function w(f){const x=Array.from(f.querySelectorAll(S)).filter(a=>-1!==a.tabIndex);return[x[0],x[x.length-1]]}new Date(1882,10,12),new Date(2174,10,25);let k=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Or=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})();class Co{constructor(x,a,p){this.nodes=x,this.viewRef=a,this.componentRef=p}}let Tu=(()=>{class f{constructor(a,p){this._el=a,this._zone=p}ngOnInit(){this._zone.onStable.asObservable().pipe((0,me.s)(1)).subscribe(()=>{O(this._zone,this._el.nativeElement,(a,p)=>{p&&ka(a),a.classList.add("show")},{animation:this.animation,runningTransition:"continue"})})}hide(){return O(this._zone,this._el.nativeElement,({classList:a})=>a.remove("show"),{animation:this.animation,runningTransition:"stop"})}static{this.\u0275fac=function(p){return new(p||f)(e.rXU(e.aKT),e.rXU(e.SKi))}}static{this.\u0275cmp=e.VBU({type:f,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1055"],hostVars:6,hostBindings:function(p,E){2&p&&(e.HbH("modal-backdrop"+(E.backdropClass?" "+E.backdropClass:"")),e.AVh("show",!E.animation)("fade",E.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},standalone:!0,features:[e.aNF],decls:0,vars:0,template:function(p,E){},encapsulation:2})}}return f})();class Ld{update(x){}close(x){}dismiss(x){}}const Eu=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","fullscreen","keyboard","scrollable","size","windowClass","modalDialogClass"],Bd=["animation","backdropClass"];class Su{_applyWindowOptions(x,a){Eu.forEach(p=>{Sr(a[p])&&(x[p]=a[p])})}_applyBackdropOptions(x,a){Bd.forEach(p=>{Sr(a[p])&&(x[p]=a[p])})}update(x){this._applyWindowOptions(this._windowCmptRef.instance,x),this._backdropCmptRef&&this._backdropCmptRef.instance&&this._applyBackdropOptions(this._backdropCmptRef.instance,x)}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe((0,vt.Q)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe((0,vt.Q)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}constructor(x,a,p,E){this._windowCmptRef=x,this._contentRef=a,this._backdropCmptRef=p,this._beforeDismiss=E,this._closed=new De.B,this._dismissed=new De.B,this._hidden=new De.B,x.instance.dismissEvent.subscribe(q=>{this.dismiss(q)}),this.result=new Promise((q,se)=>{this._resolve=q,this._reject=se}),this.result.then(null,()=>{})}close(x){this._windowCmptRef&&(this._closed.next(x),this._resolve(x),this._removeModalElements())}_dismiss(x){this._dismissed.next(x),this._reject(x),this._removeModalElements()}dismiss(x){if(this._windowCmptRef)if(this._beforeDismiss){const a=this._beforeDismiss();!function fs(f){return f&&f.then}(a)?!1!==a&&this._dismiss(x):a.then(p=>{!1!==p&&this._dismiss(x)},()=>{})}else this._dismiss(x)}_removeModalElements(){const x=this._windowCmptRef.instance.hide(),a=this._backdropCmptRef?this._backdropCmptRef.instance.hide():(0,Z.of)(void 0);x.subscribe(()=>{const{nativeElement:p}=this._windowCmptRef.location;p.parentNode.removeChild(p),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),a.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:p}=this._backdropCmptRef.location;p.parentNode.removeChild(p),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),ft(x,a).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var su=function(f){return f[f.BACKDROP_CLICK=0]="BACKDROP_CLICK",f[f.ESC=1]="ESC",f}(su||{});let Ju=(()=>{class f{constructor(a,p,E){this._document=a,this._elRef=p,this._zone=E,this._closed$=new De.B,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new e.bkB,this.shown=new De.B,this.hidden=new De.B}get fullscreenClass(){return!0===this.fullscreen?" modal-fullscreen":Zt(this.fullscreen)?` modal-fullscreen-${this.fullscreen}-down`:""}dismiss(a){this.dismissEvent.emit(a)}ngOnInit(){this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe((0,me.s)(1)).subscribe(()=>{this._show()})}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:a}=this._elRef,p={animation:this.animation,runningTransition:"stop"},se=ft(O(this._zone,a,()=>a.classList.remove("show"),p),O(this._zone,this._dialogEl.nativeElement,()=>{},p));return se.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),se}_show(){const a={animation:this.animation,runningTransition:"continue"};ft(O(this._zone,this._elRef.nativeElement,(q,se)=>{se&&ka(q),q.classList.add("show")},a),O(this._zone,this._dialogEl.nativeElement,()=>{},a)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:a}=this._elRef;this._zone.runOutsideAngular(()=>{(0,we.R)(a,"keydown").pipe((0,vt.Q)(this._closed$),(0,At.p)(E=>E.which===di.Escape)).subscribe(E=>{this.keyboard?requestAnimationFrame(()=>{E.defaultPrevented||this._zone.run(()=>this.dismiss(su.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let p=!1;(0,we.R)(this._dialogEl.nativeElement,"mousedown").pipe((0,vt.Q)(this._closed$),(0,at.M)(()=>p=!1),(0,dn.n)(()=>(0,we.R)(a,"mouseup").pipe((0,vt.Q)(this._closed$),(0,me.s)(1))),(0,At.p)(({target:E})=>a===E)).subscribe(()=>{p=!0}),(0,we.R)(a,"click").pipe((0,vt.Q)(this._closed$)).subscribe(({target:E})=>{a===E&&("static"===this.backdrop?this._bumpBackdrop():!0===this.backdrop&&!p&&this._zone.run(()=>this.dismiss(su.BACKDROP_CLICK))),p=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:a}=this._elRef;if(!a.contains(document.activeElement)){const p=a.querySelector("[ngbAutofocus]"),E=w(a)[0];(p||E||a).focus()}}_restoreFocus(){const a=this._document.body,p=this._elWithFocus;let E;E=p&&p.focus&&a.contains(p)?p:a,this._zone.runOutsideAngular(()=>{setTimeout(()=>E.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&O(this._zone,this._elRef.nativeElement,({classList:a})=>(a.add("modal-static"),()=>a.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}static{this.\u0275fac=function(p){return new(p||f)(e.rXU(Se.qQ),e.rXU(e.aKT),e.rXU(e.SKi))}}static{this.\u0275cmp=e.VBU({type:f,selectors:[["ngb-modal-window"]],viewQuery:function(p,E){if(1&p&&e.GBs(Zl,7),2&p){let q;e.mGM(q=e.lsd())&&(E._dialogEl=q.first)}},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(p,E){2&p&&(e.BMQ("aria-modal",!0)("aria-labelledby",E.ariaLabelledBy)("aria-describedby",E.ariaDescribedBy),e.HbH("modal d-block"+(E.windowClass?" "+E.windowClass:"")),e.AVh("fade",E.animation))},inputs:{animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",backdrop:"backdrop",centered:"centered",fullscreen:"fullscreen",keyboard:"keyboard",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},standalone:!0,features:[e.aNF],ngContentSelectors:dl,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(p,E){1&p&&(e.NAR(),e.j41(0,"div",0,1)(2,"div",2),e.SdG(3),e.k0s()()),2&p&&e.HbH("modal-dialog"+(E.size?" modal-"+E.size:"")+(E.centered?" modal-dialog-centered":"")+E.fullscreenClass+(E.scrollable?" modal-dialog-scrollable":"")+(E.modalDialogClass?" "+E.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}\n"],encapsulation:2})}}return f})(),ku=(()=>{class f{constructor(a){this._document=a}hide(){const a=Math.abs(window.innerWidth-this._document.documentElement.clientWidth),p=this._document.body,E=p.style,{overflow:q,paddingRight:se}=E;if(a>0){const lt=parseFloat(window.getComputedStyle(p).paddingRight);E.paddingRight=`${lt+a}px`}return E.overflow="hidden",()=>{a>0&&(E.paddingRight=se),E.overflow=q}}static{this.\u0275fac=function(p){return new(p||f)(e.KVO(Se.qQ))}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),eh=(()=>{class f{constructor(a,p,E,q,se,lt,Tt){this._applicationRef=a,this._injector=p,this._environmentInjector=E,this._document=q,this._scrollBar=se,this._rendererFactory=lt,this._ngZone=Tt,this._activeWindowCmptHasChanged=new De.B,this._ariaHiddenValues=new Map,this._scrollBarRestoreFn=null,this._modalRefs=[],this._windowCmpts=[],this._activeInstances=new e.bkB,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const jt=this._windowCmpts[this._windowCmpts.length-1];((f,x,a,p=!1)=>{f.runOutsideAngular(()=>{const E=(0,we.R)(x,"focusin").pipe((0,vt.Q)(a),(0,rt.T)(q=>q.target));(0,we.R)(x,"keydown").pipe((0,vt.Q)(a),(0,At.p)(q=>q.which===di.Tab),cn(E)).subscribe(([q,se])=>{const[lt,Tt]=w(x);(se===lt||se===x)&&q.shiftKey&&(Tt.focus(),q.preventDefault()),se===Tt&&!q.shiftKey&&(lt.focus(),q.preventDefault())}),p&&(0,we.R)(x,"click").pipe((0,vt.Q)(a),cn(E),(0,rt.T)(q=>q[1])).subscribe(q=>q.focus())})})(this._ngZone,jt.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(jt.location.nativeElement)}})}_restoreScrollBar(){const a=this._scrollBarRestoreFn;a&&(this._scrollBarRestoreFn=null,a())}_hideScrollBar(){this._scrollBarRestoreFn||(this._scrollBarRestoreFn=this._scrollBar.hide())}open(a,p,E){const q=E.container instanceof HTMLElement?E.container:Sr(E.container)?this._document.querySelector(E.container):this._document.body,se=this._rendererFactory.createRenderer(null,null);if(!q)throw new Error(`The specified modal container "${E.container||"body"}" was not found in the DOM.`);this._hideScrollBar();const lt=new Ld,Tt=(a=E.injector||a).get(e.uvJ,null)||this._environmentInjector,jt=this._getContentRef(a,Tt,p,lt,E);let Gt=!1!==E.backdrop?this._attachBackdrop(q):void 0,Nn=this._attachWindowComponent(q,jt.nodes),wn=new Su(Nn,jt,Gt,E.beforeDismiss);return this._registerModalRef(wn),this._registerWindowCmpt(Nn),wn.hidden.pipe((0,me.s)(1)).subscribe(()=>Promise.resolve(!0).then(()=>{this._modalRefs.length||(se.removeClass(this._document.body,"modal-open"),this._restoreScrollBar(),this._revertAriaHidden())})),lt.close=xn=>{wn.close(xn)},lt.dismiss=xn=>{wn.dismiss(xn)},lt.update=xn=>{wn.update(xn)},wn.update(E),1===this._modalRefs.length&&se.addClass(this._document.body,"modal-open"),Gt&&Gt.instance&&Gt.changeDetectorRef.detectChanges(),Nn.changeDetectorRef.detectChanges(),wn}get activeInstances(){return this._activeInstances}dismissAll(a){this._modalRefs.forEach(p=>p.dismiss(a))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(a){let p=(0,e.a0P)(Tu,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector});return this._applicationRef.attachView(p.hostView),a.appendChild(p.location.nativeElement),p}_attachWindowComponent(a,p){let E=(0,e.a0P)(Ju,{environmentInjector:this._applicationRef.injector,elementInjector:this._injector,projectableNodes:p});return this._applicationRef.attachView(E.hostView),a.appendChild(E.location.nativeElement),E}_getContentRef(a,p,E,q,se){return E?E instanceof e.C4Q?this._createFromTemplateRef(E,q):Zt(E)?this._createFromString(E):this._createFromComponent(a,p,E,q,se):new Co([])}_createFromTemplateRef(a,p){const q=a.createEmbeddedView({$implicit:p,close(se){p.close(se)},dismiss(se){p.dismiss(se)}});return this._applicationRef.attachView(q),new Co([q.rootNodes],q)}_createFromString(a){const p=this._document.createTextNode(`${a}`);return new Co([[p]])}_createFromComponent(a,p,E,q,se){const lt=e.zZn.create({providers:[{provide:Ld,useValue:q}],parent:a}),Tt=(0,e.a0P)(E,{environmentInjector:p,elementInjector:lt}),jt=Tt.location.nativeElement;return se.scrollable&&jt.classList.add("component-host-scrollable"),this._applicationRef.attachView(Tt.hostView),new Co([[jt]],Tt.hostView,Tt)}_setAriaHidden(a){const p=a.parentElement;p&&a!==this._document.body&&(Array.from(p.children).forEach(E=>{E!==a&&"SCRIPT"!==E.nodeName&&(this._ariaHiddenValues.set(E,E.getAttribute("aria-hidden")),E.setAttribute("aria-hidden","true"))}),this._setAriaHidden(p))}_revertAriaHidden(){this._ariaHiddenValues.forEach((a,p)=>{a?p.setAttribute("aria-hidden",a):p.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(a){const p=()=>{const E=this._modalRefs.indexOf(a);E>-1&&(this._modalRefs.splice(E,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(a),this._activeInstances.emit(this._modalRefs),a.result.then(p,p)}_registerWindowCmpt(a){this._windowCmpts.push(a),this._activeWindowCmptHasChanged.next(),a.onDestroy(()=>{const p=this._windowCmpts.indexOf(a);p>-1&&(this._windowCmpts.splice(p,1),this._activeWindowCmptHasChanged.next())})}static{this.\u0275fac=function(p){return new(p||f)(e.KVO(e.o8S),e.KVO(e.zZn),e.KVO(e.uvJ),e.KVO(Se.qQ),e.KVO(ku),e.KVO(e._9s),e.KVO(e.SKi))}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),th=(()=>{class f{constructor(a){this._ngbConfig=a,this.backdrop=!0,this.fullscreen=!1,this.keyboard=!0}get animation(){return void 0===this._animation?this._ngbConfig.animation:this._animation}set animation(a){this._animation=a}static{this.\u0275fac=function(p){return new(p||f)(e.KVO(Je))}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),Ur=(()=>{class f{constructor(a,p,E){this._injector=a,this._modalStack=p,this._config=E}open(a,p={}){const E={...this._config,animation:this._config.animation,...p};return this._modalStack.open(this._injector,a,E)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(a){this._modalStack.dismissAll(a)}hasOpenModals(){return this._modalStack.hasOpenModals()}static{this.\u0275fac=function(p){return new(p||f)(e.KVO(e.zZn),e.KVO(eh),e.KVO(th))}}static{this.\u0275prov=e.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),Vd=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({providers:[Ur]})}}return f})(),Cn=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Xa=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Wn=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),ss=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),$r=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),ih=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Nh=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),rh=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Ah=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})();new e.nKC("live announcer delay",{providedIn:"root",factory:function Gd(){return 100}});let ch=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})(),Bh=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({})}}return f})();const Mf=[_a,eo,Ua,Cl,k,Or,Vd,Cn,Bh,Xa,Wn,ss,$r,ih,Nh,rh,Ah,ch];let Tf=(()=>{class f{static{this.\u0275fac=function(p){return new(p||f)}}static{this.\u0275mod=e.$C({type:f})}static{this.\u0275inj=e.G2t({imports:[Mf,_a,eo,Ua,Cl,k,Or,Vd,Cn,Bh,Xa,Wn,ss,$r,ih,Nh,rh,Ah,ch]})}}return f})()},4958:(pn,ct,N)=>{N.d(ct,{Ps:()=>Se,kr:()=>Nt});var e=N(7705),h=N(9417),ne=N(177);const Z=["dropdownItems"],De=["dropdown"];function we(K,ge){if(1&K&&e.nrm(0,"img",26),2&K){const je=e.XpG().$implicit;e.Y8G("src",null==je?null:je.image,e.B4B)}}function Ie(K,ge){if(1&K){const je=e.RV6();e.j41(0,"div",23),e.DNE(1,we,1,1,"img",24),e.j41(2,"span"),e.EFF(3),e.k0s(),e.EFF(4,"\xa0 "),e.j41(5,"span",25),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(3);return e.Njj(ue.unselectItem(Le))}),e.EFF(6,"\xd7"),e.k0s()()}if(2&K){const je=ge.$implicit;e.R7$(1),e.Y8G("ngIf",null==je?null:je.image),e.R7$(2),e.JRh(je.label)}}function Oe(K,ge){if(1&K&&(e.j41(0,"div",27),e.EFF(1),e.k0s()),2&K){const je=e.XpG(3);e.R7$(1),e.SpI(" +",je.selectedItems.length-3," more ")}}function Ne(K,ge){if(1&K&&(e.j41(0,"div",20),e.DNE(1,Ie,7,2,"div",21),e.DNE(2,Oe,2,1,"div",22),e.k0s()),2&K){const je=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",je.selectedItems.slice(0,3)),e.R7$(1),e.Y8G("ngIf",je.selectedItems.length>3)}}function Me(K,ge){if(1&K){const je=e.RV6();e.j41(0,"span",28),e.bIt("click",function(){e.eBV(je);const ce=e.XpG(2);return e.Njj(ce.unselectAll())}),e.EFF(1,"\xd7 "),e.k0s()}}function Ge(K,ge){if(1&K&&(e.j41(0,"div",4)(1,"div",5),e.DNE(2,Ne,3,2,"div",18),e.k0s(),e.j41(3,"div",8)(4,"div"),e.DNE(5,Me,2,0,"span",19),e.k0s()()()),2&K){const je=e.XpG();e.R7$(2),e.Y8G("ngIf",!je.selectedItem&&je.multiple),e.R7$(3),e.Y8G("ngIf",je.selectedItems.length>0&&je.multiple)}}function Ue(K,ge){if(1&K){const je=e.RV6();e.j41(0,"div")(1,"input",29),e.bIt("ngModelChange",function(ce){e.eBV(je);const Le=e.XpG();return e.Njj(Le.searchText=ce)})("input",function(ce){e.eBV(je);const Le=e.XpG();return e.Njj(Le.search(ce))}),e.k0s()()}if(2&K){const je=e.XpG();e.R7$(1),e.Y8G("ngModel",je.searchText)("placeholder",je.placeholder)}}function yt(K,ge){if(1&K&&e.nrm(0,"img",31),2&K){const je=e.XpG(2);e.Y8G("src",je.selectedItemImage,e.B4B)}}function _t(K,ge){if(1&K){const je=e.RV6();e.j41(0,"div"),e.DNE(1,yt,1,1,"img",30),e.j41(2,"input",29),e.bIt("ngModelChange",function(ce){e.eBV(je);const Le=e.XpG();return e.Njj(Le.searchText=ce)})("ngModelChange",function(ce){e.eBV(je);const Le=e.XpG();return e.Njj(Le.selectedItemName=ce)})("input",function(ce){e.eBV(je);const Le=e.XpG();return e.Njj(Le.search(ce))}),e.k0s()()}if(2&K){const je=e.XpG();e.R7$(1),e.Y8G("ngIf",je.selectedItemImage),e.R7$(1),e.Y8G("ngModel",je.searchText)("placeholder",je.placeholder)("ngModel",je.selectedItemName)}}function bt(K,ge){1&K&&(e.j41(0,"a",38),e.EFF(1,"Create new"),e.k0s())}function ft(K,ge){if(1&K&&e.nrm(0,"img",49),2&K){const je=e.XpG().$implicit;e.Y8G("src",null==je?null:je.image,e.B4B)}}function mt(K,ge){if(1&K&&(e.j41(0,"small"),e.EFF(1),e.k0s()),2&K){const je=e.XpG().$implicit;e.R7$(1),e.JRh(null==je?null:je.subLabel)}}function en(K,ge){1&K&&e.nrm(0,"div",50)}function vt(K,ge){if(1&K){const je=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(5);return e.Njj(ue.handleButtonClick(Le.action))}),e.nrm(1,"i"),e.k0s()}if(2&K){const je=ge.$implicit;e.R7$(1),e.HbH(je.icon),e.xc7("color",je.color)}}function At(K,ge){if(1&K){const je=e.RV6();e.j41(0,"a",41),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(4);return e.Njj(ue.selectItem(Le))}),e.j41(1,"div",42)(2,"div",43)(3,"div"),e.DNE(4,ft,1,1,"img",44),e.j41(5,"span",45),e.EFF(6),e.k0s(),e.nrm(7,"br"),e.DNE(8,mt,2,1,"small",7),e.k0s(),e.DNE(9,en,1,0,"div",46),e.j41(10,"div",47),e.DNE(11,vt,2,4,"button",48),e.k0s()()()()}if(2&K){const je=ge.$implicit,le=e.XpG(4);e.R7$(4),e.Y8G("ngIf",null==je?null:je.image),e.R7$(2),e.JRh(null==je?null:je.label),e.R7$(2),e.Y8G("ngIf",le.showSubLabel),e.R7$(1),e.Y8G("ngIf",null==je?null:je.label),e.R7$(2),e.Y8G("ngForOf",le.customButtons)}}function me(K,ge){if(1&K&&(e.qex(0),e.DNE(1,At,12,5,"a",40),e.bVm()),2&K){const je=e.XpG(3);e.R7$(1),e.Y8G("ngForOf",je.items)}}function at(K,ge){if(1&K&&e.nrm(0,"img",49),2&K){const je=e.XpG().$implicit;e.Y8G("src",null==je?null:je.image,e.B4B)}}function rt(K,ge){if(1&K&&(e.j41(0,"small"),e.EFF(1),e.k0s()),2&K){const je=e.XpG().$implicit;e.R7$(1),e.JRh(null==je?null:je.subLabel)}}function ht(K,ge){1&K&&e.nrm(0,"div",50)}function St(K,ge){if(1&K){const je=e.RV6();e.j41(0,"button",34),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(5);return e.Njj(ue.handleButtonClick(Le.action))}),e.nrm(1,"i"),e.k0s()}if(2&K){const je=ge.$implicit;e.R7$(1),e.HbH(je.icon),e.xc7("color",je.color)}}function Mt(K,ge){if(1&K){const je=e.RV6();e.j41(0,"a",41),e.bIt("click",function(){const Le=e.eBV(je).$implicit,ue=e.XpG(4);return e.Njj(ue.selectItem(Le))}),e.j41(1,"div",42)(2,"div",43),e.DNE(3,at,1,1,"img",44),e.j41(4,"span",45),e.EFF(5),e.k0s(),e.nrm(6,"br"),e.DNE(7,rt,2,1,"small",7),e.DNE(8,ht,1,0,"div",46),e.j41(9,"div",47),e.DNE(10,St,2,4,"button",48),e.k0s()()()()}if(2&K){const je=ge.$implicit,le=e.XpG(4);e.R7$(3),e.Y8G("ngIf",null==je?null:je.image),e.R7$(2),e.JRh(null==je?null:je.label),e.R7$(2),e.Y8G("ngIf",le.showSubLabel),e.R7$(1),e.Y8G("ngIf",null==je?null:je.label),e.R7$(2),e.Y8G("ngForOf",le.customButtons)}}function cn(K,ge){if(1&K&&e.DNE(0,Mt,11,5,"a",40),2&K){const je=e.XpG(3);e.Y8G("ngForOf",je.items)}}function En(K,ge){if(1&K&&(e.qex(0),e.DNE(1,me,2,1,"ng-container",36),e.DNE(2,cn,1,1,"ng-template",null,39,e.C5r),e.bVm()),2&K){const je=e.sdS(3),le=e.XpG(2);e.R7$(1),e.Y8G("ngIf",le.multiple)("ngIfElse",je)}}function dn(K,ge){1&K&&(e.j41(0,"div",51),e.EFF(1,"No data available"),e.k0s())}function Wt(K,ge){if(1&K){const je=e.RV6();e.qSk(),e.joV(),e.j41(0,"div",32,33),e.bIt("scroll",function(ce){e.eBV(je);const Le=e.XpG();return e.Njj(Le.dropdownScroll(ce))}),e.j41(2,"div",34),e.bIt("click",function(){e.eBV(je);const ce=e.XpG();return e.Njj(ce.createNew())}),e.DNE(3,bt,2,0,"a",35),e.k0s(),e.DNE(4,En,4,2,"ng-container",36),e.DNE(5,dn,2,0,"ng-template",null,37,e.C5r),e.k0s()}if(2&K){const je=e.sdS(6),le=e.XpG();e.R7$(3),e.Y8G("ngIf",le.showCreateNew),e.R7$(1),e.Y8G("ngIf",le.items.length>0)("ngIfElse",je)}}const ze=function(K,ge){return{opened:K,closed:ge}};let Se=(()=>{class K{constructor(je){this.cdr=je,this.selectedItems=[],this.placeholder="",this.items=[],this.selectedValues="",this.customButtons=[],this.showBorder=!0,this.buttonClick=new e.bkB,this.selectedItemsChange=new e.bkB,this.onDropdownScroll=new e.bkB,this.onCreateNew=new e.bkB,this.onSearch=new e.bkB,this.showSubLabel=!1,this.dropdownOpened=!1,this.selectedItemName="",this.selectedItemImage="",this.originalItems=[],this.searchTerm="",this.initialized=!1,this.searchText=""}ngOnInit(){this.initialize()}ngOnChanges(je){je.selectedItems&&(this.selectedItems=je.selectedItems.currentValue,this.selectedItemName=this.selectedItems[0]?.label,this.selectedItemImage=this.selectedItems[0]?.image,this.selectedItemsChange.emit(this.selectedItems)),je.items&&(this.originalItems=this.items.slice()),je.selectedValues&&(this.selectedItemName=this.selectedValues)}initialize(){setTimeout(()=>{this.selectedItems&&this.selectedItems.length>0&&(this.multiple||this.selectItem(this.selectedItems[0]))},1e3);const je=this.items.filter((le,ce,Le)=>ce===Le.findIndex(ue=>ue.value===le.value));this.items=je}openDropdown(){this.dropdownOpened=!this.dropdownOpened}dropdownScroll(je){this.onDropdownScroll.observed&&(this.onDropdownScroll.emit(je),this.cdr.markForCheck())}selectItem(je){this.multiple?this.selectedItems.includes(je)?(this.selectedItems=this.selectedItems.filter(le=>le!==je),this.selectedItemsChange.emit(this.selectedItems)):(this.selectedItems.push(je),this.selectedItemsChange.emit(this.selectedItems)):(this.searchText="",this.selectedItems[0]=je,this.selectedItemName=this.selectedItems[0]?.label,this.selectedItemImage=this.selectedItems[0]?.image,this.dropdownOpened=!1,this.selectedItemsChange.emit(this.selectedItems))}unselectItem(je){this.selectedItems=this.selectedItems.filter(le=>le!==je),this.selectedItemsChange.emit(this.selectedItems)}unselectAll(){this.selectedItems=[],this.selectedItemName="",this.selectedItemImage="",this.selectedItemsChange.emit(this.selectedItems),this.cdr.markForCheck()}onDocumentClick(je){this.dropdown.nativeElement.contains(je.target)||(this.dropdownOpened=!1)}createNew(){this.onCreateNew.emit(),this.dropdownOpened=!1}search(je){if(this.dropdownOpened=!0,this.searchTerm=je.target.value.toLowerCase(),this.onSearch.observed)this.onSearch.emit(this.searchTerm);else if(""===this.searchTerm.trim())this.multiple||this.unselectAll(),this.items=this.originalItems.slice();else{const ce=this.searchTerm.toLowerCase();this.items=this.originalItems.filter(Le=>Le.label.toLowerCase().includes(ce)||Le.value&&Le.value.toLowerCase().includes(ce))}}handleButtonClick(je){je(),this.buttonClick.emit()}static{this.\u0275fac=function(le){return new(le||K)(e.rXU(e.gRc))}}static{this.\u0275cmp=e.VBU({type:K,selectors:[["lib-dropdown"]],viewQuery:function(le,ce){if(1&le&&(e.GBs(Z,5),e.GBs(De,5)),2&le){let Le;e.mGM(Le=e.lsd())&&(ce.dropdownitems=Le.first),e.mGM(Le=e.lsd())&&(ce.dropdown=Le.first)}},hostBindings:function(le,ce){1&le&&e.bIt("click",function(ue){return ce.onDocumentClick(ue)},!1,e.EBC)},inputs:{multiple:"multiple",selectedItems:"selectedItems",placeholder:"placeholder",items:"items",showCreateNew:"showCreateNew",selectedValues:"selectedValues",customButtons:"customButtons",showBorder:"showBorder",showSubLabel:"showSubLabel"},outputs:{buttonClick:"buttonClick",selectedItemsChange:"selectedItemsChange",onDropdownScroll:"onDropdownScroll",onCreateNew:"onCreateNew",onSearch:"onSearch"},features:[e.OA$],decls:19,vars:20,consts:[[1,"dropdown",3,"ngClass"],["dropdown",""],["id","division",1,"dropdown-field",3,"ngClass","click"],["class","flexSection",4,"ngIf"],[1,"flexSection"],[1,"dataSection"],[1,"input-field"],[4,"ngIf"],[1,"iconSection"],[1,"down-arrow",3,"ngClass"],["width","1em","viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"down-arrow-img"],["id","Down Arrow"],["id","Group"],["id","Path","d","M6 9.13741L12 15.229L18 9.13741","stroke","#8E9AA0","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"up-arrow",3,"ngClass"],["width","1em","viewBox","0 0 24 25","fill","none","xmlns","http://www.w3.org/2000/svg",1,"up-arrow-img"],["d","M18 15.229L12 9.1374L6 15.229","stroke","#8E9AA0","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["class","dropdown-items",3,"scroll",4,"ngIf"],["class","selected selectedList",4,"ngIf"],["class","deselect",3,"click",4,"ngIf"],[1,"selected","selectedList"],["class","selected-item",4,"ngFor","ngForOf"],["class","remaining-items",4,"ngIf"],[1,"selected-item"],["class","multiSelected-icon-size","alt","image",3,"src",4,"ngIf"],[1,"close-icon",3,"click"],["alt","image",1,"multiSelected-icon-size",3,"src"],[1,"remaining-items"],[1,"deselect",3,"click"],[1,"dropdown_text",3,"ngModel","placeholder","ngModelChange","input"],["class","selected-icon-size","alt","image",3,"src",4,"ngIf"],["alt","image",1,"selected-icon-size",3,"src"],[1,"dropdown-items",3,"scroll"],["dropdownItems",""],[3,"click"],["class","create_button",4,"ngIf"],[4,"ngIf","ngIfElse"],["noDataAvailable",""],[1,"create_button"],["singleSelection",""],["class","items d-block",3,"click",4,"ngFor","ngForOf"],[1,"items","d-block",3,"click"],[1,"dropdown-item"],[1,"item-details"],["alt","Item Image","class","item-image icon-size",3,"src",4,"ngIf"],[1,"item-label"],["class","space",4,"ngIf"],[1,"dropdown_buttons"],[3,"click",4,"ngFor","ngForOf"],["alt","Item Image",1,"item-image","icon-size",3,"src"],[1,"space"],[1,"items"]],template:function(le,ce){1&le&&(e.j41(0,"div",0,1)(2,"div",2),e.bIt("click",function(){return ce.openDropdown()}),e.DNE(3,Ge,6,2,"div",3),e.j41(4,"div",4)(5,"div",5)(6,"div",6),e.DNE(7,Ue,2,2,"div",7),e.DNE(8,_t,3,4,"div",7),e.k0s()(),e.j41(9,"div",8)(10,"div",9),e.qSk(),e.j41(11,"svg",10)(12,"g",11)(13,"g",12),e.nrm(14,"path",13),e.k0s()()()(),e.joV(),e.j41(15,"div",14),e.qSk(),e.j41(16,"svg",15),e.nrm(17,"path",16),e.k0s()()()()(),e.DNE(18,Wt,7,3,"div",17),e.k0s()),2&le&&(e.Y8G("ngClass",e.l_i(8,ze,ce.showBorder&&ce.dropdownOpened,ce.showBorder&&!ce.dropdownOpened)),e.R7$(2),e.Y8G("ngClass",e.l_i(11,ze,ce.showBorder&&ce.dropdownOpened,ce.showBorder&&!ce.dropdownOpened)),e.R7$(1),e.Y8G("ngIf",!ce.selectedItem&&ce.multiple),e.R7$(4),e.Y8G("ngIf",ce.multiple),e.R7$(1),e.Y8G("ngIf",!ce.multiple),e.R7$(2),e.Y8G("ngClass",e.l_i(14,ze,ce.dropdownOpened,!ce.dropdownOpened)),e.R7$(5),e.Y8G("ngClass",e.l_i(17,ze,ce.dropdownOpened,!ce.dropdownOpened)),e.R7$(3),e.Y8G("ngIf",ce.dropdownOpened))},dependencies:[h.me,h.BC,h.vS,ne.YU,ne.Sq,ne.bT],styles:[".dropdown{background:#fff;border-radius:6px}.dropdown .dropdown-field{background:#fff;border-radius:6px;position:relative;cursor:pointer}.dropdown .dropdown-field .selected{margin:5px}.dropdown .dropdown-field .selected.selectedList{display:flex;flex-wrap:wrap}.dropdown .dropdown-field .selected .selected-item{background:#cdd0d1;display:inline;margin:5px;padding:2px;border-radius:5px;font-size:small}.dropdown .dropdown-field .selected .remaining-items{margin:5px;padding:2px;font-size:smaller;display:block}.dropdown .dropdown-field .input-field .dropdown_text{width:100%;border:none;padding:2px;margin-left:3px;margin-right:3px;outline:none;box-sizing:border-box;font-weight:500;font-family:Poppins;font-size:14px;font-style:normal}@media (max-width: 576px){.dropdown .dropdown-field .input-field .dropdown_text{width:53%;font-size:12px;margin-left:3px;padding-left:2px}}@media (max-width: 420px){.dropdown .dropdown-field .input-field .dropdown_text{width:53%;font-size:12px;margin-left:3px;padding-left:2px}}@media only screen and (min-width: 576px){.dropdown .dropdown-field .input-field .dropdown_text{height:25px}}@media only screen and (min-width: 992px){.dropdown .dropdown-field .input-field .dropdown_text{height:30px}}@media only screen and (min-width: 1200px){.dropdown .dropdown-field .input-field .dropdown_text{height:35px}}.dropdown .dropdown-field.closed{border:1px solid #d8d8d8}.dropdown .dropdown-field.opened{border-bottom:1px solid #d8d8d8}.dropdown .dropdown-items{overflow-y:auto;overflow-x:auto;position:absolute!important;top:100%;left:0;width:100%;background:#fff;z-index:9999999;border:solid 1px #dbdbdb;box-shadow:0 4px 4px -5px #00000040;transition:transform .3s ease-out;scroll-behavior:smooth;cursor:pointer}@media only screen and (min-width: 276px){.dropdown .dropdown-items{max-height:150px;padding:3px}}@media only screen and (min-width: 576px){.dropdown .dropdown-items{max-height:150px;padding:3px}}@media only screen and (min-width: 992px){.dropdown .dropdown-items{max-height:150px;padding:5px}}@media only screen and (min-width: 1441px){.dropdown .dropdown-items{max-height:200px;padding:7px}}.dropdown .dropdown-items .create_button{text-decoration:none;cursor:pointer}@media only screen and (min-width: 576px){.dropdown .dropdown-items .create_button{padding-left:8px}}@media only screen and (min-width: 992px){.dropdown .dropdown-items .create_button{padding-left:8px}}@media only screen and (min-width: 1200px){.dropdown .dropdown-items .create_button{padding-left:8px}}.dropdown .dropdown-items .items{text-decoration:none;color:inherit;line-height:41px;position:relative;cursor:pointer}@media only screen and (min-width: 576px){.dropdown .dropdown-items .items{padding-left:8px;font-size:small}}@media only screen and (min-width: 992px){.dropdown .dropdown-items .items{padding-left:8px}}@media only screen and (min-width: 1200px){.dropdown .dropdown-items .items{padding-left:8px;font-size:small}}.dropdown .dropdown-items .items:hover{background:#ebedef;border-radius:6px}.dropdown .dropdown-items .items:hover button{visibility:visible}.dropdown .dropdown-items .items .dropdown_buttons{display:inline}.dropdown .dropdown-items .items button{border:0;background:transparent;visibility:hidden}.dropdown.opened{border:1px #d8d8d8 solid}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background-color:transparent}::-webkit-scrollbar-thumb{background-color:#b2b2b2;border-radius:6px}.space{width:10px}.item-details{display:flex;align-items:center;justify-content:space-between}.icon-size{width:25px;height:20px;margin-right:7px}.smallSpace{width:3px}.selected-icon-size{width:25px;height:20px;margin-left:10px}@media (max-width: 576px){.selected-icon-size{width:21px;height:15px;margin-right:7px;margin-bottom:1px}}.multiSelected-icon-size{width:25px;height:20px;margin-left:1px;margin-bottom:1px;margin-right:3px}.flexSection{display:flex}.dataSection{width:calc(100% - 20px)}.iconSection{width:20px;padding:1px}.down-arrow,.up-arrow,.deselect{width:20px;height:20px;font-size:18px;display:flex;align-items:center;justify-content:center;cursor:pointer}.down-arrow{cursor:pointer;padding-top:.5em}.down-arrow.opened{display:none}.down-arrow.closed{display:block}.up-arrow{cursor:pointer}.up-arrow.closed{display:none}.iconSection{display:flex;flex-direction:row-reverse}\n"],encapsulation:2,changeDetection:0})}}return K})(),Nt=(()=>{class K{static{this.\u0275fac=function(le){return new(le||K)}}static{this.\u0275mod=e.$C({type:K})}static{this.\u0275inj=e.G2t({imports:[h.YN,ne.MD]})}}return K})()},8737:(pn,ct,N)=>{N.d(ct,{pl:()=>En,GQ:()=>dn});var e=N(467),h=N(7705),ne=N(177);class Z{constructor(ze){this.rawFile=ze;const be=ze instanceof HTMLInputElement?ze.value:ze;this["_createFrom"+("string"==typeof be?"FakePath":"Object")](be)}_createFromFakePath(ze){this.lastModifiedDate=void 0,this.size=void 0,this.type=`like/${ze.slice(ze.lastIndexOf(".")+1).toLowerCase()}`,this.name=ze.slice(ze.lastIndexOf("/")+ze.lastIndexOf("\\")+2)}_createFromObject(ze){this.size=ze.size,this.type=ze.type,this.name=ze.name}}class De{constructor(ze,be,Se){this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.uploader=ze,this.some=be,this.options=Se,this.file=new Z(be),this._file=be,ze.options&&(this.method=ze.options.method||"POST",this.alias=ze.options.itemAlias||"file"),this.url=ze.options.url}upload(){try{this.uploader.uploadItem(this)}catch{this.uploader._onCompleteItem(this,"",0,{}),this.uploader._onErrorItem(this,"",0,{})}}cancel(){this.uploader.cancelItem(this)}remove(){this.uploader.removeFromQueue(this)}onBeforeUpload(){}onBuildForm(ze){return{form:ze}}onProgress(ze){return{progress:ze}}onSuccess(ze,be,Se){return{response:ze,status:be,headers:Se}}onError(ze,be,Se){return{response:ze,status:be,headers:Se}}onCancel(ze,be,Se){return{response:ze,status:be,headers:Se}}onComplete(ze,be,Se){return{response:ze,status:be,headers:Se}}_onBeforeUpload(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}_onBuildForm(ze){this.onBuildForm(ze)}_onProgress(ze){this.progress=ze,this.onProgress(ze)}_onSuccess(ze,be,Se){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(ze,be,Se)}_onError(ze,be,Se){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(ze,be,Se)}_onCancel(ze,be,Se){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(ze,be,Se)}_onComplete(ze,be,Se){this.onComplete(ze,be,Se),this.uploader.options.removeAfterUpload&&this.remove()}_prepareToUploading(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}}let we=(()=>{class Wt{static{this.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"]}static{this.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"]}static{this.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"]}static{this.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"]}static{this.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"]}static getMimeClass(be){let Se="application";return be?.type&&-1!==this.mime_psd.indexOf(be.type)||be?.type?.match("image.*")?Se="image":be?.type?.match("video.*")?Se="video":be?.type?.match("audio.*")?Se="audio":"application/pdf"===be?.type?Se="pdf":be?.type&&-1!==this.mime_compress.indexOf(be.type)?Se="compress":be?.type&&-1!==this.mime_doc.indexOf(be.type)?Se="doc":be?.type&&-1!==this.mime_xsl.indexOf(be.type)?Se="xls":be?.type&&-1!==this.mime_ppt.indexOf(be.type)&&(Se="ppt"),"application"===Se&&be?.name&&(Se=this.fileTypeDetection(be.name)),Se}static fileTypeDetection(be){const Se={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},Nt=be.split(".");if(Nt.length<2)return"application";const K=Nt[Nt.length-1].toLowerCase();return void 0===Se[K]?"application":Se[K]}}return Wt})();class Oe{constructor(ze){this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:be=>be._file,formatDataFunctionIsAsync:!1,url:""},this.setOptions(ze),this.response=new h.bkB}setOptions(ze){this.options=Object.assign(this.options,ze),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload,this.options.filters?.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters?.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters?.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters?.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(let be=0;be<this.queue.length;be++)this.queue[be].url=this.options.url}addToQueue(ze,be,Se){let Nt=be;const K=[];for(const ce of ze)K.push(ce);const ge=this._getFilters(Se),je=this.queue.length,le=[];K.map(ce=>{Nt||(Nt=this.options);const Le=new Z(ce);if(this._isValidFile(Le,ge,Nt)){const ue=new De(this,ce,Nt);le.push(ue),this.queue.push(ue),this._onAfterAddingFile(ue)}else"number"==typeof this._failFilterIndex&&this._failFilterIndex>=0&&this._onWhenAddingFileFailed(Le,ge[this._failFilterIndex],Nt)}),this.queue.length!==je&&(this._onAfterAddingAll(le),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}removeFromQueue(ze){const be=this.getIndexOfItem(ze),Se=this.queue[be];Se.isUploading&&Se.cancel(),this.queue.splice(be,1),this.progress=this._getTotalProgress()}clearQueue(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}uploadItem(ze){const be=this.getIndexOfItem(ze),Se=this.queue[be],Nt=this.options.isHTML5?"_xhrTransport":"_iframeTransport";Se._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[Nt](Se))}cancelItem(ze){const be=this.getIndexOfItem(ze),Se=this.queue[be];Se&&Se.isUploading&&(this.options.isHTML5?Se._xhr:Se._form).abort()}uploadAll(){const ze=this.getNotUploadedItems().filter(be=>!be.isUploading);ze.length&&(ze.map(be=>be._prepareToUploading()),ze[0].upload())}cancelAll(){this.getNotUploadedItems().map(be=>be.cancel())}isFile(ze){return function Ie(Wt){return File&&Wt instanceof File}(ze)}isFileLikeObject(ze){return ze instanceof Z}getIndexOfItem(ze){return"number"==typeof ze?ze:this.queue.indexOf(ze)}getNotUploadedItems(){return this.queue.filter(ze=>!ze.isUploaded)}getReadyItems(){return this.queue.filter(ze=>ze.isReady&&!ze.isUploading).sort((ze,be)=>ze.index-be.index)}onAfterAddingAll(ze){return{fileItems:ze}}onBuildItemForm(ze,be){return{fileItem:ze,form:be}}onAfterAddingFile(ze){return{fileItem:ze}}onWhenAddingFileFailed(ze,be,Se){return{item:ze,filter:be,options:Se}}onBeforeUploadItem(ze){return{fileItem:ze}}onProgressItem(ze,be){return{fileItem:ze,progress:be}}onProgressAll(ze){return{progress:ze}}onSuccessItem(ze,be,Se,Nt){return{item:ze,response:be,status:Se,headers:Nt}}onErrorItem(ze,be,Se,Nt){return{item:ze,response:be,status:Se,headers:Nt}}onCancelItem(ze,be,Se,Nt){return{item:ze,response:be,status:Se,headers:Nt}}onCompleteItem(ze,be,Se,Nt){return{item:ze,response:be,status:Se,headers:Nt}}onCompleteAll(){}_mimeTypeFilter(ze){return!(ze?.type&&this.options.allowedMimeType&&-1===this.options.allowedMimeType?.indexOf(ze.type))}_fileSizeFilter(ze){return!(this.options.maxFileSize&&ze.size>this.options.maxFileSize)}_fileTypeFilter(ze){return!(this.options.allowedFileType&&-1===this.options.allowedFileType.indexOf(we.getMimeClass(ze)))}_onErrorItem(ze,be,Se,Nt){ze._onError(be,Se,Nt),this.onErrorItem(ze,be,Se,Nt)}_onCompleteItem(ze,be,Se,Nt){ze._onComplete(be,Se,Nt),this.onCompleteItem(ze,be,Se,Nt);const K=this.getReadyItems()[0];this.isUploading=!1,K?K.upload():(this.onCompleteAll(),this.progress=this._getTotalProgress(),this._render())}_headersGetter(ze){return be=>be?ze[be.toLowerCase()]||void 0:ze}_xhrTransport(ze){const be=this,Se=ze._xhr=new XMLHttpRequest;let Nt;if(this._onBeforeUploadItem(ze),"number"!=typeof ze._file.size)throw new TypeError("The file specified is no longer valid");if(this.options.disableMultipart)this.options.formatDataFunction&&(Nt=this.options.formatDataFunction(ze));else{Nt=new FormData,this._onBuildItemForm(ze,Nt);const K=()=>Nt.append(ze.alias,ze._file,ze.file.name);this.options.parametersBeforeFiles||K(),void 0!==this.options.additionalParameter&&Object.keys(this.options.additionalParameter).forEach(ge=>{let je=this.options.additionalParameter?.[ge];"string"==typeof je&&je.indexOf("{{file_name}}")>=0&&ze.file?.name&&(je=je.replace("{{file_name}}",ze.file.name)),Nt.append(ge,je)}),K&&this.options.parametersBeforeFiles&&K()}if(Se.upload.onprogress=K=>{const ge=Math.round(K.lengthComputable?100*K.loaded/K.total:0);this._onProgressItem(ze,ge)},Se.onload=()=>{const K=this._parseHeaders(Se.getAllResponseHeaders()),ge=this._transformResponse(Se.response,K);this[`_on${this._isSuccessCode(Se.status)?"Success":"Error"}Item`](ze,ge,Se.status,K),this._onCompleteItem(ze,ge,Se.status,K)},Se.onerror=()=>{const K=this._parseHeaders(Se.getAllResponseHeaders()),ge=this._transformResponse(Se.response,K);this._onErrorItem(ze,ge,Se.status,K),this._onCompleteItem(ze,ge,Se.status,K)},Se.onabort=()=>{const K=this._parseHeaders(Se.getAllResponseHeaders()),ge=this._transformResponse(Se.response,K);this._onCancelItem(ze,ge,Se.status,K),this._onCompleteItem(ze,ge,Se.status,K)},ze.method&&ze.url&&Se.open(ze.method,ze.url,!0),Se.withCredentials=ze.withCredentials,this.options.headers)for(const K of this.options.headers)Se.setRequestHeader(K.name,K.value);if(ze.headers.length)for(const K of ze.headers)Se.setRequestHeader(K.name,K.value);this.authToken&&this.authTokenHeader&&Se.setRequestHeader(this.authTokenHeader,this.authToken),Se.onreadystatechange=function(){Se.readyState==XMLHttpRequest.DONE&&be.response.emit(Se.responseText)},this.options.formatDataFunctionIsAsync?Nt.then(K=>Se.send(JSON.stringify(K))):Se.send(Nt),this._render()}_getTotalProgress(ze=0){if(this.options.removeAfterUpload)return ze;const be=this.getNotUploadedItems().length,Nt=100/this.queue.length;return Math.round((be?this.queue.length-be:this.queue.length)*Nt+ze*Nt/100)}_getFilters(ze){if(!ze)return this.options?.filters||[];if(Array.isArray(ze))return ze;if("string"==typeof ze){const be=ze.match(/[^\s,]+/g);return this.options?.filters||[].filter(Se=>-1!==be?.indexOf(Se.name))}return this.options?.filters||[]}_render(){}_queueLimitFilter(){return void 0===this.options.queueLimit||this.queue.length<this.options.queueLimit}_isValidFile(ze,be,Se){return this._failFilterIndex=-1,!be.length||be.every(Nt=>("number"==typeof this._failFilterIndex&&this._failFilterIndex++,Nt.fn.call(this,ze,Se)))}_isSuccessCode(ze){return ze>=200&&ze<300||304===ze}_transformResponse(ze,be){return ze}_parseHeaders(ze){const be={};let Se,Nt,K;return ze&&ze.split("\n").map(ge=>{K=ge.indexOf(":"),Se=ge.slice(0,K).trim().toLowerCase(),Nt=ge.slice(K+1).trim(),Se&&(be[Se]=be[Se]?be[Se]+", "+Nt:Nt)}),be}_onWhenAddingFileFailed(ze,be,Se){this.onWhenAddingFileFailed(ze,be,Se)}_onAfterAddingFile(ze){this.onAfterAddingFile(ze)}_onAfterAddingAll(ze){this.onAfterAddingAll(ze)}_onBeforeUploadItem(ze){ze._onBeforeUpload(),this.onBeforeUploadItem(ze)}_onBuildItemForm(ze,be){ze._onBuildForm(be),this.onBuildItemForm(ze,be)}_onProgressItem(ze,be){const Se=this._getTotalProgress(be);this.progress=Se,ze._onProgress(be),this.onProgressItem(ze,be),this.onProgressAll(Se),this._render()}_onSuccessItem(ze,be,Se,Nt){ze._onSuccess(be,Se,Nt),this.onSuccessItem(ze,be,Se,Nt)}_onCancelItem(ze,be,Se,Nt){ze._onCancel(be,Se,Nt),this.onCancelItem(ze,be,Se,Nt)}}let Me=(()=>{class Wt{constructor(be){this.onFileSelected=new h.bkB,this.element=be}getOptions(){return this.uploader?.options}getFilters(){return""}isEmptyAfterSelection(){return!!this.element.nativeElement.attributes.multiple}onChange(){const be=this.element.nativeElement.files,Se=this.getOptions(),Nt=this.getFilters();this.uploader?.addToQueue(be,Se,Nt),this.onFileSelected.emit(be),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}static{this.\u0275fac=function(Se){return new(Se||Wt)(h.rXU(h.aKT))}}static{this.\u0275dir=h.FsC({type:Wt,selectors:[["","ng2FileSelect",""]],hostBindings:function(Se,Nt){1&Se&&h.bIt("change",function(){return Nt.onChange()})},inputs:{uploader:"uploader"},outputs:{onFileSelected:"onFileSelected"}})}}return Wt})(),Ge=(()=>{class Wt{static{this.\u0275fac=function(Se){return new(Se||Wt)}}static{this.\u0275mod=h.$C({type:Wt})}static{this.\u0275inj=h.G2t({imports:[ne.MD]})}}return Wt})();const Ue=["fileInput"];function yt(Wt,ze){if(1&Wt&&(h.qex(0),h.nrm(1,"img",26),h.bVm()),2&Wt){const be=h.XpG().$implicit,Se=h.XpG(3);h.R7$(1),h.Y8G("src",Se.imagePreviews[be._file.name]||"",h.B4B)("alt",be._file.name)}}function _t(Wt,ze){1&Wt&&(h.qSk(),h.j41(0,"svg",27),h.nrm(1,"path",28)(2,"path",29),h.k0s())}const bt=function(Wt){return{"upload-complete":Wt}};function ft(Wt,ze){if(1&Wt){const be=h.RV6();h.j41(0,"div",17)(1,"div",18)(2,"div",19),h.DNE(3,yt,2,2,"ng-container",20),h.DNE(4,_t,3,0,"ng-template",null,21,h.C5r),h.k0s(),h.j41(6,"div",22)(7,"div",23),h.EFF(8),h.k0s(),h.j41(9,"div",24),h.EFF(10),h.k0s()()(),h.j41(11,"div")(12,"button",25),h.bIt("click",function(){const K=h.eBV(be).$implicit,ge=h.XpG(3);return h.Njj(ge.removeFile(K))}),h.EFF(13," \xd7 "),h.k0s()()()}if(2&Wt){const be=ze.$implicit,Se=h.sdS(5),Nt=h.XpG(3);let K;h.Y8G("ngClass",h.eq3(6,bt,be.isUploaded)),h.R7$(3),h.Y8G("ngIf",(null==be?null:be._file)&&(null==be||null==be._file||null==be._file.type?null:be._file.type.startsWith("image/")))("ngIfElse",Se),h.R7$(4),h.Y8G("title",be.file.name),h.R7$(1),h.JRh(Nt.truncateFileName(null!==(K=be.file.name)&&void 0!==K?K:"",20)),h.R7$(2),h.SpI(" ",Nt.formatFileSize(be.file.size)," ")}}function mt(Wt,ze){if(1&Wt&&(h.j41(0,"div",15),h.DNE(1,ft,14,8,"div",16),h.k0s()),2&Wt){const be=h.XpG(2);h.R7$(1),h.Y8G("ngForOf",be.uploader.queue)}}function en(Wt,ze){if(1&Wt&&(h.qex(0),h.nrm(1,"img",26),h.bVm()),2&Wt){const be=h.XpG().$implicit;h.R7$(1),h.Y8G("src",be.fileUrl,h.B4B)("alt",be.fileName)}}function vt(Wt,ze){1&Wt&&(h.qSk(),h.j41(0,"svg",27),h.nrm(1,"path",28)(2,"path",29),h.k0s())}function At(Wt,ze){if(1&Wt){const be=h.RV6();h.j41(0,"div",32)(1,"button",25),h.bIt("click",function(){const K=h.eBV(be).$implicit,ge=h.XpG(3);return h.Njj(ge.removeAttachment(K))}),h.EFF(2," \xd7 "),h.k0s(),h.j41(3,"div",18)(4,"div",19),h.DNE(5,en,2,2,"ng-container",20),h.DNE(6,vt,3,0,"ng-template",null,33,h.C5r),h.k0s(),h.j41(8,"div",22)(9,"div",23),h.EFF(10),h.k0s(),h.j41(11,"div",24),h.EFF(12),h.k0s()()()()}if(2&Wt){const be=ze.$implicit,Se=h.sdS(7),Nt=h.XpG(3);h.R7$(5),h.Y8G("ngIf",Nt.isImageFile(be.fileName))("ngIfElse",Se),h.R7$(4),h.Y8G("title",be.fileName),h.R7$(1),h.JRh(Nt.truncateFileName(be.fileName,20)),h.R7$(2),h.SpI(" ",Nt.formatFileSize(null==be?null:be.fileSize)," ")}}function me(Wt,ze){if(1&Wt&&(h.j41(0,"div",30),h.DNE(1,At,13,5,"div",31),h.k0s()),2&Wt){const be=h.XpG(2);h.R7$(1),h.Y8G("ngForOf",be.attachments)}}const at=function(Wt){return{"file-over":Wt}};function rt(Wt,ze){if(1&Wt){const be=h.RV6();h.j41(0,"div")(1,"div",3),h.bIt("drop",function(Nt){h.eBV(be);const K=h.XpG();return h.Njj(K.onDrop(Nt))})("dragover",function(Nt){h.eBV(be);const K=h.XpG();return h.Njj(K.onDragOver(Nt))})("dragleave",function(Nt){h.eBV(be);const K=h.XpG();return h.Njj(K.onDragLeave(Nt))}),h.j41(2,"div",4)(3,"div",5),h.bIt("click",function(){h.eBV(be);const Nt=h.XpG();return h.Njj(Nt.openFileDialog())}),h.qSk(),h.j41(4,"svg",6),h.nrm(5,"path",7)(6,"path",8)(7,"path",9),h.k0s()(),h.joV(),h.j41(8,"p"),h.EFF(9," Drag & Drop or to "),h.j41(10,"span",10),h.bIt("click",function(){h.eBV(be);const Nt=h.XpG();return h.Njj(Nt.openFileDialog())}),h.EFF(11,"Choose file"),h.k0s(),h.EFF(12," to upload "),h.k0s()(),h.j41(13,"input",11,12),h.bIt("change",function(Nt){h.eBV(be);const K=h.XpG();return h.Njj(K.onFileSelected(Nt))}),h.k0s()(),h.DNE(15,mt,2,1,"div",13),h.DNE(16,me,2,1,"div",14),h.k0s()}if(2&Wt){const be=h.XpG();h.R7$(1),h.Y8G("ngClass",h.eq3(4,at,be.hasAnotherDropZoneOver)),h.R7$(12),h.Y8G("multiple",be.multiple),h.R7$(2),h.Y8G("ngIf",((null==be.uploader||null==be.uploader.queue?null:be.uploader.queue.length)||0)>0),h.R7$(1),h.Y8G("ngIf",((null==be.attachments?null:be.attachments.length)||0)>0)}}function ht(Wt,ze){if(1&Wt&&h.nrm(0,"img",45),2&Wt){const be=h.XpG(2);h.Y8G("src",be.previewUrl,h.B4B)}}const St=function(Wt){return{"another-file-over-class":Wt}};function Mt(Wt,ze){if(1&Wt){const be=h.RV6();h.j41(0,"div",34)(1,"div",35),h.bIt("drop",function(Nt){h.eBV(be);const K=h.XpG();return h.Njj(K.onDrop(Nt))})("dragover",function(Nt){h.eBV(be);const K=h.XpG();return h.Njj(K.onDragOver(Nt))})("dragleave",function(Nt){h.eBV(be);const K=h.XpG();return h.Njj(K.onDragLeave(Nt))}),h.j41(2,"div",36),h.bIt("click",function(){h.eBV(be);const Nt=h.sdS(9);return h.Njj(Nt.click())}),h.DNE(3,ht,1,1,"img",37),h.k0s(),h.j41(4,"button",38),h.bIt("click",function(){h.eBV(be);const Nt=h.sdS(9);return h.Njj(Nt.click())}),h.nrm(5,"i",39),h.k0s(),h.j41(6,"button",40),h.bIt("click",function(){h.eBV(be);const Nt=h.XpG();return h.Njj(Nt.removeFile(Nt.uploader.queue[0]))}),h.nrm(7,"i",41),h.k0s(),h.nrm(8,"input",42,12)(10,"div",43),h.k0s(),h.nrm(11,"div",44),h.k0s()}if(2&Wt){const be=h.XpG();h.R7$(2),h.Y8G("ngClass",h.eq3(3,St,be.hasAnotherDropZoneOver)),h.R7$(1),h.Y8G("ngIf",be.previewUrl),h.R7$(5),h.Y8G("uploader",be.uploader)}}let En=(()=>{class Wt{constructor(){var be;this.hasBaseDropZoneOver=!1,this.hasAnotherDropZoneOver=!1,this.response="",this.total=0,this.previewUrl=null,this.deletedAttachments=[],this.totalSize="",this.fileAllowed=[],this.multiple=!1,this.avatarPicker=!1,this.attachments=[],this.fileSize="",this.fileTypeNotAllowed=new h.bkB,this.fileSizeAllowed=new h.bkB,this.finalArray=new h.bkB,this.deleteFiles=new h.bkB,this.imagePreviews={},this.uploader=new Oe({url:"URL",disableMultipart:!0,formatDataFunctionIsAsync:!0,formatDataFunction:(be=(0,e.A)(function*(Se){return new Promise((Nt,K)=>{Nt({name:Se._file.name,length:Se._file.size,contentType:Se._file.type,date:new Date})})}),function(Nt){return be.apply(this,arguments)})}),this.uploader.onAfterAddingFile=be=>this.onAfterAddingFile(be),this.hasBaseDropZoneOver=!1,this.hasAnotherDropZoneOver=!1,this.response="",this.uploader.response.subscribe(be=>this.response=be)}ngOnInit(){this.avatarPicker&&(this.multiple=!1,this.fileAllowed=["image/jpeg","image/png","image/svg+xml","image/webp"]),this.files&&this.files.length>0&&this.rebindFilesToQueue(this.files)}rebindFilesToQueue(be){be.forEach(Se=>{const Nt=Se.file.rawFile||Se,K=new File([Nt],Nt.name,{type:Nt.type}),ge=new De(this.uploader,K,this.uploader.options);this.uploader.queue.push(ge)})}fileOverBase(be){this.hasBaseDropZoneOver=be}fileOverAnother(be){this.hasAnotherDropZoneOver=be}save(be){this.finalArray.emit(this.uploader.queue)}onAfterAddingFile(be){const Se=be._file;!this.multiple&&this.uploader.queue?.length>1&&this.uploader.removeFromQueue(this.uploader.queue[0]),this.uploadFiles(be),this.finalArray.emit(this.uploader.queue),!this.multiple&&this.attachments?.length>0&&this.removeAttachment(this.attachments[0]),this.isFileTypeAllowed(Se)?(Se.type.startsWith("image/")&&this.generateImagePreview(Se),this.avatarPicker&&this.showPreview(Se)):(this.fileTypeNotAllowed.emit(Se.type),this.uploader.removeFromQueue(be))}generateImagePreview(be){const Se=new FileReader;Se.onload=()=>{this.imagePreviews[be.name]=Se.result},Se.readAsDataURL(be)}isImageFile(be){return/\.(jpg|jpeg|png|gif|bmp|webp|svg)$/i.test(be)}isFileTypeAllowed(be){return this.fileAllowed.includes(be.type)}uploadFiles(be){this.fileSize&&be._file.size>this.fileSize&&(this.fileSizeAllowed.emit("File size exceeds the limit"),this.uploader.removeFromQueue(be)),this.total=0;for(const Se of this.uploader.queue)this.total+=Se._file.size;this.total>this.totalSize&&(this.fileSizeAllowed.emit("Total size exceeds the limit"),this.uploader.removeFromQueue(be))}openFileDialog(){this.fileInput.nativeElement.click()}onFileSelected(be){const Se=be.target.files;if(Se)for(let Nt=0;Nt<Se.length;Nt++)this.uploader.addToQueue([Se[Nt]])}removeFile(be){delete this.imagePreviews[be._file.name],be.remove(),this.finalArray.emit(this.uploader.queue),this.previewUrl="",this.fileInput?.nativeElement&&(this.fileInput.nativeElement.value="")}onDrop(be){be.preventDefault(),be.stopPropagation();const Se=be.dataTransfer?.files;if(Se){const Nt=Array.from(Se);this.uploader.addToQueue(Nt)}}onDragOver(be){be.preventDefault(),be.stopPropagation(),this.hasAnotherDropZoneOver=!0}onDragLeave(be){be.preventDefault(),be.stopPropagation(),this.hasAnotherDropZoneOver=!1}showPreview(be){if(this.uploader.queue.length>0){const Se=new FileReader;Se.onload=()=>{this.previewUrl=Se.result},Se.readAsDataURL(be)}}removeAttachment(be){this.attachments=this.attachments.filter(Se=>Se.fileId!==be.fileId),this.deletedAttachments.push(be.fileId),this.deleteFiles.emit(this.deletedAttachments)}formatFileSize(be){if(!be)return"";const Se=["Bytes","KB","MB","GB","TB"];let Nt=0;for(;be>=1024&&Nt<Se.length-1;)be/=1024,Nt++;return`${be.toFixed(2)} ${Se[Nt]}`}truncateFileName(be,Se){if(!be||be.length<=Se)return be;const Nt=be.lastIndexOf(".");if(-1===Nt||0===Nt)return be;const K=be.slice(0,Nt),ge=be.slice(Nt),je=Se-ge.length-3;return(K.length>je?K.slice(0,je)+"...":K)+ge}static{this.\u0275fac=function(Se){return new(Se||Wt)}}static{this.\u0275cmp=h.VBU({type:Wt,selectors:[["lib-docUpload"]],viewQuery:function(Se,Nt){if(1&Se&&h.GBs(Ue,5),2&Se){let K;h.mGM(K=h.lsd())&&(Nt.fileInput=K.first)}},inputs:{totalSize:"totalSize",fileAllowed:"fileAllowed",multiple:"multiple",avatarPicker:"avatarPicker",attachments:"attachments",files:"files",fileSize:"fileSize"},outputs:{fileTypeNotAllowed:"fileTypeNotAllowed",fileSizeAllowed:"fileSizeAllowed",finalArray:"finalArray",deleteFiles:"deleteFiles"},decls:3,vars:2,consts:[[1,"upload-container"],[4,"ngIf"],["class","row avatar-picker-container",4,"ngIf"],[1,"upload-dropzone",3,"ngClass","drop","dragover","dragleave"],[1,"dropzone-content"],["aria-label","Upload","title","Click to choose file",1,"upload-icon",3,"click"],["width","29","height","29","viewBox","0 0 29 29","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M14.5001 8.45833L14.5001 25.375","stroke","#084FFF","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M3.625 8.45898C3.625 5.78977 5.78912 3.62565 8.45833 3.62565L20.5417 3.62565C23.2109 3.62565 25.375 5.78978 25.375 8.45898","stroke","#084FFF","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],["d","M8.45843 14.5L14.5013 8.45712L20.543 14.5","stroke","#084FFF","stroke-width","1.5","stroke-linecap","round","stroke-linejoin","round"],[1,"choose-file-text",3,"click"],["type","file","hidden","",3,"multiple","change"],["fileInput",""],["class","file-queue",4,"ngIf"],["class","existing-attachments",4,"ngIf"],[1,"file-queue"],["class","file-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"file-item",3,"ngClass"],[1,"file-info"],[1,"icon"],[4,"ngIf","ngIfElse"],["showDefaultIcon",""],[1,"text-container"],[1,"file-name",3,"title"],[1,"file-meta"],["type","button","aria-label","Close",1,"close-btn",3,"click"],[1,"preview-image",3,"src","alt"],["width","38","height","38","viewBox","0 0 38 38","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M31.7332 6.26688C38.7662 13.2998 38.7662 24.7006 31.7332 31.7335C24.7003 38.7664 13.2996 38.7664 6.26664 31.7335C-0.766289 24.7006 -0.766289 13.2998 6.26664 6.26688C13.2996 -0.766044 24.7003 -0.766044 31.7332 6.26688","stroke","#084FFF","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["fill-rule","evenodd","clip-rule","evenodd","d","M26.0028 13.9373H18.9998L17.5953 11.8705C17.2211 11.3242 16.6028 10.9961 15.9406 10.9961H11.9969C10.8925 10.9961 9.99609 11.8925 9.99609 12.9969V25.0019C9.99609 26.1064 10.8925 27.0028 11.9969 27.0028H26.0028C27.1072 27.0028 28.0036 26.1064 28.0036 25.0019V15.9382C28.0036 14.8337 27.1072 13.9373 26.0028 13.9373Z","stroke","#084FFF","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"existing-attachments"],["class","file-item",4,"ngFor","ngForOf"],[1,"file-item"],["defaultIcon",""],[1,"row","avatar-picker-container"],[1,"uploader",2,"margin-bottom","40px",3,"drop","dragover","dragleave"],[1,"avatarPicker",3,"ngClass","click"],["alt","File Preview","class","img-responsive preview-img",3,"src",4,"ngIf"],[1,"editIcon",3,"click"],[1,"bi","bi-pencil-fill"],[1,"deleteIcon",3,"click"],[1,"bi","bi-trash"],["type","file","ng2FileSelect","","hidden","",3,"uploader"],[1,"buttons"],[1,"col-sm-2","previewImage",2,"margin-bottom","40px"],["alt","File Preview",1,"img-responsive","preview-img",3,"src"]],template:function(Se,Nt){1&Se&&(h.j41(0,"div",0),h.DNE(1,rt,17,6,"div",1),h.DNE(2,Mt,12,5,"div",2),h.k0s()),2&Se&&(h.R7$(1),h.Y8G("ngIf",!Nt.avatarPicker),h.R7$(1),h.Y8G("ngIf",Nt.avatarPicker))},dependencies:[ne.YU,ne.Sq,ne.bT,Me],styles:[".upload-container[_ngcontent-%COMP%]{max-width:600px;margin:0 auto;padding:5px;font-family:sans-serif}.upload-dropzone[_ngcontent-%COMP%]{border:2px dashed #d8d8d8;border-radius:8px;padding:2rem;text-align:center;position:relative;cursor:pointer;transition:border-color .3s ease;width:100%}.upload-dropzone.file-over[_ngcontent-%COMP%]{border-color:#0f62fe;background-color:#f7faff}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] .upload-icon[_ngcontent-%COMP%]{margin-bottom:.5rem;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6f6f6f;font-size:.95rem;margin:0}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] .choose-file-text[_ngcontent-%COMP%]{color:#0f62fe;cursor:pointer;margin:0 4px}.upload-dropzone[_ngcontent-%COMP%] .dropzone-content[_ngcontent-%COMP%] .choose-file-text[_ngcontent-%COMP%]:hover{color:#0043ce}.file-queue[_ngcontent-%COMP%]{margin:1rem 0}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;background:#f5f6f8;border-radius:8px;padding:1rem;margin-bottom:1rem}.file-queue[_ngcontent-%COMP%] .file-item.upload-complete[_ngcontent-%COMP%]{background-color:#f2f9ee;border:1px solid #c9e2b3}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%]{display:flex;align-items:center}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:15px}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;padding-right:40px;overflow:hidden}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{font-size:1rem;color:#222;word-break:break-all}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-meta[_ngcontent-%COMP%]{font-size:.85rem;color:#9fa5b3}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;background:none;border:none;font-size:1.2rem;line-height:1;cursor:pointer;color:#333}.file-queue[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{color:#000}.existing-attachments[_ngcontent-%COMP%]{margin:1rem 0}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:column;background:#f5f6f8;border-radius:8px;padding:1rem;margin-bottom:1rem}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{position:absolute;top:12px;right:12px;background:none;border:none;font-size:1.2rem;cursor:pointer;color:#333}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%]{display:flex;align-items:center}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-right:15px}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;padding-right:40px;overflow:hidden}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{font-size:1rem;color:#222;word-break:break-all}.existing-attachments[_ngcontent-%COMP%] .file-item[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .text-container[_ngcontent-%COMP%] .file-meta[_ngcontent-%COMP%]{font-size:.85rem;color:#9fa5b3}.avatar-picker-container[_ngcontent-%COMP%] .uploader[_ngcontent-%COMP%]{position:relative}.avatar-picker-container[_ngcontent-%COMP%] .avatarPicker[_ngcontent-%COMP%]{border:1px solid #aaa;text-align:center;background-color:#f9f9f9;cursor:pointer;height:300px;width:300px;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:50%}.avatar-picker-container[_ngcontent-%COMP%] .another-file-over-class[_ngcontent-%COMP%]{border-color:#5cb85c}.avatar-picker-container[_ngcontent-%COMP%] .deleteIcon[_ngcontent-%COMP%]{position:absolute;z-index:999;bottom:12%;left:41%;border-radius:50%;border:.1rem solid #aaa;background:#fff;width:40px;height:40px}.avatar-picker-container[_ngcontent-%COMP%] .editIcon[_ngcontent-%COMP%]{position:absolute;z-index:999;bottom:13%;left:3%;border-radius:50%;border:.1rem solid #aaa;background:#fff;width:40px;height:40px}.avatar-picker-container[_ngcontent-%COMP%] .preview-img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%}.avatar-picker-container[_ngcontent-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:10px;display:flex;justify-content:space-around}.preview-image[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:50%}"]})}}return Wt})(),dn=(()=>{class Wt{static{this.\u0275fac=function(Se){return new(Se||Wt)}}static{this.\u0275mod=h.$C({type:Wt})}static{this.\u0275inj=h.G2t({imports:[ne.MD,Ge]})}}return Wt})()},8031:(pn,ct,N)=>{N.d(ct,{pc:()=>zh,p0:()=>_h,YN:()=>_m,Kn:()=>Pf,mO:()=>Mp});var e=N(7705),h=N(5964),ne=N(6354),Z=N(6697),De=N(6977),we=N(3294);function Oe(s){return s<0?Math.ceil(s)||0:Math.floor(s)}function Ne(s){return"string"==typeof s}function Me(s){return s instanceof Date||"[object Date]"===Object.prototype.toString.call(s)}function Ue(s){return s&&s.getTime&&!isNaN(s.getTime())}function yt(s){return s instanceof Function||"[object Function]"===Object.prototype.toString.call(s)}function _t(s){return"number"==typeof s||"[object Number]"===Object.prototype.toString.call(s)}function bt(s){return s instanceof Array||"[object Array]"===Object.prototype.toString.call(s)}function ft(s,c){return Object.prototype.hasOwnProperty.call(s,c)}function mt(s){return null!=s&&"[object Object]"===Object.prototype.toString.call(s)}function vt(s){return void 0===s}function At(s){const c=+s;let r=0;return 0!==c&&isFinite(c)&&(r=Oe(c)),r}const me={},at={date:"day",hour:"hours",minute:"minutes",second:"seconds",millisecond:"milliseconds"};function rt(s,c){const r=s.toLowerCase();let m=s;r in at&&(m=at[r]),me[r]=me[`${r}s`]=me[c]=m}function ht(s){return Ne(s)?me[s]||me[s.toLowerCase()]:void 0}const Mt=0,cn=1,En=2,dn=3,Wt=4,ze=5,be=6,Se=7,Nt=8;function K(s,c,r){const m=`${Math.abs(s)}`;return(s>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,c-m.length)).toString().substr(1)+m}const ge={},je={},le=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;function ce(s,c,r,m){s&&(je[s]=m),c&&(je[c[0]]=function(){return K(m.apply(null,arguments),c[1],c[2])}),r&&(je[r]=function(D,G){return G.locale.ordinal(m.apply(null,arguments),s)})}function ue(s){return s.match(/\[[\s\S]/)?s.replace(/^\[|\]$/g,""):s.replace(/\\/g,"")}function Ye(s,c,r){const m=new Date(Date.UTC.apply(null,arguments));return s<100&&s>=0&&isFinite(m.getUTCFullYear())&&m.setUTCFullYear(s),m}function L(s,c=0,r=1,m=0,D=0,G=0,fe=0){const ot=new Date(s,c,r,m,D,G,fe);return s<100&&s>=0&&isFinite(ot.getFullYear())&&ot.setFullYear(s),ot}function z(s,c=!1){return c?s.getUTCHours():s.getHours()}function Be(s,c=!1){return c?s.getUTCMinutes():s.getMinutes()}function pt(s,c=!1){return c?s.getUTCSeconds():s.getSeconds()}function dt(s,c=!1){return c?s.getUTCMilliseconds():s.getMilliseconds()}function bn(s,c=!1){return c?s.getUTCDay():s.getDay()}function jn(s,c=!1){return c?s.getUTCDate():s.getDate()}function nn(s,c=!1){return c?s.getUTCMonth():s.getMonth()}function Vn(s,c=!1){return c?s.getUTCFullYear():s.getFullYear()}function Ve(s,c){return!(!s||!c)&&ut(s,c)&&nn(s)===nn(c)}function ut(s,c){return!(!s||!c)&&Vn(s)===Vn(c)}function Ft(s,c){return!(!s||!c)&&ut(s,c)&&Ve(s,c)&&jn(s)===jn(c)}const sn=/\d/,Ln=/\d\d/,Qt=/\d{3}/,qt=/\d{4}/,st=/[+-]?\d{6}/,Dt=/\d\d?/,wt=/\d\d\d\d?/,Rn=/\d\d\d\d\d\d?/,yn=/\d{1,3}/,Hn=/\d{1,4}/,ti=/[+-]?\d{1,6}/,ai=/\d+/,zi=/[+-]?\d+/,Bi=/Z|[+-]\d\d(?::?\d\d)?/gi,Ps=/[+-]?\d+(\.\d{1,3})?/,ei=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,qs={};function Mn(s,c,r){qs[s]=yt(c)?c:function(m,D){return m&&r?r:c}}function io(s,c){return ft(qs,s)?qs[s](!1,c):new RegExp(function an(s){return kt(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(c,r,m,D,G)=>r||m||D||G))}(s))}function kt(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}const ye={};function Pe(s,c){const r=Ne(s)?[s]:s;let m=c;if(_t(c)&&(m=function(D,G,fe){return G[c]=At(D),fe}),bt(r)&&yt(m)){let D;for(D=0;D<r.length;D++)ye[r[D]]=m}}function Fe(s,c){Pe(s,function(r,m,D,G){return D._w=D._w||{},c(r,D._w,D,G)})}function Xe(s,c,r){return null!=c&&ft(ye,s)&&ye[s](c,r._a,r,s),r}const zt={};function on(s,c){zt[s]=c}function Ee(s){return null==s._pf&&(s._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),s._pf}function Qe(s,c){return c.locale.getFullYear?c.locale.getFullYear(s,c.isUTC).toString():Vn(s,c.isUTC).toString()}function hn(s){return At(s)+(At(s)>68?1900:2e3)}function nt(s){return He(s)?366:365}function He(s){return s%4==0&&s%100!=0||s%400==0}function Ze(s,c){if(isNaN(s)||isNaN(c))return NaN;const r=function Ie(s,c){return(s%c+c)%c}(c,12);return 1===r?He(s+(c-r)/12)?29:28:31-r%7%2}const fn={year:0,month:0,day:0,hour:0,minute:0,seconds:0};function mn(s,c){const r=Object.assign({},fn,c),m=s.getFullYear()+(r.year||0),D=s.getMonth()+(r.month||0);let G=s.getDate()+(r.day||0);return r.month&&!r.day&&(G=Math.min(G,Ze(m,D))),L(m,D,G,s.getHours()+(r.hour||0),s.getMinutes()+(r.minute||0),s.getSeconds()+(r.seconds||0))}function ri(s,c){return _t(c)?c:s}function Ei(s,c,r){const m=Math.min(jn(s),Ze(Vn(s),c));return r?s.setUTCMonth(c,m):s.setMonth(c,m),s}function xi(s,c,r){return r?s.setUTCDate(c):s.setDate(c),s}function Rt(s){return new Date(s.getTime())}function oe(s,c,r){const m=Rt(s);switch(c){case"year":Ei(m,0,r);case"quarter":case"month":xi(m,1,r);case"week":case"isoWeek":case"day":case"date":!function gs(s,c,r){r?s.setUTCHours(c):s.setHours(c)}(m,0,r);case"hours":!function ms(s,c,r){r?s.setUTCMinutes(c):s.setMinutes(c)}(m,0,r);case"minutes":!function Cs(s,c,r){r?s.setUTCSeconds(c):s.setSeconds(c)}(m,0,r);case"seconds":!function Es(s,c,r){r?s.setUTCMilliseconds(c):s.setMilliseconds(c)}(m,0,r)}return"week"===c&&function ec(s,c,r={}){Li(s,c-Di(s,r.locale,r.isUTC),"day")}(m,0,{isUTC:r}),"isoWeek"===c&&function ao(s,c,r={}){const m=function ta(s,c=Mi()){return Ne(s)?c.weekdaysParse(s)%7||7:_t(s)&&isNaN(s)?null:s}(c,r.locale);Yo(s,function vs(s,c){return bn(s,c)}(s)%7?m:m-7)}(m,1),"quarter"===c&&Ei(m,3*Math.floor(nn(m,r)/3),r),m}function _e(s,c,r){let m=c;return"date"===m&&(m="day"),function $o(s,c,r,m){return cs(s,ji(c,r),-1,m)}(Li(oe(s,m,r),1,"isoWeek"===m?"week":m,r),1,"milliseconds",r)}function Pt(s,c){const r=+oe(s,"day",c),m=+oe(s,"year",c);return Math.round((r-m)/864e5)+1}function An(s,c,r){const m=c-r+7;return-(Ye(s,0,m).getUTCDay()-c+7)%7+m-1}function hi(s,c,r,m){const D=An(Vn(s,m),c,r),G=Math.floor((Pt(s,m)-D-1)/7)+1;let fe,ot;return G<1?(ot=Vn(s,m)-1,fe=G+Kn(ot,c,r)):G>Kn(Vn(s,m),c,r)?(fe=G-Kn(Vn(s,m),c,r),ot=Vn(s,m)+1):(ot=Vn(s,m),fe=G),{week:fe,year:ot}}function Kn(s,c,r){const m=An(s,c,r),D=An(s+1,c,r);return(nt(s)-m+D)/7}const li=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,es="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ls="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),dr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ri="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xs={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},In=ei,Ao=ei;class Bs{constructor(c){c&&this.set(c)}set(c){let r;for(r in c){if(!c.hasOwnProperty(r))continue;const m=c[r];this[yt(m)?r:`_${r}`]=m}this._config=c}calendar(c,r,m){const D=this._calendar[c]||this._calendar.sameElse;return yt(D)?D.call(null,r,m):D}longDateFormat(c){const r=this._longDateFormat[c],m=this._longDateFormat[c.toUpperCase()];return r||!m?r:(this._longDateFormat[c]=m.replace(/MMMM|MM|DD|dddd/g,function(D){return D.slice(1)}),this._longDateFormat[c])}get invalidDate(){return this._invalidDate}set invalidDate(c){this._invalidDate=c}ordinal(c,r){return this._ordinal.replace("%d",c.toString(10))}preparse(c,r){return c}getFullYear(c,r=!1){return Vn(c,r)}postformat(c){return c}relativeTime(c,r,m,D){const G=this._relativeTime[m];return yt(G)?G(c,r,m,D):G.replace(/%d/i,c.toString(10))}pastFuture(c,r){const m=this._relativeTime[c>0?"future":"past"];return yt(m)?m(r):m.replace(/%s/i,r)}months(c,r,m=!1){if(!c)return bt(this._months)?this._months:this._months.standalone;if(bt(this._months))return this._months[nn(c,m)];const D=(this._months.isFormat||li).test(r)?"format":"standalone";return this._months[D][nn(c,m)]}monthsShort(c,r,m=!1){if(!c)return bt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone;if(bt(this._monthsShort))return this._monthsShort[nn(c,m)];const D=li.test(r)?"format":"standalone";return this._monthsShort[D][nn(c,m)]}monthsParse(c,r,m){let D,G,fe;if(this._monthsParseExact)return this.handleMonthStrictParse(c,r,m);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),fe=0;fe<12;fe++){if(D=new Date(Date.UTC(2e3,fe)),m&&!this._longMonthsParse[fe]){const ot=this.months(D,"",!0).replace(".",""),Ut=this.monthsShort(D,"",!0).replace(".","");this._longMonthsParse[fe]=new RegExp(`^${ot}$`,"i"),this._shortMonthsParse[fe]=new RegExp(`^${Ut}$`,"i")}if(!m&&!this._monthsParse[fe]&&(G=`^${this.months(D,"",!0)}|^${this.monthsShort(D,"",!0)}`,this._monthsParse[fe]=new RegExp(G.replace(".",""),"i")),m&&"MMMM"===r&&this._longMonthsParse[fe].test(c)||m&&"MMM"===r&&this._shortMonthsParse[fe].test(c)||!m&&this._monthsParse[fe].test(c))return fe}}monthsRegex(c){return this._monthsParseExact?(ft(this,"_monthsRegex")||this.computeMonthsParse(),c?this._monthsStrictRegex:this._monthsRegex):(ft(this,"_monthsRegex")||(this._monthsRegex=Ao),this._monthsStrictRegex&&c?this._monthsStrictRegex:this._monthsRegex)}monthsShortRegex(c){return this._monthsParseExact?(ft(this,"_monthsRegex")||this.computeMonthsParse(),c?this._monthsShortStrictRegex:this._monthsShortRegex):(ft(this,"_monthsShortRegex")||(this._monthsShortRegex=In),this._monthsShortStrictRegex&&c?this._monthsShortStrictRegex:this._monthsShortRegex)}week(c,r){return hi(c,this._week.dow,this._week.doy,r).week}firstDayOfWeek(){return this._week.dow}firstDayOfYear(){return this._week.doy}weekdays(c,r,m){if(!c)return bt(this._weekdays)?this._weekdays:this._weekdays.standalone;if(bt(this._weekdays))return this._weekdays[bn(c,m)];const D=this._weekdays.isFormat.test(r)?"format":"standalone";return this._weekdays[D][bn(c,m)]}weekdaysMin(c,r,m){return c?this._weekdaysMin[bn(c,m)]:this._weekdaysMin}weekdaysShort(c,r,m){return c?this._weekdaysShort[bn(c,m)]:this._weekdaysShort}weekdaysParse(c,r,m){let D,G;if(this._weekdaysParseExact)return this.handleWeekStrictParse(c,r,m);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),D=0;D<7;D++){const fe=Yo(new Date(Date.UTC(2e3,1)),D,null,!0);if(m&&!this._fullWeekdaysParse[D]&&(this._fullWeekdaysParse[D]=new RegExp(`^${this.weekdays(fe,"",!0).replace(".",".?")}$`,"i"),this._shortWeekdaysParse[D]=new RegExp(`^${this.weekdaysShort(fe,"",!0).replace(".",".?")}$`,"i"),this._minWeekdaysParse[D]=new RegExp(`^${this.weekdaysMin(fe,"",!0).replace(".",".?")}$`,"i")),this._weekdaysParse[D]||(G=`^${this.weekdays(fe,"",!0)}|^${this.weekdaysShort(fe,"",!0)}|^${this.weekdaysMin(fe,"",!0)}`,this._weekdaysParse[D]=new RegExp(G.replace(".",""),"i")),!(bt(this._fullWeekdaysParse)&&bt(this._shortWeekdaysParse)&&bt(this._minWeekdaysParse)&&bt(this._weekdaysParse)))return;if(m&&"dddd"===r&&this._fullWeekdaysParse[D].test(c))return D;if(m&&"ddd"===r&&this._shortWeekdaysParse[D].test(c))return D;if(m&&"dd"===r&&this._minWeekdaysParse[D].test(c))return D;if(!m&&this._weekdaysParse[D].test(c))return D}}weekdaysRegex(c){return this._weekdaysParseExact?(ft(this,"_weekdaysRegex")||this.computeWeekdaysParse(),c?this._weekdaysStrictRegex:this._weekdaysRegex):(ft(this,"_weekdaysRegex")||(this._weekdaysRegex=ei),this._weekdaysStrictRegex&&c?this._weekdaysStrictRegex:this._weekdaysRegex)}weekdaysShortRegex(c){return this._weekdaysParseExact?(ft(this,"_weekdaysRegex")||this.computeWeekdaysParse(),c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ft(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ei),this._weekdaysShortStrictRegex&&c?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}weekdaysMinRegex(c){return this._weekdaysParseExact?(ft(this,"_weekdaysRegex")||this.computeWeekdaysParse(),c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ft(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ei),this._weekdaysMinStrictRegex&&c?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}isPM(c){return"p"===c.toLowerCase().charAt(0)}meridiem(c,r,m){return c>11?m?"pm":"PM":m?"am":"AM"}formatLongDate(c){this._longDateFormat=this._longDateFormat?this._longDateFormat:Xs;const r=this._longDateFormat[c],m=this._longDateFormat[c.toUpperCase()];return r||!m?r:(this._longDateFormat[c]=m.replace(/MMMM|MM|DD|dddd/g,D=>D.slice(1)),this._longDateFormat[c])}handleMonthStrictParse(c,r,m){const D=c.toLocaleLowerCase();let G,fe,ot;if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],G=0;G<12;++G)ot=new Date(2e3,G),this._shortMonthsParse[G]=this.monthsShort(ot,"").toLocaleLowerCase(),this._longMonthsParse[G]=this.months(ot,"").toLocaleLowerCase();return m?"MMM"===r?(fe=this._shortMonthsParse.indexOf(D),-1!==fe?fe:null):(fe=this._longMonthsParse.indexOf(D),-1!==fe?fe:null):"MMM"===r?(fe=this._shortMonthsParse.indexOf(D),-1!==fe?fe:(fe=this._longMonthsParse.indexOf(D),-1!==fe?fe:null)):(fe=this._longMonthsParse.indexOf(D),-1!==fe?fe:(fe=this._shortMonthsParse.indexOf(D),-1!==fe?fe:null))}handleWeekStrictParse(c,r,m){let D;const G=c.toLocaleLowerCase();if(!this._weekdaysParse){let fe;for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],fe=0;fe<7;++fe){const ot=Yo(new Date(Date.UTC(2e3,1)),fe,null,!0);this._minWeekdaysParse[fe]=this.weekdaysMin(ot).toLocaleLowerCase(),this._shortWeekdaysParse[fe]=this.weekdaysShort(ot).toLocaleLowerCase(),this._weekdaysParse[fe]=this.weekdays(ot,"").toLocaleLowerCase()}}if(bt(this._weekdaysParse)&&bt(this._shortWeekdaysParse)&&bt(this._minWeekdaysParse))return m?"dddd"===r?(D=this._weekdaysParse.indexOf(G),-1!==D?D:null):"ddd"===r?(D=this._shortWeekdaysParse.indexOf(G),-1!==D?D:null):(D=this._minWeekdaysParse.indexOf(G),-1!==D?D:null):"dddd"===r?(D=this._weekdaysParse.indexOf(G),-1!==D||(D=this._shortWeekdaysParse.indexOf(G),-1!==D)?D:(D=this._minWeekdaysParse.indexOf(G),-1!==D?D:null)):"ddd"===r?(D=this._shortWeekdaysParse.indexOf(G),-1!==D||(D=this._weekdaysParse.indexOf(G),-1!==D)?D:(D=this._minWeekdaysParse.indexOf(G),-1!==D?D:null)):(D=this._minWeekdaysParse.indexOf(G),-1!==D||(D=this._weekdaysParse.indexOf(G),-1!==D)?D:(D=this._shortWeekdaysParse.indexOf(G),-1!==D?D:null))}computeMonthsParse(){const c=[],r=[],m=[];let D,G;for(G=0;G<12;G++)D=new Date(2e3,G),c.push(this.monthsShort(D,"")),r.push(this.months(D,"")),m.push(this.months(D,"")),m.push(this.monthsShort(D,""));for(c.sort(Ws),r.sort(Ws),m.sort(Ws),G=0;G<12;G++)c[G]=kt(c[G]),r[G]=kt(r[G]);for(G=0;G<24;G++)m[G]=kt(m[G]);this._monthsRegex=new RegExp(`^(${m.join("|")})`,"i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp(`^(${r.join("|")})`,"i"),this._monthsShortStrictRegex=new RegExp(`^(${c.join("|")})`,"i")}computeWeekdaysParse(){const c=[],r=[],m=[],D=[];let G;for(G=0;G<7;G++){const fe=Yo(new Date(Date.UTC(2e3,1)),G,null,!0),ot=this.weekdaysMin(fe),Ut=this.weekdaysShort(fe),Bn=this.weekdays(fe);c.push(ot),r.push(Ut),m.push(Bn),D.push(ot),D.push(Ut),D.push(Bn)}for(c.sort(Ws),r.sort(Ws),m.sort(Ws),D.sort(Ws),G=0;G<7;G++)r[G]=kt(r[G]),m[G]=kt(m[G]),D[G]=kt(D[G]);this._weekdaysRegex=new RegExp(`^(${D.join("|")})`,"i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp(`^(${m.join("|")})`,"i"),this._weekdaysShortStrictRegex=new RegExp(`^(${r.join("|")})`,"i"),this._weekdaysMinStrictRegex=new RegExp(`^(${c.join("|")})`,"i")}}function Ws(s,c){return c.length-s.length}const po={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:Xs,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:es,monthsShort:Ls,week:{dow:0,doy:6},weekdays:dr,weekdaysMin:Ri,weekdaysShort:Fo,meridiemParse:/[ap]\.?m?\.?/i};function mo(s,c,r){const m=Math.min(s.length,c.length),D=Math.abs(s.length-c.length);let fe,G=0;for(fe=0;fe<m;fe++)(r&&s[fe]!==c[fe]||!r&&At(s[fe])!==At(c[fe]))&&G++;return G+D}function Qs(s,c){ce(null,[s,s.length,!1],null,c)}function Zs(s,c){return Vi(s,c.locale).toString()}function Wo(s){return ni(s).toString()}function Vi(s,c=Mi(),r){return hi(s,c.firstDayOfWeek(),c.firstDayOfYear(),r).year}function ni(s,c){return hi(s,1,4,c).year}function Ni(s,c){ce(s,null,null,function(r,m){let D=function Ss(s,c={}){return c._isUTC?c._offset||0:function Fr(s){return 15*-Math.round(s.getTimezoneOffset()/15)}(s)}(r,{_isUTC:m.isUTC,_offset:m.offset}),G="+";return D<0&&(D=-D,G="-"),G+K(~~(D/60),2)+c+K(~~D%60,2)})}const ls=/([\+\-]|\d\d)/gi;const Ms={},Bo={};let tr;function ks(s){return s&&s.toLowerCase().replace("_","-")}function Ki(s){return Ms[s]||console.error(`Khronos locale error: please load locale "${s}" before using it`),Ms[s]}function gr(s,c){let r;return s&&(vt(c)?r=Mi(s):Ne(s)&&(r=Vo(s,c)),r&&(tr=r)),tr&&tr._abbr}function Vo(s,c){if(null===c)return delete Ms[s],tr=Mi("en"),null;if(!c)return;let r=po;if(c.abbr=s,null!=c.parentLocale){if(null==Ms[c.parentLocale])return Bo[c.parentLocale]||(Bo[c.parentLocale]=[]),Bo[c.parentLocale].push({name:s,config:c}),null;r=Ms[c.parentLocale]._config}return Ms[s]=new Bs(function Fs(s,c){const r=Object.assign({},s);for(const m in c)ft(c,m)&&(mt(s[m])&&mt(c[m])?(r[m]={},Object.assign(r[m],s[m]),Object.assign(r[m],c[m])):null!=c[m]?r[m]=c[m]:delete r[m]);for(const m in s)ft(s,m)&&!ft(c,m)&&mt(s[m])&&(r[m]=Object.assign({},r[m]));return r}(r,c)),Bo[s]&&Bo[s].forEach(function(m){Vo(m.name,m.config)}),gr(s),Ms[s]}function Mi(s){return function cl(){Ms.en||(gr("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal(s){const c=s%10;return s+(1===At(s%100/10)?"th":1===c?"st":2===c?"nd":3===c?"rd":"th")}}),function yi(){ce("w",["ww",2,!1],"wo",function(s,c){return function qi(s,c=Mi(),r){return c.week(s,r)}(s,c.locale).toString(10)}),ce("W",["WW",2,!1],"Wo",function(s){return function Ds(s,c){return hi(s,1,4,c).week}(s).toString(10)}),rt("week","w"),rt("isoWeek","W"),on("week",5),on("isoWeek",5),Mn("w",Dt),Mn("ww",Dt,Ln),Mn("W",Dt),Mn("WW",Dt,Ln),Fe(["w","ww","W","WW"],function(s,c,r,m){return c[m.substr(0,1)]=At(s),r})}(),function hs(){ce(null,["gg",2,!1],null,function(s,c){return(Vi(s,c.locale)%100).toString()}),ce(null,["GG",2,!1],null,function(s){return(ni(s)%100).toString()}),Qs("gggg",Zs),Qs("ggggg",Zs),Qs("GGGG",Wo),Qs("GGGGG",Wo),rt("weekYear","gg"),rt("isoWeekYear","GG"),on("weekYear",1),on("isoWeekYear",1),Mn("G",zi),Mn("g",zi),Mn("GG",Dt,Ln),Mn("gg",Dt,Ln),Mn("GGGG",Hn,qt),Mn("gggg",Hn,qt),Mn("GGGGG",ti,st),Mn("ggggg",ti,st),Fe(["gggg","ggggg","GGGG","GGGGG"],function(s,c,r,m){return c[m.substr(0,2)]=At(s),r}),Fe(["gg","GG"],function(s,c,r,m){return c[m]=hn(s),r})}(),function Bt(){ce("Y",null,null,function(s,c){const r=Vn(s,c.isUTC);return r<=9999?r.toString(10):`+${r}`}),ce(null,["YY",2,!1],null,function(s,c){return(Vn(s,c.isUTC)%100).toString(10)}),ce(null,["YYYY",4,!1],null,Qe),ce(null,["YYYYY",5,!1],null,Qe),ce(null,["YYYYYY",6,!0],null,Qe),rt("year","y"),on("year",1),Mn("Y",zi),Mn("YY",Dt,Ln),Mn("YYYY",Hn,qt),Mn("YYYYY",ti,st),Mn("YYYYYY",ti,st),Pe(["YYYYY","YYYYYY"],Mt),Pe("YYYY",function(s,c,r){return c[Mt]=2===s.length?hn(s):At(s),r}),Pe("YY",function(s,c,r){return c[Mt]=hn(s),r}),Pe("Y",function(s,c,r){return c[Mt]=parseInt(s,10),r})}(),function Ko(){ce("z",null,null,function(s,c){return c.isUTC?"UTC":""}),ce("zz",null,null,function(s,c){return c.isUTC?"Coordinated Universal Time":""})}(),function oo(){ce("X",null,null,function(s){return function Ci(s){return Math.floor(s.valueOf()/1e3)}(s).toString(10)}),ce("x",null,null,function(s){return s.valueOf().toString(10)}),Mn("x",zi),Mn("X",Ps),Pe("X",function(s,c,r){return r._d=new Date(1e3*parseFloat(s)),r}),Pe("x",function(s,c,r){return r._d=new Date(At(s)),r})}(),function ii(){ce("s",["ss",2,!1],null,function(s,c){return pt(s,c.isUTC).toString(10)}),rt("second","s"),on("second",15),Mn("s",Dt),Mn("ss",Dt,Ln),Pe(["s","ss"],ze)}(),function zr(){ce("Q",null,"Qo",function(s,c){return function Fa(s,c=!1){return Math.ceil((nn(s,c)+1)/3)}(s,c.isUTC).toString(10)}),rt("quarter","Q"),on("quarter",7),Mn("Q",sn),Pe("Q",function(s,c,r){return c[cn]=3*(At(s)-1),r})}(),function Xr(){Ni("Z",":"),Ni("ZZ",""),Mn("Z",Bi),Mn("ZZ",Bi),Pe(["Z","ZZ"],function(s,c,r){return r._useUTC=!0,r._tzm=function Mo(s,c){const r=(c||"").match(s);if(null===r)return null;const D=r[r.length-1].match(ls)||["-","0","0"],G=60*parseInt(D[1],10)+At(D[2]);return 0===G?0:"+"===D[0]?G:-G}(Bi,s),r})}(),function $t(){ce("M",["MM",2,!1],"Mo",function(s,c){return(nn(s,c.isUTC)+1).toString(10)}),ce("MMM",null,null,function(s,c){return c.locale.monthsShort(s,c.format,c.isUTC)}),ce("MMMM",null,null,function(s,c){return c.locale.months(s,c.format,c.isUTC)}),rt("month","M"),on("month",8),Mn("M",Dt),Mn("MM",Dt,Ln),Mn("MMM",function(s,c){return c.monthsShortRegex(s)}),Mn("MMMM",function(s,c){return c.monthsRegex(s)}),Pe(["M","MM"],function(s,c,r){return c[cn]=At(s)-1,r}),Pe(["MMM","MMMM"],function(s,c,r,m){const D=r._locale.monthsParse(s,m,r._strict);return null!=D?c[cn]=D:Ee(r).invalidMonth=!!s,r})}(),function Ar(){ce("m",["mm",2,!1],null,function(s,c){return Be(s,c.isUTC).toString(10)}),rt("minute","m"),on("minute",14),Mn("m",Dt),Mn("mm",Dt,Ln),Pe(["m","mm"],Wt)}(),function mr(){let s;for(ce("S",null,null,function(r,m){return(~~(dt(r,m.isUTC)/100)).toString(10)}),ce(null,["SS",2,!1],null,function(r,m){return(~~(dt(r,m.isUTC)/10)).toString(10)}),ce(null,["SSS",3,!1],null,function(r,m){return dt(r,m.isUTC).toString(10)}),ce(null,["SSSS",4,!1],null,function(r,m){return(10*dt(r,m.isUTC)).toString(10)}),ce(null,["SSSSS",5,!1],null,function(r,m){return(100*dt(r,m.isUTC)).toString(10)}),ce(null,["SSSSSS",6,!1],null,function(r,m){return(1e3*dt(r,m.isUTC)).toString(10)}),ce(null,["SSSSSSS",7,!1],null,function(r,m){return(1e4*dt(r,m.isUTC)).toString(10)}),ce(null,["SSSSSSSS",8,!1],null,function(r,m){return(1e5*dt(r,m.isUTC)).toString(10)}),ce(null,["SSSSSSSSS",9,!1],null,function(r,m){return(1e6*dt(r,m.isUTC)).toString(10)}),rt("millisecond","ms"),on("millisecond",16),Mn("S",yn,sn),Mn("SS",yn,Ln),Mn("SSS",yn,Qt),s="SSSS";s.length<=9;s+="S")Mn(s,ai);function c(r,m,D){return m[be]=At(1e3*parseFloat(`0.${r}`)),D}for(s="S";s.length<=9;s+="S")Pe(s,c)}(),function ro(){function s(D,G){return z(D,G)%12||12}function r(D,G){ce(D,null,null,function(fe,ot){return ot.locale.meridiem(z(fe,ot.isUTC),Be(fe,ot.isUTC),G)})}function m(D,G){return G._meridiemParse}ce("H",["HH",2,!1],null,function(D,G){return z(D,G.isUTC).toString(10)}),ce("h",["hh",2,!1],null,function(D,G){return s(D,G.isUTC).toString(10)}),ce("k",["kk",2,!1],null,function(D,G){return function c(D,G){return z(D,G)||24}(D,G.isUTC).toString(10)}),ce("hmm",null,null,function(D,G){return`${s(D,G.isUTC)}${K(Be(D,G.isUTC),2)}`}),ce("hmmss",null,null,function(D,G){return`${s(D,G.isUTC)}${K(Be(D,G.isUTC),2)}${K(pt(D,G.isUTC),2)}`}),ce("Hmm",null,null,function(D,G){return`${z(D,G.isUTC)}${K(Be(D,G.isUTC),2)}`}),ce("Hmmss",null,null,function(D,G){return`${z(D,G.isUTC)}${K(Be(D,G.isUTC),2)}${K(pt(D,G.isUTC),2)}`}),r("a",!0),r("A",!1),rt("hour","h"),on("hour",13),Mn("a",m),Mn("A",m),Mn("H",Dt),Mn("h",Dt),Mn("k",Dt),Mn("HH",Dt,Ln),Mn("hh",Dt,Ln),Mn("kk",Dt,Ln),Mn("hmm",wt),Mn("hmmss",Rn),Mn("Hmm",wt),Mn("Hmmss",Rn),Pe(["H","HH"],dn),Pe(["k","kk"],function(D,G,fe){const ot=At(D);return G[dn]=24===ot?0:ot,fe}),Pe(["a","A"],function(D,G,fe){return fe._isPm=fe._locale.isPM(D),fe._meridiem=D,fe}),Pe(["h","hh"],function(D,G,fe){return G[dn]=At(D),Ee(fe).bigHour=!0,fe}),Pe("hmm",function(D,G,fe){const ot=D.length-2;return G[dn]=At(D.substr(0,ot)),G[Wt]=At(D.substr(ot)),Ee(fe).bigHour=!0,fe}),Pe("hmmss",function(D,G,fe){const ot=D.length-4,Ut=D.length-2;return G[dn]=At(D.substr(0,ot)),G[Wt]=At(D.substr(ot,2)),G[ze]=At(D.substr(Ut)),Ee(fe).bigHour=!0,fe}),Pe("Hmm",function(D,G,fe){const ot=D.length-2;return G[dn]=At(D.substr(0,ot)),G[Wt]=At(D.substr(ot)),fe}),Pe("Hmmss",function(D,G,fe){const ot=D.length-4,Ut=D.length-2;return G[dn]=At(D.substr(0,ot)),G[Wt]=At(D.substr(ot,2)),G[ze]=At(D.substr(Ut)),fe})}(),function $e(){ce("DDD",["DDDD",3,!1],"DDDo",function(s){return Pt(s).toString(10)}),rt("dayOfYear","DDD"),on("dayOfYear",4),Mn("DDD",yn),Mn("DDDD",Qt),Pe(["DDD","DDDD"],function(s,c,r){return r._dayOfYear=At(s),r})}(),function So(){ce("d",null,"do",function(s,c){return bn(s,c.isUTC).toString(10)}),ce("dd",null,null,function(s,c){return c.locale.weekdaysMin(s,c.format,c.isUTC)}),ce("ddd",null,null,function(s,c){return c.locale.weekdaysShort(s,c.format,c.isUTC)}),ce("dddd",null,null,function(s,c){return c.locale.weekdays(s,c.format,c.isUTC)}),ce("e",null,null,function(s,c){return Di(s,c.locale,c.isUTC).toString(10)}),ce("E",null,null,function(s,c){return function ma(s,c){return bn(s,c)||7}(s,c.isUTC).toString(10)}),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),on("day",11),on("weekday",11),on("isoWeekday",11),Mn("d",Dt),Mn("e",Dt),Mn("E",Dt),Mn("dd",function(s,c){return c.weekdaysMinRegex(s)}),Mn("ddd",function(s,c){return c.weekdaysShortRegex(s)}),Mn("dddd",function(s,c){return c.weekdaysRegex(s)}),Fe(["dd","ddd","dddd"],function(s,c,r,m){const D=r._locale.weekdaysParse(s,m,r._strict);return null!=D?c.d=D:Ee(r).invalidWeekday=!!s,r}),Fe(["d","e","E"],function(s,c,r,m){return c[m]=At(s),r})}(),function gt(){ce("D",["DD",2,!1],"Do",function(s,c){return jn(s,c.isUTC).toString(10)}),rt("date","D"),on("date",9),Mn("D",Dt),Mn("DD",Dt,Ln),Mn("Do",function(s,c){return c._dayOfMonthOrdinalParse||c._ordinalParse}),Pe(["D","DD"],En),Pe("Do",function(s,c,r){return c[En]=At(s.match(Dt)[0]),r})}())}(),s?function Wr(s){let c,r,m=0;for(;m<s.length;){const D=ks(s[m]).split("-");let G=D.length;for(c=ks(s[m+1]),c=c?c.split("-"):null;G>0;){if(r=Ki(D.slice(0,G).join("-")),r)return r;if(c&&c.length>=G&&mo(D,c,!0)>=G-1)break;G--}m++}return null}(bt(s)?s:[s]):tr}const wa=["year","quarter","month","week","day","hours","minutes","seconds","milliseconds"],Rl=wa.reduce((s,c)=>(s[c]=!0,s),{});function J(s){return s<0?Math.floor(s):Math.ceil(s)}function U(s){return 4800*s/146097}function Ce(s){return 146097*s/4800}let et=Math.round;const $n_ss=44,$n_s=45,$n_m=45,$n_h=22,$n_d=26,$n_M=11;function _i(s,c,r,m,D){return D.relativeTime(c||1,!!r,s,m)}class vc{constructor(c,r={}){this._data={},this._locale=Mi(),this._locale=r&&r._locale||Mi();const D=c.year||0,G=c.quarter||0,fe=c.month||0,ot=c.week||0,Ut=c.day||0,Bn=c.hours||0,Qn=c.minutes||0,ds=c.seconds||0,Hs=c.milliseconds||0;return this._isValid=function nr(s){if(Object.keys(s).some(m=>m in Rl&&null===s[m]||isNaN(s[m])))return!1;let r=!1;for(let m=0;m<wa.length;++m)if(s[wa[m]]){if(r)return!1;s[wa[m]]!==At(s[wa[m]])&&(r=!0)}return!0}(c),this._milliseconds=+Hs+1e3*ds+60*Qn*1e3+1e3*Bn*60*60,this._days=+Ut+7*ot,this._months=+fe+3*G+12*D,function ee(s){let c=s._milliseconds,r=s._days,m=s._months;const D=s._data;c>=0&&r>=0&&m>=0||c<=0&&r<=0&&m<=0||(c+=864e5*J(Ce(m)+r),r=0,m=0),D.milliseconds=c%1e3;const G=Oe(c/1e3);D.seconds=G%60;const fe=Oe(G/60);D.minutes=fe%60;const ot=Oe(fe/60);D.hours=ot%24,r+=Oe(ot/24);const Ut=Oe(U(r));m+=Ut,r-=J(Ce(Ut));const Bn=Oe(m/12);return m%=12,D.day=r,D.month=m,D.year=Bn,s}(this)}isValid(){return this._isValid}humanize(c){if(!this.isValid())return this.localeData().invalidDate;const r=this.localeData();let m=function Er(s,c,r){const m=ji(s).abs(),D=et(m.as("s")),G=et(m.as("m")),fe=et(m.as("h")),ot=et(m.as("d")),Ut=et(m.as("M")),Bn=et(m.as("y")),Qn=D<=$n_ss&&["s",D]||D<$n_s&&["ss",D]||G<=1&&["m"]||G<$n_m&&["mm",G]||fe<=1&&["h"]||fe<$n_h&&["hh",fe]||ot<=1&&["d"]||ot<$n_d&&["dd",ot]||Ut<=1&&["M"]||Ut<$n_M&&["MM",Ut]||Bn<=1&&["y"]||["yy",Bn];return _i.apply(null,[Qn[0],Qn[1],c,+s>0,r])}(this,!c,r);return c&&(m=r.pastFuture(+this,m)),r.postformat(m)}localeData(){return this._locale}locale(c){return c?(this._locale=Mi(c)||this._locale,this):this._locale._abbr}abs(){const c=Math.abs,r=this._data;return this._milliseconds=c(this._milliseconds),this._days=c(this._days),this._months=c(this._months),r.milliseconds=c(r.milliseconds),r.seconds=c(r.seconds),r.minutes=c(r.minutes),r.hours=c(r.hours),r.month=c(r.month),r.year=c(r.year),this}as(c){if(!this.isValid())return NaN;let r,m;const D=this._milliseconds,G=ht(c);if("month"===G||"year"===G)return r=this._days+D/864e5,m=this._months+U(r),"month"===G?m:m/12;switch(r=this._days+Math.round(Ce(this._months)),G){case"week":return r/7+D/6048e5;case"day":return r+D/864e5;case"hours":return 24*r+D/36e5;case"minutes":return 1440*r+D/6e4;case"seconds":return 86400*r+D/1e3;case"milliseconds":return Math.floor(864e5*r)+D;default:throw new Error(`Unknown unit ${G}`)}}valueOf(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*At(this._months/12):NaN}}function ul(s){if(null==s._isValid){const c=Ee(s),r=Array.prototype.some.call(c.parsedDateParts,function(D){return null!=D});let m=!isNaN(s._d&&s._d.getTime())&&c.overflow<0&&!c.empty&&!c.invalidMonth&&!c.invalidWeekday&&!c.weekdayMismatch&&!c.nullInput&&!c.invalidFormat&&!c.userInvalidated&&(!c.meridiem||c.meridiem&&r);if(s._strict&&(m=m&&0===c.charsLeftOver&&0===c.unusedTokens.length&&void 0===c.bigHour),null!=Object.isFrozen&&Object.isFrozen(s))return m;s._isValid=m}return s._isValid}function Ja(s,c){return s._d=new Date(NaN),Object.assign(Ee(s),c||{userInvalidated:!0}),s}const yc=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hl=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,fa=/Z|[+-]\d\d(?::?\d\d)?/,jo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/,!0],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/,!0],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/,!0],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/,!0],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/,!0],["YYYYMMDD",/\d{8}/,!0],["GGGG[W]WWE",/\d{4}W\d{3}/,!0],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/,!0]],Go=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],_r=/^\/?Date\((\-?\d+)/i,Nl={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480},vo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function Qr(s){if(!Ne(s._i))return s;const c=s._i,r=yc.exec(c)||hl.exec(c);let m,D,G,fe,ot,Ut;if(!r)return s._isValid=!1,s;for(ot=0,Ut=jo.length;ot<Ut;ot++)if(jo[ot][1].exec(r[1])){D=jo[ot][0],m=!1!==jo[ot][2];break}if(null==D)return s._isValid=!1,s;if(r[3]){for(ot=0,Ut=Go.length;ot<Ut;ot++)if(Go[ot][1].exec(r[3])){G=(r[2]||" ")+Go[ot][0];break}if(null==G)return s._isValid=!1,s}if(!m&&null!=G)return s._isValid=!1,s;if(r[4]){if(!fa.exec(r[4]))return s._isValid=!1,s;fe="Z"}return s._f=D+(G||"")+(fe||""),xs(s)}function Aa(s){const c=parseInt(s,10);return c<=49?c+2e3:c}function To(s){if(!Ne(s._i))return s;const c=vo.exec(function fl(s){return s.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(s._i));if(!c)return function Ql(s){return s._isValid=!1,s}(s);const r=function Ho(s,c,r,m,D,G){const fe=[Aa(s),Ls.indexOf(c),parseInt(r,10),parseInt(m,10),parseInt(D,10)];return G&&fe.push(parseInt(G,10)),fe}(c[4],c[3],c[2],c[5],c[6],c[7]);return function ir(s,c,r){return!s||Fo.indexOf(s)===new Date(c[0],c[1],c[2]).getDay()||(Ee(r).weekdayMismatch=!0,r._isValid=!1,!1)}(c[1],r,s)&&(s._a=r,s._tzm=function Pa(s,c,r){if(s)return Nl[s];if(c)return 0;{const m=parseInt(r,10),D=m%100;return(m-D)/100*60+D}}(c[8],c[9],c[10]),s._d=Ye.apply(null,s._a),s._d.setUTCMinutes(s._d.getUTCMinutes()-s._tzm),Ee(s).rfc2822=!0),s}function Uo(s,c,r,m,D=0){const G=Mi(r||"en");if(!G)throw new Error(`Locale "${r}" is not defined, please add it with "defineLocale(...)"`);const ot=function Lr(s,c,r,m,D=0){if(!Ue(s))return r.invalidDate;const G=Da(c,r);return ge[G]=ge[G]||function Le(s){const c=s.match(le),r=c.length,m=new Array(r);for(let D=0;D<r;D++)m[D]=je[c[D]]?je[c[D]]:ue(c[D]);return function(D,G,fe,ot=0){let Ut="";for(let Bn=0;Bn<r;Bn++)Ut+=yt(m[Bn])?m[Bn].call(null,D,{format:s,locale:G,isUTC:fe,offset:ot}):m[Bn];return Ut}}(G),ge[G](s,r,m,D)}(s,c||(m?"YYYY-MM-DDTHH:mm:ss[Z]":"YYYY-MM-DDTHH:mm:ssZ"),G,m,D);return ot&&G.postformat(ot)}function Da(s,c){let r=s,m=5;const D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,G=fe=>c.formatLongDate(fe)||fe;for(D.lastIndex=0;m>=0&&D.test(r);)r=r.replace(D,G),D.lastIndex=0,m-=1;return r}function Zo(s,c,r){return s??c??r}function sr(s){const c=[];let r,m,D;if(s._d)return s;const G=function pl(s){const c=new Date;return s._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()]}(s);for(s._w&&null==s._a[En]&&null==s._a[cn]&&function Ma(s){let c,r,m,D,G,fe,ot;const Ut=s._w;if(null!=Ut.GG||null!=Ut.W||null!=Ut.E)D=1,G=4,c=Zo(Ut.GG,s._a[Mt],hi(new Date,1,4).year),r=Zo(Ut.W,1),m=Zo(Ut.E,1),(m<1||m>7)&&(ot=!0);else{D=s._locale._week.dow,G=s._locale._week.doy;const Bn=hi(new Date,D,G);c=Zo(Ut.gg,s._a[Mt],Bn.year),r=Zo(Ut.w,Bn.week),null!=Ut.d?(m=Ut.d,(m<0||m>6)&&(ot=!0)):null!=Ut.e?(m=Ut.e+D,(Ut.e<0||Ut.e>6)&&(ot=!0)):m=D}r<1||r>Kn(c,D,G)?Ee(s)._overflowWeeks=!0:null!=ot?Ee(s)._overflowWeekday=!0:(fe=function zn(s,c,r,m,D){const ot=1+7*(c-1)+(7+r-m)%7+An(s,m,D);let Ut,Bn;return ot<=0?(Ut=s-1,Bn=nt(Ut)+ot):ot>nt(s)?(Ut=s+1,Bn=ot-nt(s)):(Ut=s,Bn=ot),{year:Ut,dayOfYear:Bn}}(c,r,m,D,G),s._a[Mt]=fe.year,s._dayOfYear=fe.dayOfYear)}(s),null!=s._dayOfYear&&(D=Zo(s._a[Mt],G[Mt]),(s._dayOfYear>nt(D)||0===s._dayOfYear)&&(Ee(s)._overflowDayOfYear=!0),m=new Date(Date.UTC(D,0,s._dayOfYear)),s._a[cn]=m.getUTCMonth(),s._a[En]=m.getUTCDate()),r=0;r<3&&null==s._a[r];++r)s._a[r]=c[r]=G[r];for(;r<7;r++)s._a[r]=c[r]=null==s._a[r]?2===r?1:0:s._a[r];24===s._a[dn]&&0===s._a[Wt]&&0===s._a[ze]&&0===s._a[be]&&(s._nextDay=!0,s._a[dn]=0),s._d=(s._useUTC?Ye:L).apply(null,c);const fe=s._useUTC?s._d.getUTCDay():s._d.getDay();return null!=s._tzm&&s._d.setUTCMinutes(s._d.getUTCMinutes()-s._tzm),s._nextDay&&(s._a[dn]=24),s._w&&typeof s._w.d<"u"&&s._w.d!==fe&&(Ee(s).weekdayMismatch=!0),s}function Ti(s){let c;const r=s._a;return r&&-2===Ee(s).overflow&&(c=r[cn]<0||r[cn]>11?cn:r[En]<1||r[En]>Ze(r[Mt],r[cn])?En:r[dn]<0||r[dn]>24||24===r[dn]&&(0!==r[Wt]||0!==r[ze]||0!==r[be])?dn:r[Wt]<0||r[Wt]>59?Wt:r[ze]<0||r[ze]>59?ze:r[be]<0||r[be]>999?be:-1,Ee(s)._overflowDayOfYear&&(c<Mt||c>En)&&(c=En),Ee(s)._overflowWeeks&&-1===c&&(c=Se),Ee(s)._overflowWeekday&&-1===c&&(c=Nt),Ee(s).overflow=c),s}const Zr="ISO_8601",Fl="RFC_2822";function xs(s){if(s._f===Zr)return Qr(s);if(s._f===Fl)return To(s);if(s._a=[],Ee(s).empty=!0,bt(s._f)||!s._i&&0!==s._i)return s;let c=s._i.toString(),r=0;const m=c.length,D=Da(s._f,s._locale).match(le)||[];let G,fe,ot,Ut;for(G=0;G<D.length;G++)fe=D[G],ot=(c.match(io(fe,s._locale))||[])[0],ot&&(Ut=c.substr(0,c.indexOf(ot)),Ut.length>0&&Ee(s).unusedInput.push(Ut),c=c.slice(c.indexOf(ot)+ot.length),r+=ot.length),je[fe]?(ot?Ee(s).empty=!1:Ee(s).unusedTokens.push(fe),Xe(fe,ot,s)):s._strict&&!ot&&Ee(s).unusedTokens.push(fe);return Ee(s).charsLeftOver=m-r,c.length>0&&Ee(s).unusedInput.push(c),s._a[dn]<=12&&!0===Ee(s).bigHour&&s._a[dn]>0&&(Ee(s).bigHour=void 0),Ee(s).parsedDateParts=s._a.slice(0),Ee(s).meridiem=s._meridiem,s._a[dn]=function La(s,c,r){let m=c;if(null==r)return m;if(null!=s.meridiemHour)return s.meridiemHour(m,r);if(null==s.isPM)return m;const D=s.isPM(r);return D&&m<12&&(m+=12),!D&&12===m&&(m=0),m}(s._locale,s._a[dn],s._meridiem),sr(s),Ti(s)}function Jl(s){const c=Ti(function Al(s){let c=s._i;const r=s._f;return s._locale=s._locale||Mi(s._l),null===c||void 0===r&&""===c?Ja(s,{nullInput:!0}):(Ne(c)&&(s._i=c=s._locale.preparse(c,r)),Me(c)?(s._d=Rt(c),s):(bt(r)?function el(s){let c,r,m,D,G;if(!s._f||0===s._f.length)return Ee(s).invalidFormat=!0,Ja(s);for(G=0;G<s._f.length;G++)D=0,c=Object.assign({},s),null!=s._useUTC&&(c._useUTC=s._useUTC),c._f=s._f[G],xs(c),ul(c)&&(D+=Ee(c).charsLeftOver,D+=10*Ee(c).unusedTokens.length,Ee(c).score=D,(null==m||D<m)&&(m=D,r=c));Object.assign(s,r||c)}(s):r?xs(s):function Pi(s){const c=s._i;if(vt(c))s._d=new Date;else if(Me(c))s._d=Rt(c);else if(Ne(c))!function pa(s){if(!Ne(s._i))return s;const c=_r.exec(s._i);null!==c?s._d=new Date(+c[1]):(Qr(s),!1!==s._isValid||(delete s._isValid,To(s),!1!==s._isValid||(delete s._isValid,Ja(s))))}(s);else if(bt(c)&&c.length){const r=c.slice(0);s._a=r.map(m=>Ne(m)?parseInt(m,10):m),sr(s)}else if(mt(c))!function Zl(s){if(s._d)return s;const c=s._i;if(mt(c)){const r=function St(s){const c={};let r,m;for(m in s)ft(s,m)&&(r=ht(m),r&&(c[r]=s[m]));return c}(c);s._a=[r.year,r.month,r.day,r.hours,r.minutes,r.seconds,r.milliseconds].map(m=>Ne(m)?parseInt(m,10):m)}return sr(s)}(s);else{if(!_t(c))return Ja(s);s._d=new Date(c)}}(s),ul(s)||(s._d=null),s))}(s));return c._d=new Date(null!=c._d?c._d.getTime():NaN),ul(Object.assign({},c,{_isValid:null}))||(c._d=new Date(NaN)),c}function Jr(s,c,r,m,D){return Me(s)?s:function Cc(s,c,r,m,D){const G={};let fe=s;return(mt(fe)&&function en(s){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(s).length;let c;for(c in s)if(s.hasOwnProperty(c))return!1;return!0}(fe)||bt(fe)&&0===fe.length)&&(fe=void 0),G._useUTC=G._isUTC=D,G._l=r,G._i=fe,G._f=c,G._strict=m,Jl(G)}(s,c,r,m,D)._d}function tl(s){return s instanceof Date?new Date(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate(),s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()):null}function ea(s){return s<0?-1*Math.round(-1*s):Math.round(s)}function Eo(s,c,r="milliseconds"){return!(!s||!c)&&("milliseconds"===r?s.valueOf()>c.valueOf():c.valueOf()<oe(s,r).valueOf())}function P(s,c,r="milliseconds"){return!(!s||!c)&&("milliseconds"===r?s.valueOf()<c.valueOf():_e(s,r).valueOf()<c.valueOf())}function te(s,c,r="milliseconds"){if(!s||!c)return!1;if("milliseconds"===r)return s.valueOf()===c.valueOf();const m=c.valueOf();return oe(s,r).valueOf()<=m&&m<=_e(s,r).valueOf()}const Gn=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,ts=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ji(s,c,r={}){const m=function Si(s,c){if(null==s)return{};if(function bc(s){return s instanceof vc}(s))return{milliseconds:s._milliseconds,day:s._days,month:s._months};if(_t(s))return c?{[c]:s}:{milliseconds:s};if(Ne(s)){let r=Gn.exec(s);if(r){const m="-"===r[1]?-1:1;return{year:0,day:At(r[En])*m,hours:At(r[dn])*m,minutes:At(r[Wt])*m,seconds:At(r[ze])*m,milliseconds:At(ea(1e3*At(r[be])))*m}}if(r=ts.exec(s),r){const m="-"===r[1]?-1:1;return{year:Zn(r[2],m),month:Zn(r[3],m),week:Zn(r[4],m),day:Zn(r[5],m),hours:Zn(r[6],m),minutes:Zn(r[7],m),seconds:Zn(r[8],m)}}}if(mt(s)&&("from"in s||"to"in s)){const r=function Hi(s,c){if(!Ue(s)||!Ue(c))return{milliseconds:0,months:0};let r;const m=function Qo(s,c,r={}){if(!r._isUTC)return s;const m=Rt(c),D=6e4*(r._offset||0),G=s.valueOf()-m.valueOf()+D;return m.setTime(m.valueOf()+G),m}(c,s,{_offset:s.getTimezoneOffset()});return P(s,m)?r=ki(s,m):(r=ki(m,s),r.milliseconds=-r.milliseconds,r.months=-r.months),r}(Jr(s.from),Jr(s.to));return{milliseconds:r.milliseconds,month:r.months}}return s}(s,c);return new vc(m,r)}function Zn(s,c){const r=s&&parseFloat(s.replace(",","."));return(isNaN(r)?0:r)*c}function ki(s,c){const r={milliseconds:0,months:0};return r.months=nn(c)-nn(s)+12*(Vn(c)-Vn(s)),Eo(Li(Rt(s),r.months,"month"),c)&&--r.months,r.milliseconds=+c-+Li(Rt(s),r.months,"month"),r}function Li(s,c,r,m){return cs(s,ji(c,r),1,m)}function cs(s,c,r,m){const D=c._milliseconds,G=ea(c._days),fe=ea(c._months);return fe&&Ei(s,nn(s,m)+fe*r,m),G&&xi(s,jn(s,m)+G*r,m),D&&function Re(s,c){s.setTime(c)}(s,function Vt(s){return s.getTime()}(s)+D*r),Rt(s)}function Yo(s,c,r=Mi(),m){const D=bn(s,m),G=function bo(s,c){if(!Ne(s))return s;const r=parseInt(s,10);if(!isNaN(r))return r;const m=c.weekdaysParse(s);return _t(m)?m:null}(c,r);return Li(s,G-D,"day")}function Di(s,c=Mi(),r){return(bn(s,r)+7-c.firstDayOfWeek())%7}const na=function(s){return 0===s?0:1===s?1:2===s?2:s%100>=3&&s%100<=10?3:s%100>=11?4:5},lo={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},ko=function(s){return function(c,r){const m=na(c);let D=lo[s][na(c)];return 2===m&&(D=D[r?0:1]),D.replace(/%d/i,c.toString())}};"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),ko("s"),ko("s"),ko("m"),ko("m"),ko("h"),ko("h"),ko("d"),ko("d"),ko("M"),ko("M"),ko("y"),ko("y"),"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"gen._feb._mar._abr._mai._jun._jul._ago._set._oct._nov._des.".split("_"),"ene_feb_mar_abr_mai_jun_jul_ago_set_oct_nov_des".split("_"),"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),"diu._dil._dim._dix._dij._div._dis.".split("_"),"dg_dl_dt_dc_dj_dv_ds".split("_");const Ea="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),Jn="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_");(function(s,c){let r,m=[];for(r=0;r<12;r++)m[r]=new RegExp("^"+s[r]+"$|^"+c[r]+"$","i")})(Ea,Jn),function(s){let c,r=[];for(c=0;c<12;c++)r[c]=new RegExp("^"+s[c]+"$","i")}(Jn),function(s){let c,r=[];for(c=0;c<12;c++)r[c]=new RegExp("^"+s[c]+"$","i")}(Ea),"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),"Januar_Februar_Marts_April_Maj_Juni_Juli_August_September_Oktober_November_December".split("_"),"Jan_Feb_Mar_Apr_Maj_Jun_Jul_Aug_Sep_Okt_Nov_Dec".split("_"),"S\xf8ndag_Mandag_Tirsdag_Onsdag_Torsdag_Fredag_L\xf8rdag".split("_"),"S\xf8n_Man_Tir_Ons_Tor_Fre_L\xf8r".split("_"),"S\xf8_Ma_Ti_On_To_Fr_L\xf8".split("_"),"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),"do_lu_ma_mi_ju_vi_s\xe1".split("_"),"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),"P_E_T_K_N_R_L".split("_"),"P_E_T_K_N_R_L".split("_"),"nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"su_ma_ti_ke_to_pe_la".split("_"),"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),"dim._lun._mar._mer._jeu._ven._sam.".split("_"),"di_lu_ma_me_je_ve_sa".split("_"),"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),"xan_feb_mar_abr_mai_xu\xf1_xul_ago_set_out_nov_dec".split("_"),"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),"vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" "),"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),"v_h_k_sze_cs_p_szo".split("_"),"Sije\u010danj_Velja\u010da_O\u017eujak_Travanj_Svibanj_Lipanj_Srpanj_Kolovoz_Rujan_Listopad_Studeni_Prosinac".split("_"),"Sij_Velj_O\u017eu_Tra_Svi_Lip_Srp_Kol_Ruj_Lis_Stu_Pro".split("_"),"Nedjelja_Ponedjeljak_Utorak_Srijeda_\u010cetvrtak_Petak_Subota".split("_"),"Ned_Pon_Uto_Sri_\u010cet_Pet_Sub".split("_"),"Ne_Po_Ut_Sr_\u010ce_Pe_Su".split("_"),"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),"dom_lun_mar_mer_gio_ven_sab".split("_"),"do_lu_ma_me_gi_ve_sa".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_"),"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),"S_P_A_T_K_Pn_\u0160".split("_"),"Janv\u0101ris_Febru\u0101ris_Marts_Apr\u012blis_Maijs_J\u016bnijs_J\u016blijs_Augusts_Septembris_Oktobris_Novembris_Decembris".split("_"),"Jan_Feb_Mar_Apr_Mai_J\u016bn_J\u016bl_Aug_Sep_Okt_Nov_Dec".split("_"),"Sv\u0113tdiena_Pirmdiena_Otrdiena_Tre\u0161diena_Ceturtdiena_Piektdiena_Sestdiena".split("_"),"Sv\u0113td_Pirmd_Otrd_Tre\u0161d_Ceturtd_Piektd_Sestd".split("_"),"Sv_Pi_Ot_Tr_Ce_Pk_Se".split("_"),"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),"jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),"zo._ma._di._wo._do._vr._za.".split("_"),"zo_ma_di_wo_do_vr_za".split("_"),"stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),"stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),"jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_"),"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"ne_po_ut_st_\u0161t_pi_so".split("_"),"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),"ne_po_to_sr_\u010de_pe_so".split("_"),"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),"E Diel\xeb_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),"Di_He_Ma_Me_En_Pr_Sh".split("_"),"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_");const Ml={abbr:"th-be",months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:s=>"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===s,meridiem:(s,c,r)=>s<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07",calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"},preparse(s,c){const r=Ml.longDateFormat[c]?Ml.longDateFormat[c]:c;return-1!==r.indexOf("YYYY",r.length-4)?s.substr(0,s.length-4)+(parseInt(s.substr(s.length-4),10)-543):s},getFullYear:(s,c=!1)=>543+(c?s.getUTCFullYear():s.getFullYear())};function Cr(s){return function(c){return s+"\u043e"+(11===z(c)?"\u0431":"")+"] LT"}}"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_"),"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),Cr("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),Cr("[\u0417\u0430\u0432\u0442\u0440\u0430 "),Cr("[\u0412\u0447\u043e\u0440\u0430 "),Cr("[\u0423] dddd ["),"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"CN_T2_T3_T4_T5_T6_T7".split("_"),"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_");class Tl{constructor(c,r){this.open=c,this.close=r||c}isManual(){return"manual"===this.open||"manual"===this.close}}const Ul={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function Oo(s,c=Ul){const r=(s||"").trim();if(0===r.length)return[];const m=r.split(/\s+/).map(G=>G.split(":")).map(G=>{const fe=c[G[0]]||G;return new Tl(fe[0],fe[1])}),D=m.filter(G=>G.isManual());if(D.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===D.length&&m.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return m}const no=typeof window<"u"&&window||{};let Gi;function vi(){const s=no.document.createElement("span");s.innerText="testing bs version",s.classList.add("d-none"),s.classList.add("pl-1"),no.document.head.appendChild(s);const c=no.getComputedStyle(s).paddingLeft;return c&&parseFloat(c)?(no.document.head.removeChild(s),"bs4"):(no.document.head.removeChild(s),"bs5")}function Hr(){return{isBs4:(Gi||(Gi=vi()),"bs4"===Gi),isBs5:(Gi||(Gi=vi()),"bs5"===Gi)}}function lc(){const s="Change";return function(r,m){const D=` __${m}Value`;Object.defineProperty(r,m,{get(){return this[D]},set(G){const fe=this[D];this[D]=G,fe!==G&&this[m+s]&&this[m+s].emit(G)}})}}const aa={},El=typeof console>"u"||!("warn"in console);function ar(s){!(0,e.naY)()||El||s in aa||(aa[s]=!0,console.warn(s))}var Qi=N(177),Ir=N(1413),Id=N(7786),mu=N(3726),gu=N(7673),Dh=N(536),ya=function(s){return s.top="top",s.bottom="bottom",s.left="left",s.right="right",s.auto="auto",s.end="right",s.start="left",s["top left"]="top left",s["top right"]="top right",s["right top"]="right top",s["right bottom"]="right bottom",s["bottom right"]="bottom right",s["bottom left"]="bottom left",s["left bottom"]="left bottom",s["left top"]="left top",s["top start"]="top left",s["top end"]="top right",s["end top"]="right top",s["end bottom"]="right bottom",s["bottom end"]="bottom right",s["bottom start"]="bottom left",s["start bottom"]="start bottom",s["start top"]="left top",s}(ya||{}),zc=function(s){return s.top="top",s.bottom="bottom",s.left="start",s.right="end",s.auto="auto",s.end="end",s.start="start",s["top left"]="top start",s["top right"]="top end",s["right top"]="end top",s["right bottom"]="end bottom",s["bottom right"]="bottom end",s["bottom left"]="bottom start",s["left bottom"]="start bottom",s["left top"]="start top",s["top start"]="top start",s["top end"]="top end",s["end top"]="end top",s["end bottom"]="end bottom",s["bottom end"]="bottom end",s["bottom start"]="bottom start",s["start bottom"]="start bottom",s["start top"]="start top",s}(zc||{});function za(s,c){if(1!==s.nodeType)return[];const m=s.ownerDocument.defaultView?.getComputedStyle(s,null);return c?m&&m[c]:m}function _u(s){if(!s)return document.documentElement;let m,r=s?.offsetParent;for(;null===r&&s.nextElementSibling&&m!==s.nextElementSibling;)m=s.nextElementSibling,r=m.offsetParent;const D=r&&r.nodeName;return D&&"BODY"!==D&&"HTML"!==D?r&&-1!==["TH","TD","TABLE"].indexOf(r.nodeName)&&"static"===za(r,"position")?_u(r):r:m?m.ownerDocument.documentElement:document.documentElement}function nu(s){return null!==s.parentNode?nu(s.parentNode):s}function Od(s,c){if(!(s&&s.nodeType&&c&&c.nodeType))return document.documentElement;const r=s.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_FOLLOWING,m=r?s:c,D=r?c:s,G=document.createRange();G.setStart(m,0),G.setEnd(D,0);const fe=G.commonAncestorContainer;if(s!==fe&&c!==fe||m.contains(D))return function tu(s){const{nodeName:c}=s;return"BODY"!==c&&("HTML"===c||_u(s.firstElementChild)===s)}(fe)?fe:_u(fe);const ot=nu(s);return ot.host?Od(ot.host,c):Od(s,nu(c).host)}function vu(s){if(!s||!s.parentElement)return document.documentElement;let c=s.parentElement;for(;c?.parentElement&&"none"===za(c,"transform");)c=c.parentElement;return c||document.documentElement}function bu(s,c){const r="x"===c?"Left":"Top",m="Left"===r?"Right":"Bottom";return parseFloat(s[`border${r}Width`])+parseFloat(s[`border${m}Width`])}function yu(s,c,r,m){return Math.max(c[`offset${s}`],c[`scroll${s}`],r[`client${s}`],r[`offset${s}`],r[`scroll${s}`],0)}function Cu(s){const c=s.body,r=s.documentElement;return{height:yu("Height",c,r),width:yu("Width",c,r)}}function Sl(s){return{...s,right:(s.left||0)+s.width,bottom:(s.top||0)+s.height}}function is(s){return"number"==typeof s||"[object Number]"===Object.prototype.toString.call(s)}function Is(s){const c=s.getBoundingClientRect();if(!(c&&is(c.top)&&is(c.left)&&is(c.bottom)&&is(c.right)))return c;const r={left:c.left,top:c.top,width:c.right-c.left,height:c.bottom-c.top},m="HTML"===s.nodeName?Cu(s.ownerDocument):void 0,D=m?.width||s.clientWidth||is(c.right)&&is(r.left)&&c.right-r.left||0,G=m?.height||s.clientHeight||is(c.bottom)&&is(r.top)&&c.bottom-r.top||0;let fe=s.offsetWidth-D,ot=s.offsetHeight-G;if(fe||ot){const Ut=za(s);fe-=bu(Ut,"x"),ot-=bu(Ut,"y"),r.width-=fe,r.height-=ot}return Sl(r)}function qc(s){return"HTML"===s.nodeName?s:s.parentNode||s.host}function cc(s){if(!s)return document.body;switch(s.nodeName){case"HTML":case"BODY":return s.ownerDocument.body;case"#document":return s.body}const{overflow:c,overflowX:r,overflowY:m}=za(s);return/(auto|scroll|overlay)/.test(String(c)+String(m)+String(r))?s:cc(qc(s))}function Xc(s,c,r=!1){const m="HTML"===c.nodeName,D=Is(s),G=Is(c),ot=(cc(s),za(c)),Ut=parseFloat(ot.borderTopWidth),Bn=parseFloat(ot.borderLeftWidth);r&&m&&(G.top=Math.max(G.top??0,0),G.left=Math.max(G.left??0,0));const Qn=Sl({top:(D.top??0)-(G.top??0)-Ut,left:(D.left??0)-(G.left??0)-Bn,width:D.width,height:D.height});if(Qn.marginTop=0,Qn.marginLeft=0,m){const ds=parseFloat(ot.marginTop),Hs=parseFloat(ot.marginLeft);is(Qn.top)&&(Qn.top-=Ut-ds),is(Qn.bottom)&&(Qn.bottom-=Ut-ds),is(Qn.left)&&(Qn.left-=Bn-Hs),is(Qn.right)&&(Qn.right-=Bn-Hs),Qn.marginTop=ds,Qn.marginLeft=Hs}return Qn}function Rd(s,c="top"){const r="top"===c?"scrollTop":"scrollLeft",m=s.nodeName;return"BODY"===m||"HTML"===m?(s.ownerDocument.scrollingElement||s.ownerDocument.documentElement)[r]:s[r]}function dc(s){const c=s.nodeName;return"BODY"!==c&&"HTML"!==c&&("fixed"===za(s,"position")||dc(qc(s)))}function Fd(s,c,r=0,m,D=!1){let G={top:0,left:0};const fe=D?vu(s):Od(s,c);if("viewport"===m)G=function Nd(s,c=!1){const r=s.ownerDocument.documentElement,m=Xc(s,r),D=Math.max(r.clientWidth,window.innerWidth||0),G=Math.max(r.clientHeight,window.innerHeight||0),fe=c?0:Rd(r),ot=c?0:Rd(r,"left");return Sl({top:fe-Number(m?.top)+Number(m?.marginTop),left:ot-Number(m?.left)+Number(m?.marginLeft),width:D,height:G})}(fe,D);else{let ot;"scrollParent"===m?(ot=cc(qc(c)),"BODY"===ot.nodeName&&(ot=s.ownerDocument.documentElement)):ot="window"===m?s.ownerDocument.documentElement:m;const Ut=Xc(ot,fe,D);if(Ut&&"HTML"===ot.nodeName&&!dc(fe)){const{height:Bn,width:Qn}=Cu(s.ownerDocument);is(G.top)&&is(Ut.top)&&is(Ut.marginTop)&&(G.top+=Ut.top-Ut.marginTop),is(G.top)&&(G.bottom=Number(Bn)+Number(Ut.top)),is(G.left)&&is(Ut.left)&&is(Ut.marginLeft)&&(G.left+=Ut.left-Ut.marginLeft),is(G.top)&&(G.right=Number(Qn)+Number(Ut.left))}else Ut&&(G=Ut)}return is(G.left)&&(G.left+=r),is(G.top)&&(G.top+=r),is(G.right)&&(G.right-=r),is(G.bottom)&&(G.bottom-=r),G}function Wc({width:s,height:c}){return s*c}function Kc(s,c,r,m,D=["top","bottom","right","left"],G="viewport",fe=0){if(-1===s.indexOf("auto"))return s;const ot=Fd(r,m,fe,G),Ut={top:{width:ot?.width??0,height:(c?.top??0)-(ot?.top??0)},right:{width:(ot?.right??0)-(c?.right??0),height:ot?.height??0},bottom:{width:ot?.width??0,height:(ot?.bottom??0)-(c?.bottom??0)},left:{width:(c.left??0)-(ot?.left??0),height:ot?.height??0}},Bn=Object.keys(Ut).map(Xo=>({position:Xo,...Ut[Xo],area:Wc(Ut[Xo])})).sort((Xo,al)=>al.area-Xo.area);let Qn=Bn.filter(({width:Xo,height:al})=>Xo>=r.clientWidth&&al>=r.clientHeight);Qn=Qn.filter(({position:Xo})=>D.some(al=>al===Xo));const ds=Qn.length>0?Qn[0].position:Bn[0].position,Hs=s.split(" ")[1];return r.className=r.className.replace(/bs-tooltip-auto/g,`bs-tooltip-${Hr().isBs5?zc[ds]:ds}`),ds+(Hs?`-${Hs}`:"")}const Rc=(s,c=0)=>s?parseFloat(s):c;function Zc(s){const r=s.ownerDocument.defaultView?.getComputedStyle(s),m=Rc(r?.marginTop)+Rc(r?.marginBottom),D=Rc(r?.marginLeft)+Rc(r?.marginRight);return{width:Number(s.offsetWidth)+D,height:Number(s.offsetHeight)+m}}function hc(s,c,r){return Xc(c,r?vu(s):Od(s,c),r)}function $l(s,c,r){const m=r.split(" ")[0],D=Zc(s),G={width:D.width,height:D.height},fe=-1!==["right","left"].indexOf(m),ot=fe?"top":"left",Ut=fe?"left":"top",Bn=fe?"height":"width",Qn=fe?"width":"height";return G[ot]=(c[ot]??0)+c[Bn]/2-D[Bn]/2,G[Ut]=m===Ut?(c[Ut]??0)-D[Qn]:c[function Qc(s){const c={left:"right",right:"left",bottom:"top",top:"bottom"};return s.replace(/left|right|bottom|top/g,r=>c[r])}(Ut)]??0,G}function fc(s,c){return!!s.modifiers[c]?.enabled}const pd={top:["top","top start","top end"],bottom:["bottom","bottom start","bottom end"],start:["start","start top","start bottom"],end:["end","end top","end bottom"]};function Jc(s,c){return!!Hr().isBs5&&pd[c].includes(s)}function Ad(s,c,r){!s||!c||Object.keys(c).forEach(m=>{let D="";-1!==["width","height","top","right","bottom","left"].indexOf(m)&&function fd(s){return""!==s&&!isNaN(parseFloat(s))&&isFinite(Number(s))}(c[m])&&(D="px"),r?r.setStyle(s,m,`${String(c[m])}${D}`):s.style[m]=String(c[m])+D})}function Du(s){let c=s.offsets.target;const r=s.instance.target.querySelector(".arrow");if(!r)return s;const m=-1!==["left","right"].indexOf(s.placement.split(" ")[0]),D=m?"height":"width",G=m?"Top":"Left",fe=G.toLowerCase(),ot=m?"left":"top",Ut=m?"bottom":"right",Bn=Zc(r)[D],Qn=s.placement.split(" ")[1];(s.offsets.host[Ut]??0)-Bn<(c[fe]??0)&&(c[fe]-=(c[fe]??0)-((s.offsets.host[Ut]??0)-Bn)),Number(s.offsets.host[fe])+Number(Bn)>(c[Ut]??0)&&(c[fe]+=Number(s.offsets.host[fe])+Number(Bn)-Number(c[Ut])),c=Sl(c);const ds=za(s.instance.target),Hs=parseFloat(ds[`margin${G}`])||0,Xo=parseFloat(ds[`border${G}Width`])||0;let al;if(Qn){const ll=parseFloat(ds.borderRadius)||0,da=Number(Hs+Xo+ll);al=fe===Qn?Number(s.offsets.host[fe])+da:Number(s.offsets.host[fe])+Number(s.offsets.host[D]-da)}else al=Number(s.offsets.host[fe])+Number(s.offsets.host[D]/2-Bn/2);let qd=al-(c[fe]??0)-Hs-Xo;return qd=Math.max(Math.min(c[D]-(Bn+5),qd),0),s.offsets.arrow={[fe]:Math.round(qd),[ot]:""},s.instance.arrow=r,s}function Mh(s){if(s.offsets.target=Sl(s.offsets.target),!fc(s.options,"flip"))return s.offsets.target={...s.offsets.target,...$l(s.instance.target,s.offsets.host,s.placement)},s;const c=Fd(s.instance.target,s.instance.host,0,"viewport",!1);let r=s.placement.split(" ")[0],m=s.placement.split(" ")[1]||"";const ot=Kc("auto",s.offsets.host,s.instance.target,s.instance.host,s.options.allowedPositions),Ut=[r,ot];return Ut.forEach((Bn,Qn)=>{if(r!==Bn||Ut.length===Qn+1)return;r=s.placement.split(" ")[0];const ds="left"===r&&Math.floor(s.offsets.target.right??0)>Math.floor(s.offsets.host.left??0)||"right"===r&&Math.floor(s.offsets.target.left??0)<Math.floor(s.offsets.host.right??0)||"top"===r&&Math.floor(s.offsets.target.bottom??0)>Math.floor(s.offsets.host.top??0)||"bottom"===r&&Math.floor(s.offsets.target.top??0)<Math.floor(s.offsets.host.bottom??0),Hs=Math.floor(s.offsets.target.left??0)<Math.floor(c.left??0),Xo=Math.floor(s.offsets.target.right??0)>Math.floor(c.right??0),al=Math.floor(s.offsets.target.top??0)<Math.floor(c.top??0),qd=Math.floor(s.offsets.target.bottom??0)>Math.floor(c.bottom??0),ll="left"===r&&Hs||"right"===r&&Xo||"top"===r&&al||"bottom"===r&&qd,da=-1!==["top","bottom"].indexOf(r),qu=da&&"left"===m&&Hs||da&&"right"===m&&Xo||!da&&"left"===m&&al||!da&&"right"===m&&qd;(ds||ll||qu)&&((ds||ll)&&(r=Ut[Qn+1]),qu&&(m=function wu(s){return"right"===s?"left":"left"===s?"right":s}(m)),s.placement=r+(m?` ${m}`:""),s.offsets.target={...s.offsets.target,...$l(s.instance.target,s.offsets.host,s.placement)})}),s}function Th(s){if(!fc(s.options,"preventOverflow"))return s;const c="transform",r=s.instance.target.style,{top:m,left:D,[c]:G}=r;r.top="",r.left="",r[c]="";const fe=Fd(s.instance.target,s.instance.host,0,s.options.modifiers.preventOverflow?.boundariesElement||"scrollParent",!1);r.top=m,r.left=D,r[c]=G;const Ut={primary(Bn){let Qn=s.offsets.target[Bn];return(s.offsets.target[Bn]??0)<(fe[Bn]??0)&&(Qn=Math.max(s.offsets.target[Bn]??0,fe[Bn]??0)),{[Bn]:Qn}},secondary(Bn){const Qn="right"===Bn,ds=Qn?"left":"top";let Xo=s.offsets.target[ds];return(s.offsets.target[Bn]??0)>(fe[Bn]??0)&&(Xo=Math.min(s.offsets.target[ds]??0,(fe[Bn]??0)-s.offsets.target[Qn?"width":"height"])),{[ds]:Xo}}};return["left","right","top","bottom"].forEach(Bn=>{const Qn=-1!==["left","top","start"].indexOf(Bn)?Ut.primary:Ut.secondary;s.offsets.target={...s.offsets.target,...Qn(Bn)}}),s}function Qu(s){const c=s.placement,r=c.split(" ")[0],m=c.split(" ")[1];if(m){const{host:D,target:G}=s.offsets,fe=-1!==["bottom","top"].indexOf(r),ot=fe?"left":"top",Ut=fe?"width":"height",Bn={start:{[ot]:D[ot]},end:{[ot]:(D[ot]??0)+D[Ut]-G[Ut]}};s.offsets.target={...G,[ot]:ot===m?Bn.start[ot]:Bn.end[ot]}}return s}const iu=new class Zu{position(c,r){return this.offset(c,r)}offset(c,r){return hc(r,c)}positionElements(c,r,m,D,G){const fe=[Mh,Qu,Th,Du],Ut=function Mu(s,c,r,m){if(!s||!c)return;const D=hc(s,c);!r.match(/^(auto)*\s*(left|right|top|bottom|start|end)*$/)&&!r.match(/^(left|right|top|bottom|start|end)*(?: (left|right|top|bottom|start|end))*$/)&&(r="auto");const G=!!r.match(/auto/g);let fe=r.match(/auto\s(left|right|top|bottom|start|end)/)?r.split(" ")[1]||"auto":r;const ot=fe.match(/^(left|right|top|bottom|start|end)* ?(?!\1)(left|right|top|bottom|start|end)?/);return ot&&(fe=ot[1]+(ot[2]?` ${ot[2]}`:"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(fe)&&(fe="auto"),fe=Kc(fe,D,s,c,m?m.allowedPositions:void 0),{options:m||{modifiers:{}},instance:{target:s,host:c,arrow:void 0},offsets:{target:$l(s,D,fe),host:D,arrow:void 0},positionFixed:!1,placement:fe,placementAuto:G}}(r,c,ya[m],G);if(Ut)return fe.reduce((Bn,Qn)=>Qn(Bn),Ut)}};function Eh(s,c,r,m,D,G){const fe=iu.positionElements(s,c,r,m,D);if(!fe)return;const ot=function uc(s){return{width:s.offsets.target.width,height:s.offsets.target.height,left:Math.floor(s.offsets.target.left??0),top:Math.round(s.offsets.target.top??0),bottom:Math.round(s.offsets.target.bottom??0),right:Math.floor(s.offsets.target.right??0)}}(fe);Ad(c,{"will-change":"transform",top:"0px",left:"0px",transform:`translate3d(${ot.left}px, ${ot.top}px, 0px)`},G),fe.instance.arrow&&Ad(fe.instance.arrow,fe.offsets.arrow,G),function Yl(s,c){const r=s.instance.target;let m=r.className;const D=Hr().isBs5?zc[s.placement]:s.placement;s.placementAuto&&(m=m.replace(/bs-popover-auto/g,`bs-popover-${D}`),m=m.replace(/ms-2|me-2|mb-2|mt-2/g,""),m=m.replace(/bs-tooltip-auto/g,`bs-tooltip-${D}`),m=m.replace(/\sauto/g,` ${D}`),-1!==m.indexOf("popover")&&(m=m+" "+function pc(s){return Hr().isBs5?Jc(s,"end")?"ms-2":Jc(s,"start")?"me-2":Jc(s,"top")?"mb-2":Jc(s,"bottom")?"mt-2":"":""}(D)),-1!==m.indexOf("popover")&&-1===m.indexOf("popover-auto")&&(m+=" popover-auto"),-1!==m.indexOf("tooltip")&&-1===m.indexOf("tooltip-auto")&&(m+=" tooltip-auto")),m=m.replace(/left|right|top|bottom|end|start/g,`${D.split(" ")[0]}`),c?c.setAttribute(r,"class",m):r.className=m}(fe,G)}let md=(()=>{class s{constructor(r,m,D){this.update$$=new Ir.B,this.positionElements=new Map,this.isDisabled=!1,(0,Qi.UE)(D)&&r.runOutsideAngular(()=>{this.triggerEvent$=(0,Id.h)((0,mu.R)(window,"scroll",{passive:!0}),(0,mu.R)(window,"resize",{passive:!0}),(0,gu.of)(0,Dh.X),this.update$$),this.triggerEvent$.subscribe(()=>{this.isDisabled||this.positionElements.forEach(G=>{Eh(ed(G.target),ed(G.element),G.attachment,G.appendToBody,this.options,m.createRenderer(null,null))})})})}position(r){this.addPositionElement(r)}get event$(){return this.triggerEvent$}disable(){this.isDisabled=!0}enable(){this.isDisabled=!1}addPositionElement(r){this.positionElements.set(ed(r.element),r)}calcPosition(){this.update$$.next(null)}deletePositionElement(r){this.positionElements.delete(ed(r))}setOptions(r){this.options=r}static{this.\u0275fac=function(m){return new(m||s)(e.KVO(e.SKi),e.KVO(e._9s),e.KVO(e.Agw))}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();function ed(s){return"string"==typeof s?document.querySelector(s):s instanceof e.aKT?s.nativeElement:s??null}var Pd=N(9417),gd=N(4412),Sh=N(6780),ie=N(9687);const k=new class l extends ie.q{}(class _ extends Sh.R{constructor(c,r){super(c,r),this.scheduler=c,this.work=r}schedule(c,r=0){return r>0?super.schedule(c,r):(this.delay=r,this.state=c,this.scheduler.flush(this),this)}execute(c,r){return r>0||this.closed?super.execute(c,r):this._execute(c,r)}requestAsyncId(c,r,m=0){return null!=m&&m>0||null==m&&this.delay>0?super.requestAsyncId(c,r,m):(c.flush(this),0)}});var $=N(1985),ve=N(941),Et=N(2816);class Dn extends gd.t{constructor(c,r,m){super(c),r.pipe((0,ve.Q)(k)).pipe((0,Et.S)((fe,ot)=>ot?m(fe,ot):fe,c)).subscribe(fe=>this.next(fe))}}class kn extends $.c{constructor(c,r,m){super(),this._dispatcher=c,this._reducer=r,this.source=m}select(c){return(this.source?.pipe((0,ne.T)(c))||(new $.c).pipe((0,ne.T)(c))).pipe((0,we.F)())}lift(c){const r=new kn(this._dispatcher,this._reducer,this);return r.operator=c,r}dispatch(c){this._dispatcher.next(c)}next(c){this._dispatcher.next(c)}error(c){this._dispatcher.error(c)}complete(){}}function pi(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function ys(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"a",1),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeMinutes(D.minuteStep))}),e.nrm(2,"span",2),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.canIncrementMinutes||!r.isEditable)}}function Or(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0"),e.k0s())}function Co(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"a",1),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeSeconds(D.secondsStep))}),e.nrm(2,"span",2),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.canIncrementSeconds||!r.isEditable)}}function Nc(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function Tu(s,c){1&s&&e.nrm(0,"td")}function Ld(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0:\xa0"),e.k0s())}function Eu(s,c){if(1&s){const r=e.RV6();e.j41(0,"td",4)(1,"input",5),e.bIt("wheel",function(D){e.eBV(r);const G=e.XpG();return G.prevDef(D),e.Njj(G.changeMinutes(G.minuteStep*G.wheelSign(D),"wheel"))})("keydown.ArrowUp",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeMinutes(D.minuteStep,"key"))})("keydown.ArrowDown",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeMinutes(-D.minuteStep,"key"))})("change",function(D){e.eBV(r);const G=e.XpG();return e.Njj(G.updateMinutes(D.target))}),e.k0s()()}if(2&s){const r=e.XpG();e.AVh("has-error",r.invalidMinutes),e.R7$(1),e.AVh("is-invalid",r.invalidMinutes),e.Y8G("placeholder",r.minutesPlaceholder)("readonly",r.readonlyInput)("disabled",r.disabled)("value",r.minutes),e.BMQ("aria-label",r.labelMinutes)}}function Bd(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0:\xa0"),e.k0s())}function Su(s,c){if(1&s){const r=e.RV6();e.j41(0,"td",4)(1,"input",5),e.bIt("wheel",function(D){e.eBV(r);const G=e.XpG();return G.prevDef(D),e.Njj(G.changeSeconds(G.secondsStep*G.wheelSign(D),"wheel"))})("keydown.ArrowUp",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeSeconds(D.secondsStep,"key"))})("keydown.ArrowDown",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeSeconds(-D.secondsStep,"key"))})("change",function(D){e.eBV(r);const G=e.XpG();return e.Njj(G.updateSeconds(D.target))}),e.k0s()()}if(2&s){const r=e.XpG();e.AVh("has-error",r.invalidSeconds),e.R7$(1),e.AVh("is-invalid",r.invalidSeconds),e.Y8G("placeholder",r.secondsPlaceholder)("readonly",r.readonlyInput)("disabled",r.disabled)("value",r.seconds),e.BMQ("aria-label",r.labelSeconds)}}function su(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function Ju(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"button",8),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.toggleMeridian())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.isEditable||!r.canToggleMeridian),e.Y8G("disabled",!r.isEditable||!r.canToggleMeridian),e.R7$(1),e.SpI("",r.meridian," ")}}function ku(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function eh(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"a",1),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeMinutes(-D.minuteStep))}),e.nrm(2,"span",7),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.canDecrementMinutes||!r.isEditable)}}function th(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0"),e.k0s())}function Ur(s,c){if(1&s){const r=e.RV6();e.j41(0,"td")(1,"a",1),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.changeSeconds(-D.secondsStep))}),e.nrm(2,"span",7),e.k0s()()}if(2&s){const r=e.XpG();e.R7$(1),e.AVh("disabled",!r.canDecrementSeconds||!r.isEditable)}}function Vd(s,c){1&s&&(e.j41(0,"td"),e.EFF(1,"\xa0\xa0\xa0"),e.k0s())}function xu(s,c){1&s&&e.nrm(0,"td")}let qa=(()=>{class s{static{this.WRITE_VALUE="[timepicker] write value from ng model"}static{this.CHANGE_HOURS="[timepicker] change hours"}static{this.CHANGE_MINUTES="[timepicker] change minutes"}static{this.CHANGE_SECONDS="[timepicker] change seconds"}static{this.SET_TIME_UNIT="[timepicker] set time unit"}static{this.UPDATE_CONTROLS="[timepicker] update controls"}writeValue(r){return{type:s.WRITE_VALUE,payload:r}}changeHours(r){return{type:s.CHANGE_HOURS,payload:r}}changeMinutes(r){return{type:s.CHANGE_MINUTES,payload:r}}changeSeconds(r){return{type:s.CHANGE_SECONDS,payload:r}}setTime(r){return{type:s.SET_TIME_UNIT,payload:r}}updateControls(r){return{type:s.UPDATE_CONTROLS,payload:r}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const y=10,v=24,u=12,C=60,F=60;function H(s){return!(!s||s instanceof Date&&isNaN(s.getHours()))&&("string"!=typeof s||H(new Date(s)))}function pe(s,c){return!(s.min&&c<s.min||s.max&&c>s.max)}function Ae(s){return typeof s>"u"?NaN:"number"==typeof s?s:parseInt(s,y)}function It(s,c=!1){const r=Ae(s);return isNaN(r)||r<0||r>(c?u:v)?NaN:r}function rn(s){const c=Ae(s);return isNaN(c)||c<0||c>C?NaN:c}function Jt(s){const c=Ae(s);return isNaN(c)||c<0||c>F?NaN:c}function Un(s){return"string"==typeof s?new Date(s):s}function Cn(s,c){if(!s)return Cn(Yn(new Date,0,0,0),c);if(!c)return s;let r=s.getHours(),m=s.getMinutes(),D=s.getSeconds();return c.hour&&(r+=Ae(c.hour)),c.minute&&(m+=Ae(c.minute)),c.seconds&&(D+=Ae(c.seconds)),Yn(s,r,m,D)}function Fn(s,c){let r=It(c.hour);const m=rn(c.minute),D=Jt(c.seconds)||0;return c.isPM&&12!==r&&(r+=u),s?isNaN(r)||isNaN(m)?s:Yn(s,r,m,D):isNaN(r)||isNaN(m)?s:Yn(new Date,r,m,D)}function Yn(s,c,r,m){const D=new Date(s.getFullYear(),s.getMonth(),s.getDate(),c,r,m,s.getMilliseconds());return D.setFullYear(s.getFullYear()),D.setMonth(s.getMonth()),D.setDate(s.getDate()),D}function Ui(s){const c=s.toString();return c.length>1?c:`0${c}`}function Zi(s,c){return!isNaN(It(s,c))}function uo(s){return!isNaN(rn(s))}function zs(s){return!isNaN(Jt(s))}function la(s,c="0",r="0",m){return Zi(s,m)&&uo(c)&&zs(r)}function Dr(s,c){return!(s.readonlyInput||s.disabled||c&&("wheel"===c.source&&!s.mousewheel||"key"===c.source&&!s.arrowkeys))}function Iu(s){const{hourStep:c,minuteStep:r,secondsStep:m,readonlyInput:D,disabled:G,mousewheel:fe,arrowkeys:ot,showSpinners:Ut,showMeridian:Bn,showSeconds:Qn,meridians:ds,min:Hs,max:Xo}=s;return{hourStep:c,minuteStep:r,secondsStep:m,readonlyInput:D,disabled:G,mousewheel:fe,arrowkeys:ot,showSpinners:Ut,showMeridian:Bn,showSeconds:Qn,meridians:ds,min:Hs,max:Xo}}let Fc=(()=>{class s{constructor(){this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.showMeridian=!0,this.meridians=["AM","PM"],this.readonlyInput=!1,this.disabled=!1,this.allowEmptyTime=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showSeconds=!1,this.showMinutes=!0,this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.ariaLabelHours="hours",this.ariaLabelMinutes="minutes",this.ariaLabelSeconds="seconds"}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const Ou={value:void 0,config:new Fc,controls:{canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0}};function Ru(s=Ou,c){switch(c.type){case qa.WRITE_VALUE:return Object.assign({},s,{value:c.payload});case qa.CHANGE_HOURS:{if(!Dr(s.config,c.payload)||!function Xa(s,c){return!(!s.step||s.step>0&&!c.canIncrementHours||s.step<0&&!c.canDecrementHours)}(c.payload,s.controls))return s;const r=Cn(s.value,{hour:c.payload.step});return!s.config.max&&!s.config.min||pe(s.config,r)?Object.assign({},s,{value:r}):s}case qa.CHANGE_MINUTES:{if(!Dr(s.config,c.payload)||!function Wa(s,c){return!(!s.step||s.step>0&&!c.canIncrementMinutes||s.step<0&&!c.canDecrementMinutes)}(c.payload,s.controls))return s;const r=Cn(s.value,{minute:c.payload.step});return!s.config.max&&!s.config.min||pe(s.config,r)?Object.assign({},s,{value:r}):s}case qa.CHANGE_SECONDS:{if(!Dr(s.config,c.payload)||!function zl(s,c){return!(!s.step||s.step>0&&!c.canIncrementSeconds||s.step<0&&!c.canDecrementSeconds)}(c.payload,s.controls))return s;const r=Cn(s.value,{seconds:c.payload.step});return!s.config.max&&!s.config.min||pe(s.config,r)?Object.assign({},s,{value:r}):s}case qa.SET_TIME_UNIT:{if(!Dr(s.config))return s;const r=Fn(s.value,c.payload);return Object.assign({},s,{value:r})}case qa.UPDATE_CONTROLS:{const r=function jd(s,c){const{min:D,max:G,hourStep:fe,minuteStep:ot,secondsStep:Ut,showSeconds:Bn}=c,Qn={canIncrementHours:!0,canIncrementMinutes:!0,canIncrementSeconds:!0,canDecrementHours:!0,canDecrementMinutes:!0,canDecrementSeconds:!0,canToggleMeridian:!0};if(!s)return Qn;if(G){const ds=Cn(s,{hour:fe});if(Qn.canIncrementHours=G>ds&&s.getHours()+fe<24,!Qn.canIncrementHours){const Hs=Cn(s,{minute:ot});Qn.canIncrementMinutes=Bn?G>Hs:G>=Hs}if(!Qn.canIncrementMinutes){const Hs=Cn(s,{seconds:Ut});Qn.canIncrementSeconds=G>=Hs}s.getHours()<12&&(Qn.canToggleMeridian=Cn(s,{hour:12})<G)}if(D){const ds=Cn(s,{hour:-fe});if(Qn.canDecrementHours=D<ds,!Qn.canDecrementHours){const Hs=Cn(s,{minute:-ot});Qn.canDecrementMinutes=Bn?D<Hs:D<=Hs}if(!Qn.canDecrementMinutes){const Hs=Cn(s,{seconds:-Ut});Qn.canDecrementSeconds=D<=Hs}s.getHours()>=12&&(Qn.canToggleMeridian=Cn(s,{hour:-12})>D)}return Qn}(s.value,c.payload),m={value:s.value,config:c.payload,controls:r};return s.config.showMeridian!==m.config.showMeridian&&s.value&&(m.value=new Date(s.value)),Object.assign({},s,m)}default:return s}}let Wn=(()=>{class s extends kn{constructor(){const r=new gd.t({type:"[mini-ngrx] dispatcher init"});super(r,Ru,new Dn(Ou,r,Ru))}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const ci={provide:Pd.kq,useExisting:(0,e.Rfq)(()=>bi),multi:!0};let bi=(()=>{class s{constructor(r,m,D,G){this._cd=m,this._store=D,this._timepickerActions=G,this.hourStep=1,this.minuteStep=5,this.secondsStep=10,this.readonlyInput=!1,this.disabled=!1,this.mousewheel=!0,this.arrowkeys=!0,this.showSpinners=!0,this.showMeridian=!0,this.showMinutes=!0,this.showSeconds=!1,this.meridians=["AM","PM"],this.hoursPlaceholder="HH",this.minutesPlaceholder="MM",this.secondsPlaceholder="SS",this.isValid=new e.bkB,this.meridianChange=new e.bkB,this.hours="",this.minutes="",this.seconds="",this.meridian="",this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1,this.labelHours="hours",this.labelMinutes="minutes",this.labelSeconds="seconds",this.canIncrementHours=!0,this.canIncrementMinutes=!0,this.canIncrementSeconds=!0,this.canDecrementHours=!0,this.canDecrementMinutes=!0,this.canDecrementSeconds=!0,this.canToggleMeridian=!0,this.onChange=Function.prototype,this.onTouched=Function.prototype,this.config=r,Object.assign(this,this.config),this.timepickerSub=D.select(fe=>fe.value).subscribe(fe=>{this._renderTime(fe),this.onChange(fe),this._store.dispatch(this._timepickerActions.updateControls(Iu(this)))}),D.select(fe=>fe.controls).subscribe(fe=>{const ot=la(this.hours,this.minutes,this.seconds,this.isPM()),Ut=this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||ot;this.isValid.emit(Ut),Object.assign(this,fe),m.markForCheck()})}get isSpinnersVisible(){return this.showSpinners&&!this.readonlyInput}get isEditable(){return!(this.readonlyInput||this.disabled)}resetValidation(){this.invalidHours=!1,this.invalidMinutes=!1,this.invalidSeconds=!1}isPM(){return this.showMeridian&&this.meridian===this.meridians[1]}prevDef(r){r.preventDefault()}wheelSign(r){return-1*Math.sign(r.deltaY||0)}ngOnChanges(){this._store.dispatch(this._timepickerActions.updateControls(Iu(this)))}changeHours(r,m=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeHours({step:r,source:m}))}changeMinutes(r,m=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeMinutes({step:r,source:m}))}changeSeconds(r,m=""){this.resetValidation(),this._store.dispatch(this._timepickerActions.changeSeconds({step:r,source:m}))}updateHours(r){this.resetValidation(),this.hours=r.value;const m=Zi(this.hours,this.isPM())&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||m))return this.invalidHours=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateMinutes(r){this.resetValidation(),this.minutes=r.value;const m=uo(this.minutes)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||m))return this.invalidMinutes=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}updateSeconds(r){this.resetValidation(),this.seconds=r.value;const m=zs(this.seconds)&&this.isValidLimit();if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||m))return this.invalidSeconds=!0,this.isValid.emit(!1),void this.onChange(null);this._updateTime()}isValidLimit(){return function qo(s,c,r){const m=Fn(new Date,s);return!(!m||c&&m>c||r&&m<r)}({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()},this.max,this.min)}isOneOfDatesIsEmpty(){return function lr(s,c,r){return 0===s.length||0===c.length||0===r.length}(this.hours,this.minutes,this.seconds)}_updateTime(){const D=la(this.hours,this.showMinutes?this.minutes:void 0,this.showSeconds?this.seconds:void 0,this.isPM());if(!(this.config.allowEmptyTime&&this.isOneOfDatesIsEmpty()||D))return this.isValid.emit(!1),void this.onChange(null);this._store.dispatch(this._timepickerActions.setTime({hour:this.hours,minute:this.minutes,seconds:this.seconds,isPM:this.isPM()}))}toggleMeridian(){this.showMeridian&&this.isEditable&&this._store.dispatch(this._timepickerActions.changeHours({step:12,source:""}))}writeValue(r){H(r)?(this.resetValidation(),this._store.dispatch(this._timepickerActions.writeValue(Un(r)))):null==r&&this._store.dispatch(this._timepickerActions.writeValue())}registerOnChange(r){this.onChange=r}registerOnTouched(r){this.onTouched=r}setDisabledState(r){this.disabled=r,this._cd.markForCheck()}ngOnDestroy(){this.timepickerSub?.unsubscribe()}_renderTime(r){if(!r||!H(r))return this.hours="",this.minutes="",this.seconds="",this.meridian=this.meridians[0],void this.meridianChange.emit(this.meridian);const m=Un(r);if(!m)return;let G=m.getHours();this.showMeridian&&(this.meridian=this.meridians[G>=12?1:0],this.meridianChange.emit(this.meridian),G%=12,0===G&&(G=12)),this.hours=Ui(G),this.minutes=Ui(m.getMinutes()),this.seconds=Ui(m.getUTCSeconds())}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Fc),e.rXU(e.gRc),e.rXU(Wn),e.rXU(qa))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["timepicker"]],inputs:{hourStep:"hourStep",minuteStep:"minuteStep",secondsStep:"secondsStep",readonlyInput:"readonlyInput",disabled:"disabled",mousewheel:"mousewheel",arrowkeys:"arrowkeys",showSpinners:"showSpinners",showMeridian:"showMeridian",showMinutes:"showMinutes",showSeconds:"showSeconds",meridians:"meridians",min:"min",max:"max",hoursPlaceholder:"hoursPlaceholder",minutesPlaceholder:"minutesPlaceholder",secondsPlaceholder:"secondsPlaceholder"},outputs:{isValid:"isValid",meridianChange:"meridianChange"},features:[e.Jv_([ci,Wn]),e.OA$],decls:31,vars:33,consts:[[1,"text-center",3,"hidden"],["href","javascript:void(0);",1,"btn","btn-link",3,"click"],[1,"bs-chevron","bs-chevron-up"],[4,"ngIf"],[1,"form-group","mb-3"],["type","text","maxlength","2",1,"form-control","text-center","bs-timepicker-field",3,"placeholder","readonly","disabled","value","wheel","keydown.ArrowUp","keydown.ArrowDown","change"],["class","form-group mb-3",3,"has-error",4,"ngIf"],[1,"bs-chevron","bs-chevron-down"],["type","button",1,"btn","btn-default","text-center",3,"disabled","click"]],template:function(m,D){1&m&&(e.j41(0,"table")(1,"tbody")(2,"tr",0)(3,"td")(4,"a",1),e.bIt("click",function(){return D.changeHours(D.hourStep)}),e.nrm(5,"span",2),e.k0s()(),e.DNE(6,pi,2,0,"td",3),e.DNE(7,ys,3,2,"td",3),e.DNE(8,Or,2,0,"td",3),e.DNE(9,Co,3,2,"td",3),e.DNE(10,Nc,2,0,"td",3),e.DNE(11,Tu,1,0,"td",3),e.k0s(),e.j41(12,"tr")(13,"td",4)(14,"input",5),e.bIt("wheel",function(fe){return D.prevDef(fe),D.changeHours(D.hourStep*D.wheelSign(fe),"wheel")})("keydown.ArrowUp",function(){return D.changeHours(D.hourStep,"key")})("keydown.ArrowDown",function(){return D.changeHours(-D.hourStep,"key")})("change",function(fe){return D.updateHours(fe.target)}),e.k0s()(),e.DNE(15,Ld,2,0,"td",3),e.DNE(16,Eu,2,9,"td",6),e.DNE(17,Bd,2,0,"td",3),e.DNE(18,Su,2,9,"td",6),e.DNE(19,su,2,0,"td",3),e.DNE(20,Ju,3,4,"td",3),e.k0s(),e.j41(21,"tr",0)(22,"td")(23,"a",1),e.bIt("click",function(){return D.changeHours(-D.hourStep)}),e.nrm(24,"span",7),e.k0s()(),e.DNE(25,ku,2,0,"td",3),e.DNE(26,eh,3,2,"td",3),e.DNE(27,th,2,0,"td",3),e.DNE(28,Ur,3,2,"td",3),e.DNE(29,Vd,2,0,"td",3),e.DNE(30,xu,1,0,"td",3),e.k0s()()()),2&m&&(e.R7$(2),e.Y8G("hidden",!D.showSpinners),e.R7$(2),e.AVh("disabled",!D.canIncrementHours||!D.isEditable),e.R7$(2),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(2),e.AVh("has-error",D.invalidHours),e.R7$(1),e.AVh("is-invalid",D.invalidHours),e.Y8G("placeholder",D.hoursPlaceholder)("readonly",D.readonlyInput)("disabled",D.disabled)("value",D.hours),e.BMQ("aria-label",D.labelHours),e.R7$(1),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(1),e.Y8G("hidden",!D.showSpinners),e.R7$(2),e.AVh("disabled",!D.canDecrementHours||!D.isEditable),e.R7$(2),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showMinutes),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showSeconds),e.R7$(1),e.Y8G("ngIf",D.showMeridian),e.R7$(1),e.Y8G("ngIf",D.showMeridian))},dependencies:[Qi.bT],styles:[".bs-chevron{border-style:solid;display:block;width:9px;height:9px;position:relative;border-width:3px 0px 0 3px}.bs-chevron-up{transform:rotate(45deg);top:2px}.bs-chevron-down{transform:rotate(-135deg);top:-2px}.bs-timepicker-field{width:65px;padding:.375rem .55rem}\n"],encapsulation:2,changeDetection:0})}}return s})(),ss=(()=>{class s{static forRoot(){return{ngModule:s,providers:[qa,Wn]}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275mod=e.$C({type:s})}static{this.\u0275inj=e.G2t({providers:[Wn],imports:[Qi.MD]})}}return s})();var Os=N(9969),Ka=N(8359),$r=N(4572),kl=N(1635);class td{constructor(c,r,m){this.nodes=c,this.viewRef=r,this.componentRef=m}}class nh{constructor(c,r,m,D,G,fe,ot,Ut,Bn){this._viewContainerRef=c,this._renderer=r,this._elementRef=m,this._injector=D,this._componentFactoryResolver=G,this._ngZone=fe,this._applicationRef=ot,this._posService=Ut,this._document=Bn,this.onBeforeShow=new e.bkB,this.onShown=new e.bkB,this.onBeforeHide=new e.bkB,this.onHidden=new e.bkB,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}get isShown(){return!this._isHiding&&!!this._componentRef}attach(c){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(c),this}to(c){return this.container=c||this.container,this}position(c){return c?(this.attachment=c.attachment||this.attachment,this._elementRef=c.target||this._elementRef,this):this}provide(c){return this._providers.push(c),this}show(c={}){if(this._subscribePositioning(),this._innerComponent=void 0,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(c.content,c.context,c.initialState);const r=e.zZn.create({providers:this._providers,parent:this._injector});if(!this._componentFactory)return;if(this._componentRef=this._componentFactory.create(r,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,c),this.container instanceof e.aKT&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&typeof this._document<"u"){const m=this._document.querySelector(this.container)||this._document.querySelector(this.containerDefaultSelector);if(!m)return;m.appendChild(this._componentRef.location.nativeElement)}!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(c.id?{id:c.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}hide(c){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);const r=this._componentRef.location.nativeElement;return r.parentNode?.removeChild(r),this._contentRef?.componentRef?.destroy(),this._viewContainerRef&&this._contentRef?.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef?.viewRef?.destroy(),this._contentRef=void 0,this._componentRef=void 0,this._removeGlobalListener(),this.onHidden.emit(c?{id:c}:null),this}toggle(){this.isShown?this.hide():this.show()}dispose(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}listen(c){this.triggers=c.triggers||this.triggers,this._listenOpts.outsideClick=c.outsideClick,this._listenOpts.outsideEsc=c.outsideEsc,c.target=c.target||this._elementRef?.nativeElement;const r=this._listenOpts.hide=()=>c.hide?c.hide():void this.hide(),m=this._listenOpts.show=G=>{c.show?c.show(G):this.show(G),G()};return this._renderer&&(this._unregisterListenersFn=function ac(s,c){const r=Oo(c.triggers),m=c.target;if(1===r.length&&r[0].isManual())return Function.prototype;const D=[],G=[],fe=()=>{G.forEach(ot=>D.push(ot())),G.length=0};return r.forEach(ot=>{const Ut=ot.open===ot.close,Bn=Ut?c.toggle:c.show;if(!Ut&&ot.close&&c.hide){const Qn=ot.close,ds=c.hide;G.push(()=>s.listen(m,Qn,ds))}Bn&&D.push(s.listen(m,ot.open,()=>Bn(fe)))}),()=>{D.forEach(ot=>ot())}}(this._renderer,{target:c.target,triggers:c.triggers,show:m,hide:r,toggle:G=>{this.isShown?r():m(G)}})),this}_removeGlobalListener(){this._globalListener&&(this._globalListener(),this._globalListener=Function.prototype)}attachInline(c,r){return c&&r&&(this._inlineViewRef=c.createEmbeddedView(r)),this}_registerOutsideClick(){if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){const c=this._componentRef.location.nativeElement;setTimeout(()=>{this._renderer&&this._elementRef&&(this._globalListener=function Yc(s,c){return c.outsideClick?s.listen("document","click",r=>{c.target&&c.target.contains(r.target)||c.targets&&c.targets.some(m=>m.contains(r.target))||c.hide&&c.hide()}):Function.prototype}(this._renderer,{targets:[c,this._elementRef.nativeElement],outsideClick:this._listenOpts.outsideClick,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))})}this._listenOpts.outsideEsc&&this._renderer&&this._elementRef&&(this._globalListener=function ud(s,c){return c.outsideEsc?s.listen("document","keyup.esc",r=>{c.target&&c.target.contains(r.target)||c.targets&&c.targets.some(m=>m.contains(r.target))||c.hide&&c.hide()}):Function.prototype}(this._renderer,{targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:()=>this._listenOpts.hide&&this._listenOpts.hide()}))}}getInnerComponent(){return this._innerComponent}_subscribePositioning(){this._zoneSubscription||!this.attachment||(this.onShown.subscribe(()=>{this._posService.position({element:this._componentRef?.location,target:this._elementRef,attachment:this.attachment,appendToBody:"body"===this.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(()=>{this._componentRef&&this._posService.calcPosition()}))}_unsubscribePositioning(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=void 0)}_getContentRef(c,r,m){if(!c)return new td([]);if(c instanceof e.C4Q){if(this._viewContainerRef){const fe=this._viewContainerRef.createEmbeddedView(c,r);return fe.markForCheck(),new td([fe.rootNodes],fe)}const G=c.createEmbeddedView({});return this._applicationRef.attachView(G),new td([G.rootNodes],G)}if("function"==typeof c){const G=this._componentFactoryResolver.resolveComponentFactory(c),fe=e.zZn.create({providers:this._providers,parent:this._injector}),ot=G.create(fe);return Object.assign(ot.instance,m),this._applicationRef.attachView(ot.hostView),new td([[ot.location.nativeElement]],ot.hostView,ot)}const D=this._renderer?[this._renderer.createText(`${c}`)]:[];return new td([D])}}let cr=(()=>{class s{constructor(r,m,D,G,fe,ot){this._componentFactoryResolver=r,this._ngZone=m,this._injector=D,this._posService=G,this._applicationRef=fe,this._document=ot}createLoader(r,m,D){return new nh(m,D,r,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService,this._document)}static{this.\u0275fac=function(m){return new(m||s)(e.KVO(e.OM3),e.KVO(e.SKi),e.KVO(e.zZn),e.KVO(md),e.KVO(e.o8S),e.KVO(Qi.qQ))}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var _d=N(1584);const Ca=["*"];let vd=(()=>{class s{constructor(){this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),ou=(()=>{class s{get _bsVersions(){return Hr()}constructor(r){Object.assign(this,r)}ngAfterViewInit(){this.classMap={in:!1,fade:!1},this.placement&&(this._bsVersions.isBs5&&(this.placement=zc[this.placement]),this.classMap[this.placement]=!0),this.classMap[`tooltip-${this.placement}`]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(vd))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:3,hostBindings:function(m,D){2&m&&(e.BMQ("id",D.id),e.HbH("show tooltip in tooltip-"+D.placement+" bs-tooltip-"+D.placement+" "+D.placement+" "+D.containerClass))},ngContentSelectors:Ca,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(m,D){1&m&&(e.NAR(),e.nrm(0,"div",0),e.j41(1,"div",1),e.SdG(2),e.k0s())},styles:[".tooltip[_nghost-%COMP%]{display:block;pointer-events:none;position:absolute}.tooltip[_nghost-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{position:absolute}"],changeDetection:0})}}return s})(),_f=0,ih=(()=>{class s{get isOpen(){return this._tooltip.isShown}set isOpen(r){r?this.show():this.hide()}set htmlContent(r){ar("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=r}set _placement(r){ar("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=r}set _isOpen(r){ar("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=r}get _isOpen(){return ar("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen}set _enable(r){ar("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!r}get _enable(){return ar("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled}set _appendToBody(r){ar('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=r?"body":this.container}get _appendToBody(){return ar('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container}set _popupClass(r){ar("tooltipClass deprecated")}set _tooltipContext(r){ar("tooltipContext deprecated")}set _tooltipPopupDelay(r){ar("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=r}get _tooltipTrigger(){return ar("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers}set _tooltipTrigger(r){ar("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(r||"").toString()}constructor(r,m,D,G,fe,ot){this._elementRef=G,this._renderer=fe,this._positionService=ot,this.tooltipId=_f++,this.adaptivePosition=!0,this.tooltipChange=new e.bkB,this.placement="top",this.triggers="hover focus",this.containerClass="",this.isDisabled=!1,this.delay=0,this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new e.bkB,this._tooltip=m.createLoader(this._elementRef,r,this._renderer).provide({provide:vd,useValue:D}),Object.assign(this,D),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}ngOnInit(){this._tooltip.listen({triggers:this.triggers,show:()=>this.show()}),this.tooltipChange.subscribe(r=>{r||this._tooltip.hide()}),this.onShown.subscribe(()=>{this.setAriaDescribedBy()}),this.onHidden.subscribe(()=>{this.setAriaDescribedBy()})}setAriaDescribedBy(){this._ariaDescribedby=this.isOpen?`tooltip-${this.tooltipId}`:void 0,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}toggle(){if(this.isOpen)return this.hide();this.show()}show(){if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition,boundariesElement:this.boundariesElement||"scrollParent"}}}),this.isOpen||this.isDisabled||this._delayTimeoutId||!this.tooltip)return;const r=()=>{this._delayTimeoutId&&(this._delayTimeoutId=void 0),this._tooltip.attach(ou).to(this.container).position({attachment:this.placement}).show({content:this.tooltip,placement:this.placement,containerClass:this.containerClass,id:`tooltip-${this.tooltipId}`})},m=()=>{this._tooltipCancelShowFn&&this._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=(0,_d.O)(this.delay).subscribe(()=>{r(),m()}),this.triggers&&Oo(this.triggers).forEach(D=>{D.close&&(this._tooltipCancelShowFn=this._renderer.listen(this._elementRef.nativeElement,D.close,()=>{this._delaySubscription?.unsubscribe(),m()}))})):r()}hide(){this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance?.classMap&&(this._tooltip.instance.classMap.in=!1),setTimeout(()=>{this._tooltip.hide()},this.tooltipFadeDuration))}ngOnDestroy(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(e.c1b),e.rXU(cr),e.rXU(vd),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(md))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{adaptivePosition:"adaptivePosition",tooltip:"tooltip",placement:"placement",triggers:"triggers",container:"container",containerClass:"containerClass",boundariesElement:"boundariesElement",isOpen:"isOpen",isDisabled:"isDisabled",delay:"delay",htmlContent:["tooltipHtml","htmlContent"],_placement:["tooltipPlacement","_placement"],_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],_appendToBody:["tooltipAppendToBody","_appendToBody"],tooltipAnimation:"tooltipAnimation",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],tooltipFadeDuration:"tooltipFadeDuration",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"]},outputs:{tooltipChange:"tooltipChange",onShown:"onShown",onHidden:"onHidden",tooltipStateChanged:"tooltipStateChanged"},exportAs:["bs-tooltip"]})}}return(0,kl.Cg)([lc(),(0,kl.Sn)("design:type",Object)],s.prototype,"tooltip",void 0),s})(),kh=(()=>{class s{static forRoot(){return{ngModule:s,providers:[cr,md]}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275mod=e.$C({type:s})}static{this.\u0275inj=e.G2t({imports:[Qi.MD]})}}return s})();function vf(s,c){if(1&s){const r=e.RV6();e.j41(0,"button",2),e.bIt("click",function(){const G=e.eBV(r).$implicit,fe=e.XpG();return e.Njj(fe.selectFromRanges(G))}),e.EFF(1),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG();e.AVh("selected",r.value===m.selectedRange),e.R7$(1),e.SpI(" ",r.label," ")}}function sh(s,c){1&s&&e.nrm(0,"bs-current-date",4)}function Nu(s,c){1&s&&e.nrm(0,"bs-timepicker")}const xh=[[["bs-datepicker-navigation-view"]],"*"],Ih=["bs-datepicker-navigation-view","*"],oh=["bsDatepickerDayDecorator",""];function Oh(s,c){if(1&s){const r=e.RV6();e.qex(0),e.EFF(1," \u200b "),e.j41(2,"button",2),e.bIt("click",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.view("month"))}),e.j41(3,"span"),e.EFF(4),e.k0s()(),e.bVm()}if(2&s){const r=e.XpG();e.R7$(2),e.Y8G("disabled",r.isDisabled),e.R7$(2),e.JRh(r.calendar.monthTitle)}}function Rh(s,c){1&s&&e.nrm(0,"th")}function Fu(s,c){if(1&s&&(e.j41(0,"th",5),e.EFF(1),e.k0s()),2&s){const r=c.index,m=e.XpG();e.R7$(1),e.SpI("",m.calendar.weekdays[r]," ")}}function Nh(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",11),e.bIt("click",function(){e.eBV(r);const D=e.XpG(2).$implicit,G=e.XpG();return e.Njj(G.selectWeek(D))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG(2).index,m=e.XpG();e.R7$(1),e.JRh(m.calendar.weekNumbers[r])}}function bf(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",12),e.bIt("click",function(){e.eBV(r);const D=e.XpG(2).$implicit,G=e.XpG();return e.Njj(G.selectWeek(D))})("mouseenter",function(){e.eBV(r);const D=e.XpG(2).$implicit,G=e.XpG();return e.Njj(G.weekHoverHandler(D,!0))})("mouseleave",function(){e.eBV(r);const D=e.XpG(2).$implicit,G=e.XpG();return e.Njj(G.weekHoverHandler(D,!1))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG(2).index,m=e.XpG();e.R7$(1),e.JRh(m.calendar.weekNumbers[r])}}function sp(s,c){if(1&s&&(e.j41(0,"td",8),e.DNE(1,Nh,2,1,"span",9),e.DNE(2,bf,2,1,"span",10),e.k0s()),2&s){const r=e.XpG(2);e.AVh("active-week",r.isWeekHovered),e.R7$(1),e.Y8G("ngIf",r.isiOS),e.R7$(1),e.Y8G("ngIf",!r.isiOS)}}function op(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",17),e.bIt("click",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.selectDay(D))})("mouseenter",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.hoverDay(D,!0))})("mouseleave",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.hoverDay(D,!1))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG().$implicit;e.FS9("tooltip",r.tooltipText),e.Y8G("day",r),e.R7$(1),e.SpI("",r.label," 3")}}function rp(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",18),e.bIt("click",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.selectDay(D))})("mouseenter",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.hoverDay(D,!0))})("mouseleave",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.hoverDay(D,!1))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG().$implicit;e.Y8G("day",r),e.R7$(1),e.SpI("",r.label," 2")}}function yf(s,c){if(1&s){const r=e.RV6();e.j41(0,"span",19),e.bIt("click",function(){e.eBV(r);const D=e.XpG().$implicit,G=e.XpG(2);return e.Njj(G.selectDay(D))}),e.EFF(1),e.k0s()}if(2&s){const r=e.XpG().$implicit;e.Y8G("day",r),e.R7$(1),e.SpI("",r.label," 1")}}function rh(s,c){if(1&s&&(e.j41(0,"td",13),e.DNE(1,op,2,3,"span",14),e.DNE(2,rp,2,2,"span",15),e.DNE(3,yf,2,2,"span",16),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngIf",!r.isiOS&&r.isShowTooltip),e.R7$(1),e.Y8G("ngIf",!r.isiOS&&!r.isShowTooltip),e.R7$(1),e.Y8G("ngIf",r.isiOS)}}function ah(s,c){if(1&s&&(e.j41(0,"tr"),e.DNE(1,sp,3,4,"td",6),e.DNE(2,rh,4,3,"td",7),e.k0s()),2&s){const r=c.$implicit,m=e.XpG();e.R7$(1),e.Y8G("ngIf",m.options&&m.options.showWeekNumbers),e.R7$(1),e.Y8G("ngForOf",r.days)}}function Fh(s,c){if(1&s){const r=e.RV6();e.j41(0,"td",4),e.bIt("click",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.viewMonth(G))})("mouseenter",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.hoverMonth(G,!0))})("mouseleave",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.hoverMonth(G,!1))}),e.j41(1,"span"),e.EFF(2),e.k0s()()}if(2&s){const r=c.$implicit;e.AVh("disabled",r.isDisabled)("is-highlighted",r.isHovered),e.R7$(1),e.AVh("selected",r.isSelected),e.R7$(1),e.JRh(r.label)}}function ru(s,c){if(1&s&&(e.j41(0,"tr"),e.DNE(1,Fh,3,7,"td",3),e.k0s()),2&s){const r=c.$implicit;e.R7$(1),e.Y8G("ngForOf",r)}}function ap(s,c){if(1&s){const r=e.RV6();e.j41(0,"td",4),e.bIt("click",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.viewYear(G))})("mouseenter",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.hoverYear(G,!0))})("mouseleave",function(){const G=e.eBV(r).$implicit,fe=e.XpG(2);return e.Njj(fe.hoverYear(G,!1))}),e.j41(1,"span"),e.EFF(2),e.k0s()()}if(2&s){const r=c.$implicit;e.AVh("disabled",r.isDisabled)("is-highlighted",r.isHovered),e.R7$(1),e.AVh("selected",r.isSelected),e.R7$(1),e.JRh(r.label)}}function Ah(s,c){if(1&s&&(e.j41(0,"tr"),e.DNE(1,ap,3,7,"td",3),e.k0s()),2&s){const r=c.$implicit;e.R7$(1),e.Y8G("ngForOf",r)}}const lp=["startTP"];function cp(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-days-calendar-view",11),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.dayHoverHandler(D))})("onHoverWeek",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.weekHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.daySelectHandler(D))}),e.nI1(1,"async"),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)("isDisabled",m.isDatePickerDisabled)("options",e.bMT(1,5,m.options$))}}function Ph(s,c){if(1&s&&e.nrm(0,"timepicker",13,16),2&s){const r=e.XpG(4);e.Y8G("disabled",r.isDatePickerDisabled)}}function dp(s,c){if(1&s&&(e.j41(0,"div",12),e.nrm(1,"timepicker",13,14),e.DNE(3,Ph,2,1,"timepicker",15),e.k0s()),2&s){const r=e.XpG(3);e.R7$(1),e.Y8G("disabled",r.isDatePickerDisabled),e.R7$(2),e.Y8G("ngIf",r.isRangePicker)}}function Gd(s,c){if(1&s&&(e.qex(0),e.j41(1,"div",8),e.DNE(2,cp,2,7,"bs-days-calendar-view",9),e.nI1(3,"async"),e.k0s(),e.DNE(4,dp,4,2,"div",10),e.bVm()),2&s){const r=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,2,r.daysCalendar$)),e.R7$(2),e.Y8G("ngIf",r.withTimepicker)}}function lh(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-month-calendar-view",18),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.monthHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.monthSelectHandler(D))}),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)}}function Lh(s,c){if(1&s&&(e.j41(0,"div",8),e.DNE(1,lh,1,3,"bs-month-calendar-view",17),e.nI1(2,"async"),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",e.bMT(2,1,r.monthsCalendar))}}function Cf(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-years-calendar-view",18),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.yearHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.yearSelectHandler(D))}),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)}}function wf(s,c){if(1&s&&(e.j41(0,"div",8),e.DNE(1,Cf,1,3,"bs-years-calendar-view",17),e.nI1(2,"async"),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",e.bMT(2,1,r.yearsCalendar))}}function ch(s,c){1&s&&(e.j41(0,"div",19)(1,"button",20),e.EFF(2,"Apply"),e.k0s(),e.j41(3,"button",21),e.EFF(4,"Cancel"),e.k0s()())}function Hd(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",24)(1,"button",25),e.bIt("click",function(){e.eBV(r);const D=e.XpG(3);return e.Njj(D.setToday())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG(3);e.AVh("today-left","left"===r.todayPos)("today-right","right"===r.todayPos)("today-center","center"===r.todayPos),e.R7$(2),e.JRh(r.todayBtnLbl)}}function up(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",26)(1,"button",25),e.bIt("click",function(){e.eBV(r);const D=e.XpG(3);return e.Njj(D.clearDate())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG(3);e.AVh("clear-left","left"===r.clearPos)("clear-right","right"===r.clearPos)("clear-center","center"===r.clearPos),e.R7$(2),e.JRh(r.clearBtnLbl)}}function Df(s,c){if(1&s&&(e.j41(0,"div",19),e.DNE(1,Hd,3,7,"div",22),e.DNE(2,up,3,7,"div",23),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngIf",r.showTodayBtn),e.R7$(1),e.Y8G("ngIf",r.showClearBtn)}}function hp(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",27)(1,"bs-custom-date-view",28),e.bIt("onSelect",function(D){e.eBV(r);const G=e.XpG(2);return e.Njj(G.setRangeOnCalendar(D))}),e.k0s()()}if(2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("selectedRange",r.chosenRange)("ranges",r.customRanges)("customRangeLabel",r.customRangeBtnLbl)}}function fp(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",1)(1,"div",2),e.bIt("@datepickerAnimation.done",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.positionServiceEnable())}),e.j41(2,"div",3),e.nI1(3,"async"),e.DNE(4,Gd,5,4,"ng-container",4),e.DNE(5,Lh,3,3,"div",5),e.DNE(6,wf,3,3,"div",5),e.k0s(),e.DNE(7,ch,5,0,"div",6),e.DNE(8,Df,3,2,"div",6),e.k0s(),e.DNE(9,hp,2,3,"div",7),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("ngClass",r.containerClass),e.R7$(1),e.Y8G("@datepickerAnimation",r.animationState),e.R7$(1),e.Y8G("ngSwitch",e.bMT(3,9,r.viewMode)),e.R7$(2),e.Y8G("ngSwitchCase","day"),e.R7$(1),e.Y8G("ngSwitchCase","month"),e.R7$(1),e.Y8G("ngSwitchCase","year"),e.R7$(1),e.Y8G("ngIf",!1),e.R7$(1),e.Y8G("ngIf",r.showTodayBtn||r.showClearBtn),e.R7$(1),e.Y8G("ngIf",r.customRanges&&r.customRanges.length>0)}}const Tt=["endTP"];function jt(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-days-calendar-view",11),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.dayHoverHandler(D))})("onHoverWeek",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.weekHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.daySelectHandler(D))}),e.nI1(1,"async"),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)("isDisabled",m.isDatePickerDisabled)("options",e.bMT(1,5,m.options$))}}function Gt(s,c){if(1&s&&e.nrm(0,"timepicker",13,16),2&s){const r=e.XpG(4);e.Y8G("disabled",r.isDatePickerDisabled)}}function Nn(s,c){if(1&s&&(e.j41(0,"div",12),e.nrm(1,"timepicker",13,14),e.DNE(3,Gt,2,1,"timepicker",15),e.k0s()),2&s){const r=e.XpG(3);e.R7$(1),e.Y8G("disabled",r.isDatePickerDisabled),e.R7$(2),e.Y8G("ngIf",r.isRangePicker)}}function wn(s,c){if(1&s&&(e.qex(0),e.j41(1,"div",8),e.DNE(2,jt,2,7,"bs-days-calendar-view",9),e.nI1(3,"async"),e.k0s(),e.DNE(4,Nn,4,2,"div",10),e.bVm()),2&s){const r=e.XpG(2);e.R7$(2),e.Y8G("ngForOf",e.bMT(3,2,r.daysCalendar$)),e.R7$(2),e.Y8G("ngIf",r.withTimepicker)}}function xn(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-month-calendar-view",18),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.monthHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.monthSelectHandler(D))}),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)}}function Oi(s,c){if(1&s&&(e.j41(0,"div",8),e.DNE(1,xn,1,3,"bs-month-calendar-view",17),e.nI1(2,"async"),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",e.bMT(2,1,r.monthsCalendar))}}function $i(s,c){if(1&s){const r=e.RV6();e.j41(0,"bs-years-calendar-view",18),e.bIt("onNavigate",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.navigateTo(D))})("onViewMode",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.setViewMode(D))})("onHover",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.yearHoverHandler(D))})("onSelect",function(D){e.eBV(r);const G=e.XpG(3);return e.Njj(G.yearSelectHandler(D))}),e.k0s()}if(2&s){const r=c.$implicit,m=e.XpG(3);e.AVh("bs-datepicker-multiple",m.multipleCalendars),e.Y8G("calendar",r)}}function ui(s,c){if(1&s&&(e.j41(0,"div",8),e.DNE(1,$i,1,3,"bs-years-calendar-view",17),e.nI1(2,"async"),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngForOf",e.bMT(2,1,r.yearsCalendar))}}function os(s,c){1&s&&(e.j41(0,"div",19)(1,"button",20),e.EFF(2,"Apply"),e.k0s(),e.j41(3,"button",21),e.EFF(4,"Cancel"),e.k0s()())}function Ji(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",24)(1,"button",25),e.bIt("click",function(){e.eBV(r);const D=e.XpG(3);return e.Njj(D.setToday())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG(3);e.AVh("today-left","left"===r.todayPos)("today-right","right"===r.todayPos)("today-center","center"===r.todayPos),e.R7$(2),e.JRh(r.todayBtnLbl)}}function No(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",26)(1,"button",25),e.bIt("click",function(){e.eBV(r);const D=e.XpG(3);return e.Njj(D.clearDate())}),e.EFF(2),e.k0s()()}if(2&s){const r=e.XpG(3);e.AVh("clear-left","left"===r.clearPos)("clear-right","right"===r.clearPos)("clear-center","center"===r.clearPos),e.R7$(2),e.JRh(r.clearBtnLbl)}}function rs(s,c){if(1&s&&(e.j41(0,"div",19),e.DNE(1,Ji,3,7,"div",22),e.DNE(2,No,3,7,"div",23),e.k0s()),2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("ngIf",r.showTodayBtn),e.R7$(1),e.Y8G("ngIf",r.showClearBtn)}}function _s(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",27)(1,"bs-custom-date-view",28),e.bIt("onSelect",function(D){e.eBV(r);const G=e.XpG(2);return e.Njj(G.setRangeOnCalendar(D))}),e.k0s()()}if(2&s){const r=e.XpG(2);e.R7$(1),e.Y8G("selectedRange",r.chosenRange)("ranges",r.customRanges)("customRangeLabel",r.customRangeBtnLbl)}}function Rs(s,c){if(1&s){const r=e.RV6();e.j41(0,"div",1)(1,"div",2),e.bIt("@datepickerAnimation.done",function(){e.eBV(r);const D=e.XpG();return e.Njj(D.positionServiceEnable())}),e.j41(2,"div",3),e.nI1(3,"async"),e.DNE(4,wn,5,4,"ng-container",4),e.DNE(5,Oi,3,3,"div",5),e.DNE(6,ui,3,3,"div",5),e.k0s(),e.DNE(7,os,5,0,"div",6),e.DNE(8,rs,3,2,"div",6),e.k0s(),e.DNE(9,_s,2,3,"div",7),e.k0s()}if(2&s){const r=e.XpG();e.Y8G("ngClass",r.containerClass),e.R7$(1),e.Y8G("@datepickerAnimation",r.animationState),e.R7$(1),e.Y8G("ngSwitch",e.bMT(3,9,r.viewMode)),e.R7$(2),e.Y8G("ngSwitchCase","day"),e.R7$(1),e.Y8G("ngSwitchCase","month"),e.R7$(1),e.Y8G("ngSwitchCase","year"),e.R7$(1),e.Y8G("ngIf",!1),e.R7$(1),e.Y8G("ngIf",r.showTodayBtn||r.showClearBtn),e.R7$(1),e.Y8G("ngIf",r.customRanges&&r.customRanges.length>0)}}let Xl=(()=>{class s{constructor(){this.adaptivePosition=!1,this.useUtc=!1,this.isAnimated=!1,this.startView="day",this.returnFocusToInput=!1,this.containerClass="theme-green",this.displayMonths=1,this.showWeekNumbers=!0,this.dateInputFormat="L",this.rangeSeparator=" - ",this.rangeInputFormat="L",this.monthTitle="MMMM",this.yearTitle="YYYY",this.dayLabel="D",this.monthLabel="MMMM",this.yearLabel="YYYY",this.weekNumbers="w",this.showTodayButton=!1,this.showClearButton=!1,this.todayPosition="center",this.clearPosition="right",this.todayButtonLabel="Today",this.clearButtonLabel="Clear",this.customRangeButtonLabel="Custom Range",this.withTimepicker=!1,this.allowedPositions=["top","bottom"],this.keepDatepickerOpened=!1,this.keepDatesOutOfRules=!1}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();const $d="220ms cubic-bezier(0, 0, 0.2, 1)",lu=(0,Os.hZ)("datepickerAnimation",[(0,Os.wk)("animated-down",(0,Os.iF)({height:"*",overflow:"hidden"})),(0,Os.kY)("* => animated-down",[(0,Os.iF)({height:0,overflow:"hidden"}),(0,Os.i0)($d)]),(0,Os.wk)("animated-up",(0,Os.iF)({height:"*",overflow:"hidden"})),(0,Os.kY)("* => animated-up",[(0,Os.iF)({height:"*",overflow:"hidden"}),(0,Os.i0)($d)]),(0,Os.kY)("* => unanimated",(0,Os.i0)("0s"))]);class sd{constructor(){this.containerClass="",this.customRanges=[],this.chosenRange=[],this._daysCalendarSub=new Ka.yU,this.selectedTimeSub=new Ka.yU}set minDate(c){this._effects?.setMinDate(c)}set maxDate(c){this._effects?.setMaxDate(c)}set daysDisabled(c){this._effects?.setDaysDisabled(c)}set datesDisabled(c){this._effects?.setDatesDisabled(c)}set datesEnabled(c){this._effects?.setDatesEnabled(c)}set isDisabled(c){this._effects?.setDisabled(c)}set dateCustomClasses(c){this._effects?.setDateCustomClasses(c)}set dateTooltipTexts(c){this._effects?.setDateTooltipTexts(c)}set daysCalendar$(c){this._daysCalendar$=c,this._daysCalendarSub.unsubscribe(),this._daysCalendarSub.add(this._daysCalendar$.subscribe(r=>{this.multipleCalendars=!!r&&r.length>1}))}get daysCalendar$(){return this._daysCalendar$}setViewMode(c){}navigateTo(c){}dayHoverHandler(c){}weekHoverHandler(c){}monthHoverHandler(c){}yearHoverHandler(c){}timeSelectHandler(c,r){}daySelectHandler(c){}monthSelectHandler(c){}yearSelectHandler(c){}setRangeOnCalendar(c){}setToday(){}clearDate(){}_stopPropagation(c){c.stopPropagation()}}let fo=(()=>{class s{static{this.CALCULATE="[datepicker] calculate dates matrix"}static{this.FORMAT="[datepicker] format datepicker values"}static{this.FLAG="[datepicker] set flags"}static{this.SELECT="[datepicker] select date"}static{this.NAVIGATE_OFFSET="[datepicker] shift view date"}static{this.NAVIGATE_TO="[datepicker] change view date"}static{this.SET_OPTIONS="[datepicker] update render options"}static{this.HOVER="[datepicker] hover date"}static{this.CHANGE_VIEWMODE="[datepicker] switch view mode"}static{this.SET_MIN_DATE="[datepicker] set min date"}static{this.SET_MAX_DATE="[datepicker] set max date"}static{this.SET_DAYSDISABLED="[datepicker] set days disabled"}static{this.SET_DATESDISABLED="[datepicker] set dates disabled"}static{this.SET_DATESENABLED="[datepicker] set dates enabled"}static{this.SET_IS_DISABLED="[datepicker] set is disabled"}static{this.SET_DATE_CUSTOM_CLASSES="[datepicker] set date custom classes"}static{this.SET_DATE_TOOLTIP_TEXTS="[datepicker] set date tooltip texts"}static{this.SET_LOCALE="[datepicker] set datepicker locale"}static{this.SELECT_TIME="[datepicker] select time"}static{this.SELECT_RANGE="[daterangepicker] select dates range"}calculate(){return{type:s.CALCULATE}}format(){return{type:s.FORMAT}}flag(){return{type:s.FLAG}}select(r){return{type:s.SELECT,payload:r}}selectTime(r,m){return{type:s.SELECT_TIME,payload:{date:r,index:m}}}changeViewMode(r){return{type:s.CHANGE_VIEWMODE,payload:r}}navigateTo(r){return{type:s.NAVIGATE_TO,payload:r}}navigateStep(r){return{type:s.NAVIGATE_OFFSET,payload:r}}setOptions(r){return{type:s.SET_OPTIONS,payload:r}}selectRange(r){return{type:s.SELECT_RANGE,payload:r}}hoverDay(r){return{type:s.HOVER,payload:r.isHovered?r.cell.date:null}}minDate(r){return{type:s.SET_MIN_DATE,payload:r}}maxDate(r){return{type:s.SET_MAX_DATE,payload:r}}daysDisabled(r){return{type:s.SET_DAYSDISABLED,payload:r}}datesDisabled(r){return{type:s.SET_DATESDISABLED,payload:r}}datesEnabled(r){return{type:s.SET_DATESENABLED,payload:r}}isDisabled(r){return{type:s.SET_IS_DISABLED,payload:r}}setDateCustomClasses(r){return{type:s.SET_DATE_CUSTOM_CLASSES,payload:r}}setDateTooltipTexts(r){return{type:s.SET_DATE_TOOLTIP_TEXTS,payload:r}}setLocale(r){return{type:s.SET_LOCALE,payload:r}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),yd=(()=>{class s{constructor(){this._defaultLocale="en",this._locale=new gd.t(this._defaultLocale),this._localeChange=this._locale.asObservable()}get locale(){return this._locale}get localeChange(){return this._localeChange}get currentLocale(){return this._locale.getValue()}use(r){r!==this.currentLocale&&this._locale.next(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),Il=(()=>{class s{constructor(r,m){this._actions=r,this._localeService=m,this._subs=[]}init(r){return this._store=r,this}setValue(r){this._store?.dispatch(this._actions.select(r))}setRangeValue(r){this._store?.dispatch(this._actions.selectRange(r))}setMinDate(r){return this._store?.dispatch(this._actions.minDate(r)),this}setMaxDate(r){return this._store?.dispatch(this._actions.maxDate(r)),this}setDaysDisabled(r){return this._store?.dispatch(this._actions.daysDisabled(r)),this}setDatesDisabled(r){return this._store?.dispatch(this._actions.datesDisabled(r)),this}setDatesEnabled(r){return this._store?.dispatch(this._actions.datesEnabled(r)),this}setDisabled(r){return this._store?.dispatch(this._actions.isDisabled(r)),this}setDateCustomClasses(r){return this._store?.dispatch(this._actions.setDateCustomClasses(r)),this}setDateTooltipTexts(r){return this._store?.dispatch(this._actions.setDateTooltipTexts(r)),this}setOptions(r){const m=Object.assign({locale:this._localeService.currentLocale},r);return this._store?.dispatch(this._actions.setOptions(m)),this}setBindings(r){return this._store?(r.selectedTime=this._store.select(m=>m.selectedTime).pipe((0,h.p)(m=>!!m)),r.daysCalendar$=this._store.select(m=>m.flaggedMonths).pipe((0,h.p)(m=>!!m)),r.monthsCalendar=this._store.select(m=>m.flaggedMonthsCalendar).pipe((0,h.p)(m=>!!m)),r.yearsCalendar=this._store.select(m=>m.yearsCalendarFlagged).pipe((0,h.p)(m=>!!m)),r.viewMode=this._store.select(m=>m.view?.mode),r.options$=(0,$r.z)([this._store.select(m=>m.showWeekNumbers),this._store.select(m=>m.displayMonths)]).pipe((0,ne.T)(m=>({showWeekNumbers:m[0],displayMonths:m[1]}))),this):this}setEventHandlers(r){return r.setViewMode=m=>{this._store?.dispatch(this._actions.changeViewMode(m))},r.navigateTo=m=>{this._store?.dispatch(this._actions.navigateStep(m.step))},r.dayHoverHandler=m=>{const D=m.cell;D.isOtherMonth||D.isDisabled||(this._store?.dispatch(this._actions.hoverDay(m)),D.isHovered=m.isHovered)},r.monthHoverHandler=m=>{m.cell.isHovered=m.isHovered},r.yearHoverHandler=m=>{m.cell.isHovered=m.isHovered},this}registerDatepickerSideEffects(){return this._store?(this._subs.push(this._store.select(r=>r.view).subscribe(()=>{this._store?.dispatch(this._actions.calculate())})),this._subs.push(this._store.select(r=>r.monthsModel).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.format()))),this._subs.push(this._store.select(r=>r.formattedMonths).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.selectedDate).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.selectedRange).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.monthsCalendar).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.yearsCalendarModel).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.hoveredDate).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.dateCustomClasses).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._store.select(r=>r.dateTooltipTexts).pipe((0,h.p)(r=>!!r)).subscribe(()=>this._store?.dispatch(this._actions.flag()))),this._subs.push(this._localeService.localeChange.subscribe(r=>this._store?.dispatch(this._actions.setLocale(r)))),this):this}destroy(){for(const r of this._subs)r.unsubscribe()}static{this.\u0275fac=function(m){return new(m||s)(e.KVO(fo),e.KVO(yd))}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})();const cu={date:new Date,mode:"day"},Pu=Object.assign(new Xl,{locale:"en",view:cu,selectedRange:[],selectedTime:[],monthViewOptions:{width:7,height:6}});function Lu(s,c,r){const m=c&&P(_e(s,"month"),c,"day"),D=r&&Eo(oe(s,"month"),r,"day");return m||D||!1}function Ac(s,c,r){const m=c&&P(_e(s,"year"),c,"day"),D=r&&Eo(oe(s,"year"),r,"day");return m||D||!1}function uh(s,c,r){return!!(c&&bt(c)&&c.length)&&(r&&"year"===r&&!c[0].getDate()?c.some(m=>te(s,m,"year")):c.some(m=>te(s,m,"date")))}function du(s,c,r){return!!(c&&bt(c)&&c.length)&&!c.some(m=>te(s,m,r||"date"))}function Gh(s,c=0){const r=s&&s.yearsCalendarModel&&s.yearsCalendarModel[c];return r?.years[0]&&r.years[0][0]&&r.years[0][0].date}function Pc(s,c){return!s||!c||!s.length&&!s[0].value||s.forEach(r=>(!r||!r.value||r.value instanceof Date||!(r.value instanceof Array&&r.value.length)||(r.value=Bu(r.value,c)),s)),s}function Yd(s,c){return!s||!c||s instanceof Array&&!s.length||s instanceof Date?s:Bu(s,c)}function Bu(s,c){return s instanceof Array?s.map(m=>m&&(Eo(m,c,"date")&&(m=c),m)):s}function Lc(s){return s&&uu(s)}function Vu(s){return s?.length&&s.map(c=>c&&uu(c)),s}function uu(s){const c=new Date;return s.setMilliseconds(c.getMilliseconds()),s.setSeconds(c.getSeconds()),s.setMinutes(c.getMinutes()),s.setHours(c.getHours()),s}function Cd(s,c){let r=s.initialDate;const m=new Array(s.height);for(let D=0;D<s.height;D++){m[D]=new Array(s.width);for(let G=0;G<s.width;G++)m[D][G]=c(r),r=mn(r,s.shift)}return m}function ju(s,c){const r=function xt(s){return L(s.getFullYear(),s.getMonth(),1,s.getHours(),s.getMinutes(),s.getSeconds())}(s),m=function Vh(s,c){if(function xe(s,c){return s.getDay()===Number(c)}(s,c.firstDayOfWeek))return s;const m=function jh(s,c){const r=Number(c);if(isNaN(r))return 0;if(0===r)return s;const m=s-r%7;return m<0?m+7:m}(bn(s),c.firstDayOfWeek);return mn(s,{day:-m})}(r,c);return{daysMatrix:Cd({width:c.width||0,height:c.height||0,initialDate:m,shift:{day:1}},fe=>fe),month:r}}function Hh(s,c,r){return s.map(m=>m[0]?Uo(m[0],c,r):"")}function od(s){const c=Mi(s),r=c.weekdaysShort(),m=c.firstDayOfWeek();return[...r.slice(m),...r.slice(0,m)]}function mp(s,c){return!c||s>=c}const rm=4,gp=3,Uu={month:1};function _p(s,c){const r=oe(s,"year");return{months:Cd({width:gp,height:rm,initialDate:r,shift:Uu},G=>({date:G,label:Uo(G,c.monthLabel,c.locale)})),monthTitle:"",yearTitle:Uo(s,c.yearTitle,c.locale),hideRightArrow:!1,hideLeftArrow:!1,disableRightArrow:!1,disableLeftArrow:!1}}const kf=4,hh=4,fh=kf*hh,vp=-1*(Math.floor(fh/2)-1),bp={year:1};function Uh(s,c,r){const m=function Vg(s,c){return c&&s.getFullYear()>=c.getFullYear()&&s.getFullYear()<c.getFullYear()+fh?c:mn(s,{year:vp})}(s,r),G=Cd({width:hh,height:kf,initialDate:m,shift:bp},ot=>({date:ot,label:Uo(ot,c.yearLabel,c.locale)})),fe=function lm(s,c){return`${Uo(s[0][0].date,c.yearTitle,c.locale)} - ${Uo(s[kf-1][hh-1].date,c.yearTitle,c.locale)}`}(G,c);return{years:G,monthTitle:"",yearTitle:fe,hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}function xf(s,c){!s||!isNaN(s.getTime())||(s.setHours(c.getHours()),s.setMinutes(c.getMinutes()),s.setSeconds(c.getSeconds()),s.setMilliseconds(c.getMilliseconds()))}function dm(s=Pu,c){switch(c.type){case fo.CALCULATE:return function jg(s){if(!s.view)return s;let c;c=s.displayOneMonthRange&&Yh(s.view.date,s.minDate,s.maxDate)?1:s.displayMonths||1;let r=s.view.date;if("day"===s.view.mode&&s.monthViewOptions){s.showPreviousMonth&&s.selectedRange&&0===s.selectedRange.length&&(r=mn(r,{month:-1})),s.monthViewOptions.firstDayOfWeek=Mi(s.locale).firstDayOfWeek();let m=new Array(c);for(let D=0;D<c;D++)m[D]=ju(r,s.monthViewOptions),r=mn(r,{month:1});if(s.preventChangeToNextMonth&&s.flaggedMonths&&s.hoveredDate){const D=ju(s.view.date,s.monthViewOptions);s.flaggedMonths.length&&s.flaggedMonths[1].month.getMonth()===D.month.getMonth()&&(m=s.flaggedMonths.map(G=>s.monthViewOptions?ju(G.month,s.monthViewOptions):null).filter(G=>null!==G))}return Object.assign({},s,{monthsModel:m})}if("month"===s.view.mode){const m=new Array(c);for(let D=0;D<c;D++)m[D]=_p(r,rd(s)),r=mn(r,{year:1});return Object.assign({},s,{monthsCalendar:m})}if("year"===s.view.mode){const m=new Array(c);for(let D=0;D<c;D++)m[D]=Uh(r,rd(s),"year"===s.minMode?Gh(s,D):void 0),r=mn(r,{year:fh});return Object.assign({},s,{yearsCalendarModel:m})}return s}(s);case fo.FORMAT:return function $h(s){if(!s.view)return s;if("day"===s.view.mode&&s.monthsModel){const m=s.monthsModel.map((D,G)=>function Gu(s,c,r){return{month:s.month,monthTitle:Uo(s.month,c.monthTitle,c.locale),yearTitle:Uo(s.month,c.yearTitle,c.locale),weekNumbers:Hh(s.daysMatrix,c.weekNumbers,c.locale),weekdays:od(c.locale),weeks:s.daysMatrix.map((m,D)=>({days:m.map((G,fe)=>({date:G,label:Uo(G,c.dayLabel,c.locale),monthIndex:r,weekIndex:D,dayIndex:fe}))})),hideLeftArrow:!1,hideRightArrow:!1,disableLeftArrow:!1,disableRightArrow:!1}}(D,rd(s),G));return Object.assign({},s,{formattedMonths:m})}const c=s.displayMonths||1;let r=s.view.date;if("month"===s.view.mode){const m=new Array(c);for(let D=0;D<c;D++)m[D]=_p(r,rd(s)),r=mn(r,{year:1});return Object.assign({},s,{monthsCalendar:m})}if("year"===s.view.mode){const m=new Array(c);for(let D=0;D<c;D++)m[D]=Uh(r,rd(s)),r=mn(r,{year:16});return Object.assign({},s,{yearsCalendarModel:m})}return s}(s);case fo.FLAG:return function um(s){if(!s.view)return s;const c=Yh(s.view.date,s.minDate,s.maxDate)?1:s.displayMonths;if(s.formattedMonths&&"day"===s.view.mode){const r=s.formattedMonths.map((m,D)=>function Hu(s,c){return s.weeks.forEach(r=>{r.days.forEach((m,D)=>{const G=!Ve(m.date,s.month),fe=!G&&Ft(m.date,c.hoveredDate),ot=!G&&c.selectedRange&&Ft(m.date,c.selectedRange[0]),Ut=!G&&c.selectedRange&&Ft(m.date,c.selectedRange[1]),Bn=!G&&Ft(m.date,c.selectedDate)||ot||Ut,Qn=!G&&c.selectedRange&&function Sf(s,c,r){return!!(s&&c&&c[0])&&(c[1]?s>c[0]&&s<=c[1]:!!r&&s>c[0]&&s<=r)}(m.date,c.selectedRange,c.hoveredDate),ds=c.isDisabled||P(m.date,c.minDate,"day")||Eo(m.date,c.maxDate,"day")||function ae(s,c){return!(typeof c>"u"||!c||!c.length)&&c.some(r=>r===s.getDay())}(m.date,c.daysDisabled)||uh(m.date,c.datesDisabled)||du(m.date,c.datesEnabled),Xo=!G&&Ft(m.date,new Date),al=c.dateCustomClasses&&c.dateCustomClasses.map(da=>Ft(m.date,da.date)?da.classes:[]).reduce((da,qu)=>da.concat(qu),[]).join(" ")||"",qd=c.dateTooltipTexts&&c.dateTooltipTexts.map(da=>Ft(m.date,da.date)?da.tooltipText:"").reduce((da,qu)=>(da.push(qu),da),[]).join(" ")||"",ll=Object.assign({},m,{isOtherMonth:G,isHovered:fe,isSelected:Bn,isSelectionStart:ot,isSelectionEnd:Ut,isInRange:Qn,isDisabled:ds,isToday:Xo,customClasses:al,tooltipText:qd});(m.isOtherMonth!==ll.isOtherMonth||m.isHovered!==ll.isHovered||m.isSelected!==ll.isSelected||m.isSelectionStart!==ll.isSelectionStart||m.isSelectionEnd!==ll.isSelectionEnd||m.isDisabled!==ll.isDisabled||m.isInRange!==ll.isInRange||m.customClasses!==ll.customClasses||m.tooltipText!==ll.tooltipText)&&(r.days[D]=ll)})}),s.hideLeftArrow=c.isDisabled||!!c.monthIndex&&c.monthIndex>0&&c.monthIndex!==c.displayMonths,s.hideRightArrow=c.isDisabled||(!!c.monthIndex||0===c.monthIndex)&&!!c.displayMonths&&c.monthIndex<c.displayMonths&&c.monthIndex+1!==c.displayMonths,s.disableLeftArrow=Lu(mn(s.month,{month:-1}),c.minDate,c.maxDate),s.disableRightArrow=Lu(mn(s.month,{month:1}),c.minDate,c.maxDate),s}(m,{isDisabled:s.isDisabled,minDate:s.minDate,maxDate:s.maxDate,daysDisabled:s.daysDisabled,datesDisabled:s.datesDisabled,datesEnabled:s.datesEnabled,hoveredDate:s.hoveredDate,selectedDate:s.selectedDate,selectedRange:s.selectedRange,displayMonths:c,dateCustomClasses:s.dateCustomClasses,dateTooltipTexts:s.dateTooltipTexts,monthIndex:D}));return Object.assign({},s,{flaggedMonths:r})}if("month"===s.view.mode&&s.monthsCalendar){const r=s.monthsCalendar.map((m,D)=>function am(s,c){return s.months.forEach((r,m)=>{r.forEach((D,G)=>{let fe;const ot=Ve(D.date,c.hoveredMonth),Ut=c.isDisabled||uh(D.date,c.datesDisabled)||du(D.date,c.datesEnabled,"month")||Lu(D.date,c.minDate,c.maxDate);!c.selectedDate&&c.selectedRange?(fe=Ve(D.date,c.selectedRange[0]),fe||(fe=Ve(D.date,c.selectedRange[1]))):fe=Ve(D.date,c.selectedDate);const Bn=Object.assign(D,{isHovered:ot,isDisabled:Ut,isSelected:fe});(D.isHovered!==Bn.isHovered||D.isDisabled!==Bn.isDisabled||D.isSelected!==Bn.isSelected)&&(s.months[m][G]=Bn)})}),s.hideLeftArrow=!!c.monthIndex&&c.monthIndex>0&&c.monthIndex!==c.displayMonths,s.hideRightArrow=(!!c.monthIndex||0===c.monthIndex)&&(!!c.displayMonths||0===c.displayMonths)&&c.monthIndex<c.displayMonths&&c.monthIndex+1!==c.displayMonths,s.disableLeftArrow=Ac(mn(s.months[0][0].date,{year:-1}),c.minDate,c.maxDate),s.disableRightArrow=Ac(mn(s.months[0][0].date,{year:1}),c.minDate,c.maxDate),s}(m,{isDisabled:s.isDisabled,minDate:s.minDate,maxDate:s.maxDate,hoveredMonth:s.hoveredMonth,selectedDate:s.selectedDate,datesDisabled:s.datesDisabled,datesEnabled:s.datesEnabled,selectedRange:s.selectedRange,displayMonths:c,monthIndex:D}));return Object.assign({},s,{flaggedMonthsCalendar:r})}if("year"===s.view.mode&&s.yearsCalendarModel){const r=s.yearsCalendarModel.map((m,D)=>function cm(s,c){s.years.forEach((D,G)=>{D.forEach((fe,ot)=>{let Ut;const Bn=ut(fe.date,c.hoveredYear),Qn=c.isDisabled||uh(fe.date,c.datesDisabled,"year")||du(fe.date,c.datesEnabled,"year")||Ac(fe.date,c.minDate,c.maxDate);!c.selectedDate&&c.selectedRange?(Ut=ut(fe.date,c.selectedRange[0]),Ut||(Ut=ut(fe.date,c.selectedRange[1]))):Ut=ut(fe.date,c.selectedDate);const ds=Object.assign(fe,{isHovered:Bn,isDisabled:Qn,isSelected:Ut});(fe.isHovered!==ds.isHovered||fe.isDisabled!==ds.isDisabled||fe.isSelected!==ds.isSelected)&&(s.years[G][ot]=ds)})}),s.hideLeftArrow=!!c.yearIndex&&c.yearIndex>0&&c.yearIndex!==c.displayMonths,s.hideRightArrow=!!c.yearIndex&&!!c.displayMonths&&c.yearIndex<c.displayMonths&&c.yearIndex+1!==c.displayMonths,s.disableLeftArrow=Ac(mn(s.years[0][0].date,{year:-1}),c.minDate,c.maxDate);const r=s.years.length-1;return s.disableRightArrow=Ac(mn(s.years[r][s.years[r].length-1].date,{year:1}),c.minDate,c.maxDate),s}(m,{isDisabled:s.isDisabled,minDate:s.minDate,maxDate:s.maxDate,hoveredYear:s.hoveredYear,selectedDate:s.selectedDate,datesDisabled:s.datesDisabled,datesEnabled:s.datesEnabled,selectedRange:s.selectedRange,displayMonths:c,yearIndex:D}));return Object.assign({},s,{yearsCalendarFlagged:r})}return s}(s);case fo.NAVIGATE_OFFSET:return function If(s,c){if(!s.view)return s;const r=function Of(s,c){if(s.view){if("year"===s.view.mode&&"year"===s.minMode){const r=Gh(s,0);if(r){const m=mn(r,{year:-vp});return mn(m,c.payload)}}return mn(oe(s.view.date,"month"),c.payload)}}(s,c);if(!r)return s;return Object.assign({},s,{view:{mode:s.view.mode,date:r}})}(s,c);case fo.NAVIGATE_TO:{const r=c.payload;if(!s.view||!r.unit)return s;const m=function gn(s,c){return L(ri(s.getFullYear(),c.year),ri(s.getMonth(),c.month),1,ri(s.getHours(),c.hour),ri(s.getMinutes(),c.minute),ri(s.getSeconds(),c.seconds),ri(s.getMilliseconds(),c.milliseconds))}(s.view.date,r.unit);let D,G;return mp(r.viewMode,s.minMode)?(G=r.viewMode,D={view:{date:m,mode:G}}):(G=s.view.mode,D={selectedDate:m,view:{date:m,mode:G}}),Object.assign({},s,D)}case fo.CHANGE_VIEWMODE:return mp(c.payload,s.minMode)&&s.view?Object.assign({},s,{view:{date:s.view.date,mode:c.payload}}):s;case fo.HOVER:return Object.assign({},s,{hoveredDate:c.payload});case fo.SELECT:{if(!s.view)return s;const r={selectedDate:c.payload,view:s.view};if(Array.isArray(s.selectedTime)){const fe=s.selectedTime[0];r.selectedDate&&fe&&xf(r.selectedDate,fe)}const m=s.view.mode,G=ph(c.payload||s.view.date,s.minDate,s.maxDate);return r.view={mode:m,date:G},Object.assign({},s,r)}case fo.SELECT_TIME:{const{date:r,index:m}=c.payload,D=s.selectedTime?[...s.selectedTime]:[];return D[m]=r,Object.assign({},s,{selectedTime:D})}case fo.SET_OPTIONS:{if(!s.view)return s;const r=c.payload,m=r.minMode?r.minMode:s.view.mode,G=ph(Ue(r.value)&&r.value||bt(r.value)&&Ue(r.value[0])&&r.value[0]||s.view.date,r.minDate,r.maxDate);return r.view={mode:m,date:G},r.value&&(bt(r.value)&&(r.selectedRange=r.value,r.selectedTime=r.value.map(fe=>fe)),r.value instanceof Date&&(r.selectedDate=r.value,r.selectedTime=[r.value])),Object.assign({},s,r)}case fo.SELECT_RANGE:{if(!s.view)return s;const r={selectedRange:c.payload,view:s.view};r.selectedRange?.forEach((fe,ot)=>{if(Array.isArray(s.selectedTime)){const Ut=s.selectedTime[ot];Ut&&xf(fe,Ut)}});const m=s.view.mode,G=ph(c.payload&&c.payload[0]||s.view.date,s.minDate,s.maxDate);return r.view={mode:m,date:G},Object.assign({},s,r)}case fo.SET_MIN_DATE:return Object.assign({},s,{minDate:c.payload});case fo.SET_MAX_DATE:return Object.assign({},s,{maxDate:c.payload});case fo.SET_IS_DISABLED:return Object.assign({},s,{isDisabled:c.payload});case fo.SET_DATE_CUSTOM_CLASSES:return Object.assign({},s,{dateCustomClasses:c.payload});case fo.SET_DATE_TOOLTIP_TEXTS:return Object.assign({},s,{dateTooltipTexts:c.payload});default:return s}}function rd(s){return{locale:s.locale,monthTitle:s.monthTitle,yearTitle:s.yearTitle,dayLabel:s.dayLabel,monthLabel:s.monthLabel,yearLabel:s.yearLabel,weekNumbers:s.weekNumbers}}function ph(s,c,r){const m=Array.isArray(s)?s[0]:s;return c&&Eo(c,m,"day")?c:r&&P(r,m,"day")?r:m}function Yh(s,c,r){return!(!r||!te(r,s,"day"))||c&&r&&c.getMonth()===r.getMonth()}let wd=(()=>{class s extends kn{constructor(){const r=new gd.t({type:"[datepicker] dispatcher init"});super(r,dm,new Dn(Pu,r,dm))}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"platform"})}}return s})(),mh=(()=>{class s{constructor(){this.onSelect=new e.bkB}selectFromRanges(r){this.onSelect.emit(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-custom-date-view"]],inputs:{ranges:"ranges",selectedRange:"selectedRange",customRangeLabel:"customRangeLabel"},outputs:{onSelect:"onSelect"},decls:2,vars:1,consts:[[1,"bs-datepicker-predefined-btns"],["type","button","class","btn",3,"selected","click",4,"ngFor","ngForOf"],["type","button",1,"btn",3,"click"]],template:function(m,D){1&m&&(e.j41(0,"div",0),e.DNE(1,vf,2,3,"button",1),e.k0s()),2&m&&(e.R7$(1),e.Y8G("ngForOf",D.ranges))},dependencies:[Qi.Sq],encapsulation:2,changeDetection:0})}}return s})();var Bc=function(s){return s[s.UP=0]="UP",s[s.DOWN=1]="DOWN",s}(Bc||{});let zu,Rf=(()=>{class s{static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-current-date"]],inputs:{title:"title"},decls:3,vars:1,consts:[[1,"current-timedate"]],template:function(m,D){1&m&&(e.j41(0,"div",0)(1,"span"),e.EFF(2),e.k0s()()),2&m&&(e.R7$(2),e.JRh(D.title))},encapsulation:2})}}return s})(),Nf=(()=>{class s{constructor(){this.ampm="ok",this.hours=0,this.minutes=0}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-timepicker"]],decls:16,vars:3,consts:[[1,"bs-timepicker-container"],[1,"bs-timepicker-controls"],["type","button",1,"bs-decrease"],["type","text","placeholder","00",3,"value"],["type","button",1,"bs-increase"],["type","button",1,"switch-time-format"],["src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAAKCAYAAABi8KSDAAABSElEQVQYV3XQPUvDUBQG4HNuagtVqc6KgouCv6GIuIntYBLB9hcIQpLStCAIV7DYmpTcRWcXqZio3Vwc/UCc/QEqfgyKGbr0I7nS1EiHeqYzPO/h5SD0jaxUZjmSLCB+OFb+UFINFwASAEAdpu9gaGXVyAHHFQBkHpKHc6a9dzECvADyY9sqlAMsK9W0jzxDXqeytr3mhQckxSji27TJJ5/rPmIpwJJq3HrtduriYOurv1a4i1p5HnhkG9OFymi0ReoO05cGwb+ayv4dysVygjeFmsP05f8wpZQ8fsdvfmuY9zjWSNqUtgYFVnOVReILYoBFzdQI5/GGFzNHhGbeZnopDGU29sZbscgldmC99w35VOATTycIMMcBXIfpSVGzZhA6C8hh00conln6VQ9TGgV32OEAKQC4DrBq7CJwd0ggR7Vq/rPrfgB+C3sGypY5DAAAAABJRU5ErkJggg==","alt",""]],template:function(m,D){1&m&&(e.j41(0,"div",0)(1,"div",1)(2,"button",2),e.EFF(3,"-"),e.k0s(),e.nrm(4,"input",3),e.j41(5,"button",4),e.EFF(6,"+"),e.k0s()(),e.j41(7,"div",1)(8,"button",2),e.EFF(9,"-"),e.k0s(),e.nrm(10,"input",3),e.j41(11,"button",4),e.EFF(12,"+"),e.k0s()(),e.j41(13,"button",5),e.EFF(14),e.nrm(15,"img",6),e.k0s()()),2&m&&(e.R7$(4),e.Y8G("value",D.hours),e.R7$(6),e.Y8G("value",D.minutes),e.R7$(4),e.SpI("",D.ampm," "))},encapsulation:2})}}return s})(),$u=(()=>{class s{static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-calendar-layout"]],ngContentSelectors:Ih,decls:6,vars:2,consts:[["title","hey there",4,"ngIf"],[1,"bs-datepicker-head"],[1,"bs-datepicker-body"],[4,"ngIf"],["title","hey there"]],template:function(m,D){1&m&&(e.NAR(xh),e.DNE(0,sh,1,0,"bs-current-date",0),e.j41(1,"div",1),e.SdG(2),e.k0s(),e.j41(3,"div",2),e.SdG(4,1),e.k0s(),e.DNE(5,Nu,1,0,"bs-timepicker",3)),2&m&&(e.Y8G("ngIf",!1),e.R7$(5),e.Y8G("ngIf",!1))},dependencies:[Qi.bT,Rf,Nf],encapsulation:2})}}return s})(),Gg=(()=>{class s{constructor(r,m,D){this._config=r,this._elRef=m,this._renderer=D,this.day={date:new Date,label:""}}ngOnInit(){this.day?.isToday&&this._config&&this._config.customTodayClass&&this._renderer.addClass(this._elRef.nativeElement,this._config.customTodayClass),"string"==typeof this.day?.customClasses&&this.day?.customClasses.split(" ").filter(r=>r).forEach(r=>{this._renderer.addClass(this._elRef.nativeElement,r)})}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Xl),e.rXU(e.aKT),e.rXU(e.sFG))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["","bsDatepickerDayDecorator",""]],hostVars:16,hostBindings:function(m,D){2&m&&e.AVh("disabled",D.day.isDisabled)("is-highlighted",D.day.isHovered)("is-other-month",D.day.isOtherMonth)("is-active-other-month",D.day.isOtherMonthHovered)("in-range",D.day.isInRange)("select-start",D.day.isSelectionStart)("select-end",D.day.isSelectionEnd)("selected",D.day.isSelected)},inputs:{day:"day"},attrs:oh,decls:1,vars:1,template:function(m,D){1&m&&e.EFF(0),2&m&&e.JRh(D.day&&D.day.label||"")},encapsulation:2,changeDetection:0})}}return s})(),gh=(()=>{class s{constructor(){this.isDisabled=!1,this.onNavigate=new e.bkB,this.onViewMode=new e.bkB}navTo(r){this.onNavigate.emit(r?Bc.DOWN:Bc.UP)}view(r){this.isDisabled||this.onViewMode.emit(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-datepicker-navigation-view"]],inputs:{calendar:"calendar",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode"},decls:12,vars:9,consts:[["type","button",1,"previous",3,"disabled","click"],[4,"ngIf"],["type","button",1,"current",3,"disabled","click"],["type","button",1,"next",3,"disabled","click"]],template:function(m,D){1&m&&(e.j41(0,"button",0),e.bIt("click",function(){return D.navTo(!0)}),e.j41(1,"span"),e.EFF(2,"\u2039"),e.k0s()(),e.DNE(3,Oh,5,2,"ng-container",1),e.EFF(4," \u200b "),e.j41(5,"button",2),e.bIt("click",function(){return D.view("year")}),e.j41(6,"span"),e.EFF(7),e.k0s()(),e.EFF(8," \u200b "),e.j41(9,"button",3),e.bIt("click",function(){return D.navTo(!1)}),e.j41(10,"span"),e.EFF(11,"\u203a"),e.k0s()()),2&m&&(e.xc7("visibility",D.calendar.hideLeftArrow?"hidden":"visible"),e.Y8G("disabled",D.calendar.disableLeftArrow),e.R7$(3),e.Y8G("ngIf",D.calendar&&D.calendar.monthTitle),e.R7$(2),e.Y8G("disabled",D.isDisabled),e.R7$(2),e.JRh(D.calendar.yearTitle),e.R7$(2),e.xc7("visibility",D.calendar.hideRightArrow?"hidden":"visible"),e.Y8G("disabled",D.calendar.disableRightArrow))},dependencies:[Qi.bT],encapsulation:2,changeDetection:0})}}return s})(),Yu=(()=>{class s{constructor(r){this._config=r,this.onNavigate=new e.bkB,this.onViewMode=new e.bkB,this.onSelect=new e.bkB,this.onHover=new e.bkB,this.onHoverWeek=new e.bkB,this.isiOS=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1,this._config.dateTooltipTexts&&this._config.dateTooltipTexts.length>0&&(this.isShowTooltip=!0)}navigateTo(r){this.onNavigate.emit({step:{month:Bc.DOWN===r?-1:1}})}changeViewMode(r){this.onViewMode.emit(r)}selectDay(r){this.onSelect.emit(r)}selectWeek(r){if(!this._config.selectWeek&&!this._config.selectWeekDateRange||0===r.days.length)return;if(this._config.selectWeek&&r.days[0]&&!r.days[0].isDisabled&&this._config.selectFromOtherMonth)return void this.onSelect.emit(r.days[0]);const m=r.days.find(D=>(this._config.selectFromOtherMonth||!D.isOtherMonth)&&!D.isDisabled);if(this.onSelect.emit(m),this._config.selectWeekDateRange){const G=r.days.slice(0).reverse().find(fe=>(this._config.selectFromOtherMonth||!fe.isOtherMonth)&&!fe.isDisabled);this.onSelect.emit(G)}}weekHoverHandler(r,m){(this._config.selectWeek||this._config.selectWeekDateRange)&&r.days.find(G=>(this._config.selectFromOtherMonth||!G.isOtherMonth)&&!G.isDisabled)&&(r.isHovered=m,this.isWeekHovered=m,this.onHoverWeek.emit(r))}hoverDay(r,m){this._config.selectFromOtherMonth&&r.isOtherMonth&&(r.isOtherMonthHovered=m),this._config.dateTooltipTexts&&(r.tooltipText="",this._config.dateTooltipTexts.forEach(D=>{Ft(D.date,r.date)&&(r.tooltipText=D.tooltipText)})),this.onHover.emit({cell:r,isHovered:m})}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Xl))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-days-calendar-view"]],inputs:{calendar:"calendar",options:"options",isDisabled:"isDisabled"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover",onHoverWeek:"onHoverWeek"},decls:9,vars:5,consts:[[3,"calendar","isDisabled","onNavigate","onViewMode"],["role","grid",1,"days","weeks"],[4,"ngIf"],["aria-label","weekday",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["aria-label","weekday"],["class","week",3,"active-week",4,"ngIf"],["role","gridcell",4,"ngFor","ngForOf"],[1,"week"],[3,"click",4,"ngIf"],[3,"click","mouseenter","mouseleave",4,"ngIf"],[3,"click"],[3,"click","mouseenter","mouseleave"],["role","gridcell"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","click",4,"ngIf"],["bsDatepickerDayDecorator","",3,"day","tooltip","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click","mouseenter","mouseleave"],["bsDatepickerDayDecorator","",3,"day","click"]],template:function(m,D){1&m&&(e.j41(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.bIt("onNavigate",function(fe){return D.navigateTo(fe)})("onViewMode",function(fe){return D.changeViewMode(fe)}),e.k0s(),e.j41(2,"table",1)(3,"thead")(4,"tr"),e.DNE(5,Rh,1,0,"th",2),e.DNE(6,Fu,2,1,"th",3),e.k0s()(),e.j41(7,"tbody"),e.DNE(8,ah,3,2,"tr",4),e.k0s()()()),2&m&&(e.R7$(1),e.Y8G("calendar",D.calendar)("isDisabled",!!D.isDisabled),e.R7$(4),e.Y8G("ngIf",D.options&&D.options.showWeekNumbers),e.R7$(1),e.Y8G("ngForOf",D.calendar.weekdays),e.R7$(2),e.Y8G("ngForOf",D.calendar.weeks))},dependencies:[Qi.Sq,Qi.bT,ih,$u,Gg,gh],encapsulation:2})}}return s})(),yp=(()=>{class s{constructor(){this.onNavigate=new e.bkB,this.onViewMode=new e.bkB,this.onSelect=new e.bkB,this.onHover=new e.bkB}navigateTo(r){this.onNavigate.emit({step:{year:Bc.DOWN===r?-1:1}})}viewMonth(r){this.onSelect.emit(r)}hoverMonth(r,m){this.onHover.emit({cell:r,isHovered:m})}changeViewMode(r){this.onViewMode.emit(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-month-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"months"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(m,D){1&m&&(e.j41(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.bIt("onNavigate",function(fe){return D.navigateTo(fe)})("onViewMode",function(fe){return D.changeViewMode(fe)}),e.k0s(),e.j41(2,"table",1)(3,"tbody"),e.DNE(4,ru,2,1,"tr",2),e.k0s()()()),2&m&&(e.R7$(1),e.Y8G("calendar",D.calendar),e.R7$(3),e.Y8G("ngForOf",null==D.calendar?null:D.calendar.months))},dependencies:[Qi.Sq,$u,gh],encapsulation:2})}}return s})(),Ff=(()=>{class s{constructor(){this.onNavigate=new e.bkB,this.onViewMode=new e.bkB,this.onSelect=new e.bkB,this.onHover=new e.bkB}navigateTo(r){this.onNavigate.emit({step:{year:(Bc.DOWN===r?-1:1)*fh}})}viewYear(r){this.onSelect.emit(r)}hoverYear(r,m){this.onHover.emit({cell:r,isHovered:m})}changeViewMode(r){this.onViewMode.emit(r)}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-years-calendar-view"]],inputs:{calendar:"calendar"},outputs:{onNavigate:"onNavigate",onViewMode:"onViewMode",onSelect:"onSelect",onHover:"onHover"},decls:5,vars:2,consts:[[3,"calendar","onNavigate","onViewMode"],["role","grid",1,"years"],[4,"ngFor","ngForOf"],["role","gridcell",3,"disabled","is-highlighted","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],["role","gridcell",3,"click","mouseenter","mouseleave"]],template:function(m,D){1&m&&(e.j41(0,"bs-calendar-layout")(1,"bs-datepicker-navigation-view",0),e.bIt("onNavigate",function(fe){return D.navigateTo(fe)})("onViewMode",function(fe){return D.changeViewMode(fe)}),e.k0s(),e.j41(2,"table",1)(3,"tbody"),e.DNE(4,Ah,2,1,"tr",2),e.k0s()()()),2&m&&(e.R7$(1),e.Y8G("calendar",D.calendar),e.R7$(3),e.Y8G("ngForOf",null==D.calendar?null:D.calendar.years))},dependencies:[Qi.Sq,$u,gh],encapsulation:2})}}return s})(),hm=(()=>{class s extends sd{set value(r){this._effects?.setValue(r)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(r,m,D,G,fe,ot,Ut){super(),this._config=m,this._store=D,this._element=G,this._actions=fe,this._positionService=Ut,this.valueChange=new e.bkB,this.animationState="void",this.isRangePicker=!1,this._subs=[],this._effects=ot,r.setStyle(G.nativeElement,"display","block"),r.setStyle(G.nativeElement,"position","absolute")}ngOnInit(){let r;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,Z.s)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.containerClass=this._config.containerClass,this.showTodayBtn=this._config.showTodayButton,this.todayBtnLbl=this._config.todayButtonLabel,this.todayPos=this._config.todayPosition,this.showClearBtn=this._config.showClearButton,this.clearBtnLbl=this._config.clearButtonLabel,this.clearPos=this._config.clearPosition,this.customRangeBtnLbl=this._config.customRangeButtonLabel,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(m=>m.selectedDate).subscribe(m=>{r=m,this.valueChange.emit(m)})),this._subs.push(this._store.select(m=>m.selectedTime).subscribe(m=>{!m[0]||!(m[0]instanceof Date)||m[0]===r||this.valueChange.emit(m[0])})),this._store.dispatch(this._actions.changeViewMode(this._config.startView))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(r=>{Array.isArray(r)&&r.length>=1&&this.startTimepicker?.writeValue(r[0])})),this.startTimepicker?.registerOnChange(r=>{this.timeSelectHandler(r,0)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(r,m){this._store.dispatch(this._actions.selectTime(r,m))}daySelectHandler(r){!r||(this.isOtherMonthsActive?r.isDisabled:r.isOtherMonth||r.isDisabled)||this._store.dispatch(this._actions.select(r.date))}monthSelectHandler(r){!r||r.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{month:nn(r.date),year:Vn(r.date)},viewMode:"day"}))}yearSelectHandler(r){!r||r.isDisabled||this._store.dispatch(this._actions.navigateTo({unit:{year:Vn(r.date)},viewMode:"month"}))}setToday(){this._store.dispatch(this._actions.select(new Date))}clearDate(){this._store.dispatch(this._actions.select(void 0))}ngOnDestroy(){for(const r of this._subs)r.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(e.sFG),e.rXU(Xl),e.rXU(wd),e.rXU(e.aKT),e.rXU(fo),e.rXU(Il),e.rXU(md))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-datepicker-container"]],viewQuery:function(m,D){if(1&m&&e.GBs(lp,5),2&m){let G;e.mGM(G=e.lsd())&&(D.startTimepicker=G.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(m,D){1&m&&e.bIt("click",function(fe){return D._stopPropagation(fe)}),2&m&&e.BMQ("disabled",D.isDatepickerDisabled)("readonly",D.isDatepickerReadonly)},features:[e.Jv_([wd,Il]),e.Vt3],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(m,D){1&m&&(e.DNE(0,fp,10,11,"div",0),e.nI1(1,"async")),2&m&&e.Y8G("ngIf",e.bMT(1,1,D.viewMode))},dependencies:[Qi.YU,Qi.Sq,Qi.bT,Qi.ux,Qi.e1,bi,mh,Yu,yp,Ff,Qi.Jj],encapsulation:2,data:{animation:[lu]}})}}return s})(),zh=(()=>{class s{get readonlyValue(){return this.isDisabled?"":null}constructor(r,m,D,G,fe){this._config=r,this._elementRef=m,this._renderer=D,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Ir.B,this.isDisabled=!1,this.bsValueChange=new e.bkB,this._subs=[],this._dateInputFormat$=new Ir.B,Object.assign(this,this._config),this._datepicker=fe.createLoader(m,G,D),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new gd.t(this.isOpen)}get isOpen(){return this._datepicker.isShown}set isOpen(r){this.isOpen$.next(r)}set bsValue(r){this._bsValue&&r&&this._bsValue.getTime()===r.getTime()||(!this._bsValue&&r&&!this._config.withTimepicker&&xf(r,new Date),r&&this.bsConfig?.initCurrentTime&&(r=Lc(r)),this.initPreviousValue(),this._bsValue=r,this.bsValueChange.emit(r))}get dateInputFormat$(){return this._dateInputFormat$}ngOnInit(){this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.setConfig(),this.initPreviousValue()}initPreviousValue(){zu=this._bsValue}ngOnChanges(r){r.bsConfig&&(r.bsConfig.currentValue?.initCurrentTime&&r.bsConfig.currentValue?.initCurrentTime!==r.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Lc(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._dateInputFormat$.next(this.bsConfig&&this.bsConfig.dateInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(r.minDate&&(this._datepickerRef.instance.minDate=this.minDate),r.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),r.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),r.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),r.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),r.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),r.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses),r.dateTooltipTexts&&(this._datepickerRef.instance.dateTooltipTexts=this.dateTooltipTexts))}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(r=>{this._datepickerRef&&(this._datepickerRef.instance.value=r)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.subscribe(r=>{this.initPreviousValue(),this.bsValue=r,!this.keepDatepickerModalOpened()&&this.hide()}))}keepDatepickerModalOpened(){return!!(zu&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return zu instanceof Date&&this._bsValue?.getDate()===zu?.getDate()&&this._bsValue?.getMonth()===zu?.getMonth()&&this._bsValue?.getFullYear()===zu?.getFullYear()}ngAfterViewInit(){this.isOpen$.pipe((0,h.p)(r=>r!==this.isOpen),(0,De.Q)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Xl,useValue:this._config}).attach(hm).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}hide(){this.isOpen&&this._datepicker.hide();for(const r of this._subs)r.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this._config.keepDatesOutOfRules?this._bsValue:Yd(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,dateTooltipTexts:this.dateTooltipTexts||this.bsConfig&&this.bsConfig.dateTooltipTexts,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,minMode:this.minMode||this.bsConfig&&this.bsConfig.minMode,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(r=>r.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Xl),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(cr))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["","bsDatepicker",""]],hostVars:1,hostBindings:function(m,D){2&m&&e.BMQ("readonly",D.readonlyValue)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",minMode:"minMode",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled",dateCustomClasses:"dateCustomClasses",dateTooltipTexts:"dateTooltipTexts",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDatepicker"],features:[e.OA$]})}}return s})(),pm=(()=>{class s extends sd{set value(r){this._effects?.setRangeValue(r)}get isDatePickerDisabled(){return!!this._config.isDisabled}get isDatepickerDisabled(){return this.isDatePickerDisabled?"":null}get isDatepickerReadonly(){return this.isDatePickerDisabled?"":null}constructor(r,m,D,G,fe,ot,Ut){super(),this._config=m,this._store=D,this._element=G,this._actions=fe,this._positionService=Ut,this.valueChange=new e.bkB,this.animationState="void",this._rangeStack=[],this.chosenRange=[],this._subs=[],this.isRangePicker=!0,this._effects=ot,this.customRanges=this._config.ranges||[],this.customRangeBtnLbl=this._config.customRangeButtonLabel,r.setStyle(G.nativeElement,"display","block"),r.setStyle(G.nativeElement,"position","absolute")}ngOnInit(){let r;this._positionService.setOptions({modifiers:{flip:{enabled:this._config.adaptivePosition},preventOverflow:{enabled:this._config.adaptivePosition}},allowedPositions:this._config.allowedPositions}),this._positionService.event$?.pipe((0,Z.s)(1)).subscribe(()=>{this._positionService.disable(),this.animationState=this._config.isAnimated?this.isTopPosition?"animated-up":"animated-down":"unanimated"}),this.containerClass=this._config.containerClass,this.isOtherMonthsActive=this._config.selectFromOtherMonth,this.withTimepicker=this._config.withTimepicker,this._effects?.init(this._store).setOptions(this._config).setBindings(this).setEventHandlers(this).registerDatepickerSideEffects(),this._subs.push(this._store.select(m=>m.selectedRange).subscribe(m=>{r=m,this.valueChange.emit(m),this.chosenRange=m||[]})),this._subs.push(this._store.select(m=>m.selectedTime).subscribe(m=>{!m[0]||!m[1]||!(m[0]instanceof Date)||!(m[1]instanceof Date)||r&&m[0]===r[0]&&m[1]===r[1]||(this.valueChange.emit(m),this.chosenRange=m||[])}))}ngAfterViewInit(){this.selectedTimeSub.add(this.selectedTime?.subscribe(r=>{Array.isArray(r)&&r.length>=2&&(this.startTimepicker?.writeValue(r[0]),this.endTimepicker?.writeValue(r[1]))})),this.startTimepicker?.registerOnChange(r=>{this.timeSelectHandler(r,0)}),this.endTimepicker?.registerOnChange(r=>{this.timeSelectHandler(r,1)})}get isTopPosition(){return this._element.nativeElement.classList.contains("top")}positionServiceEnable(){this._positionService.enable()}timeSelectHandler(r,m){this._store.dispatch(this._actions.selectTime(r,m))}daySelectHandler(r){!r||(this.isOtherMonthsActive?r.isDisabled:r.isOtherMonth||r.isDisabled)||this.rangesProcessing(r)}monthSelectHandler(r){if(r&&!r.isDisabled){if(r.isSelected=!0,"month"!==this._config.minMode){if(r.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{month:nn(r.date),year:Vn(r.date)},viewMode:"day"}))}this.rangesProcessing(r)}}yearSelectHandler(r){if(r&&!r.isDisabled){if(r.isSelected=!0,"year"!==this._config.minMode){if(r.isDisabled)return;return void this._store.dispatch(this._actions.navigateTo({unit:{year:Vn(r.date)},viewMode:"month"}))}this.rangesProcessing(r)}}rangesProcessing(r){1===this._rangeStack.length&&(this._rangeStack=r.date>=this._rangeStack[0]?[this._rangeStack[0],r.date]:[r.date]),this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(r.date),0===this._rangeStack.length&&(this._rangeStack=[r.date],this._config.maxDateRange&&this.setMaxDateRangeOnCalendar(r.date)),this._store.dispatch(this._actions.selectRange(this._rangeStack)),2===this._rangeStack.length&&(this._rangeStack=[])}ngOnDestroy(){for(const r of this._subs)r.unsubscribe();this.selectedTimeSub.unsubscribe(),this._effects?.destroy()}setRangeOnCalendar(r){r&&(this._rangeStack=r.value instanceof Date?[r.value]:r.value),this._store.dispatch(this._actions.selectRange(this._rangeStack))}setMaxDateRangeOnCalendar(r){let m=new Date(r);if(this._config.maxDate){const D=this._config.maxDate.getTime(),G=r.getTime()+864e5*(this._config.maxDateRange||0);m=G>D?new Date(this._config.maxDate):new Date(G)}else m.setDate(r.getDate()+(this._config.maxDateRange||0));this._effects?.setMaxDate(m)}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(e.sFG),e.rXU(Xl),e.rXU(wd),e.rXU(e.aKT),e.rXU(fo),e.rXU(Il),e.rXU(md))}}static{this.\u0275cmp=e.VBU({type:s,selectors:[["bs-daterangepicker-container"]],viewQuery:function(m,D){if(1&m&&(e.GBs(lp,5),e.GBs(Tt,5)),2&m){let G;e.mGM(G=e.lsd())&&(D.startTimepicker=G.first),e.mGM(G=e.lsd())&&(D.endTimepicker=G.first)}},hostAttrs:["role","dialog","aria-label","calendar",1,"bottom"],hostVars:2,hostBindings:function(m,D){1&m&&e.bIt("click",function(fe){return D._stopPropagation(fe)}),2&m&&e.BMQ("disabled",D.isDatepickerDisabled)("readonly",D.isDatepickerReadonly)},features:[e.Jv_([wd,Il]),e.Vt3],decls:2,vars:3,consts:[["class","bs-datepicker",3,"ngClass",4,"ngIf"],[1,"bs-datepicker",3,"ngClass"],[1,"bs-datepicker-container"],["role","application",1,"bs-calendar-container",3,"ngSwitch"],[4,"ngSwitchCase"],["class","bs-media-container",4,"ngSwitchCase"],["class","bs-datepicker-buttons",4,"ngIf"],["class","bs-datepicker-custom-range",4,"ngIf"],[1,"bs-media-container"],[3,"bs-datepicker-multiple","calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect",4,"ngFor","ngForOf"],["class","bs-timepicker-in-datepicker-container",4,"ngIf"],[3,"calendar","isDisabled","options","onNavigate","onViewMode","onHover","onHoverWeek","onSelect"],[1,"bs-timepicker-in-datepicker-container"],[3,"disabled"],["startTP",""],[3,"disabled",4,"ngIf"],["endTP",""],[3,"bs-datepicker-multiple","calendar","onNavigate","onViewMode","onHover","onSelect",4,"ngFor","ngForOf"],[3,"calendar","onNavigate","onViewMode","onHover","onSelect"],[1,"bs-datepicker-buttons"],["type","button",1,"btn","btn-success"],["type","button",1,"btn","btn-default"],["class","btn-today-wrapper",3,"today-left","today-right","today-center",4,"ngIf"],["class","btn-clear-wrapper",3,"clear-left","clear-right","clear-center",4,"ngIf"],[1,"btn-today-wrapper"],[1,"btn","btn-success",3,"click"],[1,"btn-clear-wrapper"],[1,"bs-datepicker-custom-range"],[3,"selectedRange","ranges","customRangeLabel","onSelect"]],template:function(m,D){1&m&&(e.DNE(0,Rs,10,11,"div",0),e.nI1(1,"async")),2&m&&e.Y8G("ngIf",e.bMT(1,1,D.viewMode))},dependencies:[Qi.YU,Qi.Sq,Qi.bT,Qi.ux,Qi.e1,bi,mh,Yu,yp,Ff,Qi.Jj],encapsulation:2,data:{animation:[lu]}})}}return s})();const mm={provide:Pd.kq,useExisting:(0,e.Rfq)(()=>_h),multi:!0},wp={provide:Pd.cz,useExisting:(0,e.Rfq)(()=>_h),multi:!0};let zd,_h=(()=>{class s{constructor(r,m,D,G,fe){this._picker=r,this._localeService=m,this._renderer=D,this._elRef=G,this.changeDetection=fe,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ka.yU}ngOnInit(){const r=m=>{this._setInputValue(m),this._value!==m&&(this._value=m,this._onChange(m),this._onTouched()),this.changeDetection.markForCheck()};this._picker._bsValue&&r(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(r)),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.dateInputFormat$.pipe((0,we.F)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(r){(13===r.keyCode||"Enter"===r.code)&&this.hide()}_setInputValue(r){const m=r?Uo(r,this._picker._config.dateInputFormat,this._localeService.currentLocale):"";this._renderer.setProperty(this._elRef.nativeElement,"value",m)}onChange(r){this.writeValue(r.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(r){const m=r.value;if(null==m||""===m)return null;if(Me(m)){if(!Ue(m))return{bsDate:{invalid:m}};if(this._picker&&this._picker.minDate&&P(m,this._picker.minDate,"date"))return this.writeValue(this._picker.minDate),{bsDate:{minDate:this._picker.minDate}};if(this._picker&&this._picker.maxDate&&Eo(m,this._picker.maxDate,"date"))return this.writeValue(this._picker.maxDate),{bsDate:{maxDate:this._picker.maxDate}}}return null}registerOnValidatorChange(r){this._validatorChange=r}writeValue(r){if(r){const m=this._localeService.currentLocale;if(!Mi(m))throw new Error(`Locale "${m}" is not defined, please add it with "defineLocale(...)"`);this._value=Jr(r,this._picker._config.dateInputFormat,this._localeService.currentLocale),this._picker._config.useUtc&&(this._value=tl(this._value))}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(r){this._picker.isDisabled=r,r?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(zh,1),e.rXU(yd),e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(e.gRc))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["input","bsDatepicker",""]],hostBindings:function(m,D){1&m&&e.bIt("change",function(fe){return D.onChange(fe)})("keyup.esc",function(){return D.hide()})("keydown",function(fe){return D.onKeydownEvent(fe)})("blur",function(){return D.onBlur()})},features:[e.Jv_([mm,wp])]})}}return s})(),qh=(()=>{class s extends Xl{constructor(){super(...arguments),this.displayMonths=2}static{this.\u0275fac=function(){let r;return function(D){return(r||(r=e.xGo(s)))(D||s)}}()}static{this.\u0275prov=e.jDH({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})(),Pf=(()=>{class s{get isOpen(){return this._datepicker.isShown}set isOpen(r){this.isOpen$.next(r)}set bsValue(r){this._bsValue!==r&&(r&&this.bsConfig?.initCurrentTime&&(r=Vu(r)),this.initPreviousValue(),this._bsValue=r,this.bsValueChange.emit(r))}get isDatepickerReadonly(){return this.isDisabled?"":null}get rangeInputFormat$(){return this._rangeInputFormat$}constructor(r,m,D,G,fe){this._config=r,this._elementRef=m,this._renderer=D,this.placement="bottom",this.triggers="click",this.outsideClick=!0,this.container="body",this.outsideEsc=!0,this.isDestroy$=new Ir.B,this.isDisabled=!1,this.bsValueChange=new e.bkB,this._subs=[],this._rangeInputFormat$=new Ir.B,this._datepicker=fe.createLoader(m,G,D),Object.assign(this,r),this.onShown=this._datepicker.onShown,this.onHidden=this._datepicker.onHidden,this.isOpen$=new gd.t(this.isOpen)}ngOnInit(){this.isDestroy$=new Ir.B,this._datepicker.listen({outsideClick:this.outsideClick,outsideEsc:this.outsideEsc,triggers:this.triggers,show:()=>this.show()}),this.initPreviousValue(),this.setConfig()}ngOnChanges(r){r.bsConfig&&(r.bsConfig.currentValue?.initCurrentTime&&r.bsConfig.currentValue?.initCurrentTime!==r.bsConfig.previousValue?.initCurrentTime&&this._bsValue&&(this.initPreviousValue(),this._bsValue=Vu(this._bsValue),this.bsValueChange.emit(this._bsValue)),this.setConfig(),this._rangeInputFormat$.next(r.bsConfig.currentValue&&r.bsConfig.currentValue.rangeInputFormat)),this._datepickerRef&&this._datepickerRef.instance&&(r.minDate&&(this._datepickerRef.instance.minDate=this.minDate),r.maxDate&&(this._datepickerRef.instance.maxDate=this.maxDate),r.datesDisabled&&(this._datepickerRef.instance.datesDisabled=this.datesDisabled),r.datesEnabled&&(this._datepickerRef.instance.datesEnabled=this.datesEnabled),r.daysDisabled&&(this._datepickerRef.instance.daysDisabled=this.daysDisabled),r.isDisabled&&(this._datepickerRef.instance.isDisabled=this.isDisabled),r.dateCustomClasses&&(this._datepickerRef.instance.dateCustomClasses=this.dateCustomClasses))}ngAfterViewInit(){this.isOpen$.pipe((0,h.p)(r=>r!==this.isOpen),(0,De.Q)(this.isDestroy$)).subscribe(()=>this.toggle())}show(){this._datepicker.isShown||(this.setConfig(),this._datepickerRef=this._datepicker.provide({provide:Xl,useValue:this._config}).attach(pm).to(this.container).position({attachment:this.placement}).show({placement:this.placement}),this.initSubscribes())}initSubscribes(){this._subs.push(this.bsValueChange.subscribe(r=>{this._datepickerRef&&(this._datepickerRef.instance.value=r)})),this._datepickerRef&&this._subs.push(this._datepickerRef.instance.valueChange.pipe((0,h.p)(r=>r&&r[0]&&!!r[1])).subscribe(r=>{this.initPreviousValue(),this.bsValue=r,!this.keepDatepickerModalOpened()&&this.hide()}))}initPreviousValue(){zd=this._bsValue}keepDatepickerModalOpened(){return!!(zd&&this.bsConfig?.keepDatepickerOpened&&this._config.withTimepicker)&&this.isDateSame()}isDateSame(){return this._bsValue?.[0]?.getDate()===zd?.[0]?.getDate()&&this._bsValue?.[0]?.getMonth()===zd?.[0]?.getMonth()&&this._bsValue?.[0]?.getFullYear()===zd?.[0]?.getFullYear()&&this._bsValue?.[1]?.getDate()===zd?.[1]?.getDate()&&this._bsValue?.[1]?.getMonth()===zd?.[1]?.getMonth()&&this._bsValue?.[1]?.getFullYear()===zd?.[1]?.getFullYear()}setConfig(){this._config=Object.assign({},this._config,this.bsConfig,{value:this.bsConfig?.keepDatesOutOfRules?this._bsValue:Yd(this._bsValue,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),isDisabled:this.isDisabled,minDate:this.minDate||this.bsConfig&&this.bsConfig.minDate,maxDate:this.maxDate||this.bsConfig&&this.bsConfig.maxDate,daysDisabled:this.daysDisabled||this.bsConfig&&this.bsConfig.daysDisabled,dateCustomClasses:this.dateCustomClasses||this.bsConfig&&this.bsConfig.dateCustomClasses,datesDisabled:this.datesDisabled||this.bsConfig&&this.bsConfig.datesDisabled,datesEnabled:this.datesEnabled||this.bsConfig&&this.bsConfig.datesEnabled,ranges:Pc(this.bsConfig&&this.bsConfig.ranges,this.maxDate||this.bsConfig&&this.bsConfig.maxDate),maxDateRange:this.bsConfig&&this.bsConfig.maxDateRange,initCurrentTime:this.bsConfig?.initCurrentTime,keepDatepickerOpened:this.bsConfig?.keepDatepickerOpened,keepDatesOutOfRules:this.bsConfig?.keepDatesOutOfRules})}hide(){this.isOpen&&this._datepicker.hide();for(const r of this._subs)r.unsubscribe();this._config.returnFocusToInput&&this._renderer.selectRootElement(this._elementRef.nativeElement).focus()}toggle(){if(this.isOpen)return this.hide();this.show()}unsubscribeSubscriptions(){this._subs?.length&&(this._subs.map(r=>r.unsubscribe()),this._subs.length=0)}ngOnDestroy(){this._datepicker.dispose(),this.isOpen$.next(!1),this.isDestroy$&&(this.isDestroy$.next(null),this.isDestroy$.complete()),this.unsubscribeSubscriptions()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(qh),e.rXU(e.aKT),e.rXU(e.sFG),e.rXU(e.c1b),e.rXU(cr))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["","bsDaterangepicker",""]],hostVars:1,hostBindings:function(m,D){2&m&&e.BMQ("readonly",D.isDatepickerReadonly)},inputs:{placement:"placement",triggers:"triggers",outsideClick:"outsideClick",container:"container",outsideEsc:"outsideEsc",isOpen:"isOpen",bsValue:"bsValue",bsConfig:"bsConfig",isDisabled:"isDisabled",minDate:"minDate",maxDate:"maxDate",dateCustomClasses:"dateCustomClasses",daysDisabled:"daysDisabled",datesDisabled:"datesDisabled",datesEnabled:"datesEnabled"},outputs:{onShown:"onShown",onHidden:"onHidden",bsValueChange:"bsValueChange"},exportAs:["bsDaterangepicker"],features:[e.OA$]})}}return s})();const gm={provide:Pd.kq,useExisting:(0,e.Rfq)(()=>Mp),multi:!0},Dp={provide:Pd.cz,useExisting:(0,e.Rfq)(()=>Mp),multi:!0};let Mp=(()=>{class s{constructor(r,m,D,G,fe){this._picker=r,this._localeService=m,this._renderer=D,this._elRef=G,this.changeDetection=fe,this._onChange=Function.prototype,this._onTouched=Function.prototype,this._validatorChange=Function.prototype,this._subs=new Ka.yU}ngOnInit(){this._picker._bsValue&&(m=>{this._setInputValue(m),this._value!==m&&(this._value=m,this._onChange(m),this._onTouched()),this.changeDetection.markForCheck()})(this._picker._bsValue),this._subs.add(this._picker.bsValueChange.subscribe(m=>{this._setInputValue(m),this._value!==m&&(this._value=m,this._onChange(m),this._onTouched()),this.changeDetection.markForCheck()})),this._subs.add(this._localeService.localeChange.subscribe(()=>{this._setInputValue(this._value)})),this._subs.add(this._picker.rangeInputFormat$.pipe((0,we.F)()).subscribe(()=>{this._setInputValue(this._value)}))}ngOnDestroy(){this._subs.unsubscribe()}onKeydownEvent(r){(13===r.keyCode||"Enter"===r.code)&&this.hide()}_setInputValue(r){let m="";if(r){const D=r[0]?Uo(r[0],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"",G=r[1]?Uo(r[1],this._picker._config.rangeInputFormat,this._localeService.currentLocale):"";m=D&&G?D+this._picker._config.rangeSeparator+G:""}this._renderer.setProperty(this._elRef.nativeElement,"value",m)}onChange(r){this.writeValue(r.target.value),this._onChange(this._value),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus(),this._onTouched()}validate(r){let m=r.value;const D=[];if(null==m||!bt(m))return null;m=m.slice().sort((ot,Ut)=>ot.getTime()-Ut.getTime());const G=Ue(m[0]),fe=Ue(m[1]);return G?fe?(this._picker&&this._picker.minDate&&P(m[0],this._picker.minDate,"date")&&(m[0]=this._picker.minDate,D.push({bsDate:{minDate:this._picker.minDate}})),this._picker&&this._picker.maxDate&&Eo(m[1],this._picker.maxDate,"date")&&(m[1]=this._picker.maxDate,D.push({bsDate:{maxDate:this._picker.maxDate}})),D.length>0?(this.writeValue(m),D):null):{bsDate:{invalid:m[1]}}:{bsDate:{invalid:m[0]}}}registerOnValidatorChange(r){this._validatorChange=r}writeValue(r){if(r){const m=this._localeService.currentLocale;if(!Mi(m))throw new Error(`Locale "${m}" is not defined, please add it with "defineLocale(...)"`);let G=[];if("string"==typeof r){const fe=this._picker._config.rangeSeparator.trim();G=r.replace(/[^-]/g,"").length>1?r.split(this._picker._config.rangeSeparator):r.split(fe.length>0?fe:this._picker._config.rangeSeparator).map(ot=>ot.trim())}Array.isArray(r)&&(G=r),this._value=G.map(fe=>this._picker._config.useUtc?tl(Jr(fe,this._picker._config.rangeInputFormat,this._localeService.currentLocale)):Jr(fe,this._picker._config.rangeInputFormat,this._localeService.currentLocale)).map(fe=>isNaN(fe.valueOf())?void 0:fe)}else this._value=void 0;this._picker.bsValue=this._value}setDisabledState(r){this._picker.isDisabled=r,r?this._renderer.setAttribute(this._elRef.nativeElement,"disabled","disabled"):this._renderer.removeAttribute(this._elRef.nativeElement,"disabled")}registerOnChange(r){this._onChange=r}registerOnTouched(r){this._onTouched=r}onBlur(){this._onTouched()}hide(){this._picker.hide(),this._renderer.selectRootElement(this._elRef.nativeElement).blur(),this._picker._config.returnFocusToInput&&this._renderer.selectRootElement(this._elRef.nativeElement).focus()}static{this.\u0275fac=function(m){return new(m||s)(e.rXU(Pf,1),e.rXU(yd),e.rXU(e.sFG),e.rXU(e.aKT),e.rXU(e.gRc))}}static{this.\u0275dir=e.FsC({type:s,selectors:[["input","bsDaterangepicker",""]],hostBindings:function(m,D){1&m&&e.bIt("change",function(fe){return D.onChange(fe)})("keyup.esc",function(){return D.hide()})("keydown",function(fe){return D.onKeydownEvent(fe)})("blur",function(){return D.onBlur()})},features:[e.Jv_([gm,Dp])]})}}return s})(),_m=(()=>{class s{static forRoot(){return{ngModule:s,providers:[cr,md,wd,fo,Il,yd,qa]}}static{this.\u0275fac=function(m){return new(m||s)}}static{this.\u0275mod=e.$C({type:s})}static{this.\u0275inj=e.G2t({imports:[Qi.MD,kh,ss]})}}return s})()},8466:(pn,ct,N)=>{N.d(ct,{i9:()=>be,Qs:()=>K});var e=N(467),h=N(7705);const ne={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},Z=new h.nKC("config",{providedIn:"root",factory:()=>({modules:ne})});var Ie=N(177),Oe=N(345),Ne=N(9030),Me=N(4402),Ge=N(9350),Ue=N(7707);function yt(ge,je){const le="object"==typeof je;return new Promise((ce,Le)=>{const ue=new Ue.Ms({next:Ye=>{ce(Ye),ue.unsubscribe()},error:Le,complete:()=>{le?ce(je.defaultValue):Le(new Ge.G)}});ge.subscribe(ue)})}var _t=N(8359),bt=N(3726),ft=N(4668),mt=N(1397),en=N(152),vt=N(9417);function At(ge,je){1&ge&&h.nrm(0,"pre",3)}function me(ge,je){if(1&ge&&h.DNE(0,At,1,0,"pre",2),2&ge){const le=h.XpG(),ce=h.sdS(6);h.Y8G("ngIf",le.preserve)("ngIfElse",ce)}}function at(ge,je){1&ge&&h.nrm(0,"pre",3)}function rt(ge,je){if(1&ge&&h.DNE(0,at,1,0,"pre",2),2&ge){const le=h.XpG(),ce=h.sdS(6);h.Y8G("ngIf",le.preserve)("ngIfElse",ce)}}function ht(ge,je){1&ge&&h.nrm(0,"div",3)}const St=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],Mt=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function cn(ge,je){1&ge&&h.nrm(0,"div",1)}function En(ge,je){1&ge&&h.nrm(0,"pre",1)}const dn=(ge,je)=>ge||je||"html";let Wt=(()=>{class ge{constructor(le,ce){var Le=this;this.config=ce,this.quill$=(0,Ne.v)((0,e.A)(function*(){if(!Le.Quill){const ue=Le.document.addEventListener;Le.document.addEventListener=Le.document.__zone_symbol__addEventListener||Le.document.addEventListener;const Ye=yield N.e(58).then(N.t.bind(N,7436,19));Le.document.addEventListener=ue,Le.Quill=Ye.default?Ye.default:Ye}return Le.config.customOptions?.forEach(ue=>{const Ye=Le.Quill.import(ue.import);Ye.whitelist=ue.whitelist,Le.Quill.register(Ye,!0,Le.config.suppressGlobalRegisterWarning)}),yield Le.registerCustomModules(Le.Quill,Le.config.customModules,Le.config.suppressGlobalRegisterWarning)})).pipe((0,ft.t)({bufferSize:1,refCount:!0})),this.document=le.get(Ie.qQ),this.config||(this.config={modules:ne})}getQuill(){return this.quill$}registerCustomModules(le,ce,Le){return(0,e.A)(function*(){if(Array.isArray(ce))for(let{implementation:ue,path:Ye}of ce)(0,Me.A)(ue)&&(ue=yield yt(ue)),le.register(Ye,ue,Le);return le})()}static{this.\u0275fac=function(ce){return new(ce||ge)(h.KVO(h.zZn),h.KVO(Z,8))}}static{this.\u0275prov=h.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}}return ge})(),ze=(()=>{class ge{constructor(){this.required=!1,this.customToolbarPosition="top",this.styles=null,this.strict=!0,this.customOptions=[],this.customModules=[],this.preserveWhitespace=!1,this.trimOnValidation=!1,this.compareValues=!1,this.filterNull=!1,this.defaultEmptyValue=null,this.onEditorCreated=new h.bkB,this.onEditorChanged=new h.bkB,this.onContentChanged=new h.bkB,this.onSelectionChanged=new h.bkB,this.onFocus=new h.bkB,this.onBlur=new h.bkB,this.onNativeFocus=new h.bkB,this.onNativeBlur=new h.bkB,this.disabled=!1,this.preserve=!1,this.toolbarPosition="top",this.subscription=null,this.quillSubscription=null,this.elementRef=(0,h.WQX)(h.aKT),this.document=(0,h.WQX)(Ie.qQ),this.cd=(0,h.WQX)(h.gRc),this.domSanitizer=(0,h.WQX)(Oe.up),this.platformId=(0,h.WQX)(h.Agw),this.renderer=(0,h.WQX)(h.sFG),this.zone=(0,h.WQX)(h.SKi),this.service=(0,h.WQX)(Wt),this.valueGetter=(le,ce)=>{let Le=ce.querySelector(".ql-editor").innerHTML;("<p><br></p>"===Le||"<div><br></div>"===Le)&&(Le=this.defaultEmptyValue);let ue=Le;const Ye=dn(this.format,this.service.config.format);if("text"===Ye)ue=le.getText();else if("object"===Ye)ue=le.getContents();else if("json"===Ye)try{ue=JSON.stringify(le.getContents())}catch{ue=le.getText()}return ue},this.valueSetter=(le,ce)=>{const Le=dn(this.format,this.service.config.format);if("html"===Le)return([!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1)&&(ce=this.domSanitizer.sanitize(h.WPN.HTML,ce)),le.clipboard.convert(ce);if("json"===Le)try{return JSON.parse(ce)}catch{return[{insert:ce}]}return ce},this.selectionChangeHandler=(le,ce,Le)=>{const ue=this.trackChanges||this.service.config.trackChanges,Ye=!le&&!!this.onModelTouched&&("user"===Le||ue&&"all"===ue);!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!Ye||this.zone.run(()=>{null===le?this.onBlur.emit({editor:this.quillEditor,source:Le}):null===ce&&this.onFocus.emit({editor:this.quillEditor,source:Le}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:ce,range:le,source:Le}),Ye&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(le,ce,Le)=>{const ue=this.quillEditor.getText(),Ye=this.quillEditor.getContents();let L=this.editorElem.querySelector(".ql-editor").innerHTML;("<p><br></p>"===L||"<div><br></div>"===L)&&(L=this.defaultEmptyValue);const z=this.trackChanges||this.service.config.trackChanges,Be=("user"===Le||z&&"all"===z)&&!!this.onModelChange;!this.onContentChanged.observed&&!Be||this.zone.run(()=>{Be&&this.onModelChange(this.valueGetter(this.quillEditor,this.editorElem)),this.onContentChanged.emit({content:Ye,delta:le,editor:this.quillEditor,html:L,oldDelta:ce,source:Le,text:ue}),this.cd.markForCheck()})},this.editorChangeHandler=(le,ce,Le,ue)=>{if(this.onEditorChanged.observed)if("text-change"===le){const Ye=this.quillEditor.getText(),L=this.quillEditor.getContents();let z=this.editorElem.querySelector(".ql-editor").innerHTML;("<p><br></p>"===z||"<div><br></div>"===z)&&(z=this.defaultEmptyValue),this.zone.run(()=>{this.onEditorChanged.emit({content:L,delta:ce,editor:this.quillEditor,event:le,html:z,oldDelta:Le,source:ue,text:Ye}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:le,oldRange:Le,range:ce,source:ue}),this.cd.markForCheck()})}}static normalizeClassNames(le){return le.trim().split(" ").reduce((Le,ue)=>{const Ye=ue.trim();return Ye&&Le.push(Ye),Le},[])}ngOnInit(){this.preserve=this.preserveWhitespace,this.toolbarPosition=this.customToolbarPosition}ngAfterViewInit(){(0,Ie.Vy)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,mt.Z)(le=>{const ce=[this.service.registerCustomModules(le,this.customModules)],Le=this.beforeRender??this.service.config.beforeRender;return Le&&ce.push(Le()),Promise.all(ce).then(()=>le)})).subscribe(le=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");const ce=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),Le=Object.assign({},this.modules||this.service.config.modules);ce?Le.toolbar=ce:void 0===Le.toolbar&&(Le.toolbar=ne.toolbar);let ue=void 0!==this.placeholder?this.placeholder:this.service.config.placeholder;void 0===ue&&(ue="Insert text here ..."),this.styles&&Object.keys(this.styles).forEach(Vt=>{this.renderer.setStyle(this.editorElem,Vt,this.styles[Vt])}),this.classes&&this.addClasses(this.classes),this.customOptions.forEach(Vt=>{const bn=le.import(Vt.import);bn.whitelist=Vt.whitelist,le.register(bn,!0)});let Ye=this.bounds&&"self"===this.bounds?this.editorElem:this.bounds;Ye||(Ye=this.service.config.bounds?this.service.config.bounds:this.document.body);let L=this.debug;!L&&!1!==L&&this.service.config.debug&&(L=this.service.config.debug);let z=this.readOnly;!z&&!1!==this.readOnly&&(z=void 0!==this.service.config.readOnly&&this.service.config.readOnly);let Be=this.defaultEmptyValue;this.service.config.hasOwnProperty("defaultEmptyValue")&&(Be=this.service.config.defaultEmptyValue);let pt=this.scrollingContainer;!pt&&null!==this.scrollingContainer&&(pt=null===this.service.config.scrollingContainer||this.service.config.scrollingContainer?this.service.config.scrollingContainer:null);let dt=this.formats;if(!dt&&void 0===dt&&(dt=this.service.config.formats?[...this.service.config.formats]:null===this.service.config.formats?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new le(this.editorElem,{bounds:Ye,debug:L,formats:dt,modules:Le,placeholder:ue,readOnly:z,defaultEmptyValue:Be,scrollingContainer:pt,strict:this.strict,theme:this.theme||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed&&(this.quillEditor.scroll.domNode.addEventListener("blur",()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"})),this.quillEditor.getModule("toolbar").container.addEventListener("mousedown",Vt=>Vt.preventDefault())),this.onNativeFocus.observed&&this.quillEditor.scroll.domNode.addEventListener("focus",()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder){const bn=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");bn?.dataset&&(bn.dataset.link=this.linkPlaceholder)}}),this.content){if("text"===dn(this.format,this.service.config.format))this.quillEditor.setText(this.content,"silent");else{const bn=this.valueSetter(this.quillEditor,this.content);this.quillEditor.setContents(bn,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),(this.onEditorCreated.observed||this.onValidatorChanged)&&requestAnimationFrame(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor),this.onEditorCreated.complete()})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(le){if(this.quillEditor){if(le.readOnly&&this.quillEditor.enable(!le.readOnly.currentValue),le.placeholder&&(this.quillEditor.root.dataset.placeholder=le.placeholder.currentValue),le.defaultEmptyValue&&(this.quillEditor.root.dataset.defaultEmptyValue=le.defaultEmptyValue.currentValue),le.styles){const ce=le.styles.currentValue,Le=le.styles.previousValue;Le&&Object.keys(Le).forEach(ue=>{this.renderer.removeStyle(this.editorElem,ue)}),ce&&Object.keys(ce).forEach(ue=>{this.renderer.setStyle(this.editorElem,ue,this.styles[ue])})}if(le.classes){const ce=le.classes.currentValue,Le=le.classes.previousValue;Le&&this.removeClasses(Le),ce&&this.addClasses(ce)}le.debounceTime&&this.addQuillEventListeners()}}addClasses(le){ge.normalizeClassNames(le).forEach(ce=>{this.renderer.addClass(this.editorElem,ce)})}removeClasses(le){ge.normalizeClassNames(le).forEach(ce=>{this.renderer.removeClass(this.editorElem,ce)})}writeValue(le){if(this.filterNull&&null===le||(this.content=le,!this.quillEditor))return;const ce=dn(this.format,this.service.config.format),Le=this.valueSetter(this.quillEditor,le);if(this.compareValues){const ue=this.quillEditor.getContents();if(JSON.stringify(ue)===JSON.stringify(Le))return}le?"text"===ce?this.quillEditor.setText(le):this.quillEditor.setContents(Le):this.quillEditor.setText("")}setDisabledState(le=this.disabled){this.disabled=le,this.quillEditor&&(le?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(le){this.onModelChange=le}registerOnTouched(le){this.onModelTouched=le}registerOnValidatorChange(le){this.onValidatorChanged=le}validate(){if(!this.quillEditor)return null;const le={};let ce=!0;const Le=this.quillEditor.getText(),ue=this.trimOnValidation?Le.trim().length:1===Le.length&&0===Le.trim().length?0:Le.length-1,Ye=this.quillEditor.getContents().ops,L=Ye&&1===Ye.length&&["\n",""].includes(Ye[0].insert);return this.minLength&&ue&&ue<this.minLength&&(le.minLengthError={given:ue,minLength:this.minLength},ce=!1),this.maxLength&&ue>this.maxLength&&(le.maxLengthError={given:ue,maxLength:this.maxLength},ce=!1),this.required&&!ue&&L&&(le.requiredError={empty:!0},ce=!1),ce?null:le}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new _t.yU,this.subscription.add((0,bt.R)(this.quillEditor,"selection-change").subscribe(([Le,ue,Ye])=>{this.selectionChangeHandler(Le,ue,Ye)}));let le=(0,bt.R)(this.quillEditor,"text-change"),ce=(0,bt.R)(this.quillEditor,"editor-change");"number"==typeof this.debounceTime&&(le=le.pipe((0,en.B)(this.debounceTime)),ce=ce.pipe((0,en.B)(this.debounceTime))),this.subscription.add(le.subscribe(([Le,ue,Ye])=>{this.textChangeHandler(Le,ue,Ye)})),this.subscription.add(ce.subscribe(([Le,ue,Ye,L])=>{this.editorChangeHandler(Le,ue,Ye,L)}))})}dispose(){null!==this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}static{this.\u0275fac=function(ce){return new(ce||ge)}}static{this.\u0275dir=h.FsC({type:ge,inputs:{format:"format",theme:"theme",modules:"modules",debug:"debug",readOnly:"readOnly",placeholder:"placeholder",maxLength:"maxLength",minLength:"minLength",required:"required",formats:"formats",customToolbarPosition:"customToolbarPosition",sanitize:"sanitize",beforeRender:"beforeRender",styles:"styles",strict:"strict",scrollingContainer:"scrollingContainer",bounds:"bounds",customOptions:"customOptions",customModules:"customModules",trackChanges:"trackChanges",preserveWhitespace:"preserveWhitespace",classes:"classes",trimOnValidation:"trimOnValidation",linkPlaceholder:"linkPlaceholder",compareValues:"compareValues",filterNull:"filterNull",debounceTime:"debounceTime",defaultEmptyValue:"defaultEmptyValue",valueGetter:"valueGetter",valueSetter:"valueSetter"},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[h.OA$]})}}return ge})(),be=(()=>{class ge extends ze{static{this.\u0275fac=function(){let le;return function(Le){return(le||(le=h.xGo(ge)))(Le||ge)}}()}static{this.\u0275cmp=h.VBU({type:ge,selectors:[["quill-editor"]],standalone:!0,features:[h.Jv_([{multi:!0,provide:vt.kq,useExisting:(0,h.Rfq)(()=>ge)},{multi:!0,provide:vt.cz,useExisting:(0,h.Rfq)(()=>ge)}]),h.Vt3,h.aNF],ngContentSelectors:Mt,decls:7,vars:2,consts:[[3,"ngIf"],["noPreserveTpl",""],["quill-editor-element","",4,"ngIf","ngIfElse"],["quill-editor-element",""]],template:function(ce,Le){1&ce&&(h.NAR(St),h.DNE(0,me,1,2,"ng-template",0),h.SdG(1),h.SdG(2,1),h.SdG(3,2),h.DNE(4,rt,1,2,"ng-template",0),h.DNE(5,ht,1,0,"ng-template",null,1,h.C5r)),2&ce&&(h.Y8G("ngIf","top"!==Le.toolbarPosition),h.R7$(4),h.Y8G("ngIf","top"===Le.toolbarPosition))},dependencies:[Ie.MD,Ie.bT],styles:["[_nghost-%COMP%]{display:inline-block}"]})}}return ge})(),Se=(()=>{class ge{constructor(le,ce){this.sanitizer=le,this.service=ce,this.content="",this.innerHTML="",this.themeClass="ql-snow"}ngOnChanges(le){if(le.theme?this.themeClass=`ql-${le.theme.currentValue||(this.service.config.theme?this.service.config.theme:"snow")} ngx-quill-view-html`:this.theme||(this.themeClass=`ql-${this.service.config.theme?this.service.config.theme:"snow"} ngx-quill-view-html`),le.content){const ce=le.content.currentValue,Le=[!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1;this.innerHTML=Le?ce:this.sanitizer.bypassSecurityTrustHtml(ce)}}static{this.\u0275fac=function(ce){return new(ce||ge)(h.rXU(Oe.up),h.rXU(Wt))}}static{this.\u0275cmp=h.VBU({type:ge,selectors:[["quill-view-html"]],inputs:{content:"content",theme:"theme",sanitize:"sanitize"},standalone:!0,features:[h.OA$,h.aNF],decls:2,vars:2,consts:[[1,"ql-container",3,"ngClass"],[1,"ql-editor",3,"innerHTML"]],template:function(ce,Le){1&ce&&(h.j41(0,"div",0),h.nrm(1,"div",1),h.k0s()),2&ce&&(h.Y8G("ngClass",Le.themeClass),h.R7$(1),h.Y8G("innerHTML",Le.innerHTML,h.npT))},dependencies:[Ie.MD,Ie.YU],styles:[".ql-container.ngx-quill-view-html{border:0}\n"],encapsulation:2})}}return ge})(),Nt=(()=>{class ge{constructor(le,ce,Le,ue,Ye,L){this.elementRef=le,this.renderer=ce,this.zone=Le,this.service=ue,this.domSanitizer=Ye,this.platformId=L,this.strict=!0,this.customModules=[],this.customOptions=[],this.preserveWhitespace=!1,this.onEditorCreated=new h.bkB,this.preserve=!1,this.quillSubscription=null,this.valueSetter=(z,Be)=>{const pt=dn(this.format,this.service.config.format);let dt=Be;if("text"===pt)z.setText(dt);else{if("html"===pt)([!0,!1].includes(this.sanitize)?this.sanitize:this.service.config.sanitize||!1)&&(Be=this.domSanitizer.sanitize(h.WPN.HTML,Be)),dt=z.clipboard.convert(Be);else if("json"===pt)try{dt=JSON.parse(Be)}catch{dt=[{insert:Be}]}z.setContents(dt)}}}ngOnInit(){this.preserve=this.preserveWhitespace}ngOnChanges(le){this.quillEditor&&le.content&&this.valueSetter(this.quillEditor,le.content.currentValue)}ngAfterViewInit(){(0,Ie.Vy)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,mt.Z)(le=>{const ce=[this.service.registerCustomModules(le,this.customModules)],Le=this.beforeRender??this.service.config.beforeRender;return Le&&ce.push(Le()),Promise.all(ce).then(()=>le)})).subscribe(le=>{const ce=Object.assign({},this.modules||this.service.config.modules);ce.toolbar=!1,this.customOptions.forEach(L=>{const z=le.import(L.import);z.whitelist=L.whitelist,le.register(z,!0)});let Le=this.debug;!Le&&!1!==Le&&this.service.config.debug&&(Le=this.service.config.debug);let ue=this.formats;!ue&&void 0===ue&&(ue=this.service.config.formats?Object.assign({},this.service.config.formats):null===this.service.config.formats?null:void 0);const Ye=this.theme||(this.service.config.theme?this.service.config.theme:"snow");this.editorElem=this.elementRef.nativeElement.querySelector("[quill-view-element]"),this.zone.runOutsideAngular(()=>{this.quillEditor=new le(this.editorElem,{debug:Le,formats:ue,modules:ce,readOnly:!0,strict:this.strict,theme:Ye})}),this.renderer.addClass(this.editorElem,"ngx-quill-view"),this.content&&this.valueSetter(this.quillEditor,this.content),this.onEditorCreated.observers.length&&requestAnimationFrame(()=>{this.onEditorCreated.emit(this.quillEditor),this.onEditorCreated.complete()})}))}ngOnDestroy(){this.quillSubscription?.unsubscribe(),this.quillSubscription=null}static{this.\u0275fac=function(ce){return new(ce||ge)(h.rXU(h.aKT),h.rXU(h.sFG),h.rXU(h.SKi),h.rXU(Wt),h.rXU(Oe.up),h.rXU(h.Agw))}}static{this.\u0275cmp=h.VBU({type:ge,selectors:[["quill-view"]],inputs:{format:"format",theme:"theme",modules:"modules",debug:"debug",formats:"formats",sanitize:"sanitize",beforeRender:"beforeRender",strict:"strict",content:"content",customModules:"customModules",customOptions:"customOptions",preserveWhitespace:"preserveWhitespace"},outputs:{onEditorCreated:"onEditorCreated"},standalone:!0,features:[h.OA$,h.aNF],decls:2,vars:2,consts:[["quill-view-element","",4,"ngIf"],["quill-view-element",""]],template:function(ce,Le){1&ce&&(h.DNE(0,cn,1,0,"div",0),h.DNE(1,En,1,0,"pre",0)),2&ce&&(h.Y8G("ngIf",!Le.preserve),h.R7$(1),h.Y8G("ngIf",Le.preserve))},dependencies:[Ie.MD,Ie.bT],styles:[".ql-container.ngx-quill-view{border:0}\n"],encapsulation:2})}}return ge})(),K=(()=>{class ge{static forRoot(le){return{ngModule:ge,providers:[{provide:Z,useValue:le}]}}static{this.\u0275fac=function(ce){return new(ce||ge)}}static{this.\u0275mod=h.$C({type:ge})}static{this.\u0275inj=h.G2t({imports:[be,Nt,Se]})}}return ge})()},467:(pn,ct,N)=>{function e(ne,Z,De,we,Ie,Oe,Ne){try{var Me=ne[Oe](Ne),Ge=Me.value}catch(Ue){return void De(Ue)}Me.done?Z(Ge):Promise.resolve(Ge).then(we,Ie)}function h(ne){return function(){var Z=this,De=arguments;return new Promise(function(we,Ie){var Oe=ne.apply(Z,De);function Ne(Ge){e(Oe,we,Ie,Ne,Me,"next",Ge)}function Me(Ge){e(Oe,we,Ie,Ne,Me,"throw",Ge)}Ne(void 0)})}}N.d(ct,{A:()=>h})},1635:(pn,ct,N)=>{function De(le,ce,Le,ue){var z,Ye=arguments.length,L=Ye<3?ce:null===ue?ue=Object.getOwnPropertyDescriptor(ce,Le):ue;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)L=Reflect.decorate(le,ce,Le,ue);else for(var Be=le.length-1;Be>=0;Be--)(z=le[Be])&&(L=(Ye<3?z(L):Ye>3?z(ce,Le,L):z(ce,Le))||L);return Ye>3&&L&&Object.defineProperty(ce,Le,L),L}function Ge(le,ce){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(le,ce)}function Ue(le,ce,Le,ue){return new(Le||(Le=Promise))(function(L,z){function Be(Vt){try{dt(ue.next(Vt))}catch(bn){z(bn)}}function pt(Vt){try{dt(ue.throw(Vt))}catch(bn){z(bn)}}function dt(Vt){Vt.done?L(Vt.value):function Ye(L){return L instanceof Le?L:new Le(function(z){z(L)})}(Vt.value).then(Be,pt)}dt((ue=ue.apply(le,ce||[])).next())})}function me(le){return this instanceof me?(this.v=le,this):new me(le)}function at(le,ce,Le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ye,ue=Le.apply(le,ce||[]),L=[];return Ye=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),Be("next"),Be("throw"),Be("return",function z(nn){return function(Vn){return Promise.resolve(Vn).then(nn,bn)}}),Ye[Symbol.asyncIterator]=function(){return this},Ye;function Be(nn,Vn){ue[nn]&&(Ye[nn]=function(oi){return new Promise(function(Ci,xt){L.push([nn,oi,Ci,xt])>1||pt(nn,oi)})},Vn&&(Ye[nn]=Vn(Ye[nn])))}function pt(nn,Vn){try{!function dt(nn){nn.value instanceof me?Promise.resolve(nn.value.v).then(Vt,bn):jn(L[0][2],nn)}(ue[nn](Vn))}catch(oi){jn(L[0][3],oi)}}function Vt(nn){pt("next",nn)}function bn(nn){pt("throw",nn)}function jn(nn,Vn){nn(Vn),L.shift(),L.length&&pt(L[0][0],L[0][1])}}function ht(le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Le,ce=le[Symbol.asyncIterator];return ce?ce.call(le):(le=function ft(le){var ce="function"==typeof Symbol&&Symbol.iterator,Le=ce&&le[ce],ue=0;if(Le)return Le.call(le);if(le&&"number"==typeof le.length)return{next:function(){return le&&ue>=le.length&&(le=void 0),{value:le&&le[ue++],done:!le}}};throw new TypeError(ce?"Object is not iterable.":"Symbol.iterator is not defined.")}(le),Le={},ue("next"),ue("throw"),ue("return"),Le[Symbol.asyncIterator]=function(){return this},Le);function ue(L){Le[L]=le[L]&&function(z){return new Promise(function(Be,pt){!function Ye(L,z,Be,pt){Promise.resolve(pt).then(function(dt){L({value:dt,done:Be})},z)}(Be,pt,(z=le[L](z)).done,z.value)})}}}N.d(ct,{AQ:()=>at,Cg:()=>De,N3:()=>me,Sn:()=>Ge,sH:()=>Ue,xN:()=>ht}),"function"==typeof SuppressedError&&SuppressedError}},pn=>{pn(pn.s=3624)}]);