From b182dac3d82c308816eb64fd6fdbacc4888f082a Mon Sep 17 00:00:00 2001 From: Manuel Rojas Date: Fri, 17 Mar 2023 06:27:38 -0600 Subject: [PATCH] dotCMS/core#24361 Blocking suggestions and placeholder --- dotCMS/src/main/webapp/html/dotcms-block-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotCMS/src/main/webapp/html/dotcms-block-editor.js b/dotCMS/src/main/webapp/html/dotcms-block-editor.js index 344cd0f5f7cb..1e7cb3525687 100644 --- a/dotCMS/src/main/webapp/html/dotcms-block-editor.js +++ b/dotCMS/src/main/webapp/html/dotcms-block-editor.js @@ -1 +1 @@ -var runtime=function(s){"use strict";var v,C=Object.prototype,p=C.hasOwnProperty,G="function"==typeof Symbol?Symbol:{},w=G.iterator||"@@iterator",$=G.asyncIterator||"@@asyncIterator",_=G.toStringTag||"@@toStringTag";function h(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{h({},"")}catch{h=function(t,e,o){return t[e]=o}}function M(r,t,e,o){var i=Object.create((t&&t.prototype instanceof k?t:k).prototype),a=new I(o||[]);return i._invoke=function B(r,t,e){var o=R;return function(i,a){if(o===Y)throw new Error("Generator is already running");if(o===L){if("throw"===i)throw a;return W()}for(e.method=i,e.arg=a;;){var u=e.delegate;if(u){var c=D(u,e);if(c){if(c===l)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===R)throw o=L,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=Y;var f=O(r,t,e);if("normal"===f.type){if(o=e.done?L:z,f.arg===l)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(o=L,e.method="throw",e.arg=f.arg)}}}(r,e,a),i}function O(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(o){return{type:"throw",arg:o}}}s.wrap=M;var R="suspendedStart",z="suspendedYield",Y="executing",L="completed",l={};function k(){}function b(){}function d(){}var T={};h(T,w,function(){return this});var N=Object.getPrototypeOf,S=N&&N(N(P([])));S&&S!==C&&p.call(S,w)&&(T=S);var g=d.prototype=k.prototype=Object.create(T);function q(r){["next","throw","return"].forEach(function(t){h(r,t,function(e){return this._invoke(t,e)})})}function E(r,t){function e(i,a,u,c){var f=O(r[i],r,a);if("throw"!==f.type){var A=f.arg,m=A.value;return m&&"object"==typeof m&&p.call(m,"__await")?t.resolve(m.__await).then(function(y){e("next",y,u,c)},function(y){e("throw",y,u,c)}):t.resolve(m).then(function(y){A.value=y,u(A)},function(y){return e("throw",y,u,c)})}c(f.arg)}var o;this._invoke=function n(i,a){function u(){return new t(function(c,f){e(i,a,c,f)})}return o=o?o.then(u,u):u()}}function D(r,t){var e=r.iterator[t.method];if(e===v){if(t.delegate=null,"throw"===t.method){if(r.iterator.return&&(t.method="return",t.arg=v,D(r,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var o=O(e,r.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,l;var n=o.arg;return n?n.done?(t[r.resultName]=n.value,t.next=r.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,l):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function H(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function j(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function I(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(H,this),this.reset(!0)}function P(r){if(r){var t=r[w];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var e=-1,o=function n(){for(;++e=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=p.call(n,"catchLoc"),u=p.call(n,"finallyLoc");if(a&&u){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&p.call(o,"finallyLoc")&&this.prev=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===r)return this.complete(e.completion,e.afterLoc),j(e),l}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===r){var o=e.completion;if("throw"===o.type){var n=o.arg;j(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(r,t,e){return this.delegate={iterator:P(r),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=v),l}},s}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}(()=>{"use strict";var e,_={},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return _[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=_,e=[],a.O=(n,r,l,f)=>{if(!r){var s=1/0;for(t=0;t=f)&&Object.keys(a.O).every(b=>a.O[b](r[c]))?r.splice(c--,1):(u=!1,f0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,l,f]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};a.O.j=l=>0===e[l];var n=(l,f)=>{var c,o,[t,s,u]=f,d=0;if(t.some(h=>0!==e[h])){for(c in s)a.o(s,c)&&(a.m[c]=s[c]);if(u)var v=u(a)}for(l&&l(f);d{"use strict";ge(583),ge(757)},757:()=>{!function(X,oe){"use strict";function ge(){var e=Ue.splice(0,Ue.length);for(F=0;e.length;)e.shift().call(null,e.shift())}function ye(e,r){for(var i=0,h=e.length;i1)&&tt(this)}}}),x(o,pe,{value:function(p){-1>0,de="__"+se+dt,be="addEventListener",Le="attached",ce="Callback",me="detached",te="extends",pe="attributeChanged"+ce,vt=Le+ce,rt="connected"+ce,mt="disconnected"+ce,ze="created"+ce,kt=me+ce,ot="ADDITION",pt="REMOVAL",Oe="DOMAttrModified",bt="DOMContentLoaded",Et="DOMSubtreeModified",qe="<",st="=",Mt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,wt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],He=[],We=[],le="",De=A.documentElement,Ee=He.indexOf||function(e){for(var r=this.length;r--&&this[r]!==e;);return r},it=ne.prototype,Pe=it.hasOwnProperty,at=it.isPrototypeOf,Re=ne.defineProperty,Ne=[],Xe=ne.getOwnPropertyDescriptor,Y=ne.getOwnPropertyNames,Ct=ne.getPrototypeOf,Ye=ne.setPrototypeOf,Se=!!ne.__proto__,$e="__dreCEv1",Me=X.customElements,t=!/^force/.test(oe.type)&&!!(Me&&Me.define&&Me.get&&Me.whenDefined),a=ne.create||ne,u=X.Map||function(){var e,r=[],i=[];return{get:function(h){return i[Ee.call(r,h)]},set:function(h,s){(e=Ee.call(r,h))<0?i[r.push(h)-1]=s:i[e]=s}}},c=X.Promise||function(e){function r(o){for(h=!0;i.length;)i.shift()(o)}var i=[],h=!1,s={catch:function(){return s},then:function(o){return i.push(o),h&&setTimeout(r,1),s}};return e(r),s},f=!1,m=a(null),E=a(null),v=new u,C=function(e){return e.toLowerCase()},w=ne.create||function e(r){return r?(e.prototype=r,new e):this},b=Ye||(Se?function(e,r){return e.__proto__=r,e}:Y&&Xe?function(){function e(r,i){for(var h,s=Y(i),o=0,l=s.length;o
",new H(function(e,r){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var i=(Ce=Xe(P,"innerHTML"))&&Ce.set;i&&Re(P,"innerHTML",{set:function(h){for(;this.lastChild;)this.removeChild(this.lastChild);i.call(this,h)}})}r.disconnect(),Ce=null}).observe(Ce,{childList:!0,subtree:!0}),Ce.innerHTML=""),ue||(Ye||Se?(we=function(e,r){at.call(r,e)||Fe(e,r)},ae=Fe):(we=function(e,r){e[de]||(e[de]=ne(!0),Fe(e,r))},ae=we),G?(I=!1,e=Xe(P,be),r=e.value,i=function(o){var l=new CustomEvent(Oe,{bubbles:!0});l.attrName=o,l.prevValue=R.call(this,o),l.newValue=null,l[pt]=l.attrChange=2,V.call(this,o),$.call(this,l)},h=function(o,l){var d=Q.call(this,o),p=d&&R.call(this,o),y=new CustomEvent(Oe,{bubbles:!0});K.call(this,o,l),y.attrName=o,y.prevValue=d?p:null,y.newValue=l,d?y.MODIFICATION=y.attrChange=1:y[ot]=y.attrChange=0,$.call(this,y)},s=function(o){var l,d=o.currentTarget,p=d[de],y=o.propertyName;p.hasOwnProperty(y)&&(p=p[y],(l=new CustomEvent(Oe,{bubbles:!0})).attrName=p.name,l.prevValue=p.value||null,l.newValue=p.value=d[y]||null,null==l.prevValue?l[ot]=l.attrChange=0:l.MODIFICATION=l.attrChange=1,$.call(d,l))},e.value=function(o,l,d){o===Oe&&this[pe]&&this.setAttribute!==h&&(this[de]={className:{name:"class",value:this.className}},this.setAttribute=h,this.removeAttribute=i,r.call(this,"propertychange",s)),r.call(this,o,l,d)},Re(P,be,e)):H||(De[be](Oe,Te),De.setAttribute(de,1),De.removeAttribute(de),I&&(je=function(e){var r,i,h,s=this;if(s===e.target){for(h in r=s[de],s[de]=i=nt(s),i){if(!(h in r))return Be(0,s,h,r[h],i[h],ot);if(i[h]!==r[h])return Be(1,s,h,r[h],i[h],"MODIFICATION")}for(h in r)if(!(h in i))return Be(2,s,h,r[h],i[h],pt)}},Be=function(e,r,i,h,s,o){var l={attrChange:e,currentTarget:r,attrName:i,prevValue:h,newValue:s};l[o]=e,Qe(l)},nt=function(e){for(var r,i,h={},s=e.attributes,o=0,l=s.length;o$");if(r[te]="a",(e.prototype=w(S.prototype)).constructor=e,X.customElements.define(i,e,r),!h.test(A.createElement("a",{is:i}).outerHTML)||!h.test((new e).outerHTML))throw r}(function e(){return Reflect.construct(S,[],e)},{},"document-register-element-a"+dt)}catch{ft()}if(!oe.noBuiltIn)try{if(N.call(A,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{C=function(r){return{is:r.toLowerCase()}}}}(window)},583:()=>{"use strict";!function(t){const a=t.performance;function u(I){a&&a.mark&&a.mark(I)}function c(I,k){a&&a.measure&&a.measure(I,k)}u("Zone");const f=t.__Zone_symbol_prefix||"__zone_symbol__";function m(I){return f+I}const E=!0===t[m("forceDuplicateZoneCheck")];if(t.Zone){if(E||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let v=(()=>{class I{constructor(n,e){this._parent=n,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new w(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=I.current;for(;n.parent;)n=n.parent;return n}static get current(){return F.zone}static get currentTask(){return ue}static __load_patch(n,e,r=!1){if(re.hasOwnProperty(n)){if(!r&&E)throw Error("Already loaded patch: "+n)}else if(!t["__Zone_disable_"+n]){const i="Zone:"+n;u(i),re[n]=e(t,I,Te),c(i,i)}}get parent(){return this._parent}get name(){return this._name}get(n){const e=this.getZoneWith(n);if(e)return e._properties[n]}getZoneWith(n){let e=this;for(;e;){if(e._properties.hasOwnProperty(n))return e;e=e._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,e){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const r=this._zoneDelegate.intercept(this,n,e),i=this;return function(){return i.runGuarded(r,this,arguments,e)}}run(n,e,r,i){F={parent:F,zone:this};try{return this._zoneDelegate.invoke(this,n,e,r,i)}finally{F=F.parent}}runGuarded(n,e=null,r,i){F={parent:F,zone:this};try{try{return this._zoneDelegate.invoke(this,n,e,r,i)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{F=F.parent}}runTask(n,e,r){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");if(n.state===B&&(n.type===O||n.type===j))return;const i=n.state!=Q;i&&n._transitionTo(Q,R),n.runCount++;const h=ue;ue=n,F={parent:F,zone:this};try{n.type==j&&n.data&&!n.data.isPeriodic&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,n,e,r)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{n.state!==B&&n.state!==K&&(n.type==O||n.data&&n.data.isPeriodic?i&&n._transitionTo(R,Q):(n.runCount=0,this._updateTaskCount(n,-1),i&&n._transitionTo(B,Q,B))),F=F.parent,ue=h}}scheduleTask(n){if(n.zone&&n.zone!==this){let r=this;for(;r;){if(r===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);r=r.parent}}n._transitionTo($,B);const e=[];n._zoneDelegates=e,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(r){throw n._transitionTo(K,$,B),this._zoneDelegate.handleError(this,r),r}return n._zoneDelegates===e&&this._updateTaskCount(n,1),n.state==$&&n._transitionTo(R,$),n}scheduleMicroTask(n,e,r,i){return this.scheduleTask(new b(N,n,e,r,i,void 0))}scheduleMacroTask(n,e,r,i,h){return this.scheduleTask(new b(j,n,e,r,i,h))}scheduleEventTask(n,e,r,i,h){return this.scheduleTask(new b(O,n,e,r,i,h))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");n._transitionTo(V,R,Q);try{this._zoneDelegate.cancelTask(this,n)}catch(e){throw n._transitionTo(K,V),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(n,-1),n._transitionTo(B,V),n.runCount=0,n}_updateTaskCount(n,e){const r=n._zoneDelegates;-1==e&&(n._zoneDelegates=null);for(let i=0;iI.hasTask(n,e),onScheduleTask:(I,k,n,e)=>I.scheduleTask(n,e),onInvokeTask:(I,k,n,e,r,i)=>I.invokeTask(n,e,r,i),onCancelTask:(I,k,n,e)=>I.cancelTask(n,e)};class w{constructor(k,n,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=k,this._parentDelegate=n,this._forkZS=e&&(e&&e.onFork?e:n._forkZS),this._forkDlgt=e&&(e.onFork?n:n._forkDlgt),this._forkCurrZone=e&&(e.onFork?this.zone:n._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:n._interceptZS),this._interceptDlgt=e&&(e.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:n._invokeZS),this._invokeDlgt=e&&(e.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:n._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:n._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:n._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:n._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=e&&e.onHasTask;(r||n&&n._hasTaskZS)&&(this._hasTaskZS=r?e:C,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=k,e.onScheduleTask||(this._scheduleTaskZS=C,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),e.onInvokeTask||(this._invokeTaskZS=C,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),e.onCancelTask||(this._cancelTaskZS=C,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}fork(k,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,k,n):new v(k,n)}intercept(k,n,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,k,n,e):n}invoke(k,n,e,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,k,n,e,r,i):n.apply(e,r)}handleError(k,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,k,n)}scheduleTask(k,n){let e=n;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,k,n),e||(e=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=N)throw new Error("Task is missing scheduleFn.");T(n)}return e}invokeTask(k,n,e,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,k,n,e,r):n.callback.apply(e,r)}cancelTask(k,n){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,k,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");e=n.cancelFn(n)}return e}hasTask(k,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,k,n)}catch(e){this.handleError(k,e)}}_updateTaskCount(k,n){const e=this._taskCounts,r=e[k],i=e[k]=r+n;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:k})}}class b{constructor(k,n,e,r,i,h){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=k,this.source=n,this.data=r,this.scheduleFn=i,this.cancelFn=h,!e)throw new Error("callback is not defined");this.callback=e;const s=this;this.invoke=k===O&&r&&r.useG?b.invokeTask:function(){return b.invokeTask.call(t,s,this,arguments)}}static invokeTask(k,n,e){k||(k=this),fe++;try{return k.runCount++,k.zone.runTask(k,n,e)}finally{1==fe&&Z(),fe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,$)}_transitionTo(k,n,e){if(this._state!==n&&this._state!==e)throw new Error(`${this.type} '${this.source}': can not transition to '${k}', expecting state '${n}'${e?" or '"+e+"'":""}, was '${this._state}'.`);this._state=k,k==B&&(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 H=m("setTimeout"),S=m("Promise"),P=m("then");let L,G=[],x=!1;function T(I){if(0===fe&&0===G.length)if(L||t[S]&&(L=t[S].resolve(0)),L){let k=L[P];k||(k=L.then),k.call(L,Z)}else t[H](Z,0);I&&G.push(I)}function Z(){if(!x){for(x=!0;G.length;){const I=G;G=[];for(let k=0;kF,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:T,showUncaughtError:()=>!v[m("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};let F={parent:null,zone:new v(null,null)},ue=null,fe=0;function W(){}c("Zone","Zone"),t.Zone=v}(typeof window<"u"&&window||typeof self<"u"&&self||global);const oe=Object.getOwnPropertyDescriptor,ge=Object.defineProperty,ye=Object.getPrototypeOf,_t=Object.create,Ve=Array.prototype.slice,Ie="addEventListener",Je="removeEventListener",Qe=Zone.__symbol__(Ie),et=Zone.__symbol__(Je),he="true",ve="false",Ze=Zone.__symbol__("");function Fe(t,a){return Zone.current.wrap(t,a)}function lt(t,a,u,c,f){return Zone.current.scheduleMacroTask(t,a,u,c,f)}const U=Zone.__symbol__,Ae=typeof window<"u",ke=Ae?window:void 0,J=Ae&&ke||"object"==typeof self&&self||global,yt=[null];function tt(t,a){for(let u=t.length-1;u>=0;u--)"function"==typeof t[u]&&(t[u]=Fe(t[u],a+"_"+u));return t}function ft(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const A=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ne=!("nw"in J)&&typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process),ht=!ne&&!A&&!(!Ae||!ke.HTMLElement),Ue=typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process)&&!A&&!(!Ae||!ke.HTMLElement),je={},Be=function(t){if(!(t=t||J.event))return;let a=je[t.type];a||(a=je[t.type]=U("ON_PROPERTY"+t.type));const u=this||t.target||J,c=u[a];let f;if(ht&&u===ke&&"error"===t.type){const m=t;f=c&&c.call(this,m.message,m.filename,m.lineno,m.colno,m.error),!0===f&&t.preventDefault()}else f=c&&c.apply(this,arguments),null!=f&&!f&&t.preventDefault();return f};function nt(t,a,u){let c=oe(t,a);if(!c&&u&&oe(u,a)&&(c={enumerable:!0,configurable:!0}),!c||!c.configurable)return;const f=U("on"+a+"patched");if(t.hasOwnProperty(f)&&t[f])return;delete c.writable,delete c.value;const m=c.get,E=c.set,v=a.substr(2);let C=je[v];C||(C=je[v]=U("ON_PROPERTY"+v)),c.set=function(w){let b=this;!b&&t===J&&(b=J),b&&(b[C]&&b.removeEventListener(v,Be),E&&E.apply(b,yt),"function"==typeof w?(b[C]=w,b.addEventListener(v,Be,!1)):b[C]=null)},c.get=function(){let w=this;if(!w&&t===J&&(w=J),!w)return null;const b=w[C];if(b)return b;if(m){let H=m&&m.call(this);if(H)return c.set.call(this,H),"function"==typeof w.removeAttribute&&w.removeAttribute(a),H}return null},ge(t,a,c),t[f]=!0}function Ge(t,a,u){if(a)for(let c=0;cfunction(E,v){const C=u(E,v);return C.cbIdx>=0&&"function"==typeof v[C.cbIdx]?lt(C.name,v[C.cbIdx],C,f):m.apply(E,v)})}function se(t,a){t[U("OriginalDelegate")]=a}let dt=!1,de=!1;function Le(){if(dt)return de;dt=!0;try{const t=ke.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(de=!0)}catch{}return de}Zone.__load_patch("ZoneAwarePromise",(t,a,u)=>{const c=Object.getOwnPropertyDescriptor,f=Object.defineProperty,E=u.symbol,v=[],C=!0===t[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],w=E("Promise"),b=E("then");u.onUnhandledError=s=>{if(u.showUncaughtError()){const o=s&&s.rejection;o?console.error("Unhandled Promise rejection:",o instanceof Error?o.message:o,"; Zone:",s.zone.name,"; Task:",s.task&&s.task.source,"; Value:",o,o instanceof Error?o.stack:void 0):console.error(s)}},u.microtaskDrainDone=()=>{for(;v.length;){const s=v.shift();try{s.zone.runGuarded(()=>{throw s.throwOriginal?s.rejection:s})}catch(o){P(o)}}};const S=E("unhandledPromiseRejectionHandler");function P(s){u.onUnhandledError(s);try{const o=a[S];"function"==typeof o&&o.call(this,s)}catch{}}function G(s){return s&&s.then}function x(s){return s}function L(s){return n.reject(s)}const T=E("state"),Z=E("value"),z=E("finally"),B=E("parentPromiseValue"),$=E("parentPromiseState"),Q=null,V=!0,K=!1;function j(s,o){return l=>{try{F(s,o,l)}catch(d){F(s,!1,d)}}}const Te=E("currentTaskTrace");function F(s,o,l){const d=function(){let s=!1;return function(l){return function(){s||(s=!0,l.apply(null,arguments))}}}();if(s===l)throw new TypeError("Promise resolved with itself");if(s[T]===Q){let p=null;try{("object"==typeof l||"function"==typeof l)&&(p=l&&l.then)}catch(y){return d(()=>{F(s,!1,y)})(),s}if(o!==K&&l instanceof n&&l.hasOwnProperty(T)&&l.hasOwnProperty(Z)&&l[T]!==Q)fe(l),F(s,l[T],l[Z]);else if(o!==K&&"function"==typeof p)try{p.call(l,d(j(s,o)),d(j(s,!1)))}catch(y){d(()=>{F(s,!1,y)})()}else{s[T]=o;const y=s[Z];if(s[Z]=l,s[z]===z&&o===V&&(s[T]=s[$],s[Z]=s[B]),o===K&&l instanceof Error){const _=a.currentTask&&a.currentTask.data&&a.currentTask.data.__creationTrace__;_&&f(l,Te,{configurable:!0,enumerable:!1,writable:!0,value:_})}for(let _=0;_{try{const g=s[Z],M=!!l&&z===l[z];M&&(l[B]=g,l[$]=y);const D=o.run(_,void 0,M&&_!==L&&_!==x?[]:[g]);F(l,!0,D)}catch(g){F(l,!1,g)}},l)}const k=function(){};class n{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(o){return F(new this(null),V,o)}static reject(o){return F(new this(null),K,o)}static race(o){let l,d,p=new this((g,M)=>{l=g,d=M});function y(g){l(g)}function _(g){d(g)}for(let g of o)G(g)||(g=this.resolve(g)),g.then(y,_);return p}static all(o){return n.allWithCallback(o)}static allSettled(o){return(this&&this.prototype instanceof n?this:n).allWithCallback(o,{thenCallback:d=>({status:"fulfilled",value:d}),errorCallback:d=>({status:"rejected",reason:d})})}static allWithCallback(o,l){let d,p,y=new this((D,q)=>{d=D,p=q}),_=2,g=0;const M=[];for(let D of o){G(D)||(D=this.resolve(D));const q=g;try{D.then(ee=>{M[q]=l?l.thenCallback(ee):ee,_--,0===_&&d(M)},ee=>{l?(M[q]=l.errorCallback(ee),_--,0===_&&d(M)):p(ee)})}catch(ee){p(ee)}_++,g++}return _-=2,0===_&&d(M),y}constructor(o){const l=this;if(!(l instanceof n))throw new Error("Must be an instanceof Promise.");l[T]=Q,l[Z]=[];try{o&&o(j(l,V),j(l,K))}catch(d){F(l,!1,d)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return n}then(o,l){let d=this.constructor[Symbol.species];(!d||"function"!=typeof d)&&(d=this.constructor||n);const p=new d(k),y=a.current;return this[T]==Q?this[Z].push(y,p,o,l):W(this,y,p,o,l),p}catch(o){return this.then(null,o)}finally(o){let l=this.constructor[Symbol.species];(!l||"function"!=typeof l)&&(l=n);const d=new l(k);d[z]=z;const p=a.current;return this[T]==Q?this[Z].push(p,d,o,o):W(this,p,d,o,o),d}}n.resolve=n.resolve,n.reject=n.reject,n.race=n.race,n.all=n.all;const e=t[w]=t.Promise;t.Promise=n;const r=E("thenPatched");function i(s){const o=s.prototype,l=c(o,"then");if(l&&(!1===l.writable||!l.configurable))return;const d=o.then;o[b]=d,s.prototype.then=function(p,y){return new n((g,M)=>{d.call(this,g,M)}).then(p,y)},s[r]=!0}return u.patchThen=i,e&&(i(e),ae(t,"fetch",s=>function h(s){return function(o,l){let d=s.apply(o,l);if(d instanceof n)return d;let p=d.constructor;return p[r]||i(p),d}}(s))),Promise[a.__symbol__("uncaughtPromiseErrors")]=v,n}),Zone.__load_patch("toString",t=>{const a=Function.prototype.toString,u=U("OriginalDelegate"),c=U("Promise"),f=U("Error"),m=function(){if("function"==typeof this){const w=this[u];if(w)return"function"==typeof w?a.call(w):Object.prototype.toString.call(w);if(this===Promise){const b=t[c];if(b)return a.call(b)}if(this===Error){const b=t[f];if(b)return a.call(b)}}return a.call(this)};m[u]=a,Function.prototype.toString=m;const E=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":E.call(this)}});let ce=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ce=!1}const me={useG:!0},te={},pe={},vt=new RegExp("^"+Ze+"(\\w+)(true|false)$"),rt=U("propagationStopped");function mt(t,a){const u=(a?a(t):t)+ve,c=(a?a(t):t)+he,f=Ze+u,m=Ze+c;te[t]={},te[t][ve]=f,te[t][he]=m}function ze(t,a,u){const c=u&&u.add||Ie,f=u&&u.rm||Je,m=u&&u.listeners||"eventListeners",E=u&&u.rmAll||"removeAllListeners",v=U(c),C="."+c+":",H=function(L,T,Z){if(L.isRemoved)return;const z=L.callback;"object"==typeof z&&z.handleEvent&&(L.callback=$=>z.handleEvent($),L.originalDelegate=z),L.invoke(L,T,[Z]);const B=L.options;B&&"object"==typeof B&&B.once&&T[f].call(T,Z.type,L.originalDelegate?L.originalDelegate:L.callback,B)},S=function(L){if(!(L=L||t.event))return;const T=this||L.target||t,Z=T[te[L.type][ve]];if(Z)if(1===Z.length)H(Z[0],T,L);else{const z=Z.slice();for(let B=0;Bfunction(f,m){f[rt]=!0,c&&c.apply(f,m)})}function pt(t,a,u,c,f){const m=Zone.__symbol__(c);if(a[m])return;const E=a[m]=a[c];a[c]=function(v,C,w){return C&&C.prototype&&f.forEach(function(b){const H=`${u}.${c}::`+b,S=C.prototype;if(S.hasOwnProperty(b)){const P=t.ObjectGetOwnPropertyDescriptor(S,b);P&&P.value?(P.value=t.wrapWithCurrentZone(P.value,H),t._redefineProperty(C.prototype,b,P)):S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}else S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}),E.call(a,v,C,w)},t.attachOriginToPatched(a[c],E)}const Et=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],st=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],le=["load"],De=["blur","error","focus","load","resize","scroll","messageerror"],Ee=["bounce","finish","start"],it=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Pe=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],at=["close","error","open","message"],Re=["error","message"],Ne=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Et,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function Xe(t,a,u){if(!u||0===u.length)return a;const c=u.filter(m=>m.target===t);if(!c||0===c.length)return a;const f=c[0].ignoreProperties;return a.filter(m=>-1===f.indexOf(m))}function Y(t,a,u,c){t&&Ge(t,Xe(t,a,u),c)}Zone.__load_patch("util",(t,a,u)=>{u.patchOnProperties=Ge,u.patchMethod=ae,u.bindArguments=tt,u.patchMacroTask=Ce;const c=a.__symbol__("BLACK_LISTED_EVENTS"),f=a.__symbol__("UNPATCHED_EVENTS");t[f]&&(t[c]=t[f]),t[c]&&(a[c]=a[f]=t[c]),u.patchEventPrototype=ot,u.patchEventTarget=ze,u.isIEOrEdge=Le,u.ObjectDefineProperty=ge,u.ObjectGetOwnPropertyDescriptor=oe,u.ObjectCreate=_t,u.ArraySlice=Ve,u.patchClass=we,u.wrapWithCurrentZone=Fe,u.filterProperties=Xe,u.attachOriginToPatched=se,u._redefineProperty=Object.defineProperty,u.patchCallbacks=pt,u.getGlobalObjects=()=>({globalSources:pe,zoneSymbolEventNames:te,eventNames:Ne,isBrowser:ht,isMix:Ue,isNode:ne,TRUE_STR:he,FALSE_STR:ve,ZONE_SYMBOL_PREFIX:Ze,ADD_EVENT_LISTENER_STR:Ie,REMOVE_EVENT_LISTENER_STR:Je})});const Ye=U("zoneTask");function Se(t,a,u,c){let f=null,m=null;u+=c;const E={};function v(w){const b=w.data;return b.args[0]=function(){return w.invoke.apply(this,arguments)},b.handleId=f.apply(t,b.args),w}function C(w){return m.call(t,w.data.handleId)}f=ae(t,a+=c,w=>function(b,H){if("function"==typeof H[0]){const S={isPeriodic:"Interval"===c,delay:"Timeout"===c||"Interval"===c?H[1]||0:void 0,args:H},P=H[0];H[0]=function(){try{return P.apply(this,arguments)}finally{S.isPeriodic||("number"==typeof S.handleId?delete E[S.handleId]:S.handleId&&(S.handleId[Ye]=null))}};const G=lt(a,H[0],S,v,C);if(!G)return G;const x=G.data.handleId;return"number"==typeof x?E[x]=G:x&&(x[Ye]=G),x&&x.ref&&x.unref&&"function"==typeof x.ref&&"function"==typeof x.unref&&(G.ref=x.ref.bind(x),G.unref=x.unref.bind(x)),"number"==typeof x||x?x:G}return w.apply(t,H)}),m=ae(t,u,w=>function(b,H){const S=H[0];let P;"number"==typeof S?P=E[S]:(P=S&&S[Ye],P||(P=S)),P&&"string"==typeof P.type?"notScheduled"!==P.state&&(P.cancelFn&&P.data.isPeriodic||0===P.runCount)&&("number"==typeof S?delete E[S]:S&&(S[Ye]=null),P.zone.cancelTask(P)):w.apply(t,H)})}Zone.__load_patch("legacy",t=>{const a=t[Zone.__symbol__("legacyPatch")];a&&a()}),Zone.__load_patch("queueMicrotask",(t,a,u)=>{u.patchMethod(t,"queueMicrotask",c=>function(f,m){a.current.scheduleMicroTask("queueMicrotask",m[0])})}),Zone.__load_patch("timers",t=>{const a="set",u="clear";Se(t,a,u,"Timeout"),Se(t,a,u,"Interval"),Se(t,a,u,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Se(t,"request","cancel","AnimationFrame"),Se(t,"mozRequest","mozCancel","AnimationFrame"),Se(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,a)=>{const u=["alert","prompt","confirm"];for(let c=0;cfunction(C,w){return a.current.run(m,t,w,v)})}),Zone.__load_patch("EventTarget",(t,a,u)=>{(function Me(t,a){a.patchEventPrototype(t,a)})(t,u),function $e(t,a){if(Zone[a.symbol("patchEventTarget")])return;const{eventNames:u,zoneSymbolEventNames:c,TRUE_STR:f,FALSE_STR:m,ZONE_SYMBOL_PREFIX:E}=a.getGlobalObjects();for(let C=0;C{we("MutationObserver"),we("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,a,u)=>{we("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,a,u)=>{we("FileReader")}),Zone.__load_patch("on_property",(t,a,u)=>{!function Ct(t,a){if(ne&&!Ue||Zone[t.symbol("patchEvents")])return;const u=typeof WebSocket<"u",c=a.__Zone_ignore_on_properties;if(ht){const E=window,v=function be(){try{const t=ke.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:E,ignoreProperties:["error"]}]:[];Y(E,Ne.concat(["messageerror"]),c&&c.concat(v),ye(E)),Y(Document.prototype,Ne,c),typeof E.SVGElement<"u"&&Y(E.SVGElement.prototype,Ne,c),Y(Element.prototype,Ne,c),Y(HTMLElement.prototype,Ne,c),Y(HTMLMediaElement.prototype,st,c),Y(HTMLFrameSetElement.prototype,Et.concat(De),c),Y(HTMLBodyElement.prototype,Et.concat(De),c),Y(HTMLFrameElement.prototype,le,c),Y(HTMLIFrameElement.prototype,le,c);const C=E.HTMLMarqueeElement;C&&Y(C.prototype,Ee,c);const w=E.Worker;w&&Y(w.prototype,Re,c)}const f=a.XMLHttpRequest;f&&Y(f.prototype,it,c);const m=a.XMLHttpRequestEventTarget;m&&Y(m&&m.prototype,it,c),typeof IDBIndex<"u"&&(Y(IDBIndex.prototype,Pe,c),Y(IDBRequest.prototype,Pe,c),Y(IDBOpenDBRequest.prototype,Pe,c),Y(IDBDatabase.prototype,Pe,c),Y(IDBTransaction.prototype,Pe,c),Y(IDBCursor.prototype,Pe,c)),u&&Y(WebSocket.prototype,at,c)}(u,t)}),Zone.__load_patch("customElements",(t,a,u)=>{!function Pt(t,a){const{isBrowser:u,isMix:c}=a.getGlobalObjects();(u||c)&&t.customElements&&"customElements"in t&&a.patchCallbacks(a,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,u)}),Zone.__load_patch("XHR",(t,a)=>{!function C(w){const b=w.XMLHttpRequest;if(!b)return;const H=b.prototype;let P=H[Qe],G=H[et];if(!P){const N=w.XMLHttpRequestEventTarget;if(N){const j=N.prototype;P=j[Qe],G=j[et]}}const x="readystatechange",L="scheduled";function T(N){const j=N.data,O=j.target;O[m]=!1,O[v]=!1;const re=O[f];P||(P=O[Qe],G=O[et]),re&&G.call(O,x,re);const Te=O[f]=()=>{if(O.readyState===O.DONE)if(!j.aborted&&O[m]&&N.state===L){const ue=O[a.__symbol__("loadfalse")];if(0!==O.status&&ue&&ue.length>0){const fe=N.invoke;N.invoke=function(){const W=O[a.__symbol__("loadfalse")];for(let I=0;Ifunction(N,j){return N[c]=0==j[2],N[E]=j[1],B.apply(N,j)}),R=U("fetchTaskAborting"),Q=U("fetchTaskScheduling"),V=ae(H,"send",()=>function(N,j){if(!0===a.current[Q]||N[c])return V.apply(N,j);{const O={target:N,url:N[E],isPeriodic:!1,args:j,aborted:!1},re=lt("XMLHttpRequest.send",Z,O,T,z);N&&!0===N[v]&&!O.aborted&&re.state===L&&re.invoke()}}),K=ae(H,"abort",()=>function(N,j){const O=function S(N){return N[u]}(N);if(O&&"string"==typeof O.type){if(null==O.cancelFn||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(!0===a.current[R])return K.apply(N,j)})}(t);const u=U("xhrTask"),c=U("xhrSync"),f=U("xhrListener"),m=U("xhrScheduled"),E=U("xhrURL"),v=U("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function ut(t,a){const u=t.constructor.name;for(let c=0;c{const C=function(){return v.apply(this,tt(arguments,u+"."+f))};return se(C,v),C})(m)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,a)=>{function u(c){return function(f){kt(t,c).forEach(E=>{const v=t.PromiseRejectionEvent;if(v){const C=new v(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}t.PromiseRejectionEvent&&(a[U("unhandledPromiseRejectionHandler")]=u("unhandledrejection"),a[U("rejectionHandledHandler")]=u("rejectionhandled"))})}},X=>{X(X.s=61)}]);(self.webpackChunkdotcms_block_editor=self.webpackChunkdotcms_block_editor||[]).push([[179],{10:(Vr,Il,yu)=>{"use strict";function wo(n){return"function"==typeof n}let pa=!1;const Nn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else pa&&console.log("RxJS: Back to a better error behavior. Thank you. <3");pa=n},get useDeprecatedSynchronousErrorHandling(){return pa}};function Do(n){setTimeout(()=>{throw n},0)}const fa={closed:!0,next(n){},error(n){if(Nn.useDeprecatedSynchronousErrorHandling)throw n;Do(n)},complete(){}},Er=Array.isArray||(n=>n&&"number"==typeof n.length);function ga(n){return null!==n&&"object"==typeof n}const ma=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class We{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof We)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof ma?e.errors:e),[])}We.EMPTY=((n=new We).closed=!0,n);const Aa="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ge extends We{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=fa;break;case 1:if(!t){this.destination=fa;break}if("object"==typeof t){t instanceof Ge?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Eu(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Eu(this,t,e,i)}}[Aa](){return this}static create(t,e,i){const r=new Ge(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class Eu extends Ge{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;wo(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==fa&&(s=Object.create(e),wo(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Nn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Nn;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Do(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Do(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Nn.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),Nn.useDeprecatedSynchronousErrorHandling)throw i;Do(i)}}__tryOrSetError(t,e,i){if(!Nn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Nn.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Do(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const us="function"==typeof Symbol&&Symbol.observable||"@@observable";function Sl(n){return n}function ba(n){return 0===n.length?Sl:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let et=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function cs(n,t,e){if(n){if(n instanceof Ge)return n;if(n[Aa])return n[Aa]()}return n||t||e?new Ge(n,t,e):new Ge(fa)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||Nn.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Nn.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Nn.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function tb(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Ge?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=cp(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[us](){return this}pipe(...e){return 0===e.length?this:ba(e)(this)}toPromise(e){return new(e=cp(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function cp(n){if(n||(n=Nn.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Cr=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Cu extends We{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class ya extends Ge{constructor(t){super(t),this.destination=t}}let Me=(()=>{class n extends et{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Aa](){return new ya(this)}lift(e){const i=new up(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Cr;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew up(t,e),n})();class up extends Me{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):We.EMPTY}}function ds(n){return n&&"function"==typeof n.schedule}function fe(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new nb(n,t))}}class nb{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new ib(t,this.project,this.thisArg))}}class ib extends Ge{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const dp=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function hp(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const xi=n=>{if(n&&"function"==typeof n[us])return(n=>t=>{const e=n[us]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(vu(n))return dp(n);if(hp(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Do),t))(n);if(n&&"function"==typeof n[xl])return(n=>t=>{const e=n[xl]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${ga(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Tl(n,t){return new et(e=>{const i=new We;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function wu(n,t){if(null!=n){if(function gp(n){return n&&"function"==typeof n[us]}(n))return function pp(n,t){return new et(e=>{const i=new We;return i.add(t.schedule(()=>{const r=n[us]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(hp(n))return function fp(n,t){return new et(e=>{const i=new We;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(vu(n))return Tl(n,t);if(function mp(n){return n&&"function"==typeof n[xl]}(n)||"string"==typeof n)return function Mu(n,t){if(!n)throw new Error("Iterable cannot be null");return new et(e=>{const i=new We;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[xl](),i.add(t.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}function Lt(n,t){return t?wu(n,t):n instanceof et?n:new et(xi(n))}class _a extends Ge{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Ea extends Ge{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Ca(n,t){if(t.closed)return;if(n instanceof et)return n.subscribe(t);let e;try{e=xi(n)(t)}catch(i){t.error(i)}return e}function nn(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(nn((r,o)=>Lt(n(r,o)).pipe(fe((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new ab(n,e)))}class ab{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new lb(t,this.project,this.concurrent))}}class lb extends Ea{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function hs(n=Number.POSITIVE_INFINITY){return nn(Sl,n)}function ps(n,t){return t?Tl(n,t):new et(dp(n))}function va(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return ds(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof et?n[0]:hs(t)(ps(n,e))}function Ma(){return function(t){return t.lift(new Wi(t))}}class Wi{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new Ap(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class Ap extends Ge{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Bl extends et{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new We,t.add(this.source.subscribe(new bp(this.getSubject(),this))),t.closed&&(this._connection=null,t=We.EMPTY)),t}refCount(){return Ma()(this)}}const cb=(()=>{const n=Bl.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class bp extends ya{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class ub{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function Io(){return new Me}function gt(n){for(let t in n)if(n[t]===gt)return t;throw Error("Could not find renamed property on target object.")}function Iu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function rt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(rt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function So(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Su=gt({__forward_ref__:gt});function Je(n){return n.__forward_ref__=Je,n.toString=function(){return rt(this())},n}function he(n){return xo(n)?n():n}function xo(n){return"function"==typeof n&&n.hasOwnProperty(Su)&&n.__forward_ref__===Je}class P extends Error{constructor(t,e){super(function Ol(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function we(n){return"string"==typeof n?n:null==n?"":String(n)}function kl(n,t){throw new P(-201,!1)}function ti(n,t){null==n&&function tt(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function Y(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Pe(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pl(n){return Mp(n,Fl)||Mp(n,Tu)}function Mp(n,t){return n.hasOwnProperty(t)?n[t]:null}function wa(n){return n&&(n.hasOwnProperty(Oo)||n.hasOwnProperty(wp))?n[Oo]:null}const Fl=gt({\u0275prov:gt}),Oo=gt({\u0275inj:gt}),Tu=gt({ngInjectableDef:gt}),wp=gt({ngInjectorDef:gt});var pe=(()=>((pe=pe||{})[pe.Default=0]="Default",pe[pe.Host=1]="Host",pe[pe.Self=2]="Self",pe[pe.SkipSelf=4]="SkipSelf",pe[pe.Optional=8]="Optional",pe))();let Bu;function fi(n){const t=Bu;return Bu=n,t}function Ou(n,t,e){const i=Pl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&pe.Optional?null:void 0!==t?t:void kl(rt(n))}function Gr(n){return{toString:n}.toString()}var gi=(()=>((gi=gi||{})[gi.OnPush=0]="OnPush",gi[gi.Default=1]="Default",gi))(),Ti=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Ti||(Ti={})),Ti))();const mt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),gs={},qe=[],Rl=gt({\u0275cmp:gt}),Pu=gt({\u0275dir:gt}),vr=gt({\u0275pipe:gt}),Fu=gt({\u0275mod:gt}),Mr=gt({\u0275fac:gt}),Yr=gt({__NG_ELEMENT_ID__:gt});let bb=0;function ve(n){return Gr(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===gi.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||qe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ti.Emulated,id:"c"+bb++,styles:n.styles||qe,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=Lu(n.inputs,i),r.outputs=Lu(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Ru).filter(Nu):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(M).filter(Nu):null,r})}function ms(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(Ru),i.pipeDefs=()=>("function"==typeof e?e():e).map(M)}function Ru(n){return ot(n)||_(n)}function Nu(n){return null!==n}function Fe(n){return Gr(()=>({type:n.type,bootstrap:n.bootstrap||qe,declarations:n.declarations||qe,imports:n.imports||qe,exports:n.exports||qe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Lu(n,t){if(null==n)return gs;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const ue=ve;function xn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function ot(n){return n[Rl]||null}function _(n){return n[Pu]||null}function M(n){return n[vr]||null}function z(n,t){const e=n[Fu]||null;if(!e&&!0===t)throw new Error(`Type ${rt(n)} does not have '\u0275mod' property.`);return e}function bi(n){return Array.isArray(n)&&"object"==typeof n[1]}function Dr(n){return Array.isArray(n)&&!0===n[1]}function _b(n){return 0!=(8&n.flags)}function Sp(n){return 2==(2&n.flags)}function xp(n){return 1==(1&n.flags)}function Ir(n){return null!==n.template}function g2(n){return 0!=(256&n[2])}function xa(n,t){return n.hasOwnProperty(Mr)?n[Mr]:null}class $w{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function yi(){return qw}function qw(n){return n.type.prototype.ngOnChanges&&(n.setInput=y2),b2}function b2(){const n=Zw(this),t=n?.current;if(t){const e=n.previous;if(e===gs)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function y2(n,t,e,i){const r=Zw(n)||function _2(n,t){return n[Xw]=t}(n,{previous:gs,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new $w(l&&l.currentValue,t,s===gs),n[i]=t}yi.ngInherit=!0;const Xw="__ngSimpleChanges__";function Zw(n){return n[Xw]||null}function rn(n){for(;Array.isArray(n);)n=n[0];return n}function Tp(n,t){return rn(t[n])}function $i(n,t){return rn(t[n.index])}function wb(n,t){return n.data[t]}function Ul(n,t){return n[t]}function Bi(n,t){const e=t[n];return bi(e)?e:e[0]}function e0(n){return 4==(4&n[2])}function Bp(n){return 64==(64&n[2])}function As(n,t){return null==t?null:n[t]}function t0(n){n[18]=0}function Db(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Ie={lFrame:d0(null),bindingsEnabled:!0};function r0(){return Ie.bindingsEnabled}function N(){return Ie.lFrame.lView}function Ke(){return Ie.lFrame.tView}function re(n){return Ie.lFrame.contextLView=n,n[8]}function oe(n){return Ie.lFrame.contextLView=null,n}function fn(){let n=o0();for(;null!==n&&64===n.type;)n=n.parent;return n}function o0(){return Ie.lFrame.currentTNode}function Wr(n,t){const e=Ie.lFrame;e.currentTNode=n,e.isParent=t}function Ib(){return Ie.lFrame.isParent}function Sb(){Ie.lFrame.isParent=!1}function ni(){const n=Ie.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function jl(){return Ie.lFrame.bindingIndex++}function Fo(n){const t=Ie.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function P2(n,t){const e=Ie.lFrame;e.bindingIndex=e.bindingRootIndex=n,xb(t)}function xb(n){Ie.lFrame.currentDirectiveIndex=n}function l0(){return Ie.lFrame.currentQueryIndex}function Bb(n){Ie.lFrame.currentQueryIndex=n}function R2(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function c0(n,t,e){if(e&pe.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&pe.Host||(r=R2(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=Ie.lFrame=u0();return i.currentTNode=t,i.lView=n,!0}function Ob(n){const t=u0(),e=n[1];Ie.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function u0(){const n=Ie.lFrame,t=null===n?null:n.child;return null===t?d0(n):t}function d0(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function h0(){const n=Ie.lFrame;return Ie.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const p0=h0;function kb(){const n=h0();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ii(){return Ie.lFrame.selectedIndex}function bs(n){Ie.lFrame.selectedIndex=n}function Vt(){const n=Ie.lFrame;return wb(n.tView,n.selectedIndex)}function kp(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class zu{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Rp(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Rb=!0;function Lp(n){const t=Rb;return Rb=n,t}let q2=0;const Jr={};function Vu(n,t){const e=Lb(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Nb(i.data,n),Nb(t,null),Nb(i.blueprint,null));const r=Qp(n,t),o=n.injectorIndex;if(b0(r)){const s=zl(r),a=Hl(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Nb(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Lb(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Qp(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=I0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Up(n,t,e){!function X2(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Yr)&&(i=e[Yr]),null==i&&(i=e[Yr]=q2++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:nU:t}(e);if("function"==typeof o){if(!c0(t,n,i))return i&pe.Host?E0(r,0,i):C0(t,e,i,r);try{const s=o(i);if(null!=s||i&pe.Optional)return s;kl()}finally{p0()}}else if("number"==typeof o){let s=null,a=Lb(n,t),l=-1,c=i&pe.Host?t[16][6]:null;for((-1===a||i&pe.SkipSelf)&&(l=-1===a?Qp(n,t):t[a+8],-1!==l&&D0(i,!1)?(s=t[1],a=zl(l),t=Hl(l,t)):a=-1);-1!==a;){const u=t[1];if(w0(o,a,u.data)){const d=eU(a,t,e,s,i,c);if(d!==Jr)return d}l=t[a+8],-1!==l&&D0(i,t[1].data[a+8]===c)&&w0(o,a,t)?(s=u,a=zl(l),t=Hl(l,t)):a=-1}}return r}function eU(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=jp(a,s,e,null==i?Sp(a)&&Rb:i!=s&&0!=(3&a.type),r&pe.Host&&o===a);return null!==u?Gu(t,s,u,a):Jr}function jp(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let p=i?a:a+u;p=l&&f.type===e)return p}if(r){const p=s[l];if(p&&Ir(p)&&p.type===e)return l}return null}function Gu(n,t,e,i){let r=n[e];const o=t.data;if(function Y2(n){return n instanceof zu}(r)){const s=r;s.resolving&&function Cp(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new P(-200,`Circular dependency in DI detected for ${n}${e}`)}(function $e(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():we(n)}(o[e]));const a=Lp(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?fi(s.injectImpl):null;c0(n,i,pe.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function V2(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=qw(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&fi(l),Lp(a),s.resolving=!1,p0()}}return r}function w0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[Mr]||Qb(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[Mr]||Qb(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Qb(n){return xo(n)?()=>{const t=Qb(he(n));return t&&t()}:xa(n)}function I0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}const Yl="__parameters__";function Jl(n,t,e){return Gr(()=>{const i=function Ub(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Yl)?l[Yl]:Object.defineProperty(l,Yl,{value:[]})[Yl];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class ${constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Oi(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Ro(e,t):t(e))}function x0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function zp(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ku(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function aU(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function zb(n,t){const e=Kl(n,t);if(e>=0)return n[1|e]}function Kl(n,t){return function O0(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),Zu=Xu(Jl("Optional"),8),ed=Xu(Jl("SkipSelf"),4);let Yb,Jp,Kp;function Xl(n){return function Wb(){if(void 0===Jp&&(Jp=null,mt.trustedTypes))try{Jp=mt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Jp}()?.createHTML(n)||n}function H0(n){return function Jb(){if(void 0===Kp&&(Kp=null,mt.trustedTypes))try{Kp=mt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Kp}()?.createHTML(n)||n}class Ta{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class kU extends Ta{getTypeName(){return"HTML"}}class PU extends Ta{getTypeName(){return"Style"}}class FU extends Ta{getTypeName(){return"Script"}}class RU extends Ta{getTypeName(){return"URL"}}class NU extends Ta{getTypeName(){return"ResourceURL"}}function Pi(n){return n instanceof Ta?n.changingThisBreaksApplicationSecurity:n}function Kr(n,t){const e=function LU(n){return n instanceof Ta&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class VU{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Xl(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class GU{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Xl(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Xl(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0id(t.trim())).join(", ")}function $r(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function rd(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const J0=$r("area,br,col,hr,img,wbr"),K0=$r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$0=$r("rp,rt"),Kb=rd(J0,rd(K0,$r("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")),rd($0,$r("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")),rd($0,K0)),$b=$r("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qb=$r("srcset"),q0=rd($b,qb,$r("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$r("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")),JU=$r("script,style,template");class KU{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Kb.hasOwnProperty(e))return this.sanitizedSomething=!0,!JU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kb.hasOwnProperty(e)&&!J0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(X0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const $U=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qU=/([^\#-~ |!])/g;function X0(n){return n.replace(/&/g,"&").replace($U,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(qU,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $p;function Z0(n,t){let e=null;try{$p=$p||function Y0(n){const t=new GU(n);return function YU(){try{return!!(new window.DOMParser).parseFromString(Xl(""),"text/html")}catch{return!1}}()?new VU(t):t}(n);let i=t?String(t):"";e=$p.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=$p.getInertBodyElement(i)}while(i!==o);return Xl((new KU).sanitizeChildren(Xb(e)||e))}finally{if(e){const i=Xb(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Xb(n){return"content"in n&&function XU(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var It=(()=>((It=It||{})[It.NONE=0]="NONE",It[It.HTML=1]="HTML",It[It.STYLE=2]="STYLE",It[It.SCRIPT=3]="SCRIPT",It[It.URL=4]="URL",It[It.RESOURCE_URL=5]="RESOURCE_URL",It))();function qp(n){const t=od();return t?H0(t.sanitize(It.HTML,n)||""):Kr(n,"HTML")?H0(Pi(n)):Z0(function z0(){return void 0!==Yb?Yb:typeof document<"u"?document:void 0}(),we(n))}function No(n){const t=od();return t?t.sanitize(It.URL,n)||"":Kr(n,"URL")?Pi(n):id(we(n))}function od(){const n=N();return n&&n[12]}const Zb=new $("ENVIRONMENT_INITIALIZER"),tD=new $("INJECTOR",-1),nD=new $("INJECTOR_DEF_TYPES");class iD{get(t,e=$u){if(e===$u){const i=new Error(`NullInjectorError: No provider for ${rt(t)}!`);throw i.name="NullInjectorError",i}return e}}function oj(...n){return{\u0275providers:rD(0,n)}}function rD(n,...t){const e=[],i=new Set;let r;return Ro(t,o=>{const s=o;ey(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&oD(r,e),e}function oD(n,t){for(let e=0;e{t.push(o)})}}function ey(n,t,e,i){if(!(n=he(n)))return!1;let r=null,o=wa(n);const s=!o&&ot(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=wa(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)ey(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Ro(o.imports,u=>{ey(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&oD(c,t)}if(!a){const c=xa(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:qe},{provide:nD,useValue:r,multi:!0},{provide:Zb,useValue:()=>j(r),multi:!0})}const l=o.providers;null==l||a||Ro(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const sj=gt({provide:String,useValue:gt});function ty(n){return null!==n&&"object"==typeof n&&sj in n}function Ba(n){return"function"==typeof n}const ny=new $("Set Injector scope."),Xp={},lj={};let iy;function Zp(){return void 0===iy&&(iy=new iD),iy}class _s{}class lD extends _s{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,oy(t,s=>this.processProvider(s)),this.records.set(tD,Zl(void 0,this)),r.has("environment")&&this.records.set(_s,Zl(void 0,this));const o=this.records.get(ny);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(nD.multi,qe,pe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=$l(this),i=fi(void 0);try{return t()}finally{$l(e),fi(i)}}get(t,e=$u,i=pe.Default){this.assertNotDestroyed();const r=$l(this),o=fi(void 0);try{if(!(i&pe.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function pj(n){return"function"==typeof n||"object"==typeof n&&n instanceof $}(t)&&Pl(t);a=l&&this.injectableDefInScope(l)?Zl(ry(t),Xp):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&pe.Self?Zp():this.parent).get(t,e=i&pe.Optional&&e===$u?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Vp]=s[Vp]||[]).unshift(rt(t)),r)throw s;return function yU(n,t,e,i){const r=n[Vp];throw t[k0]&&r.unshift(t[k0]),n.message=function _U(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=rt(t);if(Array.isArray(t))r=t.map(rt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):rt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(gU,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Vp]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{fi(o),$l(r)}}resolveInjectorInitializers(){const t=$l(this),e=fi(void 0);try{const i=this.get(Zb.multi,qe,pe.Self);for(const r of i)r()}finally{$l(t),fi(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(rt(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new P(205,!1)}processProvider(t){let e=Ba(t=he(t))?t:he(t&&t.provide);const i=function uj(n){return ty(n)?Zl(void 0,n.useValue):Zl(cD(n),Xp)}(t);if(Ba(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Zl(void 0,Xp,!0),r.factory=()=>Gb(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Xp&&(e.value=lj,e.value=e.factory()),"object"==typeof e.value&&e.value&&function hj(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=he(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function ry(n){const t=Pl(n),e=null!==t?t.factory:xa(n);if(null!==e)return e;if(n instanceof $)throw new P(204,!1);if(n instanceof Function)return function cj(n){const t=n.length;if(t>0)throw Ku(t,"?"),new P(204,!1);const e=function gb(n){const t=n&&(n[Fl]||n[Tu]);if(t){const e=function mb(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new P(204,!1)}function cD(n,t,e){let i;if(Ba(n)){const r=he(n);return xa(r)||ry(r)}if(ty(n))i=()=>he(n.useValue);else if(function aD(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Gb(n.deps||[]));else if(function sD(n){return!(!n||!n.useExisting)}(n))i=()=>j(he(n.useExisting));else{const r=he(n&&(n.useClass||n.provide));if(!function dj(n){return!!n.deps}(n))return xa(r)||ry(r);i=()=>new r(...Gb(n.deps))}return i}function Zl(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function fj(n){return!!n.\u0275providers}function oy(n,t){for(const e of n)Array.isArray(e)?oy(e,t):fj(e)?oy(e.\u0275providers,t):t(e)}class uD{}class Aj{resolveComponentFactory(t){throw function mj(n){const t=Error(`No component factory found for ${rt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Es=(()=>{class n{}return n.NULL=new Aj,n})();function bj(){return ec(fn(),N())}function ec(n,t){return new St($i(n,t))}let St=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=bj,n})();function yj(n){return n instanceof St?n.nativeElement:n}class sd{}let qr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function _j(){const n=N(),e=Bi(fn().index,n);return(bi(e)?e:n)[11]}(),n})(),Ej=(()=>{class n{}return n.\u0275prov=Y({token:n,providedIn:"root",factory:()=>null}),n})();class tc{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Cj=new tc("14.2.0"),sy={};function dy(n){return n.ngOriginalError}class nc{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&dy(t);for(;e&&dy(e);)e=dy(e);return e||null}}const hy=new Map;let Pj=0;const fy="__ngContext__";function Qn(n,t){bi(t)?(n[fy]=t[20],function Rj(n){hy.set(n[20],n)}(t)):n[fy]=t}function ad(n){const t=n[fy];return"number"==typeof t?function AD(n){return hy.get(n)||null}(t):t||null}function gy(n){const t=ad(n);return t?bi(t)?t:t.lView:null}function Lo(n){return n instanceof Function?n():n}var _i=(()=>((_i=_i||{})[_i.Important=1]="Important",_i[_i.DashCase=2]="DashCase",_i))();function Ay(n,t){return undefined(n,t)}function ld(n){const t=n[3];return Dr(t)?t[3]:t}function by(n){return MD(n[13])}function yy(n){return MD(n[4])}function MD(n){for(;null!==n&&!Dr(n);)n=n[4];return n}function rc(n,t,e,i,r){if(null!=i){let o,s=!1;Dr(i)?o=i:bi(i)&&(s=!0,i=i[0]);const a=rn(i);0===n&&null!==e?null==r?TD(t,e,a):Oa(t,e,a,r||null,!0):1===n&&null!==e?Oa(t,e,a,r||null,!0):2===n?function ND(n,t,e){const i=ef(n,t);i&&function cz(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function hz(n,t,e,i,r){const o=e[7];o!==rn(e)&&rc(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=zp(n,10+t);!function tz(n,t){cd(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function ID(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&cd(n,t,e,3,null,null),function rz(n){let t=n[13];if(!t)return vy(n[1],n);for(;t;){let e=null;if(bi(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)bi(t)&&vy(t[1],t),t=t[3];null===t&&(t=n),bi(t)&&vy(t[1],t),e=t&&t[4]}t=e}}(t)}}function vy(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function lz(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==UD(p,c,0)||2&i&&c!==h){if(Sr(i))return!1;s=!0}}}}else{if(!s&&!Sr(i)&&!Sr(l))return!1;if(s&&Sr(l))continue;s=!1,i=l|1&i}}return Sr(i)||s}function Sr(n){return 0==(1&n)}function Az(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Sr(s)&&(t+=VD(o,r),r=""),i=s,o=o||!Sr(i);e++}return""!==r&&(t+=VD(o,r)),t}const Se={};function v(n){GD(Ke(),N(),ii()+n,!1)}function GD(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Pp(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Fp(t,o,0,e)}bs(e)}function KD(n,t=null,e=null,i){const r=$D(n,t,e,i);return r.resolveInjectorInitializers(),r}function $D(n,t=null,e=null,i,r=new Set){const o=[e||qe,oj(n)];return i=i||("object"==typeof n?void 0:rt(n)),new lD(o,t||Zp(),i||null,r)}let Tn=(()=>{class n{static create(e,i){if(Array.isArray(e))return KD({name:""},i,e,"");{const r=e.name??"";return KD({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=$u,n.NULL=new iD,n.\u0275prov=Y({token:n,providedIn:"any",factory:()=>j(tD)}),n.__NG_ELEMENT_ID__=-1,n})();function T(n,t=pe.Default){const e=N();return null===e?j(n,t):v0(fn(),e,he(n),t)}function Oy(){throw new Error("invalid")}function sf(n,t){return n<<17|t<<2}function xr(n){return n>>17&32767}function ky(n){return 2|n}function Qo(n){return(131068&n)>>2}function Py(n,t){return-131069&n|t<<2}function Fy(n){return 1|n}function pI(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&GD(n,t,22,!1),e(i,r)}finally{bs(o)}}function gI(n,t,e){if(_b(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function CI(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function vI(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function fH(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&Ky(e)}}function Ky(n){for(let i=by(n);null!==i;i=yy(i))for(let r=10;r0&&Ky(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&Ky(r)}}function EH(n,t){const e=Bi(t,n),i=e[1];(function CH(n,t){for(let e=t.length;e-1&&(Cy(t,i),zp(e,i))}this._attachedToViewContainer=!1}ID(this._lView[1],this._lView)}onDestroy(t){AI(this._lView[1],this._lView,null,t)}markForCheck(){$y(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function qy(n,t,e){const i=t[10];i.begin&&i.begin();try{ud(n,t,n.template,e)}catch(r){throw BI(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function iz(n,t){cd(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=t}}class MH extends dd{constructor(t){super(t),this._view=t}detectChanges(){!function II(n){!function vH(n){for(let t=0;t0&&Iy(c,d,b.join(" "))}if(A=wb(f,22),void 0!==e){const E=A.projection=[];for(let b=0;b=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Np(r.hostAttrs,e=Np(e,r.hostAttrs))}}(i)}function t_(n){return n===gs?{}:n===qe?[]:n}function PH(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function FH(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function RH(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let ff=null;function ka(){if(!ff){const n=mt.Symbol;if(n&&n.iterator)ff=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(rn(D[i.index])):i.index;let b=null;if(!a&&l&&(b=function JH(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,p=!1;else{o=WI(i,t,d,o,!1);const D=e.listen(A,r,o);h.push(o,D),u&&u.push(r,E,y,y+1)}}else o=WI(i,t,d,o,!1);const f=i.outputs;let g;if(p&&null!==f&&(g=f[r])){const m=g.length;if(m)for(let A=0;A0;)t=t[15],n--;return t}(n,Ie.lFrame.contextLView))[8]}(n)}function KH(n,t){let e=null;const i=function bz(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const mn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rS(n){return n.substring(mn.key,mn.keyEnd)}function ZH(n){return n.substring(mn.value,mn.valueEnd)}function oS(n,t){const e=mn.textEnd;return e===t?-1:(t=mn.keyEnd=function nV(n,t,e){for(;t32;)t++;return t}(n,mn.key=t,e),Ac(n,t,e))}function sS(n,t){const e=mn.textEnd;let i=mn.key=Ac(n,t,e);return e===i?-1:(i=mn.keyEnd=function iV(n,t,e){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(n,i,e),i=lS(n,i,e),i=mn.value=Ac(n,i,e),i=mn.valueEnd=function rV(n,t,e){let i=-1,r=-1,o=-1,s=t,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(n,i,e),lS(n,i,e))}function aS(n){mn.key=0,mn.keyEnd=0,mn.value=0,mn.valueEnd=0,mn.textEnd=n.length}function Ac(n,t,e){for(;t=0;e=sS(t,e))hS(n,rS(t),ZH(t))}function Gt(n){Br(ki,to,n,!0)}function to(n,t){for(let e=function eV(n){return aS(n),oS(n,Ac(n,0,mn.textEnd))}(t);e>=0;e=oS(t,e))ki(n,rS(t),!0)}function Tr(n,t,e,i){const r=N(),o=Ke(),s=Fo(2);o.firstUpdatePass&&dS(o,n,s,i),t!==Se&&Un(r,s,t)&&pS(o,o.data[ii()],r,r[11],n,r[s+1]=function hV(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=rt(Pi(n)))),n}(t,e),i,s)}function Br(n,t,e,i){const r=Ke(),o=Fo(2);r.firstUpdatePass&&dS(r,null,o,i);const s=N();if(e!==Se&&Un(s,o,e)){const a=r.data[ii()];if(gS(a,i)&&!uS(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=So(l,e||"")),i_(r,a,s,e,i)}else!function dV(n,t,e,i,r,o,s,a){r===Se&&(r=qe);let l=0,c=0,u=0=n.expandoStartIndex}function dS(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[ii()],s=uS(n,e);gS(o,i)&&null===t&&!s&&(t=!1),t=function sV(n,t,e,i){const r=function Tb(n){const t=Ie.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=md(e=s_(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=s_(r,n,t,e,i),null===o){let l=function aV(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Qo(i))return n[xr(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=s_(null,n,t,l[1],i),l=md(l,t.attrs,i),function lV(n,t,e,i){n[xr(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function cV(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=xr(n[a+1]);n[i+1]=sf(h,a),0!==h&&(n[h+1]=Py(n[h+1],i)),n[a+1]=function Hz(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=sf(a,0),0!==a&&(n[a+1]=Py(n[a+1],i)),a=i;else n[i+1]=sf(l,0),0===a?a=i:n[l+1]=Py(n[l+1],i),l=i;c&&(n[i+1]=ky(n[i+1])),iS(n,u,i,!0),iS(n,u,i,!1),function qH(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Kl(o,t)>=0&&(e[i+1]=Fy(e[i+1]))}(t,u,n,i,o),s=sf(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function s_(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Se&&(h=d?qe:void 0);let p=d?zb(h,i):u===i?h:void 0;if(c&&!Af(p)&&(p=zb(l,i)),Af(p)&&(a=p,s))return a;const f=n[r+1];r=s?xr(f):Qo(f)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=zb(l,i))}return a}function Af(n){return void 0!==n}function gS(n,t){return 0!=(n.flags&(t?16:32))}function de(n,t=""){const e=N(),i=Ke(),r=n+22,o=i.firstCreatePass?sc(i,r,1,t,null):i.data[r],s=e[r]=function _y(n,t){return n.createText(t)}(e[11],t);tf(i,e,s,o),Wr(o,!1)}function pt(n){return no("",n,""),pt}function no(n,t,e){const i=N(),r=function cc(n,t,e,i){return Un(n,jl(),e)?t+we(e)+i:Se}(i,n,t,e);return r!==Se&&Uo(i,ii(),r),no}function bf(n,t,e,i,r){const o=N(),s=uc(o,n,t,e,i,r);return s!==Se&&Uo(o,ii(),s),bf}const yc="en-US";let RS=yc;function c_(n,t,e,i,r){if(n=he(n),Array.isArray(n))for(let o=0;o>20;if(Ba(n)||!n.multi){const p=new zu(l,r,T),f=d_(a,t,r?u:u+h,d);-1===f?(Up(Vu(c,s),o,a),u_(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(p),s.push(p)):(e[f]=p,s[f]=p)}else{const p=d_(a,t,u+h,d),f=d_(a,t,u,u+h),g=p>=0&&e[p],m=f>=0&&e[f];if(r&&!m||!r&&!g){Up(Vu(c,s),o,a);const A=function B4(n,t,e,i,r){const o=new zu(n,e,T);return o.multi=[],o.index=t,o.componentProviders=0,ax(o,r,i&&!e),o}(r?T4:x4,e.length,r,i,l);!r&&m&&(e[f].providerFactory=A),u_(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(A),s.push(A)}else u_(o,n,p>-1?p:f,ax(e[r?f:p],l,!r&&i));!r&&i&&m&&e[f].componentProviders++}}}function u_(n,t,e,i){const r=Ba(t),o=function aj(n){return!!n.useClass}(t);if(r||o){const l=(o?he(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function ax(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function d_(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function S4(n,t,e){const i=Ke();if(i.firstCreatePass){const r=Ir(n);c_(e,i.data,i.blueprint,r,!0),c_(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Ra{}class lx{}class cx extends Ra{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new e_(this);const i=z(t);this._bootstrapComponents=Lo(i.bootstrap),this._r3Injector=$D(t,e,[{provide:Ra,useValue:this},{provide:Es,useValue:this.componentFactoryResolver}],rt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class p_ extends lx{constructor(t){super(),this.moduleType=t}create(t){return new cx(this.moduleType,t)}}class k4 extends Ra{constructor(t,e,i){super(),this.componentFactoryResolver=new e_(this),this.instance=null;const r=new lD([...t,{provide:Ra,useValue:this},{provide:Es,useValue:this.componentFactoryResolver}],e||Zp(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function vf(n,t,e=null){return new k4(n,t,e).injector}let P4=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=rD(0,e.type),r=i.length>0?vf([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=Y({token:n,providedIn:"environment",factory:()=>new n(j(_s))}),n})();function ux(n){n.getStandaloneInjector=t=>t.get(P4).getOrCreateStandaloneInjector(n)}function io(n,t,e){const i=ni()+n,r=N();return r[i]===Se?Zr(r,i,e?t.call(e):t()):fd(r,i)}function Wt(n,t,e,i){return bx(N(),ni(),n,t,e,i)}function Xi(n,t,e,i,r){return function yx(n,t,e,i,r,o,s){const a=t+e;return Pa(n,a,r,o)?Zr(n,a+2,s?i.call(s,r,o):i(r,o)):Ed(n,a+2)}(N(),ni(),n,t,e,i,r)}function Na(n,t,e,i,r,o){return function _x(n,t,e,i,r,o,s,a){const l=t+e;return function gf(n,t,e,i,r){const o=Pa(n,t,e,i);return Un(n,t+2,r)||o}(n,l,r,o,s)?Zr(n,l+3,a?i.call(a,r,o,s):i(r,o,s)):Ed(n,l+3)}(N(),ni(),n,t,e,i,r,o)}function Mf(n,t,e,i,r,o,s){return function Ex(n,t,e,i,r,o,s,a,l){const c=t+e;return qi(n,c,r,o,s,a)?Zr(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Ed(n,c+4)}(N(),ni(),n,t,e,i,r,o,s)}function Ed(n,t){const e=n[t];return e===Se?void 0:e}function bx(n,t,e,i,r,o){const s=t+e;return Un(n,s,r)?Zr(n,s+1,o?i.call(o,r):i(r)):Ed(n,s+1)}function La(n,t){const e=Ke();let i;const r=n+22;e.firstCreatePass?(i=function W4(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=xa(i.type)),s=fi(T);try{const a=Lp(!1),l=o();return Lp(a),function GH(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,N(),r,l),l}finally{fi(s)}}function Qa(n,t,e){const i=n+22,r=N(),o=Ul(r,i);return function Cd(n,t){return n[1].data[t].pure}(r,i)?bx(r,ni(),t,o.transform,e,o):o.transform(e)}function g_(n){return t=>{setTimeout(n,void 0,t)}}const te=class X4 extends Me{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=g_(o),r&&(r=g_(r)),s&&(s=g_(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof We&&t.add(a),a}};function Z4(){return this._results[ka()]()}class vd{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ka(),i=vd.prototype;i[e]||(i[e]=Z4)}get changes(){return this._changes||(this._changes=new te)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Oi(t);(this._changesDetected=!function oU(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=nG,n})();const eG=ro,tG=class extends eG{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=cf(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),uf(i,r,t),new dd(r)}};function nG(){return wf(fn(),N())}function wf(n,t){return 4&n.type?new tG(t,n,ec(n,t)):null}let Ni=(()=>{class n{}return n.__NG_ELEMENT_ID__=iG,n})();function iG(){return wx(fn(),N())}const rG=Ni,vx=class extends rG{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ec(this._hostTNode,this._hostLView)}get injector(){return new Vl(this._hostTNode,this._hostLView)}get parentInjector(){const t=Qp(this._hostTNode,this._hostLView);if(b0(t)){const e=Hl(t,this._hostLView),i=zl(t);return new Vl(e[1].data[i+8],e)}return new Vl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Mx(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function Ju(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new hd(ot(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(_s,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function D2(n){return Dr(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new vx(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function oz(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=If,this.reject=If,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(j(Sf,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wd=new $("AppId",{providedIn:"root",factory:function Kx(){return`${D_()}${D_()}${D_()}`}});function D_(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $x=new $("Platform Initializer"),Tf=new $("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),qx=new $("appBootstrapListener"),Xx=new $("AnimationModuleType");let OG=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const jo=new $("LocaleId",{providedIn:"root",factory:()=>Xt(jo,pe.Optional|pe.SkipSelf)||function kG(){return typeof $localize<"u"&&$localize.locale||yc}()});class FG{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let I_=(()=>{class n{compileModuleSync(e){return new p_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Lo(z(e).declarations).reduce((s,a)=>{const l=ot(a);return l&&s.push(new hd(l)),s},[]);return new FG(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const LG=(()=>Promise.resolve(0))();function S_(n){typeof Zone>"u"?LG.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class At{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new te(!1),this.onMicrotaskEmpty=new te(!1),this.onStable=new te(!1),this.onError=new te(!1),typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function QG(){let n=mt.requestAnimationFrame,t=mt.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function zG(n){const t=()=>{!function jG(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(mt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,T_(n),n.isCheckStableRunning=!0,x_(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),T_(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return tT(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),nT(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return tT(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),nT(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,T_(n),x_(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!At.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(At.isInAngularZone())throw new P(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,UG,If,If);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const UG={};function x_(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function T_(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function tT(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function nT(n){n._nesting--,x_(n)}class HG{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new te,this.onMicrotaskEmpty=new te,this.onStable=new te,this.onError=new te}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const iT=new $(""),Bf=new $("");let k_,B_=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,k_||(function VG(n){k_=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.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:()=>{At.assertNotInAngularZone(),S_(()=>{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())S_(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(O_),j(Bf))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),O_=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return k_?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),ws=null;const rT=new $("AllowMultipleToken"),P_=new $("PlatformDestroyListeners");class oT{constructor(t,e){this.name=t,this.token=e}}function aT(n,t,e=[]){const i=`Platform: ${t}`,r=new $(i);return(o=[])=>{let s=F_();if(!s||s.injector.get(rT,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function WG(n){if(ws&&!ws.get(rT,!1))throw new P(400,!1);ws=n;const t=n.get(cT);(function sT(n){const t=n.get($x,null);t&&t.forEach(e=>e())})(n)}(function lT(n=[],t){return Tn.create({name:t,providers:[{provide:ny,useValue:"platform"},{provide:P_,useValue:new Set([()=>ws=null])},...n]})}(a,i))}return function KG(n){const t=F_();if(!t)throw new P(401,!1);return t}()}}function F_(){return ws?.get(cT)??null}let cT=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function dT(n,t){let e;return e="noop"===n?new HG:("zone.js"===n?void 0:n)||new At(t),e}(i?.ngZone,function uT(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:At,useValue:r}];return r.run(()=>{const s=Tn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(nc,null);if(!l)throw new P(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Of(this._modules,a),c.unsubscribe()})}),function hT(n,t,e){try{const i=e();return gd(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(xf);return c.runInitializers(),c.donePromise.then(()=>(function NS(n){ti(n,"Expected localeId to be defined"),"string"==typeof n&&(RS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(jo,yc)||yc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=pT({},i);return function GG(n,t,e){const i=new p_(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ua);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new P(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new P(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(P_,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(j(Tn))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function pT(n,t){return Array.isArray(t)?t.reduce(pT,n):{...n,...t}}let Ua=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new et(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new et(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{At.assertNotInAngularZone(),S_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{At.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=va(o,s.pipe(function Ep(){return n=>Ma()(function _p(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new ub(r,t));const o=Object.create(i,cb);return o.source=i,o.subjectFactory=r,o}}(Io)(n))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof uD;if(!this._injector.get(xf).done)throw!r&&function R(n){const t=ot(n)||_(n)||M(n);return null!==t&&t.standalone}(e),new P(405,false);let s;s=r?e:this._injector.get(Es).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function YG(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Ra),c=s.create(Tn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(iT,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Of(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new P(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Of(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(qx,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Of(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new P(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(_s),j(nc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Of(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let gT=!0,mT=!1,ai=(()=>{class n{}return n.__NG_ELEMENT_ID__=ZG,n})();function ZG(n){return function eY(n,t,e){if(Sp(n)&&!e){const i=Bi(n.index,t);return new dd(i,i)}return 47&n.type?new dd(t[16],t):null}(fn(),N(),16==(16&n))}class _T{constructor(){}supports(t){return pd(t)}create(t){return new sY(t)}}const oY=(n,t)=>t;class sY{constructor(t){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=t||oY}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new aY(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ET),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ET),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class aY{constructor(t,e){this.item=t,this.trackById=e,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 lY{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class ET{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new lY,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function CT(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new uY(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class uY{constructor(t){this.key=t,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 MT(){return new Ff([new _T])}let Ff=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||MT()),deps:[[n,new ed,new Zu]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new P(901,!1)}}return n.\u0275prov=Y({token:n,providedIn:"root",factory:MT}),n})();function wT(){return new Dd([new vT])}let Dd=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||wT()),deps:[[n,new ed,new Zu]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new P(901,!1)}}return n.\u0275prov=Y({token:n,providedIn:"root",factory:wT}),n})();const pY=aT(null,"core",[]);let fY=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(j(Ua))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();let Rf=null;function oo(){return Rf}const Jt=new $("DocumentToken");let U_=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return function bY(){return j(DT)}()},providedIn:"platform"}),n})();const yY=new $("Location Initialized");let DT=(()=>{class n extends U_{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return oo().getBaseHref(this._doc)}onPopState(e){const i=oo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=oo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){IT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){IT()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(){return function _Y(){return new DT(j(Jt))}()},providedIn:"platform"}),n})();function IT(){return!!window.history.pushState}function j_(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function ST(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Vo(n){return n&&"?"!==n[0]?"?"+n:n}let za=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return Xt(TT)},providedIn:"root"}),n})();const xT=new $("appBaseHref");let TT=(()=>{class n extends za{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Xt(Jt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return j_(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Vo(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Vo(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Vo(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(j(U_),j(xT,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EY=(()=>{class n extends za{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=j_(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Vo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Vo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(j(U_),j(xT,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),z_=(()=>{class n{constructor(e){this._subject=new te,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=ST(BT(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Vo(i))}normalize(e){return n.stripTrailingSlash(function vY(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,BT(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vo(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vo(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Vo,n.joinWithSlash=j_,n.stripTrailingSlash=ST,n.\u0275fac=function(e){return new(e||n)(j(za))},n.\u0275prov=Y({token:n,factory:function(){return function CY(){return new z_(j(za))}()},providedIn:"root"}),n})();function BT(n){return n.replace(/\/index.html$/,"")}function UT(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let zn=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(pd(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${rt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(T(Ff),T(Dd),T(St),T(qr))},n.\u0275dir=ue({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class l3{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}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 tr=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new l3(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),HT(a,r)}});for(let r=0,o=i.length;r{HT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(T(Ni),T(ro),T(Ff))},n.\u0275dir=ue({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function HT(n,t){n.context.$implicit=t.item}let Pt=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new u3,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){VT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){VT("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(T(Ni),T(ro))},n.\u0275dir=ue({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class u3{constructor(){this.$implicit=null,this.ngIf=null}}function VT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${rt(t)}'.`)}class X_{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let xd=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new X_(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(T(Ni),T(ro),T(xd,9))},n.\u0275dir=ue({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),eE=(()=>{class n{constructor(e,i,r){r._addDefault(new X_(e,i))}}return n.\u0275fac=function(e){return new(e||n)(T(Ni),T(ro),T(xd,9))},n.\u0275dir=ue({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),nr=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:_i.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(Dd),T(qr))},n.\u0275dir=ue({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Yo=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(T(Ni))},n.\u0275dir=ue({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[yi]}),n})();function Pr(n,t){return new P(2100,!1)}class h3{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class p3{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const f3=new p3,g3=new h3;let YT=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(gd(e))return f3;if(HI(e))return g3;throw Pr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(T(ai,16))},n.\u0275pipe=xn({name:"async",type:n,pure:!1,standalone:!0}),n})(),tE=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Pr();return e.toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=xn({name:"lowercase",type:n,pure:!0,standalone:!0}),n})();const m3=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uD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DF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52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]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let WT=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Pr();return e.replace(m3,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=xn({name:"titlecase",type:n,pure:!0,standalone:!0}),n})(),Kt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();const KT="browser";let P3=(()=>{class n{}return n.\u0275prov=Y({token:n,providedIn:"root",factory:()=>new F3(j(Jt),window)}),n})();class F3{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function R3(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=$T(this.window.history)||$T(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function $T(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class qT{}class sE extends class e5 extends class AY{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function mY(n){Rf||(Rf=n)}(new sE)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function t5(){return Bd=Bd||document.querySelector("base"),Bd?Bd.getAttribute("href"):null}();return null==e?null:function n5(n){Wf=Wf||document.createElement("a"),Wf.setAttribute("href",n);const t=Wf.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Bd=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return UT(document.cookie,t)}}let Wf,Bd=null;const t1=new $("TRANSITION_ID"),o5=[{provide:Sf,useFactory:function r5(n,t,e){return()=>{e.get(xf).donePromise.then(()=>{const i=oo(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Jf=new $("EventManagerPlugins");let Kf=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Od=(()=>{class n extends r1{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(o1),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(o1))}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();function o1(n){oo().remove(n)}const aE={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/"},lE=/%COMP%/g;function $f(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let qf=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new cE(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ti.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new p5(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ti.ShadowDom:return new f5(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=$f(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(j(Kf),j(Od),j(wd))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class cE{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(aE[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(u1(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(u1(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=aE[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=aE[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(_i.DashCase|_i.Important)?t.style.setProperty(e,i,r&_i.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&_i.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,l1(i)):this.eventManager.addEventListener(t,e,l1(i))}}function u1(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class p5 extends cE{constructor(t,e,i,r){super(t),this.component=i;const o=$f(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function u5(n){return"_ngcontent-%COMP%".replace(lE,n)}(r+"-"+i.id),this.hostAttr=function d5(n){return"_nghost-%COMP%".replace(lE,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class f5 extends cE{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=$f(r.id,r.styles,[]);for(let s=0;s{class n extends n1{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const d1=["alt","control","meta","shift"],m5={"\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"},A5={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let b5=(()=>{class n extends n1{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>oo().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),d1.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=m5[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),d1.forEach(s=>{s!==r&&(0,A5[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const p1=[{provide:Tf,useValue:KT},{provide:$x,useValue:function y5(){sE.makeCurrent()},multi:!0},{provide:Jt,useFactory:function E5(){return function TU(n){Yb=n}(document),document},deps:[]}],C5=aT(pY,"browser",p1),f1=new $(""),g1=[{provide:Bf,useClass:class s5{addToWindow(t){mt.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},mt.getAllAngularTestabilities=()=>t.getAllTestabilities(),mt.getAllAngularRootElements=()=>t.getAllRootElements(),mt.frameworkStabilizers||(mt.frameworkStabilizers=[]),mt.frameworkStabilizers.push(i=>{const r=mt.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?oo().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:iT,useClass:B_,deps:[At,O_,Bf]},{provide:B_,useClass:B_,deps:[At,O_,Bf]}],m1=[{provide:ny,useValue:"root"},{provide:nc,useFactory:function _5(){return new nc},deps:[]},{provide:Jf,useClass:g5,multi:!0,deps:[Jt,At,Tf]},{provide:Jf,useClass:b5,multi:!0,deps:[Jt]},{provide:qf,useClass:qf,deps:[Kf,Od,wd]},{provide:sd,useExisting:qf},{provide:r1,useExisting:Od},{provide:Od,useClass:Od,deps:[Jt]},{provide:Kf,useClass:Kf,deps:[Jf,At]},{provide:qT,useClass:a5,deps:[]},[]];let A1=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:wd,useValue:e.appId},{provide:t1,useExisting:wd},o5]}}}return n.\u0275fac=function(e){return new(e||n)(j(f1,12))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[...m1,...g1],imports:[Kt,fY]}),n})(),b1=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new e:function M5(){return new b1(j(Jt))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let hE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new(e||n):j(pE),i},providedIn:"root"}),n})(),pE=(()=>{class n extends hE{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case It.NONE:return i;case It.HTML:return Kr(i,"HTML")?Pi(i):Z0(this._doc,String(i)).toString();case It.STYLE:return Kr(i,"Style")?Pi(i):i;case It.SCRIPT:if(Kr(i,"Script"))return Pi(i);throw new Error("unsafe value used in a script context");case It.URL:return Kr(i,"URL")?Pi(i):id(String(i));case It.RESOURCE_URL:if(Kr(i,"ResourceURL"))return Pi(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function QU(n){return new kU(n)}(e)}bypassSecurityTrustStyle(e){return function UU(n){return new PU(n)}(e)}bypassSecurityTrustScript(e){return function jU(n){return new FU(n)}(e)}bypassSecurityTrustUrl(e){return function zU(n){return new RU(n)}(e)}bypassSecurityTrustResourceUrl(e){return function HU(n){return new NU(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new e:function B5(n){return new pE(n.get(Jt))}(j(Tn)),i},providedIn:"root"}),n})();function ae(...n){let t=n[n.length-1];return ds(t)?(n.pop(),Tl(n,t)):ps(n)}function Wo(n,t){return nn(n,t,1)}function ir(n,t){return function(i){return i.lift(new O5(n,t))}}class O5{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new k5(t,this.predicate,this.thisArg))}}class k5 extends Ge{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class E1{}class C1{}class Fr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Fr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Fr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Fr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class P5{encodeKey(t){return v1(t)}encodeValue(t){return v1(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const R5=/%(\d[a-f0-9])/gi,N5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function v1(n){return encodeURIComponent(n).replace(R5,(t,e)=>N5[e]??t)}function Xf(n){return`${n}`}class Is{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new P5,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function F5(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Xf):[Xf(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Is({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Xf(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Xf(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class L5{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function M1(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function w1(n){return typeof Blob<"u"&&n instanceof Blob}function D1(n){return typeof FormData<"u"&&n instanceof FormData}class kd{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function Q5(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Fr),this.context||(this.context=new L5),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new kd(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var jt=(()=>((jt=jt||{})[jt.Sent=0]="Sent",jt[jt.UploadProgress=1]="UploadProgress",jt[jt.ResponseHeader=2]="ResponseHeader",jt[jt.DownloadProgress=3]="DownloadProgress",jt[jt.Response=4]="Response",jt[jt.User=5]="User",jt))();class fE{constructor(t,e=200,i="OK"){this.headers=t.headers||new Fr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class gE extends fE{constructor(t={}){super(t),this.type=jt.ResponseHeader}clone(t={}){return new gE({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Zf extends fE{constructor(t={}){super(t),this.type=jt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Zf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class I1 extends fE{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function mE(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let vc=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof kd)o=e;else{let l,c;l=r.headers instanceof Fr?r.headers:new Fr(r.headers),r.params&&(c=r.params instanceof Is?r.params:new Is({fromObject:r.params})),o=new kd(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=ae(o).pipe(Wo(l=>this.handler.handle(l)));if(e instanceof kd||"events"===r.observe)return s;const a=s.pipe(ir(l=>l instanceof Zf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(fe(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(fe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Is).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,mE(r,i))}post(e,i,r={}){return this.request("POST",e,mE(r,i))}put(e,i,r={}){return this.request("PUT",e,mE(r,i))}}return n.\u0275fac=function(e){return new(e||n)(j(E1))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class S1{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const x1=new $("HTTP_INTERCEPTORS");let j5=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const z5=/^\)\]\}',?\n/;let T1=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new et(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((p,f)=>r.setRequestHeader(p,f.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&r.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();r.responseType="json"!==p?p:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const p=r.statusText||"OK",f=new Fr(r.getAllResponseHeaders()),g=function H5(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new gE({headers:f,status:r.status,statusText:p,url:g}),s},l=()=>{let{headers:p,status:f,statusText:g,url:m}=a(),A=null;204!==f&&(A=typeof r.response>"u"?r.responseText:r.response),0===f&&(f=A?200:0);let y=f>=200&&f<300;if("json"===e.responseType&&"string"==typeof A){const E=A;A=A.replace(z5,"");try{A=""!==A?JSON.parse(A):null}catch(b){A=E,y&&(y=!1,A={error:b,text:A})}}y?(i.next(new Zf({body:A,headers:p,status:f,statusText:g,url:m||void 0})),i.complete()):i.error(new I1({error:A,headers:p,status:f,statusText:g,url:m||void 0}))},c=p=>{const{url:f}=a(),g=new I1({error:p,status:r.status||0,statusText:r.statusText||"Unknown Error",url:f||void 0});i.error(g)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let f={type:jt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),"text"===e.responseType&&!!r.responseText&&(f.partialText=r.responseText),i.next(f)},h=p=>{let f={type:jt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),i.next(f)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:jt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(j(qT))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const AE=new $("XSRF_COOKIE_NAME"),bE=new $("XSRF_HEADER_NAME");class B1{}let V5=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=UT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(Tf),j(AE))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),yE=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(j(B1),j(bE))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),G5=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(x1,[]);this.chain=i.reduceRight((r,o)=>new S1(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(j(C1),j(Tn))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Y5=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:yE,useClass:j5}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:AE,useValue:e.cookieName}:[],e.headerName?{provide:bE,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[yE,{provide:x1,useExisting:yE,multi:!0},{provide:B1,useClass:V5},{provide:AE,useValue:"XSRF-TOKEN"},{provide:bE,useValue:"X-XSRF-TOKEN"}]}),n})(),_E=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[vc,{provide:E1,useClass:G5},T1,{provide:C1,useExisting:T1}],imports:[Y5.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();class W5 extends We{constructor(t,e){super()}schedule(t,e=0){return this}}class eg extends W5{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let O1=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Rr extends O1{constructor(t,e=O1.now){super(t,()=>Rr.delegate&&Rr.delegate!==this?Rr.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Rr.delegate&&Rr.delegate!==this?Rr.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const EE=new class K5 extends Rr{}(class J5 extends eg{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),$5=EE,Mc=new et(n=>n.complete());function tg(n){return n?function q5(n){return new et(t=>n.schedule(()=>t.complete()))}(n):Mc}function Ss(n,t){return new et(t?e=>t.schedule(X5,0,{error:n,subscriber:e}):e=>e.error(n))}function X5({error:n,subscriber:t}){t.error(n)}class rr{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return ae(this.value);case"E":return Ss(this.error);case"C":return tg()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new rr("N",t):rr.undefinedValueNotification}static createError(t){return new rr("E",void 0,t)}static createComplete(){return rr.completeNotification}}rr.completeNotification=new rr("C"),rr.undefinedValueNotification=new rr("N",void 0);class ng extends Ge{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(ng.dispatch,this.delay,new e8(t,this.destination)))}_next(t){this.scheduleMessage(rr.createNext(t))}_error(t){this.scheduleMessage(rr.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(rr.createComplete()),this.unsubscribe()}}class e8{constructor(t,e){this.notification=t,this.destination=e}}class ig extends Me{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new t8(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new Cr;if(this.isStopped||this.hasError?s=We.EMPTY:(this.observers.push(t),s=new Cu(this,t)),r&&t.add(t=new ng(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class t8{constructor(t,e){this.time=t,this.value=e}}function Li(n,t){return"function"==typeof t?e=>e.pipe(Li((i,r)=>Lt(n(i,r)).pipe(fe((o,s)=>t(i,o,r,s))))):e=>e.lift(new n8(n))}class n8{constructor(t){this.project=t}call(t,e){return e.subscribe(new i8(t,this.project))}}class i8 extends Ea{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new _a(this),r=this.destination;r.add(i),this.innerSubscription=Ca(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const rg={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return rg.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return rg.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let CE;function h8(n,t,e){let i=e;return function o8(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,o)=>!("*"===r||!function a8(n,t){if(!CE){const e=Element.prototype;CE=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&CE.call(n,t)}(n,r)||(i=o,0))),i}class f8{constructor(t,e){this.componentFactory=e.get(Es).resolveComponentFactory(t)}create(t){return new g8(this.componentFactory,t)}}class g8{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new ig(1),this.events=this.eventEmitters.pipe(Li(i=>va(...i))),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:i})=>i)),this.ngZone=this.injector.get(At),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=rg.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function l8(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Tn.create({providers:[],parent:this.injector}),i=function d8(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=e.length;o{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(fe(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=rg.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),o=r?void 0:this.getInputValue(t);this.inputChanges[t]=new $w(o,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class m8 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function og(n,t){return new et(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let k1=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(T(qr),T(St))},n.\u0275dir=ue({type:n}),n})(),Ha=(()=>{class n extends k1{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=vn(n)))(i||n)}}(),n.\u0275dir=ue({type:n,features:[lt]}),n})();const Qi=new $("NgValueAccessor"),_8={provide:Qi,useExisting:Je(()=>wc),multi:!0},C8=new $("CompositionEventMode");let wc=(()=>{class n extends k1{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function E8(){const n=oo()?oo().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(T(qr),T(St),T(C8,8))},n.\u0275dir=ue({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&K("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[yt([_8]),lt]}),n})();function xs(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function F1(n){return null!=n&&"number"==typeof n.length}const Vn=new $("NgValidators"),Ts=new $("NgAsyncValidators"),M8=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class vE{static min(t){return function R1(n){return t=>{if(xs(t.value)||xs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(xs(t.value)||xs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function L1(n){return xs(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Q1(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function U1(n){return xs(n.value)||M8.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function j1(n){return t=>xs(t.value)||!F1(t.value)?null:t.value.lengthF1(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function H1(n){if(!n)return sg;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(xs(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return K1(t)}static composeAsync(t){return $1(t)}}function sg(n){return null}function V1(n){return null!=n}function G1(n){return gd(n)?Lt(n):n}function Y1(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function W1(n,t){return t.map(e=>e(n))}function J1(n){return n.map(t=>function w8(n){return!n.validate}(t)?t:e=>t.validate(e))}function K1(n){if(!n)return null;const t=n.filter(V1);return 0==t.length?null:function(e){return Y1(W1(e,t))}}function ME(n){return null!=n?K1(J1(n)):null}function $1(n){if(!n)return null;const t=n.filter(V1);return 0==t.length?null:function(e){return function b8(...n){if(1===n.length){const t=n[0];if(Er(t))return og(t,null);if(ga(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return og(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return og(n=1===n.length&&Er(n[0])?n[0]:n,null).pipe(fe(e=>t(...e)))}return og(n,null)}(W1(e,t).map(G1)).pipe(fe(Y1))}}function wE(n){return null!=n?$1(J1(n)):null}function q1(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function X1(n){return n._rawValidators}function Z1(n){return n._rawAsyncValidators}function DE(n){return n?Array.isArray(n)?n:[n]:[]}function ag(n,t){return Array.isArray(n)?n.includes(t):n===t}function eB(n,t){const e=DE(t);return DE(n).forEach(r=>{ag(e,r)||e.push(r)}),e}function tB(n,t){return DE(t).filter(e=>!ag(n,e))}class nB{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(t){this._rawValidators=t||[],this._composedValidatorFn=ME(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=wE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class li extends nB{get formDirective(){return null}get path(){return null}}class Bs extends nB{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class iB{constructor(t){this._cd=t}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 Pd=(()=>{class n extends iB{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Bs,2))},n.\u0275dir=ue({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Ms("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[lt]}),n})(),lg=(()=>{class n extends iB{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(T(li,10))},n.\u0275dir=ue({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Ms("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[lt]}),n})();const Fd="VALID",ug="INVALID",Dc="PENDING",Rd="DISABLED";function TE(n){return(dg(n)?n.validators:n)||null}function oB(n){return Array.isArray(n)?ME(n):n||null}function BE(n,t){return(dg(t)?t.asyncValidators:n)||null}function sB(n){return Array.isArray(n)?wE(n):n||null}function dg(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function aB(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new P(1e3,"");if(!i[e])throw new P(1001,"")}function lB(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new P(1002,"")})}class hg{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=oB(this._rawValidators),this._composedAsyncValidatorFn=sB(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Fd}get invalid(){return this.status===ug}get pending(){return this.status==Dc}get disabled(){return this.status===Rd}get enabled(){return this.status!==Rd}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=oB(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=sB(t)}addValidators(t){this.setValidators(eB(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(eB(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(tB(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(tB(t,this._rawAsyncValidators))}hasValidator(t){return ag(this._rawValidators,t)}hasAsyncValidator(t){return ag(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Dc,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Rd,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Fd,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fd||this.status===Dc)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Rd:Fd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Dc,this._hasOwnPendingAsyncValidator=!0;const e=G1(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new te,this.statusChanges=new te}_calculateStatus(){return this._allControlsDisabled()?Rd:this.errors?ug:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dc)?Dc:this._anyControlsHaveStatus(ug)?ug:Fd}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){dg(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class Nd extends hg{constructor(t,e,i){super(TE(e),BE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){lB(this,0,t),Object.keys(t).forEach(i=>{aB(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class cB extends Nd{}function pg(n,t){return[...t.path,n]}function Ld(n,t){OE(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function k8(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&uB(n,t)})}(n,t),function F8(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function P8(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&uB(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function O8(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function fg(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),mg(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function gg(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function OE(n,t){const e=X1(n);null!==t.validator?n.setValidators(q1(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Z1(n);null!==t.asyncValidator?n.setAsyncValidators(q1(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();gg(t._rawValidators,r),gg(t._rawAsyncValidators,r)}function mg(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=X1(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=Z1(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return gg(t._rawValidators,i),gg(t._rawAsyncValidators,i),e}function uB(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function kE(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function PE(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===wc?e=o:function L8(n){return Object.getPrototypeOf(n.constructor)===Ha}(o)?i=o:r=o}),r||i||e||null}function fB(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function gB(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Ud=class extends hg{constructor(t=null,e,i){super(TE(e),BE(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),dg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=gB(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){fB(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){fB(this._onDisabledChange,t)}_forEachChild(t){}_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(t){gB(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},H8={provide:Bs,useExisting:Je(()=>Ag)},bB=(()=>Promise.resolve(null))();let Ag=(()=>{class n extends Bs{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new Ud,this._registered=!1,this.update=new te,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=PE(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),kE(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){Ld(this.control,this),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(e){bB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function Ho(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);bB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?pg(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(T(li,9),T(Vn,10),T(Ts,10),T(Qi,10),T(ai,8))},n.\u0275dir=ue({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([H8]),lt,yi]}),n})(),bg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ue({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),_B=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();const RE=new $("NgModelWithFormControlWarning"),K8={provide:li,useExisting:Je(()=>Ic)};let Ic=(()=>{class n extends li{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new te,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(mg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ld(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){fg(e.control||null,e,!1),function Q8(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function pB(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(fg(i||null,e),(n=>n instanceof Ud)(r)&&(Ld(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function dB(n,t){OE(n,t)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function R8(n,t){return mg(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){OE(this.form,this),this._oldForm&&mg(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(T(Vn,10),T(Ts,10))},n.\u0275dir=ue({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&K("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yt([K8]),lt,yi]}),n})();const X8={provide:Bs,useExisting:Je(()=>jd)};let jd=(()=>{class n extends Bs{constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new te,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=PE(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),kE(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return pg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(T(li,13),T(Vn,10),T(Ts,10),T(Qi,10),T(RE,8))},n.\u0275dir=ue({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[yt([X8]),lt,yi]}),n})(),RB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[_B]}),n})(),yg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[RB]}),n})(),zd=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:RE,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[RB]}),n})();class NB extends hg{constructor(t,e,i){super(TE(e),BE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){lB(this,0,t),t.forEach((i,r)=>{aB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function LB(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let zE=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return LB(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Nd(r,o)}record(e,i=null){const r=this._reduceControls(e);return new cB(r,i)}control(e,i,r){let o={};return this.useNonNullable?(LB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Ud(e,{...o,nonNullable:!0})):new Ud(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new NB(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Ud||e instanceof hg?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:zd}),n})();class QB{}const Jo="*";function fW(n,t){return{type:7,name:n,definitions:t,options:{}}}function UB(n,t=null){return{type:4,styles:t,timings:n}}function jB(n,t=null){return{type:2,steps:n,options:t}}function _g(n){return{type:6,styles:n,offset:null}}function zB(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function HB(n){Promise.resolve(null).then(n)}class Hd{constructor(t=0,e=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){HB(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class VB{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?HB(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function GB(n){return new P(3e3,!1)}function KW(){return typeof window<"u"&&typeof window.document<"u"}function VE(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Os(n){switch(n.length){case 0:return new Hd;case 1:return n[0];default:return new VB(n)}}function YB(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,p=h&&c||new Map;u.forEach((f,g)=>{let m=g,A=f;if("offset"!==g)switch(m=t.normalizePropertyName(m,s),A){case"!":A=r.get(g);break;case Jo:A=o.get(g);break;default:A=t.normalizeStyleValue(g,m,A,s)}p.set(m,A)}),h||a.push(p),c=p,l=d}),s.length)throw function NW(n){return new P(3502,!1)}();return a}function GE(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&YE(e,"start",n)));break;case"done":n.onDone(()=>i(e&&YE(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&YE(e,"destroy",n)))}}function YE(n,t,e){const o=WE(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function WE(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Ui(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function WB(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let JE=(n,t)=>!1,JB=(n,t,e)=>[],KB=null;function KE(n){const t=n.parentNode||n.host;return t===KB?null:t}(VE()||typeof Element<"u")&&(KW()?(KB=(()=>document.documentElement)(),JE=(n,t)=>{for(;t;){if(t===n)return!0;t=KE(t)}return!1}):JE=(n,t)=>n.contains(t),JB=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Ga=null,$B=!1;const qB=JE,XB=JB;let ZB=(()=>{class n{validateStyleProperty(e){return function qW(n){Ga||(Ga=function XW(){return typeof document<"u"?document.body:null}()||{},$B=!!Ga.style&&"WebkitAppearance"in Ga.style);let t=!0;return Ga.style&&!function $W(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ga.style,!t&&$B&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ga.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return qB(e,i)}getParentElement(e){return KE(e)}query(e,i,r){return XB(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Hd(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),$E=(()=>{class n{}return n.NOOP=new ZB,n})();const qE="ng-enter",Eg="ng-leave",Cg="ng-trigger",vg=".ng-trigger",tO="ng-animating",XE=".ng-animating";function ks(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:ZE(parseFloat(t[1]),t[2])}function ZE(n,t){return"s"===t?1e3*n:n}function Mg(n,t,e){return n.hasOwnProperty("duration")?n:function tJ(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(GB()),{duration:0,delay:0,easing:""};r=ZE(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=ZE(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function gW(){return new P(3100,!1)}()),a=!0),o<0&&(t.push(function mW(){return new P(3101,!1)}()),a=!0),a&&t.splice(l,0,GB())}return{duration:r,delay:o,easing:s}}(n,t,e)}function Vd(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function nO(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Ps(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function rO(n,t,e){return e?t+":"+e+";":""}function oO(n){let t="";for(let e=0;e{const o=tC(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),VE()&&oO(n))}function Ya(n,t){n.style&&(t.forEach((e,i)=>{const r=tC(i);n.style[r]=""}),VE()&&oO(n))}function Gd(n){return Array.isArray(n)?1==n.length?n[0]:jB(n):n}const eC=new RegExp("{{\\s*(.+?)\\s*}}","g");function sO(n){let t=[];if("string"==typeof n){let e;for(;e=eC.exec(n);)t.push(e[1]);eC.lastIndex=0}return t}function wg(n,t,e){const i=n.toString(),r=i.replace(eC,(o,s)=>{let a=t[s];return null==a&&(e.push(function bW(n){return new P(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Dg(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const rJ=/-+([a-z0-9])/g;function tC(n){return n.replace(rJ,(...t)=>t[1].toUpperCase())}function oJ(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ji(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function yW(n){return new P(3004,!1)}()}}function aO(n,t){return window.getComputedStyle(n)[t]}function dJ(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function hJ(n,t,e){if(":"==n[0]){const l=function pJ(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function OW(n){return new P(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(lO(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(lO(s,r))}(i,e,t)):e.push(n),e}const Tg=new Set(["true","1"]),Bg=new Set(["false","0"]);function lO(n,t){const e=Tg.has(n)||Bg.has(n),i=Tg.has(t)||Bg.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Tg.has(n):Bg.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Tg.has(t):Bg.has(t)),s&&a}}const fJ=new RegExp("s*:selfs*,?","g");function nC(n,t,e,i){return new gJ(n).build(t,e,i)}class gJ{constructor(t){this._driver=t}build(t,e,i){const r=new bJ(e);return this._resetContextStyleTimingState(r),ji(this,Gd(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function EW(){return new P(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function CW(){return new P(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{sO(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Dg(o.values()),e.errors.push(function vW(n,t){return new P(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=ji(this,Gd(t.animation),e);return{type:1,matchers:dJ(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Wa(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>ji(this,i,e)),options:Wa(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=ji(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Wa(t.options)}}visitAnimate(t,e){const i=function _J(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return iC(Mg(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=iC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Mg(e,t);return iC(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:_g({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=_g(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Jo?i.push(a):e.errors.push(new P(3002,!1)):i.push(nO(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function wW(n,t,e,i,r){return new P(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function iJ(n,t,e){const i=t.params||{},r=sO(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function AW(n){return new P(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function DW(){return new P(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(A=>{const y=this._makeStyleAst(A,e);let E=null!=y.offset?y.offset:function yJ(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(y.styles),b=0;return null!=E&&(o++,b=y.offset=E),l=l||b<0||b>1,a=a||b0&&o{const E=h>0?y==p?1:h*y:s[y],b=E*m;e.currentTime=f+g.delay+b,g.duration=b,this._validateStyleAst(A,e),A.offset=E,i.styles.push(A)}),i}visitReference(t,e){return{type:8,animation:ji(this,Gd(t.animation),e),options:Wa(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Wa(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Wa(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function mJ(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(fJ,"")),n=n.replace(/@\*/g,vg).replace(/@\w+/g,e=>vg+"-"+e.slice(1)).replace(/:animating/g,XE),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Ui(e.collectedStyles,e.currentQuerySelector,new Map);const a=ji(this,Gd(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Wa(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function TW(){return new P(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Mg(t.timings,e.errors,!0);return{type:12,animation:ji(this,Gd(t.animation),e),timings:i,options:null}}}class bJ{constructor(t){this.errors=t,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 Wa(n){return n?(n=Vd(n)).params&&(n.params=function AJ(n){return n?Vd(n):null}(n.params)):n={},n}function iC(n,t,e){return{duration:n,delay:t,easing:e}}function rC(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Og{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const vJ=new RegExp(":enter","g"),wJ=new RegExp(":leave","g");function oC(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new DJ).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class DJ{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new Og;const d=new sC(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?ks(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),ji(this,i,d);const p=d.timelines.filter(f=>f.containsAnimation());if(p.length&&a.size){let f;for(let g=p.length-1;g>=0;g--){const m=p[g];if(m.element===e){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return p.length?p.map(f=>f.buildKeyframes()):[rC(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?ks(i.duration):null,a=null!=i.delay?ks(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),ji(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=kg);const s=ks(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>ji(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?ks(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),ji(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Mg(e.params?wg(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?ks(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kg);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),ji(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ji(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const kg={};class sC{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Pg(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=ks(i.duration)),null!=i.delay&&(r.delay=ks(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=wg(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new sC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=kg,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new IJ(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(vJ,"."+this._enterClassName)).replace(wJ,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function BW(n){return new P(3014,!1)}()),a}}class Pg{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Pg(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Jo),this._currentKeyframe.set(e,Jo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function SJ(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Jo)}else Ps(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=wg(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Jo),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ps(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Jo&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Dg(t.values()):[],s=e.size?Dg(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return rC(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class IJ extends Pg{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Ps(t[0]);l.set("offset",0),o.push(l);const c=Ps(t[0]);c.set("offset",dO(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Ps(t[d]);const p=h.get("offset");h.set("offset",dO((e+p*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return rC(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function dO(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class aC{}const xJ=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 TJ extends aC{normalizePropertyName(t,e){return tC(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(xJ.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function _W(n,t){return new P(3005,!1)}())}return s+o}}function hO(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const lC={};class pO{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function BJ(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||lC,f=this.buildStyles(i,a&&a.params||lC,d),g=l&&l.params||lC,m=this.buildStyles(r,g,d),A=new Set,y=new Map,E=new Map,b="void"===r,D={params:OJ(g,h),delay:this.ast.options?.delay},I=u?[]:oC(t,e,this.ast.animation,o,s,f,m,D,c,d);let Q=0;if(I.forEach(q=>{Q=Math.max(q.duration+q.delay,Q)}),d.length)return hO(e,this._triggerName,i,r,b,f,m,[],[],y,E,Q,d);I.forEach(q=>{const le=q.element,xe=Ui(y,le,new Set);q.preStyleProps.forEach(Ae=>xe.add(Ae));const ke=Ui(E,le,new Set);q.postStyleProps.forEach(Ae=>ke.add(Ae)),le!==e&&A.add(le)});const O=Dg(A.values());return hO(e,this._triggerName,i,r,b,f,m,I,O,y,E,Q)}}function OJ(n,t){const e=Vd(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class kJ{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Vd(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=wg(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class FJ{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new kJ(r.style,r.options&&r.options.params||{},i))}),fO(this.states,"true","1"),fO(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new pO(t,r,this.states))}),this.fallbackTransition=function RJ(n,t,e){return new pO(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function fO(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const NJ=new Og;class LJ{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=nC(this._driver,e,i,[]);if(i.length)throw function LW(n){return new P(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=YB(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=oC(this._driver,e,o,qE,Eg,new Map,new Map,i,NJ,r),s.forEach(u=>{const d=Ui(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function QW(){return new P(3300,!1)}()),s=[]),r.length)throw function UW(n){return new P(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,Jo))})});const c=Os(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function jW(n){return new P(3301,!1)}();return e}listen(t,e,i,r){const o=WE(e,"","","");return GE(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const gO="ng-animate-queued",cC="ng-animate-disabled",HJ=[],mO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},VJ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},or="__ng_removed";class uC{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function JJ(n){return n??null}(i?t.value:t),i){const o=Vd(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Yd="void",dC=new uC(Yd);class GJ{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,sr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function zW(n,t){return new P(3302,!1)}();if(null==i||0==i.length)throw function HW(n){return new P(3303,!1)}();if(!function KJ(n){return"start"==n||"done"==n}(i))throw function VW(n,t){return new P(3400,!1)}();const o=Ui(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Ui(this._engine.statesByElement,t,new Map);return a.has(e)||(sr(t,Cg),sr(t,Cg+"-"+e),a.set(e,dC)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function GW(n){return new P(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new hC(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(sr(t,Cg),sr(t,Cg+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new uC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=dC),c.value!==Yd&&l.value===c.value){if(!function XJ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Ya(t,m),so(t,A)})}return}const h=Ui(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let p=o.matchTransition(l.value,c.value,t,c.params),f=!1;if(!p){if(!r)return;p=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:f}),f||(sr(t,gO),s.onStart(()=>{Sc(t,gO)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const m=this._engine.playersByElement.get(t);if(m){let A=m.indexOf(s);A>=0&&m.splice(A,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,vg,!0);i.forEach(r=>{if(r[or])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Yd,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Os(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||dC,u=new uC(Yd),d=new hC(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[or];(!o||o===mO)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){sr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=WE(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,GE(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class YJ{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(r,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new GJ(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(Fg(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Fg(e))return;const o=e[or];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),sr(t,cC)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Sc(t,cC))}removeNode(t,e,i,r){if(Fg(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[or]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Fg(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,vg,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,XE,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Os(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[or];if(e&&e.setForRemoval){if(t[or]=mO,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(cC)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Os(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function YW(n){return new P(3402,!1)}()}_flushAnimations(t,e){const i=new Og,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(U=>{u.add(U);const V=this.driver.query(U,".ng-animate-queued",!0);for(let W=0;W{const W=qE+g++;f.set(V,W),U.forEach(X=>sr(X,W))});const m=[],A=new Set,y=new Set;for(let U=0;UA.add(X)):y.add(V))}const E=new Map,b=yO(h,Array.from(A));b.forEach((U,V)=>{const W=Eg+g++;E.set(V,W),U.forEach(X=>sr(X,W))}),t.push(()=>{p.forEach((U,V)=>{const W=f.get(V);U.forEach(X=>Sc(X,W))}),b.forEach((U,V)=>{const W=E.get(V);U.forEach(X=>Sc(X,W))}),m.forEach(U=>{this.processLeaveNode(U)})});const D=[],I=[];for(let U=this._namespaceList.length-1;U>=0;U--)this._namespaceList[U].drainQueuedTransitions(e).forEach(W=>{const X=W.player,Ce=W.element;if(D.push(X),this.collectedEnterElements.length){const Ht=Ce[or];if(Ht&&Ht.setForMove){if(Ht.previousTriggersValues&&Ht.previousTriggersValues.has(W.triggerName)){const Rn=Ht.previousTriggersValues.get(W.triggerName),En=this.statesByElement.get(W.element);if(En&&En.has(W.triggerName)){const Yi=En.get(W.triggerName);Yi.value=Rn,En.set(W.triggerName,Yi)}}return void X.destroy()}}const ft=!d||!this.driver.containsElement(d,Ce),Bt=E.get(Ce),un=f.get(Ce),Xe=this._buildInstruction(W,i,un,Bt,ft);if(Xe.errors&&Xe.errors.length)return void I.push(Xe);if(ft)return X.onStart(()=>Ya(Ce,Xe.fromStyles)),X.onDestroy(()=>so(Ce,Xe.toStyles)),void r.push(X);if(W.isFallbackTransition)return X.onStart(()=>Ya(Ce,Xe.fromStyles)),X.onDestroy(()=>so(Ce,Xe.toStyles)),void r.push(X);const Si=[];Xe.timelines.forEach(Ht=>{Ht.stretchStartingKeyframe=!0,this.disabledNodes.has(Ht.element)||Si.push(Ht)}),Xe.timelines=Si,i.append(Ce,Xe.timelines),s.push({instruction:Xe,player:X,element:Ce}),Xe.queriedElements.forEach(Ht=>Ui(a,Ht,[]).push(X)),Xe.preStyleProps.forEach((Ht,Rn)=>{if(Ht.size){let En=l.get(Rn);En||l.set(Rn,En=new Set),Ht.forEach((Yi,Mo)=>En.add(Mo))}}),Xe.postStyleProps.forEach((Ht,Rn)=>{let En=c.get(Rn);En||c.set(Rn,En=new Set),Ht.forEach((Yi,Mo)=>En.add(Mo))})});if(I.length){const U=[];I.forEach(V=>{U.push(function WW(n,t){return new P(3505,!1)}())}),D.forEach(V=>V.destroy()),this.reportError(U)}const Q=new Map,O=new Map;s.forEach(U=>{const V=U.element;i.has(V)&&(O.set(V,V),this._beforeAnimationBuild(U.player.namespaceId,U.instruction,Q))}),r.forEach(U=>{const V=U.element;this._getPreviousPlayers(V,!1,U.namespaceId,U.triggerName,null).forEach(X=>{Ui(Q,V,[]).push(X),X.destroy()})});const q=m.filter(U=>EO(U,l,c)),le=new Map;bO(le,this.driver,y,c,Jo).forEach(U=>{EO(U,l,c)&&q.push(U)});const ke=new Map;p.forEach((U,V)=>{bO(ke,this.driver,new Set(U),l,"!")}),q.forEach(U=>{const V=le.get(U),W=ke.get(U);le.set(U,new Map([...Array.from(V?.entries()??[]),...Array.from(W?.entries()??[])]))});const Ae=[],dt=[],ht={};s.forEach(U=>{const{element:V,player:W,instruction:X}=U;if(i.has(V)){if(u.has(V))return W.onDestroy(()=>so(V,X.toStyles)),W.disabled=!0,W.overrideTotalTime(X.totalTime),void r.push(W);let Ce=ht;if(O.size>1){let Bt=V;const un=[];for(;Bt=Bt.parentNode;){const Xe=O.get(Bt);if(Xe){Ce=Xe;break}un.push(Bt)}un.forEach(Xe=>O.set(Xe,Ce))}const ft=this._buildAnimation(W.namespaceId,X,Q,o,ke,le);if(W.setRealPlayer(ft),Ce===ht)Ae.push(W);else{const Bt=this.playersByElement.get(Ce);Bt&&Bt.length&&(W.parentPlayer=Os(Bt)),r.push(W)}}else Ya(V,X.fromStyles),W.onDestroy(()=>so(V,X.toStyles)),dt.push(W),u.has(V)&&r.push(W)}),dt.forEach(U=>{const V=o.get(U.element);if(V&&V.length){const W=Os(V);U.setRealPlayer(W)}}),r.forEach(U=>{U.parentPlayer?U.syncPlayerEvents(U.parentPlayer):U.destroy()});for(let U=0;U!ft.destroyed);Ce.length?$J(this,V,Ce):this.processLeaveNode(V)}return m.length=0,Ae.forEach(U=>{this.players.push(U),U.onDone(()=>{U.destroy();const V=this.players.indexOf(U);this.players.splice(V,1)}),U.play()}),Ae}elementContainsData(t,e){let i=!1;const r=e[or];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Yd;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Ui(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(p=>{const f=p.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),p.destroy(),d.push(p)})}Ya(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(f=>{const g=f.element;u.add(g);const m=g[or];if(m&&m.removedBeforeQueried)return new Hd(f.duration,f.delay);const A=g!==l,y=function qJ(n){const t=[];return _O(n,t),t}((i.get(g)||HJ).map(Q=>Q.getRealPlayer())).filter(Q=>!!Q.element&&Q.element===g),E=o.get(g),b=s.get(g),D=YB(0,this._normalizer,0,f.keyframes,E,b),I=this._buildPlayer(f,D,y);if(f.subTimeline&&r&&d.add(g),A){const Q=new hC(t,a,g);Q.setRealPlayer(I),c.push(Q)}return I});c.forEach(f=>{Ui(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>function WJ(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>sr(f,tO));const p=Os(h);return p.onDestroy(()=>{u.forEach(f=>Sc(f,tO)),so(l,e.toStyles)}),d.forEach(f=>{Ui(r,f,[]).push(p)}),p}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Hd(t.duration,t.delay)}}class hC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Hd,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>GE(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Ui(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Fg(n){return n&&1===n.nodeType}function AO(n,t){const e=n.style.display;return n.style.display=t??"none",e}function bO(n,t,e,i,r){const o=[];e.forEach(l=>o.push(AO(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[or]=VJ,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>AO(l,o[a++])),s}function yO(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function sr(n,t){n.classList?.add(t)}function Sc(n,t){n.classList?.remove(t)}function $J(n,t,e){Os(e).onDone(()=>n.processLeaveNode(t))}function _O(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Rg{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new YJ(t,e,i),this._timelineEngine=new LJ(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=nC(this._driver,o,l,[]);if(l.length)throw function RW(n,t){return new P(3404,!1)}();a=function PJ(n,t,e){return new FJ(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=WB(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=WB(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let eK=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&so(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(so(this._element,this._initialStyles),this._endStyles&&(so(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ya(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ya(this._element,this._endStyles),this._endStyles=null),so(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function pC(n){let t=null;return n.forEach((e,i)=>{(function tK(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class CO{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:aO(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class nK{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return qB(t,e)}getParentElement(t){return KE(t)}query(t,e,i){return XB(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(p=>p instanceof CO);(function sJ(n,t){return 0===n||0===t})(i,r)&&u.forEach(p=>{p.currentSnapshot.forEach((f,g)=>c.set(g,f))});let d=function nJ(n){return n.length?n[0]instanceof Map?n:n.map(t=>nO(t)):[]}(e).map(p=>Ps(p));d=function aJ(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,aO(n,a)))}}return t}(t,d,c);const h=function ZJ(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=pC(t[0]),t.length>1&&(i=pC(t[t.length-1]))):t instanceof Map&&(e=pC(t)),e||i?new eK(n,e,i):null}(t,d);return new CO(t,d,l,h)}}let iK=(()=>{class n extends QB{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ti.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?jB(e):e;return vO(this._renderer,null,i,"register",[r]),new rK(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(j(sd),j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class rK extends class pW{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new oK(this._id,t,e||{},this._renderer)}}class oK{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return vO(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function vO(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const MO="@.disabled";let sK=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new wO("",o,this.engine),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new aK(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(j(sd),j(Rg),j(At))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class wO{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==MO?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class aK extends wO{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==MO?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function lK(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function cK(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let uK=(()=>{class n extends Rg{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j($E),j(aC),j(Ua))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const DO=[{provide:QB,useClass:iK},{provide:aC,useFactory:function dK(){return new TJ}},{provide:Rg,useClass:uK},{provide:sd,useFactory:function hK(n,t,e){return new sK(n,t,e)},deps:[qf,Rg,At]}],fC=[{provide:$E,useFactory:()=>new nK},{provide:Xx,useValue:"BrowserAnimations"},...DO],IO=[{provide:$E,useClass:ZB},{provide:Xx,useValue:"NoopAnimations"},...DO];let pK=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?IO:fC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:fC,imports:[A1]}),n})();class wt{static equals(t,e,i){return i?this.resolveFieldData(t,i)===this.resolveFieldData(e,i):this.equalsByValue(t,e)}static equalsByValue(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var o,s,a,i=Array.isArray(t),r=Array.isArray(e);if(i&&r){if((s=t.length)!=e.length)return!1;for(o=s;0!=o--;)if(!this.equalsByValue(t[o],e[o]))return!1;return!0}if(i!=r)return!1;var l=t instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var h=Object.keys(t);if((s=h.length)!==Object.keys(e).length)return!1;for(o=s;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,h[o]))return!1;for(o=s;0!=o--;)if(!this.equalsByValue(t[a=h[o]],e[a]))return!1;return!0}return t!=t&&e!=e}static resolveFieldData(t,e){if(t&&e){if(this.isFunction(e))return e(t);if(-1==e.indexOf("."))return t[e];{let i=e.split("."),r=t;for(let o=0,s=i.length;o=t.length&&(i%=t.length,e%=t.length),t.splice(i,0,t.splice(e,1)[0]))}static insertIntoOrderedArray(t,e,i,r){if(i.length>0){let o=!1;for(let s=0;se){i.splice(s,0,t),o=!0;break}o||i.push(t)}else i.push(t)}static findIndexInList(t,e){let i=-1;if(e)for(let r=0;r-1&&(t=t.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),t}static isEmpty(t){return null==t||""===t||Array.isArray(t)&&0===t.length||!(t instanceof Date)&&"object"==typeof t&&0===Object.keys(t).length}static isNotEmpty(t){return!this.isEmpty(t)}static compare(t,e,i,r=1){let o=-1;const s=this.isEmpty(t),a=this.isEmpty(e);return o=s&&a?0:s?r:a?-r:"string"==typeof t&&"string"==typeof e?t.localeCompare(e,i,{numeric:!0}):te?1:0,o}static sort(t,e,i=1,r,o=1){return(1===o?i:o)*wt.compare(t,e,r,i)}static merge(t,e){return null!=t&&"object"!=typeof t||null!=e&&"object"!=typeof e?null!=t&&"string"!=typeof t||null!=e&&"string"!=typeof e?e||t:[t||"",e||""].join(" "):{...t||{},...e||{}}}}var gC=function fK(){let n=[];const r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=n.length>0?n[n.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+1;return n.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{n=n.filter(s=>s.value!==o)})(r(o)),o.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();const xO=["*"];let Gn=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),gK=(()=>{class n{constructor(){this.filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return wt.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,o.length)===o},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==wt.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===wt.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r),s=wt.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==s.indexOf(o,s.length-o.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():wt.removeAccents(e.toString()).toLocaleLowerCase(r)==wt.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():wt.removeAccents(e.toString()).toLocaleLowerCase(r)==wt.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;rnull==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()null==i||null!=e&&e.getTime()>i.getTime()}}filter(e,i,r,o,s){let a=[];if(e)for(let l of e)for(let c of i){let u=wt.resolveFieldData(l,c);if(this.filters[o](u,r,s)){a.push(l);break}}return a}register(e,i){this.filters[e]=i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mK=(()=>{class n{constructor(){this.messageSource=new Me,this.clearSource=new Me,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Lg=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[Gn.STARTS_WITH,Gn.CONTAINS,Gn.NOT_CONTAINS,Gn.ENDS_WITH,Gn.EQUALS,Gn.NOT_EQUALS],numeric:[Gn.EQUALS,Gn.NOT_EQUALS,Gn.LESS_THAN,Gn.LESS_THAN_OR_EQUAL_TO,Gn.GREATER_THAN,Gn.GREATER_THAN_OR_EQUAL_TO],date:[Gn.DATE_IS,Gn.DATE_IS_NOT,Gn.DATE_BEFORE,Gn.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new Me,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),TO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-header"]],ngContentSelectors:xO,decls:1,vars:0,template:function(e,i){1&e&&(eo(),Ri(0))},encapsulation:2}),n})(),BO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-footer"]],ngContentSelectors:xO,decls:1,vars:0,template:function(e,i){1&e&&(eo(),Ri(0))},encapsulation:2}),n})(),ar=(()=>{class n{constructor(e){this.template=e}getType(){return this.name}}return n.\u0275fac=function(e){return new(e||n)(T(ro))},n.\u0275dir=ue({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),Ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),Wd=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.NO_FILTER="noFilter",n.LT="lt",n.LTE="lte",n.GT="gt",n.GTE="gte",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.CLEAR="clear",n.APPLY="apply",n.MATCH_ALL="matchAll",n.MATCH_ANY="matchAny",n.ADD_RULE="addRule",n.REMOVE_RULE="removeRule",n.ACCEPT="accept",n.REJECT="reject",n.CHOOSE="choose",n.UPLOAD="upload",n.CANCEL="cancel",n.DAY_NAMES="dayNames",n.DAY_NAMES_SHORT="dayNamesShort",n.DAY_NAMES_MIN="dayNamesMin",n.MONTH_NAMES="monthNames",n.MONTH_NAMES_SHORT="monthNamesShort",n.FIRST_DAY_OF_WEEK="firstDayOfWeek",n.TODAY="today",n.WEEK_HEADER="weekHeader",n.WEAK="weak",n.MEDIUM="medium",n.STRONG="strong",n.PASSWORD_PROMPT="passwordPrompt",n.EMPTY_MESSAGE="emptyMessage",n.EMPTY_FILTER_MESSAGE="emptyFilterMessage",n})(),Z=(()=>{class n{static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let o=0;o{if(g)return"relative"===getComputedStyle(g).getPropertyValue("position")?g:r(g.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),h=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let p,f;a.top+s+o.height>u.height?(p=a.top-h.top-o.height,e.style.transformOrigin="bottom",a.top+p<0&&(p=-1*a.top)):(p=s+a.top-h.top,e.style.transformOrigin="top"),f=o.width>u.width?-1*(a.left-h.left):a.left-h.left+o.width>u.width?-1*(a.left-h.left+o.width-u.width):a.left-h.left,e.style.top=p+"px",e.style.left=f+"px"}static absolutePosition(e,i){const r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let p,f;c.top+a+o>h.height?(p=c.top+u-o,e.style.transformOrigin="bottom",p<0&&(p=u)):(p=a+c.top+u,e.style.transformOrigin="top"),f=c.left+s>h.width?Math.max(0,c.left+d+l-s):c.left+d,e.style.top=p+"px",e.style.left=f+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,d=e.scrollTop,h=e.clientHeight,p=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+p>h&&(e.scrollTop=d+u-h+p)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||o.clientWidth,height:e.innerHeight||r.clientHeight||o.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableElements(e){let i=n.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let o of i)"none"!=getComputedStyle(o).display&&"hidden"!=getComputedStyle(o).visibility&&r.push(o);return r}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof e;if("string"===r)return document.querySelector(e);if("object"===r&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const s=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})();class AK{constructor(t,e=(()=>{})){this.element=t,this.listener=e}bindScrollListener(){this.scrollableParents=Z.getScrollableParents(this.element);for(let t=0;t{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(Z.removeClass(i,"p-ink-active"),!Z.getHeight(i)&&!Z.getWidth(i)){let a=Math.max(Z.getOuterWidth(this.el.nativeElement),Z.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=Z.getOffset(this.el.nativeElement),o=e.pageX-r.left+document.body.scrollTop-Z.getWidth(i)/2,s=e.pageY-r.top+document.body.scrollLeft-Z.getHeight(i)/2;i.style.top=s+"px",i.style.left=o+"px",Z.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&Z.removeClass(a,"p-ink-active")},401)}getInk(){for(let e=0;e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const bK=["headerchkbox"],yK=["filter"];function _K(n,t){1&n&&Mt(0)}function EK(n,t){if(1&n&&(x(0,"div",7),Ri(1),S(2,_K,1,0,"ng-container",8),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.headerTemplate)}}const OO=function(n){return{"p-checkbox-disabled":n}},CK=function(n,t,e){return{"p-highlight":n,"p-focus":t,"p-disabled":e}},kO=function(n){return{"pi pi-check":n}};function vK(n,t){if(1&n){const e=Re();x(0,"div",12)(1,"div",13)(2,"input",14),K("focus",function(){return re(e),oe(w(2).onHeaderCheckboxFocus())})("blur",function(){return re(e),oe(w(2).onHeaderCheckboxBlur())})("keydown.space",function(r){return re(e),oe(w(2).toggleAll(r))}),B()(),x(3,"div",15,16),K("click",function(r){return re(e),oe(w(2).toggleAll(r))}),ie(5,"span",17),B()()}if(2&n){const e=w(2);C("ngClass",Wt(5,OO,e.disabled||e.toggleAllDisabled)),v(2),C("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),v(1),C("ngClass",Na(7,CK,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),v(2),C("ngClass",Wt(11,kO,e.allChecked))}}function MK(n,t){1&n&&Mt(0)}const wK=function(n){return{options:n}};function DK(n,t){if(1&n&&(ct(0),S(1,MK,1,0,"ng-container",18),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Wt(2,wK,e.filterOptions))}}function IK(n,t){if(1&n){const e=Re();x(0,"div",20)(1,"input",21,22),K("input",function(r){return re(e),oe(w(3).onFilter(r))}),B(),ie(3,"span",23),B()}if(2&n){const e=w(3);v(1),C("value",e.filterValue||"")("disabled",e.disabled),Ot("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function SK(n,t){1&n&&S(0,IK,4,4,"div",19),2&n&&C("ngIf",w(2).filter)}function xK(n,t){if(1&n&&(x(0,"div",7),S(1,vK,6,13,"div",9),S(2,DK,2,4,"ng-container",10),S(3,SK,1,1,"ng-template",null,11,on),B()),2&n){const e=Qt(4),i=w();v(1),C("ngIf",i.checkbox&&i.multiple&&i.showToggleAll),v(1),C("ngIf",i.filterTemplate)("ngIfElse",e)}}function TK(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w().$implicit,i=w(2);v(1),pt(i.getOptionGroupLabel(e)||"empty")}}function BK(n,t){1&n&&Mt(0)}function OK(n,t){1&n&&Mt(0)}const mC=function(n){return{$implicit:n}};function kK(n,t){if(1&n&&(x(0,"li",25),S(1,TK,2,1,"span",3),S(2,BK,1,0,"ng-container",18),B(),S(3,OK,1,0,"ng-container",18)),2&n){const e=t.$implicit,i=w(2),r=Qt(8);v(1),C("ngIf",!i.groupTemplate),v(1),C("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",Wt(5,mC,e)),v(1),C("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(7,mC,i.getOptionGroupChildren(e)))}}function PK(n,t){if(1&n&&(ct(0),S(1,kK,4,9,"ng-template",24),ut()),2&n){const e=w();v(1),C("ngForOf",e.optionsToRender)}}function FK(n,t){1&n&&Mt(0)}function RK(n,t){if(1&n&&(ct(0),S(1,FK,1,0,"ng-container",18),ut()),2&n){const e=w(),i=Qt(8);v(1),C("ngTemplateOutlet",i)("ngTemplateOutletContext",Wt(2,mC,e.optionsToRender))}}const NK=function(n){return{"p-highlight":n}};function LK(n,t){if(1&n&&(x(0,"div",12)(1,"div",28),ie(2,"span",17),B()()),2&n){const e=w().$implicit,i=w(2);C("ngClass",Wt(3,OO,i.disabled||i.isOptionDisabled(e))),v(1),C("ngClass",Wt(5,NK,i.isSelected(e))),v(1),C("ngClass",Wt(7,kO,i.isSelected(e)))}}function QK(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w().$implicit,i=w(2);v(1),pt(i.getOptionLabel(e))}}function UK(n,t){1&n&&Mt(0)}const jK=function(n,t){return{"p-listbox-item":!0,"p-highlight":n,"p-disabled":t}},zK=function(n,t){return{$implicit:n,index:t}};function HK(n,t){if(1&n){const e=Re();x(0,"li",27),K("click",function(r){const s=re(e).$implicit;return oe(w(2).onOptionClick(r,s))})("dblclick",function(r){const s=re(e).$implicit;return oe(w(2).onOptionDoubleClick(r,s))})("touchend",function(){const o=re(e).$implicit;return oe(w(2).onOptionTouchEnd(o))})("keydown",function(r){const s=re(e).$implicit;return oe(w(2).onOptionKeyDown(r,s))}),S(1,LK,3,9,"div",9),S(2,QK,2,1,"span",3),S(3,UK,1,0,"ng-container",18),B()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);C("ngClass",Xi(8,jK,r.isSelected(e),r.isOptionDisabled(e))),Ot("tabindex",r.disabled||r.isOptionDisabled(e)?null:"0")("aria-label",r.getOptionLabel(e))("aria-selected",r.isSelected(e)),v(1),C("ngIf",r.checkbox&&r.multiple),v(1),C("ngIf",!r.itemTemplate),v(1),C("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Xi(11,zK,e,i))}}function VK(n,t){1&n&&S(0,HK,4,14,"li",26),2&n&&C("ngForOf",t.$implicit)}function GK(n,t){if(1&n&&(ct(0),de(1),ut()),2&n){const e=w(2);v(1),no(" ",e.emptyFilterMessageLabel," ")}}function YK(n,t){1&n&&Mt(0,null,30)}function WK(n,t){if(1&n&&(x(0,"li",29),S(1,GK,2,1,"ng-container",10),S(2,YK,2,0,"ng-container",8),B()),2&n){const e=w();v(1),C("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),v(1),C("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function JK(n,t){if(1&n&&(ct(0),de(1),ut()),2&n){const e=w(2);v(1),no(" ",e.emptyMessageLabel," ")}}function KK(n,t){1&n&&Mt(0,null,31)}function $K(n,t){if(1&n&&(x(0,"li",29),S(1,JK,2,1,"ng-container",10),S(2,KK,2,0,"ng-container",8),B()),2&n){const e=w();v(1),C("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),v(1),C("ngTemplateOutlet",e.emptyTemplate)}}function qK(n,t){1&n&&Mt(0)}function XK(n,t){if(1&n&&(x(0,"div",32),Ri(1,1),S(2,qK,1,0,"ng-container",8),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.footerTemplate)}}const ZK=[[["p-header"]],[["p-footer"]]],e$=function(n){return{"p-listbox p-component":!0,"p-disabled":n}},t$=["p-header","p-footer"],n$={provide:Qi,useExisting:Je(()=>i$),multi:!0};let i$=(()=>{class n{constructor(e,i,r,o){this.el=e,this.cd=i,this.filterService=r,this.config=o,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onChange=new te,this.onClick=new te,this.onDblClick=new te,this.onModelChange=()=>{},this.onModelTouched=()=>{}}get options(){return this._options}set options(e){this._options=e,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.filterBy&&(this.filterOptions={filter:e=>this.onFilter(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template}})}getOptionLabel(e){return this.optionLabel?wt.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?wt.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?wt.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?wt.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?wt.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,i):this.onOptionClickMultiple(e,i):this.onOptionClickSingle(e,i),this.onClick.emit({originalEvent:e,option:i,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||this.onDblClick.emit({originalEvent:e,option:i,value:this.value})}onOptionClickSingle(e,i){let r=this.isSelected(i),o=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?a&&(this.value=null,o=!0):(this.value=this.getOptionValue(i),o=!0)}else this.value=r?null:this.getOptionValue(i),o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,i){let r=this.isSelected(i),o=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?(a?this.removeOption(i):this.value=[this.getOptionValue(i)],o=!0):(this.value=a&&this.value||[],this.value=[...this.value,this.getOptionValue(i)],o=!0)}else r?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,i){this.disabled||this.readonly||(this.isSelected(i)?this.removeOption(i):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(i)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(i=>!wt.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value)for(let o of this.value)if(wt.equals(o,r,this.dataKey)){i=!0;break}}else i=wt.equals(this.value,r,this.dataKey);return i}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{let i=0,r=0,o=0,s=this.group?0:this.optionsToRender.length;for(let a of e)if(this.group)for(let l of this.getOptionGroupChildren(a)){let c=this.isOptionDisabled(l),u=this.isSelected(l);if(c)u?i++:r++;else{if(!u)return!1;o++}s++}else{let l=this.isOptionDisabled(a),c=this.isSelected(a);if(l)c?i++:r++;else{if(!c)return!1;o++}}return s===i||s===o||o&&s===o+r+i}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Wd.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Wd.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(){return!this.optionsToRender||this.optionsToRender&&0===this.optionsToRender.length}onFilter(e){this._filterValue=e.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=(this.filterBy||this.optionLabel||"label").split(","),i=[];for(let r of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(r),e,this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&i.push({...r,[this.optionGroupChildren]:o})}this._filteredOptions=i}else this._filteredOptions=this._options.filter(e=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(e),this._filterValue,this.filterLocale));else this._filteredOptions=null}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue=null,this._filteredOptions=null}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let i of e)if(!this.isOptionDisabled(i))return!1;return!0}toggleAll(e){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),e.preventDefault())}checkAll(){let i=[];this.optionsToRender.forEach(r=>{if(this.group){let o=this.getOptionGroupChildren(r);o&&o.forEach(s=>{let a=this.isOptionDisabled(s);(!a||a&&this.isSelected(s))&&i.push(this.getOptionValue(s))})}else{let o=this.isOptionDisabled(r);(!o||o&&this.isSelected(r))&&i.push(this.getOptionValue(r))}}),this.value=i}uncheckAll(){let i=[];this.optionsToRender.forEach(r=>{this.group?r.items&&r.items.forEach(o=>{this.isOptionDisabled(o)&&this.isSelected(o)&&i.push(this.getOptionValue(o))}):this.isOptionDisabled(r)&&this.isSelected(r)&&i.push(this.getOptionValue(r))}),this.value=i}onOptionKeyDown(e,i){if(this.readonly)return;let r=e.currentTarget;switch(e.which){case 40:var o=this.findNextItem(r);o&&o.focus(),e.preventDefault();break;case 38:var s=this.findPrevItem(r);s&&s.focus(),e.preventDefault();break;case 13:this.onOptionClick(e,i),e.preventDefault()}}findNextItem(e){let i=e.nextElementSibling;return i?Z.hasClass(i,"p-disabled")||Z.isHidden(i)||Z.hasClass(i,"p-listbox-item-group")?this.findNextItem(i):i:null}findPrevItem(e){let i=e.previousElementSibling;return i?Z.hasClass(i,"p-disabled")||Z.isHidden(i)||Z.hasClass(i,"p-listbox-item-group")?this.findPrevItem(i):i:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(ai),T(gK),T(Lg))},n.\u0275cmp=ve({type:n,selectors:[["p-listbox"]],contentQueries:function(e,i,r){if(1&e&&(jn(r,TO,5),jn(r,BO,5),jn(r,ar,4)),2&e){let o;He(o=Ve())&&(i.headerFacet=o.first),He(o=Ve())&&(i.footerFacet=o.first),He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(bK,5),Zt(yK,5)),2&e){let r;He(r=Ve())&&(i.headerCheckboxViewChild=r.first),He(r=Ve())&&(i.filterViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[yt([n$])],ngContentSelectors:t$,decls:12,vars:18,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-empty-message",4,"ngIf"],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],["filter",""],[1,"p-listbox-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown",4,"ngFor","ngForOf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(e,i){1&e&&(eo(ZK),x(0,"div",0),S(1,EK,3,1,"div",1),S(2,xK,5,3,"div",1),x(3,"div",0)(4,"ul",2),S(5,PK,2,1,"ng-container",3),S(6,RK,2,4,"ng-container",3),S(7,VK,1,1,"ng-template",null,4,on),S(9,WK,3,3,"li",5),S(10,$K,3,3,"li",5),B()(),S(11,XK,3,1,"div",6),B()),2&e&&(Gt(i.styleClass),C("ngClass",Wt(16,e$,i.disabled))("ngStyle",i.style),v(1),C("ngIf",i.headerFacet||i.headerTemplate),v(1),C("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),v(1),Gt(i.listStyleClass),C("ngClass","p-listbox-list-wrapper")("ngStyle",i.listStyle),v(1),Ot("aria-multiselectable",i.multiple),v(1),C("ngIf",i.group),v(1),C("ngIf",!i.group),v(3),C("ngIf",i.hasFilter()&&i.isEmpty()),v(1),C("ngIf",!i.hasFilter()&&i.isEmpty()),v(1),C("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[zn,tr,Pt,Yo,nr,Jd],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),AC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ko,Ja,Ko]}),n})();function r$(n,t){1&n&&Mt(0)}const o$=function(n,t,e,i){return{"p-button-icon":!0,"p-button-icon-left":n,"p-button-icon-right":t,"p-button-icon-top":e,"p-button-icon-bottom":i}};function s$(n,t){if(1&n&&ie(0,"span",4),2&n){const e=w();Gt(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),C("ngClass",Mf(4,o$,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),Ot("aria-hidden",!0)}}function a$(n,t){if(1&n&&(x(0,"span",5),de(1),B()),2&n){const e=w();Ot("aria-hidden",e.icon&&!e.label),v(1),pt(e.label)}}function l$(n,t){if(1&n&&(x(0,"span",4),de(1),B()),2&n){const e=w();Gt(e.badgeClass),C("ngClass",e.badgeStyleClass()),v(1),pt(e.badge)}}const c$=function(n,t,e,i,r){return{"p-button p-component":!0,"p-button-icon-only":n,"p-button-vertical":t,"p-disabled":e,"p-button-loading":i,"p-button-loading-label-only":r}},u$=["*"];let Fs=(()=>{class n{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,Z.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let e="p-button p-component";return this.icon&&!this.label&&wt.isEmpty(this.el.nativeElement.textContent)&&(e+=" p-button-icon-only"),this.loading&&(e+=" p-disabled p-button-loading",!this.icon&&this.label&&(e+=" p-button-loading-label-only")),e}setStyleClass(){let e=this.getStyleClass();this.el.nativeElement.className=e+" "+this._initialStyleClass}createLabel(){if(this.label){let e=document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(document.createTextNode(this.label)),this.el.nativeElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&Z.addClass(e,i);let r=this.getIconClass();r&&Z.addMultipleClasses(e,r),this.el.nativeElement.insertBefore(e,this.el.nativeElement.firstChild)}}updateLabel(){let e=Z.findSingle(this.el.nativeElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.el.nativeElement.removeChild(e)}updateIcon(){let e=Z.findSingle(this.el.nativeElement,".p-button-icon");this.icon||this.loading?e?e.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():e&&this.el.nativeElement.removeChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return n.\u0275fac=function(e){return new(e||n)(T(St))},n.\u0275dir=ue({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),n})(),d$=(()=>{class n{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new te,this.onFocus=new te,this.onBlur=new te}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-button"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:u$,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(e,i){1&e&&(eo(),x(0,"button",0),K("click",function(o){return i.onClick.emit(o)})("focus",function(o){return i.onFocus.emit(o)})("blur",function(o){return i.onBlur.emit(o)}),Ri(1),S(2,r$,1,0,"ng-container",1),S(3,s$,1,9,"span",2),S(4,a$,2,2,"span",3),S(5,l$,2,4,"span",2),B()),2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",function Ax(n,t,e,i,r,o,s,a){const l=ni()+n,c=N(),u=qi(c,l,e,i,r,o);return Un(c,l+4,s)||u?Zr(c,l+5,a?t.call(a,e,i,r,o,s):t(e,i,r,o,s)):fd(c,l+5)}(11,c$,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),Ot("type",i.type)("aria-label",i.ariaLabel),v(2),C("ngTemplateOutlet",i.contentTemplate),v(1),C("ngIf",!i.contentTemplate&&(i.icon||i.loading)),v(1),C("ngIf",!i.contentTemplate&&i.label),v(1),C("ngIf",!i.contentTemplate&&i.badge))},dependencies:[zn,Pt,Yo,nr,Jd],encapsulation:2,changeDetection:0}),n})(),xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ja]}),n})();const PO=new class p$ extends Rr{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let f$=1;const g$=Promise.resolve(),Qg={};function FO(n){return n in Qg&&(delete Qg[n],!0)}const RO={setImmediate(n){const t=f$++;return Qg[t]=!0,g$.then(()=>FO(t)&&n()),t},clearImmediate(n){FO(n)}},NO=new class A$ extends Rr{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=RO.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(RO.clearImmediate(e),t.scheduled=void 0)}}),LO=new Rr(eg),Tc=LO;class y${constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new _$(t,this.durationSelector))}}class _$ extends Ea{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=Ca(e,new _a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function bC(n){return!Er(n)&&n-parseFloat(n)+1>=0}function QO(n=0,t,e){let i=-1;return bC(t)?i=Number(t)<1?1:Number(t):ds(t)&&(e=t),ds(e)||(e=Tc),new et(r=>{const o=bC(n)?n:+n-e.now();return e.schedule(E$,o,{index:0,period:i,subscriber:r})})}function E$(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}let yC;try{yC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{yC=!1}let Kd,_C,v$=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function k3(n){return n===KT}(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&&!yC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(j(Tf))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $d(n){return function M$(){if(null==Kd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Kd=!0}))}finally{Kd=Kd||!1}return Kd}()?n:!!n.capture}function jO(n){if(function w$(){if(null==_C){const n=typeof document<"u"?document.head:null;_C=!(!n||!n.createShadowRoot&&!n.attachShadow)}return _C}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function jg(n){return n.composedPath?n.composedPath()[0]:n.target}let I$=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new Me,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(function C$(n,t=Tc){return function b$(n){return function(e){return e.lift(new y$(n))}}(()=>QO(n,t))}(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(j(v$),j(At),j(Jt,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),S$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();function lr(n){return n instanceof St?n.nativeElement:n}function Rs(){}function yn(n,t,e){return function(r){return r.lift(new J$(n,t,e))}}class J${constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new K$(t,this.nextOrObserver,this.error,this.complete))}}class K$ extends Ge{constructor(t,e,i,r){super(t),this._tapNext=Rs,this._tapError=Rs,this._tapComplete=Rs,this._tapError=i||Rs,this._tapComplete=r||Rs,wo(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Rs,this._tapError=e.error||Rs,this._tapComplete=e.complete||Rs)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function zg(n,t=Tc){return e=>e.lift(new $$(n,t))}class $${constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new q$(t,this.dueTime,this.scheduler))}}class q$ extends Ge{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(X$,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function X$(n){n.debouncedNext()}class VO extends class t9{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me,this._typeaheadSubscription=We.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Me,this.change=new Me,t instanceof vd&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(yn(e=>this._pressedLetters.push(e)),zg(t),ir(()=>this._pressedLetters.length>0),fe(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||function W$(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof vd?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function d9(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function Yn(n){return t=>t.lift(new h9(n))}class h9{constructor(t){this.notifier=t}call(t,e){const i=new p9(t),r=Ca(this.notifier,new _a(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class p9 extends Ea{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function EC(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function Oc(n,t){const e=t?"":"none";EC(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function YO(n,t,e){EC(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Hg(n,t){return t&&"none"!=t?n+" "+t:n}function WO(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function CC(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function vC(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function MC(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function qd(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function JO(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,d=c*t;return i>r-d&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:vC(e)})})}handleScroll(t){const e=jg(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&qd(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function $O(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const p=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),f=this._dropContainer;if(!p)return void this._endDragSequence(a);(!f||!f.isDragging()&&!f.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new KO(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=function x$(n){return null!=n&&"false"!=`${n}`}(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Oc(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>lr(i)),this._handles.forEach(i=>Oc(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=lr(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Vg),e.addEventListener("touchstart",this._pointerDown,ek),e.addEventListener("dragstart",this._nativeDragStart,Vg)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?lr(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Oc(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Oc(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Xd(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),YO(i,!1,wC),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Xd(e),o=!r&&0!==e.button,s=this._rootElement,a=jg(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?function l9(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e):function a9(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=vC(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){YO(this._rootElement,!0,wC),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=nk(s,this._document),this._previewRef=s,t.matchSize?ik(r,o):r.style.transform=Gg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=$O(this._rootElement),ik(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return EC(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},wC),Oc(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function f9(n){const t=getComputedStyle(n),e=CC(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=CC(t,"transition-duration"),s=CC(t,"transition-delay");return WO(o[r])+WO(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||jg(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=nk(this._placeholderRef,this._document)):i=$O(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=Xd(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Xd(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=tk(i,a.left+o,a.right-(l-o)),r=tk(r,u,d)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Oc(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Vg),t.removeEventListener("touchstart",this._pointerDown,ek),t.removeEventListener("dragstart",this._nativeDragStart,Vg)}_applyRootElementTransform(t,e){const i=Gg(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Hg(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=Gg(t,e);this._preview.style.transform=Hg(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Xd(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=jg(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&qd(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=jO(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return lr(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function Gg(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function tk(n,t,e){return Math.max(t,Math.min(e,n))}function Xd(n){return"t"===n.type[0]}function nk(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function ik(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=Gg(t.left,t.top)}function Zd(n,t){return Math.max(0,Math.min(t,n))}class y9{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,l=o.findIndex(m=>m.drag===t),c=o[s],d=c.clientRect,h=l>s?1:-1,p=this._getItemOffsetPx(o[l].clientRect,d,h),f=this._getSiblingOffsetPx(l,o,h),g=o.slice();return function b9(n,t,e){const i=Zd(t,n.length-1),r=Zd(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(g[A]===m)return;const y=m.drag===t,E=y?p:f,b=y?t.getPlaceholderElement():m.drag.getRootElement();m.offset+=E,a?(b.style.transform=Hg(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),qd(m.clientRect,0,E)):(b.style.transform=Hg(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),qd(m.clientRect,E,0))}),this._previousSwap.overlaps=MC(d,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else lr(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{qd(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:vC(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me,this.entered=new Me,this.exited=new Me,this.dropped=new Me,this.sorted=new Me,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=We.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function u9(n=0,t=Tc){return(!bC(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=Tc),new et(e=>(e.add(t.schedule(d9,n,{subscriber:e,counter:0,period:n})),e))}(0,PO).pipe(Yn(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=lr(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new KO(i),this._sortStrategy=new y9(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=lr(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!JO(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||JO(s.clientRect,.05,t,e)&&([r,o]=function E9(n,t,e,i){const r=sk(t,i),o=ak(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=sk(l,e),o=ak(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=lr(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=lr(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=lr(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&MC(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!MC(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=lr(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=jO(lr(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function sk(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function ak(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const Yg=$d({passive:!1,capture:!0});let C9=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Me,this.pointerUp=new Me,this.scroll=new Me,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Yg)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Yg)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Yg}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Yg}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new et(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),va(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const v9={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let M9=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=v9){return new A9(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new _9(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(At),j(I$),j(C9))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[M9],imports:[S$]}),n})(),DC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,xc,Ko,Ja,lk,Ko,lk]}),n})();const Q9=["data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjMyODEgMjJWMjEuMDE1Nkw3LjkwNjI1IDIwLjc5NjlWMTEuODM1OUw2LjYzMjgxIDExLjYxNzJWMTAuNjI1SDEwLjcxODhWMTEuNjE3Mkw5LjQ0NTMxIDExLjgzNTlWMTUuNzY1NkgxNC44ODI4VjExLjgzNTlMMTMuNjA5NCAxMS42MTcyVjEwLjYyNUgxNy42OTUzVjExLjYxNzJMMTYuNDIxOSAxMS44MzU5VjIwLjc5NjlMMTcuNjk1MyAyMS4wMTU2VjIySDEzLjYwOTRWMjEuMDE1NkwxNC44ODI4IDIwLjc5NjlWMTYuOTc2Nkg5L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TY0MSAyMS40Njg4IDIyLjE2NDFaIiBmaWxsPSIjMjIyMjIyIi8+Cjwvc3ZnPgo="],W9=new pE(document),ck=[...Array(3).keys()].map(n=>{const t=n+1;return{label:`Heading ${t}`,icon:Ns(Q9[n]),id:`heading${t}`,attributes:{level:t}}}),IC={label:"Paragraph",icon:Ns("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNDc0NjEgMTZWMTUuMjYxN0w3LjQyOTY5IDE1LjA5NzdWOC4zNzY5NUw2LjQ3NDYxIDguMjEyODlWNy40Njg3NUgxMC4zOTQ1QzExLjMwNDcgNy40Njg3NSAxMi4wMTE3IDcuNzAzMTIgMTIuNTE1NiA4LjE3MTg4QzEzLjAyMzQgOC42NDA2MiAxMy4yNzczIDkuMjU3ODEgMTMuMjc3MyAxMC4wMjM0QzEzLjI3NzMgMTAuNzk2OSAxMy4wMjM0IDExLjQxNiAxMi41MTU2IDExLjg4MDlDMTIuMDExNyAxMi4zNDU3IDExLjMwNDcgMTIuNTc4MSAxMC4zOTQ1IDEyLjU3ODFIOC41ODM5OFYxNS4wOTc3TDkuNTM5MDYgMTUuMjYxN1YxNkg2LjQ3NDYxWk04LjU4Mzk4IDExLjY3NThIMTAuMzk0NUMxMC45NzI3IDExLjY3NTggMTEuNDA0MyAxMS41MjE1IDExLjY4OTUgMTEuMjEyOUMxMS45Nzg1IDEwLjkwMDQgMTIuMTIzIDEwLjUwNzggMTIuMTIzIDEwLjAzNTJDMTIuMTIzIDkuNTYyNSAxMS45Nzg1IDkuMTY3OTcgMTEuNjg5NSA4Ljg1MTU2QzExLjQwNDMgOC41MzUxNiAxMC45NzI3IDguMzc2OTUgMTAuMzk0NSA4LjM3Njk1SDguNTgzOThWMTEuNjc1OFoiIGZpb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KPHBhdGggZD0iTTEzLjQgMjAuNkw4LjggMTZMMTMuNCAxMS40TDEyIDEwTDYgMTZMMTIgMjJMMTMuNCAyMC42Wk0xOC42IDIwLjZMMjMuMiAxNkwxOC42IDExLjRMMjAgMTBMMjYgMTZMMjAgMjJMMTguNiAyMC42WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg=="),id:"codeBlock"},{label:"Horizontal Line",icon:Ns("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNiIgeT0iMTUiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K"),id:"horizontalRule"}];function Ns(n){return W9.bypassSecurityTrustUrl(n)}const Wg=[{label:"Image",icon:"image",id:"image"},{label:"Video",icon:"movie",id:"video"},...ck,{label:"Table",icon:"table_view",id:"table"},...uk,...q9,IC],X9=[...ck,IC,...uk],Z9=[{name:"flip",options:{fallbackPlacements:["top"]}},{name:"preventOverflow",options:{altAxis:!1,tether:!1}}],t6={horizontalRule:!0,table:!0,image:!0,video:!0},n6=[...Wg.filter(n=>!t6[n.id])],dk=function({type:n,editor:t,range:e,suggestionKey:i,ItemsType:r}){const o={to:e.to+i.getState(t.view.state).query?.length,from:n===r.BLOCK?e.from:e.from+1};t.chain().deleteRange(o).run()},hk={duration:[250,0],interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}};class r6{getQueryParams(){const t=window.location.search.substring(1).split("&"),e=new Map;return t.forEach(i=>{const r=i.split("=");e.set(r[0],r[1])}),e}getQueryStringParam(t){let e=null;const r=new RegExp("[?&]"+t.replace(/[\[\]]/g,"\\$&")+"(=([^&#]*)|&|#|$)").exec(window.location.href);return r&&r[2]&&(e=decodeURIComponent(r[2].replace(/\+/g," "))),e}}let pk=(()=>{class n{getLine(e,i){let r=null;if(e){const o=e.split("\n");r=o&&o.length>i?o[i]:null}return r}camelize(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(i,r)=>0===r?i.toLowerCase():i.toUpperCase()).replace(/\s+/g,"")}titleCase(e){return`${e.charAt(0).toLocaleUpperCase()}${e.slice(1)}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),s6=(()=>{class n{constructor(e){this.stringUtils=e,this.showLogs=!0,this.httpRequestUtils=new r6,this.showLogs=this.shouldShowLogs(),this.showLogs&&console.info("Setting the logger --\x3e Developer mode logger on")}info(e,...i){i&&i.length>0?console.info(this.wrapMessage(e),i):console.info(this.wrapMessage(e))}error(e,...i){i&&i.length>0?console.error(this.wrapMessage(e),i):console.error(this.wrapMessage(e))}warn(e,...i){i&&i.length>0?console.warn(this.wrapMessage(e),i):console.warn(this.wrapMessage(e))}debug(e,...i){i&&i.length>0?console.debug(this.wrapMessage(e),i):console.debug(this.wrapMessage(e))}shouldShowLogs(){this.httpRequestUtils.getQueryStringParam("devMode");return!0}wrapMessage(e){return this.showLogs?e:this.getCaller()+">> "+e}getCaller(){let e="unknown";try{throw new Error}catch(i){e=this.cleanCaller(this.stringUtils.getLine(i.stack,4))}return e}cleanCaller(e){return e?e.trim().substr(3):"unknown"}}return n.\u0275fac=function(e){return new(e||n)(j(pk))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),h6=(()=>{class n{constructor(){this.iconPath="./src/assets/images/icons",this.dotCMSURLKey="siteURLJWT"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),eh=class{constructor(t){this.iconPath=t.iconPath}displayErrorMessage(t){this.displayMessage("Error",t,"error")}displaySuccessMessage(t){this.displayMessage("Success",t,"success")}displayInfoMessage(t){this.displayMessage("Info",t,"info")}displayMessage(t,e,i){let r;return r=new Notification(i,{body:e,icon:this.iconPath+"/"+i+".png"}),r}};function Wn(n){this.content=n}eh.\u0275prov=Y({token:eh,factory:eh.\u0275fac}),eh=function l6(n,t,e,i){var s,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o}([Gp("config"),function c6(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}("design:paramtypes",[h6])],eh),Wn.prototype={constructor:Wn,find:function(n){for(var t=0;t>1}},Wn.from=function(n){if(n instanceof Wn)return n;var t=[];if(n)for(var e in n)t.push(e,n[e]);return new Wn(t)};const Ak=Wn;function bk(n,t,e){for(let i=0;;i++){if(i==n.childCount||i==t.childCount)return n.childCount==t.childCount?null:e;let r=n.child(i),o=t.child(i);if(r!=o){if(!r.sameMarkup(o))return e;if(r.isText&&r.text!=o.text){for(let s=0;r.text[s]==o.text[s];s++)e++;return e}if(r.content.size||o.content.size){let s=bk(r.content,o.content,e+1);if(null!=s)return s}e+=r.nodeSize}else e+=r.nodeSize}}function yk(n,t,e,i){for(let r=n.childCount,o=t.childCount;;){if(0==r||0==o)return r==o?null:{a:e,b:i};let s=n.child(--r),a=t.child(--o),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:e,b:i};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;ct&&!1!==i(l,r+a,o||null,s)&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,e-u),i,r+u)}a=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,i,r){let o="",s=!0;return this.nodesBetween(t,e,(a,l)=>{a.isText?(o+=a.text.slice(Math.max(t,l)-l,e-l),s=!i):a.isLeaf?(r?o+="function"==typeof r?r(a):r:a.type.spec.leafText&&(o+=a.type.spec.leafText(a)),s=!i):!s&&a.isBlock&&(o+=i,s=!0)},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,i=t.firstChild,r=this.content.slice(),o=0;for(e.isText&&e.sameMarkup(i)&&(r[r.length-1]=e.withText(e.text+i.text),o=1);ot)for(let o=0,s=0;st&&((se)&&(a=a.isText?a.cut(Math.max(0,t-s),Math.min(a.text.length,e-s)):a.cut(Math.max(0,t-s-1),Math.min(a.content.size,e-s-1))),i.push(a),r+=a.nodeSize),s=l}return new L(i,r)}cutByIndex(t,e){return t==e?L.empty:0==t&&e==this.content.length?this:new L(this.content.slice(t,e))}replaceChild(t,e){let i=this.content[t];if(i==e)return this;let r=this.content.slice(),o=this.size+e.nodeSize-i.nodeSize;return r[t]=e,new L(r,o)}addToStart(t){return new L([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new L(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let i=0,r=0;;i++){let s=r+this.child(i).nodeSize;if(s>=t)return s==t||e>0?Kg(i+1,s):Kg(i,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return L.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new L(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return L.empty;let e,i=0;for(let r=0;r{class n{constructor(e,i){this.type=e,this.attrs=i}addToSet(e){let i,r=!1;for(let o=0;othis.type.rank&&(i||(i=e.slice(0,o)),i.push(this),r=!0),i&&i.push(s)}}return i||(i=e.slice()),r||i.push(this),i}removeFromSet(e){for(let i=0;ir.type.rank-o.type.rank),i}}return n.none=[],n})();class qg extends Error{}class G{constructor(t,e,i){this.content=t,this.openStart=e,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let i=Ek(this.content,t+this.openStart,e);return i&&new G(i,this.openStart,this.openEnd)}removeBetween(t,e){return new G(_k(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return G.empty;let i=e.openStart||0,r=e.openEnd||0;if("number"!=typeof i||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new G(L.fromJSON(t,e.content),i,r)}static maxOpen(t,e=!0){let i=0,r=0;for(let o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)i++;for(let o=t.lastChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.lastChild)r++;return new G(t,i,r)}}function _k(n,t,e){let{index:i,offset:r}=n.findIndex(t),o=n.maybeChild(i),{index:s,offset:a}=n.findIndex(e);if(r==t||o.isText){if(a!=e&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,t).append(n.cut(e))}if(i!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(i,o.copy(_k(o.content,t-r-1,e-r-1)))}function Ek(n,t,e,i){let{index:r,offset:o}=n.findIndex(t),s=n.maybeChild(r);if(o==t||s.isText)return i&&!i.canReplace(r,r,e)?null:n.cut(0,t).append(e).append(n.cut(t));let a=Ek(s.content,t-o-1,e);return a&&n.replaceChild(r,s.copy(a))}function p6(n,t,e){if(e.openStart>n.depth)throw new qg("Inserted content deeper than insertion position");if(n.depth-e.openStart!=t.depth-e.openEnd)throw new qg("Inconsistent open depths");return Ck(n,t,e,0)}function Ck(n,t,e,i){let r=n.index(i),o=n.node(i);if(r==t.index(i)&&i=0;o--)r=t.node(o).copy(L.from(r));return{start:r.resolveNoCache(n.openStart+e),end:r.resolveNoCache(r.content.size-n.openEnd-e)}}(e,n);return qa(o,Mk(n,s,a,t,i))}{let s=n.parent,a=s.content;return qa(s,a.cut(0,n.parentOffset).append(e.content).append(a.cut(t.parentOffset)))}}return qa(o,Xg(n,t,i))}function vk(n,t){if(!t.type.compatibleContent(n.type))throw new qg("Cannot join "+t.type.name+" onto "+n.type.name)}function TC(n,t,e){let i=n.node(e);return vk(i,t.node(e)),i}function $a(n,t){let e=t.length-1;e>=0&&n.isText&&n.sameMarkup(t[e])?t[e]=n.withText(t[e].text+n.text):t.push(n)}function th(n,t,e,i){let r=(t||n).node(e),o=0,s=t?t.index(e):r.childCount;n&&(o=n.index(e),n.depth>e?o++:n.textOffset&&($a(n.nodeAfter,i),o++));for(let a=o;ar&&TC(n,t,r+1),s=i.depth>r&&TC(e,i,r+1),a=[];return th(null,n,r,a),o&&s&&t.index(r)==e.index(r)?(vk(o,s),$a(qa(o,Mk(n,t,e,i,r+1)),a)):(o&&$a(qa(o,Xg(n,t,r+1)),a),th(t,e,r,a),s&&$a(qa(s,Xg(e,i,r+1)),a)),th(i,null,r,a),new L(a)}function Xg(n,t,e){let i=[];return th(null,n,e,i),n.depth>e&&$a(qa(TC(n,t,e+1),Xg(n,t,e+1)),i),th(t,null,e,i),new L(i)}G.empty=new G(L.empty,0,0);class nh{constructor(t,e,i){this.pos=t,this.path=e,this.parentOffset=i,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],r=t.child(e);return i?t.child(e).cut(i):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let i=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let o=0;o0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!e||e(this.node(i))))return new Zg(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let i=[],r=0,o=e;for(let s=t;;){let{index:a,offset:l}=s.content.findIndex(o),c=o-l;if(i.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;o=c-1,r+=l+1}return new nh(e,i,o)}static resolveCached(t,e){for(let r=0;rt&&this.nodesBetween(t,e,o=>(i.isInSet(o.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),wk(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,i=L.empty,r=0,o=i.childCount){let s=this.contentMatchAt(t).matchFragment(i,r,o),a=s&&s.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let l=r;le.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(e=>e.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,i)}let r=L.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,r,i)}}lo.prototype.text=void 0;class em extends lo{constructor(t,e,i,r){if(super(t,e,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):wk(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new em(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new em(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function wk(n,t){for(let e=n.length-1;e>=0;e--)t=n[e].type.name+"("+t+")";return t}class Xa{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let i=new A6(t,e);if(null==i.next)return Xa.empty;let r=Dk(i);i.next&&i.err("Unexpected trailing text");let o=function M6(n){let t=Object.create(null);return function e(i){let r=[];i.forEach(s=>{n[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u{c||r.push([a,c=[]]),-1==c.indexOf(u)&&c.push(u)})})});let o=t[i.join(",")]=new Xa(i.indexOf(n.length-1)>-1);for(let s=0;sl.concat(o(c,a)),[]);if("seq"!=s.type){if("star"==s.type){let l=e();return i(a,l),r(o(s.expr,l),l),[i(l)]}if("plus"==s.type){let l=e();return r(o(s.expr,a),l),r(o(s.expr,l),l),[i(l)]}if("opt"==s.type)return[i(a)].concat(o(s.expr,a));if("range"==s.type){let l=a;for(let c=0;cl.to=a)}}(r));return function w6(n,t){for(let e=0,i=[n];ec.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(i){t.push(i);for(let r=0;r{let o=r+(i.validEnd?"*":" ")+" ";for(let s=0;s"+t.indexOf(i.next[s].next);return o}).join("\n")}}Xa.empty=new Xa(!0);class A6{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function Dk(n){let t=[];do{t.push(b6(n))}while(n.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function b6(n){let t=[];do{t.push(y6(n))}while(n.next&&")"!=n.next&&"|"!=n.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function y6(n){let t=function C6(n){if(n.eat("(")){let t=Dk(n);return n.eat(")")||n.err("Missing closing paren"),t}if(!/\W/.test(n.next)){let t=function E6(n,t){let e=n.nodeTypes,i=e[t];if(i)return[i];let r=[];for(let o in e){let s=e[o];s.groups.indexOf(t)>-1&&r.push(s)}return 0==r.length&&n.err("No node type or group '"+t+"' found"),r}(n,n.next).map(e=>(null==n.inline?n.inline=e.isInline:n.inline!=e.isInline&&n.err("Mixing inline and block content"),{type:"name",value:e}));return n.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}n.err("Unexpected token '"+n.next+"'")}(n);for(;;)if(n.eat("+"))t={type:"plus",expr:t};else if(n.eat("*"))t={type:"star",expr:t};else if(n.eat("?"))t={type:"opt",expr:t};else{if(!n.eat("{"))break;t=_6(n,t)}return t}function Ik(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let t=Number(n.next);return n.pos++,t}function _6(n,t){let e=Ik(n),i=e;return n.eat(",")&&(i="}"!=n.next?Ik(n):-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:e,max:i,expr:t}}function Sk(n,t){return t-n}function xk(n,t){let e=[];return function i(r){let o=n[r];if(1==o.length&&!o[0].term)return i(o[0].to);e.push(r);for(let s=0;s-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;ei[o]=new tm(o,e,s));let r=e.spec.topNode||"doc";if(!i[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let o in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}}class D6{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class nm{constructor(t,e,i,r){this.name=t,this.rank=e,this.schema=i,this.spec=r,this.attrs=Ok(r.attrs),this.excluded=null;let o=Tk(this.attrs);this.instance=o?new Tt(this,o):null}create(t=null){return!t&&this.instance?this.instance:new Tt(this,Bk(this.attrs,t))}static compile(t,e){let i=Object.create(null),r=0;return t.forEach((o,s)=>i[o]=new nm(o,r++,e,s)),i}removeFromSet(t){for(var e=0;e-1}}class I6{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let r in t)e[r]=t[r];e.nodes=Ak.from(t.nodes),e.marks=Ak.from(t.marks||{}),this.nodes=tm.compile(this.spec.nodes,this),this.marks=nm.compile(this.spec.marks,this);let i=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let o=this.nodes[r],s=o.spec.content||"",a=o.spec.marks;o.contentMatch=i[s]||(i[s]=Xa.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==a?null:a?kk(this,a.split(" ")):""!=a&&o.inlineContent?null:[]}for(let r in this.marks){let o=this.marks[r],s=o.spec.excludes;o.excluded=null==s?[o]:""==s?[]:kk(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,i,r){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof tm))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,i,r)}text(t,e){let i=this.nodes.text;return new em(i,i.defaultAttrs,t,Tt.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return lo.fromJSON(this,t)}markFromJSON(t){return Tt.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function kk(n,t){let e=[];for(let i=0;i-1)&&e.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return e}class kc{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach(i=>{i.tag?this.tags.push(i):i.style&&this.styles.push(i)}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let r=t.nodes[i.node];return r.contentMatch.matchType(r)})}parse(t,e={}){let i=new Nk(this,e,!1);return i.addAll(t,e.from,e.to),i.finish()}parseSlice(t,e={}){let i=new Nk(this,e,!0);return i.addAll(t,e.from,e.to),G.maxOpen(i.finish())}matchTag(t,e,i){for(let r=i?this.tags.indexOf(i)+1:0;rt.length&&(61!=a.charCodeAt(t.length)||a.slice(t.length+1)!=e))){if(s.getAttrs){let l=s.getAttrs(e);if(!1===l)continue;s.attrs=l||void 0}return s}}}static schemaRules(t){let e=[];function i(r){let o=r.priority??50,s=0;for(;s{i(s=Lk(s)),s.mark=r})}for(let r in t.nodes){let o=t.nodes[r].spec.parseDOM;o&&o.forEach(s=>{i(s=Lk(s)),s.node=r})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new kc(t,kc.schemaRules(t)))}}const Pk={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},S6={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Fk={ol:!0,ul:!0};function Rk(n,t,e){return null!=t?(t?1:0)|("full"===t?2:0):n&&"pre"==n.whitespace?3:-5&e}class om{constructor(t,e,i,r,o,s,a){this.type=t,this.attrs=e,this.marks=i,this.pendingMarks=r,this.solid=o,this.options=a,this.content=[],this.activeMarks=Tt.none,this.stashMarks=[],this.match=s||(4&a?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(L.from(t));if(!e){let r,i=this.type.contentMatch;return(r=i.findWrapping(t.type))?(this.match=i,r):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let r,i=this.content[this.content.length-1];if(i&&i.isText&&(r=/[ \t\r\n\u000c]+$/.exec(i.text))){let o=i;i.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-r[0].length))}}let e=L.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(L.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(t){for(let e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(t){for(let e=0,i=this.pendingMarks;ethis.insertNode(l));else{let l=t;"string"==typeof e.contentElement?l=t.querySelector(e.contentElement):"function"==typeof e.contentElement?l=e.contentElement(t):e.contentElement&&(l=e.contentElement),this.findAround(t,l,!0),this.addAll(l)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(t,e,i){let r=e||0;for(let o=e?t.childNodes[e]:t.firstChild,s=null==i?null:t.childNodes[i];o!=s;o=o.nextSibling,++r)this.findAtPoint(t,r),this.addDOM(o);this.findAtPoint(t,r)}findPlace(t){let e,i;for(let r=this.open;r>=0;r--){let o=this.nodes[r],s=o.findWrapping(t);if(s&&(!e||e.length>s.length)&&(e=s,i=o,!s.length)||o.solid)break}if(!e)return!1;this.sync(i);for(let r=0;rthis.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let i=this.nodes[e].content;for(let r=i.length-1;r>=0;r--)t+=i[r].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),i=this.options.context,r=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),o=(r?0:1)-(i?i.depth+1:0),s=(a,l)=>{for(;a>=0;a--){let c=e[a];if(""==c){if(a==e.length-1||0==a)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}{let u=l>0||0==l&&r?this.nodes[l].type:i&&l>=o?i.node(l-o).type:null;if(!u||u.name!=c&&-1==u.groups.indexOf(c))return!1;l--}}return!0};return s(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let i=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let e in this.parser.schema.nodes){let i=this.parser.schema.nodes[e];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(t){let e=function k6(n,t){for(let e=0;e=0;i--){let r=this.nodes[i];if(r.pendingMarks.lastIndexOf(t)>-1)r.pendingMarks=t.removeFromSet(r.pendingMarks);else{r.activeMarks=t.removeFromSet(r.activeMarks);let s=r.popFromStashMark(t);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==e)break}}}function T6(n,t){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,t)}function Lk(n){let t={};for(let e in n)t[e]=n[e];return t}function O6(n,t){let e=t.schema.nodes;for(let i in e){let r=e[i];if(!r.allowsMarkType(n))continue;let o=[],s=a=>{o.push(a);for(let l=0;l{if(o.length||s.marks.length){let a=0,l=0;for(;a=0;r--){let o=this.serializeMark(t.marks[r],t.isInline,e);o&&((o.contentDOM||o.dom).appendChild(i),i=o.dom)}return i}serializeMark(t,e,i={}){let r=this.marks[t.type.name];return r&&co.renderSpec(kC(i),r(t,e))}static renderSpec(t,e,i=null){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let r=e[0],o=r.indexOf(" ");o>0&&(i=r.slice(0,o),r=r.slice(o+1));let s,a=i?t.createElementNS(i,r):t.createElement(r),l=e[1],c=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){c=2;for(let u in l)if(null!=l[u]){let d=u.indexOf(" ");d>0?a.setAttributeNS(u.slice(0,d),u.slice(d+1),l[u]):a.setAttribute(u,l[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:h,contentDOM:p}=co.renderSpec(t,d,i);if(a.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:a,contentDOM:s}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new co(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=Qk(t.nodes);return e.text||(e.text=i=>i.text),e}static marksFromSchema(t){return Qk(t.marks)}}function Qk(n){let t={};for(let e in n){let i=n[e].spec.toDOM;i&&(t[e]=i)}return t}function kC(n){return n.document||window.document}const jk=Math.pow(2,16);function P6(n,t){return n+t*jk}function zk(n){return 65535&n}class PC{constructor(t,e,i){this.pos=t,this.delInfo=e,this.recover=i}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class cr{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&cr.empty)return cr.empty}recover(t){let e=0,i=zk(t);if(!this.inverted)for(let r=0;rt)break;let c=this.ranges[a+o],u=this.ranges[a+s],d=l+c;if(t<=d){let p=l+r+((c?t==l?-1:t==d?1:e:e)<0?0:u);if(i)return p;let f=t==(e<0?l:d)?null:P6(a/3,t-l),g=t==l?2:t==d?1:4;return(e<0?t!=l:t!=d)&&(g|=8),new PC(p,g,f)}r+=u-c}return i?t+r:new PC(t+r,0,null)}touches(t,e){let i=0,r=zk(e),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;at)break;let c=this.ranges[a+o];if(t<=l+c&&a==3*r)return!0;i+=this.ranges[a+s]-c}return!1}forEach(t){let e=this.inverted?2:1,i=this.inverted?1:2;for(let r=0,o=0;r=0;e--){let r=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=r&&r>e?i-r-1:void 0)}}invert(){let t=new Pc;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let i=this.from;io&&ls.isAtom&&a.type.allowsMarkType(this.mark.type)?s.mark(this.mark.addToSet(s.marks)):s,r),e.openStart,e.openEnd);return ln.fromReplace(t,this.from,this.to,o)}invert(){return new uo(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new Ls(e.pos,i.pos,this.mark)}merge(t){return t instanceof Ls&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Ls(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Ls(e.from,e.to,t.markFromJSON(e.mark))}}Jn.jsonID("addMark",Ls);class uo extends Jn{constructor(t,e,i){super(),this.from=t,this.to=e,this.mark=i}apply(t){let e=t.slice(this.from,this.to),i=new G(RC(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),t),e.openStart,e.openEnd);return ln.fromReplace(t,this.from,this.to,i)}invert(){return new Ls(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new uo(e.pos,i.pos,this.mark)}merge(t){return t instanceof uo&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new uo(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new uo(e.from,e.to,t.markFromJSON(e.mark))}}Jn.jsonID("removeMark",uo);class Qs extends Jn{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return ln.fail("No node at mark step's position");let i=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return ln.fromReplace(t,this.pos,this.pos+1,new G(L.from(i),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let i=this.mark.addToSet(e.marks);if(i.length==e.marks.length){for(let r=0;ri.pos?null:new Mn(e.pos,i.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Mn(e.from,e.to,e.gapFrom,e.gapTo,G.fromJSON(t,e.slice),e.insert,!!e.structure)}}function NC(n,t,e){let i=n.resolve(t),r=e-t,o=i.depth;for(;r>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,r--;if(r>0){let s=i.node(o).maybeChild(i.indexAfter(o));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function Q6(n,t,e){return(0==t||n.canReplace(t,n.childCount))&&(e==n.childCount||n.canReplace(0,e))}function Rc(n){let e=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let i=n.depth;;--i){let r=n.$from.node(i),o=n.$from.index(i),s=n.$to.indexAfter(i);if(io;c--,u--){let d=r.node(c),h=r.index(c);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(h,d.childCount),f=i&&i[u]||d;if(f!=d&&(p=p.replaceChild(0,f.type.create(f.attrs))),!d.canReplace(h+1,d.childCount)||!f.type.validContent(p))return!1}let a=r.indexAfter(o),l=i&&i[0];return r.node(o).canReplaceWith(a,a,l?l.type:r.node(o+1).type)}function Us(n,t){let e=n.resolve(t),i=e.index();return Wk(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(i,i+1)}function Wk(n,t){return!(!n||!t||n.isLeaf||!n.canAppend(t))}function Jk(n,t,e=-1){let i=n.resolve(t);for(let r=i.depth;;r--){let o,s,a=i.index(r);if(r==i.depth?(o=i.nodeBefore,s=i.nodeAfter):e>0?(o=i.node(r+1),a++,s=i.node(r).maybeChild(a)):(o=i.node(r).maybeChild(a-1),s=i.node(r+1)),o&&!o.isTextblock&&Wk(o,s)&&i.node(r).canReplace(a,a+1))return t;if(0==r)break;t=e<0?i.before(r):i.after(r)}}function Kk(n,t,e){let i=n.resolve(t);if(!e.content.size)return t;let r=e.content;for(let o=0;o=0;s--){let a=s==i.depth?0:i.pos<=(i.start(s+1)+i.end(s+1))/2?-1:1,l=i.index(s)+(a>0?1:0),c=i.node(s),u=!1;if(1==o)u=c.canReplace(l,l,r);else{let d=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return 0==a?i.pos:a<0?i.before(s+1):i.after(s+1)}return null}function QC(n,t,e=t,i=G.empty){if(t==e&&!i.size)return null;let r=n.resolve(t),o=n.resolve(e);return $k(r,o,i)?new Kn(t,e,i):new $6(r,o,i).fit()}function $k(n,t,e){return!e.openStart&&!e.openEnd&&n.start()==t.start()&&n.parent.canReplace(n.index(),t.index(),e.content)}Jn.jsonID("replaceAround",Mn);class $6{constructor(t,e,i){this.$from=t,this.$to=e,this.unplaced=i,this.frontier=[],this.placed=L.empty;for(let r=0;r<=t.depth;r++){let o=t.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(r))})}for(let r=t.depth;r>0;r--)this.placed=L.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;let o=this.placed,s=i.depth,a=r.depth;for(;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;let l=new G(o,s,a);return t>-1?new Mn(i.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||i.pos!=this.$to.pos?new Kn(i.pos,r.pos,l):null}findFittable(){for(let t=1;t<=2;t++)for(let e=this.unplaced.openStart;e>=0;e--){let i,r=null;e?(r=UC(this.unplaced.content,e-1).firstChild,i=r.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let c,{type:a,match:l}=this.frontier[s],u=null;if(1==t&&(o?l.matchType(o.type)||(u=l.fillBefore(L.from(o),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:e,frontierDepth:s,parent:r,inject:u};if(2==t&&o&&(c=l.findWrapping(o.type)))return{sliceDepth:e,frontierDepth:s,parent:r,wrap:c};if(r&&l.matchType(r.type))break}}}openMore(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=UC(t,e);return!(!r.childCount||r.firstChild.isLeaf||(this.unplaced=new G(t,e+1,Math.max(i,r.size+e>=t.size-i?e+1:0)),0))}dropNode(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=UC(t,e);if(r.childCount<=1&&e>0){let o=t.size-e<=e+r.size;this.unplaced=new G(rh(t,e-1,1),e-1,o?e-1:i)}else this.unplaced=new G(rh(t,e,1),e,i)}placeNodes({sliceDepth:t,frontierDepth:e,parent:i,inject:r,wrap:o}){for(;this.depth>e;)this.closeFrontierNode();if(o)for(let g=0;g1||0==l||g.content.size)&&(d=m,u.push(qk(g.mark(h.allowedMarks(g.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=oh(this.placed,e,L.from(u)),this.frontier[e].match=d,f&&p<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,m=a;g1&&r==this.$to.end(--i);)++r;return r}findCloseLevel(t){e:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:i,type:r}=this.frontier[e],o=e=0;a--){let{match:l,type:c}=this.frontier[a],u=jC(t,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:e,fit:s,move:o?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=oh(this.placed,e.depth,e.fit)),t=e.move;for(let i=e.depth+1;i<=t.depth;i++){let r=t.node(i),o=r.type.contentMatch.fillBefore(r.content,!0,t.index(i));this.openFrontierNode(r.type,r.attrs,o)}return t}openFrontierNode(t,e=null,i){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=oh(this.placed,this.depth,L.from(t.create(e,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(L.empty,!0);e.childCount&&(this.placed=oh(this.placed,this.frontier.length,e))}}function rh(n,t,e){return 0==t?n.cutByIndex(e,n.childCount):n.replaceChild(0,n.firstChild.copy(rh(n.firstChild.content,t-1,e)))}function oh(n,t,e){return 0==t?n.append(e):n.replaceChild(n.childCount-1,n.lastChild.copy(oh(n.lastChild.content,t-1,e)))}function UC(n,t){for(let e=0;e1&&(i=i.replaceChild(0,qk(i.firstChild,t-1,1==i.childCount?e-1:0))),t>0&&(i=n.type.contentMatch.fillBefore(i).append(i),e<=0&&(i=i.append(n.type.contentMatch.matchFragment(i).fillBefore(L.empty,!0)))),n.copy(i)}function jC(n,t,e,i,r){let o=n.node(t),s=r?n.indexAfter(t):n.index(t);if(s==o.childCount&&!e.compatibleContent(o.type))return null;let a=i.fillBefore(o.content,!0,s);return a&&!function q6(n,t,e){for(let i=e;ii){let o=r.contentMatchAt(0),s=o.fillBefore(n).append(n);n=s.append(o.matchFragment(s).fillBefore(L.empty,!0))}return n}function Zk(n,t){let e=[];for(let r=Math.min(n.depth,t.depth);r>=0;r--){let o=n.start(r);if(ot.pos+(t.depth-r)||n.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==n.depth&&r==t.depth&&n.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&e.push(r)}return e}class Nc extends Jn{constructor(t,e,i){super(),this.pos=t,this.attr=e,this.value=i}apply(t){let e=t.nodeAt(this.pos);if(!e)return ln.fail("No node at attribute step's position");let i=Object.create(null);for(let o in e.attrs)i[o]=e.attrs[o];i[this.attr]=this.value;let r=e.type.create(i,null,e.marks);return ln.fromReplace(t,this.pos,this.pos+1,new G(L.from(r),0,e.isLeaf?0:1))}getMap(){return cr.empty}invert(t){return new Nc(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Nc(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Nc(e.pos,e.attr,e.value)}}Jn.jsonID("attr",Nc);let Lc=class extends Error{};Lc=function n(t){let e=Error.call(this,t);return e.__proto__=n.prototype,e},(Lc.prototype=Object.create(Error.prototype)).constructor=Lc,Lc.prototype.name="TransformError";class zC{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Pc}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new Lc(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,i=G.empty){let r=QC(this.doc,t,e,i);return r&&this.step(r),this}replaceWith(t,e,i){return this.replace(t,e,new G(L.from(i),0,0))}delete(t,e){return this.replace(t,e,G.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,i){return function Z6(n,t,e,i){if(!i.size)return n.deleteRange(t,e);let r=n.doc.resolve(t),o=n.doc.resolve(e);if($k(r,o,i))return n.step(new Kn(t,e,i));let s=Zk(r,n.doc.resolve(e));0==s[s.length-1]&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let h=r.depth,p=r.pos-1;h>0;h--,p--){let f=r.node(h).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(h)>-1?a=h:r.before(h)==p&&s.splice(1,0,-h)}let l=s.indexOf(a),c=[],u=i.openStart;for(let h=i.content,p=0;;p++){let f=h.firstChild;if(c.push(f),p==i.openStart)break;h=f.content}for(let h=u-1;h>=0;h--){let p=c[h].type,f=X6(p);if(f&&r.node(l).type!=p)u=h;else if(f||!p.isTextblock)break}for(let h=i.openStart;h>=0;h--){let p=(h+u+1)%(i.openStart+1),f=c[p];if(f)for(let g=0;g=0&&(n.replace(t,e,i),!(n.steps.length>d));h--){let p=s[h];p<0||(t=r.before(p),e=o.after(p))}}(this,t,e,i),this}replaceRangeWith(t,e,i){return function eq(n,t,e,i){if(!i.isInline&&t==e&&n.doc.resolve(t).parent.content.size){let r=function K6(n,t,e){let i=n.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),e))return t;if(0==i.parentOffset)for(let r=i.depth-1;r>=0;r--){let o=i.index(r);if(i.node(r).canReplaceWith(o,o,e))return i.before(r+1);if(o>0)return null}if(i.parentOffset==i.parent.content.size)for(let r=i.depth-1;r>=0;r--){let o=i.indexAfter(r);if(i.node(r).canReplaceWith(o,o,e))return i.after(r+1);if(o0&&(l||i.node(a-1).canReplace(i.index(a-1),r.indexAfter(a-1))))return n.delete(i.before(a),r.after(a))}for(let s=1;s<=i.depth&&s<=r.depth;s++)if(t-i.start(s)==i.depth-s&&e>i.end(s)&&r.end(s)-e!=r.depth-s)return n.delete(i.before(s),e);n.delete(t,e)}(this,t,e),this}lift(t,e){return function U6(n,t,e){let{$from:i,$to:r,depth:o}=t,s=i.before(o+1),a=r.after(o+1),l=s,c=a,u=L.empty,d=0;for(let f=o,g=!1;f>e;f--)g||i.index(f)>0?(g=!0,u=L.from(i.node(f).copy(u)),d++):l--;let h=L.empty,p=0;for(let f=o,g=!1;f>e;f--)g||r.after(f+1)=0;s--){if(i.size){let a=e[s].type.contentMatch.matchFragment(i);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=L.from(e[s].type.create(e[s].attrs,i))}let r=t.start,o=t.end;n.step(new Mn(r,o,r,o,new G(i,0,0),e.length,!0))}(this,t,e),this}setBlockType(t,e=t,i,r=null){return function V6(n,t,e,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=n.steps.length;n.doc.nodesBetween(t,e,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(i,r)&&function G6(n,t,e){let i=n.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,e)}(n.doc,n.mapping.slice(o).map(a),i)){n.clearIncompatible(n.mapping.slice(o).map(a,1),i);let l=n.mapping.slice(o),c=l.map(a,1),u=l.map(a+s.nodeSize,1);return n.step(new Mn(c,u,c+1,u-1,new G(L.from(i.create(r,null,s.marks)),0,0),1,!0)),!1}})}(this,t,e,i,r),this}setNodeMarkup(t,e,i=null,r=[]){return function Y6(n,t,e,i,r){let o=n.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");e||(e=o.type);let s=e.create(i,null,r||o.marks);if(o.isLeaf)return n.replaceWith(t,t+o.nodeSize,s);if(!e.validContent(o.content))throw new RangeError("Invalid content for node type "+e.name);n.step(new Mn(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new G(L.from(s),0,0),1,!0))}(this,t,e,i,r),this}setNodeAttribute(t,e,i){return this.step(new Nc(t,e,i)),this}addNodeMark(t,e){return this.step(new Qs(t,e)),this}removeNodeMark(t,e){if(!(e instanceof Tt)){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(!(e=e.isInSet(i.marks)))return this}return this.step(new Fc(t,e)),this}split(t,e=1,i){return function W6(n,t,e=1,i){let r=n.doc.resolve(t),o=L.empty,s=L.empty;for(let a=r.depth,l=r.depth-e,c=e-1;a>l;a--,c--){o=L.from(r.node(a).copy(o));let u=i&&i[c];s=L.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}n.step(new Kn(t,t,new G(o.append(s),e,e),!0))}(this,t,e,i),this}addMark(t,e,i){return function R6(n,t,e,i){let s,a,r=[],o=[];n.doc.nodesBetween(t,e,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!i.isInSet(d)&&u.type.allowsMarkType(i.type)){let h=Math.max(c,t),p=Math.min(c+l.nodeSize,e),f=i.addToSet(d);for(let g=0;gn.step(l)),o.forEach(l=>n.step(l))}(this,t,e,i),this}removeMark(t,e,i){return function N6(n,t,e,i){let r=[],o=0;n.doc.nodesBetween(t,e,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(i instanceof nm){let u,c=s.marks;for(;u=i.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else i?i.isInSet(s.marks)&&(l=[i]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,e);for(let u=0;un.step(new uo(s.from,s.to,s.style)))}(this,t,e,i),this}clearIncompatible(t,e,i){return function L6(n,t,e,i=e.contentMatch){let r=n.doc.nodeAt(t),o=[],s=t+1;for(let a=0;a=0;a--)n.step(o[a])}(this,t,e,i),this}}const HC=Object.create(null);class _e{constructor(t,e,i){this.$anchor=t,this.$head=e,this.ranges=i||[new eP(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;o--){let s=e<0?Qc(t.node(0),t.node(o),t.before(o+1),t.index(o),e,i):Qc(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,i);if(s)return s}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new zi(t.node(0))}static atStart(t){return Qc(t,t,0,0,1)||new zi(t)}static atEnd(t){return Qc(t,t,t.content.size,t.childCount,-1)||new zi(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=HC[e.type];if(!i)throw new RangeError(`No selection type ${e.type} defined`);return i.fromJSON(t,e)}static jsonID(t,e){if(t in HC)throw new RangeError("Duplicate use of selection JSON ID "+t);return HC[t]=e,e.prototype.jsonID=t,e}getBookmark(){return Ee.between(this.$anchor,this.$head).getBookmark()}}_e.prototype.visible=!0;class eP{constructor(t,e){this.$from=t,this.$to=e}}let tP=!1;function nP(n){!tP&&!n.parent.inlineContent&&(tP=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Ee extends _e{constructor(t,e=t){nP(t),nP(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let i=t.resolve(e.map(this.head));if(!i.parent.inlineContent)return _e.near(i);let r=t.resolve(e.map(this.anchor));return new Ee(r.parent.inlineContent?r:i,i)}replace(t,e=G.empty){if(super.replace(t,e),e==G.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof Ee&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new am(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ee(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,i=e){let r=t.resolve(e);return new this(r,i==e?r:t.resolve(i))}static between(t,e,i){let r=t.pos-e.pos;if((!i||r)&&(i=r>=0?1:-1),!e.parent.inlineContent){let o=_e.findFrom(e,i,!0)||_e.findFrom(e,-i,!0);if(!o)return _e.near(e,i);e=o.$head}return t.parent.inlineContent||(0==r||(t=(_e.findFrom(t,-i,!0)||_e.findFrom(t,i,!0)).$anchor).posnew zi(n)};function Qc(n,t,e,i,r,o=!1){if(t.inlineContent)return Ee.create(n,e);for(let s=i-(r>0?0:1);r>0?s=0;s+=r){let a=t.child(s);if(a.isAtom){if(!o&&ce.isSelectable(a))return ce.create(n,e-(r<0?a.nodeSize:0))}else{let l=Qc(n,a,e+r,r<0?a.childCount:0,r,o);if(l)return l}e+=a.nodeSize*r}return null}function iP(n,t,e){let i=n.steps.length-1;if(i{null==s&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),e)))}class iq extends zC{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return Tt.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let i=this.selection;return e&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Tt.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,i){let r=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(null==i&&(i=e),i=i??e,!t)return this.deleteRange(e,i);let o=this.storedMarks;if(!o){let s=this.doc.resolve(e);o=i==e?s.marks():s.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(e,i,r.text(t,o)),this.selection.empty||this.setSelection(_e.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function sP(n,t){return t&&n?n.bind(t):n}class sh{constructor(t,e,i){this.name=t,this.init=sP(e.init,i),this.apply=sP(e.apply,i)}}const rq=[new sh("doc",{init:n=>n.doc||n.schema.topNodeType.createAndFill(),apply:n=>n.doc}),new sh("selection",{init:(n,t)=>n.selection||_e.atStart(t.doc),apply:n=>n.selection}),new sh("storedMarks",{init:n=>n.storedMarks||null,apply:(n,t,e,i)=>i.selection.$cursor?n.storedMarks:null}),new sh("scrollToSelection",{init:()=>0,apply:(n,t)=>n.scrolledIntoView?t+1:t})];class GC{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=rq.slice(),e&&e.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new sh(i.key,i.spec.state,i))})}}class Uc{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let i=0;ii.toJSON())),t&&"object"==typeof t)for(let i in t){if("doc"==i||"selection"==i)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[i],o=r.spec.state;o&&o.toJSON&&(e[i]=o.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,i){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let r=new GC(t.schema,t.plugins),o=new Uc(r);return r.fields.forEach(s=>{if("doc"==s.name)o.doc=lo.fromJSON(t.schema,e.doc);else if("selection"==s.name)o.selection=_e.fromJSON(o.doc,e.selection);else if("storedMarks"==s.name)e.storedMarks&&(o.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let a in i){let l=i[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(e,a))return void(o[s.name]=c.fromJSON.call(l,t,e[a],o))}o[s.name]=s.init(t,o)}}),o}}function aP(n,t,e){for(let i in n){let r=n[i];r instanceof Function?r=r.bind(t):"handleDOMEvents"==i&&(r=aP(r,t,{})),e[i]=r}return e}class it{constructor(t){this.spec=t,this.props={},t.props&&aP(t.props,this,this.props),this.key=t.key?t.key.key:lP("plugin")}getState(t){return t[this.key]}}const YC=Object.create(null);function lP(n){return n in YC?n+"$"+ ++YC[n]:(YC[n]=0,n+"$")}class _t{constructor(t="key"){this.key=lP(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}function ur(n){if(null==n)return window;if("[object Window]"!==n.toString()){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function Za(n){return n instanceof ur(n).Element||n instanceof Element}function dr(n){return n instanceof ur(n).HTMLElement||n instanceof HTMLElement}function WC(n){return!(typeof ShadowRoot>"u")&&(n instanceof ur(n).ShadowRoot||n instanceof ShadowRoot)}var el=Math.max,cm=Math.min,jc=Math.round;function JC(){var n=navigator.userAgentData;return null!=n&&n.brands?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cP(){return!/^((?!chrome|android).)*safari/i.test(JC())}function zc(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var i=n.getBoundingClientRect(),r=1,o=1;t&&dr(n)&&(r=n.offsetWidth>0&&jc(i.width)/n.offsetWidth||1,o=n.offsetHeight>0&&jc(i.height)/n.offsetHeight||1);var a=(Za(n)?ur(n):window).visualViewport,l=!cP()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function KC(n){var t=ur(n);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ho(n){return n?(n.nodeName||"").toLowerCase():null}function js(n){return((Za(n)?n.ownerDocument:n.document)||window.document).documentElement}function $C(n){return zc(js(n)).left+KC(n).scrollLeft}function qo(n){return ur(n).getComputedStyle(n)}function qC(n){var t=qo(n);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function lq(n,t,e){void 0===e&&(e=!1);var i=dr(t),r=dr(t)&&function aq(n){var t=n.getBoundingClientRect(),e=jc(t.width)/n.offsetWidth||1,i=jc(t.height)/n.offsetHeight||1;return 1!==e||1!==i}(t),o=js(t),s=zc(n,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==ho(t)||qC(o))&&(a=function sq(n){return n!==ur(n)&&dr(n)?function oq(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):KC(n)}(t)),dr(t)?((l=zc(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=$C(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function XC(n){var t=zc(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function um(n){return"html"===ho(n)?n:n.assignedSlot||n.parentNode||(WC(n)?n.host:null)||js(n)}function uP(n){return["html","body","#document"].indexOf(ho(n))>=0?n.ownerDocument.body:dr(n)&&qC(n)?n:uP(um(n))}function ah(n,t){var e;void 0===t&&(t=[]);var i=uP(n),r=i===(null==(e=n.ownerDocument)?void 0:e.body),o=ur(i),s=r?[o].concat(o.visualViewport||[],qC(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(ah(um(s)))}function cq(n){return["table","td","th"].indexOf(ho(n))>=0}function dP(n){return dr(n)&&"fixed"!==qo(n).position?n.offsetParent:null}function lh(n){for(var t=ur(n),e=dP(n);e&&cq(e)&&"static"===qo(e).position;)e=dP(e);return e&&("html"===ho(e)||"body"===ho(e)&&"static"===qo(e).position)?t:e||function uq(n){var t=/firefox/i.test(JC());if(/Trident/i.test(JC())&&dr(n)&&"fixed"===qo(n).position)return null;var r=um(n);for(WC(r)&&(r=r.host);dr(r)&&["html","body"].indexOf(ho(r))<0;){var o=qo(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(n)||t}var Ci="top",hr="bottom",pr="right",vi="left",ZC="auto",ch=[Ci,hr,pr,vi],Hc="start",uh="end",hP="viewport",dh="popper",pP=ch.reduce(function(n,t){return n.concat([t+"-"+Hc,t+"-"+uh])},[]),fP=[].concat(ch,[ZC]).reduce(function(n,t){return n.concat([t,t+"-"+Hc,t+"-"+uh])},[]),Cq=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function vq(n){var t=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&r(l)}}),i.push(o)}return n.forEach(function(o){t.set(o.name,o)}),n.forEach(function(o){e.has(o.name)||r(o)}),i}function wq(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}var gP={placement:"bottom",modifiers:[],strategy:"absolute"};function mP(){for(var n=arguments.length,t=new Array(n),e=0;e=0?"x":"y"}function AP(n){var l,t=n.reference,e=n.element,i=n.placement,r=i?po(i):null,o=i?Vc(i):null,s=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2;switch(r){case Ci:l={x:s,y:t.y-e.height};break;case hr:l={x:s,y:t.y+t.height};break;case pr:l={x:t.x+t.width,y:a};break;case vi:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=r?ev(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Hc:l[c]=l[c]-(t[u]/2-e[u]/2);break;case uh:l[c]=l[c]+(t[u]/2-e[u]/2)}}return l}const Bq={name:"popperOffsets",enabled:!0,phase:"read",fn:function Tq(n){var t=n.state;t.modifiersData[n.name]=AP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Oq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bP(n){var t,e=n.popper,i=n.popperRect,r=n.placement,o=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=s.x,p=void 0===h?0:h,f=s.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var A=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),E=vi,b=Ci,D=window;if(c){var I=lh(e),Q="clientHeight",O="clientWidth";I===ur(e)&&"static"!==qo(I=js(e)).position&&"absolute"===a&&(Q="scrollHeight",O="scrollWidth"),(r===Ci||(r===vi||r===pr)&&o===uh)&&(b=hr,g-=(d&&I===D&&D.visualViewport?D.visualViewport.height:I[Q])-i.height,g*=l?1:-1),r!==vi&&(r!==Ci&&r!==hr||o!==uh)||(E=pr,p-=(d&&I===D&&D.visualViewport?D.visualViewport.width:I[O])-i.width,p*=l?1:-1)}var Ae,xe=Object.assign({position:a},c&&Oq),ke=!0===u?function kq(n){var e=n.y,r=window.devicePixelRatio||1;return{x:jc(n.x*r)/r||0,y:jc(e*r)/r||0}}({x:p,y:g}):{x:p,y:g};return p=ke.x,g=ke.y,Object.assign({},xe,l?((Ae={})[b]=y?"0":"",Ae[E]=A?"0":"",Ae.transform=(D.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",Ae):((t={})[b]=y?g+"px":"",t[E]=A?p+"px":"",t.transform="",t))}const Fq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Pq(n){var t=n.state,e=n.options,i=e.gpuAcceleration,r=void 0===i||i,o=e.adaptive,s=void 0===o||o,a=e.roundOffsets,l=void 0===a||a,u={placement:po(t.placement),variation:Vc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,bP(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,bP(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},yP={name:"applyStyles",enabled:!0,phase:"write",fn:function Rq(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!dr(o)||!ho(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(s){var a=r[s];!1===a?o.removeAttribute(s):o.setAttribute(s,!0===a?"":a)}))})},effect:function Nq(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],o=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]).reduce(function(l,c){return l[c]="",l},{});!dr(r)||!ho(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(l){r.removeAttribute(l)}))})}},requires:["computeStyles"]},Uq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function Qq(n){var t=n.state,i=n.name,r=n.options.offset,o=void 0===r?[0,0]:r,s=fP.reduce(function(u,d){return u[d]=function Lq(n,t,e){var i=po(n),r=[vi,Ci].indexOf(i)>=0?-1:1,o="function"==typeof e?e(Object.assign({},t,{placement:n})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[vi,pr].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,t.rects,o),u},{}),a=s[t.placement],c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a.x,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var jq={left:"right",right:"left",bottom:"top",top:"bottom"};function hm(n){return n.replace(/left|right|bottom|top/g,function(t){return jq[t]})}var zq={start:"end",end:"start"};function _P(n){return n.replace(/start|end/g,function(t){return zq[t]})}function EP(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&WC(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function tv(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function CP(n,t,e){return t===hP?tv(function Hq(n,t){var e=ur(n),i=js(n),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=cP();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+$C(n),y:l}}(n,e)):Za(t)?function Gq(n,t){var e=zc(n,!1,"fixed"===t);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}(t,e):tv(function Vq(n){var t,e=js(n),i=KC(n),r=null==(t=n.ownerDocument)?void 0:t.body,o=el(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=el(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+$C(n),l=-i.scrollTop;return"rtl"===qo(r||e).direction&&(a+=el(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(js(n)))}function MP(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function wP(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}function hh(n,t){void 0===t&&(t={});var i=t.placement,r=void 0===i?n.placement:i,o=t.strategy,s=void 0===o?n.strategy:o,a=t.boundary,l=void 0===a?"clippingParents":a,c=t.rootBoundary,u=void 0===c?hP:c,d=t.elementContext,h=void 0===d?dh:d,p=t.altBoundary,f=void 0!==p&&p,g=t.padding,m=void 0===g?0:g,A=MP("number"!=typeof m?m:wP(m,ch)),E=n.rects.popper,b=n.elements[f?h===dh?"reference":dh:h],D=function Wq(n,t,e,i){var r="clippingParents"===t?function Yq(n){var t=ah(um(n)),i=["absolute","fixed"].indexOf(qo(n).position)>=0&&dr(n)?lh(n):n;return Za(i)?t.filter(function(r){return Za(r)&&EP(r,i)&&"body"!==ho(r)}):[]}(n):[].concat(t),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=CP(n,c,i);return l.top=el(u.top,l.top),l.right=cm(u.right,l.right),l.bottom=cm(u.bottom,l.bottom),l.left=el(u.left,l.left),l},CP(n,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Za(b)?b:b.contextElement||js(n.elements.popper),l,u,s),I=zc(n.elements.reference),Q=AP({reference:I,element:E,strategy:"absolute",placement:r}),O=tv(Object.assign({},E,Q)),q=h===dh?O:I,le={top:D.top-q.top+A.top,bottom:q.bottom-D.bottom+A.bottom,left:D.left-q.left+A.left,right:q.right-D.right+A.right},xe=n.modifiersData.offset;if(h===dh&&xe){var ke=xe[r];Object.keys(le).forEach(function(Ae){var dt=[pr,hr].indexOf(Ae)>=0?1:-1,ht=[Ci,hr].indexOf(Ae)>=0?"y":"x";le[Ae]+=ke[ht]*dt})}return le}const qq={name:"flip",enabled:!0,phase:"main",fn:function $q(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,p=e.flipVariations,f=void 0===p||p,g=e.allowedAutoPlacements,m=t.options.placement,A=po(m),E=l||(A!==m&&f?function Kq(n){if(po(n)===ZC)return[];var t=hm(n);return[_P(n),t,_P(t)]}(m):[hm(m)]),b=[m].concat(E).reduce(function(Xe,Si){return Xe.concat(po(Si)===ZC?function Jq(n,t){void 0===t&&(t={});var r=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=void 0===l?fP:l,u=Vc(t.placement),d=u?a?pP:pP.filter(function(f){return Vc(f)===u}):ch,h=d.filter(function(f){return c.indexOf(f)>=0});0===h.length&&(h=d);var p=h.reduce(function(f,g){return f[g]=hh(n,{placement:g,boundary:r,rootBoundary:o,padding:s})[po(g)],f},{});return Object.keys(p).sort(function(f,g){return p[f]-p[g]})}(t,{placement:Si,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):Si)},[]),D=t.rects.reference,I=t.rects.popper,Q=new Map,O=!0,q=b[0],le=0;le=0,ht=dt?"width":"height",U=hh(t,{placement:xe,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),V=dt?Ae?pr:vi:Ae?hr:Ci;D[ht]>I[ht]&&(V=hm(V));var W=hm(V),X=[];if(o&&X.push(U[ke]<=0),a&&X.push(U[V]<=0,U[W]<=0),X.every(function(Xe){return Xe})){q=xe,O=!1;break}Q.set(xe,X)}if(O)for(var ft=function(Si){var Hr=b.find(function(Ht){var Rn=Q.get(Ht);if(Rn)return Rn.slice(0,Si).every(function(En){return En})});if(Hr)return q=Hr,"break"},Bt=f?3:1;Bt>0&&"break"!==ft(Bt);Bt--);t.placement!==q&&(t.modifiersData[i]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ph(n,t,e){return el(n,cm(t,e))}const t7={name:"preventOverflow",enabled:!0,phase:"main",fn:function e7(n){var t=n.state,e=n.options,i=n.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,p=void 0===h||h,f=e.tetherOffset,g=void 0===f?0:f,m=hh(t,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),A=po(t.placement),y=Vc(t.placement),E=!y,b=ev(A),D=function Xq(n){return"x"===n?"y":"x"}(b),I=t.modifiersData.popperOffsets,Q=t.rects.reference,O=t.rects.popper,q="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,le="number"==typeof q?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),xe=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ke={x:0,y:0};if(I){if(o){var Ae,dt="y"===b?Ci:vi,ht="y"===b?hr:pr,U="y"===b?"height":"width",V=I[b],W=V+m[dt],X=V-m[ht],Ce=p?-O[U]/2:0,ft=y===Hc?Q[U]:O[U],Bt=y===Hc?-O[U]:-Q[U],un=t.elements.arrow,Xe=p&&un?XC(un):{width:0,height:0},Si=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Hr=Si[dt],Ht=Si[ht],Rn=ph(0,Q[U],Xe[U]),En=E?Q[U]/2-Ce-Rn-Hr-le.mainAxis:ft-Rn-Hr-le.mainAxis,Yi=E?-Q[U]/2+Ce+Rn+Ht+le.mainAxis:Bt+Rn+Ht+le.mainAxis,Mo=t.elements.arrow&&lh(t.elements.arrow),ip=null!=(Ae=xe?.[b])?Ae:0,YA=V+Yi-ip,rp=ph(p?cm(W,V+En-ip-(Mo?"y"===b?Mo.clientTop||0:Mo.clientLeft||0:0)):W,V,p?el(X,YA):X);I[b]=rp,ke[b]=rp-V}if(a){var op,ls=I[D],ha="y"===D?"height":"width",sp=ls+m["x"===b?Ci:vi],wl=ls-m["x"===b?hr:pr],ap=-1!==[Ci,vi].indexOf(A),KA=null!=(op=xe?.[D])?op:0,$A=ap?sp:ls-Q[ha]-O[ha]-KA+le.altAxis,qA=ap?ls+Q[ha]+O[ha]-KA-le.altAxis:wl,XA=p&&ap?function Zq(n,t,e){var i=ph(n,t,e);return i>e?e:i}($A,ls,qA):ph(p?$A:sp,ls,p?qA:wl);I[D]=XA,ke[D]=XA-ls}t.modifiersData[i]=ke}},requiresIfExists:["offset"]},o7={name:"arrow",enabled:!0,phase:"main",fn:function i7(n){var t,e=n.state,i=n.name,r=n.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=po(e.placement),l=ev(a),u=[vi,pr].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(t,e){return MP("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:wP(t,ch))}(r.padding,e),h=XC(o),p="y"===l?Ci:vi,f="y"===l?hr:pr,g=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],m=s[l]-e.rects.reference[l],A=lh(o),y=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,I=y/2-h[u]/2+(g/2-m/2),Q=ph(d[p],I,y-h[u]-d[f]);e.modifiersData[i]=((t={})[l]=Q,t.centerOffset=Q-I,t)}},effect:function r7(n){var t=n.state,i=n.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!EP(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function DP(n,t,e){return void 0===e&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function IP(n){return[Ci,pr,hr,vi].some(function(t){return n[t]>=0})}var a7=[xq,Bq,Fq,yP,Uq,qq,t7,o7,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function s7(n){var t=n.state,e=n.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=hh(t,{elementContext:"reference"}),a=hh(t,{altBoundary:!0}),l=DP(s,i),c=DP(a,r,o),u=IP(l),d=IP(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}],l7=Iq({defaultModifiers:a7}),SP="tippy-content",TP="tippy-arrow",BP="tippy-svg-arrow",zs={passive:!0,capture:!0},OP=function(){return document.body};function nv(n,t,e){return Array.isArray(n)?n[t]??(Array.isArray(e)?e[t]:e):n}function iv(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function kP(n,t){return"function"==typeof n?n.apply(void 0,t):n}function PP(n,t){return 0===t?n:function(i){clearTimeout(e),e=setTimeout(function(){n(i)},t)};var e}function Hs(n){return[].concat(n)}function FP(n,t){-1===n.indexOf(t)&&n.push(t)}function Gc(n){return[].slice.call(n)}function NP(n){return Object.keys(n).reduce(function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t},{})}function tl(){return document.createElement("div")}function pm(n){return["Element","Fragment"].some(function(t){return iv(n,t)})}function sv(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function fh(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function av(n,t,e){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){n[i](r,e)})}function UP(n,t){for(var e=t;e;){var i;if(n.contains(e))return!0;e=null==e.getRootNode||null==(i=e.getRootNode())?void 0:i.host}return!1}var fo={isTouch:!1},jP=0;function m7(){fo.isTouch||(fo.isTouch=!0,window.performance&&document.addEventListener("mousemove",zP))}function zP(){var n=performance.now();n-jP<20&&(fo.isTouch=!1,document.removeEventListener("mousemove",zP)),jP=n}function A7(){var n=document.activeElement;(function LP(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var _7=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,Mi=Object.assign({appendTo:OP,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),M7=Object.keys(Mi);function WP(n){var e=(n.plugins||[]).reduce(function(i,r){var a,o=r.name;return o&&(i[o]=void 0!==n[o]?n[o]:null!=(a=Mi[o])?a:r.defaultValue),i},{});return Object.assign({},n,e)}function JP(n,t){var e=Object.assign({},t,{content:kP(t.content,[n])},t.ignoreAttributes?{}:function D7(n,t){return(t?Object.keys(WP(Object.assign({},Mi,{plugins:t}))):M7).reduce(function(r,o){var s=(n.getAttribute("data-tippy-"+o)||"").trim();if(!s)return r;if("content"===o)r[o]=s;else try{r[o]=JSON.parse(s)}catch{r[o]=s}return r},{})}(n,t.plugins));return e.aria=Object.assign({},Mi.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function lv(n,t){n.innerHTML=t}function KP(n){var t=tl();return!0===n?t.className=TP:(t.className=BP,pm(n)?t.appendChild(n):lv(t,n)),t}function $P(n,t){pm(t.content)?(lv(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?lv(n,t.content):n.textContent=t.content)}function fm(n){var t=n.firstElementChild,e=Gc(t.children);return{box:t,content:e.find(function(i){return i.classList.contains(SP)}),arrow:e.find(function(i){return i.classList.contains(TP)||i.classList.contains(BP)}),backdrop:e.find(function(i){return i.classList.contains("tippy-backdrop")})}}function qP(n){var t=tl(),e=tl();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=tl();function r(o,s){var a=fm(t),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),"string"==typeof s.animation?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof s.maxWidth?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&$P(c,n.props),s.arrow?u?o.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(KP(s.arrow))):l.appendChild(KP(s.arrow)):u&&l.removeChild(u)}return i.className=SP,i.setAttribute("data-state","hidden"),$P(i,n.props),t.appendChild(e),e.appendChild(i),r(n.props,n.props),{popper:t,onUpdate:r}}qP.$$tippy=!0;var S7=1,gm=[],mm=[];function x7(n,t){var i,r,o,u,d,h,g,e=JP(n,Object.assign({},Mi,WP(NP(t)))),s=!1,a=!1,l=!1,c=!1,p=[],f=PP(GA,e.interactiveDebounce),m=S7++,y=function h7(n){return n.filter(function(t,e){return n.indexOf(t)===e})}(e.plugins),b={id:m,reference:n,popper:tl(),popperInstance:null,props:e,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function $A(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(o)},setProps:function qA(k){if(!b.state.isDestroyed){W("onBeforeUpdate",[b,k]),VA();var se=b.props,De=JP(n,Object.assign({},se,NP(k),{ignoreAttributes:!0}));b.props=De,Mo(),se.interactiveDebounce!==De.interactiveDebounce&&(ft(),f=PP(GA,De.interactiveDebounce)),se.triggerTarget&&!De.triggerTarget?Hs(se.triggerTarget).forEach(function(bt){bt.removeAttribute("aria-expanded")}):De.triggerTarget&&n.removeAttribute("aria-expanded"),Ce(),V(),Q&&Q(se,De),b.popperInstance&&(WA(),ha().forEach(function(bt){requestAnimationFrame(bt._tippy.popperInstance.forceUpdate)})),W("onAfterUpdate",[b,k])}},setContent:function XA(k){b.setProps({content:k})},show:function pfe(){var k=b.state.isVisible,se=b.state.isDestroyed,De=!b.state.isEnabled,bt=fo.isTouch&&!b.props.touch,Ze=nv(b.props.duration,0,Mi.duration);if(!(k||se||De||bt||Ae().hasAttribute("disabled")||(W("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,ke()&&(I.style.visibility="visible"),V(),Si(),b.state.isMounted||(I.style.transition="none"),ke()){var pi=ht();sv([pi.box,pi.content],0)}h=function(){var Dl;if(b.state.isVisible&&!c){if(c=!0,I.style.transition=b.props.moveTransition,ke()&&b.props.animation){var Iw=ht(),ZA=Iw.box,bu=Iw.content;sv([ZA,bu],Ze),fh([ZA,bu],"visible")}X(),Ce(),FP(mm,b),null==(Dl=b.popperInstance)||Dl.forceUpdate(),W("onMount",[b]),b.props.animation&&ke()&&function Rn(k,se){En(k,se)}(Ze,function(){b.state.isShown=!0,W("onShown",[b])})}},function ls(){var se,k=b.props.appendTo,De=Ae();(se=b.props.interactive&&k===OP||"parent"===k?De.parentNode:kP(k,[De])).contains(I)||se.appendChild(I),b.state.isMounted=!0,WA()}()}},hide:function ffe(){var k=!b.state.isVisible,se=b.state.isDestroyed,De=!b.state.isEnabled,bt=nv(b.props.duration,1,Mi.duration);if(!(k||se||De)&&(W("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,s=!1,ke()&&(I.style.visibility="hidden"),ft(),Hr(),V(!0),ke()){var Ze=ht(),pi=Ze.box,_r=Ze.content;b.props.animation&&(sv([pi,_r],bt),fh([pi,_r],"hidden"))}X(),Ce(),b.props.animation?ke()&&function Ht(k,se){En(k,function(){!b.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&se()})}(bt,b.unmount):b.unmount()}},hideWithInteractivity:function gfe(k){dt().addEventListener("mousemove",f),FP(gm,f),f(k)},enable:function ap(){b.state.isEnabled=!0},disable:function KA(){b.hide(),b.state.isEnabled=!1},unmount:function mfe(){b.state.isVisible&&b.hide(),b.state.isMounted&&(JA(),ha().forEach(function(k){k._tippy.unmount()}),I.parentNode&&I.parentNode.removeChild(I),mm=mm.filter(function(k){return k!==b}),b.state.isMounted=!1,W("onHidden",[b]))},destroy:function Afe(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),VA(),delete n._tippy,b.state.isDestroyed=!0,W("onDestroy",[b]))}};if(!e.render)return b;var D=e.render(b),I=D.popper,Q=D.onUpdate;I.setAttribute("data-tippy-root",""),I.id="tippy-"+b.id,b.popper=I,n._tippy=b,I._tippy=b;var O=y.map(function(k){return k.fn(b)}),q=n.hasAttribute("aria-expanded");return Mo(),Ce(),V(),W("onCreate",[b]),e.showOnCreate&&sp(),I.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&dt().addEventListener("mousemove",f)}),b;function le(){var k=b.props.touch;return Array.isArray(k)?k:[k,0]}function xe(){return"hold"===le()[0]}function ke(){var k;return!(null==(k=b.props.render)||!k.$$tippy)}function Ae(){return g||n}function dt(){var k=Ae().parentNode;return k?function QP(n){var t,i=Hs(n)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}(k):document}function ht(){return fm(I)}function U(k){return b.state.isMounted&&!b.state.isVisible||fo.isTouch||u&&"focus"===u.type?0:nv(b.props.delay,k?0:1,Mi.delay)}function V(k){void 0===k&&(k=!1),I.style.pointerEvents=b.props.interactive&&!k?"":"none",I.style.zIndex=""+b.props.zIndex}function W(k,se,De){var bt;void 0===De&&(De=!0),O.forEach(function(Ze){Ze[k]&&Ze[k].apply(Ze,se)}),De&&(bt=b.props)[k].apply(bt,se)}function X(){var k=b.props.aria;if(k.content){var se="aria-"+k.content,De=I.id;Hs(b.props.triggerTarget||n).forEach(function(Ze){var pi=Ze.getAttribute(se);if(b.state.isVisible)Ze.setAttribute(se,pi?pi+" "+De:De);else{var _r=pi&&pi.replace(De,"").trim();_r?Ze.setAttribute(se,_r):Ze.removeAttribute(se)}})}}function Ce(){!q&&b.props.aria.expanded&&Hs(b.props.triggerTarget||n).forEach(function(se){b.props.interactive?se.setAttribute("aria-expanded",b.state.isVisible&&se===Ae()?"true":"false"):se.removeAttribute("aria-expanded")})}function ft(){dt().removeEventListener("mousemove",f),gm=gm.filter(function(k){return k!==f})}function Bt(k){if(!fo.isTouch||!l&&"mousedown"!==k.type){var se=k.composedPath&&k.composedPath()[0]||k.target;if(!b.props.interactive||!UP(I,se)){if(Hs(b.props.triggerTarget||n).some(function(De){return UP(De,se)})){if(fo.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else W("onClickOutside",[b,k]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),a=!0,setTimeout(function(){a=!1}),b.state.isMounted||Hr())}}}function un(){l=!0}function Xe(){l=!1}function Si(){var k=dt();k.addEventListener("mousedown",Bt,!0),k.addEventListener("touchend",Bt,zs),k.addEventListener("touchstart",Xe,zs),k.addEventListener("touchmove",un,zs)}function Hr(){var k=dt();k.removeEventListener("mousedown",Bt,!0),k.removeEventListener("touchend",Bt,zs),k.removeEventListener("touchstart",Xe,zs),k.removeEventListener("touchmove",un,zs)}function En(k,se){var De=ht().box;function bt(Ze){Ze.target===De&&(av(De,"remove",bt),se())}if(0===k)return se();av(De,"remove",d),av(De,"add",bt),d=bt}function Yi(k,se,De){void 0===De&&(De=!1),Hs(b.props.triggerTarget||n).forEach(function(Ze){Ze.addEventListener(k,se,De),p.push({node:Ze,eventType:k,handler:se,options:De})})}function Mo(){xe()&&(Yi("touchstart",ip,{passive:!0}),Yi("touchend",YA,{passive:!0})),function d7(n){return n.split(/\s+/).filter(Boolean)}(b.props.trigger).forEach(function(k){if("manual"!==k)switch(Yi(k,ip),k){case"mouseenter":Yi("mouseleave",YA);break;case"focus":Yi(_7?"focusout":"blur",rp);break;case"focusin":Yi("focusout",rp)}})}function VA(){p.forEach(function(k){k.node.removeEventListener(k.eventType,k.handler,k.options)}),p=[]}function ip(k){var se,De=!1;if(b.state.isEnabled&&!op(k)&&!a){var bt="focus"===(null==(se=u)?void 0:se.type);u=k,g=k.currentTarget,Ce(),!b.state.isVisible&&function ov(n){return iv(n,"MouseEvent")}(k)&&gm.forEach(function(Ze){return Ze(k)}),"click"===k.type&&(b.props.trigger.indexOf("mouseenter")<0||s)&&!1!==b.props.hideOnClick&&b.state.isVisible?De=!0:sp(k),"click"===k.type&&(s=!De),De&&!bt&&wl(k)}}function GA(k){var se=k.target,De=Ae().contains(se)||I.contains(se);"mousemove"===k.type&&De||function g7(n,t){var e=t.clientX,i=t.clientY;return n.every(function(r){var o=r.popperRect,s=r.popperState,l=r.props.interactiveBorder,c=function RP(n){return n.split("-")[0]}(s.placement),u=s.modifiersData.offset;return!u||o.top-i+("bottom"===c?u.top.y:0)>l||i-o.bottom-("top"===c?u.bottom.y:0)>l||o.left-e+("right"===c?u.left.x:0)>l||e-o.right-("left"===c?u.right.x:0)>l})}(ha().concat(I).map(function(Ze){var pi,Au=null==(pi=Ze._tippy.popperInstance)?void 0:pi.state;return Au?{popperRect:Ze.getBoundingClientRect(),popperState:Au,props:e}:null}).filter(Boolean),k)&&(ft(),wl(k))}function YA(k){if(!(op(k)||b.props.trigger.indexOf("click")>=0&&s)){if(b.props.interactive)return void b.hideWithInteractivity(k);wl(k)}}function rp(k){b.props.trigger.indexOf("focusin")<0&&k.target!==Ae()||b.props.interactive&&k.relatedTarget&&I.contains(k.relatedTarget)||wl(k)}function op(k){return!!fo.isTouch&&xe()!==k.type.indexOf("touch")>=0}function WA(){JA();var k=b.props,se=k.popperOptions,De=k.placement,bt=k.offset,Ze=k.getReferenceClientRect,pi=k.moveTransition,_r=ke()?fm(I).arrow:null,Au=Ze?{getBoundingClientRect:Ze,contextElement:Ze.contextElement||Ae()}:n,Dl=[{name:"offset",options:{offset:bt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!pi}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ZA){var bu=ZA.state;if(ke()){var Sw=ht().box;["placement","reference-hidden","escaped"].forEach(function(eb){"placement"===eb?Sw.setAttribute("data-placement",bu.placement):bu.attributes.popper["data-popper-"+eb]?Sw.setAttribute("data-"+eb,""):Sw.removeAttribute("data-"+eb)}),bu.attributes.popper={}}}}];ke()&&_r&&Dl.push({name:"arrow",options:{element:_r,padding:3}}),Dl.push.apply(Dl,se?.modifiers||[]),b.popperInstance=l7(Au,I,Object.assign({},se,{placement:De,onFirstUpdate:h,modifiers:Dl}))}function JA(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function ha(){return Gc(I.querySelectorAll("[data-tippy-root]"))}function sp(k){b.clearDelayTimeouts(),k&&W("onTrigger",[b,k]),Si();var se=U(!0),De=le(),Ze=De[1];fo.isTouch&&"hold"===De[0]&&Ze&&(se=Ze),se?i=setTimeout(function(){b.show()},se):b.show()}function wl(k){if(b.clearDelayTimeouts(),W("onUntrigger",[b,k]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(k.type)>=0&&s)){var se=U(!1);se?r=setTimeout(function(){b.state.isVisible&&b.hide()},se):o=requestAnimationFrame(function(){b.hide()})}}else Hr()}}function Vs(n,t){void 0===t&&(t={});var e=Mi.plugins.concat(t.plugins||[]);!function b7(){document.addEventListener("touchstart",m7,zs),window.addEventListener("blur",A7)}();var i=Object.assign({},t,{plugins:e}),a=function f7(n){return pm(n)?[n]:function p7(n){return iv(n,"NodeList")}(n)?Gc(n):Array.isArray(n)?n:Gc(document.querySelectorAll(n))}(n).reduce(function(l,c){var u=c&&x7(c,i);return u&&l.push(u),l},[]);return pm(n)?a[0]:a}Vs.defaultProps=Mi,Vs.setDefaultProps=function(t){Object.keys(t).forEach(function(i){Mi[i]=t[i]})},Vs.currentInput=fo,Object.assign({},yP,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}}),Vs.setDefaultProps({render:qP});const Xo=Vs,eF=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function $n(n){return t=>0===n?tg():t.lift(new N7(n))}class N7{constructor(t){if(this.total=t,this.total<0)throw new eF}call(t,e){return e.subscribe(new L7(t,this.total))}}class L7 extends Ge{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}const Hi=function(n){for(var t=0;;t++)if(!(n=n.previousSibling))return t},mh=function(n){let t=n.assignedSlot||n.parentNode;return t&&11==t.nodeType?t.host:t};let tF=null;const Zo=function(n,t,e){let i=tF||(tF=document.createRange());return i.setEnd(n,e??n.nodeValue.length),i.setStart(n,t||0),i},nl=function(n,t,e,i){return e&&(nF(n,t,e,i,-1)||nF(n,t,e,i,1))},Q7=/^(img|br|input|textarea|hr)$/i;function nF(n,t,e,i,r){for(;;){if(n==e&&t==i)return!0;if(t==(r<0?0:go(n))){let o=n.parentNode;if(!o||1!=o.nodeType||j7(n)||Q7.test(n.nodeName)||"false"==n.contentEditable)return!1;t=Hi(n)+(r<0?0:1),n=o}else{if(1!=n.nodeType)return!1;if("false"==(n=n.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<0?go(n):0}}}function go(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function j7(n){let t;for(let e=n;e&&!(t=e.pmViewDesc);e=e.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==n||t.contentDOM==n)}const bm=function(n){return n.focusNode&&nl(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function Yc(n,t){let e=document.createEvent("Event");return e.initEvent("keydown",!0,!0),e.keyCode=n,e.key=e.code=t,e}const Gs=typeof navigator<"u"?navigator:null,iF=typeof document<"u"?document:null,Ys=Gs&&Gs.userAgent||"",uv=/Edge\/(\d+)/.exec(Ys),rF=/MSIE \d/.exec(Ys),dv=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ys),wi=!!(rF||dv||uv),Ws=rF?document.documentMode:dv?+dv[1]:uv?+uv[1]:0,Nr=!wi&&/gecko\/(\d+)/i.test(Ys);Nr&&/Firefox\/(\d+)/.exec(Ys);const hv=!wi&&/Chrome\/(\d+)/.exec(Ys),Di=!!hv,H7=hv?+hv[1]:0,ci=!wi&&!!Gs&&/Apple Computer/.test(Gs.vendor),Wc=ci&&(/Mobile\/\w+/.test(Ys)||!!Gs&&Gs.maxTouchPoints>2),fr=Wc||!!Gs&&/Mac/.test(Gs.platform),mo=/Android \d/.test(Ys),ym=!!iF&&"webkitFontSmoothing"in iF.documentElement.style,V7=ym?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function G7(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function Js(n,t){return"number"==typeof n?n:n[t]}function Y7(n){let t=n.getBoundingClientRect();return{left:t.left,right:t.left+n.clientWidth*(t.width/n.offsetWidth||1),top:t.top,bottom:t.top+n.clientHeight*(t.height/n.offsetHeight||1)}}function oF(n,t,e){let i=n.someProp("scrollThreshold")||0,r=n.someProp("scrollMargin")||5,o=n.dom.ownerDocument;for(let s=e||n.dom;s;s=mh(s)){if(1!=s.nodeType)continue;let a=s,l=a==o.body,c=l?G7(o):Y7(a),u=0,d=0;if(t.topc.bottom-Js(i,"bottom")&&(d=t.bottom-c.bottom+Js(r,"bottom")),t.leftc.right-Js(i,"right")&&(u=t.right-c.right+Js(r,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let h=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let f=a.scrollLeft-h,g=a.scrollTop-p;t={left:t.left-f,top:t.top-g,right:t.right-f,bottom:t.bottom-g}}if(l)break}}function sF(n){let t=[],e=n.ownerDocument;for(let i=n;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),n!=e);i=mh(i));return t}function aF(n,t){for(let e=0;e=a){s=Math.max(h.bottom,s),a=Math.min(h.top,a);let p=h.left>t.left?h.left-t.left:h.right=(h.left+h.right)/2?1:0));continue}}!e&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(o=c+1)}}return e&&3==e.nodeType?function $7(n,t){let e=n.nodeValue.length,i=document.createRange();for(let r=0;r=(o.left+o.right)/2?1:0)}}return{node:n,offset:0}}(e,r):!e||i&&1==e.nodeType?{node:n,offset:o}:lF(e,r)}function pv(n,t){return n.left>=t.left-1&&n.left<=t.right+1&&n.top>=t.top-1&&n.top<=t.bottom+1}function cF(n,t,e){let i=n.childNodes.length;if(i&&e.topt.top&&r++}i==n.dom&&r==i.childNodes.length-1&&1==i.lastChild.nodeType&&t.top>i.lastChild.getBoundingClientRect().bottom?s=n.state.doc.content.size:(0==r||1!=i.nodeType||"BR"!=i.childNodes[r-1].nodeName)&&(s=function Z7(n,t,e,i){let r=-1;for(let o=t;o!=n.dom;){let s=n.docView.nearestDesc(o,!0);if(!s)return null;if(s.node.isBlock&&s.parent){let a=s.dom.getBoundingClientRect();if(a.left>i.left||a.top>i.top)r=s.posBefore;else{if(!(a.right-1?r:n.docView.posFromDOM(t,e,1)}(n,i,r,t))}null==s&&(s=function X7(n,t,e){let{node:i,offset:r}=lF(t,e),o=-1;if(1==i.nodeType&&!i.firstChild){let s=i.getBoundingClientRect();o=s.left!=s.right&&e.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(i,r,o)}(n,o,t));let a=n.docView.nearestDesc(o,!0);return{pos:s,inside:a?a.posAtStart-a.border:-1}}function Ks(n,t){let e=n.getClientRects();return e.length?e[t<0?0:e.length-1]:n.getBoundingClientRect()}const tX=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function uF(n,t,e){let{node:i,offset:r,atom:o}=n.docView.domFromPos(t,e<0?-1:1),s=ym||Nr;if(3==i.nodeType){if(!s||!tX.test(i.nodeValue)&&(e<0?r:r!=i.nodeValue.length)){let l=r,c=r,u=e<0?1:-1;return e<0&&!r?(c++,u=-1):e>=0&&r==i.nodeValue.length?(l--,u=1):e<0?l--:c++,Ah(Ks(Zo(i,l,c),1),u<0)}{let l=Ks(Zo(i,r,r),e);if(Nr&&r&&/\s/.test(i.nodeValue[r-1])&&r=0)}if(null==o&&r&&(e<0||r==go(i))){let l=i.childNodes[r-1],c=3==l.nodeType?Zo(l,go(l)-(s?0:1)):1!=l.nodeType||"BR"==l.nodeName&&l.nextSibling?null:l;if(c)return Ah(Ks(c,1),!1)}if(null==o&&r=0)}function Ah(n,t){if(0==n.width)return n;let e=t?n.left:n.right;return{top:n.top,bottom:n.bottom,left:e,right:e}}function fv(n,t){if(0==n.height)return n;let e=t?n.top:n.bottom;return{top:e,bottom:e,left:n.left,right:n.right}}function dF(n,t,e){let i=n.state,r=n.root.activeElement;i!=t&&n.updateState(t),r!=n.dom&&n.focus();try{return e()}finally{i!=t&&n.updateState(i),r!=n.dom&&r&&r.focus()}}const iX=/[\u0590-\u08ac]/;let hF=null,pF=null,fF=!1;class bh{constructor(t,e,i,r){this.parent=t,this.children=e,this.dom=i,this.contentDOM=r,this.dirty=0,i.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,i){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;eHi(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let o=t;;o=o.parentNode){if(o==this.dom){r=!1;break}if(o.previousSibling)break}if(null==r&&e==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){r=!0;break}if(o.nextSibling)break}}return r??i>0?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let i=!0,r=t;r;r=r.parentNode){let s,o=this.getDesc(r);if(o&&(!e||o.node)){if(!i||!(s=o.nodeDOM)||(1==s.nodeType?s.contains(1==t.nodeType?t:t.parentNode):s==t))return o;i=!1}}}getDesc(t){let e=t.pmViewDesc;for(let i=e;i;i=i.parent)if(i==this)return e}posFromDOM(t,e,i){for(let r=t;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(t,e,i)}return-1}descAt(t){for(let e=0,i=0;et||s instanceof bF){r=t-o;break}o=a}if(r)return this.children[i].domFromPos(r-this.children[i].border,e);for(;i&&!(o=this.children[i-1]).size&&o instanceof mF&&o.side>=0;i--);if(e<=0){let o,s=!0;for(;o=i?this.children[i-1]:null,o&&o.dom.parentNode!=this.contentDOM;i--,s=!1);return o&&e&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,e):{node:this.contentDOM,offset:o?Hi(o.dom)+1:0}}{let o,s=!0;for(;o=i=u&&e<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,e,u);t=s;for(let d=a;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){r=Hi(h.dom)+1;break}t-=h.size}-1==r&&(r=0)}if(r>-1&&(c>e||a==this.children.length-1)){e=c;for(let u=a+1;up&&se){let p=a;a=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let i=0,r=0;r=i:ti){let a=i+o.border,l=s-o.border;if(t>=a&&e<=l)return this.dirty=t==i||e==s?2:1,void(t!=a||e!=l||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(t-a,e-a):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}i=s}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let i=1==t?2:1;e.dirtyo?o.parent?o.parent.posBeforeChild(o):void 0:r)),!e.type.spec.raw){if(1!=s.nodeType){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=e,this.widget=e,o=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class sX extends bh{constructor(t,e,i,r){super(t,[],e,null),this.textDOM=i,this.text=r}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class il extends bh{constructor(t,e,i,r){super(t,[],i,r),this.mark=e}static create(t,e,i,r){let o=r.nodeViews[e.type.name],s=o&&o(e,r,i);return(!s||!s.dom)&&(s=co.renderSpec(document,e.type.spec.toDOM(e,i))),new il(t,e,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty0&&(o=Av(o,0,t,i));for(let a=0;al?l.parent?l.parent.posBeforeChild(l):void 0:s,i,r),u=c&&c.dom,d=c&&c.contentDOM;if(e.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(e.text);else u||({dom:u,contentDOM:d}=co.renderSpec(document,e.type.spec.toDOM(e)));!d&&!e.isText&&"BR"!=u.nodeName&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),e.type.spec.draggable&&(u.draggable=!0));let h=u;return u=EF(u,i,e),c?l=new aX(t,e,i,r,u,d||null,h,c,o,s+1):e.isText?new _m(t,e,i,r,u,h,o):new rl(t,e,i,r,u,d||null,h,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let i=this.children[e];if(this.dom.contains(i.dom.parentNode)){t.contentElement=i.dom.parentNode;break}}t.contentElement||(t.getContent=()=>L.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,i){return 0==this.dirty&&t.eq(this.node)&&mv(e,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let i=this.node.inlineContent,r=e,o=t.composing?this.localCompositionInfo(t,e):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new cX(this,s&&s.node,t);(function hX(n,t,e,i){let r=t.locals(n),o=0;if(0==r.length){for(let c=0;co;)a.push(r[s++]);let h=o+u.nodeSize;if(u.isText){let f=h;s!f.inline):a.slice(),t.forChild(o,u),d),o=h}})(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,i,t):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Tt.none:this.node.child(u).marks,i,t),l.placeWidget(c,t,r)},(c,u,d,h)=>{let p;l.syncToMarks(c.marks,i,t),l.findNodeMatch(c,u,d,h)||a&&t.state.selection.from>r&&t.state.selection.to-1&&l.updateNodeAt(c,u,d,p,t)||l.updateNextNode(c,u,d,t,h)||l.addNode(c,u,d,t,r),r+=c.nodeSize}),l.syncToMarks([],i,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(t,s),yF(this.contentDOM,this.children,t),Wc&&function pX(n){if("UL"==n.nodeName||"OL"==n.nodeName){let t=n.style.cssText;n.style.cssText=t+"; list-style: square !important",window.getComputedStyle(n),n.style.cssText=t}}(this.dom))}localCompositionInfo(t,e){let{from:i,to:r}=t.state.selection;if(!(t.state.selection instanceof Ee)||ie+this.node.content.size)return null;let o=t.domSelectionRange(),s=function fX(n,t){for(;;){if(3==n.nodeType)return n;if(1==n.nodeType&&t>0){if(n.childNodes.length>t&&3==n.childNodes[t].nodeType)return n.childNodes[t];t=go(n=n.childNodes[t-1])}else{if(!(1==n.nodeType&&t=e){let c=a=0&&c+t.length+a>=e)return a+c;if(e==i&&l.length>=i+t.length-a&&l.slice(i-a,i-a+t.length)==t)return i}}return-1}(this.node.content,a,i-e,r-e);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:i,text:r}){if(this.getDesc(e))return;let o=e;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new sX(this,o,e,r);t.input.compositionNodes.push(s),this.children=Av(this.children,i,i+r.length,t,s)}update(t,e,i,r){return!(3==this.dirty||!t.sameMarkup(this.node)||(this.updateInner(t,e,i,r),0))}updateInner(t,e,i,r){this.updateOuterDeco(e),this.node=t,this.innerDeco=i,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(mv(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,i=this.dom;this.dom=_F(this.dom,this.nodeDOM,gv(this.outerDeco,this.node,e),gv(t,this.node,e)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function AF(n,t,e,i,r){return EF(i,t,n),new rl(void 0,n,t,e,i,i,i,r,0)}class _m extends rl{constructor(t,e,i,r,o,s,a){super(t,e,i,r,o,null,s,a,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,i,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node)||(this.updateOuterDeco(e),(0!=this.dirty||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=0,0))}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,i){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,i)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,i){let r=this.node.cut(t,e),o=document.createTextNode(r.text);return new _m(this.parent,r,this.outerDeco,this.innerDeco,o,o,i)}markDirty(t,e){super.markDirty(t,e),this.dom!=this.nodeDOM&&(0==t||e==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}}class bF extends bh{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class aX extends rl{constructor(t,e,i,r,o,s,a,l,c,u){super(t,e,i,r,o,s,a,c,u),this.spec=l}update(t,e,i,r){if(3==this.dirty)return!1;if(this.spec.update){let o=this.spec.update(t,e,i);return o&&this.updateInner(t,e,i,r),o}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,i,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,i,r){this.spec.setSelection?this.spec.setSelection(t,e,i):super.setSelection(t,e,i,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function yF(n,t,e){let i=n.firstChild,r=!1;for(let o=0;o0;){let a;for(;;)if(i){let c=e.children[i-1];if(!(c instanceof il)){a=c,i--;break}e=c,i=c.children.length}else{if(e==t)break e;i=e.parent.children.indexOf(e),e=e.parent}let l=a.node;if(l){if(l!=n.child(r-1))break;--r,o.set(a,r),s.push(a)}}return{index:r,matched:o,matches:s.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let i=t;i>1,s=Math.min(o,t.length);for(;r-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=il.create(this.top,t[o],e,i);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,e,i,r){let s,o=-1;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(t,e,i))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a=e||u<=t?o.push(l):(ce&&o.push(l.slice(e-c,l.size,i)))}return o}function bv(n,t=null){let e=n.domSelectionRange(),i=n.state.doc;if(!e.focusNode)return null;let r=n.docView.nearestDesc(e.focusNode),o=r&&0==r.size,s=n.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(s<0)return null;let l,c,a=i.resolve(s);if(bm(e)){for(l=a;r&&!r.node;)r=r.parent;let u=r.node;if(r&&u.isAtom&&ce.isSelectable(u)&&r.parent&&(!u.isInline||!function U7(n,t,e){for(let i=0==t,r=t==go(n);i||r;){if(n==e)return!0;let o=Hi(n);if(!(n=n.parentNode))return!1;i=i&&0==o,r=r&&o==go(n)}}(e.focusNode,e.focusOffset,r.dom))){let d=r.posBefore;c=new ce(s==d?a:i.resolve(d))}}else{let u=n.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(u<0)return null;l=i.resolve(u)}return c||(c=_v(n,l,a,"pointer"==t||n.state.selection.head{(e.anchorNode!=i||e.anchorOffset!=r)&&(t.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!vF(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const MF=ci||Di&&H7<63;function wF(n,t){let{node:e,offset:i}=n.docView.domFromPos(t,0),r=ir(n,t,e))||Ee.between(t,e,i)}function xF(n){return!(n.editable&&!n.hasFocus())&&TF(n)}function TF(n){let t=n.domSelectionRange();if(!t.anchorNode)return!1;try{return n.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(n.editable||n.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Ev(n,t){let{$anchor:e,$head:i}=n.selection,r=t>0?e.max(i):e.min(i),o=r.parent.inlineContent?r.depth?n.doc.resolve(t>0?r.after():r.before()):null:r;return o&&_e.findFrom(o,t)}function sl(n,t){return n.dispatch(n.state.tr.setSelection(t).scrollIntoView()),!0}function BF(n,t,e){let i=n.state.selection;if(!(i instanceof Ee)){if(i instanceof ce&&i.node.isInline)return sl(n,new Ee(t>0?i.$to:i.$from));{let r=Ev(n.state,t);return!!r&&sl(n,r)}}if(!i.empty||e.indexOf("s")>-1)return!1;if(n.endOfTextblock(t>0?"right":"left")){let r=Ev(n.state,t);return!!(r&&r instanceof ce)&&sl(n,r)}if(!(fr&&e.indexOf("m")>-1)){let s,r=i.$head,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText)return!1;let a=t<0?r.pos-o.nodeSize:r.pos;return!!(o.isAtom||(s=n.docView.descAt(a))&&!s.contentDOM)&&(ce.isSelectable(o)?sl(n,new ce(t<0?n.state.doc.resolve(r.pos-o.nodeSize):r)):!!ym&&sl(n,new Ee(n.state.doc.resolve(t<0?a:a+o.nodeSize))))}}function Em(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function _h(n){let t=n.pmViewDesc;return t&&0==t.size&&(n.nextSibling||"BR"!=n.nodeName)}function Cv(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let r,o,s=!1;for(Nr&&1==e.nodeType&&i0){if(1!=e.nodeType)break;{let a=e.childNodes[i-1];if(_h(a))r=e,o=--i;else{if(3!=a.nodeType)break;e=a,i=e.nodeValue.length}}}else{if(OF(e))break;{let a=e.previousSibling;for(;a&&_h(a);)r=e.parentNode,o=Hi(a),a=a.previousSibling;if(a)e=a,i=Em(e);else{if(e=e.parentNode,e==n.dom)break;i=0}}}s?Mv(n,e,i):r&&Mv(n,r,o)}function vv(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let o,s,r=Em(e);for(;;)if(i{n.state==r&&es(n)},50)}function kF(n,t,e){let i=n.state.selection;if(i instanceof Ee&&!i.empty||e.indexOf("s")>-1||fr&&e.indexOf("m")>-1)return!1;let{$from:r,$to:o}=i;if(!r.parent.inlineContent||n.endOfTextblock(t<0?"up":"down")){let s=Ev(n.state,t);if(s&&s instanceof ce)return sl(n,s)}if(!r.parent.inlineContent){let s=t<0?r:o,a=i instanceof zi?_e.near(s,t):_e.findFrom(s,t);return!!a&&sl(n,a)}return!1}function PF(n,t){if(!(n.state.selection instanceof Ee))return!0;let{$head:e,$anchor:i,empty:r}=n.state.selection;if(!e.sameParent(i))return!0;if(!r)return!1;if(n.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!e.textOffset&&(t<0?e.nodeBefore:e.nodeAfter);if(o&&!o.isText){let s=n.state.tr;return t<0?s.delete(e.pos-o.nodeSize,e.pos):s.delete(e.pos,e.pos+o.nodeSize),n.dispatch(s),!0}return!1}function FF(n,t,e){n.domObserver.stop(),t.contentEditable=e,n.domObserver.start()}function RF(n,t){n.someProp("transformCopied",p=>{t=p(t,n)});let e=[],{content:i,openStart:r,openEnd:o}=t;for(;r>1&&o>1&&1==i.childCount&&1==i.firstChild.childCount;){r--,o--;let p=i.firstChild;e.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let s=n.someProp("clipboardSerializer")||co.fromSchema(n.state.schema),a=VF(),l=a.createElement("div");l.appendChild(s.serializeFragment(i,{document:a}));let u,c=l.firstChild,d=0;for(;c&&1==c.nodeType&&(u=zF[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let f=a.createElement(u[p]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),d++}c=l.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${r} ${o}${d?` -${d}`:""} ${JSON.stringify(e)}`),{dom:l,text:n.someProp("clipboardTextSerializer",p=>p(t,n))||t.content.textBetween(0,t.content.size,"\n\n")}}function NF(n,t,e,i,r){let s,a,o=r.parent.type.spec.code;if(!e&&!t)return null;let l=t&&(i||o||!e);if(l){if(n.someProp("transformPastedText",h=>{t=h(t,o||i,n)}),o)return t?new G(L.from(n.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):G.empty;let d=n.someProp("clipboardTextParser",h=>h(t,r,i,n));if(d)a=d;else{let h=r.marks(),{schema:p}=n.state,f=co.fromSchema(p);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(g=>{let m=s.appendChild(document.createElement("p"));g&&m.appendChild(f.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",d=>{e=d(e,n)}),s=function MX(n){let t=/^(\s*]*>)*/.exec(n);t&&(n=n.slice(t[0].length));let r,e=VF().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(n);if((r=i&&zF[i[1].toLowerCase()])&&(n=r.map(o=>"<"+o+">").join("")+n+r.map(o=>"").reverse().join("")),e.innerHTML=n,r)for(let o=0;o0;d--){let h=s.firstChild;for(;h&&1!=h.nodeType;)h=h.nextSibling;if(!h)break;s=h}if(a||(a=(n.someProp("clipboardParser")||n.someProp("domParser")||kc.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!(!l&&!u),context:r,ruleFromNode:h=>"BR"!=h.nodeName||h.nextSibling||!h.parentNode||CX.test(h.parentNode.nodeName)?null:{ignore:!0}})),u)a=function DX(n,t){if(!n.size)return n;let i,e=n.content.firstChild.type.schema;try{i=JSON.parse(t)}catch{return n}let{content:r,openStart:o,openEnd:s}=n;for(let a=i.length-2;a>=0;a-=2){let l=e.nodes[i[a]];if(!l||l.hasRequiredAttrs())break;r=L.from(l.create(i[a+1],r)),o++,s++}return new G(r,o,s)}(jF(a,+u[1],+u[2]),u[4]);else if(a=G.maxOpen(function vX(n,t){if(n.childCount<2)return n;for(let e=t.depth;e>=0;e--){let o,r=t.node(e).contentMatchAt(t.index(e)),s=[];if(n.forEach(a=>{if(!s)return;let c,l=r.findWrapping(a.type);if(!l)return s=null;if(c=s.length&&o.length&&QF(l,o,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=UF(s[s.length-1],o.length));let u=LF(a,l);s.push(u),r=r.matchType(u.type),o=l}}),s)return L.from(s)}return n}(a.content,r),!0),a.openStart||a.openEnd){let d=0,h=0;for(let p=a.content.firstChild;d{a=d(a,n)}),a}const CX=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function LF(n,t,e=0){for(let i=t.length-1;i>=e;i--)n=t[i].create(null,L.from(n));return n}function QF(n,t,e,i,r){if(r=e&&(a=t<0?s.contentMatchAt(0).fillBefore(a,n.childCount>1||o<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(L.empty,!0))),n.replaceChild(t<0?0:n.childCount-1,s.copy(a))}function jF(n,t,e){return t{for(let e in t)n.input.eventHandlers[e]||n.dom.addEventListener(e,n.input.eventHandlers[e]=i=>Iv(n,i))})}function Iv(n,t){return n.someProp("handleDOMEvents",e=>{let i=e[t.type];return!!i&&(i(n,t)||t.defaultPrevented)})}function BX(n,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target;e!=n.dom;e=e.parentNode)if(!e||11==e.nodeType||e.pmViewDesc&&e.pmViewDesc.stopEvent(t))return!1;return!0}function Cm(n){return{left:n.clientX,top:n.clientY}}function Sv(n,t,e,i,r){if(-1==i)return!1;let o=n.state.doc.resolve(i);for(let s=o.depth+1;s>0;s--)if(n.someProp(t,a=>s>o.depth?a(n,e,o.nodeAfter,o.before(s),r,!0):a(n,e,o.node(s),o.before(s),r,!1)))return!0;return!1}function $c(n,t,e){n.focused||n.focus();let i=n.state.tr.setSelection(t);"pointer"==e&&i.setMeta("pointer",!0),n.dispatch(i)}function NX(n,t,e,i){return Sv(n,"handleDoubleClickOn",t,e,i)||n.someProp("handleDoubleClick",r=>r(n,t,i))}function LX(n,t,e,i){return Sv(n,"handleTripleClickOn",t,e,i)||n.someProp("handleTripleClick",r=>r(n,t,i))||function QX(n,t,e){if(0!=e.button)return!1;let i=n.state.doc;if(-1==t)return!!i.inlineContent&&($c(n,Ee.create(i,0,i.content.size),"pointer"),!0);let r=i.resolve(t);for(let o=r.depth+1;o>0;o--){let s=o>r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(s.inlineContent)$c(n,Ee.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ce.isSelectable(s))continue;$c(n,ce.create(i,a),"pointer")}return!0}}(n,e,i)}function xv(n){return vm(n)}di.keydown=(n,t)=>{let e=t;if(n.input.shiftKey=16==e.keyCode||e.shiftKey,!YF(n,e)&&(n.input.lastKeyCode=e.keyCode,n.input.lastKeyCodeTime=Date.now(),!mo||!Di||13!=e.keyCode))if(229!=e.keyCode&&n.domObserver.forceFlush(),!Wc||13!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey)n.someProp("handleKeyDown",i=>i(n,e))||function EX(n,t){let e=t.keyCode,i=function _X(n){let t="";return n.ctrlKey&&(t+="c"),n.metaKey&&(t+="m"),n.altKey&&(t+="a"),n.shiftKey&&(t+="s"),t}(t);return 8==e||fr&&72==e&&"c"==i?PF(n,-1)||Cv(n):46==e||fr&&68==e&&"c"==i?PF(n,1)||vv(n):13==e||27==e||(37==e||fr&&66==e&&"c"==i?BF(n,-1,i)||Cv(n):39==e||fr&&70==e&&"c"==i?BF(n,1,i)||vv(n):38==e||fr&&80==e&&"c"==i?kF(n,-1,i)||Cv(n):40==e||fr&&78==e&&"c"==i?function yX(n){if(!ci||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:e}=n.domSelectionRange();if(t&&1==t.nodeType&&0==e&&t.firstChild&&"false"==t.firstChild.contentEditable){let i=t.firstChild;FF(n,i,"true"),setTimeout(()=>FF(n,i,"false"),20)}return!1}(n)||kF(n,1,i)||vv(n):i==(fr?"m":"c")&&(66==e||73==e||89==e||90==e))}(n,e)?e.preventDefault():$s(n,"key");else{let i=Date.now();n.input.lastIOSEnter=i,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==i&&(n.someProp("handleKeyDown",r=>r(n,Yc(13,"Enter"))),n.input.lastIOSEnter=0)},200)}},di.keyup=(n,t)=>{16==t.keyCode&&(n.input.shiftKey=!1)},di.keypress=(n,t)=>{let e=t;if(YF(n,e)||!e.charCode||e.ctrlKey&&!e.altKey||fr&&e.metaKey)return;if(n.someProp("handleKeyPress",r=>r(n,e)))return void e.preventDefault();let i=n.state.selection;if(!(i instanceof Ee&&i.$from.sameParent(i.$to))){let r=String.fromCharCode(e.charCode);n.someProp("handleTextInput",o=>o(n,i.$from.pos,i.$to.pos,r))||n.dispatch(n.state.tr.insertText(r).scrollIntoView()),e.preventDefault()}};const GF=fr?"metaKey":"ctrlKey";ui.mousedown=(n,t)=>{let e=t;n.input.shiftKey=e.shiftKey;let i=xv(n),r=Date.now(),o="singleClick";r-n.input.lastClick.time<500&&function kX(n,t){let e=t.x-n.clientX,i=t.y-n.clientY;return e*e+i*i<100}(e,n.input.lastClick)&&!e[GF]&&("singleClick"==n.input.lastClick.type?o="doubleClick":"doubleClick"==n.input.lastClick.type&&(o="tripleClick")),n.input.lastClick={time:r,x:e.clientX,y:e.clientY,type:o};let s=n.posAtCoords(Cm(e));!s||("singleClick"==o?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new UX(n,s,e,!!i)):("doubleClick"==o?NX:LX)(n,s.pos,s.inside,e)?e.preventDefault():$s(n,"pointer"))};class UX{constructor(t,e,i,r){let o,s;if(this.view=t,this.pos=e,this.event=i,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!i[GF],this.allowDefault=i.shiftKey,e.inside>-1)o=t.state.doc.nodeAt(e.inside),s=e.inside;else{let u=t.state.doc.resolve(e.pos);o=u.parent,s=u.depth?u.before():0}const a=r?null:i.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(0==i.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof ce&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!Nr||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),$s(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>es(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(Cm(t))),this.updateAllowDefault(t),this.allowDefault||!e?$s(this.view,"pointer"):function RX(n,t,e,i,r){return Sv(n,"handleClickOn",t,e,i)||n.someProp("handleClick",o=>o(n,t,i))||(r?function FX(n,t){if(-1==t)return!1;let i,r,e=n.state.selection;e instanceof ce&&(i=e.node);let o=n.state.doc.resolve(t);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(ce.isSelectable(a)){r=i&&e.$from.depth>0&&s>=e.$from.depth&&o.before(e.$from.depth+1)==e.$from.pos?o.before(e.$from.depth):o.before(s);break}}return null!=r&&($c(n,ce.create(n.state.doc,r),"pointer"),!0)}(n,e):function PX(n,t){if(-1==t)return!1;let e=n.state.doc.resolve(t),i=e.nodeAfter;return!!(i&&i.isAtom&&ce.isSelectable(i))&&($c(n,new ce(e),"pointer"),!0)}(n,e))}(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||ci&&this.mightDrag&&!this.mightDrag.node.isAtom||Di&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?($c(this.view,_e.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):$s(this.view,"pointer")}move(t){this.updateAllowDefault(t),$s(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function YF(n,t){return!!n.composing||!!(ci&&Math.abs(t.timeStamp-n.input.compositionEndedAt)<500)&&(n.input.compositionEndedAt=-2e8,!0)}ui.touchstart=n=>{n.input.lastTouch=Date.now(),xv(n),$s(n,"pointer")},ui.touchmove=n=>{n.input.lastTouch=Date.now(),$s(n,"pointer")},ui.contextmenu=n=>xv(n);const jX=mo?5e3:-1;function WF(n,t){clearTimeout(n.input.composingTimeout),t>-1&&(n.input.composingTimeout=setTimeout(()=>vm(n),t))}function JF(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=function zX(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function vm(n,t=!1){if(!(mo&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),JF(n),t||n.docView&&n.docView.dirty){let e=bv(n);return e&&!e.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(e)):n.updateState(n.state),!0}return!1}}di.compositionstart=di.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:t}=n,e=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some(i=>!1===i.type.spec.inclusive)))n.markCursor=n.state.storedMarks||e.marks(),vm(n,!0),n.markCursor=null;else if(vm(n),Nr&&t.selection.empty&&e.parentOffset&&!e.textOffset&&e.nodeBefore.marks.length){let i=n.domSelectionRange();for(let r=i.focusNode,o=i.focusOffset;r&&1==r.nodeType&&0!=o;){let s=o<0?r.lastChild:r.childNodes[o-1];if(!s)break;if(3==s.nodeType){n.domSelection().collapse(s,s.nodeValue.length);break}r=s,o=-1}}n.input.composing=!0}WF(n,jX)},di.compositionend=(n,t)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=t.timeStamp,WF(n,20))};const qc=wi&&Ws<15||Wc&&V7<604;function Tv(n,t,e,i){let r=NF(n,t,e,n.input.shiftKey,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,i,r||G.empty)))return!0;if(!r)return!1;let o=function VX(n){return 0==n.openStart&&0==n.openEnd&&1==n.content.childCount?n.content.firstChild:null}(r),s=o?n.state.tr.replaceSelectionWith(o,n.input.shiftKey):n.state.tr.replaceSelection(r);return n.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}ui.copy=di.cut=(n,t)=>{let e=t,i=n.state.selection,r="cut"==e.type;if(i.empty)return;let o=qc?null:e.clipboardData,s=i.content(),{dom:a,text:l}=RF(n,s);o?(e.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):function HX(n,t){if(!n.dom.parentNode)return;let e=n.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(t),e.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),r=document.createRange();r.selectNodeContents(t),n.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),n.focus()},50)}(n,a),r&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},di.paste=(n,t)=>{let e=t;if(n.composing&&!mo)return;let i=qc?null:e.clipboardData;i&&Tv(n,i.getData("text/plain"),i.getData("text/html"),e)?e.preventDefault():function GX(n,t){if(!n.dom.parentNode)return;let e=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,i=n.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{n.focus(),i.parentNode&&i.parentNode.removeChild(i),e?Tv(n,i.value,null,t):Tv(n,i.textContent,i.innerHTML,t)},50)}(n,e)};class YX{constructor(t,e){this.slice=t,this.move=e}}const KF=fr?"altKey":"ctrlKey";ui.dragstart=(n,t)=>{let e=t,i=n.input.mouseDown;if(i&&i.done(),!e.dataTransfer)return;let r=n.state.selection,o=r.empty?null:n.posAtCoords(Cm(e));if(!(o&&o.pos>=r.from&&o.pos<=(r instanceof ce?r.to-1:r.to)))if(i&&i.mightDrag)n.dispatch(n.state.tr.setSelection(ce.create(n.state.doc,i.mightDrag.pos)));else if(e.target&&1==e.target.nodeType){let c=n.docView.nearestDesc(e.target,!0);c&&c.node.type.spec.draggable&&c!=n.docView&&n.dispatch(n.state.tr.setSelection(ce.create(n.state.doc,c.posBefore)))}let s=n.state.selection.content(),{dom:a,text:l}=RF(n,s);e.dataTransfer.clearData(),e.dataTransfer.setData(qc?"Text":"text/html",a.innerHTML),e.dataTransfer.effectAllowed="copyMove",qc||e.dataTransfer.setData("text/plain",l),n.dragging=new YX(s,!e[KF])},ui.dragend=n=>{let t=n.dragging;window.setTimeout(()=>{n.dragging==t&&(n.dragging=null)},50)},di.dragover=di.dragenter=(n,t)=>t.preventDefault(),di.drop=(n,t)=>{let e=t,i=n.dragging;if(n.dragging=null,!e.dataTransfer)return;let r=n.posAtCoords(Cm(e));if(!r)return;let o=n.state.doc.resolve(r.pos),s=i&&i.slice;s?n.someProp("transformPasted",f=>{s=f(s,n)}):s=NF(n,e.dataTransfer.getData(qc?"Text":"text/plain"),qc?null:e.dataTransfer.getData("text/html"),!1,o);let a=!(!i||e[KF]);if(n.someProp("handleDrop",f=>f(n,e,s||G.empty,a)))return void e.preventDefault();if(!s)return;e.preventDefault();let l=s?Kk(n.state.doc,o.pos,s):o.pos;null==l&&(l=o.pos);let c=n.state.tr;a&&c.deleteSelection();let u=c.mapping.map(l),d=0==s.openStart&&0==s.openEnd&&1==s.content.childCount,h=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let p=c.doc.resolve(u);if(d&&ce.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new ce(p));else{let f=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,m,A,y)=>f=y),c.setSelection(_v(n,p,c.doc.resolve(f)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},ui.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&es(n)},20))},ui.blur=(n,t)=>{let e=t;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),e.relatedTarget&&n.dom.contains(e.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},ui.beforeinput=(n,t)=>{if(Di&&mo&&"deleteContentBackward"==t.inputType){n.domObserver.flushSoon();let{domChangeCount:i}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=i||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",o=>o(n,Yc(8,"Backspace")))))return;let{$cursor:r}=n.state.selection;r&&r.pos>0&&n.dispatch(n.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let n in di)ui[n]=di[n];function Eh(n,t){if(n==t)return!0;for(let e in n)if(n[e]!==t[e])return!1;for(let e in t)if(!(e in n))return!1;return!0}class Bv{constructor(t,e){this.toDOM=t,this.spec=e||al,this.side=this.spec.side||0}map(t,e,i,r){let{pos:o,deleted:s}=t.mapResult(e.from+r,this.side<0?-1:1);return s?null:new wn(o-i,o-i,this)}valid(){return!0}eq(t){return this==t||t instanceof Bv&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Eh(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class qs{constructor(t,e){this.attrs=t,this.spec=e||al}map(t,e,i,r){let o=t.map(e.from+r,this.spec.inclusiveStart?-1:1)-i,s=t.map(e.to+r,this.spec.inclusiveEnd?1:-1)-i;return o>=s?null:new wn(o,s,this)}valid(t,e){return e.from=t&&(!o||o(a.spec))&&i.push(a.copy(a.from+r,a.to+r))}for(let s=0;st){let a=this.children[s]+1;this.children[s+2].findInner(t-a,e-a,i,r+a,o)}}map(t,e,i){return this==qn||0==t.maps.length?this:this.mapInner(t,e,0,0,i||al)}mapInner(t,e,i,r,o){let s;for(let a=0;a{let m=g-f-(p-h);for(let A=0;Ay+u-d)continue;let E=a[A]+u-d;p>=E?a[A+1]=h<=E?-2:-1:f>=r&&m&&(a[A]+=m,a[A+1]+=m)}d+=m}),u=e.maps[c].map(u,-1)}let l=!1;for(let c=0;c=i.content.size){l=!0;continue}let p=e.map(n[c+1]+o,-1)-r,{index:f,offset:g}=i.content.findIndex(d),m=i.maybeChild(f);if(m&&g==d&&g+m.nodeSize==p){let A=a[c+2].mapInner(e,m,u+1,n[c]+o+1,s);A!=qn?(a[c]=d,a[c+1]=p,a[c+2]=A):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=function JX(n,t,e,i,r,o,s){function a(l,c){for(let u=0;u{let u,c=l+i;if(u=qF(e,a,c)){for(r||(r=this.children.slice());oa&&d.to=t){this.children[a]==t&&(i=this.children[a+2]);break}let o=t+1,s=o+e.content.size;for(let a=0;ao&&l.type instanceof qs){let c=Math.max(o,l.from)-o,u=Math.min(s,l.to)-o;cr.map(t,e,al));return Xs.from(i)}forChild(t,e){if(e.isLeaf)return kt.empty;let i=[];for(let r=0;re instanceof kt)?t:t.reduce((e,i)=>e.concat(i instanceof kt?i:i.members),[]))}}}function $F(n,t){if(!t||!n.length)return n;let e=[];for(let i=0;ie&&s.to{let c=qF(n,a,l+e);if(c){o=!0;let u=Mm(c,a,e+l+1,i);u!=qn&&r.push(l,l+a.nodeSize,u)}});let s=$F(o?XF(n):n,-e).sort(ll);for(let a=0;a0;)t++;n.splice(t,0,e)}function Pv(n){let t=[];return n.someProp("decorations",e=>{let i=e(n.state);i&&i!=qn&&t.push(i)}),n.cursorWrapper&&t.push(kt.create(n.state.doc,[n.cursorWrapper.deco])),Xs.from(t)}const KX={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},$X=wi&&Ws<=11;class qX{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class XX{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new qX,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let r=0;r"childList"==r.type&&r.removedNodes.length||"characterData"==r.type&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),$X&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,KX)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;ethis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(xF(this.view)){if(this.suppressingSelectionUpdates)return es(this.view);if(wi&&Ws<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&nl(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let i,e=new Set;for(let o=t.focusNode;o;o=mh(o))e.add(o);for(let o=t.anchorNode;o;o=mh(o))if(e.has(o)){i=o;break}let r=i&&this.view.docView.nearestDesc(i);return r&&r.ignoreMutation({type:"selection",target:3==i.nodeType?i.parentNode:i})?(this.setCurSelection(),!0):void 0}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let i=t.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&xF(t)&&!this.ignoreSelectionChange(i),o=-1,s=-1,a=!1,l=[];if(t.editable)for(let u=0;u1){let u=l.filter(d=>"BR"==d.nodeName);if(2==u.length){let d=u[0],h=u[1];d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}}let c=null;o<0&&r&&t.input.lastFocus>Date.now()-200&&t.input.lastTouch-1||r)&&(o>-1&&(t.docView.markDirty(o,s),function ZX(n){if(!eR.has(n)&&(eR.set(n,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace))){if(n.requiresGeckoHackNode=Nr,tR)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),tR=!0}}(t)),this.handleDOMChange(o,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||es(t),this.currentSelection.set(i))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let i=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(i==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style"))||!i||i.ignoreMutation(t))return null;if("childList"==t.type){for(let u=0;ut.content.size?null:_v(n,t.resolve(e.anchor),t.resolve(e.head))}function Fv(n,t,e){let i=n.depth,r=t?n.end():n.pos;for(;i>0&&(t||n.indexAfter(i)==n.node(i).childCount);)i--,r++,t=!1;if(e){let o=n.node(i).maybeChild(n.indexAfter(i));for(;o&&!o.isLeaf;)o=o.firstChild,r++}return r}class aZ{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new SX,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(aR),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=oR(this),rR(this),this.nodeViews=sR(this),this.docView=AF(this.state.doc,iR(this),Pv(this),this.dom,this),this.domObserver=new XX(this,(i,r,o,s)=>function iZ(n,t,e,i,r){if(t<0){let O=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,q=bv(n,O);if(q&&!n.state.selection.eq(q)){let le=n.state.tr.setSelection(q);"pointer"==O?le.setMeta("pointer",!0):"key"==O&&le.scrollIntoView(),n.dispatch(le)}return}let o=n.state.doc.resolve(t),s=o.sharedDepth(e);t=o.before(s+1),e=n.state.doc.resolve(e).after(s+1);let d,h,a=n.state.selection,l=function tZ(n,t,e){let c,{node:i,fromOffset:r,toOffset:o,from:s,to:a}=n.docView.parseRange(t,e),l=n.domSelectionRange(),u=l.anchorNode;if(u&&n.dom.contains(1==u.nodeType?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],bm(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Di&&8===n.input.lastKeyCode)for(let m=o;m>r;m--){let A=i.childNodes[m-1],y=A.pmViewDesc;if("BR"==A.nodeName&&!y){o=m;break}if(!y||y.size)break}let d=n.state.doc,h=n.someProp("domParser")||kc.fromSchema(n.state.schema),p=d.resolve(s),f=null,g=h.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:r,to:o,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:c,ruleFromNode:nZ,context:p});if(c&&null!=c[0].pos){let m=c[0].pos,A=c[1]&&c[1].pos;null==A&&(A=m),f={anchor:m+s,head:A+s}}return{doc:g,sel:f,from:s,to:a}}(n,t,e),c=n.state.doc,u=c.slice(l.from,l.to);8===n.input.lastKeyCode&&Date.now()-100=s?o-i:0,a=o+(a-s),s=o):a=a?o-i:0,s=o+(s-a),a=o),{start:o,endA:s,endB:a}}(u.content,l.doc.content,l.from,d,h);if((Wc&&n.input.lastIOSEnter>Date.now()-225||mo)&&r.some(O=>"DIV"==O.nodeName||"P"==O.nodeName||"LI"==O.nodeName)&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",O=>O(n,Yc(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(!p){if(!(i&&a instanceof Ee&&!a.empty&&a.$head.sameParent(a.$anchor))||n.composing||l.sel&&l.sel.anchor!=l.sel.head){if(l.sel){let O=nR(n,n.state.doc,l.sel);O&&!O.eq(n.state.selection)&&n.dispatch(n.state.tr.setSelection(O))}return}p={start:a.from,endA:a.to,endB:a.to}}if(Di&&n.cursorWrapper&&l.sel&&l.sel.anchor==n.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let O=p.endB-p.start;l.sel={anchor:l.sel.anchor+O,head:l.sel.anchor+O}}n.input.domChangeCount++,n.state.selection.fromn.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=l.from?p.start=n.state.selection.from:p.endA=n.state.selection.to-2&&n.state.selection.to<=l.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),wi&&Ws<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&" \xa0"==l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)&&(p.start--,p.endA--,p.endB--);let y,f=l.doc.resolveNoCache(p.start-l.from),g=l.doc.resolveNoCache(p.endB-l.from),m=c.resolve(p.start),A=f.sameParent(g)&&f.parent.inlineContent&&m.end()>=p.endA;if((Wc&&n.input.lastIOSEnter>Date.now()-225&&(!A||r.some(O=>"DIV"==O.nodeName||"P"==O.nodeName))||!A&&f.posO(n,Yc(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(n.state.selection.anchor>p.start&&function oZ(n,t,e,i,r){if(!i.parent.isTextblock||e-t<=r.pos-i.pos||Fv(i,!0,!1)e||Fv(s,!0,!1)O(n,Yc(8,"Backspace"))))return void(mo&&Di&&n.domObserver.suppressSelectionUpdates());Di&&mo&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),mo&&!A&&f.start()!=g.start()&&0==g.parentOffset&&f.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,g=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{n.someProp("handleKeyDown",function(O){return O(n,Yc(13,"Enter"))})},20));let D,I,Q,E=p.start,b=p.endA;if(A)if(f.pos==g.pos)wi&&Ws<=11&&0==f.parentOffset&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>es(n),20)),D=n.state.tr.delete(E,b),I=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(Q=function rZ(n,t){let s,a,l,e=n.firstChild.marks,i=t.firstChild.marks,r=e,o=i;for(let u=0;uu.mark(a.addToSet(u.marks));else{if(0!=r.length||1!=o.length)return null;a=o[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks))}let c=[];for(let u=0;uq(n,E,b,O)))return;D=n.state.tr.insertText(O,E,b)}if(D||(D=n.state.tr.replace(E,b,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let O=nR(n,D.doc,l.sel);O&&!(Di&&mo&&n.composing&&O.empty&&(p.start!=p.endB||n.input.lastAndroidDelete{BX(n,i)&&!Iv(n,i)&&(n.editable||!(i.type in di))&&e(n,i)},IX[t]?{passive:!0}:void 0)}ci&&n.dom.addEventListener("input",()=>null),Dv(n)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Dv(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(aR),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let i in this._props)e[i]=this._props[i];e.state=this.state;for(let i in t)e[i]=t[i];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){let i=this.state,r=!1,o=!1;t.storedMarks&&this.composing&&(JF(this),o=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=e.plugins;if(s||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let h=sR(this);(function cZ(n,t){let e=0,i=0;for(let r in n){if(n[r]!=t[r])return!0;e++}for(let r in t)i++;return e!=i})(h,this.nodeViews)&&(this.nodeViews=h,r=!0)}(s||e.handleDOMEvents!=this._props.handleDOMEvents)&&Dv(this),this.editable=oR(this),rR(this);let a=Pv(this),l=iR(this),c=i.plugins==t.plugins||i.doc.eq(t.doc)?t.scrollToSelection>i.scrollToSelection?"to selection":"preserve":"reset",u=r||!this.docView.matchesNode(t.doc,l,a);(u||!t.selection.eq(i.selection))&&(o=!0);let d="preserve"==c&&o&&null==this.dom.style.overflowAnchor&&function W7(n){let i,r,t=n.dom.getBoundingClientRect(),e=Math.max(0,t.top);for(let o=(t.left+t.right)/2,s=e+1;s=e-20){i=a,r=l.top;break}}return{refDOM:i,refTop:r,stack:sF(n.dom)}}(this);if(o){this.domObserver.stop();let h=u&&(wi||Di)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&function lZ(n,t){let e=Math.min(n.$anchor.sharedDepth(n.head),t.$anchor.sharedDepth(t.head));return n.$anchor.start(e)!=t.$anchor.start(e)}(i.selection,t.selection);if(u){let p=Di?this.trackWrites=this.domSelectionRange().focusNode:null;(r||!this.docView.update(t.doc,l,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=AF(t.doc,l,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function bX(n){let t=n.docView.domFromPos(n.state.selection.anchor,0),e=n.domSelectionRange();return nl(t.node,t.offset,e.anchorNode,e.anchorOffset)}(this))?es(this,h):(IF(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():d&&function J7({refDOM:n,refTop:t,stack:e}){let i=n?n.getBoundingClientRect().top:0;aF(e,0==i?0:i-t)}(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",e=>e(this)))if(this.state.selection instanceof ce){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&oF(this,e.getBoundingClientRect(),t)}else oF(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;ee.ownerDocument.getSelection()),this._root=e;return t||document}posAtCoords(t){return eX(this,t)}coordsAtPos(t,e=1){return uF(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,i=-1){let r=this.docView.posFromDOM(t,e,i);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,e){return function oX(n,t,e){return hF==t&&pF==e?fF:(hF=t,pF=e,fF="up"==e||"down"==e?function nX(n,t,e){let i=t.selection,r="up"==e?i.$from:i.$to;return dF(n,t,()=>{let{node:o}=n.docView.domFromPos(r.pos,"up"==e?-1:1);for(;;){let a=n.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.dom;break}o=a.dom.parentNode}let s=uF(n,r.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(1==a.nodeType)l=a.getClientRects();else{if(3!=a.nodeType)continue;l=Zo(a,0,a.nodeValue.length).getClientRects()}for(let c=0;cu.top+1&&("up"==e?s.top-u.top>2*(u.bottom-s.top):u.bottom-s.bottom>2*(s.bottom-u.top)))return!1}}return!0})}(n,t,e):function rX(n,t,e){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let r=i.parentOffset,o=!r,s=r==i.parent.content.size,a=n.domSelection();return iX.test(i.parent.textContent)&&a.modify?dF(n,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=n.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",e,"character");let p=i.depth?n.docView.domAfterPos(i.before()):n.dom,{focusNode:f,focusOffset:g}=n.domSelectionRange(),m=f&&!p.contains(1==f.nodeType?f:f.parentNode)||l==f&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return null!=h&&(a.caretBidiLevel=h),m}):"left"==e||"backward"==e?o:s}(n,t,e))}(this,e||this.state,t)}destroy(){!this.docView||(function TX(n){n.domObserver.stop();for(let t in n.input.eventHandlers)n.dom.removeEventListener(t,n.input.eventHandlers[t]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Pv(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function OX(n,t){!Iv(n,t)&&ui[t.type]&&(n.editable||!(t.type in di))&&ui[t.type](n,t)}(this,t)}dispatch(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return ci&&11===this.root.nodeType&&function z7(n){let t=n.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom?function eZ(n){let t;function e(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",e,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",e,!0);let i=t.startContainer,r=t.startOffset,o=t.endContainer,s=t.endOffset,a=n.domAtPos(n.state.selection.anchor);return nl(a.node,a.offset,o,s)&&([i,r,o,s]=[o,s,i,r]),{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function iR(n){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(n.editable),t.translate="no",n.someProp("attributes",e=>{if("function"==typeof e&&(e=e(n.state)),e)for(let i in e)"class"==i&&(t.class+=" "+e[i]),"style"==i?t.style=(t.style?t.style+";":"")+e[i]:!t[i]&&"contenteditable"!=i&&"nodeName"!=i&&(t[i]=String(e[i]))}),[wn.node(0,n.state.doc.content.size,t)]}function rR(n){if(n.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),n.cursorWrapper={dom:t,deco:wn.widget(n.state.selection.head,t,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function oR(n){return!n.someProp("editable",t=>!1===t(n.state))}function sR(n){let t=Object.create(null);function e(i){for(let r in i)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=i[r])}return n.someProp("nodeViews",e),n.someProp("markViews",e),t}function aR(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Zs={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},wm={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},lR=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),uZ=(typeof navigator<"u"&&/Gecko\/\d+/.test(navigator.userAgent),typeof navigator<"u"&&/Mac/.test(navigator.platform)),dZ=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),hZ=uZ||lR&&+lR[1]<57,Bn=0;Bn<10;Bn++)Zs[48+Bn]=Zs[96+Bn]=String(Bn);for(Bn=1;Bn<=24;Bn++)Zs[Bn+111]="F"+Bn;for(Bn=65;Bn<=90;Bn++)Zs[Bn]=String.fromCharCode(Bn+32),wm[Bn]=String.fromCharCode(Bn);for(var Rv in Zs)wm.hasOwnProperty(Rv)||(wm[Rv]=Zs[Rv]);const fZ=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function gZ(n){let i,r,o,s,t=n.split(/-(?!$)/),e=t[t.length-1];"Space"==e&&(e=" ");for(let a=0;a127)&&(s=Zs[i.keyCode])&&s!=r){let l=t[Nv(s,i,!0)];if(l&&l(e.state,e.dispatch,e))return!0}else if(o&&i.shiftKey){let l=t[Nv(r,i,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}const Qv=(n,t)=>!n.selection.empty&&(t&&t(n.tr.deleteSelection().scrollIntoView()),!0);const uR=(n,t,e)=>{let i=function cR(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("backward",n):e.parentOffset>0)?null:e}(n,e);if(!i)return!1;let r=Uv(i);if(!r){let s=i.blockRange(),a=s&&Rc(s);return null!=a&&(t&&t(n.tr.lift(s,a).scrollIntoView()),!0)}let o=r.nodeBefore;if(!o.type.spec.isolating&&ER(n,r,t))return!0;if(0==i.parent.content.size&&(Zc(o,"end")||ce.isSelectable(o))){let s=QC(n.doc,i.before(),i.after(),G.empty);if(s&&s.slice.size{let{$head:i,empty:r}=n.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("backward",n):i.parentOffset>0)return!1;o=Uv(i)}let s=o&&o.nodeBefore;return!(!s||!ce.isSelectable(s)||(t&&t(n.tr.setSelection(ce.create(n.doc,o.pos-s.nodeSize)).scrollIntoView()),0))};function Uv(n){if(!n.parent.type.spec.isolating)for(let t=n.depth-1;t>=0;t--){if(n.index(t)>0)return n.doc.resolve(n.before(t+1));if(n.node(t).type.spec.isolating)break}return null}const fR=(n,t,e)=>{let i=function pR(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("forward",n):e.parentOffset{let{$head:i,empty:r}=n.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("forward",n):i.parentOffset=0;t--){let e=n.node(t);if(n.index(t)+1{let{$head:e,$anchor:i}=n.selection;return!(!e.parent.type.spec.code||!e.sameParent(i)||(t&&t(n.tr.insertText("\n").scrollIntoView()),0))};function zv(n){for(let t=0;t{let{$head:e,$anchor:i}=n.selection;if(!e.parent.type.spec.code||!e.sameParent(i))return!1;let r=e.node(-1),o=e.indexAfter(-1),s=zv(r.contentMatchAt(o));if(!s||!r.canReplaceWith(o,o,s))return!1;if(t){let a=e.after(),l=n.tr.replaceWith(a,a,s.createAndFill());l.setSelection(_e.near(l.doc.resolve(a),1)),t(l.scrollIntoView())}return!0},bR=(n,t)=>{let e=n.selection,{$from:i,$to:r}=e;if(e instanceof zi||i.parent.inlineContent||r.parent.inlineContent)return!1;let o=zv(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let s=(!i.parentOffset&&r.index(){let{$cursor:e}=n.selection;if(!e||e.parent.content.size)return!1;if(e.depth>1&&e.after()!=e.end(-1)){let o=e.before();if($o(n.doc,o))return t&&t(n.tr.split(o).scrollIntoView()),!0}let i=e.blockRange(),r=i&&Rc(i);return null!=r&&(t&&t(n.tr.lift(i,r).scrollIntoView()),!0)},_R=function EZ(n){return(t,e)=>{let{$from:i,$to:r}=t.selection;if(t.selection instanceof ce&&t.selection.node.isBlock)return!(!i.parentOffset||!$o(t.doc,i.pos)||(e&&e(t.tr.split(i.pos).scrollIntoView()),0));if(!i.parent.isBlock)return!1;if(e){let o=r.parentOffset==r.parent.content.size,s=t.tr;(t.selection instanceof Ee||t.selection instanceof zi)&&s.deleteSelection();let a=0==i.depth?null:zv(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=n&&n(r.parent,o),c=l?[l]:o&&a?[{type:a}]:void 0,u=$o(s.doc,s.mapping.map(i.pos),1,c);if(!c&&!u&&$o(s.doc,s.mapping.map(i.pos),1,a?[{type:a}]:void 0)&&(a&&(c=[{type:a}]),u=!0),u&&(s.split(s.mapping.map(i.pos),1,c),!o&&!i.parentOffset&&i.parent.type!=a)){let d=s.mapping.map(i.before()),h=s.doc.resolve(d);a&&i.node(-1).canReplaceWith(h.index(),h.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}e(s.scrollIntoView())}return!0}}();function ER(n,t,e){let o,s,i=t.nodeBefore,r=t.nodeAfter;if(i.type.spec.isolating||r.type.spec.isolating)return!1;if(function MZ(n,t,e){let i=t.nodeBefore,r=t.nodeAfter,o=t.index();return!(!(i&&r&&i.type.compatibleContent(r.type))||(!i.content.size&&t.parent.canReplace(o-1,o)?(e&&e(n.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(o,o+1)||!r.isTextblock&&!Us(n.doc,t.pos)||(e&&e(n.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),0)))}(n,t,e))return!0;let a=t.parent.canReplace(t.index(),t.index()+1);if(a&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(r.type))&&s.matchType(o[0]||r.type).validEnd){if(e){let d=t.pos+r.nodeSize,h=L.empty;for(let g=o.length-1;g>=0;g--)h=L.from(o[g].create(null,h));h=L.from(i.copy(h));let p=n.tr.step(new Mn(t.pos-1,d,t.pos,d,new G(h,1,0),o.length,!0)),f=d+2*o.length;Us(p.doc,f)&&p.join(f),e(p.scrollIntoView())}return!0}let l=_e.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),u=c&&Rc(c);if(null!=u&&u>=t.depth)return e&&e(n.tr.lift(c,u).scrollIntoView()),!0;if(a&&Zc(r,"start",!0)&&Zc(i,"end")){let d=i,h=[];for(;h.push(d),!d.isTextblock;)d=d.lastChild;let p=r,f=1;for(;!p.isTextblock;p=p.firstChild)f++;if(d.canReplace(d.childCount,d.childCount,p.content)){if(e){let g=L.empty;for(let A=h.length-1;A>=0;A--)g=L.from(h[A].copy(g));e(n.tr.step(new Mn(t.pos-h.length,t.pos+r.nodeSize,t.pos+f,t.pos+r.nodeSize-f,new G(g,h.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function CR(n){return function(t,e){let i=t.selection,r=n<0?i.$from:i.$to,o=r.depth;for(;r.node(o).isInline;){if(!o)return!1;o--}return!!r.node(o).isTextblock&&(e&&e(t.tr.setSelection(Ee.create(t.doc,n<0?r.start(o):r.end(o)))),!0)}}const vR=CR(-1),MR=CR(1);function wR(n,t=null){return function(e,i){let r=!1;for(let o=0;o{if(r)return!1;if(l.isTextblock&&!l.hasMarkup(n,t))if(l.type==n)r=!0;else{let u=e.doc.resolve(c),d=u.index();r=u.parent.canReplaceWith(d,d+1,n)}})}if(!r)return!1;if(i){let o=e.tr;for(let s=0;s(t&&t(n.tr.setSelection(new zi(n.doc))),!0)},SZ={"Ctrl-h":ea.Backspace,"Alt-Backspace":ea["Mod-Backspace"],"Ctrl-d":ea.Delete,"Ctrl-Alt-Backspace":ea["Mod-Delete"],"Alt-Delete":ea["Mod-Delete"],"Alt-d":ea["Mod-Delete"],"Ctrl-a":vR,"Ctrl-e":MR};for(let n in ea)SZ[n]=ea[n];function Dm(n){const{state:t,transaction:e}=n;let{selection:i}=e,{doc:r}=e,{storedMarks:o}=e;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return i},get doc(){return r},get tr(){return i=e.selection,r=e.doc,o=e.storedMarks,e}}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform();class Im{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:i}=this,{view:r}=e,{tr:o}=i,s=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([a,l])=>[a,(...u)=>{const d=l(...u)(s);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:i,editor:r,state:o}=this,{view:s}=r,a=[],l=!!t,c=t||o.tr,d={...Object.fromEntries(Object.entries(i).map(([h,p])=>[h,(...g)=>{const m=this.buildProps(c,e),A=p(...g)(m);return a.push(A),d}])),run:()=>(!l&&e&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(h=>!0===h))};return d}createCan(t){const{rawCommands:e,state:i}=this,o=t||i.tr,s=this.buildProps(o,!1);return{...Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(o,!1)}}buildProps(t,e=!0){const{rawCommands:i,editor:r,state:o}=this,{view:s}=r;o.storedMarks&&t.setStoredMarks(o.storedMarks);const a={tr:t,editor:r,view:s,state:Dm({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(i).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}function ne(n,t,e){return void 0===n.config[t]&&n.parent?ne(n.parent,t,e):"function"==typeof n.config[t]?n.config[t].bind({...e,parent:n.parent?ne(n.parent,t,e):null}):n.config[t]}function Sm(n){return{baseExtensions:n.filter(r=>"extension"===r.type),nodeExtensions:n.filter(r=>"node"===r.type),markExtensions:n.filter(r=>"mark"===r.type)}}function IR(n){const t=[],{nodeExtensions:e,markExtensions:i}=Sm(n),r=[...e,...i],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l=ne(s,"addGlobalAttributes",{name:s.name,options:s.options,storage:s.storage});l&&l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([h,p])=>{t.push({type:d,name:h,attribute:{...o,...p}})})})})}),r.forEach(s=>{const l=ne(s,"addAttributes",{name:s.name,options:s.options,storage:s.storage});if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const h={...o,...d};d?.isRequired&&void 0===d?.default&&delete h.default,t.push({type:s.name,name:u,attribute:h})})}),t}function Dn(n,t){if("string"==typeof n){if(!t.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return t.nodes[n]}return n}function Et(...n){return n.filter(t=>!!t).reduce((t,e)=>{const i={...t};return Object.entries(e).forEach(([r,o])=>{i[r]=i[r]?"class"===r?[i[r],o].join(" "):"style"===r?[i[r],o].join("; "):o:o}),i},{})}function Yv(n,t){return t.filter(e=>e.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(n.attrs)||{}:{[e.name]:n.attrs[e.name]}).reduce((e,i)=>Et(e,i),{})}function SR(n){return"function"==typeof n}function Be(n,t,...e){return SR(n)?t?n.bind(t)(...e):n(...e):n}function xR(n,t){return n.style?n:{...n,getAttrs:e=>{const i=n.getAttrs?n.getAttrs(e):n.attrs;if(!1===i)return!1;const r=t.reduce((o,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(e):function HZ(n){return"string"!=typeof n?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):"true"===n||"false"!==n&&n}(e.getAttribute(s.name));return null==a?o:{...o,[s.name]:a}},{});return{...i,...r}}}}function TR(n){return Object.fromEntries(Object.entries(n).filter(([t,e])=>("attrs"!==t||!function zZ(n={}){return 0===Object.keys(n).length&&n.constructor===Object}(e))&&null!=e))}function Wv(n,t){return t.nodes[n]||t.marks[n]||null}function OR(n,t){return Array.isArray(t)?t.some(e=>("string"==typeof e?e:e.name)===n.name):t}function Jv(n){return"[object RegExp]"===Object.prototype.toString.call(n)}class Ch{constructor(t){this.find=t.find,this.handler=t.handler}}function Kv(n){var t;const{editor:e,from:i,to:r,text:o,rules:s,plugin:a}=n,{view:l}=e;if(l.composing)return!1;const c=l.state.doc.resolve(i);if(c.parent.type.spec.code||null!==(t=c.nodeBefore||c.nodeAfter)&&void 0!==t&&t.marks.find(h=>h.type.spec.code))return!1;let u=!1;const d=((n,t=500)=>{let e="";const i=n.parentOffset;return n.parent.nodesBetween(Math.max(0,i-t),i,(r,o,s,a)=>{var l,c;e+=((null===(c=(l=r.type.spec).toText)||void 0===c?void 0:c.call(l,{node:r,pos:o,parent:s,index:a}))||r.textContent||"%leaf%").slice(0,Math.max(0,i-o))}),e})(c)+o;return s.forEach(h=>{if(u)return;const p=((n,t)=>{if(Jv(t))return t.exec(n);const e=t(n);if(!e)return null;const i=[];return i.push(e.text),i.index=e.index,i.input=n,i.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(e.replaceWith)),i})(d,h.find);if(!p)return;const f=l.state.tr,g=Dm({state:l.state,transaction:f}),m={from:i-(p[0].length-o.length),to:r},{commands:A,chain:y,can:E}=new Im({editor:e,state:g});null===h.handler({state:g,range:m,match:p,commands:A,chain:y,can:E})||!f.steps.length||(f.setMeta(a,{transform:f,from:i,to:r,text:o}),l.dispatch(f),u=!0)}),u}function YZ(n){const{editor:t,rules:e}=n,i=new it({state:{init:()=>null,apply:(r,o)=>r.getMeta(i)||(r.selectionSet||r.docChanged?null:o)},props:{handleTextInput:(r,o,s,a)=>Kv({editor:t,from:o,to:s,text:a,rules:e,plugin:i}),handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:o}=r.state.selection;o&&Kv({editor:t,from:o.pos,to:o.pos,text:"",rules:e,plugin:i})}),!1)},handleKeyDown(r,o){if("Enter"!==o.key)return!1;const{$cursor:s}=r.state.selection;return!!s&&Kv({editor:t,from:s.pos,to:s.pos,text:"\n",rules:e,plugin:i})}},isInputRules:!0});return i}class $v{constructor(t){this.find=t.find,this.handler=t.handler}}function $Z(n){const{editor:t,rules:e}=n;let i=null,r=!1,o=!1;return e.map(a=>new it({view(l){const c=u=>{var d;i=null!==(d=l.dom.parentElement)&&void 0!==d&&d.contains(u.target)?l.dom.parentElement:null};return window.addEventListener("dragstart",c),{destroy(){window.removeEventListener("dragstart",c)}}},props:{handleDOMEvents:{drop:l=>(o=i===l.dom.parentElement,!1),paste:(l,c)=>{var u;const d=null===(u=c.clipboardData)||void 0===u?void 0:u.getData("text/html");return r=!!d?.includes("data-pm-slice"),!1}}},appendTransaction:(l,c,u)=>{const d=l[0],h="paste"===d.getMeta("uiEvent")&&!r,p="drop"===d.getMeta("uiEvent")&&!o;if(!h&&!p)return;const f=c.doc.content.findDiffStart(u.doc.content),g=c.doc.content.findDiffEnd(u.doc.content);if(!function WZ(n){return"number"==typeof n}(f)||!g||f===g.b)return;const m=u.tr,A=Dm({state:u,transaction:m});return function KZ(n){const{editor:t,state:e,from:i,to:r,rule:o}=n,{commands:s,chain:a,can:l}=new Im({editor:t,state:e}),c=[];return e.doc.nodesBetween(i,r,(d,h)=>{if(!d.isTextblock||d.type.spec.code)return;const p=Math.max(i,h),f=Math.min(r,h+d.content.size);((n,t)=>{if(Jv(t))return[...n.matchAll(t)];const e=t(n);return e?e.map(i=>{const r=[];return r.push(i.text),r.index=i.index,r.input=n,r.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),r.push(i.replaceWith)),r}):[]})(d.textBetween(p-h,f-h,void 0,"\ufffc"),o.find).forEach(A=>{if(void 0===A.index)return;const y=p+A.index+1,E=y+A[0].length,b={from:e.tr.mapping.map(y),to:e.tr.mapping.map(E)},D=o.handler({state:e,range:b,match:A,commands:s,chain:a,can:l});c.push(D)})}),c.every(d=>null!==d)}({editor:t,state:A,from:Math.max(f-1,0),to:g.b-1,rule:a})&&m.steps.length?m:void 0}}))}class cl{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=cl.resolve(t),this.schema=function BR(n){var t;const e=IR(n),{nodeExtensions:i,markExtensions:r}=Sm(n),o=null===(t=i.find(l=>ne(l,"topNode")))||void 0===t?void 0:t.name,s=Object.fromEntries(i.map(l=>{const c=e.filter(m=>m.type===l.name),u={name:l.name,options:l.options,storage:l.storage},h=TR({...n.reduce((m,A)=>{const y=ne(A,"extendNodeSchema",u);return{...m,...y?y(l):{}}},{}),content:Be(ne(l,"content",u)),marks:Be(ne(l,"marks",u)),group:Be(ne(l,"group",u)),inline:Be(ne(l,"inline",u)),atom:Be(ne(l,"atom",u)),selectable:Be(ne(l,"selectable",u)),draggable:Be(ne(l,"draggable",u)),code:Be(ne(l,"code",u)),defining:Be(ne(l,"defining",u)),isolating:Be(ne(l,"isolating",u)),attrs:Object.fromEntries(c.map(m=>{var A;return[m.name,{default:null===(A=m?.attribute)||void 0===A?void 0:A.default}]}))}),p=Be(ne(l,"parseHTML",u));p&&(h.parseDOM=p.map(m=>xR(m,c)));const f=ne(l,"renderHTML",u);f&&(h.toDOM=m=>f({node:m,HTMLAttributes:Yv(m,c)}));const g=ne(l,"renderText",u);return g&&(h.toText=g),[l.name,h]})),a=Object.fromEntries(r.map(l=>{const c=e.filter(g=>g.type===l.name),u={name:l.name,options:l.options,storage:l.storage},h=TR({...n.reduce((g,m)=>{const A=ne(m,"extendMarkSchema",u);return{...g,...A?A(l):{}}},{}),inclusive:Be(ne(l,"inclusive",u)),excludes:Be(ne(l,"excludes",u)),group:Be(ne(l,"group",u)),spanning:Be(ne(l,"spanning",u)),code:Be(ne(l,"code",u)),attrs:Object.fromEntries(c.map(g=>{var m;return[g.name,{default:null===(m=g?.attribute)||void 0===m?void 0:m.default}]}))}),p=Be(ne(l,"parseHTML",u));p&&(h.parseDOM=p.map(g=>xR(g,c)));const f=ne(l,"renderHTML",u);return f&&(h.toDOM=g=>f({mark:g,HTMLAttributes:Yv(g,c)})),[l.name,h]}));return new I6({topNode:o,nodes:s,marks:a})}(this.extensions),this.extensions.forEach(i=>{var r;this.editor.extensionStorage[i.name]=i.storage;const o={name:i.name,options:i.options,storage:i.storage,editor:this.editor,type:Wv(i.name,this.schema)};"mark"===i.type&&(null===(r=Be(ne(i,"keepOnSplit",o)))||void 0===r||r)&&this.splittableMarks.push(i.name);const s=ne(i,"onBeforeCreate",o);s&&this.editor.on("beforeCreate",s);const a=ne(i,"onCreate",o);a&&this.editor.on("create",a);const l=ne(i,"onUpdate",o);l&&this.editor.on("update",l);const c=ne(i,"onSelectionUpdate",o);c&&this.editor.on("selectionUpdate",c);const u=ne(i,"onTransaction",o);u&&this.editor.on("transaction",u);const d=ne(i,"onFocus",o);d&&this.editor.on("focus",d);const h=ne(i,"onBlur",o);h&&this.editor.on("blur",h);const p=ne(i,"onDestroy",o);p&&this.editor.on("destroy",p)})}static resolve(t){const e=cl.sort(cl.flatten(t)),i=function qZ(n){const t=n.filter((e,i)=>n.indexOf(e)!==i);return[...new Set(t)]}(e.map(r=>r.name));return i.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${i.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map(e=>{const r=ne(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return r?[e,...this.flatten(r())]:e}).flat(10)}static sort(t){return t.sort((i,r)=>{const o=ne(i,"priority")||100,s=ne(r,"priority")||100;return o>s?-1:o{const r=ne(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Wv(e.name,this.schema)});return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this,e=cl.sort([...this.extensions].reverse()),i=[],r=[],o=e.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:t,type:Wv(s.name,this.schema)},l=[],c=ne(s,"addKeyboardShortcuts",a);let u={};if("mark"===s.type&&s.config.exitable&&(u.ArrowRight=()=>Qr.handleExit({editor:t,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([m,A])=>[m,()=>A({editor:t})]));u={...u,...g}}const d=function AZ(n){return new it({props:{handleKeyDown:Lv(n)}})}(u);l.push(d);const h=ne(s,"addInputRules",a);OR(s,t.options.enableInputRules)&&h&&i.push(...h());const p=ne(s,"addPasteRules",a);OR(s,t.options.enablePasteRules)&&p&&r.push(...p());const f=ne(s,"addProseMirrorPlugins",a);if(f){const g=f();l.push(...g)}return l}).flat();return[YZ({editor:t,rules:i}),...$Z({editor:t,rules:r}),...o]}get attributes(){return IR(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=Sm(this.extensions);return Object.fromEntries(e.filter(i=>!!ne(i,"addNodeView")).map(i=>{const r=this.attributes.filter(l=>l.type===i.name),o={name:i.name,options:i.options,storage:i.storage,editor:t,type:Dn(i.name,this.schema)},s=ne(i,"addNodeView",o);return s?[i.name,(l,c,u,d)=>{const h=Yv(l,r);return s()({editor:t,node:l,getPos:u,decorations:d,HTMLAttributes:h,extension:i})}]:[]}))}}function qv(n){return"Object"===function XZ(n){return Object.prototype.toString.call(n).slice(8,-1)}(n)&&n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function xm(n,t){const e={...n};return qv(n)&&qv(t)&&Object.keys(t).forEach(i=>{qv(t[i])?i in n?e[i]=xm(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class Ft{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Ft(t)}configure(t={}){const e=this.extend();return e.options=xm(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Ft(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}}function kR(n,t,e){const{from:i,to:r}=t,{blockSeparator:o="\n\n",textSerializers:s={}}=e||{};let a="",l=!0;return n.nodesBetween(i,r,(c,u,d,h)=>{var p;const f=s?.[c.type.name];f?(c.isBlock&&!l&&(a+=o,l=!0),d&&(a+=f({node:c,pos:u,parent:d,index:h,range:t}))):c.isText?(a+=null===(p=c?.text)||void 0===p?void 0:p.slice(Math.max(i,u)-u,r-u),l=!1):c.isBlock&&!l&&(a+=o,l=!0)}),a}function Xv(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,t])=>t.spec.toText).map(([t,e])=>[t,e.spec.toText]))}const ZZ=Ft.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new it({key:new _t("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:t,schema:e}=n,{doc:i,selection:r}=t,{ranges:o}=r;return kR(i,{from:Math.min(...o.map(u=>u.$from.pos)),to:Math.max(...o.map(u=>u.$to.pos))},{textSerializers:Xv(e)})}}})]}});function Tm(n,t,e={strict:!0}){const i=Object.keys(t);return!i.length||i.every(r=>e.strict?t[r]===n[r]:Jv(t[r])?t[r].test(n[r]):t[r]===n[r])}function Zv(n,t,e={}){return n.find(i=>i.type===t&&Tm(i.attrs,e))}function dee(n,t,e={}){return!!Zv(n,t,e)}function eM(n,t,e={}){if(!n||!t)return;let i=n.parent.childAfter(n.parentOffset);if(n.parentOffset===i.offset&&0!==i.offset&&(i=n.parent.childBefore(n.parentOffset)),!i.node)return;const r=Zv([...i.node.marks],t,e);if(!r)return;let o=i.index,s=n.start()+i.offset,a=o+1,l=s+i.node.nodeSize;for(Zv([...i.node.marks],t,e);o>0&&r.isInSet(n.parent.child(o-1).marks);)o-=1,s-=n.parent.child(o).nodeSize;for(;a${n}`;return(new window.DOMParser).parseFromString(t,"text/html").body}function km(n,t,e){if(e={slice:!0,parseOptions:{},...e},"object"==typeof n&&null!==n)try{return Array.isArray(n)?L.fromArray(n.map(i=>t.nodeFromJSON(i))):t.nodeFromJSON(n)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",i),km("",t,e)}if("string"==typeof n){const i=kc.fromSchema(t);return e.slice?i.parseSlice(tM(n),e.parseOptions).content:i.parse(tM(n),e.parseOptions)}return km("",t,e)}function FR(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)}function vh(n,t,e={}){const{from:i,to:r,empty:o}=n.selection,s=t?Dn(t,n.schema):null,a=[];n.doc.nodesBetween(i,r,(d,h)=>{if(d.isText)return;const p=Math.max(i,h),f=Math.min(r,h+d.nodeSize);a.push({node:d,from:p,to:f})});const l=r-i,c=a.filter(d=>!s||s.name===d.node.type.name).filter(d=>Tm(d.node.attrs,e,{strict:!1}));return o?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=l}function Pm(n,t){return t.nodes[n]?"node":t.marks[n]?"mark":null}function RR(n,t){const e="string"==typeof t?[t]:t;return Object.keys(n).reduce((i,r)=>(e.includes(r)||(i[r]=n[r]),i),{})}function NR(n,t,e={}){return km(n,t,{slice:!1,parseOptions:e})}function LR(n,t){for(let e=n.depth;e>0;e-=1){const i=n.node(e);if(t(i))return{pos:e>0?n.before(e):0,start:n.start(e),depth:e,node:i}}}function nM(n){return t=>LR(t.$from,n)}function jR(n,t){const e=ta(t,n.schema),{from:i,to:r,empty:o}=n.selection,s=[];o?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(i,r,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===e.name);return a?{...a.attrs}:{}}function zR(n,t){const e=Pm("string"==typeof t?t:t.name,n.schema);return"node"===e?function zee(n,t){const e=Dn(t,n.schema),{from:i,to:r}=n.selection,o=[];n.doc.nodesBetween(i,r,a=>{o.push(a)});const s=o.reverse().find(a=>a.type.name===e.name);return s?{...s.attrs}:{}}(n,t):"mark"===e?jR(n,t):{}}function Fm(n,t,e){const i=[];return n===t?e.resolve(n).marks().forEach(r=>{const s=eM(e.resolve(n-1),r.type);!s||i.push({mark:r,...s})}):e.nodesBetween(n,t,(r,o)=>{i.push(...r.marks.map(s=>({from:o,to:o+r.nodeSize,mark:s})))}),i}function rM(n,t,e={}){const{empty:i,ranges:r}=n.selection,o=t?ta(t,n.schema):null;if(i)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>!o||o.name===d.type.name).find(d=>Tm(d.attrs,e,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:d,$to:h})=>{const p=d.pos,f=h.pos;n.doc.nodesBetween(p,f,(g,m)=>{if(!g.isText&&!g.marks.length)return;const A=Math.max(p,m),y=Math.min(f,m+g.nodeSize);s+=y-A,a.push(...g.marks.map(b=>({mark:b,from:A,to:y})))})}),0===s)return!1;const l=a.filter(d=>!o||o.name===d.mark.type.name).filter(d=>Tm(d.mark.attrs,e,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=a.filter(d=>!o||d.mark.type!==o&&d.mark.type.excludes(o)).reduce((d,h)=>d+h.to-h.from,0);return(l>0?l+c:l)>=s}function HR(n,t){const{nodeExtensions:e}=Sm(t),i=e.find(s=>s.name===n);if(!i)return!1;const o=Be(ne(i,"group",{name:i.name,options:i.options,storage:i.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function ul(n,t,e){const r=n.state.doc.content.size,o=ts(t,0,r),s=ts(e,0,r),a=n.coordsAtPos(o),l=n.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),d=Math.min(a.left,l.left),h=Math.max(a.right,l.right),A={top:c,bottom:u,left:d,right:h,width:h-d,height:u-c,x:d,y:c};return{...A,toJSON:()=>A}}function Rm(n,t,e){return Object.fromEntries(Object.entries(e).filter(([i])=>{const r=n.find(o=>o.type===t&&o.name===i);return!!r&&r.attribute.keepOnSplit}))}function VR(n,t){const e=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(e){const i=e.filter(r=>t?.includes(r.type.name));n.tr.ensureMarks(i)}}const GR=(n,t)=>{const e=nM(s=>s.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(void 0===i)return!0;const r=n.doc.nodeAt(i);return e.node.type===r?.type&&Us(n.doc,e.pos)&&n.join(e.pos),!0},YR=(n,t)=>{const e=nM(s=>s.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(e.start).after(e.depth);if(void 0===i)return!0;const r=n.doc.nodeAt(i);return e.node.type===r?.type&&Us(n.doc,i)&&n.join(i),!0};var ote=Object.freeze({__proto__:null,blur:()=>({editor:n,view:t})=>(requestAnimationFrame(()=>{var e;n.isDestroyed||(t.dom.blur(),null===(e=window?.getSelection())||void 0===e||e.removeAllRanges())}),!0),clearContent:(n=!1)=>({commands:t})=>t.setContent("",n),clearNodes:()=>({state:n,tr:t,dispatch:e})=>{const{selection:i}=t,{ranges:r}=i;return e&&r.forEach(({$from:o,$to:s})=>{n.doc.nodesBetween(o.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=t,d=c.resolve(u.map(l)),h=c.resolve(u.map(l+a.nodeSize)),p=d.blockRange(h);if(!p)return;const f=Rc(p);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,g)}(f||0===f)&&t.lift(p,f)})}),!0},command:n=>t=>n(t),createParagraphNear:()=>({state:n,dispatch:t})=>bR(n,t),deleteCurrentNode:()=>({tr:n,dispatch:t})=>{const{selection:e}=n,i=e.$anchor.node();if(i.content.size>0)return!1;const r=n.selection.$anchor;for(let o=r.depth;o>0;o-=1)if(r.node(o).type===i.type){if(t){const a=r.before(o),l=r.after(o);n.delete(a,l).scrollIntoView()}return!0}return!1},deleteNode:n=>({tr:t,state:e,dispatch:i})=>{const r=Dn(n,e.schema),o=t.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===r){if(i){const l=o.before(s),c=o.after(s);t.delete(l,c).scrollIntoView()}return!0}return!1},deleteRange:n=>({tr:t,dispatch:e})=>{const{from:i,to:r}=n;return e&&t.delete(i,r),!0},deleteSelection:()=>({state:n,dispatch:t})=>Qv(n,t),enter:()=>({commands:n})=>n.keyboardShortcut("Enter"),exitCode:()=>({state:n,dispatch:t})=>AR(n,t),extendMarkRange:(n,t={})=>({tr:e,state:i,dispatch:r})=>{const o=ta(n,i.schema),{doc:s,selection:a}=e,{$from:l,from:c,to:u}=a;if(r){const d=eM(l,o,t);if(d&&d.from<=c&&d.to>=u){const h=Ee.create(s,d.from,d.to);e.setSelection(h)}}return!0},first:n=>t=>{const e="function"==typeof n?n(t):n;for(let i=0;i({editor:e,view:i,tr:r,dispatch:o})=>{t={scrollIntoView:!0,...t};const s=()=>{Om()&&i.dom.focus(),requestAnimationFrame(()=>{e.isDestroyed||(i.focus(),t?.scrollIntoView&&e.commands.scrollIntoView())})};if(i.hasFocus()&&null===n||!1===n)return!0;if(o&&null===n&&!Bm(e.state.selection))return s(),!0;const a=PR(r.doc,n)||e.state.selection,l=e.state.selection.eq(a);return o&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},forEach:(n,t)=>e=>n.every((i,r)=>t(i,{...e,index:r})),insertContent:(n,t)=>({tr:e,commands:i})=>i.insertContentAt({from:e.selection.from,to:e.selection.to},n,t),insertContentAt:(n,t,e)=>({tr:i,dispatch:r,editor:o})=>{if(r){e={parseOptions:{},updateSelection:!0,...e};const s=km(t,o.schema,{parseOptions:{preserveWhitespace:"full",...e.parseOptions}});if("<>"===s.toString())return!0;let{from:a,to:l}="number"==typeof n?{from:n,to:n}:n,c=!0,u=!0;if(((n=>n.toString().startsWith("<"))(s)?s:[s]).forEach(h=>{h.check(),c=!!c&&h.isText&&0===h.marks.length,u=!!u&&h.isBlock}),a===l&&u){const{parent:h}=i.doc.resolve(a);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(a-=1,l+=1)}c?i.insertText(t,a,l):i.replaceWith(a,l,s),e.updateSelection&&function Aee(n,t,e){const i=n.steps.length-1;if(i{0===s&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),e))}(i,i.steps.length-1,-1)}return!0},joinUp:()=>({state:n,dispatch:t})=>((n,t)=>{let r,e=n.selection,i=e instanceof ce;if(i){if(e.node.isTextblock||!Us(n.doc,e.from))return!1;r=e.from}else if(r=Jk(n.doc,e.from,-1),null==r)return!1;if(t){let o=n.tr.join(r);i&&o.setSelection(ce.create(o.doc,r-n.doc.resolve(r).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0})(n,t),joinDown:()=>({state:n,dispatch:t})=>((n,t)=>{let i,e=n.selection;if(e instanceof ce){if(e.node.isTextblock||!Us(n.doc,e.to))return!1;i=e.to}else if(i=Jk(n.doc,e.to,1),null==i)return!1;return t&&t(n.tr.join(i).scrollIntoView()),!0})(n,t),joinBackward:()=>({state:n,dispatch:t})=>uR(n,t),joinForward:()=>({state:n,dispatch:t})=>fR(n,t),keyboardShortcut:n=>({editor:t,view:e,tr:i,dispatch:r})=>{const o=function Mee(n){const t=n.split(/-(?!$)/);let i,r,o,s,e=t[t.length-1];"Space"===e&&(e=" ");for(let a=0;a!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{e.someProp("handleKeyDown",c=>c(e,a))})?.steps.forEach(c=>{const u=c.map(i.mapping);u&&r&&i.maybeStep(u)}),!0},lift:(n,t={})=>({state:e,dispatch:i})=>!!vh(e,Dn(n,e.schema),t)&&((n,t)=>{let{$from:e,$to:i}=n.selection,r=e.blockRange(i),o=r&&Rc(r);return null!=o&&(t&&t(n.tr.lift(r,o).scrollIntoView()),!0)})(e,i),liftEmptyBlock:()=>({state:n,dispatch:t})=>yR(n,t),liftListItem:n=>({state:t,dispatch:e})=>function NZ(n){return function(t,e){let{$from:i,$to:r}=t.selection,o=i.blockRange(r,s=>s.childCount>0&&s.firstChild.type==n);return!!o&&(!e||(i.node(o.depth-1).type==n?function LZ(n,t,e,i){let r=n.tr,o=i.end,s=i.$to.end(i.depth);og;f--)p-=r.child(f).nodeSize,i.delete(p-1,p+1);let o=i.doc.resolve(e.start),s=o.nodeAfter;if(i.mapping.map(e.end)!=e.start+o.nodeAfter.nodeSize)return!1;let a=0==e.startIndex,l=e.endIndex==r.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?L.empty:L.from(r))))return!1;let d=o.pos,h=d+s.nodeSize;return i.step(new Mn(d-(a?1:0),h+(l?1:0),d+1,h-1,new G((a?L.empty:L.from(r.copy(L.empty))).append(l?L.empty:L.from(r.copy(L.empty))),a?0:1,l?0:1),a?0:1)),t(i.scrollIntoView()),!0}(t,e,o)))}}(Dn(n,t.schema))(t,e),newlineInCode:()=>({state:n,dispatch:t})=>mR(n,t),resetAttributes:(n,t)=>({tr:e,state:i,dispatch:r})=>{let o=null,s=null;const a=Pm("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(o=Dn(n,i.schema)),"mark"===a&&(s=ta(n,i.schema)),r&&e.selection.ranges.forEach(l=>{i.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&e.setNodeMarkup(u,void 0,RR(c.attrs,t)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&e.addMark(u,u+c.nodeSize,s.create(RR(d.attrs,t)))})})}),!0)},scrollIntoView:()=>({tr:n,dispatch:t})=>(t&&n.scrollIntoView(),!0),selectAll:()=>({tr:n,commands:t})=>t.setTextSelection({from:0,to:n.doc.content.size}),selectNodeBackward:()=>({state:n,dispatch:t})=>hR(n,t),selectNodeForward:()=>({state:n,dispatch:t})=>gR(n,t),selectParentNode:()=>({state:n,dispatch:t})=>((n,t)=>{let r,{$from:e,to:i}=n.selection,o=e.sharedDepth(i);return 0!=o&&(r=e.before(o),t&&t(n.tr.setSelection(ce.create(n.doc,r))),!0)})(n,t),selectTextblockEnd:()=>({state:n,dispatch:t})=>MR(n,t),selectTextblockStart:()=>({state:n,dispatch:t})=>vR(n,t),setContent:(n,t=!1,e={})=>({tr:i,editor:r,dispatch:o})=>{const{doc:s}=i,a=NR(n,r.schema,e);return o&&i.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!t),!0},setMark:(n,t={})=>({tr:e,state:i,dispatch:r})=>{const{selection:o}=e,{empty:s,ranges:a}=o,l=ta(n,i.schema);if(r)if(s){const c=jR(i,l);e.addStoredMark(l.create({...c,...t}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;i.doc.nodesBetween(u,d,(h,p)=>{const f=Math.max(p,u),g=Math.min(p+h.nodeSize,d);h.marks.find(A=>A.type===l)?h.marks.forEach(A=>{l===A.type&&e.addMark(f,g,l.create({...A.attrs,...t}))}):e.addMark(f,g,l.create(t))})});return function $ee(n,t,e){var i;const{selection:r}=t;let o=null;if(Bm(r)&&(o=r.$cursor),o){const a=null!==(i=n.storedMarks)&&void 0!==i?i:o.marks();return!!e.isInSet(a)||!a.some(l=>l.type.excludes(e))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=0===a.depth&&n.doc.inlineContent&&n.doc.type.allowsMarkType(e);return n.doc.nodesBetween(a.pos,l.pos,(u,d,h)=>{if(c)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(e),f=!!e.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(e));c=p&&f}return!c}),c})}(i,e,l)},setMeta:(n,t)=>({tr:e})=>(e.setMeta(n,t),!0),setNode:(n,t={})=>({state:e,dispatch:i,chain:r})=>{const o=Dn(n,e.schema);return o.isTextblock?r().command(({commands:s})=>!!wR(o,t)(e)||s.clearNodes()).command(({state:s})=>wR(o,t)(s,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,r=ts(n,0,i.content.size),o=ce.create(i,r);t.setSelection(o)}return!0},setTextSelection:n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,{from:r,to:o}="number"==typeof n?{from:n,to:n}:n,s=Ee.atStart(i).from,a=Ee.atEnd(i).to,l=ts(r,s,a),c=ts(o,s,a),u=Ee.create(i,l,c);t.setSelection(u)}return!0},sinkListItem:n=>({state:t,dispatch:e})=>function UZ(n){return function(t,e){let{$from:i,$to:r}=t.selection,o=i.blockRange(r,c=>c.childCount>0&&c.firstChild.type==n);if(!o)return!1;let s=o.startIndex;if(0==s)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=n)return!1;if(e){let c=l.lastChild&&l.lastChild.type==a.type,u=L.from(c?n.create():null),d=new G(L.from(n.create(null,L.from(a.type.create(null,u)))),c?3:1,0),h=o.start,p=o.end;e(t.tr.step(new Mn(h-(c?3:1),p,h,p,d,1,!0)).scrollIntoView())}return!0}}(Dn(n,t.schema))(t,e),splitBlock:({keepMarks:n=!0}={})=>({tr:t,state:e,dispatch:i,editor:r})=>{const{selection:o,doc:s}=t,{$from:a,$to:l}=o,u=Rm(r.extensionManager.attributes,a.node().type.name,a.node().attrs);if(o instanceof ce&&o.node.isBlock)return!(!a.parentOffset||!$o(s,a.pos)||(i&&(n&&VR(e,r.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),0));if(!a.parent.isBlock)return!1;if(i){const d=l.parentOffset===l.parent.content.size;o instanceof Ee&&t.deleteSelection();const h=0===a.depth?void 0:function Uee(n){for(let t=0;t({tr:t,state:e,dispatch:i,editor:r})=>{var o;const s=Dn(n,e.schema),{$from:a,$to:l}=e.selection,c=e.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==s)return!1;const d=r.extensionManager.attributes;if(0===a.parent.content.size&&a.node(-1).childCount===a.indexAfter(-1)){if(2===a.depth||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(i){let m=L.empty;const A=a.index(-1)?1:a.index(-2)?2:3;for(let Q=a.depth-A;Q>=a.depth-3;Q-=1)m=L.from(a.node(Q).copy(m));const y=a.indexAfter(-1){if(I>-1)return!1;Q.isTextblock&&0===Q.content.size&&(I=O+1)}),I>-1&&t.setSelection(Ee.near(t.doc.resolve(I))),t.scrollIntoView()}return!0}const h=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,p=Rm(d,u.type.name,u.attrs),f=Rm(d,a.node().type.name,a.node().attrs);t.delete(a.pos,l.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:f}]:[{type:s,attrs:p}];return!!$o(t.doc,a.pos,2)&&(i&&t.split(a.pos,2,g).scrollIntoView(),!0)},toggleList:(n,t)=>({editor:e,tr:i,state:r,dispatch:o,chain:s,commands:a,can:l})=>{const{extensions:c}=e.extensionManager,u=Dn(n,r.schema),d=Dn(t,r.schema),{selection:h}=r,{$from:p,$to:f}=h,g=p.blockRange(f);if(!g)return!1;const m=nM(A=>HR(A.type.name,c))(h);if(g.depth>=1&&m&&g.depth-m.depth<=1){if(m.node.type===u)return a.liftListItem(d);if(HR(m.node.type.name,c)&&u.validContent(m.node.content)&&o)return s().command(()=>(i.setNodeMarkup(m.pos,u),!0)).command(()=>GR(i,u)).command(()=>YR(i,u)).run()}return s().command(()=>!!l().wrapInList(u)||a.clearNodes()).wrapInList(u).command(()=>GR(i,u)).command(()=>YR(i,u)).run()},toggleMark:(n,t={},e={})=>({state:i,commands:r})=>{const{extendEmptyMarkRange:o=!1}=e,s=ta(n,i.schema);return rM(i,s,t)?r.unsetMark(s,{extendEmptyMarkRange:o}):r.setMark(s,t)},toggleNode:(n,t,e={})=>({state:i,commands:r})=>{const o=Dn(n,i.schema),s=Dn(t,i.schema);return vh(i,o,e)?r.setNode(s):r.setNode(o,e)},toggleWrap:(n,t={})=>({state:e,commands:i})=>{const r=Dn(n,e.schema);return vh(e,r,t)?i.lift(r):i.wrapIn(r,t)},undoInputRule:()=>({state:n,dispatch:t})=>{const e=n.plugins;for(let i=0;i=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,n.schema.text(o.text,l))}else s.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:t})=>{const{selection:e}=n,{empty:i,ranges:r}=e;return i||t&&r.forEach(o=>{n.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(n,t={})=>({tr:e,state:i,dispatch:r})=>{var o;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=e,l=ta(n,i.schema),{$from:c,empty:u,ranges:d}=a;if(!r)return!0;if(u&&s){let{from:h,to:p}=a;const f=null===(o=c.marks().find(m=>m.type===l))||void 0===o?void 0:o.attrs,g=eM(c,l,f);g&&(h=g.from,p=g.to),e.removeMark(h,p,l)}else d.forEach(h=>{e.removeMark(h.$from.pos,h.$to.pos,l)});return e.removeStoredMark(l),!0},updateAttributes:(n,t={})=>({tr:e,state:i,dispatch:r})=>{let o=null,s=null;const a=Pm("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(o=Dn(n,i.schema)),"mark"===a&&(s=ta(n,i.schema)),r&&e.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;i.doc.nodesBetween(c,u,(d,h)=>{o&&o===d.type&&e.setNodeMarkup(h,void 0,{...d.attrs,...t}),s&&d.marks.length&&d.marks.forEach(p=>{if(s===p.type){const f=Math.max(h,c),g=Math.min(h+d.nodeSize,u);e.addMark(f,g,s.create({...p.attrs,...t}))}})})}),!0)},wrapIn:(n,t={})=>({state:e,dispatch:i})=>function wZ(n,t=null){return function(e,i){let{$from:r,$to:o}=e.selection,s=r.blockRange(o),a=s&&LC(s,n,t);return!!a&&(i&&i(e.tr.wrap(s,a).scrollIntoView()),!0)}}(Dn(n,e.schema),t)(e,i),wrapInList:(n,t={})=>({state:e,dispatch:i})=>function FZ(n,t=null){return function(e,i){let{$from:r,$to:o}=e.selection,s=r.blockRange(o),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(n)&&0==s.startIndex){if(0==r.index(s.depth-1))return!1;let u=e.doc.resolve(s.start-2);l=new Zg(u,u,s.depth),s.endIndex=0;u--)o=L.from(e[u].type.create(e[u].attrs,o));n.step(new Mn(t.start-(i?2:0),t.end,t.start,t.end,new G(o,0,0),e.length,!0));let s=0;for(let u=0;u({...ote})}),ate=Ft.create({name:"editable",addProseMirrorPlugins(){return[new it({key:new _t("editable"),props:{editable:()=>this.editor.options.editable}})]}}),lte=Ft.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new it({key:new _t("focusEvents"),props:{handleDOMEvents:{focus:(t,e)=>{n.isFocused=!0;const i=n.state.tr.setMeta("focus",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1},blur:(t,e)=>{n.isFocused=!1;const i=n.state.tr.setMeta("blur",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1}}}})]}}),cte=Ft.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:h,parent:p}=d,f=_e.atStart(c).from===h;return!(!(u&&f&&p.type.isTextblock)||p.textContent.length)&&s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),i={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...i},o={...i,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Om()||FR()?o:r},addProseMirrorPlugins(){return[new it({key:new _t("clearDocument"),appendTransaction:(n,t,e)=>{if(!n.some(f=>f.docChanged)||t.doc.eq(e.doc))return;const{empty:r,from:o,to:s}=t.selection,a=_e.atStart(t.doc).from,l=_e.atEnd(t.doc).to,c=o===a&&s===l,u=0===e.doc.textBetween(0,e.doc.content.size," "," ").length;if(r||!c||!u)return;const d=e.tr,h=Dm({state:e,transaction:d}),{commands:p}=new Im({editor:this.editor,state:h});return p.clearNodes(),d.steps.length?d:void 0}})]}}),ute=Ft.create({name:"tabindex",addProseMirrorPlugins(){return[new it({key:new _t("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var dte=Object.freeze({__proto__:null,ClipboardTextSerializer:ZZ,Commands:ste,Editable:ate,FocusEvents:lte,Keymap:cte,Tabindex:ute});class fte extends class jZ{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const i=this.callbacks[t];return i&&i.forEach(r=>r.apply(this,e)),this}off(t,e){const i=this.callbacks[t];return i&&(e?this.callbacks[t]=i.filter(r=>r!==e):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function pte(n,t){const e=document.querySelector("style[data-tiptap-style]");if(null!==e)return e;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(i),i}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t){this.setOptions({editable:t}),this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const i=SR(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:i});this.view.updateState(r)}unregisterPlugin(t){if(this.isDestroyed)return;const e="string"==typeof t?`${t}$`:t.key,i=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(e))});this.view.updateState(i)}createExtensionManager(){const e=[...this.options.enableCoreExtensions?Object.values(dte):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new cl(e,this)}createCommandManager(){this.commandManager=new Im({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=NR(this.options.content,this.schema,this.options.parseOptions),e=PR(t,this.options.autofocus);this.view=new aZ(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Uc.create({doc:t,selection:e||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach(s=>{var a;return null===(a=this.capturedTransaction)||void 0===a?void 0:a.step(s)}):void(this.capturedTransaction=t);const e=this.state.apply(t),i=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),i&&this.emit("selectionUpdate",{editor:this,transaction:t});const r=t.getMeta("focus"),o=t.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return zR(this.state,t)}isActive(t,e){return function Wee(n,t,e={}){if(!t)return vh(n,null,e)||rM(n,null,e);const i=Pm(t,n.schema);return"node"===i?vh(n,t,e):"mark"===i&&rM(n,t,e)}(this.state,"string"==typeof t?t:null,"string"==typeof t?e:t)}getJSON(){return this.state.doc.toJSON()}getHTML(){return function QR(n,t){const e=co.fromSchema(t).serializeFragment(n),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:i={}}=t||{};return function UR(n,t){return kR(n,{from:0,to:n.content.size},t)}(this.state.doc,{blockSeparator:e,textSerializers:{...i,...Xv(this.schema)}})}get isEmpty(){return function Jee(n){var t;const e=null===(t=n.type.createAndFill())||void 0===t?void 0:t.toJSON(),i=n.toJSON();return JSON.stringify(e)===JSON.stringify(i)}(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(null!==(t=this.view)&&void 0!==t&&t.docView)}}function dl(n){return new Ch({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=e.to;if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),d=u+s.length;if(Fm(e.from,e.to,t.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;de.from&&o.delete(e.from+c,u),l=e.from+c+s.length,o.addMark(e.from+c,l,n.type.create(r||{})),o.removeStoredMark(n.type)}}})}function WR(n){return new Ch({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i)||{},{tr:o}=t,s=e.from;let a=e.to;if(i[1]){let c=s+i[0].lastIndexOf(i[1]);c>a?c=a:a=c+i[1].length,o.insertText(i[0][i[0].length-1],s+i[0].length-1),o.replaceWith(c,a,n.type.create(r))}else i[0]&&o.replaceWith(s,a,n.type.create(r))}})}function oM(n){return new Ch({find:n.find,handler:({state:t,range:e,match:i})=>{const r=t.doc.resolve(e.from),o=Be(n.getAttributes,void 0,i)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),n.type))return null;t.tr.delete(e.from,e.to).setBlockType(e.from,e.from,n.type,o)}})}function sM(n){return new Ch({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i)||{},o=t.tr.delete(e.from,e.to),a=o.doc.resolve(e.from).blockRange(),l=a&&LC(a,n.type,r);if(!l)return null;o.wrap(a,l);const c=o.doc.resolve(e.from-1).nodeBefore;c&&c.type===n.type&&Us(o.doc,e.from-1)&&(!n.joinPredicate||n.joinPredicate(i,c))&&o.join(e.from-1)}})}class Qr{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Qr(t)}configure(t={}){const e=this.extend();return e.options=xm(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Qr(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:i}=t.state,r=t.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!s.find(c=>c?.type.name===e.name))return!1;const l=s.find(c=>c?.type.name===e.name);return l&&i.removeStoredMark(l),i.insertText(" ",r.pos),t.view.dispatch(i),!0}return!1}}class tn{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new tn(t)}configure(t={}){const e=this.extend();return e.options=xm(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new tn(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}}function na(n){return new $v({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=e.to;if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),d=u+s.length;if(Fm(e.from,e.to,t.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;de.from&&o.delete(e.from+c,u),l=e.from+c+s.length,o.addMark(e.from+c,l,n.type.create(r||{})),o.removeStoredMark(n.type)}}})}function JR(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function Mh(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){JR(o,i,r,s,a,"next",l)}function a(l){JR(o,i,r,s,a,"throw",l)}s(void 0)})}}const bte=new _t("suggestion");function yte({pluginKey:n=bte,editor:t,char:e="@",allowSpaces:i=!1,allowedPrefixes:r=[" "],startOfLine:o=!1,decorationTag:s="span",decorationClass:a="suggestion",command:l=(()=>null),items:c=(()=>[]),render:u=(()=>({})),allow:d=(()=>!0)}){let h;const p=u?.(),f=new it({key:n,view(){var m,g=this;return{update:(m=Mh(function*(A,y){var E,b,D,I,Q,O,q;const le=null===(E=g.key)||void 0===E?void 0:E.getState(y),xe=null===(b=g.key)||void 0===b?void 0:b.getState(A.state),ke=le.active&&xe.active&&le.range.from!==xe.range.from,Ae=!le.active&&xe.active,dt=le.active&&!xe.active,U=Ae||ke,V=!Ae&&!dt&&le.query!==xe.query&&!ke,W=dt||ke;if(!U&&!V&&!W)return;const X=W&&!U?le:xe,Ce=A.dom.querySelector(`[data-decoration-id="${X.decorationId}"]`);h={editor:t,range:X.range,query:X.query,text:X.text,items:[],command:ft=>{l({editor:t,range:X.range,props:ft})},decorationNode:Ce,clientRect:Ce?()=>{var ft;const{decorationId:Bt}=null===(ft=g.key)||void 0===ft?void 0:ft.getState(t.state);return A.dom.querySelector(`[data-decoration-id="${Bt}"]`)?.getBoundingClientRect()||null}:null},U&&(null===(D=p?.onBeforeStart)||void 0===D||D.call(p,h)),V&&(null===(I=p?.onBeforeUpdate)||void 0===I||I.call(p,h)),(V||U)&&(h.items=yield c({editor:t,query:X.query})),W&&(null===(Q=p?.onExit)||void 0===Q||Q.call(p,h)),V&&(null===(O=p?.onUpdate)||void 0===O||O.call(p,h)),U&&(null===(q=p?.onStart)||void 0===q||q.call(p,h))}),function(y,E){return m.apply(this,arguments)}),destroy:()=>{var m;!h||null===(m=p?.onExit)||void 0===m||m.call(p,h)}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(g,m,A,y){const{isEditable:E}=t,{composing:b}=t.view,{selection:D}=g,{empty:I,from:Q}=D,O={...m};if(O.composing=b,E&&(I||t.view.composing)){(Qm.range.to)&&!b&&!m.composing&&(O.active=!1);const q=function Ate(n){var t;const{char:e,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:s}=n,a=function mte(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}(e),l=new RegExp(`\\s${a}$`),c=o?"^":"",u=i?new RegExp(`${c}${a}.*?(?=\\s${a}|$)`,"gm"):new RegExp(`${c}(?:^)?${a}[^\\s${a}]*`,"gm"),d=(null===(t=s.nodeBefore)||void 0===t?void 0:t.isText)&&s.nodeBefore.text;if(!d)return null;const h=s.pos-d.length,p=Array.from(d.matchAll(u)).pop();if(!p||void 0===p.input||void 0===p.index)return null;const f=p.input.slice(Math.max(0,p.index-1),p.index),g=new RegExp(`^[${r?.join("")}\0]?$`).test(f);if(null!==r&&!g)return null;const m=h+p.index;let A=m+p[0].length;return i&&l.test(d.slice(A-1,A+1))&&(p[0]+=" ",A+=1),m=s.pos?{range:{from:m,to:A},query:p[0].slice(e.length),text:p[0]}:null}({char:e,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:D.$from}),le=`id_${Math.floor(4294967295*Math.random())}`;q&&d({editor:t,state:y,range:q.range})?(O.active=!0,O.decorationId=m.decorationId?m.decorationId:le,O.range=q.range,O.query=q.query,O.text=q.text):O.active=!1}else O.active=!1;return O.active||(O.decorationId=null,O.range={from:0,to:0},O.query=null,O.text=null),O}},props:{handleKeyDown(g,m){var A;const{active:y,range:E}=f.getState(g.state);return y&&(null===(A=p?.onKeyDown)||void 0===A?void 0:A.call(p,{view:g,event:m,range:E}))||!1},decorations(g){const{active:m,range:A,decorationId:y}=f.getState(g);return m?kt.create(g.doc,[wn.inline(A.from,A.to,{nodeName:s,class:a,"data-decoration-id":y})]):null}}});return f}let _te=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-action-button"]],decls:3,vars:0,consts:[[1,"material-icons"]],template:function(e,i){1&e&&(x(0,"button")(1,"i",0),de(2,"add"),B()())},styles:["[_nghost-%COMP%]{display:block}button[_ngcontent-%COMP%]{all:unset;cursor:pointer;border:solid 1px #eee;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#666;background:#ffffff}"]}),n})();const Ete=function(){return{padding:".75rem 2rem",borderRadius:"2px"}};function Cte(n,t){if(1&n){const e=Re();x(0,"button",2),K("mousedown",function(){return re(e),oe(w().back.emit())}),B()}2&n&&An(io(2,Ete))}let KR=(()=>{class n{constructor(){this.title="No Results",this.showBackBtn=!1,this.back=new te}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-empty-message"]],inputs:{title:"title",showBackBtn:"showBackBtn"},outputs:{back:"back"},decls:2,vars:2,consts:[[3,"innerHTML"],["pButton","","class","p-button-outlined","label","Back","type","submit",3,"style","mousedown",4,"ngIf"],["pButton","","label","Back","type","submit",1,"p-button-outlined",3,"mousedown"]],template:function(e,i){1&e&&(ie(0,"p",0),S(1,Cte,1,3,"button",1)),2&e&&(C("innerHTML",i.title,qp),v(1),C("ngIf",i.showBackBtn))},dependencies:[Pt,Fs],styles:["[_nghost-%COMP%]{align-items:center;flex-direction:column;display:flex;justify-content:center;padding:16px;height:240px}"]}),n})();function vte(n,t){if(1&n&&(x(0,"i",7),de(1),B()),2&n){const e=w();v(1),pt(e.url)}}function Mte(n,t){1&n&&ie(0,"dot-contentlet-thumbnail",9),2&n&&C("contentlet",w(2).data.contentlet)("width",42)("height",42)("iconSize","42px")}function wte(n,t){if(1&n&&S(0,Mte,1,4,"dot-contentlet-thumbnail",8),2&n){const e=w(),i=Qt(10);C("ngIf",null==e.data?null:e.data.contentlet)("ngIfElse",i)}}function Dte(n,t){if(1&n&&(x(0,"span",10),de(1),B()),2&n){const e=w();v(1),pt(e.data.contentlet.url)}}function Ite(n,t){if(1&n&&(x(0,"div",11),ie(1,"dot-state-icon",12),x(2,"dot-badge",13),de(3),La(4,"lowercase"),B()()),2&n){const e=w();v(1),C("state",e.data.contentlet),v(2),pt(Qa(4,2,e.data.contentlet.language))}}function Ste(n,t){1&n&&ie(0,"img",14),2&n&&C("src",w().url,No)}let aM=(()=>{class n{constructor(e){this.element=e,this.role="list-item",this.tabindex="-1",this.disabled=!1,this.label="",this.url="",this.page=!1,this.data=null,this.icon=!1}onMouseDown(e){e.preventDefault(),this.disabled||this.command()}ngOnInit(){this.icon=this.icon="string"==typeof this.url&&!(this.url.split("/").length>1)}getLabel(){return this.element.nativeElement.innerText}focus(){this.element.nativeElement.style="background: #eee"}unfocus(){this.element.nativeElement.style=""}scrollIntoView(){if(!this.isIntoView()){const e=this.element.nativeElement,i=e.parentElement,{top:r,top:o,height:s}=i.getBoundingClientRect(),{top:a,bottom:l}=e.getBoundingClientRect(),c=a-r,u=l-o;i.scrollTop+=this.alignToTop()?c:u-s}}isIntoView(){const{bottom:e,top:i}=this.element.nativeElement.getBoundingClientRect(),r=this.element.nativeElement.parentElement.getBoundingClientRect();return i>=r.top&&e<=r.bottom}alignToTop(){const{top:e}=this.element.nativeElement.getBoundingClientRect(),{top:i}=this.element.nativeElement.parentElement.getBoundingClientRect();return e span[_ngcontent-%COMP%]{overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px}.data-wrapper[_ngcontent-%COMP%] .url[_ngcontent-%COMP%]{color:#b3b1b8;font-size:14.4px}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:8px;display:flex;align-items:flex-end}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] dot-state-icon[_ngcontent-%COMP%]{margin-right:8px}"]}),n})();const xte=["*"];let $R=(()=>{class n{constructor(){this.id="editor-suggestion-list",this.suggestionItems=[],this.destroy$=new Me,this.mouseMove=!0}onMouseMove(){this.mouseMove=!0}onMouseOver(e){const i=e.target,r=i.dataset?.index;if(isNaN(r)||!this.mouseMove)return;const o=Number(i?.dataset.index);i.getAttribute("disabled")?this.keyManager.activeItem?.unfocus():this.updateActiveItem(o)}onMouseDownHandler(e){e.preventDefault()}ngAfterViewInit(){this.keyManager=new VO(this.items).withWrap(),requestAnimationFrame(()=>this.setFirstItemActive()),this.items.changes.pipe(Yn(this.destroy$)).subscribe(()=>requestAnimationFrame(()=>this.setFirstItemActive()))}ngOnDestroy(){this.destroy$.next(!0)}updateSelection(e){this.keyManager.activeItem&&this.keyManager.activeItem.unfocus(),this.keyManager.onKeydown(e),this.keyManager.activeItem?.scrollIntoView(),this.mouseMove=!1}execCommand(){this.keyManager.activeItem.command()}setFirstItemActive(){this.keyManager.activeItem?.unfocus(),this.keyManager.setFirstItemActive(),this.keyManager.activeItem?.focus()}resetKeyManager(){this.keyManager.activeItem?.unfocus(),this.keyManager=new VO(this.items).withWrap(),this.setFirstItemActive()}updateActiveItem(e){this.keyManager.activeItem?.unfocus(),this.keyManager.setActiveItem(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-list"]],contentQueries:function(e,i,r){if(1&e&&jn(r,aM,4),2&e){let o;He(o=Ve())&&(i.items=o)}},hostVars:1,hostBindings:function(e,i){1&e&&K("mousemove",function(o){return i.onMouseMove(o)})("mouseover",function(o){return i.onMouseOver(o)})("mousedown",function(o){return i.onMouseDownHandler(o)}),2&e&&Ot("id",i.id)},inputs:{suggestionItems:"suggestionItems"},ngContentSelectors:xte,decls:1,vars:0,template:function(e,i){1&e&&(eo(),Ri(0))},styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}"]}),n})();function eu(...n){const t=n.length;if(0===t)throw new Error("list of properties cannot be empty.");return e=>fe(function Tte(n,t){return i=>{let r=i;for(let o=0;o{class n{constructor(e){this.http=e}get defaultHeaders(){const e=new Fr;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getLanguages(){return this.languages?ae(this.languages):this.http.get("/api/v2/languages",{headers:this.defaultHeaders}).pipe(eu("entity"),fe(e=>{const i=this.getDotLanguageObject(e);return this.languages=i,i}))}getDotLanguageObject(e){return e.reduce((i,r)=>Object.assign(i,{[r.id]:r}),{})}}return n.\u0275fac=function(e){return new(e||n)(j(vc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Nm=(()=>(function(n){n.ASC="ASC",n.DESC="DESC"}(Nm||(Nm={})),Nm))();let Bte=(()=>{class n{constructor(e){this.http=e}get({query:e,limit:i=0,offset:r=0}){return this.http.post("/api/content/_search",{query:e,sort:"score,modDate desc",limit:i,offset:r}).pipe(eu("entity"))}}return n.\u0275fac=function(e){return new(e||n)(j(vc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cM=(()=>{class n{constructor(e){this.http=e}get defaultHeaders(){const e=new Fr;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getContentTypes(e="",i=""){return this.http.post("/api/v1/contenttype/_filter",{filter:{types:i,query:e},orderBy:"name",direction:"ASC",perPage:40}).pipe(eu("entity"))}getContentlets({contentType:e,filter:i,currentLanguage:r}){return this.http.post("/api/content/_search",{query:`+contentType:${e} +languageId:${r} +deleted:false +working:true +catchall:*${i}* `,sort:"modDate desc",offset:0,limit:40}).pipe(eu("entity","jsonObjectView","contentlets"))}getContentletsUrlMap({filter:e,currentLanguage:i=Um}){return this.http.post("/api/content/_search",{query:`+languageId:${i} +deleted:false +working:true +(urlmap:*${e}* OR +(basetype:5 AND path:*${e}*))`,sort:"modDate desc",offset:0,limit:40}).pipe(eu("entity","jsonObjectView","contentlets"))}}return n.\u0275fac=function(e){return new(e||n)(j(vc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Ote={SHOW_VIDEO_THUMBNAIL:!0};let qR=(()=>{class n{constructor(){this.config=Ote}get configObject(){return this.config}setProperty(e,i){this.config={...this.config,[e]:i}}getProperty(e){return this.config[e]||!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kte=["list"];function Pte(n,t){if(1&n&&(x(0,"h3"),de(1),B()),2&n){const e=w(2);v(1),pt(e.title)}}function Fte(n,t){if(1&n&&ie(0,"dot-suggestions-list-item",7),2&n){const e=w(),i=e.$implicit,r=e.index;C("command",i.command)("index",i.tabindex||r)("label",i.label)("url",i.icon)("data",i.data)("disabled",i.disabled)}}function Rte(n,t){1&n&&ie(0,"div",8)}function Nte(n,t){if(1&n&&(ct(0),S(1,Fte,1,6,"dot-suggestions-list-item",5),S(2,Rte,1,0,"ng-template",null,6,on),ut()),2&n){const e=t.$implicit,i=Qt(3);v(1),C("ngIf","divider"!==e.id)("ngIfElse",i)}}function Lte(n,t){if(1&n&&(x(0,"div"),S(1,Pte,2,1,"h3",2),x(2,"dot-suggestion-list",null,3),S(4,Nte,4,2,"ng-container",4),B()()),2&n){const e=w();v(1),C("ngIf",!!e.title),v(3),C("ngForOf",e.items)}}function Qte(n,t){if(1&n){const e=Re();x(0,"dot-empty-message",9),K("back",function(){return re(e),oe(w().handleBackButton())}),B()}if(2&n){const e=w();C("title",e.noResultsMessage)("showBackBtn",!e.isFilterActive)}}var Xn=(()=>(function(n){n.BLOCK="block",n.CONTENTTYPE="contentType",n.CONTENT="content"}(Xn||(Xn={})),Xn))();let Lm=(()=>{class n{constructor(e,i,r){this.suggestionsService=e,this.dotLanguageService=i,this.cd=r,this.items=[],this.title="Select a block",this.noResultsMessage="No Results",this.currentLanguage=Um,this.allowedContentTypes="",this.isFilterActive=!1}onMouseDownHandler(e){e.preventDefault()}ngOnInit(){this.initialItems=this.items,this.itemsLoaded=Xn.BLOCK,this.dotLanguageService.getLanguages().pipe($n(1)).subscribe(e=>this.dotLangs=e)}addContentletItem(){this.items=[{label:"Contentlets",icon:"receipt",command:()=>this.loadContentTypes()},...this.items],this.initialItems=this.items}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}handleBackButton(){return this.itemsLoaded=this.itemsLoaded===Xn.CONTENT?Xn.CONTENTTYPE:Xn.BLOCK,this.filterItems(),!1}filterItems(e=""){switch(this.itemsLoaded){case Xn.BLOCK:this.items=this.initialItems.filter(i=>i.label.toLowerCase().includes(e.trim().toLowerCase()));break;case Xn.CONTENTTYPE:this.loadContentTypes(e);break;case Xn.CONTENT:this.loadContentlets(this.selectedContentType,e)}this.isFilterActive=!!e.length}loadContentTypes(e=""){this.suggestionsService.getContentTypes(e,this.allowedContentTypes).pipe(fe(i=>i.map(r=>({label:r.name,icon:r.icon,command:()=>{this.selectedContentType=r,this.itemsLoaded=Xn.CONTENT,this.loadContentlets(r)}}))),$n(1)).subscribe(i=>{this.items=i,this.itemsLoaded=Xn.CONTENTTYPE,this.items.length?this.title="Select a content type":this.noResultsMessage="No results",this.cd.detectChanges()})}loadContentlets(e,i=""){this.suggestionsService.getContentlets({contentType:e.variable,filter:i,currentLanguage:this.currentLanguage}).pipe($n(1)).subscribe(r=>{this.items=r.map(o=>{const{languageId:s}=o;return o.language=this.getContentletLanguage(s),{label:o.title,icon:"contentlet/image",data:{contentlet:o},command:()=>{this.onSelectContentlet({payload:o,type:{name:"dotContent"}})}}}),this.items.length?this.title="Select a contentlet":this.noResultsMessage=`No results for ${e.name}`,this.cd.detectChanges()})}getContentletLanguage(e){const{languageCode:i,countryCode:r}=this.dotLangs[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(T(cM),T(lM),T(ai))},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestions"]],viewQuery:function(e,i){if(1&e&&Zt(kte,5),2&e){let r;He(r=Ve())&&(i.list=r.first)}},hostBindings:function(e,i){1&e&&K("mousedown",function(o){return i.onMouseDownHandler(o)})},inputs:{onSelectContentlet:"onSelectContentlet",items:"items",title:"title",noResultsMessage:"noResultsMessage",currentLanguage:"currentLanguage",allowedContentTypes:"allowedContentTypes"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["emptyBlock",""],[4,"ngIf"],["list",""],[4,"ngFor","ngForOf"],[3,"command","index","label","url","data","disabled",4,"ngIf","ngIfElse"],["divider",""],[3,"command","index","label","url","data","disabled"],[1,"divider"],[3,"title","showBackBtn","back"]],template:function(e,i){if(1&e&&(S(0,Lte,5,2,"div",0),S(1,Qte,1,2,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",i.items.length)("ngIfElse",r)}},styles:['[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px #0000001a;padding:8px 0;background:#ffffff;font-family:Roboto,Helvetica,sans-serif,Arial}h3[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;margin:8px 16px;color:#999}.suggestion-list-container[_ngcontent-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.divider[_ngcontent-%COMP%]{border-top:#b3b1b8 solid 1px;margin:.5rem 0}']}),n})();const XR={inode:"14dd5ad9-55ae-42a8-a5a7-e259b6d0901a",variantId:"DEFAULT",locked:!1,stInode:"d5ea385d-32ee-4f35-8172-d37f58d9cd7a",contentType:"Image",height:4e3,identifier:"93ca45e0-06d2-4eef-be1d-79bd6bf0fc99",hasTitleImage:!0,sortOrder:0,hostName:"demo.dotcms.com",extension:"jpg",isContent:!0,baseType:"FILEASSETS",archived:!1,working:!0,live:!0,isContentlet:!0,languageId:1,titleImage:"fileAsset",hasLiveVersion:!0,deleted:!1,folder:"",host:"",modDate:"",modUser:"",modUserName:"",owner:"",title:"",url:"",contentTypeIcon:"assessment",__icon__:"Icon"},uM="menuFloating";class zte{constructor({editor:t,element:e,view:i,tippyOptions:r,render:o,command:s,key:a}){this.invalidNodes=["codeBlock","blockquote"],this.mousedownHandler=l=>{l.preventDefault(),this.editor.chain().insertContent("/").run()},this.editor=t,this.element=e,this.view=i,this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",()=>{this.tippy.unmount(),this.update(this.editor.view)}),this.element.style.visibility="visible",this.render=o,this.command=s,this.key=a,this.createTooltip(r)}createTooltip(t={}){this.tippy=Xo(this.view.dom,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"left",hideOnClick:"toggle",...t})}update(t,e){const{selection:i}=t.state,{$anchor:r,empty:o,from:s,to:a}=i,u=1===r.depth&&!i.$anchor.parent.isLeaf&&!i.$anchor.parent.textContent,d=r.parent.type.name,h=this.key?.getState(t.state),p=e?this.key?.getState(e):null;if(p?.open||o&&u)if(p?.open||!this.invalidNodes.includes(d))if(this.tippy.setProps({getReferenceClientRect:()=>ul(t,s,a)}),this.show(),h.open){const{from:f,to:g}=this.editor.state.selection,m=ul(this.view,f,g);this.render().onStart({clientRect:()=>m,range:{from:f,to:g},editor:this.editor,command:this.command})}else p&&p.open&&this.render().onExit(null);else this.hide();else this.hide()}show(){this.tippy.show()}hide(){this.tippy.hide()}destroy(){this.tippy.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler)}}const ZR=new _t(uM),Hte=n=>new it({key:ZR,view:t=>new zte({key:ZR,view:t,...n}),state:{init:()=>({open:!1}),apply(t){const e=t.getMeta(uM);return e?.open?{open:e?.open}:{open:!1}}},props:{handleKeyDown(t,e){const{open:i,range:r}=this.getState(t.state);return!!i&&n.render().onKeyDown({event:e,range:r,view:t})}}}),Jte={paragrah:!0,text:!0,doc:!0},eN={image:{image:!0,dotImage:!0},table:{table:!0,tableRow:!0,tableHeader:!0,tableCell:!0},orderedList:{orderedList:!0,listItem:!0},bulletList:{bulletList:!0,listItem:!0}},Kte=(n,t)=>{const{type:e,attrs:i}=n;return"heading"===e&&t[e+i.level]},tN=(n,t)=>{if(!n?.length)return n;const e=[];for(const i in n){const r=n[i];(t[r.type]||Kte(r,t))&&e.push({...r,content:tN(r.content,t)})}return e},Xte=new RegExp(/]*)>(\s|\n|]*src="[^"]*"[^>]*>)*?<\/a>/gm),dM=new RegExp(/]*src="[^"]*"[^>]*>/gm),hl=(n,t)=>{let i,e=n.depth;do{if(i=n.node(e),i){if(Array.isArray(t)&&t.includes(i.type.name))break;e--}}while(e>0&&i);return i},Qm=n=>{const t=n.match(dM)||[];return(new DOMParser).parseFromString(n,"text/html").documentElement.textContent.trim().length>0?n.replace(dM,"")+t.join(""):t.join("")},nN=n=>{const{state:t}=n,{doc:e}=t.tr,i=t.selection.to,r=Ee.create(e,i,i);n.dispatch(t.tr.setSelection(r))};class pl extends Jn{constructor(t,e){super(),this.STEP_TYPE="setDocAttr",this.key=t,this.value=e}get stepType(){return this.STEP_TYPE}static fromJSON(t,e){return new pl(e.key,e.value)}static register(){try{Jn.jsonID(this.prototype.STEP_TYPE,pl)}catch(t){if(t.message!==`Duplicate use of step JSON ID ${this.prototype.STEP_TYPE}`)throw t}return!0}apply(t){return this.prevValue=t.attrs[this.key],t.attrs===t.type.defaultAttrs&&(t.attrs=Object.assign({},t.attrs)),t.attrs[this.key]=this.value,ln.ok(t)}invert(){return new pl(this.key,this.prevValue)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}}const Um=1;var Ii=(()=>(function(n){n.DOT_IMAGE="dotImage",n.LIST_ITEM="listItem",n.BULLET_LIST="bulletList",n.ORDERED_LIST="orderedList",n.BLOCKQUOTE="blockquote",n.CODE_BLOCK="codeBlock",n.DOC="doc",n.DOT_CONTENT="dotContent",n.PARAGRAPH="paragraph",n.HARD_BREAK="hardBreak",n.HEADING="heading",n.HORIZONTAL_RULE="horizontalRule",n.TEXT="text",n.TABLE_CELL="tableCell"}(Ii||(Ii={})),Ii))();const ane=[Ii.DOT_IMAGE,Ii.DOT_CONTENT];function iN({editor:n,range:t,props:e,customBlocks:i}){const{type:r,payload:o}=e,s={dotContent:()=>{n.chain().addContentletBlock({range:t,payload:o}).addNextLine().run()},heading:()=>{n.chain().addHeading({range:t,type:r}).run()},table:()=>{n.commands.openForm([{key:"rows",label:"Rows",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"columns",label:"Columns",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"header",label:"Add Row Header",required:!1,value:!0,controlType:"text",type:"checkbox"}],{customClass:"dotTableForm"}).pipe($n(1),ir(a=>!!a)).subscribe(a=>{requestAnimationFrame(()=>{n.chain().insertTable({rows:a.rows,cols:a.columns,withHeaderRow:!!a.header}).focus().run()})})},orderedList:()=>{n.chain().deleteRange(t).toggleOrderedList().focus().run()},bulletList:()=>{n.chain().deleteRange(t).toggleBulletList().focus().run()},blockquote:()=>{n.chain().deleteRange(t).setBlockquote().focus().run()},codeBlock:()=>{n.chain().deleteRange(t).setCodeBlock().focus().run()},horizontalRule:()=>{n.chain().deleteRange(t).setHorizontalRule().focus().run()},image:()=>n.commands.openAssetForm({type:"image"}),video:()=>n.commands.openAssetForm({type:"video"})};rN(i).forEach(a=>{s[a.id]=()=>{try{n.commands[a.commandKey]()}catch{console.warn(`Custom command ${a.commandKey} does not exists.`)}}}),s[e.type.name]?s[e.type.name]():n.chain().setTextSelection(t).focus().run()}function rN(n){return n.extensions.map(t=>function cne(n){return n.map(t=>({icon:t.icon,label:t.menuLabel,commandKey:t.command,id:`${t.command}-id`}))}(t.actions||[])).flat()}const une=(n,t)=>{let e,i;const r=new _t("suggestionPlugin"),o=new Me;let s=!0;function a({editor:g,range:m,clientRect:A}){s&&(function c(g,m){const{allowedBlocks:A,allowedContentTypes:y,lang:E}=g.storage.dotConfig,D=function u({allowedBlocks:g=[],editor:m,range:A}){const E=[...g.length?Wg.filter(b=>g.includes(b.id)):Wg,...rN(t)];return E.forEach(b=>b.command=()=>function d({item:g,editor:m,range:A}){const{id:y,attributes:E}=g,b={type:{name:y.includes("heading")?"heading":y,...E}};dk({type:Xn.BLOCK,editor:m,range:A,suggestionKey:r,ItemsType:Xn}),h({editor:m,range:A,props:b})}({item:b,editor:m,range:A})),E}({allowedBlocks:A.length>1?A:[],editor:g,range:m});i=n.createComponent(Lm),i.instance.items=D,i.instance.currentLanguage=E,i.instance.allowedContentTypes=y,i.instance.onSelectContentlet=I=>{dk({type:Xn.CONTENT,editor:g,range:m,suggestionKey:r,ItemsType:Xn}),h({editor:g,range:m,props:I})},i.changeDetectorRef.detectChanges(),(A.length<=1||A.includes("dotContent"))&&i.instance.addContentletItem()}(g,m),e=function lne({element:n,content:t,rect:e,onHide:i}){return Xo(n,{content:t,placement:"bottom",popperOptions:{modifiers:Z9},getReferenceClientRect:e,showOnCreate:!0,interactive:!0,offset:[120,10],trigger:"manual",maxWidth:"none",onHide:i})}({element:g.options.element.parentElement,content:i.location.nativeElement,rect:A,onHide:()=>{const y=g.state.tr.setMeta(uM,{open:!1});g.view.dispatch(y),g.commands.freezeScroll(!1)}}))}function l({editor:g}){g.commands.freezeScroll(!0);const m=hl(g.view.state.selection.$from,[Ii.TABLE_CELL])?.type.name===Ii.TABLE_CELL,A=hl(g.view.state.selection.$from,[Ii.CODE_BLOCK])?.type.name===Ii.CODE_BLOCK;s=!m&&!A}function h({editor:g,range:m,props:A}){const y=r.getState(g.view.state).query?.length||0;m.to=m.to+y,iN({editor:g,range:m,props:A,customBlocks:t})}function p({event:g}){const{key:m}=g;return"Escape"===m?(g.stopImmediatePropagation(),e.hide(),!0):"Enter"===m?(i.instance.execCommand(),!0):("ArrowDown"===m||"ArrowUp"===m)&&(i.instance.updateSelection(g),!0)}function f({editor:g}){e?.destroy(),g.commands.freezeScroll(!1),i?.destroy(),i=null,o.next(!0),o.complete()}return Ft.create({name:"actionsMenu",addOptions:()=>({pluginKey:"actionsMenu",element:null,suggestion:{char:"/",pluginKey:r,allowSpaces:!0,startOfLine:!0,render:()=>({onBeforeStart:l,onStart:a,onKeyDown:p,onExit:f}),items:({query:g})=>(i&&i.instance.filterItems(g),[])}}),addCommands:()=>({addHeading:({range:g,type:m})=>({chain:A})=>A().focus().deleteRange(g).toggleHeading({level:m.level}).focus().run(),addContentletBlock:({range:g,payload:m})=>({chain:A})=>A().deleteRange(g).command(y=>{const E=y.editor.schema.nodes.dotContent.create({data:m});return y.tr.replaceSelectionWith(E),!0}).run(),addNextLine:()=>({chain:g})=>g().command(m=>{const{selection:A}=m.state;return m.commands.insertContentAt(A.head,{type:"paragraph"}),!0}).focus().run()}),addProseMirrorPlugins(){const g=n.createComponent(_te);return[Hte({command:iN,editor:this.editor,element:g.location.nativeElement,render:()=>({onStart:a,onKeyDown:p,onExit:f})}),yte({editor:this.editor,...this.options.suggestion})]}})};var jm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oN=function dne(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},gne="object"==typeof self&&self&&self.Object===Object&&self,mne="object"==typeof jm&&jm&&jm.Object===Object&&jm||gne||Function("return this")(),Ane=mne,_ne=/\s/,vne=function Ene(n){for(var t=n.length;t--&&_ne.test(n.charAt(t)););return t},Mne=/^\s+/,Sne=mne.Symbol,cN=Object.prototype,xne=cN.hasOwnProperty,Tne=cN.toString,Dh=Sne?Sne.toStringTag:void 0,Pne=Object.prototype.toString,Nne=function Bne(n){var t=xne.call(n,Dh),e=n[Dh];try{n[Dh]=void 0;var i=!0}catch{}var r=Tne.call(n);return i&&(t?n[Dh]=e:delete n[Dh]),r},Lne=function Fne(n){return Pne.call(n)},dN=Sne?Sne.toStringTag:void 0,Gne=function jne(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":dN&&dN in Object(n)?Nne(n):Lne(n)},Yne=function Hne(n){return null!=n&&"object"==typeof n},$ne=function wne(n){return n&&n.slice(0,vne(n)+1).replace(Mne,"")},hN=oN,qne=function Jne(n){return"symbol"==typeof n||Yne(n)&&"[object Symbol]"==Gne(n)},Xne=/^[-+]0x[0-9a-f]+$/i,Zne=/^0b[01]+$/i,eie=/^0o[0-7]+$/i,tie=parseInt,rie=oN,hM=function(){return Ane.Date.now()},fN=function nie(n){if("number"==typeof n)return n;if(qne(n))return NaN;if(hN(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=hN(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=$ne(n);var e=Zne.test(n);return e||eie.test(n)?tie(n.slice(2),e?2:8):Xne.test(n)?NaN:+n},sie=Math.max,aie=Math.min;class pM{constructor({editor:t,element:e,view:i,tippyOptions:r={},updateDelay:o=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:l,from:c,to:u})=>{const{doc:d,selection:h}=l,{empty:p}=h,f=!d.textBetween(c,u).length&&Bm(l.selection),g=this.element.contains(document.activeElement);return!(!a.hasFocus()&&!g||p||f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;this.preventHide?this.preventHide=!1:a?.relatedTarget&&(null===(l=this.element.parentNode)||void 0===l?void 0:l.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.updateHandler=(a,l)=>{var c,u,d;const{state:h,composing:p}=a,{doc:f,selection:g}=h,m=l&&l.doc.eq(f)&&l.selection.eq(g);if(p||m)return;this.createTooltip();const{ranges:A}=g,y=Math.min(...A.map(D=>D.$from.pos)),E=Math.max(...A.map(D=>D.$to.pos));(null===(c=this.shouldShow)||void 0===c?void 0:c.call(this,{editor:this.editor,view:a,state:h,oldState:l,from:y,to:E}))?(null===(u=this.tippy)||void 0===u||u.setProps({getReferenceClientRect:(null===(d=this.tippyOptions)||void 0===d?void 0:d.getReferenceClientRect)||(()=>{if(function Kee(n){return n instanceof ce}(h.selection)){const D=a.nodeDOM(y);if(D)return D.getBoundingClientRect()}return ul(a,y,E)})}),this.show()):this.hide()},this.editor=t,this.element=e,this.view=i,this.updateDelay=o,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Xo(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,e){const{state:i}=t;this.updateDelay>0&&i.selection.$from.pos!==i.selection.$to.pos?function lie(n,t,e){var i,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function p(I){var Q=i,O=r;return i=r=void 0,c=I,s=n.apply(O,Q)}function f(I){return c=I,a=setTimeout(A,t),u?p(I):s}function m(I){var Q=I-l;return void 0===l||Q>=t||Q<0||d&&I-c>=o}function A(){var I=hM();if(m(I))return y(I);a=setTimeout(A,function g(I){var q=t-(I-l);return d?aie(q,o-(I-c)):q}(I))}function y(I){return a=void 0,h&&i?p(I):(i=r=void 0,s)}function D(){var I=hM(),Q=m(I);if(i=arguments,r=this,l=I,Q){if(void 0===a)return f(l);if(d)return clearTimeout(a),a=setTimeout(A,t),p(l)}return void 0===a&&(a=setTimeout(A,t)),s}return t=fN(t)||0,rie(e)&&(u=!!e.leading,o=(d="maxWait"in e)?sie(fN(e.maxWait)||0,t):o,h="trailing"in e?!!e.trailing:h),D.cancel=function E(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},D.flush=function b(){return void 0===a?s:y(hM())},D}(this.updateHandler,this.updateDelay)(t,e):this.updateHandler(t,e)}show(){var t;null===(t=this.tippy)||void 0===t||t.show()}hide(){var t;null===(t=this.tippy)||void 0===t||t.hide()}destroy(){var t,e;!(null===(t=this.tippy)||void 0===t)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const uie=n=>new it({key:"string"==typeof n.pluginKey?new _t(n.pluginKey):n.pluginKey,view:t=>new pM({view:t,...n})}),fM=Ft.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[uie({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}}),die=["cb"],hie=function(n,t,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":n,"p-disabled":t,"p-checkbox-label-focus":e}};function pie(n,t){if(1&n){const e=Re();x(0,"label",7),K("click",function(r){re(e);const o=w(),s=Qt(3);return oe(o.onClick(r,s,!0))}),de(1),B()}if(2&n){const e=w();Gt(e.labelStyleClass),C("ngClass",Na(5,hie,e.checked(),e.disabled,e.focused)),Ot("for",e.inputId),v(1),pt(e.label)}}const fie=function(n,t,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":n,"p-checkbox-disabled":t,"p-checkbox-focused":e}},gie=function(n,t,e){return{"p-highlight":n,"p-disabled":t,"p-focus":e}},mie={provide:Qi,useExisting:Je(()=>gM),multi:!0};let gM=(()=>{class n{constructor(e){this.cd=e,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new te,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,i,r){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),r&&i.focus())}updateModel(e){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(r=>!wt.equals(r,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:wt.contains(this.value,this.model)}}return n.\u0275fac=function(e){return new(e||n)(T(ai))},n.\u0275cmp=ve({type:n,selectors:[["p-checkbox"]],viewQuery:function(e,i){if(1&e&&Zt(die,5),2&e){let r;He(r=Ve())&&(i.inputViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([mie])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,i){if(1&e){const r=Re();x(0,"div",0)(1,"div",1)(2,"input",2,3),K("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("change",function(s){return i.handleChange(s)}),B()(),x(4,"div",4),K("click",function(s){re(r);const a=Qt(3);return oe(i.onClick(s,a,!0))}),ie(5,"span",5),B()(),S(6,pie,2,9,"label",6)}2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("ngClass",Na(18,fie,i.checked(),i.disabled,i.focused)),v(2),C("readonly",i.readonly)("value",i.value)("checked",i.checked())("disabled",i.disabled),Ot("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked())("required",i.required),v(2),C("ngClass",Na(22,gie,i.checked(),i.disabled,i.focused)),v(1),C("ngClass",i.checked()?i.checkboxIcon:null),v(1),C("ngIf",i.label))},dependencies:[zn,Pt,nr],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),n})(),gN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),zm=(()=>{class n{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(Ag,8),T(ai))},n.\u0275dir=ue({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&K("input",function(o){return i.onInput(o)}),2&e&&Ms("p-filled",i.filled)}}),n})(),mN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const Aie=["group"];function bie(n,t){if(1&n&&(ct(0),ie(1,"p-checkbox",11),x(2,"label",12),de(3),La(4,"titlecase"),B(),ut()),2&n){const e=w().$implicit;v(1),C("formControlName",e.key)("binary",!0)("id",e.key),v(1),C("for",e.key),v(1),pt(Qa(4,5,e.label))}}const yie=function(){return{width:"100%",fontSize:"14px",height:"40px"}};function _ie(n,t){if(1&n&&ie(0,"input",14,15),2&n){const e=w(2).$implicit;An(io(6,yie)),C("formControlName",e.key)("id",e.key)("type",e.type)("min",e.min)}}function Eie(n,t){if(1&n&&(ct(0),x(1,"label",12),de(2),La(3,"titlecase"),B(),S(4,_ie,2,7,"input",13),ut()),2&n){const e=w().$implicit;v(1),C("for",e.key),v(1),pt(Qa(3,2,e.label))}}function Cie(n,t){1&n&&(x(0,"span",16),de(1,"This field is required"),B())}function vie(n,t){if(1&n&&(x(0,"div",6),ct(1,7),S(2,bie,5,7,"ng-container",8),S(3,Eie,5,4,"ng-container",9),ut(),S(4,Cie,2,0,"span",10),B()),2&n){const e=t.$implicit,i=w(2);C("ngClass",e.type),v(1),C("ngSwitch",e.type),v(1),C("ngSwitchCase","checkbox"),v(2),C("ngIf",i.form.controls[e.key].invalid&&i.form.controls[e.key].dirty)}}const Mie=function(){return{width:"120px"}},wie=function(){return{padding:"11.5px 24px"}};function Die(n,t){if(1&n){const e=Re();x(0,"form",1),K("ngSubmit",function(){return re(e),oe(w().onSubmit())}),S(1,vie,5,4,"div",2),x(2,"div",3)(3,"button",4),K("click",function(){return re(e),oe(w().hide.emit(!0))}),B(),ie(4,"button",5),B()()}if(2&n){const e=w();C("ngClass",null==e.options?null:e.options.customClass)("formGroup",e.form),v(1),C("ngForOf",e.dynamicControls),v(2),An(io(8,Mie)),v(1),An(io(9,wie)),C("disabled",e.form.invalid)}}let Iie=(()=>{class n{constructor(e){this.fb=e,this.formValues=new te,this.hide=new te,this.options=null,this.dynamicControls=[]}onSubmit(){this.formValues.emit({...this.form.value})}setFormValues(e){this.form.setValue(e)}buildForm(e){this.dynamicControls=e,this.form=this.fb.group({}),this.dynamicControls.forEach(i=>{this.form.addControl(i.key,this.fb.control(i.value||null,i.required?vE.required:[]))})}cleanForm(){this.form=null}}return n.\u0275fac=function(e){return new(e||n)(T(zE))},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-form"]],viewQuery:function(e,i){if(1&e&&Zt(Aie,5),2&e){let r;He(r=Ve())&&(i.inputs=r)}},outputs:{formValues:"formValues",hide:"hide"},decls:1,vars:1,consts:[[3,"ngClass","formGroup","ngSubmit",4,"ngIf"],[3,"ngClass","formGroup","ngSubmit"],["class","field form-row",3,"ngClass",4,"ngFor","ngForOf"],[1,"form-action"],["pButton","","type","button","label","CANCEL",1,"p-button-outlined",3,"click"],["pButton","","type","submit","label","APPLY",1,"p-button",3,"disabled"],[1,"field","form-row",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","error-message",4,"ngIf"],[3,"formControlName","binary","id"],[3,"for"],["pInputText","","type","control.type",3,"formControlName","id","type","min","style",4,"ngSwitchDefault"],["pInputText","","type","control.type",3,"formControlName","id","type","min"],["group",""],[1,"error-message"]],template:function(e,i){1&e&&S(0,Die,5,10,"form",0),2&e&&C("ngIf",i.form)},dependencies:[zn,tr,Pt,xd,Z_,eE,bg,wc,Pd,lg,Ic,jd,gM,Fs,zm,WT],styles:["[_nghost-%COMP%]{background:#ffffff;border-radius:2px;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;padding:16px}form[_ngcontent-%COMP%]{width:400px;display:flex;flex-direction:column;gap:16px}form.dotTableForm[_ngcontent-%COMP%]{width:200px}form.dotTableForm[_ngcontent-%COMP%] .p-button-outlined[_ngcontent-%COMP%]{display:none}.form-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px}.form-row.checkbox[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.form-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:16px;width:100%;gap:10px}.error-message[_ngcontent-%COMP%]{color:#c93926;font-size:.75rem;text-align:left}"]}),n})();class Sie{constructor(t,e,i){this.applicationRef=e.get(Ua);const o=e.get(Es).resolveComponentFactory(t);this.componentRef=o.create(e,[]),this.updateProps(i),this.applicationRef.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get elementRef(){return this.componentRef.injector.get(St)}get dom(){return this.elementRef.nativeElement}updateProps(t){Object.entries(t).forEach(([e,i])=>{this.instance[e]=i})}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy(),this.applicationRef.detachView(this.componentRef.hostView)}}let AN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["ng-component"]],inputs:{editor:"editor",node:"node",decorations:"decorations",selected:"selected",extension:"extension",getPos:"getPos",updateAttributes:"updateAttributes",deleteNode:"deleteNode"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();class xie extends class gte{constructor(t,e,i){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...i},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,i,r,o,s,a,l;const{view:c}=this.editor,u=t.target,d=3===u.nodeType?null===(e=u.parentElement)||void 0===e?void 0:e.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(null===(i=this.contentDOM)||void 0===i?void 0:i.contains(u))||!d)return;let h=0,p=0;if(this.dom!==d){const m=this.dom.getBoundingClientRect(),A=d.getBoundingClientRect(),y=null!==(r=t.offsetX)&&void 0!==r?r:null===(o=t.nativeEvent)||void 0===o?void 0:o.offsetX,E=null!==(s=t.offsetY)&&void 0!==s?s:null===(a=t.nativeEvent)||void 0===a?void 0:a.offsetY;h=A.x-m.x+y,p=A.y-m.y+E}null===(l=t.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=ce.create(c.state.doc,this.getPos()),g=c.state.tr.setSelection(f);c.dispatch(g)}stopEvent(t){var e;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:t});const i=t.target;if(!this.dom.contains(i)||null!==(e=this.contentDOM)&&void 0!==e&&e.contains(i))return!1;const o="drop"===t.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(i.tagName)||i.isContentEditable)&&!o)return!0;const{isEditable:a}=this.editor,{isDragging:l}=this,c=!!this.node.type.spec.draggable,u=ce.isSelectable(this.node),d="copy"===t.type,h="paste"===t.type,p="cut"===t.type,f="mousedown"===t.type,g=t.type.startsWith("drag");if(!c&&u&&g&&t.preventDefault(),c&&g&&!l)return t.preventDefault(),!1;if(c&&a&&!l&&f){const m=i.closest("[data-drag-handle]");m&&(this.dom===m||this.dom.contains(m))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||o||d||h||p||f&&u)}ignoreMutation(t){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:t}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===t.type||this.dom.contains(t.target)&&"childList"===t.type&&Om()&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(i=>i.isContentEditable)||(this.contentDOM!==t.target||"attributes"!==t.type)&&this.contentDOM.contains(t.target))))}updateAttributes(t){this.editor.commands.command(({tr:e})=>{const i=this.getPos();return e.setNodeMarkup(i,void 0,{...this.node.attrs,...t}),!0})}deleteNode(){const t=this.getPos();this.editor.commands.deleteRange({from:t,to:t+this.node.nodeSize})}}{mount(){this.renderer=new Sie(this.component,this.options.injector,{editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(i={})=>this.updateAttributes(i),deleteNode:()=>this.deleteNode()}),this.extension.config.draggable&&(this.renderer.elementRef.nativeElement.ondragstart=i=>{this.onDragStart(i)}),this.contentDOMElement=this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges())}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:(this.maybeMoveContentDOM(),this.contentDOMElement)}maybeMoveContentDOM(){const t=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&t&&!t.contains(this.contentDOMElement)&&t.appendChild(this.contentDOMElement)}update(t,e){return this.options.update?this.options.update(t,e):t.type===this.node.type&&(t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,this.renderer.updateProps({node:t,decorations:e}),this.maybeMoveContentDOM()),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy()}}function Bie(n,t){1&n&&Mt(0)}function Oie(n,t){if(1&n&&(x(0,"div",8),Ri(1,1),S(2,Bie,1,0,"ng-container",6),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.headerTemplate)}}function kie(n,t){1&n&&Mt(0)}function Pie(n,t){if(1&n&&(x(0,"div",9),de(1),S(2,kie,1,0,"ng-container",6),B()),2&n){const e=w();v(1),no(" ",e.header," "),v(1),C("ngTemplateOutlet",e.titleTemplate)}}function Fie(n,t){1&n&&Mt(0)}function Rie(n,t){if(1&n&&(x(0,"div",10),de(1),S(2,Fie,1,0,"ng-container",6),B()),2&n){const e=w();v(1),no(" ",e.subheader," "),v(1),C("ngTemplateOutlet",e.subtitleTemplate)}}function Nie(n,t){1&n&&Mt(0)}function Lie(n,t){1&n&&Mt(0)}function Qie(n,t){if(1&n&&(x(0,"div",11),Ri(1,2),S(2,Lie,1,0,"ng-container",6),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.footerTemplate)}}const Uie=["*",[["p-header"]],[["p-footer"]]],jie=["*","p-header","p-footer"];let mM=(()=>{class n{constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.template;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return n.\u0275fac=function(e){return new(e||n)(T(St))},n.\u0275cmp=ve({type:n,selectors:[["p-card"]],contentQueries:function(e,i,r){if(1&e&&(jn(r,TO,5),jn(r,BO,5),jn(r,ar,4)),2&e){let o;He(o=Ve())&&(i.headerFacet=o.first),He(o=Ve())&&(i.footerFacet=o.first),He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:jie,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(e,i){1&e&&(eo(Uie),x(0,"div",0),S(1,Oie,3,1,"div",1),x(2,"div",2),S(3,Pie,3,2,"div",3),S(4,Rie,3,2,"div",4),x(5,"div",5),Ri(6),S(7,Nie,1,0,"ng-container",6),B(),S(8,Qie,3,1,"div",7),B()()),2&e&&(Gt(i.styleClass),C("ngClass","p-card p-component")("ngStyle",i.style),v(1),C("ngIf",i.headerFacet||i.headerTemplate),v(2),C("ngIf",i.header||i.titleTemplate),v(1),C("ngIf",i.subheader||i.subtitleTemplate),v(3),C("ngTemplateOutlet",i.contentTemplate),v(1),C("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[zn,Pt,Yo,nr],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),bN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ko]}),n})(),zie=(()=>{class n{transform({live:e,working:i,deleted:r,hasLiveVersion:o}){return{live:e,working:i,deleted:r,hasLiveVersion:o}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=xn({name:"contentletState",type:n,pure:!0}),n})();function Hie(n,t){if(1&n&&ie(0,"dot-contentlet-thumbnail",4),2&n){const e=w();C("width",94)("height",94)("iconSize","72px")("contentlet",e.data)}}function Vie(n,t){if(1&n&&(x(0,"h3",5),de(1),B()),2&n){const e=w();v(1),pt(e.data.title)}}function Gie(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w();v(1),pt(e.data.contentType)}}function Yie(n,t){if(1&n&&(x(0,"div",6),ie(1,"dot-state-icon",7),La(2,"contentletState"),x(3,"dot-badge",8),de(4),La(5,"lowercase"),B()()),2&n){const e=w();v(1),C("state",Qa(2,3,e.data)),v(2),C("bordered",!0),v(1),pt(Qa(5,5,e.data.language))}}let Wie=(()=>{class n extends AN{ngOnInit(){this.data=this.node.attrs.data}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=vn(n)))(i||n)}}(),n.\u0275cmp=ve({type:n,selectors:[["dot-contentlet-block"]],features:[lt],decls:5,vars:2,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],[4,"pTemplate"],["pTemplate","footer"],[3,"width","height","iconSize","contentlet"],[1,"title"],[1,"state"],["size","16px",3,"state"],[3,"bordered"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,Hie,1,4,"ng-template",0),S(2,Vie,2,1,"h3",1),S(3,Gie,2,1,"span",2),S(4,Yie,6,7,"ng-template",3),B()),2&e&&(v(2),C("pTemplate","title"),v(1),C("pTemplate","subtitle"))},dependencies:[mM,ar,tE,zie],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;box-sizing:border-box;margin-bottom:1rem}[_nghost-%COMP%] .p-card{background:#ffffff;border:1px solid #b3b1b8;color:#11152e;display:flex}[_nghost-%COMP%] .p-card .p-card-header{box-sizing:border-box;padding:1rem;padding-right:0}[_nghost-%COMP%] .p-card .p-card-body{box-sizing:border-box;min-width:100px;padding:1rem 1.5rem 1rem 1rem;flex:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{padding:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-subtitle{color:#7e7a86;font-size:.85rem;font-weight:regular;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{overflow:hidden;width:100%;margin:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h3{font-weight:700;margin-bottom:.5rem;margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;font-size:1.5rem}[_nghost-%COMP%] dot-contentlet-thumbnail[_ngcontent-%COMP%]{align-items:center;display:block;position:relative;width:94px;height:94px}[_nghost-%COMP%] .state[_ngcontent-%COMP%]{align-items:center;display:flex}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:.5rem}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-right:0}"]}),n})();const Jie=n=>tn.create({name:"dotContent",group:"block",inline:!1,draggable:!0,addAttributes:()=>({data:{default:null,parseHTML:t=>({data:t.getAttribute("data")}),renderHTML:t=>({data:t.data})}}),parseHTML:()=>[{tag:"dotcms-contentlet-block"}],renderHTML:({HTMLAttributes:t})=>["dotcms-contentlet-block",Et(t)],addNodeView:()=>((n,t)=>e=>new xie(n,e,t))(Wie,{injector:n})}),Kie=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,$ie=tn.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:n}){return["img",Et(this.options.HTMLAttributes,n)]},addCommands(){return{setImage:n=>({commands:t})=>t.insertContent({type:this.name,attrs:n})}},addInputRules(){return[WR({find:Kie,type:this.type,getAttributes:n=>{const[,,t,e,i]=n;return{src:e,alt:t,title:i}}})]}}),qie=(n,t)=>{const{href:e=null}=t;return["a",{href:e},yN(n,t)]},yN=(n,t)=>["img",Et(n,t)],Xie=n=>{if("string"==typeof n)return{src:n};const{fileAsset:t,asset:e,title:i}=n;return{data:n,src:t||e,title:i,alt:i}},hi=$ie.extend({name:"dotImage",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src||n.data?.asset})},alt:{default:null,parseHTML:n=>n.getAttribute("alt"),renderHTML:n=>({alt:n.alt||n.data?.title})},title:{default:null,parseHTML:n=>n.getAttribute("title"),renderHTML:n=>({title:n.title||n.data?.title})},style:{default:null,parseHTML:n=>n.getAttribute("style"),renderHTML:n=>({style:n.style})},href:{default:null,parseHTML:n=>n.getAttribute("href"),renderHTML:n=>({href:n.href})},data:{default:null,parseHTML:n=>({data:n.getAttribute("data")}),renderHTML:n=>({data:n.data})}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},addCommands(){return{...this.parent?.(),setImageLink:n=>({commands:t})=>t.updateAttributes(this.name,n),unsetImageLink:()=>({commands:n})=>n.updateAttributes(this.name,{href:""}),addDotImage:n=>({chain:t,state:e})=>{const{selection:i}=e,r={attrs:Xie(n),type:hi.name};return t().insertContentAt(i.head,r).run()}}},renderHTML({HTMLAttributes:n}){const{style:t="",href:e=null}=n||{};return["div",{style:t,class:"node-container node-image"},e?qie(this.options.HTMLAttributes,n):yN(this.options.HTMLAttributes,n)]}}),Zie=tn.create({name:"video",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src})},mineType:{default:null,parseHTML:n=>n.getAttribute("mineType"),renderHTML:n=>({mineType:n.mineType})},width:{default:null,parseHTML:n=>n.getAttribute("width"),renderHTML:n=>({width:n.width})},height:{default:null,parseHTML:n=>n.getAttribute("height"),renderHTML:n=>({height:n.height})},orientation:{default:null,parseHTML:n=>n.getAttribute("orientation"),renderHTML:({height:n,width:t})=>({orientation:n>t?"vertical":"horizontal"})},data:{default:null,parseHTML:n=>n.getAttribute("data"),renderHTML:n=>({data:n.data})}}),parseHTML:()=>[{tag:"video"}],addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group:()=>"block",draggable:!0,addCommands(){return{...this.parent?.(),setVideo:n=>({commands:t})=>t.insertContent({type:this.name,attrs:ere(n)})}},renderHTML({HTMLAttributes:n}){const{orientation:t="horizontal"}=n;return["div",{class:"node-container"},["video",Et(n,{controls:!0,class:`${t}-video`})]]}}),ere=n=>{if("string"==typeof n)return{src:n};const{assetMetaData:t,asset:e,assetVersion:i,mineType:r}=n,{width:o="auto",height:s="auto",contentType:a}=t||{},l=s>o?"vertical":"horizontal";return{src:i||e,data:{...n},width:o,height:s,mineType:r||a,orientation:l}},tre=["list"];function nre(n,t){if(1&n&&ie(0,"dot-suggestions-list-item",5),2&n){const e=t.$implicit,i=t.index;C("command",e.command)("index",i)("label",e.label)("url",e.icon)("data",e.data)("page",!0)}}function ire(n,t){if(1&n&&(x(0,"div")(1,"dot-suggestion-list",null,3),S(3,nre,1,6,"dot-suggestions-list-item",4),B()()),2&n){const e=w();v(3),C("ngForOf",e.items)}}function rre(n,t){1&n&&ie(0,"dot-suggestion-loading-list")}function ore(n,t){if(1&n){const e=Re();x(0,"dot-empty-message",6),K("back",function(){return re(e),oe(w().handleBackButton())}),B()}2&n&&C("title",w().title)("showBackBtn",!0)}let _N=(()=>{class n{constructor(){this.items=[],this.loading=!1,this.back=new te}handleBackButton(){return this.back.emit(!0),!1}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-page"]],viewQuery:function(e,i){if(1&e&&Zt(tre,5),2&e){let r;He(r=Ve())&&(i.list=r.first)}},inputs:{items:"items",loading:"loading",title:"title"},outputs:{back:"back"},decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["list",""],[3,"command","index","label","url","data","page",4,"ngFor","ngForOf"],[3,"command","index","label","url","data","page"],[3,"title","showBackBtn","back"]],template:function(e,i){if(1&e&&(S(0,ire,4,1,"div",0),S(1,rre,1,0,"ng-template",null,1,on),S(3,ore,1,2,"ng-template",null,2,on)),2&e){const r=Qt(2),o=Qt(4);C("ngIf",i.items.length)("ngIfElse",i.loading?r:o)}},styles:["[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px #0000001a;padding:8px 0;background:#ffffff;font-family:Roboto,Helvetica,sans-serif,Arial}[_nghost-%COMP%] {width:100%;box-shadow:none;padding:0}[_nghost-%COMP%] dotcms-suggestions-list-item{padding:8px}"]}),n})();const sre=["input"],are=["suggestions"];function lre(n,t){1&n&&ie(0,"hr",11)}const cre=function(){return{fontSize:"32px"}};function ure(n,t){if(1&n&&(x(0,"div",12)(1,"a",13)(2,"span",14),de(3,"language"),B(),x(4,"span",15),de(5),B()(),x(6,"div",16)(7,"div",17),ie(8,"p-checkbox",18),B(),x(9,"label",19),de(10,"Open link in new window"),B()()()),2&n){const e=w();v(1),C("href",e.currentLink,No),v(1),An(io(5,cre)),v(3),pt(e.currentLink),v(3),C("binary",!0)}}function dre(n,t){if(1&n){const e=Re();x(0,"dot-suggestion-page",20,21),K("back",function(){return re(e),oe(w().resetForm())}),B()}if(2&n){const e=w();C("items",e.items)("loading",e.loading)("title",e.noResultsTitle)}}function hre(n,t){if(1&n){const e=Re();x(0,"dot-form-actions",22),K("hide",function(r){return re(e),oe(w().hide.emit(r))})("remove",function(r){return re(e),oe(w().removeLink.emit(r))}),B()}2&n&&C("link",w().currentLink)}const pre=function(){return{width:"5rem",padding:".75rem 1rem",borderRadius:"0 2px 2px 0"}};let EN=(()=>{class n{constructor(e,i,r){this.fb=e,this.suggestionsService=i,this.dotLanguageService=r,this.hide=new te(!1),this.removeLink=new te(!1),this.isSuggestionOpen=new te(!1),this.setNodeProps=new te,this.showSuggestions=!1,this.initialValues={link:"",blank:!0},this.minChars=3,this.loading=!1,this.items=[]}onMouseDownHandler(e){const{target:i}=e;i!==this.input.nativeElement&&e.preventDefault()}get noResultsTitle(){return`No resutls for ${this.newLink}`}get currentLink(){return this.initialValues.link}get newLink(){return this.form.get("link").value}ngOnInit(){this.form=this.fb.group({...this.initialValues}),this.form.get("link").valueChanges.pipe(zg(500)).subscribe(e=>{e.lengththis.setNodeProps.emit({link:this.currentLink,blank:e})),this.dotLanguageService.getLanguages().pipe($n(1)).subscribe(e=>this.dotLangs=e)}submitForm(){this.setNodeProps.emit(this.form.value),this.hide.emit(!0)}setLoading(){const e=this.newLink.length>=this.minChars&&!Hm(this.newLink);this.items=e?this.items:[],this.showSuggestions=e,this.loading=e,e&&requestAnimationFrame(()=>this.isSuggestionOpen.emit(!0))}setFormValue({link:e="",blank:i=!0}){this.form.setValue({link:e,blank:i},{emitEvent:!1})}focusInput(){this.input.nativeElement.focus()}onKeyDownEvent(e){const i=this.suggestionsComponent?.items;if(e.stopImmediatePropagation(),"Escape"===e.key)return this.hide.emit(!0),!0;if(!this.showSuggestions||!i?.length)return!0;switch(e.key){case"Enter":return this.suggestionsComponent?.execCommand(),!1;case"ArrowUp":case"ArrowDown":this.suggestionsComponent?.updateSelection(e)}}resetForm(){this.showSuggestions=!1,this.setFormValue({...this.initialValues})}onSelection({payload:{url:e}}){this.setFormValue({...this.form.value,link:e}),this.submitForm()}searchContentlets({link:e=""}){this.loading=!0,this.suggestionsService.getContentletsUrlMap({filter:e}).pipe($n(1)).subscribe(i=>{this.items=i.map(r=>{const{languageId:o}=r;return r.language=this.getContentletLanguage(o),{label:r.title,icon:"contentlet/image",data:{contentlet:r},command:()=>{this.onSelection({payload:r,type:{name:"dotContent"}})}}}),this.loading=!1})}getContentletLanguage(e){const{languageCode:i,countryCode:r}=this.dotLangs[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(T(zE),T(cM),T(lM))},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-link-form"]],viewQuery:function(e,i){if(1&e&&(Zt(sre,5),Zt(are,5)),2&e){let r;He(r=Ve())&&(i.input=r.first),He(r=Ve())&&(i.suggestionsComponent=r.first)}},hostBindings:function(e,i){1&e&&K("mousedown",function(o){return i.onMouseDownHandler(o)})},inputs:{showSuggestions:"showSuggestions",initialValues:"initialValues"},outputs:{hide:"hide",removeLink:"removeLink",isSuggestionOpen:"isSuggestionOpen",setNodeProps:"setNodeProps"},decls:11,vars:8,consts:[[1,"form-container"],["autocomplete","off",3,"formGroup","keydown","ngSubmit"],[1,"p-inputgroup","search-container"],[1,"p-inputgroup"],["id","editor-input-link","pInputText","","type","text","placeholder","Paste link or search for pages","formControlName","link",3,"input"],["input",""],["pButton","","type","submit","label","ADD",1,"p-button"],["class","divider",4,"ngIf"],["class","info-container",4,"ngIf"],[3,"items","loading","title","back",4,"ngIf"],[3,"link","hide","remove",4,"ngIf"],[1,"divider"],[1,"info-container"],["target","_blank",1,"url-container",3,"href"],[1,"material-icons"],[1,"truncate"],[1,"field-checkbox"],[1,"checkbox-container"],["id","editor-input-checkbox","formControlName","blank",3,"binary"],["for","editor-input-checkbox"],[3,"items","loading","title","back"],["suggestions",""],[3,"link","hide","remove"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"form",1),K("keydown",function(o){return i.onKeyDownEvent(o)})("ngSubmit",function(){return i.submitForm()}),x(2,"div",2)(3,"div",3)(4,"input",4,5),K("input",function(){return i.setLoading()}),B(),ie(6,"button",6),B()(),S(7,lre,1,0,"hr",7),S(8,ure,11,6,"div",8),B(),S(9,dre,2,3,"dot-suggestion-page",9),S(10,hre,1,1,"dot-form-actions",10),B()),2&e&&(v(1),C("formGroup",i.form),v(5),An(io(7,pre)),v(1),C("ngIf",i.showSuggestions||i.currentLink),v(1),C("ngIf",i.currentLink&&!i.showSuggestions),v(1),C("ngIf",i.showSuggestions),v(1),C("ngIf",!i.showSuggestions&&i.currentLink))},styles:[".form-container[_ngcontent-%COMP%]{background:#ffffff;border-radius:2px;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;width:400px}.form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;max-width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{background:#ffffff;border:1px solid #b3b1b8}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .url-container[_ngcontent-%COMP%]{cursor:pointer;white-space:nowrap;font-size:16px;width:100%;word-wrap:normal;display:flex;align-items:center;text-decoration:none;gap:8px;color:#11152e}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%]{display:flex;gap:3.2px;min-width:100%;font-size:16px}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{cursor:pointer;width:32px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{border:0;border-top:1px solid #e2e2e2;width:100%;margin:0}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var fre=yu(222),gre=yu.n(fre);const CN=({editor:n,view:t,pos:e})=>{const i=t.state.doc?.resolve(e),r=((n,t)=>{const e=t-n?.textOffset;return{to:e,from:n.index(){const{state:a}=this.editor,{to:l}=a.selection,{openOnClick:c}=ns.getState(a);!this.pluginKey.getState(a).isOpen||(c?(this.editor.commands.closeLinkForm(),requestAnimationFrame(()=>this.editor.commands.setTextSelection(l))):this.editor.commands.closeLinkForm())},this.editor=t,this.element=e,this.view=i,this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=o,this.component=s,this.editor.on("focus",this.focusHandler),this.setComponentEvents(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(t,e){const i=this.pluginKey.getState(t.state),r=this.pluginKey.getState(e);i.isOpen!==r.isOpen?(this.createTooltip(),i.isOpen?this.show():this.hide(),this.detectLinkFormChanges()):this.detectLinkFormChanges()}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Xo(t.parentElement,{...this.tippyOptions,...hk,getReferenceClientRect:()=>this.setTippyPosition(),content:this.element,onHide:()=>{this.editor.commands.closeLinkForm()}}))}show(){this.tippy?.show(),this.component.instance.showSuggestions=!1,this.setInputValues(),this.component.instance.focusInput()}hide(){this.tippy?.hide(),this.editor.view.focus()}setTippyPosition(){const{view:t}=this.editor,{state:e}=t,{doc:i,selection:r}=e,{ranges:o}=r,s=Math.min(...o.map(g=>g.$from.pos)),l=ul(t,s,Math.max(...o.map(g=>g.$to.pos))),{element:c}=this.editor.options,u=c.parentElement.getBoundingClientRect(),d=document.querySelector("#bubble-menu")?.getBoundingClientRect()||l,h=u.bottom0){const i=this.formatLink(t);this.isImageNode()?this.editor.commands.setImageLink({href:i}):this.editor.commands.setLink({href:i,target:e?"_blank":"_top"})}}removeLink(){this.isImageNode()?this.editor.commands.unsetImageLink():this.editor.commands.unsetLink(),this.hide()}formatLink(t){return Hm(t)?new RegExp("^(http|https)","i").test(t)?t:`http://${t}`:t}setInputValues(){const t=this.getLinkProps();this.component.instance.initialValues=t,this.component.instance.setFormValue(t.link?t:{link:this.getLinkSelect()})}setComponentEvents(){this.component.instance.hide.pipe(Yn(this.$destroy)).subscribe(()=>this.hide()),this.component.instance.removeLink.pipe(Yn(this.$destroy)).subscribe(()=>this.removeLink()),this.component.instance.isSuggestionOpen.pipe(Yn(this.$destroy)).subscribe(()=>this.tippy.popperInstance.update()),this.component.instance.setNodeProps.pipe(Yn(this.$destroy)).subscribe(t=>this.setLinkValues(t))}detectLinkFormChanges(){this.component.changeDetectorRef.detectChanges(),requestAnimationFrame(()=>this.tippy?.popperInstance?.forceUpdate())}getLinkProps(){const{href:t="",target:e}=this.editor.isActive("link")?this.editor.getAttributes("link"):this.editor.getAttributes(hi.name);return{link:t,blank:!e||"_blank"===e}}getLinkSelect(){const{state:t}=this.editor,{from:e,to:i}=t.selection,r=t.doc.textBetween(e,i," ");return Hm(r)?r:""}isImageNode(){const{type:t}=this.editor.state.doc.nodeAt(this.editor.state.selection.from)||{};return t?.name===hi.name}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy()}hanlderScroll(t){if(!this.tippy?.state.isMounted)return;const e=t.target,i=e?.parentElement?.parentElement;this.scrollElementMap[e.id]||this.scrollElementMap[i.id]||this.hide()}}const Are=n=>{let t;return new it({key:n.pluginKey,view:e=>new mre({view:e,...n}),state:{init:()=>({isOpen:!1,openOnClick:!1}),apply(e,i,r){const{isOpen:o,openOnClick:s}=e.getMeta(ns)||{},a=ns.getState(r);return"boolean"==typeof o?{isOpen:o,openOnClick:s}:a||i}},props:{handleDOMEvents:{mousedown(e,i){const r=n.editor,o=((n,t)=>{const{clientX:e,clientY:i}=t,{pos:r}=n.posAtCoords({left:e,top:i});return r})(e,i),{isOpen:s,openOnClick:a}=ns.getState(r.state);s&&a&&r.chain().unsetHighlight().setTextSelection(o).run()}},handleClickOn(e,i,r){const o=n.editor;if(o.isActive("link")&&i){if(!gre()(t,r))return CN({editor:o,view:e,pos:i}),t=r,!0;o.chain().setTextSelection(i).closeLinkForm().run()}else t=r},handleDoubleClickOn(e,i){const r=n.editor;if(r.isActive("link"))return CN({editor:r,view:e,pos:i}),!0}}})},ns=new _t("addLink"),bre=n=>Ft.create({name:"bubbleLinkForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:ns}),addCommands:()=>({openLinkForm:({openOnClick:t})=>({chain:e})=>e().setMeta("preventAutolink",!0).setHighlight().command(({tr:i})=>(i.setMeta(ns,{isOpen:!0,openOnClick:t}),!0)).freezeScroll(!0).run(),closeLinkForm:()=>({chain:t})=>t().setMeta("preventAutolink",!0).unsetHighlight().command(({tr:e})=>(e.setMeta(ns,{isOpen:!1,openOnClick:!1}),!0)).freezeScroll(!1).run()}),addProseMirrorPlugins(){const t=n.createComponent(EN);return t.changeDetectorRef.detectChanges(),[Are({pluginKey:this.options.pluginKey,editor:this.editor,element:t.location.nativeElement,tippyOptions:this.options.tippyOptions,component:t})]}}),vN={tableCell:!0,table:!0,video:!0},yre=({editor:n,state:t,from:e,to:i})=>{const{doc:r,selection:o}=t,{view:s}=n,{empty:a}=o,{isOpen:l,openOnClick:c}=ns.getState(t),u=n.state.doc.nodeAt(n.state.selection.from),d=hl(n.state.selection.$from),h=!r.textBetween(e,i).length&&Bm(t.selection);return"text"===u?.type.name&&"table"===d?.type.name&&!h||!(!l&&(!s.hasFocus()||a||h||vN[d?.type.name]||vN[u?.type.name])||l&&c)},Hm=n=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(n),MN=(n,t)=>t===hi.name&&n?.firstElementChild?n.firstElementChild.getBoundingClientRect():n.getBoundingClientRect(),wN=n=>n.isActive("bulletList")||n.isActive("orderedList"),DN=[{icon:"format_bold",markAction:"bold",active:!1},{icon:"format_underlined",markAction:"underline",active:!1},{icon:"format_italic",markAction:"italic",active:!1},{icon:"strikethrough_s",markAction:"strike",active:!1,divider:!0}],AM=[{icon:"format_align_left",markAction:"left",active:!1},{icon:"format_align_center",markAction:"center",active:!1},{icon:"format_align_right",markAction:"right",active:!1,divider:!0}],Cre=[...DN,...AM,{icon:"format_list_bulleted",markAction:"bulletList",active:!1},{icon:"format_list_numbered",markAction:"orderedList",active:!1},{icon:"format_indent_decrease",markAction:"outdent",active:!1},{icon:"format_indent_increase",markAction:"indent",active:!1,divider:!0},{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],vre=[...AM,{icon:"link",markAction:"link",active:!1,divider:!0},{text:"Properties",markAction:"properties",active:!1}],Mre=[...DN,...AM,{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],wre=[{icon:"delete",markAction:"deleteNode",active:!1}],IN=[{name:"offset",options:{offset:[0,5]}},{name:"flip",options:{fallbackPlacements:["bottom-start","top-start"]}},{name:"preventOverflow",options:{altAxis:!0,tether:!0}}],Ire=[{key:"src",label:"path",required:!0,controlType:"text",type:"text"},{key:"alt",label:"alt",controlType:"text",type:"text"},{key:"title",label:"caption",controlType:"text",type:"text"}];class Sre extends pM{constructor(t){const{editor:e,element:i,view:r,tippyOptions:o={},pluginKey:s,component:a}=t;super(t),this.$destroy=new Me,this.focusHandler=()=>{this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))},this.editor=e,this.element=i,this.view=r,this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=s,this.component=a,this.component.instance.buildForm(Ire),this.component.instance.formValues.pipe(Yn(this.$destroy)).subscribe(l=>{this.editor.commands.updateValue(l)}),this.component.instance.hide.pipe(Yn(this.$destroy)).subscribe(()=>{this.editor.commands.closeForm()}),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(t,e){const i=this.pluginKey?.getState(t.state),r=e?this.pluginKey?.getState(e):{open:!1},{state:o}=t,{doc:s,selection:a}=o,{ranges:l}=a,c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));i?.open!==r?.open?(i.open&&i.form?(this.component.instance.buildForm(i.form),this.component.instance.options=i.options):this.component.instance.cleanForm(),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{if(a instanceof ce){const d=t.nodeDOM(c);if(d)return this.node=s.nodeAt(c),this.tippyRect(d,this.node.type.name)}return ul(t,c,u)}}),i.open?this.show():this.hide()):this.tippy?.popperInstance?.forceUpdate()}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Xo(t.parentElement,{...this.tippyOptions,...hk,content:this.element,onShow:()=>{requestAnimationFrame(()=>{this.component.instance.inputs.first.nativeElement.focus()})}}))}show(){this.tippy?.show()}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy(),this.component.instance.formValues.unsubscribe()}hanlderScroll(t){if(!this.shouldHideOnScroll(t.target))return!0;this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))}tippyRect(t,e){return document.querySelector("#bubble-menu")?.getBoundingClientRect()||((n,t)=>t===hi.name&&n.getElementsByTagName("img")[0]?.getBoundingClientRect()||n.getBoundingClientRect())(t,e)}shouldHideOnScroll(t){return this.tippy?.state.isMounted&&this.tippy?.popper.contains(t)}}const xre=n=>new it({key:n.pluginKey,view:t=>new Sre({view:t,...n}),state:{init:()=>({open:!1,form:[],options:null}),apply(t,e,i){const{open:r,form:o,options:s}=t.getMeta(fl)||{},a=fl?.getState(i);return"boolean"==typeof r?{open:r,form:o,options:s}:a||e}}}),fl=new _t("bubble-form"),Tre={interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},Bre=n=>{const t=new Me;return fM.extend({name:"bubbleForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:fl,shouldShow:()=>!0}),addCommands:()=>({openForm:(e,i)=>({chain:r})=>(r().command(({tr:o})=>(o.setMeta(fl,{form:e,options:i,open:!0}),!0)).freezeScroll(!0).run(),t),closeForm:()=>({chain:e})=>(t.next(null),e().command(({tr:i})=>(i.setMeta(fl,{open:!1}),!0)).freezeScroll(!1).run()),updateValue:e=>({editor:i})=>{t.next(e),i.commands.closeForm()}}),addProseMirrorPlugins(){const e=n.createComponent(Iie),i=e.location.nativeElement;return e.changeDetectorRef.detectChanges(),[xre({pluginKey:fl,editor:this.editor,element:i,tippyOptions:Tre,component:e,form$:t})]}})},SN=function(){return{width:"50%"}};function Ore(n,t){if(1&n){const e=Re();x(0,"div")(1,"div",1)(2,"button",2),K("click",function(){return re(e),oe(w().copy())}),B(),x(3,"button",3),K("click",function(){return re(e),oe(w().remove.emit(!0))}),B()()()}2&n&&(v(2),An(io(4,SN)),v(1),An(io(5,SN)))}let kre=(()=>{class n{constructor(){this.remove=new te(!1),this.hide=new te(!1),this.link=""}copy(){navigator.clipboard.writeText(this.link).then(()=>this.hide.emit(!0)).catch(()=>alert("Could not copy link"))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-form-actions"]],inputs:{link:"link"},outputs:{remove:"remove",hide:"hide"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"form-actions"],["pButton","","type","button","label","COPY LINK",1,"p-button-outlined",3,"click"],["pButton","","type","button","label","REMOVE LINK",1,"p-button-outlined","p-button-danger",3,"click"]],template:function(e,i){1&e&&S(0,Ore,4,6,"div",0),2&e&&C("ngIf",i.link.length)},dependencies:[Pt,Fs],styles:[".form-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:1rem;gap:.5rem}"]}),n})();function Pre(n,t){if(1&n){const e=Re();ct(0),x(1,"button",3),K("click",function(){return re(e),oe(w().toggleChangeTo.emit())}),de(2),B(),ie(3,"div",4),ut()}if(2&n){const e=w();v(2),pt(e.selected)}}function Fre(n,t){1&n&&ie(0,"div",4)}function Rre(n,t){if(1&n){const e=Re();ct(0),x(1,"dot-bubble-menu-button",5),K("click",function(){const o=re(e).$implicit;return oe(w().command.emit(o))}),B(),S(2,Fre,1,0,"div",6),ut()}if(2&n){const e=t.$implicit;v(1),C("active",e.active)("item",e),v(1),C("ngIf",e.divider)}}let xN=(()=>{class n{constructor(){this.items=[],this.command=new te,this.toggleChangeTo=new te}preventDeSelection(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-menu"]],inputs:{items:"items",selected:"selected"},outputs:{command:"command",toggleChangeTo:"toggleChangeTo"},decls:3,vars:2,consts:[["id","bubble-menu",1,"bubble-menu",3,"mousedown"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"btn-dropdown",3,"click"],[1,"divider"],[3,"active","item","click"],["class","divider",4,"ngIf"]],template:function(e,i){1&e&&(x(0,"div",0),K("mousedown",function(o){return i.preventDeSelection(o)}),S(1,Pre,4,1,"ng-container",1),S(2,Rre,3,3,"ng-container",2),B()),2&e&&(v(1),C("ngIf",i.selected),v(1),C("ngForOf",i.items))},styles:['[_nghost-%COMP%]{height:100%;width:100%}.bubble-menu[_ngcontent-%COMP%]{box-sizing:border-box;align-items:center;background:#ffffff;border-radius:2px;box-shadow:0 10px 24px #0003;display:flex;justify-content:center;padding:5.6px;height:40px}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]{background:none;border:none;outline:none;padding:4px;cursor:pointer}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:hover{background:#f1f3f4}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:after{content:"";border:solid #11152e;border-width:0 2px 2px 0;display:inline-block;padding:3.2px;transform:rotate(45deg);margin-left:12px}.bubble-menu[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{border-left:1px solid #f1f3f4;height:100%;margin:0 8px}']}),n})();const Nre=function(n,t){return{"btn-bubble-menu":!0,"btn-icon":n,"btn-active":t}},Lre=function(n){return{"material-icons":n}};let Qre=(()=>{class n{constructor(){this.active=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-menu-button"]],inputs:{item:"item",active:"active"},decls:3,vars:8,consts:[[3,"ngClass"]],template:function(e,i){1&e&&(x(0,"button",0)(1,"span",0),de(2),B()()),2&e&&(C("ngClass",Xi(3,Nre,i.item.icon,i.active)),v(1),C("ngClass",Wt(6,Lre,i.item.icon)),v(1),pt(i.item.icon||i.item.text))},dependencies:[zn],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center}.btn-bubble-menu[_ngcontent-%COMP%]{background:#ffffff;border:none;color:#11152e;display:flex;justify-content:center;align-items:center;cursor:pointer;max-width:auto;width:100%;height:32px;border-radius:2px}.btn-bubble-menu[_ngcontent-%COMP%]:hover{background:#f1f3f4}.btn-bubble-menu.btn-active[_ngcontent-%COMP%]{background:#f1f3f4;color:#11152e;border:1px solid #b3b1b8}.btn-icon[_ngcontent-%COMP%]{width:32px}"]}),n})();const Ure=n=>{const t=n.component.instance,e=n.changeToComponent.instance;return new it({key:n.pluginKey,view:i=>new jre({view:i,...n}),props:{handleKeyDown(i,r){const{key:o}=r,{changeToIsOpen:s}=n.editor?.storage.bubbleMenu||{};if(s){if("Escape"===o)return t.toggleChangeTo.emit(),!0;if("Enter"===o)return e.execCommand(),!0;if("ArrowDown"===o||"ArrowUp"===o)return e.updateSelection(r),!0}return!1}}})};class jre extends pM{constructor(t){super(t),this.shouldShowProp=!1,this.updateActiveItems=(r=[],o)=>r.map(s=>(s.active=o.includes(s.markAction),s)),this.enabledMarks=()=>[...Object.keys(this.editor.schema.marks),...Object.keys(this.editor.schema.nodes)],this.getActiveMarks=(r=[])=>[...this.enabledMarks().filter(o=>this.editor.isActive(o)),...r.filter(o=>this.editor.isActive({textAlign:o}))];const{component:e,changeToComponent:i}=t;this.component=e,this.changeTo=i,this.changeToElement=this.changeTo.location.nativeElement,this.component.instance.command.subscribe(this.exeCommand.bind(this)),this.component.instance.toggleChangeTo.subscribe(this.toggleChangeTo.bind(this)),this.changeTo.instance.items=this.changeToItems(),this.changeTo.instance.title="Change To",this.changeToElement.remove(),this.changeTo.changeDetectorRef.detectChanges(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0),document.body.addEventListener("mouseup",this.showMenu.bind(this),!0),document.body.addEventListener("keyup",this.showMenu.bind(this),!0),this.editor.off("blur",this.blurHandler)}showMenu(){this.shouldShowProp&&(this.tippyChangeTo?.setProps({getReferenceClientRect:()=>this.tippy?.popper.getBoundingClientRect()}),this.show())}update(t,e){const{state:i,composing:r}=t,{doc:o,selection:s}=i,a=e&&e.doc.eq(o)&&e.selection.eq(s);if(r||a)return;this.createTooltip(),this.createChangeToTooltip();const{ranges:l}=s;this.selectionRange=l[0],this.selectionNodesCount=0,o.nodesBetween(this.selectionRange.$from.pos,this.selectionRange.$to.pos,d=>{d.isBlock&&this.selectionNodesCount++});const c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));if(this.shouldShowProp=this.shouldShow?.({editor:this.editor,view:t,state:i,oldState:e,from:c,to:u}),!this.shouldShowProp)return this.hide(),void this.tippyChangeTo?.hide();this.tippy?.setProps({getReferenceClientRect:()=>{const d=t.nodeDOM(c),h=o.nodeAt(c)?.type.name;return(({viewCoords:n,nodeCoords:t,padding:e})=>{const{top:i,bottom:r}=t,{top:o,bottom:s}=n,a=Math.ceil(i-o){this.changeTo.instance.list.updateActiveItem(t),this.changeTo.changeDetectorRef.detectChanges()})}setMenuItems(t,e){const i=t.nodeAt(e),o="table"===hl(this.editor.state.selection.$from).type.name?"table":i?.type.name;this.selectionNode=i,this.component.instance.items=((n="")=>{switch(n){case"dotImage":return vre;case"dotContent":return wre;case"table":return Mre;default:return Cre}})(o)}openImageProperties(){const{open:t}=fl.getState(this.editor.state),{alt:e,src:i,title:r,data:o}=this.editor.getAttributes(hi.name),{title:s="",asset:a}=o||{};t?this.editor.commands.closeForm():this.editor.commands.openForm([{value:i||a,key:"src",label:"path",required:!0,controlType:"text",type:"text"},{value:e||s,key:"alt",label:"alt",controlType:"text",type:"text"},{value:r||s,key:"title",label:"caption",controlType:"text",type:"text"}]).pipe($n(1),ir(l=>null!=l)).subscribe(l=>{requestAnimationFrame(()=>{this.editor.commands.setImage({...l}),this.editor.commands.closeForm()})})}exeCommand(t){const{markAction:e,active:i}=t;switch(e){case"bold":this.editor.commands.toggleBold();break;case"italic":this.editor.commands.toggleItalic();break;case"strike":this.editor.commands.toggleStrike();break;case"underline":this.editor.commands.toggleUnderline();break;case"left":case"center":case"right":this.toggleTextAlign(e,i);break;case"bulletList":this.editor.commands.toggleBulletList();break;case"orderedList":this.editor.commands.toggleOrderedList();break;case"indent":wN(this.editor)&&this.editor.commands.sinkListItem("listItem");break;case"outdent":wN(this.editor)&&this.editor.commands.liftListItem("listItem");break;case"link":const{isOpen:r}=ns.getState(this.editor.state);r?this.editor.view.focus():this.editor.commands.openLinkForm({openOnClick:!1});break;case"properties":this.openImageProperties();break;case"deleteNode":this.selectionNodesCount>1?((n,t)=>{const e=t.$from.pos,i=t.$to.pos+1;this.editor.chain().deleteRange({from:e,to:i}).blur().run()})(0,this.selectionRange):(({editor:n,nodeType:t,selectionRange:e})=>{ane.includes(t)?((n,t)=>{const e=t.$from.pos,i=e+1;n.chain().deleteRange({from:e,to:i}).blur().run()})(n,e):((n,t)=>{const e=hl(t.$from),i=e.type.name,r=hl(t.$from,[Ii.ORDERED_LIST,Ii.BULLET_LIST]),{childCount:o}=r;switch(i){case Ii.ORDERED_LIST:case Ii.BULLET_LIST:o>1?n.chain().deleteNode(Ii.LIST_ITEM).blur().run():n.chain().deleteNode(r.type).blur().run();break;default:n.chain().deleteNode(e.type).blur().run()}})(n,e)})({editor:this.editor,nodeType:this.selectionNode.type.name,selectionRange:this.selectionRange});break;case"clearAll":this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes()}}toggleTextAlign(t,e){e?this.editor.commands.unsetTextAlign():this.editor.commands.setTextAlign(t)}changeToItems(){const t=this.editor.storage.dotConfig.allowedBlocks;let i="table"===hl(this.editor.state.selection.$from).type.name?X9:n6;t.length>1&&(i=i.filter(o=>t.includes(o.id)));const r={heading1:()=>{this.editor.chain().focus().clearNodes().setHeading({level:1}).run()},heading2:()=>{this.editor.chain().focus().clearNodes().setHeading({level:2}).run()},heading3:()=>{this.editor.chain().focus().clearNodes().setHeading({level:3}).run()},paragraph:()=>{this.editor.chain().focus().clearNodes().run()},orderedList:()=>{this.editor.chain().focus().clearNodes().toggleOrderedList().run()},bulletList:()=>{this.editor.chain().focus().clearNodes().toggleBulletList().run()},blockquote:()=>{this.editor.chain().focus().clearNodes().toggleBlockquote().run()},codeBlock:()=>{this.editor.chain().focus().clearNodes().toggleCodeBlock().run()}};return i.forEach(o=>{o.isActive=()=>o.id.includes("heading")?this.editor.isActive("heading",o.attributes):this.editor.isActive(o.id),o.command=()=>{r[o.id](),this.tippyChangeTo.hide(),this.getActiveNode()}}),i}getActiveNode(){const t=this.changeToItems(),e=t.filter(o=>o?.isActive()),i=e.length>1?e[1]:e[0],r=t.findIndex(o=>o===i);return{activeItem:i,index:r}}createChangeToTooltip(){const{element:t}=this.editor.options;this.tippyChangeTo||(this.tippyChangeTo=Xo(t,{...this.tippyOptions,appendTo:document.body,getReferenceClientRect:null,content:this.changeToElement,placement:"bottom-start",duration:0,hideOnClick:!1,popperOptions:{modifiers:IN},onHide:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!1,this.changeTo.instance.items=[],this.changeTo.changeDetectorRef.detectChanges(),this.editor.commands.freezeScroll(!1)},onShow:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!0,this.editor.commands.freezeScroll(!0),this.updateChangeTo()}}))}toggleChangeTo(){const{changeToIsOpen:t}=this.editor?.storage.bubbleMenu||{};t?this.tippyChangeTo?.hide():this.tippyChangeTo?.show()}hanlderScroll(){this.tippyChangeTo?.state.isVisible&&this.tippyChangeTo?.hide()}}const zre={duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0},Hre=new _t("bubble-menu");function Vre(n){const t=n.createComponent(xN),e=t.location.nativeElement,i=n.createComponent(Lm),r=i.location.nativeElement;return fM.extend({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:zre,pluginKey:"bubbleMenu",shouldShow:yre}),addStorage:()=>({changeToIsOpen:!1}),addProseMirrorPlugins(){return e?[Ure({...this.options,component:t,changeToComponent:i,pluginKey:Hre,editor:this.editor,element:e,changeToElement:r})]:[]}})}const Gre=n=>Ft.create({name:"dotConfig",addStorage:()=>({...n})}),Yre=tn.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const t=n.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:n}){return["td",Et(this.options.HTMLAttributes,n),0]}});class Jre{constructor(t,e){this.tippy=e}init(){}update(){}destroy(){this.tippy.destroy()}}const Kre=n=>{let t;function e(s){return wn.node(s.$to.before(3),s.$to.after(3),{class:"focus"})}function i(s){s.preventDefault(),s.stopPropagation(),t?.setProps({getReferenceClientRect:()=>s.target.getBoundingClientRect()}),t.show()}function o(s){return"tableCell"===s?.type.name||"tableHeader"===s?.type.name||"tableRow"===s?.type.name}return new it({key:new _t("dotTableCell"),state:{apply:()=>{},init:()=>{const{editor:s,viewContainerRef:a}=n,l=a.createComponent(Lm),c=l.location.nativeElement;l.instance.currentLanguage=s.storage.dotConfig.lang;const{element:d}=s.options;t=Xo(d,{duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0,appendTo:document.body,getReferenceClientRect:null,content:c,placement:"bottom-start",duration:0,hideOnClick:!0,popperOptions:{modifiers:IN},onShow:()=>{s.commands.freezeScroll(!0);const h=l.instance.items.find(f=>"mergeCells"==f.id),p=l.instance.items.find(f=>"splitCells"==f.id);h.disabled=!s.can().mergeCells(),p.disabled=!s.can().splitCell(),setTimeout(()=>{l.changeDetectorRef.detectChanges()})},onHide:()=>s.commands.freezeScroll(!1)}),l.instance.items=((n,t)=>[{label:"Toggle row Header",icon:"check",id:"toggleRowHeader",command:()=>{n.commands.toggleHeaderRow(),t.hide()},tabindex:"0"},{label:"Toggle column Header",icon:"check",id:"toggleColumnHeader",command:()=>{n.commands.toggleHeaderColumn(),t.hide()},tabindex:"1"},{id:"divider"},{label:"Merge Cells",icon:"call_merge",id:"mergeCells",command:()=>{n.commands.mergeCells(),t.hide()},disabled:!0,tabindex:"2"},{label:"Split Cells",icon:"call_split",id:"splitCells",command:()=>{n.commands.splitCell(),t.hide()},disabled:!0,tabindex:"3"},{id:"divider"},{label:"Insert row above",icon:"arrow_upward",id:"insertAbove",command:()=>{n.commands.addRowBefore(),t.hide()},tabindex:"4"},{label:"Insert row below",icon:"arrow_downward",id:"insertBellow",command:()=>{n.commands.addRowAfter(),t.hide()},tabindex:"5"},{label:"Insert column left",icon:"arrow_back",id:"insertLeft",command:()=>{n.commands.addColumnBefore(),t.hide()},tabindex:"6"},{label:"Insert column right",icon:"arrow_forward",id:"insertRight",command:()=>{n.commands.addColumnAfter(),t.hide()},tabindex:"7"},{id:"divider"},{label:"Delete row",icon:"delete",id:"deleteRow",command:()=>{n.commands.deleteRow(),t.hide()},tabindex:"8"},{label:"Delete Column",icon:"delete",id:"deleteColumn",command:()=>{n.commands.deleteColumn(),t.hide()},tabindex:"9"},{label:"Delete Table",icon:"delete",id:"deleteTable",command:()=>{n.commands.deleteTable(),t.hide()},tabindex:"10"}])(n.editor,t),l.instance.title="",l.changeDetectorRef.detectChanges()}},view:s=>new Jre(s,t),props:{decorations(s){const a=s.selection.$from.depth>3?s.selection.$from.node(3):null;return"tableCell"==a?.type?.name||"tableHeader"==a?.type?.name?kt.create(s.doc,[e(s.selection)]):null},handleDOMEvents:{contextmenu:(s,a)=>{o(s.state.selection.$from.node(s.state.selection.$from.depth-1))&&i(a)},mousedown:(s,a)=>{const l=s.state.selection.$from.node(s.state.selection.$from.depth-1);!function r(s){return s?.classList.contains("dot-cell-arrow")}(a.target)?2===a.button&&o(l)&&a.preventDefault():i(a)}}}})};function $re(n){return Yre.extend({renderHTML({HTMLAttributes:t}){return["td",Et(this.options.HTMLAttributes,t),["button",{class:"dot-cell-arrow"}],["p",0]]},addProseMirrorPlugins(){return[Kre({editor:this.editor,viewContainerRef:n})]}})}const qre=tn.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const t=n.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:n}){return["th",Et(this.options.HTMLAttributes,n),0]}});let bM,yM;if(typeof WeakMap<"u"){let n=new WeakMap;bM=t=>n.get(t),yM=(t,e)=>(n.set(t,e),e)}else{let n=[],t=10,e=0;bM=i=>{for(let r=0;r(e==t&&(e=0),n[e++]=i,n[e++]=r)}class tu{constructor(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}}class Nt{constructor(t,e,i,r){this.width=t,this.height=e,this.map=i,this.problems=r}findCell(t){for(let e=0;ei&&(o+=c.attrs.colspan)}}for(let s=0;s1&&(e=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(n),e=n.childCount,i=[],r=0,o=null,s=[];for(let c=0,u=t*e;c=e){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:A-E});break}let b=r+E*t;for(let D=0;D0;t--)if("row"==n.node(t).type.spec.tableRole)return n.node(0).resolve(n.before(t+1));return null}function Ur(n){let t=n.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function Vm(n){let t=n.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:nu(t.$head)||function roe(n){for(let t=n.nodeAfter,e=n.pos;t;t=t.firstChild,e++){let i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(e)}for(let t=n.nodeBefore,e=n.pos;t;t=t.lastChild,e--){let i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(e-t.nodeSize)}}(t.$head)}function _M(n){return"row"==n.parent.type.spec.tableRole&&n.nodeAfter}function EM(n,t){return n.depth==t.depth&&n.pos>=t.start(-1)&&n.pos<=t.end(-1)}function ON(n,t,e){let i=n.start(-1),o=Nt.get(n.node(-1)).nextCell(n.pos-i,t,e);return null==o?null:n.node(0).resolve(i+o)}function In(n,t,e){let i={};for(let r in n)i[r]=n[r];return i[t]=e,i}function gl(n,t,e=1){let i=In(n,"colspan",n.colspan-e);return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(t,e),i.colwidth.some(r=>r>0)||(i.colwidth=null)),i}function kN(n,t,e=1){let i=In(n,"colspan",n.colspan+e);if(i.colwidth){i.colwidth=i.colwidth.slice();for(let r=0;ru!=e.pos-o);l.unshift(e.pos-o);let c=l.map(u=>{let d=i.nodeAt(u),h=u+o+1;return new eP(a.resolve(h),a.resolve(h+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=e}map(t,e){let i=t.resolve(e.map(this.$anchorCell.pos)),r=t.resolve(e.map(this.$headCell.pos));if(_M(i)&&_M(r)&&EM(i,r)){let o=this.$anchorCell.node(-1)!=i.node(-1);return o&&this.isRowSelection()?Ye.rowSelection(i,r):o&&this.isColSelection()?Ye.colSelection(i,r):new Ye(i,r)}return Ee.between(i,r)}content(){let t=this.$anchorCell.node(-1),e=Nt.get(t),i=this.$anchorCell.start(-1),r=e.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),o={},s=[];for(let l=r.top;l0||m>0){let A=f.attrs;g>0&&(A=gl(A,0,g)),m>0&&(A=gl(A,A.colspan-m,m)),f=p.leftr.bottom){let A=In(f.attrs,"rowspan",Math.min(p.bottom,r.bottom)-Math.max(p.top,r.top));f=p.top0)&&Math.max(t+this.$anchorCell.nodeAfter.attrs.rowspan,e+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,e=t){let i=Nt.get(t.node(-1)),r=t.start(-1),o=i.findCell(t.pos-r),s=i.findCell(e.pos-r),a=t.node(0);return o.top<=s.top?(o.top>0&&(t=a.resolve(r+i.map[o.left])),s.bottom0&&(e=a.resolve(r+i.map[s.left])),o.bottom0)&&Math.max(i+this.$anchorCell.nodeAfter.attrs.colspan,r+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof Ye&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,e=t){let i=Nt.get(t.node(-1)),r=t.start(-1),o=i.findCell(t.pos-r),s=i.findCell(e.pos-r),a=t.node(0);return o.left<=s.left?(o.left>0&&(t=a.resolve(r+i.map[o.top*i.width])),s.right0&&(e=a.resolve(r+i.map[s.top*i.width])),o.right{t.push(wn.node(i,i+e.nodeSize,{class:"selectedCell"}))}),kt.create(n.doc,t)}function vM(n,t){let e=n.createAndFill();return new zC(e).replace(0,e.content.size,t).doc}function PN(n,t,e,i,r,o,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let c=r;ct.width)for(let d=0,h=0;dt.height){let d=[];for(let f=0,g=(t.height-1)*t.width;f=t.width)&&e.nodeAt(t.map[g+f]).type==l.header_cell;d.push(m?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}let h=l.row.create(null,L.from(d)),p=[];for(let f=t.height;f{let o=e.selection;if(o instanceof Ye)return Gm(e,i,_e.near(o.$headCell,t));if("horiz"!=n&&!o.empty)return!1;let s=NN(r,n,t);if(null==s)return!1;if("horiz"==n)return Gm(e,i,_e.near(e.doc.resolve(o.head+t),t));{let c,a=e.doc.resolve(s),l=ON(a,n,t);return c=l?_e.near(l,1):t<0?_e.near(e.doc.resolve(a.before(-1)),-1):_e.near(e.doc.resolve(a.after(-1)),1),Gm(e,i,c)}}}function Wm(n,t){return(e,i,r)=>{let o=e.selection;if(!(o instanceof Ye)){let a=NN(r,n,t);if(null==a)return!1;o=new Ye(e.doc.resolve(a))}let s=ON(o.$headCell,n,t);return!!s&&Gm(e,i,new Ye(o.$anchorCell,s))}}function Jm(n,t){let e=n.selection;if(!(e instanceof Ye))return!1;if(t){let i=n.tr,r=Zn(n.schema).cell.createAndFill().content;e.forEachCell((o,s)=>{o.content.eq(r)||i.replace(i.mapping.map(s+1),i.mapping.map(s+o.nodeSize-1),new G(r,0,0))}),i.docChanged&&t(i)}return!0}function moe(n,t){let i=nu(n.state.doc.resolve(t));return!!i&&(n.dispatch(n.state.tr.setSelection(new Ye(i))),!0)}function Aoe(n,t,e){if(!Ur(n.state))return!1;let i=function doe(n){if(!n.size)return null;let{content:t,openStart:e,openEnd:i}=n;for(;1==t.childCount&&(e>0&&i>0||"table"==t.firstChild.type.spec.tableRole);)e--,i--,t=t.firstChild.content;let r=t.firstChild,o=r.type.spec.tableRole,s=r.type.schema,a=[];if("row"==o)for(let l=0;l=0;s--){let{rowspan:a,colspan:l}=o.child(s).attrs;for(let c=r;c=t.length&&t.push(L.empty),e[r]i&&(h=h.type.create(gl(h.attrs,h.attrs.colspan,u+h.attrs.colspan-i),h.content)),c.push(h),u+=h.attrs.colspan;for(let p=1;pr&&(d=d.type.create(In(d.attrs,"rowspan",Math.max(1,r-d.attrs.rowspan)),d.content)),l.push(d)}o.push(L.from(l))}e=o,t=r}return{width:n,height:t,rows:e}}(i,a.right-a.left,a.bottom-a.top),RN(n.state,n.dispatch,s,a,i),!0}if(i){let o=Vm(n.state),s=o.start(-1);return RN(n.state,n.dispatch,s,Nt.get(o.node(-1)).findCell(o.pos-s),i),!0}return!1}function boe(n,t){if(t.ctrlKey||t.metaKey)return;let i,e=LN(n,t.target);if(t.shiftKey&&n.state.selection instanceof Ye)r(n.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&e&&null!=(i=nu(n.state.selection.$anchor))&&MM(n,t).pos!=i.pos)r(i,t),t.preventDefault();else if(!e)return;function r(a,l){let c=MM(n,l),u=null==ia.getState(n.state);if(!c||!EM(a,c)){if(!u)return;c=a}let d=new Ye(a,c);if(u||!n.state.selection.eq(d)){let h=n.state.tr.setSelection(d);u&&h.setMeta(ia,a.pos),n.dispatch(h)}}function o(){n.root.removeEventListener("mouseup",o),n.root.removeEventListener("dragstart",o),n.root.removeEventListener("mousemove",s),null!=ia.getState(n.state)&&n.dispatch(n.state.tr.setMeta(ia,-1))}function s(a){let c,l=ia.getState(n.state);if(null!=l)c=n.state.doc.resolve(l);else if(LN(n,a.target)!=e&&(c=MM(n,t),!c))return o();c&&r(c,a)}n.root.addEventListener("mouseup",o),n.root.addEventListener("dragstart",o),n.root.addEventListener("mousemove",s)}function NN(n,t,e){if(!(n.state.selection instanceof Ee))return null;let{$head:i}=n.state.selection;for(let r=i.depth-1;r>=0;r--){let o=i.node(r);if((e<0?i.index(r):i.indexAfter(r))!=(e<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let a=i.before(r);return n.endOfTextblock("vert"==t?e>0?"down":"up":e>0?"right":"left")?a:null}}return null}function LN(n,t){for(;t&&t!=n.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function MM(n,t){let e=n.posAtCoords({left:t.clientX,top:t.clientY});return e&&e?nu(n.state.doc.resolve(e.pos)):null}const yoe=new _t("fix-tables");function QN(n,t,e,i){let r=n.childCount,o=t.childCount;e:for(let s=0,a=0;s{"table"==r.type.spec.tableRole&&(e=function _oe(n,t,e,i){let r=Nt.get(t);if(!r.problems)return i;i||(i=n.tr);let s,a,o=[];for(let l=0;l0){let p="cell";u.firstChild&&(p=u.firstChild.type.spec.tableRole);let f=[];for(let m=0;m0?-1:0;(function soe(n,t,e){let i=Zn(t.type.schema).header_cell;for(let r=0;r0&&r0&&t.map[a-1]==l||r0?-1:0;(function woe(n,t,e){let i=Zn(t.type.schema).header_cell;for(let r=0;r0&&r0&&u==t.map[c-t.width]){let d=e.nodeAt(u).attrs;n.setNodeMarkup(n.mapping.slice(a).map(u+i),null,In(d,"rowspan",d.rowspan-1)),l+=d.colspan-1}else if(r0&&e[o]==e[o-1]||i.right0&&e[r]==e[r-n]||i.bottom{let r,o,i=t.selection;if(i instanceof Ye){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,o=i.$anchorCell.pos}else{if(r=function ioe(n){for(let t=n.depth;t>0;t--){const e=n.node(t).type.spec.tableRole;if("cell"===e||"header_cell"===e)return n.node(t)}return null}(i.$from),!r)return!1;o=nu(i.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(e){let s=r.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=In(s,"rowspan",1)),s.colspan>1&&(s=In(s,"colspan",1));let d,c=bo(t),u=t.tr;for(let h=0;he[i.type.spec.tableRole])(n,t)}function YN(n,t,e){const i=t.map.cellsInRect({left:0,top:0,right:"row"==n?t.map.width:1,bottom:"column"==n?t.map.height:1});for(let r=0;rr.table.nodeAt(l));for(let l=0;l{const f=p+o.tableStart,g=s.doc.nodeAt(f);g&&s.setNodeMarkup(f,h,g.attrs)}),i(s)}return!0}}Ih("row",{useDeprecatedLogic:!0}),Ih("column",{useDeprecatedLogic:!0});let Poe=Ih("cell",{useDeprecatedLogic:!0});function WN(n){return function(t,e){if(!Ur(t))return!1;let i=function Foe(n,t){if(t<0){let e=n.nodeBefore;if(e)return n.pos-e.nodeSize;for(let i=n.index(-1)-1,r=n.before();i>=0;i--){let o=n.node(-1).child(i);if(o.childCount)return r-1-o.lastChild.nodeSize;r-=o.nodeSize}}else{if(n.index()new e(a,t,l),new Sh(-1,!1)},apply:(o,s)=>s.apply(o)},props:{attributes:o=>gr.getState(o).activeHandle>-1?{class:"resize-cursor"}:null,handleDOMEvents:{mousemove(o,s){!function Qoe(n,t,e,i,r){let o=gr.getState(n.state);if(!o.dragging){let s=function Hoe(n){for(;n&&"TD"!=n.nodeName&&"TH"!=n.nodeName;)n=n.classList.contains("ProseMirror")?null:n.parentNode;return n}(t.target),a=-1;if(s){let{left:l,right:c}=s.getBoundingClientRect();t.clientX-l<=e?a=JN(n,t,"left"):c-t.clientX<=e&&(a=JN(n,t,"right"))}if(a!=o.activeHandle){if(!r&&-1!==a){let l=n.state.doc.resolve(a),c=l.node(-1),u=Nt.get(c),d=l.start(-1);if(u.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==u.width-1)return}$N(n,a)}}}(o,s,n,0,i)},mouseleave(o){!function Uoe(n){let t=gr.getState(n.state);t.activeHandle>-1&&!t.dragging&&$N(n,-1)}(o)},mousedown(o,s){!function joe(n,t,e){let i=gr.getState(n.state);if(-1==i.activeHandle||i.dragging)return!1;let r=n.state.doc.nodeAt(i.activeHandle),o=function zoe(n,t,{colspan:e,colwidth:i}){let r=i&&i[i.length-1];if(r)return r;let o=n.domAtPos(t),a=o.node.childNodes[o.offset].offsetWidth,l=e;if(i)for(let c=0;c-1)return function Woe(n,t){let e=[],i=n.doc.resolve(t),r=i.node(-1),o=Nt.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan;for(let l=0;l-1&&t.docChanged){let r=t.mapping.map(e.activeHandle,-1);_M(t.doc.resolve(r))||(r=null),e=new Sh(r,e.dragging)}return e}}function JN(n,t,e){let i=n.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;let{pos:r}=i,o=nu(n.state.doc.resolve(r));if(!o)return-1;if("right"==e)return o.pos;let s=Nt.get(o.node(-1)),a=o.start(-1),l=s.map.indexOf(o.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function KN(n,t,e){return Math.max(e,n.startWidth+(t.clientX-n.startX))}function $N(n,t){n.dispatch(n.state.tr.setMeta(gr,{setHandle:t}))}function Yoe(n){let t=[];for(let e=0;enull,apply(t,e){let i=t.getMeta(ia);if(null!=i)return-1==i?null:i;if(null==e||!t.docChanged)return e;let{deleted:r,pos:o}=t.mapping.mapResult(e);return r?null:o}},props:{decorations:aoe,handleDOMEvents:{mousedown:boe},createSelectionBetween(t){if(null!=ia.getState(t.state))return t.state.selection},handleTripleClick:moe,handleKeyDown:goe,handlePaste:Aoe},appendTransaction:(t,e,i)=>function uoe(n,t,e){let o,s,i=(t||n).selection,r=(t||n).doc;if(i instanceof ce&&(s=i.node.type.spec.tableRole)){if("cell"==s||"header_cell"==s)o=Ye.create(r,i.from);else if("row"==s){let a=r.resolve(i.from+1);o=Ye.rowSelection(a,a)}else if(!e){let a=Nt.get(i.node),l=i.from+1;o=Ye.create(r,l+1,l+a.map[a.width*a.height-1])}}else i instanceof Ee&&function loe({$from:n,$to:t}){if(n.pos==t.pos||n.pos=0&&!(n.after(r+1)=0&&!(t.before(o+1)>t.start(o));o--,i--);return e==i&&/row|table/.test(n.node(r).type.spec.tableRole)}(i)?o=Ee.create(r,i.from):i instanceof Ee&&function coe({$from:n,$to:t}){let e,i;for(let r=n.depth;r>0;r--){let o=n.node(r);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){e=o;break}}for(let r=t.depth;r>0;r--){let o=t.node(r);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){i=o;break}}return e!==i&&0===t.parentOffset}(i)&&(o=Ee.create(r,i.$from.start(),i.$from.end()));return o&&(t||(t=n.tr)).setSelection(o),t}(i,UN(i,e),n)})}function qN(n,t,e,i,r,o){let s=0,a=!0,l=t.firstChild;const c=n.firstChild;for(let u=0,d=0;u{const{selection:t}=n.state;if(!function Xoe(n){return n instanceof Ye}(t))return!1;let e=0;return LR(t.ranges[0].$from,o=>"table"===o.type.name)?.node.descendants(o=>{if("table"===o.type.name)return!1;["tableCell","tableHeader"].includes(o.type.name)&&(e+=1)}),e===t.ranges.length&&(n.commands.deleteTable(),!0)},Zoe=tn.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:Koe,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:n}){return["table",Et(this.options.HTMLAttributes,n),["tbody",0]]},addCommands:()=>({insertTable:({rows:n=3,cols:t=3,withHeaderRow:e=!0}={})=>({tr:i,dispatch:r,editor:o})=>{const s=function qoe(n,t,e,i,r){const o=function $oe(n){if(n.cached.tableNodeTypes)return n.cached.tableNodeTypes;const t={};return Object.keys(n.nodes).forEach(e=>{const i=n.nodes[e];i.spec.tableRole&&(t[i.spec.tableRole]=i)}),n.cached.tableNodeTypes=t,t}(n),s=[],a=[];for(let c=0;c({state:n,dispatch:t})=>function Eoe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n);t(jN(n.tr,e,e.left))}return!0}(n,t),addColumnAfter:()=>({state:n,dispatch:t})=>function Coe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n);t(jN(n.tr,e,e.right))}return!0}(n,t),deleteColumn:()=>({state:n,dispatch:t})=>function Moe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n),i=n.tr;if(0==e.left&&e.right==e.map.width)return!1;for(let r=e.right-1;voe(i,e,r),r!=e.left;r--)e.table=e.tableStart?i.doc.nodeAt(e.tableStart-1):i.doc,e.map=Nt.get(e.table);t(i)}return!0}(n,t),addRowBefore:()=>({state:n,dispatch:t})=>function Doe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n);t(zN(n.tr,e,e.top))}return!0}(n,t),addRowAfter:()=>({state:n,dispatch:t})=>function Ioe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n);t(zN(n.tr,e,e.bottom))}return!0}(n,t),deleteRow:()=>({state:n,dispatch:t})=>function xoe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n),i=n.tr;if(0==e.top&&e.bottom==e.map.height)return!1;for(let r=e.bottom-1;Soe(i,e,r),r!=e.top;r--)e.table=e.tableStart?i.doc.nodeAt(e.tableStart-1):i.doc,e.map=Nt.get(e.table);t(i)}return!0}(n,t),deleteTable:()=>({state:n,dispatch:t})=>function Roe(n,t){let e=n.selection.$anchor;for(let i=e.depth;i>0;i--)if("table"==e.node(i).type.spec.tableRole)return t&&t(n.tr.delete(e.before(i),e.after(i)).scrollIntoView()),!0;return!1}(n,t),mergeCells:()=>({state:n,dispatch:t})=>VN(n,t),splitCell:()=>({state:n,dispatch:t})=>GN(n,t),toggleHeaderColumn:()=>({state:n,dispatch:t})=>Ih("column")(n,t),toggleHeaderRow:()=>({state:n,dispatch:t})=>Ih("row")(n,t),toggleHeaderCell:()=>({state:n,dispatch:t})=>Poe(n,t),mergeOrSplit:()=>({state:n,dispatch:t})=>!!VN(n,t)||GN(n,t),setCellAttribute:(n,t)=>({state:e,dispatch:i})=>function Ooe(n,t){return function(e,i){if(!Ur(e))return!1;let r=Vm(e);if(r.nodeAfter.attrs[n]===t)return!1;if(i){let o=e.tr;e.selection instanceof Ye?e.selection.forEachCell((s,a)=>{s.attrs[n]!==t&&o.setNodeMarkup(a,null,In(s.attrs,n,t))}):o.setNodeMarkup(r.pos,null,In(r.nodeAfter.attrs,n,t)),i(o)}return!0}}(n,t)(e,i),goToNextCell:()=>({state:n,dispatch:t})=>WN(1)(n,t),goToPreviousCell:()=>({state:n,dispatch:t})=>WN(-1)(n,t),fixTables:()=>({state:n,dispatch:t})=>(t&&UN(n),!0),setCellSelection:n=>({tr:t,dispatch:e})=>{if(e){const i=Ye.create(t.doc,n.anchorCell,n.headCell);t.setSelection(i)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Km,"Mod-Backspace":Km,Delete:Km,"Mod-Delete":Km}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[Loe({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Joe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema:n=>({tableRole:Be(ne(n,"tableRole",{name:n.name,options:n.options,storage:n.storage}))})});let tse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-drag-handler"]],decls:2,vars:0,consts:[[1,"material-icons"]],template:function(e,i){1&e&&(x(0,"i",0),de(1,"drag_indicator"),B())},styles:["[_nghost-%COMP%]{position:absolute;cursor:grab;z-index:1;opacity:0;color:var(--color-background);transition:opacity .25s,top .15s}.visible[_nghost-%COMP%]{opacity:1}"]}),n})();const nse=n=>Ft.create({name:"dragHandler",addProseMirrorPlugins(){let t=null;const r=n.createComponent(tse).location.nativeElement;function s(g){g&&g.parentNode&&g.parentNode.removeChild(g)}function c(g){for(;g&&g.parentNode&&!g.classList?.contains("ProseMirror")&&!g.parentNode.classList?.contains("ProseMirror");)g=g.parentNode;return g}function h(){r.classList.remove("visible")}return[new it({key:new _t("dragHandler"),view:g=>(requestAnimationFrame(()=>function d(g){r.setAttribute("draggable","true"),r.addEventListener("dragstart",m=>function l(g,m){if(!g.dataTransfer)return;const y=function a(g,m){const A=m.posAtCoords(g);if(A){const y=c(m.nodeDOM(A.inside));if(y&&1===y.nodeType){const E=m.docView.nearestDesc(y,!0);if(E&&E!==m.docView)return E.posBefore}}return null}({left:g.clientX+50,top:g.clientY},m);if(null!=y){m.dispatch(m.state.tr.setSelection(ce.create(m.state.doc,y)));const E=m.state.selection.content();g.dataTransfer.clearData(),g?.dataTransfer?.setDragImage(t,10,10),m.dragging={slice:E,move:!0}}}(m,g)),r.classList.remove("visible"),g.dom.parentElement.appendChild(r)}(g)),document.body.addEventListener("scroll",h,!0),{destroy(){s(r),document.body.removeEventListener("scroll",h,!0)}}),props:{handleDOMEvents:{drop:(g,m)=>"TABLE"===c(m.target).nodeName||(requestAnimationFrame(()=>{(function f(){document.querySelector(".ProseMirror-hideselection")?.classList.remove("ProseMirror-hideselection"),r.classList.remove("visible")})(),nN(g),"TABLE"===t.nodeName&&s(t)}),!1),mousemove(g,m){const y=g.posAtCoords({left:m.clientX+50,top:m.clientY});if(y&&function u(g,m){const A=g.nodeDOM(m);return!(!A?.hasChildNodes()||1===A.childNodes.length&&"BR"==A.childNodes[0].nodeName)}(g,y.inside))if(t=c(g.nodeDOM(y.inside)),function p(g){return g&&!g.classList?.contains("ProseMirror")&&!g.innerText.startsWith("/")}(t)){const{top:E,left:b}=function o(g,m){return{top:m.getBoundingClientRect().top-g.getBoundingClientRect().top,left:m.getBoundingClientRect().left-g.getBoundingClientRect().left}}(g.dom.parentElement,t);r.style.left=b-25+"px",r.style.top=E<0?0:E+"px",r.classList.add("visible")}else r.classList.remove("visible");else t=null,r.classList.remove("visible");return!1}}}})]}});function ra(n){return function(e){const i=new ise(n),r=e.lift(i);return i.caught=r}}class ise{constructor(t){this.selector=t}call(t,e){return e.subscribe(new rse(t,this.selector,this.caught))}}class rse extends Ea{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new _a(this);this.add(i);const r=Ca(e,i);r!==i&&this.add(r)}}}const ZN={500:"500 Internal Server Error",400:"400 Bad Request",401:"401 Unauthorized Error"},eL="/api/v1/temp";function tL(n,t){let e="";try{e=n.message||ZN[t]}catch{e=ZN[t||500]}return{message:e,status:500|t}}var oa=(()=>(function(n){n.DOWNLOAD="DOWNLOADING",n.IMPORT="IMPORTING",n.COMPLETED="COMPLETED",n.ERROR="ERROR"}(oa||(oa={})),oa))();let xh=(()=>{class n{constructor(e){this.http=e}publishContent({data:e,maxSize:i,statusCallback:r=(o=>{})}){return r(oa.DOWNLOAD),this.setTempResource(e,i).pipe(Li(o=>{const s=Array.isArray(o)?o:[o],a=[];return s.forEach(l=>{a.push({baseType:"dotAsset",asset:l.id,hostFolder:"",indexPolicy:"WAIT_FOR"})}),r(oa.IMPORT),this.http.post("/api/v1/workflow/actions/default/fire/PUBLISH",JSON.stringify({contentlets:a}),{headers:{Origin:window.location.hostname,"Content-Type":"application/json;charset=UTF-8"}}).pipe(eu("entity","results"))}),ra(o=>Ss(o)))}setTempResource(e,i){return Lt(function ose({file:n,progressCallBack:t,maxSize:e}){return"string"==typeof n?function sse(n){return fetch(`${eL}/byUrl`,{method:"POST",headers:{"Content-Type":"application/json",Origin:window.location.hostname},body:JSON.stringify({remoteUrl:n})}).then(function(){var e=Mh(function*(i){if(200===i.status)return(yield i.json()).tempFiles[0];throw tL(yield i.json(),i.status)});return function(i){return e.apply(this,arguments)}}())}(n):function ase({file:n,progressCallBack:t,maxSize:e}){let i=eL;i+=e?`?maxFileLength=${e}`:"";const r=new FormData;return(Array.isArray(n)?n:[n]).forEach(s=>r.append("files",s)),function lse(n,t,e){return new Promise((i,r)=>{const o=new XMLHttpRequest;o.open(t.method||"get",n);for(const s in t.headers||{})o.setRequestHeader(s,t.headers[s]);o.onload=()=>i(o),o.onerror=r,o.upload&&e&&(o.upload.onprogress=s=>{e(s.loaded/s.total*100)}),o.send(t.body)})}(i,{method:"POST",headers:{},body:r},t).then(s=>{if(200===s.status){const a=JSON.parse(s.response).tempFiles;return a.length>1?a:a[0]}throw s}).catch(s=>{throw tL(JSON.parse(s.response),s.status)})}({file:n,progressCallBack:t,maxSize:e})}({file:e,progressCallBack:()=>{},maxSize:i}))}}return n.\u0275fac=function(e){return new(e||n)(j(vc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const use=function(n){return{completed:n}};function dse(n,t){if(1&n){const e=Re();x(0,"button",2),K("click",function(){return re(e),oe(w().byClick.emit())}),B()}if(2&n){const e=w();C("disabled",e.isCompleted||e.isLoading)("icon",e.isCompleted?"pi pi-check":null)("label",e.title)("loading",e.isLoading)("ngClass",Wt(5,use,e.isCompleted))}}function hse(n,t){1&n&&(x(0,"div",3),ie(1,"i",4),x(2,"span"),de(3,"Something went wrong, please try again later or "),x(4,"a",5),de(5," contact support "),B()()())}let pse=(()=>{class n{constructor(){this.label="",this.isLoading=!1,this.byClick=new te,this.status=oa}get title(){return this.label?this.label[0].toUpperCase()+this.label?.substring(1).toLowerCase():""}get isCompleted(){return this.label===this.status.COMPLETED}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-floating-button"]],inputs:{label:"label",isLoading:"isLoading"},outputs:{byClick:"byClick"},decls:3,vars:2,consts:[["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click",4,"ngIf","ngIfElse"],["error",""],["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click"],[1,"alert"],[1,"pi","pi-exclamation-circle"],["href","https://www.dotcms.com/contact-us/"]],template:function(e,i){if(1&e&&(S(0,dse,1,7,"button",0),S(1,hse,6,0,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",i.label!==i.status.ERROR)("ngIfElse",r)}},dependencies:[zn,Pt,Fs],styles:["[_nghost-%COMP%] .p-button-label{text-transform:unset}[_nghost-%COMP%] .p-button{display:inline-block}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:rgb(var(--color-main_rgb))}[_nghost-%COMP%] .p-button:disabled{background-color:#000!important;color:#fff!important;opacity:1}[_nghost-%COMP%] .p-button.completed{background:rgb(var(--color-main_rgb))!important}.alert[_ngcontent-%COMP%]{background:#ffffff;color:#d0021b;border:1px solid #d0021b;border-radius:2px;padding:10px;display:flex;align-items:center;justify-content:center;gap:5px}.alert[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#d0021b}"]}),n})();const gse=n=>new it({key:n.pluginKey,view:t=>new mse({view:t,...n})});class mse{constructor({dotImageService:t,editor:e,component:i,element:r,view:o}){this.preventHide=!1,this.$destroy=new Me,this.editor=e,this.element=r,this.view=o,this.component=i,this.dotImageService=t,this.component.instance.byClick.pipe(Yn(this.$destroy)).subscribe(()=>this.uploadImagedotCMS()),this.element.remove(),this.element.style.visibility="visible"}update(t,e){const{state:i,composing:r}=t,{doc:o,selection:s}=i,{empty:a,ranges:l}=s,c=e&&e.doc.eq(o)&&e.selection.eq(s);if(r||c||this.preventHide)return void(this.preventHide=!1);const u=Math.min(...l.map(p=>p.$from.pos)),d=o.nodeAt(u)?.type.name,h=this.editor.getAttributes(hi.name);a||d!=hi.name||h?.data?this.hide():(this.imageUrl=h?.src,this.updateButtonLabel("Import to dotCMS"),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{const p=t.nodeDOM(u);return(({viewCoords:n,nodeCoords:t})=>{const{bottom:i,left:r,top:o}=t,{bottom:s}=n,l=Math.ceil(s-i)<0?s:o-65,c=othis.updateButtonLabel(t)}).pipe($n(1),yn(()=>this.updateButtonLoading(!1))).subscribe(t=>{const e=t[0];this.updateButtonLabel(oa.COMPLETED),this.updateImageNode(e[Object.keys(e)[0]])},()=>{this.updateButtonLabel(oa.ERROR),this.setPreventHide()})}updateButtonLabel(t){this.component.instance.label=t,this.component.changeDetectorRef.detectChanges()}updateButtonLoading(t){this.component.instance.isLoading=t,this.component.changeDetectorRef.detectChanges()}}const Ase=new _t("floating-button");function bse(n,t){const e=t.createComponent(pse),i=e.location.nativeElement,r=n.get(xh);return Ft.create({addProseMirrorPlugins(){return i?[gse({...this.options,dotImageService:r,component:e,pluginKey:Ase,editor:this.editor,element:i})]:[]}})}function yse(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-asset-search",6),K("addAsset",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)("languageId",e.languageId)}}function _se(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-upload-asset",7),K("uploadedFile",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)}}function Ese(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-external-asset",8),K("addAsset",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)}}let nL=(()=>{class n{constructor(){this.languageId=Um}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-form"]],inputs:{languageId:"languageId",type:"type",onSelectAsset:"onSelectAsset"},decls:8,vars:5,consts:[[1,"tabview-container"],["header","dotCMS","leftIcon","pi pi-images",3,"cache"],["pTemplate","content"],["leftIcon","pi pi-folder",3,"cache","header"],["leftIcon","pi pi-link",3,"cache","header"],[1,"wrapper"],[3,"type","languageId","addAsset"],[3,"type","uploadedFile"],[3,"type","addAsset"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"p-tabView")(2,"p-tabPanel",1),S(3,yse,2,2,"ng-template",2),B(),x(4,"p-tabPanel",3),S(5,_se,2,1,"ng-template",2),B(),x(6,"p-tabPanel",4),S(7,Ese,2,1,"ng-template",2),B()()()),2&e&&(v(2),C("cache",!1),v(2),C("cache",!1)("header","Upload "+i.type),v(2),C("cache",!1)("header",i.type+" URL"))},styles:["[_nghost-%COMP%]{border:1px solid #b3b1b8;display:block}.tabview-container[_ngcontent-%COMP%]{width:720px;background:#ffffff}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25rem;width:100%}[_nghost-%COMP%] .p-tabview-nav{padding:0 2rem}"],changeDetection:0}),n})();class Cse{constructor({editor:t,view:e,pluginKey:i,render:r}){this.editor=t,this.view=e,this.pluginKey=i,this.render=r,this.editor.on("focus",()=>this.render().onHide(this.editor))}update(t,e){const i=this.pluginKey?.getState(t.state),r=e?this.pluginKey?.getState(e):{open:!1},{state:o}=t,{selection:s}=o;i?.open!==r?.open&&(i?.open?this.render().onStart({editor:this.editor,type:i.type,getPosition:()=>{const{from:a,to:l}=s;return ul(t,a,l)}}):this.render().onHide(this.editor))}destroy(){this.render().onDestroy()}}const vse=n=>new it({key:n.pluginKey,view:t=>new Cse({view:t,...n}),state:{init:()=>({open:!1,type:null}),apply(t,e,i){const{open:r,type:o}=t.getMeta(n.pluginKey)||{},s=n.pluginKey?.getState(i);return"boolean"==typeof r?{open:r,type:o}:s||e}}}),$m=new _t("bubble-image-form"),Mse={interactive:!0,duration:0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},wse=n=>{let t,e,i;function r({editor:c,type:u,getPosition:d}){(function a(c){const{element:u}=c.options;t||!!!u.parentElement||(t=Xo(u.parentElement,Mse))})(c),function l(c,u){e=n.createComponent(nL),e.instance.languageId=c.storage.dotConfig.lang,e.instance.type=u,e.instance.onSelectAsset=d=>{c.chain().insertAsset({type:u,payload:d}).addNextLine().closeAssetForm().run()},i=e.location.nativeElement,e.changeDetectorRef.detectChanges()}(c,u),t.setProps({content:i,getReferenceClientRect:d,onClickOutside:()=>o(c)}),t.show()}function o(c){c.commands.closeAssetForm(),t?.hide(),e?.destroy()}function s(){t?.destroy(),e?.destroy()}return fM.extend({name:"bubbleAssetForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:$m}),addCommands:()=>({openAssetForm:({type:c})=>({chain:u})=>u().command(({tr:d})=>(d.setMeta($m,{open:!0,type:c}),!0)).freezeScroll(!0).run(),closeAssetForm:()=>({chain:c})=>c().command(({tr:u})=>(u.setMeta($m,{open:!1}),!0)).freezeScroll(!1).run(),insertAsset:({type:c,payload:u})=>({chain:d})=>{switch(c){case"video":return d().setVideo(u).run();case"image":return d().addDotImage(u).run()}}}),addProseMirrorPlugins(){return[vse({pluginKey:$m,editor:this.editor,render:()=>({onStart:r,onHide:o,onDestroy:s})})]}})};let Dse=(()=>{class n extends AN{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=vn(n)))(i||n)}}(),n.\u0275cmp=ve({type:n,selectors:[["dot-message"]],features:[lt],decls:2,vars:2,consts:[[3,"ngClass"]],template:function(e,i){1&e&&(x(0,"span",0),de(1),B()),2&e&&(C("ngClass",i.data.type),v(1),pt(i.data.message))},dependencies:[zn],styles:["dotcms-message{background-color:#b3b1b8;display:block;padding:16px}\n"],encapsulation:2}),n})();const DM=new it({state:{init:()=>kt.empty,apply(n,t){t=t.map(n.mapping,n.doc);const e=n.getMeta(this);if(e&&e.add){const r=wn.widget(e.add.pos,e.add.element,{key:e.add.id});t=t.add(n.doc,[r])}else e&&e.remove&&(t=t.remove(t.find(null,null,i=>i.key==e.remove.id)));return t}},props:{decorations(n){return this.getState(n)}}}),Sse=(n,t)=>Ft.create({name:"imageUpload",addProseMirrorPlugins(){const e=n.get(xh),i=this.editor;function r(u){let d;if(d="drop"===u.type?u.dataTransfer.files:u.clipboardData.files,d.length>0)for(let h=0;h1)||u.includes("image")}function a(u,d,h){const p=d[0].name;(function s(u,d,h){const p=t.createComponent(Dse),f=u.state.tr;p.instance.data={message:"Uploading...",type:"info"},p.changeDetectorRef.detectChanges(),f.setMeta(DM,{add:{id:h,pos:d,element:p.location.nativeElement}}),u.dispatch(f)})(u,h,p),e.publishContent({data:d}).pipe($n(1)).subscribe(f=>{const g=f[0][Object.keys(f[0])[0]],{asset:m,name:A}=g;i.commands.insertContentAt(h,{attrs:{data:g,src:m,title:A,alt:A},type:hi.name})},f=>alert(f.message),()=>function l(u){const{view:d}=i,{state:h}=d;d.dispatch(h.tr.setMeta(DM,{remove:{id:u}})),nN(d)}(p))}return[DM,new it({key:new _t("imageUpload"),props:{handleDOMEvents:{click(u,d){const{doc:h,selection:p}=u.state,{ranges:f}=p,g=Math.min(...f.map(y=>y.$from.pos)),m=h.nodeAt(g);return d.target?.closest("a")&&m.type.name===hi.name&&d.preventDefault(),!0},paste(u,d){if(!o())return!0;const h=d.clipboardData.getData("Text"),{from:p}=function c(u){const{state:d}=u,{selection:h}=d,{ranges:p}=h;return{from:Math.min(...p.map(m=>m.$from.pos)),to:Math.max(...p.map(m=>m.$to.pos))}}(u);if(r(d)){if(d.preventDefault(),1!==d.clipboardData.files.length)return alert("Can paste just one image at a time"),!0;a(u,Array.from(d.clipboardData.files),p)}else(function Ise(n){return null!=n.match(/\.(jpeg|jpg|gif|png)$/)})(h)&&i.commands.insertContentAt(p,{attrs:{src:h},type:hi.name})},drop(u,d){if(o()&&r(d)){if(d.preventDefault(),1!==d.dataTransfer.files.length)return alert("Can drop just one image at a time"),!1;const{pos:h}=u.posAtCoords({left:d.clientX,top:d.clientY});a(u,Array.from(d.dataTransfer.files),h)}return!1}}}})]}}),Th=new _t("freeze-scroll"),xse=Ft.create({name:"freezeScroll",addCommands:()=>({freezeScroll:n=>({chain:t})=>t().command(({tr:e})=>(e.setMeta(Th,{freezeScroll:n}),!0)).run()}),addProseMirrorPlugins:()=>[Tse]}),Tse=new it({key:Th,state:{init:()=>({freezeScroll:!1}),apply(n,t,e){const{freezeScroll:i}=n.getMeta(Th)||{},r=Th?.getState(e);return"boolean"==typeof i?{freezeScroll:i}:r||t}}});let Bse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();class mr extends Me{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Cr;return this._value}next(t){super.next(this._value=t)}}function iL(n,t,e,i){return wo(e)&&(i=e,e=void 0),i?iL(n,t,e).pipe(fe(r=>Er(r)?i(...r):i(r))):new et(r=>{rL(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function rL(n,t,e,i,r){let o;if(function Pse(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function kse(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function Ose(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;sthis.total&&this.destination.next(t)}}const oL={leading:!0,trailing:!1};class jse{constructor(t,e,i,r){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=r}call(t,e){return e.subscribe(new zse(t,this.duration,this.scheduler,this.leading,this.trailing))}}class zse extends Ge{constructor(t,e,i,r,o){super(t),this.duration=e,this.scheduler=i,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Hse,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function Hse(n){const{subscriber:t}=n;t.clearThrottle()}function sL(n){return!!n&&(n instanceof et||"function"==typeof n.lift&&"function"==typeof n.subscribe)}class aL extends Ge{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Vse extends Ge{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function lL(n,t,e,i,r=new Vse(n,e,i)){if(!r.closed)return t instanceof et?t.subscribe(r):xi(t)(r)}const cL={};function IM(...n){let t,e;return ds(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Er(n[0])&&(n=n[0]),ps(n,e).lift(new Gse(t))}class Gse{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Yse(t,this.resultSelector))}}class Yse extends aL{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(cL),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{let e;return"function"==typeof n[n.length-1]&&(e=n.pop()),t.lift(new Wse(n,e))}}class Wse{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new Jse(t,this.observables,this.project))}}class Jse extends aL{constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class $se{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new qse(t,this.compare,this.keySelector))}}class qse extends Ge{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function uL(){return n=>new et(t=>{let e,i;const r=new We;return r.add(n.subscribe({complete:()=>{e&&t.next(i),t.complete()},error:o=>{t.error(o)},next:o=>{i=o,e||(e=NO.schedule(()=>{t.next(i),e=void 0}),r.add(e))}})),r})}function xM(n){return"function"==typeof n.ngrxOnStoreInit}function TM(n){return"function"==typeof n.ngrxOnStateInit}const eae=new $("@ngrx/component-store Initial State");let tae=(()=>{class n{constructor(e){this.destroySubject$=new ig(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new ig(1),this.isInitialized=!1,this.notInitializedErrorMessage=`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`,this.state$=this.select(i=>i),this.\u0275hasProvider=!1,e&&this.initState(e),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(e){return i=>{let r;const s=(sL(i)?i:ae(i)).pipe(Wo(a=>this.isInitialized?wu([a],EE).pipe(SM(this.stateSubject$)):Ss(()=>new Error(this.notInitializedErrorMessage))),Yn(this.destroy$)).subscribe({next:([a,l])=>{this.stateSubject$.next(e(l,a))},error:a=>{r=a,this.stateSubject$.error(a)}});if(r)throw r;return s}}initState(e){wu([e],EE).subscribe(i=>{this.isInitialized=!0,this.stateSubject$.next(i)})}setState(e){"function"!=typeof e?this.initState(e):this.updater(e)()}patchState(e){const i="function"==typeof e?e(this.get()):e;this.updater((r,o)=>({...r,...o}))(i)}get(e){if(!this.isInitialized)throw new Error(this.notInitializedErrorMessage);let i;return this.stateSubject$.pipe($n(1)).subscribe(r=>{i=e?e(r):r}),i}select(...e){const{observables:i,projector:r,config:o}=function nae(n){const t=Array.from(n);let i,e={debounce:!1};const r=t.pop();return"function"!=typeof r?(e={...e,...r},i=t.pop()):i=r,{observables:t,projector:i,config:e}}(e);let s;return s=0===i.length?this.stateSubject$.pipe(o.debounce?uL():a=>a,fe(a=>r(a))):IM(i).pipe(o.debounce?uL():a=>a,fe(a=>r(...a))),s.pipe(function Kse(n,t){return e=>e.lift(new $se(n,t))}(),function Xse(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function Zse({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new ig(n,t,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}({refCount:!0,bufferSize:1}),Yn(this.destroy$))}effect(e){const i=new Me;return e(i).pipe(Yn(this.destroy$)).subscribe(),r=>(sL(r)?r:ae(r)).pipe(Yn(this.destroy$)).subscribe(s=>{i.next(s)})}checkProviderForHooks(){LO.schedule(()=>{if(function qG(){return mT=!0,gT}()&&(xM(this)||TM(this))&&!this.\u0275hasProvider){const e=[xM(this)?"OnStoreInit":"",TM(this)?"OnStateInit":""].filter(i=>i);console.warn(`@ngrx/component-store: ${this.constructor.name} has the ${e.join(" and ")} lifecycle hook(s) implemented without being provided using the provideComponentStore(${this.constructor.name}) function. To resolve this, provide the component store via provideComponentStore(${this.constructor.name})`)}})}}return n.\u0275fac=function(e){return new(e||n)(j(eae,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const iae={loading:!0,preventScroll:!1,contentlets:[],languageId:1,search:"",assetType:null};let dL=(()=>{class n extends tae{constructor(e,i){super(iae),this.searchService=e,this.dotLanguageService=i,this.vm$=this.select(({contentlets:r,loading:o,preventScroll:s})=>({contentlets:r,loading:o,preventScroll:s})),this.updateContentlets=this.updater((r,o)=>({...r,contentlets:o})),this.updateAssetType=this.updater((r,o)=>({...r,assetType:o})),this.updatelanguageId=this.updater((r,o)=>({...r,languageId:o})),this.updateLoading=this.updater((r,o)=>({...r,loading:o})),this.updatePreventScroll=this.updater((r,o)=>({...r,preventScroll:o})),this.updateSearch=this.updater((r,o)=>({...r,search:o})),this.searchContentlet=this.effect(r=>r.pipe(yn(o=>{this.updateLoading(!0),this.updateSearch(o)}),SM(this.state$),fe(([o,s])=>({...s,search:o})),nn(o=>this.searchContentletsRequest(this.params({...o}),[])))),this.nextBatch=this.effect(r=>r.pipe(SM(this.state$),fe(([o,s])=>({...s,offset:o})),nn(({contentlets:o,...s})=>this.searchContentletsRequest(this.params(s),o)))),this.dotLanguageService.getLanguages().subscribe(r=>{this.languages=r})}searchContentletsRequest(e,i){return this.searchService.get(e).pipe(fe(({jsonObjectView:{contentlets:r}})=>{const o=this.setContentletLanguage(r);return this.updateLoading(!1),this.updatePreventScroll(!r?.length),this.updateContentlets([...i,...o])}))}params({search:e,assetType:i,offset:r=0,languageId:o}){return{query:` +catchall:${e}* title:'${e}'^15 +languageId:${o} +baseType:(4 OR 9) +metadata.contenttype:${i||""}/* +deleted:false +working:true`,sortOrder:Nm.ASC,limit:20,offset:r}}setContentletLanguage(e){return e.map(i=>({...i,language:this.getLanguage(i.languageId)}))}getLanguage(e){const{languageCode:i,countryCode:r}=this.languages[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(j(Bte),j(lM))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const rae=["element"],oae=["content"];function sae(n,t){1&n&&Mt(0)}const BM=function(n,t){return{$implicit:n,options:t}};function aae(n,t){if(1&n&&(ct(0),S(1,sae,1,0,"ng-container",7),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Xi(2,BM,e.loadedItems,e.getContentOptions()))}}function lae(n,t){1&n&&Mt(0)}function cae(n,t){if(1&n&&(ct(0),S(1,lae,1,0,"ng-container",7),ut()),2&n){const e=t.$implicit,i=t.index,r=w(3);v(1),C("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Xi(2,BM,e,r.getOptions(i)))}}const uae=function(n){return{"p-scroller-loading":n}};function dae(n,t){if(1&n&&(x(0,"div",8,9),S(2,cae,2,5,"ng-container",10),B()),2&n){const e=w(2);C("ngClass",Wt(4,uae,e.d_loading))("ngStyle",e.contentStyle),v(2),C("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function hae(n,t){1&n&&ie(0,"div",11),2&n&&C("ngStyle",w(2).spacerStyle)}function pae(n,t){1&n&&Mt(0)}const fae=function(n){return{numCols:n}},hL=function(n){return{options:n}};function gae(n,t){if(1&n&&(ct(0),S(1,pae,1,0,"ng-container",7),ut()),2&n){const e=t.index,i=w(4);v(1),C("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",Wt(4,hL,i.getLoaderOptions(e,i.both&&Wt(2,fae,i._numItemsInViewport.cols))))}}function mae(n,t){if(1&n&&(ct(0),S(1,gae,2,6,"ng-container",14),ut()),2&n){const e=w(3);v(1),C("ngForOf",e.loaderArr)}}function Aae(n,t){1&n&&Mt(0)}const bae=function(){return{styleClass:"p-scroller-loading-icon"}};function yae(n,t){if(1&n&&(ct(0),S(1,Aae,1,0,"ng-container",7),ut()),2&n){const e=w(4);v(1),C("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",Wt(3,hL,io(2,bae)))}}function _ae(n,t){1&n&&ie(0,"i",16)}function Eae(n,t){if(1&n&&(S(0,yae,2,5,"ng-container",0),S(1,_ae,1,0,"ng-template",null,15,on)),2&n){const e=Qt(2);C("ngIf",w(3).loaderIconTemplate)("ngIfElse",e)}}const Cae=function(n){return{"p-component-overlay":n}};function vae(n,t){if(1&n&&(x(0,"div",12),S(1,mae,2,1,"ng-container",0),S(2,Eae,3,2,"ng-template",null,13,on),B()),2&n){const e=Qt(3),i=w(2);C("ngClass",Wt(3,Cae,!i.loaderTemplate)),v(1),C("ngIf",i.loaderTemplate)("ngIfElse",e)}}const Mae=function(n,t,e){return{"p-scroller":!0,"p-scroller-inline":n,"p-both-scroll":t,"p-horizontal-scroll":e}};function wae(n,t){if(1&n){const e=Re();ct(0),x(1,"div",2,3),K("scroll",function(r){return re(e),oe(w().onContainerScroll(r))}),S(3,aae,2,5,"ng-container",0),S(4,dae,3,6,"ng-template",null,4,on),S(6,hae,1,1,"div",5),S(7,vae,4,5,"div",6),B(),ut()}if(2&n){const e=Qt(5),i=w();v(1),Gt(i._styleClass),C("ngStyle",i._style)("ngClass",Na(10,Mae,i.inline,i.both,i.horizontal)),Ot("id",i._id)("tabindex",i.tabindex),v(2),C("ngIf",i.contentTemplate)("ngIfElse",e),v(3),C("ngIf",i._showSpacer),v(1),C("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function Dae(n,t){1&n&&Mt(0)}const Iae=function(n,t){return{rows:n,columns:t}};function Sae(n,t){if(1&n&&(ct(0),S(1,Dae,1,0,"ng-container",7),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Xi(5,BM,e.items,Xi(2,Iae,e._items,e.loadedColumns)))}}function xae(n,t){if(1&n&&(Ri(0),S(1,Sae,2,8,"ng-container",17)),2&n){const e=w();v(1),C("ngIf",e.contentTemplate)}}const Tae=["*"];let Bae=(()=>{class n{constructor(e,i){this.cd=e,this.zone=i,this.onLazyLoad=new te,this.onScroll=new te,this.onScrollIndexChange=new te,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._step=0,this._delay=0,this._resizeDelay=10,this._appendOnly=!1,this._inline=!1,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.page=0,this.numItemsInViewport=0,this.lastScrollPos=0,this.lazyLoadState={},this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1}get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}ngOnInit(){this.setInitialState()}ngOnChanges(e){let i=!1;if(e.loading){const{previousValue:r,currentValue:o}=e.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:r,currentValue:o}=e.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){const{previousValue:r,currentValue:o}=e.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&this.init()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){this.viewInit()}ngAfterViewChecked(){this.initialized||this.viewInit(),this.calculateAutoSize()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Z.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Z.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=Z.getHeight(this.elementViewChild.nativeElement),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||Z.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){const{numToleratedItems:r}=this.calculateNumItems(),o=this.getContentPosition(),s=(c=0,u)=>c<=u?0:c,a=(c,u,d)=>c*u+d,l=(c=0,u=0)=>this.scrollTo({left:c,top:u,behavior:i});this.both?(this.first={rows:s(e[0],r[0]),cols:s(e[1],r[1])},l(a(this.first.cols,this._itemSize[1],o.left),a(this.first.rows,this._itemSize[0],o.top))):(this.first=s(e,r),this.horizontal?l(a(this.first,this._itemSize,o.left),0):l(0,a(this.first,this._itemSize,o.top)))}scrollInView(e,i,r="auto"){if(i){const{first:o,viewport:s}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:r}),c="to-end"===i;if("to-start"===i){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){const u=(s.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){const u=(s.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,r)}getRenderedRange(){const e=(o,s)=>Math.floor(o/(s||o));let i=this.first,r=0;if(this.elementViewChild?.nativeElement){const{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;this.both?(i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=e(this.horizontal?s:o,this._itemSize),r=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){const e=this.getContentPosition(),i=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0,r=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0,o=(c,u)=>Math.ceil(c/(u||c)),s=c=>Math.ceil(c/2),a=this.both?{rows:o(r,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:r,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto";const{offsetWidth:e,offsetHeight:i}=this.contentEl;(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=(ethis.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(o("height",r),o("width",i)):o("height",r)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),i=(r,o,s,a=0)=>this.spacerStyle={...this.spacerStyle,[`${r}`]:(o||[]).length*s+a+"px"};this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const i=e?e.first:this.first,r=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${s}px, ${a}px, 0)`};if(this.both)o(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{const s=r(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){const i=e.target,r=this.getContentPosition(),o=(m,A)=>m?m>A?m-A:m:0,s=(m,A)=>Math.floor(m/(A||m)),a=(m,A,y,E,b,D)=>m<=b?b:D?y-E-b:A+b-1,l=(m,A,y,E,b,D,I)=>m<=D?0:Math.max(0,I?mA?y:m-2*D),c=(m,A,y,E,b,D=!1)=>{let I=A+E+2*b;return m>=b&&(I+=b+1),this.getLast(I,D)},u=o(i.scrollTop,r.top),d=o(i.scrollLeft,r.left);let h=this.both?{rows:0,cols:0}:0,p=this.last,f=!1,g=this.lastScrollPos;if(this.both){const m=this.lastScrollPos.top<=u,A=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(m||A)){const y={rows:s(u,this._itemSize[0]),cols:s(d,this._itemSize[1])},E={rows:a(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],m),cols:a(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],A)};h={rows:l(y.rows,E.rows,this.first.rows,0,0,this.d_numToleratedItems[0],m),cols:l(y.cols,E.cols,this.first.cols,0,0,this.d_numToleratedItems[1],A)},p={rows:c(y.rows,h.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(y.cols,h.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=h.rows!==this.first.rows||p.rows!==this.last.rows||h.cols!==this.first.cols||p.cols!==this.last.cols,g={top:u,left:d}}}else{const m=this.horizontal?d:u,A=this.lastScrollPos<=m;if(!this._appendOnly||this._appendOnly&&A){const y=s(m,this._itemSize);h=l(y,a(y,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,A),this.first,0,0,this.d_numToleratedItems,A),p=c(y,h,0,this.numItemsInViewport,this.d_numToleratedItems),f=h!==this.first||p!==this.last,g=m}}return{first:h,last:p,isRangeChanged:f,scrollPos:g}}onScrollChange(e){const{first:i,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){const a={first:i,last:r};if(this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){this.windowResizeListener||this.zone.runOutsideAngular(()=>{this.windowResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.windowResizeListener),window.addEventListener("orientationchange",this.windowResizeListener)})}unbindResizeListener(){this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),window.removeEventListener("orientationchange",this.windowResizeListener),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Z.isVisible(this.elementViewChild?.nativeElement)){const[e,i]=[Z.getWidth(this.elementViewChild.nativeElement),Z.getHeight(this.elementViewChild.nativeElement)],[r,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:0===r,last:r===i-1,even:r%2==0,odd:r%2!=0}}getLoaderOptions(e,i){const r=this.loaderArr.length;return{index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,...i}}}return n.\u0275fac=function(e){return new(e||n)(T(ai),T(At))},n.\u0275cmp=ve({type:n,selectors:[["p-scroller"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(rae,5),Zt(oae,5)),2&e){let r;He(r=Ve())&&(i.elementViewChild=r.first),He(r=Ve())&&(i.contentViewChild=r.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[yi],ngContentSelectors:Tae,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(e,i){if(1&e&&(eo(),S(0,wae,8,14,"ng-container",0),S(1,xae,2,1,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",!i._disabled)("ngIfElse",r)}},dependencies:[zn,tr,Pt,Yo,nr],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}.p-scroller-inline .p-scroller-content{position:static}\n"],encapsulation:2}),n})(),pL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();var Bh=(()=>(function(n){n.SHOW_VIDEO_THUMBNAIL="SHOW_VIDEO_THUMBNAIL"}(Bh||(Bh={})),Bh))(),Oh=(()=>(function(n){n.FULFILLED="fulfilled",n.REJECTED="rejected"}(Oh||(Oh={})),Oh))();function Oae(n,t){if(1&n&&(x(0,"div",3),ie(1,"dot-contentlet-thumbnail",4),B()),2&n){const e=w();v(1),C("contentlet",e.contentlet)("cover",!1)("iconSize","72px")("showVideoThumbnail",e.showVideoThumbnail)}}function kae(n,t){if(1&n&&(x(0,"h2",5),de(1),B()),2&n){const e=w();v(1),pt((null==e.contentlet?null:e.contentlet.fileName)||(null==e.contentlet?null:e.contentlet.title))}}function Pae(n,t){if(1&n&&(x(0,"div",6)(1,"span",7),de(2),B(),ie(3,"dot-state-icon",8),B()),2&n){const e=w();v(2),pt(e.contentlet.language),v(1),C("state",e.contentlet)}}let Fae=(()=>{class n{constructor(e){this.dotMarketingConfigService=e,this.showVideoThumbnail=!0}ngOnInit(){this.showVideoThumbnail=this.dotMarketingConfigService.getProperty(Bh.SHOW_VIDEO_THUMBNAIL)}getImage(e){return`/dA/${e}/500w/20q`}getContentletIcon(){return"FILEASSET"!==this.contentlet?.baseType?this.contentlet?.contentTypeIcon:this.contentlet?.__icon__}}return n.\u0275fac=function(e){return new(e||n)(T(qR))},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card"]],inputs:{contentlet:"contentlet"},decls:4,vars:1,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],["pTemplate","footer"],[1,"thumbnail-container"],[3,"contentlet","cover","iconSize","showVideoThumbnail"],[1,"title"],[1,"state"],[1,"badge"],["size","16px",3,"state"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,Oae,2,4,"ng-template",0),S(2,kae,2,1,"h2",1),S(3,Pae,4,2,"ng-template",2),B()),2&e&&(v(2),C("pTemplate","title"))},dependencies:[mM,ar],styles:["[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;cursor:pointer;display:flex;gap:1rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0;height:94px;width:94px;min-height:94px;min-width:94px;border-radius:4px 0 0 4px}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container{padding:10px;width:100%;height:100%;background:#f1f3f4}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail{width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail img{object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-body{flex-grow:1;display:flex;flex-direction:column;overflow:hidden;padding:.75rem .75rem .75rem 0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{flex-grow:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h2{font-size:16px;line-height:140%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}[_nghost-%COMP%] .badge{background:#e0e9f6;border-radius:2px;color:#11152e;font-size:12px;line-height:140%;padding:.2rem .5rem;display:flex;align-items:center}"],changeDetection:0}),n})(),Rae=(()=>{class n{constructor(){this.shape="rectangle",this.animation="wave",this.borderRadius=null,this.size=null,this.width="100%",this.height="1rem"}containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-none":"none"===this.animation}}containerStyle(){return this.size?{...this.style,width:this.size,height:this.size,borderRadius:this.borderRadius}:{...this.style,width:this.width,height:this.height,borderRadius:this.borderRadius}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-skeleton"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},decls:1,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(e,i){1&e&&ie(0,"div",0),2&e&&(Gt(i.styleClass),C("ngClass",i.containerClass())("ngStyle",i.containerStyle()))},dependencies:[zn,nr],styles:['.p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:"";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n'],encapsulation:2,changeDetection:0}),n})(),fL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();function Nae(n,t){1&n&&ie(0,"p-skeleton",3)}function Lae(n,t){1&n&&(x(0,"div",4),ie(1,"p-skeleton",5)(2,"p-skeleton",6),B())}let Qae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card-skeleton"]],decls:4,vars:0,consts:[["pTemplate","header"],["height","1rem"],["pTemplate","footer"],["shape","square","size","94px"],[1,"state"],["width","2rem","height","1rem"],["shape","circle","size","16px"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,Nae,1,0,"ng-template",0),ie(2,"p-skeleton",1),S(3,Lae,3,0,"ng-template",2),B())},dependencies:[mM,ar,Rae],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;cursor:pointer;display:flex;gap:.5rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0}[_nghost-%COMP%] .p-card .p-card-body{flex:1;overflow:hidden;padding:.75rem .5rem .75rem 0;display:flex;flex-direction:column}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{flex-grow:1}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}"],changeDetection:0}),n})();function Uae(n,t){if(1&n){const e=Re();x(0,"dot-asset-card",7),K("click",function(){re(e);const r=w().$implicit;return oe(w(2).selectedItem.emit(r[0]))}),B()}2&n&&C("contentlet",w().$implicit[0])}function jae(n,t){if(1&n){const e=Re();x(0,"dot-asset-card",7),K("click",function(){re(e);const r=w().$implicit;return oe(w(2).selectedItem.emit(r[1]))}),B()}2&n&&C("contentlet",w().$implicit[1])}function zae(n,t){if(1&n&&(x(0,"div",5),S(1,Uae,1,1,"dot-asset-card",6),S(2,jae,1,1,"dot-asset-card",6),B()),2&n){const e=t.$implicit;v(1),C("ngIf",e[0]),v(1),C("ngIf",e[1])}}function Hae(n,t){if(1&n){const e=Re();x(0,"p-scroller",3),K("onScrollIndexChange",function(r){return re(e),oe(w().onScrollIndexChange(r))}),S(1,zae,3,2,"ng-template",4),B()}if(2&n){const e=w();C("itemSize",110)("items",e.rows)("lazy",!0)}}function Vae(n,t){1&n&&(x(0,"div",5),ie(1,"dot-asset-card-skeleton")(2,"dot-asset-card-skeleton"),B())}function Gae(n,t){if(1&n&&(x(0,"div",8),S(1,Vae,3,0,"div",9),B()),2&n){const e=w();v(1),C("ngForOf",e.loadingItems)}}function Yae(n,t){if(1&n&&(x(0,"div",10),ie(1,"img",11),x(2,"p"),de(3,"No results found, try searching again"),B()()),2&n){const e=w();v(1),C("src",e.icon,No)}}let Wae=(()=>{class n{constructor(){this.nextBatch=new te,this.selectedItem=new te,this.done=!1,this.loading=!0,this.loadingItems=[null,null,null],this.icon=Ns("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCA0MCA0MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuMDc2MTcgOC41NTcxMkgwLjA5NTIxNDhWMzYuNDIzOEMwLjA5NTIxNDggMzguNjEzMyAxLjg4NjY0IDQwLjQwNDcgNC4wNzYxNyA0MC40MDQ3SDMxLjk0MjhWMzYuNDIzOEg0LjA3NjE3VjguNTU3MTJaTTM1LjkyMzggMC41OTUyMTVIMTIuMDM4MUM5Ljg0ODU1IDAuNTk1MjE1IDguMDU3MTIgMi4zODY2NCA4LjA1NzEyIDQuNTc2MTdWMjguNDYxOUM4LjA1NzEyIDMwLjY1MTQgOS44NDg1NSAzMi40NDI4IDEyLjAzODEgMzIuNDQyOEgzNS45MjM4QzM4LjExMzMgMzIuNDQyOCAzOS45MDQ3IDMwLjY1MTQgMzkuOTA0NyAyOC40NjE5VjQuNTc2MTdDMzkuOTA0NyAyLjM4NjY0IDM4LjExMzMgMC41OTUyMTUgMzUuOTIzOCAwLjU5NTIxNVpNMzUuOTIzOCAyOC40NjE5SDEyLjAzODFWNC41NzYxN0gzNS45MjM4VjI4LjQ2MTlaTTIxLjk5MDUgMjQuNDgwOUgyNS45NzE0VjE4LjUwOTVIMzEuOTQyOFYxNC41Mjg1SDI1Ljk3MTRWOC41NTcxMkgyMS45OTA1VjE0LjUyODVIMTYuMDE5VjE4LjUwOTVIMjEuOTkwNVYyNC40ODA5WiIgZmlsbD0iIzU3NkJFOCIvPgo8L3N2Zz4K"),this._itemRows=[],this._offset=0}set contentlets(e){this._offset=e?.length||0,this._itemRows=this.createRowItem(e)}get rows(){return[...this._itemRows]}onScrollIndexChange(e){this.done||e.last===this.rows.length&&this.nextBatch.emit(this._offset)}createRowItem(e=[]){const i=[];return e.forEach(r=>{const o=i.length-1;i[o]?.length<2?i[o].push(r):i.push([r])}),i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card-list"]],inputs:{done:"done",loading:"loading",contentlets:"contentlets"},outputs:{nextBatch:"nextBatch",selectedItem:"selectedItem"},decls:5,vars:2,consts:[["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange",4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange"],["pTemplate","item"],[1,"card-list-row"],[3,"contentlet","click",4,"ngIf"],[3,"contentlet","click"],[1,"wrapper","justify-start"],["class","card-list-row",4,"ngFor","ngForOf"],[1,"wrapper"],["width","42px","alt","No results found",3,"src"]],template:function(e,i){if(1&e&&(S(0,Hae,2,3,"p-scroller",0),S(1,Gae,2,1,"ng-template",null,1,on),S(3,Yae,4,1,"ng-template",null,2,on)),2&e){const r=Qt(2),o=Qt(4);C("ngIf",(null==i.rows?null:i.rows.length)&&!i.loading)("ngIfElse",i.loading?r:o)}},dependencies:[tr,Pt,ar,Bae,Fae,Qae],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:20rem;flex-direction:column}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{padding:0 2rem;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-grow:1;height:250px;gap:0 1rem;overflow:hidden}[_nghost-%COMP%] .justify-start[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1rem 0;font-size:18px}[_nghost-%COMP%] dot-asset-card, [_nghost-%COMP%] dot-asset-card-skeleton{width:calc(50% - .5rem)}[_nghost-%COMP%] .p-scroller-content{padding:0 2rem;max-width:100%}[_nghost-%COMP%] .card-list-row{display:flex;justify-content:space-between;width:100%;min-height:110px;gap:1rem}"],changeDetection:0}),n})();const Jae=["input"];function Kae(n,t){if(1&n){const e=Re();ct(0),x(1,"dot-asset-card-list",6),K("selectedItem",function(r){return re(e),oe(w().addAsset.emit(r))})("nextBatch",function(r){return re(e),oe(w().offset$.next(r))}),B(),ut()}if(2&n){const e=t.ngIf;v(1),C("contentlets",e.contentlets)("done",e.preventScroll)("loading",e.loading)}}let $ae=(()=>{class n{constructor(e){this.store=e,this.addAsset=new te,this.vm$=this.store.vm$,this.offset$=new mr(0),this.destroy$=new Me}set languageId(e){this.store.updatelanguageId(e)}set type(e){this.store.updateAssetType(e)}ngOnInit(){this.store.searchContentlet(""),this.offset$.pipe(Yn(this.destroy$),function Fse(n){return t=>t.lift(new Rse(n))}(1),function Use(n,t=Tc,e=oL){return i=>i.lift(new jse(n,t,e.leading,e.trailing))}(450)).subscribe(this.store.nextBatch),requestAnimationFrame(()=>this.input.nativeElement.focus())}ngAfterViewInit(){iL(this.input.nativeElement,"input").pipe(Yn(this.destroy$),zg(450)).subscribe(({target:e})=>{this.store.searchContentlet(e.value)})}ngOnDestroy(){this.destroy$.next(!0)}}return n.\u0275fac=function(e){return new(e||n)(T(dL))},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-search"]],viewQuery:function(e,i){if(1&e&&Zt(Jae,5),2&e){let r;He(r=Ve())&&(i.input=r.first)}},inputs:{languageId:"languageId",type:"type"},outputs:{addAsset:"addAsset"},features:[yt([dL])],decls:8,vars:3,consts:[[1,"search-box"],[1,"p-input-icon-right"],["autofocus","","type","text","pInputText","","placeholder","Search",1,"search"],["input",""],[1,"pi","pi-search"],[4,"ngIf"],[3,"contentlets","done","loading","selectedItem","nextBatch"]],template:function(e,i){1&e&&(ct(0),x(1,"div",0)(2,"span",1),ie(3,"input",2,3)(5,"i",4),B()(),ut(),S(6,Kae,2,3,"ng-container",5),La(7,"async")),2&e&&(v(6),C("ngIf",Qa(7,1,i.vm$)))},dependencies:[Pt,zm,Wae,YT],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.search-box[_ngcontent-%COMP%]{padding:0 2rem;flex-grow:1;display:flex;align-items:center}.search-box[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),n})();const qae=["input"];let Zae=(()=>{class n{constructor(e){this.fb=e,this.addAsset=new te,this.form=this.fb.group({url:["",[vE.required,vE.pattern("^((http|https)://)[-a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)$")]]}),requestAnimationFrame(()=>this.input.nativeElement.focus())}get placerHolder(){return"https://example.com/"+("video"===this.type?"video.mp4":"image.jpg")}onSubmit({url:e}){this.addAsset.emit(e)}}return n.\u0275fac=function(e){return new(e||n)(T(zE))},n.\u0275cmp=ve({type:n,selectors:[["dot-external-asset"]],viewQuery:function(e,i){if(1&e&&Zt(qae,5),2&e){let r;He(r=Ve())&&(i.input=r.first)}},inputs:{type:"type"},outputs:{addAsset:"addAsset"},decls:11,vars:6,consts:[[1,"wrapper",3,"formGroup","ngSubmit"],[1,"form-control"],["for","url"],["id","url","formControlName","url","autocomplete","off","type","text","pInputText","",3,"placeholder"],["input",""],[1,"footer"],[1,"error-message"],["type","submit","pButton","",3,"disabled"]],template:function(e,i){1&e&&(x(0,"form",0),K("ngSubmit",function(){return i.onSubmit(i.form.value)}),x(1,"div",1)(2,"label",2),de(3),B(),ie(4,"input",3,4),B(),x(6,"div",5)(7,"span",6),de(8,"Enter a valid url"),B(),x(9,"button",7),de(10,"Insert"),B()()()),2&e&&(C("formGroup",i.form),v(3),no("Insert ",i.type," URL"),v(1),C("placeholder",i.placerHolder),v(3),Ms("hide",!i.form.controls.url.invalid||i.form.pristine),v(2),C("disabled",i.form.invalid))},dependencies:[bg,wc,Pd,lg,Ic,jd,Fs,zm],styles:["[_nghost-%COMP%]{width:100%}.wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-end;flex-direction:column;padding:2rem;gap:1rem}.form-control[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:.75rem}.footer[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}.error-message[_ngcontent-%COMP%]{color:#c93926;font-size:.85rem;text-align:left}.hide[_ngcontent-%COMP%]{visibility:hidden}"],changeDetection:0}),n})();const ele=function(n,t,e){return{"border-width":n,width:t,height:e}};let tle=(()=>{class n{constructor(){this.borderSize="",this.size=""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-spinner"]],inputs:{borderSize:"borderSize",size:"size"},decls:1,vars:5,consts:[[3,"ngStyle"]],template:function(e,i){1&e&&ie(0,"div",0),2&e&&C("ngStyle",Na(1,ele,i.borderSize,i.size,i.size))},dependencies:[nr],styles:["div[_ngcontent-%COMP%]{border-radius:50%;width:36px;height:36px;display:inline-block;vertical-align:middle;font-size:10px;position:relative;text-indent:-9999em;border:7.2px solid rgba(var(--color-main_rgb),.2);border-left-color:var(--color-main);transform:translateZ(0);animation:load8 1.1s infinite linear;overflow:hidden}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})();function nle(n,t){1&n&&ie(0,"span",11),2&n&&C("innerHTML",w(2).$implicit.summary,qp)}function ile(n,t){1&n&&ie(0,"span",12),2&n&&C("innerHTML",w(2).$implicit.detail,qp)}function rle(n,t){if(1&n&&(ct(0),S(1,nle,1,1,"span",9),S(2,ile,1,1,"span",10),ut()),2&n){const e=w().$implicit;v(1),C("ngIf",e.summary),v(1),C("ngIf",e.detail)}}function ole(n,t){if(1&n&&(x(0,"span",15),de(1),B()),2&n){const e=w(2).$implicit;v(1),pt(e.summary)}}function sle(n,t){if(1&n&&(x(0,"span",16),de(1),B()),2&n){const e=w(2).$implicit;v(1),pt(e.detail)}}function ale(n,t){if(1&n&&(S(0,ole,2,1,"span",13),S(1,sle,2,1,"span",14)),2&n){const e=w().$implicit;C("ngIf",e.summary),v(1),C("ngIf",e.detail)}}function lle(n,t){if(1&n){const e=Re();x(0,"button",17),K("click",function(){re(e);const r=w().index;return oe(w(2).removeMessage(r))}),ie(1,"i",18),B()}}const cle=function(n,t){return{showTransitionParams:n,hideTransitionParams:t}},ule=function(n){return{value:"visible",params:n}},dle=function(n,t,e,i){return{"pi-info-circle":n,"pi-check":t,"pi-exclamation-triangle":e,"pi-times-circle":i}};function hle(n,t){if(1&n&&(x(0,"div",4)(1,"div",5),ie(2,"span",6),S(3,rle,3,2,"ng-container",1),S(4,ale,2,2,"ng-template",null,7,on),S(6,lle,2,0,"button",8),B()()),2&n){const e=t.$implicit,i=Qt(5),r=w(2);Gt("p-message p-message-"+e.severity),C("@messageAnimation",Wt(12,ule,Xi(9,cle,r.showTransitionOptions,r.hideTransitionOptions))),v(2),Gt("p-message-icon pi"+(e.icon?" "+e.icon:"")),C("ngClass",Mf(14,dle,"info"===e.severity,"success"===e.severity,"warn"===e.severity,"error"===e.severity)),v(1),C("ngIf",!r.escape)("ngIfElse",i),v(3),C("ngIf",r.closable)}}function ple(n,t){if(1&n&&(ct(0),S(1,hle,7,19,"div",3),ut()),2&n){const e=w();v(1),C("ngForOf",e.messages)}}function fle(n,t){1&n&&Mt(0)}function gle(n,t){if(1&n&&(x(0,"div",19)(1,"div",5),S(2,fle,1,0,"ng-container",20),B()()),2&n){const e=w();C("ngClass","p-message p-message-"+e.severity),v(2),C("ngTemplateOutlet",e.contentTemplate)}}let mle=(()=>{class n{constructor(e,i,r){this.messageService=e,this.el=i,this.cd=r,this.closable=!0,this.enableService=!0,this.escape=!0,this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)",this.valueChange=new te,this.timerSubscriptions=[]}set value(e){this.messages=e,this.startMessageLifes(this.messages)}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e){e instanceof Array||(e=[e]);const i=e.filter(r=>this.key===r.key);this.messages=this.messages?[...this.messages,...i]:[...i],this.startMessageLifes(i),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let e=this.el.nativeElement.parentElement;return!(!e||!e.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(e){this.messages=this.messages.filter((i,r)=>r!==e),this.valueChange.emit(this.messages)}get icon(){const e=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(e){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(e=>e.unsubscribe())}startMessageLifes(e){e?.forEach(i=>i.life&&this.startMessageLife(i))}startMessageLife(e){const i=QO(e.life).subscribe(()=>{this.messages=this.messages?.filter(r=>r!==e),this.timerSubscriptions=this.timerSubscriptions?.filter(r=>r!==i),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(i)}}return n.\u0275fac=function(e){return new(e||n)(T(mK,8),T(St),T(ai))},n.\u0275cmp=ve({type:n,selectors:[["p-messages"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:5,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"ngClass"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[1,"p-message-close-icon","pi","pi-times"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(e,i){if(1&e&&(x(0,"div",0),S(1,ple,2,1,"ng-container",1),S(2,gle,3,2,"ng-template",null,2,on),B()),2&e){const r=Qt(3);Gt(i.styleClass),C("ngStyle",i.style),v(1),C("ngIf",!i.contentTemplate)("ngIfElse",r)}},dependencies:[zn,tr,Pt,Yo,nr,Jd],styles:[".p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}\n"],encapsulation:2,data:{animation:[fW("messageAnimation",[zB(":enter",[_g({opacity:0,transform:"translateY(-25%)"}),UB("{{showTransitionParams}}")]),zB(":leave",[UB("{{hideTransitionParams}}",_g({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0}),n})(),gL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ja]}),n})();function Ale(n,t){if(1&n&&(x(0,"div",5),de(1),B()),2&n){const e=w(2);mf("display",null!=e.value&&0!==e.value?"flex":"none"),v(1),bf("",e.value,"",e.unit,"")}}function ble(n,t){if(1&n&&(x(0,"div",3),S(1,Ale,2,4,"div",4),B()),2&n){const e=w();mf("width",e.value+"%"),v(1),C("ngIf",e.showValue)}}function yle(n,t){1&n&&(x(0,"div",6),ie(1,"div",7),B())}const _le=function(n,t){return{"p-progressbar p-component":!0,"p-progressbar-determinate":n,"p-progressbar-indeterminate":t}};let Ele=(()=>{class n{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,i){1&e&&(x(0,"div",0),S(1,ble,2,3,"div",1),S(2,yle,2,0,"div",2),B()),2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("ngClass",Xi(7,_le,"determinate"===i.mode,"indeterminate"===i.mode)),Ot("aria-valuenow",i.value),v(1),C("ngIf","determinate"===i.mode),v(1),C("ngIf","indeterminate"===i.mode))},dependencies:[zn,Pt,nr],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),n})(),mL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const Cle=["advancedfileinput"],vle=["basicfileinput"],Mle=["content"];function wle(n,t){if(1&n){const e=Re();x(0,"p-button",17),K("onClick",function(){return re(e),oe(w(2).upload())}),B()}if(2&n){const e=w(2);C("label",e.uploadButtonLabel)("icon",e.uploadIcon)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass",e.uploadStyleClass)}}function Dle(n,t){if(1&n){const e=Re();x(0,"p-button",17),K("onClick",function(){return re(e),oe(w(2).clear())}),B()}if(2&n){const e=w(2);C("label",e.cancelButtonLabel)("icon",e.cancelIcon)("disabled",!e.hasFiles()||e.uploading)("styleClass",e.cancelStyleClass)}}function Ile(n,t){1&n&&Mt(0)}function Sle(n,t){1&n&&ie(0,"p-progressBar",18),2&n&&C("value",w(2).progress)("showValue",!1)}function xle(n,t){if(1&n){const e=Re();x(0,"img",26),K("error",function(r){return re(e),oe(w(5).imageError(r))}),B()}if(2&n){const e=w().$implicit,i=w(4);C("src",e.objectURL,No)("width",i.previewWidth)}}function Tle(n,t){if(1&n){const e=Re();x(0,"div",22)(1,"div"),S(2,xle,1,2,"img",23),B(),x(3,"div",24),de(4),B(),x(5,"div"),de(6),B(),x(7,"div")(8,"button",25),K("click",function(r){const s=re(e).index;return oe(w(4).remove(r,s))}),B()()()}if(2&n){const e=t.$implicit,i=w(4);v(2),C("ngIf",i.isImage(e)),v(2),pt(e.name),v(2),pt(i.formatSize(e.size)),v(2),Gt(i.removeStyleClass),C("disabled",i.uploading)}}function Ble(n,t){if(1&n&&(x(0,"div"),S(1,Tle,9,6,"div",21),B()),2&n){const e=w(3);v(1),C("ngForOf",e.files)}}function Ole(n,t){}function kle(n,t){if(1&n&&(x(0,"div"),S(1,Ole,0,0,"ng-template",27),B()),2&n){const e=w(3);v(1),C("ngForOf",e.files)("ngForTemplate",e.fileTemplate)}}function Ple(n,t){if(1&n&&(x(0,"div",19),S(1,Ble,2,1,"div",20),S(2,kle,2,2,"div",20),B()),2&n){const e=w(2);v(1),C("ngIf",!e.fileTemplate),v(1),C("ngIf",e.fileTemplate)}}function Fle(n,t){1&n&&Mt(0)}const Rle=function(n,t){return{"p-focus":n,"p-disabled":t}},Nle=function(n){return{$implicit:n}};function Lle(n,t){if(1&n){const e=Re();x(0,"div",2)(1,"div",3)(2,"span",4),K("focus",function(){return re(e),oe(w().onFocus())})("blur",function(){return re(e),oe(w().onBlur())})("click",function(){return re(e),oe(w().choose())})("keydown.enter",function(){return re(e),oe(w().choose())}),x(3,"input",5,6),K("change",function(r){return re(e),oe(w().onFileSelect(r))}),B(),ie(5,"span",7),x(6,"span",8),de(7),B()(),S(8,wle,1,4,"p-button",9),S(9,Dle,1,4,"p-button",9),S(10,Ile,1,0,"ng-container",10),B(),x(11,"div",11,12),K("dragenter",function(r){return re(e),oe(w().onDragEnter(r))})("dragleave",function(r){return re(e),oe(w().onDragLeave(r))})("drop",function(r){return re(e),oe(w().onDrop(r))}),S(13,Sle,1,2,"p-progressBar",13),ie(14,"p-messages",14),S(15,Ple,3,2,"div",15),S(16,Fle,1,0,"ng-container",16),B()()}if(2&n){const e=w();Gt(e.styleClass),C("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),v(2),Gt(e.chooseStyleClass),C("ngClass",Xi(24,Rle,e.focus,e.disabled||e.isChooseDisabled())),v(1),C("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),Ot("title",""),v(2),Gt(e.chooseIcon),C("ngClass","p-button-icon p-button-icon-left"),v(2),pt(e.chooseButtonLabel),v(1),C("ngIf",!e.auto&&e.showUploadButton),v(1),C("ngIf",!e.auto&&e.showCancelButton),v(1),C("ngTemplateOutlet",e.toolbarTemplate),v(3),C("ngIf",e.hasFiles()),v(1),C("value",e.msgs)("enableService",!1),v(1),C("ngIf",e.hasFiles()),v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Wt(27,Nle,e.files))}}function Qle(n,t){if(1&n){const e=Re();x(0,"input",32,33),K("change",function(r){return re(e),oe(w(2).onFileSelect(r))})("focus",function(){return re(e),oe(w(2).onFocus())})("blur",function(){return re(e),oe(w(2).onBlur())}),B()}if(2&n){const e=w(2);C("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled)}}const Ule=function(n,t,e,i){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":n,"p-fileupload-choose-selected":t,"p-focus":e,"p-disabled":i}};function jle(n,t){if(1&n){const e=Re();x(0,"div",28),ie(1,"p-messages",14),x(2,"span",29),K("mouseup",function(){return re(e),oe(w().onBasicUploaderClick())})("keydown",function(r){return re(e),oe(w().onBasicKeydown(r))}),ie(3,"span",30),x(4,"span",8),de(5),B(),S(6,Qle,2,3,"input",31),B()()}if(2&n){const e=w();v(1),C("value",e.msgs)("enableService",!1),v(1),Gt(e.styleClass),C("ngClass",Mf(9,Ule,!e.chooseLabel,e.hasFiles(),e.focus,e.disabled))("ngStyle",e.style),v(1),C("ngClass",e.hasFiles()&&!e.auto?e.uploadIcon:e.chooseIcon),v(2),pt(e.basicButtonLabel),v(1),C("ngIf",!e.hasFiles())}}let zle=(()=>{class n{constructor(e,i,r,o,s,a){this.el=e,this.sanitizer=i,this.zone=r,this.http=o,this.cd=s,this.config=a,this.method="post",this.invalidFileSizeMessageSummary="{0}: Invalid file size, ",this.invalidFileSizeMessageDetail="maximum upload size is {0}.",this.invalidFileTypeMessageSummary="{0}: Invalid file type, ",this.invalidFileTypeMessageDetail="allowed file types: {0}.",this.invalidFileLimitMessageDetail="limit is {0} at most.",this.invalidFileLimitMessageSummary="Maximum number of files exceeded, ",this.previewWidth=50,this.chooseIcon="pi pi-plus",this.uploadIcon="pi pi-upload",this.cancelIcon="pi pi-times",this.showUploadButton=!0,this.showCancelButton=!0,this.mode="advanced",this.onBeforeUpload=new te,this.onSend=new te,this.onUpload=new te,this.onError=new te,this.onClear=new te,this.onRemove=new te,this.onSelect=new te,this.onProgress=new te,this.uploadHandler=new te,this.onImageError=new te,this._files=[],this.progress=0,this.uploadedFileCount=0}set files(e){this._files=[];for(let i=0;i{switch(e.getType()){case"file":default:this.fileTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"toolbar":this.toolbarTemplate=e.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&this.content.nativeElement.addEventListener("dragover",this.onDragOver.bind(this))})}choose(){this.advancedFileInput.nativeElement.click()}onFileSelect(e){if("drop"!==e.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let i=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let r=0;rthis.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",e.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(e){let i=this.accept.split(",").map(r=>r.trim());for(let r of i)if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return-1!==e.indexOf("*")}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let i=0;i{switch(i.type){case jt.Sent:this.onSend.emit({originalEvent:i,formData:e});break;case jt.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case jt.UploadProgress:i.loaded&&(this.progress=Math.round(100*i.loaded/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress})}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(e,i){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit()}isFileLimitExceeded(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(Z.addClass(this.content.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||Z.removeClass(this.content.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){Z.removeClass(this.content.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let i=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||i&&1===i.length)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){if(0==e)return"0 B";let s=Math.floor(Math.log(e)/Math.log(1e3));return parseFloat((e/Math.pow(1e3,s)).toFixed(3))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault()}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(Wd.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(Wd.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(Wd.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.content.nativeElement.removeEventListener("dragover",this.onDragOver),this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(hE),T(At),T(vc),T(ai),T(Lg))},n.\u0275cmp=ve({type:n,selectors:[["p-fileUpload"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(Cle,5),Zt(vle,5),Zt(Mle,5)),2&e){let r;He(r=Ve())&&(i.advancedFileInput=r.first),He(r=Ve())&&(i.basicFileInput=r.first),He(r=Ve())&&(i.content=r.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass"],[1,"p-button-label"],["type","button",3,"label","icon","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"label","icon","disabled","styleClass","onClick"],[3,"value","showValue"],[1,"p-fileupload-files"],[4,"ngIf"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","icon","pi pi-times","pButton","",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","mouseup","keydown"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(e,i){1&e&&(S(0,Lle,17,29,"div",0),S(1,jle,7,14,"div",1)),2&e&&(C("ngIf","advanced"===i.mode),v(1),C("ngIf","basic"===i.mode))},dependencies:[zn,tr,Pt,Yo,nr,Fs,d$,Ele,mle,Jd],styles:[".p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}\n"],encapsulation:2,changeDetection:0}),n})(),AL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ko,xc,mL,gL,Ja,Ko,xc,mL,gL]}),n})();function Hle(n,t){if(1&n&&(ct(0),ie(1,"img",3),ut()),2&n){const e=w();v(1),C("src",e.src||e.file.objectURL,No)("alt",e.file.name)}}function Vle(n,t){if(1&n&&(ct(0),x(1,"video",4),ie(2,"source",5),B(),ut()),2&n){const e=w();v(2),C("src",e.src||e.file.objectURL,No)("type",e.file.type)}}function Gle(n,t){1&n&&(x(0,"p"),de(1,"Select an accepted asset type"),B())}let Yle=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-preview"]],inputs:{type:"type",file:"file",src:"src"},decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"src","alt"],["controls","","preload","metadata"],[3,"src","type"]],template:function(e,i){1&e&&(ct(0,0),S(1,Hle,2,2,"ng-container",1),S(2,Vle,3,2,"ng-container",1),S(3,Gle,2,0,"p",2),ut()),2&e&&(C("ngSwitch",i.type),v(1),C("ngSwitchCase","image"),v(1),C("ngSwitchCase","video"))},dependencies:[xd,Z_,eE],styles:["[_nghost-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain}"],changeDetection:0}),n})();function Wle(n,t){if(1&n){const e=Re();x(0,"p-fileUpload",2),K("onSelect",function(r){return re(e),oe(w().onSelectFile(r.files))}),B()}2&n&&C("accept",w().type+"/*")("customUpload",!0)}function Jle(n,t){if(1&n&&ie(0,"dot-asset-preview",9),2&n){const e=w(2);C("type",e.type)("file",e.file)("src",e.src)}}function Kle(n,t){1&n&&ie(0,"dot-spinner")}function $le(n,t){if(1&n){const e=Re();x(0,"div",3),S(1,Jle,1,3,"dot-asset-preview",4),S(2,Kle,1,0,"ng-template",null,5,on),B(),x(4,"div",6)(5,"button",7),K("click",function(){return re(e),oe(w().removeFile())}),de(6," Cancel "),B(),x(7,"button",8),K("click",function(){return re(e),oe(w().uploadFile())}),de(8," Insert "),B()()}if(2&n){const e=Qt(3),i=w();v(1),C("ngIf","PREVIEW"===i.status)("ngIfElse",e),v(4),C("disabled","UPLOAD"===i.status),v(2),C("disabled","UPLOAD"===i.status)}}var sa=(()=>(function(n){n.SELECT="SELECT",n.PREVIEW="PREVIEW",n.UPLOAD="UPLOAD"}(sa||(sa={})),sa))();let qle=(()=>{class n{constructor(e,i,r){this.sanitizer=e,this.imageService=i,this.cd=r,this.uploadedFile=new te,this.status=sa.SELECT}onSelectFile(e){const i=e[0],r=new FileReader;r.onload=o=>this.setFile(i,o.target.result),r.readAsDataURL(i)}removeFile(){this.file=null,this.status=sa.SELECT}uploadFile(){this.status=sa.UPLOAD,this.imageService.publishContent({data:this.file}).subscribe(e=>{const i=e[0];this.uploadedFile.emit(i[Object.keys(i)[0]]),this.status=sa.SELECT})}setFile(e,i){this.file=e,this.src=i,this.status=sa.PREVIEW,this.cd.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(T(hE),T(xh),T(ai))},n.\u0275cmp=ve({type:n,selectors:[["dot-upload-asset"]],inputs:{type:"type"},outputs:{uploadedFile:"uploadedFile"},decls:3,vars:2,consts:[["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect",4,"ngIf","ngIfElse"],["preview",""],["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect"],[1,"preview-container"],[3,"type","file","src",4,"ngIf","ngIfElse"],["loading",""],[1,"btn-container"],["data-test-id","back-btn","pButton","",1,"p-button-outlined",3,"disabled","click"],["data-test-id","upload-btn","pButton","",3,"disabled","click"],[3,"type","file","src"]],template:function(e,i){if(1&e&&(S(0,Wle,1,2,"p-fileUpload",0),S(1,$le,9,4,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf","SELECT"===i.status)("ngIfElse",r)}},dependencies:[Pt,tle,Fs,zle,Yle],styles:["[_nghost-%COMP%]{height:100%;width:100%;padding:1rem;gap:1rem;display:flex;justify-content:center;align-items:center;flex-direction:column}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%]{align-items:center;display:flex;flex-grow:1;justify-content:center;overflow:hidden;width:100%}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] .btn-container[_ngcontent-%COMP%]{display:flex;gap:1rem;height:-moz-fit-content;height:fit-content;justify-content:end;width:100%}"],changeDetection:0}),n})();const Zm=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function OM(...n){return function Xle(){return hs(1)}()(ae(...n))}function bL(n){return new et(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?Lt(e):tg()).subscribe(t)})}function eA(n=null){return t=>t.lift(new ece(n))}class ece{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new tce(t,this.defaultValue))}}class tce extends Ge{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function yL(n=rce){return t=>t.lift(new nce(n))}class nce{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new ice(t,this.errorFactory))}}class ice extends Ge{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function rce(){return new Zm}function aa(n,t){const e=arguments.length>=2;return i=>i.pipe(n?ir((r,o)=>n(r,o,i)):Sl,$n(1),e?eA(t):yL(()=>new Zm))}function _L(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new oce(n,t,e))}}class oce{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new sce(t,this.accumulator,this.seed,this.hasSeed))}}class sce extends Ge{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function kM(n){return function(e){return 0===n?tg():e.lift(new ace(n))}}class ace{constructor(t){if(this.total=t,this.total<0)throw new eF}call(t,e){return e.subscribe(new lce(t,this.total))}}class lce extends Ge{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(n?ir((r,o)=>n(r,o,i)):Sl,kM(1),e?eA(t):yL(()=>new Zm))}class uce{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new dce(t,this.predicate,this.inclusive))}}class dce extends Ge{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}class pce{constructor(t){this.value=t}call(t,e){return e.subscribe(new fce(t,this.value))}}class fce extends Ge{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function PM(n){return t=>t.lift(new gce(n))}class gce{constructor(t){this.callback=t}call(t,e){return e.subscribe(new mce(t,this.callback))}}class mce extends Ge{constructor(t,e){super(t),this.add(new We(e))}}const Ne="primary",kh=Symbol("RouteTitle");class Ace{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function iu(n){return new Ace(n)}function bce(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function vL(n){return Array.prototype.concat.apply([],n)}function ML(n){return n.length>0?n[n.length-1]:null}function On(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function la(n){return r_(n)?n:gd(n)?Lt(Promise.resolve(n)):ae(n)}const Ece={exact:function IL(n,t,e){if(!Al(n.segments,t.segments)||!tA(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!IL(n.children[i],t.children[i],e))return!1;return!0},subset:SL},wL={exact:function Cce(n,t){return _o(n,t)},subset:function vce(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>CL(n[e],t[e]))},ignored:()=>!0};function DL(n,t,e){return Ece[e.paths](n.root,t.root,e.matrixParams)&&wL[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function SL(n,t,e){return xL(n,t,t.segments,e)}function xL(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Al(r,e)||t.hasChildren()||!tA(r,e,i))}if(n.segments.length===e.length){if(!Al(n.segments,e)||!tA(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!SL(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Al(n.segments,r)&&tA(n.segments,r,i)&&n.children[Ne])&&xL(n.children[Ne],t,o,i)}}function tA(n,t,e){return t.every((i,r)=>wL[e](n[r].parameters,i.parameters))}class ml{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=iu(this.queryParams)),this._queryParamMap}toString(){return Dce.serialize(this)}}class Ue{constructor(t,e){this.segments=t,this.children=e,this.parent=null,On(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nA(this)}}class Ph{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=iu(this.parameters)),this._parameterMap}toString(){return kL(this)}}function Al(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let TL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return new RM},providedIn:"root"}),n})();class RM{parse(t){const e=new Fce(t);return new ml(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Fh(t.root,!0)}`,i=function xce(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${iA(e)}=${iA(r)}`).join("&"):`${iA(e)}=${iA(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function Ice(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const Dce=new RM;function nA(n){return n.segments.map(t=>kL(t)).join("/")}function Fh(n,t){if(!n.hasChildren())return nA(n);if(t){const e=n.children[Ne]?Fh(n.children[Ne],!1):"",i=[];return On(n.children,(r,o)=>{o!==Ne&&i.push(`${o}:${Fh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function wce(n,t){let e=[];return On(n.children,(i,r)=>{r===Ne&&(e=e.concat(t(i,r)))}),On(n.children,(i,r)=>{r!==Ne&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Ne?[Fh(n.children[Ne],!1)]:[`${r}:${Fh(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ne]?`${nA(n)}/${e[0]}`:`${nA(n)}/(${e.join("//")})`}}function BL(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function iA(n){return BL(n).replace(/%3B/gi,";")}function NM(n){return BL(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rA(n){return decodeURIComponent(n)}function OL(n){return rA(n.replace(/\+/g,"%20"))}function kL(n){return`${NM(n.path)}${function Sce(n){return Object.keys(n).map(t=>`;${NM(t)}=${NM(n[t])}`).join("")}(n.parameters)}`}const Tce=/^[^\/()?;=#]+/;function oA(n){const t=n.match(Tce);return t?t[0]:""}const Bce=/^[^=?&#]+/,kce=/^[^&#]+/;class Fce{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ue([],{}):new Ue([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Ne]=new Ue(t,e)),i}parseSegment(){const t=oA(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new P(4009,!1);return this.capture(t),new Ph(rA(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=oA(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=oA(this.remaining);r&&(i=r,this.capture(i))}t[rA(e)]=rA(i)}parseQueryParam(t){const e=function Oce(n){const t=n.match(Bce);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function Pce(n){const t=n.match(kce);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=OL(e),o=OL(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=oA(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new P(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ne);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ne]:new Ue([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new P(4011,!1)}}function LM(n){return n.segments.length>0?new Ue([],{[Ne]:n}):n}function sA(n){const t={};for(const i of Object.keys(n.children)){const o=sA(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function Rce(n){if(1===n.numberOfChildren&&n.children[Ne]){const t=n.children[Ne];return new Ue(n.segments.concat(t.segments),t.children)}return n}(new Ue(n.segments,t))}function bl(n){return n instanceof ml}function Qce(n,t,e,i,r){if(0===e.length)return ru(t.root,t.root,t.root,i,r);const o=function RL(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new FL(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return On(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new FL(e,t,i)}(e);return o.toRoot()?ru(t.root,t.root,new Ue([],{}),i,r):function s(l){const c=function jce(n,t,e,i){if(n.isAbsolute)return new ou(t.root,!0,0);if(-1===i)return new ou(e,e===t.root,0);return function NL(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new P(4005,!1);r=i.segments.length}return new ou(i,!1,r-o)}(e,i+(Rh(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Lh(c.segmentGroup,c.index,o.commands):UM(c.segmentGroup,c.index,o.commands);return ru(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Rh(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Nh(n){return"object"==typeof n&&null!=n&&n.outlets}function ru(n,t,e,i,r){let s,o={};i&&On(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:PL(n,t,e);const a=LM(sA(s));return new ml(a,o,r)}function PL(n,t,e){const i={};return On(n.children,(r,o)=>{i[o]=r===t?e:PL(r,t,e)}),new Ue(n.segments,i)}class FL{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Rh(i[0]))throw new P(4003,!1);const r=i.find(Nh);if(r&&r!==ML(i))throw new P(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ou{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function UM(n,t,e){if(n||(n=new Ue([],{})),0===n.segments.length&&n.hasChildren())return Lh(n,t,e);const i=function Hce(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(Nh(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!QL(l,c,s))return o;i+=2}else{if(!QL(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=UM(n.children[s],t,o))}),On(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Ue(n.segments,r)}}function jM(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=jM(new Ue([],{}),0,e))}),t}function LL(n){const t={};return On(n,(e,i)=>t[i]=`${e}`),t}function QL(n,t,e){return n==e.path&&_o(t,e.parameters)}class is{constructor(t,e){this.id=t,this.url=e}}class zM extends is{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yl extends is{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class aA extends is{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class UL extends is{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gce extends is{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yce extends is{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wce extends is{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jce extends is{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kce extends is{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $ce{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qce{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xce{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zce{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eue{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tue{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jL{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class zL{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=HM(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=HM(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=VM(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return VM(t,this._root).map(e=>e.value)}}function HM(n,t){if(n===t.value)return t;for(const e of t.children){const i=HM(n,e);if(i)return i}return null}function VM(n,t){if(n===t.value)return[t];for(const e of t.children){const i=VM(n,e);if(i.length)return i.unshift(t),i}return[]}class rs{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function su(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class HL extends zL{constructor(t,e){super(t),this.snapshot=e,GM(this,t)}toString(){return this.snapshot.toString()}}function VL(n,t){const e=function iue(n,t){const s=new lA([],{},{},"",{},Ne,t,null,n.root,-1,{});return new YL("",new rs(s,[]))}(n,t),i=new mr([new Ph("",{})]),r=new mr({}),o=new mr({}),s=new mr({}),a=new mr(""),l=new _l(i,r,s,a,o,Ne,t,e.root);return l.snapshot=e.root,new HL(new rs(l,[]),e)}class _l{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(fe(c=>c[kh]))??ae(void 0),this._futureSnapshot=l}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(fe(t=>iu(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(fe(t=>iu(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function GL(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function rue(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class lA{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[kh],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}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=iu(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=iu(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class YL extends zL{constructor(t,e){super(e),this.url=t,GM(this,e)}toString(){return WL(this._root)}}function GM(n,t){t.value._routerState=n,t.children.forEach(e=>GM(n,e))}function WL(n){const t=n.children.length>0?` { ${n.children.map(WL).join(", ")} } `:"";return`${n.value}${t}`}function YM(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,_o(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),_o(t.params,e.params)||n.params.next(e.params),function yce(n,t){if(n.length!==t.length)return!1;for(let e=0;e_o(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||WM(n.parent,t.parent))}function Qh(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function sue(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Qh(n,i,r);return Qh(n,i)})}(n,t,e);return new rs(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Qh(n,a)),s}}const i=function aue(n){return new _l(new mr(n.url),new mr(n.params),new mr(n.queryParams),new mr(n.fragment),new mr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>Qh(n,o));return new rs(i,r)}}const JM="ngNavigationCancelingError";function JL(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=bl(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=KL(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function KL(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[JM]=!0,i.cancellationCode=t,e&&(i.url=e),i}function $L(n){return qL(n)&&bl(n.url)}function qL(n){return n&&n[JM]}class lue{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Uh,this.attachRef=null}}let Uh=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new lue,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cA=!1;let XL=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new te,this.deactivateEvents=new te,this.attachEvents=new te,this.detachEvents=new te,this.name=r||Ne,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new P(4012,cA);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new P(4012,cA);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new P(4012,cA);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new P(4013,cA);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new cue(e,a,r.injector);if(i&&function uue(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(T(Uh),T(Ni),function Yu(n){return function Z2(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["ng-component"]],standalone:!0,features:[ux],decls:1,vars:0,template:function(e,i){1&e&&ie(0,"router-outlet")},dependencies:[XL],encapsulation:2}),n})();function ZL(n,t){return n.providers&&!n._injector&&(n._injector=vf(n.providers,t,`Route: ${n.path}`)),n._injector??t}function qM(n){const t=n.children&&n.children.map(qM),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Ne&&(e.component=KM),e}function Ar(n){return n.outlet||Ne}function eQ(n,t){const e=n.filter(i=>Ar(i)===t);return e.push(...n.filter(i=>Ar(i)!==t)),e}function jh(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class gue{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),YM(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=su(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),On(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=su(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=su(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=su(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new tue(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Zce(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(YM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),YM(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=jh(r.snapshot),l=a?.get(Es)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class tQ{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class uA{constructor(t,e){this.component=t,this.route=e}}function mue(n,t,e){const i=n._root;return zh(i,t?t._root:null,e,[i.value])}function au(n,t){const e=Symbol(),i=t.get(n,e);return i===e?"function"!=typeof n||function fb(n){return null!==Pl(n)}(n)?t.get(n):n:i}function zh(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=su(t);return n.children.forEach(s=>{(function bue(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function yue(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Al(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Al(n.url,t.url)||!_o(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WM(n,t)||!_o(n.queryParams,t.queryParams);default:return!WM(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new tQ(i)):(o.data=s.data,o._resolvedData=s._resolvedData),zh(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new uA(a.outlet.component,s))}else s&&Hh(t,a,r),r.canActivateChecks.push(new tQ(i)),zh(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),On(o,(s,a)=>Hh(s,e.getContext(a),r)),r}function Hh(n,t,e){const i=su(n),r=n.value;On(i,(o,s)=>{Hh(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new uA(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Vh(n){return"function"==typeof n}function XM(n){return n instanceof Zm||"EmptyError"===n?.name}const dA=Symbol("INITIAL_VALUE");function lu(){return Li(n=>IM(n.map(t=>t.pipe($n(1),function Zle(...n){const t=n[n.length-1];return ds(t)?(n.pop(),e=>OM(n,e,t)):e=>OM(n,e)}(dA)))).pipe(fe(t=>{for(const e of t)if(!0!==e){if(e===dA)return dA;if(!1===e||e instanceof ml)return e}return!0}),ir(t=>t!==dA),$n(1)))}function nQ(n){return function lp(...n){return ba(n)}(yn(t=>{if(bl(t))throw JL(0,t)}),fe(t=>!0===t))}const ZM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function iQ(n,t,e,i,r){const o=ew(n,t,e);return o.matched?function Rue(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?ae(r.map(s=>{const a=au(s,n);return la(function wue(n){return n&&Vh(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(lu(),nQ()):ae(!0)}(i=ZL(t,i),t,e).pipe(fe(s=>!0===s?o:{...ZM})):ae(o)}function ew(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...ZM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||bce)(e,n,t);if(!r)return{...ZM};const o={};On(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function hA(n,t,e,i,r="corrected"){if(e.length>0&&function Que(n,t,e){return e.some(i=>pA(n,t,i)&&Ar(i)!==Ne)}(n,e,i)){const s=new Ue(t,function Lue(n,t,e,i){const r={};r[Ne]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&Ar(o)!==Ne){const s=new Ue([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[Ar(o)]=s}return r}(n,t,i,new Ue(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function Uue(n,t,e){return e.some(i=>pA(n,t,i))}(n,e,i)){const s=new Ue(n.segments,function Nue(n,t,e,i,r,o){const s={};for(const a of i)if(pA(n,e,a)&&!r[Ar(a)]){const l=new Ue([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[Ar(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new Ue(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function pA(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function rQ(n,t,e,i){return!!(Ar(n)===i||i!==Ne&&pA(t,e,n))&&("**"===n.path||ew(t,n,e).matched)}function oQ(n,t,e){return 0===t.length&&!n.children[e]}const fA=!1;class gA{constructor(t){this.segmentGroup=t||null}}class sQ{constructor(t){this.urlTree=t}}function Gh(n){return Ss(new gA(n))}function aQ(n){return Ss(new sQ(n))}class Vue{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=hA(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ue(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Ne).pipe(fe(o=>this.createUrlTree(sA(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ra(o=>{if(o instanceof sQ)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof gA?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Ne).pipe(fe(r=>this.createUrlTree(sA(r),t.queryParams,t.fragment))).pipe(ra(r=>{throw r instanceof gA?this.noMatchError(r):r}))}noMatchError(t){return new P(4002,fA)}createUrlTree(t,e,i){const r=LM(t);return new ml(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(fe(o=>new Ue([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Lt(r).pipe(Wo(o=>{const s=i.children[o],a=eQ(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(fe(l=>({segment:l,outlet:o})))}),_L((o,s)=>(o[s.outlet]=s.segment,o),{}),EL())}expandSegment(t,e,i,r,o,s){return Lt(i).pipe(Wo(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(ra(c=>{if(c instanceof gA)return ae(null);throw c}))),aa(a=>!!a),ra((a,l)=>{if(XM(a))return oQ(e,r,o)?ae(new Ue([],{})):Gh(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return rQ(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):Gh(e):Gh(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?aQ(o):this.lineralizeSegments(i,o).pipe(nn(s=>{const a=new Ue(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=ew(e,r,o);if(!a)return Gh(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?aQ(d):this.lineralizeSegments(r,d).pipe(nn(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=ZL(i,t),i.loadChildren?(i._loadedRoutes?ae({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(fe(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Ue(r,{})))):ae(new Ue(r,{}))):iQ(e,i,r,t).pipe(Li(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(nn(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:p,slicedSegments:f}=hA(e,a,l,h),g=new Ue(p.segments,p.children);if(0===f.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe(fe(E=>new Ue(a,E)));if(0===h.length&&0===f.length)return ae(new Ue(a,{}));const m=Ar(i)===o;return this.expandSegment(d,g,h,f,m?Ne:o,!0).pipe(fe(y=>new Ue(a.concat(y.segments),y.children)))})):Gh(e)))}getChildConfig(t,e,i){return e.children?ae({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?ae({routes:e._loadedRoutes,injector:e._loadedInjector}):function Fue(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?ae(!0):ae(r.map(s=>{const a=au(s,n);return la(function Eue(n){return n&&Vh(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(lu(),nQ())}(t,e,i).pipe(nn(r=>r?this.configLoader.loadChildren(t,e).pipe(yn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function zue(n){return Ss(KL(fA,3))}())):ae({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return ae(i);if(r.numberOfChildren>1||!r.children[Ne])return Ss(new P(4e3,fA));r=r.children[Ne]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new ml(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return On(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return On(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Ue(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new P(4001,fA);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Yue{}class Kue{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=hA(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ne).pipe(fe(e=>{if(null===e)return null;const i=new lA([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new rs(i,e),o=new YL(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=GL(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Lt(Object.keys(i.children)).pipe(Wo(r=>{const o=i.children[r],s=eQ(e,r);return this.processSegmentGroup(t,s,o,r)}),_L((r,o)=>r&&o?(r.push(...o),r):null),function cce(n,t=!1){return e=>e.lift(new uce(n,t))}(r=>null!==r),eA(null),EL(),fe(r=>{if(null===r)return null;const o=lQ(r);return function $ue(n){n.sort((t,e)=>t.value.outlet===Ne?-1:e.value.outlet===Ne?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Lt(e).pipe(Wo(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),aa(s=>!!s),ra(s=>{if(XM(s))return oQ(i,r,o)?ae([]):ae(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!rQ(e,i,r,o))return ae(null);let s;if("**"===e.path){const a=r.length>0?ML(r).parameters:{},l=uQ(i)+r.length;s=ae({snapshot:new lA(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,hQ(e),Ar(e),e.component??e._loadedComponent??null,e,cQ(i),l,pQ(e),l),consumedSegments:[],remainingSegments:[]})}else s=iQ(i,e,r,t).pipe(fe(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=uQ(i)+l.length;return{snapshot:new lA(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,hQ(e),Ar(e),e.component??e._loadedComponent??null,e,cQ(i),d,pQ(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Li(a=>{if(null===a)return ae(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function que(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:p,slicedSegments:f}=hA(i,c,u,h.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===f.length&&p.hasChildren())return this.processChildren(d,h,p).pipe(fe(m=>null===m?null:[new rs(l,m)]));if(0===h.length&&0===f.length)return ae([new rs(l,[])]);const g=Ar(e)===o;return this.processSegment(d,h,p,f,g?Ne:o).pipe(fe(m=>null===m?null:[new rs(l,m)]))}))}}function Xue(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function lQ(n){const t=[],e=new Set;for(const i of n){if(!Xue(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=lQ(i.children);t.push(new rs(i.value,r))}return t.filter(i=>!e.has(i))}function cQ(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function uQ(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function hQ(n){return n.data||{}}function pQ(n){return n.resolve||{}}function fQ(n){return"string"==typeof n.title||null===n.title}function tw(n){return Li(t=>{const e=n(t);return e?Lt(e).pipe(fe(()=>t)):ae(t)})}let gQ=(()=>{class n{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Ne);return i}getResolvedTitleForRoute(e){return e.data[kh]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return Xt(mQ)},providedIn:"root"}),n})(),mQ=(()=>{class n extends gQ{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(j(b1))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class sde{}class lde extends class ade{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const AA=new $("",{providedIn:"root",factory:()=>({})}),nw=new $("ROUTES");let iw=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ae(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=la(e.loadComponent()).pipe(yn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),PM(()=>{this.componentLoaders.delete(e)})),r=new Bl(i,()=>new Me).pipe(Ma());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ae({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(fe(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=vL(l.get(nw,[],pe.Self|pe.Optional)));return{routes:c.map(qM),injector:l}}),PM(()=>{this.childrenLoaders.delete(i)})),s=new Bl(o,()=>new Me).pipe(Ma());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return la(e()).pipe(nn(i=>i instanceof lx||Array.isArray(i)?ae(i):Lt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(j(Tn),j(I_))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ude{}class dde{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function hde(n){throw n}function pde(n,t,e){return t.parse("/")}const fde={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gde={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function bQ(){const n=Xt(TL),t=Xt(Uh),e=Xt(z_),i=Xt(Tn),r=Xt(I_),o=Xt(nw,{optional:!0})??[],s=Xt(AA,{optional:!0})??{},a=Xt(mQ),l=Xt(gQ,{optional:!0}),c=Xt(ude,{optional:!0}),u=Xt(sde,{optional:!0}),d=new kn(null,n,t,e,i,r,vL(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function mde(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let kn=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me,this.errorHandler=hde,this.malformedUriErrorHandler=pde,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>ae(void 0),this.urlHandlingStrategy=new dde,this.routeReuseStrategy=new lde,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(iw),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new qce(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new $ce(h)),this.ngModule=s.get(Ra),this.console=s.get(OG);const d=s.get(At);this.isNgZoneEnabled=d instanceof At&&At.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function _ce(){return new ml(new Ue([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=VL(this.currentUrlTree,this.rootComponentType),this.transitions=new mr({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(ir(r=>0!==r.id),fe(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Li(r=>{let o=!1,s=!1;return ae(r).pipe(yn(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Li(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return yQ(a.source)&&(this.browserUrlTree=a.extractedUrl),ae(a).pipe(Li(d=>{const h=this.transitions.getValue();return i.next(new zM(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Mc:Promise.resolve(d)}),function Gue(n,t,e,i){return Li(r=>function Hue(n,t,e,i,r){return new Vue(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(fe(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),yn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function ede(n,t,e,i,r,o){return nn(s=>function Jue(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new Kue(n,t,e,i,r,s,a,o).recognize().pipe(Li(l=>null===l?function Wue(n){return new et(t=>t.error(n))}(new Yue):ae(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(fe(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),yn(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const p=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(p,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new Gce(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:f,restoredState:g,extras:m}=a,A=new zM(h,this.serializeUrl(p),f,g);i.next(A);const y=VL(p,this.rootComponentType).snapshot;return ae(r={...a,targetSnapshot:y,urlAfterRedirects:p,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Mc}),yn(a=>{const l=new Yce(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),fe(a=>r={...a,guards:mue(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function Iue(n,t){return nn(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?ae({...e,guardsResult:!0}):function Sue(n,t,e,i){return Lt(n).pipe(nn(r=>function Pue(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?ae(o.map(a=>{const l=jh(t)??r,c=au(a,l);return la(function Mue(n){return n&&Vh(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):l.runInContext(()=>c(n,t,e,i))).pipe(aa())})).pipe(lu()):ae(!0)}(r.component,r.route,e,t,i)),aa(r=>!0!==r,!0))}(s,i,r,n).pipe(nn(a=>a&&function _ue(n){return"boolean"==typeof n}(a)?function xue(n,t,e,i){return Lt(t).pipe(Wo(r=>OM(function Bue(n,t){return null!==n&&t&&t(new Xce(n)),ae(!0)}(r.route.parent,i),function Tue(n,t){return null!==n&&t&&t(new eue(n)),ae(!0)}(r.route,i),function kue(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function Aue(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>bL(()=>ae(s.guards.map(l=>{const c=jh(s.node)??e,u=au(l,c);return la(function vue(n){return n&&Vh(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(aa())})).pipe(lu())));return ae(o).pipe(lu())}(n,r.path,e),function Oue(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return ae(!0);const r=i.map(o=>bL(()=>{const s=jh(t)??e,a=au(o,s);return la(function Cue(n){return n&&Vh(n.canActivate)}(a)?a.canActivate(t,n):s.runInContext(()=>a(t,n))).pipe(aa())}));return ae(r).pipe(lu())}(n,r.route,e))),aa(r=>!0!==r,!0))}(i,o,n,t):ae(a)),fe(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),yn(a=>{if(r.guardsResult=a.guardsResult,bl(a.guardsResult))throw JL(0,a.guardsResult);const l=new Wce(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),ir(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),tw(a=>{if(a.guards.canActivateChecks.length)return ae(a).pipe(yn(l=>{const c=new Jce(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Li(l=>{let c=!1;return ae(l).pipe(function tde(n,t){return nn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return ae(e);let o=0;return Lt(r).pipe(Wo(s=>function nde(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!fQ(r)&&(o[kh]=r.title),function ide(n,t,e,i){const r=function rde(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return ae({});const o={};return Lt(r).pipe(nn(s=>function ode(n,t,e,i){const r=jh(t)??i,o=au(n,r);return la(o.resolve?o.resolve(t,e):r.runInContext(()=>o(t,e)))}(n[s],t,e,i).pipe(aa(),yn(a=>{o[s]=a}))),kM(1),function hce(n){return t=>t.lift(new pce(n))}(o),ra(s=>XM(s)?Mc:Ss(s)))}(o,n,t,i).pipe(fe(s=>(n._resolvedData=s,n.data=GL(n,e).resolve,r&&fQ(r)&&(n.data[kh]=r.title),null)))}(s.route,i,n,t)),yn(()=>o++),kM(1),nn(s=>o===r.length?ae(e):Mc))})}(this.paramsInheritanceStrategy,this.ngModule.injector),yn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),yn(l=>{const c=new Kce(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),tw(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(yn(d=>{c.component=d}),fe(()=>{})));for(const d of c.children)u.push(...l(d));return u};return IM(l(a.targetSnapshot.root)).pipe(eA(),$n(1))}),tw(()=>this.afterPreactivation()),fe(a=>{const l=function oue(n,t,e){const i=Qh(n,t._root,e?e._root:void 0);return new HL(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),yn(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>fe(i=>(new gue(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),yn({next(){o=!0},complete(){o=!0}}),PM(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ra(a=>{if(s=!0,qL(a)){$L(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new aA(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),$L(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||yQ(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new UL(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Mc}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(qM),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),Qce(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=bl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function Ade(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new yl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,p)=>{a=h,l=p});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new aA(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Oy()},n.\u0275prov=Y({token:n,factory:function(){return bQ()},providedIn:"root"}),n})();function yQ(n){return"imperative"!==n}class _Q{}let _de=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ir(e=>e instanceof yl),Wo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=vf(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Lt(r).pipe(hs())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):ae(null);const o=r.pipe(nn(s=>null===s?ae(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Lt([o,this.loader.loadComponent(i)]).pipe(hs()):o})}}return n.\u0275fac=function(e){return new(e||n)(j(kn),j(I_),j(_s),j(_Q),j(iw))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const sw=new $("");let EQ=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zM?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof yl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof jL&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new jL(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){Oy()},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();function cu(n,t){return{\u0275kind:n,\u0275providers:t}}function aw(n){return[{provide:nw,multi:!0,useValue:n}]}function vQ(){const n=Xt(Tn);return t=>{const e=n.get(Ua);if(t!==e.components[0])return;const i=n.get(kn),r=n.get(MQ);1===n.get(lw)&&i.initialNavigation(),n.get(wQ,null,pe.Optional)?.setUpPreloading(),n.get(sw,null,pe.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const MQ=new $("",{factory:()=>new Me}),lw=new $("",{providedIn:"root",factory:()=>1});const wQ=new $("");function Mde(n){return cu(0,[{provide:wQ,useExisting:_de},{provide:_Q,useExisting:n}])}const DQ=new $("ROUTER_FORROOT_GUARD"),wde=[z_,{provide:TL,useClass:RM},{provide:kn,useFactory:bQ},Uh,{provide:_l,useFactory:function CQ(n){return n.routerState.root},deps:[kn]},iw];function Dde(){return new oT("Router",kn)}let IQ=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[wde,[],aw(e),{provide:DQ,useFactory:Tde,deps:[[kn,new Zu,new ed]]},{provide:AA,useValue:i||{}},i?.useHash?{provide:za,useClass:EY}:{provide:za,useClass:TT},{provide:sw,useFactory:()=>{const n=Xt(kn),t=Xt(P3),e=Xt(AA);return e.scrollOffset&&t.setOffset(e.scrollOffset),new EQ(n,t,e)}},i?.preloadingStrategy?Mde(i.preloadingStrategy).\u0275providers:[],{provide:oT,multi:!0,useFactory:Dde},i?.initialNavigation?Bde(i):[],[{provide:SQ,useFactory:vQ},{provide:qx,multi:!0,useExisting:SQ}]]}}static forChild(e){return{ngModule:n,providers:[aw(e)]}}}return n.\u0275fac=function(e){return new(e||n)(j(DQ,8))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[KM]}),n})();function Tde(n){return"guarded"}function Bde(n){return["disabled"===n.initialNavigation?cu(3,[{provide:Sf,multi:!0,useFactory:()=>{const t=Xt(kn);return()=>{t.setUpLocationChangeListener()}}},{provide:lw,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?cu(2,[{provide:lw,useValue:0},{provide:Sf,multi:!0,deps:[Tn],useFactory:t=>{const e=t.get(yY,Promise.resolve(null));let i=!1;return()=>e.then(()=>new Promise(o=>{const s=t.get(kn),a=t.get(MQ);(function r(o){t.get(kn).events.pipe(ir(a=>a instanceof yl||a instanceof aA||a instanceof UL),fe(a=>a instanceof yl||a instanceof aA&&(0===a.code||1===a.code)&&null),ir(a=>null!==a),$n(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?ae(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const SQ=new $("");let kde=(()=>{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r,this.escape=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.text&&(this.setOption({tooltipLabel:e.text.currentValue}),this.active&&(e.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onClick(e){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?Z.appendChild(this.container,this.el.nativeElement):Z.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content")}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),Z.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?gC.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&gC.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+Z.getWindowScrollLeft(),top:e.top+Z.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+Z.getOuterWidth(this.el.nativeElement),r=e.top+(Z.getOuterHeight(this.el.nativeElement)-Z.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-Z.getOuterWidth(this.container),r=e.top+(Z.getOuterHeight(this.el.nativeElement)-Z.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(Z.getOuterWidth(this.el.nativeElement)-Z.getOuterWidth(this.container))/2,r=e.top-Z.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(Z.getOuterWidth(this.el.nativeElement)-Z.getOuterWidth(this.container))/2,r=e.top+Z.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return Z.hasClass(e,"p-inputwrapper")?Z.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,o=Z.getOuterWidth(this.container),s=Z.getOuterHeight(this.container),a=Z.getViewport();return r+o>a.width||r<0||i<0||i+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new AK(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):Z.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&gC.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(At),T(Lg))},n.\u0275dir=ue({type:n,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[yi]}),n})(),cw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),TQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,IQ,Ja,cw,IQ,cw]}),n})();function she(n,t){1&n&&Mt(0)}function ahe(n,t){if(1&n&&(ct(0),S(1,she,1,0,"ng-container",3),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)}}function lhe(n,t){if(1&n&&(x(0,"div",1),Ri(1),S(2,ahe,2,1,"ng-container",2),B()),2&n){const e=w();C("hidden",!e.selected),Ot("id",e.id)("aria-hidden",!e.selected)("aria-labelledby",e.id+"-label"),v(2),C("ngIf",e.contentTemplate&&(e.cache?e.loaded:e.selected))}}const BQ=["*"],che=["content"],uhe=["navbar"],dhe=["prevBtn"],hhe=["nextBtn"],phe=["inkbar"];function fhe(n,t){if(1&n){const e=Re();x(0,"button",12,13),K("click",function(){return re(e),oe(w().navBackward())}),ie(2,"span",14),B()}}function ghe(n,t){1&n&&ie(0,"span",24),2&n&&C("ngClass",w(3).$implicit.leftIcon)}function mhe(n,t){1&n&&ie(0,"span",25),2&n&&C("ngClass",w(3).$implicit.rightIcon)}function Ahe(n,t){if(1&n&&(ct(0),S(1,ghe,1,1,"span",21),x(2,"span",22),de(3),B(),S(4,mhe,1,1,"span",23),ut()),2&n){const e=w(2).$implicit;v(1),C("ngIf",e.leftIcon),v(2),pt(e.header),v(1),C("ngIf",e.rightIcon)}}function bhe(n,t){1&n&&Mt(0)}function yhe(n,t){if(1&n){const e=Re();x(0,"span",26),K("click",function(r){re(e);const o=w(2).$implicit;return oe(w().close(r,o))}),B()}}const _he=function(n,t){return{"p-highlight":n,"p-disabled":t}};function Ehe(n,t){if(1&n){const e=Re();x(0,"li",16)(1,"a",17),K("click",function(r){re(e);const o=w().$implicit;return oe(w().open(r,o))})("keydown.enter",function(r){re(e);const o=w().$implicit;return oe(w().open(r,o))}),S(2,Ahe,5,3,"ng-container",18),S(3,bhe,1,0,"ng-container",19),S(4,yhe,1,0,"span",20),B()()}if(2&n){const e=w().$implicit;Gt(e.headerStyleClass),C("ngClass",Xi(16,_he,e.selected,e.disabled))("ngStyle",e.headerStyle),v(1),C("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),Ot("id",e.id+"-label")("aria-selected",e.selected)("aria-controls",e.id)("aria-selected",e.selected)("tabindex",e.disabled?null:"0"),v(1),C("ngIf",!e.headerTemplate),v(1),C("ngTemplateOutlet",e.headerTemplate),v(1),C("ngIf",e.closable)}}function Che(n,t){1&n&&S(0,Ehe,5,19,"li",15),2&n&&C("ngIf",!t.$implicit.closed)}function vhe(n,t){if(1&n){const e=Re();x(0,"button",27,28),K("click",function(){return re(e),oe(w().navForward())}),ie(2,"span",29),B()}}const Mhe=function(n){return{"p-tabview p-component":!0,"p-tabview-scrollable":n}};let whe=0,OQ=(()=>{class n{constructor(e,i,r){this.viewContainer=i,this.cd=r,this.cache=!0,this.tooltipPosition="top",this.tooltipPositionStyle="absolute",this.id="p-tabpanel-"+whe++,this.tabView=e}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()?this.headerTemplate=e.template:this.contentTemplate=e.template})}get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||this.cd.detectChanges(),e&&(this.loaded=!0)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.tabView.cd.markForCheck()}get header(){return this._header}set header(e){this._header=e,Promise.resolve().then(()=>{this.tabView.updateInkBar(),this.tabView.cd.markForCheck()})}get leftIcon(){return this._leftIcon}set leftIcon(e){this._leftIcon=e,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(e){this._rightIcon=e,this.tabView.cd.markForCheck()}ngOnDestroy(){this.view=null}}return n.\u0275fac=function(e){return new(e||n)(T(Je(()=>kQ)),T(Ni),T(ai))},n.\u0275cmp=ve({type:n,selectors:[["p-tabPanel"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{closable:"closable",headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",cache:"cache",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon"},ngContentSelectors:BQ,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(eo(),S(0,lhe,3,5,"div",0)),2&e&&C("ngIf",!i.closed)},dependencies:[Pt,Yo],encapsulation:2}),n})(),kQ=(()=>{class n{constructor(e,i){this.el=e,this.cd=i,this.orientation="top",this.onChange=new te,this.onClose=new te,this.activeIndexChange=new te,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.initTabs(),this.tabChangesSubscription=this.tabPanels.changes.subscribe(e=>{this.initTabs()})}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.tabChangesSubscription&&this.tabChangesSubscription.unsubscribe()}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}open(e,i){if(i.disabled)e&&e.preventDefault();else{if(!i.selected){let r=this.findSelectedTab();r&&(r.selected=!1),this.tabChanged=!0,i.selected=!0;let o=this.findTabIndex(i);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(o),this.onChange.emit({originalEvent:e,index:o}),this.updateScrollBar(o)}e&&e.preventDefault()}}close(e,i){this.controlClose?this.onClose.emit({originalEvent:e,index:this.findTabIndex(i),close:()=>{this.closeTab(i)}}):(this.closeTab(i),this.onClose.emit({originalEvent:e,index:this.findTabIndex(i)})),e.stopPropagation()}closeTab(e){if(!e.disabled){if(e.selected){this.tabChanged=!0,e.selected=!1;for(let i=0;ithis._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0,this.updateScrollBar(e))}updateInkBar(){if(this.navbar){const e=Z.findSingle(this.navbar.nativeElement,"li.p-highlight");if(!e)return;this.inkbar.nativeElement.style.width=Z.getWidth(e)+"px",this.inkbar.nativeElement.style.left=Z.getOffset(e).left-Z.getOffset(this.navbar.nativeElement).left+"px"}}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}updateButtonState(){const e=this.content.nativeElement,{scrollLeft:i,scrollWidth:r}=e,o=Z.getWidth(e);this.backwardIsDisabled=0===i,this.forwardIsDisabled=parseInt(i)===r-o}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce((e,i)=>i?e+Z.getWidth(i):e,0)}navBackward(){const e=this.content.nativeElement,i=Z.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft-i;e.scrollLeft=r<=0?0:r}navForward(){const e=this.content.nativeElement,i=Z.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft+i,o=e.scrollWidth-i;e.scrollLeft=r>=o?o:r}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(ai))},n.\u0275cmp=ve({type:n,selectors:[["p-tabView"]],contentQueries:function(e,i,r){if(1&e&&jn(r,OQ,4),2&e){let o;He(o=Ve())&&(i.tabPanels=o)}},viewQuery:function(e,i){if(1&e&&(Zt(che,5),Zt(uhe,5),Zt(dhe,5),Zt(hhe,5),Zt(phe,5)),2&e){let r;He(r=Ve())&&(i.content=r.first),He(r=Ve())&&(i.navbar=r.first),He(r=Ve())&&(i.prevBtn=r.first),He(r=Ve())&&(i.nextBtn=r.first),He(r=Ve())&&(i.inkbar=r.first)}},hostAttrs:[1,"p-element"],inputs:{orientation:"orientation",style:"style",styleClass:"styleClass",controlClose:"controlClose",scrollable:"scrollable",activeIndex:"activeIndex"},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},ngContentSelectors:BQ,decls:13,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabview-nav-container"],["class","p-tabview-nav-prev p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabview-nav"],["navbar",""],["ngFor","",3,"ngForOf"],[1,"p-tabview-ink-bar"],["inkbar",""],["class","p-tabview-nav-next p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-panels"],["type","button","pRipple","",1,"p-tabview-nav-prev","p-tabview-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","presentation",3,"ngClass","ngStyle","class",4,"ngIf"],["role","presentation",3,"ngClass","ngStyle"],["role","tab","pRipple","",1,"p-tabview-nav-link",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet"],["class","p-tabview-close pi pi-times",3,"click",4,"ngIf"],["class","p-tabview-left-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-title"],["class","p-tabview-right-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-right-icon",3,"ngClass"],[1,"p-tabview-close","pi","pi-times",3,"click"],["type","button","pRipple","",1,"p-tabview-nav-next","p-tabview-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,i){1&e&&(eo(),x(0,"div",0)(1,"div",1),S(2,fhe,3,0,"button",2),x(3,"div",3,4),K("scroll",function(o){return i.onScroll(o)}),x(5,"ul",5,6),S(7,Che,1,1,"ng-template",7),ie(8,"li",8,9),B()(),S(10,vhe,3,0,"button",10),B(),x(11,"div",11),Ri(12),B()()),2&e&&(Gt(i.styleClass),C("ngClass",Wt(7,Mhe,i.scrollable))("ngStyle",i.style),v(2),C("ngIf",i.scrollable&&!i.backwardIsDisabled),v(5),C("ngForOf",i.tabs),v(3),C("ngIf",i.scrollable&&!i.forwardIsDisabled))},dependencies:[zn,tr,Pt,Yo,nr,kde,Jd],styles:[".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\n"],encapsulation:2,changeDetection:0}),n})(),PQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ko,cw,Ja,Ko]}),n})(),FQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[TQ,gN,xc,mN,bN,DC,AC,PQ,fL,pL,AL,_E,TQ,gN,xc,mN,bN,DC,AC,PQ,fL,pL,AL,_E]}),n})(),Dhe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[xh],imports:[Kt,yg,zd,Bse,FQ]}),n})();ms(nL,[ar,kQ,OQ,Zae,$ae,qle],[]);let RQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[cM],imports:[Kt,yg,zd,xc]}),n})();function Ihe(n,t){1&n&&(x(0,"div",1),ie(1,"div",2),x(2,"div",3)(3,"div",4)(4,"div"),ie(5,"span",5)(6,"span",6),B(),x(7,"div",7),ie(8,"span",8)(9,"span",9),B()()()())}ms(Lm,[tr,Pt,$R,aM,KR],[]);let She=(()=>{class n{constructor(){this.items=Array(4).fill(0)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-loading-list"]],decls:1,vars:1,consts:[["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"image","skeleton"],[1,"body"],[1,"data-wrapper"],[1,"title","skeleton"],[1,"subtitle","skeleton"],[1,"state"],[1,"circle","skeleton"],[1,"meta","skeleton"]],template:function(e,i){1&e&&S(0,Ihe,10,0,"div",0),2&e&&C("ngForOf",i.items)},dependencies:[tr],styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.skeleton[_ngcontent-%COMP%]{animation:skeleton-loading 1s linear infinite alternate}.card[_ngcontent-%COMP%]{width:100%;max-height:80px;box-sizing:border-box;display:flex;gap:1rem;padding:8px;background-color:#fff;cursor:pointer}.image[_ngcontent-%COMP%]{min-width:64px;min-height:64px;background:#11152e}.body[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%]{overflow:hidden;height:100%;display:flex;flex-direction:column;justify-content:space-between}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:80%;overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;background-color:#11152e;height:12px;border-radius:5px;margin-bottom:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:85%;height:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;align-items:center}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{width:16px;height:16px;background:#000;border-radius:100%;margin-right:.5rem}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{width:30px;height:10px;background:#000;border-radius:4px}@keyframes skeleton-loading{0%{background-color:#ccc}to{background-color:#f2f2f2}}"]}),n})(),xhe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[xh,s6,pk],imports:[Kt,yg,zd,RQ,FQ,Dhe,zd,RQ]}),n})();ms(xN,[tr,Pt,Qre],[]),ms(EN,[Pt,bg,wc,Pd,lg,Ic,jd,gM,Fs,zm,kre,_N],[]),ms(_N,[tr,Pt,$R,aM,She,KR],[]);class The extends TypeError{constructor(t,e){let i;const{message:r,explanation:o,...s}=t,{path:a}=t,l=0===a.length?r:`At path: ${a.join(".")} -- ${r}`;super(o??l),null!=o&&(this.cause=l),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>i??(i=[t,...e()])}}function br(n){return"object"==typeof n&&null!=n}function _n(n){return"symbol"==typeof n?n.toString():"string"==typeof n?JSON.stringify(n):`${n}`}function khe(n,t,e,i){if(!0===n)return;!1===n?n={}:"string"==typeof n&&(n={message:n});const{path:r,branch:o}=t,{type:s}=e,{refinement:a,message:l=`Expected a value of type \`${s}\`${a?` with refinement \`${a}\``:""}, but received: \`${_n(i)}\``}=n;return{value:i,type:s,refinement:a,key:r[r.length-1],path:r,branch:o,...n,message:l}}function*uw(n,t,e,i){(function Bhe(n){return br(n)&&"function"==typeof n[Symbol.iterator]})(n)||(n=[n]);for(const r of n){const o=khe(r,t,e,i);o&&(yield o)}}function*dw(n,t,e={}){const{path:i=[],branch:r=[n],coerce:o=!1,mask:s=!1}=e,a={path:i,branch:r};if(o&&(n=t.coercer(n,a),s&&"type"!==t.type&&br(t.schema)&&br(n)&&!Array.isArray(n)))for(const c in n)void 0===t.schema[c]&&delete n[c];let l="valid";for(const c of t.validator(n,a))c.explanation=e.message,l="not_valid",yield[c,void 0];for(let[c,u,d]of t.entries(n,a)){const h=dw(u,d,{path:void 0===c?i:[...i,c],branch:void 0===c?r:[...r,u],coerce:o,mask:s,message:e.message});for(const p of h)p[0]?(l=null!=p[0].refinement?"not_refined":"not_valid",yield[p[0],void 0]):o&&(u=p[1],void 0===c?n=u:n instanceof Map?n.set(c,u):n instanceof Set?n.add(u):br(n)&&(void 0!==u||c in n)&&(n[c]=u))}if("not_valid"!==l)for(const c of t.refiner(n,a))c.explanation=e.message,l="not_refined",yield[c,void 0];"valid"===l&&(yield[void 0,n])}class cn{constructor(t){const{type:e,schema:i,validator:r,refiner:o,coercer:s=(l=>l),entries:a=function*(){}}=t;this.type=e,this.schema=i,this.entries=a,this.coercer=s,this.validator=r?(l,c)=>uw(r(l,c),c,this,l):()=>[],this.refiner=o?(l,c)=>uw(o(l,c),c,this,l):()=>[]}assert(t,e){return LQ(t,this,e)}create(t,e){return function Phe(n,t,e){const i=Wh(n,t,{coerce:!0,message:e});if(i[0])throw i[0];return i[1]}(t,this,e)}is(t){return function QQ(n,t){return!Wh(n,t)[0]}(t,this)}mask(t,e){return function Fhe(n,t,e){const i=Wh(n,t,{coerce:!0,mask:!0,message:e});if(i[0])throw i[0];return i[1]}(t,this,e)}validate(t,e={}){return Wh(t,this,e)}}function LQ(n,t,e){const i=Wh(n,t,{message:e});if(i[0])throw i[0]}function Wh(n,t,e={}){const i=dw(n,t,e),r=function Ohe(n){const{done:t,value:e}=n.next();return t?void 0:e}(i);return r[0]?[new The(r[0],function*(){for(const s of i)s[0]&&(yield s[0])}),void 0]:[void 0,r[1]]}function Gi(n,t){return new cn({type:n,schema:null,validator:t})}function UQ(n){return new cn({type:"array",schema:n,*entries(t){if(n&&Array.isArray(t))for(const[e,i]of t.entries())yield[e,i,n]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||`Expected an array value, but received: ${_n(t)}`})}function El(n){const t=n?Object.keys(n):[],e=function jQ(){return Gi("never",()=>!1)}();return new cn({type:"object",schema:n||null,*entries(i){if(n&&br(i)){const r=new Set(Object.keys(i));for(const o of t)r.delete(o),yield[o,i[o],n[o]];for(const o of r)yield[o,i[o],e]}},validator:i=>br(i)||`Expected an object, but received: ${_n(i)}`,coercer:i=>br(i)?{...i}:i})}function zQ(n){return new cn({...n,validator:(t,e)=>void 0===t||n.validator(t,e),refiner:(t,e)=>void 0===t||n.refiner(t,e)})}function Jh(){return Gi("string",n=>"string"==typeof n||`Expected a string, but received: ${_n(n)}`)}const Nhe=Ft.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize"}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=n=>{const t=n?.node||this.editor.state.doc;return"textSize"===(n?.mode||this.options.mode)?t.textBetween(0,t.content.size,void 0," ").length:t.nodeSize},this.storage.words=n=>{const t=n?.node||this.editor.state.doc;return t.textBetween(0,t.content.size," "," ").split(" ").filter(r=>""!==r).length}},addProseMirrorPlugins(){return[new it({key:new _t("characterCount"),filterTransaction:(n,t)=>{const e=this.options.limit;if(!n.docChanged||0===e||null==e)return!0;const i=this.storage.characters({node:t.doc}),r=this.storage.characters({node:n.doc});if(r<=e||i>e&&r>e&&r<=i)return!0;if(i>e&&r>e&&r>i||!n.getMeta("paste"))return!1;const s=n.selection.$head.pos;return n.deleteRange(s-(r-e),s),!(this.storage.characters({node:n.doc})>e)}})]}}),Lhe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,Qhe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,Uhe=Qr.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:n}){return["mark",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:t})=>t.setMark(this.name,n),toggleHighlight:n=>({commands:t})=>t.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[dl({find:Lhe,type:this.type})]},addPasteRules(){return[na({find:Qhe,type:this.type})]}});function hw(n){this.j={},this.jr=[],this.jd=null,this.t=n}hw.prototype={accepts:function(){return!!this.t},tt:function(t,e){if(e&&e.j)return this.j[t]=e,e;var i=e,r=this.j[t];if(r)return i&&(r.t=i),r;r=Ct();var o=EA(this,t);return o?(Object.assign(r.j,o.j),r.jr.append(o.jr),r.jr=o.jd,r.t=i||o.t):r.t=i,this.j[t]=r,r}};var Ct=function(){return new hw},me=function(t){return new hw(t)},H=function(t,e,i){t.j[e]||(t.j[e]=i)},Sn=function(t,e,i){t.jr.push([e,i])},EA=function(t,e){var i=t.j[e];if(i)return i;for(var r=0;r=s)return[];for(;o0&&void 0!==arguments[0]?arguments[0]:[],t=Ct(),e=me(yr),i=me(jr),r=Ct(),o=me("WS"),s=[[np,i],[Zh,i],[ep,i],[tp,i]],a=function(){var b=me(jr);return b.j={"-":r},b.jr=[].concat(s),b},l=function(b){var D=a();return D.t=b,D};jhe(t,[["'",me(vA)],["{",me(hu)],["[",me(Kh)],["<",me($h)],["(",me(qh)],["}",me(vl)],["]",me(pu)],[">",me(fu)],[")",me(gu)],["&",me(CA)],["*",me(MA)],["@",me(mu)],["`",me(DA)],["^",me(IA)],[":",me(Xh)],[",",me(gw)],["$",me(SA)],[".",me(ca)],["=",me(xA)],["!",me(mw)],["-",me(TA)],["%",me(BA)],["|",me(OA)],["+",me(kA)],["#",me(PA)],["?",me(FA)],['"',me(Aw)],["/",me(as)],[";",me(bw)],["~",me(RA)],["_",me(NA)],["\\",me(wA)]]),H(t,"\n",me("NL")),Sn(t,JQ,o),H(o,"\n",Ct()),Sn(o,JQ,o);for(var c=0;c2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(n.prototype);for(var r in e)i[r]=e[r];i.constructor=t,t.prototype=i}(UA,e,t),e}UA.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pn.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var qQ=Ml("email",{isLink:!0}),yw=Ml("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),_w=Ml("text"),XQ=Ml("nl"),ua=Ml("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pn.defaultProtocol,e=this.tk,i=!1,r=!1,o=[],s=0;e[s].t===du;)i=!0,o.push(e[s].v),s++;for(;e[s].t===as;)r=!0,o.push(e[s].v),s++;for(;s=0&&h++,r++,u++;if(h<0)for(var p=r-u;p0&&(o.push(Ew(_w,t,s)),s=[]);var f=d.t,g=e.slice((r-=h)-(u-=h),r);o.push(Ew(f,t,g))}}return s.length>0&&o.push(Ew(_w,t,s)),o}(zt.parser.start,n,function Vhe(n,t){for(var e=function Ghe(n){for(var t=[],e=n.length,i=0;i56319||i+1===e||(o=n.charCodeAt(i+1))<56320||o>57343?n[i]:n.slice(i,i+2);t.push(s),i+=s.length}return t}(t.replace(/[A-Z]/g,function(p){return p.toLowerCase()})),i=e.length,r=[],o=0,s=0;s=0&&(d+=e[s].length,h++),c+=e[s].length,o+=e[s].length,s++;s-=h,r.push({t:u.t,v:t.substr((o-=d)-(c-=d),c),s:o-c,e:o})}return r}(zt.scanner.start,n))}function vw(n){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=ZQ(n),i=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:null,e=ZQ(n);return 1===e.length&&e[0].isLink&&(!t||e[0].t===t)}function Zhe(n){return new it({key:new _t("autolink"),appendTransaction:(t,e,i)=>{const r=t.some(u=>u.docChanged)&&!e.doc.eq(i.doc),o=t.some(u=>u.getMeta("preventAutolink"));if(!r||o)return;const{tr:s}=i,a=function Qee(n,t){const e=new zC(n);return t.forEach(i=>{i.steps.forEach(r=>{e.step(r)})}),e}(e.doc,[...t]),{mapping:l}=a;return function Gee(n){const{mapping:t,steps:e}=n,i=[];return t.maps.forEach((r,o)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=e[o];if(void 0===a||void 0===l)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=t.slice(o).map(a,-1),u=t.slice(o).map(l),d=t.invert().map(c,-1),h=t.invert().map(u);i.push({oldRange:{from:d,to:h},newRange:{from:c,to:u}})})}),function Vee(n){const t=function Hee(n,t=JSON.stringify){const e={};return n.filter(i=>{const r=t(i);return!Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=!0)})}(n);return 1===t.length?t:t.filter((e,i)=>!t.filter((o,s)=>s!==i).some(o=>e.oldRange.from>=o.oldRange.from&&e.oldRange.to<=o.oldRange.to&&e.newRange.from>=o.newRange.from&&e.newRange.to<=o.newRange.to))}(i)}(a).forEach(({oldRange:u,newRange:d})=>{Fm(u.from,u.to,e.doc).filter(g=>g.mark.type===n.type).forEach(g=>{const y=Fm(l.map(g.from),l.map(g.to),i.doc).filter(O=>O.mark.type===n.type);if(!y.length)return;const E=y[0],b=e.doc.textBetween(g.from,g.to,void 0," "),D=i.doc.textBetween(E.from,E.to,void 0," "),I=e2(b),Q=e2(D);I&&!Q&&s.removeMark(E.from,E.to,n.type)});const h=function jee(n,t,e){const i=[];return n.nodesBetween(t.from,t.to,(r,o)=>{e(r)&&i.push({node:r,pos:o})}),i}(i.doc,d,g=>g.isTextblock);let p,f;if(h.length>1?(p=h[0],f=i.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):h.length&&i.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(p=h[0],f=i.doc.textBetween(p.pos,d.to,void 0," ")),p&&f){const g=f.split(" ").filter(y=>""!==y);if(g.length<=0)return!1;const m=g[g.length-1],A=p.pos+f.lastIndexOf(m);if(!m)return!1;vw(m).filter(y=>y.isLink).filter(y=>!n.validate||n.validate(y.value)).map(y=>({...y,from:A+y.start+1,to:A+y.end+1})).forEach(y=>{s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),s.steps.length?s:void 0}})}const npe=Qr.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(qhe)},onDestroy(){!function $he(){zt.scanner=null,zt.parser=null,zt.pluginQueue=[],zt.customProtocols=[],zt.initialized=!1}()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:n}){return["a",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:t})=>t().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:t})=>t().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[na({find:n=>vw(n).filter(t=>!this.options.validate||this.options.validate(t.value)).filter(t=>t.isLink).map(t=>({text:t.value,index:t.start,data:t})),type:this.type,getAttributes:n=>{var t;return{href:null===(t=n.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(Zhe({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(function epe(n){return new it({key:new _t("handleClickLink"),props:{handleClick:(t,e,i)=>{var r;const o=zR(t.state,n.type.name);return!(!(null===(r=i.target)||void 0===r?void 0:r.closest("a"))||!o.href||(window.open(o.href,o.target),0))}}})}({type:this.type})),this.options.linkOnPaste&&n.push(function tpe(n){return new it({key:new _t("handlePasteLink"),props:{handlePaste:(t,e,i)=>{const{state:r}=t,{selection:o}=r,{empty:s}=o;if(s)return!1;let a="";i.content.forEach(c=>{a+=c.textContent});const l=vw(a).find(c=>c.isLink&&c.value===a);return!(!a||!l||(n.editor.commands.setMark(n.type,{href:l.href}),0))}}})}({editor:this.editor,type:this.type})),n}}),ipe=Ft.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new it({props:{decorations:({doc:n,selection:t})=>{const e=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,r=[];if(!e)return null;const o=n.type.createAndFill(),s=o?.sameMarkup(n)&&null===o.content.findDiffStart(n.content);return n.descendants((a,l)=>{const c=i>=l&&i<=l+a.nodeSize;if((c||!this.options.showOnlyCurrent)&&!a.isLeaf&&!a.childCount){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=wn.node(l,l+a.nodeSize,{class:d.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:c}):this.options.placeholder});r.push(h)}return this.options.includeChildren}),kt.create(n,r)}}})]}}),rpe=tn.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:n}){return["tr",Et(this.options.HTMLAttributes,n),0]}}),ope=Ft.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>n.style.textAlign||this.options.defaultAlignment,renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:t})=>!!this.options.alignments.includes(n)&&this.options.types.every(e=>t.updateAttributes(e,{textAlign:n})),unsetTextAlign:()=>({commands:n})=>this.options.types.every(t=>n.resetAttributes(t,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),spe=Qr.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("underline")&&{}}],renderHTML({HTMLAttributes:n}){return["u",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),ape=/^\s*>\s$/,lpe=tn.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:n}){return["blockquote",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[sM({find:ape,type:this.type})]}}),cpe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,upe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,dpe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,hpe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,ppe=Qr.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:n=>"normal"!==n.style.fontWeight&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}],renderHTML({HTMLAttributes:n}){return["strong",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[dl({find:cpe,type:this.type}),dl({find:dpe,type:this.type})]},addPasteRules(){return[na({find:upe,type:this.type}),na({find:hpe,type:this.type})]}}),fpe=/^\s*([-+*])\s$/,gpe=tn.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:n}){return["ul",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){return[sM({find:fpe,type:this.type})]}}),mpe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,Ape=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,bpe=Qr.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:n}){return["code",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[dl({find:mpe,type:this.type})]},addPasteRules(){return[na({find:Ape,type:this.type})]}}),ype=/^```([a-z]+)?[\s\n]$/,_pe=/^~~~([a-z]+)?[\s\n]$/,Epe=tn.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var t;const{languageClassPrefix:e}=this.options;return[...(null===(t=n.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(s=>s.startsWith(e)).map(s=>s.replace(e,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:n,HTMLAttributes:t}){return["pre",Et(this.options.HTMLAttributes,t),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:t})=>t.setNode(this.name,n),toggleCodeBlock:n=>({commands:t})=>t.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:t}=this.editor.state.selection;return!(!n||t.parent.type.name!==this.name)&&!(1!==t.pos&&t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=n,{selection:e}=t,{$from:i,empty:r}=e;if(!r||i.parent.type!==this.type)return!1;const o=i.parentOffset===i.parent.nodeSize-2,s=i.parent.textContent.endsWith("\n\n");return!(!o||!s)&&n.chain().command(({tr:a})=>(a.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=n,{selection:e,doc:i}=t,{$from:r,empty:o}=e;if(!o||r.parent.type!==this.type||r.parentOffset!==r.parent.nodeSize-2)return!1;const a=r.after();return void 0!==a&&!i.nodeAt(a)&&n.commands.exitCode()}}},addInputRules(){return[oM({find:ype,type:this.type,getAttributes:n=>({language:n[1]})}),oM({find:_pe,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new it({key:new _t("codeBlockVSCodeHandler"),props:{handlePaste:(n,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const e=t.clipboardData.getData("text/plain"),i=t.clipboardData.getData("vscode-editor-data"),o=(i?JSON.parse(i):void 0)?.mode;if(!e||!o)return!1;const{tr:s}=n.state;return s.replaceSelectionWith(this.type.create({language:o})),s.setSelection(Ee.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(e.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),n.dispatch(s),!0}}})]}}),Cpe=tn.create({name:"doc",topNode:!0,content:"block+"});function vpe(n={}){return new it({view:t=>new Mpe(t,n)})}class Mpe{constructor(t,e){this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=e.width||1,this.color=e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let r=o=>{this[i](o)};return t.dom.addEventListener(i,r),{name:i,handler:r}})}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){let s=t.nodeBefore,a=t.nodeAfter;if(s||a){let l=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0)).getBoundingClientRect(),c=s?l.bottom:l.top;s&&a&&(c=(c+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:l.left,right:l.right,top:c-this.width/2,bottom:c+this.width/2}}}if(!e){let s=this.editorView.coordsAtPos(this.cursorPos);e={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let r,o,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!i||i==document.body&&"static"==getComputedStyle(i).position)r=-pageXOffset,o=-pageYOffset;else{let s=i.getBoundingClientRect();r=s.left-i.scrollLeft,o=s.top-i.scrollTop}this.element.style.left=e.left-r+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),i=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=i&&i.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,e):r;if(e&&!o){let s=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&(s=Kk(this.editorView.state.doc,s,this.editorView.dragging.slice),null==s))return this.setCursor(null);this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const wpe=Ft.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[vpe(this.options)]}});class $t extends _e{constructor(t){super(t,t)}map(t,e){let i=t.resolve(e.map(this.head));return $t.valid(i)?new $t(i):_e.near(i)}content(){return G.empty}eq(t){return t instanceof $t&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new $t(t.resolve(e.pos))}getBookmark(){return new Mw(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function Dpe(n){for(let t=n.depth;t>=0;t--){let e=n.index(t),i=n.node(t);if(0!=e)for(let r=i.child(e-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(t)||!function Ipe(n){for(let t=n.depth;t>=0;t--){let e=n.indexAfter(t),i=n.node(t);if(e!=i.childCount)for(let r=i.child(e);;r=r.firstChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(t))return!1;let i=e.type.spec.allowGapCursor;if(null!=i)return i;let r=e.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,e,i=!1){e:for(;;){if(!i&&$t.valid(t))return t;let r=t.pos,o=null;for(let s=t.depth;;s--){let a=t.node(s);if(e>0?t.indexAfter(s)0){o=a.child(e>0?t.indexAfter(s):t.index(s)-1);break}if(0==s)return null;r+=e;let l=t.doc.resolve(r);if($t.valid(l))return l}for(;;){let s=e>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!ce.isSelectable(o)){t=t.doc.resolve(r+o.nodeSize*e),i=!1;continue e}break}o=s,r+=e;let a=t.doc.resolve(r);if($t.valid(a))return a}return null}}}$t.prototype.visible=!1,$t.findFrom=$t.findGapCursorFrom,_e.jsonID("gapcursor",$t);class Mw{constructor(t){this.pos=t}map(t){return new Mw(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return $t.valid(e)?new $t(e):_e.near(e)}}const xpe=Lv({ArrowLeft:jA("horiz",-1),ArrowRight:jA("horiz",1),ArrowUp:jA("vert",-1),ArrowDown:jA("vert",1)});function jA(n,t){const e="vert"==n?t>0?"down":"up":t>0?"right":"left";return function(i,r,o){let s=i.selection,a=t>0?s.$to:s.$from,l=s.empty;if(s instanceof Ee){if(!o.endOfTextblock(e)||0==a.depth)return!1;l=!1,a=i.doc.resolve(t>0?a.after():a.before())}let c=$t.findGapCursorFrom(a,t,l);return!!c&&(r&&r(i.tr.setSelection(new $t(c))),!0)}}function Tpe(n,t,e){if(!n||!n.editable)return!1;let i=n.state.doc.resolve(t);if(!$t.valid(i))return!1;let r=n.posAtCoords({left:e.clientX,top:e.clientY});return!(r&&r.inside>-1&&ce.isSelectable(n.state.doc.nodeAt(r.inside))||(n.dispatch(n.state.tr.setSelection(new $t(i))),0))}function Bpe(n,t){if("insertCompositionText"!=t.inputType||!(n.state.selection instanceof $t))return!1;let{$from:e}=n.state.selection,i=e.parent.contentMatchAt(e.index()).findWrapping(n.state.schema.nodes.text);if(!i)return!1;let r=L.empty;for(let s=i.length-1;s>=0;s--)r=L.from(i[s].createAndFill(null,r));let o=n.state.tr.replace(e.pos,e.pos,new G(r,0,0));return o.setSelection(Ee.near(o.doc.resolve(e.pos+1))),n.dispatch(o),!1}function Ope(n){if(!(n.selection instanceof $t))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",kt.create(n.doc,[wn.widget(n.selection.head,t,{key:"gapcursor"})])}const kpe=Ft.create({name:"gapCursor",addProseMirrorPlugins:()=>[new it({props:{decorations:Ope,createSelectionBetween:(n,t,e)=>t.pos==e.pos&&$t.valid(e)?new $t(e):null,handleClick:Tpe,handleKeyDown:xpe,handleDOMEvents:{beforeinput:Bpe}}})],extendNodeSchema(n){var t;return{allowGapCursor:null!==(t=Be(ne(n,"allowGapCursor",{name:n.name,options:n.options,storage:n.storage})))&&void 0!==t?t:null}}}),Ppe=tn.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:n}){return["br",Et(this.options.HTMLAttributes,n)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:n,chain:t,state:e,editor:i})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:r,storedMarks:o}=e;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=i.extensionManager,l=o||r.$to.parentOffset&&r.$from.marks();return t().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(h=>a.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Fpe=tn.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:t}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,Et(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:n=>({commands:t})=>!!this.options.levels.includes(n.level)&&t.setNode(this.name,n),toggleHeading:n=>({commands:t})=>!!this.options.levels.includes(n.level)&&t.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return this.options.levels.reduce((n,t)=>({...n,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(n=>oM({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var Fn=function(){};Fn.prototype.append=function(t){return t.length?(t=Fn.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},Fn.prototype.prepend=function(t){return t.length?Fn.from(t).append(this):this},Fn.prototype.appendInner=function(t){return new Rpe(this,t)},Fn.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e?Fn.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},Fn.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},Fn.prototype.forEach=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=this.length),e<=i?this.forEachInner(t,e,i,0):this.forEachInvertedInner(t,e,i,0)},Fn.prototype.map=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=this.length);var r=[];return this.forEach(function(o,s){return r.push(t(o,s))},e,i),r},Fn.from=function(t){return t instanceof Fn?t:t&&t.length?new t2(t):Fn.empty};var t2=function(n){function t(i){n.call(this),this.values=i}n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t;var e={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,o){return 0==r&&o==this.length?this:new t(this.values.slice(r,o))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,o,s,a){for(var l=o;l=s;l--)if(!1===r(this.values[l],a+l))return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=200)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=200)return new t(r.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(t.prototype,e),t}(Fn);Fn.empty=new t2([]);var Rpe=function(n){function t(e,i){n.call(this),this.left=e,this.right=i,this.length=e.length+i.length,this.depth=Math.max(e.depth,i.depth)+1}return n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(i){return ia&&!1===this.right.forEachInner(i,Math.max(r-a,0),Math.min(this.length,o)-a,s+a))return!1},t.prototype.forEachInvertedInner=function(i,r,o,s){var a=this.left.length;if(r>a&&!1===this.right.forEachInvertedInner(i,r-a,Math.max(o,a)-a,s+a)||o=o?this.right.slice(i-o,r-o):this.left.slice(i,o).append(this.right.slice(0,r-o))},t.prototype.leafAppend=function(i){var r=this.right.leafAppend(i);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(i){var r=this.left.leafPrepend(i);if(r)return new t(r,this.right)},t.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new t(this.left,new t(this.right,i)):new t(this,i)},t}(Fn);const n2=Fn;class zr{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let r,o,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}e&&(r=this.remapping(i,this.items.length),o=r.maps.length);let a,l,s=t.tr,c=[],u=[];return this.items.forEach((d,h)=>{if(!d.step)return r||(r=this.remapping(i,h+1),o=r.maps.length),o--,void u.push(d);if(r){u.push(new Co(d.map));let f,p=d.step.map(r.slice(o));p&&s.maybeStep(p).doc&&(f=s.mapping.maps[s.mapping.maps.length-1],c.push(new Co(f,void 0,void 0,c.length+u.length))),o--,f&&r.appendMap(f,o)}else s.maybeStep(d.step);return d.selection?(a=r?d.selection.map(r.slice(o)):d.selection,l=new zr(this.items.slice(0,i).append(u.reverse().concat(c)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(t,e,i,r){let o=[],s=this.eventCount,a=this.items,l=!r&&a.length?a.get(a.length-1):null;for(let u=0;uUpe&&(a=function Qpe(n,t){let e;return n.forEach((i,r)=>{if(i.selection&&0==t--)return e=r,!1}),n.slice(e)}(a,c),s-=c),new zr(a.append(o),s)}remapping(t,e){let i=new Pc;return this.items.forEach((r,o)=>{i.appendMap(r.map,null!=r.mirrorOffset&&o-r.mirrorOffset>=t?i.maps.length-r.mirrorOffset:void 0)},t,e),i}addMaps(t){return 0==this.eventCount?this:new zr(this.items.append(t.map(e=>new Co(e))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let i=[],r=Math.max(0,this.items.length-e),o=t.mapping,s=t.steps.length,a=this.eventCount;this.items.forEach(h=>{h.selection&&a--},r);let l=e;this.items.forEach(h=>{let p=o.getMirror(--l);if(null==p)return;s=Math.min(s,p);let f=o.maps[p];if(h.step){let g=t.steps[p].invert(t.docs[p]),m=h.selection&&h.selection.map(o.slice(l+1,p));m&&a++,i.push(new Co(f,g,m))}else i.push(new Co(f))},r);let c=[];for(let h=e;h500&&(d=d.compress(this.items.length-i.length)),d}emptyItemCount(){let t=0;return this.items.forEach(e=>{e.step||t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),i=e.maps.length,r=[],o=0;return this.items.forEach((s,a)=>{if(a>=t)r.push(s),s.selection&&o++;else if(s.step){let l=s.step.map(e.slice(i)),c=l&&l.getMap();if(i--,c&&e.appendMap(c,i),l){let u=s.selection&&s.selection.map(e.slice(i));u&&o++;let h,d=new Co(c.invert(),l,u),p=r.length-1;(h=r.length&&r[p].merge(d))?r[p]=h:r.push(d)}}else s.map&&i--},this.items.length,0),new zr(n2.from(r.reverse()),o)}}zr.empty=new zr(n2.empty,0);class Co{constructor(t,e,i,r){this.map=t,this.step=e,this.selection=i,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Co(e.getMap().invert(),e,this.selection)}}}class da{constructor(t,e,i,r){this.done=t,this.undone=e,this.prevRanges=i,this.prevTime=r}}const Upe=20;function r2(n){let t=[];return n.forEach((e,i,r,o)=>t.push(r,o)),t}function ww(n,t){if(!n)return null;let e=[];for(let i=0;inew da(zr.empty,zr.empty,null,0),apply:(t,e,i)=>function jpe(n,t,e,i){let o,r=e.getMeta(vo);if(r)return r.historyState;e.getMeta(a2)&&(n=new da(n.done,n.undone,null,0));let s=e.getMeta("appendedTransaction");if(0==e.steps.length)return n;if(s&&s.getMeta(vo))return s.getMeta(vo).redo?new da(n.done.addTransform(e,void 0,i,HA(t)),n.undone,r2(e.mapping.maps[e.steps.length-1]),n.prevTime):new da(n.done,n.undone.addTransform(e,void 0,i,HA(t)),null,n.prevTime);if(!1===e.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=e.getMeta("rebased"))?new da(n.done.rebased(e,o),n.undone.rebased(e,o),ww(n.prevRanges,e.mapping),n.prevTime):new da(n.done.addMaps(e.mapping.maps),n.undone.addMaps(e.mapping.maps),ww(n.prevRanges,e.mapping),n.prevTime);{let a=0==n.prevTime||!s&&(n.prevTime<(e.time||0)-i.newGroupDelay||!function zpe(n,t){if(!t)return!1;if(!n.docChanged)return!0;let e=!1;return n.mapping.maps[0].forEach((i,r)=>{for(let o=0;o=t[o]&&(e=!0)}),e}(e,n.prevRanges)),l=s?ww(n.prevRanges,e.mapping):r2(e.mapping.maps[e.steps.length-1]);return new da(n.done.addTransform(e,a?t.selection.getBookmark():void 0,i,HA(t)),zr.empty,l,e.time)}}(e,i,t,n)},config:n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(t,e){let i=e.inputType,r="historyUndo"==i?l2:"historyRedo"==i?c2:null;return!!r&&(e.preventDefault(),r(t.state,t.dispatch))}}}})}const l2=(n,t)=>{let e=vo.getState(n);return!(!e||0==e.done.eventCount||(t&&o2(e,n,t,!1),0))},c2=(n,t)=>{let e=vo.getState(n);return!(!e||0==e.undone.eventCount||(t&&o2(e,n,t,!0),0))},Vpe=Ft.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:n,dispatch:t})=>l2(n,t),redo:()=>({state:n,dispatch:t})=>c2(n,t)}),addProseMirrorPlugins(){return[Hpe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-\u044f":()=>this.editor.commands.undo(),"Shift-Mod-\u044f":()=>this.editor.commands.redo()}}}),Gpe=tn.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:n}){return["hr",Et(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n})=>n().insertContent({type:this.name}).command(({tr:t,dispatch:e})=>{var i;if(e){const{$to:r}=t.selection,o=r.end();if(r.nodeAfter)t.setSelection(Ee.create(t.doc,r.pos));else{const s=null===(i=r.parent.type.contentMatch.defaultType)||void 0===i?void 0:i.create();s&&(t.insert(o,s),t.setSelection(Ee.create(t.doc,o)))}t.scrollIntoView()}return!0}).run()}},addInputRules(){return[WR({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.type})]}}),Ype=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,Wpe=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,Jpe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,Kpe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,$pe=Qr.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:n=>"normal"!==n.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:n}){return["em",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[dl({find:Ype,type:this.type}),dl({find:Jpe,type:this.type})]},addPasteRules(){return[na({find:Wpe,type:this.type}),na({find:Kpe,type:this.type})]}}),qpe=tn.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",Et(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Xpe=/^(\d+)\.\s$/,Zpe=tn.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:n}){const{start:t,...e}=n;return 1===t?["ol",Et(this.options.HTMLAttributes,e),0]:["ol",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){return[sM({find:Xpe,type:this.type,getAttributes:n=>({start:+n[1]}),joinPredicate:(n,t)=>t.childCount+t.attrs.start===+n[1]})]}}),efe=tn.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:n}){return["p",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tfe=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,nfe=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,ife=Qr.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("line-through")&&{}}],renderHTML({HTMLAttributes:n}){return["s",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[dl({find:tfe,type:this.type})]},addPasteRules(){return[na({find:nfe,type:this.type})]}}),rfe=tn.create({name:"text",group:"inline"}),u2=Ft.create({name:"starterKit",addExtensions(){var n,t,e,i,r,o,s,a,l,c,u,d,h,p,f,g,m,A;const y=[];return!1!==this.options.blockquote&&y.push(lpe.configure(null===(n=this.options)||void 0===n?void 0:n.blockquote)),!1!==this.options.bold&&y.push(ppe.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&y.push(gpe.configure(null===(e=this.options)||void 0===e?void 0:e.bulletList)),!1!==this.options.code&&y.push(bpe.configure(null===(i=this.options)||void 0===i?void 0:i.code)),!1!==this.options.codeBlock&&y.push(Epe.configure(null===(r=this.options)||void 0===r?void 0:r.codeBlock)),!1!==this.options.document&&y.push(Cpe.configure(null===(o=this.options)||void 0===o?void 0:o.document)),!1!==this.options.dropcursor&&y.push(wpe.configure(null===(s=this.options)||void 0===s?void 0:s.dropcursor)),!1!==this.options.gapcursor&&y.push(kpe.configure(null===(a=this.options)||void 0===a?void 0:a.gapcursor)),!1!==this.options.hardBreak&&y.push(Ppe.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&y.push(Fpe.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&y.push(Vpe.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&y.push(Gpe.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&y.push($pe.configure(null===(h=this.options)||void 0===h?void 0:h.italic)),!1!==this.options.listItem&&y.push(qpe.configure(null===(p=this.options)||void 0===p?void 0:p.listItem)),!1!==this.options.orderedList&&y.push(Zpe.configure(null===(f=this.options)||void 0===f?void 0:f.orderedList)),!1!==this.options.paragraph&&y.push(efe.configure(null===(g=this.options)||void 0===g?void 0:g.paragraph)),!1!==this.options.strike&&y.push(ife.configure(null===(m=this.options)||void 0===m?void 0:m.strike)),!1!==this.options.text&&y.push(rfe.configure(null===(A=this.options)||void 0===A?void 0:A.text)),y}});let ofe=(()=>{class n{constructor(e,i){this.el=e,this._renderer=i,this.outputFormat="html",this.onChange=()=>{},this.onTouched=()=>{},this.handleChange=({transaction:r})=>{if(r.docChanged){if("html"===this.outputFormat)return void this.onChange(this.editor.getHTML());this.onChange(this.editor.getJSON())}}}writeValue(e){!e||(!this.outputFormat&&"string"==typeof e&&(this.outputFormat="html"),this.editor.chain().setContent(e,!1).run())}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.editor.setEditable(!e),this._renderer.setProperty(this.el.nativeElement,"disabled",e)}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");const e=this.el.nativeElement.innerHTML;this.el.nativeElement.innerHTML="",this.el.nativeElement.appendChild(this.editor.options.element.firstChild),this.editor.setOptions({element:this.el.nativeElement}),e&&this.editor.chain().setContent(e,!1).run(),this.editor.on("blur",()=>{this.onTouched()}),this.editor.on("transaction",this.handleChange)}ngOnDestroy(){this.editor.destroy()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(qr))},n.\u0275dir=ue({type:n,selectors:[["tiptap","editor",""],["","tiptap","","editor",""],["tiptap-editor","editor",""],["","tiptapEditor","","editor",""]],inputs:{editor:"editor",outputFormat:"outputFormat"},features:[yt([{provide:Qi,useExisting:Je(()=>n),multi:!0}])]}),n})(),sfe=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-editor-count-bar"]],inputs:{characterCount:"characterCount",charLimit:"charLimit",readingTime:"readingTime"},decls:8,vars:6,template:function(e,i){1&e&&(x(0,"span"),de(1),B(),x(2,"span"),de(3,"\u25cf"),B(),de(4),x(5,"span"),de(6,"\u25cf"),B(),de(7)),2&e&&(Ms("error-message",i.charLimit&&i.characterCount.characters()>i.charLimit),v(1),bf(" ",i.characterCount.characters(),"",i.charLimit?"/"+i.charLimit:""," chars\n"),v(3),no("\n",i.characterCount.words()," words\n"),v(3),no("\n",i.readingTime,"m read\n"))},styles:["[_nghost-%COMP%]{display:flex;justify-content:flex-end;align-items:flex-end;color:#b3b1b8;margin-top:1rem;gap:.65rem;font-size:16px}[_nghost-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d0021b}"]}),n})();function afe(n,t){if(1&n&&ie(0,"dot-editor-count-bar",4),2&n){const e=w(2);C("characterCount",e.characterCount)("charLimit",e.charLimit)("readingTime",e.readingTime)}}const lfe=function(n){return{"overflow-hidden":n}};function cfe(n,t){if(1&n){const e=Re();ct(0),x(1,"div",1)(2,"tiptap-editor",2),K("ngModelChange",function(r){return re(e),oe(w().content=r)})("keyup",function(){return re(e),oe(w().subject.next())}),B()(),S(3,afe,1,3,"dot-editor-count-bar",3),ut()}if(2&n){const e=w();v(1),An(e.customStyles),v(1),C("ngModel",e.content)("editor",e.editor)("ngClass",Wt(6,lfe,e.freezeScroll)),v(1),C("ngIf",e.showCharData)}}let dfe=(()=>{class n{constructor(e,i,r){this.injector=e,this.viewContainerRef=i,this.dotMarketingConfigService=r,this.lang=Um,this.displayCountBar=!0,this.content="",this.valueChange=new te,this.subject=new Me,this.freezeScroll=!0,this._allowedBlocks=["paragraph"],this._customNodes=new Map([["dotContent",Jie(this.injector)],["image",hi],["video",Zie],["table",Zoe.extend({resizable:!0})]]),this.destroy$=new Me}set showVideoThumbnail(e){this.dotMarketingConfigService.setProperty(Bh.SHOW_VIDEO_THUMBNAIL,e)}set allowedBlocks(e){const i=e?e.replace(/ /g,"").split(",").filter(Boolean):[];this._allowedBlocks=[...this._allowedBlocks,...i]}set value(e){"string"!=typeof e?this.setEditorJSONContent(e):this.content=(n=>{const t=new RegExp(/]*)>(.|\n)*?<\/p>/gm),e=new RegExp(/]*)>(.|\n)*?<\/h\d+>/gm),i=new RegExp(/]*)>(.|\n)*?<\/li>/gm),r=new RegExp(/<(ul|ol)(|\s+[^>]*)>(.|\n)*?<\/(ul|ol)>/gm);return n.replace(Xte,o=>(n=>{const t=document.createElement("div");t.innerHTML=n;const e=t.querySelector("a").getAttribute("href"),i=t.querySelector("a").getAttribute("href"),r=t.querySelector("a").getAttribute("alt");return n.replace(/]*)>/gm,"").replace(//gm,"").replace(dM,o=>o.replace(/img/gm,`img href="${e}" title="${i}" alt="${r}"`))})(o)).replace(t,o=>Qm(o)).replace(e,o=>Qm(o)).replace(i,o=>Qm(o)).replace(r,o=>Qm(o))})(e)}get characterCount(){return this.editor?.storage.characterCount}get showCharData(){try{return JSON.parse(this.displayCountBar)}catch{return!0}}get readingTime(){return Math.ceil(this.characterCount.words()/265)}loadCustomBlocks(e){return Mh(function*(){return Promise.allSettled(e.map(function(){var i=Mh(function*(r){return import(r)});return function(r){return i.apply(this,arguments)}}()))})()}ngOnInit(){Lt(this.getCustomRemoteExtensions()).pipe($n(1)).subscribe(e=>{this.editor=new fte({extensions:[...this.getEditorExtensions(),...this.getEditorMarks(),...this.getEditorNodes(),...e]}),this.editor.on("create",()=>this.updateChartCount()),this.subject.pipe(Yn(this.destroy$),zg(250)).subscribe(()=>this.updateChartCount()),this.editor.on("update",({editor:i})=>{this.valueChange.emit(JSON.stringify(i.getJSON()))}),this.editor.on("transaction",({editor:i})=>{this.freezeScroll=Th.getState(i.view.state)?.freezeScroll})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}updateChartCount(){const e=this.editor.state.tr.step(new pl("chartCount",this.characterCount.characters())).step(new pl("wordCount",this.characterCount.words())).step(new pl("readingTime",this.readingTime));this.editor.view.dispatch(e)}isValidSchema(e){LQ(e,El({extensions:UQ(El({url:Jh(),actions:zQ(UQ(El({command:Jh(),menuLabel:Jh(),icon:Jh()})))}))}))}getParsedCustomBlocks(){if(!this.customBlocks.length)return{extensions:[]};try{const i=JSON.parse(this.customBlocks);return this.isValidSchema(i),i}catch(i){return console.warn("JSON parse fails, please check the JSON format.",i),{extensions:[]}}}parsedCustomModules(e,i){return i.status===Oh.REJECTED&&console.warn("Failed to load the module",i.reason),i.status===Oh.FULFILLED?{...e,...i?.value}:{...e}}getCustomRemoteExtensions(){var e=this;return Mh(function*(){const i=e.getParsedCustomBlocks(),r=i?.extensions?.map(l=>l.url),o=yield e.loadCustomBlocks(r),s=[];i.extensions.forEach(l=>{s.push(...l.actions?.map(c=>c.name)||[])});const a=o.reduce(e.parsedCustomModules,{});return Object.values(a)})()}getEditorNodes(){return[this._allowedBlocks?.length>1?u2.configure(this.starterConfig()):u2,...this.getAllowedCustomNodes()]}starterConfig(){const r=["heading1","heading2","heading3","heading4","heading5","heading6"].filter(s=>this._allowedBlocks?.includes(s)).map(s=>+s.slice(-1)),o=["orderedList","bulletList","blockquote","codeBlock","horizontalRule"].filter(s=>!this._allowedBlocks?.includes(s)).reduce((s,a)=>({...s,[a]:!1}),{});return{heading:!!r?.length&&{levels:r,HTMLAttributes:{}},...o}}getAllowedCustomNodes(){const e=[];if(this._allowedBlocks.length<=1)return[...this._customNodes.values()];for(const i of this._allowedBlocks){const r=this._customNodes.get(i);r&&e.push(r)}return e}getEditorExtensions(){return[Gre({lang:this.lang,allowedContentTypes:this.allowedContentTypes,allowedBlocks:this._allowedBlocks}),ipe.configure({placeholder:this.placeholder}),une(this.viewContainerRef,this.getParsedCustomBlocks()),nse(this.viewContainerRef),Sse(this.injector,this.viewContainerRef),bre(this.viewContainerRef),Vre(this.viewContainerRef),Bre(this.viewContainerRef),bse(this.injector,this.viewContainerRef),$re(this.viewContainerRef),wse(this.viewContainerRef),qre.extend({renderHTML({HTMLAttributes:n}){return["th",Et(this.options.HTMLAttributes,n),["button",{class:"dot-cell-arrow"}],["p",0]]}}),rpe,xse,Nhe]}getEditorMarks(){return[spe,ope.configure({types:["heading","paragraph","listItem","dotImage"]}),Uhe.configure({HTMLAttributes:{style:"background: #accef7;"}}),npe.configure({autolink:!1,openOnClick:!1})]}placeholder({node:e}){return"heading"===e.type.name?`${function ufe(n){return n.replace(/\p{L}+('\p{L}+)?/gu,function(t){return t.charAt(0).toUpperCase()+t.slice(1)})}(e.type.name)} ${e.attrs.level}`:"codeBlock"===e.type.name?null:'Type "/" for commmands'}setEditorJSONContent(e){this.content=this._allowedBlocks?.length>1?((n,t)=>{const e=(n=>n.reduce((t,e)=>eN[e]?{...t,...eN[e]}:{...t,[e]:!0},Jte))(this._allowedBlocks),i=Array.isArray(n)?[...n]:[...n.content];return tN(i,e)})(e):e}}return n.\u0275fac=function(e){return new(e||n)(T(Tn),T(Ni),T(qR))},n.\u0275cmp=ve({type:n,selectors:[["dot-block-editor"]],inputs:{lang:"lang",allowedContentTypes:"allowedContentTypes",customStyles:"customStyles",displayCountBar:"displayCountBar",charLimit:"charLimit",customBlocks:"customBlocks",content:"content",showVideoThumbnail:"showVideoThumbnail",allowedBlocks:"allowedBlocks",value:"value"},outputs:{valueChange:"valueChange"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"editor-wrapper"],[3,"ngModel","editor","ngClass","ngModelChange","keyup"],[3,"characterCount","charLimit","readingTime",4,"ngIf"],[3,"characterCount","charLimit","readingTime"]],template:function(e,i){1&e&&S(0,cfe,4,8,"ng-container",0),2&e&&C("ngIf",i.editor)},dependencies:[zn,Pt,Pd,Ag,ofe,sfe],styles:['@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400&display=swap";@import"https://fonts.googleapis.com/icon?family=Material+Icons";@font-face{font-family:primeicons;font-display:block;font-weight:400;font-style:normal;src:url(data:application/font-woff;base64,d09GRgABAAAAAQSgAAsAAAABBFQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIHFmNtYXAAAAFoAAAAVAAAAFQXVtN1Z2FzcAAAAbwAAAAIA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format("woff")}[_nghost-%COMP%] .form__buttons{display:flex;justify-content:center;margin-top:4.5rem}[_nghost-%COMP%] .form__buttons button{margin:0 .5rem}[_nghost-%COMP%] .form__group{margin:1rem 0;position:relative}[_nghost-%COMP%] .form__group:after{clear:both;content:"";display:table}[_nghost-%COMP%] .form__group .md-inputtext, [_nghost-%COMP%] .form__group>.ui-inputtext{width:100%}.ui-dialog-content [_nghost-%COMP%] .form__group:first-child{padding-top:0}.ui-dialog-content [_nghost-%COMP%] .form__group:last-child{padding-bottom:0}[_nghost-%COMP%] .form__group .ui-dropdown{width:100%}[_nghost-%COMP%] .form__group--validation{min-height:60px}[_nghost-%COMP%] .form__group--helper{position:relative}[_nghost-%COMP%] .form__group--helper input[pinputtext]{padding-right:4.5rem}[_nghost-%COMP%] .form__group--helper dot-field-helper{position:absolute;top:1.5rem;right:0;z-index:1}[_nghost-%COMP%] .p-field-hint, [_nghost-%COMP%] .form__group-hint{color:#7e7a86;display:block;font-size:.85rem;margin-top:.25rem}[_nghost-%COMP%] .form__label{color:#524e5c99;display:block;font-size:.85rem}[_nghost-%COMP%] .form__hint-icon{border-radius:50%;border:solid 1px;color:#7e7a86;cursor:pointer;margin-left:1rem;text-align:center;width:15px}.form__group [_nghost-%COMP%] .form__hint-icon:first-child{margin:0;position:absolute;right:0;top:32px;z-index:1}.form__group:first-child [_nghost-%COMP%] .form__hint-icon:first-child{top:25px}[_nghost-%COMP%] .form-group__two-cols>*:first-child{display:inline-block;padding-bottom:.5rem}@media (min-width: 40.063em){[_nghost-%COMP%] .form-group__two-cols{align-items:center;display:flex;justify-content:space-between}[_nghost-%COMP%] .form-group__two-cols>*:first-child{padding-bottom:0}}[_nghost-%COMP%] h1, [_nghost-%COMP%] h2, [_nghost-%COMP%] h3, [_nghost-%COMP%] h4, [_nghost-%COMP%] h5{font-weight:400;line-height:1.5}[_nghost-%COMP%] h1{font-size:4.28rem;letter-spacing:-.5px}[_nghost-%COMP%] h2{font-size:3.43rem}[_nghost-%COMP%] h3{font-size:2.43rem;letter-spacing:.25px}[_nghost-%COMP%] h4{font-size:1.71rem}[_nghost-%COMP%] h5{font-size:1.43rem}[_nghost-%COMP%] .p-component{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;font-weight:400;line-height:normal}[_nghost-%COMP%] .p-component-overlay{background-color:#fff9;transition-duration:.2s}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-component:disabled{opacity:.38}[_nghost-%COMP%] .p-text-secondary{color:#11152e}[_nghost-%COMP%] .pi{font-size:1rem}[_nghost-%COMP%] .p-link{font-size:1rem;font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;border-radius:2px}[_nghost-%COMP%] .p-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button{width:auto}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button.p-button-icon-only{width:2.5rem}[_nghost-%COMP%] .p-field>label{font-size:.85rem}[_nghost-%COMP%] .formgroup-inline .field-checkbox, [_nghost-%COMP%] .formgroup-inline .field-checkbox{margin-bottom:0}[_nghost-%COMP%] .p-label-input-required:after{content:"*";color:red;margin-left:2px;vertical-align:middle}[_nghost-%COMP%] .p-button.p-autocomplete-dropdown{padding-left:1rem;padding-right:1rem}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-loader{right:.75rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-dd .p-autocomplete-loader{right:3rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container{padding:.375rem .75rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled):hover{border-color:#11152e}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token input{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;padding:0;margin:0}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token{padding:.375rem .75rem;margin-right:.5rem;background:rgba(63,81,181,.12);color:var(--color-main);border-radius:2px}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon{margin-left:.5rem}[_nghost-%COMP%] .p-autocomplete.p-error>.p-inputtext, [_nghost-%COMP%] .p-autocomplete.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] p-autocomplete.ng-dirty.ng-invalid>.p-autocomplete>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-autocomplete-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items{padding:0}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-autocomplete-dropdown{background:#fff;border:1px solid #b3b1b8;border-top-right-radius:2px;border-bottom-right-radius:2px;border-left:none;padding:0;min-width:3rem}[_nghost-%COMP%] .p-autocomplete-dropdown:enabled:hover, [_nghost-%COMP%] .p-autocomplete-dropdown:enabled:focus{background:#f1f1f1;border:1px solid #b3b1b8;border-left:none}[_nghost-%COMP%] .p-autocomplete-dropdown .p-button-icon:before{color:gray}[_nghost-%COMP%] .p-badge{background:var(--color-main);color:#fff;font-size:.75rem;font-weight:700;min-width:1.5rem;height:1.5rem;line-height:1.5;display:inline-flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-badge.p-badge-secondary{background-color:initial;color:var(--color-sec);border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-badge.p-badge-lg{font-size:1.125rem;min-width:2.5rem;height:2.5rem}[_nghost-%COMP%] .p-badge.p-badge-xl{font-size:1.5rem;min-width:3rem;height:3rem}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi{color:#b3b1b8}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi:not(:nth-child(2)){font-size:.75rem}[_nghost-%COMP%] .p-breadcrumb ul li:first-child{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li:nth-child(2):before{content:"";width:1px;height:20px;background:#b3b1b8;display:block}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link{transition:none;border-radius:2px}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text:hover{color:var(--color-main);text-decoration:underline}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-text{color:#7e7a86}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-breadcrumb ul li.p-breadcrumb-chevron{margin:0 .5rem;color:#11152e}[_nghost-%COMP%] .p-breadcrumb ul li:last-child .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-button{background:var(--color-main);border-radius:2px;border:0 none;border:solid 1px transparent;color:#fff;font-size:1rem;font-weight:500;line-height:normal;padding:.75rem 2rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:rgba(var(--color-main_rgb),.72);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text{background-color:transparent;color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text:enabled:hover, [_nghost-%COMP%] .p-button.p-button-text:enabled:focus{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain{color:#11152e}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain:enabled:hover{background:rgba(0,0,0,.04);color:#11152e}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain:enabled:active{background:rgba(0,0,0,.16);color:#11152e}[_nghost-%COMP%] .p-button.p-button-vertical{font-size:1rem;padding:.5rem .75rem;color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-vertical:enabled:hover, [_nghost-%COMP%] .p-button.p-button-vertical:enabled:focus{color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-vertical .p-button-icon{margin:0 0 .25rem;font-size:1.5rem}[_nghost-%COMP%] .p-button:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px rgba(var(--color-sec_rgb),.2)}[_nghost-%COMP%] .p-button .p-button-icon-left{margin-right:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-right{margin-left:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-bottom{margin-top:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-top{margin-bottom:.5rem}[_nghost-%COMP%] .p-button .p-badge{margin-left:.5rem;min-width:1rem;height:1rem;line-height:1rem;color:var(--color-main);background-color:#fff}[_nghost-%COMP%] .p-button.p-button-raised{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-button.p-button-rounded{border-radius:2rem}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only{color:#524e5c;padding:.571rem;min-width:auto}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:hover{color:#524e5c}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:active, [_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:focus{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-button.p-button-icon-only{padding-left:.75rem;padding-right:.75rem}[_nghost-%COMP%] .p-button.p-button-icon-only .p-button-icon-left, [_nghost-%COMP%] .p-button.p-button-icon-only .p-button-icon-right{margin:0}[_nghost-%COMP%] .p-button.p-button-icon-only.p-button-rounded{border-radius:50%;height:3rem;width:3rem}[_nghost-%COMP%] .p-button.p-button-sm{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-button.p-button-sm .p-button-icon{font-size:.85rem}[_nghost-%COMP%] .p-button.p-button-lg{font-size:1.5rem;padding:.75rem 2rem}[_nghost-%COMP%] .p-button.p-button-lg .p-button-icon{font-size:1.5rem}[_nghost-%COMP%] .p-fluid .p-button-icon-only{width:3rem}[_nghost-%COMP%] .p-fluid .p-buttonset{display:flex}[_nghost-%COMP%] .p-fluid .p-buttonset .p-button{flex:1}[_nghost-%COMP%] .p-button.p-button-disabled, [_nghost-%COMP%] .p-buttonset.p-button-disabled>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-disabled>.p-button{color:#b3b1b8;background:rgba(0,0,0,.12);border:none}[_nghost-%COMP%] .p-button.p-button-secondary, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button{color:var(--color-sec);border-top:1px solid var(--color-sec);border-left:1px solid var(--color-sec);border-bottom:1px solid var(--color-sec);background:none}[_nghost-%COMP%] .p-button.p-button-secondary{border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary:hover{background:none;border-right:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary:disabled{border-color:transparent}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:hover{border-top:1px solid var(--color-main);border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);color:var(--color-main)}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:hover~.p-splitbutton-menubutton, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:hover~.p-splitbutton-menubutton, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:hover~.p-splitbutton-menubutton{border-left:1px solid var(--color-main)}[_nghost-%COMP%] .p-button-secondary.p-confirm-dialog-reject{border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button-secondary.p-confirm-dialog-reject:hover{border-color:var(--color-main);background:none}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-button.p-button-secondary:enabled:focus{background:none;border-color:transparent;color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-info, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button{color:#fff;background:#2196f3;border:0 none}[_nghost-%COMP%] .p-button.p-button-info:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:hover{background:rgba(33,150,243,.92);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-info:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-button.p-button-info:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:active{background:rgba(33,150,243,.68);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button{color:#fff;background:#d32f2f;border:0 none}[_nghost-%COMP%] .p-button.p-button-danger:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:hover{background:rgba(211,47,47,.92);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-button.p-button-danger:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:active{background:rgba(211,47,47,.68);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text{background-color:transparent;color:#d32f2f;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:hover{background:rgba(211,47,47,.04);border-color:transparent;color:#d32f2f}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:active{background:rgba(211,47,47,.16);border-color:transparent;color:#d32f2f}[_nghost-%COMP%] .p-button.p-button-link{color:var(--color-main);background:transparent;border:transparent;text-decoration:underline}[_nghost-%COMP%] .p-button-label{text-transform:uppercase;font-weight:500}[_nghost-%COMP%] .p-button.p-button-link:enabled:hover{background:transparent;border-color:transparent;color:var(--color-main)}[_nghost-%COMP%] .p-button.p-button-link:enabled:hover .p-button-label{text-decoration:underline}[_nghost-%COMP%] .p-button.p-button-link:enabled:focus{background:transparent;box-shadow:none;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-link:enabled:active{background:transparent;color:transparent;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-link.p-button-sm{padding:0 .75rem}[_nghost-%COMP%] .p-button .p-ink{background-color:rgba(var(--color-white_rgb),.32)}[_nghost-%COMP%] .p-button:disabled{background-color:#0000001f!important;color:#b3b1b8!important;opacity:1}[_nghost-%COMP%] .p-button:disabled.p-button-link{background-color:transparent!important}[_nghost-%COMP%] .p-button:disabled.p-button-text{background-color:transparent!important;color:#b3b1b8!important}[_nghost-%COMP%] .p-button:disabled.p-button-outlined{background-color:transparent!important;border-color:#b3b1b8;color:#b3b1b8}[_nghost-%COMP%] .p-button.p-button-raised:enabled:focus{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:focus{border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:active{border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text:enabled:focus{background:rgba(255,64,129,.12)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text:enabled:active{background:rgba(255,64,129,.16)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text .p-ink, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text .p-ink, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text .p-ink{background-color:#ff408129}[_nghost-%COMP%] .p-button.p-button-danger:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:focus{background:rgba(211,47,47,.76)}[_nghost-%COMP%] .p-button.p-button-danger:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:active{background:rgba(211,47,47,.68)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:focus{background:rgba(211,47,47,.12)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:active{background:rgba(211,47,47,.16)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text .p-ink, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text .p-ink, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text .p-ink{background-color:#d32f2f29}[_nghost-%COMP%] .p-button.p-button-outlined{background-color:transparent;color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined:enabled:hover{background:rgba(33,150,243,.04);color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined:enabled:active{background:rgba(33,150,243,.16);color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain{color:#6c757d;border-color:#6c757d}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain:enabled:hover{background:#e9ecef;color:#6c757d}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain:enabled:active{background:#dee2e6;color:#6c757d}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined{background-color:transparent;color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined:enabled:hover{background:rgba(96,125,139,.04);color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined:enabled:active{background:rgba(96,125,139,.16);color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined{background-color:transparent;color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined:enabled:hover{background:rgba(2,136,209,.04);color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined:enabled:active{background:rgba(2,136,209,.16);color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined{background-color:transparent;color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined:enabled:hover{background:rgba(104,159,56,.04);color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined:enabled:active{background:rgba(104,159,56,.16);color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined{background-color:transparent;color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined:enabled:hover{background:rgba(251,192,45,.04);color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined:enabled:active{background:rgba(251,192,45,.16);color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined{background-color:transparent;color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined:enabled:hover{background:rgba(156,39,176,.04);color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined:enabled:active{background:rgba(156,39,176,.16);color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined{background-color:transparent;color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined:enabled:hover{background:rgba(211,47,47,.04);color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined:enabled:active{background:rgba(211,47,47,.16);color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-calendar.p-error>.p-inputtext, [_nghost-%COMP%] .p-calendar.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-calendar.ng-dirty.ng-invalid>.p-calendar>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-calendar-w-btn{border:1px solid #b3b1b8;background:#ffffff;border-radius:2px}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext{background-image:none;background:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button{background-color:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button span{color:#11152e}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:enabled:hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:focus{background:#11152e}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled):hover{border-color:#11152e}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled).p-inputwrapper-focus{border-color:#b3b1b8;box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-datepicker{padding:.5rem;background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline){background:#ffffff;border:0 none;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline) .p-datepicker-header{background:#ffffff}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{padding:.5rem;color:#11152e;background:#ffffff;font-weight:500;margin:0;border-bottom:1px solid #e2e2e2;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:focus, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{line-height:2rem}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select{transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month{margin-right:.5rem}[_nghost-%COMP%] .p-datepicker table{font-size:1rem;margin:.5rem 0}[_nghost-%COMP%] .p-datepicker table th{padding:.5rem}[_nghost-%COMP%] .p-datepicker table th>span{width:3rem;height:3rem}[_nghost-%COMP%] .p-datepicker table td{padding:.5rem}[_nghost-%COMP%] .p-datepicker table td>span{width:3rem;height:3rem;border-radius:50%;transition:none;border:1px solid transparent}[_nghost-%COMP%] .p-datepicker table td>span.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker table td>span:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span{background:#ffffff;color:#11152e;border-color:#b3b1b8}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar{padding:.75rem 0;border-top:1px solid #e2e2e2}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar .p-button{width:auto}[_nghost-%COMP%] .p-datepicker .p-timepicker{border-top:1px solid #e2e2e2;padding:.5rem}[_nghost-%COMP%] .p-datepicker .p-timepicker button{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-timepicker button:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-timepicker button:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-timepicker button:last-child{margin-top:.2em}[_nghost-%COMP%] .p-datepicker .p-timepicker span{font-size:1rem}[_nghost-%COMP%] .p-datepicker .p-timepicker>div{padding:0 .5rem}[_nghost-%COMP%] .p-datepicker.p-datepicker-timeonly .p-timepicker{border-top:0 none}[_nghost-%COMP%] .p-datepicker .p-monthpicker{margin:.5rem 0}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month{padding:.5rem;transition:none;border-radius:2px}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group{border-right:1px solid #e2e2e2;padding-right:.5rem;padding-left:.5rem;padding-top:0;padding-bottom:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child{padding-left:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child{padding-right:0;border-right:0 none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}@media screen and (max-width: 769px){[_nghost-%COMP%] .p-datepicker table th, [_nghost-%COMP%] .p-datepicker table td{padding:0}}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{border-bottom:0 none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{margin:0 auto 0 0;order:1}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev{order:2}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{order:3}[_nghost-%COMP%] .p-datepicker table th{border-bottom:1px solid #e2e2e2;color:#b3b1b8;font-weight:400;font-size:.875rem}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today.p-highlight{box-shadow:0 0 0 1px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] p-checkbox.ng-dirty.ng-invalid>.p-checkbox>.p-checkbox-box{border-color:#d0021b}@keyframes checkbox-check{0%{width:0;height:0;border-color:#fff;transform:translateZ(0) rotate(45deg)}33%{width:4px;height:0;transform:translateZ(0) rotate(45deg)}to{width:4px;height:10px;border-color:#fff;transform:translate3d(0,-10px,0) rotate(45deg)}}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-checkbox{width:18px;height:18px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box{border:2px solid #7e7a86;background:#ffffff;width:18px;height:18px;color:#11152e;border-radius:2px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);position:relative}[_nghost-%COMP%] .p-checkbox .p-checkbox-box .p-checkbox-icon{transition-duration:.2s;color:#fff;font-size:14px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight{border-color:var(--color-main);background:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-main);background:var(--color-main);color:#fff}[_nghost-%COMP%] .p-checkbox.p-error>.p-checkbox-box, [_nghost-%COMP%] .p-checkbox.p-invalid>.p-checkbox-box{border-color:#d0021b}[_nghost-%COMP%] .p-checkbox-label{margin-left:.5rem}[_nghost-%COMP%] .p-checkbox{border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight .p-checkbox-icon:before{content:"";position:absolute;top:8px;left:2px;border-right:2px solid transparent;border-bottom:2px solid transparent;transform:rotate(45deg);transform-origin:0% 100%;animation:checkbox-check 125ms 50ms linear forwards}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled):hover{box-shadow:0 0 1px 10px #3f51b50a}[_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] p-chips.ng-dirty.ng-invalid>.p-chips>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-chips .p-chips-multiple-container{padding:.375rem .75rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token{padding:.375rem .75rem;margin-right:.5rem;background:rgba(var(--color-sec_rgb),.12);color:var(--color-main);border-radius:2px}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon{margin-left:.5rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token input{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;padding:0;margin:0}[_nghost-%COMP%] .p-chips.p-error>.p-inputtext, [_nghost-%COMP%] .p-chips.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-contextmenu{padding:.5rem 0;background:#ffffff;color:#11152e;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;width:12.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link{padding:.75rem;color:#11152e;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-contextmenu .p-submenu-list{padding:.5rem 0;background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-icon, [_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menu-separator{border-top:1px solid rgba(0,0,0,.12);margin:.5rem 0}[_nghost-%COMP%] .p-contextmenu .p-submenu-icon{font-size:.875rem}[_nghost-%COMP%] .p-datatable .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-datatable-header{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-footer{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{background:#ffffff;border:1px solid #e2e2e2;border-width:0 0 1px 0;color:#7e7a86;font-size:.85rem;font-weight:500;padding:.75rem;text-align:left;transition:none}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tfoot>tr>td{text-align:left;padding:.75rem;border:1px solid #b3b1b8;border-width:0 0 1px 0;font-weight:500;color:#11152e;background:#ffffff}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline-color:transparent}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-icon{color:#7e7a86;margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-badge{border-radius:50%;height:1.143rem;min-width:1.143rem;line-height:1.143rem;color:var(--color-main);background:rgba(var(--color-sec_rgb),.12);margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.05);color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon{color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight{background:#ffffff;color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{color:#11152e}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{background:#ffffff;color:#11152e;height:4rem;transition:none;outline-color:transparent;cursor:pointer;overflow-wrap:anywhere}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{text-align:left;border:1px solid #e2e2e2;border-width:0 0 1px 0;padding:.5rem .75rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save{margin-right:.5rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.disabled-row{background:#f1f3f4;color:#7e7a86;cursor:default}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-top>td{box-shadow:inset 0 2px 0 0 rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-bottom>td{box-shadow:inset 0 -2px 0 0 rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.05);color:#11152e}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr.disabled-row:hover{background:#f1f3f4;color:#7e7a86}[_nghost-%COMP%] .p-datatable .p-column-resizer-helper{background:var(--color-main)}[_nghost-%COMP%] .p-datatable .p-datatable-scrollable-header, [_nghost-%COMP%] .p-datatable .p-datatable-scrollable-footer{background:#ffffff}[_nghost-%COMP%] .p-datatable .p-datatable-loading-icon{font-size:3rem;color:var(--color-sec)}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-header{border-width:1px 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-footer{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-top{border-width:0 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-bottom{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-thead>tr>th{border-width:1px 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tbody>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tfoot>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even){background:rgba(0,0,0,.02)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight{background:rgba(var(--color-sec_rgb),.05);color:var(--color-main)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler{color:var(--color-main)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler:hover{color:#11152e}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-header{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-thead>tr>th{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tfoot>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-footer{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-header{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-thead>tr>th{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tbody>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tfoot>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-footer{padding:.9375rem}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline:0 none}[_nghost-%COMP%] .p-datatable .p-sortable-column:focus{background-color:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{outline:0 none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr:not(.p-highlight):focus{background-color:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-dataview .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-dataview-header{background:#ffffff;color:#000001;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-dataview .p-dataview-content{background:#ffffff;color:#000001;border:0 none;padding:.75rem}[_nghost-%COMP%] .p-dataview.p-dataview-list .p-dataview-content>.grid>div{border:solid rgba(0,0,0,.12);border-width:0 0 1px 0}[_nghost-%COMP%] .p-dataview .p-dataview-footer{background:#ffffff;color:#000001;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500;border-bottom-left-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-dataview .p-dataview-loading-icon{font-size:2rem}[_nghost-%COMP%] .p-dataview .p-dataview-emptymessage{padding:.75rem}[_nghost-%COMP%] .p-dialog{border-radius:2px;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;border:0 none}[_nghost-%COMP%] .p-dialog .p-dialog-header{border-bottom:0 none;background:#ffffff;color:#11152e;padding:2.5rem;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-title{font-size:1.5rem;font-size:1.7rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s;margin-right:.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px rgba(var(--color-sec_rgb),.2)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:last-child{margin-right:0}[_nghost-%COMP%] .p-dialog .p-dialog-content{background:#ffffff;color:#11152e;padding:0 2.5rem 2.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-footer{border-top:0 none;background:#ffffff;color:#11152e;padding:1.5rem;text-align:right;border-bottom-right-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-dialog .p-dialog-footer button{margin:0 .5rem 0 0;width:auto}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-icon{font-size:3rem}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-message{line-height:1.5em}[_nghost-%COMP%] .p-dialog-mask.p-component-overlay{background-color:#11152ecc;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] p-dynamicdialog .p-component-overlay{align-items:baseline;padding:7rem}[_nghost-%COMP%] .p-dropdown{background:#ffffff;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:2px}[_nghost-%COMP%] .p-dropdown:not(.p-disabled):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-dropdown.p-dropdown-clearable .p-dropdown-label{padding-right:2.5rem}[_nghost-%COMP%] .p-dropdown .p-dropdown-label{background:transparent;border:0 none}[_nghost-%COMP%] .p-dropdown .p-dropdown-label.p-placeholder{color:#11152e}[_nghost-%COMP%] .p-dropdown .p-dropdown-label:enabled:focus{outline:0 none;box-shadow:none}[_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background:transparent;color:#1b3359;width:2.357rem;border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-dropdown .p-dropdown-clear-icon{color:#11152e;right:2.357rem}[_nghost-%COMP%] .p-dropdown-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter{padding-right:3rem}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items{padding:0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{padding:.75rem;color:#11152e;background:transparent}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group{margin:0;padding:.75rem;color:#11152e;background:#ffffff;font-weight:400}[_nghost-%COMP%] .p-dropdown-panel.p-error, [_nghost-%COMP%] .p-dropdown-panel.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-dropdown.ng-dirty.ng-invalid>.p-dropdown{border-color:#d0021b}[_nghost-%COMP%] .p-dropdown .p-inputtext, [_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background-image:none;background:transparent}[_nghost-%COMP%] .p-dropdown .p-inputtext{border:0 none}[_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-dropdown-item .p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-dropdown-sm .p-dropdown .p-dropdown-label{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-float-label>label{left:.75rem;color:#11152e;transition-duration:.2s}[_nghost-%COMP%] .p-float-label .p-autocomplete-multiple-container .p-autocomplete-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label .p-chips-multiple-container .p-chips-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.5rem!important;background-color:#fff;padding:2px 4px;margin-left:-4px;margin-top:0}[_nghost-%COMP%] .p-float-label textarea~label{margin-top:0}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label{color:#11152e}[_nghost-%COMP%] .p-inplace .p-inplace-display{padding:1rem;border-radius:2px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-inplace .p-inplace-display:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-inplace .p-inplace-display:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputgroup-addon{background:#ffffff;color:#11152e;border-top:1px solid #b3b1b8;border-left:1px solid #b3b1b8;border-bottom:1px solid #b3b1b8;padding:.75rem;min-width:2.357rem}[_nghost-%COMP%] .p-inputgroup-addon:last-child{border-right:1px solid #b3b1b8}[_nghost-%COMP%] .p-inputgroup>.p-component, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component{border-radius:0;margin:0}[_nghost-%COMP%] .p-inputgroup>.p-component+.p-inputgroup-addon, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component+.p-inputgroup-addon{border-left:0 none}[_nghost-%COMP%] .p-inputgroup>.p-component:focus, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component:focus{z-index:1}[_nghost-%COMP%] .p-inputgroup>.p-component:focus~label, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component:focus~label{z-index:1}[_nghost-%COMP%] .p-inputgroup-addon:first-child, [_nghost-%COMP%] .p-inputgroup button:first-child, [_nghost-%COMP%] .p-inputgroup input:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-inputgroup .p-float-label:first-child input{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-inputgroup-addon:last-child, [_nghost-%COMP%] .p-inputgroup button:last-child, [_nghost-%COMP%] .p-inputgroup input:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-inputgroup .p-float-label:last-child input{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-inputswitch{width:2.75rem;height:1rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider{background:#b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:.5rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{background:#ffffff;width:1.5rem;height:1.5rem;left:-1px;margin-top:-.75rem;border-radius:50%;transition-duration:.2s}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{transform:translate(1.5rem)}[_nghost-%COMP%] .p-inputswitch.p-focus .p-inputswitch-slider{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider{background:#b3b1b8}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{background:var(--color-main)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{transition-property:box-shadow transform;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f,0 0 1px 10px #0000000a}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #0000001f,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b50a,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b51f,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] #p-inputtext-extend, [_nghost-%COMP%] .p-inputtext{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;background:#ffffff;padding:.75rem;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);-webkit-appearance:none;appearance:none;border-radius:2px}[_nghost-%COMP%] #p-inputtext-extend:enabled:hover, [_nghost-%COMP%] .p-inputtext:enabled:hover{border-color:var(--color-main)}[_nghost-%COMP%] #p-inputtext-extend:enabled:focus, [_nghost-%COMP%] .p-inputtext:enabled:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-inputtext.p-inputtext-sm{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-inputtext.p-inputtext-lg{font-size:1.5rem;padding:.9375rem}[_nghost-%COMP%] .p-input-icon-left>i:first-of-type{left:.75rem;color:#11152e}[_nghost-%COMP%] .p-input-icon-left>.p-inputtext{padding-left:2.5rem}[_nghost-%COMP%] .p-input-icon-right>i:last-of-type{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-input-icon-right>.p-inputtext{padding-right:2.5rem}[_nghost-%COMP%] ::-webkit-input-placeholder{color:#7e7a86}[_nghost-%COMP%] :-moz-placeholder{color:#11152e}[_nghost-%COMP%] ::-moz-placeholder{color:#11152e}[_nghost-%COMP%] :-ms-input-placeholder{color:#11152e}[_nghost-%COMP%] .p-input-filled .p-inputtext{background-color:#f5f5f5}[_nghost-%COMP%] .p-input-filled .p-inputtext:enabled:hover{background-color:#ececec}[_nghost-%COMP%] .p-input-filled .p-inputtext:enabled:focus{background-color:#dcdcdc}[_nghost-%COMP%] .p-inputtext-sm .p-inputtext{font-size:.875rem;padding:.65625rem}[_nghost-%COMP%] .p-inputtext-lg .p-inputtext{font-size:1.5rem;padding:.9375rem}[_nghost-%COMP%] .p-listbox{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px}[_nghost-%COMP%] .p-listbox .p-listbox-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter{padding-right:2.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-list{padding:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item{margin:0;padding:.75rem;border:0 none;color:#11152e;transition:none;border-radius:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-listbox-item .p-ink{background-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-menu{padding:.5rem 0;background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px;width:12.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link{padding:.75rem;color:#11152e;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-menu.p-menu-overlay{background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .p-menu .p-submenu-header{margin:0;padding:.75rem;color:#11152e;background:#ffffff;font-weight:400;border-top-right-radius:0;border-top-left-radius:0}[_nghost-%COMP%] .p-menu .p-menu-separator{border-top:1px solid rgba(0,0,0,.12);margin:.5rem 0}[_nghost-%COMP%] .p-inline-message{padding:.75rem;margin:0;border-radius:2px}[_nghost-%COMP%] .p-inline-message.p-inline-message-info{background:#b3e5fc;border:solid transparent;border-width:1px;color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-info .p-inline-message-icon{color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-success{background:#c8e6c9;border:solid transparent;border-width:1px;color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-success .p-inline-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn{background:#ffecb3;border:solid transparent;border-width:1px;color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn .p-inline-message-icon{color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-error{background:#ffcdd2;border:solid transparent;border-width:1px;color:#b71c1c}[_nghost-%COMP%] .p-inline-message.p-inline-message-error .p-inline-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-inline-message .p-inline-message-icon{font-size:1rem;margin-right:.5rem}[_nghost-%COMP%] .p-inline-message .p-inline-message-text{font-size:1rem}[_nghost-%COMP%] .p-inline-message.p-inline-message-icon-only .p-inline-message-icon{margin-right:0}[_nghost-%COMP%] .p-message{margin:.75rem 0;border-radius:2px}[_nghost-%COMP%] .p-message .p-message-wrapper{padding:1rem 1.5rem}[_nghost-%COMP%] .p-message .p-message-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-message .p-message-close:hover{background:rgba(var(--color-white_rgb),.3)}[_nghost-%COMP%] .p-message .p-message-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-message.p-message-info{background:#b3e5fc;border:solid transparent;border-width:0 0 0 0;color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-icon{color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-close{color:#01579b}[_nghost-%COMP%] .p-message.p-message-success{background:#c8e6c9;border:solid transparent;border-width:0 0 0 0;color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-close{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-warn{background:#ffecb3;border:solid transparent;border-width:0 0 0 0;color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-icon{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-close{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-error{background:#ffcdd2;border:solid transparent;border-width:0 0 0 0;color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-close{color:#b71c1c}[_nghost-%COMP%] .p-message .p-message-text{font-size:1rem;font-weight:500}[_nghost-%COMP%] .p-message .p-message-icon{font-size:1.5rem;margin-right:.5rem}[_nghost-%COMP%] .p-message .p-message-summary{font-weight:700}[_nghost-%COMP%] .p-message .p-message-detail{margin-left:.5rem}[_nghost-%COMP%] .p-multiselect{background:#ffffff;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:2px;min-width:13rem}[_nghost-%COMP%] .p-multiselect:not(.p-multiselect-open):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-multiselect .p-multiselect-label{padding:.75rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-multiselect .p-multiselect-label.p-placeholder{color:#11152e}[_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background:transparent;color:#11152e;width:2.357rem;border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-multiselect-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext{padding-right:2.5rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-open{border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close{margin-left:.5rem;width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items{padding:0}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus{outline:0 none;outline-offset:0;box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message{padding:.75rem;color:#11152e;background:transparent}[_nghost-%COMP%] .p-multiselect .p-multiselect-label, [_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background-image:none;background:transparent}[_nghost-%COMP%] .p-multiselect .p-multiselect-label{border:0 none}[_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-item .p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip{color:#524e5c}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label{gap:.5rem;padding:.5rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label.p-placeholder{padding:1rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-token{align-items:center;background:rgba(var(--color-main_rgb),.1);border-radius:4px;color:rgb(var(--color-main_rgb));display:flex;gap:.5rem;justify-content:center;margin-right:.5rem;padding:.5rem}[_nghost-%COMP%] .p-overlaypanel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:.75rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close{background:var(--color-main);color:#fff;width:2rem;height:2rem;transition:background-color .2s,color .2s,box-shadow .2s;border-radius:50%;position:absolute;top:-1rem;right:-1rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close:enabled:hover{background:rgba(var(--color-sec_rgb),.12);color:#fff}[_nghost-%COMP%] .p-overlaypanel:after{border:solid transparent;border-color:rgba(var(--color-white_rgb),0)}[_nghost-%COMP%] .p-overlaypanel:before{border:solid transparent;border-color:rgba(var(--color-white_rgb),0)}[_nghost-%COMP%] .p-overlaypanel.p-overlaypanel-flipped:after{border-top-color:#fff}[_nghost-%COMP%] .p-overlaypanel.p-overlaypanel-flipped:before{border-top-color:#fff}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:1.5rem}[_nghost-%COMP%] .p-paginator{background:#ffffff;color:#11152e;border:solid #e2e2e2;border-width:0;padding:.375rem .75rem;border-radius:2px;justify-content:flex-end}[_nghost-%COMP%] .p-paginator .p-paginator-first, [_nghost-%COMP%] .p-paginator .p-paginator-prev, [_nghost-%COMP%] .p-paginator .p-paginator-next, [_nghost-%COMP%] .p-paginator .p-paginator-last{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);border-color:transparent;color:#11152e}[_nghost-%COMP%] .p-paginator .p-paginator-first{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-paginator .p-paginator-last{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-paginator .p-dropdown{margin-left:.5rem;height:3rem}[_nghost-%COMP%] .p-paginator .p-dropdown .p-dropdown-label{padding-right:0}[_nghost-%COMP%] .p-paginator .p-paginator-current{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;padding:0 .5rem}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover{background:#f1f3f4;border-color:transparent;color:#11152e}[_nghost-%COMP%] .p-paginator-bottom{border:none}[_nghost-%COMP%] .p-progressbar{border:0 none;height:4px;background:rgba(var(--color-sec_rgb),.12);border-radius:2px}[_nghost-%COMP%] .p-progressbar .p-progressbar-value{border:0 none;margin:0;background:var(--color-main)}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{color:#11152e;line-height:4px}[_nghost-%COMP%] .p-progressbar{border-radius:0}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{display:none}[_nghost-%COMP%] .p-radiobutton{width:20px;height:20px}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box{border:2px solid #7e7a86;background:#ffffff;width:20px;height:20px;color:#11152e;border-radius:50%;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box .p-radiobutton-icon{width:10px;height:10px;transition-duration:.2s;background-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--color-main);background:#ffffff}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-main);background:#ffffff;color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton-label{margin-left:.5rem}[_nghost-%COMP%] .p-radiobutton{border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{border:2px solid rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-selectbutton .p-button{background:transparent;border:1px solid #b3b1b8;color:#7e7a86;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);text-transform:uppercase}[_nghost-%COMP%] .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover{background-color:rgba(var(--color-sec_rgb),.12);color:#524e5c}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-right{color:#7e7a86}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover{background:rgba(var(--color-sec_rgb),.12);border-color:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-right{color:#11152e}[_nghost-%COMP%] .p-selectbutton .p-button:focus{background:rgba(var(--color-sec_rgb),.12);border-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-selectbutton .p-button:focus.p-highlight{background:rgba(var(--color-sec_rgb),.12);border-color:#b3b1b8;color:#524e5c}[_nghost-%COMP%] .p-button-tabbed{box-shadow:0 1px #b3b1b8;display:inline-block}[_nghost-%COMP%] .p-button-tabbed .p-button{border-radius:0;padding:1rem 2rem;border:none}[_nghost-%COMP%] .p-button-tabbed .p-button:focus.p-highlight, [_nghost-%COMP%] .p-button-tabbed .p-button.p-highlight{color:#524e5c;box-shadow:0 -4px 0 0 var(--color-main) inset}[_nghost-%COMP%] .p-button-compact .p-button{padding-left:1rem;padding-right:1rem}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight{background-color:var(--color-main);color:#fff}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight:focus{background-color:var(--color-main);color:#fff}[_nghost-%COMP%] .p-splitbutton>.p-button:disabled{border-color:#00000003}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:not(:disabled){border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:not(:disabled):hover{border-right:1px solid var(--color-main)}[_nghost-%COMP%] .p-splitbutton-menubutton.p-button{min-width:unset}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-defaultbutton:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-defaultbutton:enabled:focus{border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);border-top:1px solid var(--color-main);color:var(--color-main);border-right:none}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:enabled:focus{border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);border-top:1px solid var(--color-main);border-right:1px solid var(--color-main);color:var(--color-main)}[_nghost-%COMP%] .p-splitbutton>.p-splitbutton-menubutton{padding:0 1rem}[_nghost-%COMP%] .p-splitbutton>.p-splitbutton-menubutton:disabled{border-left:1px solid #b3b1b8}[_nghost-%COMP%] .p-tabview .p-tabview-nav{border:solid rgba(0,0,0,.12);border-width:0 0 1px 0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li{margin-right:0}[_nghost-%COMP%] .p-tabview-title{text-transform:uppercase}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border:none;border-width:0 0 0 0;border-color:transparent transparent transparent transparent;color:#11152e;padding:1.2rem 2.5rem 1.35rem;font-weight:500;transition:none;margin:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link{background:rgba(var(--color-sec_rgb),.12);color:#11152e;background-clip:padding-box;border-bottom:4px solid rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link{border-bottom:4px solid var(--color-sec)}[_nghost-%COMP%] .p-tabview .p-tabview-left-icon{margin-right:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-right-icon{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-close{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-panels{border:0 none;color:#11152e;border-bottom-right-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-tabview .p-tabview-nav{position:relative}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border-radius:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link>.p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:focus{background-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tabview .p-tabview-nav .p-tabview-ink-bar{display:none}[_nghost-%COMP%] .p-tabview-nav-next, [_nghost-%COMP%] .p-tabview-nav-prev{width:40px}[_nghost-%COMP%] .p-toast .p-toast-message{line-height:1.5;background-color:#fff;margin:0 0 1rem;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;border-radius:2px}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content{padding:1.5rem;border-width:0 0 0 0;align-items:center}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-text{margin:0 0 0 1rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon{font-size:1.5rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-summary{font-weight:700}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-detail{margin:.5rem 0 0}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:hover{background:rgba(var(--color-white_rgb),.3)}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-toast .p-toast-message{border:solid transparent;border-width:0 0 0 0;color:#11152e}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-icon{color:#fff;background:var(--color-sec);border-radius:50%;display:flex;justify-content:center;align-items:center;padding:.5rem;align-self:center}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{color:#524e5c;position:absolute;top:.75rem;right:.75rem}[_nghost-%COMP%] .p-toolbar{background-color:#fff;border-bottom:solid 1px #b3b1b8;display:flex;padding:1rem 1.5rem}[_nghost-%COMP%] .p-toolbar.p-corner-all{border-radius:0}[_nghost-%COMP%] .p-toolbar-group-left, [_nghost-%COMP%] .p-toolbar-group-right{align-items:center;display:flex;flex:1}[_nghost-%COMP%] .p-toolbar-group-left{justify-content:flex-start}[_nghost-%COMP%] .p-toolbar-group-right{justify-content:flex-end}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{background:rgba(97,97,97,.9);color:#fff;padding:.75rem 1rem;font-size:1rem;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;border-radius:2px}[_nghost-%COMP%] .p-tooltip.p-tooltip-right .p-tooltip-arrow{border-right-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-left .p-tooltip-arrow{border-left-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-top .p-tooltip-arrow{border-top-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-bottom .p-tooltip-arrow{border-bottom-color:#616161e6}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{box-shadow:none}[_nghost-%COMP%] .p-tree{border:1px solid #b3b1b8;background:#ffffff;color:#11152e;padding:.75rem;border-radius:2px}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode{padding:.25rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content{border-radius:2px;transition:none;padding:.571rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem;width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon{margin-right:.5rem;color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon{color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler, [_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-dragover{background:rgba(0,0,0,.04);color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-filter-container{margin-bottom:.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter{width:100%;padding-right:2.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-tree .p-treenode-children{padding:0 0 0 1rem}[_nghost-%COMP%] .p-tree .p-tree-loading-icon{font-size:3rem}[_nghost-%COMP%] .p-tree .p-treenode-droppoint.p-treenode-droppoint-active{background-color:#3241911f}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content{border-radius:2px;border:1px solid #b3b1b8;background-color:#fff;color:#11152e;padding:.571rem;transition:none}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight{background-color:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox .p-checkbox-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-label:not(.p-highlight):hover{background-color:inherit;color:inherit}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-skeleton{background-color:#e9ecef;border-radius:3px}[_nghost-%COMP%] .p-skeleton:after{background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.4),rgba(255,255,255,0))}[_nghost-%COMP%] .p-tieredmenu{padding:.5rem 0;background:#ffffff;border:0 none;border-radius:2px;width:100%}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link{padding:.75rem;color:var(--color-background);border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tieredmenu.p-tieredmenu-overlay{box-shadow:0 10px 24px #0003}[_nghost-%COMP%] .p-sidebar{background:#ffffff;border:0 none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d}[_nghost-%COMP%] .p-sidebar .p-sidebar-header{padding:1.5rem}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon{width:2rem;height:2rem;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:enabled:hover{border-color:transparent}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:focus, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:focus{outline:0 none;outline-offset:0}[_nghost-%COMP%] .p-sidebar .p-sidebar-content{padding:1rem;height:100%}[_nghost-%COMP%] .p-sidebar-mask{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-enter{animation:p-component-overlay-enter-animation .15s forwards}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-leave{animation:p-component-overlay-leave-animation .15s forwards}@keyframes p-component-overlay-enter-animation{0%{background-color:transparent}to{background-color:#11152ecc}}@keyframes p-component-overlay-leave-animation{0%{background-color:#11152ecc}to{background-color:transparent}}[_nghost-%COMP%] .p-confirm-popup{position:absolute;margin-top:.75rem;top:0;left:0;background:#ffffff;color:#524e5c;border:0 none;border-radius:2px;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-icon{font-size:1.5rem}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-message{margin-left:1rem}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer{padding:.75rem 1.5rem;display:flex;column-gap:5px;justify-content:flex-end}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer button{margin:0 0 .5rem;width:auto}[_nghost-%COMP%] .p-confirm-popup-flipped{margin-top:0;margin-bottom:.75rem}[_nghost-%COMP%] .p-confirm-popup:after, [_nghost-%COMP%] .p-confirm-popup:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.5rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}[_nghost-%COMP%] .p-confirm-popup:after{border-width:8px;margin-left:-8px}[_nghost-%COMP%] .p-confirm-popup:before{border-width:10px;margin-left:-10px}[_nghost-%COMP%] .p-confirm-popup-flipped:after, [_nghost-%COMP%] .p-confirm-popup-flipped:before{bottom:auto;top:100%}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:after{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:before{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-content{display:flex;align-items:center;padding:1.5rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-sm{font-size:.875rem;padding:.65625rem 1.09375rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-text{background-color:transparent;color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-card{background:#ffffff;color:#524e5c;border:1px solid #e2e2e2;border-radius:4px}[_nghost-%COMP%] .p-card .p-card-header{padding:1rem 1rem 0}[_nghost-%COMP%] .p-card .p-card-subtitle{font-weight:400;margin-bottom:.5rem;color:#7e7a86}[_nghost-%COMP%] .p-card .p-card-body{padding:1.5rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{font-size:1.5rem;font-weight:700;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-footer{padding:1rem 0 0}[_nghost-%COMP%] .p-card .p-card{min-height:42px;display:flex;align-items:center}[_nghost-%COMP%] .p-card .p-card-body .p-card-body{padding:.5rem .75rem;width:100%}[_nghost-%COMP%] .p-slider{background:#e2e2e2;border:0 none;border-radius:6px}[_nghost-%COMP%] .p-slider.p-slider-horizontal{height:.286rem}[_nghost-%COMP%] .p-slider.p-slider-horizontal .p-slider-handle{margin-top:-.5715rem;margin-left:-.5715rem}[_nghost-%COMP%] .p-slider.p-slider-vertical{width:.286rem}[_nghost-%COMP%] .p-slider.p-slider-vertical .p-slider-handle{margin-left:-.5715rem;margin-bottom:-.5715rem}[_nghost-%COMP%] .p-slider .p-slider-handle{height:1.143rem;width:1.143rem;background:#ffffff;border:2px solid var(--color-main);border-radius:50%;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}[_nghost-%COMP%] .p-slider .p-slider-handle:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem var(--color-main_mod)}[_nghost-%COMP%] .p-slider .p-slider-range{background:var(--color-main)}[_nghost-%COMP%] .p-slider:not(.p-disabled) .p-slider-handle:hover{background:var(--color-main);border-color:var(--color-main)}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,left .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-range{transition:width .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,bottom .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-range{transition:height .2s}[_nghost-%COMP%] .p-tag{display:inline-flex;align-items:center;justify-content:center;background:var(--color-main);color:#fff;font-size:1rem;font-weight:400;padding:.5rem 1rem;border-radius:7px}[_nghost-%COMP%] .p-tag.p-tag-success{background-color:#f5fdf8;color:#3ed97a}[_nghost-%COMP%] .p-tag.p-tag-info{background-color:#f7f9fe;color:var(--color-main)}[_nghost-%COMP%] .p-tag.p-tag-warning{background-color:#fff8ec;color:#ffb444}[_nghost-%COMP%] .p-tag.p-tag-danger{background-color:#fff6f6;color:#f65446}[_nghost-%COMP%] .p-tag .p-tag-icon{margin-right:.5rem;font-size:.75rem}[_nghost-%COMP%] .p-error, [_nghost-%COMP%] .p-invalid{color:#d0021b}[_nghost-%COMP%] p-inputmask.ng-dirty.ng-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] p-inputnumber.ng-dirty.ng-invalid>.p-inputnumber>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-inputswitch.p-error, [_nghost-%COMP%] .p-inputswitch.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-inputswitch.ng-dirty.ng-invalid>.p-inputswitch{border-color:#d0021b}[_nghost-%COMP%] .p-inputtext.p-error, [_nghost-%COMP%] .p-inputtext.p-invalid, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid{border-color:#d0021b}[_nghost-%COMP%] p-listbox.ng-dirty.ng-invalid>.p-listbox{border-color:#d0021b}[_nghost-%COMP%] .p-listbox.p-error, [_nghost-%COMP%] .p-listbox.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect{border-color:#d0021b}[_nghost-%COMP%] .p-radiobutton.p-error>.p-radiobutton-box, [_nghost-%COMP%] .p-radiobutton.p-invalid>.p-radiobutton-box{border-color:#d0021b}[_nghost-%COMP%] p-radiobutton.ng-dirty.ng-invalid>.p-radiobutton>.p-radiobutton-box{border-color:#d0021b}[_nghost-%COMP%] .p-selectbutton.p-error>.p-button, [_nghost-%COMP%] .p-selectbutton.p-invalid>.p-button{border-color:#d0021b}[_nghost-%COMP%] p-selectbutton.ng-dirty.ng-invalid>.p-selectbutton>.p-button{border-color:#d0021b}[_nghost-%COMP%] .p-togglebutton.p-button.p-error, [_nghost-%COMP%] .p-togglebutton.p-button.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-togglebutton.ng-dirty.ng-invalid>.p-togglebutton.p-button{border-color:#d0021b}[_nghost-%COMP%] .p-multiselect.p-error, [_nghost-%COMP%] .p-multiselect.p-invalid{border-color:#d0021b}[_nghost-%COMP%] .p-rating .p-rating-icon.p-rating-cancel{color:#d0021b}[_nghost-%COMP%] .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover{color:#d0021b}[_nghost-%COMP%] .p-password-panel{padding:.75rem;background:#ffffff;color:#11152e;border:0 none;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;border-radius:2px}[_nghost-%COMP%] .p-password-panel .p-password-meter{margin-bottom:.5rem}[_nghost-%COMP%] :root{--color-background: #3a3847;--color-main: #6b4de2;--color-main_mod: #8674c0;--color-main_rgb: 107, 77, 226;--color-sec: #6f5fa3;--color-sec_rgb: 111, 95, 163;--color-white: #fff;--color-white_rgb: 255, 255, 255;--empty-message: ""}@font-face{ {font-family: "Material Icons"; font-style: normal; font-weight: 400; font-display: swap; src: url(/dotAdmin/assets/MaterialIcons-Regular.ttf) format("truetype");}}[_nghost-%COMP%] .material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff) format("woff");}}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff) format("woff");}}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff) format("woff");}}[_nghost-%COMP%] *, [_nghost-%COMP%] *:before, [_nghost-%COMP%] *:after{box-sizing:border-box}[_nghost-%COMP%] html, [_nghost-%COMP%] body{color:#11152e;font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:14px;height:100%;margin:0;padding:0}[_nghost-%COMP%] html{-ms-overflow-style:-ms-autohiding-scrollbar}[_nghost-%COMP%] body{background-position:top center;background-repeat:no-repeat;background-size:cover}[_nghost-%COMP%] a{color:var(--color-main)}[_nghost-%COMP%] a:hover{text-decoration:none}[_nghost-%COMP%] a.link-secondary{color:var(--color-sec)}[_nghost-%COMP%] a[actionlink]{color:var(--color-sec);font-size:11px;text-transform:uppercase;cursor:pointer}[_nghost-%COMP%] .gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:1;transform-origin:right top}[_nghost-%COMP%] .gu-hide{display:none!important}[_nghost-%COMP%] .gu-unselectable{-webkit-user-select:none!important;user-select:none!important}[_nghost-%COMP%] .p-component, [_nghost-%COMP%] .p-component *{box-sizing:border-box}[_nghost-%COMP%] .p-hidden{display:none}[_nghost-%COMP%] .p-hidden-space{visibility:hidden}[_nghost-%COMP%] .p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}[_nghost-%COMP%] .p-hidden-accessible input, [_nghost-%COMP%] .p-hidden-accessible select{transform:scale(0)}[_nghost-%COMP%] .p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-disabled *{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .p-overflow-hidden{overflow:hidden}[_nghost-%COMP%] .p-unselectable-text{-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@keyframes p-fadein{0%{opacity:0}to{opacity:1}}[_nghost-%COMP%] input[type=button], [_nghost-%COMP%] input[type=submit], [_nghost-%COMP%] input[type=reset], [_nghost-%COMP%] input[type=file]::-webkit-file-upload-button, [_nghost-%COMP%] button{border-radius:0}[_nghost-%COMP%] .p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-link:disabled{cursor:default}[_nghost-%COMP%] .p-sr-only{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}[_nghost-%COMP%] .p-connected-overlay{opacity:0;transform:scaleY(.8);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .p-connected-overlay-visible{opacity:1;transform:scaleY(1)}[_nghost-%COMP%] .p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}[_nghost-%COMP%] .p-toggleable-content.ng-animating{overflow:hidden}[_nghost-%COMP%] .p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}[_nghost-%COMP%] .p-overlay-badge{position:relative}[_nghost-%COMP%] .p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}[_nghost-%COMP%] .p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}[_nghost-%COMP%] .p-badge-no-gutter{padding:0;border-radius:50%}[_nghost-%COMP%] .p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}[_nghost-%COMP%] .p-button-label{flex:1 1 auto}[_nghost-%COMP%] .p-button-icon-right{order:1}[_nghost-%COMP%] .p-button:disabled{cursor:default}[_nghost-%COMP%] .p-button-icon-only{justify-content:center}[_nghost-%COMP%] .p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}[_nghost-%COMP%] .p-button-vertical{flex-direction:column}[_nghost-%COMP%] .p-button-icon-bottom{order:2}[_nghost-%COMP%] .p-buttonset .p-button{margin:0}[_nghost-%COMP%] .p-buttonset .p-button:not(:last-child){border-right:0 none}[_nghost-%COMP%] .p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:focus{position:relative;z-index:1}[_nghost-%COMP%] .p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-checkbox-disabled{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-checkbox-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-checkbox-label{line-height:1}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-color{background:transparent url(color.png) no-repeat left top}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-hue{background:transparent url(hue.png) no-repeat left top}[_nghost-%COMP%] .p-inputtext{margin:0}[_nghost-%COMP%] .p-fluid .p-inputtext{width:100%}[_nghost-%COMP%] .p-inputgroup{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup-addon{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-fluid .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper>.p-component{flex:1 1 auto;width:1%}[_nghost-%COMP%] .p-float-label{display:block;position:relative}[_nghost-%COMP%] .p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}[_nghost-%COMP%] .p-float-label textarea~label{top:1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.75rem;font-size:12px}[_nghost-%COMP%] .p-float-label .input:-webkit-autofill~label{top:-20px;font-size:12px}[_nghost-%COMP%] .p-float-label .p-placeholder, [_nghost-%COMP%] .p-float-label input::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext::placeholder{opacity:0;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-float-label .p-focus .p-placeholder, [_nghost-%COMP%] .p-float-label input:focus::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext:focus::placeholder{opacity:1;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-input-icon-left, [_nghost-%COMP%] .p-input-icon-right{position:relative;display:inline-block}[_nghost-%COMP%] .p-input-icon-left>i, [_nghost-%COMP%] .p-input-icon-right>i{position:absolute;top:50%;margin-top:-.5rem}[_nghost-%COMP%] .p-fluid .p-input-icon-left, [_nghost-%COMP%] .p-fluid .p-input-icon-right{display:block;width:100%}[_nghost-%COMP%] .p-inputtextarea-resizable{overflow:hidden;resize:none}[_nghost-%COMP%] .p-fluid .p-inputtextarea{width:100%}[_nghost-%COMP%] .p-password{position:relative;display:inline-flex}[_nghost-%COMP%] .p-password-panel{position:absolute;top:0;left:0}[_nghost-%COMP%] .p-password .p-password-panel{min-width:100%}[_nghost-%COMP%] .p-password-meter{height:10px}[_nghost-%COMP%] .p-password-strength{height:100%;width:0;transition:width 1s ease-in-out}[_nghost-%COMP%] .p-fluid .p-password{display:flex}[_nghost-%COMP%] .p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}[_nghost-%COMP%] .p-password-clearable{position:relative}[_nghost-%COMP%] .p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-radiobutton-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}[_nghost-%COMP%] .p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1);visibility:visible}[_nghost-%COMP%] p-radiobutton{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-radiobutton-label{line-height:1}[_nghost-%COMP%] .p-ripple{overflow:hidden;position:relative}[_nghost-%COMP%] .p-ink{display:block;position:absolute;background:rgba(255,255,255,.5);border-radius:100%;transform:scale(0)}[_nghost-%COMP%] .p-ink-active{animation:ripple .4s linear}[_nghost-%COMP%] .p-ripple-disabled .p-ink{display:none!important}@keyframes ripple{to{opacity:0;transform:scale(2.5)}}[_nghost-%COMP%] .p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-right, [_nghost-%COMP%] .p-tooltip.p-tooltip-left{padding:0 .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top, [_nghost-%COMP%] .p-tooltip.p-tooltip-bottom{padding:.25em 0}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}[_nghost-%COMP%] .p-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}[_nghost-%COMP%] .p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}[_nghost-%COMP%] .p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top{padding:.25em 0}[_nghost-%COMP%] .p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}[_nghost-%COMP%] .p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}@font-face{ {font-family: "primeicons"; font-display: block; src: url(primeicons.eot); src: url(primeicons.eot?#iefix) format("embedded-opentype"),url(primeicons.woff2) format("woff2"),url(primeicons.woff) format("woff"),url(primeicons.ttf) format("truetype"),url(primeicons.svg?#primeicons) format("svg"); font-weight: normal; font-style: normal;}}[_nghost-%COMP%] .pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] .pi:before{--webkit-backface-visibility:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}[_nghost-%COMP%] .pi-fw{width:1.28571429em;text-align:center}[_nghost-%COMP%] .pi-spin{animation:fa-spin 2s infinite linear}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}[_nghost-%COMP%] .pi-eraser:before{content:"\\ea04"}[_nghost-%COMP%] .pi-stopwatch:before{content:"\\ea01"}[_nghost-%COMP%] .pi-verified:before{content:"\\ea02"}[_nghost-%COMP%] .pi-delete-left:before{content:"\\ea03"}[_nghost-%COMP%] .pi-hourglass:before{content:"\\e9fe"}[_nghost-%COMP%] .pi-truck:before{content:"\\ea00"}[_nghost-%COMP%] .pi-wrench:before{content:"\\e9ff"}[_nghost-%COMP%] .pi-microphone:before{content:"\\e9fa"}[_nghost-%COMP%] .pi-megaphone:before{content:"\\e9fb"}[_nghost-%COMP%] .pi-arrow-right-arrow-left:before{content:"\\e9fc"}[_nghost-%COMP%] .pi-bitcoin:before{content:"\\e9fd"}[_nghost-%COMP%] .pi-file-edit:before{content:"\\e9f6"}[_nghost-%COMP%] .pi-language:before{content:"\\e9f7"}[_nghost-%COMP%] .pi-file-export:before{content:"\\e9f8"}[_nghost-%COMP%] .pi-file-import:before{content:"\\e9f9"}[_nghost-%COMP%] .pi-file-word:before{content:"\\e9f1"}[_nghost-%COMP%] .pi-gift:before{content:"\\e9f2"}[_nghost-%COMP%] .pi-cart-plus:before{content:"\\e9f3"}[_nghost-%COMP%] .pi-thumbs-down-fill:before{content:"\\e9f4"}[_nghost-%COMP%] .pi-thumbs-up-fill:before{content:"\\e9f5"}[_nghost-%COMP%] .pi-arrows-alt:before{content:"\\e9f0"}[_nghost-%COMP%] .pi-calculator:before{content:"\\e9ef"}[_nghost-%COMP%] .pi-sort-alt-slash:before{content:"\\e9ee"}[_nghost-%COMP%] .pi-arrows-h:before{content:"\\e9ec"}[_nghost-%COMP%] .pi-arrows-v:before{content:"\\e9ed"}[_nghost-%COMP%] .pi-pound:before{content:"\\e9eb"}[_nghost-%COMP%] .pi-prime:before{content:"\\e9ea"}[_nghost-%COMP%] .pi-chart-pie:before{content:"\\e9e9"}[_nghost-%COMP%] .pi-reddit:before{content:"\\e9e8"}[_nghost-%COMP%] .pi-code:before{content:"\\e9e7"}[_nghost-%COMP%] .pi-sync:before{content:"\\e9e6"}[_nghost-%COMP%] .pi-shopping-bag:before{content:"\\e9e5"}[_nghost-%COMP%] .pi-server:before{content:"\\e9e4"}[_nghost-%COMP%] .pi-database:before{content:"\\e9e3"}[_nghost-%COMP%] .pi-hashtag:before{content:"\\e9e2"}[_nghost-%COMP%] .pi-bookmark-fill:before{content:"\\e9df"}[_nghost-%COMP%] .pi-filter-fill:before{content:"\\e9e0"}[_nghost-%COMP%] .pi-heart-fill:before{content:"\\e9e1"}[_nghost-%COMP%] .pi-flag-fill:before{content:"\\e9de"}[_nghost-%COMP%] .pi-circle:before{content:"\\e9dc"}[_nghost-%COMP%] .pi-circle-fill:before{content:"\\e9dd"}[_nghost-%COMP%] .pi-bolt:before{content:"\\e9db"}[_nghost-%COMP%] .pi-history:before{content:"\\e9da"}[_nghost-%COMP%] .pi-box:before{content:"\\e9d9"}[_nghost-%COMP%] .pi-at:before{content:"\\e9d8"}[_nghost-%COMP%] .pi-arrow-up-right:before{content:"\\e9d4"}[_nghost-%COMP%] .pi-arrow-up-left:before{content:"\\e9d5"}[_nghost-%COMP%] .pi-arrow-down-left:before{content:"\\e9d6"}[_nghost-%COMP%] .pi-arrow-down-right:before{content:"\\e9d7"}[_nghost-%COMP%] .pi-telegram:before{content:"\\e9d3"}[_nghost-%COMP%] .pi-stop-circle:before{content:"\\e9d2"}[_nghost-%COMP%] .pi-stop:before{content:"\\e9d1"}[_nghost-%COMP%] .pi-whatsapp:before{content:"\\e9d0"}[_nghost-%COMP%] .pi-building:before{content:"\\e9cf"}[_nghost-%COMP%] .pi-qrcode:before{content:"\\e9ce"}[_nghost-%COMP%] .pi-car:before{content:"\\e9cd"}[_nghost-%COMP%] .pi-instagram:before{content:"\\e9cc"}[_nghost-%COMP%] .pi-linkedin:before{content:"\\e9cb"}[_nghost-%COMP%] .pi-send:before{content:"\\e9ca"}[_nghost-%COMP%] .pi-slack:before{content:"\\e9c9"}[_nghost-%COMP%] .pi-sun:before{content:"\\e9c8"}[_nghost-%COMP%] .pi-moon:before{content:"\\e9c7"}[_nghost-%COMP%] .pi-vimeo:before{content:"\\e9c6"}[_nghost-%COMP%] .pi-youtube:before{content:"\\e9c5"}[_nghost-%COMP%] .pi-flag:before{content:"\\e9c4"}[_nghost-%COMP%] .pi-wallet:before{content:"\\e9c3"}[_nghost-%COMP%] .pi-map:before{content:"\\e9c2"}[_nghost-%COMP%] .pi-link:before{content:"\\e9c1"}[_nghost-%COMP%] .pi-credit-card:before{content:"\\e9bf"}[_nghost-%COMP%] .pi-discord:before{content:"\\e9c0"}[_nghost-%COMP%] .pi-percentage:before{content:"\\e9be"}[_nghost-%COMP%] .pi-euro:before{content:"\\e9bd"}[_nghost-%COMP%] .pi-book:before{content:"\\e9ba"}[_nghost-%COMP%] .pi-shield:before{content:"\\e9b9"}[_nghost-%COMP%] .pi-paypal:before{content:"\\e9bb"}[_nghost-%COMP%] .pi-amazon:before{content:"\\e9bc"}[_nghost-%COMP%] .pi-phone:before{content:"\\e9b8"}[_nghost-%COMP%] .pi-filter-slash:before{content:"\\e9b7"}[_nghost-%COMP%] .pi-facebook:before{content:"\\e9b4"}[_nghost-%COMP%] .pi-github:before{content:"\\e9b5"}[_nghost-%COMP%] .pi-twitter:before{content:"\\e9b6"}[_nghost-%COMP%] .pi-step-backward-alt:before{content:"\\e9ac"}[_nghost-%COMP%] .pi-step-forward-alt:before{content:"\\e9ad"}[_nghost-%COMP%] .pi-forward:before{content:"\\e9ae"}[_nghost-%COMP%] .pi-backward:before{content:"\\e9af"}[_nghost-%COMP%] .pi-fast-backward:before{content:"\\e9b0"}[_nghost-%COMP%] .pi-fast-forward:before{content:"\\e9b1"}[_nghost-%COMP%] .pi-pause:before{content:"\\e9b2"}[_nghost-%COMP%] .pi-play:before{content:"\\e9b3"}[_nghost-%COMP%] .pi-compass:before{content:"\\e9ab"}[_nghost-%COMP%] .pi-id-card:before{content:"\\e9aa"}[_nghost-%COMP%] .pi-ticket:before{content:"\\e9a9"}[_nghost-%COMP%] .pi-file-o:before{content:"\\e9a8"}[_nghost-%COMP%] .pi-reply:before{content:"\\e9a7"}[_nghost-%COMP%] .pi-directions-alt:before{content:"\\e9a5"}[_nghost-%COMP%] .pi-directions:before{content:"\\e9a6"}[_nghost-%COMP%] .pi-thumbs-up:before{content:"\\e9a3"}[_nghost-%COMP%] .pi-thumbs-down:before{content:"\\e9a4"}[_nghost-%COMP%] .pi-sort-numeric-down-alt:before{content:"\\e996"}[_nghost-%COMP%] .pi-sort-numeric-up-alt:before{content:"\\e997"}[_nghost-%COMP%] .pi-sort-alpha-down-alt:before{content:"\\e998"}[_nghost-%COMP%] .pi-sort-alpha-up-alt:before{content:"\\e999"}[_nghost-%COMP%] .pi-sort-numeric-down:before{content:"\\e99a"}[_nghost-%COMP%] .pi-sort-numeric-up:before{content:"\\e99b"}[_nghost-%COMP%] .pi-sort-alpha-down:before{content:"\\e99c"}[_nghost-%COMP%] .pi-sort-alpha-up:before{content:"\\e99d"}[_nghost-%COMP%] .pi-sort-alt:before{content:"\\e99e"}[_nghost-%COMP%] .pi-sort-amount-up:before{content:"\\e99f"}[_nghost-%COMP%] .pi-sort-amount-down:before{content:"\\e9a0"}[_nghost-%COMP%] .pi-sort-amount-down-alt:before{content:"\\e9a1"}[_nghost-%COMP%] .pi-sort-amount-up-alt:before{content:"\\e9a2"}[_nghost-%COMP%] .pi-palette:before{content:"\\e995"}[_nghost-%COMP%] .pi-undo:before{content:"\\e994"}[_nghost-%COMP%] .pi-desktop:before{content:"\\e993"}[_nghost-%COMP%] .pi-sliders-v:before{content:"\\e991"}[_nghost-%COMP%] .pi-sliders-h:before{content:"\\e992"}[_nghost-%COMP%] .pi-search-plus:before{content:"\\e98f"}[_nghost-%COMP%] .pi-search-minus:before{content:"\\e990"}[_nghost-%COMP%] .pi-file-excel:before{content:"\\e98e"}[_nghost-%COMP%] .pi-file-pdf:before{content:"\\e98d"}[_nghost-%COMP%] .pi-check-square:before{content:"\\e98c"}[_nghost-%COMP%] .pi-chart-line:before{content:"\\e98b"}[_nghost-%COMP%] .pi-user-edit:before{content:"\\e98a"}[_nghost-%COMP%] .pi-exclamation-circle:before{content:"\\e989"}[_nghost-%COMP%] .pi-android:before{content:"\\e985"}[_nghost-%COMP%] .pi-google:before{content:"\\e986"}[_nghost-%COMP%] .pi-apple:before{content:"\\e987"}[_nghost-%COMP%] .pi-microsoft:before{content:"\\e988"}[_nghost-%COMP%] .pi-heart:before{content:"\\e984"}[_nghost-%COMP%] .pi-mobile:before{content:"\\e982"}[_nghost-%COMP%] .pi-tablet:before{content:"\\e983"}[_nghost-%COMP%] .pi-key:before{content:"\\e981"}[_nghost-%COMP%] .pi-shopping-cart:before{content:"\\e980"}[_nghost-%COMP%] .pi-comments:before{content:"\\e97e"}[_nghost-%COMP%] .pi-comment:before{content:"\\e97f"}[_nghost-%COMP%] .pi-briefcase:before{content:"\\e97d"}[_nghost-%COMP%] .pi-bell:before{content:"\\e97c"}[_nghost-%COMP%] .pi-paperclip:before{content:"\\e97b"}[_nghost-%COMP%] .pi-share-alt:before{content:"\\e97a"}[_nghost-%COMP%] .pi-envelope:before{content:"\\e979"}[_nghost-%COMP%] .pi-volume-down:before{content:"\\e976"}[_nghost-%COMP%] .pi-volume-up:before{content:"\\e977"}[_nghost-%COMP%] .pi-volume-off:before{content:"\\e978"}[_nghost-%COMP%] .pi-eject:before{content:"\\e975"}[_nghost-%COMP%] .pi-money-bill:before{content:"\\e974"}[_nghost-%COMP%] .pi-images:before{content:"\\e973"}[_nghost-%COMP%] .pi-image:before{content:"\\e972"}[_nghost-%COMP%] .pi-sign-in:before{content:"\\e970"}[_nghost-%COMP%] .pi-sign-out:before{content:"\\e971"}[_nghost-%COMP%] .pi-wifi:before{content:"\\e96f"}[_nghost-%COMP%] .pi-sitemap:before{content:"\\e96e"}[_nghost-%COMP%] .pi-chart-bar:before{content:"\\e96d"}[_nghost-%COMP%] .pi-camera:before{content:"\\e96c"}[_nghost-%COMP%] .pi-dollar:before{content:"\\e96b"}[_nghost-%COMP%] .pi-lock-open:before{content:"\\e96a"}[_nghost-%COMP%] .pi-table:before{content:"\\e969"}[_nghost-%COMP%] .pi-map-marker:before{content:"\\e968"}[_nghost-%COMP%] .pi-list:before{content:"\\e967"}[_nghost-%COMP%] .pi-eye-slash:before{content:"\\e965"}[_nghost-%COMP%] .pi-eye:before{content:"\\e966"}[_nghost-%COMP%] .pi-folder-open:before{content:"\\e964"}[_nghost-%COMP%] .pi-folder:before{content:"\\e963"}[_nghost-%COMP%] .pi-video:before{content:"\\e962"}[_nghost-%COMP%] .pi-inbox:before{content:"\\e961"}[_nghost-%COMP%] .pi-lock:before{content:"\\e95f"}[_nghost-%COMP%] .pi-unlock:before{content:"\\e960"}[_nghost-%COMP%] .pi-tags:before{content:"\\e95d"}[_nghost-%COMP%] .pi-tag:before{content:"\\e95e"}[_nghost-%COMP%] .pi-power-off:before{content:"\\e95c"}[_nghost-%COMP%] .pi-save:before{content:"\\e95b"}[_nghost-%COMP%] .pi-question-circle:before{content:"\\e959"}[_nghost-%COMP%] .pi-question:before{content:"\\e95a"}[_nghost-%COMP%] .pi-copy:before{content:"\\e957"}[_nghost-%COMP%] .pi-file:before{content:"\\e958"}[_nghost-%COMP%] .pi-clone:before{content:"\\e955"}[_nghost-%COMP%] .pi-calendar-times:before{content:"\\e952"}[_nghost-%COMP%] .pi-calendar-minus:before{content:"\\e953"}[_nghost-%COMP%] .pi-calendar-plus:before{content:"\\e954"}[_nghost-%COMP%] .pi-ellipsis-v:before{content:"\\e950"}[_nghost-%COMP%] .pi-ellipsis-h:before{content:"\\e951"}[_nghost-%COMP%] .pi-bookmark:before{content:"\\e94e"}[_nghost-%COMP%] .pi-globe:before{content:"\\e94f"}[_nghost-%COMP%] .pi-replay:before{content:"\\e94d"}[_nghost-%COMP%] .pi-filter:before{content:"\\e94c"}[_nghost-%COMP%] .pi-print:before{content:"\\e94b"}[_nghost-%COMP%] .pi-align-right:before{content:"\\e946"}[_nghost-%COMP%] .pi-align-left:before{content:"\\e947"}[_nghost-%COMP%] .pi-align-center:before{content:"\\e948"}[_nghost-%COMP%] .pi-align-justify:before{content:"\\e949"}[_nghost-%COMP%] .pi-cog:before{content:"\\e94a"}[_nghost-%COMP%] .pi-cloud-download:before{content:"\\e943"}[_nghost-%COMP%] .pi-cloud-upload:before{content:"\\e944"}[_nghost-%COMP%] .pi-cloud:before{content:"\\e945"}[_nghost-%COMP%] .pi-pencil:before{content:"\\e942"}[_nghost-%COMP%] .pi-users:before{content:"\\e941"}[_nghost-%COMP%] .pi-clock:before{content:"\\e940"}[_nghost-%COMP%] .pi-user-minus:before{content:"\\e93e"}[_nghost-%COMP%] .pi-user-plus:before{content:"\\e93f"}[_nghost-%COMP%] .pi-trash:before{content:"\\e93d"}[_nghost-%COMP%] .pi-external-link:before{content:"\\e93c"}[_nghost-%COMP%] .pi-window-maximize:before{content:"\\e93b"}[_nghost-%COMP%] .pi-window-minimize:before{content:"\\e93a"}[_nghost-%COMP%] .pi-refresh:before{content:"\\e938"}[_nghost-%COMP%] .pi-user:before{content:"\\e939"}[_nghost-%COMP%] .pi-exclamation-triangle:before{content:"\\e922"}[_nghost-%COMP%] .pi-calendar:before{content:"\\e927"}[_nghost-%COMP%] .pi-chevron-circle-left:before{content:"\\e928"}[_nghost-%COMP%] .pi-chevron-circle-down:before{content:"\\e929"}[_nghost-%COMP%] .pi-chevron-circle-right:before{content:"\\e92a"}[_nghost-%COMP%] .pi-chevron-circle-up:before{content:"\\e92b"}[_nghost-%COMP%] .pi-angle-double-down:before{content:"\\e92c"}[_nghost-%COMP%] .pi-angle-double-left:before{content:"\\e92d"}[_nghost-%COMP%] .pi-angle-double-right:before{content:"\\e92e"}[_nghost-%COMP%] .pi-angle-double-up:before{content:"\\e92f"}[_nghost-%COMP%] .pi-angle-down:before{content:"\\e930"}[_nghost-%COMP%] .pi-angle-left:before{content:"\\e931"}[_nghost-%COMP%] .pi-angle-right:before{content:"\\e932"}[_nghost-%COMP%] .pi-angle-up:before{content:"\\e933"}[_nghost-%COMP%] .pi-upload:before{content:"\\e934"}[_nghost-%COMP%] .pi-download:before{content:"\\e956"}[_nghost-%COMP%] .pi-ban:before{content:"\\e935"}[_nghost-%COMP%] .pi-star-fill:before{content:"\\e936"}[_nghost-%COMP%] .pi-star:before{content:"\\e937"}[_nghost-%COMP%] .pi-chevron-left:before{content:"\\e900"}[_nghost-%COMP%] .pi-chevron-right:before{content:"\\e901"}[_nghost-%COMP%] .pi-chevron-down:before{content:"\\e902"}[_nghost-%COMP%] .pi-chevron-up:before{content:"\\e903"}[_nghost-%COMP%] .pi-caret-left:before{content:"\\e904"}[_nghost-%COMP%] .pi-caret-right:before{content:"\\e905"}[_nghost-%COMP%] .pi-caret-down:before{content:"\\e906"}[_nghost-%COMP%] .pi-caret-up:before{content:"\\e907"}[_nghost-%COMP%] .pi-search:before{content:"\\e908"}[_nghost-%COMP%] .pi-check:before{content:"\\e909"}[_nghost-%COMP%] .pi-check-circle:before{content:"\\e90a"}[_nghost-%COMP%] .pi-times:before{content:"\\e90b"}[_nghost-%COMP%] .pi-times-circle:before{content:"\\e90c"}[_nghost-%COMP%] .pi-plus:before{content:"\\e90d"}[_nghost-%COMP%] .pi-plus-circle:before{content:"\\e90e"}[_nghost-%COMP%] .pi-minus:before{content:"\\e90f"}[_nghost-%COMP%] .pi-minus-circle:before{content:"\\e910"}[_nghost-%COMP%] .pi-circle-on:before{content:"\\e911"}[_nghost-%COMP%] .pi-circle-off:before{content:"\\e912"}[_nghost-%COMP%] .pi-sort-down:before{content:"\\e913"}[_nghost-%COMP%] .pi-sort-up:before{content:"\\e914"}[_nghost-%COMP%] .pi-sort:before{content:"\\e915"}[_nghost-%COMP%] .pi-step-backward:before{content:"\\e916"}[_nghost-%COMP%] .pi-step-forward:before{content:"\\e917"}[_nghost-%COMP%] .pi-th-large:before{content:"\\e918"}[_nghost-%COMP%] .pi-arrow-down:before{content:"\\e919"}[_nghost-%COMP%] .pi-arrow-left:before{content:"\\e91a"}[_nghost-%COMP%] .pi-arrow-right:before{content:"\\e91b"}[_nghost-%COMP%] .pi-arrow-up:before{content:"\\e91c"}[_nghost-%COMP%] .pi-bars:before{content:"\\e91d"}[_nghost-%COMP%] .pi-arrow-circle-down:before{content:"\\e91e"}[_nghost-%COMP%] .pi-arrow-circle-left:before{content:"\\e91f"}[_nghost-%COMP%] .pi-arrow-circle-right:before{content:"\\e920"}[_nghost-%COMP%] .pi-arrow-circle-up:before{content:"\\e921"}[_nghost-%COMP%] .pi-info:before{content:"\\e923"}[_nghost-%COMP%] .pi-info-circle:before{content:"\\e924"}[_nghost-%COMP%] .pi-home:before{content:"\\e925"}[_nghost-%COMP%] .pi-spinner:before{content:"\\e926"}[_nghost-%COMP%]{position:relative;font-family:Roboto,sans-serif;height:100%;display:block}[_nghost-%COMP%] .editor-wrapper[_ngcontent-%COMP%]{display:block;border-radius:4px;height:500px;overflow:hidden;position:relative;resize:vertical;outline:#b3b1b8 solid 1px}[_nghost-%COMP%]:focus-within{outline-color:var(--color-main)}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] {display:block;height:100%;overflow-y:auto;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror{box-sizing:border-box;display:block;min-height:100%;outline:none;padding:16px 64px;font:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img{max-width:100%;max-height:100%;position:relative}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img:before{align-items:center;background:#f1f3f4;border-radius:3px;border:1px solid #b3b1b8;color:#7e7a86;content:"The image URL " attr(src) " seems to be broken, please double check the URL.";display:flex;height:100%;left:0;padding:1rem;position:absolute;text-align:center;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol{padding-inline-start:16px;margin:0 0 0 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol li{list-style-type:decimal}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul li{list-style-type:disc}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li{padding-top:4.576px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li p{padding:0;margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h1{font-size:38.88px;line-height:41.2128px;padding-top:6.88px;margin-bottom:13.76px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h2{font-size:30.88px;line-height:41.12px;padding-top:10.4px;margin-bottom:10.4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h3{font-size:25.12px;line-height:41.2px;padding-top:41.2px;margin-bottom:8px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h4{font-size:20.64px;line-height:41.28px;padding-top:13.76px;margin-bottom:6.88px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror p{font-size:16px;line-height:20.64px;padding-top:4.576px;margin-bottom:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror blockquote{margin:16px;border-left:3px solid rgba(17,21,46,.1);padding-left:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre{background:#11152e;border-radius:8px;color:#fff;padding:12px 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;background:none;color:inherit;padding:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror .is-empty:before{color:#b3b1b8;content:attr(data-placeholder);float:left;height:0;pointer-events:none}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{border:2px solid #b3b1b8;box-sizing:border-box;min-width:1rem;padding:3px 20px 3px 5px;position:relative;vertical-align:top}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-clip:padding-box}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td>*, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th>*{margin-bottom:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-color:#f1f3f4;font-weight:700;text-align:left}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell{background-color:#e2e2e2}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell:after{content:"";inset:0;pointer-events:none;position:absolute}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .column-resize-handle{bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table p{margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .tableWrapper{padding:1rem 0;overflow-x:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .resize-cursor{cursor:ew-resize;cursor:col-resize}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .dot-cell-arrow{position:absolute;display:none;top:3px;right:5px;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg);background:transparent;cursor:pointer;z-index:100}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td.focus .dot-cell-arrow, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th.focus .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] video{max-width:100%;max-height:100%;height:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .vertical-video{max-height:400px;width:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .horizontal-video, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .node-image{height:auto;width:50%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .node-container{margin-bottom:1rem}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%]{scrollbar-gutter:stable}[_nghost-%COMP%] .overflow-hidden[_ngcontent-%COMP%]{overflow-y:hidden}']}),n})(),hfe=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){if(void 0===customElements.get("dotcms-block-editor")){const e=function A8(n,t){const e=function u8(n,t){return t.get(Es).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new f8(n,t.injector),r=function c8(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function r8(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class o extends m8{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(r),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(dfe,{injector:this.injector});customElements.define("dotcms-block-editor",e)}}}return n.\u0275fac=function(e){return new(e||n)(j(Tn))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[A1,pK,Kt,yg,xhe,DC,AC,_E]}),n})();(function XG(){if(mT)throw new Error("Cannot enable prod mode after platform setup.");gT=!1})(),C5().bootstrapModule(hfe).catch(n=>console.error(n))},222:(Vr,Il,yu)=>{Vr=yu.nmd(Vr);var pa="__lodash_hash_undefined__",fa=9007199254740991,Er="[object Arguments]",ga="[object Array]",ma="[object Boolean]",We="[object Date]",_u="[object Error]",Aa="[object Function]",Ge="[object Map]",Eu="[object Number]",cs="[object Object]",us="[object Promise]",lp="[object RegExp]",ba="[object Set]",et="[object String]",Cr="[object WeakMap]",Cu="[object ArrayBuffer]",ya="[object DataView]",Ow=/^\[object .+?Constructor\]$/,sb=/^(?:0|[1-9]\d*)$/,vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt[Er]=vt[ga]=vt[Cu]=vt[ma]=vt[ya]=vt[We]=vt[_u]=vt[Aa]=vt[Ge]=vt[Eu]=vt[cs]=vt[lp]=vt[ba]=vt[et]=vt[Cr]=!1;var vu="object"==typeof global&&global&&global.Object===Object&&global,hp="object"==typeof self&&self&&self.Object===Object&&self,xi=vu||hp||Function("return this")(),pp=Il&&!Il.nodeType&&Il,fp=pp&&Vr&&!Vr.nodeType&&Vr,Tl=fp&&fp.exports===pp,Mu=Tl&&vu.process,gp=function(){try{return Mu&&Mu.binding&&Mu.binding("util")}catch{}}(),mp=gp&&gp.isTypedArray;function _a(_,M){for(var R=-1,z=null==_?0:_.length;++RTe))return!1;var at=F.get(_);if(at&&F.get(M))return at==M;var nt=-1,hn=!0,Qe=2&R?new xu:void 0;for(F.set(_,M),F.set(M,_);++nt-1},dn.prototype.set=function hb(_,M){var R=this.__data__,z=wa(R,_);return z<0?(++this.size,R.push([_,M])):R[z][1]=M,this},fs.prototype.clear=function pb(){this.size=0,this.__data__={hash:new To,map:new(So||dn),string:new To}},fs.prototype.delete=function Hw(_){var M=ku(this,_).delete(_);return this.size-=M?1:0,M},fs.prototype.get=function ti(_){return ku(this,_).get(_)},fs.prototype.has=function tt(_){return ku(this,_).has(_)},fs.prototype.set=function Vw(_,M){var R=ku(this,_),z=R.size;return R.set(_,M),this.size+=R.size==z?0:1,this},xu.prototype.add=xu.prototype.push=function Gw(_){return this.__data__.set(_,pa),this},xu.prototype.has=function Y(_){return this.__data__.has(_)},Bo.prototype.clear=function Pe(){this.__data__=new dn,this.size=0},Bo.prototype.delete=function Pl(_){var M=this.__data__,R=M.delete(_);return this.size=M.size,R},Bo.prototype.get=function fb(_){return this.__data__.get(_)},Bo.prototype.has=function Mp(_){return this.__data__.has(_)},Bo.prototype.set=function gb(_,M){var R=this.__data__;if(R instanceof dn){var z=R.__data__;if(!So||z.length<199)return z.push([_,M]),this.size=++R.size,this;R=this.__data__=new fs(z)}return R.set(_,M),this.size=R.size,this};var mt=Ep?function(_){return null==_?[]:(_=Object(_),function wu(_,M){for(var R=-1,z=null==_?0:_.length,Le=0,F=[];++R-1&&_%1==0&&_-1&&_%1==0&&_<=fa}function Fe(_){var M=typeof _;return null!=_&&("object"==M||"function"==M)}function Ia(_){return null!=_&&"object"==typeof _}var Lu=mp?function Ea(_){return function(M){return _(M)}}(mp):function Ab(_){return Ia(_)&&Nu(_.length)&&!!vt[Oo(_)]};function ue(_){return function bb(_){return null!=_&&Nu(_.length)&&!Ru(_)}(_)?function mb(_,M){var R=Yr(_),z=!R&&Mr(_),Le=!R&&!z&&ve(_),F=!R&&!z&&!Le&&Lu(_),ee=R||z||Le||F,Te=ee?function kw(_,M){for(var R=-1,z=Array(_);++R<_;)z[R]=M(R);return z}(_.length,String):[],st=Te.length;for(var at in _)(M||Wi.call(_,at))&&(!ee||!("length"==at||Le&&("offset"==at||"parent"==at)||F&&("buffer"==at||"byteLength"==at||"byteOffset"==at)||Ww(at,st)))&&Te.push(at);return Te}(_):function fi(_){if(!function Rl(_){var M=_&&_.constructor;return _===("function"==typeof M&&M.prototype||ps)}(_))return Iu(_);var M=[];for(var R in Object(_))Wi.call(_,R)&&"constructor"!=R&&M.push(R);return M}(_)}Vr.exports=function ms(_,M){return wp(_,M)}}},Vr=>{Vr(Vr.s=10)}]); \ No newline at end of file +var runtime=function(s){"use strict";var v,C=Object.prototype,p=C.hasOwnProperty,G="function"==typeof Symbol?Symbol:{},w=G.iterator||"@@iterator",$=G.asyncIterator||"@@asyncIterator",_=G.toStringTag||"@@toStringTag";function h(r,t,e){return Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{h({},"")}catch{h=function(t,e,o){return t[e]=o}}function M(r,t,e,o){var i=Object.create((t&&t.prototype instanceof k?t:k).prototype),a=new I(o||[]);return i._invoke=function B(r,t,e){var o=R;return function(i,a){if(o===Y)throw new Error("Generator is already running");if(o===L){if("throw"===i)throw a;return W()}for(e.method=i,e.arg=a;;){var u=e.delegate;if(u){var c=D(u,e);if(c){if(c===l)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if(o===R)throw o=L,e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);o=Y;var f=O(r,t,e);if("normal"===f.type){if(o=e.done?L:z,f.arg===l)continue;return{value:f.arg,done:e.done}}"throw"===f.type&&(o=L,e.method="throw",e.arg=f.arg)}}}(r,e,a),i}function O(r,t,e){try{return{type:"normal",arg:r.call(t,e)}}catch(o){return{type:"throw",arg:o}}}s.wrap=M;var R="suspendedStart",z="suspendedYield",Y="executing",L="completed",l={};function k(){}function b(){}function d(){}var T={};h(T,w,function(){return this});var N=Object.getPrototypeOf,S=N&&N(N(P([])));S&&S!==C&&p.call(S,w)&&(T=S);var g=d.prototype=k.prototype=Object.create(T);function q(r){["next","throw","return"].forEach(function(t){h(r,t,function(e){return this._invoke(t,e)})})}function E(r,t){function e(i,a,u,c){var f=O(r[i],r,a);if("throw"!==f.type){var A=f.arg,m=A.value;return m&&"object"==typeof m&&p.call(m,"__await")?t.resolve(m.__await).then(function(y){e("next",y,u,c)},function(y){e("throw",y,u,c)}):t.resolve(m).then(function(y){A.value=y,u(A)},function(y){return e("throw",y,u,c)})}c(f.arg)}var o;this._invoke=function n(i,a){function u(){return new t(function(c,f){e(i,a,c,f)})}return o=o?o.then(u,u):u()}}function D(r,t){var e=r.iterator[t.method];if(e===v){if(t.delegate=null,"throw"===t.method){if(r.iterator.return&&(t.method="return",t.arg=v,D(r,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var o=O(e,r.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,l;var n=o.arg;return n?n.done?(t[r.resultName]=n.value,t.next=r.nextLoc,"return"!==t.method&&(t.method="next",t.arg=v),t.delegate=null,l):n:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function H(r){var t={tryLoc:r[0]};1 in r&&(t.catchLoc=r[1]),2 in r&&(t.finallyLoc=r[2],t.afterLoc=r[3]),this.tryEntries.push(t)}function j(r){var t=r.completion||{};t.type="normal",delete t.arg,r.completion=t}function I(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(H,this),this.reset(!0)}function P(r){if(r){var t=r[w];if(t)return t.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var e=-1,o=function n(){for(;++e=0;--o){var n=this.tryEntries[o],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var a=p.call(n,"catchLoc"),u=p.call(n,"finallyLoc");if(a&&u){if(this.prev=0;--e){var o=this.tryEntries[e];if(o.tryLoc<=this.prev&&p.call(o,"finallyLoc")&&this.prev=0;--t){var e=this.tryEntries[t];if(e.finallyLoc===r)return this.complete(e.completion,e.afterLoc),j(e),l}},catch:function(r){for(var t=this.tryEntries.length-1;t>=0;--t){var e=this.tryEntries[t];if(e.tryLoc===r){var o=e.completion;if("throw"===o.type){var n=o.arg;j(e)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(r,t,e){return this.delegate={iterator:P(r),resultName:t,nextLoc:e},"next"===this.method&&(this.arg=v),l}},s}("object"==typeof module?module.exports:{});try{regeneratorRuntime=runtime}catch{"object"==typeof globalThis?globalThis.regeneratorRuntime=runtime:Function("r","regeneratorRuntime = r")(runtime)}(()=>{"use strict";var e,_={},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={id:e,loaded:!1,exports:{}};return _[e](r,r.exports,a),r.loaded=!0,r.exports}a.m=_,e=[],a.O=(n,r,l,f)=>{if(!r){var s=1/0;for(t=0;t=f)&&Object.keys(a.O).every(b=>a.O[b](r[c]))?r.splice(c--,1):(u=!1,f0&&e[t-1][2]>f;t--)e[t]=e[t-1];e[t]=[r,l,f]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={666:0};a.O.j=l=>0===e[l];var n=(l,f)=>{var c,o,[t,s,u]=f,d=0;if(t.some(h=>0!==e[h])){for(c in s)a.o(s,c)&&(a.m[c]=s[c]);if(u)var v=u(a)}for(l&&l(f);d{"use strict";ge(583),ge(757)},757:()=>{!function(X,oe){"use strict";function ge(){var e=Ue.splice(0,Ue.length);for(F=0;e.length;)e.shift().call(null,e.shift())}function ye(e,r){for(var i=0,h=e.length;i1)&&tt(this)}}}),x(o,pe,{value:function(p){-1>0,de="__"+se+dt,be="addEventListener",Le="attached",ce="Callback",me="detached",te="extends",pe="attributeChanged"+ce,vt=Le+ce,rt="connected"+ce,mt="disconnected"+ce,ze="created"+ce,kt=me+ce,ot="ADDITION",pt="REMOVAL",Oe="DOMAttrModified",bt="DOMContentLoaded",Et="DOMSubtreeModified",qe="<",st="=",Mt=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,wt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],He=[],We=[],le="",De=A.documentElement,Ee=He.indexOf||function(e){for(var r=this.length;r--&&this[r]!==e;);return r},it=ne.prototype,Pe=it.hasOwnProperty,at=it.isPrototypeOf,Re=ne.defineProperty,Ne=[],Xe=ne.getOwnPropertyDescriptor,Y=ne.getOwnPropertyNames,Ct=ne.getPrototypeOf,Ye=ne.setPrototypeOf,Se=!!ne.__proto__,$e="__dreCEv1",Me=X.customElements,t=!/^force/.test(oe.type)&&!!(Me&&Me.define&&Me.get&&Me.whenDefined),a=ne.create||ne,u=X.Map||function(){var e,r=[],i=[];return{get:function(h){return i[Ee.call(r,h)]},set:function(h,s){(e=Ee.call(r,h))<0?i[r.push(h)-1]=s:i[e]=s}}},c=X.Promise||function(e){function r(o){for(h=!0;i.length;)i.shift()(o)}var i=[],h=!1,s={catch:function(){return s},then:function(o){return i.push(o),h&&setTimeout(r,1),s}};return e(r),s},f=!1,m=a(null),E=a(null),v=new u,C=function(e){return e.toLowerCase()},w=ne.create||function e(r){return r?(e.prototype=r,new e):this},b=Ye||(Se?function(e,r){return e.__proto__=r,e}:Y&&Xe?function(){function e(r,i){for(var h,s=Y(i),o=0,l=s.length;o
",new H(function(e,r){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var i=(Ce=Xe(P,"innerHTML"))&&Ce.set;i&&Re(P,"innerHTML",{set:function(h){for(;this.lastChild;)this.removeChild(this.lastChild);i.call(this,h)}})}r.disconnect(),Ce=null}).observe(Ce,{childList:!0,subtree:!0}),Ce.innerHTML=""),ue||(Ye||Se?(we=function(e,r){at.call(r,e)||Fe(e,r)},ae=Fe):(we=function(e,r){e[de]||(e[de]=ne(!0),Fe(e,r))},ae=we),G?(I=!1,e=Xe(P,be),r=e.value,i=function(o){var l=new CustomEvent(Oe,{bubbles:!0});l.attrName=o,l.prevValue=R.call(this,o),l.newValue=null,l[pt]=l.attrChange=2,V.call(this,o),$.call(this,l)},h=function(o,l){var d=Q.call(this,o),p=d&&R.call(this,o),y=new CustomEvent(Oe,{bubbles:!0});K.call(this,o,l),y.attrName=o,y.prevValue=d?p:null,y.newValue=l,d?y.MODIFICATION=y.attrChange=1:y[ot]=y.attrChange=0,$.call(this,y)},s=function(o){var l,d=o.currentTarget,p=d[de],y=o.propertyName;p.hasOwnProperty(y)&&(p=p[y],(l=new CustomEvent(Oe,{bubbles:!0})).attrName=p.name,l.prevValue=p.value||null,l.newValue=p.value=d[y]||null,null==l.prevValue?l[ot]=l.attrChange=0:l.MODIFICATION=l.attrChange=1,$.call(d,l))},e.value=function(o,l,d){o===Oe&&this[pe]&&this.setAttribute!==h&&(this[de]={className:{name:"class",value:this.className}},this.setAttribute=h,this.removeAttribute=i,r.call(this,"propertychange",s)),r.call(this,o,l,d)},Re(P,be,e)):H||(De[be](Oe,Te),De.setAttribute(de,1),De.removeAttribute(de),I&&(je=function(e){var r,i,h,s=this;if(s===e.target){for(h in r=s[de],s[de]=i=nt(s),i){if(!(h in r))return Be(0,s,h,r[h],i[h],ot);if(i[h]!==r[h])return Be(1,s,h,r[h],i[h],"MODIFICATION")}for(h in r)if(!(h in i))return Be(2,s,h,r[h],i[h],pt)}},Be=function(e,r,i,h,s,o){var l={attrChange:e,currentTarget:r,attrName:i,prevValue:h,newValue:s};l[o]=e,Qe(l)},nt=function(e){for(var r,i,h={},s=e.attributes,o=0,l=s.length;o$");if(r[te]="a",(e.prototype=w(S.prototype)).constructor=e,X.customElements.define(i,e,r),!h.test(A.createElement("a",{is:i}).outerHTML)||!h.test((new e).outerHTML))throw r}(function e(){return Reflect.construct(S,[],e)},{},"document-register-element-a"+dt)}catch{ft()}if(!oe.noBuiltIn)try{if(N.call(A,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{C=function(r){return{is:r.toLowerCase()}}}}(window)},583:()=>{"use strict";!function(t){const a=t.performance;function u(I){a&&a.mark&&a.mark(I)}function c(I,k){a&&a.measure&&a.measure(I,k)}u("Zone");const f=t.__Zone_symbol_prefix||"__zone_symbol__";function m(I){return f+I}const E=!0===t[m("forceDuplicateZoneCheck")];if(t.Zone){if(E||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let v=(()=>{class I{constructor(n,e){this._parent=n,this._name=e?e.name||"unnamed":"",this._properties=e&&e.properties||{},this._zoneDelegate=new w(this,this._parent&&this._parent._zoneDelegate,e)}static assertZonePatched(){if(t.Promise!==re.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=I.current;for(;n.parent;)n=n.parent;return n}static get current(){return F.zone}static get currentTask(){return ue}static __load_patch(n,e,r=!1){if(re.hasOwnProperty(n)){if(!r&&E)throw Error("Already loaded patch: "+n)}else if(!t["__Zone_disable_"+n]){const i="Zone:"+n;u(i),re[n]=e(t,I,Te),c(i,i)}}get parent(){return this._parent}get name(){return this._name}get(n){const e=this.getZoneWith(n);if(e)return e._properties[n]}getZoneWith(n){let e=this;for(;e;){if(e._properties.hasOwnProperty(n))return e;e=e._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,e){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const r=this._zoneDelegate.intercept(this,n,e),i=this;return function(){return i.runGuarded(r,this,arguments,e)}}run(n,e,r,i){F={parent:F,zone:this};try{return this._zoneDelegate.invoke(this,n,e,r,i)}finally{F=F.parent}}runGuarded(n,e=null,r,i){F={parent:F,zone:this};try{try{return this._zoneDelegate.invoke(this,n,e,r,i)}catch(h){if(this._zoneDelegate.handleError(this,h))throw h}}finally{F=F.parent}}runTask(n,e,r){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");if(n.state===B&&(n.type===O||n.type===j))return;const i=n.state!=Q;i&&n._transitionTo(Q,R),n.runCount++;const h=ue;ue=n,F={parent:F,zone:this};try{n.type==j&&n.data&&!n.data.isPeriodic&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,n,e,r)}catch(s){if(this._zoneDelegate.handleError(this,s))throw s}}finally{n.state!==B&&n.state!==K&&(n.type==O||n.data&&n.data.isPeriodic?i&&n._transitionTo(R,Q):(n.runCount=0,this._updateTaskCount(n,-1),i&&n._transitionTo(B,Q,B))),F=F.parent,ue=h}}scheduleTask(n){if(n.zone&&n.zone!==this){let r=this;for(;r;){if(r===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);r=r.parent}}n._transitionTo($,B);const e=[];n._zoneDelegates=e,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(r){throw n._transitionTo(K,$,B),this._zoneDelegate.handleError(this,r),r}return n._zoneDelegates===e&&this._updateTaskCount(n,1),n.state==$&&n._transitionTo(R,$),n}scheduleMicroTask(n,e,r,i){return this.scheduleTask(new b(N,n,e,r,i,void 0))}scheduleMacroTask(n,e,r,i,h){return this.scheduleTask(new b(j,n,e,r,i,h))}scheduleEventTask(n,e,r,i,h){return this.scheduleTask(new b(O,n,e,r,i,h))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||z).name+"; Execution: "+this.name+")");n._transitionTo(V,R,Q);try{this._zoneDelegate.cancelTask(this,n)}catch(e){throw n._transitionTo(K,V),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(n,-1),n._transitionTo(B,V),n.runCount=0,n}_updateTaskCount(n,e){const r=n._zoneDelegates;-1==e&&(n._zoneDelegates=null);for(let i=0;iI.hasTask(n,e),onScheduleTask:(I,k,n,e)=>I.scheduleTask(n,e),onInvokeTask:(I,k,n,e,r,i)=>I.invokeTask(n,e,r,i),onCancelTask:(I,k,n,e)=>I.cancelTask(n,e)};class w{constructor(k,n,e){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=k,this._parentDelegate=n,this._forkZS=e&&(e&&e.onFork?e:n._forkZS),this._forkDlgt=e&&(e.onFork?n:n._forkDlgt),this._forkCurrZone=e&&(e.onFork?this.zone:n._forkCurrZone),this._interceptZS=e&&(e.onIntercept?e:n._interceptZS),this._interceptDlgt=e&&(e.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=e&&(e.onIntercept?this.zone:n._interceptCurrZone),this._invokeZS=e&&(e.onInvoke?e:n._invokeZS),this._invokeDlgt=e&&(e.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=e&&(e.onInvoke?this.zone:n._invokeCurrZone),this._handleErrorZS=e&&(e.onHandleError?e:n._handleErrorZS),this._handleErrorDlgt=e&&(e.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=e&&(e.onHandleError?this.zone:n._handleErrorCurrZone),this._scheduleTaskZS=e&&(e.onScheduleTask?e:n._scheduleTaskZS),this._scheduleTaskDlgt=e&&(e.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=e&&(e.onScheduleTask?this.zone:n._scheduleTaskCurrZone),this._invokeTaskZS=e&&(e.onInvokeTask?e:n._invokeTaskZS),this._invokeTaskDlgt=e&&(e.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=e&&(e.onInvokeTask?this.zone:n._invokeTaskCurrZone),this._cancelTaskZS=e&&(e.onCancelTask?e:n._cancelTaskZS),this._cancelTaskDlgt=e&&(e.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=e&&(e.onCancelTask?this.zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const r=e&&e.onHasTask;(r||n&&n._hasTaskZS)&&(this._hasTaskZS=r?e:C,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=k,e.onScheduleTask||(this._scheduleTaskZS=C,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this.zone),e.onInvokeTask||(this._invokeTaskZS=C,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this.zone),e.onCancelTask||(this._cancelTaskZS=C,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this.zone))}fork(k,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,k,n):new v(k,n)}intercept(k,n,e){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,k,n,e):n}invoke(k,n,e,r,i){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,k,n,e,r,i):n.apply(e,r)}handleError(k,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,k,n)}scheduleTask(k,n){let e=n;if(this._scheduleTaskZS)this._hasTaskZS&&e._zoneDelegates.push(this._hasTaskDlgtOwner),e=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,k,n),e||(e=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=N)throw new Error("Task is missing scheduleFn.");T(n)}return e}invokeTask(k,n,e,r){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,k,n,e,r):n.callback.apply(e,r)}cancelTask(k,n){let e;if(this._cancelTaskZS)e=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,k,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");e=n.cancelFn(n)}return e}hasTask(k,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,k,n)}catch(e){this.handleError(k,e)}}_updateTaskCount(k,n){const e=this._taskCounts,r=e[k],i=e[k]=r+n;if(i<0)throw new Error("More tasks executed then were scheduled.");0!=r&&0!=i||this.hasTask(this.zone,{microTask:e.microTask>0,macroTask:e.macroTask>0,eventTask:e.eventTask>0,change:k})}}class b{constructor(k,n,e,r,i,h){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=k,this.source=n,this.data=r,this.scheduleFn=i,this.cancelFn=h,!e)throw new Error("callback is not defined");this.callback=e;const s=this;this.invoke=k===O&&r&&r.useG?b.invokeTask:function(){return b.invokeTask.call(t,s,this,arguments)}}static invokeTask(k,n,e){k||(k=this),fe++;try{return k.runCount++,k.zone.runTask(k,n,e)}finally{1==fe&&Z(),fe--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(B,$)}_transitionTo(k,n,e){if(this._state!==n&&this._state!==e)throw new Error(`${this.type} '${this.source}': can not transition to '${k}', expecting state '${n}'${e?" or '"+e+"'":""}, was '${this._state}'.`);this._state=k,k==B&&(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 H=m("setTimeout"),S=m("Promise"),P=m("then");let L,G=[],x=!1;function T(I){if(0===fe&&0===G.length)if(L||t[S]&&(L=t[S].resolve(0)),L){let k=L[P];k||(k=L.then),k.call(L,Z)}else t[H](Z,0);I&&G.push(I)}function Z(){if(!x){for(x=!0;G.length;){const I=G;G=[];for(let k=0;kF,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:T,showUncaughtError:()=>!v[m("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};let F={parent:null,zone:new v(null,null)},ue=null,fe=0;function W(){}c("Zone","Zone"),t.Zone=v}(typeof window<"u"&&window||typeof self<"u"&&self||global);const oe=Object.getOwnPropertyDescriptor,ge=Object.defineProperty,ye=Object.getPrototypeOf,_t=Object.create,Ve=Array.prototype.slice,Ie="addEventListener",Je="removeEventListener",Qe=Zone.__symbol__(Ie),et=Zone.__symbol__(Je),he="true",ve="false",Ze=Zone.__symbol__("");function Fe(t,a){return Zone.current.wrap(t,a)}function lt(t,a,u,c,f){return Zone.current.scheduleMacroTask(t,a,u,c,f)}const U=Zone.__symbol__,Ae=typeof window<"u",ke=Ae?window:void 0,J=Ae&&ke||"object"==typeof self&&self||global,yt=[null];function tt(t,a){for(let u=t.length-1;u>=0;u--)"function"==typeof t[u]&&(t[u]=Fe(t[u],a+"_"+u));return t}function ft(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const A=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,ne=!("nw"in J)&&typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process),ht=!ne&&!A&&!(!Ae||!ke.HTMLElement),Ue=typeof J.process<"u"&&"[object process]"==={}.toString.call(J.process)&&!A&&!(!Ae||!ke.HTMLElement),je={},Be=function(t){if(!(t=t||J.event))return;let a=je[t.type];a||(a=je[t.type]=U("ON_PROPERTY"+t.type));const u=this||t.target||J,c=u[a];let f;if(ht&&u===ke&&"error"===t.type){const m=t;f=c&&c.call(this,m.message,m.filename,m.lineno,m.colno,m.error),!0===f&&t.preventDefault()}else f=c&&c.apply(this,arguments),null!=f&&!f&&t.preventDefault();return f};function nt(t,a,u){let c=oe(t,a);if(!c&&u&&oe(u,a)&&(c={enumerable:!0,configurable:!0}),!c||!c.configurable)return;const f=U("on"+a+"patched");if(t.hasOwnProperty(f)&&t[f])return;delete c.writable,delete c.value;const m=c.get,E=c.set,v=a.substr(2);let C=je[v];C||(C=je[v]=U("ON_PROPERTY"+v)),c.set=function(w){let b=this;!b&&t===J&&(b=J),b&&(b[C]&&b.removeEventListener(v,Be),E&&E.apply(b,yt),"function"==typeof w?(b[C]=w,b.addEventListener(v,Be,!1)):b[C]=null)},c.get=function(){let w=this;if(!w&&t===J&&(w=J),!w)return null;const b=w[C];if(b)return b;if(m){let H=m&&m.call(this);if(H)return c.set.call(this,H),"function"==typeof w.removeAttribute&&w.removeAttribute(a),H}return null},ge(t,a,c),t[f]=!0}function Ge(t,a,u){if(a)for(let c=0;cfunction(E,v){const C=u(E,v);return C.cbIdx>=0&&"function"==typeof v[C.cbIdx]?lt(C.name,v[C.cbIdx],C,f):m.apply(E,v)})}function se(t,a){t[U("OriginalDelegate")]=a}let dt=!1,de=!1;function Le(){if(dt)return de;dt=!0;try{const t=ke.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(de=!0)}catch{}return de}Zone.__load_patch("ZoneAwarePromise",(t,a,u)=>{const c=Object.getOwnPropertyDescriptor,f=Object.defineProperty,E=u.symbol,v=[],C=!0===t[E("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],w=E("Promise"),b=E("then");u.onUnhandledError=s=>{if(u.showUncaughtError()){const o=s&&s.rejection;o?console.error("Unhandled Promise rejection:",o instanceof Error?o.message:o,"; Zone:",s.zone.name,"; Task:",s.task&&s.task.source,"; Value:",o,o instanceof Error?o.stack:void 0):console.error(s)}},u.microtaskDrainDone=()=>{for(;v.length;){const s=v.shift();try{s.zone.runGuarded(()=>{throw s.throwOriginal?s.rejection:s})}catch(o){P(o)}}};const S=E("unhandledPromiseRejectionHandler");function P(s){u.onUnhandledError(s);try{const o=a[S];"function"==typeof o&&o.call(this,s)}catch{}}function G(s){return s&&s.then}function x(s){return s}function L(s){return n.reject(s)}const T=E("state"),Z=E("value"),z=E("finally"),B=E("parentPromiseValue"),$=E("parentPromiseState"),Q=null,V=!0,K=!1;function j(s,o){return l=>{try{F(s,o,l)}catch(d){F(s,!1,d)}}}const Te=E("currentTaskTrace");function F(s,o,l){const d=function(){let s=!1;return function(l){return function(){s||(s=!0,l.apply(null,arguments))}}}();if(s===l)throw new TypeError("Promise resolved with itself");if(s[T]===Q){let p=null;try{("object"==typeof l||"function"==typeof l)&&(p=l&&l.then)}catch(y){return d(()=>{F(s,!1,y)})(),s}if(o!==K&&l instanceof n&&l.hasOwnProperty(T)&&l.hasOwnProperty(Z)&&l[T]!==Q)fe(l),F(s,l[T],l[Z]);else if(o!==K&&"function"==typeof p)try{p.call(l,d(j(s,o)),d(j(s,!1)))}catch(y){d(()=>{F(s,!1,y)})()}else{s[T]=o;const y=s[Z];if(s[Z]=l,s[z]===z&&o===V&&(s[T]=s[$],s[Z]=s[B]),o===K&&l instanceof Error){const _=a.currentTask&&a.currentTask.data&&a.currentTask.data.__creationTrace__;_&&f(l,Te,{configurable:!0,enumerable:!1,writable:!0,value:_})}for(let _=0;_{try{const g=s[Z],M=!!l&&z===l[z];M&&(l[B]=g,l[$]=y);const D=o.run(_,void 0,M&&_!==L&&_!==x?[]:[g]);F(l,!0,D)}catch(g){F(l,!1,g)}},l)}const k=function(){};class n{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(o){return F(new this(null),V,o)}static reject(o){return F(new this(null),K,o)}static race(o){let l,d,p=new this((g,M)=>{l=g,d=M});function y(g){l(g)}function _(g){d(g)}for(let g of o)G(g)||(g=this.resolve(g)),g.then(y,_);return p}static all(o){return n.allWithCallback(o)}static allSettled(o){return(this&&this.prototype instanceof n?this:n).allWithCallback(o,{thenCallback:d=>({status:"fulfilled",value:d}),errorCallback:d=>({status:"rejected",reason:d})})}static allWithCallback(o,l){let d,p,y=new this((D,q)=>{d=D,p=q}),_=2,g=0;const M=[];for(let D of o){G(D)||(D=this.resolve(D));const q=g;try{D.then(ee=>{M[q]=l?l.thenCallback(ee):ee,_--,0===_&&d(M)},ee=>{l?(M[q]=l.errorCallback(ee),_--,0===_&&d(M)):p(ee)})}catch(ee){p(ee)}_++,g++}return _-=2,0===_&&d(M),y}constructor(o){const l=this;if(!(l instanceof n))throw new Error("Must be an instanceof Promise.");l[T]=Q,l[Z]=[];try{o&&o(j(l,V),j(l,K))}catch(d){F(l,!1,d)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return n}then(o,l){let d=this.constructor[Symbol.species];(!d||"function"!=typeof d)&&(d=this.constructor||n);const p=new d(k),y=a.current;return this[T]==Q?this[Z].push(y,p,o,l):W(this,y,p,o,l),p}catch(o){return this.then(null,o)}finally(o){let l=this.constructor[Symbol.species];(!l||"function"!=typeof l)&&(l=n);const d=new l(k);d[z]=z;const p=a.current;return this[T]==Q?this[Z].push(p,d,o,o):W(this,p,d,o,o),d}}n.resolve=n.resolve,n.reject=n.reject,n.race=n.race,n.all=n.all;const e=t[w]=t.Promise;t.Promise=n;const r=E("thenPatched");function i(s){const o=s.prototype,l=c(o,"then");if(l&&(!1===l.writable||!l.configurable))return;const d=o.then;o[b]=d,s.prototype.then=function(p,y){return new n((g,M)=>{d.call(this,g,M)}).then(p,y)},s[r]=!0}return u.patchThen=i,e&&(i(e),ae(t,"fetch",s=>function h(s){return function(o,l){let d=s.apply(o,l);if(d instanceof n)return d;let p=d.constructor;return p[r]||i(p),d}}(s))),Promise[a.__symbol__("uncaughtPromiseErrors")]=v,n}),Zone.__load_patch("toString",t=>{const a=Function.prototype.toString,u=U("OriginalDelegate"),c=U("Promise"),f=U("Error"),m=function(){if("function"==typeof this){const w=this[u];if(w)return"function"==typeof w?a.call(w):Object.prototype.toString.call(w);if(this===Promise){const b=t[c];if(b)return a.call(b)}if(this===Error){const b=t[f];if(b)return a.call(b)}}return a.call(this)};m[u]=a,Function.prototype.toString=m;const E=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":E.call(this)}});let ce=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){ce=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ce=!1}const me={useG:!0},te={},pe={},vt=new RegExp("^"+Ze+"(\\w+)(true|false)$"),rt=U("propagationStopped");function mt(t,a){const u=(a?a(t):t)+ve,c=(a?a(t):t)+he,f=Ze+u,m=Ze+c;te[t]={},te[t][ve]=f,te[t][he]=m}function ze(t,a,u){const c=u&&u.add||Ie,f=u&&u.rm||Je,m=u&&u.listeners||"eventListeners",E=u&&u.rmAll||"removeAllListeners",v=U(c),C="."+c+":",H=function(L,T,Z){if(L.isRemoved)return;const z=L.callback;"object"==typeof z&&z.handleEvent&&(L.callback=$=>z.handleEvent($),L.originalDelegate=z),L.invoke(L,T,[Z]);const B=L.options;B&&"object"==typeof B&&B.once&&T[f].call(T,Z.type,L.originalDelegate?L.originalDelegate:L.callback,B)},S=function(L){if(!(L=L||t.event))return;const T=this||L.target||t,Z=T[te[L.type][ve]];if(Z)if(1===Z.length)H(Z[0],T,L);else{const z=Z.slice();for(let B=0;Bfunction(f,m){f[rt]=!0,c&&c.apply(f,m)})}function pt(t,a,u,c,f){const m=Zone.__symbol__(c);if(a[m])return;const E=a[m]=a[c];a[c]=function(v,C,w){return C&&C.prototype&&f.forEach(function(b){const H=`${u}.${c}::`+b,S=C.prototype;if(S.hasOwnProperty(b)){const P=t.ObjectGetOwnPropertyDescriptor(S,b);P&&P.value?(P.value=t.wrapWithCurrentZone(P.value,H),t._redefineProperty(C.prototype,b,P)):S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}else S[b]&&(S[b]=t.wrapWithCurrentZone(S[b],H))}),E.call(a,v,C,w)},t.attachOriginToPatched(a[c],E)}const Et=["absolutedeviceorientation","afterinput","afterprint","appinstalled","beforeinstallprompt","beforeprint","beforeunload","devicelight","devicemotion","deviceorientation","deviceorientationabsolute","deviceproximity","hashchange","languagechange","message","mozbeforepaint","offline","online","paint","pageshow","pagehide","popstate","rejectionhandled","storage","unhandledrejection","unload","userproximity","vrdisplayconnected","vrdisplaydisconnected","vrdisplaypresentchange"],st=["encrypted","waitingforkey","msneedkey","mozinterruptbegin","mozinterruptend"],le=["load"],De=["blur","error","focus","load","resize","scroll","messageerror"],Ee=["bounce","finish","start"],it=["loadstart","progress","abort","error","load","progress","timeout","loadend","readystatechange"],Pe=["upgradeneeded","complete","abort","success","error","blocked","versionchange","close"],at=["close","error","open","message"],Re=["error","message"],Ne=["abort","animationcancel","animationend","animationiteration","auxclick","beforeinput","blur","cancel","canplay","canplaythrough","change","compositionstart","compositionupdate","compositionend","cuechange","click","close","contextmenu","curechange","dblclick","drag","dragend","dragenter","dragexit","dragleave","dragover","drop","durationchange","emptied","ended","error","focus","focusin","focusout","gotpointercapture","input","invalid","keydown","keypress","keyup","load","loadstart","loadeddata","loadedmetadata","lostpointercapture","mousedown","mouseenter","mouseleave","mousemove","mouseout","mouseover","mouseup","mousewheel","orientationchange","pause","play","playing","pointercancel","pointerdown","pointerenter","pointerleave","pointerlockchange","mozpointerlockchange","webkitpointerlockerchange","pointerlockerror","mozpointerlockerror","webkitpointerlockerror","pointermove","pointout","pointerover","pointerup","progress","ratechange","reset","resize","scroll","seeked","seeking","select","selectionchange","selectstart","show","sort","stalled","submit","suspend","timeupdate","volumechange","touchcancel","touchmove","touchstart","touchend","transitioncancel","transitionend","waiting","wheel"].concat(["webglcontextrestored","webglcontextlost","webglcontextcreationerror"],["autocomplete","autocompleteerror"],["toggle"],["afterscriptexecute","beforescriptexecute","DOMContentLoaded","freeze","fullscreenchange","mozfullscreenchange","webkitfullscreenchange","msfullscreenchange","fullscreenerror","mozfullscreenerror","webkitfullscreenerror","msfullscreenerror","readystatechange","visibilitychange","resume"],Et,["beforecopy","beforecut","beforepaste","copy","cut","paste","dragstart","loadend","animationstart","search","transitionrun","transitionstart","webkitanimationend","webkitanimationiteration","webkitanimationstart","webkittransitionend"],["activate","afterupdate","ariarequest","beforeactivate","beforedeactivate","beforeeditfocus","beforeupdate","cellchange","controlselect","dataavailable","datasetchanged","datasetcomplete","errorupdate","filterchange","layoutcomplete","losecapture","move","moveend","movestart","propertychange","resizeend","resizestart","rowenter","rowexit","rowsdelete","rowsinserted","command","compassneedscalibration","deactivate","help","mscontentzoom","msmanipulationstatechanged","msgesturechange","msgesturedoubletap","msgestureend","msgesturehold","msgesturestart","msgesturetap","msgotpointercapture","msinertiastart","mslostpointercapture","mspointercancel","mspointerdown","mspointerenter","mspointerhover","mspointerleave","mspointermove","mspointerout","mspointerover","mspointerup","pointerout","mssitemodejumplistitemremoved","msthumbnailclick","stop","storagecommit"]);function Xe(t,a,u){if(!u||0===u.length)return a;const c=u.filter(m=>m.target===t);if(!c||0===c.length)return a;const f=c[0].ignoreProperties;return a.filter(m=>-1===f.indexOf(m))}function Y(t,a,u,c){t&&Ge(t,Xe(t,a,u),c)}Zone.__load_patch("util",(t,a,u)=>{u.patchOnProperties=Ge,u.patchMethod=ae,u.bindArguments=tt,u.patchMacroTask=Ce;const c=a.__symbol__("BLACK_LISTED_EVENTS"),f=a.__symbol__("UNPATCHED_EVENTS");t[f]&&(t[c]=t[f]),t[c]&&(a[c]=a[f]=t[c]),u.patchEventPrototype=ot,u.patchEventTarget=ze,u.isIEOrEdge=Le,u.ObjectDefineProperty=ge,u.ObjectGetOwnPropertyDescriptor=oe,u.ObjectCreate=_t,u.ArraySlice=Ve,u.patchClass=we,u.wrapWithCurrentZone=Fe,u.filterProperties=Xe,u.attachOriginToPatched=se,u._redefineProperty=Object.defineProperty,u.patchCallbacks=pt,u.getGlobalObjects=()=>({globalSources:pe,zoneSymbolEventNames:te,eventNames:Ne,isBrowser:ht,isMix:Ue,isNode:ne,TRUE_STR:he,FALSE_STR:ve,ZONE_SYMBOL_PREFIX:Ze,ADD_EVENT_LISTENER_STR:Ie,REMOVE_EVENT_LISTENER_STR:Je})});const Ye=U("zoneTask");function Se(t,a,u,c){let f=null,m=null;u+=c;const E={};function v(w){const b=w.data;return b.args[0]=function(){return w.invoke.apply(this,arguments)},b.handleId=f.apply(t,b.args),w}function C(w){return m.call(t,w.data.handleId)}f=ae(t,a+=c,w=>function(b,H){if("function"==typeof H[0]){const S={isPeriodic:"Interval"===c,delay:"Timeout"===c||"Interval"===c?H[1]||0:void 0,args:H},P=H[0];H[0]=function(){try{return P.apply(this,arguments)}finally{S.isPeriodic||("number"==typeof S.handleId?delete E[S.handleId]:S.handleId&&(S.handleId[Ye]=null))}};const G=lt(a,H[0],S,v,C);if(!G)return G;const x=G.data.handleId;return"number"==typeof x?E[x]=G:x&&(x[Ye]=G),x&&x.ref&&x.unref&&"function"==typeof x.ref&&"function"==typeof x.unref&&(G.ref=x.ref.bind(x),G.unref=x.unref.bind(x)),"number"==typeof x||x?x:G}return w.apply(t,H)}),m=ae(t,u,w=>function(b,H){const S=H[0];let P;"number"==typeof S?P=E[S]:(P=S&&S[Ye],P||(P=S)),P&&"string"==typeof P.type?"notScheduled"!==P.state&&(P.cancelFn&&P.data.isPeriodic||0===P.runCount)&&("number"==typeof S?delete E[S]:S&&(S[Ye]=null),P.zone.cancelTask(P)):w.apply(t,H)})}Zone.__load_patch("legacy",t=>{const a=t[Zone.__symbol__("legacyPatch")];a&&a()}),Zone.__load_patch("queueMicrotask",(t,a,u)=>{u.patchMethod(t,"queueMicrotask",c=>function(f,m){a.current.scheduleMicroTask("queueMicrotask",m[0])})}),Zone.__load_patch("timers",t=>{const a="set",u="clear";Se(t,a,u,"Timeout"),Se(t,a,u,"Interval"),Se(t,a,u,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Se(t,"request","cancel","AnimationFrame"),Se(t,"mozRequest","mozCancel","AnimationFrame"),Se(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,a)=>{const u=["alert","prompt","confirm"];for(let c=0;cfunction(C,w){return a.current.run(m,t,w,v)})}),Zone.__load_patch("EventTarget",(t,a,u)=>{(function Me(t,a){a.patchEventPrototype(t,a)})(t,u),function $e(t,a){if(Zone[a.symbol("patchEventTarget")])return;const{eventNames:u,zoneSymbolEventNames:c,TRUE_STR:f,FALSE_STR:m,ZONE_SYMBOL_PREFIX:E}=a.getGlobalObjects();for(let C=0;C{we("MutationObserver"),we("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,a,u)=>{we("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,a,u)=>{we("FileReader")}),Zone.__load_patch("on_property",(t,a,u)=>{!function Ct(t,a){if(ne&&!Ue||Zone[t.symbol("patchEvents")])return;const u=typeof WebSocket<"u",c=a.__Zone_ignore_on_properties;if(ht){const E=window,v=function be(){try{const t=ke.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:E,ignoreProperties:["error"]}]:[];Y(E,Ne.concat(["messageerror"]),c&&c.concat(v),ye(E)),Y(Document.prototype,Ne,c),typeof E.SVGElement<"u"&&Y(E.SVGElement.prototype,Ne,c),Y(Element.prototype,Ne,c),Y(HTMLElement.prototype,Ne,c),Y(HTMLMediaElement.prototype,st,c),Y(HTMLFrameSetElement.prototype,Et.concat(De),c),Y(HTMLBodyElement.prototype,Et.concat(De),c),Y(HTMLFrameElement.prototype,le,c),Y(HTMLIFrameElement.prototype,le,c);const C=E.HTMLMarqueeElement;C&&Y(C.prototype,Ee,c);const w=E.Worker;w&&Y(w.prototype,Re,c)}const f=a.XMLHttpRequest;f&&Y(f.prototype,it,c);const m=a.XMLHttpRequestEventTarget;m&&Y(m&&m.prototype,it,c),typeof IDBIndex<"u"&&(Y(IDBIndex.prototype,Pe,c),Y(IDBRequest.prototype,Pe,c),Y(IDBOpenDBRequest.prototype,Pe,c),Y(IDBDatabase.prototype,Pe,c),Y(IDBTransaction.prototype,Pe,c),Y(IDBCursor.prototype,Pe,c)),u&&Y(WebSocket.prototype,at,c)}(u,t)}),Zone.__load_patch("customElements",(t,a,u)=>{!function Pt(t,a){const{isBrowser:u,isMix:c}=a.getGlobalObjects();(u||c)&&t.customElements&&"customElements"in t&&a.patchCallbacks(a,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,u)}),Zone.__load_patch("XHR",(t,a)=>{!function C(w){const b=w.XMLHttpRequest;if(!b)return;const H=b.prototype;let P=H[Qe],G=H[et];if(!P){const N=w.XMLHttpRequestEventTarget;if(N){const j=N.prototype;P=j[Qe],G=j[et]}}const x="readystatechange",L="scheduled";function T(N){const j=N.data,O=j.target;O[m]=!1,O[v]=!1;const re=O[f];P||(P=O[Qe],G=O[et]),re&&G.call(O,x,re);const Te=O[f]=()=>{if(O.readyState===O.DONE)if(!j.aborted&&O[m]&&N.state===L){const ue=O[a.__symbol__("loadfalse")];if(0!==O.status&&ue&&ue.length>0){const fe=N.invoke;N.invoke=function(){const W=O[a.__symbol__("loadfalse")];for(let I=0;Ifunction(N,j){return N[c]=0==j[2],N[E]=j[1],B.apply(N,j)}),R=U("fetchTaskAborting"),Q=U("fetchTaskScheduling"),V=ae(H,"send",()=>function(N,j){if(!0===a.current[Q]||N[c])return V.apply(N,j);{const O={target:N,url:N[E],isPeriodic:!1,args:j,aborted:!1},re=lt("XMLHttpRequest.send",Z,O,T,z);N&&!0===N[v]&&!O.aborted&&re.state===L&&re.invoke()}}),K=ae(H,"abort",()=>function(N,j){const O=function S(N){return N[u]}(N);if(O&&"string"==typeof O.type){if(null==O.cancelFn||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(!0===a.current[R])return K.apply(N,j)})}(t);const u=U("xhrTask"),c=U("xhrSync"),f=U("xhrListener"),m=U("xhrScheduled"),E=U("xhrURL"),v=U("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function ut(t,a){const u=t.constructor.name;for(let c=0;c{const C=function(){return v.apply(this,tt(arguments,u+"."+f))};return se(C,v),C})(m)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,a)=>{function u(c){return function(f){kt(t,c).forEach(E=>{const v=t.PromiseRejectionEvent;if(v){const C=new v(c,{promise:f.promise,reason:f.rejection});E.invoke(C)}})}}t.PromiseRejectionEvent&&(a[U("unhandledPromiseRejectionHandler")]=u("unhandledrejection"),a[U("rejectionHandledHandler")]=u("rejectionhandled"))})}},X=>{X(X.s=61)}]);(self.webpackChunkdotcms_block_editor=self.webpackChunkdotcms_block_editor||[]).push([[179],{10:(Vr,Il,yu)=>{"use strict";function wo(n){return"function"==typeof n}let pa=!1;const Nn={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else pa&&console.log("RxJS: Back to a better error behavior. Thank you. <3");pa=n},get useDeprecatedSynchronousErrorHandling(){return pa}};function Do(n){setTimeout(()=>{throw n},0)}const fa={closed:!0,next(n){},error(n){if(Nn.useDeprecatedSynchronousErrorHandling)throw n;Do(n)},complete(){}},Er=Array.isArray||(n=>n&&"number"==typeof n.length);function ga(n){return null!==n&&"object"==typeof n}const ma=(()=>{function n(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((e,i)=>`${i+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return n.prototype=Object.create(Error.prototype),n})();class We{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:e,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,e instanceof We)e.remove(this);else if(null!==e)for(let s=0;st.concat(e instanceof ma?e.errors:e),[])}We.EMPTY=((n=new We).closed=!0,n);const Aa="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ge extends We{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=fa;break;case 1:if(!t){this.destination=fa;break}if("object"==typeof t){t instanceof Ge?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new Eu(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new Eu(this,t,e,i)}}[Aa](){return this}static create(t,e,i){const r=new Ge(t,e,i);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class Eu extends Ge{constructor(t,e,i,r){super(),this._parentSubscriber=t;let o,s=this;wo(e)?o=e:e&&(o=e.next,i=e.error,r=e.complete,e!==fa&&(s=Object.create(e),wo(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=o,this._error=i,this._complete=r}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;Nn.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=Nn;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):Do(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;Do(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);Nn.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),Nn.useDeprecatedSynchronousErrorHandling)throw i;Do(i)}}__tryOrSetError(t,e,i){if(!Nn.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(r){return Nn.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Do(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const us="function"==typeof Symbol&&Symbol.observable||"@@observable";function Sl(n){return n}function ba(n){return 0===n.length?Sl:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let et=(()=>{class n{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const{operator:o}=this,s=function cs(n,t,e){if(n){if(n instanceof Ge)return n;if(n[Aa])return n[Aa]()}return n||t||e?new Ge(n,t,e):new Ge(fa)}(e,i,r);if(s.add(o?o.call(s,this.source):this.source||Nn.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),Nn.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){Nn.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=i),function tb(n){for(;n;){const{closed:t,destination:e,isStopped:i}=n;if(t||i)return!1;n=e&&e instanceof Ge?e:null}return!0}(e)?e.error(i):console.warn(i)}}forEach(e,i){return new(i=cp(i))((r,o)=>{let s;s=this.subscribe(a=>{try{e(a)}catch(l){o(l),s&&s.unsubscribe()}},o,r)})}_subscribe(e){const{source:i}=this;return i&&i.subscribe(e)}[us](){return this}pipe(...e){return 0===e.length?this:ba(e)(this)}toPromise(e){return new(e=cp(e))((i,r)=>{let o;this.subscribe(s=>o=s,s=>r(s),()=>i(o))})}}return n.create=t=>new n(t),n})();function cp(n){if(n||(n=Nn.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Cr=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Cu extends We{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class ya extends Ge{constructor(t){super(t),this.destination=t}}let Me=(()=>{class n extends et{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Aa](){return new ya(this)}lift(e){const i=new up(this,this);return i.operator=e,i}next(e){if(this.closed)throw new Cr;if(!this.isStopped){const{observers:i}=this,r=i.length,o=i.slice();for(let s=0;snew up(t,e),n})();class up extends Me{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):We.EMPTY}}function ds(n){return n&&"function"==typeof n.schedule}function fe(n,t){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new nb(n,t))}}class nb{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new ib(t,this.project,this.thisArg))}}class ib extends Ge{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const dp=n=>t=>{for(let e=0,i=n.length;en&&"number"==typeof n.length&&"function"!=typeof n;function hp(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const xi=n=>{if(n&&"function"==typeof n[us])return(n=>t=>{const e=n[us]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)})(n);if(vu(n))return dp(n);if(hp(n))return(n=>t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Do),t))(n);if(n&&"function"==typeof n[xl])return(n=>t=>{const e=n[xl]();for(;;){let i;try{i=e.next()}catch(r){return t.error(r),t}if(i.done){t.complete();break}if(t.next(i.value),t.closed)break}return"function"==typeof e.return&&t.add(()=>{e.return&&e.return()}),t})(n);{const e=`You provided ${ga(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(e)}};function Tl(n,t){return new et(e=>{const i=new We;let r=0;return i.add(t.schedule(function(){r!==n.length?(e.next(n[r++]),e.closed||i.add(this.schedule())):e.complete()})),i})}function wu(n,t){if(null!=n){if(function gp(n){return n&&"function"==typeof n[us]}(n))return function pp(n,t){return new et(e=>{const i=new We;return i.add(t.schedule(()=>{const r=n[us]();i.add(r.subscribe({next(o){i.add(t.schedule(()=>e.next(o)))},error(o){i.add(t.schedule(()=>e.error(o)))},complete(){i.add(t.schedule(()=>e.complete()))}}))})),i})}(n,t);if(hp(n))return function fp(n,t){return new et(e=>{const i=new We;return i.add(t.schedule(()=>n.then(r=>{i.add(t.schedule(()=>{e.next(r),i.add(t.schedule(()=>e.complete()))}))},r=>{i.add(t.schedule(()=>e.error(r)))}))),i})}(n,t);if(vu(n))return Tl(n,t);if(function mp(n){return n&&"function"==typeof n[xl]}(n)||"string"==typeof n)return function Mu(n,t){if(!n)throw new Error("Iterable cannot be null");return new et(e=>{const i=new We;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(()=>{r=n[xl](),i.add(t.schedule(function(){if(e.closed)return;let o,s;try{const a=r.next();o=a.value,s=a.done}catch(a){return void e.error(a)}s?e.complete():(e.next(o),this.schedule())}))})),i})}(n,t)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}function Lt(n,t){return t?wu(n,t):n instanceof et?n:new et(xi(n))}class _a extends Ge{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Ea extends Ge{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function Ca(n,t){if(t.closed)return;if(n instanceof et)return n.subscribe(t);let e;try{e=xi(n)(t)}catch(i){t.error(i)}return e}function nn(n,t,e=Number.POSITIVE_INFINITY){return"function"==typeof t?i=>i.pipe(nn((r,o)=>Lt(n(r,o)).pipe(fe((s,a)=>t(r,s,o,a))),e)):("number"==typeof t&&(e=t),i=>i.lift(new ab(n,e)))}class ab{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new lb(t,this.project,this.concurrent))}}class lb extends Ea{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function hs(n=Number.POSITIVE_INFINITY){return nn(Sl,n)}function ps(n,t){return t?Tl(n,t):new et(dp(n))}function va(...n){let t=Number.POSITIVE_INFINITY,e=null,i=n[n.length-1];return ds(i)?(e=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(t=n.pop())):"number"==typeof i&&(t=n.pop()),null===e&&1===n.length&&n[0]instanceof et?n[0]:hs(t)(ps(n,e))}function Ma(){return function(t){return t.lift(new Wi(t))}}class Wi{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const r=new Ap(t,i),o=e.subscribe(r);return r.closed||(r.connection=i.connect()),o}}class Ap extends Ge{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,r=t._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class Bl extends et{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new We,t.add(this.source.subscribe(new bp(this.getSubject(),this))),t.closed&&(this._connection=null,t=We.EMPTY)),t}refCount(){return Ma()(this)}}const cb=(()=>{const n=Bl.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class bp extends ya{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}class ub{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:i}=this,r=this.subjectFactory(),o=i(r).subscribe(t);return o.add(e.subscribe(r)),o}}function Io(){return new Me}function gt(n){for(let t in n)if(n[t]===gt)return t;throw Error("Could not find renamed property on target object.")}function Iu(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function rt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(rt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function So(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const Su=gt({__forward_ref__:gt});function Je(n){return n.__forward_ref__=Je,n.toString=function(){return rt(this())},n}function he(n){return xo(n)?n():n}function xo(n){return"function"==typeof n&&n.hasOwnProperty(Su)&&n.__forward_ref__===Je}class P extends Error{constructor(t,e){super(function Ol(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function we(n){return"string"==typeof n?n:null==n?"":String(n)}function kl(n,t){throw new P(-201,!1)}function ni(n,t){null==n&&function tt(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function Y(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function Pe(n){return{providers:n.providers||[],imports:n.imports||[]}}function Pl(n){return Mp(n,Fl)||Mp(n,Tu)}function Mp(n,t){return n.hasOwnProperty(t)?n[t]:null}function wa(n){return n&&(n.hasOwnProperty(Oo)||n.hasOwnProperty(wp))?n[Oo]:null}const Fl=gt({\u0275prov:gt}),Oo=gt({\u0275inj:gt}),Tu=gt({ngInjectableDef:gt}),wp=gt({ngInjectorDef:gt});var pe=(()=>((pe=pe||{})[pe.Default=0]="Default",pe[pe.Host=1]="Host",pe[pe.Self=2]="Self",pe[pe.SkipSelf=4]="SkipSelf",pe[pe.Optional=8]="Optional",pe))();let Bu;function gi(n){const t=Bu;return Bu=n,t}function Ou(n,t,e){const i=Pl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&pe.Optional?null:void 0!==t?t:void kl(rt(n))}function Gr(n){return{toString:n}.toString()}var mi=(()=>((mi=mi||{})[mi.OnPush=0]="OnPush",mi[mi.Default=1]="Default",mi))(),Ti=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Ti||(Ti={})),Ti))();const mt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),gs={},qe=[],Rl=gt({\u0275cmp:gt}),Pu=gt({\u0275dir:gt}),vr=gt({\u0275pipe:gt}),Fu=gt({\u0275mod:gt}),Mr=gt({\u0275fac:gt}),Yr=gt({__NG_ELEMENT_ID__:gt});let bb=0;function ve(n){return Gr(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===mi.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||qe,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ti.Emulated,id:"c"+bb++,styles:n.styles||qe,_:null,setInput:null,schemas:n.schemas||null,tView:null},o=n.dependencies,s=n.features;return r.inputs=Lu(n.inputs,i),r.outputs=Lu(n.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(Ru).filter(Nu):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(M).filter(Nu):null,r})}function ms(n,t,e){const i=n.\u0275cmp;i.directiveDefs=()=>("function"==typeof t?t():t).map(Ru),i.pipeDefs=()=>("function"==typeof e?e():e).map(M)}function Ru(n){return ot(n)||_(n)}function Nu(n){return null!==n}function Fe(n){return Gr(()=>({type:n.type,bootstrap:n.bootstrap||qe,declarations:n.declarations||qe,imports:n.imports||qe,exports:n.exports||qe,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function Lu(n,t){if(null==n)return gs;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),e[r]=i,t&&(t[r]=o)}return e}const ue=ve;function xn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function ot(n){return n[Rl]||null}function _(n){return n[Pu]||null}function M(n){return n[vr]||null}function z(n,t){const e=n[Fu]||null;if(!e&&!0===t)throw new Error(`Type ${rt(n)} does not have '\u0275mod' property.`);return e}function yi(n){return Array.isArray(n)&&"object"==typeof n[1]}function Dr(n){return Array.isArray(n)&&!0===n[1]}function _b(n){return 0!=(8&n.flags)}function Sp(n){return 2==(2&n.flags)}function xp(n){return 1==(1&n.flags)}function Ir(n){return null!==n.template}function g2(n){return 0!=(256&n[2])}function xa(n,t){return n.hasOwnProperty(Mr)?n[Mr]:null}class $w{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function _i(){return qw}function qw(n){return n.type.prototype.ngOnChanges&&(n.setInput=y2),b2}function b2(){const n=Zw(this),t=n?.current;if(t){const e=n.previous;if(e===gs)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function y2(n,t,e,i){const r=Zw(n)||function _2(n,t){return n[Xw]=t}(n,{previous:gs,current:null}),o=r.current||(r.current={}),s=r.previous,a=this.declaredInputs[e],l=s[a];o[a]=new $w(l&&l.currentValue,t,s===gs),n[i]=t}_i.ngInherit=!0;const Xw="__ngSimpleChanges__";function Zw(n){return n[Xw]||null}function rn(n){for(;Array.isArray(n);)n=n[0];return n}function Tp(n,t){return rn(t[n])}function $i(n,t){return rn(t[n.index])}function wb(n,t){return n.data[t]}function Ul(n,t){return n[t]}function Bi(n,t){const e=t[n];return yi(e)?e:e[0]}function e0(n){return 4==(4&n[2])}function Bp(n){return 64==(64&n[2])}function As(n,t){return null==t?null:n[t]}function t0(n){n[18]=0}function Db(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const Ie={lFrame:d0(null),bindingsEnabled:!0};function r0(){return Ie.bindingsEnabled}function N(){return Ie.lFrame.lView}function Ke(){return Ie.lFrame.tView}function re(n){return Ie.lFrame.contextLView=n,n[8]}function oe(n){return Ie.lFrame.contextLView=null,n}function fn(){let n=o0();for(;null!==n&&64===n.type;)n=n.parent;return n}function o0(){return Ie.lFrame.currentTNode}function Wr(n,t){const e=Ie.lFrame;e.currentTNode=n,e.isParent=t}function Ib(){return Ie.lFrame.isParent}function Sb(){Ie.lFrame.isParent=!1}function ii(){const n=Ie.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function jl(){return Ie.lFrame.bindingIndex++}function Fo(n){const t=Ie.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function P2(n,t){const e=Ie.lFrame;e.bindingIndex=e.bindingRootIndex=n,xb(t)}function xb(n){Ie.lFrame.currentDirectiveIndex=n}function l0(){return Ie.lFrame.currentQueryIndex}function Bb(n){Ie.lFrame.currentQueryIndex=n}function R2(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function c0(n,t,e){if(e&pe.SkipSelf){let r=t,o=n;for(;!(r=r.parent,null!==r||e&pe.Host||(r=R2(o),null===r||(o=o[15],10&r.type))););if(null===r)return!1;t=r,n=o}const i=Ie.lFrame=u0();return i.currentTNode=t,i.lView=n,!0}function Ob(n){const t=u0(),e=n[1];Ie.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function u0(){const n=Ie.lFrame,t=null===n?null:n.child;return null===t?d0(n):t}function d0(n){const t={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:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function h0(){const n=Ie.lFrame;return Ie.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const p0=h0;function kb(){const n=h0();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ri(){return Ie.lFrame.selectedIndex}function bs(n){Ie.lFrame.selectedIndex=n}function Vt(){const n=Ie.lFrame;return wb(n.tView,n.selectedIndex)}function kp(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(n[18]+=65536),(a>11>16&&(3&n[2])===t){n[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}class zu{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Rp(n,t,e){let i=0;for(;it){s=o-1;break}}}for(;o>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let Rb=!0;function Lp(n){const t=Rb;return Rb=n,t}let q2=0;const Jr={};function Vu(n,t){const e=Lb(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,Nb(i.data,n),Nb(t,null),Nb(i.blueprint,null));const r=Qp(n,t),o=n.injectorIndex;if(b0(r)){const s=zl(r),a=Hl(r,t),l=a[1].data;for(let c=0;c<8;c++)t[o+c]=a[s+c]|l[s+c]}return t[o+8]=r,o}function Nb(n,t){n.push(0,0,0,0,0,0,0,0,t)}function Lb(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function Qp(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=I0(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function Up(n,t,e){!function X2(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Yr)&&(i=e[Yr]),null==i&&(i=e[Yr]=q2++);const r=255&i;t.data[n+(r>>5)]|=1<=0?255&t:nU:t}(e);if("function"==typeof o){if(!c0(t,n,i))return i&pe.Host?E0(r,0,i):C0(t,e,i,r);try{const s=o(i);if(null!=s||i&pe.Optional)return s;kl()}finally{p0()}}else if("number"==typeof o){let s=null,a=Lb(n,t),l=-1,c=i&pe.Host?t[16][6]:null;for((-1===a||i&pe.SkipSelf)&&(l=-1===a?Qp(n,t):t[a+8],-1!==l&&D0(i,!1)?(s=t[1],a=zl(l),t=Hl(l,t)):a=-1);-1!==a;){const u=t[1];if(w0(o,a,u.data)){const d=eU(a,t,e,s,i,c);if(d!==Jr)return d}l=t[a+8],-1!==l&&D0(i,t[1].data[a+8]===c)&&w0(o,a,t)?(s=u,a=zl(l),t=Hl(l,t)):a=-1}}return r}function eU(n,t,e,i,r,o){const s=t[1],a=s.data[n+8],u=jp(a,s,e,null==i?Sp(a)&&Rb:i!=s&&0!=(3&a.type),r&pe.Host&&o===a);return null!==u?Gu(t,s,u,a):Jr}function jp(n,t,e,i,r){const o=n.providerIndexes,s=t.data,a=1048575&o,l=n.directiveStart,u=o>>20,h=r?a+u:n.directiveEnd;for(let p=i?a:a+u;p=l&&f.type===e)return p}if(r){const p=s[l];if(p&&Ir(p)&&p.type===e)return l}return null}function Gu(n,t,e,i){let r=n[e];const o=t.data;if(function Y2(n){return n instanceof zu}(r)){const s=r;s.resolving&&function Cp(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new P(-200,`Circular dependency in DI detected for ${n}${e}`)}(function $e(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():we(n)}(o[e]));const a=Lp(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?gi(s.injectImpl):null;c0(n,i,pe.Default);try{r=n[e]=s.factory(void 0,o,n,i),t.firstCreatePass&&e>=i.directiveStart&&function V2(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:o}=t.type.prototype;if(i){const s=qw(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),o&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o))}(e,o[e],t)}finally{null!==l&&gi(l),Lp(a),s.resolving=!1,p0()}}return r}function w0(n,t,e){return!!(e[t+(n>>5)]&1<{const t=n.prototype.constructor,e=t[Mr]||Qb(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const o=r[Mr]||Qb(r);if(o&&o!==e)return o;r=Object.getPrototypeOf(r)}return o=>new o})}function Qb(n){return xo(n)?()=>{const t=Qb(he(n));return t&&t()}:xa(n)}function I0(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}const Yl="__parameters__";function Jl(n,t,e){return Gr(()=>{const i=function Ub(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...o){if(this instanceof r)return i.apply(this,o),this;const s=new r(...o);return a.annotation=s,a;function a(l,c,u){const d=l.hasOwnProperty(Yl)?l[Yl]:Object.defineProperty(l,Yl,{value:[]})[Yl];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class ${constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Oi(n,t){void 0===t&&(t=n);for(let e=0;eArray.isArray(e)?Ro(e,t):t(e))}function x0(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function zp(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ku(n,t){const e=[];for(let i=0;i=0?n[1|i]=e:(i=~i,function aU(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function zb(n,t){const e=Kl(n,t);if(e>=0)return n[1|e]}function Kl(n,t){return function O0(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const o=i+(r-i>>1),s=n[o<t?r=o:i=o+1}return~(r<({token:n})),-1),Zu=Xu(Jl("Optional"),8),ed=Xu(Jl("SkipSelf"),4);let Yb,Jp,Kp;function Xl(n){return function Wb(){if(void 0===Jp&&(Jp=null,mt.trustedTypes))try{Jp=mt.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Jp}()?.createHTML(n)||n}function H0(n){return function Jb(){if(void 0===Kp&&(Kp=null,mt.trustedTypes))try{Kp=mt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Kp}()?.createHTML(n)||n}class Ta{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class kU extends Ta{getTypeName(){return"HTML"}}class PU extends Ta{getTypeName(){return"Style"}}class FU extends Ta{getTypeName(){return"Script"}}class RU extends Ta{getTypeName(){return"URL"}}class NU extends Ta{getTypeName(){return"ResourceURL"}}function Pi(n){return n instanceof Ta?n.changingThisBreaksApplicationSecurity:n}function Kr(n,t){const e=function LU(n){return n instanceof Ta&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see https://g.co/ng/security#xss)`)}return e===t}class VU{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(Xl(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class GU{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=Xl(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=Xl(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0id(t.trim())).join(", ")}function $r(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function rd(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const J0=$r("area,br,col,hr,img,wbr"),K0=$r("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),$0=$r("rp,rt"),Kb=rd(J0,rd(K0,$r("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")),rd($0,$r("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")),rd($0,K0)),$b=$r("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),qb=$r("srcset"),q0=rd($b,qb,$r("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),$r("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")),JU=$r("script,style,template");class KU{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Kb.hasOwnProperty(e))return this.sanitizedSomething=!0,!JU.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();Kb.hasOwnProperty(e)&&!J0.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(X0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const $U=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qU=/([^\#-~ |!])/g;function X0(n){return n.replace(/&/g,"&").replace($U,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(qU,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $p;function Z0(n,t){let e=null;try{$p=$p||function Y0(n){const t=new GU(n);return function YU(){try{return!!(new window.DOMParser).parseFromString(Xl(""),"text/html")}catch{return!1}}()?new VU(t):t}(n);let i=t?String(t):"";e=$p.getInertBodyElement(i);let r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=e.innerHTML,e=$p.getInertBodyElement(i)}while(i!==o);return Xl((new KU).sanitizeChildren(Xb(e)||e))}finally{if(e){const i=Xb(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Xb(n){return"content"in n&&function XU(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var It=(()=>((It=It||{})[It.NONE=0]="NONE",It[It.HTML=1]="HTML",It[It.STYLE=2]="STYLE",It[It.SCRIPT=3]="SCRIPT",It[It.URL=4]="URL",It[It.RESOURCE_URL=5]="RESOURCE_URL",It))();function qp(n){const t=od();return t?H0(t.sanitize(It.HTML,n)||""):Kr(n,"HTML")?H0(Pi(n)):Z0(function z0(){return void 0!==Yb?Yb:typeof document<"u"?document:void 0}(),we(n))}function No(n){const t=od();return t?t.sanitize(It.URL,n)||"":Kr(n,"URL")?Pi(n):id(we(n))}function od(){const n=N();return n&&n[12]}const Zb=new $("ENVIRONMENT_INITIALIZER"),tD=new $("INJECTOR",-1),nD=new $("INJECTOR_DEF_TYPES");class iD{get(t,e=$u){if(e===$u){const i=new Error(`NullInjectorError: No provider for ${rt(t)}!`);throw i.name="NullInjectorError",i}return e}}function oj(...n){return{\u0275providers:rD(0,n)}}function rD(n,...t){const e=[],i=new Set;let r;return Ro(t,o=>{const s=o;ey(s,e,[],i)&&(r||(r=[]),r.push(s))}),void 0!==r&&oD(r,e),e}function oD(n,t){for(let e=0;e{t.push(o)})}}function ey(n,t,e,i){if(!(n=he(n)))return!1;let r=null,o=wa(n);const s=!o&&ot(n);if(o||s){if(s&&!s.standalone)return!1;r=n}else{const l=n.ngModule;if(o=wa(l),!o)return!1;r=l}const a=i.has(r);if(s){if(a)return!1;if(i.add(r),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const c of l)ey(c,t,e,i)}}else{if(!o)return!1;{if(null!=o.imports&&!a){let c;i.add(r);try{Ro(o.imports,u=>{ey(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&oD(c,t)}if(!a){const c=xa(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:qe},{provide:nD,useValue:r,multi:!0},{provide:Zb,useValue:()=>j(r),multi:!0})}const l=o.providers;null==l||a||Ro(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}const sj=gt({provide:String,useValue:gt});function ty(n){return null!==n&&"object"==typeof n&&sj in n}function Ba(n){return"function"==typeof n}const ny=new $("Set Injector scope."),Xp={},lj={};let iy;function Zp(){return void 0===iy&&(iy=new iD),iy}class _s{}class lD extends _s{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,oy(t,s=>this.processProvider(s)),this.records.set(tD,Zl(void 0,this)),r.has("environment")&&this.records.set(_s,Zl(void 0,this));const o=this.records.get(ny);null!=o&&"string"==typeof o.value&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(nD.multi,qe,pe.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=$l(this),i=gi(void 0);try{return t()}finally{$l(e),gi(i)}}get(t,e=$u,i=pe.Default){this.assertNotDestroyed();const r=$l(this),o=gi(void 0);try{if(!(i&pe.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function pj(n){return"function"==typeof n||"object"==typeof n&&n instanceof $}(t)&&Pl(t);a=l&&this.injectableDefInScope(l)?Zl(ry(t),Xp):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&pe.Self?Zp():this.parent).get(t,e=i&pe.Optional&&e===$u?null:e)}catch(s){if("NullInjectorError"===s.name){if((s[Vp]=s[Vp]||[]).unshift(rt(t)),r)throw s;return function yU(n,t,e,i){const r=n[Vp];throw t[k0]&&r.unshift(t[k0]),n.message=function _U(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=rt(t);if(Array.isArray(t))r=t.map(rt).join(" -> ");else if("object"==typeof t){let o=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):rt(a)))}r=`{${o.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(gU,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[Vp]=null,n}(s,t,"R3InjectorError",this.source)}throw s}finally{gi(o),$l(r)}}resolveInjectorInitializers(){const t=$l(this),e=gi(void 0);try{const i=this.get(Zb.multi,qe,pe.Self);for(const r of i)r()}finally{$l(t),gi(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(rt(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new P(205,!1)}processProvider(t){let e=Ba(t=he(t))?t:he(t&&t.provide);const i=function uj(n){return ty(n)?Zl(void 0,n.useValue):Zl(cD(n),Xp)}(t);if(Ba(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Zl(void 0,Xp,!0),r.factory=()=>Gb(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Xp&&(e.value=lj,e.value=e.factory()),"object"==typeof e.value&&e.value&&function hj(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=he(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function ry(n){const t=Pl(n),e=null!==t?t.factory:xa(n);if(null!==e)return e;if(n instanceof $)throw new P(204,!1);if(n instanceof Function)return function cj(n){const t=n.length;if(t>0)throw Ku(t,"?"),new P(204,!1);const e=function gb(n){const t=n&&(n[Fl]||n[Tu]);if(t){const e=function mb(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new P(204,!1)}function cD(n,t,e){let i;if(Ba(n)){const r=he(n);return xa(r)||ry(r)}if(ty(n))i=()=>he(n.useValue);else if(function aD(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Gb(n.deps||[]));else if(function sD(n){return!(!n||!n.useExisting)}(n))i=()=>j(he(n.useExisting));else{const r=he(n&&(n.useClass||n.provide));if(!function dj(n){return!!n.deps}(n))return xa(r)||ry(r);i=()=>new r(...Gb(n.deps))}return i}function Zl(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function fj(n){return!!n.\u0275providers}function oy(n,t){for(const e of n)Array.isArray(e)?oy(e,t):fj(e)?oy(e.\u0275providers,t):t(e)}class uD{}class Aj{resolveComponentFactory(t){throw function mj(n){const t=Error(`No component factory found for ${rt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let Es=(()=>{class n{}return n.NULL=new Aj,n})();function bj(){return ec(fn(),N())}function ec(n,t){return new St($i(n,t))}let St=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=bj,n})();function yj(n){return n instanceof St?n.nativeElement:n}class sd{}let qr=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function _j(){const n=N(),e=Bi(fn().index,n);return(yi(e)?e:n)[11]}(),n})(),Ej=(()=>{class n{}return n.\u0275prov=Y({token:n,providedIn:"root",factory:()=>null}),n})();class tc{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Cj=new tc("14.2.0"),sy={};function dy(n){return n.ngOriginalError}class nc{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&dy(t);for(;e&&dy(e);)e=dy(e);return e||null}}const hy=new Map;let Pj=0;const fy="__ngContext__";function Qn(n,t){yi(t)?(n[fy]=t[20],function Rj(n){hy.set(n[20],n)}(t)):n[fy]=t}function ad(n){const t=n[fy];return"number"==typeof t?function AD(n){return hy.get(n)||null}(t):t||null}function gy(n){const t=ad(n);return t?yi(t)?t:t.lView:null}function Lo(n){return n instanceof Function?n():n}var Ei=(()=>((Ei=Ei||{})[Ei.Important=1]="Important",Ei[Ei.DashCase=2]="DashCase",Ei))();function Ay(n,t){return undefined(n,t)}function ld(n){const t=n[3];return Dr(t)?t[3]:t}function by(n){return MD(n[13])}function yy(n){return MD(n[4])}function MD(n){for(;null!==n&&!Dr(n);)n=n[4];return n}function rc(n,t,e,i,r){if(null!=i){let o,s=!1;Dr(i)?o=i:yi(i)&&(s=!0,i=i[0]);const a=rn(i);0===n&&null!==e?null==r?TD(t,e,a):Oa(t,e,a,r||null,!0):1===n&&null!==e?Oa(t,e,a,r||null,!0):2===n?function ND(n,t,e){const i=ef(n,t);i&&function cz(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,s):3===n&&t.destroyNode(a),null!=o&&function hz(n,t,e,i,r){const o=e[7];o!==rn(e)&&rc(t,n,i,o,r);for(let a=10;a0&&(n[e-1][4]=i[4]);const o=zp(n,10+t);!function tz(n,t){cd(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function ID(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&cd(n,t,e,3,null,null),function rz(n){let t=n[13];if(!t)return vy(n[1],n);for(;t;){let e=null;if(yi(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)yi(t)&&vy(t[1],t),t=t[3];null===t&&(t=n),yi(t)&&vy(t[1],t),e=t&&t[4]}t=e}}(t)}}function vy(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function lz(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i=0?i[r=c]():i[r=-c].unsubscribe(),o+=2}else{const s=i[r=e[o+1]];e[o].call(s)}if(null!==i){for(let o=r+1;oo?"":r[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==UD(p,c,0)||2&i&&c!==h){if(Sr(i))return!1;s=!0}}}}else{if(!s&&!Sr(i)&&!Sr(l))return!1;if(s&&Sr(l))continue;s=!1,i=l|1&i}}return Sr(i)||s}function Sr(n){return 0==(1&n)}function Az(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let o=!1;for(;r-1)for(e++;e0?'="'+a+'"':"")+"]"}else 8&i?r+="."+s:4&i&&(r+=" "+s);else""!==r&&!Sr(s)&&(t+=VD(o,r),r=""),i=s,o=o||!Sr(i);e++}return""!==r&&(t+=VD(o,r)),t}const Se={};function v(n){GD(Ke(),N(),ri()+n,!1)}function GD(n,t,e,i){if(!i)if(3==(3&t[2])){const o=n.preOrderCheckHooks;null!==o&&Pp(t,o,e)}else{const o=n.preOrderHooks;null!==o&&Fp(t,o,0,e)}bs(e)}function KD(n,t=null,e=null,i){const r=$D(n,t,e,i);return r.resolveInjectorInitializers(),r}function $D(n,t=null,e=null,i,r=new Set){const o=[e||qe,oj(n)];return i=i||("object"==typeof n?void 0:rt(n)),new lD(o,t||Zp(),i||null,r)}let Tn=(()=>{class n{static create(e,i){if(Array.isArray(e))return KD({name:""},i,e,"");{const r=e.name??"";return KD({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=$u,n.NULL=new iD,n.\u0275prov=Y({token:n,providedIn:"any",factory:()=>j(tD)}),n.__NG_ELEMENT_ID__=-1,n})();function T(n,t=pe.Default){const e=N();return null===e?j(n,t):v0(fn(),e,he(n),t)}function Oy(){throw new Error("invalid")}function sf(n,t){return n<<17|t<<2}function xr(n){return n>>17&32767}function ky(n){return 2|n}function Qo(n){return(131068&n)>>2}function Py(n,t){return-131069&n|t<<2}function Fy(n){return 1|n}function pI(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i22&&GD(n,t,22,!1),e(i,r)}finally{bs(o)}}function gI(n,t,e){if(_b(t)){const r=t.directiveEnd;for(let o=t.directiveStart;o0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(a)!=l&&a.push(l),a.push(i,r,s)}}function CI(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function vI(n,t){t.flags|=2,(n.components||(n.components=[])).push(t.index)}function fH(n,t,e){if(e){if(t.exportAs)for(let i=0;i0&&Ky(e)}}function Ky(n){for(let i=by(n);null!==i;i=yy(i))for(let r=10;r0&&Ky(o)}const e=n[1].components;if(null!==e)for(let i=0;i0&&Ky(r)}}function EH(n,t){const e=Bi(t,n),i=e[1];(function CH(n,t){for(let e=t.length;e-1&&(Cy(t,i),zp(e,i))}this._attachedToViewContainer=!1}ID(this._lView[1],this._lView)}onDestroy(t){AI(this._lView[1],this._lView,null,t)}markForCheck(){$y(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){!function qy(n,t,e){const i=t[10];i.begin&&i.begin();try{ud(n,t,n.template,e)}catch(r){throw BI(t,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new P(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function iz(n,t){cd(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new P(902,!1);this._appRef=t}}class MH extends dd{constructor(t){super(t),this._view=t}detectChanges(){!function II(n){!function vH(n){for(let t=0;t0&&Iy(c,d,b.join(" "))}if(A=wb(f,22),void 0!==e){const E=A.projection=[];for(let b=0;b=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Np(r.hostAttrs,e=Np(e,r.hostAttrs))}}(i)}function t_(n){return n===gs?{}:n===qe?[]:n}function PH(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function FH(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,o)=>{t(i,r,o),e(i,r,o)}:t}function RH(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let ff=null;function ka(){if(!ff){const n=mt.Symbol;if(n&&n.iterator)ff=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(rn(D[i.index])):i.index;let b=null;if(!a&&l&&(b=function JH(n,t,e,i){const r=n.cleanup;if(null!=r)for(let o=0;ol?a[l]:null}"string"==typeof s&&(o+=2)}return null}(n,t,r,i.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=o,b.__ngLastListenerFn__=o,p=!1;else{o=WI(i,t,d,o,!1);const D=e.listen(A,r,o);h.push(o,D),u&&u.push(r,E,y,y+1)}}else o=WI(i,t,d,o,!1);const f=i.outputs;let g;if(p&&null!==f&&(g=f[r])){const m=g.length;if(m)for(let A=0;A0;)t=t[15],n--;return t}(n,Ie.lFrame.contextLView))[8]}(n)}function KH(n,t){let e=null;const i=function bz(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r=0}const mn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rS(n){return n.substring(mn.key,mn.keyEnd)}function ZH(n){return n.substring(mn.value,mn.valueEnd)}function oS(n,t){const e=mn.textEnd;return e===t?-1:(t=mn.keyEnd=function nV(n,t,e){for(;t32;)t++;return t}(n,mn.key=t,e),Ac(n,t,e))}function sS(n,t){const e=mn.textEnd;let i=mn.key=Ac(n,t,e);return e===i?-1:(i=mn.keyEnd=function iV(n,t,e){let i;for(;t=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(n,i,e),i=lS(n,i,e),i=mn.value=Ac(n,i,e),i=mn.valueEnd=function rV(n,t,e){let i=-1,r=-1,o=-1,s=t,a=s;for(;s32&&(a=s),o=r,r=i,i=-33&l}return a}(n,i,e),lS(n,i,e))}function aS(n){mn.key=0,mn.keyEnd=0,mn.value=0,mn.valueEnd=0,mn.textEnd=n.length}function Ac(n,t,e){for(;t=0;e=sS(t,e))hS(n,rS(t),ZH(t))}function Gt(n){Br(ki,to,n,!0)}function to(n,t){for(let e=function eV(n){return aS(n),oS(n,Ac(n,0,mn.textEnd))}(t);e>=0;e=oS(t,e))ki(n,rS(t),!0)}function Tr(n,t,e,i){const r=N(),o=Ke(),s=Fo(2);o.firstUpdatePass&&dS(o,n,s,i),t!==Se&&Un(r,s,t)&&pS(o,o.data[ri()],r,r[11],n,r[s+1]=function hV(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=rt(Pi(n)))),n}(t,e),i,s)}function Br(n,t,e,i){const r=Ke(),o=Fo(2);r.firstUpdatePass&&dS(r,null,o,i);const s=N();if(e!==Se&&Un(s,o,e)){const a=r.data[ri()];if(gS(a,i)&&!uS(r,o)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=So(l,e||"")),i_(r,a,s,e,i)}else!function dV(n,t,e,i,r,o,s,a){r===Se&&(r=qe);let l=0,c=0,u=0=n.expandoStartIndex}function dS(n,t,e,i){const r=n.data;if(null===r[e+1]){const o=r[ri()],s=uS(n,e);gS(o,i)&&null===t&&!s&&(t=!1),t=function sV(n,t,e,i){const r=function Tb(n){const t=Ie.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let o=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=md(e=s_(null,n,t,e,i),t.attrs,i),o=null);else{const s=t.directiveStylingLast;if(-1===s||n[s]!==r)if(e=s_(r,n,t,e,i),null===o){let l=function aV(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==Qo(i))return n[xr(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=s_(null,n,t,l[1],i),l=md(l,t.attrs,i),function lV(n,t,e,i){n[xr(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else o=function cV(n,t,e){let i;const r=t.directiveEnd;for(let o=1+t.directiveStylingLast;o0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=xr(n[a+1]);n[i+1]=sf(h,a),0!==h&&(n[h+1]=Py(n[h+1],i)),n[a+1]=function Hz(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=sf(a,0),0!==a&&(n[a+1]=Py(n[a+1],i)),a=i;else n[i+1]=sf(l,0),0===a?a=i:n[l+1]=Py(n[l+1],i),l=i;c&&(n[i+1]=ky(n[i+1])),iS(n,u,i,!0),iS(n,u,i,!1),function qH(n,t,e,i,r){const o=r?n.residualClasses:n.residualStyles;null!=o&&"string"==typeof t&&Kl(o,t)>=0&&(e[i+1]=Fy(e[i+1]))}(t,u,n,i,o),s=sf(a,l),o?t.classBindings=s:t.styleBindings=s}(r,o,t,e,s,i)}}function s_(n,t,e,i,r){let o=null;const s=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===Se&&(h=d?qe:void 0);let p=d?zb(h,i):u===i?h:void 0;if(c&&!Af(p)&&(p=zb(l,i)),Af(p)&&(a=p,s))return a;const f=n[r+1];r=s?xr(f):Qo(f)}if(null!==t){let l=o?t.residualClasses:t.residualStyles;null!=l&&(a=zb(l,i))}return a}function Af(n){return void 0!==n}function gS(n,t){return 0!=(n.flags&(t?16:32))}function de(n,t=""){const e=N(),i=Ke(),r=n+22,o=i.firstCreatePass?sc(i,r,1,t,null):i.data[r],s=e[r]=function _y(n,t){return n.createText(t)}(e[11],t);tf(i,e,s,o),Wr(o,!1)}function pt(n){return no("",n,""),pt}function no(n,t,e){const i=N(),r=function cc(n,t,e,i){return Un(n,jl(),e)?t+we(e)+i:Se}(i,n,t,e);return r!==Se&&Uo(i,ri(),r),no}function bf(n,t,e,i,r){const o=N(),s=uc(o,n,t,e,i,r);return s!==Se&&Uo(o,ri(),s),bf}const yc="en-US";let RS=yc;function c_(n,t,e,i,r){if(n=he(n),Array.isArray(n))for(let o=0;o>20;if(Ba(n)||!n.multi){const p=new zu(l,r,T),f=d_(a,t,r?u:u+h,d);-1===f?(Up(Vu(c,s),o,a),u_(o,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(p),s.push(p)):(e[f]=p,s[f]=p)}else{const p=d_(a,t,u+h,d),f=d_(a,t,u,u+h),g=p>=0&&e[p],m=f>=0&&e[f];if(r&&!m||!r&&!g){Up(Vu(c,s),o,a);const A=function B4(n,t,e,i,r){const o=new zu(n,e,T);return o.multi=[],o.index=t,o.componentProviders=0,ax(o,r,i&&!e),o}(r?T4:x4,e.length,r,i,l);!r&&m&&(e[f].providerFactory=A),u_(o,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(A),s.push(A)}else u_(o,n,p>-1?p:f,ax(e[r?f:p],l,!r&&i));!r&&i&&m&&e[f].componentProviders++}}}function u_(n,t,e,i){const r=Ba(t),o=function aj(n){return!!n.useClass}(t);if(r||o){const l=(o?he(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function ax(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function d_(n,t,e,i){for(let r=e;r{e.providersResolver=(i,r)=>function S4(n,t,e){const i=Ke();if(i.firstCreatePass){const r=Ir(n);c_(e,i.data,i.blueprint,r,!0),c_(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Ra{}class lx{}class cx extends Ra{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new e_(this);const i=z(t);this._bootstrapComponents=Lo(i.bootstrap),this._r3Injector=$D(t,e,[{provide:Ra,useValue:this},{provide:Es,useValue:this.componentFactoryResolver}],rt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class p_ extends lx{constructor(t){super(),this.moduleType=t}create(t){return new cx(this.moduleType,t)}}class k4 extends Ra{constructor(t,e,i){super(),this.componentFactoryResolver=new e_(this),this.instance=null;const r=new lD([...t,{provide:Ra,useValue:this},{provide:Es,useValue:this.componentFactoryResolver}],e||Zp(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function vf(n,t,e=null){return new k4(n,t,e).injector}let P4=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=rD(0,e.type),r=i.length>0?vf([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=Y({token:n,providedIn:"environment",factory:()=>new n(j(_s))}),n})();function ux(n){n.getStandaloneInjector=t=>t.get(P4).getOrCreateStandaloneInjector(n)}function io(n,t,e){const i=ii()+n,r=N();return r[i]===Se?Zr(r,i,e?t.call(e):t()):fd(r,i)}function Wt(n,t,e,i){return bx(N(),ii(),n,t,e,i)}function Xi(n,t,e,i,r){return function yx(n,t,e,i,r,o,s){const a=t+e;return Pa(n,a,r,o)?Zr(n,a+2,s?i.call(s,r,o):i(r,o)):Ed(n,a+2)}(N(),ii(),n,t,e,i,r)}function Na(n,t,e,i,r,o){return function _x(n,t,e,i,r,o,s,a){const l=t+e;return function gf(n,t,e,i,r){const o=Pa(n,t,e,i);return Un(n,t+2,r)||o}(n,l,r,o,s)?Zr(n,l+3,a?i.call(a,r,o,s):i(r,o,s)):Ed(n,l+3)}(N(),ii(),n,t,e,i,r,o)}function Mf(n,t,e,i,r,o,s){return function Ex(n,t,e,i,r,o,s,a,l){const c=t+e;return qi(n,c,r,o,s,a)?Zr(n,c+4,l?i.call(l,r,o,s,a):i(r,o,s,a)):Ed(n,c+4)}(N(),ii(),n,t,e,i,r,o,s)}function Ed(n,t){const e=n[t];return e===Se?void 0:e}function bx(n,t,e,i,r,o){const s=t+e;return Un(n,s,r)?Zr(n,s+1,o?i.call(o,r):i(r)):Ed(n,s+1)}function La(n,t){const e=Ke();let i;const r=n+22;e.firstCreatePass?(i=function W4(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const o=i.factory||(i.factory=xa(i.type)),s=gi(T);try{const a=Lp(!1),l=o();return Lp(a),function GH(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,N(),r,l),l}finally{gi(s)}}function Qa(n,t,e){const i=n+22,r=N(),o=Ul(r,i);return function Cd(n,t){return n[1].data[t].pure}(r,i)?bx(r,ii(),t,o.transform,e,o):o.transform(e)}function g_(n){return t=>{setTimeout(n,void 0,t)}}const te=class X4 extends Me{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,o=e||(()=>null),s=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),o=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(o=g_(o),r&&(r=g_(r)),s&&(s=g_(s)));const a=super.subscribe({next:r,error:o,complete:s});return t instanceof We&&t.add(a),a}};function Z4(){return this._results[ka()]()}class vd{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=ka(),i=vd.prototype;i[e]||(i[e]=Z4)}get changes(){return this._changes||(this._changes=new te)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Oi(t);(this._changesDetected=!function oU(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i{class n{}return n.__NG_ELEMENT_ID__=nG,n})();const eG=ro,tG=class extends eG{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=cf(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(i)),uf(i,r,t),new dd(r)}};function nG(){return wf(fn(),N())}function wf(n,t){return 4&n.type?new tG(t,n,ec(n,t)):null}let Ni=(()=>{class n{}return n.__NG_ELEMENT_ID__=iG,n})();function iG(){return wx(fn(),N())}const rG=Ni,vx=class extends rG{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return ec(this._hostTNode,this._hostLView)}get injector(){return new Vl(this._hostTNode,this._hostLView)}get parentInjector(){const t=Qp(this._hostTNode,this._hostLView);if(b0(t)){const e=Hl(t,this._hostLView),i=zl(t);return new Vl(e[1].data[i+8],e)}return new Vl(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=Mx(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,o;"number"==typeof i?r=i:null!=i&&(r=i.index,o=i.injector);const s=t.createEmbeddedView(e||{},o);return this.insert(s,r),s}createComponent(t,e,i,r,o){const s=t&&!function Ju(n){return"function"==typeof n}(t);let a;if(s)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,o=d.environmentInjector||d.ngModuleRef}const l=s?t:new hd(ot(t)),c=i||this.parentInjector;if(!o&&null==l.ngModule){const h=(s?c:this.parentInjector).get(_s,null);h&&(o=h)}const u=l.create(c,r,void 0,o);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function D2(n){return Dr(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new vx(d,d[6],d[3]);h.detach(h.indexOf(t))}}const o=this._adjustIndex(e),s=this._lContainer;!function oz(n,t,e,i){const r=10+i,o=e.length;i>0&&(e[r-1][4]=t),i0)i.push(s[a/2]);else{const c=o[a+1],u=t[-l];for(let d=10;d{class n{constructor(e){this.appInits=e,this.resolve=If,this.reject=If,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r{o.subscribe({complete:a,error:l})});e.push(s)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(j(Sf,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const wd=new $("AppId",{providedIn:"root",factory:function Kx(){return`${D_()}${D_()}${D_()}`}});function D_(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const $x=new $("Platform Initializer"),Tf=new $("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),qx=new $("appBootstrapListener"),Xx=new $("AnimationModuleType");let OG=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const jo=new $("LocaleId",{providedIn:"root",factory:()=>Xt(jo,pe.Optional|pe.SkipSelf)||function kG(){return typeof $localize<"u"&&$localize.locale||yc}()});class FG{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let I_=(()=>{class n{compileModuleSync(e){return new p_(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),o=Lo(z(e).declarations).reduce((s,a)=>{const l=ot(a);return l&&s.push(new hd(l)),s},[]);return new FG(i,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const LG=(()=>Promise.resolve(0))();function S_(n){typeof Zone>"u"?LG.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class At{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new te(!1),this.onMicrotaskEmpty=new te(!1),this.onStable=new te(!1),this.onError=new te(!1),typeof Zone>"u")throw new P(908,!1);Zone.assertZonePatched();const r=this;if(r._nesting=0,r._outer=r._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const o=Zone.AsyncStackTaggingZoneSpec;r._inner=r._inner.fork(new o("Angular"))}Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function QG(){let n=mt.requestAnimationFrame,t=mt.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function zG(n){const t=()=>{!function jG(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(mt,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,T_(n),n.isCheckStableRunning=!0,x_(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),T_(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,o,s,a)=>{try{return tT(n),e.invokeTask(r,o,s,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||n.shouldCoalesceRunChangeDetection)&&t(),nT(n)}},onInvoke:(e,i,r,o,s,a,l)=>{try{return tT(n),e.invoke(r,o,s,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),nT(n)}},onHasTask:(e,i,r,o)=>{e.hasTask(r,o),i===r&&("microTask"==o.change?(n._hasPendingMicrotasks=o.microTask,T_(n),x_(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:(e,i,r,o)=>(e.handleError(r,o),n.runOutsideAngular(()=>n.onError.emit(o)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!At.isInAngularZone())throw new P(909,!1)}static assertNotInAngularZone(){if(At.isInAngularZone())throw new P(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+r,t,UG,If,If);try{return o.runTask(s,e,i)}finally{o.cancelTask(s)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const UG={};function x_(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function T_(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function tT(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function nT(n){n._nesting--,x_(n)}class HG{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new te,this.onMicrotaskEmpty=new te,this.onStable=new te,this.onError=new te}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const iT=new $(""),Bf=new $("");let k_,B_=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,k_||(function VG(n){k_=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.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:()=>{At.assertNotInAngularZone(),S_(()=>{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())S_(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let o=-1;i&&i>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:r})}whenStable(e,i,r){if(r&&!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(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(O_),j(Bf))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),O_=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return k_?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),ws=null;const rT=new $("AllowMultipleToken"),P_=new $("PlatformDestroyListeners");class oT{constructor(t,e){this.name=t,this.token=e}}function aT(n,t,e=[]){const i=`Platform: ${t}`,r=new $(i);return(o=[])=>{let s=F_();if(!s||s.injector.get(rT,!1)){const a=[...e,...o,{provide:r,useValue:!0}];n?n(a):function WG(n){if(ws&&!ws.get(rT,!1))throw new P(400,!1);ws=n;const t=n.get(cT);(function sT(n){const t=n.get($x,null);t&&t.forEach(e=>e())})(n)}(function lT(n=[],t){return Tn.create({name:t,providers:[{provide:ny,useValue:"platform"},{provide:P_,useValue:new Set([()=>ws=null])},...n]})}(a,i))}return function KG(n){const t=F_();if(!t)throw new P(401,!1);return t}()}}function F_(){return ws?.get(cT)??null}let cT=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function dT(n,t){let e;return e="noop"===n?new HG:("zone.js"===n?void 0:n)||new At(t),e}(i?.ngZone,function uT(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),o=[{provide:At,useValue:r}];return r.run(()=>{const s=Tn.create({providers:o,parent:this.injector,name:e.moduleType.name}),a=e.create(s),l=a.injector.get(nc,null);if(!l)throw new P(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Of(this._modules,a),c.unsubscribe()})}),function hT(n,t,e){try{const i=e();return gd(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(xf);return c.runInitializers(),c.donePromise.then(()=>(function NS(n){ni(n,"Expected localeId to be defined"),"string"==typeof n&&(RS=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(jo,yc)||yc),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=pT({},i);return function GG(n,t,e){const i=new p_(e);return Promise.resolve(i)}(0,0,e).then(o=>this.bootstrapModuleFactory(o,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ua);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new P(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new P(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(P_,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(j(Tn))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function pT(n,t){return Array.isArray(t)?t.reduce(pT,n):{...n,...t}}let Ua=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new et(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),s=new et(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{At.assertNotInAngularZone(),S_(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{At.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=va(o,s.pipe(function Ep(){return n=>Ma()(function _p(n,t){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof t)return i.lift(new ub(r,t));const o=Object.create(i,cb);return o.source=i,o.subjectFactory=r,o}}(Io)(n))}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof uD;if(!this._injector.get(xf).done)throw!r&&function R(n){const t=ot(n)||_(n)||M(n);return null!==t&&t.standalone}(e),new P(405,false);let s;s=r?e:this._injector.get(Es).resolveComponentFactory(e),this.componentTypes.push(s.componentType);const a=function YG(n){return n.isBoundToModule}(s)?void 0:this._injector.get(Ra),c=s.create(Tn.NULL,[],i||s.selector,a),u=c.location.nativeElement,d=c.injector.get(iT,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Of(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new P(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;Of(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(qx,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Of(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new P(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(_s),j(nc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Of(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let gT=!0,mT=!1,li=(()=>{class n{}return n.__NG_ELEMENT_ID__=ZG,n})();function ZG(n){return function eY(n,t,e){if(Sp(n)&&!e){const i=Bi(n.index,t);return new dd(i,i)}return 47&n.type?new dd(t[16],t):null}(fn(),N(),16==(16&n))}class _T{constructor(){}supports(t){return pd(t)}create(t){return new sY(t)}}const oY=(n,t)=>t;class sY{constructor(t){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=t||oY}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,o=null;for(;e||i;){const s=!i||e&&e.currentIndex{s=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,s)?(i&&(e=this._verifyReinsertion(e,a,s,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,s,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):t=this._addAfter(new aY(e,i),o,r),t}_verifyReinsertion(t,e,i,r){let o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}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(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ET),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ET),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class aY{constructor(t,e){this.item=t,this.trackById=e,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 lY{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class ET{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new lY,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function CT(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const o=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const o=r._prev,s=r._next;return o&&(o._next=s),s&&(s._prev=o),r._next=null,r._prev=null,r}const i=new uY(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class uY{constructor(t){this.key=t,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 MT(){return new Ff([new _T])}let Ff=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||MT()),deps:[[n,new ed,new Zu]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new P(901,!1)}}return n.\u0275prov=Y({token:n,providedIn:"root",factory:MT}),n})();function wT(){return new Dd([new vT])}let Dd=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||wT()),deps:[[n,new ed,new Zu]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new P(901,!1)}}return n.\u0275prov=Y({token:n,providedIn:"root",factory:wT}),n})();const pY=aT(null,"core",[]);let fY=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(j(Ua))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();let Rf=null;function oo(){return Rf}const Jt=new $("DocumentToken");let U_=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return function bY(){return j(DT)}()},providedIn:"platform"}),n})();const yY=new $("Location Initialized");let DT=(()=>{class n extends U_{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return oo().getBaseHref(this._doc)}onPopState(e){const i=oo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=oo().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}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(e){this.location.pathname=e}pushState(e,i,r){IT()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){IT()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(){return function _Y(){return new DT(j(Jt))}()},providedIn:"platform"}),n})();function IT(){return!!window.history.pushState}function j_(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function ST(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function Vo(n){return n&&"?"!==n[0]?"?"+n:n}let za=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return Xt(TT)},providedIn:"root"}),n})();const xT=new $("appBaseHref");let TT=(()=>{class n extends za{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??Xt(Jt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return j_(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+Vo(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,o){const s=this.prepareExternalUrl(r+Vo(o));this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){const s=this.prepareExternalUrl(r+Vo(o));this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(j(U_),j(xT,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),EY=(()=>{class n extends za{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=j_(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,o){let s=this.prepareExternalUrl(r+Vo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,i,s)}replaceState(e,i,r,o){let s=this.prepareExternalUrl(r+Vo(o));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(j(U_),j(xT,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),z_=(()=>{class n{constructor(e){this._subject=new te,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=ST(BT(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+Vo(i))}normalize(e){return n.stripTrailingSlash(function vY(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,BT(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vo(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Vo(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=Vo,n.joinWithSlash=j_,n.stripTrailingSlash=ST,n.\u0275fac=function(e){return new(e||n)(j(za))},n.\u0275prov=Y({token:n,factory:function(){return function CY(){return new z_(j(za))}()},providedIn:"root"}),n})();function BT(n){return n.replace(/\/index.html$/,"")}function UT(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,o]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(o)}return null}let zn=(()=>{class n{constructor(e,i,r,o){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=o,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(pd(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${rt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(T(Ff),T(Dd),T(St),T(qr))},n.\u0275dir=ue({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class l3{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}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 tr=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,o,s)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new l3(r.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)i.remove(null===o?void 0:o);else if(null!==o){const a=i.get(o);i.move(a,s),HT(a,r)}});for(let r=0,o=i.length;r{HT(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(T(Ni),T(ro),T(Ff))},n.\u0275dir=ue({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function HT(n,t){n.context.$implicit=t.item}let Pt=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new u3,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){VT("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){VT("ngIfElse",e),this._elseTemplateRef=e,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(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(T(Ni),T(ro))},n.\u0275dir=ue({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class u3{constructor(){this.$implicit=null,this.ngIf=null}}function VT(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${rt(t)}'.`)}class X_{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let xd=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(let i=0;i{class n{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new X_(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(e){return new(e||n)(T(Ni),T(ro),T(xd,9))},n.\u0275dir=ue({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),n})(),eE=(()=>{class n{constructor(e,i,r){r._addDefault(new X_(e,i))}}return n.\u0275fac=function(e){return new(e||n)(T(Ni),T(ro),T(xd,9))},n.\u0275dir=ue({type:n,selectors:[["","ngSwitchDefault",""]],standalone:!0}),n})(),nr=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,o]=e.split("."),s=-1===r.indexOf("-")?void 0:Ei.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,o?`${i}${o}`:i,s):this._renderer.removeStyle(this._ngEl.nativeElement,r,s)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(Dd),T(qr))},n.\u0275dir=ue({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),Yo=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:o,ngTemplateOutletInjector:s}=this;this._viewRef=i.createEmbeddedView(r,o,s?{injector:s}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(T(Ni))},n.\u0275dir=ue({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[_i]}),n})();function Pr(n,t){return new P(2100,!1)}class h3{createSubscription(t,e){return t.subscribe({next:e,error:i=>{throw i}})}dispose(t){t.unsubscribe()}}class p3{createSubscription(t,e){return t.then(e,i=>{throw i})}dispose(t){}}const f3=new p3,g3=new h3;let YT=(()=>{class n{constructor(e){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,i=>this._updateLatestValue(e,i))}_selectStrategy(e){if(gd(e))return f3;if(HI(e))return g3;throw Pr()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,i){e===this._obj&&(this._latestValue=i,this._ref.markForCheck())}}return n.\u0275fac=function(e){return new(e||n)(T(li,16))},n.\u0275pipe=xn({name:"async",type:n,pure:!1,standalone:!0}),n})(),tE=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Pr();return e.toLowerCase()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=xn({name:"lowercase",type:n,pure:!0,standalone:!0}),n})();const m3=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946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DF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let WT=(()=>{class n{transform(e){if(null==e)return null;if("string"!=typeof e)throw Pr();return e.replace(m3,i=>i[0].toUpperCase()+i.slice(1).toLowerCase())}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=xn({name:"titlecase",type:n,pure:!0,standalone:!0}),n})(),Kt=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();const KT="browser";let P3=(()=>{class n{}return n.\u0275prov=Y({token:n,providedIn:"root",factory:()=>new F3(j(Jt),window)}),n})();class F3{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function R3(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const o=r.shadowRoot;if(o){const s=o.getElementById(t)||o.querySelector(`[name="${t}"]`);if(s)return s}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(i-o[0],r-o[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=$T(this.window.history)||$T(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function $T(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class qT{}class sE extends class e5 extends class AY{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function mY(n){Rf||(Rf=n)}(new sE)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function t5(){return Bd=Bd||document.querySelector("base"),Bd?Bd.getAttribute("href"):null}();return null==e?null:function n5(n){Wf=Wf||document.createElement("a"),Wf.setAttribute("href",n);const t=Wf.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Bd=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return UT(document.cookie,t)}}let Wf,Bd=null;const t1=new $("TRANSITION_ID"),o5=[{provide:Sf,useFactory:function r5(n,t,e){return()=>{e.get(xf).donePromise.then(()=>{const i=oo(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let o=0;o{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Jf=new $("EventManagerPlugins");let Kf=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let o=0;o{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Od=(()=>{class n extends r1{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(o=>{const s=this._doc.createElement("style");s.textContent=o,r.push(i.appendChild(s))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(o1),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(o1))}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();function o1(n){oo().remove(n)}const aE={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/"},lE=/%COMP%/g;function $f(n,t,e){for(let i=0;i{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let qf=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new cE(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ti.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new p5(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ti.ShadowDom:return new f5(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=$f(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(j(Kf),j(Od),j(wd))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class cE{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(aE[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(u1(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(u1(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const o=aE[r];o?t.setAttributeNS(o,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=aE[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Ei.DashCase|Ei.Important)?t.style.setProperty(e,i,r&Ei.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Ei.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,l1(i)):this.eventManager.addEventListener(t,e,l1(i))}}function u1(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class p5 extends cE{constructor(t,e,i,r){super(t),this.component=i;const o=$f(r+"-"+i.id,i.styles,[]);e.addStyles(o),this.contentAttr=function u5(n){return"_ngcontent-%COMP%".replace(lE,n)}(r+"-"+i.id),this.hostAttr=function d5(n){return"_nghost-%COMP%".replace(lE,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class f5 extends cE{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=$f(r.id,r.styles,[]);for(let s=0;s{class n extends n1{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const d1=["alt","control","meta","shift"],m5={"\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"},A5={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let b5=(()=>{class n extends n1{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const o=n.parseEventName(i),s=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>oo().onAndCancel(e,o.domEventName,s))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const o=n._normalizeKey(i.pop());let s="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),s="code."),d1.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),s+=c+".")}),s+=o,0!=i.length||0===o.length)return null;const l={};return l.domEventName=r,l.fullKey=s,l}static matchEventFullKeyCode(e,i){let r=m5[e.key]||e.key,o="";return i.indexOf("code.")>-1&&(r=e.code,o="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),d1.forEach(s=>{s!==r&&(0,A5[s])(e)&&(o+=s+".")}),o+=r,o===i)}static eventCallback(e,i,r){return o=>{n.matchEventFullKeyCode(o,e)&&r.runGuarded(()=>i(o))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const p1=[{provide:Tf,useValue:KT},{provide:$x,useValue:function y5(){sE.makeCurrent()},multi:!0},{provide:Jt,useFactory:function E5(){return function TU(n){Yb=n}(document),document},deps:[]}],C5=aT(pY,"browser",p1),f1=new $(""),g1=[{provide:Bf,useClass:class s5{addToWindow(t){mt.getAngularTestability=(i,r=!0)=>{const o=t.findTestabilityInTree(i,r);if(null==o)throw new Error("Could not find testability for element.");return o},mt.getAllAngularTestabilities=()=>t.getAllTestabilities(),mt.getAllAngularRootElements=()=>t.getAllRootElements(),mt.frameworkStabilizers||(mt.frameworkStabilizers=[]),mt.frameworkStabilizers.push(i=>{const r=mt.getAllAngularTestabilities();let o=r.length,s=!1;const a=function(l){s=s||l,o--,0==o&&i(s)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?oo().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:iT,useClass:B_,deps:[At,O_,Bf]},{provide:B_,useClass:B_,deps:[At,O_,Bf]}],m1=[{provide:ny,useValue:"root"},{provide:nc,useFactory:function _5(){return new nc},deps:[]},{provide:Jf,useClass:g5,multi:!0,deps:[Jt,At,Tf]},{provide:Jf,useClass:b5,multi:!0,deps:[Jt]},{provide:qf,useClass:qf,deps:[Kf,Od,wd]},{provide:sd,useExisting:qf},{provide:r1,useExisting:Od},{provide:Od,useClass:Od,deps:[Jt]},{provide:Kf,useClass:Kf,deps:[Jf,At]},{provide:qT,useClass:a5,deps:[]},[]];let A1=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:wd,useValue:e.appId},{provide:t1,useExisting:wd},o5]}}}return n.\u0275fac=function(e){return new(e||n)(j(f1,12))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[...m1,...g1],imports:[Kt,fY]}),n})(),b1=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new e:function M5(){return new b1(j(Jt))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let hE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new(e||n):j(pE),i},providedIn:"root"}),n})(),pE=(()=>{class n extends hE{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case It.NONE:return i;case It.HTML:return Kr(i,"HTML")?Pi(i):Z0(this._doc,String(i)).toString();case It.STYLE:return Kr(i,"Style")?Pi(i):i;case It.SCRIPT:if(Kr(i,"Script"))return Pi(i);throw new Error("unsafe value used in a script context");case It.URL:return Kr(i,"URL")?Pi(i):id(String(i));case It.RESOURCE_URL:if(Kr(i,"ResourceURL"))return Pi(i);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${e} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(e){return function QU(n){return new kU(n)}(e)}bypassSecurityTrustStyle(e){return function UU(n){return new PU(n)}(e)}bypassSecurityTrustScript(e){return function jU(n){return new FU(n)}(e)}bypassSecurityTrustUrl(e){return function zU(n){return new RU(n)}(e)}bypassSecurityTrustResourceUrl(e){return function HU(n){return new NU(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt))},n.\u0275prov=Y({token:n,factory:function(e){let i=null;return i=e?new e:function B5(n){return new pE(n.get(Jt))}(j(Tn)),i},providedIn:"root"}),n})();function ae(...n){let t=n[n.length-1];return ds(t)?(n.pop(),Tl(n,t)):ps(n)}function Wo(n,t){return nn(n,t,1)}function ir(n,t){return function(i){return i.lift(new O5(n,t))}}class O5{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new k5(t,this.predicate,this.thisArg))}}class k5 extends Ge{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class E1{}class C1{}class Fr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),o=r.toLowerCase(),s=e.slice(i+1).trim();this.maybeSetNormalizedName(r,o),this.headers.has(o)?this.headers.get(o).push(s):this.headers.set(o,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Fr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Fr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Fr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const o=t.value;if(o){let s=this.headers.get(e);if(!s)return;s=s.filter(a=>-1===o.indexOf(a)),0===s.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class P5{encodeKey(t){return v1(t)}encodeValue(t){return v1(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const R5=/%(\d[a-f0-9])/gi,N5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function v1(n){return encodeURIComponent(n).replace(R5,(t,e)=>N5[e]??t)}function Xf(n){return`${n}`}class Is{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new P5,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function F5(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const o=r.indexOf("="),[s,a]=-1==o?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,o)),t.decodeValue(r.slice(o+1))],l=e.get(s)||[];l.push(a),e.set(s,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(Xf):[Xf(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(o=>{e.push({param:i,value:o,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new Is({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(Xf(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(Xf(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class L5{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function M1(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function w1(n){return typeof Blob<"u"&&n instanceof Blob}function D1(n){return typeof FormData<"u"&&n instanceof FormData}class kd{constructor(t,e,i,r){let o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function Q5(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Fr),this.context||(this.context=new L5),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":ad.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new kd(e,i,o,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:s})}}var jt=(()=>((jt=jt||{})[jt.Sent=0]="Sent",jt[jt.UploadProgress=1]="UploadProgress",jt[jt.ResponseHeader=2]="ResponseHeader",jt[jt.DownloadProgress=3]="DownloadProgress",jt[jt.Response=4]="Response",jt[jt.User=5]="User",jt))();class fE{constructor(t,e=200,i="OK"){this.headers=t.headers||new Fr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class gE extends fE{constructor(t={}){super(t),this.type=jt.ResponseHeader}clone(t={}){return new gE({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Zf extends fE{constructor(t={}){super(t),this.type=jt.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Zf({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class I1 extends fE{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function mE(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let vc=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let o;if(e instanceof kd)o=e;else{let l,c;l=r.headers instanceof Fr?r.headers:new Fr(r.headers),r.params&&(c=r.params instanceof Is?r.params:new Is({fromObject:r.params})),o=new kd(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const s=ae(o).pipe(Wo(l=>this.handler.handle(l)));if(e instanceof kd||"events"===r.observe)return s;const a=s.pipe(ir(l=>l instanceof Zf));switch(r.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(fe(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(fe(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(fe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new Is).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,mE(r,i))}post(e,i,r={}){return this.request("POST",e,mE(r,i))}put(e,i,r={}){return this.request("PUT",e,mE(r,i))}}return n.\u0275fac=function(e){return new(e||n)(j(E1))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class S1{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const x1=new $("HTTP_INTERCEPTORS");let j5=(()=>{class n{intercept(e,i){return i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const z5=/^\)\]\}',?\n/;let T1=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new et(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((p,f)=>r.setRequestHeader(p,f.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&r.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();r.responseType="json"!==p?p:"text"}const o=e.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const p=r.statusText||"OK",f=new Fr(r.getAllResponseHeaders()),g=function H5(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return s=new gE({headers:f,status:r.status,statusText:p,url:g}),s},l=()=>{let{headers:p,status:f,statusText:g,url:m}=a(),A=null;204!==f&&(A=typeof r.response>"u"?r.responseText:r.response),0===f&&(f=A?200:0);let y=f>=200&&f<300;if("json"===e.responseType&&"string"==typeof A){const E=A;A=A.replace(z5,"");try{A=""!==A?JSON.parse(A):null}catch(b){A=E,y&&(y=!1,A={error:b,text:A})}}y?(i.next(new Zf({body:A,headers:p,status:f,statusText:g,url:m||void 0})),i.complete()):i.error(new I1({error:A,headers:p,status:f,statusText:g,url:m||void 0}))},c=p=>{const{url:f}=a(),g=new I1({error:p,status:r.status||0,statusText:r.statusText||"Unknown Error",url:f||void 0});i.error(g)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let f={type:jt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),"text"===e.responseType&&!!r.responseText&&(f.partialText=r.responseText),i.next(f)},h=p=>{let f={type:jt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),i.next(f)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),i.next({type:jt.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(j(qT))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const AE=new $("XSRF_COOKIE_NAME"),bE=new $("XSRF_HEADER_NAME");class B1{}let V5=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=UT(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(Tf),j(AE))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),yE=(()=>{class n{constructor(e,i){this.tokenService=e,this.headerName=i}intercept(e,i){const r=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||r.startsWith("http://")||r.startsWith("https://"))return i.handle(e);const o=this.tokenService.getToken();return null!==o&&!e.headers.has(this.headerName)&&(e=e.clone({headers:e.headers.set(this.headerName,o)})),i.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(j(B1),j(bE))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),G5=(()=>{class n{constructor(e,i){this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=this.injector.get(x1,[]);this.chain=i.reduceRight((r,o)=>new S1(r,o),this.backend)}return this.chain.handle(e)}}return n.\u0275fac=function(e){return new(e||n)(j(C1),j(Tn))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Y5=(()=>{class n{static disable(){return{ngModule:n,providers:[{provide:yE,useClass:j5}]}}static withOptions(e={}){return{ngModule:n,providers:[e.cookieName?{provide:AE,useValue:e.cookieName}:[],e.headerName?{provide:bE,useValue:e.headerName}:[]]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[yE,{provide:x1,useExisting:yE,multi:!0},{provide:B1,useClass:V5},{provide:AE,useValue:"XSRF-TOKEN"},{provide:bE,useValue:"X-XSRF-TOKEN"}]}),n})(),_E=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[vc,{provide:E1,useClass:G5},T1,{provide:C1,useExisting:T1}],imports:[Y5.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),n})();class W5 extends We{constructor(t,e){super()}schedule(t,e=0){return this}}class eg extends W5{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(o){i=!0,r=!!o&&o||new Error(o)}if(i)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let O1=(()=>{class n{constructor(e,i=n.now){this.SchedulerAction=e,this.now=i}schedule(e,i=0,r){return new this.SchedulerAction(this,e).schedule(r,i)}}return n.now=()=>Date.now(),n})();class Rr extends O1{constructor(t,e=O1.now){super(t,()=>Rr.delegate&&Rr.delegate!==this?Rr.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return Rr.delegate&&Rr.delegate!==this?Rr.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const EE=new class K5 extends Rr{}(class J5 extends eg{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(t,e,i):t.flush(this)}}),$5=EE,Mc=new et(n=>n.complete());function tg(n){return n?function q5(n){return new et(t=>n.schedule(()=>t.complete()))}(n):Mc}function Ss(n,t){return new et(t?e=>t.schedule(X5,0,{error:n,subscriber:e}):e=>e.error(n))}function X5({error:n,subscriber:t}){t.error(n)}class rr{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return ae(this.value);case"E":return Ss(this.error);case"C":return tg()}throw new Error("unexpected notification kind value")}static createNext(t){return typeof t<"u"?new rr("N",t):rr.undefinedValueNotification}static createError(t){return new rr("E",void 0,t)}static createComplete(){return rr.completeNotification}}rr.completeNotification=new rr("C"),rr.undefinedValueNotification=new rr("N",void 0);class ng extends Ge{constructor(t,e,i=0){super(t),this.scheduler=e,this.delay=i}static dispatch(t){const{notification:e,destination:i}=t;e.observe(i),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(ng.dispatch,this.delay,new e8(t,this.destination)))}_next(t){this.scheduleMessage(rr.createNext(t))}_error(t){this.scheduleMessage(rr.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(rr.createComplete()),this.unsubscribe()}}class e8{constructor(t,e){this.notification=t,this.destination=e}}class ig extends Me{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new t8(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,o=i.length;let s;if(this.closed)throw new Cr;if(this.isStopped||this.hasError?s=We.EMPTY:(this.observers.push(t),s=new Cu(this,t)),r&&t.add(t=new ng(t,r)),e)for(let a=0;ae&&(s=Math.max(s,o-e)),s>0&&r.splice(0,s),r}}class t8{constructor(t,e){this.time=t,this.value=e}}function Li(n,t){return"function"==typeof t?e=>e.pipe(Li((i,r)=>Lt(n(i,r)).pipe(fe((o,s)=>t(i,o,r,s))))):e=>e.lift(new n8(n))}class n8{constructor(t){this.project=t}call(t,e){return e.subscribe(new i8(t,this.project))}}class i8 extends Ea{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new _a(this),r=this.destination;r.add(i),this.innerSubscription=Ca(t,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;(!t||t.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}const rg={schedule(n,t){const e=setTimeout(n,t);return()=>clearTimeout(e)},scheduleBeforeRender(n){if(typeof window>"u")return rg.schedule(n,0);if(typeof window.requestAnimationFrame>"u")return rg.schedule(n,16);const t=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(t)}};let CE;function h8(n,t,e){let i=e;return function o8(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&t.some((r,o)=>!("*"===r||!function a8(n,t){if(!CE){const e=Element.prototype;CE=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&CE.call(n,t)}(n,r)||(i=o,0))),i}class f8{constructor(t,e){this.componentFactory=e.get(Es).resolveComponentFactory(t)}create(t){return new g8(this.componentFactory,t)}}class g8{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new ig(1),this.events=this.eventEmitters.pipe(Li(i=>va(...i))),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:i})=>i)),this.ngZone=this.injector.get(At),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=rg.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{null!==this.componentRef?function l8(n,t){return n===t||n!=n&&t!=t}(e,this.getInputValue(t))&&(void 0!==e||!this.unchangedInputs.has(t))||(this.recordInputChange(t,e),this.unchangedInputs.delete(t),this.hasInputChanges=!0,this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=Tn.create({providers:[],parent:this.injector}),i=function d8(n,t){const e=n.childNodes,i=t.map(()=>[]);let r=-1;t.some((o,s)=>"*"===o&&(r=s,!0));for(let o=0,s=e.length;o{this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:i,templateName:r})=>t.instance[i].pipe(fe(s=>({name:r,value:s}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}markViewForCheck(t){this.hasInputChanges&&(this.hasInputChanges=!1,t.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=rg.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[t];if(i)return void(i.currentValue=e);const r=this.unchangedInputs.has(t),o=r?void 0:this.getInputValue(t);this.inputChanges[t]=new $w(o,e,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class m8 extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function og(n,t){return new et(e=>{const i=n.length;if(0===i)return void e.complete();const r=new Array(i);let o=0,s=0;for(let a=0;a{c||(c=!0,s++),r[a]=u},error:u=>e.error(u),complete:()=>{o++,(o===i||!c)&&(s===i&&e.next(t?t.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),e.complete())}}))}})}let k1=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(T(qr),T(St))},n.\u0275dir=ue({type:n}),n})(),Ha=(()=>{class n extends k1{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=vn(n)))(i||n)}}(),n.\u0275dir=ue({type:n,features:[lt]}),n})();const Qi=new $("NgValueAccessor"),_8={provide:Qi,useExisting:Je(()=>wc),multi:!0},C8=new $("CompositionEventMode");let wc=(()=>{class n extends k1{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function E8(){const n=oo()?oo().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(T(qr),T(St),T(C8,8))},n.\u0275dir=ue({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&K("input",function(o){return i._handleInput(o.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(o){return i._compositionEnd(o.target.value)})},features:[yt([_8]),lt]}),n})();function xs(n){return null==n||("string"==typeof n||Array.isArray(n))&&0===n.length}function F1(n){return null!=n&&"number"==typeof n.length}const Vn=new $("NgValidators"),Ts=new $("NgAsyncValidators"),M8=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class vE{static min(t){return function R1(n){return t=>{if(xs(t.value)||xs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e{if(xs(t.value)||xs(n))return null;const e=parseFloat(t.value);return!isNaN(e)&&e>n?{max:{max:n,actual:t.value}}:null}}(t)}static required(t){return function L1(n){return xs(n.value)?{required:!0}:null}(t)}static requiredTrue(t){return function Q1(n){return!0===n.value?null:{required:!0}}(t)}static email(t){return function U1(n){return xs(n.value)||M8.test(n.value)?null:{email:!0}}(t)}static minLength(t){return function j1(n){return t=>xs(t.value)||!F1(t.value)?null:t.value.lengthF1(t.value)&&t.value.length>n?{maxlength:{requiredLength:n,actualLength:t.value.length}}:null}(t)}static pattern(t){return function H1(n){if(!n)return sg;let t,e;return"string"==typeof n?(e="","^"!==n.charAt(0)&&(e+="^"),e+=n,"$"!==n.charAt(n.length-1)&&(e+="$"),t=new RegExp(e)):(e=n.toString(),t=n),i=>{if(xs(i.value))return null;const r=i.value;return t.test(r)?null:{pattern:{requiredPattern:e,actualValue:r}}}}(t)}static nullValidator(t){return null}static compose(t){return K1(t)}static composeAsync(t){return $1(t)}}function sg(n){return null}function V1(n){return null!=n}function G1(n){return gd(n)?Lt(n):n}function Y1(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function W1(n,t){return t.map(e=>e(n))}function J1(n){return n.map(t=>function w8(n){return!n.validate}(t)?t:e=>t.validate(e))}function K1(n){if(!n)return null;const t=n.filter(V1);return 0==t.length?null:function(e){return Y1(W1(e,t))}}function ME(n){return null!=n?K1(J1(n)):null}function $1(n){if(!n)return null;const t=n.filter(V1);return 0==t.length?null:function(e){return function b8(...n){if(1===n.length){const t=n[0];if(Er(t))return og(t,null);if(ga(t)&&Object.getPrototypeOf(t)===Object.prototype){const e=Object.keys(t);return og(e.map(i=>t[i]),e)}}if("function"==typeof n[n.length-1]){const t=n.pop();return og(n=1===n.length&&Er(n[0])?n[0]:n,null).pipe(fe(e=>t(...e)))}return og(n,null)}(W1(e,t).map(G1)).pipe(fe(Y1))}}function wE(n){return null!=n?$1(J1(n)):null}function q1(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function X1(n){return n._rawValidators}function Z1(n){return n._rawAsyncValidators}function DE(n){return n?Array.isArray(n)?n:[n]:[]}function ag(n,t){return Array.isArray(n)?n.includes(t):n===t}function eB(n,t){const e=DE(t);return DE(n).forEach(r=>{ag(e,r)||e.push(r)}),e}function tB(n,t){return DE(t).filter(e=>!ag(n,e))}class nB{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(t){this._rawValidators=t||[],this._composedValidatorFn=ME(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=wE(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class ci extends nB{get formDirective(){return null}get path(){return null}}class Bs extends nB{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class iB{constructor(t){this._cd=t}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 Pd=(()=>{class n extends iB{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(T(Bs,2))},n.\u0275dir=ue({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&Ms("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[lt]}),n})(),lg=(()=>{class n extends iB{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(T(ci,10))},n.\u0275dir=ue({type:n,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(e,i){2&e&&Ms("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},features:[lt]}),n})();const Fd="VALID",ug="INVALID",Dc="PENDING",Rd="DISABLED";function TE(n){return(dg(n)?n.validators:n)||null}function oB(n){return Array.isArray(n)?ME(n):n||null}function BE(n,t){return(dg(t)?t.asyncValidators:n)||null}function sB(n){return Array.isArray(n)?wE(n):n||null}function dg(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}function aB(n,t,e){const i=n.controls;if(!(t?Object.keys(i):i).length)throw new P(1e3,"");if(!i[e])throw new P(1001,"")}function lB(n,t,e){n._forEachChild((i,r)=>{if(void 0===e[r])throw new P(1002,"")})}class hg{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=oB(this._rawValidators),this._composedAsyncValidatorFn=sB(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Fd}get invalid(){return this.status===ug}get pending(){return this.status==Dc}get disabled(){return this.status===Rd}get enabled(){return this.status!==Rd}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=oB(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=sB(t)}addValidators(t){this.setValidators(eB(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(eB(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(tB(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(tB(t,this._rawAsyncValidators))}hasValidator(t){return ag(this._rawValidators,t)}hasAsyncValidator(t){return ag(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Dc,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Rd,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Fd,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fd||this.status===Dc)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Rd:Fd}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Dc,this._hasOwnPendingAsyncValidator=!0;const e=G1(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new te,this.statusChanges=new te}_calculateStatus(){return this._allControlsDisabled()?Rd:this.errors?ug:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dc)?Dc:this._anyControlsHaveStatus(ug)?ug:Fd}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){dg(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}}class Nd extends hg{constructor(t,e,i){super(TE(e),BE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e,i={}){this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(t,e={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(t,e,i={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){lB(this,0,t),Object.keys(t).forEach(i=>{aB(this,!0,i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(Object.keys(t).forEach(i=>{const r=this.controls[i];r&&r.patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t={},e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(e,i)=>!!i._syncPendingControls()||e);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(e=>{const i=this.controls[e];i&&t(i,e)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[e,i]of Object.entries(this.controls))if(this.contains(e)&&t(i))return!0;return!1}_reduceValue(){return this._reduceChildren({},(e,i,r)=>((i.enabled||this.disabled)&&(e[r]=i.value),e))}_reduceChildren(t,e){let i=t;return this._forEachChild((r,o)=>{i=e(i,r,o)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}class cB extends Nd{}function pg(n,t){return[...t.path,n]}function Ld(n,t){OE(n,t),t.valueAccessor.writeValue(n.value),n.disabled&&t.valueAccessor.setDisabledState?.(!0),function k8(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&uB(n,t)})}(n,t),function F8(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function P8(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&uB(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function O8(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function fg(n,t,e=!0){const i=()=>{};t.valueAccessor&&(t.valueAccessor.registerOnChange(i),t.valueAccessor.registerOnTouched(i)),mg(n,t),n&&(t._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function gg(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function OE(n,t){const e=X1(n);null!==t.validator?n.setValidators(q1(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=Z1(n);null!==t.asyncValidator?n.setAsyncValidators(q1(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();gg(t._rawValidators,r),gg(t._rawAsyncValidators,r)}function mg(n,t){let e=!1;if(null!==n){if(null!==t.validator){const r=X1(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.validator);o.length!==r.length&&(e=!0,n.setValidators(o))}}if(null!==t.asyncValidator){const r=Z1(n);if(Array.isArray(r)&&r.length>0){const o=r.filter(s=>s!==t.asyncValidator);o.length!==r.length&&(e=!0,n.setAsyncValidators(o))}}}const i=()=>{};return gg(t._rawValidators,i),gg(t._rawAsyncValidators,i),e}function uB(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function kE(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}function PE(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(o=>{o.constructor===wc?e=o:function L8(n){return Object.getPrototypeOf(n.constructor)===Ha}(o)?i=o:r=o}),r||i||e||null}function fB(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function gB(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const Ud=class extends hg{constructor(t=null,e,i){super(TE(e),BE(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),dg(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=gB(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){fB(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){fB(this._onDisabledChange,t)}_forEachChild(t){}_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(t){gB(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},H8={provide:Bs,useExisting:Je(()=>Ag)},bB=(()=>Promise.resolve(null))();let Ag=(()=>{class n extends Bs{constructor(e,i,r,o,s){super(),this._changeDetectorRef=s,this.control=new Ud,this._registered=!1,this.update=new te,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=PE(0,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),kE(e,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(e){this.viewModel=e,this.update.emit(e)}_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(){Ld(this.control,this),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(e){bB.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&function Ho(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}(i);bB.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?pg(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(T(ci,9),T(Vn,10),T(Ts,10),T(Qi,10),T(li,8))},n.\u0275dir=ue({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[yt([H8]),lt,_i]}),n})(),bg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=ue({type:n,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),n})(),_B=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();const RE=new $("NgModelWithFormControlWarning"),K8={provide:ci,useExisting:Je(()=>Ic)};let Ic=(()=>{class n extends ci{constructor(e,i){super(),this.validators=e,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new te,this._setValidators(e),this._setAsyncValidators(i)}ngOnChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(mg(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){const i=this.form.get(e.path);return Ld(i,e),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),i}getControl(e){return this.form.get(e.path)}removeControl(e){fg(e.control||null,e,!1),function Q8(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,i){this.form.get(e.path).setValue(i)}onSubmit(e){return this.submitted=!0,function pB(n,t){n._syncPendingControls(),t.forEach(e=>{const i=e.control;"submit"===i.updateOn&&i._pendingChange&&(e.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(e),!1}onReset(){this.resetForm()}resetForm(e){this.form.reset(e),this.submitted=!1}_updateDomValue(){this.directives.forEach(e=>{const i=e.control,r=this.form.get(e.path);i!==r&&(fg(i||null,e),(n=>n instanceof Ud)(r)&&(Ld(r,e),e.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){const i=this.form.get(e.path);(function dB(n,t){OE(n,t)})(i,e),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){const i=this.form.get(e.path);i&&function R8(n,t){return mg(n,t)}(i,e)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){OE(this.form,this),this._oldForm&&mg(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(e){return new(e||n)(T(Vn,10),T(Ts,10))},n.\u0275dir=ue({type:n,selectors:[["","formGroup",""]],hostBindings:function(e,i){1&e&&K("submit",function(o){return i.onSubmit(o)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yt([K8]),lt,_i]}),n})();const X8={provide:Bs,useExisting:Je(()=>jd)};let jd=(()=>{class n extends Bs{constructor(e,i,r,o,s){super(),this._ngModelWarningConfig=s,this._added=!1,this.update=new te,this._ngModelWarningSent=!1,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=PE(0,o)}set isDisabled(e){}ngOnChanges(e){this._added||this._setUpControl(),kE(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return pg(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(e){return new(e||n)(T(ci,13),T(Vn,10),T(Ts,10),T(Qi,10),T(RE,8))},n.\u0275dir=ue({type:n,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[yt([X8]),lt,_i]}),n})(),RB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[_B]}),n})(),yg=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[RB]}),n})(),zd=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:RE,useValue:e.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[RB]}),n})();class NB extends hg{constructor(t,e,i){super(TE(e),BE(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[this._adjustIndex(t)]}push(t,e={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(t,e,i={}){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(t,e={}){let i=this._adjustIndex(t);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(t,e,i={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),e&&(this.controls.splice(r,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){lB(this,0,t),t.forEach((i,r)=>{aB(this,!1,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){null!=t&&(t.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(t=[],e={}){this._forEachChild((i,r)=>{i.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((e,i)=>!!i._syncPendingControls()||e,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}}function LB(n){return!!n&&(void 0!==n.asyncValidators||void 0!==n.validators||void 0!==n.updateOn)}let zE=(()=>{class n{constructor(){this.useNonNullable=!1}get nonNullable(){const e=new n;return e.useNonNullable=!0,e}group(e,i=null){const r=this._reduceControls(e);let o={};return LB(i)?o=i:null!==i&&(o.validators=i.validator,o.asyncValidators=i.asyncValidator),new Nd(r,o)}record(e,i=null){const r=this._reduceControls(e);return new cB(r,i)}control(e,i,r){let o={};return this.useNonNullable?(LB(i)?o=i:(o.validators=i,o.asyncValidators=r),new Ud(e,{...o,nonNullable:!0})):new Ud(e,i,r)}array(e,i,r){const o=e.map(s=>this._createControl(s));return new NB(o,i,r)}_reduceControls(e){const i={};return Object.keys(e).forEach(r=>{i[r]=this._createControl(e[r])}),i}_createControl(e){return e instanceof Ud||e instanceof hg?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:zd}),n})();class QB{}const Jo="*";function fW(n,t){return{type:7,name:n,definitions:t,options:{}}}function UB(n,t=null){return{type:4,styles:t,timings:n}}function jB(n,t=null){return{type:2,steps:n,options:t}}function _g(n){return{type:6,styles:n,offset:null}}function zB(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function HB(n){Promise.resolve(null).then(n)}class Hd{constructor(t=0,e=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=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){HB(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class VB{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const o=this.players.length;0==o?HB(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==o&&this._onFinish()}),s.onDestroy(()=>{++i==o&&this._onDestroy()}),s.onStart(()=>{++r==o&&this._onStart()})}),this.totalTime=this.players.reduce((s,a)=>Math.max(s,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}function GB(n){return new P(3e3,!1)}function KW(){return typeof window<"u"&&typeof window.document<"u"}function VE(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Os(n){switch(n.length){case 0:return new Hd;case 1:return n[0];default:return new VB(n)}}function YB(n,t,e,i,r=new Map,o=new Map){const s=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,p=h&&c||new Map;u.forEach((f,g)=>{let m=g,A=f;if("offset"!==g)switch(m=t.normalizePropertyName(m,s),A){case"!":A=r.get(g);break;case Jo:A=o.get(g);break;default:A=t.normalizeStyleValue(g,m,A,s)}p.set(m,A)}),h||a.push(p),c=p,l=d}),s.length)throw function NW(n){return new P(3502,!1)}();return a}function GE(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&YE(e,"start",n)));break;case"done":n.onDone(()=>i(e&&YE(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&YE(e,"destroy",n)))}}function YE(n,t,e){const o=WE(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),s=n._data;return null!=s&&(o._data=s),o}function WE(n,t,e,i,r="",o=0,s){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:o,disabled:!!s}}function Ui(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function WB(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let JE=(n,t)=>!1,JB=(n,t,e)=>[],KB=null;function KE(n){const t=n.parentNode||n.host;return t===KB?null:t}(VE()||typeof Element<"u")&&(KW()?(KB=(()=>document.documentElement)(),JE=(n,t)=>{for(;t;){if(t===n)return!0;t=KE(t)}return!1}):JE=(n,t)=>n.contains(t),JB=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let Ga=null,$B=!1;const qB=JE,XB=JB;let ZB=(()=>{class n{validateStyleProperty(e){return function qW(n){Ga||(Ga=function XW(){return typeof document<"u"?document.body:null}()||{},$B=!!Ga.style&&"WebkitAppearance"in Ga.style);let t=!0;return Ga.style&&!function $W(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in Ga.style,!t&&$B&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in Ga.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return qB(e,i)}getParentElement(e){return KE(e)}query(e,i,r){return XB(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,o,s,a=[],l){return new Hd(r,o)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),$E=(()=>{class n{}return n.NOOP=new ZB,n})();const qE="ng-enter",Eg="ng-leave",Cg="ng-trigger",vg=".ng-trigger",tO="ng-animating",XE=".ng-animating";function ks(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:ZE(parseFloat(t[1]),t[2])}function ZE(n,t){return"s"===t?1e3*n:n}function Mg(n,t,e){return n.hasOwnProperty("duration")?n:function tJ(n,t,e){let r,o=0,s="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(GB()),{duration:0,delay:0,easing:""};r=ZE(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(o=ZE(parseFloat(l),a[4]));const c=a[5];c&&(s=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function gW(){return new P(3100,!1)}()),a=!0),o<0&&(t.push(function mW(){return new P(3101,!1)}()),a=!0),a&&t.splice(l,0,GB())}return{duration:r,delay:o,easing:s}}(n,t,e)}function Vd(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function nO(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function Ps(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function rO(n,t,e){return e?t+":"+e+";":""}function oO(n){let t="";for(let e=0;e{const o=tC(r);e&&!e.has(r)&&e.set(r,n.style[o]),n.style[o]=i}),VE()&&oO(n))}function Ya(n,t){n.style&&(t.forEach((e,i)=>{const r=tC(i);n.style[r]=""}),VE()&&oO(n))}function Gd(n){return Array.isArray(n)?1==n.length?n[0]:jB(n):n}const eC=new RegExp("{{\\s*(.+?)\\s*}}","g");function sO(n){let t=[];if("string"==typeof n){let e;for(;e=eC.exec(n);)t.push(e[1]);eC.lastIndex=0}return t}function wg(n,t,e){const i=n.toString(),r=i.replace(eC,(o,s)=>{let a=t[s];return null==a&&(e.push(function bW(n){return new P(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Dg(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const rJ=/-+([a-z0-9])/g;function tC(n){return n.replace(rJ,(...t)=>t[1].toUpperCase())}function oJ(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ji(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function yW(n){return new P(3004,!1)}()}}function aO(n,t){return window.getComputedStyle(n)[t]}function dJ(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function hJ(n,t,e){if(":"==n[0]){const l=function pJ(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i) *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function OW(n){return new P(3015,!1)}()),t;const r=i[1],o=i[2],s=i[3];t.push(lO(r,s));"<"==o[0]&&!("*"==r&&"*"==s)&&t.push(lO(s,r))}(i,e,t)):e.push(n),e}const Tg=new Set(["true","1"]),Bg=new Set(["false","0"]);function lO(n,t){const e=Tg.has(n)||Bg.has(n),i=Tg.has(t)||Bg.has(t);return(r,o)=>{let s="*"==n||n==r,a="*"==t||t==o;return!s&&e&&"boolean"==typeof r&&(s=r?Tg.has(n):Bg.has(n)),!a&&i&&"boolean"==typeof o&&(a=o?Tg.has(t):Bg.has(t)),s&&a}}const fJ=new RegExp("s*:selfs*,?","g");function nC(n,t,e,i){return new gJ(n).build(t,e,i)}class gJ{constructor(t){this._driver=t}build(t,e,i){const r=new bJ(e);return this._resetContextStyleTimingState(r),ji(this,Gd(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const o=[],s=[];return"@"==t.name.charAt(0)&&e.errors.push(function EW(){return new P(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,o.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,s.push(l)}else e.errors.push(function CW(){return new P(3007,!1)}())}),{type:7,name:t.name,states:o,transitions:s,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const o=new Set,s=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{sO(l).forEach(c=>{s.hasOwnProperty(c)||o.add(c)})})}),o.size&&(Dg(o.values()),e.errors.push(function vW(n,t){return new P(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=ji(this,Gd(t.animation),e);return{type:1,matchers:dJ(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Wa(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>ji(this,i,e)),options:Wa(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const o=t.steps.map(s=>{e.currentTime=i;const a=ji(this,s,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:o,options:Wa(t.options)}}visitAnimate(t,e){const i=function _J(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return iC(Mg(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=iC(0,0,"");return o.dynamic=!0,o.strValue=e,o}const r=Mg(e,t);return iC(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,o=t.styles?t.styles:_g({});if(5==o.type)r=this.visitKeyframes(o,e);else{let s=t.styles,a=!1;if(!s){a=!0;const c={};i.easing&&(c.easing=i.easing),s=_g(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(s,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Jo?i.push(a):e.errors.push(new P(3002,!1)):i.push(nO(a));let o=!1,s=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(s=a.get("easing"),a.delete("easing")),!o))for(let l of a.values())if(l.toString().indexOf("{{")>=0){o=!0;break}}),{type:6,styles:i,easing:s,offset:t.offset,containsDynamicStyles:o,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(s=>{"string"!=typeof s&&s.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(o!=r&&o>=u.startTime&&r<=u.endTime&&(e.errors.push(function wW(n,t,e,i,r){return new P(3010,!1)}()),d=!1),o=u.startTime),d&&c.set(l,{startTime:o,endTime:r}),e.options&&function iJ(n,t,e){const i=t.params||{},r=sO(n);r.length&&r.forEach(o=>{i.hasOwnProperty(o)||e.push(function AW(n){return new P(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function DW(){return new P(3011,!1)}()),i;let o=0;const s=[];let a=!1,l=!1,c=0;const u=t.steps.map(A=>{const y=this._makeStyleAst(A,e);let E=null!=y.offset?y.offset:function yJ(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(y.styles),b=0;return null!=E&&(o++,b=y.offset=E),l=l||b<0||b>1,a=a||b0&&o{const E=h>0?y==p?1:h*y:s[y],b=E*m;e.currentTime=f+g.delay+b,g.duration=b,this._validateStyleAst(A,e),A.offset=E,i.styles.push(A)}),i}visitReference(t,e){return{type:8,animation:ji(this,Gd(t.animation),e),options:Wa(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Wa(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Wa(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[o,s]=function mJ(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(fJ,"")),n=n.replace(/@\*/g,vg).replace(/@\w+/g,e=>vg+"-"+e.slice(1)).replace(/:animating/g,XE),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+o:o,Ui(e.collectedStyles,e.currentQuerySelector,new Map);const a=ji(this,Gd(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:Wa(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function TW(){return new P(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:Mg(t.timings,e.errors,!0);return{type:12,animation:ji(this,Gd(t.animation),e),timings:i,options:null}}}class bJ{constructor(t){this.errors=t,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 Wa(n){return n?(n=Vd(n)).params&&(n.params=function AJ(n){return n?Vd(n):null}(n.params)):n={},n}function iC(n,t,e){return{duration:n,delay:t,easing:e}}function rC(n,t,e,i,r,o,s=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:s,subTimeline:a}}class Og{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const vJ=new RegExp(":enter","g"),wJ=new RegExp(":leave","g");function oC(n,t,e,i,r,o=new Map,s=new Map,a,l,c=[]){return(new DJ).buildKeyframes(n,t,e,i,r,o,s,a,l,c)}class DJ{buildKeyframes(t,e,i,r,o,s,a,l,c,u=[]){c=c||new Og;const d=new sC(t,e,c,r,o,u,[]);d.options=l;const h=l.delay?ks(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([s],null,d.errors,l),ji(this,i,d);const p=d.timelines.filter(f=>f.containsAnimation());if(p.length&&a.size){let f;for(let g=p.length-1;g>=0;g--){const m=p[g];if(m.element===e){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return p.length?p.map(f=>f.buildKeyframes()):[rC(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),o=e.currentTimeline.currentTime,s=this._visitSubInstructions(i,r,r.options);o!=s&&e.transformIntoNewTimeline(s)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let o=e.currentTimeline.currentTime;const s=null!=i.duration?ks(i.duration):null,a=null!=i.delay?ks(i.delay):null;return 0!==s&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,s,a);o=Math.max(o,c.duration+c.delay)}),o}visitReference(t,e){e.updateOptions(t.options,!0),ji(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const o=t.options;if(o&&(o.params||o.delay)&&(r=e.createSubContext(o),r.transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=kg);const s=ks(o.delay);r.delayNextStep(s)}t.steps.length&&(t.steps.forEach(s=>ji(this,s,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const o=t.options&&t.options.delay?ks(t.options.delay):0;t.steps.forEach(s=>{const a=e.createSubContext(t.options);o&&a.delayNextStep(o),ji(this,s,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return Mg(e.params?wg(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const o=t.style;5==o.type?this.visitKeyframes(o,e):(e.incrementTime(i.duration),this.visitStyle(o,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const o=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(o):i.setStyles(t.styles,o,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,o=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*o),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+o),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?ks(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=kg);let s=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);o&&d.delayNextStep(o),c===e.element&&(l=d.currentTimeline),ji(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,o=t.timings,s=Math.abs(o.duration),a=s*(e.currentQueryTotal-1);let l=s*e.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ji(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const kg={};class sC{constructor(t,e,i,r,o,s,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=s,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Pg(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=ks(i.duration)),null!=i.delay&&(r.delay=ks(i.delay));const o=i.params;if(o){let s=r.params;s||(s=this.options.params={}),Object.keys(o).forEach(a=>{(!e||!s.hasOwnProperty(a))&&(s[a]=wg(o[a],s,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,o=new sC(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(t),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(t){return this.previousNode=kg,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},o=new IJ(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(o),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,o,s){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(vJ,"."+this._enterClassName)).replace(wJ,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!o&&0==a.length&&s.push(function BW(n){return new P(3014,!1)}()),a}}class Pg{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Pg(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Jo),this._currentKeyframe.set(e,Jo);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const o=r&&r.params||{},s=function SJ(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let o of i)e.set(o,Jo)}else Ps(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of s){const c=wg(l,o,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Jo),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=Ps(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Jo&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const o=t.size?Dg(t.values()):[],s=e.size?Dg(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return rC(this.element,r,o,s,this.duration,this.startTime,this.easing,!1)}}class IJ extends Pg{constructor(t,e,i,r,o,s,a=!1){super(t,e,s.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=o,this._stretchStartingKeyframe=a,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const o=[],s=i+e,a=e/s,l=Ps(t[0]);l.set("offset",0),o.push(l);const c=Ps(t[0]);c.set("offset",dO(a)),o.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=Ps(t[d]);const p=h.get("offset");h.set("offset",dO((e+p*i)/s)),o.push(h)}i=s,e=0,r="",t=o}return rC(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function dO(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class aC{}const xJ=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 TJ extends aC{normalizePropertyName(t,e){return tC(t)}normalizeStyleValue(t,e,i,r){let o="";const s=i.toString().trim();if(xJ.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)o="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function _W(n,t){return new P(3005,!1)}())}return s+o}}function hO(n,t,e,i,r,o,s,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:o,toState:i,toStyles:s,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const lC={};class pO{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function BJ(n,t,e,i,r){return n.some(o=>o(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,o,s,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||lC,f=this.buildStyles(i,a&&a.params||lC,d),g=l&&l.params||lC,m=this.buildStyles(r,g,d),A=new Set,y=new Map,E=new Map,b="void"===r,D={params:OJ(g,h),delay:this.ast.options?.delay},I=u?[]:oC(t,e,this.ast.animation,o,s,f,m,D,c,d);let Q=0;if(I.forEach(q=>{Q=Math.max(q.duration+q.delay,Q)}),d.length)return hO(e,this._triggerName,i,r,b,f,m,[],[],y,E,Q,d);I.forEach(q=>{const le=q.element,xe=Ui(y,le,new Set);q.preStyleProps.forEach(Ae=>xe.add(Ae));const ke=Ui(E,le,new Set);q.postStyleProps.forEach(Ae=>ke.add(Ae)),le!==e&&A.add(le)});const O=Dg(A.values());return hO(e,this._triggerName,i,r,b,f,m,I,O,y,E,Q)}}function OJ(n,t){const e=Vd(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class kJ{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=Vd(this.defaultParams);return Object.keys(t).forEach(o=>{const s=t[o];null!==s&&(r[o]=s)}),this.styles.styles.forEach(o=>{"string"!=typeof o&&o.forEach((s,a)=>{s&&(s=wg(s,r,e));const l=this.normalizer.normalizePropertyName(a,e);s=this.normalizer.normalizeStyleValue(a,l,s,e),i.set(l,s)})}),i}}class FJ{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new kJ(r.style,r.options&&r.options.params||{},i))}),fO(this.states,"true","1"),fO(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new pO(t,r,this.states))}),this.fallbackTransition=function RJ(n,t,e){return new pO(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(s,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(s=>s.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function fO(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const NJ=new Og;class LJ{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],o=nC(this._driver,e,i,[]);if(i.length)throw function LW(n){return new P(3503,!1)}();this._animations.set(t,o)}_buildPlayer(t,e,i){const r=t.element,o=YB(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],o=this._animations.get(t);let s;const a=new Map;if(o?(s=oC(this._driver,e,o,qE,Eg,new Map,new Map,i,NJ,r),s.forEach(u=>{const d=Ui(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function QW(){return new P(3300,!1)}()),s=[]),r.length)throw function UW(n){return new P(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,Jo))})});const c=Os(s.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function jW(n){return new P(3301,!1)}();return e}listen(t,e,i,r){const o=WE(e,"","","");return GE(this._getPlayer(t),i,o,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const o=this._getPlayer(t);switch(i){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const gO="ng-animate-queued",cC="ng-animate-disabled",HJ=[],mO={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},VJ={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},or="__ng_removed";class uC{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function JJ(n){return n??null}(i?t.value:t),i){const o=Vd(t);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Yd="void",dC=new uC(Yd);class GJ{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,sr(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function zW(n,t){return new P(3302,!1)}();if(null==i||0==i.length)throw function HW(n){return new P(3303,!1)}();if(!function KJ(n){return"start"==n||"done"==n}(i))throw function VW(n,t){return new P(3400,!1)}();const o=Ui(this._elementListeners,t,[]),s={name:e,phase:i,callback:r};o.push(s);const a=Ui(this._engine.statesByElement,t,new Map);return a.has(e)||(sr(t,Cg),sr(t,Cg+"-"+e),a.set(e,dC)),()=>{this._engine.afterFlush(()=>{const l=o.indexOf(s);l>=0&&o.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function GW(n){return new P(3401,!1)}();return e}trigger(t,e,i,r=!0){const o=this._getTrigger(e),s=new hC(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(sr(t,Cg),sr(t,Cg+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new uC(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=dC),c.value!==Yd&&l.value===c.value){if(!function XJ(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r{Ya(t,m),so(t,A)})}return}const h=Ui(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let p=o.matchTransition(l.value,c.value,t,c.params),f=!1;if(!p){if(!r)return;p=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:c,player:s,isFallbackTransition:f}),f||(sr(t,gO),s.onStart(()=>{Sc(t,gO)})),s.onDone(()=>{let g=this.players.indexOf(s);g>=0&&this.players.splice(g,1);const m=this._engine.playersByElement.get(t);if(m){let A=m.indexOf(s);A>=0&&m.splice(A,1)}}),this.players.push(s),h.push(s),s}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,vg,!0);i.forEach(r=>{if(r[or])return;const o=this._engine.fetchNamespacesByElement(r);o.size?o.forEach(s=>s.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const o=this._engine.statesByElement.get(t),s=new Map;if(o){const a=[];if(o.forEach((l,c)=>{if(s.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Yd,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,s),i&&Os(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(o=>{const s=o.name;if(r.has(s))return;r.add(s);const l=this._triggers.get(s).fallbackTransition,c=i.get(s)||dC,u=new uC(Yd),d=new hC(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else{let s=t;for(;s=s.parentNode;)if(i.statesByElement.get(s)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const o=t[or];(!o||o===mO)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){sr(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const o=i.element,s=this._elementListeners.get(o);s&&s.forEach(a=>{if(a.name==i.triggerName){const l=WE(o,i.triggerName,i.fromState.value,i.toState.value);l._data=t,GE(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const o=i.transition.ast.depCount,s=r.transition.ast.depCount;return 0==o||0==s?o-s:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class YJ{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,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=(r,o)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new GJ(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let s=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),s=!0;break}a=this.driver.getParentElement(a)}s||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const o=this._fetchNamespace(r.namespaceId);o&&e.add(o)}return e}trigger(t,e,i,r){if(Fg(e)){const o=this._fetchNamespace(t);if(o)return o.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!Fg(e))return;const o=e[or];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),sr(t,cC)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Sc(t,cC))}removeNode(t,e,i,r){if(Fg(e)){const o=t?this._fetchNamespace(t):null;if(o?o.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,o){this.collectedLeaveElements.push(e),e[or]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:o}}listen(t,e,i,r,o){return Fg(e)?this._fetchNamespace(t).listen(e,i,r,o):()=>{}}_buildInstruction(t,e,i,r,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,o)}destroyInnerAnimations(t){let e=this.driver.query(t,vg,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,XE,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Os(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[or];if(e&&e.setForRemoval){if(t[or]=mO,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(cC)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?Os(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function YW(n){return new P(3402,!1)}()}_flushAnimations(t,e){const i=new Og,r=[],o=new Map,s=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(U=>{u.add(U);const V=this.driver.query(U,".ng-animate-queued",!0);for(let W=0;W{const W=qE+g++;f.set(V,W),U.forEach(X=>sr(X,W))});const m=[],A=new Set,y=new Set;for(let U=0;UA.add(X)):y.add(V))}const E=new Map,b=yO(h,Array.from(A));b.forEach((U,V)=>{const W=Eg+g++;E.set(V,W),U.forEach(X=>sr(X,W))}),t.push(()=>{p.forEach((U,V)=>{const W=f.get(V);U.forEach(X=>Sc(X,W))}),b.forEach((U,V)=>{const W=E.get(V);U.forEach(X=>Sc(X,W))}),m.forEach(U=>{this.processLeaveNode(U)})});const D=[],I=[];for(let U=this._namespaceList.length-1;U>=0;U--)this._namespaceList[U].drainQueuedTransitions(e).forEach(W=>{const X=W.player,Ce=W.element;if(D.push(X),this.collectedEnterElements.length){const Ht=Ce[or];if(Ht&&Ht.setForMove){if(Ht.previousTriggersValues&&Ht.previousTriggersValues.has(W.triggerName)){const Rn=Ht.previousTriggersValues.get(W.triggerName),En=this.statesByElement.get(W.element);if(En&&En.has(W.triggerName)){const Yi=En.get(W.triggerName);Yi.value=Rn,En.set(W.triggerName,Yi)}}return void X.destroy()}}const ft=!d||!this.driver.containsElement(d,Ce),Bt=E.get(Ce),un=f.get(Ce),Xe=this._buildInstruction(W,i,un,Bt,ft);if(Xe.errors&&Xe.errors.length)return void I.push(Xe);if(ft)return X.onStart(()=>Ya(Ce,Xe.fromStyles)),X.onDestroy(()=>so(Ce,Xe.toStyles)),void r.push(X);if(W.isFallbackTransition)return X.onStart(()=>Ya(Ce,Xe.fromStyles)),X.onDestroy(()=>so(Ce,Xe.toStyles)),void r.push(X);const Si=[];Xe.timelines.forEach(Ht=>{Ht.stretchStartingKeyframe=!0,this.disabledNodes.has(Ht.element)||Si.push(Ht)}),Xe.timelines=Si,i.append(Ce,Xe.timelines),s.push({instruction:Xe,player:X,element:Ce}),Xe.queriedElements.forEach(Ht=>Ui(a,Ht,[]).push(X)),Xe.preStyleProps.forEach((Ht,Rn)=>{if(Ht.size){let En=l.get(Rn);En||l.set(Rn,En=new Set),Ht.forEach((Yi,Mo)=>En.add(Mo))}}),Xe.postStyleProps.forEach((Ht,Rn)=>{let En=c.get(Rn);En||c.set(Rn,En=new Set),Ht.forEach((Yi,Mo)=>En.add(Mo))})});if(I.length){const U=[];I.forEach(V=>{U.push(function WW(n,t){return new P(3505,!1)}())}),D.forEach(V=>V.destroy()),this.reportError(U)}const Q=new Map,O=new Map;s.forEach(U=>{const V=U.element;i.has(V)&&(O.set(V,V),this._beforeAnimationBuild(U.player.namespaceId,U.instruction,Q))}),r.forEach(U=>{const V=U.element;this._getPreviousPlayers(V,!1,U.namespaceId,U.triggerName,null).forEach(X=>{Ui(Q,V,[]).push(X),X.destroy()})});const q=m.filter(U=>EO(U,l,c)),le=new Map;bO(le,this.driver,y,c,Jo).forEach(U=>{EO(U,l,c)&&q.push(U)});const ke=new Map;p.forEach((U,V)=>{bO(ke,this.driver,new Set(U),l,"!")}),q.forEach(U=>{const V=le.get(U),W=ke.get(U);le.set(U,new Map([...Array.from(V?.entries()??[]),...Array.from(W?.entries()??[])]))});const Ae=[],dt=[],ht={};s.forEach(U=>{const{element:V,player:W,instruction:X}=U;if(i.has(V)){if(u.has(V))return W.onDestroy(()=>so(V,X.toStyles)),W.disabled=!0,W.overrideTotalTime(X.totalTime),void r.push(W);let Ce=ht;if(O.size>1){let Bt=V;const un=[];for(;Bt=Bt.parentNode;){const Xe=O.get(Bt);if(Xe){Ce=Xe;break}un.push(Bt)}un.forEach(Xe=>O.set(Xe,Ce))}const ft=this._buildAnimation(W.namespaceId,X,Q,o,ke,le);if(W.setRealPlayer(ft),Ce===ht)Ae.push(W);else{const Bt=this.playersByElement.get(Ce);Bt&&Bt.length&&(W.parentPlayer=Os(Bt)),r.push(W)}}else Ya(V,X.fromStyles),W.onDestroy(()=>so(V,X.toStyles)),dt.push(W),u.has(V)&&r.push(W)}),dt.forEach(U=>{const V=o.get(U.element);if(V&&V.length){const W=Os(V);U.setRealPlayer(W)}}),r.forEach(U=>{U.parentPlayer?U.syncPlayerEvents(U.parentPlayer):U.destroy()});for(let U=0;U!ft.destroyed);Ce.length?$J(this,V,Ce):this.processLeaveNode(V)}return m.length=0,Ae.forEach(U=>{this.players.push(U),U.onDone(()=>{U.destroy();const V=this.players.indexOf(U);this.players.splice(V,1)}),U.play()}),Ae}elementContainsData(t,e){let i=!1;const r=e[or];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,o){let s=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(s=a)}else{const a=this.playersByElement.get(t);if(a){const l=!o||o==Yd;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||s.push(c)})}}return(i||r)&&(s=s.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),s}_beforeAnimationBuild(t,e,i){const o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==o,d=Ui(i,c,[]);this._getPreviousPlayers(c,u,s,a,e.toState).forEach(p=>{const f=p.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),p.destroy(),d.push(p)})}Ya(o,e.fromStyles)}_buildAnimation(t,e,i,r,o,s){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(f=>{const g=f.element;u.add(g);const m=g[or];if(m&&m.removedBeforeQueried)return new Hd(f.duration,f.delay);const A=g!==l,y=function qJ(n){const t=[];return _O(n,t),t}((i.get(g)||HJ).map(Q=>Q.getRealPlayer())).filter(Q=>!!Q.element&&Q.element===g),E=o.get(g),b=s.get(g),D=YB(0,this._normalizer,0,f.keyframes,E,b),I=this._buildPlayer(f,D,y);if(f.subTimeline&&r&&d.add(g),A){const Q=new hC(t,a,g);Q.setRealPlayer(I),c.push(Q)}return I});c.forEach(f=>{Ui(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>function WJ(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>sr(f,tO));const p=Os(h);return p.onDestroy(()=>{u.forEach(f=>Sc(f,tO)),so(l,e.toStyles)}),d.forEach(f=>{Ui(r,f,[]).push(p)}),p}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Hd(t.duration,t.delay)}}class hC{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Hd,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>GE(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Ui(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function Fg(n){return n&&1===n.nodeType}function AO(n,t){const e=n.style.display;return n.style.display=t??"none",e}function bO(n,t,e,i,r){const o=[];e.forEach(l=>o.push(AO(l)));const s=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[or]=VJ,s.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>AO(l,o[a++])),s}function yO(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),o=new Map;function s(a){if(!a)return 1;let l=o.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:s(c),o.set(a,l),l}return t.forEach(a=>{const l=s(a);1!==l&&e.get(l).push(a)}),e}function sr(n,t){n.classList?.add(t)}function Sc(n,t){n.classList?.remove(t)}function $J(n,t,e){Os(e).onDone(()=>n.processLeaveNode(t))}function _O(n,t){for(let e=0;er.add(o)):t.set(n,i),e.delete(n),!0}class Rg{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,o)=>{},this._transitionEngine=new YJ(t,e,i),this._timelineEngine=new LJ(t,e,i),this._transitionEngine.onRemovalComplete=(r,o)=>this.onRemovalComplete(r,o)}registerTrigger(t,e,i,r,o){const s=t+"-"+r;let a=this._triggerCache[s];if(!a){const l=[],u=nC(this._driver,o,l,[]);if(l.length)throw function RW(n,t){return new P(3404,!1)}();a=function PJ(n,t,e){return new FJ(n,t,e)}(r,u,this._normalizer),this._triggerCache[s]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[o,s]=WB(i);this._timelineEngine.command(o,e,s,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,o){if("@"==i.charAt(0)){const[s,a]=WB(i);return this._timelineEngine.listen(s,e,a,o)}return this._transitionEngine.listen(t,e,i,r,o)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let eK=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let o=n.initialStylesByElement.get(e);o||n.initialStylesByElement.set(e,o=new Map),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&so(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(so(this._element,this._initialStyles),this._endStyles&&(so(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ya(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ya(this._element,this._endStyles),this._endStyles=null),so(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function pC(n){let t=null;return n.forEach((e,i)=>{(function tK(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class CO{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:aO(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class nK{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return qB(t,e)}getParentElement(t){return KE(t)}query(t,e,i){return XB(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,o,s=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);const c=new Map,u=s.filter(p=>p instanceof CO);(function sJ(n,t){return 0===n||0===t})(i,r)&&u.forEach(p=>{p.currentSnapshot.forEach((f,g)=>c.set(g,f))});let d=function nJ(n){return n.length?n[0]instanceof Map?n:n.map(t=>nO(t)):[]}(e).map(p=>Ps(p));d=function aJ(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((o,s)=>{i.has(s)||r.push(s),i.set(s,o)}),r.length)for(let o=1;os.set(a,aO(n,a)))}}return t}(t,d,c);const h=function ZJ(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=pC(t[0]),t.length>1&&(i=pC(t[t.length-1]))):t instanceof Map&&(e=pC(t)),e||i?new eK(n,e,i):null}(t,d);return new CO(t,d,l,h)}}let iK=(()=>{class n extends QB{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ti.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?jB(e):e;return vO(this._renderer,null,i,"register",[r]),new rK(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(j(sd),j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class rK extends class pW{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new oK(this._id,t,e||{},this._renderer)}}class oK{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return vO(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function vO(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const MO="@.disabled";let sK=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(o,s)=>{const a=s?.parentNode(o);a&&s.removeChild(a,o)}}createRenderer(e,i){const o=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(o);return u||(u=new wO("",o,this.engine),this._rendererCache.set(o,u)),u}const s=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(s,a,e,u.name,u)};return i.data.animation.forEach(l),new aK(this,a,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&ei(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[s,a]=o;s(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(j(sd),j(Rg),j(At))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();class wO{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>e.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==MO?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class aK extends wO{constructor(t,e,i,r){super(e,i,r),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==MO?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function lK(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let o=e.slice(1),s="";return"@"!=o.charAt(0)&&([o,s]=function cK(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(o)),this.engine.listen(this.namespaceId,r,o,s,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}let uK=(()=>{class n extends Rg{constructor(e,i,r,o){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j($E),j(aC),j(Ua))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const DO=[{provide:QB,useClass:iK},{provide:aC,useFactory:function dK(){return new TJ}},{provide:Rg,useClass:uK},{provide:sd,useFactory:function hK(n,t,e){return new sK(n,t,e)},deps:[qf,Rg,At]}],fC=[{provide:$E,useFactory:()=>new nK},{provide:Xx,useValue:"BrowserAnimations"},...DO],IO=[{provide:$E,useClass:ZB},{provide:Xx,useValue:"NoopAnimations"},...DO];let pK=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?IO:fC}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:fC,imports:[A1]}),n})();class wt{static equals(t,e,i){return i?this.resolveFieldData(t,i)===this.resolveFieldData(e,i):this.equalsByValue(t,e)}static equalsByValue(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var o,s,a,i=Array.isArray(t),r=Array.isArray(e);if(i&&r){if((s=t.length)!=e.length)return!1;for(o=s;0!=o--;)if(!this.equalsByValue(t[o],e[o]))return!1;return!0}if(i!=r)return!1;var l=t instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var h=Object.keys(t);if((s=h.length)!==Object.keys(e).length)return!1;for(o=s;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,h[o]))return!1;for(o=s;0!=o--;)if(!this.equalsByValue(t[a=h[o]],e[a]))return!1;return!0}return t!=t&&e!=e}static resolveFieldData(t,e){if(t&&e){if(this.isFunction(e))return e(t);if(-1==e.indexOf("."))return t[e];{let i=e.split("."),r=t;for(let o=0,s=i.length;o=t.length&&(i%=t.length,e%=t.length),t.splice(i,0,t.splice(e,1)[0]))}static insertIntoOrderedArray(t,e,i,r){if(i.length>0){let o=!1;for(let s=0;se){i.splice(s,0,t),o=!0;break}o||i.push(t)}else i.push(t)}static findIndexInList(t,e){let i=-1;if(e)for(let r=0;r-1&&(t=t.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),t}static isEmpty(t){return null==t||""===t||Array.isArray(t)&&0===t.length||!(t instanceof Date)&&"object"==typeof t&&0===Object.keys(t).length}static isNotEmpty(t){return!this.isEmpty(t)}static compare(t,e,i,r=1){let o=-1;const s=this.isEmpty(t),a=this.isEmpty(e);return o=s&&a?0:s?r:a?-r:"string"==typeof t&&"string"==typeof e?t.localeCompare(e,i,{numeric:!0}):te?1:0,o}static sort(t,e,i=1,r,o=1){return(1===o?i:o)*wt.compare(t,e,r,i)}static merge(t,e){return null!=t&&"object"!=typeof t||null!=e&&"object"!=typeof e?null!=t&&"string"!=typeof t||null!=e&&"string"!=typeof e?e||t:[t||"",e||""].join(" "):{...t||{},...e||{}}}}var gC=function fK(){let n=[];const r=o=>o&&parseInt(o.style.zIndex,10)||0;return{get:r,set:(o,s,a)=>{s&&(s.style.zIndex=String(((o,s)=>{let a=n.length>0?n[n.length-1]:{key:o,value:s},l=a.value+(a.key===o?0:s)+1;return n.push({key:o,value:l}),l})(o,a)))},clear:o=>{o&&((o=>{n=n.filter(s=>s.value!==o)})(r(o)),o.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();const xO=["*"];let Gn=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),gK=(()=>{class n{constructor(){this.filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return wt.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,o.length)===o},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==wt.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===wt.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(o)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let o=wt.removeAccents(i.toString()).toLocaleLowerCase(r),s=wt.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==s.indexOf(o,s.length-o.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():wt.removeAccents(e.toString()).toLocaleLowerCase(r)==wt.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():wt.removeAccents(e.toString()).toLocaleLowerCase(r)==wt.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;rnull==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()null==i||null!=e&&e.getTime()>i.getTime()}}filter(e,i,r,o,s){let a=[];if(e)for(let l of e)for(let c of i){let u=wt.resolveFieldData(l,c);if(this.filters[o](u,r,s)){a.push(l);break}}return a}register(e,i){this.filters[e]=i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),mK=(()=>{class n{constructor(){this.messageSource=new Me,this.clearSource=new Me,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),Lg=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[Gn.STARTS_WITH,Gn.CONTAINS,Gn.NOT_CONTAINS,Gn.ENDS_WITH,Gn.EQUALS,Gn.NOT_EQUALS],numeric:[Gn.EQUALS,Gn.NOT_EQUALS,Gn.LESS_THAN,Gn.LESS_THAN_OR_EQUAL_TO,Gn.GREATER_THAN,Gn.GREATER_THAN_OR_EQUAL_TO],date:[Gn.DATE_IS,Gn.DATE_IS_NOT,Gn.DATE_BEFORE,Gn.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new Me,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),TO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-header"]],ngContentSelectors:xO,decls:1,vars:0,template:function(e,i){1&e&&(eo(),Ri(0))},encapsulation:2}),n})(),BO=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-footer"]],ngContentSelectors:xO,decls:1,vars:0,template:function(e,i){1&e&&(eo(),Ri(0))},encapsulation:2}),n})(),ar=(()=>{class n{constructor(e){this.template=e}getType(){return this.name}}return n.\u0275fac=function(e){return new(e||n)(T(ro))},n.\u0275dir=ue({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),Ko=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),Wd=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.NO_FILTER="noFilter",n.LT="lt",n.LTE="lte",n.GT="gt",n.GTE="gte",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.CLEAR="clear",n.APPLY="apply",n.MATCH_ALL="matchAll",n.MATCH_ANY="matchAny",n.ADD_RULE="addRule",n.REMOVE_RULE="removeRule",n.ACCEPT="accept",n.REJECT="reject",n.CHOOSE="choose",n.UPLOAD="upload",n.CANCEL="cancel",n.DAY_NAMES="dayNames",n.DAY_NAMES_SHORT="dayNamesShort",n.DAY_NAMES_MIN="dayNamesMin",n.MONTH_NAMES="monthNames",n.MONTH_NAMES_SHORT="monthNamesShort",n.FIRST_DAY_OF_WEEK="firstDayOfWeek",n.TODAY="today",n.WEEK_HEADER="weekHeader",n.WEAK="weak",n.MEDIUM="medium",n.STRONG="strong",n.PASSWORD_PROMPT="passwordPrompt",n.EMPTY_MESSAGE="emptyMessage",n.EMPTY_FILTER_MESSAGE="emptyFilterMessage",n})(),Z=(()=>{class n{static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let o=0;o{if(g)return"relative"===getComputedStyle(g).getPropertyValue("position")?g:r(g.parentElement)},o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),h=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let p,f;a.top+s+o.height>u.height?(p=a.top-h.top-o.height,e.style.transformOrigin="bottom",a.top+p<0&&(p=-1*a.top)):(p=s+a.top-h.top,e.style.transformOrigin="top"),f=o.width>u.width?-1*(a.left-h.left):a.left-h.left+o.width>u.width?-1*(a.left-h.left+o.width-u.width):a.left-h.left,e.style.top=p+"px",e.style.left=f+"px"}static absolutePosition(e,i){const r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=r.height,s=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let p,f;c.top+a+o>h.height?(p=c.top+u-o,e.style.transformOrigin="bottom",p<0&&(p=u)):(p=a+c.top+u,e.style.transformOrigin="top"),f=c.left+s>h.width?Math.max(0,c.left+d+l-s):c.left+d,e.style.top=p+"px",e.style.left=f+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const o=/(auto|scroll)/,s=a=>{let l=window.getComputedStyle(a,null);return o.test(l.getPropertyValue("overflow"))||o.test(l.getPropertyValue("overflowX"))||o.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&s(d)&&i.push(d)}}9!==a.nodeType&&s(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,s=getComputedStyle(e).getPropertyValue("paddingTop"),a=s?parseFloat(s):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-o-a,d=e.scrollTop,h=e.clientHeight,p=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+p>h&&(e.scrollTop=d+u-h+p)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,o=0,s=function(){o=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};s()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(s){return-1!==[].indexOf.call(document.querySelectorAll(s),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,o=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||o.clientWidth,height:e.innerHeight||r.clientHeight||o.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableElements(e){let i=n.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let o of i)"none"!=getComputedStyle(o).display&&"hidden"!=getComputedStyle(o).visibility&&r.push(o);return r}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof e;if("string"===r)return document.querySelector(e);if("object"===r&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const s=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return s&&9===s.nodeType||this.isExist(s)?s:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})();class AK{constructor(t,e=(()=>{})){this.element=t,this.listener=e}bindScrollListener(){this.scrollableParents=Z.getScrollableParents(this.element);for(let t=0;t{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(Z.removeClass(i,"p-ink-active"),!Z.getHeight(i)&&!Z.getWidth(i)){let a=Math.max(Z.getOuterWidth(this.el.nativeElement),Z.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=Z.getOffset(this.el.nativeElement),o=e.pageX-r.left+document.body.scrollTop-Z.getWidth(i)/2,s=e.pageY-r.top+document.body.scrollLeft-Z.getHeight(i)/2;i.style.top=s+"px",i.style.left=o+"px",Z.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&Z.removeClass(a,"p-ink-active")},401)}getInk(){for(let e=0;e{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const bK=["headerchkbox"],yK=["filter"];function _K(n,t){1&n&&Mt(0)}function EK(n,t){if(1&n&&(x(0,"div",7),Ri(1),S(2,_K,1,0,"ng-container",8),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.headerTemplate)}}const OO=function(n){return{"p-checkbox-disabled":n}},CK=function(n,t,e){return{"p-highlight":n,"p-focus":t,"p-disabled":e}},kO=function(n){return{"pi pi-check":n}};function vK(n,t){if(1&n){const e=Re();x(0,"div",12)(1,"div",13)(2,"input",14),K("focus",function(){return re(e),oe(w(2).onHeaderCheckboxFocus())})("blur",function(){return re(e),oe(w(2).onHeaderCheckboxBlur())})("keydown.space",function(r){return re(e),oe(w(2).toggleAll(r))}),B()(),x(3,"div",15,16),K("click",function(r){return re(e),oe(w(2).toggleAll(r))}),ie(5,"span",17),B()()}if(2&n){const e=w(2);C("ngClass",Wt(5,OO,e.disabled||e.toggleAllDisabled)),v(2),C("checked",e.allChecked)("disabled",e.disabled||e.toggleAllDisabled),v(1),C("ngClass",Na(7,CK,e.allChecked,e.headerCheckboxFocus,e.disabled||e.toggleAllDisabled)),v(2),C("ngClass",Wt(11,kO,e.allChecked))}}function MK(n,t){1&n&&Mt(0)}const wK=function(n){return{options:n}};function DK(n,t){if(1&n&&(ct(0),S(1,MK,1,0,"ng-container",18),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",Wt(2,wK,e.filterOptions))}}function IK(n,t){if(1&n){const e=Re();x(0,"div",20)(1,"input",21,22),K("input",function(r){return re(e),oe(w(3).onFilter(r))}),B(),ie(3,"span",23),B()}if(2&n){const e=w(3);v(1),C("value",e.filterValue||"")("disabled",e.disabled),Ot("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel)}}function SK(n,t){1&n&&S(0,IK,4,4,"div",19),2&n&&C("ngIf",w(2).filter)}function xK(n,t){if(1&n&&(x(0,"div",7),S(1,vK,6,13,"div",9),S(2,DK,2,4,"ng-container",10),S(3,SK,1,1,"ng-template",null,11,on),B()),2&n){const e=Qt(4),i=w();v(1),C("ngIf",i.checkbox&&i.multiple&&i.showToggleAll),v(1),C("ngIf",i.filterTemplate)("ngIfElse",e)}}function TK(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w().$implicit,i=w(2);v(1),pt(i.getOptionGroupLabel(e)||"empty")}}function BK(n,t){1&n&&Mt(0)}function OK(n,t){1&n&&Mt(0)}const mC=function(n){return{$implicit:n}};function kK(n,t){if(1&n&&(x(0,"li",25),S(1,TK,2,1,"span",3),S(2,BK,1,0,"ng-container",18),B(),S(3,OK,1,0,"ng-container",18)),2&n){const e=t.$implicit,i=w(2),r=Qt(8);v(1),C("ngIf",!i.groupTemplate),v(1),C("ngTemplateOutlet",i.groupTemplate)("ngTemplateOutletContext",Wt(5,mC,e)),v(1),C("ngTemplateOutlet",r)("ngTemplateOutletContext",Wt(7,mC,i.getOptionGroupChildren(e)))}}function PK(n,t){if(1&n&&(ct(0),S(1,kK,4,9,"ng-template",24),ut()),2&n){const e=w();v(1),C("ngForOf",e.optionsToRender)}}function FK(n,t){1&n&&Mt(0)}function RK(n,t){if(1&n&&(ct(0),S(1,FK,1,0,"ng-container",18),ut()),2&n){const e=w(),i=Qt(8);v(1),C("ngTemplateOutlet",i)("ngTemplateOutletContext",Wt(2,mC,e.optionsToRender))}}const NK=function(n){return{"p-highlight":n}};function LK(n,t){if(1&n&&(x(0,"div",12)(1,"div",28),ie(2,"span",17),B()()),2&n){const e=w().$implicit,i=w(2);C("ngClass",Wt(3,OO,i.disabled||i.isOptionDisabled(e))),v(1),C("ngClass",Wt(5,NK,i.isSelected(e))),v(1),C("ngClass",Wt(7,kO,i.isSelected(e)))}}function QK(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w().$implicit,i=w(2);v(1),pt(i.getOptionLabel(e))}}function UK(n,t){1&n&&Mt(0)}const jK=function(n,t){return{"p-listbox-item":!0,"p-highlight":n,"p-disabled":t}},zK=function(n,t){return{$implicit:n,index:t}};function HK(n,t){if(1&n){const e=Re();x(0,"li",27),K("click",function(r){const s=re(e).$implicit;return oe(w(2).onOptionClick(r,s))})("dblclick",function(r){const s=re(e).$implicit;return oe(w(2).onOptionDoubleClick(r,s))})("touchend",function(){const o=re(e).$implicit;return oe(w(2).onOptionTouchEnd(o))})("keydown",function(r){const s=re(e).$implicit;return oe(w(2).onOptionKeyDown(r,s))}),S(1,LK,3,9,"div",9),S(2,QK,2,1,"span",3),S(3,UK,1,0,"ng-container",18),B()}if(2&n){const e=t.$implicit,i=t.index,r=w(2);C("ngClass",Xi(8,jK,r.isSelected(e),r.isOptionDisabled(e))),Ot("tabindex",r.disabled||r.isOptionDisabled(e)?null:"0")("aria-label",r.getOptionLabel(e))("aria-selected",r.isSelected(e)),v(1),C("ngIf",r.checkbox&&r.multiple),v(1),C("ngIf",!r.itemTemplate),v(1),C("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Xi(11,zK,e,i))}}function VK(n,t){1&n&&S(0,HK,4,14,"li",26),2&n&&C("ngForOf",t.$implicit)}function GK(n,t){if(1&n&&(ct(0),de(1),ut()),2&n){const e=w(2);v(1),no(" ",e.emptyFilterMessageLabel," ")}}function YK(n,t){1&n&&Mt(0,null,30)}function WK(n,t){if(1&n&&(x(0,"li",29),S(1,GK,2,1,"ng-container",10),S(2,YK,2,0,"ng-container",8),B()),2&n){const e=w();v(1),C("ngIf",!e.emptyFilterTemplate&&!e.emptyTemplate)("ngIfElse",e.emptyFilter),v(1),C("ngTemplateOutlet",e.emptyFilterTemplate||e.emptyTemplate)}}function JK(n,t){if(1&n&&(ct(0),de(1),ut()),2&n){const e=w(2);v(1),no(" ",e.emptyMessageLabel," ")}}function KK(n,t){1&n&&Mt(0,null,31)}function $K(n,t){if(1&n&&(x(0,"li",29),S(1,JK,2,1,"ng-container",10),S(2,KK,2,0,"ng-container",8),B()),2&n){const e=w();v(1),C("ngIf",!e.emptyTemplate)("ngIfElse",e.empty),v(1),C("ngTemplateOutlet",e.emptyTemplate)}}function qK(n,t){1&n&&Mt(0)}function XK(n,t){if(1&n&&(x(0,"div",32),Ri(1,1),S(2,qK,1,0,"ng-container",8),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.footerTemplate)}}const ZK=[[["p-header"]],[["p-footer"]]],e$=function(n){return{"p-listbox p-component":!0,"p-disabled":n}},t$=["p-header","p-footer"],n$={provide:Qi,useExisting:Je(()=>i$),multi:!0};let i$=(()=>{class n{constructor(e,i,r,o){this.el=e,this.cd=i,this.filterService=r,this.config=o,this.checkbox=!1,this.filter=!1,this.filterMatchMode="contains",this.metaKeySelection=!0,this.showToggleAll=!0,this.optionGroupChildren="items",this.onChange=new te,this.onClick=new te,this.onDblClick=new te,this.onModelChange=()=>{},this.onModelTouched=()=>{}}get options(){return this._options}set options(e){this._options=e,this.hasFilter()&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.filterBy&&(this.filterOptions={filter:e=>this.onFilter(e),reset:()=>this.resetFilter()})}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template}})}getOptionLabel(e){return this.optionLabel?wt.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?wt.resolveFieldData(e,this.optionGroupChildren):e.items}getOptionGroupLabel(e){return this.optionGroupLabel?wt.resolveFieldData(e,this.optionGroupLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?wt.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?wt.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onOptionClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||(this.multiple?this.checkbox?this.onOptionClickCheckbox(e,i):this.onOptionClickMultiple(e,i):this.onOptionClickSingle(e,i),this.onClick.emit({originalEvent:e,option:i,value:this.value}),this.optionTouched=!1)}onOptionTouchEnd(e){this.disabled||this.isOptionDisabled(e)||this.readonly||(this.optionTouched=!0)}onOptionDoubleClick(e,i){this.disabled||this.isOptionDisabled(i)||this.readonly||this.onDblClick.emit({originalEvent:e,option:i,value:this.value})}onOptionClickSingle(e,i){let r=this.isSelected(i),o=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?a&&(this.value=null,o=!0):(this.value=this.getOptionValue(i),o=!0)}else this.value=r?null:this.getOptionValue(i),o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickMultiple(e,i){let r=this.isSelected(i),o=!1;if(!this.optionTouched&&this.metaKeySelection){let a=e.metaKey||e.ctrlKey;r?(a?this.removeOption(i):this.value=[this.getOptionValue(i)],o=!0):(this.value=a&&this.value||[],this.value=[...this.value,this.getOptionValue(i)],o=!0)}else r?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],o=!0;o&&(this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}onOptionClickCheckbox(e,i){this.disabled||this.readonly||(this.isSelected(i)?this.removeOption(i):(this.value=this.value?this.value:[],this.value=[...this.value,this.getOptionValue(i)]),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}removeOption(e){this.value=this.value.filter(i=>!wt.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value)for(let o of this.value)if(wt.equals(o,r,this.dataKey)){i=!0;break}}else i=wt.equals(this.value,r,this.dataKey);return i}get allChecked(){let e=this.optionsToRender;if(!e||0===e.length)return!1;{let i=0,r=0,o=0,s=this.group?0:this.optionsToRender.length;for(let a of e)if(this.group)for(let l of this.getOptionGroupChildren(a)){let c=this.isOptionDisabled(l),u=this.isSelected(l);if(c)u?i++:r++;else{if(!u)return!1;o++}s++}else{let l=this.isOptionDisabled(a),c=this.isSelected(a);if(l)c?i++:r++;else{if(!c)return!1;o++}}return s===i||s===o||o&&s===o+r+i}}get optionsToRender(){return this._filteredOptions||this.options}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Wd.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Wd.EMPTY_FILTER_MESSAGE)}hasFilter(){return this._filterValue&&this._filterValue.trim().length>0}isEmpty(){return!this.optionsToRender||this.optionsToRender&&0===this.optionsToRender.length}onFilter(e){this._filterValue=e.target.value,this.activateFilter()}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=(this.filterBy||this.optionLabel||"label").split(","),i=[];for(let r of this.options){let o=this.filterService.filter(this.getOptionGroupChildren(r),e,this.filterValue,this.filterMatchMode,this.filterLocale);o&&o.length&&i.push({...r,[this.optionGroupChildren]:o})}this._filteredOptions=i}else this._filteredOptions=this._options.filter(e=>this.filterService.filters[this.filterMatchMode](this.getOptionLabel(e),this._filterValue,this.filterLocale));else this._filteredOptions=null}resetFilter(){this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this._filterValue=null,this._filteredOptions=null}get toggleAllDisabled(){let e=this.optionsToRender;if(!e||0===e.length)return!0;for(let i of e)if(!this.isOptionDisabled(i))return!1;return!0}toggleAll(e){this.disabled||this.toggleAllDisabled||this.readonly||(this.allChecked?this.uncheckAll():this.checkAll(),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),e.preventDefault())}checkAll(){let i=[];this.optionsToRender.forEach(r=>{if(this.group){let o=this.getOptionGroupChildren(r);o&&o.forEach(s=>{let a=this.isOptionDisabled(s);(!a||a&&this.isSelected(s))&&i.push(this.getOptionValue(s))})}else{let o=this.isOptionDisabled(r);(!o||o&&this.isSelected(r))&&i.push(this.getOptionValue(r))}}),this.value=i}uncheckAll(){let i=[];this.optionsToRender.forEach(r=>{this.group?r.items&&r.items.forEach(o=>{this.isOptionDisabled(o)&&this.isSelected(o)&&i.push(this.getOptionValue(o))}):this.isOptionDisabled(r)&&this.isSelected(r)&&i.push(this.getOptionValue(r))}),this.value=i}onOptionKeyDown(e,i){if(this.readonly)return;let r=e.currentTarget;switch(e.which){case 40:var o=this.findNextItem(r);o&&o.focus(),e.preventDefault();break;case 38:var s=this.findPrevItem(r);s&&s.focus(),e.preventDefault();break;case 13:this.onOptionClick(e,i),e.preventDefault()}}findNextItem(e){let i=e.nextElementSibling;return i?Z.hasClass(i,"p-disabled")||Z.isHidden(i)||Z.hasClass(i,"p-listbox-item-group")?this.findNextItem(i):i:null}findPrevItem(e){let i=e.previousElementSibling;return i?Z.hasClass(i,"p-disabled")||Z.isHidden(i)||Z.hasClass(i,"p-listbox-item-group")?this.findPrevItem(i):i:null}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(li),T(gK),T(Lg))},n.\u0275cmp=ve({type:n,selectors:[["p-listbox"]],contentQueries:function(e,i,r){if(1&e&&(jn(r,TO,5),jn(r,BO,5),jn(r,ar,4)),2&e){let o;He(o=Ve())&&(i.headerFacet=o.first),He(o=Ve())&&(i.footerFacet=o.first),He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(bK,5),Zt(yK,5)),2&e){let r;He(r=Ve())&&(i.headerCheckboxViewChild=r.first),He(r=Ve())&&(i.filterViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{multiple:"multiple",style:"style",styleClass:"styleClass",listStyle:"listStyle",listStyleClass:"listStyleClass",readonly:"readonly",disabled:"disabled",checkbox:"checkbox",filter:"filter",filterBy:"filterBy",filterMatchMode:"filterMatchMode",filterLocale:"filterLocale",metaKeySelection:"metaKeySelection",dataKey:"dataKey",showToggleAll:"showToggleAll",optionLabel:"optionLabel",optionValue:"optionValue",optionGroupChildren:"optionGroupChildren",optionGroupLabel:"optionGroupLabel",optionDisabled:"optionDisabled",ariaFilterLabel:"ariaFilterLabel",filterPlaceHolder:"filterPlaceHolder",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",group:"group",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onClick:"onClick",onDblClick:"onDblClick"},features:[yt([n$])],ngContentSelectors:t$,decls:12,vars:18,consts:[[3,"ngClass","ngStyle"],["class","p-listbox-header",4,"ngIf"],["role","listbox",1,"p-listbox-list"],[4,"ngIf"],["itemslist",""],["class","p-listbox-empty-message",4,"ngIf"],["class","p-listbox-footer",4,"ngIf"],[1,"p-listbox-header"],[4,"ngTemplateOutlet"],["class","p-checkbox p-component",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-checkbox","p-component",3,"ngClass"],[1,"p-hidden-accessible"],["type","checkbox","readonly","readonly",3,"checked","disabled","focus","blur","keydown.space"],[1,"p-checkbox-box",3,"ngClass","click"],["headerchkbox",""],[1,"p-checkbox-icon",3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-listbox-filter-container",4,"ngIf"],[1,"p-listbox-filter-container"],["type","text",1,"p-listbox-filter","p-inputtext","p-component",3,"value","disabled","input"],["filter",""],[1,"p-listbox-filter-icon","pi","pi-search"],["ngFor","",3,"ngForOf"],[1,"p-listbox-item-group"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown",4,"ngFor","ngForOf"],["pRipple","","role","option",3,"ngClass","click","dblclick","touchend","keydown"],[1,"p-checkbox-box",3,"ngClass"],[1,"p-listbox-empty-message"],["emptyFilter",""],["empty",""],[1,"p-listbox-footer"]],template:function(e,i){1&e&&(eo(ZK),x(0,"div",0),S(1,EK,3,1,"div",1),S(2,xK,5,3,"div",1),x(3,"div",0)(4,"ul",2),S(5,PK,2,1,"ng-container",3),S(6,RK,2,4,"ng-container",3),S(7,VK,1,1,"ng-template",null,4,on),S(9,WK,3,3,"li",5),S(10,$K,3,3,"li",5),B()(),S(11,XK,3,1,"div",6),B()),2&e&&(Gt(i.styleClass),C("ngClass",Wt(16,e$,i.disabled))("ngStyle",i.style),v(1),C("ngIf",i.headerFacet||i.headerTemplate),v(1),C("ngIf",i.checkbox&&i.multiple&&i.showToggleAll||i.filter),v(1),Gt(i.listStyleClass),C("ngClass","p-listbox-list-wrapper")("ngStyle",i.listStyle),v(1),Ot("aria-multiselectable",i.multiple),v(1),C("ngIf",i.group),v(1),C("ngIf",!i.group),v(3),C("ngIf",i.hasFilter()&&i.isEmpty()),v(1),C("ngIf",!i.hasFilter()&&i.isEmpty()),v(1),C("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[zn,tr,Pt,Yo,nr,Jd],styles:[".p-listbox-list-wrapper{overflow:auto}.p-listbox-list{list-style-type:none;margin:0;padding:0}.p-listbox-item{cursor:pointer;position:relative;overflow:hidden;display:flex;align-items:center;-webkit-user-select:none;user-select:none}.p-listbox-header{display:flex;align-items:center}.p-listbox-filter-container{position:relative;flex:1 1 auto}.p-listbox-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-listbox-filter{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),AC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ko,Ja,Ko]}),n})();function r$(n,t){1&n&&Mt(0)}const o$=function(n,t,e,i){return{"p-button-icon":!0,"p-button-icon-left":n,"p-button-icon-right":t,"p-button-icon-top":e,"p-button-icon-bottom":i}};function s$(n,t){if(1&n&&ie(0,"span",4),2&n){const e=w();Gt(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),C("ngClass",Mf(4,o$,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),Ot("aria-hidden",!0)}}function a$(n,t){if(1&n&&(x(0,"span",5),de(1),B()),2&n){const e=w();Ot("aria-hidden",e.icon&&!e.label),v(1),pt(e.label)}}function l$(n,t){if(1&n&&(x(0,"span",4),de(1),B()),2&n){const e=w();Gt(e.badgeClass),C("ngClass",e.badgeStyleClass()),v(1),pt(e.badge)}}const c$=function(n,t,e,i,r){return{"p-button p-component":!0,"p-button-icon-only":n,"p-button-vertical":t,"p-disabled":e,"p-button-loading":i,"p-button-loading-label-only":r}},u$=["*"];let Fs=(()=>{class n{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,Z.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let e="p-button p-component";return this.icon&&!this.label&&wt.isEmpty(this.el.nativeElement.textContent)&&(e+=" p-button-icon-only"),this.loading&&(e+=" p-disabled p-button-loading",!this.icon&&this.label&&(e+=" p-button-loading-label-only")),e}setStyleClass(){let e=this.getStyleClass();this.el.nativeElement.className=e+" "+this._initialStyleClass}createLabel(){if(this.label){let e=document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(document.createTextNode(this.label)),this.el.nativeElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&Z.addClass(e,i);let r=this.getIconClass();r&&Z.addMultipleClasses(e,r),this.el.nativeElement.insertBefore(e,this.el.nativeElement.firstChild)}}updateLabel(){let e=Z.findSingle(this.el.nativeElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.el.nativeElement.removeChild(e)}updateIcon(){let e=Z.findSingle(this.el.nativeElement,".p-button-icon");this.icon||this.loading?e?e.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():e&&this.el.nativeElement.removeChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return n.\u0275fac=function(e){return new(e||n)(T(St))},n.\u0275dir=ue({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),n})(),d$=(()=>{class n{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new te,this.onFocus=new te,this.onBlur=new te}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-button"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:u$,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(e,i){1&e&&(eo(),x(0,"button",0),K("click",function(o){return i.onClick.emit(o)})("focus",function(o){return i.onFocus.emit(o)})("blur",function(o){return i.onBlur.emit(o)}),Ri(1),S(2,r$,1,0,"ng-container",1),S(3,s$,1,9,"span",2),S(4,a$,2,2,"span",3),S(5,l$,2,4,"span",2),B()),2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",function Ax(n,t,e,i,r,o,s,a){const l=ii()+n,c=N(),u=qi(c,l,e,i,r,o);return Un(c,l+4,s)||u?Zr(c,l+5,a?t.call(a,e,i,r,o,s):t(e,i,r,o,s)):fd(c,l+5)}(11,c$,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),Ot("type",i.type)("aria-label",i.ariaLabel),v(2),C("ngTemplateOutlet",i.contentTemplate),v(1),C("ngIf",!i.contentTemplate&&(i.icon||i.loading)),v(1),C("ngIf",!i.contentTemplate&&i.label),v(1),C("ngIf",!i.contentTemplate&&i.badge))},dependencies:[zn,Pt,Yo,nr,Jd],encapsulation:2,changeDetection:0}),n})(),xc=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ja]}),n})();const PO=new class p$ extends Rr{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(()=>t.flush(null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(cancelAnimationFrame(e),t.scheduled=void 0)}});let f$=1;const g$=Promise.resolve(),Qg={};function FO(n){return n in Qg&&(delete Qg[n],!0)}const RO={setImmediate(n){const t=f$++;return Qg[t]=!0,g$.then(()=>FO(t)&&n()),t},clearImmediate(n){FO(n)}},NO=new class A$ extends Rr{flush(t){this.active=!0,this.scheduled=void 0;const{actions:e}=this;let i,r=-1,o=e.length;t=t||e.shift();do{if(i=t.execute(t.state,t.delay))break}while(++r0?super.requestAsyncId(t,e,i):(t.actions.push(this),t.scheduled||(t.scheduled=RO.setImmediate(t.flush.bind(t,null))))}recycleAsyncId(t,e,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(t,e,i);0===t.actions.length&&(RO.clearImmediate(e),t.scheduled=void 0)}}),LO=new Rr(eg),Tc=LO;class y${constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new _$(t,this.durationSelector))}}class _$ extends Ea{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let e;try{const{durationSelector:r}=this;e=r(t)}catch(r){return this.destination.error(r)}const i=Ca(e,new _a(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function bC(n){return!Er(n)&&n-parseFloat(n)+1>=0}function QO(n=0,t,e){let i=-1;return bC(t)?i=Number(t)<1?1:Number(t):ds(t)&&(e=t),ds(e)||(e=Tc),new et(r=>{const o=bC(n)?n:+n-e.now();return e.schedule(E$,o,{index:0,period:i,subscriber:r})})}function E$(n){const{index:t,period:e,subscriber:i}=n;if(i.next(t),!i.closed){if(-1===e)return i.complete();n.index=t+1,this.schedule(n,e)}}let yC;try{yC=typeof Intl<"u"&&Intl.v8BreakIterator}catch{yC=!1}let Kd,_C,v$=(()=>{class n{constructor(e){this._platformId=e,this.isBrowser=this._platformId?function k3(n){return n===KT}(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&&!yC)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(e){return new(e||n)(j(Tf))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function $d(n){return function M$(){if(null==Kd&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Kd=!0}))}finally{Kd=Kd||!1}return Kd}()?n:!!n.capture}function jO(n){if(function w$(){if(null==_C){const n=typeof document<"u"?document.head:null;_C=!(!n||!n.createShadowRoot&&!n.attachShadow)}return _C}()){const t=n.getRootNode?n.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}function jg(n){return n.composedPath?n.composedPath()[0]:n.target}let I$=(()=>{class n{constructor(e,i,r){this._platform=e,this._change=new Me,this._changeListener=o=>{this._change.next(o)},this._document=r,i.runOutsideAngular(()=>{if(e.isBrowser){const o=this._getWindow();o.addEventListener("resize",this._changeListener),o.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const e=this._getWindow();e.removeEventListener("resize",this._changeListener),e.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){const e=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+r,right:e.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const e=this._document,i=this._getWindow(),r=e.documentElement,o=r.getBoundingClientRect();return{top:-o.top||e.body.scrollTop||i.scrollY||r.scrollTop||0,left:-o.left||e.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(e=20){return e>0?this._change.pipe(function C$(n,t=Tc){return function b$(n){return function(e){return e.lift(new y$(n))}}(()=>QO(n,t))}(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(e){return new(e||n)(j(v$),j(At),j(Jt,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),S$=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({}),n})();function lr(n){return n instanceof St?n.nativeElement:n}function Rs(){}function yn(n,t,e){return function(r){return r.lift(new J$(n,t,e))}}class J${constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new K$(t,this.nextOrObserver,this.error,this.complete))}}class K$ extends Ge{constructor(t,e,i,r){super(t),this._tapNext=Rs,this._tapError=Rs,this._tapComplete=Rs,this._tapError=i||Rs,this._tapComplete=r||Rs,wo(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Rs,this._tapError=e.error||Rs,this._tapComplete=e.complete||Rs)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}function zg(n,t=Tc){return e=>e.lift(new $$(n,t))}class $${constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new q$(t,this.dueTime,this.scheduler))}}class q$ extends Ge{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(X$,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function X$(n){n.debouncedNext()}class VO extends class t9{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Me,this._typeaheadSubscription=We.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=e=>e.disabled,this._pressedLetters=[],this.tabOut=new Me,this.change=new Me,t instanceof vd&&t.changes.subscribe(e=>{if(this._activeItem){const r=e.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(yn(e=>this._pressedLetters.push(e)),zg(t),ir(()=>this._pressedLetters.length>0),fe(()=>this._pressedLetters.join(""))).subscribe(e=>{const i=this._getItemsArray();for(let r=1;r!t[o]||this._allowedModifierKeys.indexOf(o)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||function W$(n,...t){return t.length?t.some(e=>n[e]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.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(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t);this._activeItem=e[i]??null,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const r=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof vd?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function d9(n){const{subscriber:t,counter:e,period:i}=n;t.next(e),this.schedule({subscriber:t,counter:e+1,period:i},i)}function Yn(n){return t=>t.lift(new h9(n))}class h9{constructor(t){this.notifier=t}call(t,e){const i=new p9(t),r=Ca(this.notifier,new _a(i));return r&&!i.seenValue?(i.add(r),e.subscribe(i)):i}}class p9 extends Ea{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function EC(n,t,e){for(let i in t)if(t.hasOwnProperty(i)){const r=t[i];r?n.setProperty(i,r,e?.has(i)?"important":""):n.removeProperty(i)}return n}function Oc(n,t){const e=t?"":"none";EC(n.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function YO(n,t,e){EC(n.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function Hg(n,t){return t&&"none"!=t?n+" "+t:n}function WO(n){const t=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*t}function CC(n,t){return n.getPropertyValue(t).split(",").map(i=>i.trim())}function vC(n){const t=n.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function MC(n,t,e){const{top:i,bottom:r,left:o,right:s}=n;return e>=i&&e<=r&&t>=o&&t<=s}function qd(n,t,e){n.top+=t,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function JO(n,t,e,i){const{top:r,right:o,bottom:s,left:a,width:l,height:c}=n,u=l*t,d=c*t;return i>r-d&&ia-u&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:vC(e)})})}handleScroll(t){const e=jg(t),i=this.positions.get(e);if(!i)return null;const r=i.scrollPosition;let o,s;if(e===this._document){const c=this.getViewportScrollPosition();o=c.top,s=c.left}else o=e.scrollTop,s=e.scrollLeft;const a=r.top-o,l=r.left-s;return this.positions.forEach((c,u)=>{c.clientRect&&e!==u&&e.contains(u)&&qd(c.clientRect,a,l)}),r.top=o,r.left=s,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}}function $O(n){const t=n.cloneNode(!0),e=t.querySelectorAll("[id]"),i=n.nodeName.toLowerCase();t.removeAttribute("id");for(let r=0;r{if(this.beforeStarted.next(),this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&this._initializeDragSequence(l,a)}else this.disabled||this._initializeDragSequence(this._rootElement,a)},this._pointerMove=a=>{const l=this._getPointerPositionOnPage(a);if(!this._hasStartedDragging){if(Math.abs(l.x-this._pickupPositionOnPage.x)+Math.abs(l.y-this._pickupPositionOnPage.y)>=this._config.dragStartThreshold){const p=Date.now()>=this._dragStartTime+this._getDragStartDelay(a),f=this._dropContainer;if(!p)return void this._endDragSequence(a);(!f||!f.isDragging()&&!f.isReceiving())&&(a.preventDefault(),this._hasStartedDragging=!0,this._ngZone.run(()=>this._startDragSequence(a)))}return}a.preventDefault();const c=this._getConstrainedPointerPosition(l);if(this._hasMoved=!0,this._lastKnownPointerPosition=l,this._updatePointerDirectionDelta(c),this._dropContainer)this._updateActiveDropContainer(c,l);else{const u=this.constrainPosition?this._initialClientRect:this._pickupPositionOnPage,d=this._activeTransform;d.x=c.x-u.x+this._passiveTransform.x,d.y=c.y-u.y+this._passiveTransform.y,this._applyRootElementTransform(d.x,d.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:c,event:a,distance:this._getDragDistance(c),delta:this._pointerDirectionDelta})})},this._pointerUp=a=>{this._endDragSequence(a)},this._nativeDragStart=a=>{if(this._handles.length){const l=this._getTargetHandle(a);l&&!this._disabledHandles.has(l)&&!this.disabled&&a.preventDefault()}else this.disabled||a.preventDefault()},this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new KO(i),s.registerDragItem(this)}get disabled(){return this._disabled||!(!this._dropContainer||!this._dropContainer.disabled)}set disabled(t){const e=function x$(n){return null!=n&&"false"!=`${n}`}(t);e!==this._disabled&&(this._disabled=e,this._toggleNativeDragInteractions(),this._handles.forEach(i=>Oc(i,e)))}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>lr(i)),this._handles.forEach(i=>Oc(i,this.disabled)),this._toggleNativeDragInteractions();const e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){const e=lr(t);return e!==this._rootElement&&(this._rootElement&&this._removeRootElementListeners(this._rootElement),this._ngZone.runOutsideAngular(()=>{e.addEventListener("mousedown",this._pointerDown,Vg),e.addEventListener("touchstart",this._pointerDown,ek),e.addEventListener("dragstart",this._nativeDragStart,Vg)}),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?lr(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(this._rootElement),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeSubscriptions(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),Oc(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),Oc(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){const t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){const t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeSubscriptions(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe()}_destroyPreview(){this._preview?.remove(),this._previewRef?.destroy(),this._preview=this._previewRef=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeSubscriptions(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),this._hasStartedDragging))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;const e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){Xd(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();const e=this._dropContainer;if(e){const i=this._rootElement,r=i.parentNode,o=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment(""),a=this._getShadowRoot();r.insertBefore(s,i),this._initialTransform=i.style.transform||"",this._preview=this._createPreviewElement(),YO(i,!1,wC),this._document.body.appendChild(r.replaceChild(o,i)),this._getPreviewInsertionPoint(r,a).appendChild(this._preview),this.started.next({source:this,event:t}),e.start(),this._initialContainer=e,this._initialIndex=e.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(e?e.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();const i=this.isDragging(),r=Xd(e),o=!r&&0!==e.button,s=this._rootElement,a=jg(e),l=!r&&this._lastTouchEventTime&&this._lastTouchEventTime+800>Date.now(),c=r?function l9(n){const t=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}(e):function a9(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(e);if(a&&a.draggable&&"mousedown"===e.type&&e.preventDefault(),i||o||l||c)return;if(this._handles.length){const h=s.style;this._rootElementTapHighlight=h.webkitTapHighlightColor||"",h.webkitTapHighlightColor="transparent"}this._hasStartedDragging=this._hasMoved=!1,this._removeSubscriptions(),this._initialClientRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(h=>this._updateOnScroll(h)),this._boundaryElement&&(this._boundaryRect=vC(this._boundaryElement));const u=this._previewTemplate;this._pickupPositionInElement=u&&u.template&&!u.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialClientRect,t,e);const d=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:d.x,y:d.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){YO(this._rootElement,!0,wC),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialClientRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{const e=this._dropContainer,i=e.getItemIndex(this),r=this._getPointerPositionOnPage(t),o=this._getDragDistance(r),s=e._isOverContainer(r.x,r.y);this.ended.next({source:this,distance:o,dropPoint:r,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:o,dropPoint:r,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,s,o,r),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:r}){let o=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!o&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(o=this._initialContainer),o&&o!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=o,this._dropContainer.enter(this,t,e,o===this._initialContainer&&o.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:o,currentIndex:o.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,r),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_createPreviewElement(){const t=this._previewTemplate,e=this.previewClass,i=t?t.template:null;let r;if(i&&t){const o=t.matchSize?this._initialClientRect:null,s=t.viewContainer.createEmbeddedView(i,t.context);s.detectChanges(),r=nk(s,this._document),this._previewRef=s,t.matchSize?ik(r,o):r.style.transform=Gg(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else r=$O(this._rootElement),ik(r,this._initialClientRect),this._initialTransform&&(r.style.transform=this._initialTransform);return EC(r.style,{"pointer-events":"none",margin:"0",position:"fixed",top:"0",left:"0","z-index":`${this._config.zIndex||1e3}`},wC),Oc(r,!1),r.classList.add("cdk-drag-preview"),r.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(o=>r.classList.add(o)):r.classList.add(e)),r}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();const t=this._placeholder.getBoundingClientRect();this._preview.classList.add("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);const e=function f9(n){const t=getComputedStyle(n),e=CC(t,"transition-property"),i=e.find(a=>"transform"===a||"all"===a);if(!i)return 0;const r=e.indexOf(i),o=CC(t,"transition-duration"),s=CC(t,"transition-delay");return WO(o[r])+WO(s[r])}(this._preview);return 0===e?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{const r=s=>{(!s||jg(s)===this._preview&&"transform"===s.propertyName)&&(this._preview?.removeEventListener("transitionend",r),i(),clearTimeout(o))},o=setTimeout(r,1.5*e);this._preview.addEventListener("transitionend",r)}))}_createPlaceholderElement(){const t=this._placeholderTemplate,e=t?t.template:null;let i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=nk(this._placeholderRef,this._document)):i=$O(this._rootElement),i.style.pointerEvents="none",i.classList.add("cdk-drag-placeholder"),i}_getPointerPositionInElement(t,e,i){const r=e===this._rootElement?null:e,o=r?r.getBoundingClientRect():t,s=Xd(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition();return{x:o.left-t.left+(s.pageX-o.left-a.left),y:o.top-t.top+(s.pageY-o.top-a.top)}}_getPointerPositionOnPage(t){const e=this._getViewportScrollPosition(),i=Xd(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,r=i.pageX-e.left,o=i.pageY-e.top;if(this._ownerSVGElement){const s=this._ownerSVGElement.getScreenCTM();if(s){const a=this._ownerSVGElement.createSVGPoint();return a.x=r,a.y=o,a.matrixTransform(s.inverse())}}return{x:r,y:o}}_getConstrainedPointerPosition(t){const e=this._dropContainer?this._dropContainer.lockAxis:null;let{x:i,y:r}=this.constrainPosition?this.constrainPosition(t,this,this._initialClientRect,this._pickupPositionInElement):t;if("x"===this.lockAxis||"x"===e?r=this._pickupPositionOnPage.y:("y"===this.lockAxis||"y"===e)&&(i=this._pickupPositionOnPage.x),this._boundaryRect){const{x:o,y:s}=this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:c}=this._getPreviewRect(),u=a.top+s,d=a.bottom-(c-s);i=tk(i,a.left+o,a.right-(l-o)),r=tk(r,u,d)}return{x:i,y:r}}_updatePointerDirectionDelta(t){const{x:e,y:i}=t,r=this._pointerDirectionDelta,o=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-o.x),a=Math.abs(i-o.y);return s>this._config.pointerDirectionChangeThreshold&&(r.x=e>o.x?1:-1,o.x=e),a>this._config.pointerDirectionChangeThreshold&&(r.y=i>o.y?1:-1,o.y=i),r}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;const t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,Oc(this._rootElement,t))}_removeRootElementListeners(t){t.removeEventListener("mousedown",this._pointerDown,Vg),t.removeEventListener("touchstart",this._pointerDown,ek),t.removeEventListener("dragstart",this._nativeDragStart,Vg)}_applyRootElementTransform(t,e){const i=Gg(t,e),r=this._rootElement.style;null==this._initialTransform&&(this._initialTransform=r.transform&&"none"!=r.transform?r.transform:""),r.transform=Hg(i,this._initialTransform)}_applyPreviewTransform(t,e){const i=this._previewTemplate?.template?void 0:this._initialTransform,r=Gg(t,e);this._preview.style.transform=Hg(r,i)}_getDragDistance(t){const e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(0===t&&0===e||this.isDragging()||!this._boundaryElement)return;const i=this._rootElement.getBoundingClientRect(),r=this._boundaryElement.getBoundingClientRect();if(0===r.width&&0===r.height||0===i.width&&0===i.height)return;const o=r.left-i.left,s=i.right-r.right,a=r.top-i.top,l=i.bottom-r.bottom;r.width>i.width?(o>0&&(t+=o),s>0&&(t-=s)):t=0,r.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){const e=this.dragStartDelay;return"number"==typeof e?e:Xd(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){const e=this._parentPositions.handleScroll(t);if(e){const i=jg(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&qd(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return void 0===this._cachedShadowRoot&&(this._cachedShadowRoot=jO(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){const i=this._previewContainer||"global";if("parent"===i)return t;if("global"===i){const r=this._document;return e||r.fullscreenElement||r.webkitFullscreenElement||r.mozFullScreenElement||r.msFullscreenElement||r.body}return lr(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialClientRect),this._previewRect}_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}}function Gg(n,t){return`translate3d(${Math.round(n)}px, ${Math.round(t)}px, 0)`}function tk(n,t,e){return Math.max(t,Math.min(e,n))}function Xd(n){return"t"===n.type[0]}function nk(n,t){const e=n.rootNodes;if(1===e.length&&e[0].nodeType===t.ELEMENT_NODE)return e[0];const i=t.createElement("div");return e.forEach(r=>i.appendChild(r)),i}function ik(n,t){n.style.width=`${t.width}px`,n.style.height=`${t.height}px`,n.style.transform=Gg(t.left,t.top)}function Zd(n,t){return Math.max(0,Math.min(t,n))}class y9{constructor(t,e){this._element=t,this._dragDropRegistry=e,this._itemPositions=[],this.orientation="vertical",this._previousSwap={drag:null,delta:0,overlaps:!1}}start(t){this.withItems(t)}sort(t,e,i,r){const o=this._itemPositions,s=this._getItemIndexFromPointerPosition(t,e,i,r);if(-1===s&&o.length>0)return null;const a="horizontal"===this.orientation,l=o.findIndex(m=>m.drag===t),c=o[s],d=c.clientRect,h=l>s?1:-1,p=this._getItemOffsetPx(o[l].clientRect,d,h),f=this._getSiblingOffsetPx(l,o,h),g=o.slice();return function b9(n,t,e){const i=Zd(t,n.length-1),r=Zd(e,n.length-1);if(i===r)return;const o=n[i],s=r{if(g[A]===m)return;const y=m.drag===t,E=y?p:f,b=y?t.getPlaceholderElement():m.drag.getRootElement();m.offset+=E,a?(b.style.transform=Hg(`translate3d(${Math.round(m.offset)}px, 0, 0)`,m.initialTransform),qd(m.clientRect,0,E)):(b.style.transform=Hg(`translate3d(0, ${Math.round(m.offset)}px, 0)`,m.initialTransform),qd(m.clientRect,E,0))}),this._previousSwap.overlaps=MC(d,e,i),this._previousSwap.drag=c.drag,this._previousSwap.delta=a?r.x:r.y,{previousIndex:l,currentIndex:s}}enter(t,e,i,r){const o=null==r||r<0?this._getItemIndexFromPointerPosition(t,e,i):r,s=this._activeDraggables,a=s.indexOf(t),l=t.getPlaceholderElement();let c=s[o];if(c===t&&(c=s[o+1]),!c&&(null==o||-1===o||o-1&&s.splice(a,1),c&&!this._dragDropRegistry.isDragging(c)){const u=c.getRootElement();u.parentElement.insertBefore(l,u),s.splice(o,0,t)}else lr(this._element).appendChild(l),s.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables.forEach(t=>{const e=t.getRootElement();if(e){const i=this._itemPositions.find(r=>r.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return("horizontal"===this.orientation&&"rtl"===this.direction?this._itemPositions.slice().reverse():this._itemPositions).findIndex(i=>i.drag===t)}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{qd(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}_cacheItemPositions(){const t="horizontal"===this.orientation;this._itemPositions=this._activeDraggables.map(e=>{const i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:vC(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getItemOffsetPx(t,e,i){const r="horizontal"===this.orientation;let o=r?e.left-t.left:e.top-t.top;return-1===i&&(o+=r?e.width-t.width:e.height-t.height),o}_getSiblingOffsetPx(t,e,i){const r="horizontal"===this.orientation,o=e[t].clientRect,s=e[t+-1*i];let a=o[r?"width":"height"]*i;if(s){const l=r?"left":"top",c=r?"right":"bottom";-1===i?a-=s.clientRect[l]-o[c]:a+=o[l]-s.clientRect[c]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;const i=this._itemPositions,r="horizontal"===this.orientation;if(i[0].drag!==this._activeDraggables[0]){const s=i[i.length-1].clientRect;return r?t>=s.right:e>=s.bottom}{const s=i[0].clientRect;return r?t<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(t,e,i,r){const o="horizontal"===this.orientation,s=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(r){const c=o?r.x:r.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&c===this._previousSwap.delta)return!1}return o?e>=Math.floor(l.left)&&e=Math.floor(l.top)&&i!0,this.sortPredicate=()=>!0,this.beforeStarted=new Me,this.entered=new Me,this.exited=new Me,this.dropped=new Me,this.sorted=new Me,this._isDragging=!1,this._draggables=[],this._siblings=[],this._activeSiblings=new Set,this._viewportScrollSubscription=We.EMPTY,this._verticalScrollDirection=0,this._horizontalScrollDirection=0,this._stopScrollTimers=new Me,this._cachedShadowRoot=null,this._startScrollInterval=()=>{this._stopScrolling(),function u9(n=0,t=Tc){return(!bC(n)||n<0)&&(n=0),(!t||"function"!=typeof t.schedule)&&(t=Tc),new et(e=>(e.add(t.schedule(d9,n,{subscriber:e,counter:0,period:n})),e))}(0,PO).pipe(Yn(this._stopScrollTimers)).subscribe(()=>{const s=this._scrollNode,a=this.autoScrollStep;1===this._verticalScrollDirection?s.scrollBy(0,-a):2===this._verticalScrollDirection&&s.scrollBy(0,a),1===this._horizontalScrollDirection?s.scrollBy(-a,0):2===this._horizontalScrollDirection&&s.scrollBy(a,0)})},this.element=lr(t),this._document=i,this.withScrollableParents([this.element]),e.registerDropContainer(this),this._parentPositions=new KO(i),this._sortStrategy=new y9(this.element,e),this._sortStrategy.withSortPredicate((s,a)=>this.sortPredicate(s,a,this))}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,r){this._draggingStarted(),null==r&&this.sortingDisabled&&(r=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,r),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,r,o,s,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:r,isPointerOverContainer:o,distance:s,dropPoint:a,event:l})}withItems(t){const e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(r=>r.isDragging()).every(r=>-1===t.indexOf(r))?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._sortStrategy.direction=t,this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){return this._sortStrategy.orientation=t,this}withScrollableParents(t){const e=lr(this.element);return this._scrollableElements=-1===t.indexOf(e)?[e,...t]:t.slice(),this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,r){if(this.sortingDisabled||!this._clientRect||!JO(this._clientRect,.05,e,i))return;const o=this._sortStrategy.sort(t,e,i,r);o&&this.sorted.next({previousIndex:o.previousIndex,currentIndex:o.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,r=0,o=0;if(this._parentPositions.positions.forEach((s,a)=>{a===this._document||!s.clientRect||i||JO(s.clientRect,.05,t,e)&&([r,o]=function E9(n,t,e,i){const r=sk(t,i),o=ak(t,e);let s=0,a=0;if(r){const l=n.scrollTop;1===r?l>0&&(s=1):n.scrollHeight-l>n.clientHeight&&(s=2)}if(o){const l=n.scrollLeft;1===o?l>0&&(a=1):n.scrollWidth-l>n.clientWidth&&(a=2)}return[s,a]}(a,s.clientRect,t,e),(r||o)&&(i=a))}),!r&&!o){const{width:s,height:a}=this._viewportRuler.getViewportSize(),l={width:s,height:a,top:0,right:s,bottom:a,left:0};r=sk(l,e),o=ak(l,t),i=window}i&&(r!==this._verticalScrollDirection||o!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=r,this._horizontalScrollDirection=o,this._scrollNode=i,(r||o)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){const t=lr(this.element).style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){const t=lr(this.element);this._parentPositions.cache(this._scrollableElements),this._clientRect=this._parentPositions.positions.get(t).clientRect}_reset(){this._isDragging=!1;const t=lr(this.element).style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_isOverContainer(t,e){return null!=this._clientRect&&MC(this._clientRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(r=>r._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._clientRect||!MC(this._clientRect,e,i)||!this.enterPredicate(t,this))return!1;const r=this._getShadowRoot().elementFromPoint(e,i);if(!r)return!1;const o=lr(this.element);return r===o||o.contains(r)}_startReceiving(t,e){const i=this._activeSiblings;!i.has(t)&&e.every(r=>this.enterPredicate(r,this)||this._draggables.indexOf(r)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents())}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe()}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){const e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){const t=jO(lr(this.element));this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){const t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}}function sk(n,t){const{top:e,bottom:i,height:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}function ak(n,t){const{left:e,right:i,width:r}=n,o=.05*r;return t>=e-o&&t<=e+o?1:t>=i-o&&t<=i+o?2:0}const Yg=$d({passive:!1,capture:!0});let C9=(()=>{class n{constructor(e,i){this._ngZone=e,this._dropInstances=new Set,this._dragInstances=new Set,this._activeDragInstances=[],this._globalListeners=new Map,this._draggingPredicate=r=>r.isDragging(),this.pointerMove=new Me,this.pointerUp=new Me,this.scroll=new Me,this._preventDefaultWhileDragging=r=>{this._activeDragInstances.length>0&&r.preventDefault()},this._persistentTouchmoveListener=r=>{this._activeDragInstances.length>0&&(this._activeDragInstances.some(this._draggingPredicate)&&r.preventDefault(),this.pointerMove.next(r))},this._document=i}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),1===this._dragInstances.size&&this._ngZone.runOutsideAngular(()=>{this._document.addEventListener("touchmove",this._persistentTouchmoveListener,Yg)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),0===this._dragInstances.size&&this._document.removeEventListener("touchmove",this._persistentTouchmoveListener,Yg)}startDragging(e,i){if(!(this._activeDragInstances.indexOf(e)>-1)&&(this._activeDragInstances.push(e),1===this._activeDragInstances.length)){const r=i.type.startsWith("touch");this._globalListeners.set(r?"touchend":"mouseup",{handler:o=>this.pointerUp.next(o),options:!0}).set("scroll",{handler:o=>this.scroll.next(o),options:!0}).set("selectstart",{handler:this._preventDefaultWhileDragging,options:Yg}),r||this._globalListeners.set("mousemove",{handler:o=>this.pointerMove.next(o),options:Yg}),this._ngZone.runOutsideAngular(()=>{this._globalListeners.forEach((o,s)=>{this._document.addEventListener(s,o.handler,o.options)})})}}stopDragging(e){const i=this._activeDragInstances.indexOf(e);i>-1&&(this._activeDragInstances.splice(i,1),0===this._activeDragInstances.length&&this._clearGlobalListeners())}isDragging(e){return this._activeDragInstances.indexOf(e)>-1}scrolled(e){const i=[this.scroll];return e&&e!==this._document&&i.push(new et(r=>this._ngZone.runOutsideAngular(()=>{const s=a=>{this._activeDragInstances.length&&r.next(a)};return e.addEventListener("scroll",s,!0),()=>{e.removeEventListener("scroll",s,!0)}}))),va(...i)}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_clearGlobalListeners(){this._globalListeners.forEach((e,i)=>{this._document.removeEventListener(i,e.handler,e.options)}),this._globalListeners.clear()}}return n.\u0275fac=function(e){return new(e||n)(j(At),j(Jt))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const v9={dragStartThreshold:5,pointerDirectionChangeThreshold:5};let M9=(()=>{class n{constructor(e,i,r,o){this._document=e,this._ngZone=i,this._viewportRuler=r,this._dragDropRegistry=o}createDrag(e,i=v9){return new A9(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry)}createDropList(e){return new _9(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}}return n.\u0275fac=function(e){return new(e||n)(j(Jt),j(At),j(I$),j(C9))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),lk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[M9],imports:[S$]}),n})(),DC=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,xc,Ko,Ja,lk,Ko,lk]}),n})();const Q9=["data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjMyODEgMjJWMjEuMDE1Nkw3LjkwNjI1IDIwLjc5NjlWMTEuODM1OUw2LjYzMjgxIDExLjYxNzJWMTAuNjI1SDEwLjcxODhWMTEuNjE3Mkw5LjQ0NTMxIDExLjgzNTlWMTUuNzY1NkgxNC44ODI4VjExLjgzNTlMMTMuNjA5NCAxMS42MTcyVjEwLjYyNUgxNy42OTUzVjExLjYxNzJMMTYuNDIxOSAxMS44MzU5VjIwLjc5NjlMMTcuNjk1MyAyMS4wMTU2VjIySDEzLjYwOTRWMjEuMDE1NkwxNC44ODI4IDIwLjc5NjlWMTYuOTc2Nkg5LjQ0NTMxVjIwLjc5NjlMMTAuNzE4OCAyMS4wMTU2VjIySDYuNjMyODFaTTE5LjI3MzQgMjJWMjEuMDE1NkwyMS4wMzEyIDIwLjc5NjlWMTIuMjczNEwxOS4yNDIyIDEyLjMwNDdWMTEuMzQzOEwyMi41NzAzIDEwLjYyNVYyMC43OTY5TDI0LjMyMDMgMjEuMDE1NlYyMkgxOS4yNzM0WiIgZmlsbD0iIzIyMjIyMiIvPgo8L3N2Zz4K","data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdC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k5MjIgMTMuNTU0N0MxNy45NzY2IDEyLjk4MTggMTguMTEyIDEyLjQ2MDkgMTguMzk4NCAxMS45OTIyQzE4LjY5MDEgMTEuNTIzNCAxOS4wOTkgMTEuMTUxIDE5LjYyNSAxMC44NzVDMjAuMTU2MiAxMC41OTkgMjAuNzcwOCAxMC40NjA5IDIxLjQ2ODggMTAuNDYwOUMyMi41MjA4IDEwLjQ2MDkgMjMuMzU5NCAxMC43NDIyIDIzLjk4NDQgMTEuMzA0N0MyNC42MDk0IDExLjg2MiAyNC45MjE5IDEyLjY1ODkgMjQuOTIxOSAxMy42OTUzQzI0LjkyMTkgMTQuMTY0MSAyNC43Nzg2IDE0LjYzMjggMjQuNDkyMiAxNS4xMDE2QzI0LjIxMDkgMTUuNTY1MSAyMy43ODY1IDE1LjkxOTMgMjMuMjE4OCAxNi4xNjQxQzIzLjkwMSAxNi4zODggMjQuMzgyOCAxNi43Mzk2IDI0LjY2NDEgMTcuMjE4OEMyNC45NTA1IDE3LjY5NzkgMjUuMDkzOCAxOC4yMzQ0IDI1LjA5MzggMTguODI4MUMyNS4wOTM4IDE5LjUyMDggMjQuOTM3NSAyMC4xMTcyIDI0LjYyNSAyMC42MTcyQzI0LjMxNzcgMjEuMTEyIDIzLjg5MDYgMjEuNDk0OCAyMy4zNDM4IDIxLjc2NTZDMjIuNzk2OSAyMi4wMzEyIDIyLjE3MTkgMjIuMTY0MSAyMS40Njg4IDIyLjE2NDFaIiBmaWxsPSIjMjIyMjIyIi8+Cjwvc3ZnPgo="],W9=new pE(document),ck=[...Array(3).keys()].map(n=>{const t=n+1;return{label:`Heading ${t}`,icon:Ns(Q9[n]),id:`heading${t}`,attributes:{level:t}}}),IC={label:"Paragraph",icon:Ns("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc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0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeD0iNiIgeT0iMTUiIHdpZHRoPSIyMCIgaGVpZ2h0PSIyIiBmaWxsPSJibGFjayIvPgo8L3N2Zz4K"),id:"horizontalRule"}];function Ns(n){return W9.bypassSecurityTrustUrl(n)}const Wg=[{label:"Image",icon:"image",id:"image"},{label:"Video",icon:"movie",id:"video"},...ck,{label:"Table",icon:"table_view",id:"table"},...uk,...q9,IC],X9=[...ck,IC,...uk],Z9=[{name:"flip",options:{fallbackPlacements:["top"]}},{name:"preventOverflow",options:{altAxis:!1,tether:!1}}],t6={horizontalRule:!0,table:!0,image:!0,video:!0},n6=[...Wg.filter(n=>!t6[n.id])],dk=function({type:n,editor:t,range:e,suggestionKey:i,ItemsType:r}){const o={to:e.to+i.getState(t.view.state).query?.length,from:n===r.BLOCK?e.from:e.from+1};t.chain().deleteRange(o).run()},hk={duration:[250,0],interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}};class r6{getQueryParams(){const t=window.location.search.substring(1).split("&"),e=new Map;return t.forEach(i=>{const r=i.split("=");e.set(r[0],r[1])}),e}getQueryStringParam(t){let e=null;const r=new RegExp("[?&]"+t.replace(/[\[\]]/g,"\\$&")+"(=([^&#]*)|&|#|$)").exec(window.location.href);return r&&r[2]&&(e=decodeURIComponent(r[2].replace(/\+/g," "))),e}}let pk=(()=>{class n{getLine(e,i){let r=null;if(e){const o=e.split("\n");r=o&&o.length>i?o[i]:null}return r}camelize(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(i,r)=>0===r?i.toLowerCase():i.toUpperCase()).replace(/\s+/g,"")}titleCase(e){return`${e.charAt(0).toLocaleUpperCase()}${e.slice(1)}`}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),s6=(()=>{class n{constructor(e){this.stringUtils=e,this.showLogs=!0,this.httpRequestUtils=new r6,this.showLogs=this.shouldShowLogs(),this.showLogs&&console.info("Setting the logger --\x3e Developer mode logger on")}info(e,...i){i&&i.length>0?console.info(this.wrapMessage(e),i):console.info(this.wrapMessage(e))}error(e,...i){i&&i.length>0?console.error(this.wrapMessage(e),i):console.error(this.wrapMessage(e))}warn(e,...i){i&&i.length>0?console.warn(this.wrapMessage(e),i):console.warn(this.wrapMessage(e))}debug(e,...i){i&&i.length>0?console.debug(this.wrapMessage(e),i):console.debug(this.wrapMessage(e))}shouldShowLogs(){this.httpRequestUtils.getQueryStringParam("devMode");return!0}wrapMessage(e){return this.showLogs?e:this.getCaller()+">> "+e}getCaller(){let e="unknown";try{throw new Error}catch(i){e=this.cleanCaller(this.stringUtils.getLine(i.stack,4))}return e}cleanCaller(e){return e?e.trim().substr(3):"unknown"}}return n.\u0275fac=function(e){return new(e||n)(j(pk))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),h6=(()=>{class n{constructor(){this.iconPath="./src/assets/images/icons",this.dotCMSURLKey="siteURLJWT"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})(),eh=class{constructor(t){this.iconPath=t.iconPath}displayErrorMessage(t){this.displayMessage("Error",t,"error")}displaySuccessMessage(t){this.displayMessage("Success",t,"success")}displayInfoMessage(t){this.displayMessage("Info",t,"info")}displayMessage(t,e,i){let r;return r=new Notification(i,{body:e,icon:this.iconPath+"/"+i+".png"}),r}};function Wn(n){this.content=n}eh.\u0275prov=Y({token:eh,factory:eh.\u0275fac}),eh=function l6(n,t,e,i){var s,r=arguments.length,o=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,i);else for(var a=n.length-1;a>=0;a--)(s=n[a])&&(o=(r<3?s(o):r>3?s(t,e,o):s(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o}([Gp("config"),function c6(n,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(n,t)}("design:paramtypes",[h6])],eh),Wn.prototype={constructor:Wn,find:function(n){for(var t=0;t>1}},Wn.from=function(n){if(n instanceof Wn)return n;var t=[];if(n)for(var e in n)t.push(e,n[e]);return new Wn(t)};const Ak=Wn;function bk(n,t,e){for(let i=0;;i++){if(i==n.childCount||i==t.childCount)return n.childCount==t.childCount?null:e;let r=n.child(i),o=t.child(i);if(r!=o){if(!r.sameMarkup(o))return e;if(r.isText&&r.text!=o.text){for(let s=0;r.text[s]==o.text[s];s++)e++;return e}if(r.content.size||o.content.size){let s=bk(r.content,o.content,e+1);if(null!=s)return s}e+=r.nodeSize}else e+=r.nodeSize}}function yk(n,t,e,i){for(let r=n.childCount,o=t.childCount;;){if(0==r||0==o)return r==o?null:{a:e,b:i};let s=n.child(--r),a=t.child(--o),l=s.nodeSize;if(s!=a){if(!s.sameMarkup(a))return{a:e,b:i};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;ct&&!1!==i(l,r+a,o||null,s)&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,t-u),Math.min(l.content.size,e-u),i,r+u)}a=c}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,i,r){let o="",s=!0;return this.nodesBetween(t,e,(a,l)=>{a.isText?(o+=a.text.slice(Math.max(t,l)-l,e-l),s=!i):a.isLeaf?(r?o+="function"==typeof r?r(a):r:a.type.spec.leafText&&(o+=a.type.spec.leafText(a)),s=!i):!s&&a.isBlock&&(o+=i,s=!0)},0),o}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,i=t.firstChild,r=this.content.slice(),o=0;for(e.isText&&e.sameMarkup(i)&&(r[r.length-1]=e.withText(e.text+i.text),o=1);ot)for(let o=0,s=0;st&&((se)&&(a=a.isText?a.cut(Math.max(0,t-s),Math.min(a.text.length,e-s)):a.cut(Math.max(0,t-s-1),Math.min(a.content.size,e-s-1))),i.push(a),r+=a.nodeSize),s=l}return new L(i,r)}cutByIndex(t,e){return t==e?L.empty:0==t&&e==this.content.length?this:new L(this.content.slice(t,e))}replaceChild(t,e){let i=this.content[t];if(i==e)return this;let r=this.content.slice(),o=this.size+e.nodeSize-i.nodeSize;return r[t]=e,new L(r,o)}addToStart(t){return new L([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new L(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let i=0,r=0;;i++){let s=r+this.child(i).nodeSize;if(s>=t)return s==t||e>0?Kg(i+1,s):Kg(i,r);r=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return L.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new L(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return L.empty;let e,i=0;for(let r=0;r{class n{constructor(e,i){this.type=e,this.attrs=i}addToSet(e){let i,r=!1;for(let o=0;othis.type.rank&&(i||(i=e.slice(0,o)),i.push(this),r=!0),i&&i.push(s)}}return i||(i=e.slice()),r||i.push(this),i}removeFromSet(e){for(let i=0;ir.type.rank-o.type.rank),i}}return n.none=[],n})();class qg extends Error{}class G{constructor(t,e,i){this.content=t,this.openStart=e,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let i=Ek(this.content,t+this.openStart,e);return i&&new G(i,this.openStart,this.openEnd)}removeBetween(t,e){return new G(_k(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return G.empty;let i=e.openStart||0,r=e.openEnd||0;if("number"!=typeof i||"number"!=typeof r)throw new RangeError("Invalid input for Slice.fromJSON");return new G(L.fromJSON(t,e.content),i,r)}static maxOpen(t,e=!0){let i=0,r=0;for(let o=t.firstChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.firstChild)i++;for(let o=t.lastChild;o&&!o.isLeaf&&(e||!o.type.spec.isolating);o=o.lastChild)r++;return new G(t,i,r)}}function _k(n,t,e){let{index:i,offset:r}=n.findIndex(t),o=n.maybeChild(i),{index:s,offset:a}=n.findIndex(e);if(r==t||o.isText){if(a!=e&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,t).append(n.cut(e))}if(i!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(i,o.copy(_k(o.content,t-r-1,e-r-1)))}function Ek(n,t,e,i){let{index:r,offset:o}=n.findIndex(t),s=n.maybeChild(r);if(o==t||s.isText)return i&&!i.canReplace(r,r,e)?null:n.cut(0,t).append(e).append(n.cut(t));let a=Ek(s.content,t-o-1,e);return a&&n.replaceChild(r,s.copy(a))}function p6(n,t,e){if(e.openStart>n.depth)throw new qg("Inserted content deeper than insertion position");if(n.depth-e.openStart!=t.depth-e.openEnd)throw new qg("Inconsistent open depths");return Ck(n,t,e,0)}function Ck(n,t,e,i){let r=n.index(i),o=n.node(i);if(r==t.index(i)&&i=0;o--)r=t.node(o).copy(L.from(r));return{start:r.resolveNoCache(n.openStart+e),end:r.resolveNoCache(r.content.size-n.openEnd-e)}}(e,n);return qa(o,Mk(n,s,a,t,i))}{let s=n.parent,a=s.content;return qa(s,a.cut(0,n.parentOffset).append(e.content).append(a.cut(t.parentOffset)))}}return qa(o,Xg(n,t,i))}function vk(n,t){if(!t.type.compatibleContent(n.type))throw new qg("Cannot join "+t.type.name+" onto "+n.type.name)}function TC(n,t,e){let i=n.node(e);return vk(i,t.node(e)),i}function $a(n,t){let e=t.length-1;e>=0&&n.isText&&n.sameMarkup(t[e])?t[e]=n.withText(t[e].text+n.text):t.push(n)}function th(n,t,e,i){let r=(t||n).node(e),o=0,s=t?t.index(e):r.childCount;n&&(o=n.index(e),n.depth>e?o++:n.textOffset&&($a(n.nodeAfter,i),o++));for(let a=o;ar&&TC(n,t,r+1),s=i.depth>r&&TC(e,i,r+1),a=[];return th(null,n,r,a),o&&s&&t.index(r)==e.index(r)?(vk(o,s),$a(qa(o,Mk(n,t,e,i,r+1)),a)):(o&&$a(qa(o,Xg(n,t,r+1)),a),th(t,e,r,a),s&&$a(qa(s,Xg(e,i,r+1)),a)),th(i,null,r,a),new L(a)}function Xg(n,t,e){let i=[];return th(null,n,e,i),n.depth>e&&$a(qa(TC(n,t,e+1),Xg(n,t,e+1)),i),th(t,null,e,i),new L(i)}G.empty=new G(L.empty,0,0);class nh{constructor(t,e,i){this.pos=t,this.path=e,this.parentOffset=i,this.depth=e.length/3-1}resolveDepth(t){return null==t?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[3*this.resolveDepth(t)]}index(t){return this.path[3*this.resolveDepth(t)+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t!=this.depth||this.textOffset?1:0)}start(t){return 0==(t=this.resolveDepth(t))?0:this.path[3*t-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]}after(t){if(!(t=this.resolveDepth(t)))throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[3*t-1]+this.path[3*t].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],r=t.child(e);return i?t.child(e).cut(i):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):0==t?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let i=this.path[3*e],r=0==e?0:this.path[3*e-1]+1;for(let o=0;o0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!e||e(this.node(i))))return new Zg(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let i=[],r=0,o=e;for(let s=t;;){let{index:a,offset:l}=s.content.findIndex(o),c=o-l;if(i.push(s,a,r+l),!c||(s=s.child(a),s.isText))break;o=c-1,r+=l+1}return new nh(e,i,o)}static resolveCached(t,e){for(let r=0;rt&&this.nodesBetween(t,e,o=>(i.isInSet(o.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),wk(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,i=L.empty,r=0,o=i.childCount){let s=this.contentMatchAt(t).matchFragment(i,r,o),a=s&&s.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let l=r;le.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(e=>e.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=e.marks.map(t.markFromJSON)}if("text"==e.type){if("string"!=typeof e.text)throw new RangeError("Invalid text node in JSON");return t.text(e.text,i)}let r=L.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,r,i)}}lo.prototype.text=void 0;class em extends lo{constructor(t,e,i,r){if(super(t,e,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):wk(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new em(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new em(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return 0==t&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function wk(n,t){for(let e=n.length-1;e>=0;e--)t=n[e].type.name+"("+t+")";return t}class Xa{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let i=new A6(t,e);if(null==i.next)return Xa.empty;let r=Dk(i);i.next&&i.err("Unexpected trailing text");let o=function M6(n){let t=Object.create(null);return function e(i){let r=[];i.forEach(s=>{n[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u{c||r.push([a,c=[]]),-1==c.indexOf(u)&&c.push(u)})})});let o=t[i.join(",")]=new Xa(i.indexOf(n.length-1)>-1);for(let s=0;sl.concat(o(c,a)),[]);if("seq"!=s.type){if("star"==s.type){let l=e();return i(a,l),r(o(s.expr,l),l),[i(l)]}if("plus"==s.type){let l=e();return r(o(s.expr,a),l),r(o(s.expr,l),l),[i(l)]}if("opt"==s.type)return[i(a)].concat(o(s.expr,a));if("range"==s.type){let l=a;for(let c=0;cl.to=a)}}(r));return function w6(n,t){for(let e=0,i=[n];ec.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];return function e(i){t.push(i);for(let r=0;r{let o=r+(i.validEnd?"*":" ")+" ";for(let s=0;s"+t.indexOf(i.next[s].next);return o}).join("\n")}}Xa.empty=new Xa(!0);class A6{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),""==this.tokens[this.tokens.length-1]&&this.tokens.pop(),""==this.tokens[0]&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function Dk(n){let t=[];do{t.push(b6(n))}while(n.eat("|"));return 1==t.length?t[0]:{type:"choice",exprs:t}}function b6(n){let t=[];do{t.push(y6(n))}while(n.next&&")"!=n.next&&"|"!=n.next);return 1==t.length?t[0]:{type:"seq",exprs:t}}function y6(n){let t=function C6(n){if(n.eat("(")){let t=Dk(n);return n.eat(")")||n.err("Missing closing paren"),t}if(!/\W/.test(n.next)){let t=function E6(n,t){let e=n.nodeTypes,i=e[t];if(i)return[i];let r=[];for(let o in e){let s=e[o];s.groups.indexOf(t)>-1&&r.push(s)}return 0==r.length&&n.err("No node type or group '"+t+"' found"),r}(n,n.next).map(e=>(null==n.inline?n.inline=e.isInline:n.inline!=e.isInline&&n.err("Mixing inline and block content"),{type:"name",value:e}));return n.pos++,1==t.length?t[0]:{type:"choice",exprs:t}}n.err("Unexpected token '"+n.next+"'")}(n);for(;;)if(n.eat("+"))t={type:"plus",expr:t};else if(n.eat("*"))t={type:"star",expr:t};else if(n.eat("?"))t={type:"opt",expr:t};else{if(!n.eat("{"))break;t=_6(n,t)}return t}function Ik(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let t=Number(n.next);return n.pos++,t}function _6(n,t){let e=Ik(n),i=e;return n.eat(",")&&(i="}"!=n.next?Ik(n):-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:e,max:i,expr:t}}function Sk(n,t){return t-n}function xk(n,t){let e=[];return function i(r){let o=n[r];if(1==o.length&&!o[0].term)return i(o[0].to);e.push(r);for(let s=0;s-1}allowsMarks(t){if(null==this.markSet)return!0;for(let e=0;ei[o]=new tm(o,e,s));let r=e.spec.topNode||"doc";if(!i[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let o in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}}class D6{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class nm{constructor(t,e,i,r){this.name=t,this.rank=e,this.schema=i,this.spec=r,this.attrs=Ok(r.attrs),this.excluded=null;let o=Tk(this.attrs);this.instance=o?new Tt(this,o):null}create(t=null){return!t&&this.instance?this.instance:new Tt(this,Bk(this.attrs,t))}static compile(t,e){let i=Object.create(null),r=0;return t.forEach((o,s)=>i[o]=new nm(o,r++,e,s)),i}removeFromSet(t){for(var e=0;e-1}}class I6{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let r in t)e[r]=t[r];e.nodes=Ak.from(t.nodes),e.marks=Ak.from(t.marks||{}),this.nodes=tm.compile(this.spec.nodes,this),this.marks=nm.compile(this.spec.marks,this);let i=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let o=this.nodes[r],s=o.spec.content||"",a=o.spec.marks;o.contentMatch=i[s]||(i[s]=Xa.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.markSet="_"==a?null:a?kk(this,a.split(" ")):""!=a&&o.inlineContent?null:[]}for(let r in this.marks){let o=this.marks[r],s=o.spec.excludes;o.excluded=null==s?[o]:""==s?[]:kk(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,i,r){if("string"==typeof t)t=this.nodeType(t);else{if(!(t instanceof tm))throw new RangeError("Invalid node type: "+t);if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}return t.createChecked(e,i,r)}text(t,e){let i=this.nodes.text;return new em(i,i.defaultAttrs,t,Tt.setFrom(e))}mark(t,e){return"string"==typeof t&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return lo.fromJSON(this,t)}markFromJSON(t){return Tt.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function kk(n,t){let e=[];for(let i=0;i-1)&&e.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return e}class kc{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach(i=>{i.tag?this.tags.push(i):i.style&&this.styles.push(i)}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let r=t.nodes[i.node];return r.contentMatch.matchType(r)})}parse(t,e={}){let i=new Nk(this,e,!1);return i.addAll(t,e.from,e.to),i.finish()}parseSlice(t,e={}){let i=new Nk(this,e,!0);return i.addAll(t,e.from,e.to),G.maxOpen(i.finish())}matchTag(t,e,i){for(let r=i?this.tags.indexOf(i)+1:0;rt.length&&(61!=a.charCodeAt(t.length)||a.slice(t.length+1)!=e))){if(s.getAttrs){let l=s.getAttrs(e);if(!1===l)continue;s.attrs=l||void 0}return s}}}static schemaRules(t){let e=[];function i(r){let o=r.priority??50,s=0;for(;s{i(s=Lk(s)),s.mark=r})}for(let r in t.nodes){let o=t.nodes[r].spec.parseDOM;o&&o.forEach(s=>{i(s=Lk(s)),s.node=r})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new kc(t,kc.schemaRules(t)))}}const Pk={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},S6={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Fk={ol:!0,ul:!0};function Rk(n,t,e){return null!=t?(t?1:0)|("full"===t?2:0):n&&"pre"==n.whitespace?3:-5&e}class om{constructor(t,e,i,r,o,s,a){this.type=t,this.attrs=e,this.marks=i,this.pendingMarks=r,this.solid=o,this.options=a,this.content=[],this.activeMarks=Tt.none,this.stashMarks=[],this.match=s||(4&a?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(L.from(t));if(!e){let r,i=this.type.contentMatch;return(r=i.findWrapping(t.type))?(this.match=i,r):null}this.match=this.type.contentMatch.matchFragment(e)}return this.match.findWrapping(t.type)}finish(t){if(!(1&this.options)){let r,i=this.content[this.content.length-1];if(i&&i.isText&&(r=/[ \t\r\n\u000c]+$/.exec(i.text))){let o=i;i.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-r[0].length))}}let e=L.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(L.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(t){for(let e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(t){for(let e=0,i=this.pendingMarks;ethis.insertNode(l));else{let l=t;"string"==typeof e.contentElement?l=t.querySelector(e.contentElement):"function"==typeof e.contentElement?l=e.contentElement(t):e.contentElement&&(l=e.contentElement),this.findAround(t,l,!0),this.addAll(l)}r&&this.sync(a)&&this.open--,s&&this.removePendingMark(s,a)}addAll(t,e,i){let r=e||0;for(let o=e?t.childNodes[e]:t.firstChild,s=null==i?null:t.childNodes[i];o!=s;o=o.nextSibling,++r)this.findAtPoint(t,r),this.addDOM(o);this.findAtPoint(t,r)}findPlace(t){let e,i;for(let r=this.open;r>=0;r--){let o=this.nodes[r],s=o.findWrapping(t);if(s&&(!e||e.length>s.length)&&(e=s,i=o,!s.length)||o.solid)break}if(!e)return!1;this.sync(i);for(let r=0;rthis.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let i=this.nodes[e].content;for(let r=i.length-1;r>=0;r--)t+=i[r].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),i=this.options.context,r=!(this.isOpen||i&&i.parent.type!=this.nodes[0].type),o=(r?0:1)-(i?i.depth+1:0),s=(a,l)=>{for(;a>=0;a--){let c=e[a];if(""==c){if(a==e.length-1||0==a)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}{let u=l>0||0==l&&r?this.nodes[l].type:i&&l>=o?i.node(l-o).type:null;if(!u||u.name!=c&&-1==u.groups.indexOf(c))return!1;l--}}return!0};return s(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let i=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let e in this.parser.schema.nodes){let i=this.parser.schema.nodes[e];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(t){let e=function k6(n,t){for(let e=0;e=0;i--){let r=this.nodes[i];if(r.pendingMarks.lastIndexOf(t)>-1)r.pendingMarks=t.removeFromSet(r.pendingMarks);else{r.activeMarks=t.removeFromSet(r.activeMarks);let s=r.popFromStashMark(t);s&&r.type&&r.type.allowsMarkType(s.type)&&(r.activeMarks=s.addToSet(r.activeMarks))}if(r==e)break}}}function T6(n,t){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,t)}function Lk(n){let t={};for(let e in n)t[e]=n[e];return t}function O6(n,t){let e=t.schema.nodes;for(let i in e){let r=e[i];if(!r.allowsMarkType(n))continue;let o=[],s=a=>{o.push(a);for(let l=0;l{if(o.length||s.marks.length){let a=0,l=0;for(;a=0;r--){let o=this.serializeMark(t.marks[r],t.isInline,e);o&&((o.contentDOM||o.dom).appendChild(i),i=o.dom)}return i}serializeMark(t,e,i={}){let r=this.marks[t.type.name];return r&&co.renderSpec(kC(i),r(t,e))}static renderSpec(t,e,i=null){if("string"==typeof e)return{dom:t.createTextNode(e)};if(null!=e.nodeType)return{dom:e};if(e.dom&&null!=e.dom.nodeType)return e;let r=e[0],o=r.indexOf(" ");o>0&&(i=r.slice(0,o),r=r.slice(o+1));let s,a=i?t.createElementNS(i,r):t.createElement(r),l=e[1],c=1;if(l&&"object"==typeof l&&null==l.nodeType&&!Array.isArray(l)){c=2;for(let u in l)if(null!=l[u]){let d=u.indexOf(" ");d>0?a.setAttributeNS(u.slice(0,d),u.slice(d+1),l[u]):a.setAttribute(u,l[u])}}for(let u=c;uc)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:h,contentDOM:p}=co.renderSpec(t,d,i);if(a.appendChild(h),p){if(s)throw new RangeError("Multiple content holes");s=p}}}return{dom:a,contentDOM:s}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new co(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=Qk(t.nodes);return e.text||(e.text=i=>i.text),e}static marksFromSchema(t){return Qk(t.marks)}}function Qk(n){let t={};for(let e in n){let i=n[e].spec.toDOM;i&&(t[e]=i)}return t}function kC(n){return n.document||window.document}const jk=Math.pow(2,16);function P6(n,t){return n+t*jk}function zk(n){return 65535&n}class PC{constructor(t,e,i){this.pos=t,this.delInfo=e,this.recover=i}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class cr{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&cr.empty)return cr.empty}recover(t){let e=0,i=zk(t);if(!this.inverted)for(let r=0;rt)break;let c=this.ranges[a+o],u=this.ranges[a+s],d=l+c;if(t<=d){let p=l+r+((c?t==l?-1:t==d?1:e:e)<0?0:u);if(i)return p;let f=t==(e<0?l:d)?null:P6(a/3,t-l),g=t==l?2:t==d?1:4;return(e<0?t!=l:t!=d)&&(g|=8),new PC(p,g,f)}r+=u-c}return i?t+r:new PC(t+r,0,null)}touches(t,e){let i=0,r=zk(e),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;at)break;let c=this.ranges[a+o];if(t<=l+c&&a==3*r)return!0;i+=this.ranges[a+s]-c}return!1}forEach(t){let e=this.inverted?2:1,i=this.inverted?1:2;for(let r=0,o=0;r=0;e--){let r=t.getMirror(e);this.appendMap(t.maps[e].invert(),null!=r&&r>e?i-r-1:void 0)}}invert(){let t=new Pc;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let i=this.from;io&&ls.isAtom&&a.type.allowsMarkType(this.mark.type)?s.mark(this.mark.addToSet(s.marks)):s,r),e.openStart,e.openEnd);return ln.fromReplace(t,this.from,this.to,o)}invert(){return new uo(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new Ls(e.pos,i.pos,this.mark)}merge(t){return t instanceof Ls&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Ls(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Ls(e.from,e.to,t.markFromJSON(e.mark))}}Jn.jsonID("addMark",Ls);class uo extends Jn{constructor(t,e,i){super(),this.from=t,this.to=e,this.mark=i}apply(t){let e=t.slice(this.from,this.to),i=new G(RC(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),t),e.openStart,e.openEnd);return ln.fromReplace(t,this.from,this.to,i)}invert(){return new Ls(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new uo(e.pos,i.pos,this.mark)}merge(t){return t instanceof uo&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new uo(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new uo(e.from,e.to,t.markFromJSON(e.mark))}}Jn.jsonID("removeMark",uo);class Qs extends Jn{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return ln.fail("No node at mark step's position");let i=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return ln.fromReplace(t,this.pos,this.pos+1,new G(L.from(i),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let i=this.mark.addToSet(e.marks);if(i.length==e.marks.length){for(let r=0;ri.pos?null:new Mn(e.pos,i.pos,r,o,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to||"number"!=typeof e.gapFrom||"number"!=typeof e.gapTo||"number"!=typeof e.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Mn(e.from,e.to,e.gapFrom,e.gapTo,G.fromJSON(t,e.slice),e.insert,!!e.structure)}}function NC(n,t,e){let i=n.resolve(t),r=e-t,o=i.depth;for(;r>0&&o>0&&i.indexAfter(o)==i.node(o).childCount;)o--,r--;if(r>0){let s=i.node(o).maybeChild(i.indexAfter(o));for(;r>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,r--}}return!1}function Q6(n,t,e){return(0==t||n.canReplace(t,n.childCount))&&(e==n.childCount||n.canReplace(0,e))}function Rc(n){let e=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let i=n.depth;;--i){let r=n.$from.node(i),o=n.$from.index(i),s=n.$to.indexAfter(i);if(io;c--,u--){let d=r.node(c),h=r.index(c);if(d.type.spec.isolating)return!1;let p=d.content.cutByIndex(h,d.childCount),f=i&&i[u]||d;if(f!=d&&(p=p.replaceChild(0,f.type.create(f.attrs))),!d.canReplace(h+1,d.childCount)||!f.type.validContent(p))return!1}let a=r.indexAfter(o),l=i&&i[0];return r.node(o).canReplaceWith(a,a,l?l.type:r.node(o+1).type)}function Us(n,t){let e=n.resolve(t),i=e.index();return Wk(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(i,i+1)}function Wk(n,t){return!(!n||!t||n.isLeaf||!n.canAppend(t))}function Jk(n,t,e=-1){let i=n.resolve(t);for(let r=i.depth;;r--){let o,s,a=i.index(r);if(r==i.depth?(o=i.nodeBefore,s=i.nodeAfter):e>0?(o=i.node(r+1),a++,s=i.node(r).maybeChild(a)):(o=i.node(r).maybeChild(a-1),s=i.node(r+1)),o&&!o.isTextblock&&Wk(o,s)&&i.node(r).canReplace(a,a+1))return t;if(0==r)break;t=e<0?i.before(r):i.after(r)}}function Kk(n,t,e){let i=n.resolve(t);if(!e.content.size)return t;let r=e.content;for(let o=0;o=0;s--){let a=s==i.depth?0:i.pos<=(i.start(s+1)+i.end(s+1))/2?-1:1,l=i.index(s)+(a>0?1:0),c=i.node(s),u=!1;if(1==o)u=c.canReplace(l,l,r);else{let d=c.contentMatchAt(l).findWrapping(r.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return 0==a?i.pos:a<0?i.before(s+1):i.after(s+1)}return null}function QC(n,t,e=t,i=G.empty){if(t==e&&!i.size)return null;let r=n.resolve(t),o=n.resolve(e);return $k(r,o,i)?new Kn(t,e,i):new $6(r,o,i).fit()}function $k(n,t,e){return!e.openStart&&!e.openEnd&&n.start()==t.start()&&n.parent.canReplace(n.index(),t.index(),e.content)}Jn.jsonID("replaceAround",Mn);class $6{constructor(t,e,i){this.$from=t,this.$to=e,this.unplaced=i,this.frontier=[],this.placed=L.empty;for(let r=0;r<=t.depth;r++){let o=t.node(r);this.frontier.push({type:o.type,match:o.contentMatchAt(t.indexAfter(r))})}for(let r=t.depth;r>0;r--)this.placed=L.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;let o=this.placed,s=i.depth,a=r.depth;for(;s&&a&&1==o.childCount;)o=o.firstChild.content,s--,a--;let l=new G(o,s,a);return t>-1?new Mn(i.pos,t,this.$to.pos,this.$to.end(),l,e):l.size||i.pos!=this.$to.pos?new Kn(i.pos,r.pos,l):null}findFittable(){for(let t=1;t<=2;t++)for(let e=this.unplaced.openStart;e>=0;e--){let i,r=null;e?(r=UC(this.unplaced.content,e-1).firstChild,i=r.content):i=this.unplaced.content;let o=i.firstChild;for(let s=this.depth;s>=0;s--){let c,{type:a,match:l}=this.frontier[s],u=null;if(1==t&&(o?l.matchType(o.type)||(u=l.fillBefore(L.from(o),!1)):r&&a.compatibleContent(r.type)))return{sliceDepth:e,frontierDepth:s,parent:r,inject:u};if(2==t&&o&&(c=l.findWrapping(o.type)))return{sliceDepth:e,frontierDepth:s,parent:r,wrap:c};if(r&&l.matchType(r.type))break}}}openMore(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=UC(t,e);return!(!r.childCount||r.firstChild.isLeaf||(this.unplaced=new G(t,e+1,Math.max(i,r.size+e>=t.size-i?e+1:0)),0))}dropNode(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=UC(t,e);if(r.childCount<=1&&e>0){let o=t.size-e<=e+r.size;this.unplaced=new G(rh(t,e-1,1),e-1,o?e-1:i)}else this.unplaced=new G(rh(t,e,1),e,i)}placeNodes({sliceDepth:t,frontierDepth:e,parent:i,inject:r,wrap:o}){for(;this.depth>e;)this.closeFrontierNode();if(o)for(let g=0;g1||0==l||g.content.size)&&(d=m,u.push(qk(g.mark(h.allowedMarks(g.marks)),1==c?l:0,c==a.childCount?p:-1)))}let f=c==a.childCount;f||(p=-1),this.placed=oh(this.placed,e,L.from(u)),this.frontier[e].match=d,f&&p<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let g=0,m=a;g1&&r==this.$to.end(--i);)++r;return r}findCloseLevel(t){e:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:i,type:r}=this.frontier[e],o=e=0;a--){let{match:l,type:c}=this.frontier[a],u=jC(t,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:e,fit:s,move:o?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=oh(this.placed,e.depth,e.fit)),t=e.move;for(let i=e.depth+1;i<=t.depth;i++){let r=t.node(i),o=r.type.contentMatch.fillBefore(r.content,!0,t.index(i));this.openFrontierNode(r.type,r.attrs,o)}return t}openFrontierNode(t,e=null,i){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=oh(this.placed,this.depth,L.from(t.create(e,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(L.empty,!0);e.childCount&&(this.placed=oh(this.placed,this.frontier.length,e))}}function rh(n,t,e){return 0==t?n.cutByIndex(e,n.childCount):n.replaceChild(0,n.firstChild.copy(rh(n.firstChild.content,t-1,e)))}function oh(n,t,e){return 0==t?n.append(e):n.replaceChild(n.childCount-1,n.lastChild.copy(oh(n.lastChild.content,t-1,e)))}function UC(n,t){for(let e=0;e1&&(i=i.replaceChild(0,qk(i.firstChild,t-1,1==i.childCount?e-1:0))),t>0&&(i=n.type.contentMatch.fillBefore(i).append(i),e<=0&&(i=i.append(n.type.contentMatch.matchFragment(i).fillBefore(L.empty,!0)))),n.copy(i)}function jC(n,t,e,i,r){let o=n.node(t),s=r?n.indexAfter(t):n.index(t);if(s==o.childCount&&!e.compatibleContent(o.type))return null;let a=i.fillBefore(o.content,!0,s);return a&&!function q6(n,t,e){for(let i=e;ii){let o=r.contentMatchAt(0),s=o.fillBefore(n).append(n);n=s.append(o.matchFragment(s).fillBefore(L.empty,!0))}return n}function Zk(n,t){let e=[];for(let r=Math.min(n.depth,t.depth);r>=0;r--){let o=n.start(r);if(ot.pos+(t.depth-r)||n.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(o==t.start(r)||r==n.depth&&r==t.depth&&n.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==o-1)&&e.push(r)}return e}class Nc extends Jn{constructor(t,e,i){super(),this.pos=t,this.attr=e,this.value=i}apply(t){let e=t.nodeAt(this.pos);if(!e)return ln.fail("No node at attribute step's position");let i=Object.create(null);for(let o in e.attrs)i[o]=e.attrs[o];i[this.attr]=this.value;let r=e.type.create(i,null,e.marks);return ln.fromReplace(t,this.pos,this.pos+1,new G(L.from(r),0,e.isLeaf?0:1))}getMap(){return cr.empty}invert(t){return new Nc(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Nc(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if("number"!=typeof e.pos||"string"!=typeof e.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new Nc(e.pos,e.attr,e.value)}}Jn.jsonID("attr",Nc);let Lc=class extends Error{};Lc=function n(t){let e=Error.call(this,t);return e.__proto__=n.prototype,e},(Lc.prototype=Object.create(Error.prototype)).constructor=Lc,Lc.prototype.name="TransformError";class zC{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Pc}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new Lc(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,i=G.empty){let r=QC(this.doc,t,e,i);return r&&this.step(r),this}replaceWith(t,e,i){return this.replace(t,e,new G(L.from(i),0,0))}delete(t,e){return this.replace(t,e,G.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,i){return function Z6(n,t,e,i){if(!i.size)return n.deleteRange(t,e);let r=n.doc.resolve(t),o=n.doc.resolve(e);if($k(r,o,i))return n.step(new Kn(t,e,i));let s=Zk(r,n.doc.resolve(e));0==s[s.length-1]&&s.pop();let a=-(r.depth+1);s.unshift(a);for(let h=r.depth,p=r.pos-1;h>0;h--,p--){let f=r.node(h).type.spec;if(f.defining||f.definingAsContext||f.isolating)break;s.indexOf(h)>-1?a=h:r.before(h)==p&&s.splice(1,0,-h)}let l=s.indexOf(a),c=[],u=i.openStart;for(let h=i.content,p=0;;p++){let f=h.firstChild;if(c.push(f),p==i.openStart)break;h=f.content}for(let h=u-1;h>=0;h--){let p=c[h].type,f=X6(p);if(f&&r.node(l).type!=p)u=h;else if(f||!p.isTextblock)break}for(let h=i.openStart;h>=0;h--){let p=(h+u+1)%(i.openStart+1),f=c[p];if(f)for(let g=0;g=0&&(n.replace(t,e,i),!(n.steps.length>d));h--){let p=s[h];p<0||(t=r.before(p),e=o.after(p))}}(this,t,e,i),this}replaceRangeWith(t,e,i){return function eq(n,t,e,i){if(!i.isInline&&t==e&&n.doc.resolve(t).parent.content.size){let r=function K6(n,t,e){let i=n.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),e))return t;if(0==i.parentOffset)for(let r=i.depth-1;r>=0;r--){let o=i.index(r);if(i.node(r).canReplaceWith(o,o,e))return i.before(r+1);if(o>0)return null}if(i.parentOffset==i.parent.content.size)for(let r=i.depth-1;r>=0;r--){let o=i.indexAfter(r);if(i.node(r).canReplaceWith(o,o,e))return i.after(r+1);if(o0&&(l||i.node(a-1).canReplace(i.index(a-1),r.indexAfter(a-1))))return n.delete(i.before(a),r.after(a))}for(let s=1;s<=i.depth&&s<=r.depth;s++)if(t-i.start(s)==i.depth-s&&e>i.end(s)&&r.end(s)-e!=r.depth-s)return n.delete(i.before(s),e);n.delete(t,e)}(this,t,e),this}lift(t,e){return function U6(n,t,e){let{$from:i,$to:r,depth:o}=t,s=i.before(o+1),a=r.after(o+1),l=s,c=a,u=L.empty,d=0;for(let f=o,g=!1;f>e;f--)g||i.index(f)>0?(g=!0,u=L.from(i.node(f).copy(u)),d++):l--;let h=L.empty,p=0;for(let f=o,g=!1;f>e;f--)g||r.after(f+1)=0;s--){if(i.size){let a=e[s].type.contentMatch.matchFragment(i);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=L.from(e[s].type.create(e[s].attrs,i))}let r=t.start,o=t.end;n.step(new Mn(r,o,r,o,new G(i,0,0),e.length,!0))}(this,t,e),this}setBlockType(t,e=t,i,r=null){return function V6(n,t,e,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=n.steps.length;n.doc.nodesBetween(t,e,(s,a)=>{if(s.isTextblock&&!s.hasMarkup(i,r)&&function G6(n,t,e){let i=n.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,e)}(n.doc,n.mapping.slice(o).map(a),i)){n.clearIncompatible(n.mapping.slice(o).map(a,1),i);let l=n.mapping.slice(o),c=l.map(a,1),u=l.map(a+s.nodeSize,1);return n.step(new Mn(c,u,c+1,u-1,new G(L.from(i.create(r,null,s.marks)),0,0),1,!0)),!1}})}(this,t,e,i,r),this}setNodeMarkup(t,e,i=null,r=[]){return function Y6(n,t,e,i,r){let o=n.doc.nodeAt(t);if(!o)throw new RangeError("No node at given position");e||(e=o.type);let s=e.create(i,null,r||o.marks);if(o.isLeaf)return n.replaceWith(t,t+o.nodeSize,s);if(!e.validContent(o.content))throw new RangeError("Invalid content for node type "+e.name);n.step(new Mn(t,t+o.nodeSize,t+1,t+o.nodeSize-1,new G(L.from(s),0,0),1,!0))}(this,t,e,i,r),this}setNodeAttribute(t,e,i){return this.step(new Nc(t,e,i)),this}addNodeMark(t,e){return this.step(new Qs(t,e)),this}removeNodeMark(t,e){if(!(e instanceof Tt)){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(!(e=e.isInSet(i.marks)))return this}return this.step(new Fc(t,e)),this}split(t,e=1,i){return function W6(n,t,e=1,i){let r=n.doc.resolve(t),o=L.empty,s=L.empty;for(let a=r.depth,l=r.depth-e,c=e-1;a>l;a--,c--){o=L.from(r.node(a).copy(o));let u=i&&i[c];s=L.from(u?u.type.create(u.attrs,s):r.node(a).copy(s))}n.step(new Kn(t,t,new G(o.append(s),e,e),!0))}(this,t,e,i),this}addMark(t,e,i){return function R6(n,t,e,i){let s,a,r=[],o=[];n.doc.nodesBetween(t,e,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!i.isInSet(d)&&u.type.allowsMarkType(i.type)){let h=Math.max(c,t),p=Math.min(c+l.nodeSize,e),f=i.addToSet(d);for(let g=0;gn.step(l)),o.forEach(l=>n.step(l))}(this,t,e,i),this}removeMark(t,e,i){return function N6(n,t,e,i){let r=[],o=0;n.doc.nodesBetween(t,e,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(i instanceof nm){let u,c=s.marks;for(;u=i.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else i?i.isInSet(s.marks)&&(l=[i]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,e);for(let u=0;un.step(new uo(s.from,s.to,s.style)))}(this,t,e,i),this}clearIncompatible(t,e,i){return function L6(n,t,e,i=e.contentMatch){let r=n.doc.nodeAt(t),o=[],s=t+1;for(let a=0;a=0;a--)n.step(o[a])}(this,t,e,i),this}}const HC=Object.create(null);class _e{constructor(t,e,i){this.$anchor=t,this.$head=e,this.ranges=i||[new eP(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;o--){let s=e<0?Qc(t.node(0),t.node(o),t.before(o+1),t.index(o),e,i):Qc(t.node(0),t.node(o),t.after(o+1),t.index(o)+1,e,i);if(s)return s}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new zi(t.node(0))}static atStart(t){return Qc(t,t,0,0,1)||new zi(t)}static atEnd(t){return Qc(t,t,t.content.size,t.childCount,-1)||new zi(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=HC[e.type];if(!i)throw new RangeError(`No selection type ${e.type} defined`);return i.fromJSON(t,e)}static jsonID(t,e){if(t in HC)throw new RangeError("Duplicate use of selection JSON ID "+t);return HC[t]=e,e.prototype.jsonID=t,e}getBookmark(){return Ee.between(this.$anchor,this.$head).getBookmark()}}_e.prototype.visible=!0;class eP{constructor(t,e){this.$from=t,this.$to=e}}let tP=!1;function nP(n){!tP&&!n.parent.inlineContent&&(tP=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Ee extends _e{constructor(t,e=t){nP(t),nP(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let i=t.resolve(e.map(this.head));if(!i.parent.inlineContent)return _e.near(i);let r=t.resolve(e.map(this.anchor));return new Ee(r.parent.inlineContent?r:i,i)}replace(t,e=G.empty){if(super.replace(t,e),e==G.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof Ee&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new am(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if("number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ee(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,i=e){let r=t.resolve(e);return new this(r,i==e?r:t.resolve(i))}static between(t,e,i){let r=t.pos-e.pos;if((!i||r)&&(i=r>=0?1:-1),!e.parent.inlineContent){let o=_e.findFrom(e,i,!0)||_e.findFrom(e,-i,!0);if(!o)return _e.near(e,i);e=o.$head}return t.parent.inlineContent||(0==r||(t=(_e.findFrom(t,-i,!0)||_e.findFrom(t,i,!0)).$anchor).posnew zi(n)};function Qc(n,t,e,i,r,o=!1){if(t.inlineContent)return Ee.create(n,e);for(let s=i-(r>0?0:1);r>0?s=0;s+=r){let a=t.child(s);if(a.isAtom){if(!o&&ce.isSelectable(a))return ce.create(n,e-(r<0?a.nodeSize:0))}else{let l=Qc(n,a,e+r,r<0?a.childCount:0,r,o);if(l)return l}e+=a.nodeSize*r}return null}function iP(n,t,e){let i=n.steps.length-1;if(i{null==s&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),e)))}class iq extends zC{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=2,this}ensureMarks(t){return Tt.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(2&this.updated)>0}addStep(t,e){super.addStep(t,e),this.updated=-3&this.updated,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let i=this.selection;return e&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Tt.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,i){let r=this.doc.type.schema;if(null==e)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(null==i&&(i=e),i=i??e,!t)return this.deleteRange(e,i);let o=this.storedMarks;if(!o){let s=this.doc.resolve(e);o=i==e?s.marks():s.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(e,i,r.text(t,o)),this.selection.empty||this.setSelection(_e.near(this.selection.$to)),this}}setMeta(t,e){return this.meta["string"==typeof t?t:t.key]=e,this}getMeta(t){return this.meta["string"==typeof t?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=4,this}get scrolledIntoView(){return(4&this.updated)>0}}function sP(n,t){return t&&n?n.bind(t):n}class sh{constructor(t,e,i){this.name=t,this.init=sP(e.init,i),this.apply=sP(e.apply,i)}}const rq=[new sh("doc",{init:n=>n.doc||n.schema.topNodeType.createAndFill(),apply:n=>n.doc}),new sh("selection",{init:(n,t)=>n.selection||_e.atStart(t.doc),apply:n=>n.selection}),new sh("storedMarks",{init:n=>n.storedMarks||null,apply:(n,t,e,i)=>i.selection.$cursor?n.storedMarks:null}),new sh("scrollToSelection",{init:()=>0,apply:(n,t)=>n.scrolledIntoView?t+1:t})];class GC{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=rq.slice(),e&&e.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new sh(i.key,i.spec.state,i))})}}class Uc{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let i=0;ii.toJSON())),t&&"object"==typeof t)for(let i in t){if("doc"==i||"selection"==i)throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[i],o=r.spec.state;o&&o.toJSON&&(e[i]=o.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,i){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let r=new GC(t.schema,t.plugins),o=new Uc(r);return r.fields.forEach(s=>{if("doc"==s.name)o.doc=lo.fromJSON(t.schema,e.doc);else if("selection"==s.name)o.selection=_e.fromJSON(o.doc,e.selection);else if("storedMarks"==s.name)e.storedMarks&&(o.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let a in i){let l=i[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(e,a))return void(o[s.name]=c.fromJSON.call(l,t,e[a],o))}o[s.name]=s.init(t,o)}}),o}}function aP(n,t,e){for(let i in n){let r=n[i];r instanceof Function?r=r.bind(t):"handleDOMEvents"==i&&(r=aP(r,t,{})),e[i]=r}return e}class it{constructor(t){this.spec=t,this.props={},t.props&&aP(t.props,this,this.props),this.key=t.key?t.key.key:lP("plugin")}getState(t){return t[this.key]}}const YC=Object.create(null);function lP(n){return n in YC?n+"$"+ ++YC[n]:(YC[n]=0,n+"$")}class _t{constructor(t="key"){this.key=lP(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}function ur(n){if(null==n)return window;if("[object Window]"!==n.toString()){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function Za(n){return n instanceof ur(n).Element||n instanceof Element}function dr(n){return n instanceof ur(n).HTMLElement||n instanceof HTMLElement}function WC(n){return!(typeof ShadowRoot>"u")&&(n instanceof ur(n).ShadowRoot||n instanceof ShadowRoot)}var el=Math.max,cm=Math.min,jc=Math.round;function JC(){var n=navigator.userAgentData;return null!=n&&n.brands?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cP(){return!/^((?!chrome|android).)*safari/i.test(JC())}function zc(n,t,e){void 0===t&&(t=!1),void 0===e&&(e=!1);var i=n.getBoundingClientRect(),r=1,o=1;t&&dr(n)&&(r=n.offsetWidth>0&&jc(i.width)/n.offsetWidth||1,o=n.offsetHeight>0&&jc(i.height)/n.offsetHeight||1);var a=(Za(n)?ur(n):window).visualViewport,l=!cP()&&e,c=(i.left+(l&&a?a.offsetLeft:0))/r,u=(i.top+(l&&a?a.offsetTop:0))/o,d=i.width/r,h=i.height/o;return{width:d,height:h,top:u,right:c+d,bottom:u+h,left:c,x:c,y:u}}function KC(n){var t=ur(n);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ho(n){return n?(n.nodeName||"").toLowerCase():null}function js(n){return((Za(n)?n.ownerDocument:n.document)||window.document).documentElement}function $C(n){return zc(js(n)).left+KC(n).scrollLeft}function qo(n){return ur(n).getComputedStyle(n)}function qC(n){var t=qo(n);return/auto|scroll|overlay|hidden/.test(t.overflow+t.overflowY+t.overflowX)}function lq(n,t,e){void 0===e&&(e=!1);var i=dr(t),r=dr(t)&&function aq(n){var t=n.getBoundingClientRect(),e=jc(t.width)/n.offsetWidth||1,i=jc(t.height)/n.offsetHeight||1;return 1!==e||1!==i}(t),o=js(t),s=zc(n,r,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&(("body"!==ho(t)||qC(o))&&(a=function sq(n){return n!==ur(n)&&dr(n)?function oq(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}(n):KC(n)}(t)),dr(t)?((l=zc(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=$C(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function XC(n){var t=zc(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function um(n){return"html"===ho(n)?n:n.assignedSlot||n.parentNode||(WC(n)?n.host:null)||js(n)}function uP(n){return["html","body","#document"].indexOf(ho(n))>=0?n.ownerDocument.body:dr(n)&&qC(n)?n:uP(um(n))}function ah(n,t){var e;void 0===t&&(t=[]);var i=uP(n),r=i===(null==(e=n.ownerDocument)?void 0:e.body),o=ur(i),s=r?[o].concat(o.visualViewport||[],qC(i)?i:[]):i,a=t.concat(s);return r?a:a.concat(ah(um(s)))}function cq(n){return["table","td","th"].indexOf(ho(n))>=0}function dP(n){return dr(n)&&"fixed"!==qo(n).position?n.offsetParent:null}function lh(n){for(var t=ur(n),e=dP(n);e&&cq(e)&&"static"===qo(e).position;)e=dP(e);return e&&("html"===ho(e)||"body"===ho(e)&&"static"===qo(e).position)?t:e||function uq(n){var t=/firefox/i.test(JC());if(/Trident/i.test(JC())&&dr(n)&&"fixed"===qo(n).position)return null;var r=um(n);for(WC(r)&&(r=r.host);dr(r)&&["html","body"].indexOf(ho(r))<0;){var o=qo(r);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return r;r=r.parentNode}return null}(n)||t}var vi="top",hr="bottom",pr="right",Mi="left",ZC="auto",ch=[vi,hr,pr,Mi],Hc="start",uh="end",hP="viewport",dh="popper",pP=ch.reduce(function(n,t){return n.concat([t+"-"+Hc,t+"-"+uh])},[]),fP=[].concat(ch,[ZC]).reduce(function(n,t){return n.concat([t,t+"-"+Hc,t+"-"+uh])},[]),Cq=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function vq(n){var t=new Map,e=new Set,i=[];function r(o){e.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&r(l)}}),i.push(o)}return n.forEach(function(o){t.set(o.name,o)}),n.forEach(function(o){e.has(o.name)||r(o)}),i}function wq(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}var gP={placement:"bottom",modifiers:[],strategy:"absolute"};function mP(){for(var n=arguments.length,t=new Array(n),e=0;e=0?"x":"y"}function AP(n){var l,t=n.reference,e=n.element,i=n.placement,r=i?po(i):null,o=i?Vc(i):null,s=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2;switch(r){case vi:l={x:s,y:t.y-e.height};break;case hr:l={x:s,y:t.y+t.height};break;case pr:l={x:t.x+t.width,y:a};break;case Mi:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var c=r?ev(r):null;if(null!=c){var u="y"===c?"height":"width";switch(o){case Hc:l[c]=l[c]-(t[u]/2-e[u]/2);break;case uh:l[c]=l[c]+(t[u]/2-e[u]/2)}}return l}const Bq={name:"popperOffsets",enabled:!0,phase:"read",fn:function Tq(n){var t=n.state;t.modifiersData[n.name]=AP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Oq={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bP(n){var t,e=n.popper,i=n.popperRect,r=n.placement,o=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,d=n.isFixed,h=s.x,p=void 0===h?0:h,f=s.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var A=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),E=Mi,b=vi,D=window;if(c){var I=lh(e),Q="clientHeight",O="clientWidth";I===ur(e)&&"static"!==qo(I=js(e)).position&&"absolute"===a&&(Q="scrollHeight",O="scrollWidth"),(r===vi||(r===Mi||r===pr)&&o===uh)&&(b=hr,g-=(d&&I===D&&D.visualViewport?D.visualViewport.height:I[Q])-i.height,g*=l?1:-1),r!==Mi&&(r!==vi&&r!==hr||o!==uh)||(E=pr,p-=(d&&I===D&&D.visualViewport?D.visualViewport.width:I[O])-i.width,p*=l?1:-1)}var Ae,xe=Object.assign({position:a},c&&Oq),ke=!0===u?function kq(n){var e=n.y,r=window.devicePixelRatio||1;return{x:jc(n.x*r)/r||0,y:jc(e*r)/r||0}}({x:p,y:g}):{x:p,y:g};return p=ke.x,g=ke.y,Object.assign({},xe,l?((Ae={})[b]=y?"0":"",Ae[E]=A?"0":"",Ae.transform=(D.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",Ae):((t={})[b]=y?g+"px":"",t[E]=A?p+"px":"",t.transform="",t))}const Fq={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function Pq(n){var t=n.state,e=n.options,i=e.gpuAcceleration,r=void 0===i||i,o=e.adaptive,s=void 0===o||o,a=e.roundOffsets,l=void 0===a||a,u={placement:po(t.placement),variation:Vc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,bP(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,bP(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},yP={name:"applyStyles",enabled:!0,phase:"write",fn:function Rq(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!dr(o)||!ho(o)||(Object.assign(o.style,i),Object.keys(r).forEach(function(s){var a=r[s];!1===a?o.removeAttribute(s):o.setAttribute(s,!0===a?"":a)}))})},effect:function Nq(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],o=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]).reduce(function(l,c){return l[c]="",l},{});!dr(r)||!ho(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(l){r.removeAttribute(l)}))})}},requires:["computeStyles"]},Uq={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function Qq(n){var t=n.state,i=n.name,r=n.options.offset,o=void 0===r?[0,0]:r,s=fP.reduce(function(u,d){return u[d]=function Lq(n,t,e){var i=po(n),r=[Mi,vi].indexOf(i)>=0?-1:1,o="function"==typeof e?e(Object.assign({},t,{placement:n})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[Mi,pr].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(d,t.rects,o),u},{}),a=s[t.placement],c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a.x,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=s}};var jq={left:"right",right:"left",bottom:"top",top:"bottom"};function hm(n){return n.replace(/left|right|bottom|top/g,function(t){return jq[t]})}var zq={start:"end",end:"start"};function _P(n){return n.replace(/start|end/g,function(t){return zq[t]})}function EP(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&WC(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function tv(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function CP(n,t,e){return t===hP?tv(function Hq(n,t){var e=ur(n),i=js(n),r=e.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;var c=cP();(c||!c&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a+$C(n),y:l}}(n,e)):Za(t)?function Gq(n,t){var e=zc(n,!1,"fixed"===t);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}(t,e):tv(function Vq(n){var t,e=js(n),i=KC(n),r=null==(t=n.ownerDocument)?void 0:t.body,o=el(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=el(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+$C(n),l=-i.scrollTop;return"rtl"===qo(r||e).direction&&(a+=el(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}(js(n)))}function MP(n){return Object.assign({},{top:0,right:0,bottom:0,left:0},n)}function wP(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}function hh(n,t){void 0===t&&(t={});var i=t.placement,r=void 0===i?n.placement:i,o=t.strategy,s=void 0===o?n.strategy:o,a=t.boundary,l=void 0===a?"clippingParents":a,c=t.rootBoundary,u=void 0===c?hP:c,d=t.elementContext,h=void 0===d?dh:d,p=t.altBoundary,f=void 0!==p&&p,g=t.padding,m=void 0===g?0:g,A=MP("number"!=typeof m?m:wP(m,ch)),E=n.rects.popper,b=n.elements[f?h===dh?"reference":dh:h],D=function Wq(n,t,e,i){var r="clippingParents"===t?function Yq(n){var t=ah(um(n)),i=["absolute","fixed"].indexOf(qo(n).position)>=0&&dr(n)?lh(n):n;return Za(i)?t.filter(function(r){return Za(r)&&EP(r,i)&&"body"!==ho(r)}):[]}(n):[].concat(t),o=[].concat(r,[e]),a=o.reduce(function(l,c){var u=CP(n,c,i);return l.top=el(u.top,l.top),l.right=cm(u.right,l.right),l.bottom=cm(u.bottom,l.bottom),l.left=el(u.left,l.left),l},CP(n,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(Za(b)?b:b.contextElement||js(n.elements.popper),l,u,s),I=zc(n.elements.reference),Q=AP({reference:I,element:E,strategy:"absolute",placement:r}),O=tv(Object.assign({},E,Q)),q=h===dh?O:I,le={top:D.top-q.top+A.top,bottom:q.bottom-D.bottom+A.bottom,left:D.left-q.left+A.left,right:q.right-D.right+A.right},xe=n.modifiersData.offset;if(h===dh&&xe){var ke=xe[r];Object.keys(le).forEach(function(Ae){var dt=[pr,hr].indexOf(Ae)>=0?1:-1,ht=[vi,hr].indexOf(Ae)>=0?"y":"x";le[Ae]+=ke[ht]*dt})}return le}const qq={name:"flip",enabled:!0,phase:"main",fn:function $q(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0===s||s,l=e.fallbackPlacements,c=e.padding,u=e.boundary,d=e.rootBoundary,h=e.altBoundary,p=e.flipVariations,f=void 0===p||p,g=e.allowedAutoPlacements,m=t.options.placement,A=po(m),E=l||(A!==m&&f?function Kq(n){if(po(n)===ZC)return[];var t=hm(n);return[_P(n),t,_P(t)]}(m):[hm(m)]),b=[m].concat(E).reduce(function(Xe,Si){return Xe.concat(po(Si)===ZC?function Jq(n,t){void 0===t&&(t={});var r=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=void 0===l?fP:l,u=Vc(t.placement),d=u?a?pP:pP.filter(function(f){return Vc(f)===u}):ch,h=d.filter(function(f){return c.indexOf(f)>=0});0===h.length&&(h=d);var p=h.reduce(function(f,g){return f[g]=hh(n,{placement:g,boundary:r,rootBoundary:o,padding:s})[po(g)],f},{});return Object.keys(p).sort(function(f,g){return p[f]-p[g]})}(t,{placement:Si,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):Si)},[]),D=t.rects.reference,I=t.rects.popper,Q=new Map,O=!0,q=b[0],le=0;le=0,ht=dt?"width":"height",U=hh(t,{placement:xe,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),V=dt?Ae?pr:Mi:Ae?hr:vi;D[ht]>I[ht]&&(V=hm(V));var W=hm(V),X=[];if(o&&X.push(U[ke]<=0),a&&X.push(U[V]<=0,U[W]<=0),X.every(function(Xe){return Xe})){q=xe,O=!1;break}Q.set(xe,X)}if(O)for(var ft=function(Si){var Hr=b.find(function(Ht){var Rn=Q.get(Ht);if(Rn)return Rn.slice(0,Si).every(function(En){return En})});if(Hr)return q=Hr,"break"},Bt=f?3:1;Bt>0&&"break"!==ft(Bt);Bt--);t.placement!==q&&(t.modifiersData[i]._skip=!0,t.placement=q,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ph(n,t,e){return el(n,cm(t,e))}const t7={name:"preventOverflow",enabled:!0,phase:"main",fn:function e7(n){var t=n.state,e=n.options,i=n.name,r=e.mainAxis,o=void 0===r||r,s=e.altAxis,a=void 0!==s&&s,h=e.tether,p=void 0===h||h,f=e.tetherOffset,g=void 0===f?0:f,m=hh(t,{boundary:e.boundary,rootBoundary:e.rootBoundary,padding:e.padding,altBoundary:e.altBoundary}),A=po(t.placement),y=Vc(t.placement),E=!y,b=ev(A),D=function Xq(n){return"x"===n?"y":"x"}(b),I=t.modifiersData.popperOffsets,Q=t.rects.reference,O=t.rects.popper,q="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,le="number"==typeof q?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),xe=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ke={x:0,y:0};if(I){if(o){var Ae,dt="y"===b?vi:Mi,ht="y"===b?hr:pr,U="y"===b?"height":"width",V=I[b],W=V+m[dt],X=V-m[ht],Ce=p?-O[U]/2:0,ft=y===Hc?Q[U]:O[U],Bt=y===Hc?-O[U]:-Q[U],un=t.elements.arrow,Xe=p&&un?XC(un):{width:0,height:0},Si=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Hr=Si[dt],Ht=Si[ht],Rn=ph(0,Q[U],Xe[U]),En=E?Q[U]/2-Ce-Rn-Hr-le.mainAxis:ft-Rn-Hr-le.mainAxis,Yi=E?-Q[U]/2+Ce+Rn+Ht+le.mainAxis:Bt+Rn+Ht+le.mainAxis,Mo=t.elements.arrow&&lh(t.elements.arrow),ip=null!=(Ae=xe?.[b])?Ae:0,YA=V+Yi-ip,rp=ph(p?cm(W,V+En-ip-(Mo?"y"===b?Mo.clientTop||0:Mo.clientLeft||0:0)):W,V,p?el(X,YA):X);I[b]=rp,ke[b]=rp-V}if(a){var op,ls=I[D],ha="y"===D?"height":"width",sp=ls+m["x"===b?vi:Mi],wl=ls-m["x"===b?hr:pr],ap=-1!==[vi,Mi].indexOf(A),KA=null!=(op=xe?.[D])?op:0,$A=ap?sp:ls-Q[ha]-O[ha]-KA+le.altAxis,qA=ap?ls+Q[ha]+O[ha]-KA-le.altAxis:wl,XA=p&&ap?function Zq(n,t,e){var i=ph(n,t,e);return i>e?e:i}($A,ls,qA):ph(p?$A:sp,ls,p?qA:wl);I[D]=XA,ke[D]=XA-ls}t.modifiersData[i]=ke}},requiresIfExists:["offset"]},o7={name:"arrow",enabled:!0,phase:"main",fn:function i7(n){var t,e=n.state,i=n.name,r=n.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=po(e.placement),l=ev(a),u=[Mi,pr].indexOf(a)>=0?"height":"width";if(o&&s){var d=function(t,e){return MP("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:wP(t,ch))}(r.padding,e),h=XC(o),p="y"===l?vi:Mi,f="y"===l?hr:pr,g=e.rects.reference[u]+e.rects.reference[l]-s[l]-e.rects.popper[u],m=s[l]-e.rects.reference[l],A=lh(o),y=A?"y"===l?A.clientHeight||0:A.clientWidth||0:0,I=y/2-h[u]/2+(g/2-m/2),Q=ph(d[p],I,y-h[u]-d[f]);e.modifiersData[i]=((t={})[l]=Q,t.centerOffset=Q-I,t)}},effect:function r7(n){var t=n.state,i=n.options.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"==typeof r&&!(r=t.elements.popper.querySelector(r))||!EP(t.elements.popper,r)||(t.elements.arrow=r))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function DP(n,t,e){return void 0===e&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function IP(n){return[vi,pr,hr,Mi].some(function(t){return n[t]>=0})}var a7=[xq,Bq,Fq,yP,Uq,qq,t7,o7,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function s7(n){var t=n.state,e=n.name,i=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=hh(t,{elementContext:"reference"}),a=hh(t,{altBoundary:!0}),l=DP(s,i),c=DP(a,r,o),u=IP(l),d=IP(c);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}],l7=Iq({defaultModifiers:a7}),SP="tippy-content",TP="tippy-arrow",BP="tippy-svg-arrow",zs={passive:!0,capture:!0},OP=function(){return document.body};function nv(n,t,e){return Array.isArray(n)?n[t]??(Array.isArray(e)?e[t]:e):n}function iv(n,t){var e={}.toString.call(n);return 0===e.indexOf("[object")&&e.indexOf(t+"]")>-1}function kP(n,t){return"function"==typeof n?n.apply(void 0,t):n}function PP(n,t){return 0===t?n:function(i){clearTimeout(e),e=setTimeout(function(){n(i)},t)};var e}function Hs(n){return[].concat(n)}function FP(n,t){-1===n.indexOf(t)&&n.push(t)}function Gc(n){return[].slice.call(n)}function NP(n){return Object.keys(n).reduce(function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t},{})}function tl(){return document.createElement("div")}function pm(n){return["Element","Fragment"].some(function(t){return iv(n,t)})}function sv(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function fh(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function av(n,t,e){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){n[i](r,e)})}function UP(n,t){for(var e=t;e;){var i;if(n.contains(e))return!0;e=null==e.getRootNode||null==(i=e.getRootNode())?void 0:i.host}return!1}var fo={isTouch:!1},jP=0;function m7(){fo.isTouch||(fo.isTouch=!0,window.performance&&document.addEventListener("mousemove",zP))}function zP(){var n=performance.now();n-jP<20&&(fo.isTouch=!1,document.removeEventListener("mousemove",zP)),jP=n}function A7(){var n=document.activeElement;(function LP(n){return!(!n||!n._tippy||n._tippy.reference!==n)})(n)&&n.blur&&!n._tippy.state.isVisible&&n.blur()}var _7=!!(typeof window<"u"&&typeof document<"u")&&!!window.msCrypto,wi=Object.assign({appendTo:OP,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),M7=Object.keys(wi);function WP(n){var e=(n.plugins||[]).reduce(function(i,r){var a,o=r.name;return o&&(i[o]=void 0!==n[o]?n[o]:null!=(a=wi[o])?a:r.defaultValue),i},{});return Object.assign({},n,e)}function JP(n,t){var e=Object.assign({},t,{content:kP(t.content,[n])},t.ignoreAttributes?{}:function D7(n,t){return(t?Object.keys(WP(Object.assign({},wi,{plugins:t}))):M7).reduce(function(r,o){var s=(n.getAttribute("data-tippy-"+o)||"").trim();if(!s)return r;if("content"===o)r[o]=s;else try{r[o]=JSON.parse(s)}catch{r[o]=s}return r},{})}(n,t.plugins));return e.aria=Object.assign({},wi.aria,e.aria),e.aria={expanded:"auto"===e.aria.expanded?t.interactive:e.aria.expanded,content:"auto"===e.aria.content?t.interactive?null:"describedby":e.aria.content},e}function lv(n,t){n.innerHTML=t}function KP(n){var t=tl();return!0===n?t.className=TP:(t.className=BP,pm(n)?t.appendChild(n):lv(t,n)),t}function $P(n,t){pm(t.content)?(lv(n,""),n.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?lv(n,t.content):n.textContent=t.content)}function fm(n){var t=n.firstElementChild,e=Gc(t.children);return{box:t,content:e.find(function(i){return i.classList.contains(SP)}),arrow:e.find(function(i){return i.classList.contains(TP)||i.classList.contains(BP)}),backdrop:e.find(function(i){return i.classList.contains("tippy-backdrop")})}}function qP(n){var t=tl(),e=tl();e.className="tippy-box",e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=tl();function r(o,s){var a=fm(t),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),"string"==typeof s.animation?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth="number"==typeof s.maxWidth?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&$P(c,n.props),s.arrow?u?o.arrow!==s.arrow&&(l.removeChild(u),l.appendChild(KP(s.arrow))):l.appendChild(KP(s.arrow)):u&&l.removeChild(u)}return i.className=SP,i.setAttribute("data-state","hidden"),$P(i,n.props),t.appendChild(e),e.appendChild(i),r(n.props,n.props),{popper:t,onUpdate:r}}qP.$$tippy=!0;var S7=1,gm=[],mm=[];function x7(n,t){var i,r,o,u,d,h,g,e=JP(n,Object.assign({},wi,WP(NP(t)))),s=!1,a=!1,l=!1,c=!1,p=[],f=PP(GA,e.interactiveDebounce),m=S7++,y=function h7(n){return n.filter(function(t,e){return n.indexOf(t)===e})}(e.plugins),b={id:m,reference:n,popper:tl(),popperInstance:null,props:e,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function $A(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(o)},setProps:function qA(k){if(!b.state.isDestroyed){W("onBeforeUpdate",[b,k]),VA();var se=b.props,De=JP(n,Object.assign({},se,NP(k),{ignoreAttributes:!0}));b.props=De,Mo(),se.interactiveDebounce!==De.interactiveDebounce&&(ft(),f=PP(GA,De.interactiveDebounce)),se.triggerTarget&&!De.triggerTarget?Hs(se.triggerTarget).forEach(function(bt){bt.removeAttribute("aria-expanded")}):De.triggerTarget&&n.removeAttribute("aria-expanded"),Ce(),V(),Q&&Q(se,De),b.popperInstance&&(WA(),ha().forEach(function(bt){requestAnimationFrame(bt._tippy.popperInstance.forceUpdate)})),W("onAfterUpdate",[b,k])}},setContent:function XA(k){b.setProps({content:k})},show:function pfe(){var k=b.state.isVisible,se=b.state.isDestroyed,De=!b.state.isEnabled,bt=fo.isTouch&&!b.props.touch,Ze=nv(b.props.duration,0,wi.duration);if(!(k||se||De||bt||Ae().hasAttribute("disabled")||(W("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,ke()&&(I.style.visibility="visible"),V(),Si(),b.state.isMounted||(I.style.transition="none"),ke()){var fi=ht();sv([fi.box,fi.content],0)}h=function(){var Dl;if(b.state.isVisible&&!c){if(c=!0,I.style.transition=b.props.moveTransition,ke()&&b.props.animation){var Iw=ht(),ZA=Iw.box,bu=Iw.content;sv([ZA,bu],Ze),fh([ZA,bu],"visible")}X(),Ce(),FP(mm,b),null==(Dl=b.popperInstance)||Dl.forceUpdate(),W("onMount",[b]),b.props.animation&&ke()&&function Rn(k,se){En(k,se)}(Ze,function(){b.state.isShown=!0,W("onShown",[b])})}},function ls(){var se,k=b.props.appendTo,De=Ae();(se=b.props.interactive&&k===OP||"parent"===k?De.parentNode:kP(k,[De])).contains(I)||se.appendChild(I),b.state.isMounted=!0,WA()}()}},hide:function ffe(){var k=!b.state.isVisible,se=b.state.isDestroyed,De=!b.state.isEnabled,bt=nv(b.props.duration,1,wi.duration);if(!(k||se||De)&&(W("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,c=!1,s=!1,ke()&&(I.style.visibility="hidden"),ft(),Hr(),V(!0),ke()){var Ze=ht(),fi=Ze.box,_r=Ze.content;b.props.animation&&(sv([fi,_r],bt),fh([fi,_r],"hidden"))}X(),Ce(),b.props.animation?ke()&&function Ht(k,se){En(k,function(){!b.state.isVisible&&I.parentNode&&I.parentNode.contains(I)&&se()})}(bt,b.unmount):b.unmount()}},hideWithInteractivity:function gfe(k){dt().addEventListener("mousemove",f),FP(gm,f),f(k)},enable:function ap(){b.state.isEnabled=!0},disable:function KA(){b.hide(),b.state.isEnabled=!1},unmount:function mfe(){b.state.isVisible&&b.hide(),b.state.isMounted&&(JA(),ha().forEach(function(k){k._tippy.unmount()}),I.parentNode&&I.parentNode.removeChild(I),mm=mm.filter(function(k){return k!==b}),b.state.isMounted=!1,W("onHidden",[b]))},destroy:function Afe(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),VA(),delete n._tippy,b.state.isDestroyed=!0,W("onDestroy",[b]))}};if(!e.render)return b;var D=e.render(b),I=D.popper,Q=D.onUpdate;I.setAttribute("data-tippy-root",""),I.id="tippy-"+b.id,b.popper=I,n._tippy=b,I._tippy=b;var O=y.map(function(k){return k.fn(b)}),q=n.hasAttribute("aria-expanded");return Mo(),Ce(),V(),W("onCreate",[b]),e.showOnCreate&&sp(),I.addEventListener("mouseenter",function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()}),I.addEventListener("mouseleave",function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&dt().addEventListener("mousemove",f)}),b;function le(){var k=b.props.touch;return Array.isArray(k)?k:[k,0]}function xe(){return"hold"===le()[0]}function ke(){var k;return!(null==(k=b.props.render)||!k.$$tippy)}function Ae(){return g||n}function dt(){var k=Ae().parentNode;return k?function QP(n){var t,i=Hs(n)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}(k):document}function ht(){return fm(I)}function U(k){return b.state.isMounted&&!b.state.isVisible||fo.isTouch||u&&"focus"===u.type?0:nv(b.props.delay,k?0:1,wi.delay)}function V(k){void 0===k&&(k=!1),I.style.pointerEvents=b.props.interactive&&!k?"":"none",I.style.zIndex=""+b.props.zIndex}function W(k,se,De){var bt;void 0===De&&(De=!0),O.forEach(function(Ze){Ze[k]&&Ze[k].apply(Ze,se)}),De&&(bt=b.props)[k].apply(bt,se)}function X(){var k=b.props.aria;if(k.content){var se="aria-"+k.content,De=I.id;Hs(b.props.triggerTarget||n).forEach(function(Ze){var fi=Ze.getAttribute(se);if(b.state.isVisible)Ze.setAttribute(se,fi?fi+" "+De:De);else{var _r=fi&&fi.replace(De,"").trim();_r?Ze.setAttribute(se,_r):Ze.removeAttribute(se)}})}}function Ce(){!q&&b.props.aria.expanded&&Hs(b.props.triggerTarget||n).forEach(function(se){b.props.interactive?se.setAttribute("aria-expanded",b.state.isVisible&&se===Ae()?"true":"false"):se.removeAttribute("aria-expanded")})}function ft(){dt().removeEventListener("mousemove",f),gm=gm.filter(function(k){return k!==f})}function Bt(k){if(!fo.isTouch||!l&&"mousedown"!==k.type){var se=k.composedPath&&k.composedPath()[0]||k.target;if(!b.props.interactive||!UP(I,se)){if(Hs(b.props.triggerTarget||n).some(function(De){return UP(De,se)})){if(fo.isTouch||b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else W("onClickOutside",[b,k]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),a=!0,setTimeout(function(){a=!1}),b.state.isMounted||Hr())}}}function un(){l=!0}function Xe(){l=!1}function Si(){var k=dt();k.addEventListener("mousedown",Bt,!0),k.addEventListener("touchend",Bt,zs),k.addEventListener("touchstart",Xe,zs),k.addEventListener("touchmove",un,zs)}function Hr(){var k=dt();k.removeEventListener("mousedown",Bt,!0),k.removeEventListener("touchend",Bt,zs),k.removeEventListener("touchstart",Xe,zs),k.removeEventListener("touchmove",un,zs)}function En(k,se){var De=ht().box;function bt(Ze){Ze.target===De&&(av(De,"remove",bt),se())}if(0===k)return se();av(De,"remove",d),av(De,"add",bt),d=bt}function Yi(k,se,De){void 0===De&&(De=!1),Hs(b.props.triggerTarget||n).forEach(function(Ze){Ze.addEventListener(k,se,De),p.push({node:Ze,eventType:k,handler:se,options:De})})}function Mo(){xe()&&(Yi("touchstart",ip,{passive:!0}),Yi("touchend",YA,{passive:!0})),function d7(n){return n.split(/\s+/).filter(Boolean)}(b.props.trigger).forEach(function(k){if("manual"!==k)switch(Yi(k,ip),k){case"mouseenter":Yi("mouseleave",YA);break;case"focus":Yi(_7?"focusout":"blur",rp);break;case"focusin":Yi("focusout",rp)}})}function VA(){p.forEach(function(k){k.node.removeEventListener(k.eventType,k.handler,k.options)}),p=[]}function ip(k){var se,De=!1;if(b.state.isEnabled&&!op(k)&&!a){var bt="focus"===(null==(se=u)?void 0:se.type);u=k,g=k.currentTarget,Ce(),!b.state.isVisible&&function ov(n){return iv(n,"MouseEvent")}(k)&&gm.forEach(function(Ze){return Ze(k)}),"click"===k.type&&(b.props.trigger.indexOf("mouseenter")<0||s)&&!1!==b.props.hideOnClick&&b.state.isVisible?De=!0:sp(k),"click"===k.type&&(s=!De),De&&!bt&&wl(k)}}function GA(k){var se=k.target,De=Ae().contains(se)||I.contains(se);"mousemove"===k.type&&De||function g7(n,t){var e=t.clientX,i=t.clientY;return n.every(function(r){var o=r.popperRect,s=r.popperState,l=r.props.interactiveBorder,c=function RP(n){return n.split("-")[0]}(s.placement),u=s.modifiersData.offset;return!u||o.top-i+("bottom"===c?u.top.y:0)>l||i-o.bottom-("top"===c?u.bottom.y:0)>l||o.left-e+("right"===c?u.left.x:0)>l||e-o.right-("left"===c?u.right.x:0)>l})}(ha().concat(I).map(function(Ze){var fi,Au=null==(fi=Ze._tippy.popperInstance)?void 0:fi.state;return Au?{popperRect:Ze.getBoundingClientRect(),popperState:Au,props:e}:null}).filter(Boolean),k)&&(ft(),wl(k))}function YA(k){if(!(op(k)||b.props.trigger.indexOf("click")>=0&&s)){if(b.props.interactive)return void b.hideWithInteractivity(k);wl(k)}}function rp(k){b.props.trigger.indexOf("focusin")<0&&k.target!==Ae()||b.props.interactive&&k.relatedTarget&&I.contains(k.relatedTarget)||wl(k)}function op(k){return!!fo.isTouch&&xe()!==k.type.indexOf("touch")>=0}function WA(){JA();var k=b.props,se=k.popperOptions,De=k.placement,bt=k.offset,Ze=k.getReferenceClientRect,fi=k.moveTransition,_r=ke()?fm(I).arrow:null,Au=Ze?{getBoundingClientRect:Ze,contextElement:Ze.contextElement||Ae()}:n,Dl=[{name:"offset",options:{offset:bt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!fi}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ZA){var bu=ZA.state;if(ke()){var Sw=ht().box;["placement","reference-hidden","escaped"].forEach(function(eb){"placement"===eb?Sw.setAttribute("data-placement",bu.placement):bu.attributes.popper["data-popper-"+eb]?Sw.setAttribute("data-"+eb,""):Sw.removeAttribute("data-"+eb)}),bu.attributes.popper={}}}}];ke()&&_r&&Dl.push({name:"arrow",options:{element:_r,padding:3}}),Dl.push.apply(Dl,se?.modifiers||[]),b.popperInstance=l7(Au,I,Object.assign({},se,{placement:De,onFirstUpdate:h,modifiers:Dl}))}function JA(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function ha(){return Gc(I.querySelectorAll("[data-tippy-root]"))}function sp(k){b.clearDelayTimeouts(),k&&W("onTrigger",[b,k]),Si();var se=U(!0),De=le(),Ze=De[1];fo.isTouch&&"hold"===De[0]&&Ze&&(se=Ze),se?i=setTimeout(function(){b.show()},se):b.show()}function wl(k){if(b.clearDelayTimeouts(),W("onUntrigger",[b,k]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(k.type)>=0&&s)){var se=U(!1);se?r=setTimeout(function(){b.state.isVisible&&b.hide()},se):o=requestAnimationFrame(function(){b.hide()})}}else Hr()}}function Vs(n,t){void 0===t&&(t={});var e=wi.plugins.concat(t.plugins||[]);!function b7(){document.addEventListener("touchstart",m7,zs),window.addEventListener("blur",A7)}();var i=Object.assign({},t,{plugins:e}),a=function f7(n){return pm(n)?[n]:function p7(n){return iv(n,"NodeList")}(n)?Gc(n):Array.isArray(n)?n:Gc(document.querySelectorAll(n))}(n).reduce(function(l,c){var u=c&&x7(c,i);return u&&l.push(u),l},[]);return pm(n)?a[0]:a}Vs.defaultProps=wi,Vs.setDefaultProps=function(t){Object.keys(t).forEach(function(i){wi[i]=t[i]})},Vs.currentInput=fo,Object.assign({},yP,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}}),Vs.setDefaultProps({render:qP});const Xo=Vs,eF=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function $n(n){return t=>0===n?tg():t.lift(new N7(n))}class N7{constructor(t){if(this.total=t,this.total<0)throw new eF}call(t,e){return e.subscribe(new L7(t,this.total))}}class L7 extends Ge{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}const Hi=function(n){for(var t=0;;t++)if(!(n=n.previousSibling))return t},mh=function(n){let t=n.assignedSlot||n.parentNode;return t&&11==t.nodeType?t.host:t};let tF=null;const Zo=function(n,t,e){let i=tF||(tF=document.createRange());return i.setEnd(n,e??n.nodeValue.length),i.setStart(n,t||0),i},nl=function(n,t,e,i){return e&&(nF(n,t,e,i,-1)||nF(n,t,e,i,1))},Q7=/^(img|br|input|textarea|hr)$/i;function nF(n,t,e,i,r){for(;;){if(n==e&&t==i)return!0;if(t==(r<0?0:go(n))){let o=n.parentNode;if(!o||1!=o.nodeType||j7(n)||Q7.test(n.nodeName)||"false"==n.contentEditable)return!1;t=Hi(n)+(r<0?0:1),n=o}else{if(1!=n.nodeType)return!1;if("false"==(n=n.childNodes[t+(r<0?-1:0)]).contentEditable)return!1;t=r<0?go(n):0}}}function go(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function j7(n){let t;for(let e=n;e&&!(t=e.pmViewDesc);e=e.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==n||t.contentDOM==n)}const bm=function(n){return n.focusNode&&nl(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function Yc(n,t){let e=document.createEvent("Event");return e.initEvent("keydown",!0,!0),e.keyCode=n,e.key=e.code=t,e}const Gs=typeof navigator<"u"?navigator:null,iF=typeof document<"u"?document:null,Ys=Gs&&Gs.userAgent||"",uv=/Edge\/(\d+)/.exec(Ys),rF=/MSIE \d/.exec(Ys),dv=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ys),Di=!!(rF||dv||uv),Ws=rF?document.documentMode:dv?+dv[1]:uv?+uv[1]:0,Nr=!Di&&/gecko\/(\d+)/i.test(Ys);Nr&&/Firefox\/(\d+)/.exec(Ys);const hv=!Di&&/Chrome\/(\d+)/.exec(Ys),Ii=!!hv,H7=hv?+hv[1]:0,ui=!Di&&!!Gs&&/Apple Computer/.test(Gs.vendor),Wc=ui&&(/Mobile\/\w+/.test(Ys)||!!Gs&&Gs.maxTouchPoints>2),fr=Wc||!!Gs&&/Mac/.test(Gs.platform),mo=/Android \d/.test(Ys),ym=!!iF&&"webkitFontSmoothing"in iF.documentElement.style,V7=ym?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function G7(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function Js(n,t){return"number"==typeof n?n:n[t]}function Y7(n){let t=n.getBoundingClientRect();return{left:t.left,right:t.left+n.clientWidth*(t.width/n.offsetWidth||1),top:t.top,bottom:t.top+n.clientHeight*(t.height/n.offsetHeight||1)}}function oF(n,t,e){let i=n.someProp("scrollThreshold")||0,r=n.someProp("scrollMargin")||5,o=n.dom.ownerDocument;for(let s=e||n.dom;s;s=mh(s)){if(1!=s.nodeType)continue;let a=s,l=a==o.body,c=l?G7(o):Y7(a),u=0,d=0;if(t.topc.bottom-Js(i,"bottom")&&(d=t.bottom-c.bottom+Js(r,"bottom")),t.leftc.right-Js(i,"right")&&(u=t.right-c.right+Js(r,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let h=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let f=a.scrollLeft-h,g=a.scrollTop-p;t={left:t.left-f,top:t.top-g,right:t.right-f,bottom:t.bottom-g}}if(l)break}}function sF(n){let t=[],e=n.ownerDocument;for(let i=n;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),n!=e);i=mh(i));return t}function aF(n,t){for(let e=0;e=a){s=Math.max(h.bottom,s),a=Math.min(h.top,a);let p=h.left>t.left?h.left-t.left:h.right=(h.left+h.right)/2?1:0));continue}}!e&&(t.left>=h.right&&t.top>=h.top||t.left>=h.left&&t.top>=h.bottom)&&(o=c+1)}}return e&&3==e.nodeType?function $7(n,t){let e=n.nodeValue.length,i=document.createRange();for(let r=0;r=(o.left+o.right)/2?1:0)}}return{node:n,offset:0}}(e,r):!e||i&&1==e.nodeType?{node:n,offset:o}:lF(e,r)}function pv(n,t){return n.left>=t.left-1&&n.left<=t.right+1&&n.top>=t.top-1&&n.top<=t.bottom+1}function cF(n,t,e){let i=n.childNodes.length;if(i&&e.topt.top&&r++}i==n.dom&&r==i.childNodes.length-1&&1==i.lastChild.nodeType&&t.top>i.lastChild.getBoundingClientRect().bottom?s=n.state.doc.content.size:(0==r||1!=i.nodeType||"BR"!=i.childNodes[r-1].nodeName)&&(s=function Z7(n,t,e,i){let r=-1;for(let o=t;o!=n.dom;){let s=n.docView.nearestDesc(o,!0);if(!s)return null;if(s.node.isBlock&&s.parent){let a=s.dom.getBoundingClientRect();if(a.left>i.left||a.top>i.top)r=s.posBefore;else{if(!(a.right-1?r:n.docView.posFromDOM(t,e,1)}(n,i,r,t))}null==s&&(s=function X7(n,t,e){let{node:i,offset:r}=lF(t,e),o=-1;if(1==i.nodeType&&!i.firstChild){let s=i.getBoundingClientRect();o=s.left!=s.right&&e.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(i,r,o)}(n,o,t));let a=n.docView.nearestDesc(o,!0);return{pos:s,inside:a?a.posAtStart-a.border:-1}}function Ks(n,t){let e=n.getClientRects();return e.length?e[t<0?0:e.length-1]:n.getBoundingClientRect()}const tX=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function uF(n,t,e){let{node:i,offset:r,atom:o}=n.docView.domFromPos(t,e<0?-1:1),s=ym||Nr;if(3==i.nodeType){if(!s||!tX.test(i.nodeValue)&&(e<0?r:r!=i.nodeValue.length)){let l=r,c=r,u=e<0?1:-1;return e<0&&!r?(c++,u=-1):e>=0&&r==i.nodeValue.length?(l--,u=1):e<0?l--:c++,Ah(Ks(Zo(i,l,c),1),u<0)}{let l=Ks(Zo(i,r,r),e);if(Nr&&r&&/\s/.test(i.nodeValue[r-1])&&r=0)}if(null==o&&r&&(e<0||r==go(i))){let l=i.childNodes[r-1],c=3==l.nodeType?Zo(l,go(l)-(s?0:1)):1!=l.nodeType||"BR"==l.nodeName&&l.nextSibling?null:l;if(c)return Ah(Ks(c,1),!1)}if(null==o&&r=0)}function Ah(n,t){if(0==n.width)return n;let e=t?n.left:n.right;return{top:n.top,bottom:n.bottom,left:e,right:e}}function fv(n,t){if(0==n.height)return n;let e=t?n.top:n.bottom;return{top:e,bottom:e,left:n.left,right:n.right}}function dF(n,t,e){let i=n.state,r=n.root.activeElement;i!=t&&n.updateState(t),r!=n.dom&&n.focus();try{return e()}finally{i!=t&&n.updateState(i),r!=n.dom&&r&&r.focus()}}const iX=/[\u0590-\u08ac]/;let hF=null,pF=null,fF=!1;class bh{constructor(t,e,i,r){this.parent=t,this.children=e,this.dom=i,this.contentDOM=r,this.dirty=0,i.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,i){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;eHi(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=2&t.compareDocumentPosition(this.contentDOM);else if(this.dom.firstChild){if(0==e)for(let o=t;;o=o.parentNode){if(o==this.dom){r=!1;break}if(o.previousSibling)break}if(null==r&&e==t.childNodes.length)for(let o=t;;o=o.parentNode){if(o==this.dom){r=!0;break}if(o.nextSibling)break}}return r??i>0?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let i=!0,r=t;r;r=r.parentNode){let s,o=this.getDesc(r);if(o&&(!e||o.node)){if(!i||!(s=o.nodeDOM)||(1==s.nodeType?s.contains(1==t.nodeType?t:t.parentNode):s==t))return o;i=!1}}}getDesc(t){let e=t.pmViewDesc;for(let i=e;i;i=i.parent)if(i==this)return e}posFromDOM(t,e,i){for(let r=t;r;r=r.parentNode){let o=this.getDesc(r);if(o)return o.localPosFromDOM(t,e,i)}return-1}descAt(t){for(let e=0,i=0;et||s instanceof bF){r=t-o;break}o=a}if(r)return this.children[i].domFromPos(r-this.children[i].border,e);for(;i&&!(o=this.children[i-1]).size&&o instanceof mF&&o.side>=0;i--);if(e<=0){let o,s=!0;for(;o=i?this.children[i-1]:null,o&&o.dom.parentNode!=this.contentDOM;i--,s=!1);return o&&e&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,e):{node:this.contentDOM,offset:o?Hi(o.dom)+1:0}}{let o,s=!0;for(;o=i=u&&e<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(t,e,u);t=s;for(let d=a;d>0;d--){let h=this.children[d-1];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(1)){r=Hi(h.dom)+1;break}t-=h.size}-1==r&&(r=0)}if(r>-1&&(c>e||a==this.children.length-1)){e=c;for(let u=a+1;up&&se){let p=a;a=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(t){return!this.contentDOM&&"selection"!=t.type}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let i=0,r=0;r=i:ti){let a=i+o.border,l=s-o.border;if(t>=a&&e<=l)return this.dirty=t==i||e==s?2:1,void(t!=a||e!=l||!o.contentLost&&o.dom.parentNode==this.contentDOM?o.markDirty(t-a,e-a):o.dirty=3);o.dirty=o.dom!=o.contentDOM||o.dom.parentNode!=this.contentDOM||o.children.length?3:2}i=s}this.dirty=2}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let i=1==t?2:1;e.dirtyo?o.parent?o.parent.posBeforeChild(o):void 0:r)),!e.type.spec.raw){if(1!=s.nodeType){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(t,[],s,null),this.widget=e,this.widget=e,o=this}matchesWidget(t){return 0==this.dirty&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return!!e&&e(t)}ignoreMutation(t){return"selection"!=t.type||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class sX extends bh{constructor(t,e,i,r){super(t,[],e,null),this.textDOM=i,this.text=r}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return"characterData"===t.type&&t.target.nodeValue==t.oldValue}}class il extends bh{constructor(t,e,i,r){super(t,[],i,r),this.mark=e}static create(t,e,i,r){let o=r.nodeViews[e.type.name],s=o&&o(e,r,i);return(!s||!s.dom)&&(s=co.renderSpec(document,e.type.spec.toDOM(e,i))),new il(t,e,s.dom,s.contentDOM||s.dom)}parseRule(){return 3&this.dirty||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM||void 0}}matchesMark(t){return 3!=this.dirty&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),0!=this.dirty){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty0&&(o=Av(o,0,t,i));for(let a=0;al?l.parent?l.parent.posBeforeChild(l):void 0:s,i,r),u=c&&c.dom,d=c&&c.contentDOM;if(e.isText)if(u){if(3!=u.nodeType)throw new RangeError("Text must be rendered as a DOM text node")}else u=document.createTextNode(e.text);else u||({dom:u,contentDOM:d}=co.renderSpec(document,e.type.spec.toDOM(e)));!d&&!e.isText&&"BR"!=u.nodeName&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),e.type.spec.draggable&&(u.draggable=!0));let h=u;return u=EF(u,i,e),c?l=new aX(t,e,i,r,u,d||null,h,c,o,s+1):e.isText?new _m(t,e,i,r,u,h,o):new rl(t,e,i,r,u,d||null,h,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if("pre"==this.node.type.whitespace&&(t.preserveWhitespace="full"),this.contentDOM)if(this.contentLost){for(let e=this.children.length-1;e>=0;e--){let i=this.children[e];if(this.dom.contains(i.dom.parentNode)){t.contentElement=i.dom.parentNode;break}}t.contentElement||(t.getContent=()=>L.empty)}else t.contentElement=this.contentDOM;else t.getContent=()=>this.node.content;return t}matchesNode(t,e,i){return 0==this.dirty&&t.eq(this.node)&&mv(e,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let i=this.node.inlineContent,r=e,o=t.composing?this.localCompositionInfo(t,e):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new cX(this,s&&s.node,t);(function hX(n,t,e,i){let r=t.locals(n),o=0;if(0==r.length){for(let c=0;co;)a.push(r[s++]);let h=o+u.nodeSize;if(u.isText){let f=h;s!f.inline):a.slice(),t.forChild(o,u),d),o=h}})(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,i,t):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?Tt.none:this.node.child(u).marks,i,t),l.placeWidget(c,t,r)},(c,u,d,h)=>{let p;l.syncToMarks(c.marks,i,t),l.findNodeMatch(c,u,d,h)||a&&t.state.selection.from>r&&t.state.selection.to-1&&l.updateNodeAt(c,u,d,p,t)||l.updateNextNode(c,u,d,t,h)||l.addNode(c,u,d,t,r),r+=c.nodeSize}),l.syncToMarks([],i,t),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||2==this.dirty)&&(s&&this.protectLocalComposition(t,s),yF(this.contentDOM,this.children,t),Wc&&function pX(n){if("UL"==n.nodeName||"OL"==n.nodeName){let t=n.style.cssText;n.style.cssText=t+"; list-style: square !important",window.getComputedStyle(n),n.style.cssText=t}}(this.dom))}localCompositionInfo(t,e){let{from:i,to:r}=t.state.selection;if(!(t.state.selection instanceof Ee)||ie+this.node.content.size)return null;let o=t.domSelectionRange(),s=function fX(n,t){for(;;){if(3==n.nodeType)return n;if(1==n.nodeType&&t>0){if(n.childNodes.length>t&&3==n.childNodes[t].nodeType)return n.childNodes[t];t=go(n=n.childNodes[t-1])}else{if(!(1==n.nodeType&&t=e){let c=a=0&&c+t.length+a>=e)return a+c;if(e==i&&l.length>=i+t.length-a&&l.slice(i-a,i-a+t.length)==t)return i}}return-1}(this.node.content,a,i-e,r-e);return l<0?null:{node:s,pos:l,text:a}}return{node:s,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:i,text:r}){if(this.getDesc(e))return;let o=e;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new sX(this,o,e,r);t.input.compositionNodes.push(s),this.children=Av(this.children,i,i+r.length,t,s)}update(t,e,i,r){return!(3==this.dirty||!t.sameMarkup(this.node)||(this.updateInner(t,e,i,r),0))}updateInner(t,e,i,r){this.updateOuterDeco(e),this.node=t,this.innerDeco=i,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=0}updateOuterDeco(t){if(mv(t,this.outerDeco))return;let e=1!=this.nodeDOM.nodeType,i=this.dom;this.dom=_F(this.dom,this.nodeDOM,gv(this.outerDeco,this.node,e),gv(t,this.node,e)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){1==this.nodeDOM.nodeType&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function AF(n,t,e,i,r){return EF(i,t,n),new rl(void 0,n,t,e,i,i,i,r,0)}class _m extends rl{constructor(t,e,i,r,o,s,a){super(t,e,i,r,o,null,s,a,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,i,r){return!(3==this.dirty||0!=this.dirty&&!this.inParent()||!t.sameMarkup(this.node)||(this.updateOuterDeco(e),(0!=this.dirty||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=0,0))}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,i){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,i)}ignoreMutation(t){return"characterData"!=t.type&&"selection"!=t.type}slice(t,e,i){let r=this.node.cut(t,e),o=document.createTextNode(r.text);return new _m(this.parent,r,this.outerDeco,this.innerDeco,o,o,i)}markDirty(t,e){super.markDirty(t,e),this.dom!=this.nodeDOM&&(0==t||e==this.nodeDOM.nodeValue.length)&&(this.dirty=3)}get domAtom(){return!1}}class bF extends bh{parseRule(){return{ignore:!0}}matchesHack(t){return 0==this.dirty&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return"IMG"==this.dom.nodeName}}class aX extends rl{constructor(t,e,i,r,o,s,a,l,c,u){super(t,e,i,r,o,s,a,c,u),this.spec=l}update(t,e,i,r){if(3==this.dirty)return!1;if(this.spec.update){let o=this.spec.update(t,e,i);return o&&this.updateInner(t,e,i,r),o}return!(!this.contentDOM&&!t.isLeaf)&&super.update(t,e,i,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,i,r){this.spec.setSelection?this.spec.setSelection(t,e,i):super.setSelection(t,e,i,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return!!this.spec.stopEvent&&this.spec.stopEvent(t)}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function yF(n,t,e){let i=n.firstChild,r=!1;for(let o=0;o0;){let a;for(;;)if(i){let c=e.children[i-1];if(!(c instanceof il)){a=c,i--;break}e=c,i=c.children.length}else{if(e==t)break e;i=e.parent.children.indexOf(e),e=e.parent}let l=a.node;if(l){if(l!=n.child(r-1))break;--r,o.set(a,r),s.push(a)}}return{index:r,matched:o,matches:s.reverse()}}(t.node.content,t)}destroyBetween(t,e){if(t!=e){for(let i=t;i>1,s=Math.min(o,t.length);for(;r-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=il.create(this.top,t[o],e,i);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(t,e,i,r){let s,o=-1;if(r>=this.preMatch.index&&(s=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&s.matchesNode(t,e,i))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a=e||u<=t?o.push(l):(ce&&o.push(l.slice(e-c,l.size,i)))}return o}function bv(n,t=null){let e=n.domSelectionRange(),i=n.state.doc;if(!e.focusNode)return null;let r=n.docView.nearestDesc(e.focusNode),o=r&&0==r.size,s=n.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(s<0)return null;let l,c,a=i.resolve(s);if(bm(e)){for(l=a;r&&!r.node;)r=r.parent;let u=r.node;if(r&&u.isAtom&&ce.isSelectable(u)&&r.parent&&(!u.isInline||!function U7(n,t,e){for(let i=0==t,r=t==go(n);i||r;){if(n==e)return!0;let o=Hi(n);if(!(n=n.parentNode))return!1;i=i&&0==o,r=r&&o==go(n)}}(e.focusNode,e.focusOffset,r.dom))){let d=r.posBefore;c=new ce(s==d?a:i.resolve(d))}}else{let u=n.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(u<0)return null;l=i.resolve(u)}return c||(c=_v(n,l,a,"pointer"==t||n.state.selection.head{(e.anchorNode!=i||e.anchorOffset!=r)&&(t.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!vF(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const MF=ui||Ii&&H7<63;function wF(n,t){let{node:e,offset:i}=n.docView.domFromPos(t,0),r=ir(n,t,e))||Ee.between(t,e,i)}function xF(n){return!(n.editable&&!n.hasFocus())&&TF(n)}function TF(n){let t=n.domSelectionRange();if(!t.anchorNode)return!1;try{return n.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(n.editable||n.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function Ev(n,t){let{$anchor:e,$head:i}=n.selection,r=t>0?e.max(i):e.min(i),o=r.parent.inlineContent?r.depth?n.doc.resolve(t>0?r.after():r.before()):null:r;return o&&_e.findFrom(o,t)}function sl(n,t){return n.dispatch(n.state.tr.setSelection(t).scrollIntoView()),!0}function BF(n,t,e){let i=n.state.selection;if(!(i instanceof Ee)){if(i instanceof ce&&i.node.isInline)return sl(n,new Ee(t>0?i.$to:i.$from));{let r=Ev(n.state,t);return!!r&&sl(n,r)}}if(!i.empty||e.indexOf("s")>-1)return!1;if(n.endOfTextblock(t>0?"right":"left")){let r=Ev(n.state,t);return!!(r&&r instanceof ce)&&sl(n,r)}if(!(fr&&e.indexOf("m")>-1)){let s,r=i.$head,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText)return!1;let a=t<0?r.pos-o.nodeSize:r.pos;return!!(o.isAtom||(s=n.docView.descAt(a))&&!s.contentDOM)&&(ce.isSelectable(o)?sl(n,new ce(t<0?n.state.doc.resolve(r.pos-o.nodeSize):r)):!!ym&&sl(n,new Ee(n.state.doc.resolve(t<0?a:a+o.nodeSize))))}}function Em(n){return 3==n.nodeType?n.nodeValue.length:n.childNodes.length}function _h(n){let t=n.pmViewDesc;return t&&0==t.size&&(n.nextSibling||"BR"!=n.nodeName)}function Cv(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let r,o,s=!1;for(Nr&&1==e.nodeType&&i0){if(1!=e.nodeType)break;{let a=e.childNodes[i-1];if(_h(a))r=e,o=--i;else{if(3!=a.nodeType)break;e=a,i=e.nodeValue.length}}}else{if(OF(e))break;{let a=e.previousSibling;for(;a&&_h(a);)r=e.parentNode,o=Hi(a),a=a.previousSibling;if(a)e=a,i=Em(e);else{if(e=e.parentNode,e==n.dom)break;i=0}}}s?Mv(n,e,i):r&&Mv(n,r,o)}function vv(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let o,s,r=Em(e);for(;;)if(i{n.state==r&&es(n)},50)}function kF(n,t,e){let i=n.state.selection;if(i instanceof Ee&&!i.empty||e.indexOf("s")>-1||fr&&e.indexOf("m")>-1)return!1;let{$from:r,$to:o}=i;if(!r.parent.inlineContent||n.endOfTextblock(t<0?"up":"down")){let s=Ev(n.state,t);if(s&&s instanceof ce)return sl(n,s)}if(!r.parent.inlineContent){let s=t<0?r:o,a=i instanceof zi?_e.near(s,t):_e.findFrom(s,t);return!!a&&sl(n,a)}return!1}function PF(n,t){if(!(n.state.selection instanceof Ee))return!0;let{$head:e,$anchor:i,empty:r}=n.state.selection;if(!e.sameParent(i))return!0;if(!r)return!1;if(n.endOfTextblock(t>0?"forward":"backward"))return!0;let o=!e.textOffset&&(t<0?e.nodeBefore:e.nodeAfter);if(o&&!o.isText){let s=n.state.tr;return t<0?s.delete(e.pos-o.nodeSize,e.pos):s.delete(e.pos,e.pos+o.nodeSize),n.dispatch(s),!0}return!1}function FF(n,t,e){n.domObserver.stop(),t.contentEditable=e,n.domObserver.start()}function RF(n,t){n.someProp("transformCopied",p=>{t=p(t,n)});let e=[],{content:i,openStart:r,openEnd:o}=t;for(;r>1&&o>1&&1==i.childCount&&1==i.firstChild.childCount;){r--,o--;let p=i.firstChild;e.push(p.type.name,p.attrs!=p.type.defaultAttrs?p.attrs:null),i=p.content}let s=n.someProp("clipboardSerializer")||co.fromSchema(n.state.schema),a=VF(),l=a.createElement("div");l.appendChild(s.serializeFragment(i,{document:a}));let u,c=l.firstChild,d=0;for(;c&&1==c.nodeType&&(u=zF[c.nodeName.toLowerCase()]);){for(let p=u.length-1;p>=0;p--){let f=a.createElement(u[p]);for(;l.firstChild;)f.appendChild(l.firstChild);l.appendChild(f),d++}c=l.firstChild}return c&&1==c.nodeType&&c.setAttribute("data-pm-slice",`${r} ${o}${d?` -${d}`:""} ${JSON.stringify(e)}`),{dom:l,text:n.someProp("clipboardTextSerializer",p=>p(t,n))||t.content.textBetween(0,t.content.size,"\n\n")}}function NF(n,t,e,i,r){let s,a,o=r.parent.type.spec.code;if(!e&&!t)return null;let l=t&&(i||o||!e);if(l){if(n.someProp("transformPastedText",h=>{t=h(t,o||i,n)}),o)return t?new G(L.from(n.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):G.empty;let d=n.someProp("clipboardTextParser",h=>h(t,r,i,n));if(d)a=d;else{let h=r.marks(),{schema:p}=n.state,f=co.fromSchema(p);s=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(g=>{let m=s.appendChild(document.createElement("p"));g&&m.appendChild(f.serializeNode(p.text(g,h)))})}}else n.someProp("transformPastedHTML",d=>{e=d(e,n)}),s=function MX(n){let t=/^(\s*]*>)*/.exec(n);t&&(n=n.slice(t[0].length));let r,e=VF().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(n);if((r=i&&zF[i[1].toLowerCase()])&&(n=r.map(o=>"<"+o+">").join("")+n+r.map(o=>"").reverse().join("")),e.innerHTML=n,r)for(let o=0;o0;d--){let h=s.firstChild;for(;h&&1!=h.nodeType;)h=h.nextSibling;if(!h)break;s=h}if(a||(a=(n.someProp("clipboardParser")||n.someProp("domParser")||kc.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!(!l&&!u),context:r,ruleFromNode:h=>"BR"!=h.nodeName||h.nextSibling||!h.parentNode||CX.test(h.parentNode.nodeName)?null:{ignore:!0}})),u)a=function DX(n,t){if(!n.size)return n;let i,e=n.content.firstChild.type.schema;try{i=JSON.parse(t)}catch{return n}let{content:r,openStart:o,openEnd:s}=n;for(let a=i.length-2;a>=0;a-=2){let l=e.nodes[i[a]];if(!l||l.hasRequiredAttrs())break;r=L.from(l.create(i[a+1],r)),o++,s++}return new G(r,o,s)}(jF(a,+u[1],+u[2]),u[4]);else if(a=G.maxOpen(function vX(n,t){if(n.childCount<2)return n;for(let e=t.depth;e>=0;e--){let o,r=t.node(e).contentMatchAt(t.index(e)),s=[];if(n.forEach(a=>{if(!s)return;let c,l=r.findWrapping(a.type);if(!l)return s=null;if(c=s.length&&o.length&&QF(l,o,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=UF(s[s.length-1],o.length));let u=LF(a,l);s.push(u),r=r.matchType(u.type),o=l}}),s)return L.from(s)}return n}(a.content,r),!0),a.openStart||a.openEnd){let d=0,h=0;for(let p=a.content.firstChild;d{a=d(a,n)}),a}const CX=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function LF(n,t,e=0){for(let i=t.length-1;i>=e;i--)n=t[i].create(null,L.from(n));return n}function QF(n,t,e,i,r){if(r=e&&(a=t<0?s.contentMatchAt(0).fillBefore(a,n.childCount>1||o<=r).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(L.empty,!0))),n.replaceChild(t<0?0:n.childCount-1,s.copy(a))}function jF(n,t,e){return t{for(let e in t)n.input.eventHandlers[e]||n.dom.addEventListener(e,n.input.eventHandlers[e]=i=>Iv(n,i))})}function Iv(n,t){return n.someProp("handleDOMEvents",e=>{let i=e[t.type];return!!i&&(i(n,t)||t.defaultPrevented)})}function BX(n,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target;e!=n.dom;e=e.parentNode)if(!e||11==e.nodeType||e.pmViewDesc&&e.pmViewDesc.stopEvent(t))return!1;return!0}function Cm(n){return{left:n.clientX,top:n.clientY}}function Sv(n,t,e,i,r){if(-1==i)return!1;let o=n.state.doc.resolve(i);for(let s=o.depth+1;s>0;s--)if(n.someProp(t,a=>s>o.depth?a(n,e,o.nodeAfter,o.before(s),r,!0):a(n,e,o.node(s),o.before(s),r,!1)))return!0;return!1}function $c(n,t,e){n.focused||n.focus();let i=n.state.tr.setSelection(t);"pointer"==e&&i.setMeta("pointer",!0),n.dispatch(i)}function NX(n,t,e,i){return Sv(n,"handleDoubleClickOn",t,e,i)||n.someProp("handleDoubleClick",r=>r(n,t,i))}function LX(n,t,e,i){return Sv(n,"handleTripleClickOn",t,e,i)||n.someProp("handleTripleClick",r=>r(n,t,i))||function QX(n,t,e){if(0!=e.button)return!1;let i=n.state.doc;if(-1==t)return!!i.inlineContent&&($c(n,Ee.create(i,0,i.content.size),"pointer"),!0);let r=i.resolve(t);for(let o=r.depth+1;o>0;o--){let s=o>r.depth?r.nodeAfter:r.node(o),a=r.before(o);if(s.inlineContent)$c(n,Ee.create(i,a+1,a+1+s.content.size),"pointer");else{if(!ce.isSelectable(s))continue;$c(n,ce.create(i,a),"pointer")}return!0}}(n,e,i)}function xv(n){return vm(n)}hi.keydown=(n,t)=>{let e=t;if(n.input.shiftKey=16==e.keyCode||e.shiftKey,!YF(n,e)&&(n.input.lastKeyCode=e.keyCode,n.input.lastKeyCodeTime=Date.now(),!mo||!Ii||13!=e.keyCode))if(229!=e.keyCode&&n.domObserver.forceFlush(),!Wc||13!=e.keyCode||e.ctrlKey||e.altKey||e.metaKey)n.someProp("handleKeyDown",i=>i(n,e))||function EX(n,t){let e=t.keyCode,i=function _X(n){let t="";return n.ctrlKey&&(t+="c"),n.metaKey&&(t+="m"),n.altKey&&(t+="a"),n.shiftKey&&(t+="s"),t}(t);return 8==e||fr&&72==e&&"c"==i?PF(n,-1)||Cv(n):46==e||fr&&68==e&&"c"==i?PF(n,1)||vv(n):13==e||27==e||(37==e||fr&&66==e&&"c"==i?BF(n,-1,i)||Cv(n):39==e||fr&&70==e&&"c"==i?BF(n,1,i)||vv(n):38==e||fr&&80==e&&"c"==i?kF(n,-1,i)||Cv(n):40==e||fr&&78==e&&"c"==i?function yX(n){if(!ui||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:e}=n.domSelectionRange();if(t&&1==t.nodeType&&0==e&&t.firstChild&&"false"==t.firstChild.contentEditable){let i=t.firstChild;FF(n,i,"true"),setTimeout(()=>FF(n,i,"false"),20)}return!1}(n)||kF(n,1,i)||vv(n):i==(fr?"m":"c")&&(66==e||73==e||89==e||90==e))}(n,e)?e.preventDefault():$s(n,"key");else{let i=Date.now();n.input.lastIOSEnter=i,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==i&&(n.someProp("handleKeyDown",r=>r(n,Yc(13,"Enter"))),n.input.lastIOSEnter=0)},200)}},hi.keyup=(n,t)=>{16==t.keyCode&&(n.input.shiftKey=!1)},hi.keypress=(n,t)=>{let e=t;if(YF(n,e)||!e.charCode||e.ctrlKey&&!e.altKey||fr&&e.metaKey)return;if(n.someProp("handleKeyPress",r=>r(n,e)))return void e.preventDefault();let i=n.state.selection;if(!(i instanceof Ee&&i.$from.sameParent(i.$to))){let r=String.fromCharCode(e.charCode);n.someProp("handleTextInput",o=>o(n,i.$from.pos,i.$to.pos,r))||n.dispatch(n.state.tr.insertText(r).scrollIntoView()),e.preventDefault()}};const GF=fr?"metaKey":"ctrlKey";di.mousedown=(n,t)=>{let e=t;n.input.shiftKey=e.shiftKey;let i=xv(n),r=Date.now(),o="singleClick";r-n.input.lastClick.time<500&&function kX(n,t){let e=t.x-n.clientX,i=t.y-n.clientY;return e*e+i*i<100}(e,n.input.lastClick)&&!e[GF]&&("singleClick"==n.input.lastClick.type?o="doubleClick":"doubleClick"==n.input.lastClick.type&&(o="tripleClick")),n.input.lastClick={time:r,x:e.clientX,y:e.clientY,type:o};let s=n.posAtCoords(Cm(e));!s||("singleClick"==o?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new UX(n,s,e,!!i)):("doubleClick"==o?NX:LX)(n,s.pos,s.inside,e)?e.preventDefault():$s(n,"pointer"))};class UX{constructor(t,e,i,r){let o,s;if(this.view=t,this.pos=e,this.event=i,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!i[GF],this.allowDefault=i.shiftKey,e.inside>-1)o=t.state.doc.nodeAt(e.inside),s=e.inside;else{let u=t.state.doc.resolve(e.pos);o=u.parent,s=u.depth?u.before():0}const a=r?null:i.target,l=a?t.docView.nearestDesc(a,!0):null;this.target=l?l.dom:null;let{selection:c}=t.state;(0==i.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||c instanceof ce&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!Nr||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),$s(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>es(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(Cm(t))),this.updateAllowDefault(t),this.allowDefault||!e?$s(this.view,"pointer"):function RX(n,t,e,i,r){return Sv(n,"handleClickOn",t,e,i)||n.someProp("handleClick",o=>o(n,t,i))||(r?function FX(n,t){if(-1==t)return!1;let i,r,e=n.state.selection;e instanceof ce&&(i=e.node);let o=n.state.doc.resolve(t);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(ce.isSelectable(a)){r=i&&e.$from.depth>0&&s>=e.$from.depth&&o.before(e.$from.depth+1)==e.$from.pos?o.before(e.$from.depth):o.before(s);break}}return null!=r&&($c(n,ce.create(n.state.doc,r),"pointer"),!0)}(n,e):function PX(n,t){if(-1==t)return!1;let e=n.state.doc.resolve(t),i=e.nodeAfter;return!!(i&&i.isAtom&&ce.isSelectable(i))&&($c(n,new ce(e),"pointer"),!0)}(n,e))}(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():0==t.button&&(this.flushed||ui&&this.mightDrag&&!this.mightDrag.node.isAtom||Ii&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?($c(this.view,_e.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):$s(this.view,"pointer")}move(t){this.updateAllowDefault(t),$s(this.view,"pointer"),0==t.buttons&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}function YF(n,t){return!!n.composing||!!(ui&&Math.abs(t.timeStamp-n.input.compositionEndedAt)<500)&&(n.input.compositionEndedAt=-2e8,!0)}di.touchstart=n=>{n.input.lastTouch=Date.now(),xv(n),$s(n,"pointer")},di.touchmove=n=>{n.input.lastTouch=Date.now(),$s(n,"pointer")},di.contextmenu=n=>xv(n);const jX=mo?5e3:-1;function WF(n,t){clearTimeout(n.input.composingTimeout),t>-1&&(n.input.composingTimeout=setTimeout(()=>vm(n),t))}function JF(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=function zX(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function vm(n,t=!1){if(!(mo&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),JF(n),t||n.docView&&n.docView.dirty){let e=bv(n);return e&&!e.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(e)):n.updateState(n.state),!0}return!1}}hi.compositionstart=hi.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:t}=n,e=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some(i=>!1===i.type.spec.inclusive)))n.markCursor=n.state.storedMarks||e.marks(),vm(n,!0),n.markCursor=null;else if(vm(n),Nr&&t.selection.empty&&e.parentOffset&&!e.textOffset&&e.nodeBefore.marks.length){let i=n.domSelectionRange();for(let r=i.focusNode,o=i.focusOffset;r&&1==r.nodeType&&0!=o;){let s=o<0?r.lastChild:r.childNodes[o-1];if(!s)break;if(3==s.nodeType){n.domSelection().collapse(s,s.nodeValue.length);break}r=s,o=-1}}n.input.composing=!0}WF(n,jX)},hi.compositionend=(n,t)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=t.timeStamp,WF(n,20))};const qc=Di&&Ws<15||Wc&&V7<604;function Tv(n,t,e,i){let r=NF(n,t,e,n.input.shiftKey,n.state.selection.$from);if(n.someProp("handlePaste",a=>a(n,i,r||G.empty)))return!0;if(!r)return!1;let o=function VX(n){return 0==n.openStart&&0==n.openEnd&&1==n.content.childCount?n.content.firstChild:null}(r),s=o?n.state.tr.replaceSelectionWith(o,n.input.shiftKey):n.state.tr.replaceSelection(r);return n.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}di.copy=hi.cut=(n,t)=>{let e=t,i=n.state.selection,r="cut"==e.type;if(i.empty)return;let o=qc?null:e.clipboardData,s=i.content(),{dom:a,text:l}=RF(n,s);o?(e.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):function HX(n,t){if(!n.dom.parentNode)return;let e=n.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(t),e.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),r=document.createRange();r.selectNodeContents(t),n.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),n.focus()},50)}(n,a),r&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},hi.paste=(n,t)=>{let e=t;if(n.composing&&!mo)return;let i=qc?null:e.clipboardData;i&&Tv(n,i.getData("text/plain"),i.getData("text/html"),e)?e.preventDefault():function GX(n,t){if(!n.dom.parentNode)return;let e=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,i=n.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{n.focus(),i.parentNode&&i.parentNode.removeChild(i),e?Tv(n,i.value,null,t):Tv(n,i.textContent,i.innerHTML,t)},50)}(n,e)};class YX{constructor(t,e){this.slice=t,this.move=e}}const KF=fr?"altKey":"ctrlKey";di.dragstart=(n,t)=>{let e=t,i=n.input.mouseDown;if(i&&i.done(),!e.dataTransfer)return;let r=n.state.selection,o=r.empty?null:n.posAtCoords(Cm(e));if(!(o&&o.pos>=r.from&&o.pos<=(r instanceof ce?r.to-1:r.to)))if(i&&i.mightDrag)n.dispatch(n.state.tr.setSelection(ce.create(n.state.doc,i.mightDrag.pos)));else if(e.target&&1==e.target.nodeType){let c=n.docView.nearestDesc(e.target,!0);c&&c.node.type.spec.draggable&&c!=n.docView&&n.dispatch(n.state.tr.setSelection(ce.create(n.state.doc,c.posBefore)))}let s=n.state.selection.content(),{dom:a,text:l}=RF(n,s);e.dataTransfer.clearData(),e.dataTransfer.setData(qc?"Text":"text/html",a.innerHTML),e.dataTransfer.effectAllowed="copyMove",qc||e.dataTransfer.setData("text/plain",l),n.dragging=new YX(s,!e[KF])},di.dragend=n=>{let t=n.dragging;window.setTimeout(()=>{n.dragging==t&&(n.dragging=null)},50)},hi.dragover=hi.dragenter=(n,t)=>t.preventDefault(),hi.drop=(n,t)=>{let e=t,i=n.dragging;if(n.dragging=null,!e.dataTransfer)return;let r=n.posAtCoords(Cm(e));if(!r)return;let o=n.state.doc.resolve(r.pos),s=i&&i.slice;s?n.someProp("transformPasted",f=>{s=f(s,n)}):s=NF(n,e.dataTransfer.getData(qc?"Text":"text/plain"),qc?null:e.dataTransfer.getData("text/html"),!1,o);let a=!(!i||e[KF]);if(n.someProp("handleDrop",f=>f(n,e,s||G.empty,a)))return void e.preventDefault();if(!s)return;e.preventDefault();let l=s?Kk(n.state.doc,o.pos,s):o.pos;null==l&&(l=o.pos);let c=n.state.tr;a&&c.deleteSelection();let u=c.mapping.map(l),d=0==s.openStart&&0==s.openEnd&&1==s.content.childCount,h=c.doc;if(d?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(h))return;let p=c.doc.resolve(u);if(d&&ce.isSelectable(s.content.firstChild)&&p.nodeAfter&&p.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new ce(p));else{let f=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((g,m,A,y)=>f=y),c.setSelection(_v(n,p,c.doc.resolve(f)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},di.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&es(n)},20))},di.blur=(n,t)=>{let e=t;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),e.relatedTarget&&n.dom.contains(e.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},di.beforeinput=(n,t)=>{if(Ii&&mo&&"deleteContentBackward"==t.inputType){n.domObserver.flushSoon();let{domChangeCount:i}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=i||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",o=>o(n,Yc(8,"Backspace")))))return;let{$cursor:r}=n.state.selection;r&&r.pos>0&&n.dispatch(n.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let n in hi)di[n]=hi[n];function Eh(n,t){if(n==t)return!0;for(let e in n)if(n[e]!==t[e])return!1;for(let e in t)if(!(e in n))return!1;return!0}class Bv{constructor(t,e){this.toDOM=t,this.spec=e||al,this.side=this.spec.side||0}map(t,e,i,r){let{pos:o,deleted:s}=t.mapResult(e.from+r,this.side<0?-1:1);return s?null:new wn(o-i,o-i,this)}valid(){return!0}eq(t){return this==t||t instanceof Bv&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Eh(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class qs{constructor(t,e){this.attrs=t,this.spec=e||al}map(t,e,i,r){let o=t.map(e.from+r,this.spec.inclusiveStart?-1:1)-i,s=t.map(e.to+r,this.spec.inclusiveEnd?1:-1)-i;return o>=s?null:new wn(o,s,this)}valid(t,e){return e.from=t&&(!o||o(a.spec))&&i.push(a.copy(a.from+r,a.to+r))}for(let s=0;st){let a=this.children[s]+1;this.children[s+2].findInner(t-a,e-a,i,r+a,o)}}map(t,e,i){return this==qn||0==t.maps.length?this:this.mapInner(t,e,0,0,i||al)}mapInner(t,e,i,r,o){let s;for(let a=0;a{let m=g-f-(p-h);for(let A=0;Ay+u-d)continue;let E=a[A]+u-d;p>=E?a[A+1]=h<=E?-2:-1:f>=r&&m&&(a[A]+=m,a[A+1]+=m)}d+=m}),u=e.maps[c].map(u,-1)}let l=!1;for(let c=0;c=i.content.size){l=!0;continue}let p=e.map(n[c+1]+o,-1)-r,{index:f,offset:g}=i.content.findIndex(d),m=i.maybeChild(f);if(m&&g==d&&g+m.nodeSize==p){let A=a[c+2].mapInner(e,m,u+1,n[c]+o+1,s);A!=qn?(a[c]=d,a[c+1]=p,a[c+2]=A):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=function JX(n,t,e,i,r,o,s){function a(l,c){for(let u=0;u{let u,c=l+i;if(u=qF(e,a,c)){for(r||(r=this.children.slice());oa&&d.to=t){this.children[a]==t&&(i=this.children[a+2]);break}let o=t+1,s=o+e.content.size;for(let a=0;ao&&l.type instanceof qs){let c=Math.max(o,l.from)-o,u=Math.min(s,l.to)-o;cr.map(t,e,al));return Xs.from(i)}forChild(t,e){if(e.isLeaf)return kt.empty;let i=[];for(let r=0;re instanceof kt)?t:t.reduce((e,i)=>e.concat(i instanceof kt?i:i.members),[]))}}}function $F(n,t){if(!t||!n.length)return n;let e=[];for(let i=0;ie&&s.to{let c=qF(n,a,l+e);if(c){o=!0;let u=Mm(c,a,e+l+1,i);u!=qn&&r.push(l,l+a.nodeSize,u)}});let s=$F(o?XF(n):n,-e).sort(ll);for(let a=0;a0;)t++;n.splice(t,0,e)}function Pv(n){let t=[];return n.someProp("decorations",e=>{let i=e(n.state);i&&i!=qn&&t.push(i)}),n.cursorWrapper&&t.push(kt.create(n.state.doc,[n.cursorWrapper.deco])),Xs.from(t)}const KX={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},$X=Di&&Ws<=11;class qX{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class XX{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new qX,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let r=0;r"childList"==r.type&&r.removedNodes.length||"characterData"==r.type&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),$X&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,KX)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;ethis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(xF(this.view)){if(this.suppressingSelectionUpdates)return es(this.view);if(Di&&Ws<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&nl(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let i,e=new Set;for(let o=t.focusNode;o;o=mh(o))e.add(o);for(let o=t.anchorNode;o;o=mh(o))if(e.has(o)){i=o;break}let r=i&&this.view.docView.nearestDesc(i);return r&&r.ignoreMutation({type:"selection",target:3==i.nodeType?i.parentNode:i})?(this.setCurSelection(),!0):void 0}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.observer?this.observer.takeRecords():[];this.queue.length&&(e=this.queue.concat(e),this.queue.length=0);let i=t.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&xF(t)&&!this.ignoreSelectionChange(i),o=-1,s=-1,a=!1,l=[];if(t.editable)for(let u=0;u1){let u=l.filter(d=>"BR"==d.nodeName);if(2==u.length){let d=u[0],h=u[1];d.parentNode&&d.parentNode.parentNode==h.parentNode?h.remove():d.remove()}}let c=null;o<0&&r&&t.input.lastFocus>Date.now()-200&&t.input.lastTouch-1||r)&&(o>-1&&(t.docView.markDirty(o,s),function ZX(n){if(!eR.has(n)&&(eR.set(n,null),-1!==["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace))){if(n.requiresGeckoHackNode=Nr,tR)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),tR=!0}}(t)),this.handleDOMChange(o,s,a,l),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||es(t),this.currentSelection.set(i))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let i=this.view.docView.nearestDesc(t.target);if("attributes"==t.type&&(i==this.view.docView||"contenteditable"==t.attributeName||"style"==t.attributeName&&!t.oldValue&&!t.target.getAttribute("style"))||!i||i.ignoreMutation(t))return null;if("childList"==t.type){for(let u=0;ut.content.size?null:_v(n,t.resolve(e.anchor),t.resolve(e.head))}function Fv(n,t,e){let i=n.depth,r=t?n.end():n.pos;for(;i>0&&(t||n.indexAfter(i)==n.node(i).childCount);)i--,r++,t=!1;if(e){let o=n.node(i).maybeChild(n.indexAfter(i));for(;o&&!o.isLeaf;)o=o.firstChild,r++}return r}class aZ{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new SX,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(aR),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):"function"==typeof t?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=oR(this),rR(this),this.nodeViews=sR(this),this.docView=AF(this.state.doc,iR(this),Pv(this),this.dom,this),this.domObserver=new XX(this,(i,r,o,s)=>function iZ(n,t,e,i,r){if(t<0){let O=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,q=bv(n,O);if(q&&!n.state.selection.eq(q)){let le=n.state.tr.setSelection(q);"pointer"==O?le.setMeta("pointer",!0):"key"==O&&le.scrollIntoView(),n.dispatch(le)}return}let o=n.state.doc.resolve(t),s=o.sharedDepth(e);t=o.before(s+1),e=n.state.doc.resolve(e).after(s+1);let d,h,a=n.state.selection,l=function tZ(n,t,e){let c,{node:i,fromOffset:r,toOffset:o,from:s,to:a}=n.docView.parseRange(t,e),l=n.domSelectionRange(),u=l.anchorNode;if(u&&n.dom.contains(1==u.nodeType?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],bm(l)||c.push({node:l.focusNode,offset:l.focusOffset})),Ii&&8===n.input.lastKeyCode)for(let m=o;m>r;m--){let A=i.childNodes[m-1],y=A.pmViewDesc;if("BR"==A.nodeName&&!y){o=m;break}if(!y||y.size)break}let d=n.state.doc,h=n.someProp("domParser")||kc.fromSchema(n.state.schema),p=d.resolve(s),f=null,g=h.parse(i,{topNode:p.parent,topMatch:p.parent.contentMatchAt(p.index()),topOpen:!0,from:r,to:o,preserveWhitespace:"pre"!=p.parent.type.whitespace||"full",findPositions:c,ruleFromNode:nZ,context:p});if(c&&null!=c[0].pos){let m=c[0].pos,A=c[1]&&c[1].pos;null==A&&(A=m),f={anchor:m+s,head:A+s}}return{doc:g,sel:f,from:s,to:a}}(n,t,e),c=n.state.doc,u=c.slice(l.from,l.to);8===n.input.lastKeyCode&&Date.now()-100=s?o-i:0,a=o+(a-s),s=o):a=a?o-i:0,s=o+(s-a),a=o),{start:o,endA:s,endB:a}}(u.content,l.doc.content,l.from,d,h);if((Wc&&n.input.lastIOSEnter>Date.now()-225||mo)&&r.some(O=>"DIV"==O.nodeName||"P"==O.nodeName||"LI"==O.nodeName)&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",O=>O(n,Yc(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(!p){if(!(i&&a instanceof Ee&&!a.empty&&a.$head.sameParent(a.$anchor))||n.composing||l.sel&&l.sel.anchor!=l.sel.head){if(l.sel){let O=nR(n,n.state.doc,l.sel);O&&!O.eq(n.state.selection)&&n.dispatch(n.state.tr.setSelection(O))}return}p={start:a.from,endA:a.to,endB:a.to}}if(Ii&&n.cursorWrapper&&l.sel&&l.sel.anchor==n.cursorWrapper.deco.from&&l.sel.head==l.sel.anchor){let O=p.endB-p.start;l.sel={anchor:l.sel.anchor+O,head:l.sel.anchor+O}}n.input.domChangeCount++,n.state.selection.fromn.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=l.from?p.start=n.state.selection.from:p.endA=n.state.selection.to-2&&n.state.selection.to<=l.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),Di&&Ws<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>l.from&&" \xa0"==l.doc.textBetween(p.start-l.from-1,p.start-l.from+1)&&(p.start--,p.endA--,p.endB--);let y,f=l.doc.resolveNoCache(p.start-l.from),g=l.doc.resolveNoCache(p.endB-l.from),m=c.resolve(p.start),A=f.sameParent(g)&&f.parent.inlineContent&&m.end()>=p.endA;if((Wc&&n.input.lastIOSEnter>Date.now()-225&&(!A||r.some(O=>"DIV"==O.nodeName||"P"==O.nodeName))||!A&&f.posO(n,Yc(13,"Enter"))))return void(n.input.lastIOSEnter=0);if(n.state.selection.anchor>p.start&&function oZ(n,t,e,i,r){if(!i.parent.isTextblock||e-t<=r.pos-i.pos||Fv(i,!0,!1)e||Fv(s,!0,!1)O(n,Yc(8,"Backspace"))))return void(mo&&Ii&&n.domObserver.suppressSelectionUpdates());Ii&&mo&&p.endB==p.start&&(n.input.lastAndroidDelete=Date.now()),mo&&!A&&f.start()!=g.start()&&0==g.parentOffset&&f.depth==g.depth&&l.sel&&l.sel.anchor==l.sel.head&&l.sel.head==p.endA&&(p.endB-=2,g=l.doc.resolveNoCache(p.endB-l.from),setTimeout(()=>{n.someProp("handleKeyDown",function(O){return O(n,Yc(13,"Enter"))})},20));let D,I,Q,E=p.start,b=p.endA;if(A)if(f.pos==g.pos)Di&&Ws<=11&&0==f.parentOffset&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>es(n),20)),D=n.state.tr.delete(E,b),I=c.resolve(p.start).marksAcross(c.resolve(p.endA));else if(p.endA==p.endB&&(Q=function rZ(n,t){let s,a,l,e=n.firstChild.marks,i=t.firstChild.marks,r=e,o=i;for(let u=0;uu.mark(a.addToSet(u.marks));else{if(0!=r.length||1!=o.length)return null;a=o[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks))}let c=[];for(let u=0;uq(n,E,b,O)))return;D=n.state.tr.insertText(O,E,b)}if(D||(D=n.state.tr.replace(E,b,l.doc.slice(p.start-l.from,p.endB-l.from))),l.sel){let O=nR(n,D.doc,l.sel);O&&!(Ii&&mo&&n.composing&&O.empty&&(p.start!=p.endB||n.input.lastAndroidDelete{BX(n,i)&&!Iv(n,i)&&(n.editable||!(i.type in hi))&&e(n,i)},IX[t]?{passive:!0}:void 0)}ui&&n.dom.addEventListener("input",()=>null),Dv(n)}(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&Dv(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(aR),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let i in this._props)e[i]=this._props[i];e.state=this.state;for(let i in t)e[i]=t[i];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){let i=this.state,r=!1,o=!1;t.storedMarks&&this.composing&&(JF(this),o=!0),this.state=t;let s=i.plugins!=t.plugins||this._props.plugins!=e.plugins;if(s||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let h=sR(this);(function cZ(n,t){let e=0,i=0;for(let r in n){if(n[r]!=t[r])return!0;e++}for(let r in t)i++;return e!=i})(h,this.nodeViews)&&(this.nodeViews=h,r=!0)}(s||e.handleDOMEvents!=this._props.handleDOMEvents)&&Dv(this),this.editable=oR(this),rR(this);let a=Pv(this),l=iR(this),c=i.plugins==t.plugins||i.doc.eq(t.doc)?t.scrollToSelection>i.scrollToSelection?"to selection":"preserve":"reset",u=r||!this.docView.matchesNode(t.doc,l,a);(u||!t.selection.eq(i.selection))&&(o=!0);let d="preserve"==c&&o&&null==this.dom.style.overflowAnchor&&function W7(n){let i,r,t=n.dom.getBoundingClientRect(),e=Math.max(0,t.top);for(let o=(t.left+t.right)/2,s=e+1;s=e-20){i=a,r=l.top;break}}return{refDOM:i,refTop:r,stack:sF(n.dom)}}(this);if(o){this.domObserver.stop();let h=u&&(Di||Ii)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&function lZ(n,t){let e=Math.min(n.$anchor.sharedDepth(n.head),t.$anchor.sharedDepth(t.head));return n.$anchor.start(e)!=t.$anchor.start(e)}(i.selection,t.selection);if(u){let p=Ii?this.trackWrites=this.domSelectionRange().focusNode:null;(r||!this.docView.update(t.doc,l,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=AF(t.doc,l,a,this.dom,this)),p&&!this.trackWrites&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&function bX(n){let t=n.docView.domFromPos(n.state.selection.anchor,0),e=n.domSelectionRange();return nl(t.node,t.offset,e.anchorNode,e.anchorOffset)}(this))?es(this,h):(IF(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),"reset"==c?this.dom.scrollTop=0:"to selection"==c?this.scrollToSelection():d&&function J7({refDOM:n,refTop:t,stack:e}){let i=n?n.getBoundingClientRect().top:0;aF(e,0==i?0:i-t)}(d)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",e=>e(this)))if(this.state.selection instanceof ce){let e=this.docView.domAfterPos(this.state.selection.from);1==e.nodeType&&oF(this,e.getBoundingClientRect(),t)}else oF(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(t&&t.plugins==this.state.plugins&&this.directPlugins==this.prevDirectPlugins)for(let e=0;ee.ownerDocument.getSelection()),this._root=e;return t||document}posAtCoords(t){return eX(this,t)}coordsAtPos(t,e=1){return uF(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,i=-1){let r=this.docView.posFromDOM(t,e,i);if(null==r)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,e){return function oX(n,t,e){return hF==t&&pF==e?fF:(hF=t,pF=e,fF="up"==e||"down"==e?function nX(n,t,e){let i=t.selection,r="up"==e?i.$from:i.$to;return dF(n,t,()=>{let{node:o}=n.docView.domFromPos(r.pos,"up"==e?-1:1);for(;;){let a=n.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.dom;break}o=a.dom.parentNode}let s=uF(n,r.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(1==a.nodeType)l=a.getClientRects();else{if(3!=a.nodeType)continue;l=Zo(a,0,a.nodeValue.length).getClientRects()}for(let c=0;cu.top+1&&("up"==e?s.top-u.top>2*(u.bottom-s.top):u.bottom-s.bottom>2*(s.bottom-u.top)))return!1}}return!0})}(n,t,e):function rX(n,t,e){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let r=i.parentOffset,o=!r,s=r==i.parent.content.size,a=n.domSelection();return iX.test(i.parent.textContent)&&a.modify?dF(n,t,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=n.domSelectionRange(),h=a.caretBidiLevel;a.modify("move",e,"character");let p=i.depth?n.docView.domAfterPos(i.before()):n.dom,{focusNode:f,focusOffset:g}=n.domSelectionRange(),m=f&&!p.contains(1==f.nodeType?f:f.parentNode)||l==f&&c==g;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return null!=h&&(a.caretBidiLevel=h),m}):"left"==e||"backward"==e?o:s}(n,t,e))}(this,e||this.state,t)}destroy(){!this.docView||(function TX(n){n.domObserver.stop();for(let t in n.input.eventHandlers)n.dom.removeEventListener(t,n.input.eventHandlers[t]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Pv(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return null==this.docView}dispatchEvent(t){return function OX(n,t){!Iv(n,t)&&di[t.type]&&(n.editable||!(t.type in hi))&&di[t.type](n,t)}(this,t)}dispatch(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return ui&&11===this.root.nodeType&&function z7(n){let t=n.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom?function eZ(n){let t;function e(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}n.dom.addEventListener("beforeinput",e,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",e,!0);let i=t.startContainer,r=t.startOffset,o=t.endContainer,s=t.endOffset,a=n.domAtPos(n.state.selection.anchor);return nl(a.node,a.offset,o,s)&&([i,r,o,s]=[o,s,i,r]),{anchorNode:i,anchorOffset:r,focusNode:o,focusOffset:s}}(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function iR(n){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(n.editable),t.translate="no",n.someProp("attributes",e=>{if("function"==typeof e&&(e=e(n.state)),e)for(let i in e)"class"==i&&(t.class+=" "+e[i]),"style"==i?t.style=(t.style?t.style+";":"")+e[i]:!t[i]&&"contenteditable"!=i&&"nodeName"!=i&&(t[i]=String(e[i]))}),[wn.node(0,n.state.doc.content.size,t)]}function rR(n){if(n.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),n.cursorWrapper={dom:t,deco:wn.widget(n.state.selection.head,t,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function oR(n){return!n.someProp("editable",t=>!1===t(n.state))}function sR(n){let t=Object.create(null);function e(i){for(let r in i)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=i[r])}return n.someProp("nodeViews",e),n.someProp("markViews",e),t}function aR(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Zs={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},wm={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},lR=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),uZ=(typeof navigator<"u"&&/Gecko\/\d+/.test(navigator.userAgent),typeof navigator<"u"&&/Mac/.test(navigator.platform)),dZ=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),hZ=uZ||lR&&+lR[1]<57,Bn=0;Bn<10;Bn++)Zs[48+Bn]=Zs[96+Bn]=String(Bn);for(Bn=1;Bn<=24;Bn++)Zs[Bn+111]="F"+Bn;for(Bn=65;Bn<=90;Bn++)Zs[Bn]=String.fromCharCode(Bn+32),wm[Bn]=String.fromCharCode(Bn);for(var Rv in Zs)wm.hasOwnProperty(Rv)||(wm[Rv]=Zs[Rv]);const fZ=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function gZ(n){let i,r,o,s,t=n.split(/-(?!$)/),e=t[t.length-1];"Space"==e&&(e=" ");for(let a=0;a127)&&(s=Zs[i.keyCode])&&s!=r){let l=t[Nv(s,i,!0)];if(l&&l(e.state,e.dispatch,e))return!0}else if(o&&i.shiftKey){let l=t[Nv(r,i,!0)];if(l&&l(e.state,e.dispatch,e))return!0}return!1}}const Qv=(n,t)=>!n.selection.empty&&(t&&t(n.tr.deleteSelection().scrollIntoView()),!0);const uR=(n,t,e)=>{let i=function cR(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("backward",n):e.parentOffset>0)?null:e}(n,e);if(!i)return!1;let r=Uv(i);if(!r){let s=i.blockRange(),a=s&&Rc(s);return null!=a&&(t&&t(n.tr.lift(s,a).scrollIntoView()),!0)}let o=r.nodeBefore;if(!o.type.spec.isolating&&ER(n,r,t))return!0;if(0==i.parent.content.size&&(Zc(o,"end")||ce.isSelectable(o))){let s=QC(n.doc,i.before(),i.after(),G.empty);if(s&&s.slice.size{let{$head:i,empty:r}=n.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("backward",n):i.parentOffset>0)return!1;o=Uv(i)}let s=o&&o.nodeBefore;return!(!s||!ce.isSelectable(s)||(t&&t(n.tr.setSelection(ce.create(n.doc,o.pos-s.nodeSize)).scrollIntoView()),0))};function Uv(n){if(!n.parent.type.spec.isolating)for(let t=n.depth-1;t>=0;t--){if(n.index(t)>0)return n.doc.resolve(n.before(t+1));if(n.node(t).type.spec.isolating)break}return null}const fR=(n,t,e)=>{let i=function pR(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("forward",n):e.parentOffset{let{$head:i,empty:r}=n.selection,o=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("forward",n):i.parentOffset=0;t--){let e=n.node(t);if(n.index(t)+1{let{$head:e,$anchor:i}=n.selection;return!(!e.parent.type.spec.code||!e.sameParent(i)||(t&&t(n.tr.insertText("\n").scrollIntoView()),0))};function zv(n){for(let t=0;t{let{$head:e,$anchor:i}=n.selection;if(!e.parent.type.spec.code||!e.sameParent(i))return!1;let r=e.node(-1),o=e.indexAfter(-1),s=zv(r.contentMatchAt(o));if(!s||!r.canReplaceWith(o,o,s))return!1;if(t){let a=e.after(),l=n.tr.replaceWith(a,a,s.createAndFill());l.setSelection(_e.near(l.doc.resolve(a),1)),t(l.scrollIntoView())}return!0},bR=(n,t)=>{let e=n.selection,{$from:i,$to:r}=e;if(e instanceof zi||i.parent.inlineContent||r.parent.inlineContent)return!1;let o=zv(r.parent.contentMatchAt(r.indexAfter()));if(!o||!o.isTextblock)return!1;if(t){let s=(!i.parentOffset&&r.index(){let{$cursor:e}=n.selection;if(!e||e.parent.content.size)return!1;if(e.depth>1&&e.after()!=e.end(-1)){let o=e.before();if($o(n.doc,o))return t&&t(n.tr.split(o).scrollIntoView()),!0}let i=e.blockRange(),r=i&&Rc(i);return null!=r&&(t&&t(n.tr.lift(i,r).scrollIntoView()),!0)},_R=function EZ(n){return(t,e)=>{let{$from:i,$to:r}=t.selection;if(t.selection instanceof ce&&t.selection.node.isBlock)return!(!i.parentOffset||!$o(t.doc,i.pos)||(e&&e(t.tr.split(i.pos).scrollIntoView()),0));if(!i.parent.isBlock)return!1;if(e){let o=r.parentOffset==r.parent.content.size,s=t.tr;(t.selection instanceof Ee||t.selection instanceof zi)&&s.deleteSelection();let a=0==i.depth?null:zv(i.node(-1).contentMatchAt(i.indexAfter(-1))),l=n&&n(r.parent,o),c=l?[l]:o&&a?[{type:a}]:void 0,u=$o(s.doc,s.mapping.map(i.pos),1,c);if(!c&&!u&&$o(s.doc,s.mapping.map(i.pos),1,a?[{type:a}]:void 0)&&(a&&(c=[{type:a}]),u=!0),u&&(s.split(s.mapping.map(i.pos),1,c),!o&&!i.parentOffset&&i.parent.type!=a)){let d=s.mapping.map(i.before()),h=s.doc.resolve(d);a&&i.node(-1).canReplaceWith(h.index(),h.index()+1,a)&&s.setNodeMarkup(s.mapping.map(i.before()),a)}e(s.scrollIntoView())}return!0}}();function ER(n,t,e){let o,s,i=t.nodeBefore,r=t.nodeAfter;if(i.type.spec.isolating||r.type.spec.isolating)return!1;if(function MZ(n,t,e){let i=t.nodeBefore,r=t.nodeAfter,o=t.index();return!(!(i&&r&&i.type.compatibleContent(r.type))||(!i.content.size&&t.parent.canReplace(o-1,o)?(e&&e(n.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(o,o+1)||!r.isTextblock&&!Us(n.doc,t.pos)||(e&&e(n.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),0)))}(n,t,e))return!0;let a=t.parent.canReplace(t.index(),t.index()+1);if(a&&(o=(s=i.contentMatchAt(i.childCount)).findWrapping(r.type))&&s.matchType(o[0]||r.type).validEnd){if(e){let d=t.pos+r.nodeSize,h=L.empty;for(let g=o.length-1;g>=0;g--)h=L.from(o[g].create(null,h));h=L.from(i.copy(h));let p=n.tr.step(new Mn(t.pos-1,d,t.pos,d,new G(h,1,0),o.length,!0)),f=d+2*o.length;Us(p.doc,f)&&p.join(f),e(p.scrollIntoView())}return!0}let l=_e.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),u=c&&Rc(c);if(null!=u&&u>=t.depth)return e&&e(n.tr.lift(c,u).scrollIntoView()),!0;if(a&&Zc(r,"start",!0)&&Zc(i,"end")){let d=i,h=[];for(;h.push(d),!d.isTextblock;)d=d.lastChild;let p=r,f=1;for(;!p.isTextblock;p=p.firstChild)f++;if(d.canReplace(d.childCount,d.childCount,p.content)){if(e){let g=L.empty;for(let A=h.length-1;A>=0;A--)g=L.from(h[A].copy(g));e(n.tr.step(new Mn(t.pos-h.length,t.pos+r.nodeSize,t.pos+f,t.pos+r.nodeSize-f,new G(g,h.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function CR(n){return function(t,e){let i=t.selection,r=n<0?i.$from:i.$to,o=r.depth;for(;r.node(o).isInline;){if(!o)return!1;o--}return!!r.node(o).isTextblock&&(e&&e(t.tr.setSelection(Ee.create(t.doc,n<0?r.start(o):r.end(o)))),!0)}}const vR=CR(-1),MR=CR(1);function wR(n,t=null){return function(e,i){let r=!1;for(let o=0;o{if(r)return!1;if(l.isTextblock&&!l.hasMarkup(n,t))if(l.type==n)r=!0;else{let u=e.doc.resolve(c),d=u.index();r=u.parent.canReplaceWith(d,d+1,n)}})}if(!r)return!1;if(i){let o=e.tr;for(let s=0;s(t&&t(n.tr.setSelection(new zi(n.doc))),!0)},SZ={"Ctrl-h":ea.Backspace,"Alt-Backspace":ea["Mod-Backspace"],"Ctrl-d":ea.Delete,"Ctrl-Alt-Backspace":ea["Mod-Delete"],"Alt-Delete":ea["Mod-Delete"],"Alt-d":ea["Mod-Delete"],"Ctrl-a":vR,"Ctrl-e":MR};for(let n in ea)SZ[n]=ea[n];function Dm(n){const{state:t,transaction:e}=n;let{selection:i}=e,{doc:r}=e,{storedMarks:o}=e;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return o},get selection(){return i},get doc(){return r},get tr(){return i=e.selection,r=e.doc,o=e.storedMarks,e}}}typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform();class Im{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:i}=this,{view:r}=e,{tr:o}=i,s=this.buildProps(o);return Object.fromEntries(Object.entries(t).map(([a,l])=>[a,(...u)=>{const d=l(...u)(s);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(o),d}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:i,editor:r,state:o}=this,{view:s}=r,a=[],l=!!t,c=t||o.tr,d={...Object.fromEntries(Object.entries(i).map(([h,p])=>[h,(...g)=>{const m=this.buildProps(c,e),A=p(...g)(m);return a.push(A),d}])),run:()=>(!l&&e&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(h=>!0===h))};return d}createCan(t){const{rawCommands:e,state:i}=this,o=t||i.tr,s=this.buildProps(o,!1);return{...Object.fromEntries(Object.entries(e).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(o,!1)}}buildProps(t,e=!0){const{rawCommands:i,editor:r,state:o}=this,{view:s}=r;o.storedMarks&&t.setStoredMarks(o.storedMarks);const a={tr:t,editor:r,view:s,state:Dm({state:o,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(i).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}function ne(n,t,e){return void 0===n.config[t]&&n.parent?ne(n.parent,t,e):"function"==typeof n.config[t]?n.config[t].bind({...e,parent:n.parent?ne(n.parent,t,e):null}):n.config[t]}function Sm(n){return{baseExtensions:n.filter(r=>"extension"===r.type),nodeExtensions:n.filter(r=>"node"===r.type),markExtensions:n.filter(r=>"mark"===r.type)}}function IR(n){const t=[],{nodeExtensions:e,markExtensions:i}=Sm(n),r=[...e,...i],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const l=ne(s,"addGlobalAttributes",{name:s.name,options:s.options,storage:s.storage});l&&l().forEach(u=>{u.types.forEach(d=>{Object.entries(u.attributes).forEach(([h,p])=>{t.push({type:d,name:h,attribute:{...o,...p}})})})})}),r.forEach(s=>{const l=ne(s,"addAttributes",{name:s.name,options:s.options,storage:s.storage});if(!l)return;const c=l();Object.entries(c).forEach(([u,d])=>{const h={...o,...d};d?.isRequired&&void 0===d?.default&&delete h.default,t.push({type:s.name,name:u,attribute:h})})}),t}function Dn(n,t){if("string"==typeof n){if(!t.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return t.nodes[n]}return n}function Et(...n){return n.filter(t=>!!t).reduce((t,e)=>{const i={...t};return Object.entries(e).forEach(([r,o])=>{i[r]=i[r]?"class"===r?[i[r],o].join(" "):"style"===r?[i[r],o].join("; "):o:o}),i},{})}function Yv(n,t){return t.filter(e=>e.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(n.attrs)||{}:{[e.name]:n.attrs[e.name]}).reduce((e,i)=>Et(e,i),{})}function SR(n){return"function"==typeof n}function Be(n,t,...e){return SR(n)?t?n.bind(t)(...e):n(...e):n}function xR(n,t){return n.style?n:{...n,getAttrs:e=>{const i=n.getAttrs?n.getAttrs(e):n.attrs;if(!1===i)return!1;const r=t.reduce((o,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(e):function HZ(n){return"string"!=typeof n?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):"true"===n||"false"!==n&&n}(e.getAttribute(s.name));return null==a?o:{...o,[s.name]:a}},{});return{...i,...r}}}}function TR(n){return Object.fromEntries(Object.entries(n).filter(([t,e])=>("attrs"!==t||!function zZ(n={}){return 0===Object.keys(n).length&&n.constructor===Object}(e))&&null!=e))}function Wv(n,t){return t.nodes[n]||t.marks[n]||null}function OR(n,t){return Array.isArray(t)?t.some(e=>("string"==typeof e?e:e.name)===n.name):t}function Jv(n){return"[object RegExp]"===Object.prototype.toString.call(n)}class Ch{constructor(t){this.find=t.find,this.handler=t.handler}}function Kv(n){var t;const{editor:e,from:i,to:r,text:o,rules:s,plugin:a}=n,{view:l}=e;if(l.composing)return!1;const c=l.state.doc.resolve(i);if(c.parent.type.spec.code||null!==(t=c.nodeBefore||c.nodeAfter)&&void 0!==t&&t.marks.find(h=>h.type.spec.code))return!1;let u=!1;const d=((n,t=500)=>{let e="";const i=n.parentOffset;return n.parent.nodesBetween(Math.max(0,i-t),i,(r,o,s,a)=>{var l,c;e+=((null===(c=(l=r.type.spec).toText)||void 0===c?void 0:c.call(l,{node:r,pos:o,parent:s,index:a}))||r.textContent||"%leaf%").slice(0,Math.max(0,i-o))}),e})(c)+o;return s.forEach(h=>{if(u)return;const p=((n,t)=>{if(Jv(t))return t.exec(n);const e=t(n);if(!e)return null;const i=[];return i.push(e.text),i.index=e.index,i.input=n,i.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(e.replaceWith)),i})(d,h.find);if(!p)return;const f=l.state.tr,g=Dm({state:l.state,transaction:f}),m={from:i-(p[0].length-o.length),to:r},{commands:A,chain:y,can:E}=new Im({editor:e,state:g});null===h.handler({state:g,range:m,match:p,commands:A,chain:y,can:E})||!f.steps.length||(f.setMeta(a,{transform:f,from:i,to:r,text:o}),l.dispatch(f),u=!0)}),u}function YZ(n){const{editor:t,rules:e}=n,i=new it({state:{init:()=>null,apply:(r,o)=>r.getMeta(i)||(r.selectionSet||r.docChanged?null:o)},props:{handleTextInput:(r,o,s,a)=>Kv({editor:t,from:o,to:s,text:a,rules:e,plugin:i}),handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:o}=r.state.selection;o&&Kv({editor:t,from:o.pos,to:o.pos,text:"",rules:e,plugin:i})}),!1)},handleKeyDown(r,o){if("Enter"!==o.key)return!1;const{$cursor:s}=r.state.selection;return!!s&&Kv({editor:t,from:s.pos,to:s.pos,text:"\n",rules:e,plugin:i})}},isInputRules:!0});return i}class $v{constructor(t){this.find=t.find,this.handler=t.handler}}function $Z(n){const{editor:t,rules:e}=n;let i=null,r=!1,o=!1;return e.map(a=>new it({view(l){const c=u=>{var d;i=null!==(d=l.dom.parentElement)&&void 0!==d&&d.contains(u.target)?l.dom.parentElement:null};return window.addEventListener("dragstart",c),{destroy(){window.removeEventListener("dragstart",c)}}},props:{handleDOMEvents:{drop:l=>(o=i===l.dom.parentElement,!1),paste:(l,c)=>{var u;const d=null===(u=c.clipboardData)||void 0===u?void 0:u.getData("text/html");return r=!!d?.includes("data-pm-slice"),!1}}},appendTransaction:(l,c,u)=>{const d=l[0],h="paste"===d.getMeta("uiEvent")&&!r,p="drop"===d.getMeta("uiEvent")&&!o;if(!h&&!p)return;const f=c.doc.content.findDiffStart(u.doc.content),g=c.doc.content.findDiffEnd(u.doc.content);if(!function WZ(n){return"number"==typeof n}(f)||!g||f===g.b)return;const m=u.tr,A=Dm({state:u,transaction:m});return function KZ(n){const{editor:t,state:e,from:i,to:r,rule:o}=n,{commands:s,chain:a,can:l}=new Im({editor:t,state:e}),c=[];return e.doc.nodesBetween(i,r,(d,h)=>{if(!d.isTextblock||d.type.spec.code)return;const p=Math.max(i,h),f=Math.min(r,h+d.content.size);((n,t)=>{if(Jv(t))return[...n.matchAll(t)];const e=t(n);return e?e.map(i=>{const r=[];return r.push(i.text),r.index=i.index,r.input=n,r.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),r.push(i.replaceWith)),r}):[]})(d.textBetween(p-h,f-h,void 0,"\ufffc"),o.find).forEach(A=>{if(void 0===A.index)return;const y=p+A.index+1,E=y+A[0].length,b={from:e.tr.mapping.map(y),to:e.tr.mapping.map(E)},D=o.handler({state:e,range:b,match:A,commands:s,chain:a,can:l});c.push(D)})}),c.every(d=>null!==d)}({editor:t,state:A,from:Math.max(f-1,0),to:g.b-1,rule:a})&&m.steps.length?m:void 0}}))}class cl{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=cl.resolve(t),this.schema=function BR(n){var t;const e=IR(n),{nodeExtensions:i,markExtensions:r}=Sm(n),o=null===(t=i.find(l=>ne(l,"topNode")))||void 0===t?void 0:t.name,s=Object.fromEntries(i.map(l=>{const c=e.filter(m=>m.type===l.name),u={name:l.name,options:l.options,storage:l.storage},h=TR({...n.reduce((m,A)=>{const y=ne(A,"extendNodeSchema",u);return{...m,...y?y(l):{}}},{}),content:Be(ne(l,"content",u)),marks:Be(ne(l,"marks",u)),group:Be(ne(l,"group",u)),inline:Be(ne(l,"inline",u)),atom:Be(ne(l,"atom",u)),selectable:Be(ne(l,"selectable",u)),draggable:Be(ne(l,"draggable",u)),code:Be(ne(l,"code",u)),defining:Be(ne(l,"defining",u)),isolating:Be(ne(l,"isolating",u)),attrs:Object.fromEntries(c.map(m=>{var A;return[m.name,{default:null===(A=m?.attribute)||void 0===A?void 0:A.default}]}))}),p=Be(ne(l,"parseHTML",u));p&&(h.parseDOM=p.map(m=>xR(m,c)));const f=ne(l,"renderHTML",u);f&&(h.toDOM=m=>f({node:m,HTMLAttributes:Yv(m,c)}));const g=ne(l,"renderText",u);return g&&(h.toText=g),[l.name,h]})),a=Object.fromEntries(r.map(l=>{const c=e.filter(g=>g.type===l.name),u={name:l.name,options:l.options,storage:l.storage},h=TR({...n.reduce((g,m)=>{const A=ne(m,"extendMarkSchema",u);return{...g,...A?A(l):{}}},{}),inclusive:Be(ne(l,"inclusive",u)),excludes:Be(ne(l,"excludes",u)),group:Be(ne(l,"group",u)),spanning:Be(ne(l,"spanning",u)),code:Be(ne(l,"code",u)),attrs:Object.fromEntries(c.map(g=>{var m;return[g.name,{default:null===(m=g?.attribute)||void 0===m?void 0:m.default}]}))}),p=Be(ne(l,"parseHTML",u));p&&(h.parseDOM=p.map(g=>xR(g,c)));const f=ne(l,"renderHTML",u);return f&&(h.toDOM=g=>f({mark:g,HTMLAttributes:Yv(g,c)})),[l.name,h]}));return new I6({topNode:o,nodes:s,marks:a})}(this.extensions),this.extensions.forEach(i=>{var r;this.editor.extensionStorage[i.name]=i.storage;const o={name:i.name,options:i.options,storage:i.storage,editor:this.editor,type:Wv(i.name,this.schema)};"mark"===i.type&&(null===(r=Be(ne(i,"keepOnSplit",o)))||void 0===r||r)&&this.splittableMarks.push(i.name);const s=ne(i,"onBeforeCreate",o);s&&this.editor.on("beforeCreate",s);const a=ne(i,"onCreate",o);a&&this.editor.on("create",a);const l=ne(i,"onUpdate",o);l&&this.editor.on("update",l);const c=ne(i,"onSelectionUpdate",o);c&&this.editor.on("selectionUpdate",c);const u=ne(i,"onTransaction",o);u&&this.editor.on("transaction",u);const d=ne(i,"onFocus",o);d&&this.editor.on("focus",d);const h=ne(i,"onBlur",o);h&&this.editor.on("blur",h);const p=ne(i,"onDestroy",o);p&&this.editor.on("destroy",p)})}static resolve(t){const e=cl.sort(cl.flatten(t)),i=function qZ(n){const t=n.filter((e,i)=>n.indexOf(e)!==i);return[...new Set(t)]}(e.map(r=>r.name));return i.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${i.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map(e=>{const r=ne(e,"addExtensions",{name:e.name,options:e.options,storage:e.storage});return r?[e,...this.flatten(r())]:e}).flat(10)}static sort(t){return t.sort((i,r)=>{const o=ne(i,"priority")||100,s=ne(r,"priority")||100;return o>s?-1:o{const r=ne(e,"addCommands",{name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:Wv(e.name,this.schema)});return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this,e=cl.sort([...this.extensions].reverse()),i=[],r=[],o=e.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:t,type:Wv(s.name,this.schema)},l=[],c=ne(s,"addKeyboardShortcuts",a);let u={};if("mark"===s.type&&s.config.exitable&&(u.ArrowRight=()=>Qr.handleExit({editor:t,mark:s})),c){const g=Object.fromEntries(Object.entries(c()).map(([m,A])=>[m,()=>A({editor:t})]));u={...u,...g}}const d=function AZ(n){return new it({props:{handleKeyDown:Lv(n)}})}(u);l.push(d);const h=ne(s,"addInputRules",a);OR(s,t.options.enableInputRules)&&h&&i.push(...h());const p=ne(s,"addPasteRules",a);OR(s,t.options.enablePasteRules)&&p&&r.push(...p());const f=ne(s,"addProseMirrorPlugins",a);if(f){const g=f();l.push(...g)}return l}).flat();return[YZ({editor:t,rules:i}),...$Z({editor:t,rules:r}),...o]}get attributes(){return IR(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=Sm(this.extensions);return Object.fromEntries(e.filter(i=>!!ne(i,"addNodeView")).map(i=>{const r=this.attributes.filter(l=>l.type===i.name),o={name:i.name,options:i.options,storage:i.storage,editor:t,type:Dn(i.name,this.schema)},s=ne(i,"addNodeView",o);return s?[i.name,(l,c,u,d)=>{const h=Yv(l,r);return s()({editor:t,node:l,getPos:u,decorations:d,HTMLAttributes:h,extension:i})}]:[]}))}}function qv(n){return"Object"===function XZ(n){return Object.prototype.toString.call(n).slice(8,-1)}(n)&&n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function xm(n,t){const e={...n};return qv(n)&&qv(t)&&Object.keys(t).forEach(i=>{qv(t[i])?i in n?e[i]=xm(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class Ft{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Ft(t)}configure(t={}){const e=this.extend();return e.options=xm(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Ft(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}}function kR(n,t,e){const{from:i,to:r}=t,{blockSeparator:o="\n\n",textSerializers:s={}}=e||{};let a="",l=!0;return n.nodesBetween(i,r,(c,u,d,h)=>{var p;const f=s?.[c.type.name];f?(c.isBlock&&!l&&(a+=o,l=!0),d&&(a+=f({node:c,pos:u,parent:d,index:h,range:t}))):c.isText?(a+=null===(p=c?.text)||void 0===p?void 0:p.slice(Math.max(i,u)-u,r-u),l=!1):c.isBlock&&!l&&(a+=o,l=!0)}),a}function Xv(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,t])=>t.spec.toText).map(([t,e])=>[t,e.spec.toText]))}const ZZ=Ft.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new it({key:new _t("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:t,schema:e}=n,{doc:i,selection:r}=t,{ranges:o}=r;return kR(i,{from:Math.min(...o.map(u=>u.$from.pos)),to:Math.max(...o.map(u=>u.$to.pos))},{textSerializers:Xv(e)})}}})]}});function Tm(n,t,e={strict:!0}){const i=Object.keys(t);return!i.length||i.every(r=>e.strict?t[r]===n[r]:Jv(t[r])?t[r].test(n[r]):t[r]===n[r])}function Zv(n,t,e={}){return n.find(i=>i.type===t&&Tm(i.attrs,e))}function dee(n,t,e={}){return!!Zv(n,t,e)}function eM(n,t,e={}){if(!n||!t)return;let i=n.parent.childAfter(n.parentOffset);if(n.parentOffset===i.offset&&0!==i.offset&&(i=n.parent.childBefore(n.parentOffset)),!i.node)return;const r=Zv([...i.node.marks],t,e);if(!r)return;let o=i.index,s=n.start()+i.offset,a=o+1,l=s+i.node.nodeSize;for(Zv([...i.node.marks],t,e);o>0&&r.isInSet(n.parent.child(o-1).marks);)o-=1,s-=n.parent.child(o).nodeSize;for(;a${n}`;return(new window.DOMParser).parseFromString(t,"text/html").body}function km(n,t,e){if(e={slice:!0,parseOptions:{},...e},"object"==typeof n&&null!==n)try{return Array.isArray(n)?L.fromArray(n.map(i=>t.nodeFromJSON(i))):t.nodeFromJSON(n)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",i),km("",t,e)}if("string"==typeof n){const i=kc.fromSchema(t);return e.slice?i.parseSlice(tM(n),e.parseOptions).content:i.parse(tM(n),e.parseOptions)}return km("",t,e)}function FR(){return typeof navigator<"u"&&/Mac/.test(navigator.platform)}function vh(n,t,e={}){const{from:i,to:r,empty:o}=n.selection,s=t?Dn(t,n.schema):null,a=[];n.doc.nodesBetween(i,r,(d,h)=>{if(d.isText)return;const p=Math.max(i,h),f=Math.min(r,h+d.nodeSize);a.push({node:d,from:p,to:f})});const l=r-i,c=a.filter(d=>!s||s.name===d.node.type.name).filter(d=>Tm(d.node.attrs,e,{strict:!1}));return o?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=l}function Pm(n,t){return t.nodes[n]?"node":t.marks[n]?"mark":null}function RR(n,t){const e="string"==typeof t?[t]:t;return Object.keys(n).reduce((i,r)=>(e.includes(r)||(i[r]=n[r]),i),{})}function NR(n,t,e={}){return km(n,t,{slice:!1,parseOptions:e})}function LR(n,t){for(let e=n.depth;e>0;e-=1){const i=n.node(e);if(t(i))return{pos:e>0?n.before(e):0,start:n.start(e),depth:e,node:i}}}function nM(n){return t=>LR(t.$from,n)}function jR(n,t){const e=ta(t,n.schema),{from:i,to:r,empty:o}=n.selection,s=[];o?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(i,r,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===e.name);return a?{...a.attrs}:{}}function zR(n,t){const e=Pm("string"==typeof t?t:t.name,n.schema);return"node"===e?function zee(n,t){const e=Dn(t,n.schema),{from:i,to:r}=n.selection,o=[];n.doc.nodesBetween(i,r,a=>{o.push(a)});const s=o.reverse().find(a=>a.type.name===e.name);return s?{...s.attrs}:{}}(n,t):"mark"===e?jR(n,t):{}}function Fm(n,t,e){const i=[];return n===t?e.resolve(n).marks().forEach(r=>{const s=eM(e.resolve(n-1),r.type);!s||i.push({mark:r,...s})}):e.nodesBetween(n,t,(r,o)=>{i.push(...r.marks.map(s=>({from:o,to:o+r.nodeSize,mark:s})))}),i}function rM(n,t,e={}){const{empty:i,ranges:r}=n.selection,o=t?ta(t,n.schema):null;if(i)return!!(n.storedMarks||n.selection.$from.marks()).filter(d=>!o||o.name===d.type.name).find(d=>Tm(d.attrs,e,{strict:!1}));let s=0;const a=[];if(r.forEach(({$from:d,$to:h})=>{const p=d.pos,f=h.pos;n.doc.nodesBetween(p,f,(g,m)=>{if(!g.isText&&!g.marks.length)return;const A=Math.max(p,m),y=Math.min(f,m+g.nodeSize);s+=y-A,a.push(...g.marks.map(b=>({mark:b,from:A,to:y})))})}),0===s)return!1;const l=a.filter(d=>!o||o.name===d.mark.type.name).filter(d=>Tm(d.mark.attrs,e,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=a.filter(d=>!o||d.mark.type!==o&&d.mark.type.excludes(o)).reduce((d,h)=>d+h.to-h.from,0);return(l>0?l+c:l)>=s}function HR(n,t){const{nodeExtensions:e}=Sm(t),i=e.find(s=>s.name===n);if(!i)return!1;const o=Be(ne(i,"group",{name:i.name,options:i.options,storage:i.storage}));return"string"==typeof o&&o.split(" ").includes("list")}function ul(n,t,e){const r=n.state.doc.content.size,o=ts(t,0,r),s=ts(e,0,r),a=n.coordsAtPos(o),l=n.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),d=Math.min(a.left,l.left),h=Math.max(a.right,l.right),A={top:c,bottom:u,left:d,right:h,width:h-d,height:u-c,x:d,y:c};return{...A,toJSON:()=>A}}function Rm(n,t,e){return Object.fromEntries(Object.entries(e).filter(([i])=>{const r=n.find(o=>o.type===t&&o.name===i);return!!r&&r.attribute.keepOnSplit}))}function VR(n,t){const e=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(e){const i=e.filter(r=>t?.includes(r.type.name));n.tr.ensureMarks(i)}}const GR=(n,t)=>{const e=nM(s=>s.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(void 0===i)return!0;const r=n.doc.nodeAt(i);return e.node.type===r?.type&&Us(n.doc,e.pos)&&n.join(e.pos),!0},YR=(n,t)=>{const e=nM(s=>s.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(e.start).after(e.depth);if(void 0===i)return!0;const r=n.doc.nodeAt(i);return e.node.type===r?.type&&Us(n.doc,i)&&n.join(i),!0};var ote=Object.freeze({__proto__:null,blur:()=>({editor:n,view:t})=>(requestAnimationFrame(()=>{var e;n.isDestroyed||(t.dom.blur(),null===(e=window?.getSelection())||void 0===e||e.removeAllRanges())}),!0),clearContent:(n=!1)=>({commands:t})=>t.setContent("",n),clearNodes:()=>({state:n,tr:t,dispatch:e})=>{const{selection:i}=t,{ranges:r}=i;return e&&r.forEach(({$from:o,$to:s})=>{n.doc.nodesBetween(o.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=t,d=c.resolve(u.map(l)),h=c.resolve(u.map(l+a.nodeSize)),p=d.blockRange(h);if(!p)return;const f=Rc(p);if(a.type.isTextblock){const{defaultType:g}=d.parent.contentMatchAt(d.index());t.setNodeMarkup(p.start,g)}(f||0===f)&&t.lift(p,f)})}),!0},command:n=>t=>n(t),createParagraphNear:()=>({state:n,dispatch:t})=>bR(n,t),deleteCurrentNode:()=>({tr:n,dispatch:t})=>{const{selection:e}=n,i=e.$anchor.node();if(i.content.size>0)return!1;const r=n.selection.$anchor;for(let o=r.depth;o>0;o-=1)if(r.node(o).type===i.type){if(t){const a=r.before(o),l=r.after(o);n.delete(a,l).scrollIntoView()}return!0}return!1},deleteNode:n=>({tr:t,state:e,dispatch:i})=>{const r=Dn(n,e.schema),o=t.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===r){if(i){const l=o.before(s),c=o.after(s);t.delete(l,c).scrollIntoView()}return!0}return!1},deleteRange:n=>({tr:t,dispatch:e})=>{const{from:i,to:r}=n;return e&&t.delete(i,r),!0},deleteSelection:()=>({state:n,dispatch:t})=>Qv(n,t),enter:()=>({commands:n})=>n.keyboardShortcut("Enter"),exitCode:()=>({state:n,dispatch:t})=>AR(n,t),extendMarkRange:(n,t={})=>({tr:e,state:i,dispatch:r})=>{const o=ta(n,i.schema),{doc:s,selection:a}=e,{$from:l,from:c,to:u}=a;if(r){const d=eM(l,o,t);if(d&&d.from<=c&&d.to>=u){const h=Ee.create(s,d.from,d.to);e.setSelection(h)}}return!0},first:n=>t=>{const e="function"==typeof n?n(t):n;for(let i=0;i({editor:e,view:i,tr:r,dispatch:o})=>{t={scrollIntoView:!0,...t};const s=()=>{Om()&&i.dom.focus(),requestAnimationFrame(()=>{e.isDestroyed||(i.focus(),t?.scrollIntoView&&e.commands.scrollIntoView())})};if(i.hasFocus()&&null===n||!1===n)return!0;if(o&&null===n&&!Bm(e.state.selection))return s(),!0;const a=PR(r.doc,n)||e.state.selection,l=e.state.selection.eq(a);return o&&(l||r.setSelection(a),l&&r.storedMarks&&r.setStoredMarks(r.storedMarks),s()),!0},forEach:(n,t)=>e=>n.every((i,r)=>t(i,{...e,index:r})),insertContent:(n,t)=>({tr:e,commands:i})=>i.insertContentAt({from:e.selection.from,to:e.selection.to},n,t),insertContentAt:(n,t,e)=>({tr:i,dispatch:r,editor:o})=>{if(r){e={parseOptions:{},updateSelection:!0,...e};const s=km(t,o.schema,{parseOptions:{preserveWhitespace:"full",...e.parseOptions}});if("<>"===s.toString())return!0;let{from:a,to:l}="number"==typeof n?{from:n,to:n}:n,c=!0,u=!0;if(((n=>n.toString().startsWith("<"))(s)?s:[s]).forEach(h=>{h.check(),c=!!c&&h.isText&&0===h.marks.length,u=!!u&&h.isBlock}),a===l&&u){const{parent:h}=i.doc.resolve(a);h.isTextblock&&!h.type.spec.code&&!h.childCount&&(a-=1,l+=1)}c?i.insertText(t,a,l):i.replaceWith(a,l,s),e.updateSelection&&function Aee(n,t,e){const i=n.steps.length-1;if(i{0===s&&(s=u)}),n.setSelection(_e.near(n.doc.resolve(s),e))}(i,i.steps.length-1,-1)}return!0},joinUp:()=>({state:n,dispatch:t})=>((n,t)=>{let r,e=n.selection,i=e instanceof ce;if(i){if(e.node.isTextblock||!Us(n.doc,e.from))return!1;r=e.from}else if(r=Jk(n.doc,e.from,-1),null==r)return!1;if(t){let o=n.tr.join(r);i&&o.setSelection(ce.create(o.doc,r-n.doc.resolve(r).nodeBefore.nodeSize)),t(o.scrollIntoView())}return!0})(n,t),joinDown:()=>({state:n,dispatch:t})=>((n,t)=>{let i,e=n.selection;if(e instanceof ce){if(e.node.isTextblock||!Us(n.doc,e.to))return!1;i=e.to}else if(i=Jk(n.doc,e.to,1),null==i)return!1;return t&&t(n.tr.join(i).scrollIntoView()),!0})(n,t),joinBackward:()=>({state:n,dispatch:t})=>uR(n,t),joinForward:()=>({state:n,dispatch:t})=>fR(n,t),keyboardShortcut:n=>({editor:t,view:e,tr:i,dispatch:r})=>{const o=function Mee(n){const t=n.split(/-(?!$)/);let i,r,o,s,e=t[t.length-1];"Space"===e&&(e=" ");for(let a=0;a!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:"Space"===s?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0});return t.captureTransaction(()=>{e.someProp("handleKeyDown",c=>c(e,a))})?.steps.forEach(c=>{const u=c.map(i.mapping);u&&r&&i.maybeStep(u)}),!0},lift:(n,t={})=>({state:e,dispatch:i})=>!!vh(e,Dn(n,e.schema),t)&&((n,t)=>{let{$from:e,$to:i}=n.selection,r=e.blockRange(i),o=r&&Rc(r);return null!=o&&(t&&t(n.tr.lift(r,o).scrollIntoView()),!0)})(e,i),liftEmptyBlock:()=>({state:n,dispatch:t})=>yR(n,t),liftListItem:n=>({state:t,dispatch:e})=>function NZ(n){return function(t,e){let{$from:i,$to:r}=t.selection,o=i.blockRange(r,s=>s.childCount>0&&s.firstChild.type==n);return!!o&&(!e||(i.node(o.depth-1).type==n?function LZ(n,t,e,i){let r=n.tr,o=i.end,s=i.$to.end(i.depth);og;f--)p-=r.child(f).nodeSize,i.delete(p-1,p+1);let o=i.doc.resolve(e.start),s=o.nodeAfter;if(i.mapping.map(e.end)!=e.start+o.nodeAfter.nodeSize)return!1;let a=0==e.startIndex,l=e.endIndex==r.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?L.empty:L.from(r))))return!1;let d=o.pos,h=d+s.nodeSize;return i.step(new Mn(d-(a?1:0),h+(l?1:0),d+1,h-1,new G((a?L.empty:L.from(r.copy(L.empty))).append(l?L.empty:L.from(r.copy(L.empty))),a?0:1,l?0:1),a?0:1)),t(i.scrollIntoView()),!0}(t,e,o)))}}(Dn(n,t.schema))(t,e),newlineInCode:()=>({state:n,dispatch:t})=>mR(n,t),resetAttributes:(n,t)=>({tr:e,state:i,dispatch:r})=>{let o=null,s=null;const a=Pm("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(o=Dn(n,i.schema)),"mark"===a&&(s=ta(n,i.schema)),r&&e.selection.ranges.forEach(l=>{i.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&e.setNodeMarkup(u,void 0,RR(c.attrs,t)),s&&c.marks.length&&c.marks.forEach(d=>{s===d.type&&e.addMark(u,u+c.nodeSize,s.create(RR(d.attrs,t)))})})}),!0)},scrollIntoView:()=>({tr:n,dispatch:t})=>(t&&n.scrollIntoView(),!0),selectAll:()=>({tr:n,commands:t})=>t.setTextSelection({from:0,to:n.doc.content.size}),selectNodeBackward:()=>({state:n,dispatch:t})=>hR(n,t),selectNodeForward:()=>({state:n,dispatch:t})=>gR(n,t),selectParentNode:()=>({state:n,dispatch:t})=>((n,t)=>{let r,{$from:e,to:i}=n.selection,o=e.sharedDepth(i);return 0!=o&&(r=e.before(o),t&&t(n.tr.setSelection(ce.create(n.doc,r))),!0)})(n,t),selectTextblockEnd:()=>({state:n,dispatch:t})=>MR(n,t),selectTextblockStart:()=>({state:n,dispatch:t})=>vR(n,t),setContent:(n,t=!1,e={})=>({tr:i,editor:r,dispatch:o})=>{const{doc:s}=i,a=NR(n,r.schema,e);return o&&i.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!t),!0},setMark:(n,t={})=>({tr:e,state:i,dispatch:r})=>{const{selection:o}=e,{empty:s,ranges:a}=o,l=ta(n,i.schema);if(r)if(s){const c=jR(i,l);e.addStoredMark(l.create({...c,...t}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;i.doc.nodesBetween(u,d,(h,p)=>{const f=Math.max(p,u),g=Math.min(p+h.nodeSize,d);h.marks.find(A=>A.type===l)?h.marks.forEach(A=>{l===A.type&&e.addMark(f,g,l.create({...A.attrs,...t}))}):e.addMark(f,g,l.create(t))})});return function $ee(n,t,e){var i;const{selection:r}=t;let o=null;if(Bm(r)&&(o=r.$cursor),o){const a=null!==(i=n.storedMarks)&&void 0!==i?i:o.marks();return!!e.isInSet(a)||!a.some(l=>l.type.excludes(e))}const{ranges:s}=r;return s.some(({$from:a,$to:l})=>{let c=0===a.depth&&n.doc.inlineContent&&n.doc.type.allowsMarkType(e);return n.doc.nodesBetween(a.pos,l.pos,(u,d,h)=>{if(c)return!1;if(u.isInline){const p=!h||h.type.allowsMarkType(e),f=!!e.isInSet(u.marks)||!u.marks.some(g=>g.type.excludes(e));c=p&&f}return!c}),c})}(i,e,l)},setMeta:(n,t)=>({tr:e})=>(e.setMeta(n,t),!0),setNode:(n,t={})=>({state:e,dispatch:i,chain:r})=>{const o=Dn(n,e.schema);return o.isTextblock?r().command(({commands:s})=>!!wR(o,t)(e)||s.clearNodes()).command(({state:s})=>wR(o,t)(s,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},setNodeSelection:n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,r=ts(n,0,i.content.size),o=ce.create(i,r);t.setSelection(o)}return!0},setTextSelection:n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,{from:r,to:o}="number"==typeof n?{from:n,to:n}:n,s=Ee.atStart(i).from,a=Ee.atEnd(i).to,l=ts(r,s,a),c=ts(o,s,a),u=Ee.create(i,l,c);t.setSelection(u)}return!0},sinkListItem:n=>({state:t,dispatch:e})=>function UZ(n){return function(t,e){let{$from:i,$to:r}=t.selection,o=i.blockRange(r,c=>c.childCount>0&&c.firstChild.type==n);if(!o)return!1;let s=o.startIndex;if(0==s)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=n)return!1;if(e){let c=l.lastChild&&l.lastChild.type==a.type,u=L.from(c?n.create():null),d=new G(L.from(n.create(null,L.from(a.type.create(null,u)))),c?3:1,0),h=o.start,p=o.end;e(t.tr.step(new Mn(h-(c?3:1),p,h,p,d,1,!0)).scrollIntoView())}return!0}}(Dn(n,t.schema))(t,e),splitBlock:({keepMarks:n=!0}={})=>({tr:t,state:e,dispatch:i,editor:r})=>{const{selection:o,doc:s}=t,{$from:a,$to:l}=o,u=Rm(r.extensionManager.attributes,a.node().type.name,a.node().attrs);if(o instanceof ce&&o.node.isBlock)return!(!a.parentOffset||!$o(s,a.pos)||(i&&(n&&VR(e,r.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),0));if(!a.parent.isBlock)return!1;if(i){const d=l.parentOffset===l.parent.content.size;o instanceof Ee&&t.deleteSelection();const h=0===a.depth?void 0:function Uee(n){for(let t=0;t({tr:t,state:e,dispatch:i,editor:r})=>{var o;const s=Dn(n,e.schema),{$from:a,$to:l}=e.selection,c=e.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==s)return!1;const d=r.extensionManager.attributes;if(0===a.parent.content.size&&a.node(-1).childCount===a.indexAfter(-1)){if(2===a.depth||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(i){let m=L.empty;const A=a.index(-1)?1:a.index(-2)?2:3;for(let Q=a.depth-A;Q>=a.depth-3;Q-=1)m=L.from(a.node(Q).copy(m));const y=a.indexAfter(-1){if(I>-1)return!1;Q.isTextblock&&0===Q.content.size&&(I=O+1)}),I>-1&&t.setSelection(Ee.near(t.doc.resolve(I))),t.scrollIntoView()}return!0}const h=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,p=Rm(d,u.type.name,u.attrs),f=Rm(d,a.node().type.name,a.node().attrs);t.delete(a.pos,l.pos);const g=h?[{type:s,attrs:p},{type:h,attrs:f}]:[{type:s,attrs:p}];return!!$o(t.doc,a.pos,2)&&(i&&t.split(a.pos,2,g).scrollIntoView(),!0)},toggleList:(n,t)=>({editor:e,tr:i,state:r,dispatch:o,chain:s,commands:a,can:l})=>{const{extensions:c}=e.extensionManager,u=Dn(n,r.schema),d=Dn(t,r.schema),{selection:h}=r,{$from:p,$to:f}=h,g=p.blockRange(f);if(!g)return!1;const m=nM(A=>HR(A.type.name,c))(h);if(g.depth>=1&&m&&g.depth-m.depth<=1){if(m.node.type===u)return a.liftListItem(d);if(HR(m.node.type.name,c)&&u.validContent(m.node.content)&&o)return s().command(()=>(i.setNodeMarkup(m.pos,u),!0)).command(()=>GR(i,u)).command(()=>YR(i,u)).run()}return s().command(()=>!!l().wrapInList(u)||a.clearNodes()).wrapInList(u).command(()=>GR(i,u)).command(()=>YR(i,u)).run()},toggleMark:(n,t={},e={})=>({state:i,commands:r})=>{const{extendEmptyMarkRange:o=!1}=e,s=ta(n,i.schema);return rM(i,s,t)?r.unsetMark(s,{extendEmptyMarkRange:o}):r.setMark(s,t)},toggleNode:(n,t,e={})=>({state:i,commands:r})=>{const o=Dn(n,i.schema),s=Dn(t,i.schema);return vh(i,o,e)?r.setNode(s):r.setNode(o,e)},toggleWrap:(n,t={})=>({state:e,commands:i})=>{const r=Dn(n,e.schema);return vh(e,r,t)?i.lift(r):i.wrapIn(r,t)},undoInputRule:()=>({state:n,dispatch:t})=>{const e=n.plugins;for(let i=0;i=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,n.schema.text(o.text,l))}else s.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:t})=>{const{selection:e}=n,{empty:i,ranges:r}=e;return i||t&&r.forEach(o=>{n.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(n,t={})=>({tr:e,state:i,dispatch:r})=>{var o;const{extendEmptyMarkRange:s=!1}=t,{selection:a}=e,l=ta(n,i.schema),{$from:c,empty:u,ranges:d}=a;if(!r)return!0;if(u&&s){let{from:h,to:p}=a;const f=null===(o=c.marks().find(m=>m.type===l))||void 0===o?void 0:o.attrs,g=eM(c,l,f);g&&(h=g.from,p=g.to),e.removeMark(h,p,l)}else d.forEach(h=>{e.removeMark(h.$from.pos,h.$to.pos,l)});return e.removeStoredMark(l),!0},updateAttributes:(n,t={})=>({tr:e,state:i,dispatch:r})=>{let o=null,s=null;const a=Pm("string"==typeof n?n:n.name,i.schema);return!!a&&("node"===a&&(o=Dn(n,i.schema)),"mark"===a&&(s=ta(n,i.schema)),r&&e.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;i.doc.nodesBetween(c,u,(d,h)=>{o&&o===d.type&&e.setNodeMarkup(h,void 0,{...d.attrs,...t}),s&&d.marks.length&&d.marks.forEach(p=>{if(s===p.type){const f=Math.max(h,c),g=Math.min(h+d.nodeSize,u);e.addMark(f,g,s.create({...p.attrs,...t}))}})})}),!0)},wrapIn:(n,t={})=>({state:e,dispatch:i})=>function wZ(n,t=null){return function(e,i){let{$from:r,$to:o}=e.selection,s=r.blockRange(o),a=s&&LC(s,n,t);return!!a&&(i&&i(e.tr.wrap(s,a).scrollIntoView()),!0)}}(Dn(n,e.schema),t)(e,i),wrapInList:(n,t={})=>({state:e,dispatch:i})=>function FZ(n,t=null){return function(e,i){let{$from:r,$to:o}=e.selection,s=r.blockRange(o),a=!1,l=s;if(!s)return!1;if(s.depth>=2&&r.node(s.depth-1).type.compatibleContent(n)&&0==s.startIndex){if(0==r.index(s.depth-1))return!1;let u=e.doc.resolve(s.start-2);l=new Zg(u,u,s.depth),s.endIndex=0;u--)o=L.from(e[u].type.create(e[u].attrs,o));n.step(new Mn(t.start-(i?2:0),t.end,t.start,t.end,new G(o,0,0),e.length,!0));let s=0;for(let u=0;u({...ote})}),ate=Ft.create({name:"editable",addProseMirrorPlugins(){return[new it({key:new _t("editable"),props:{editable:()=>this.editor.options.editable}})]}}),lte=Ft.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new it({key:new _t("focusEvents"),props:{handleDOMEvents:{focus:(t,e)=>{n.isFocused=!0;const i=n.state.tr.setMeta("focus",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1},blur:(t,e)=>{n.isFocused=!1;const i=n.state.tr.setMeta("blur",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1}}}})]}}),cte=Ft.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:h,parent:p}=d,f=_e.atStart(c).from===h;return!(!(u&&f&&p.type.isTextblock)||p.textContent.length)&&s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),i={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...i},o={...i,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Om()||FR()?o:r},addProseMirrorPlugins(){return[new it({key:new _t("clearDocument"),appendTransaction:(n,t,e)=>{if(!n.some(f=>f.docChanged)||t.doc.eq(e.doc))return;const{empty:r,from:o,to:s}=t.selection,a=_e.atStart(t.doc).from,l=_e.atEnd(t.doc).to,c=o===a&&s===l,u=0===e.doc.textBetween(0,e.doc.content.size," "," ").length;if(r||!c||!u)return;const d=e.tr,h=Dm({state:e,transaction:d}),{commands:p}=new Im({editor:this.editor,state:h});return p.clearNodes(),d.steps.length?d:void 0}})]}}),ute=Ft.create({name:"tabindex",addProseMirrorPlugins(){return[new it({key:new _t("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var dte=Object.freeze({__proto__:null,ClipboardTextSerializer:ZZ,Commands:ste,Editable:ate,FocusEvents:lte,Keymap:cte,Tabindex:ute});class fte extends class jZ{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const i=this.callbacks[t];return i&&i.forEach(r=>r.apply(this,e)),this}off(t,e){const i=this.callbacks[t];return i&&(e?this.callbacks[t]=i.filter(r=>r!==e):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=function pte(n,t){const e=document.querySelector("style[data-tiptap-style]");if(null!==e)return e;const i=document.createElement("style");return t&&i.setAttribute("nonce",t),i.setAttribute("data-tiptap-style",""),i.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(i),i}('.ProseMirror {\n position: relative;\n}\n\n.ProseMirror {\n word-wrap: break-word;\n white-space: pre-wrap;\n white-space: break-spaces;\n -webkit-font-variant-ligatures: none;\n font-variant-ligatures: none;\n font-feature-settings: "liga" 0; /* the above doesn\'t seem to work in Edge */\n}\n\n.ProseMirror [contenteditable="false"] {\n white-space: normal;\n}\n\n.ProseMirror [contenteditable="false"] [contenteditable="true"] {\n white-space: pre-wrap;\n}\n\n.ProseMirror pre {\n white-space: pre-wrap;\n}\n\nimg.ProseMirror-separator {\n display: inline !important;\n border: none !important;\n margin: 0 !important;\n width: 1px !important;\n height: 1px !important;\n}\n\n.ProseMirror-gapcursor {\n display: none;\n pointer-events: none;\n position: absolute;\n margin: 0;\n}\n\n.ProseMirror-gapcursor:after {\n content: "";\n display: block;\n position: absolute;\n top: -2px;\n width: 20px;\n border-top: 1px solid black;\n animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;\n}\n\n@keyframes ProseMirror-cursor-blink {\n to {\n visibility: hidden;\n }\n}\n\n.ProseMirror-hideselection *::selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n}\n\n.ProseMirror-hideselection * {\n caret-color: transparent;\n}\n\n.ProseMirror-focused .ProseMirror-gapcursor {\n display: block;\n}\n\n.tippy-box[data-animation=fade][data-state=hidden] {\n opacity: 0\n}',this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},this.view&&this.state&&!this.isDestroyed&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t){this.setOptions({editable:t}),this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const i=SR(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:i});this.view.updateState(r)}unregisterPlugin(t){if(this.isDestroyed)return;const e="string"==typeof t?`${t}$`:t.key,i=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(e))});this.view.updateState(i)}createExtensionManager(){const e=[...this.options.enableCoreExtensions?Object.values(dte):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new cl(e,this)}createCommandManager(){this.commandManager=new Im({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=NR(this.options.content,this.schema,this.options.parseOptions),e=PR(t,this.options.autofocus);this.view=new aZ(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Uc.create({doc:t,selection:e||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.view.dom.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.isCapturingTransaction)return this.capturedTransaction?void t.steps.forEach(s=>{var a;return null===(a=this.capturedTransaction)||void 0===a?void 0:a.step(s)}):void(this.capturedTransaction=t);const e=this.state.apply(t),i=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),i&&this.emit("selectionUpdate",{editor:this,transaction:t});const r=t.getMeta("focus"),o=t.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:t}),o&&this.emit("blur",{editor:this,event:o.event,transaction:t}),t.docChanged&&!t.getMeta("preventUpdate")&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return zR(this.state,t)}isActive(t,e){return function Wee(n,t,e={}){if(!t)return vh(n,null,e)||rM(n,null,e);const i=Pm(t,n.schema);return"node"===i?vh(n,t,e):"mark"===i&&rM(n,t,e)}(this.state,"string"==typeof t?t:null,"string"==typeof t?e:t)}getJSON(){return this.state.doc.toJSON()}getHTML(){return function QR(n,t){const e=co.fromSchema(t).serializeFragment(n),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e="\n\n",textSerializers:i={}}=t||{};return function UR(n,t){return kR(n,{from:0,to:n.content.size},t)}(this.state.doc,{blockSeparator:e,textSerializers:{...i,...Xv(this.schema)}})}get isEmpty(){return function Jee(n){var t;const e=null===(t=n.type.createAndFill())||void 0===t?void 0:t.toJSON(),i=n.toJSON();return JSON.stringify(e)===JSON.stringify(i)}(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(null!==(t=this.view)&&void 0!==t&&t.docView)}}function dl(n){return new Ch({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=e.to;if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),d=u+s.length;if(Fm(e.from,e.to,t.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;de.from&&o.delete(e.from+c,u),l=e.from+c+s.length,o.addMark(e.from+c,l,n.type.create(r||{})),o.removeStoredMark(n.type)}}})}function WR(n){return new Ch({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i)||{},{tr:o}=t,s=e.from;let a=e.to;if(i[1]){let c=s+i[0].lastIndexOf(i[1]);c>a?c=a:a=c+i[1].length,o.insertText(i[0][i[0].length-1],s+i[0].length-1),o.replaceWith(c,a,n.type.create(r))}else i[0]&&o.replaceWith(s,a,n.type.create(r))}})}function oM(n){return new Ch({find:n.find,handler:({state:t,range:e,match:i})=>{const r=t.doc.resolve(e.from),o=Be(n.getAttributes,void 0,i)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),n.type))return null;t.tr.delete(e.from,e.to).setBlockType(e.from,e.from,n.type,o)}})}function sM(n){return new Ch({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i)||{},o=t.tr.delete(e.from,e.to),a=o.doc.resolve(e.from).blockRange(),l=a&&LC(a,n.type,r);if(!l)return null;o.wrap(a,l);const c=o.doc.resolve(e.from-1).nodeBefore;c&&c.type===n.type&&Us(o.doc,e.from-1)&&(!n.joinPredicate||n.joinPredicate(i,c))&&o.join(e.from-1)}})}class Qr{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Qr(t)}configure(t={}){const e=this.extend();return e.options=xm(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Qr(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:i}=t.state,r=t.state.selection.$from;if(r.pos===r.end()){const s=r.marks();if(!s.find(c=>c?.type.name===e.name))return!1;const l=s.find(c=>c?.type.name===e.name);return l&&i.removeStoredMark(l),i.insertText(" ",r.pos),t.view.dispatch(i),!0}return!1}}class tn{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=Be(ne(this,"addOptions",{name:this.name}))),this.storage=Be(ne(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new tn(t)}configure(t={}){const e=this.extend();return e.options=xm(this.options,t),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new tn(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=Be(ne(e,"addOptions",{name:e.name})),e.storage=Be(ne(e,"addStorage",{name:e.name,options:e.options})),e}}function na(n){return new $v({find:n.find,handler:({state:t,range:e,match:i})=>{const r=Be(n.getAttributes,void 0,i);if(!1===r||null===r)return null;const{tr:o}=t,s=i[i.length-1],a=i[0];let l=e.to;if(s){const c=a.search(/\S/),u=e.from+a.indexOf(s),d=u+s.length;if(Fm(e.from,e.to,t.doc).filter(p=>p.mark.type.excluded.find(g=>g===n.type&&g!==p.mark.type)).filter(p=>p.to>u).length)return null;de.from&&o.delete(e.from+c,u),l=e.from+c+s.length,o.addMark(e.from+c,l,n.type.create(r||{})),o.removeStoredMark(n.type)}}})}function JR(n,t,e,i,r,o,s){try{var a=n[o](s),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function Mh(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var o=n.apply(t,e);function s(l){JR(o,i,r,s,a,"next",l)}function a(l){JR(o,i,r,s,a,"throw",l)}s(void 0)})}}const bte=new _t("suggestion");function yte({pluginKey:n=bte,editor:t,char:e="@",allowSpaces:i=!1,allowedPrefixes:r=[" "],startOfLine:o=!1,decorationTag:s="span",decorationClass:a="suggestion",command:l=(()=>null),items:c=(()=>[]),render:u=(()=>({})),allow:d=(()=>!0)}){let h;const p=u?.(),f=new it({key:n,view(){var m,g=this;return{update:(m=Mh(function*(A,y){var E,b,D,I,Q,O,q;const le=null===(E=g.key)||void 0===E?void 0:E.getState(y),xe=null===(b=g.key)||void 0===b?void 0:b.getState(A.state),ke=le.active&&xe.active&&le.range.from!==xe.range.from,Ae=!le.active&&xe.active,dt=le.active&&!xe.active,U=Ae||ke,V=!Ae&&!dt&&le.query!==xe.query&&!ke,W=dt||ke;if(!U&&!V&&!W)return;const X=W&&!U?le:xe,Ce=A.dom.querySelector(`[data-decoration-id="${X.decorationId}"]`);h={editor:t,range:X.range,query:X.query,text:X.text,items:[],command:ft=>{l({editor:t,range:X.range,props:ft})},decorationNode:Ce,clientRect:Ce?()=>{var ft;const{decorationId:Bt}=null===(ft=g.key)||void 0===ft?void 0:ft.getState(t.state);return A.dom.querySelector(`[data-decoration-id="${Bt}"]`)?.getBoundingClientRect()||null}:null},U&&(null===(D=p?.onBeforeStart)||void 0===D||D.call(p,h)),V&&(null===(I=p?.onBeforeUpdate)||void 0===I||I.call(p,h)),(V||U)&&(h.items=yield c({editor:t,query:X.query})),W&&(null===(Q=p?.onExit)||void 0===Q||Q.call(p,h)),V&&(null===(O=p?.onUpdate)||void 0===O||O.call(p,h)),U&&(null===(q=p?.onStart)||void 0===q||q.call(p,h))}),function(y,E){return m.apply(this,arguments)}),destroy:()=>{var m;!h||null===(m=p?.onExit)||void 0===m||m.call(p,h)}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1}),apply(g,m,A,y){const{isEditable:E}=t,{composing:b}=t.view,{selection:D}=g,{empty:I,from:Q}=D,O={...m};if(O.composing=b,E&&(I||t.view.composing)){(Qm.range.to)&&!b&&!m.composing&&(O.active=!1);const q=function Ate(n){var t;const{char:e,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:s}=n,a=function mte(n){return n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}(e),l=new RegExp(`\\s${a}$`),c=o?"^":"",u=i?new RegExp(`${c}${a}.*?(?=\\s${a}|$)`,"gm"):new RegExp(`${c}(?:^)?${a}[^\\s${a}]*`,"gm"),d=(null===(t=s.nodeBefore)||void 0===t?void 0:t.isText)&&s.nodeBefore.text;if(!d)return null;const h=s.pos-d.length,p=Array.from(d.matchAll(u)).pop();if(!p||void 0===p.input||void 0===p.index)return null;const f=p.input.slice(Math.max(0,p.index-1),p.index),g=new RegExp(`^[${r?.join("")}\0]?$`).test(f);if(null!==r&&!g)return null;const m=h+p.index;let A=m+p[0].length;return i&&l.test(d.slice(A-1,A+1))&&(p[0]+=" ",A+=1),m=s.pos?{range:{from:m,to:A},query:p[0].slice(e.length),text:p[0]}:null}({char:e,allowSpaces:i,allowedPrefixes:r,startOfLine:o,$position:D.$from}),le=`id_${Math.floor(4294967295*Math.random())}`;q&&d({editor:t,state:y,range:q.range})?(O.active=!0,O.decorationId=m.decorationId?m.decorationId:le,O.range=q.range,O.query=q.query,O.text=q.text):O.active=!1}else O.active=!1;return O.active||(O.decorationId=null,O.range={from:0,to:0},O.query=null,O.text=null),O}},props:{handleKeyDown(g,m){var A;const{active:y,range:E}=f.getState(g.state);return y&&(null===(A=p?.onKeyDown)||void 0===A?void 0:A.call(p,{view:g,event:m,range:E}))||!1},decorations(g){const{active:m,range:A,decorationId:y}=f.getState(g);return m?kt.create(g.doc,[wn.inline(A.from,A.to,{nodeName:s,class:a,"data-decoration-id":y})]):null}}});return f}let _te=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-action-button"]],decls:3,vars:0,consts:[[1,"material-icons"]],template:function(e,i){1&e&&(x(0,"button")(1,"i",0),de(2,"add"),B()())},styles:["[_nghost-%COMP%]{display:block}button[_ngcontent-%COMP%]{all:unset;cursor:pointer;border:solid 1px #eee;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#666;background:#ffffff}"]}),n})();const Ete=function(){return{padding:".75rem 2rem",borderRadius:"2px"}};function Cte(n,t){if(1&n){const e=Re();x(0,"button",2),K("mousedown",function(){return re(e),oe(w().back.emit())}),B()}2&n&&An(io(2,Ete))}let KR=(()=>{class n{constructor(){this.title="No Results",this.showBackBtn=!1,this.back=new te}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-empty-message"]],inputs:{title:"title",showBackBtn:"showBackBtn"},outputs:{back:"back"},decls:2,vars:2,consts:[[3,"innerHTML"],["pButton","","class","p-button-outlined","label","Back","type","submit",3,"style","mousedown",4,"ngIf"],["pButton","","label","Back","type","submit",1,"p-button-outlined",3,"mousedown"]],template:function(e,i){1&e&&(ie(0,"p",0),S(1,Cte,1,3,"button",1)),2&e&&(C("innerHTML",i.title,qp),v(1),C("ngIf",i.showBackBtn))},dependencies:[Pt,Fs],styles:["[_nghost-%COMP%]{align-items:center;flex-direction:column;display:flex;justify-content:center;padding:16px;height:240px}"]}),n})();function vte(n,t){if(1&n&&(x(0,"i",7),de(1),B()),2&n){const e=w();v(1),pt(e.url)}}function Mte(n,t){1&n&&ie(0,"dot-contentlet-thumbnail",9),2&n&&C("contentlet",w(2).data.contentlet)("width",42)("height",42)("iconSize","42px")}function wte(n,t){if(1&n&&S(0,Mte,1,4,"dot-contentlet-thumbnail",8),2&n){const e=w(),i=Qt(10);C("ngIf",null==e.data?null:e.data.contentlet)("ngIfElse",i)}}function Dte(n,t){if(1&n&&(x(0,"span",10),de(1),B()),2&n){const e=w();v(1),pt(e.data.contentlet.url)}}function Ite(n,t){if(1&n&&(x(0,"div",11),ie(1,"dot-state-icon",12),x(2,"dot-badge",13),de(3),La(4,"lowercase"),B()()),2&n){const e=w();v(1),C("state",e.data.contentlet),v(2),pt(Qa(4,2,e.data.contentlet.language))}}function Ste(n,t){1&n&&ie(0,"img",14),2&n&&C("src",w().url,No)}let aM=(()=>{class n{constructor(e){this.element=e,this.role="list-item",this.tabindex="-1",this.disabled=!1,this.label="",this.url="",this.page=!1,this.data=null,this.icon=!1}onMouseDown(e){e.preventDefault(),this.disabled||this.command()}ngOnInit(){this.icon=this.icon="string"==typeof this.url&&!(this.url.split("/").length>1)}getLabel(){return this.element.nativeElement.innerText}focus(){this.element.nativeElement.style="background: #eee"}unfocus(){this.element.nativeElement.style=""}scrollIntoView(){if(!this.isIntoView()){const e=this.element.nativeElement,i=e.parentElement,{top:r,top:o,height:s}=i.getBoundingClientRect(),{top:a,bottom:l}=e.getBoundingClientRect(),c=a-r,u=l-o;i.scrollTop+=this.alignToTop()?c:u-s}}isIntoView(){const{bottom:e,top:i}=this.element.nativeElement.getBoundingClientRect(),r=this.element.nativeElement.parentElement.getBoundingClientRect();return i>=r.top&&e<=r.bottom}alignToTop(){const{top:e}=this.element.nativeElement.getBoundingClientRect(),{top:i}=this.element.nativeElement.parentElement.getBoundingClientRect();return e span[_ngcontent-%COMP%]{overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px}.data-wrapper[_ngcontent-%COMP%] .url[_ngcontent-%COMP%]{color:#b3b1b8;font-size:14.4px}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:8px;display:flex;align-items:flex-end}.data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] dot-state-icon[_ngcontent-%COMP%]{margin-right:8px}"]}),n})();const xte=["*"];let $R=(()=>{class n{constructor(){this.id="editor-suggestion-list",this.suggestionItems=[],this.destroy$=new Me,this.mouseMove=!0}onMouseMove(){this.mouseMove=!0}onMouseOver(e){const i=e.target,r=i.dataset?.index;if(isNaN(r)||!this.mouseMove)return;const o=Number(i?.dataset.index);i.getAttribute("disabled")?this.keyManager.activeItem?.unfocus():this.updateActiveItem(o)}onMouseDownHandler(e){e.preventDefault()}ngAfterViewInit(){this.keyManager=new VO(this.items).withWrap(),requestAnimationFrame(()=>this.setFirstItemActive()),this.items.changes.pipe(Yn(this.destroy$)).subscribe(()=>requestAnimationFrame(()=>this.setFirstItemActive()))}ngOnDestroy(){this.destroy$.next(!0)}updateSelection(e){this.keyManager.activeItem&&this.keyManager.activeItem.unfocus(),this.keyManager.onKeydown(e),this.keyManager.activeItem?.scrollIntoView(),this.mouseMove=!1}execCommand(){this.keyManager.activeItem.command()}setFirstItemActive(){this.keyManager.activeItem?.unfocus(),this.keyManager.setFirstItemActive(),this.keyManager.activeItem?.focus()}resetKeyManager(){this.keyManager.activeItem?.unfocus(),this.keyManager=new VO(this.items).withWrap(),this.setFirstItemActive()}updateActiveItem(e){this.keyManager.activeItem?.unfocus(),this.keyManager.setActiveItem(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-list"]],contentQueries:function(e,i,r){if(1&e&&jn(r,aM,4),2&e){let o;He(o=Ve())&&(i.items=o)}},hostVars:1,hostBindings:function(e,i){1&e&&K("mousemove",function(o){return i.onMouseMove(o)})("mouseover",function(o){return i.onMouseOver(o)})("mousedown",function(o){return i.onMouseDownHandler(o)}),2&e&&Ot("id",i.id)},inputs:{suggestionItems:"suggestionItems"},ngContentSelectors:xte,decls:1,vars:0,template:function(e,i){1&e&&(eo(),Ri(0))},styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}"]}),n})();function eu(...n){const t=n.length;if(0===t)throw new Error("list of properties cannot be empty.");return e=>fe(function Tte(n,t){return i=>{let r=i;for(let o=0;o{class n{constructor(e){this.http=e}get defaultHeaders(){const e=new Fr;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getLanguages(){return this.languages?ae(this.languages):this.http.get("/api/v2/languages",{headers:this.defaultHeaders}).pipe(eu("entity"),fe(e=>{const i=this.getDotLanguageObject(e);return this.languages=i,i}))}getDotLanguageObject(e){return e.reduce((i,r)=>Object.assign(i,{[r.id]:r}),{})}}return n.\u0275fac=function(e){return new(e||n)(j(vc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var Nm=(()=>(function(n){n.ASC="ASC",n.DESC="DESC"}(Nm||(Nm={})),Nm))();let Bte=(()=>{class n{constructor(e){this.http=e}get({query:e,limit:i=0,offset:r=0}){return this.http.post("/api/content/_search",{query:e,sort:"score,modDate desc",limit:i,offset:r}).pipe(eu("entity"))}}return n.\u0275fac=function(e){return new(e||n)(j(vc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),cM=(()=>{class n{constructor(e){this.http=e}get defaultHeaders(){const e=new Fr;return e.set("Accept","*/*").set("Content-Type","application/json"),e}getContentTypes(e="",i=""){return this.http.post("/api/v1/contenttype/_filter",{filter:{types:i,query:e},orderBy:"name",direction:"ASC",perPage:40}).pipe(eu("entity"))}getContentlets({contentType:e,filter:i,currentLanguage:r}){return this.http.post("/api/content/_search",{query:`+contentType:${e} +languageId:${r} +deleted:false +working:true +catchall:*${i}* `,sort:"modDate desc",offset:0,limit:40}).pipe(eu("entity","jsonObjectView","contentlets"))}getContentletsUrlMap({filter:e,currentLanguage:i=Um}){return this.http.post("/api/content/_search",{query:`+languageId:${i} +deleted:false +working:true +(urlmap:*${e}* OR +(basetype:5 AND path:*${e}*))`,sort:"modDate desc",offset:0,limit:40}).pipe(eu("entity","jsonObjectView","contentlets"))}}return n.\u0275fac=function(e){return new(e||n)(j(vc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const Ote={SHOW_VIDEO_THUMBNAIL:!0};let qR=(()=>{class n{constructor(){this.config=Ote}get configObject(){return this.config}setProperty(e,i){this.config={...this.config,[e]:i}}getProperty(e){return this.config[e]||!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const kte=["list"];function Pte(n,t){if(1&n&&(x(0,"h3"),de(1),B()),2&n){const e=w(2);v(1),pt(e.title)}}function Fte(n,t){if(1&n&&ie(0,"dot-suggestions-list-item",7),2&n){const e=w(),i=e.$implicit,r=e.index;C("command",i.command)("index",i.tabindex||r)("label",i.label)("url",i.icon)("data",i.data)("disabled",i.disabled)}}function Rte(n,t){1&n&&ie(0,"div",8)}function Nte(n,t){if(1&n&&(ct(0),S(1,Fte,1,6,"dot-suggestions-list-item",5),S(2,Rte,1,0,"ng-template",null,6,on),ut()),2&n){const e=t.$implicit,i=Qt(3);v(1),C("ngIf","divider"!==e.id)("ngIfElse",i)}}function Lte(n,t){if(1&n&&(x(0,"div"),S(1,Pte,2,1,"h3",2),x(2,"dot-suggestion-list",null,3),S(4,Nte,4,2,"ng-container",4),B()()),2&n){const e=w();v(1),C("ngIf",!!e.title),v(3),C("ngForOf",e.items)}}function Qte(n,t){if(1&n){const e=Re();x(0,"dot-empty-message",9),K("back",function(){return re(e),oe(w().handleBackButton())}),B()}if(2&n){const e=w();C("title",e.noResultsMessage)("showBackBtn",!e.isFilterActive)}}var Xn=(()=>(function(n){n.BLOCK="block",n.CONTENTTYPE="contentType",n.CONTENT="content"}(Xn||(Xn={})),Xn))();let Lm=(()=>{class n{constructor(e,i,r){this.suggestionsService=e,this.dotLanguageService=i,this.cd=r,this.items=[],this.title="Select a block",this.noResultsMessage="No Results",this.currentLanguage=Um,this.allowedContentTypes="",this.isFilterActive=!1}onMouseDownHandler(e){e.preventDefault()}ngOnInit(){this.initialItems=this.items,this.itemsLoaded=Xn.BLOCK,this.dotLanguageService.getLanguages().pipe($n(1)).subscribe(e=>this.dotLangs=e)}addContentletItem(){this.items=[{label:"Contentlets",icon:"receipt",command:()=>this.loadContentTypes()},...this.items],this.initialItems=this.items}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}handleBackButton(){return this.itemsLoaded=this.itemsLoaded===Xn.CONTENT?Xn.CONTENTTYPE:Xn.BLOCK,this.filterItems(),!1}filterItems(e=""){switch(this.itemsLoaded){case Xn.BLOCK:this.items=this.initialItems.filter(i=>i.label.toLowerCase().includes(e.trim().toLowerCase()));break;case Xn.CONTENTTYPE:this.loadContentTypes(e);break;case Xn.CONTENT:this.loadContentlets(this.selectedContentType,e)}this.isFilterActive=!!e.length}loadContentTypes(e=""){this.suggestionsService.getContentTypes(e,this.allowedContentTypes).pipe(fe(i=>i.map(r=>({label:r.name,icon:r.icon,command:()=>{this.selectedContentType=r,this.itemsLoaded=Xn.CONTENT,this.loadContentlets(r)}}))),$n(1)).subscribe(i=>{this.items=i,this.itemsLoaded=Xn.CONTENTTYPE,this.items.length?this.title="Select a content type":this.noResultsMessage="No results",this.cd.detectChanges()})}loadContentlets(e,i=""){this.suggestionsService.getContentlets({contentType:e.variable,filter:i,currentLanguage:this.currentLanguage}).pipe($n(1)).subscribe(r=>{this.items=r.map(o=>{const{languageId:s}=o;return o.language=this.getContentletLanguage(s),{label:o.title,icon:"contentlet/image",data:{contentlet:o},command:()=>{this.onSelectContentlet({payload:o,type:{name:"dotContent"}})}}}),this.items.length?this.title="Select a contentlet":this.noResultsMessage=`No results for ${e.name}`,this.cd.detectChanges()})}getContentletLanguage(e){const{languageCode:i,countryCode:r}=this.dotLangs[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(T(cM),T(lM),T(li))},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestions"]],viewQuery:function(e,i){if(1&e&&Zt(kte,5),2&e){let r;He(r=Ve())&&(i.list=r.first)}},hostBindings:function(e,i){1&e&&K("mousedown",function(o){return i.onMouseDownHandler(o)})},inputs:{onSelectContentlet:"onSelectContentlet",items:"items",title:"title",noResultsMessage:"noResultsMessage",currentLanguage:"currentLanguage",allowedContentTypes:"allowedContentTypes"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["emptyBlock",""],[4,"ngIf"],["list",""],[4,"ngFor","ngForOf"],[3,"command","index","label","url","data","disabled",4,"ngIf","ngIfElse"],["divider",""],[3,"command","index","label","url","data","disabled"],[1,"divider"],[3,"title","showBackBtn","back"]],template:function(e,i){if(1&e&&(S(0,Lte,5,2,"div",0),S(1,Qte,1,2,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",i.items.length)("ngIfElse",r)}},styles:['[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px #0000001a;padding:8px 0;background:#ffffff;font-family:Roboto,Helvetica,sans-serif,Arial}h3[_ngcontent-%COMP%]{text-transform:uppercase;font-size:16px;margin:8px 16px;color:#999}.suggestion-list-container[_ngcontent-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.material-icons[_ngcontent-%COMP%]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}.divider[_ngcontent-%COMP%]{border-top:#b3b1b8 solid 1px;margin:.5rem 0}']}),n})();const XR={inode:"14dd5ad9-55ae-42a8-a5a7-e259b6d0901a",variantId:"DEFAULT",locked:!1,stInode:"d5ea385d-32ee-4f35-8172-d37f58d9cd7a",contentType:"Image",height:4e3,identifier:"93ca45e0-06d2-4eef-be1d-79bd6bf0fc99",hasTitleImage:!0,sortOrder:0,hostName:"demo.dotcms.com",extension:"jpg",isContent:!0,baseType:"FILEASSETS",archived:!1,working:!0,live:!0,isContentlet:!0,languageId:1,titleImage:"fileAsset",hasLiveVersion:!0,deleted:!1,folder:"",host:"",modDate:"",modUser:"",modUserName:"",owner:"",title:"",url:"",contentTypeIcon:"assessment",__icon__:"Icon"},uM="menuFloating";class zte{constructor({editor:t,element:e,view:i,tippyOptions:r,render:o,command:s,key:a}){this.invalidNodes=["codeBlock","blockquote"],this.mousedownHandler=l=>{l.preventDefault(),this.editor.chain().insertContent("/").run()},this.editor=t,this.element=e,this.view=i,this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",()=>{this.tippy.unmount(),this.update(this.editor.view)}),this.element.style.visibility="visible",this.render=o,this.command=s,this.key=a,this.createTooltip(r)}createTooltip(t={}){this.tippy=Xo(this.view.dom,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"left",hideOnClick:"toggle",...t})}update(t,e){const{selection:i}=t.state,{$anchor:r,empty:o,from:s,to:a}=i,u=1===r.depth&&!i.$anchor.parent.isLeaf&&!i.$anchor.parent.textContent,d=r.parent.type.name,h=this.key?.getState(t.state),p=e?this.key?.getState(e):null;if(p?.open||o&&u)if(p?.open||!this.invalidNodes.includes(d))if(this.tippy.setProps({getReferenceClientRect:()=>ul(t,s,a)}),this.show(),h.open){const{from:f,to:g}=this.editor.state.selection,m=ul(this.view,f,g);this.render().onStart({clientRect:()=>m,range:{from:f,to:g},editor:this.editor,command:this.command})}else p&&p.open&&this.render().onExit(null);else this.hide();else this.hide()}show(){this.tippy.show()}hide(){this.tippy.hide()}destroy(){this.tippy.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler)}}const ZR=new _t(uM),Hte=n=>new it({key:ZR,view:t=>new zte({key:ZR,view:t,...n}),state:{init:()=>({open:!1}),apply(t){const e=t.getMeta(uM);return e?.open?{open:e?.open}:{open:!1}}},props:{handleKeyDown(t,e){const{open:i,range:r}=this.getState(t.state);return!!i&&n.render().onKeyDown({event:e,range:r,view:t})}}}),Jte={paragrah:!0,text:!0,doc:!0},eN={image:{image:!0,dotImage:!0},table:{table:!0,tableRow:!0,tableHeader:!0,tableCell:!0},orderedList:{orderedList:!0,listItem:!0},bulletList:{bulletList:!0,listItem:!0}},Kte=(n,t)=>{const{type:e,attrs:i}=n;return"heading"===e&&t[e+i.level]},tN=(n,t)=>{if(!n?.length)return n;const e=[];for(const i in n){const r=n[i];(t[r.type]||Kte(r,t))&&e.push({...r,content:tN(r.content,t)})}return e},Xte=new RegExp(/]*)>(\s|\n|]*src="[^"]*"[^>]*>)*?<\/a>/gm),dM=new RegExp(/]*src="[^"]*"[^>]*>/gm),hl=(n,t)=>{let i,e=n.depth;do{if(i=n.node(e),i){if(Array.isArray(t)&&t.includes(i.type.name))break;e--}}while(e>0&&i);return i},Qm=n=>{const t=n.match(dM)||[];return(new DOMParser).parseFromString(n,"text/html").documentElement.textContent.trim().length>0?n.replace(dM,"")+t.join(""):t.join("")},nN=n=>{const{state:t}=n,{doc:e}=t.tr,i=t.selection.to,r=Ee.create(e,i,i);n.dispatch(t.tr.setSelection(r))};class pl extends Jn{constructor(t,e){super(),this.STEP_TYPE="setDocAttr",this.key=t,this.value=e}get stepType(){return this.STEP_TYPE}static fromJSON(t,e){return new pl(e.key,e.value)}static register(){try{Jn.jsonID(this.prototype.STEP_TYPE,pl)}catch(t){if(t.message!==`Duplicate use of step JSON ID ${this.prototype.STEP_TYPE}`)throw t}return!0}apply(t){return this.prevValue=t.attrs[this.key],t.attrs===t.type.defaultAttrs&&(t.attrs=Object.assign({},t.attrs)),t.attrs[this.key]=this.value,ln.ok(t)}invert(){return new pl(this.key,this.prevValue)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}}const Um=1;var Zn=(()=>(function(n){n.DOT_IMAGE="dotImage",n.LIST_ITEM="listItem",n.BULLET_LIST="bulletList",n.ORDERED_LIST="orderedList",n.BLOCKQUOTE="blockquote",n.CODE_BLOCK="codeBlock",n.DOC="doc",n.DOT_CONTENT="dotContent",n.PARAGRAPH="paragraph",n.HARD_BREAK="hardBreak",n.HEADING="heading",n.HORIZONTAL_RULE="horizontalRule",n.TEXT="text",n.TABLE_CELL="tableCell"}(Zn||(Zn={})),Zn))();const ane=[Zn.DOT_IMAGE,Zn.DOT_CONTENT];function iN({editor:n,range:t,props:e,customBlocks:i}){const{type:r,payload:o}=e,s={dotContent:()=>{n.chain().addContentletBlock({range:t,payload:o}).addNextLine().run()},heading:()=>{n.chain().addHeading({range:t,type:r}).run()},table:()=>{n.commands.openForm([{key:"rows",label:"Rows",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"columns",label:"Columns",required:!0,value:"3",controlType:"number",type:"number",min:1},{key:"header",label:"Add Row Header",required:!1,value:!0,controlType:"text",type:"checkbox"}],{customClass:"dotTableForm"}).pipe($n(1),ir(a=>!!a)).subscribe(a=>{requestAnimationFrame(()=>{n.chain().insertTable({rows:a.rows,cols:a.columns,withHeaderRow:!!a.header}).focus().run()})})},orderedList:()=>{n.chain().deleteRange(t).toggleOrderedList().focus().run()},bulletList:()=>{n.chain().deleteRange(t).toggleBulletList().focus().run()},blockquote:()=>{n.chain().deleteRange(t).setBlockquote().focus().run()},codeBlock:()=>{n.chain().deleteRange(t).setCodeBlock().focus().run()},horizontalRule:()=>{n.chain().deleteRange(t).setHorizontalRule().focus().run()},image:()=>n.commands.openAssetForm({type:"image"}),video:()=>n.commands.openAssetForm({type:"video"})};rN(i).forEach(a=>{s[a.id]=()=>{try{n.commands[a.commandKey]()}catch{console.warn(`Custom command ${a.commandKey} does not exists.`)}}}),s[e.type.name]?s[e.type.name]():n.chain().setTextSelection(t).focus().run()}function rN(n){return n.extensions.map(t=>function cne(n){return n.map(t=>({icon:t.icon,label:t.menuLabel,commandKey:t.command,id:`${t.command}-id`}))}(t.actions||[])).flat()}const une=(n,t)=>{let e,i;const r=new _t("suggestionPlugin"),o=new Me;let s=!0;function a({editor:g,range:m,clientRect:A}){s&&(function c(g,m){const{allowedBlocks:A,allowedContentTypes:y,lang:E}=g.storage.dotConfig,D=function u({allowedBlocks:g=[],editor:m,range:A}){const E=[...g.length?Wg.filter(b=>g.includes(b.id)):Wg,...rN(t)];return E.forEach(b=>b.command=()=>function d({item:g,editor:m,range:A}){const{id:y,attributes:E}=g,b={type:{name:y.includes("heading")?"heading":y,...E}};dk({type:Xn.BLOCK,editor:m,range:A,suggestionKey:r,ItemsType:Xn}),h({editor:m,range:A,props:b})}({item:b,editor:m,range:A})),E}({allowedBlocks:A.length>1?A:[],editor:g,range:m});i=n.createComponent(Lm),i.instance.items=D,i.instance.currentLanguage=E,i.instance.allowedContentTypes=y,i.instance.onSelectContentlet=I=>{dk({type:Xn.CONTENT,editor:g,range:m,suggestionKey:r,ItemsType:Xn}),h({editor:g,range:m,props:I})},i.changeDetectorRef.detectChanges(),(A.length<=1||A.includes("dotContent"))&&i.instance.addContentletItem()}(g,m),e=function lne({element:n,content:t,rect:e,onHide:i}){return Xo(n,{content:t,placement:"bottom",popperOptions:{modifiers:Z9},getReferenceClientRect:e,showOnCreate:!0,interactive:!0,offset:[120,10],trigger:"manual",maxWidth:"none",onHide:i})}({element:g.options.element.parentElement,content:i.location.nativeElement,rect:A,onHide:()=>{const y=g.state.tr.setMeta(uM,{open:!1});g.view.dispatch(y),g.commands.freezeScroll(!1)}}))}function l({editor:g}){g.commands.freezeScroll(!0);const m=hl(g.view.state.selection.$from,[Zn.TABLE_CELL])?.type.name===Zn.TABLE_CELL,A=hl(g.view.state.selection.$from,[Zn.CODE_BLOCK])?.type.name===Zn.CODE_BLOCK;s=!m&&!A}function h({editor:g,range:m,props:A}){const y=r.getState(g.view.state).query?.length||0;m.to=m.to+y,iN({editor:g,range:m,props:A,customBlocks:t})}function p({event:g}){const{key:m}=g;return"Escape"===m?(g.stopImmediatePropagation(),e.hide(),!0):"Enter"===m?(i.instance.execCommand(),!0):("ArrowDown"===m||"ArrowUp"===m)&&(i.instance.updateSelection(g),!0)}function f({editor:g}){e?.destroy(),g.commands.freezeScroll(!1),i?.destroy(),i=null,o.next(!0),o.complete()}return Ft.create({name:"actionsMenu",addOptions:()=>({pluginKey:"actionsMenu",element:null,suggestion:{char:"/",pluginKey:r,allowSpaces:!0,startOfLine:!0,render:()=>({onBeforeStart:l,onStart:a,onKeyDown:p,onExit:f}),items:({query:g})=>(i&&i.instance.filterItems(g),[])}}),addCommands:()=>({addHeading:({range:g,type:m})=>({chain:A})=>A().focus().deleteRange(g).toggleHeading({level:m.level}).focus().run(),addContentletBlock:({range:g,payload:m})=>({chain:A})=>A().deleteRange(g).command(y=>{const E=y.editor.schema.nodes.dotContent.create({data:m});return y.tr.replaceSelectionWith(E),!0}).run(),addNextLine:()=>({chain:g})=>g().command(m=>{const{selection:A}=m.state;return m.commands.insertContentAt(A.head,{type:"paragraph"}),!0}).focus().run()}),addProseMirrorPlugins(){const g=n.createComponent(_te);return[Hte({command:iN,editor:this.editor,element:g.location.nativeElement,render:()=>({onStart:a,onKeyDown:p,onExit:f})}),yte({editor:this.editor,...this.options.suggestion})]}})};var jm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},oN=function dne(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},gne="object"==typeof self&&self&&self.Object===Object&&self,mne="object"==typeof jm&&jm&&jm.Object===Object&&jm||gne||Function("return this")(),Ane=mne,_ne=/\s/,vne=function Ene(n){for(var t=n.length;t--&&_ne.test(n.charAt(t)););return t},Mne=/^\s+/,Sne=mne.Symbol,cN=Object.prototype,xne=cN.hasOwnProperty,Tne=cN.toString,Dh=Sne?Sne.toStringTag:void 0,Pne=Object.prototype.toString,Nne=function Bne(n){var t=xne.call(n,Dh),e=n[Dh];try{n[Dh]=void 0;var i=!0}catch{}var r=Tne.call(n);return i&&(t?n[Dh]=e:delete n[Dh]),r},Lne=function Fne(n){return Pne.call(n)},dN=Sne?Sne.toStringTag:void 0,Gne=function jne(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":dN&&dN in Object(n)?Nne(n):Lne(n)},Yne=function Hne(n){return null!=n&&"object"==typeof n},$ne=function wne(n){return n&&n.slice(0,vne(n)+1).replace(Mne,"")},hN=oN,qne=function Jne(n){return"symbol"==typeof n||Yne(n)&&"[object Symbol]"==Gne(n)},Xne=/^[-+]0x[0-9a-f]+$/i,Zne=/^0b[01]+$/i,eie=/^0o[0-7]+$/i,tie=parseInt,rie=oN,hM=function(){return Ane.Date.now()},fN=function nie(n){if("number"==typeof n)return n;if(qne(n))return NaN;if(hN(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=hN(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=$ne(n);var e=Zne.test(n);return e||eie.test(n)?tie(n.slice(2),e?2:8):Xne.test(n)?NaN:+n},sie=Math.max,aie=Math.min;class pM{constructor({editor:t,element:e,view:i,tippyOptions:r={},updateDelay:o=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:l,from:c,to:u})=>{const{doc:d,selection:h}=l,{empty:p}=h,f=!d.textBetween(c,u).length&&Bm(l.selection),g=this.element.contains(document.activeElement);return!(!a.hasFocus()&&!g||p||f||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;this.preventHide?this.preventHide=!1:a?.relatedTarget&&(null===(l=this.element.parentNode)||void 0===l?void 0:l.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.updateHandler=(a,l)=>{var c,u,d;const{state:h,composing:p}=a,{doc:f,selection:g}=h,m=l&&l.doc.eq(f)&&l.selection.eq(g);if(p||m)return;this.createTooltip();const{ranges:A}=g,y=Math.min(...A.map(D=>D.$from.pos)),E=Math.max(...A.map(D=>D.$to.pos));(null===(c=this.shouldShow)||void 0===c?void 0:c.call(this,{editor:this.editor,view:a,state:h,oldState:l,from:y,to:E}))?(null===(u=this.tippy)||void 0===u||u.setProps({getReferenceClientRect:(null===(d=this.tippyOptions)||void 0===d?void 0:d.getReferenceClientRect)||(()=>{if(function Kee(n){return n instanceof ce}(h.selection)){const D=a.nodeDOM(y);if(D)return D.getBoundingClientRect()}return ul(a,y,E)})}),this.show()):this.hide()},this.editor=t,this.element=e,this.view=i,this.updateDelay=o,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Xo(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,e){const{state:i}=t;this.updateDelay>0&&i.selection.$from.pos!==i.selection.$to.pos?function lie(n,t,e){var i,r,o,s,a,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function p(I){var Q=i,O=r;return i=r=void 0,c=I,s=n.apply(O,Q)}function f(I){return c=I,a=setTimeout(A,t),u?p(I):s}function m(I){var Q=I-l;return void 0===l||Q>=t||Q<0||d&&I-c>=o}function A(){var I=hM();if(m(I))return y(I);a=setTimeout(A,function g(I){var q=t-(I-l);return d?aie(q,o-(I-c)):q}(I))}function y(I){return a=void 0,h&&i?p(I):(i=r=void 0,s)}function D(){var I=hM(),Q=m(I);if(i=arguments,r=this,l=I,Q){if(void 0===a)return f(l);if(d)return clearTimeout(a),a=setTimeout(A,t),p(l)}return void 0===a&&(a=setTimeout(A,t)),s}return t=fN(t)||0,rie(e)&&(u=!!e.leading,o=(d="maxWait"in e)?sie(fN(e.maxWait)||0,t):o,h="trailing"in e?!!e.trailing:h),D.cancel=function E(){void 0!==a&&clearTimeout(a),c=0,i=l=r=a=void 0},D.flush=function b(){return void 0===a?s:y(hM())},D}(this.updateHandler,this.updateDelay)(t,e):this.updateHandler(t,e)}show(){var t;null===(t=this.tippy)||void 0===t||t.show()}hide(){var t;null===(t=this.tippy)||void 0===t||t.hide()}destroy(){var t,e;!(null===(t=this.tippy)||void 0===t)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),null===(e=this.tippy)||void 0===e||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const uie=n=>new it({key:"string"==typeof n.pluginKey?new _t(n.pluginKey):n.pluginKey,view:t=>new pM({view:t,...n})}),fM=Ft.create({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}),addProseMirrorPlugins(){return this.options.element?[uie({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}}),die=["cb"],hie=function(n,t,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":n,"p-disabled":t,"p-checkbox-label-focus":e}};function pie(n,t){if(1&n){const e=Re();x(0,"label",7),K("click",function(r){re(e);const o=w(),s=Qt(3);return oe(o.onClick(r,s,!0))}),de(1),B()}if(2&n){const e=w();Gt(e.labelStyleClass),C("ngClass",Na(5,hie,e.checked(),e.disabled,e.focused)),Ot("for",e.inputId),v(1),pt(e.label)}}const fie=function(n,t,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":n,"p-checkbox-disabled":t,"p-checkbox-focused":e}},gie=function(n,t,e){return{"p-highlight":n,"p-disabled":t,"p-focus":e}},mie={provide:Qi,useExisting:Je(()=>gM),multi:!0};let gM=(()=>{class n{constructor(e){this.cd=e,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new te,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,i,r){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),r&&i.focus())}updateModel(e){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(r=>!wt.equals(r,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:wt.contains(this.value,this.model)}}return n.\u0275fac=function(e){return new(e||n)(T(li))},n.\u0275cmp=ve({type:n,selectors:[["p-checkbox"]],viewQuery:function(e,i){if(1&e&&Zt(die,5),2&e){let r;He(r=Ve())&&(i.inputViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[yt([mie])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,i){if(1&e){const r=Re();x(0,"div",0)(1,"div",1)(2,"input",2,3),K("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("change",function(s){return i.handleChange(s)}),B()(),x(4,"div",4),K("click",function(s){re(r);const a=Qt(3);return oe(i.onClick(s,a,!0))}),ie(5,"span",5),B()(),S(6,pie,2,9,"label",6)}2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("ngClass",Na(18,fie,i.checked(),i.disabled,i.focused)),v(2),C("readonly",i.readonly)("value",i.value)("checked",i.checked())("disabled",i.disabled),Ot("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked())("required",i.required),v(2),C("ngClass",Na(22,gie,i.checked(),i.disabled,i.focused)),v(1),C("ngClass",i.checked()?i.checkboxIcon:null),v(1),C("ngIf",i.label))},dependencies:[zn,Pt,nr],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),n})(),gN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),zm=(()=>{class n{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(Ag,8),T(li))},n.\u0275dir=ue({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&K("input",function(o){return i.onInput(o)}),2&e&&Ms("p-filled",i.filled)}}),n})(),mN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const Aie=["group"];function bie(n,t){if(1&n&&(ct(0),ie(1,"p-checkbox",11),x(2,"label",12),de(3),La(4,"titlecase"),B(),ut()),2&n){const e=w().$implicit;v(1),C("formControlName",e.key)("binary",!0)("id",e.key),v(1),C("for",e.key),v(1),pt(Qa(4,5,e.label))}}const yie=function(){return{width:"100%",fontSize:"14px",height:"40px"}};function _ie(n,t){if(1&n&&ie(0,"input",14,15),2&n){const e=w(2).$implicit;An(io(6,yie)),C("formControlName",e.key)("id",e.key)("type",e.type)("min",e.min)}}function Eie(n,t){if(1&n&&(ct(0),x(1,"label",12),de(2),La(3,"titlecase"),B(),S(4,_ie,2,7,"input",13),ut()),2&n){const e=w().$implicit;v(1),C("for",e.key),v(1),pt(Qa(3,2,e.label))}}function Cie(n,t){1&n&&(x(0,"span",16),de(1,"This field is required"),B())}function vie(n,t){if(1&n&&(x(0,"div",6),ct(1,7),S(2,bie,5,7,"ng-container",8),S(3,Eie,5,4,"ng-container",9),ut(),S(4,Cie,2,0,"span",10),B()),2&n){const e=t.$implicit,i=w(2);C("ngClass",e.type),v(1),C("ngSwitch",e.type),v(1),C("ngSwitchCase","checkbox"),v(2),C("ngIf",i.form.controls[e.key].invalid&&i.form.controls[e.key].dirty)}}const Mie=function(){return{width:"120px"}},wie=function(){return{padding:"11.5px 24px"}};function Die(n,t){if(1&n){const e=Re();x(0,"form",1),K("ngSubmit",function(){return re(e),oe(w().onSubmit())}),S(1,vie,5,4,"div",2),x(2,"div",3)(3,"button",4),K("click",function(){return re(e),oe(w().hide.emit(!0))}),B(),ie(4,"button",5),B()()}if(2&n){const e=w();C("ngClass",null==e.options?null:e.options.customClass)("formGroup",e.form),v(1),C("ngForOf",e.dynamicControls),v(2),An(io(8,Mie)),v(1),An(io(9,wie)),C("disabled",e.form.invalid)}}let Iie=(()=>{class n{constructor(e){this.fb=e,this.formValues=new te,this.hide=new te,this.options=null,this.dynamicControls=[]}onSubmit(){this.formValues.emit({...this.form.value})}setFormValues(e){this.form.setValue(e)}buildForm(e){this.dynamicControls=e,this.form=this.fb.group({}),this.dynamicControls.forEach(i=>{this.form.addControl(i.key,this.fb.control(i.value||null,i.required?vE.required:[]))})}cleanForm(){this.form=null}}return n.\u0275fac=function(e){return new(e||n)(T(zE))},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-form"]],viewQuery:function(e,i){if(1&e&&Zt(Aie,5),2&e){let r;He(r=Ve())&&(i.inputs=r)}},outputs:{formValues:"formValues",hide:"hide"},decls:1,vars:1,consts:[[3,"ngClass","formGroup","ngSubmit",4,"ngIf"],[3,"ngClass","formGroup","ngSubmit"],["class","field form-row",3,"ngClass",4,"ngFor","ngForOf"],[1,"form-action"],["pButton","","type","button","label","CANCEL",1,"p-button-outlined",3,"click"],["pButton","","type","submit","label","APPLY",1,"p-button",3,"disabled"],[1,"field","form-row",3,"ngClass"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["class","error-message",4,"ngIf"],[3,"formControlName","binary","id"],[3,"for"],["pInputText","","type","control.type",3,"formControlName","id","type","min","style",4,"ngSwitchDefault"],["pInputText","","type","control.type",3,"formControlName","id","type","min"],["group",""],[1,"error-message"]],template:function(e,i){1&e&&S(0,Die,5,10,"form",0),2&e&&C("ngIf",i.form)},dependencies:[zn,tr,Pt,xd,Z_,eE,bg,wc,Pd,lg,Ic,jd,gM,Fs,zm,WT],styles:["[_nghost-%COMP%]{background:#ffffff;border-radius:2px;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;padding:16px}form[_ngcontent-%COMP%]{width:400px;display:flex;flex-direction:column;gap:16px}form.dotTableForm[_ngcontent-%COMP%]{width:200px}form.dotTableForm[_ngcontent-%COMP%] .p-button-outlined[_ngcontent-%COMP%]{display:none}.form-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.form-row[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:12px}.form-row.checkbox[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.form-action[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding-top:16px;width:100%;gap:10px}.error-message[_ngcontent-%COMP%]{color:#c93926;font-size:.75rem;text-align:left}"]}),n})();class Sie{constructor(t,e,i){this.applicationRef=e.get(Ua);const o=e.get(Es).resolveComponentFactory(t);this.componentRef=o.create(e,[]),this.updateProps(i),this.applicationRef.attachView(this.componentRef.hostView)}get instance(){return this.componentRef.instance}get elementRef(){return this.componentRef.injector.get(St)}get dom(){return this.elementRef.nativeElement}updateProps(t){Object.entries(t).forEach(([e,i])=>{this.instance[e]=i})}detectChanges(){this.componentRef.changeDetectorRef.detectChanges()}destroy(){this.componentRef.destroy(),this.applicationRef.detachView(this.componentRef.hostView)}}let AN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["ng-component"]],inputs:{editor:"editor",node:"node",decorations:"decorations",selected:"selected",extension:"extension",getPos:"getPos",updateAttributes:"updateAttributes",deleteNode:"deleteNode"},decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})();class xie extends class gte{constructor(t,e,i){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...i},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,i,r,o,s,a,l;const{view:c}=this.editor,u=t.target,d=3===u.nodeType?null===(e=u.parentElement)||void 0===e?void 0:e.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||(null===(i=this.contentDOM)||void 0===i?void 0:i.contains(u))||!d)return;let h=0,p=0;if(this.dom!==d){const m=this.dom.getBoundingClientRect(),A=d.getBoundingClientRect(),y=null!==(r=t.offsetX)&&void 0!==r?r:null===(o=t.nativeEvent)||void 0===o?void 0:o.offsetX,E=null!==(s=t.offsetY)&&void 0!==s?s:null===(a=t.nativeEvent)||void 0===a?void 0:a.offsetY;h=A.x-m.x+y,p=A.y-m.y+E}null===(l=t.dataTransfer)||void 0===l||l.setDragImage(this.dom,h,p);const f=ce.create(c.state.doc,this.getPos()),g=c.state.tr.setSelection(f);c.dispatch(g)}stopEvent(t){var e;if(!this.dom)return!1;if("function"==typeof this.options.stopEvent)return this.options.stopEvent({event:t});const i=t.target;if(!this.dom.contains(i)||null!==(e=this.contentDOM)&&void 0!==e&&e.contains(i))return!1;const o="drop"===t.type;if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(i.tagName)||i.isContentEditable)&&!o)return!0;const{isEditable:a}=this.editor,{isDragging:l}=this,c=!!this.node.type.spec.draggable,u=ce.isSelectable(this.node),d="copy"===t.type,h="paste"===t.type,p="cut"===t.type,f="mousedown"===t.type,g=t.type.startsWith("drag");if(!c&&u&&g&&t.preventDefault(),c&&g&&!l)return t.preventDefault(),!1;if(c&&a&&!l&&f){const m=i.closest("[data-drag-handle]");m&&(this.dom===m||this.dom.contains(m))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(l||o||d||h||p||f&&u)}ignoreMutation(t){return!this.dom||!this.contentDOM||("function"==typeof this.options.ignoreMutation?this.options.ignoreMutation({mutation:t}):!(!this.node.isLeaf&&!this.node.isAtom&&("selection"===t.type||this.dom.contains(t.target)&&"childList"===t.type&&Om()&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(i=>i.isContentEditable)||(this.contentDOM!==t.target||"attributes"!==t.type)&&this.contentDOM.contains(t.target))))}updateAttributes(t){this.editor.commands.command(({tr:e})=>{const i=this.getPos();return e.setNodeMarkup(i,void 0,{...this.node.attrs,...t}),!0})}deleteNode(){const t=this.getPos();this.editor.commands.deleteRange({from:t,to:t+this.node.nodeSize})}}{mount(){this.renderer=new Sie(this.component,this.options.injector,{editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(i={})=>this.updateAttributes(i),deleteNode:()=>this.deleteNode()}),this.extension.config.draggable&&(this.renderer.elementRef.nativeElement.ondragstart=i=>{this.onDragStart(i)}),this.contentDOMElement=this.node.isLeaf?null:document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement&&(this.contentDOMElement.style.whiteSpace="inherit",this.renderer.detectChanges())}get dom(){return this.renderer.dom}get contentDOM(){return this.node.isLeaf?null:(this.maybeMoveContentDOM(),this.contentDOMElement)}maybeMoveContentDOM(){const t=this.dom.querySelector("[data-node-view-content]");this.contentDOMElement&&t&&!t.contains(this.contentDOMElement)&&t.appendChild(this.contentDOMElement)}update(t,e){return this.options.update?this.options.update(t,e):t.type===this.node.type&&(t===this.node&&this.decorations===e||(this.node=t,this.decorations=e,this.renderer.updateProps({node:t,decorations:e}),this.maybeMoveContentDOM()),!0)}selectNode(){this.renderer.updateProps({selected:!0})}deselectNode(){this.renderer.updateProps({selected:!1})}destroy(){this.renderer.destroy()}}function Bie(n,t){1&n&&Mt(0)}function Oie(n,t){if(1&n&&(x(0,"div",8),Ri(1,1),S(2,Bie,1,0,"ng-container",6),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.headerTemplate)}}function kie(n,t){1&n&&Mt(0)}function Pie(n,t){if(1&n&&(x(0,"div",9),de(1),S(2,kie,1,0,"ng-container",6),B()),2&n){const e=w();v(1),no(" ",e.header," "),v(1),C("ngTemplateOutlet",e.titleTemplate)}}function Fie(n,t){1&n&&Mt(0)}function Rie(n,t){if(1&n&&(x(0,"div",10),de(1),S(2,Fie,1,0,"ng-container",6),B()),2&n){const e=w();v(1),no(" ",e.subheader," "),v(1),C("ngTemplateOutlet",e.subtitleTemplate)}}function Nie(n,t){1&n&&Mt(0)}function Lie(n,t){1&n&&Mt(0)}function Qie(n,t){if(1&n&&(x(0,"div",11),Ri(1,2),S(2,Lie,1,0,"ng-container",6),B()),2&n){const e=w();v(2),C("ngTemplateOutlet",e.footerTemplate)}}const Uie=["*",[["p-header"]],[["p-footer"]]],jie=["*","p-header","p-footer"];let mM=(()=>{class n{constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.template;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return n.\u0275fac=function(e){return new(e||n)(T(St))},n.\u0275cmp=ve({type:n,selectors:[["p-card"]],contentQueries:function(e,i,r){if(1&e&&(jn(r,TO,5),jn(r,BO,5),jn(r,ar,4)),2&e){let o;He(o=Ve())&&(i.headerFacet=o.first),He(o=Ve())&&(i.footerFacet=o.first),He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:jie,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(e,i){1&e&&(eo(Uie),x(0,"div",0),S(1,Oie,3,1,"div",1),x(2,"div",2),S(3,Pie,3,2,"div",3),S(4,Rie,3,2,"div",4),x(5,"div",5),Ri(6),S(7,Nie,1,0,"ng-container",6),B(),S(8,Qie,3,1,"div",7),B()()),2&e&&(Gt(i.styleClass),C("ngClass","p-card p-component")("ngStyle",i.style),v(1),C("ngIf",i.headerFacet||i.headerTemplate),v(2),C("ngIf",i.header||i.titleTemplate),v(1),C("ngIf",i.subheader||i.subtitleTemplate),v(3),C("ngTemplateOutlet",i.contentTemplate),v(1),C("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[zn,Pt,Yo,nr],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),bN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ko]}),n})(),zie=(()=>{class n{transform({live:e,working:i,deleted:r,hasLiveVersion:o}){return{live:e,working:i,deleted:r,hasLiveVersion:o}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=xn({name:"contentletState",type:n,pure:!0}),n})();function Hie(n,t){if(1&n&&ie(0,"dot-contentlet-thumbnail",4),2&n){const e=w();C("width",94)("height",94)("iconSize","72px")("contentlet",e.data)}}function Vie(n,t){if(1&n&&(x(0,"h3",5),de(1),B()),2&n){const e=w();v(1),pt(e.data.title)}}function Gie(n,t){if(1&n&&(x(0,"span"),de(1),B()),2&n){const e=w();v(1),pt(e.data.contentType)}}function Yie(n,t){if(1&n&&(x(0,"div",6),ie(1,"dot-state-icon",7),La(2,"contentletState"),x(3,"dot-badge",8),de(4),La(5,"lowercase"),B()()),2&n){const e=w();v(1),C("state",Qa(2,3,e.data)),v(2),C("bordered",!0),v(1),pt(Qa(5,5,e.data.language))}}let Wie=(()=>{class n extends AN{ngOnInit(){this.data=this.node.attrs.data}}return n.\u0275fac=function(){let t;return function(i){return(t||(t=vn(n)))(i||n)}}(),n.\u0275cmp=ve({type:n,selectors:[["dot-contentlet-block"]],features:[lt],decls:5,vars:2,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],[4,"pTemplate"],["pTemplate","footer"],[3,"width","height","iconSize","contentlet"],[1,"title"],[1,"state"],["size","16px",3,"state"],[3,"bordered"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,Hie,1,4,"ng-template",0),S(2,Vie,2,1,"h3",1),S(3,Gie,2,1,"span",2),S(4,Yie,6,7,"ng-template",3),B()),2&e&&(v(2),C("pTemplate","title"),v(1),C("pTemplate","subtitle"))},dependencies:[mM,ar,tE,zie],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;box-sizing:border-box;margin-bottom:1rem}[_nghost-%COMP%] .p-card{background:#ffffff;border:1px solid #b3b1b8;color:#11152e;display:flex}[_nghost-%COMP%] .p-card .p-card-header{box-sizing:border-box;padding:1rem;padding-right:0}[_nghost-%COMP%] .p-card .p-card-body{box-sizing:border-box;min-width:100px;padding:1rem 1.5rem 1rem 1rem;flex:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{padding:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-subtitle{color:#7e7a86;font-size:.85rem;font-weight:regular;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{overflow:hidden;width:100%;margin:0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h3{font-weight:700;margin-bottom:.5rem;margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;white-space:nowrap;font-size:1.5rem}[_nghost-%COMP%] dot-contentlet-thumbnail[_ngcontent-%COMP%]{align-items:center;display:block;position:relative;width:94px;height:94px}[_nghost-%COMP%] .state[_ngcontent-%COMP%]{align-items:center;display:flex}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:.5rem}[_nghost-%COMP%] .state[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-child{margin-right:0}"]}),n})();const Jie=n=>tn.create({name:"dotContent",group:"block",inline:!1,draggable:!0,addAttributes:()=>({data:{default:null,parseHTML:t=>({data:t.getAttribute("data")}),renderHTML:t=>({data:t.data})}}),parseHTML:()=>[{tag:"dotcms-contentlet-block"}],renderHTML:({HTMLAttributes:t})=>["dotcms-contentlet-block",Et(t)],addNodeView:()=>((n,t)=>e=>new xie(n,e,t))(Wie,{injector:n})}),Kie=/(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/,$ie=tn.create({name:"image",addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group(){return this.options.inline?"inline":"block"},draggable:!0,addAttributes:()=>({src:{default:null},alt:{default:null},title:{default:null}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},renderHTML({HTMLAttributes:n}){return["img",Et(this.options.HTMLAttributes,n)]},addCommands(){return{setImage:n=>({commands:t})=>t.insertContent({type:this.name,attrs:n})}},addInputRules(){return[WR({find:Kie,type:this.type,getAttributes:n=>{const[,,t,e,i]=n;return{src:e,alt:t,title:i}}})]}}),qie=(n,t)=>{const{href:e=null}=t;return["a",{href:e},yN(n,t)]},yN=(n,t)=>["img",Et(n,t)],Xie=n=>{if("string"==typeof n)return{src:n};const{fileAsset:t,asset:e,title:i}=n;return{data:n,src:t||e,title:i,alt:i}},pi=$ie.extend({name:"dotImage",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src||n.data?.asset})},alt:{default:null,parseHTML:n=>n.getAttribute("alt"),renderHTML:n=>({alt:n.alt||n.data?.title})},title:{default:null,parseHTML:n=>n.getAttribute("title"),renderHTML:n=>({title:n.title||n.data?.title})},style:{default:null,parseHTML:n=>n.getAttribute("style"),renderHTML:n=>({style:n.style})},href:{default:null,parseHTML:n=>n.getAttribute("href"),renderHTML:n=>({href:n.href})},data:{default:null,parseHTML:n=>({data:n.getAttribute("data")}),renderHTML:n=>({data:n.data})}}),parseHTML(){return[{tag:this.options.allowBase64?"img[src]":'img[src]:not([src^="data:"])'}]},addCommands(){return{...this.parent?.(),setImageLink:n=>({commands:t})=>t.updateAttributes(this.name,n),unsetImageLink:()=>({commands:n})=>n.updateAttributes(this.name,{href:""}),addDotImage:n=>({chain:t,state:e})=>{const{selection:i}=e,r={attrs:Xie(n),type:pi.name};return t().insertContentAt(i.head,r).run()}}},renderHTML({HTMLAttributes:n}){const{style:t="",href:e=null}=n||{};return["div",{style:t,class:"node-container node-image"},e?qie(this.options.HTMLAttributes,n):yN(this.options.HTMLAttributes,n)]}}),Zie=tn.create({name:"video",addAttributes:()=>({src:{default:null,parseHTML:n=>n.getAttribute("src"),renderHTML:n=>({src:n.src})},mineType:{default:null,parseHTML:n=>n.getAttribute("mineType"),renderHTML:n=>({mineType:n.mineType})},width:{default:null,parseHTML:n=>n.getAttribute("width"),renderHTML:n=>({width:n.width})},height:{default:null,parseHTML:n=>n.getAttribute("height"),renderHTML:n=>({height:n.height})},orientation:{default:null,parseHTML:n=>n.getAttribute("orientation"),renderHTML:({height:n,width:t})=>({orientation:n>t?"vertical":"horizontal"})},data:{default:null,parseHTML:n=>n.getAttribute("data"),renderHTML:n=>({data:n.data})}}),parseHTML:()=>[{tag:"video"}],addOptions:()=>({inline:!1,allowBase64:!1,HTMLAttributes:{}}),inline(){return this.options.inline},group:()=>"block",draggable:!0,addCommands(){return{...this.parent?.(),setVideo:n=>({commands:t})=>t.insertContent({type:this.name,attrs:ere(n)})}},renderHTML({HTMLAttributes:n}){const{orientation:t="horizontal"}=n;return["div",{class:"node-container"},["video",Et(n,{controls:!0,class:`${t}-video`})]]}}),ere=n=>{if("string"==typeof n)return{src:n};const{assetMetaData:t,asset:e,assetVersion:i,mineType:r}=n,{width:o="auto",height:s="auto",contentType:a}=t||{},l=s>o?"vertical":"horizontal";return{src:i||e,data:{...n},width:o,height:s,mineType:r||a,orientation:l}},tre=["list"];function nre(n,t){if(1&n&&ie(0,"dot-suggestions-list-item",5),2&n){const e=t.$implicit,i=t.index;C("command",e.command)("index",i)("label",e.label)("url",e.icon)("data",e.data)("page",!0)}}function ire(n,t){if(1&n&&(x(0,"div")(1,"dot-suggestion-list",null,3),S(3,nre,1,6,"dot-suggestions-list-item",4),B()()),2&n){const e=w();v(3),C("ngForOf",e.items)}}function rre(n,t){1&n&&ie(0,"dot-suggestion-loading-list")}function ore(n,t){if(1&n){const e=Re();x(0,"dot-empty-message",6),K("back",function(){return re(e),oe(w().handleBackButton())}),B()}2&n&&C("title",w().title)("showBackBtn",!0)}let _N=(()=>{class n{constructor(){this.items=[],this.loading=!1,this.back=new te}handleBackButton(){return this.back.emit(!0),!1}execCommand(){this.items.length?this.list.execCommand():this.handleBackButton()}updateSelection(e){this.list.updateSelection(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-page"]],viewQuery:function(e,i){if(1&e&&Zt(tre,5),2&e){let r;He(r=Ve())&&(i.list=r.first)}},inputs:{items:"items",loading:"loading",title:"title"},outputs:{back:"back"},decls:5,vars:2,consts:[[4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["list",""],[3,"command","index","label","url","data","page",4,"ngFor","ngForOf"],[3,"command","index","label","url","data","page"],[3,"title","showBackBtn","back"]],template:function(e,i){if(1&e&&(S(0,ire,4,1,"div",0),S(1,rre,1,0,"ng-template",null,1,on),S(3,ore,1,2,"ng-template",null,2,on)),2&e){const r=Qt(2),o=Qt(4);C("ngIf",i.items.length)("ngIfElse",i.loading?r:o)}},styles:["[_nghost-%COMP%]{display:block;min-width:240px;box-shadow:0 4px 20px #0000001a;padding:8px 0;background:#ffffff;font-family:Roboto,Helvetica,sans-serif,Arial}[_nghost-%COMP%] {width:100%;box-shadow:none;padding:0}[_nghost-%COMP%] dotcms-suggestions-list-item{padding:8px}"]}),n})();const sre=["input"],are=["suggestions"];function lre(n,t){1&n&&ie(0,"hr",11)}const cre=function(){return{fontSize:"32px"}};function ure(n,t){if(1&n&&(x(0,"div",12)(1,"a",13)(2,"span",14),de(3,"language"),B(),x(4,"span",15),de(5),B()(),x(6,"div",16)(7,"div",17),ie(8,"p-checkbox",18),B(),x(9,"label",19),de(10,"Open link in new window"),B()()()),2&n){const e=w();v(1),C("href",e.currentLink,No),v(1),An(io(5,cre)),v(3),pt(e.currentLink),v(3),C("binary",!0)}}function dre(n,t){if(1&n){const e=Re();x(0,"dot-suggestion-page",20,21),K("back",function(){return re(e),oe(w().resetForm())}),B()}if(2&n){const e=w();C("items",e.items)("loading",e.loading)("title",e.noResultsTitle)}}function hre(n,t){if(1&n){const e=Re();x(0,"dot-form-actions",22),K("hide",function(r){return re(e),oe(w().hide.emit(r))})("remove",function(r){return re(e),oe(w().removeLink.emit(r))}),B()}2&n&&C("link",w().currentLink)}const pre=function(){return{width:"5rem",padding:".75rem 1rem",borderRadius:"0 2px 2px 0"}};let EN=(()=>{class n{constructor(e,i,r){this.fb=e,this.suggestionsService=i,this.dotLanguageService=r,this.hide=new te(!1),this.removeLink=new te(!1),this.isSuggestionOpen=new te(!1),this.setNodeProps=new te,this.showSuggestions=!1,this.initialValues={link:"",blank:!0},this.minChars=3,this.loading=!1,this.items=[]}onMouseDownHandler(e){const{target:i}=e;i!==this.input.nativeElement&&e.preventDefault()}get noResultsTitle(){return`No resutls for ${this.newLink}`}get currentLink(){return this.initialValues.link}get newLink(){return this.form.get("link").value}ngOnInit(){this.form=this.fb.group({...this.initialValues}),this.form.get("link").valueChanges.pipe(zg(500)).subscribe(e=>{e.lengththis.setNodeProps.emit({link:this.currentLink,blank:e})),this.dotLanguageService.getLanguages().pipe($n(1)).subscribe(e=>this.dotLangs=e)}submitForm(){this.setNodeProps.emit(this.form.value),this.hide.emit(!0)}setLoading(){const e=this.newLink.length>=this.minChars&&!Hm(this.newLink);this.items=e?this.items:[],this.showSuggestions=e,this.loading=e,e&&requestAnimationFrame(()=>this.isSuggestionOpen.emit(!0))}setFormValue({link:e="",blank:i=!0}){this.form.setValue({link:e,blank:i},{emitEvent:!1})}focusInput(){this.input.nativeElement.focus()}onKeyDownEvent(e){const i=this.suggestionsComponent?.items;if(e.stopImmediatePropagation(),"Escape"===e.key)return this.hide.emit(!0),!0;if(!this.showSuggestions||!i?.length)return!0;switch(e.key){case"Enter":return this.suggestionsComponent?.execCommand(),!1;case"ArrowUp":case"ArrowDown":this.suggestionsComponent?.updateSelection(e)}}resetForm(){this.showSuggestions=!1,this.setFormValue({...this.initialValues})}onSelection({payload:{url:e}}){this.setFormValue({...this.form.value,link:e}),this.submitForm()}searchContentlets({link:e=""}){this.loading=!0,this.suggestionsService.getContentletsUrlMap({filter:e}).pipe($n(1)).subscribe(i=>{this.items=i.map(r=>{const{languageId:o}=r;return r.language=this.getContentletLanguage(o),{label:r.title,icon:"contentlet/image",data:{contentlet:r},command:()=>{this.onSelection({payload:r,type:{name:"dotContent"}})}}}),this.loading=!1})}getContentletLanguage(e){const{languageCode:i,countryCode:r}=this.dotLangs[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(T(zE),T(cM),T(lM))},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-link-form"]],viewQuery:function(e,i){if(1&e&&(Zt(sre,5),Zt(are,5)),2&e){let r;He(r=Ve())&&(i.input=r.first),He(r=Ve())&&(i.suggestionsComponent=r.first)}},hostBindings:function(e,i){1&e&&K("mousedown",function(o){return i.onMouseDownHandler(o)})},inputs:{showSuggestions:"showSuggestions",initialValues:"initialValues"},outputs:{hide:"hide",removeLink:"removeLink",isSuggestionOpen:"isSuggestionOpen",setNodeProps:"setNodeProps"},decls:11,vars:8,consts:[[1,"form-container"],["autocomplete","off",3,"formGroup","keydown","ngSubmit"],[1,"p-inputgroup","search-container"],[1,"p-inputgroup"],["id","editor-input-link","pInputText","","type","text","placeholder","Paste link or search for pages","formControlName","link",3,"input"],["input",""],["pButton","","type","submit","label","ADD",1,"p-button"],["class","divider",4,"ngIf"],["class","info-container",4,"ngIf"],[3,"items","loading","title","back",4,"ngIf"],[3,"link","hide","remove",4,"ngIf"],[1,"divider"],[1,"info-container"],["target","_blank",1,"url-container",3,"href"],[1,"material-icons"],[1,"truncate"],[1,"field-checkbox"],[1,"checkbox-container"],["id","editor-input-checkbox","formControlName","blank",3,"binary"],["for","editor-input-checkbox"],[3,"items","loading","title","back"],["suggestions",""],[3,"link","hide","remove"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"form",1),K("keydown",function(o){return i.onKeyDownEvent(o)})("ngSubmit",function(){return i.submitForm()}),x(2,"div",2)(3,"div",3)(4,"input",4,5),K("input",function(){return i.setLoading()}),B(),ie(6,"button",6),B()(),S(7,lre,1,0,"hr",7),S(8,ure,11,6,"div",8),B(),S(9,dre,2,3,"dot-suggestion-page",9),S(10,hre,1,1,"dot-form-actions",10),B()),2&e&&(v(1),C("formGroup",i.form),v(5),An(io(7,pre)),v(1),C("ngIf",i.showSuggestions||i.currentLink),v(1),C("ngIf",i.currentLink&&!i.showSuggestions),v(1),C("ngIf",i.showSuggestions),v(1),C("ngIf",!i.showSuggestions&&i.currentLink))},styles:[".form-container[_ngcontent-%COMP%]{background:#ffffff;border-radius:2px;box-shadow:0 4px 10px #0a07251a;display:flex;flex-direction:column;width:400px}.form-container[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{align-items:center;display:flex;flex-direction:column;max-width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%]{padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]{background:#ffffff;border:1px solid #b3b1b8}.form-container[_ngcontent-%COMP%] .search-container[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%]:focus{outline:none;box-shadow:none}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding:1rem;width:100%}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .url-container[_ngcontent-%COMP%]{cursor:pointer;white-space:nowrap;font-size:16px;width:100%;word-wrap:normal;display:flex;align-items:center;text-decoration:none;gap:8px;color:#11152e}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%]{display:flex;gap:3.2px;min-width:100%;font-size:16px}.form-container[_ngcontent-%COMP%] .info-container[_ngcontent-%COMP%] .field-checkbox[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{cursor:pointer;width:32px;display:flex;align-items:center;justify-content:center}.divider[_ngcontent-%COMP%]{border:0;border-top:1px solid #e2e2e2;width:100%;margin:0}.truncate[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]}),n})();var fre=yu(222),gre=yu.n(fre);const CN=({editor:n,view:t,pos:e})=>{const i=t.state.doc?.resolve(e),r=((n,t)=>{const e=t-n?.textOffset;return{to:e,from:n.index(){const{state:a}=this.editor,{to:l}=a.selection,{openOnClick:c}=ns.getState(a);!this.pluginKey.getState(a).isOpen||(c?(this.editor.commands.closeLinkForm(),requestAnimationFrame(()=>this.editor.commands.setTextSelection(l))):this.editor.commands.closeLinkForm())},this.editor=t,this.element=e,this.view=i,this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=o,this.component=s,this.editor.on("focus",this.focusHandler),this.setComponentEvents(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(t,e){const i=this.pluginKey.getState(t.state),r=this.pluginKey.getState(e);i.isOpen!==r.isOpen?(this.createTooltip(),i.isOpen?this.show():this.hide(),this.detectLinkFormChanges()):this.detectLinkFormChanges()}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Xo(t.parentElement,{...this.tippyOptions,...hk,getReferenceClientRect:()=>this.setTippyPosition(),content:this.element,onHide:()=>{this.editor.commands.closeLinkForm()}}))}show(){this.tippy?.show(),this.component.instance.showSuggestions=!1,this.setInputValues(),this.component.instance.focusInput()}hide(){this.tippy?.hide(),this.editor.view.focus()}setTippyPosition(){const{view:t}=this.editor,{state:e}=t,{doc:i,selection:r}=e,{ranges:o}=r,s=Math.min(...o.map(g=>g.$from.pos)),l=ul(t,s,Math.max(...o.map(g=>g.$to.pos))),{element:c}=this.editor.options,u=c.parentElement.getBoundingClientRect(),d=document.querySelector("#bubble-menu")?.getBoundingClientRect()||l,h=u.bottom0){const i=this.formatLink(t);this.isImageNode()?this.editor.commands.setImageLink({href:i}):this.editor.commands.setLink({href:i,target:e?"_blank":"_top"})}}removeLink(){this.isImageNode()?this.editor.commands.unsetImageLink():this.editor.commands.unsetLink(),this.hide()}formatLink(t){return Hm(t)?new RegExp("^(http|https)","i").test(t)?t:`http://${t}`:t}setInputValues(){const t=this.getLinkProps();this.component.instance.initialValues=t,this.component.instance.setFormValue(t.link?t:{link:this.getLinkSelect()})}setComponentEvents(){this.component.instance.hide.pipe(Yn(this.$destroy)).subscribe(()=>this.hide()),this.component.instance.removeLink.pipe(Yn(this.$destroy)).subscribe(()=>this.removeLink()),this.component.instance.isSuggestionOpen.pipe(Yn(this.$destroy)).subscribe(()=>this.tippy.popperInstance.update()),this.component.instance.setNodeProps.pipe(Yn(this.$destroy)).subscribe(t=>this.setLinkValues(t))}detectLinkFormChanges(){this.component.changeDetectorRef.detectChanges(),requestAnimationFrame(()=>this.tippy?.popperInstance?.forceUpdate())}getLinkProps(){const{href:t="",target:e}=this.editor.isActive("link")?this.editor.getAttributes("link"):this.editor.getAttributes(pi.name);return{link:t,blank:!e||"_blank"===e}}getLinkSelect(){const{state:t}=this.editor,{from:e,to:i}=t.selection,r=t.doc.textBetween(e,i," ");return Hm(r)?r:""}isImageNode(){const{type:t}=this.editor.state.doc.nodeAt(this.editor.state.selection.from)||{};return t?.name===pi.name}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy()}hanlderScroll(t){if(!this.tippy?.state.isMounted)return;const e=t.target,i=e?.parentElement?.parentElement;this.scrollElementMap[e.id]||this.scrollElementMap[i.id]||this.hide()}}const Are=n=>{let t;return new it({key:n.pluginKey,view:e=>new mre({view:e,...n}),state:{init:()=>({isOpen:!1,openOnClick:!1}),apply(e,i,r){const{isOpen:o,openOnClick:s}=e.getMeta(ns)||{},a=ns.getState(r);return"boolean"==typeof o?{isOpen:o,openOnClick:s}:a||i}},props:{handleDOMEvents:{mousedown(e,i){const r=n.editor,o=((n,t)=>{const{clientX:e,clientY:i}=t,{pos:r}=n.posAtCoords({left:e,top:i});return r})(e,i),{isOpen:s,openOnClick:a}=ns.getState(r.state);s&&a&&r.chain().unsetHighlight().setTextSelection(o).run()}},handleClickOn(e,i,r){const o=n.editor;if(o.isActive("link")&&i){if(!gre()(t,r))return CN({editor:o,view:e,pos:i}),t=r,!0;o.chain().setTextSelection(i).closeLinkForm().run()}else t=r},handleDoubleClickOn(e,i){const r=n.editor;if(r.isActive("link"))return CN({editor:r,view:e,pos:i}),!0}}})},ns=new _t("addLink"),bre=n=>Ft.create({name:"bubbleLinkForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:ns}),addCommands:()=>({openLinkForm:({openOnClick:t})=>({chain:e})=>e().setMeta("preventAutolink",!0).setHighlight().command(({tr:i})=>(i.setMeta(ns,{isOpen:!0,openOnClick:t}),!0)).freezeScroll(!0).run(),closeLinkForm:()=>({chain:t})=>t().setMeta("preventAutolink",!0).unsetHighlight().command(({tr:e})=>(e.setMeta(ns,{isOpen:!1,openOnClick:!1}),!0)).freezeScroll(!1).run()}),addProseMirrorPlugins(){const t=n.createComponent(EN);return t.changeDetectorRef.detectChanges(),[Are({pluginKey:this.options.pluginKey,editor:this.editor,element:t.location.nativeElement,tippyOptions:this.options.tippyOptions,component:t})]}}),vN={tableCell:!0,table:!0,video:!0},yre=({editor:n,state:t,from:e,to:i})=>{const{doc:r,selection:o}=t,{view:s}=n,{empty:a}=o,{isOpen:l,openOnClick:c}=ns.getState(t),u=n.state.doc.nodeAt(n.state.selection.from),d=hl(n.state.selection.$from),h=!r.textBetween(e,i).length&&Bm(t.selection);return"text"===u?.type.name&&"table"===d?.type.name&&!h||!(!l&&(!s.hasFocus()||a||h||vN[d?.type.name]||vN[u?.type.name])||l&&c)},Hm=n=>!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(n),MN=(n,t)=>t===pi.name&&n?.firstElementChild?n.firstElementChild.getBoundingClientRect():n.getBoundingClientRect(),wN=n=>n.isActive("bulletList")||n.isActive("orderedList"),DN=[{icon:"format_bold",markAction:"bold",active:!1},{icon:"format_underlined",markAction:"underline",active:!1},{icon:"format_italic",markAction:"italic",active:!1},{icon:"strikethrough_s",markAction:"strike",active:!1,divider:!0}],AM=[{icon:"format_align_left",markAction:"left",active:!1},{icon:"format_align_center",markAction:"center",active:!1},{icon:"format_align_right",markAction:"right",active:!1,divider:!0}],Cre=[...DN,...AM,{icon:"format_list_bulleted",markAction:"bulletList",active:!1},{icon:"format_list_numbered",markAction:"orderedList",active:!1},{icon:"format_indent_decrease",markAction:"outdent",active:!1},{icon:"format_indent_increase",markAction:"indent",active:!1,divider:!0},{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],vre=[...AM,{icon:"link",markAction:"link",active:!1,divider:!0},{text:"Properties",markAction:"properties",active:!1}],Mre=[...DN,...AM,{icon:"link",markAction:"link",active:!1,divider:!0},{icon:"format_clear",markAction:"clearAll",active:!1,divider:!0},{icon:"delete",markAction:"deleteNode",active:!1}],wre=[{icon:"delete",markAction:"deleteNode",active:!1}],IN=[{name:"offset",options:{offset:[0,5]}},{name:"flip",options:{fallbackPlacements:["bottom-start","top-start"]}},{name:"preventOverflow",options:{altAxis:!0,tether:!0}}],Ire=[{key:"src",label:"path",required:!0,controlType:"text",type:"text"},{key:"alt",label:"alt",controlType:"text",type:"text"},{key:"title",label:"caption",controlType:"text",type:"text"}];class Sre extends pM{constructor(t){const{editor:e,element:i,view:r,tippyOptions:o={},pluginKey:s,component:a}=t;super(t),this.$destroy=new Me,this.focusHandler=()=>{this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))},this.editor=e,this.element=i,this.view=r,this.tippyOptions=o,this.element.remove(),this.element.style.visibility="visible",this.pluginKey=s,this.component=a,this.component.instance.buildForm(Ire),this.component.instance.formValues.pipe(Yn(this.$destroy)).subscribe(l=>{this.editor.commands.updateValue(l)}),this.component.instance.hide.pipe(Yn(this.$destroy)).subscribe(()=>{this.editor.commands.closeForm()}),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0)}update(t,e){const i=this.pluginKey?.getState(t.state),r=e?this.pluginKey?.getState(e):{open:!1},{state:o}=t,{doc:s,selection:a}=o,{ranges:l}=a,c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));i?.open!==r?.open?(i.open&&i.form?(this.component.instance.buildForm(i.form),this.component.instance.options=i.options):this.component.instance.cleanForm(),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{if(a instanceof ce){const d=t.nodeDOM(c);if(d)return this.node=s.nodeAt(c),this.tippyRect(d,this.node.type.name)}return ul(t,c,u)}}),i.open?this.show():this.hide()):this.tippy?.popperInstance?.forceUpdate()}createTooltip(){const{element:t}=this.editor.options;this.tippy||!t.parentElement||(this.tippy=Xo(t.parentElement,{...this.tippyOptions,...hk,content:this.element,onShow:()=>{requestAnimationFrame(()=>{this.component.instance.inputs.first.nativeElement.focus()})}}))}show(){this.tippy?.show()}destroy(){this.tippy?.destroy(),this.editor.off("focus",this.focusHandler),this.$destroy.next(!0),this.component.destroy(),this.component.instance.formValues.unsubscribe()}hanlderScroll(t){if(!this.shouldHideOnScroll(t.target))return!0;this.editor.commands.closeForm(),setTimeout(()=>this.update(this.editor.view))}tippyRect(t,e){return document.querySelector("#bubble-menu")?.getBoundingClientRect()||((n,t)=>t===pi.name&&n.getElementsByTagName("img")[0]?.getBoundingClientRect()||n.getBoundingClientRect())(t,e)}shouldHideOnScroll(t){return this.tippy?.state.isMounted&&this.tippy?.popper.contains(t)}}const xre=n=>new it({key:n.pluginKey,view:t=>new Sre({view:t,...n}),state:{init:()=>({open:!1,form:[],options:null}),apply(t,e,i){const{open:r,form:o,options:s}=t.getMeta(fl)||{},a=fl?.getState(i);return"boolean"==typeof r?{open:r,form:o,options:s}:a||e}}}),fl=new _t("bubble-form"),Tre={interactive:!0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},Bre=n=>{const t=new Me;return fM.extend({name:"bubbleForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:fl,shouldShow:()=>!0}),addCommands:()=>({openForm:(e,i)=>({chain:r})=>(r().command(({tr:o})=>(o.setMeta(fl,{form:e,options:i,open:!0}),!0)).freezeScroll(!0).run(),t),closeForm:()=>({chain:e})=>(t.next(null),e().command(({tr:i})=>(i.setMeta(fl,{open:!1}),!0)).freezeScroll(!1).run()),updateValue:e=>({editor:i})=>{t.next(e),i.commands.closeForm()}}),addProseMirrorPlugins(){const e=n.createComponent(Iie),i=e.location.nativeElement;return e.changeDetectorRef.detectChanges(),[xre({pluginKey:fl,editor:this.editor,element:i,tippyOptions:Tre,component:e,form$:t})]}})},SN=function(){return{width:"50%"}};function Ore(n,t){if(1&n){const e=Re();x(0,"div")(1,"div",1)(2,"button",2),K("click",function(){return re(e),oe(w().copy())}),B(),x(3,"button",3),K("click",function(){return re(e),oe(w().remove.emit(!0))}),B()()()}2&n&&(v(2),An(io(4,SN)),v(1),An(io(5,SN)))}let kre=(()=>{class n{constructor(){this.remove=new te(!1),this.hide=new te(!1),this.link=""}copy(){navigator.clipboard.writeText(this.link).then(()=>this.hide.emit(!0)).catch(()=>alert("Could not copy link"))}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-form-actions"]],inputs:{link:"link"},outputs:{remove:"remove",hide:"hide"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"form-actions"],["pButton","","type","button","label","COPY LINK",1,"p-button-outlined",3,"click"],["pButton","","type","button","label","REMOVE LINK",1,"p-button-outlined","p-button-danger",3,"click"]],template:function(e,i){1&e&&S(0,Ore,4,6,"div",0),2&e&&C("ngIf",i.link.length)},dependencies:[Pt,Fs],styles:[".form-actions[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;padding:1rem;gap:.5rem}"]}),n})();function Pre(n,t){if(1&n){const e=Re();ct(0),x(1,"button",3),K("click",function(){return re(e),oe(w().toggleChangeTo.emit())}),de(2),B(),ie(3,"div",4),ut()}if(2&n){const e=w();v(2),pt(e.selected)}}function Fre(n,t){1&n&&ie(0,"div",4)}function Rre(n,t){if(1&n){const e=Re();ct(0),x(1,"dot-bubble-menu-button",5),K("click",function(){const o=re(e).$implicit;return oe(w().command.emit(o))}),B(),S(2,Fre,1,0,"div",6),ut()}if(2&n){const e=t.$implicit;v(1),C("active",e.active)("item",e),v(1),C("ngIf",e.divider)}}let xN=(()=>{class n{constructor(){this.items=[],this.command=new te,this.toggleChangeTo=new te}preventDeSelection(e){e.preventDefault()}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-menu"]],inputs:{items:"items",selected:"selected"},outputs:{command:"command",toggleChangeTo:"toggleChangeTo"},decls:3,vars:2,consts:[["id","bubble-menu",1,"bubble-menu",3,"mousedown"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"btn-dropdown",3,"click"],[1,"divider"],[3,"active","item","click"],["class","divider",4,"ngIf"]],template:function(e,i){1&e&&(x(0,"div",0),K("mousedown",function(o){return i.preventDeSelection(o)}),S(1,Pre,4,1,"ng-container",1),S(2,Rre,3,3,"ng-container",2),B()),2&e&&(v(1),C("ngIf",i.selected),v(1),C("ngForOf",i.items))},styles:['[_nghost-%COMP%]{height:100%;width:100%}.bubble-menu[_ngcontent-%COMP%]{box-sizing:border-box;align-items:center;background:#ffffff;border-radius:2px;box-shadow:0 10px 24px #0003;display:flex;justify-content:center;padding:5.6px;height:40px}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]{background:none;border:none;outline:none;padding:4px;cursor:pointer}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:hover{background:#f1f3f4}.bubble-menu[_ngcontent-%COMP%] .btn-dropdown[_ngcontent-%COMP%]:after{content:"";border:solid #11152e;border-width:0 2px 2px 0;display:inline-block;padding:3.2px;transform:rotate(45deg);margin-left:12px}.bubble-menu[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{border-left:1px solid #f1f3f4;height:100%;margin:0 8px}']}),n})();const Nre=function(n,t){return{"btn-bubble-menu":!0,"btn-icon":n,"btn-active":t}},Lre=function(n){return{"material-icons":n}};let Qre=(()=>{class n{constructor(){this.active=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-bubble-menu-button"]],inputs:{item:"item",active:"active"},decls:3,vars:8,consts:[[3,"ngClass"]],template:function(e,i){1&e&&(x(0,"button",0)(1,"span",0),de(2),B()()),2&e&&(C("ngClass",Xi(3,Nre,i.item.icon,i.active)),v(1),C("ngClass",Wt(6,Lre,i.item.icon)),v(1),pt(i.item.icon||i.item.text))},dependencies:[zn],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:center}.btn-bubble-menu[_ngcontent-%COMP%]{background:#ffffff;border:none;color:#11152e;display:flex;justify-content:center;align-items:center;cursor:pointer;max-width:auto;width:100%;height:32px;border-radius:2px}.btn-bubble-menu[_ngcontent-%COMP%]:hover{background:#f1f3f4}.btn-bubble-menu.btn-active[_ngcontent-%COMP%]{background:#f1f3f4;color:#11152e;border:1px solid #b3b1b8}.btn-icon[_ngcontent-%COMP%]{width:32px}"]}),n})();const Ure=n=>{const t=n.component.instance,e=n.changeToComponent.instance;return new it({key:n.pluginKey,view:i=>new jre({view:i,...n}),props:{handleKeyDown(i,r){const{key:o}=r,{changeToIsOpen:s}=n.editor?.storage.bubbleMenu||{};if(s){if("Escape"===o)return t.toggleChangeTo.emit(),!0;if("Enter"===o)return e.execCommand(),!0;if("ArrowDown"===o||"ArrowUp"===o)return e.updateSelection(r),!0}return!1}}})};class jre extends pM{constructor(t){super(t),this.shouldShowProp=!1,this.updateActiveItems=(r=[],o)=>r.map(s=>(s.active=o.includes(s.markAction),s)),this.enabledMarks=()=>[...Object.keys(this.editor.schema.marks),...Object.keys(this.editor.schema.nodes)],this.getActiveMarks=(r=[])=>[...this.enabledMarks().filter(o=>this.editor.isActive(o)),...r.filter(o=>this.editor.isActive({textAlign:o}))];const{component:e,changeToComponent:i}=t;this.component=e,this.changeTo=i,this.changeToElement=this.changeTo.location.nativeElement,this.component.instance.command.subscribe(this.exeCommand.bind(this)),this.component.instance.toggleChangeTo.subscribe(this.toggleChangeTo.bind(this)),this.changeTo.instance.items=this.changeToItems(),this.changeTo.instance.title="Change To",this.changeToElement.remove(),this.changeTo.changeDetectorRef.detectChanges(),document.body.addEventListener("scroll",this.hanlderScroll.bind(this),!0),document.body.addEventListener("mouseup",this.showMenu.bind(this),!0),document.body.addEventListener("keyup",this.showMenu.bind(this),!0),this.editor.off("blur",this.blurHandler)}showMenu(){this.shouldShowProp&&(this.tippyChangeTo?.setProps({getReferenceClientRect:()=>this.tippy?.popper.getBoundingClientRect()}),this.show())}update(t,e){const{state:i,composing:r}=t,{doc:o,selection:s}=i,a=e&&e.doc.eq(o)&&e.selection.eq(s);if(r||a)return;this.createTooltip(),this.createChangeToTooltip();const{ranges:l}=s;this.selectionRange=l[0],this.selectionNodesCount=0,o.nodesBetween(this.selectionRange.$from.pos,this.selectionRange.$to.pos,d=>{d.isBlock&&this.selectionNodesCount++});const c=Math.min(...l.map(d=>d.$from.pos)),u=Math.max(...l.map(d=>d.$to.pos));if(this.shouldShowProp=this.shouldShow?.({editor:this.editor,view:t,state:i,oldState:e,from:c,to:u}),!this.shouldShowProp)return this.hide(),void this.tippyChangeTo?.hide();this.tippy?.setProps({getReferenceClientRect:()=>{const d=t.nodeDOM(c),h=o.nodeAt(c)?.type.name;return(({viewCoords:n,nodeCoords:t,padding:e})=>{const{top:i,bottom:r}=t,{top:o,bottom:s}=n,a=Math.ceil(i-o){this.changeTo.instance.list.updateActiveItem(t),this.changeTo.changeDetectorRef.detectChanges()})}setMenuItems(t,e){const i=t.nodeAt(e),o="table"===hl(this.editor.state.selection.$from).type.name?"table":i?.type.name;this.selectionNode=i,this.component.instance.items=((n="")=>{switch(n){case"dotImage":return vre;case"dotContent":return wre;case"table":return Mre;default:return Cre}})(o)}openImageProperties(){const{open:t}=fl.getState(this.editor.state),{alt:e,src:i,title:r,data:o}=this.editor.getAttributes(pi.name),{title:s="",asset:a}=o||{};t?this.editor.commands.closeForm():this.editor.commands.openForm([{value:i||a,key:"src",label:"path",required:!0,controlType:"text",type:"text"},{value:e||s,key:"alt",label:"alt",controlType:"text",type:"text"},{value:r||s,key:"title",label:"caption",controlType:"text",type:"text"}]).pipe($n(1),ir(l=>null!=l)).subscribe(l=>{requestAnimationFrame(()=>{this.editor.commands.setImage({...l}),this.editor.commands.closeForm()})})}exeCommand(t){const{markAction:e,active:i}=t;switch(e){case"bold":this.editor.commands.toggleBold();break;case"italic":this.editor.commands.toggleItalic();break;case"strike":this.editor.commands.toggleStrike();break;case"underline":this.editor.commands.toggleUnderline();break;case"left":case"center":case"right":this.toggleTextAlign(e,i);break;case"bulletList":this.editor.commands.toggleBulletList();break;case"orderedList":this.editor.commands.toggleOrderedList();break;case"indent":wN(this.editor)&&this.editor.commands.sinkListItem("listItem");break;case"outdent":wN(this.editor)&&this.editor.commands.liftListItem("listItem");break;case"link":const{isOpen:r}=ns.getState(this.editor.state);r?this.editor.view.focus():this.editor.commands.openLinkForm({openOnClick:!1});break;case"properties":this.openImageProperties();break;case"deleteNode":this.selectionNodesCount>1?((n,t)=>{const e=t.$from.pos,i=t.$to.pos+1;this.editor.chain().deleteRange({from:e,to:i}).blur().run()})(0,this.selectionRange):(({editor:n,nodeType:t,selectionRange:e})=>{ane.includes(t)?((n,t)=>{const e=t.$from.pos,i=e+1;n.chain().deleteRange({from:e,to:i}).blur().run()})(n,e):((n,t)=>{const e=hl(t.$from),i=e.type.name,r=hl(t.$from,[Zn.ORDERED_LIST,Zn.BULLET_LIST]),{childCount:o}=r;switch(i){case Zn.ORDERED_LIST:case Zn.BULLET_LIST:o>1?n.chain().deleteNode(Zn.LIST_ITEM).blur().run():n.chain().deleteNode(r.type).blur().run();break;default:n.chain().deleteNode(e.type).blur().run()}})(n,e)})({editor:this.editor,nodeType:this.selectionNode.type.name,selectionRange:this.selectionRange});break;case"clearAll":this.editor.commands.unsetAllMarks(),this.editor.commands.clearNodes()}}toggleTextAlign(t,e){e?this.editor.commands.unsetTextAlign():this.editor.commands.setTextAlign(t)}changeToItems(){const t=this.editor.storage.dotConfig.allowedBlocks;let i="table"===hl(this.editor.state.selection.$from).type.name?X9:n6;t.length>1&&(i=i.filter(o=>t.includes(o.id)));const r={heading1:()=>{this.editor.chain().focus().clearNodes().setHeading({level:1}).run()},heading2:()=>{this.editor.chain().focus().clearNodes().setHeading({level:2}).run()},heading3:()=>{this.editor.chain().focus().clearNodes().setHeading({level:3}).run()},paragraph:()=>{this.editor.chain().focus().clearNodes().run()},orderedList:()=>{this.editor.chain().focus().clearNodes().toggleOrderedList().run()},bulletList:()=>{this.editor.chain().focus().clearNodes().toggleBulletList().run()},blockquote:()=>{this.editor.chain().focus().clearNodes().toggleBlockquote().run()},codeBlock:()=>{this.editor.chain().focus().clearNodes().toggleCodeBlock().run()}};return i.forEach(o=>{o.isActive=()=>o.id.includes("heading")?this.editor.isActive("heading",o.attributes):this.editor.isActive(o.id),o.command=()=>{r[o.id](),this.tippyChangeTo.hide(),this.getActiveNode()}}),i}getActiveNode(){const t=this.changeToItems(),e=t.filter(o=>o?.isActive()),i=e.length>1?e[1]:e[0],r=t.findIndex(o=>o===i);return{activeItem:i,index:r}}createChangeToTooltip(){const{element:t}=this.editor.options;this.tippyChangeTo||(this.tippyChangeTo=Xo(t,{...this.tippyOptions,appendTo:document.body,getReferenceClientRect:null,content:this.changeToElement,placement:"bottom-start",duration:0,hideOnClick:!1,popperOptions:{modifiers:IN},onHide:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!1,this.changeTo.instance.items=[],this.changeTo.changeDetectorRef.detectChanges(),this.editor.commands.freezeScroll(!1)},onShow:()=>{this.editor.storage.bubbleMenu.changeToIsOpen=!0,this.editor.commands.freezeScroll(!0),this.updateChangeTo()}}))}toggleChangeTo(){const{changeToIsOpen:t}=this.editor?.storage.bubbleMenu||{};t?this.tippyChangeTo?.hide():this.tippyChangeTo?.show()}hanlderScroll(){this.tippyChangeTo?.state.isVisible&&this.tippyChangeTo?.hide()}}const zre={duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0},Hre=new _t("bubble-menu");function Vre(n){const t=n.createComponent(xN),e=t.location.nativeElement,i=n.createComponent(Lm),r=i.location.nativeElement;return fM.extend({name:"bubbleMenu",addOptions:()=>({element:null,tippyOptions:zre,pluginKey:"bubbleMenu",shouldShow:yre}),addStorage:()=>({changeToIsOpen:!1}),addProseMirrorPlugins(){return e?[Ure({...this.options,component:t,changeToComponent:i,pluginKey:Hre,editor:this.editor,element:e,changeToElement:r})]:[]}})}const Gre=n=>Ft.create({name:"dotConfig",addStorage:()=>({...n})}),Yre=tn.create({name:"tableCell",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const t=n.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}),tableRole:"cell",isolating:!0,parseHTML:()=>[{tag:"td"}],renderHTML({HTMLAttributes:n}){return["td",Et(this.options.HTMLAttributes,n),0]}});class Jre{constructor(t,e){this.tippy=e}init(){}update(){}destroy(){this.tippy.destroy()}}const Kre=n=>{let t;function e(s){return wn.node(s.$to.before(3),s.$to.after(3),{class:"focus"})}function i(s){s.preventDefault(),s.stopPropagation(),t?.setProps({getReferenceClientRect:()=>s.target.getBoundingClientRect()}),t.show()}function o(s){return"tableCell"===s?.type.name||"tableHeader"===s?.type.name||"tableRow"===s?.type.name}return new it({key:new _t("dotTableCell"),state:{apply:()=>{},init:()=>{const{editor:s,viewContainerRef:a}=n,l=a.createComponent(Lm),c=l.location.nativeElement;l.instance.currentLanguage=s.storage.dotConfig.lang;const{element:d}=s.options;t=Xo(d,{duration:500,maxWidth:"none",placement:"top-start",trigger:"manual",interactive:!0,appendTo:document.body,getReferenceClientRect:null,content:c,placement:"bottom-start",duration:0,hideOnClick:!0,popperOptions:{modifiers:IN},onShow:()=>{s.commands.freezeScroll(!0);const h=l.instance.items.find(f=>"mergeCells"==f.id),p=l.instance.items.find(f=>"splitCells"==f.id);h.disabled=!s.can().mergeCells(),p.disabled=!s.can().splitCell(),setTimeout(()=>{l.changeDetectorRef.detectChanges()})},onHide:()=>s.commands.freezeScroll(!1)}),l.instance.items=((n,t)=>[{label:"Toggle row Header",icon:"check",id:"toggleRowHeader",command:()=>{n.commands.toggleHeaderRow(),t.hide()},tabindex:"0"},{label:"Toggle column Header",icon:"check",id:"toggleColumnHeader",command:()=>{n.commands.toggleHeaderColumn(),t.hide()},tabindex:"1"},{id:"divider"},{label:"Merge Cells",icon:"call_merge",id:"mergeCells",command:()=>{n.commands.mergeCells(),t.hide()},disabled:!0,tabindex:"2"},{label:"Split Cells",icon:"call_split",id:"splitCells",command:()=>{n.commands.splitCell(),t.hide()},disabled:!0,tabindex:"3"},{id:"divider"},{label:"Insert row above",icon:"arrow_upward",id:"insertAbove",command:()=>{n.commands.addRowBefore(),t.hide()},tabindex:"4"},{label:"Insert row below",icon:"arrow_downward",id:"insertBellow",command:()=>{n.commands.addRowAfter(),t.hide()},tabindex:"5"},{label:"Insert column left",icon:"arrow_back",id:"insertLeft",command:()=>{n.commands.addColumnBefore(),t.hide()},tabindex:"6"},{label:"Insert column right",icon:"arrow_forward",id:"insertRight",command:()=>{n.commands.addColumnAfter(),t.hide()},tabindex:"7"},{id:"divider"},{label:"Delete row",icon:"delete",id:"deleteRow",command:()=>{n.commands.deleteRow(),t.hide()},tabindex:"8"},{label:"Delete Column",icon:"delete",id:"deleteColumn",command:()=>{n.commands.deleteColumn(),t.hide()},tabindex:"9"},{label:"Delete Table",icon:"delete",id:"deleteTable",command:()=>{n.commands.deleteTable(),t.hide()},tabindex:"10"}])(n.editor,t),l.instance.title="",l.changeDetectorRef.detectChanges()}},view:s=>new Jre(s,t),props:{decorations(s){const a=s.selection.$from.depth>3?s.selection.$from.node(3):null;return"tableCell"==a?.type?.name||"tableHeader"==a?.type?.name?kt.create(s.doc,[e(s.selection)]):null},handleDOMEvents:{contextmenu:(s,a)=>{o(s.state.selection.$from.node(s.state.selection.$from.depth-1))&&i(a)},mousedown:(s,a)=>{const l=s.state.selection.$from.node(s.state.selection.$from.depth-1);!function r(s){return s?.classList.contains("dot-cell-arrow")}(a.target)?2===a.button&&o(l)&&a.preventDefault():i(a)}}}})};function $re(n){return Yre.extend({renderHTML({HTMLAttributes:t}){return["td",Et(this.options.HTMLAttributes,t),["button",{class:"dot-cell-arrow"}],["p",0]]},addProseMirrorPlugins(){return[Kre({editor:this.editor,viewContainerRef:n})]}})}const qre=tn.create({name:"tableHeader",addOptions:()=>({HTMLAttributes:{}}),content:"block+",addAttributes:()=>({colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const t=n.getAttribute("colwidth");return t?[parseInt(t,10)]:null}}}),tableRole:"header_cell",isolating:!0,parseHTML:()=>[{tag:"th"}],renderHTML({HTMLAttributes:n}){return["th",Et(this.options.HTMLAttributes,n),0]}});let bM,yM;if(typeof WeakMap<"u"){let n=new WeakMap;bM=t=>n.get(t),yM=(t,e)=>(n.set(t,e),e)}else{let n=[],t=10,e=0;bM=i=>{for(let r=0;r(e==t&&(e=0),n[e++]=i,n[e++]=r)}class tu{constructor(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}}class Nt{constructor(t,e,i,r){this.width=t,this.height=e,this.map=i,this.problems=r}findCell(t){for(let e=0;ei&&(o+=c.attrs.colspan)}}for(let s=0;s1&&(e=!0)}-1==t?t=o:t!=o&&(t=Math.max(t,o))}return t}(n),e=n.childCount,i=[],r=0,o=null,s=[];for(let c=0,u=t*e;c=e){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:A-E});break}let b=r+E*t;for(let D=0;D0;t--)if("row"==n.node(t).type.spec.tableRole)return n.node(0).resolve(n.before(t+1));return null}function Ur(n){let t=n.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function Vm(n){let t=n.selection;return t.$anchorCell?t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell:t.node&&"cell"==t.node.type.spec.tableRole?t.$anchor:nu(t.$head)||function roe(n){for(let t=n.nodeAfter,e=n.pos;t;t=t.firstChild,e++){let i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(e)}for(let t=n.nodeBefore,e=n.pos;t;t=t.lastChild,e--){let i=t.type.spec.tableRole;if("cell"==i||"header_cell"==i)return n.doc.resolve(e-t.nodeSize)}}(t.$head)}function _M(n){return"row"==n.parent.type.spec.tableRole&&n.nodeAfter}function EM(n,t){return n.depth==t.depth&&n.pos>=t.start(-1)&&n.pos<=t.end(-1)}function ON(n,t,e){let i=n.start(-1),o=Nt.get(n.node(-1)).nextCell(n.pos-i,t,e);return null==o?null:n.node(0).resolve(i+o)}function In(n,t,e){let i={};for(let r in n)i[r]=n[r];return i[t]=e,i}function gl(n,t,e=1){let i=In(n,"colspan",n.colspan-e);return i.colwidth&&(i.colwidth=i.colwidth.slice(),i.colwidth.splice(t,e),i.colwidth.some(r=>r>0)||(i.colwidth=null)),i}function kN(n,t,e=1){let i=In(n,"colspan",n.colspan+e);if(i.colwidth){i.colwidth=i.colwidth.slice();for(let r=0;ru!=e.pos-o);l.unshift(e.pos-o);let c=l.map(u=>{let d=i.nodeAt(u),h=u+o+1;return new eP(a.resolve(h),a.resolve(h+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=t,this.$headCell=e}map(t,e){let i=t.resolve(e.map(this.$anchorCell.pos)),r=t.resolve(e.map(this.$headCell.pos));if(_M(i)&&_M(r)&&EM(i,r)){let o=this.$anchorCell.node(-1)!=i.node(-1);return o&&this.isRowSelection()?Ye.rowSelection(i,r):o&&this.isColSelection()?Ye.colSelection(i,r):new Ye(i,r)}return Ee.between(i,r)}content(){let t=this.$anchorCell.node(-1),e=Nt.get(t),i=this.$anchorCell.start(-1),r=e.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i),o={},s=[];for(let l=r.top;l0||m>0){let A=f.attrs;g>0&&(A=gl(A,0,g)),m>0&&(A=gl(A,A.colspan-m,m)),f=p.leftr.bottom){let A=In(f.attrs,"rowspan",Math.min(p.bottom,r.bottom)-Math.max(p.top,r.top));f=p.top0)&&Math.max(t+this.$anchorCell.nodeAfter.attrs.rowspan,e+this.$headCell.nodeAfter.attrs.rowspan)==this.$headCell.node(-1).childCount}static colSelection(t,e=t){let i=Nt.get(t.node(-1)),r=t.start(-1),o=i.findCell(t.pos-r),s=i.findCell(e.pos-r),a=t.node(0);return o.top<=s.top?(o.top>0&&(t=a.resolve(r+i.map[o.left])),s.bottom0&&(e=a.resolve(r+i.map[s.left])),o.bottom0)&&Math.max(i+this.$anchorCell.nodeAfter.attrs.colspan,r+this.$headCell.nodeAfter.attrs.colspan)==t.width}eq(t){return t instanceof Ye&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,e=t){let i=Nt.get(t.node(-1)),r=t.start(-1),o=i.findCell(t.pos-r),s=i.findCell(e.pos-r),a=t.node(0);return o.left<=s.left?(o.left>0&&(t=a.resolve(r+i.map[o.top*i.width])),s.right0&&(e=a.resolve(r+i.map[s.top*i.width])),o.right{t.push(wn.node(i,i+e.nodeSize,{class:"selectedCell"}))}),kt.create(n.doc,t)}function vM(n,t){let e=n.createAndFill();return new zC(e).replace(0,e.content.size,t).doc}function PN(n,t,e,i,r,o,s,a){if(0==s||s==t.height)return!1;let l=!1;for(let c=r;ct.width)for(let d=0,h=0;dt.height){let d=[];for(let f=0,g=(t.height-1)*t.width;f=t.width)&&e.nodeAt(t.map[g+f]).type==l.header_cell;d.push(m?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}let h=l.row.create(null,L.from(d)),p=[];for(let f=t.height;f{let o=e.selection;if(o instanceof Ye)return Gm(e,i,_e.near(o.$headCell,t));if("horiz"!=n&&!o.empty)return!1;let s=NN(r,n,t);if(null==s)return!1;if("horiz"==n)return Gm(e,i,_e.near(e.doc.resolve(o.head+t),t));{let c,a=e.doc.resolve(s),l=ON(a,n,t);return c=l?_e.near(l,1):t<0?_e.near(e.doc.resolve(a.before(-1)),-1):_e.near(e.doc.resolve(a.after(-1)),1),Gm(e,i,c)}}}function Wm(n,t){return(e,i,r)=>{let o=e.selection;if(!(o instanceof Ye)){let a=NN(r,n,t);if(null==a)return!1;o=new Ye(e.doc.resolve(a))}let s=ON(o.$headCell,n,t);return!!s&&Gm(e,i,new Ye(o.$anchorCell,s))}}function Jm(n,t){let e=n.selection;if(!(e instanceof Ye))return!1;if(t){let i=n.tr,r=ei(n.schema).cell.createAndFill().content;e.forEachCell((o,s)=>{o.content.eq(r)||i.replace(i.mapping.map(s+1),i.mapping.map(s+o.nodeSize-1),new G(r,0,0))}),i.docChanged&&t(i)}return!0}function moe(n,t){let i=nu(n.state.doc.resolve(t));return!!i&&(n.dispatch(n.state.tr.setSelection(new Ye(i))),!0)}function Aoe(n,t,e){if(!Ur(n.state))return!1;let i=function doe(n){if(!n.size)return null;let{content:t,openStart:e,openEnd:i}=n;for(;1==t.childCount&&(e>0&&i>0||"table"==t.firstChild.type.spec.tableRole);)e--,i--,t=t.firstChild.content;let r=t.firstChild,o=r.type.spec.tableRole,s=r.type.schema,a=[];if("row"==o)for(let l=0;l=0;s--){let{rowspan:a,colspan:l}=o.child(s).attrs;for(let c=r;c=t.length&&t.push(L.empty),e[r]i&&(h=h.type.create(gl(h.attrs,h.attrs.colspan,u+h.attrs.colspan-i),h.content)),c.push(h),u+=h.attrs.colspan;for(let p=1;pr&&(d=d.type.create(In(d.attrs,"rowspan",Math.max(1,r-d.attrs.rowspan)),d.content)),l.push(d)}o.push(L.from(l))}e=o,t=r}return{width:n,height:t,rows:e}}(i,a.right-a.left,a.bottom-a.top),RN(n.state,n.dispatch,s,a,i),!0}if(i){let o=Vm(n.state),s=o.start(-1);return RN(n.state,n.dispatch,s,Nt.get(o.node(-1)).findCell(o.pos-s),i),!0}return!1}function boe(n,t){if(t.ctrlKey||t.metaKey)return;let i,e=LN(n,t.target);if(t.shiftKey&&n.state.selection instanceof Ye)r(n.state.selection.$anchorCell,t),t.preventDefault();else if(t.shiftKey&&e&&null!=(i=nu(n.state.selection.$anchor))&&MM(n,t).pos!=i.pos)r(i,t),t.preventDefault();else if(!e)return;function r(a,l){let c=MM(n,l),u=null==ia.getState(n.state);if(!c||!EM(a,c)){if(!u)return;c=a}let d=new Ye(a,c);if(u||!n.state.selection.eq(d)){let h=n.state.tr.setSelection(d);u&&h.setMeta(ia,a.pos),n.dispatch(h)}}function o(){n.root.removeEventListener("mouseup",o),n.root.removeEventListener("dragstart",o),n.root.removeEventListener("mousemove",s),null!=ia.getState(n.state)&&n.dispatch(n.state.tr.setMeta(ia,-1))}function s(a){let c,l=ia.getState(n.state);if(null!=l)c=n.state.doc.resolve(l);else if(LN(n,a.target)!=e&&(c=MM(n,t),!c))return o();c&&r(c,a)}n.root.addEventListener("mouseup",o),n.root.addEventListener("dragstart",o),n.root.addEventListener("mousemove",s)}function NN(n,t,e){if(!(n.state.selection instanceof Ee))return null;let{$head:i}=n.state.selection;for(let r=i.depth-1;r>=0;r--){let o=i.node(r);if((e<0?i.index(r):i.indexAfter(r))!=(e<0?0:o.childCount))return null;if("cell"==o.type.spec.tableRole||"header_cell"==o.type.spec.tableRole){let a=i.before(r);return n.endOfTextblock("vert"==t?e>0?"down":"up":e>0?"right":"left")?a:null}}return null}function LN(n,t){for(;t&&t!=n.dom;t=t.parentNode)if("TD"==t.nodeName||"TH"==t.nodeName)return t}function MM(n,t){let e=n.posAtCoords({left:t.clientX,top:t.clientY});return e&&e?nu(n.state.doc.resolve(e.pos)):null}const yoe=new _t("fix-tables");function QN(n,t,e,i){let r=n.childCount,o=t.childCount;e:for(let s=0,a=0;s{"table"==r.type.spec.tableRole&&(e=function _oe(n,t,e,i){let r=Nt.get(t);if(!r.problems)return i;i||(i=n.tr);let s,a,o=[];for(let l=0;l0){let p="cell";u.firstChild&&(p=u.firstChild.type.spec.tableRole);let f=[];for(let m=0;m0?-1:0;(function soe(n,t,e){let i=ei(t.type.schema).header_cell;for(let r=0;r0&&r0&&t.map[a-1]==l||r0?-1:0;(function woe(n,t,e){let i=ei(t.type.schema).header_cell;for(let r=0;r0&&r0&&u==t.map[c-t.width]){let d=e.nodeAt(u).attrs;n.setNodeMarkup(n.mapping.slice(a).map(u+i),null,In(d,"rowspan",d.rowspan-1)),l+=d.colspan-1}else if(r0&&e[o]==e[o-1]||i.right0&&e[r]==e[r-n]||i.bottom{let r,o,i=t.selection;if(i instanceof Ye){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;r=i.$anchorCell.nodeAfter,o=i.$anchorCell.pos}else{if(r=function ioe(n){for(let t=n.depth;t>0;t--){const e=n.node(t).type.spec.tableRole;if("cell"===e||"header_cell"===e)return n.node(t)}return null}(i.$from),!r)return!1;o=nu(i.$from).pos}if(1==r.attrs.colspan&&1==r.attrs.rowspan)return!1;if(e){let s=r.attrs,a=[],l=s.colwidth;s.rowspan>1&&(s=In(s,"rowspan",1)),s.colspan>1&&(s=In(s,"colspan",1));let d,c=bo(t),u=t.tr;for(let h=0;he[i.type.spec.tableRole])(n,t)}function YN(n,t,e){const i=t.map.cellsInRect({left:0,top:0,right:"row"==n?t.map.width:1,bottom:"column"==n?t.map.height:1});for(let r=0;rr.table.nodeAt(l));for(let l=0;l{const f=p+o.tableStart,g=s.doc.nodeAt(f);g&&s.setNodeMarkup(f,h,g.attrs)}),i(s)}return!0}}Ih("row",{useDeprecatedLogic:!0}),Ih("column",{useDeprecatedLogic:!0});let Poe=Ih("cell",{useDeprecatedLogic:!0});function WN(n){return function(t,e){if(!Ur(t))return!1;let i=function Foe(n,t){if(t<0){let e=n.nodeBefore;if(e)return n.pos-e.nodeSize;for(let i=n.index(-1)-1,r=n.before();i>=0;i--){let o=n.node(-1).child(i);if(o.childCount)return r-1-o.lastChild.nodeSize;r-=o.nodeSize}}else{if(n.index()new e(a,t,l),new Sh(-1,!1)},apply:(o,s)=>s.apply(o)},props:{attributes:o=>gr.getState(o).activeHandle>-1?{class:"resize-cursor"}:null,handleDOMEvents:{mousemove(o,s){!function Qoe(n,t,e,i,r){let o=gr.getState(n.state);if(!o.dragging){let s=function Hoe(n){for(;n&&"TD"!=n.nodeName&&"TH"!=n.nodeName;)n=n.classList.contains("ProseMirror")?null:n.parentNode;return n}(t.target),a=-1;if(s){let{left:l,right:c}=s.getBoundingClientRect();t.clientX-l<=e?a=JN(n,t,"left"):c-t.clientX<=e&&(a=JN(n,t,"right"))}if(a!=o.activeHandle){if(!r&&-1!==a){let l=n.state.doc.resolve(a),c=l.node(-1),u=Nt.get(c),d=l.start(-1);if(u.colCount(l.pos-d)+l.nodeAfter.attrs.colspan-1==u.width-1)return}$N(n,a)}}}(o,s,n,0,i)},mouseleave(o){!function Uoe(n){let t=gr.getState(n.state);t.activeHandle>-1&&!t.dragging&&$N(n,-1)}(o)},mousedown(o,s){!function joe(n,t,e){let i=gr.getState(n.state);if(-1==i.activeHandle||i.dragging)return!1;let r=n.state.doc.nodeAt(i.activeHandle),o=function zoe(n,t,{colspan:e,colwidth:i}){let r=i&&i[i.length-1];if(r)return r;let o=n.domAtPos(t),a=o.node.childNodes[o.offset].offsetWidth,l=e;if(i)for(let c=0;c-1)return function Woe(n,t){let e=[],i=n.doc.resolve(t),r=i.node(-1),o=Nt.get(r),s=i.start(-1),a=o.colCount(i.pos-s)+i.nodeAfter.attrs.colspan;for(let l=0;l-1&&t.docChanged){let r=t.mapping.map(e.activeHandle,-1);_M(t.doc.resolve(r))||(r=null),e=new Sh(r,e.dragging)}return e}}function JN(n,t,e){let i=n.posAtCoords({left:t.clientX,top:t.clientY});if(!i)return-1;let{pos:r}=i,o=nu(n.state.doc.resolve(r));if(!o)return-1;if("right"==e)return o.pos;let s=Nt.get(o.node(-1)),a=o.start(-1),l=s.map.indexOf(o.pos-a);return l%s.width==0?-1:a+s.map[l-1]}function KN(n,t,e){return Math.max(e,n.startWidth+(t.clientX-n.startX))}function $N(n,t){n.dispatch(n.state.tr.setMeta(gr,{setHandle:t}))}function Yoe(n){let t=[];for(let e=0;enull,apply(t,e){let i=t.getMeta(ia);if(null!=i)return-1==i?null:i;if(null==e||!t.docChanged)return e;let{deleted:r,pos:o}=t.mapping.mapResult(e);return r?null:o}},props:{decorations:aoe,handleDOMEvents:{mousedown:boe},createSelectionBetween(t){if(null!=ia.getState(t.state))return t.state.selection},handleTripleClick:moe,handleKeyDown:goe,handlePaste:Aoe},appendTransaction:(t,e,i)=>function uoe(n,t,e){let o,s,i=(t||n).selection,r=(t||n).doc;if(i instanceof ce&&(s=i.node.type.spec.tableRole)){if("cell"==s||"header_cell"==s)o=Ye.create(r,i.from);else if("row"==s){let a=r.resolve(i.from+1);o=Ye.rowSelection(a,a)}else if(!e){let a=Nt.get(i.node),l=i.from+1;o=Ye.create(r,l+1,l+a.map[a.width*a.height-1])}}else i instanceof Ee&&function loe({$from:n,$to:t}){if(n.pos==t.pos||n.pos=0&&!(n.after(r+1)=0&&!(t.before(o+1)>t.start(o));o--,i--);return e==i&&/row|table/.test(n.node(r).type.spec.tableRole)}(i)?o=Ee.create(r,i.from):i instanceof Ee&&function coe({$from:n,$to:t}){let e,i;for(let r=n.depth;r>0;r--){let o=n.node(r);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){e=o;break}}for(let r=t.depth;r>0;r--){let o=t.node(r);if("cell"===o.type.spec.tableRole||"header_cell"===o.type.spec.tableRole){i=o;break}}return e!==i&&0===t.parentOffset}(i)&&(o=Ee.create(r,i.$from.start(),i.$from.end()));return o&&(t||(t=n.tr)).setSelection(o),t}(i,UN(i,e),n)})}function qN(n,t,e,i,r,o){let s=0,a=!0,l=t.firstChild;const c=n.firstChild;for(let u=0,d=0;u{const{selection:t}=n.state;if(!function Xoe(n){return n instanceof Ye}(t))return!1;let e=0;return LR(t.ranges[0].$from,o=>"table"===o.type.name)?.node.descendants(o=>{if("table"===o.type.name)return!1;["tableCell","tableHeader"].includes(o.type.name)&&(e+=1)}),e===t.ranges.length&&(n.commands.deleteTable(),!0)},Zoe=tn.create({name:"table",addOptions:()=>({HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:Koe,lastColumnResizable:!0,allowTableNodeSelection:!1}),content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML:()=>[{tag:"table"}],renderHTML({HTMLAttributes:n}){return["table",Et(this.options.HTMLAttributes,n),["tbody",0]]},addCommands:()=>({insertTable:({rows:n=3,cols:t=3,withHeaderRow:e=!0}={})=>({tr:i,dispatch:r,editor:o})=>{const s=function qoe(n,t,e,i,r){const o=function $oe(n){if(n.cached.tableNodeTypes)return n.cached.tableNodeTypes;const t={};return Object.keys(n.nodes).forEach(e=>{const i=n.nodes[e];i.spec.tableRole&&(t[i.spec.tableRole]=i)}),n.cached.tableNodeTypes=t,t}(n),s=[],a=[];for(let c=0;c({state:n,dispatch:t})=>function Eoe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n);t(jN(n.tr,e,e.left))}return!0}(n,t),addColumnAfter:()=>({state:n,dispatch:t})=>function Coe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n);t(jN(n.tr,e,e.right))}return!0}(n,t),deleteColumn:()=>({state:n,dispatch:t})=>function Moe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n),i=n.tr;if(0==e.left&&e.right==e.map.width)return!1;for(let r=e.right-1;voe(i,e,r),r!=e.left;r--)e.table=e.tableStart?i.doc.nodeAt(e.tableStart-1):i.doc,e.map=Nt.get(e.table);t(i)}return!0}(n,t),addRowBefore:()=>({state:n,dispatch:t})=>function Doe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n);t(zN(n.tr,e,e.top))}return!0}(n,t),addRowAfter:()=>({state:n,dispatch:t})=>function Ioe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n);t(zN(n.tr,e,e.bottom))}return!0}(n,t),deleteRow:()=>({state:n,dispatch:t})=>function xoe(n,t){if(!Ur(n))return!1;if(t){let e=bo(n),i=n.tr;if(0==e.top&&e.bottom==e.map.height)return!1;for(let r=e.bottom-1;Soe(i,e,r),r!=e.top;r--)e.table=e.tableStart?i.doc.nodeAt(e.tableStart-1):i.doc,e.map=Nt.get(e.table);t(i)}return!0}(n,t),deleteTable:()=>({state:n,dispatch:t})=>function Roe(n,t){let e=n.selection.$anchor;for(let i=e.depth;i>0;i--)if("table"==e.node(i).type.spec.tableRole)return t&&t(n.tr.delete(e.before(i),e.after(i)).scrollIntoView()),!0;return!1}(n,t),mergeCells:()=>({state:n,dispatch:t})=>VN(n,t),splitCell:()=>({state:n,dispatch:t})=>GN(n,t),toggleHeaderColumn:()=>({state:n,dispatch:t})=>Ih("column")(n,t),toggleHeaderRow:()=>({state:n,dispatch:t})=>Ih("row")(n,t),toggleHeaderCell:()=>({state:n,dispatch:t})=>Poe(n,t),mergeOrSplit:()=>({state:n,dispatch:t})=>!!VN(n,t)||GN(n,t),setCellAttribute:(n,t)=>({state:e,dispatch:i})=>function Ooe(n,t){return function(e,i){if(!Ur(e))return!1;let r=Vm(e);if(r.nodeAfter.attrs[n]===t)return!1;if(i){let o=e.tr;e.selection instanceof Ye?e.selection.forEachCell((s,a)=>{s.attrs[n]!==t&&o.setNodeMarkup(a,null,In(s.attrs,n,t))}):o.setNodeMarkup(r.pos,null,In(r.nodeAfter.attrs,n,t)),i(o)}return!0}}(n,t)(e,i),goToNextCell:()=>({state:n,dispatch:t})=>WN(1)(n,t),goToPreviousCell:()=>({state:n,dispatch:t})=>WN(-1)(n,t),fixTables:()=>({state:n,dispatch:t})=>(t&&UN(n),!0),setCellSelection:n=>({tr:t,dispatch:e})=>{if(e){const i=Ye.create(t.doc,n.anchorCell,n.headCell);t.setSelection(i)}return!0}}),addKeyboardShortcuts(){return{Tab:()=>!!this.editor.commands.goToNextCell()||!!this.editor.can().addRowAfter()&&this.editor.chain().addRowAfter().goToNextCell().run(),"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:Km,"Mod-Backspace":Km,Delete:Km,"Mod-Delete":Km}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[Loe({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],Joe({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema:n=>({tableRole:Be(ne(n,"tableRole",{name:n.name,options:n.options,storage:n.storage}))})});let tse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-drag-handler"]],decls:2,vars:0,consts:[[1,"material-icons"]],template:function(e,i){1&e&&(x(0,"i",0),de(1,"drag_indicator"),B())},styles:["[_nghost-%COMP%]{position:absolute;cursor:grab;z-index:1;opacity:0;color:var(--color-background);transition:opacity .25s,top .15s}.visible[_nghost-%COMP%]{opacity:1}"]}),n})();const nse=n=>Ft.create({name:"dragHandler",addProseMirrorPlugins(){let t=null;const r=n.createComponent(tse).location.nativeElement;function s(g){g&&g.parentNode&&g.parentNode.removeChild(g)}function c(g){for(;g&&g.parentNode&&!g.classList?.contains("ProseMirror")&&!g.parentNode.classList?.contains("ProseMirror");)g=g.parentNode;return g}function h(){r.classList.remove("visible")}return[new it({key:new _t("dragHandler"),view:g=>(requestAnimationFrame(()=>function d(g){r.setAttribute("draggable","true"),r.addEventListener("dragstart",m=>function l(g,m){if(!g.dataTransfer)return;const y=function a(g,m){const A=m.posAtCoords(g);if(A){const y=c(m.nodeDOM(A.inside));if(y&&1===y.nodeType){const E=m.docView.nearestDesc(y,!0);if(E&&E!==m.docView)return E.posBefore}}return null}({left:g.clientX+50,top:g.clientY},m);if(null!=y){m.dispatch(m.state.tr.setSelection(ce.create(m.state.doc,y)));const E=m.state.selection.content();g.dataTransfer.clearData(),g?.dataTransfer?.setDragImage(t,10,10),m.dragging={slice:E,move:!0}}}(m,g)),r.classList.remove("visible"),g.dom.parentElement.appendChild(r)}(g)),document.body.addEventListener("scroll",h,!0),{destroy(){s(r),document.body.removeEventListener("scroll",h,!0)}}),props:{handleDOMEvents:{drop:(g,m)=>"TABLE"===c(m.target).nodeName||(requestAnimationFrame(()=>{(function f(){document.querySelector(".ProseMirror-hideselection")?.classList.remove("ProseMirror-hideselection"),r.classList.remove("visible")})(),nN(g),"TABLE"===t.nodeName&&s(t)}),!1),mousemove(g,m){const y=g.posAtCoords({left:m.clientX+50,top:m.clientY});if(y&&function u(g,m){const A=g.nodeDOM(m);return!(!A?.hasChildNodes()||1===A.childNodes.length&&"BR"==A.childNodes[0].nodeName)}(g,y.inside))if(t=c(g.nodeDOM(y.inside)),function p(g){return g&&!g.classList?.contains("ProseMirror")&&!g.innerText.startsWith("/")}(t)){const{top:E,left:b}=function o(g,m){return{top:m.getBoundingClientRect().top-g.getBoundingClientRect().top,left:m.getBoundingClientRect().left-g.getBoundingClientRect().left}}(g.dom.parentElement,t);r.style.left=b-25+"px",r.style.top=E<0?0:E+"px",r.classList.add("visible")}else r.classList.remove("visible");else t=null,r.classList.remove("visible");return!1}}}})]}});function ra(n){return function(e){const i=new ise(n),r=e.lift(i);return i.caught=r}}class ise{constructor(t){this.selector=t}call(t,e){return e.subscribe(new rse(t,this.selector,this.caught))}}class rse extends Ea{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let e;try{e=this.selector(t,this.caught)}catch(o){return void super.error(o)}this._unsubscribeAndRecycle();const i=new _a(this);this.add(i);const r=Ca(e,i);r!==i&&this.add(r)}}}const ZN={500:"500 Internal Server Error",400:"400 Bad Request",401:"401 Unauthorized Error"},eL="/api/v1/temp";function tL(n,t){let e="";try{e=n.message||ZN[t]}catch{e=ZN[t||500]}return{message:e,status:500|t}}var oa=(()=>(function(n){n.DOWNLOAD="DOWNLOADING",n.IMPORT="IMPORTING",n.COMPLETED="COMPLETED",n.ERROR="ERROR"}(oa||(oa={})),oa))();let xh=(()=>{class n{constructor(e){this.http=e}publishContent({data:e,maxSize:i,statusCallback:r=(o=>{})}){return r(oa.DOWNLOAD),this.setTempResource(e,i).pipe(Li(o=>{const s=Array.isArray(o)?o:[o],a=[];return s.forEach(l=>{a.push({baseType:"dotAsset",asset:l.id,hostFolder:"",indexPolicy:"WAIT_FOR"})}),r(oa.IMPORT),this.http.post("/api/v1/workflow/actions/default/fire/PUBLISH",JSON.stringify({contentlets:a}),{headers:{Origin:window.location.hostname,"Content-Type":"application/json;charset=UTF-8"}}).pipe(eu("entity","results"))}),ra(o=>Ss(o)))}setTempResource(e,i){return Lt(function ose({file:n,progressCallBack:t,maxSize:e}){return"string"==typeof n?function sse(n){return fetch(`${eL}/byUrl`,{method:"POST",headers:{"Content-Type":"application/json",Origin:window.location.hostname},body:JSON.stringify({remoteUrl:n})}).then(function(){var e=Mh(function*(i){if(200===i.status)return(yield i.json()).tempFiles[0];throw tL(yield i.json(),i.status)});return function(i){return e.apply(this,arguments)}}())}(n):function ase({file:n,progressCallBack:t,maxSize:e}){let i=eL;i+=e?`?maxFileLength=${e}`:"";const r=new FormData;return(Array.isArray(n)?n:[n]).forEach(s=>r.append("files",s)),function lse(n,t,e){return new Promise((i,r)=>{const o=new XMLHttpRequest;o.open(t.method||"get",n);for(const s in t.headers||{})o.setRequestHeader(s,t.headers[s]);o.onload=()=>i(o),o.onerror=r,o.upload&&e&&(o.upload.onprogress=s=>{e(s.loaded/s.total*100)}),o.send(t.body)})}(i,{method:"POST",headers:{},body:r},t).then(s=>{if(200===s.status){const a=JSON.parse(s.response).tempFiles;return a.length>1?a:a[0]}throw s}).catch(s=>{throw tL(JSON.parse(s.response),s.status)})}({file:n,progressCallBack:t,maxSize:e})}({file:e,progressCallBack:()=>{},maxSize:i}))}}return n.\u0275fac=function(e){return new(e||n)(j(vc))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const use=function(n){return{completed:n}};function dse(n,t){if(1&n){const e=Re();x(0,"button",2),K("click",function(){return re(e),oe(w().byClick.emit())}),B()}if(2&n){const e=w();C("disabled",e.isCompleted||e.isLoading)("icon",e.isCompleted?"pi pi-check":null)("label",e.title)("loading",e.isLoading)("ngClass",Wt(5,use,e.isCompleted))}}function hse(n,t){1&n&&(x(0,"div",3),ie(1,"i",4),x(2,"span"),de(3,"Something went wrong, please try again later or "),x(4,"a",5),de(5," contact support "),B()()())}let pse=(()=>{class n{constructor(){this.label="",this.isLoading=!1,this.byClick=new te,this.status=oa}get title(){return this.label?this.label[0].toUpperCase()+this.label?.substring(1).toLowerCase():""}get isCompleted(){return this.label===this.status.COMPLETED}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-floating-button"]],inputs:{label:"label",isLoading:"isLoading"},outputs:{byClick:"byClick"},decls:3,vars:2,consts:[["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click",4,"ngIf","ngIfElse"],["error",""],["pButton","","iconPos","left",3,"disabled","icon","label","loading","ngClass","click"],[1,"alert"],[1,"pi","pi-exclamation-circle"],["href","https://www.dotcms.com/contact-us/"]],template:function(e,i){if(1&e&&(S(0,dse,1,7,"button",0),S(1,hse,6,0,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",i.label!==i.status.ERROR)("ngIfElse",r)}},dependencies:[zn,Pt,Fs],styles:["[_nghost-%COMP%] .p-button-label{text-transform:unset}[_nghost-%COMP%] .p-button{display:inline-block}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:rgb(var(--color-main_rgb))}[_nghost-%COMP%] .p-button:disabled{background-color:#000!important;color:#fff!important;opacity:1}[_nghost-%COMP%] .p-button.completed{background:rgb(var(--color-main_rgb))!important}.alert[_ngcontent-%COMP%]{background:#ffffff;color:#d0021b;border:1px solid #d0021b;border-radius:2px;padding:10px;display:flex;align-items:center;justify-content:center;gap:5px}.alert[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#d0021b}"]}),n})();const gse=n=>new it({key:n.pluginKey,view:t=>new mse({view:t,...n})});class mse{constructor({dotImageService:t,editor:e,component:i,element:r,view:o}){this.preventHide=!1,this.$destroy=new Me,this.editor=e,this.element=r,this.view=o,this.component=i,this.dotImageService=t,this.component.instance.byClick.pipe(Yn(this.$destroy)).subscribe(()=>this.uploadImagedotCMS()),this.element.remove(),this.element.style.visibility="visible"}update(t,e){const{state:i,composing:r}=t,{doc:o,selection:s}=i,{empty:a,ranges:l}=s,c=e&&e.doc.eq(o)&&e.selection.eq(s);if(r||c||this.preventHide)return void(this.preventHide=!1);const u=Math.min(...l.map(p=>p.$from.pos)),d=o.nodeAt(u)?.type.name,h=this.editor.getAttributes(pi.name);a||d!=pi.name||h?.data?this.hide():(this.imageUrl=h?.src,this.updateButtonLabel("Import to dotCMS"),this.createTooltip(),this.tippy?.setProps({getReferenceClientRect:()=>{const p=t.nodeDOM(u);return(({viewCoords:n,nodeCoords:t})=>{const{bottom:i,left:r,top:o}=t,{bottom:s}=n,l=Math.ceil(s-i)<0?s:o-65,c=othis.updateButtonLabel(t)}).pipe($n(1),yn(()=>this.updateButtonLoading(!1))).subscribe(t=>{const e=t[0];this.updateButtonLabel(oa.COMPLETED),this.updateImageNode(e[Object.keys(e)[0]])},()=>{this.updateButtonLabel(oa.ERROR),this.setPreventHide()})}updateButtonLabel(t){this.component.instance.label=t,this.component.changeDetectorRef.detectChanges()}updateButtonLoading(t){this.component.instance.isLoading=t,this.component.changeDetectorRef.detectChanges()}}const Ase=new _t("floating-button");function bse(n,t){const e=t.createComponent(pse),i=e.location.nativeElement,r=n.get(xh);return Ft.create({addProseMirrorPlugins(){return i?[gse({...this.options,dotImageService:r,component:e,pluginKey:Ase,editor:this.editor,element:i})]:[]}})}function yse(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-asset-search",6),K("addAsset",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)("languageId",e.languageId)}}function _se(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-upload-asset",7),K("uploadedFile",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)}}function Ese(n,t){if(1&n){const e=Re();x(0,"div",5)(1,"dot-external-asset",8),K("addAsset",function(r){return re(e),oe(w().onSelectAsset(r))}),B()()}if(2&n){const e=w();v(1),C("type",e.type)}}let nL=(()=>{class n{constructor(){this.languageId=Um}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-form"]],inputs:{languageId:"languageId",type:"type",onSelectAsset:"onSelectAsset"},decls:8,vars:5,consts:[[1,"tabview-container"],["header","dotCMS","leftIcon","pi pi-images",3,"cache"],["pTemplate","content"],["leftIcon","pi pi-folder",3,"cache","header"],["leftIcon","pi pi-link",3,"cache","header"],[1,"wrapper"],[3,"type","languageId","addAsset"],[3,"type","uploadedFile"],[3,"type","addAsset"]],template:function(e,i){1&e&&(x(0,"div",0)(1,"p-tabView")(2,"p-tabPanel",1),S(3,yse,2,2,"ng-template",2),B(),x(4,"p-tabPanel",3),S(5,_se,2,1,"ng-template",2),B(),x(6,"p-tabPanel",4),S(7,Ese,2,1,"ng-template",2),B()()()),2&e&&(v(2),C("cache",!1),v(2),C("cache",!1)("header","Upload "+i.type),v(2),C("cache",!1)("header",i.type+" URL"))},styles:["[_nghost-%COMP%]{border:1px solid #b3b1b8;display:block}.tabview-container[_ngcontent-%COMP%]{width:720px;background:#ffffff}.wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;height:25rem;width:100%}[_nghost-%COMP%] .p-tabview-nav{padding:0 2rem}"],changeDetection:0}),n})();class Cse{constructor({editor:t,view:e,pluginKey:i,render:r}){this.editor=t,this.view=e,this.pluginKey=i,this.render=r,this.editor.on("focus",()=>this.render().onHide(this.editor))}update(t,e){const i=this.pluginKey?.getState(t.state),r=e?this.pluginKey?.getState(e):{open:!1},{state:o}=t,{selection:s}=o;i?.open!==r?.open&&(i?.open?this.render().onStart({editor:this.editor,type:i.type,getPosition:()=>{const{from:a,to:l}=s;return ul(t,a,l)}}):this.render().onHide(this.editor))}destroy(){this.render().onDestroy()}}const vse=n=>new it({key:n.pluginKey,view:t=>new Cse({view:t,...n}),state:{init:()=>({open:!1,type:null}),apply(t,e,i){const{open:r,type:o}=t.getMeta(n.pluginKey)||{},s=n.pluginKey?.getState(i);return"boolean"==typeof r?{open:r,type:o}:s||e}}}),$m=new _t("bubble-image-form"),Mse={interactive:!0,duration:0,maxWidth:"none",trigger:"manual",placement:"bottom-start",hideOnClick:"toggle",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:["top-start"]}}]}},wse=n=>{let t,e,i;function r({editor:c,type:u,getPosition:d}){(function a(c){const{element:u}=c.options;t||!!!u.parentElement||(t=Xo(u.parentElement,Mse))})(c),function l(c,u){e=n.createComponent(nL),e.instance.languageId=c.storage.dotConfig.lang,e.instance.type=u,e.instance.onSelectAsset=d=>{c.chain().insertAsset({type:u,payload:d}).addNextLine().closeAssetForm().run()},i=e.location.nativeElement,e.changeDetectorRef.detectChanges()}(c,u),t.setProps({content:i,getReferenceClientRect:d,onClickOutside:()=>o(c)}),t.show()}function o(c){c.commands.closeAssetForm(),t?.hide(),e?.destroy()}function s(){t?.destroy(),e?.destroy()}return fM.extend({name:"bubbleAssetForm",addOptions:()=>({element:null,tippyOptions:{},pluginKey:$m}),addCommands:()=>({openAssetForm:({type:c})=>({chain:u})=>u().command(({tr:d})=>(d.setMeta($m,{open:!0,type:c}),!0)).freezeScroll(!0).run(),closeAssetForm:()=>({chain:c})=>c().command(({tr:u})=>(u.setMeta($m,{open:!1}),!0)).freezeScroll(!1).run(),insertAsset:({type:c,payload:u})=>({chain:d})=>{switch(c){case"video":return d().setVideo(u).run();case"image":return d().addDotImage(u).run()}}}),addProseMirrorPlugins(){return[vse({pluginKey:$m,editor:this.editor,render:()=>({onStart:r,onHide:o,onDestroy:s})})]}})};let Dse=(()=>{class n extends AN{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=vn(n)))(i||n)}}(),n.\u0275cmp=ve({type:n,selectors:[["dot-message"]],features:[lt],decls:2,vars:2,consts:[[3,"ngClass"]],template:function(e,i){1&e&&(x(0,"span",0),de(1),B()),2&e&&(C("ngClass",i.data.type),v(1),pt(i.data.message))},dependencies:[zn],styles:["dotcms-message{background-color:#b3b1b8;display:block;padding:16px}\n"],encapsulation:2}),n})();const DM=new it({state:{init:()=>kt.empty,apply(n,t){t=t.map(n.mapping,n.doc);const e=n.getMeta(this);if(e&&e.add){const r=wn.widget(e.add.pos,e.add.element,{key:e.add.id});t=t.add(n.doc,[r])}else e&&e.remove&&(t=t.remove(t.find(null,null,i=>i.key==e.remove.id)));return t}},props:{decorations(n){return this.getState(n)}}}),Sse=(n,t)=>Ft.create({name:"imageUpload",addProseMirrorPlugins(){const e=n.get(xh),i=this.editor;function r(u){let d;if(d="drop"===u.type?u.dataTransfer.files:u.clipboardData.files,d.length>0)for(let h=0;h1)||u.includes("image")}function a(u,d,h){const p=d[0].name;(function s(u,d,h){const p=t.createComponent(Dse),f=u.state.tr;p.instance.data={message:"Uploading...",type:"info"},p.changeDetectorRef.detectChanges(),f.setMeta(DM,{add:{id:h,pos:d,element:p.location.nativeElement}}),u.dispatch(f)})(u,h,p),e.publishContent({data:d}).pipe($n(1)).subscribe(f=>{const g=f[0][Object.keys(f[0])[0]],{asset:m,name:A}=g;i.commands.insertContentAt(h,{attrs:{data:g,src:m,title:A,alt:A},type:pi.name})},f=>alert(f.message),()=>function l(u){const{view:d}=i,{state:h}=d;d.dispatch(h.tr.setMeta(DM,{remove:{id:u}})),nN(d)}(p))}return[DM,new it({key:new _t("imageUpload"),props:{handleDOMEvents:{click(u,d){const{doc:h,selection:p}=u.state,{ranges:f}=p,g=Math.min(...f.map(y=>y.$from.pos)),m=h.nodeAt(g);return d.target?.closest("a")&&m.type.name===pi.name&&d.preventDefault(),!0},paste(u,d){if(!o())return!0;const h=d.clipboardData.getData("Text"),{from:p}=function c(u){const{state:d}=u,{selection:h}=d,{ranges:p}=h;return{from:Math.min(...p.map(m=>m.$from.pos)),to:Math.max(...p.map(m=>m.$to.pos))}}(u);if(r(d)){if(d.preventDefault(),1!==d.clipboardData.files.length)return alert("Can paste just one image at a time"),!0;a(u,Array.from(d.clipboardData.files),p)}else(function Ise(n){return null!=n.match(/\.(jpeg|jpg|gif|png)$/)})(h)&&i.commands.insertContentAt(p,{attrs:{src:h},type:pi.name})},drop(u,d){if(o()&&r(d)){if(d.preventDefault(),1!==d.dataTransfer.files.length)return alert("Can drop just one image at a time"),!1;const{pos:h}=u.posAtCoords({left:d.clientX,top:d.clientY});a(u,Array.from(d.dataTransfer.files),h)}return!1}}}})]}}),Th=new _t("freeze-scroll"),xse=Ft.create({name:"freezeScroll",addCommands:()=>({freezeScroll:n=>({chain:t})=>t().command(({tr:e})=>(e.setMeta(Th,{freezeScroll:n}),!0)).run()}),addProseMirrorPlugins:()=>[Tse]}),Tse=new it({key:Th,state:{init:()=>({freezeScroll:!1}),apply(n,t,e){const{freezeScroll:i}=n.getMeta(Th)||{},r=Th?.getState(e);return"boolean"==typeof i?{freezeScroll:i}:r||t}}});let Bse=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();class mr extends Me{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Cr;return this._value}next(t){super.next(this._value=t)}}function iL(n,t,e,i){return wo(e)&&(i=e,e=void 0),i?iL(n,t,e).pipe(fe(r=>Er(r)?i(...r):i(r))):new et(r=>{rL(n,t,function o(s){r.next(arguments.length>1?Array.prototype.slice.call(arguments):s)},r,e)})}function rL(n,t,e,i,r){let o;if(function Pse(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const s=n;n.addEventListener(t,e,r),o=()=>s.removeEventListener(t,e,r)}else if(function kse(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const s=n;n.on(t,e),o=()=>s.off(t,e)}else if(function Ose(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const s=n;n.addListener(t,e),o=()=>s.removeListener(t,e)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let s=0,a=n.length;sthis.total&&this.destination.next(t)}}const oL={leading:!0,trailing:!1};class jse{constructor(t,e,i,r){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=r}call(t,e){return e.subscribe(new zse(t,this.duration,this.scheduler,this.leading,this.trailing))}}class zse extends Ge{constructor(t,e,i,r,o){super(t),this.duration=e,this.scheduler=i,this.leading=r,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}_next(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(Hse,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)}}function Hse(n){const{subscriber:t}=n;t.clearThrottle()}function sL(n){return!!n&&(n instanceof et||"function"==typeof n.lift&&"function"==typeof n.subscribe)}class aL extends Ge{notifyNext(t,e,i,r,o){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Vse extends Ge{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function lL(n,t,e,i,r=new Vse(n,e,i)){if(!r.closed)return t instanceof et?t.subscribe(r):xi(t)(r)}const cL={};function IM(...n){let t,e;return ds(n[n.length-1])&&(e=n.pop()),"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&Er(n[0])&&(n=n[0]),ps(n,e).lift(new Gse(t))}class Gse{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Yse(t,this.resultSelector))}}class Yse extends aL{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(cL),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{let e;return"function"==typeof n[n.length-1]&&(e=n.pop()),t.lift(new Wse(n,e))}}class Wse{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new Jse(t,this.observables,this.project))}}class Jse extends aL{constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let o=0;o0){const o=r.indexOf(i);-1!==o&&r.splice(o,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}class $se{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new qse(t,this.compare,this.keySelector))}}class qse extends Ge{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:r}=this;e=r?r(t):t}catch(r){return this.destination.error(r)}let i=!1;if(this.hasKey)try{const{compare:r}=this;i=r(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function uL(){return n=>new et(t=>{let e,i;const r=new We;return r.add(n.subscribe({complete:()=>{e&&t.next(i),t.complete()},error:o=>{t.error(o)},next:o=>{i=o,e||(e=NO.schedule(()=>{t.next(i),e=void 0}),r.add(e))}})),r})}function xM(n){return"function"==typeof n.ngrxOnStoreInit}function TM(n){return"function"==typeof n.ngrxOnStateInit}const eae=new $("@ngrx/component-store Initial State");let tae=(()=>{class n{constructor(e){this.destroySubject$=new ig(1),this.destroy$=this.destroySubject$.asObservable(),this.stateSubject$=new ig(1),this.isInitialized=!1,this.notInitializedErrorMessage=`${this.constructor.name} has not been initialized yet. Please make sure it is initialized before updating/getting.`,this.state$=this.select(i=>i),this.\u0275hasProvider=!1,e&&this.initState(e),this.checkProviderForHooks()}ngOnDestroy(){this.stateSubject$.complete(),this.destroySubject$.next()}updater(e){return i=>{let r;const s=(sL(i)?i:ae(i)).pipe(Wo(a=>this.isInitialized?wu([a],EE).pipe(SM(this.stateSubject$)):Ss(()=>new Error(this.notInitializedErrorMessage))),Yn(this.destroy$)).subscribe({next:([a,l])=>{this.stateSubject$.next(e(l,a))},error:a=>{r=a,this.stateSubject$.error(a)}});if(r)throw r;return s}}initState(e){wu([e],EE).subscribe(i=>{this.isInitialized=!0,this.stateSubject$.next(i)})}setState(e){"function"!=typeof e?this.initState(e):this.updater(e)()}patchState(e){const i="function"==typeof e?e(this.get()):e;this.updater((r,o)=>({...r,...o}))(i)}get(e){if(!this.isInitialized)throw new Error(this.notInitializedErrorMessage);let i;return this.stateSubject$.pipe($n(1)).subscribe(r=>{i=e?e(r):r}),i}select(...e){const{observables:i,projector:r,config:o}=function nae(n){const t=Array.from(n);let i,e={debounce:!1};const r=t.pop();return"function"!=typeof r?(e={...e,...r},i=t.pop()):i=r,{observables:t,projector:i,config:e}}(e);let s;return s=0===i.length?this.stateSubject$.pipe(o.debounce?uL():a=>a,fe(a=>r(a))):IM(i).pipe(o.debounce?uL():a=>a,fe(a=>r(...a))),s.pipe(function Kse(n,t){return e=>e.lift(new $se(n,t))}(),function Xse(n,t,e){let i;return i=n&&"object"==typeof n?n:{bufferSize:n,windowTime:t,refCount:!1,scheduler:e},r=>r.lift(function Zse({bufferSize:n=Number.POSITIVE_INFINITY,windowTime:t=Number.POSITIVE_INFINITY,refCount:e,scheduler:i}){let r,s,o=0,a=!1,l=!1;return function(u){let d;o++,!r||a?(a=!1,r=new ig(n,t,i),d=r.subscribe(this),s=u.subscribe({next(h){r.next(h)},error(h){a=!0,r.error(h)},complete(){l=!0,s=void 0,r.complete()}}),l&&(s=void 0)):d=r.subscribe(this),this.add(()=>{o--,d.unsubscribe(),d=void 0,s&&!l&&e&&0===o&&(s.unsubscribe(),s=void 0,r=void 0)})}}(i))}({refCount:!0,bufferSize:1}),Yn(this.destroy$))}effect(e){const i=new Me;return e(i).pipe(Yn(this.destroy$)).subscribe(),r=>(sL(r)?r:ae(r)).pipe(Yn(this.destroy$)).subscribe(s=>{i.next(s)})}checkProviderForHooks(){LO.schedule(()=>{if(function qG(){return mT=!0,gT}()&&(xM(this)||TM(this))&&!this.\u0275hasProvider){const e=[xM(this)?"OnStoreInit":"",TM(this)?"OnStateInit":""].filter(i=>i);console.warn(`@ngrx/component-store: ${this.constructor.name} has the ${e.join(" and ")} lifecycle hook(s) implemented without being provided using the provideComponentStore(${this.constructor.name}) function. To resolve this, provide the component store via provideComponentStore(${this.constructor.name})`)}})}}return n.\u0275fac=function(e){return new(e||n)(j(eae,8))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const iae={loading:!0,preventScroll:!1,contentlets:[],languageId:1,search:"",assetType:null};let dL=(()=>{class n extends tae{constructor(e,i){super(iae),this.searchService=e,this.dotLanguageService=i,this.vm$=this.select(({contentlets:r,loading:o,preventScroll:s})=>({contentlets:r,loading:o,preventScroll:s})),this.updateContentlets=this.updater((r,o)=>({...r,contentlets:o})),this.updateAssetType=this.updater((r,o)=>({...r,assetType:o})),this.updatelanguageId=this.updater((r,o)=>({...r,languageId:o})),this.updateLoading=this.updater((r,o)=>({...r,loading:o})),this.updatePreventScroll=this.updater((r,o)=>({...r,preventScroll:o})),this.updateSearch=this.updater((r,o)=>({...r,search:o})),this.searchContentlet=this.effect(r=>r.pipe(yn(o=>{this.updateLoading(!0),this.updateSearch(o)}),SM(this.state$),fe(([o,s])=>({...s,search:o})),nn(o=>this.searchContentletsRequest(this.params({...o}),[])))),this.nextBatch=this.effect(r=>r.pipe(SM(this.state$),fe(([o,s])=>({...s,offset:o})),nn(({contentlets:o,...s})=>this.searchContentletsRequest(this.params(s),o)))),this.dotLanguageService.getLanguages().subscribe(r=>{this.languages=r})}searchContentletsRequest(e,i){return this.searchService.get(e).pipe(fe(({jsonObjectView:{contentlets:r}})=>{const o=this.setContentletLanguage(r);return this.updateLoading(!1),this.updatePreventScroll(!r?.length),this.updateContentlets([...i,...o])}))}params({search:e,assetType:i,offset:r=0,languageId:o}){return{query:` +catchall:${e}* title:'${e}'^15 +languageId:${o} +baseType:(4 OR 9) +metadata.contenttype:${i||""}/* +deleted:false +working:true`,sortOrder:Nm.ASC,limit:20,offset:r}}setContentletLanguage(e){return e.map(i=>({...i,language:this.getLanguage(i.languageId)}))}getLanguage(e){const{languageCode:i,countryCode:r}=this.languages[e];return i&&r?`${i}-${r}`:""}}return n.\u0275fac=function(e){return new(e||n)(j(Bte),j(lM))},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();const rae=["element"],oae=["content"];function sae(n,t){1&n&&Mt(0)}const BM=function(n,t){return{$implicit:n,options:t}};function aae(n,t){if(1&n&&(ct(0),S(1,sae,1,0,"ng-container",7),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Xi(2,BM,e.loadedItems,e.getContentOptions()))}}function lae(n,t){1&n&&Mt(0)}function cae(n,t){if(1&n&&(ct(0),S(1,lae,1,0,"ng-container",7),ut()),2&n){const e=t.$implicit,i=t.index,r=w(3);v(1),C("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Xi(2,BM,e,r.getOptions(i)))}}const uae=function(n){return{"p-scroller-loading":n}};function dae(n,t){if(1&n&&(x(0,"div",8,9),S(2,cae,2,5,"ng-container",10),B()),2&n){const e=w(2);C("ngClass",Wt(4,uae,e.d_loading))("ngStyle",e.contentStyle),v(2),C("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function hae(n,t){1&n&&ie(0,"div",11),2&n&&C("ngStyle",w(2).spacerStyle)}function pae(n,t){1&n&&Mt(0)}const fae=function(n){return{numCols:n}},hL=function(n){return{options:n}};function gae(n,t){if(1&n&&(ct(0),S(1,pae,1,0,"ng-container",7),ut()),2&n){const e=t.index,i=w(4);v(1),C("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",Wt(4,hL,i.getLoaderOptions(e,i.both&&Wt(2,fae,i._numItemsInViewport.cols))))}}function mae(n,t){if(1&n&&(ct(0),S(1,gae,2,6,"ng-container",14),ut()),2&n){const e=w(3);v(1),C("ngForOf",e.loaderArr)}}function Aae(n,t){1&n&&Mt(0)}const bae=function(){return{styleClass:"p-scroller-loading-icon"}};function yae(n,t){if(1&n&&(ct(0),S(1,Aae,1,0,"ng-container",7),ut()),2&n){const e=w(4);v(1),C("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",Wt(3,hL,io(2,bae)))}}function _ae(n,t){1&n&&ie(0,"i",16)}function Eae(n,t){if(1&n&&(S(0,yae,2,5,"ng-container",0),S(1,_ae,1,0,"ng-template",null,15,on)),2&n){const e=Qt(2);C("ngIf",w(3).loaderIconTemplate)("ngIfElse",e)}}const Cae=function(n){return{"p-component-overlay":n}};function vae(n,t){if(1&n&&(x(0,"div",12),S(1,mae,2,1,"ng-container",0),S(2,Eae,3,2,"ng-template",null,13,on),B()),2&n){const e=Qt(3),i=w(2);C("ngClass",Wt(3,Cae,!i.loaderTemplate)),v(1),C("ngIf",i.loaderTemplate)("ngIfElse",e)}}const Mae=function(n,t,e){return{"p-scroller":!0,"p-scroller-inline":n,"p-both-scroll":t,"p-horizontal-scroll":e}};function wae(n,t){if(1&n){const e=Re();ct(0),x(1,"div",2,3),K("scroll",function(r){return re(e),oe(w().onContainerScroll(r))}),S(3,aae,2,5,"ng-container",0),S(4,dae,3,6,"ng-template",null,4,on),S(6,hae,1,1,"div",5),S(7,vae,4,5,"div",6),B(),ut()}if(2&n){const e=Qt(5),i=w();v(1),Gt(i._styleClass),C("ngStyle",i._style)("ngClass",Na(10,Mae,i.inline,i.both,i.horizontal)),Ot("id",i._id)("tabindex",i.tabindex),v(2),C("ngIf",i.contentTemplate)("ngIfElse",e),v(3),C("ngIf",i._showSpacer),v(1),C("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function Dae(n,t){1&n&&Mt(0)}const Iae=function(n,t){return{rows:n,columns:t}};function Sae(n,t){if(1&n&&(ct(0),S(1,Dae,1,0,"ng-container",7),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Xi(5,BM,e.items,Xi(2,Iae,e._items,e.loadedColumns)))}}function xae(n,t){if(1&n&&(Ri(0),S(1,Sae,2,8,"ng-container",17)),2&n){const e=w();v(1),C("ngIf",e.contentTemplate)}}const Tae=["*"];let Bae=(()=>{class n{constructor(e,i){this.cd=e,this.zone=i,this.onLazyLoad=new te,this.onScroll=new te,this.onScrollIndexChange=new te,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._step=0,this._delay=0,this._resizeDelay=10,this._appendOnly=!1,this._inline=!1,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.page=0,this.numItemsInViewport=0,this.lastScrollPos=0,this.lazyLoadState={},this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1}get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}ngOnInit(){this.setInitialState()}ngOnChanges(e){let i=!1;if(e.loading){const{previousValue:r,currentValue:o}=e.loading;this.lazy&&r!==o&&o!==this.d_loading&&(this.d_loading=o,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:r,currentValue:o}=e.numToleratedItems;r!==o&&o!==this.d_numToleratedItems&&(this.d_numToleratedItems=o)}if(e.options){const{previousValue:r,currentValue:o}=e.options;this.lazy&&r?.loading!==o?.loading&&o?.loading!==this.d_loading&&(this.d_loading=o.loading,i=!0),r?.numToleratedItems!==o?.numToleratedItems&&o?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=o.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&this.init()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){this.viewInit()}ngAfterViewChecked(){this.initialized||this.viewInit(),this.calculateAutoSize()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){Z.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=Z.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=Z.getHeight(this.elementViewChild.nativeElement),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||Z.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){const{numToleratedItems:r}=this.calculateNumItems(),o=this.getContentPosition(),s=(c=0,u)=>c<=u?0:c,a=(c,u,d)=>c*u+d,l=(c=0,u=0)=>this.scrollTo({left:c,top:u,behavior:i});this.both?(this.first={rows:s(e[0],r[0]),cols:s(e[1],r[1])},l(a(this.first.cols,this._itemSize[1],o.left),a(this.first.rows,this._itemSize[0],o.top))):(this.first=s(e,r),this.horizontal?l(a(this.first,this._itemSize,o.left),0):l(0,a(this.first,this._itemSize,o.top)))}scrollInView(e,i,r="auto"){if(i){const{first:o,viewport:s}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:r}),c="to-end"===i;if("to-start"===i){if(this.both)s.first.rows-o.rows>e[0]?a(s.first.cols*this._itemSize[1],(s.first.rows-1)*this._itemSize[0]):s.first.cols-o.cols>e[1]&&a((s.first.cols-1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.first-o>e){const u=(s.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)s.last.rows-o.rows<=e[0]+1?a(s.first.cols*this._itemSize[1],(s.first.rows+1)*this._itemSize[0]):s.last.cols-o.cols<=e[1]+1&&a((s.first.cols+1)*this._itemSize[1],s.first.rows*this._itemSize[0]);else if(s.last-o<=e+1){const u=(s.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,r)}getRenderedRange(){const e=(o,s)=>Math.floor(o/(s||o));let i=this.first,r=0;if(this.elementViewChild?.nativeElement){const{scrollTop:o,scrollLeft:s}=this.elementViewChild.nativeElement;this.both?(i={rows:e(o,this._itemSize[0]),cols:e(s,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=e(this.horizontal?s:o,this._itemSize),r=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){const e=this.getContentPosition(),i=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0,r=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0,o=(c,u)=>Math.ceil(c/(u||c)),s=c=>Math.ceil(c/2),a=this.both?{rows:o(r,this._itemSize[0]),cols:o(i,this._itemSize[1])}:o(this.horizontal?i:r,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[s(a.rows),s(a.cols)]:s(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,u=!1)=>this.getLast(a+l+(aArray.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:o.cols}:0:o,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto";const{offsetWidth:e,offsetHeight:i}=this.contentEl;(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=(ethis.elementViewChild.nativeElement.style[s]=a;this.both||this.horizontal?(o("height",r),o("width",i)):o("height",r)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),i=(r,o,s,a=0)=>this.spacerStyle={...this.spacerStyle,[`${r}`]:(o||[]).length*s+a+"px"};this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const i=e?e.first:this.first,r=(s,a)=>s*a,o=(s=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${s}px, ${a}px, 0)`};if(this.both)o(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{const s=r(i,this._itemSize);this.horizontal?o(s,0):o(0,s)}}}onScrollPositionChange(e){const i=e.target,r=this.getContentPosition(),o=(m,A)=>m?m>A?m-A:m:0,s=(m,A)=>Math.floor(m/(A||m)),a=(m,A,y,E,b,D)=>m<=b?b:D?y-E-b:A+b-1,l=(m,A,y,E,b,D,I)=>m<=D?0:Math.max(0,I?mA?y:m-2*D),c=(m,A,y,E,b,D=!1)=>{let I=A+E+2*b;return m>=b&&(I+=b+1),this.getLast(I,D)},u=o(i.scrollTop,r.top),d=o(i.scrollLeft,r.left);let h=this.both?{rows:0,cols:0}:0,p=this.last,f=!1,g=this.lastScrollPos;if(this.both){const m=this.lastScrollPos.top<=u,A=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(m||A)){const y={rows:s(u,this._itemSize[0]),cols:s(d,this._itemSize[1])},E={rows:a(y.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],m),cols:a(y.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],A)};h={rows:l(y.rows,E.rows,this.first.rows,0,0,this.d_numToleratedItems[0],m),cols:l(y.cols,E.cols,this.first.cols,0,0,this.d_numToleratedItems[1],A)},p={rows:c(y.rows,h.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(y.cols,h.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=h.rows!==this.first.rows||p.rows!==this.last.rows||h.cols!==this.first.cols||p.cols!==this.last.cols,g={top:u,left:d}}}else{const m=this.horizontal?d:u,A=this.lastScrollPos<=m;if(!this._appendOnly||this._appendOnly&&A){const y=s(m,this._itemSize);h=l(y,a(y,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,A),this.first,0,0,this.d_numToleratedItems,A),p=c(y,h,0,this.numItemsInViewport,this.d_numToleratedItems),f=h!==this.first||p!==this.last,g=m}}return{first:h,last:p,isRangeChanged:f,scrollPos:g}}onScrollChange(e){const{first:i,last:r,isRangeChanged:o,scrollPos:s}=this.onScrollPositionChange(e);if(o){const a={first:i,last:r};if(this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=s,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){this.windowResizeListener||this.zone.runOutsideAngular(()=>{this.windowResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.windowResizeListener),window.addEventListener("orientationchange",this.windowResizeListener)})}unbindResizeListener(){this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),window.removeEventListener("orientationchange",this.windowResizeListener),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(Z.isVisible(this.elementViewChild?.nativeElement)){const[e,i]=[Z.getWidth(this.elementViewChild.nativeElement),Z.getHeight(this.elementViewChild.nativeElement)],[r,o]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||o:this.horizontal?r:this.vertical&&o)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:0===r,last:r===i-1,even:r%2==0,odd:r%2!=0}}getLoaderOptions(e,i){const r=this.loaderArr.length;return{index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,...i}}}return n.\u0275fac=function(e){return new(e||n)(T(li),T(At))},n.\u0275cmp=ve({type:n,selectors:[["p-scroller"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(rae,5),Zt(oae,5)),2&e){let r;He(r=Ve())&&(i.elementViewChild=r.first),He(r=Ve())&&(i.contentViewChild=r.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[_i],ngContentSelectors:Tae,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(e,i){if(1&e&&(eo(),S(0,wae,8,14,"ng-container",0),S(1,xae,2,1,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf",!i._disabled)("ngIfElse",r)}},dependencies:[zn,tr,Pt,Yo,nr],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}.p-scroller-inline .p-scroller-content{position:static}\n"],encapsulation:2}),n})(),pL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();var Bh=(()=>(function(n){n.SHOW_VIDEO_THUMBNAIL="SHOW_VIDEO_THUMBNAIL"}(Bh||(Bh={})),Bh))(),Oh=(()=>(function(n){n.FULFILLED="fulfilled",n.REJECTED="rejected"}(Oh||(Oh={})),Oh))();function Oae(n,t){if(1&n&&(x(0,"div",3),ie(1,"dot-contentlet-thumbnail",4),B()),2&n){const e=w();v(1),C("contentlet",e.contentlet)("cover",!1)("iconSize","72px")("showVideoThumbnail",e.showVideoThumbnail)}}function kae(n,t){if(1&n&&(x(0,"h2",5),de(1),B()),2&n){const e=w();v(1),pt((null==e.contentlet?null:e.contentlet.fileName)||(null==e.contentlet?null:e.contentlet.title))}}function Pae(n,t){if(1&n&&(x(0,"div",6)(1,"span",7),de(2),B(),ie(3,"dot-state-icon",8),B()),2&n){const e=w();v(2),pt(e.contentlet.language),v(1),C("state",e.contentlet)}}let Fae=(()=>{class n{constructor(e){this.dotMarketingConfigService=e,this.showVideoThumbnail=!0}ngOnInit(){this.showVideoThumbnail=this.dotMarketingConfigService.getProperty(Bh.SHOW_VIDEO_THUMBNAIL)}getImage(e){return`/dA/${e}/500w/20q`}getContentletIcon(){return"FILEASSET"!==this.contentlet?.baseType?this.contentlet?.contentTypeIcon:this.contentlet?.__icon__}}return n.\u0275fac=function(e){return new(e||n)(T(qR))},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card"]],inputs:{contentlet:"contentlet"},decls:4,vars:1,consts:[["pTemplate","header"],["class","title",4,"pTemplate"],["pTemplate","footer"],[1,"thumbnail-container"],[3,"contentlet","cover","iconSize","showVideoThumbnail"],[1,"title"],[1,"state"],[1,"badge"],["size","16px",3,"state"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,Oae,2,4,"ng-template",0),S(2,kae,2,1,"h2",1),S(3,Pae,4,2,"ng-template",2),B()),2&e&&(v(2),C("pTemplate","title"))},dependencies:[mM,ar],styles:["[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;cursor:pointer;display:flex;gap:1rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0;height:94px;width:94px;min-height:94px;min-width:94px;border-radius:4px 0 0 4px}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container{padding:10px;width:100%;height:100%;background:#f1f3f4}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail{width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-header .thumbnail-container dot-contentlet-thumbnail img{object-fit:contain;width:100%;height:100%}[_nghost-%COMP%] .p-card .p-card-body{flex-grow:1;display:flex;flex-direction:column;overflow:hidden;padding:.75rem .75rem .75rem 0}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{flex-grow:1}[_nghost-%COMP%] .p-card .p-card-body .p-card-title h2{font-size:16px;line-height:140%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}[_nghost-%COMP%] .badge{background:#e0e9f6;border-radius:2px;color:#11152e;font-size:12px;line-height:140%;padding:.2rem .5rem;display:flex;align-items:center}"],changeDetection:0}),n})(),Rae=(()=>{class n{constructor(){this.shape="rectangle",this.animation="wave",this.borderRadius=null,this.size=null,this.width="100%",this.height="1rem"}containerClass(){return{"p-skeleton p-component":!0,"p-skeleton-circle":"circle"===this.shape,"p-skeleton-none":"none"===this.animation}}containerStyle(){return this.size?{...this.style,width:this.size,height:this.size,borderRadius:this.borderRadius}:{...this.style,width:this.width,height:this.height,borderRadius:this.borderRadius}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-skeleton"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",shape:"shape",animation:"animation",borderRadius:"borderRadius",size:"size",width:"width",height:"height"},decls:1,vars:4,consts:[[3,"ngClass","ngStyle"]],template:function(e,i){1&e&&ie(0,"div",0),2&e&&(Gt(i.styleClass),C("ngClass",i.containerClass())("ngStyle",i.containerStyle()))},dependencies:[zn,nr],styles:['.p-skeleton{position:relative;overflow:hidden}.p-skeleton:after{content:"";animation:p-skeleton-animation 1.2s infinite;height:100%;left:0;position:absolute;right:0;top:0;transform:translate(-100%);z-index:1}.p-skeleton.p-skeleton-circle{border-radius:50%}.p-skeleton-none:after{animation:none}@keyframes p-skeleton-animation{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n'],encapsulation:2,changeDetection:0}),n})(),fL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();function Nae(n,t){1&n&&ie(0,"p-skeleton",3)}function Lae(n,t){1&n&&(x(0,"div",4),ie(1,"p-skeleton",5)(2,"p-skeleton",6),B())}let Qae=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card-skeleton"]],decls:4,vars:0,consts:[["pTemplate","header"],["height","1rem"],["pTemplate","footer"],["shape","square","size","94px"],[1,"state"],["width","2rem","height","1rem"],["shape","circle","size","16px"]],template:function(e,i){1&e&&(x(0,"p-card"),S(1,Nae,1,0,"ng-template",0),ie(2,"p-skeleton",1),S(3,Lae,3,0,"ng-template",2),B())},dependencies:[mM,ar,Rae],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] .p-card{border:none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;cursor:pointer;display:flex;gap:.5rem;height:94px}[_nghost-%COMP%] .p-card .p-card-header{padding:0}[_nghost-%COMP%] .p-card .p-card-body{flex:1;overflow:hidden;padding:.75rem .5rem .75rem 0;display:flex;flex-direction:column}[_nghost-%COMP%] .p-card .p-card-body .p-card-content{flex-grow:1}[_nghost-%COMP%] .state{align-items:center;display:flex;gap:.5rem}"],changeDetection:0}),n})();function Uae(n,t){if(1&n){const e=Re();x(0,"dot-asset-card",7),K("click",function(){re(e);const r=w().$implicit;return oe(w(2).selectedItem.emit(r[0]))}),B()}2&n&&C("contentlet",w().$implicit[0])}function jae(n,t){if(1&n){const e=Re();x(0,"dot-asset-card",7),K("click",function(){re(e);const r=w().$implicit;return oe(w(2).selectedItem.emit(r[1]))}),B()}2&n&&C("contentlet",w().$implicit[1])}function zae(n,t){if(1&n&&(x(0,"div",5),S(1,Uae,1,1,"dot-asset-card",6),S(2,jae,1,1,"dot-asset-card",6),B()),2&n){const e=t.$implicit;v(1),C("ngIf",e[0]),v(1),C("ngIf",e[1])}}function Hae(n,t){if(1&n){const e=Re();x(0,"p-scroller",3),K("onScrollIndexChange",function(r){return re(e),oe(w().onScrollIndexChange(r))}),S(1,zae,3,2,"ng-template",4),B()}if(2&n){const e=w();C("itemSize",110)("items",e.rows)("lazy",!0)}}function Vae(n,t){1&n&&(x(0,"div",5),ie(1,"dot-asset-card-skeleton")(2,"dot-asset-card-skeleton"),B())}function Gae(n,t){if(1&n&&(x(0,"div",8),S(1,Vae,3,0,"div",9),B()),2&n){const e=w();v(1),C("ngForOf",e.loadingItems)}}function Yae(n,t){if(1&n&&(x(0,"div",10),ie(1,"img",11),x(2,"p"),de(3,"No results found, try searching again"),B()()),2&n){const e=w();v(1),C("src",e.icon,No)}}let Wae=(()=>{class n{constructor(){this.nextBatch=new te,this.selectedItem=new te,this.done=!1,this.loading=!0,this.loadingItems=[null,null,null],this.icon=Ns("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCA0MCA0MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuMDc2MTcgOC41NTcxMkgwLjA5NTIxNDhWMzYuNDIzOEMwLjA5NTIxNDggMzguNjEzMyAxLjg4NjY0IDQwLjQwNDcgNC4wNzYxNyA0MC40MDQ3SDMxLjk0MjhWMzYuNDIzOEg0LjA3NjE3VjguNTU3MTJaTTM1LjkyMzggMC41OTUyMTVIMTIuMDM4MUM5Ljg0ODU1IDAuNTk1MjE1IDguMDU3MTIgMi4zODY2NCA4LjA1NzEyIDQuNTc2MTdWMjguNDYxOUM4LjA1NzEyIDMwLjY1MTQgOS44NDg1NSAzMi40NDI4IDEyLjAzODEgMzIuNDQyOEgzNS45MjM4QzM4LjExMzMgMzIuNDQyOCAzOS45MDQ3IDMwLjY1MTQgMzkuOTA0NyAyOC40NjE5VjQuNTc2MTdDMzkuOTA0NyAyLjM4NjY0IDM4LjExMzMgMC41OTUyMTUgMzUuOTIzOCAwLjU5NTIxNVpNMzUuOTIzOCAyOC40NjE5SDEyLjAzODFWNC41NzYxN0gzNS45MjM4VjI4LjQ2MTlaTTIxLjk5MDUgMjQuNDgwOUgyNS45NzE0VjE4LjUwOTVIMzEuOTQyOFYxNC41Mjg1SDI1Ljk3MTRWOC41NTcxMkgyMS45OTA1VjE0LjUyODVIMTYuMDE5VjE4LjUwOTVIMjEuOTkwNVYyNC40ODA5WiIgZmlsbD0iIzU3NkJFOCIvPgo8L3N2Zz4K"),this._itemRows=[],this._offset=0}set contentlets(e){this._offset=e?.length||0,this._itemRows=this.createRowItem(e)}get rows(){return[...this._itemRows]}onScrollIndexChange(e){this.done||e.last===this.rows.length&&this.nextBatch.emit(this._offset)}createRowItem(e=[]){const i=[];return e.forEach(r=>{const o=i.length-1;i[o]?.length<2?i[o].push(r):i.push([r])}),i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-card-list"]],inputs:{done:"done",loading:"loading",contentlets:"contentlets"},outputs:{nextBatch:"nextBatch",selectedItem:"selectedItem"},decls:5,vars:2,consts:[["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange",4,"ngIf","ngIfElse"],["loadingBlock",""],["emptyBlock",""],["scrollHeight","20rem",3,"itemSize","items","lazy","onScrollIndexChange"],["pTemplate","item"],[1,"card-list-row"],[3,"contentlet","click",4,"ngIf"],[3,"contentlet","click"],[1,"wrapper","justify-start"],["class","card-list-row",4,"ngFor","ngForOf"],[1,"wrapper"],["width","42px","alt","No results found",3,"src"]],template:function(e,i){if(1&e&&(S(0,Hae,2,3,"p-scroller",0),S(1,Gae,2,1,"ng-template",null,1,on),S(3,Yae,4,1,"ng-template",null,2,on)),2&e){const r=Qt(2),o=Qt(4);C("ngIf",(null==i.rows?null:i.rows.length)&&!i.loading)("ngIfElse",i.loading?r:o)}},dependencies:[tr,Pt,ar,Bae,Fae,Qae],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:20rem;flex-direction:column}[_nghost-%COMP%] .wrapper[_ngcontent-%COMP%]{padding:0 2rem;display:flex;align-items:center;justify-content:center;flex-direction:column;flex-grow:1;height:250px;gap:0 1rem;overflow:hidden}[_nghost-%COMP%] .justify-start[_ngcontent-%COMP%]{justify-content:flex-start}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1rem 0;font-size:18px}[_nghost-%COMP%] dot-asset-card, [_nghost-%COMP%] dot-asset-card-skeleton{width:calc(50% - .5rem)}[_nghost-%COMP%] .p-scroller-content{padding:0 2rem;max-width:100%}[_nghost-%COMP%] .card-list-row{display:flex;justify-content:space-between;width:100%;min-height:110px;gap:1rem}"],changeDetection:0}),n})();const Jae=["input"];function Kae(n,t){if(1&n){const e=Re();ct(0),x(1,"dot-asset-card-list",6),K("selectedItem",function(r){return re(e),oe(w().addAsset.emit(r))})("nextBatch",function(r){return re(e),oe(w().offset$.next(r))}),B(),ut()}if(2&n){const e=t.ngIf;v(1),C("contentlets",e.contentlets)("done",e.preventScroll)("loading",e.loading)}}let $ae=(()=>{class n{constructor(e){this.store=e,this.addAsset=new te,this.vm$=this.store.vm$,this.offset$=new mr(0),this.destroy$=new Me}set languageId(e){this.store.updatelanguageId(e)}set type(e){this.store.updateAssetType(e)}ngOnInit(){this.store.searchContentlet(""),this.offset$.pipe(Yn(this.destroy$),function Fse(n){return t=>t.lift(new Rse(n))}(1),function Use(n,t=Tc,e=oL){return i=>i.lift(new jse(n,t,e.leading,e.trailing))}(450)).subscribe(this.store.nextBatch),requestAnimationFrame(()=>this.input.nativeElement.focus())}ngAfterViewInit(){iL(this.input.nativeElement,"input").pipe(Yn(this.destroy$),zg(450)).subscribe(({target:e})=>{this.store.searchContentlet(e.value)})}ngOnDestroy(){this.destroy$.next(!0)}}return n.\u0275fac=function(e){return new(e||n)(T(dL))},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-search"]],viewQuery:function(e,i){if(1&e&&Zt(Jae,5),2&e){let r;He(r=Ve())&&(i.input=r.first)}},inputs:{languageId:"languageId",type:"type"},outputs:{addAsset:"addAsset"},features:[yt([dL])],decls:8,vars:3,consts:[[1,"search-box"],[1,"p-input-icon-right"],["autofocus","","type","text","pInputText","","placeholder","Search",1,"search"],["input",""],[1,"pi","pi-search"],[4,"ngIf"],[3,"contentlets","done","loading","selectedItem","nextBatch"]],template:function(e,i){1&e&&(ct(0),x(1,"div",0)(2,"span",1),ie(3,"input",2,3)(5,"i",4),B()(),ut(),S(6,Kae,2,3,"ng-container",5),La(7,"async")),2&e&&(v(6),C("ngIf",Qa(7,1,i.vm$)))},dependencies:[Pt,zm,Wae,YT],styles:["[_nghost-%COMP%]{width:100%;height:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.search-box[_ngcontent-%COMP%]{padding:0 2rem;flex-grow:1;display:flex;align-items:center}.search-box[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .search-box[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),n})();const qae=["input"];let Zae=(()=>{class n{constructor(e){this.fb=e,this.addAsset=new te,this.form=this.fb.group({url:["",[vE.required,vE.pattern("^((http|https)://)[-a-zA-Z0-9@:%._\\+~#?&//=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%._\\+~#?&//=]*)$")]]}),requestAnimationFrame(()=>this.input.nativeElement.focus())}get placerHolder(){return"https://example.com/"+("video"===this.type?"video.mp4":"image.jpg")}onSubmit({url:e}){this.addAsset.emit(e)}}return n.\u0275fac=function(e){return new(e||n)(T(zE))},n.\u0275cmp=ve({type:n,selectors:[["dot-external-asset"]],viewQuery:function(e,i){if(1&e&&Zt(qae,5),2&e){let r;He(r=Ve())&&(i.input=r.first)}},inputs:{type:"type"},outputs:{addAsset:"addAsset"},decls:11,vars:6,consts:[[1,"wrapper",3,"formGroup","ngSubmit"],[1,"form-control"],["for","url"],["id","url","formControlName","url","autocomplete","off","type","text","pInputText","",3,"placeholder"],["input",""],[1,"footer"],[1,"error-message"],["type","submit","pButton","",3,"disabled"]],template:function(e,i){1&e&&(x(0,"form",0),K("ngSubmit",function(){return i.onSubmit(i.form.value)}),x(1,"div",1)(2,"label",2),de(3),B(),ie(4,"input",3,4),B(),x(6,"div",5)(7,"span",6),de(8,"Enter a valid url"),B(),x(9,"button",7),de(10,"Insert"),B()()()),2&e&&(C("formGroup",i.form),v(3),no("Insert ",i.type," URL"),v(1),C("placeholder",i.placerHolder),v(3),Ms("hide",!i.form.controls.url.invalid||i.form.pristine),v(2),C("disabled",i.form.invalid))},dependencies:[bg,wc,Pd,lg,Ic,jd,Fs,zm],styles:["[_nghost-%COMP%]{width:100%}.wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:flex-end;flex-direction:column;padding:2rem;gap:1rem}.form-control[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:.75rem}.footer[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between}.error-message[_ngcontent-%COMP%]{color:#c93926;font-size:.85rem;text-align:left}.hide[_ngcontent-%COMP%]{visibility:hidden}"],changeDetection:0}),n})();const ele=function(n,t,e){return{"border-width":n,width:t,height:e}};let tle=(()=>{class n{constructor(){this.borderSize="",this.size=""}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-spinner"]],inputs:{borderSize:"borderSize",size:"size"},decls:1,vars:5,consts:[[3,"ngStyle"]],template:function(e,i){1&e&&ie(0,"div",0),2&e&&C("ngStyle",Na(1,ele,i.borderSize,i.size,i.size))},dependencies:[nr],styles:["div[_ngcontent-%COMP%]{border-radius:50%;width:36px;height:36px;display:inline-block;vertical-align:middle;font-size:10px;position:relative;text-indent:-9999em;border:7.2px solid rgba(var(--color-main_rgb),.2);border-left-color:var(--color-main);transform:translateZ(0);animation:load8 1.1s infinite linear;overflow:hidden}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]}),n})();function nle(n,t){1&n&&ie(0,"span",11),2&n&&C("innerHTML",w(2).$implicit.summary,qp)}function ile(n,t){1&n&&ie(0,"span",12),2&n&&C("innerHTML",w(2).$implicit.detail,qp)}function rle(n,t){if(1&n&&(ct(0),S(1,nle,1,1,"span",9),S(2,ile,1,1,"span",10),ut()),2&n){const e=w().$implicit;v(1),C("ngIf",e.summary),v(1),C("ngIf",e.detail)}}function ole(n,t){if(1&n&&(x(0,"span",15),de(1),B()),2&n){const e=w(2).$implicit;v(1),pt(e.summary)}}function sle(n,t){if(1&n&&(x(0,"span",16),de(1),B()),2&n){const e=w(2).$implicit;v(1),pt(e.detail)}}function ale(n,t){if(1&n&&(S(0,ole,2,1,"span",13),S(1,sle,2,1,"span",14)),2&n){const e=w().$implicit;C("ngIf",e.summary),v(1),C("ngIf",e.detail)}}function lle(n,t){if(1&n){const e=Re();x(0,"button",17),K("click",function(){re(e);const r=w().index;return oe(w(2).removeMessage(r))}),ie(1,"i",18),B()}}const cle=function(n,t){return{showTransitionParams:n,hideTransitionParams:t}},ule=function(n){return{value:"visible",params:n}},dle=function(n,t,e,i){return{"pi-info-circle":n,"pi-check":t,"pi-exclamation-triangle":e,"pi-times-circle":i}};function hle(n,t){if(1&n&&(x(0,"div",4)(1,"div",5),ie(2,"span",6),S(3,rle,3,2,"ng-container",1),S(4,ale,2,2,"ng-template",null,7,on),S(6,lle,2,0,"button",8),B()()),2&n){const e=t.$implicit,i=Qt(5),r=w(2);Gt("p-message p-message-"+e.severity),C("@messageAnimation",Wt(12,ule,Xi(9,cle,r.showTransitionOptions,r.hideTransitionOptions))),v(2),Gt("p-message-icon pi"+(e.icon?" "+e.icon:"")),C("ngClass",Mf(14,dle,"info"===e.severity,"success"===e.severity,"warn"===e.severity,"error"===e.severity)),v(1),C("ngIf",!r.escape)("ngIfElse",i),v(3),C("ngIf",r.closable)}}function ple(n,t){if(1&n&&(ct(0),S(1,hle,7,19,"div",3),ut()),2&n){const e=w();v(1),C("ngForOf",e.messages)}}function fle(n,t){1&n&&Mt(0)}function gle(n,t){if(1&n&&(x(0,"div",19)(1,"div",5),S(2,fle,1,0,"ng-container",20),B()()),2&n){const e=w();C("ngClass","p-message p-message-"+e.severity),v(2),C("ngTemplateOutlet",e.contentTemplate)}}let mle=(()=>{class n{constructor(e,i,r){this.messageService=e,this.el=i,this.cd=r,this.closable=!0,this.enableService=!0,this.escape=!0,this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)",this.valueChange=new te,this.timerSubscriptions=[]}set value(e){this.messages=e,this.startMessageLifes(this.messages)}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e){e instanceof Array||(e=[e]);const i=e.filter(r=>this.key===r.key);this.messages=this.messages?[...this.messages,...i]:[...i],this.startMessageLifes(i),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let e=this.el.nativeElement.parentElement;return!(!e||!e.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(e){this.messages=this.messages.filter((i,r)=>r!==e),this.valueChange.emit(this.messages)}get icon(){const e=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(e){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(e=>e.unsubscribe())}startMessageLifes(e){e?.forEach(i=>i.life&&this.startMessageLife(i))}startMessageLife(e){const i=QO(e.life).subscribe(()=>{this.messages=this.messages?.filter(r=>r!==e),this.timerSubscriptions=this.timerSubscriptions?.filter(r=>r!==i),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(i)}}return n.\u0275fac=function(e){return new(e||n)(T(mK,8),T(St),T(li))},n.\u0275cmp=ve({type:n,selectors:[["p-messages"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:5,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"ngClass"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[1,"p-message-close-icon","pi","pi-times"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(e,i){if(1&e&&(x(0,"div",0),S(1,ple,2,1,"ng-container",1),S(2,gle,3,2,"ng-template",null,2,on),B()),2&e){const r=Qt(3);Gt(i.styleClass),C("ngStyle",i.style),v(1),C("ngIf",!i.contentTemplate)("ngIfElse",r)}},dependencies:[zn,tr,Pt,Yo,nr,Jd],styles:[".p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}\n"],encapsulation:2,data:{animation:[fW("messageAnimation",[zB(":enter",[_g({opacity:0,transform:"translateY(-25%)"}),UB("{{showTransitionParams}}")]),zB(":leave",[UB("{{hideTransitionParams}}",_g({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0}),n})(),gL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ja]}),n})();function Ale(n,t){if(1&n&&(x(0,"div",5),de(1),B()),2&n){const e=w(2);mf("display",null!=e.value&&0!==e.value?"flex":"none"),v(1),bf("",e.value,"",e.unit,"")}}function ble(n,t){if(1&n&&(x(0,"div",3),S(1,Ale,2,4,"div",4),B()),2&n){const e=w();mf("width",e.value+"%"),v(1),C("ngIf",e.showValue)}}function yle(n,t){1&n&&(x(0,"div",6),ie(1,"div",7),B())}const _le=function(n,t){return{"p-progressbar p-component":!0,"p-progressbar-determinate":n,"p-progressbar-indeterminate":t}};let Ele=(()=>{class n{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,i){1&e&&(x(0,"div",0),S(1,ble,2,3,"div",1),S(2,yle,2,0,"div",2),B()),2&e&&(Gt(i.styleClass),C("ngStyle",i.style)("ngClass",Xi(7,_le,"determinate"===i.mode,"indeterminate"===i.mode)),Ot("aria-valuenow",i.value),v(1),C("ngIf","determinate"===i.mode),v(1),C("ngIf","indeterminate"===i.mode))},dependencies:[zn,Pt,nr],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),n})(),mL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})();const Cle=["advancedfileinput"],vle=["basicfileinput"],Mle=["content"];function wle(n,t){if(1&n){const e=Re();x(0,"p-button",17),K("onClick",function(){return re(e),oe(w(2).upload())}),B()}if(2&n){const e=w(2);C("label",e.uploadButtonLabel)("icon",e.uploadIcon)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass",e.uploadStyleClass)}}function Dle(n,t){if(1&n){const e=Re();x(0,"p-button",17),K("onClick",function(){return re(e),oe(w(2).clear())}),B()}if(2&n){const e=w(2);C("label",e.cancelButtonLabel)("icon",e.cancelIcon)("disabled",!e.hasFiles()||e.uploading)("styleClass",e.cancelStyleClass)}}function Ile(n,t){1&n&&Mt(0)}function Sle(n,t){1&n&&ie(0,"p-progressBar",18),2&n&&C("value",w(2).progress)("showValue",!1)}function xle(n,t){if(1&n){const e=Re();x(0,"img",26),K("error",function(r){return re(e),oe(w(5).imageError(r))}),B()}if(2&n){const e=w().$implicit,i=w(4);C("src",e.objectURL,No)("width",i.previewWidth)}}function Tle(n,t){if(1&n){const e=Re();x(0,"div",22)(1,"div"),S(2,xle,1,2,"img",23),B(),x(3,"div",24),de(4),B(),x(5,"div"),de(6),B(),x(7,"div")(8,"button",25),K("click",function(r){const s=re(e).index;return oe(w(4).remove(r,s))}),B()()()}if(2&n){const e=t.$implicit,i=w(4);v(2),C("ngIf",i.isImage(e)),v(2),pt(e.name),v(2),pt(i.formatSize(e.size)),v(2),Gt(i.removeStyleClass),C("disabled",i.uploading)}}function Ble(n,t){if(1&n&&(x(0,"div"),S(1,Tle,9,6,"div",21),B()),2&n){const e=w(3);v(1),C("ngForOf",e.files)}}function Ole(n,t){}function kle(n,t){if(1&n&&(x(0,"div"),S(1,Ole,0,0,"ng-template",27),B()),2&n){const e=w(3);v(1),C("ngForOf",e.files)("ngForTemplate",e.fileTemplate)}}function Ple(n,t){if(1&n&&(x(0,"div",19),S(1,Ble,2,1,"div",20),S(2,kle,2,2,"div",20),B()),2&n){const e=w(2);v(1),C("ngIf",!e.fileTemplate),v(1),C("ngIf",e.fileTemplate)}}function Fle(n,t){1&n&&Mt(0)}const Rle=function(n,t){return{"p-focus":n,"p-disabled":t}},Nle=function(n){return{$implicit:n}};function Lle(n,t){if(1&n){const e=Re();x(0,"div",2)(1,"div",3)(2,"span",4),K("focus",function(){return re(e),oe(w().onFocus())})("blur",function(){return re(e),oe(w().onBlur())})("click",function(){return re(e),oe(w().choose())})("keydown.enter",function(){return re(e),oe(w().choose())}),x(3,"input",5,6),K("change",function(r){return re(e),oe(w().onFileSelect(r))}),B(),ie(5,"span",7),x(6,"span",8),de(7),B()(),S(8,wle,1,4,"p-button",9),S(9,Dle,1,4,"p-button",9),S(10,Ile,1,0,"ng-container",10),B(),x(11,"div",11,12),K("dragenter",function(r){return re(e),oe(w().onDragEnter(r))})("dragleave",function(r){return re(e),oe(w().onDragLeave(r))})("drop",function(r){return re(e),oe(w().onDrop(r))}),S(13,Sle,1,2,"p-progressBar",13),ie(14,"p-messages",14),S(15,Ple,3,2,"div",15),S(16,Fle,1,0,"ng-container",16),B()()}if(2&n){const e=w();Gt(e.styleClass),C("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),v(2),Gt(e.chooseStyleClass),C("ngClass",Xi(24,Rle,e.focus,e.disabled||e.isChooseDisabled())),v(1),C("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),Ot("title",""),v(2),Gt(e.chooseIcon),C("ngClass","p-button-icon p-button-icon-left"),v(2),pt(e.chooseButtonLabel),v(1),C("ngIf",!e.auto&&e.showUploadButton),v(1),C("ngIf",!e.auto&&e.showCancelButton),v(1),C("ngTemplateOutlet",e.toolbarTemplate),v(3),C("ngIf",e.hasFiles()),v(1),C("value",e.msgs)("enableService",!1),v(1),C("ngIf",e.hasFiles()),v(1),C("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Wt(27,Nle,e.files))}}function Qle(n,t){if(1&n){const e=Re();x(0,"input",32,33),K("change",function(r){return re(e),oe(w(2).onFileSelect(r))})("focus",function(){return re(e),oe(w(2).onFocus())})("blur",function(){return re(e),oe(w(2).onBlur())}),B()}if(2&n){const e=w(2);C("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled)}}const Ule=function(n,t,e,i){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":n,"p-fileupload-choose-selected":t,"p-focus":e,"p-disabled":i}};function jle(n,t){if(1&n){const e=Re();x(0,"div",28),ie(1,"p-messages",14),x(2,"span",29),K("mouseup",function(){return re(e),oe(w().onBasicUploaderClick())})("keydown",function(r){return re(e),oe(w().onBasicKeydown(r))}),ie(3,"span",30),x(4,"span",8),de(5),B(),S(6,Qle,2,3,"input",31),B()()}if(2&n){const e=w();v(1),C("value",e.msgs)("enableService",!1),v(1),Gt(e.styleClass),C("ngClass",Mf(9,Ule,!e.chooseLabel,e.hasFiles(),e.focus,e.disabled))("ngStyle",e.style),v(1),C("ngClass",e.hasFiles()&&!e.auto?e.uploadIcon:e.chooseIcon),v(2),pt(e.basicButtonLabel),v(1),C("ngIf",!e.hasFiles())}}let zle=(()=>{class n{constructor(e,i,r,o,s,a){this.el=e,this.sanitizer=i,this.zone=r,this.http=o,this.cd=s,this.config=a,this.method="post",this.invalidFileSizeMessageSummary="{0}: Invalid file size, ",this.invalidFileSizeMessageDetail="maximum upload size is {0}.",this.invalidFileTypeMessageSummary="{0}: Invalid file type, ",this.invalidFileTypeMessageDetail="allowed file types: {0}.",this.invalidFileLimitMessageDetail="limit is {0} at most.",this.invalidFileLimitMessageSummary="Maximum number of files exceeded, ",this.previewWidth=50,this.chooseIcon="pi pi-plus",this.uploadIcon="pi pi-upload",this.cancelIcon="pi pi-times",this.showUploadButton=!0,this.showCancelButton=!0,this.mode="advanced",this.onBeforeUpload=new te,this.onSend=new te,this.onUpload=new te,this.onError=new te,this.onClear=new te,this.onRemove=new te,this.onSelect=new te,this.onProgress=new te,this.uploadHandler=new te,this.onImageError=new te,this._files=[],this.progress=0,this.uploadedFileCount=0}set files(e){this._files=[];for(let i=0;i{switch(e.getType()){case"file":default:this.fileTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"toolbar":this.toolbarTemplate=e.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&this.content.nativeElement.addEventListener("dragover",this.onDragOver.bind(this))})}choose(){this.advancedFileInput.nativeElement.click()}onFileSelect(e){if("drop"!==e.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let i=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let r=0;rthis.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",e.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(e){let i=this.accept.split(",").map(r=>r.trim());for(let r of i)if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return-1!==e.indexOf("*")}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let i=0;i{switch(i.type){case jt.Sent:this.onSend.emit({originalEvent:i,formData:e});break;case jt.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case jt.UploadProgress:i.loaded&&(this.progress=Math.round(100*i.loaded/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress})}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(e,i){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit()}isFileLimitExceeded(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(Z.addClass(this.content.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||Z.removeClass(this.content.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){Z.removeClass(this.content.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let i=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||i&&1===i.length)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){if(0==e)return"0 B";let s=Math.floor(Math.log(e)/Math.log(1e3));return parseFloat((e/Math.pow(1e3,s)).toFixed(3))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][s]}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault()}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(Wd.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(Wd.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(Wd.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.content.nativeElement.removeEventListener("dragover",this.onDragOver),this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(hE),T(At),T(vc),T(li),T(Lg))},n.\u0275cmp=ve({type:n,selectors:[["p-fileUpload"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},viewQuery:function(e,i){if(1&e&&(Zt(Cle,5),Zt(vle,5),Zt(Mle,5)),2&e){let r;He(r=Ve())&&(i.advancedFileInput=r.first),He(r=Ve())&&(i.basicFileInput=r.first),He(r=Ve())&&(i.content=r.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass"],[1,"p-button-label"],["type","button",3,"label","icon","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"label","icon","disabled","styleClass","onClick"],[3,"value","showValue"],[1,"p-fileupload-files"],[4,"ngIf"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","icon","pi pi-times","pButton","",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","mouseup","keydown"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(e,i){1&e&&(S(0,Lle,17,29,"div",0),S(1,jle,7,14,"div",1)),2&e&&(C("ngIf","advanced"===i.mode),v(1),C("ngIf","basic"===i.mode))},dependencies:[zn,tr,Pt,Yo,nr,Fs,d$,Ele,mle,Jd],styles:[".p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}\n"],encapsulation:2,changeDetection:0}),n})(),AL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ko,xc,mL,gL,Ja,Ko,xc,mL,gL]}),n})();function Hle(n,t){if(1&n&&(ct(0),ie(1,"img",3),ut()),2&n){const e=w();v(1),C("src",e.src||e.file.objectURL,No)("alt",e.file.name)}}function Vle(n,t){if(1&n&&(ct(0),x(1,"video",4),ie(2,"source",5),B(),ut()),2&n){const e=w();v(2),C("src",e.src||e.file.objectURL,No)("type",e.file.type)}}function Gle(n,t){1&n&&(x(0,"p"),de(1,"Select an accepted asset type"),B())}let Yle=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-asset-preview"]],inputs:{type:"type",file:"file",src:"src"},decls:4,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[3,"src","alt"],["controls","","preload","metadata"],[3,"src","type"]],template:function(e,i){1&e&&(ct(0,0),S(1,Hle,2,2,"ng-container",1),S(2,Vle,3,2,"ng-container",1),S(3,Gle,2,0,"p",2),ut()),2&e&&(C("ngSwitch",i.type),v(1),C("ngSwitchCase","image"),v(1),C("ngSwitchCase","video"))},dependencies:[xd,Z_,eE],styles:["[_nghost-%COMP%]{height:100%;width:100%;display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] video[_ngcontent-%COMP%]{width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain}"],changeDetection:0}),n})();function Wle(n,t){if(1&n){const e=Re();x(0,"p-fileUpload",2),K("onSelect",function(r){return re(e),oe(w().onSelectFile(r.files))}),B()}2&n&&C("accept",w().type+"/*")("customUpload",!0)}function Jle(n,t){if(1&n&&ie(0,"dot-asset-preview",9),2&n){const e=w(2);C("type",e.type)("file",e.file)("src",e.src)}}function Kle(n,t){1&n&&ie(0,"dot-spinner")}function $le(n,t){if(1&n){const e=Re();x(0,"div",3),S(1,Jle,1,3,"dot-asset-preview",4),S(2,Kle,1,0,"ng-template",null,5,on),B(),x(4,"div",6)(5,"button",7),K("click",function(){return re(e),oe(w().removeFile())}),de(6," Cancel "),B(),x(7,"button",8),K("click",function(){return re(e),oe(w().uploadFile())}),de(8," Insert "),B()()}if(2&n){const e=Qt(3),i=w();v(1),C("ngIf","PREVIEW"===i.status)("ngIfElse",e),v(4),C("disabled","UPLOAD"===i.status),v(2),C("disabled","UPLOAD"===i.status)}}var sa=(()=>(function(n){n.SELECT="SELECT",n.PREVIEW="PREVIEW",n.UPLOAD="UPLOAD"}(sa||(sa={})),sa))();let qle=(()=>{class n{constructor(e,i,r){this.sanitizer=e,this.imageService=i,this.cd=r,this.uploadedFile=new te,this.status=sa.SELECT}onSelectFile(e){const i=e[0],r=new FileReader;r.onload=o=>this.setFile(i,o.target.result),r.readAsDataURL(i)}removeFile(){this.file=null,this.status=sa.SELECT}uploadFile(){this.status=sa.UPLOAD,this.imageService.publishContent({data:this.file}).subscribe(e=>{const i=e[0];this.uploadedFile.emit(i[Object.keys(i)[0]]),this.status=sa.SELECT})}setFile(e,i){this.file=e,this.src=i,this.status=sa.PREVIEW,this.cd.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(T(hE),T(xh),T(li))},n.\u0275cmp=ve({type:n,selectors:[["dot-upload-asset"]],inputs:{type:"type"},outputs:{uploadedFile:"uploadedFile"},decls:3,vars:2,consts:[["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect",4,"ngIf","ngIfElse"],["preview",""],["chooseLabel","browse files","mode","basic",3,"accept","customUpload","onSelect"],[1,"preview-container"],[3,"type","file","src",4,"ngIf","ngIfElse"],["loading",""],[1,"btn-container"],["data-test-id","back-btn","pButton","",1,"p-button-outlined",3,"disabled","click"],["data-test-id","upload-btn","pButton","",3,"disabled","click"],[3,"type","file","src"]],template:function(e,i){if(1&e&&(S(0,Wle,1,2,"p-fileUpload",0),S(1,$le,9,4,"ng-template",null,1,on)),2&e){const r=Qt(2);C("ngIf","SELECT"===i.status)("ngIfElse",r)}},dependencies:[Pt,tle,Fs,zle,Yle],styles:["[_nghost-%COMP%]{height:100%;width:100%;padding:1rem;gap:1rem;display:flex;justify-content:center;align-items:center;flex-direction:column}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%]{align-items:center;display:flex;flex-grow:1;justify-content:center;overflow:hidden;width:100%}[_nghost-%COMP%] .preview-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:contain}[_nghost-%COMP%] .btn-container[_ngcontent-%COMP%]{display:flex;gap:1rem;height:-moz-fit-content;height:fit-content;justify-content:end;width:100%}"],changeDetection:0}),n})();const Zm=(()=>{function n(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return n.prototype=Object.create(Error.prototype),n})();function OM(...n){return function Xle(){return hs(1)}()(ae(...n))}function bL(n){return new et(t=>{let e;try{e=n()}catch(r){return void t.error(r)}return(e?Lt(e):tg()).subscribe(t)})}function eA(n=null){return t=>t.lift(new ece(n))}class ece{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new tce(t,this.defaultValue))}}class tce extends Ge{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function yL(n=rce){return t=>t.lift(new nce(n))}class nce{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new ice(t,this.errorFactory))}}class ice extends Ge{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}}function rce(){return new Zm}function aa(n,t){const e=arguments.length>=2;return i=>i.pipe(n?ir((r,o)=>n(r,o,i)):Sl,$n(1),e?eA(t):yL(()=>new Zm))}function _L(n,t){let e=!1;return arguments.length>=2&&(e=!0),function(r){return r.lift(new oce(n,t,e))}}class oce{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new sce(t,this.accumulator,this.seed,this.hasSeed))}}class sce extends Ge{constructor(t,e,i,r){super(t),this.accumulator=e,this._seed=i,this.hasSeed=r,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(r){this.destination.error(r)}this.seed=i,this.destination.next(i)}}function kM(n){return function(e){return 0===n?tg():e.lift(new ace(n))}}class ace{constructor(t){if(this.total=t,this.total<0)throw new eF}call(t,e){return e.subscribe(new lce(t,this.total))}}class lce extends Ge{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,r=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,r=this.ring;for(let o=0;o=2;return i=>i.pipe(n?ir((r,o)=>n(r,o,i)):Sl,kM(1),e?eA(t):yL(()=>new Zm))}class uce{constructor(t,e){this.predicate=t,this.inclusive=e}call(t,e){return e.subscribe(new dce(t,this.predicate,this.inclusive))}}class dce extends Ge{constructor(t,e,i){super(t),this.predicate=e,this.inclusive=i,this.index=0}_next(t){const e=this.destination;let i;try{i=this.predicate(t,this.index++)}catch(r){return void e.error(r)}this.nextOrComplete(t,i)}nextOrComplete(t,e){const i=this.destination;Boolean(e)?i.next(t):(this.inclusive&&i.next(t),i.complete())}}class pce{constructor(t){this.value=t}call(t,e){return e.subscribe(new fce(t,this.value))}}class fce extends Ge{constructor(t,e){super(t),this.value=e}_next(t){this.destination.next(this.value)}}function PM(n){return t=>t.lift(new gce(n))}class gce{constructor(t){this.callback=t}call(t,e){return e.subscribe(new mce(t,this.callback))}}class mce extends Ge{constructor(t,e){super(t),this.add(new We(e))}}const Ne="primary",kh=Symbol("RouteTitle");class Ace{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function iu(n){return new Ace(n)}function bce(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.lengthi[o]===r)}return n===t}function vL(n){return Array.prototype.concat.apply([],n)}function ML(n){return n.length>0?n[n.length-1]:null}function On(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function la(n){return r_(n)?n:gd(n)?Lt(Promise.resolve(n)):ae(n)}const Ece={exact:function IL(n,t,e){if(!Al(n.segments,t.segments)||!tA(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!IL(n.children[i],t.children[i],e))return!1;return!0},subset:SL},wL={exact:function Cce(n,t){return _o(n,t)},subset:function vce(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>CL(n[e],t[e]))},ignored:()=>!0};function DL(n,t,e){return Ece[e.paths](n.root,t.root,e.matrixParams)&&wL[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function SL(n,t,e){return xL(n,t,t.segments,e)}function xL(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!Al(r,e)||t.hasChildren()||!tA(r,e,i))}if(n.segments.length===e.length){if(!Al(n.segments,e)||!tA(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!SL(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),o=e.slice(n.segments.length);return!!(Al(n.segments,r)&&tA(n.segments,r,i)&&n.children[Ne])&&xL(n.children[Ne],t,o,i)}}function tA(n,t,e){return t.every((i,r)=>wL[e](n[r].parameters,i.parameters))}class ml{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=iu(this.queryParams)),this._queryParamMap}toString(){return Dce.serialize(this)}}class Ue{constructor(t,e){this.segments=t,this.children=e,this.parent=null,On(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return nA(this)}}class Ph{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=iu(this.parameters)),this._parameterMap}toString(){return kL(this)}}function Al(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let TL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return new RM},providedIn:"root"}),n})();class RM{parse(t){const e=new Fce(t);return new ml(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Fh(t.root,!0)}`,i=function xce(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${iA(e)}=${iA(r)}`).join("&"):`${iA(e)}=${iA(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams),r="string"==typeof t.fragment?`#${function Ice(n){return encodeURI(n)}(t.fragment)}`:"";return`${e}${i}${r}`}}const Dce=new RM;function nA(n){return n.segments.map(t=>kL(t)).join("/")}function Fh(n,t){if(!n.hasChildren())return nA(n);if(t){const e=n.children[Ne]?Fh(n.children[Ne],!1):"",i=[];return On(n.children,(r,o)=>{o!==Ne&&i.push(`${o}:${Fh(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function wce(n,t){let e=[];return On(n.children,(i,r)=>{r===Ne&&(e=e.concat(t(i,r)))}),On(n.children,(i,r)=>{r!==Ne&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Ne?[Fh(n.children[Ne],!1)]:[`${r}:${Fh(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ne]?`${nA(n)}/${e[0]}`:`${nA(n)}/(${e.join("//")})`}}function BL(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function iA(n){return BL(n).replace(/%3B/gi,";")}function NM(n){return BL(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function rA(n){return decodeURIComponent(n)}function OL(n){return rA(n.replace(/\+/g,"%20"))}function kL(n){return`${NM(n.path)}${function Sce(n){return Object.keys(n).map(t=>`;${NM(t)}=${NM(n[t])}`).join("")}(n.parameters)}`}const Tce=/^[^\/()?;=#]+/;function oA(n){const t=n.match(Tce);return t?t[0]:""}const Bce=/^[^=?&#]+/,kce=/^[^&#]+/;class Fce{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ue([],{}):new Ue([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Ne]=new Ue(t,e)),i}parseSegment(){const t=oA(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new P(4009,!1);return this.capture(t),new Ph(rA(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=oA(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=oA(this.remaining);r&&(i=r,this.capture(i))}t[rA(e)]=rA(i)}parseQueryParam(t){const e=function Oce(n){const t=n.match(Bce);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const s=function Pce(n){const t=n.match(kce);return t?t[0]:""}(this.remaining);s&&(i=s,this.capture(i))}const r=OL(e),o=OL(i);if(t.hasOwnProperty(r)){let s=t[r];Array.isArray(s)||(s=[s],t[r]=s),s.push(o)}else t[r]=o}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=oA(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new P(4010,!1);let o;i.indexOf(":")>-1?(o=i.slice(0,i.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ne);const s=this.parseChildren();e[o]=1===Object.keys(s).length?s[Ne]:new Ue([],s),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new P(4011,!1)}}function LM(n){return n.segments.length>0?new Ue([],{[Ne]:n}):n}function sA(n){const t={};for(const i of Object.keys(n.children)){const o=sA(n.children[i]);(o.segments.length>0||o.hasChildren())&&(t[i]=o)}return function Rce(n){if(1===n.numberOfChildren&&n.children[Ne]){const t=n.children[Ne];return new Ue(n.segments.concat(t.segments),t.children)}return n}(new Ue(n.segments,t))}function bl(n){return n instanceof ml}function Qce(n,t,e,i,r){if(0===e.length)return ru(t.root,t.root,t.root,i,r);const o=function RL(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new FL(!0,0,n);let t=0,e=!1;const i=n.reduce((r,o,s)=>{if("object"==typeof o&&null!=o){if(o.outlets){const a={};return On(o.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(o.segmentPath)return[...r,o.segmentPath]}return"string"!=typeof o?[...r,o]:0===s?(o.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,o]},[]);return new FL(e,t,i)}(e);return o.toRoot()?ru(t.root,t.root,new Ue([],{}),i,r):function s(l){const c=function jce(n,t,e,i){if(n.isAbsolute)return new ou(t.root,!0,0);if(-1===i)return new ou(e,e===t.root,0);return function NL(n,t,e){let i=n,r=t,o=e;for(;o>r;){if(o-=r,i=i.parent,!i)throw new P(4005,!1);r=i.segments.length}return new ou(i,!1,r-o)}(e,i+(Rh(n.commands[0])?0:1),n.numberOfDoubleDots)}(o,t,n.snapshot?._urlSegment,l),u=c.processChildren?Lh(c.segmentGroup,c.index,o.commands):UM(c.segmentGroup,c.index,o.commands);return ru(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Rh(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Nh(n){return"object"==typeof n&&null!=n&&n.outlets}function ru(n,t,e,i,r){let s,o={};i&&On(i,(l,c)=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=n===t?e:PL(n,t,e);const a=LM(sA(s));return new ml(a,o,r)}function PL(n,t,e){const i={};return On(n.children,(r,o)=>{i[o]=r===t?e:PL(r,t,e)}),new Ue(n.segments,i)}class FL{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Rh(i[0]))throw new P(4003,!1);const r=i.find(Nh);if(r&&r!==ML(i))throw new P(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ou{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function UM(n,t,e){if(n||(n=new Ue([],{})),0===n.segments.length&&n.hasChildren())return Lh(n,t,e);const i=function Hce(n,t,e){let i=0,r=t;const o={match:!1,pathIndex:0,commandIndex:0};for(;r=e.length)return o;const s=n.segments[r],a=e[i];if(Nh(a))break;const l=`${a}`,c=i0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!QL(l,c,s))return o;i+=2}else{if(!QL(l,{},s))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex{"string"==typeof o&&(o=[o]),null!==o&&(r[s]=UM(n.children[s],t,o))}),On(n.children,(o,s)=>{void 0===i[s]&&(r[s]=o)}),new Ue(n.segments,r)}}function jM(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=jM(new Ue([],{}),0,e))}),t}function LL(n){const t={};return On(n,(e,i)=>t[i]=`${e}`),t}function QL(n,t,e){return n==e.path&&_o(t,e.parameters)}class is{constructor(t,e){this.id=t,this.url=e}}class zM extends is{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class yl extends is{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class aA extends is{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class UL extends is{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gce extends is{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yce extends is{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Wce extends is{constructor(t,e,i,r,o){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=o,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Jce extends is{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Kce extends is{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $ce{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class qce{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Xce{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Zce{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eue{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tue{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class jL{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class zL{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=HM(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=HM(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=VM(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return VM(t,this._root).map(e=>e.value)}}function HM(n,t){if(n===t.value)return t;for(const e of t.children){const i=HM(n,e);if(i)return i}return null}function VM(n,t){if(n===t.value)return[t];for(const e of t.children){const i=VM(n,e);if(i.length)return i.unshift(t),i}return[]}class rs{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function su(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class HL extends zL{constructor(t,e){super(t),this.snapshot=e,GM(this,t)}toString(){return this.snapshot.toString()}}function VL(n,t){const e=function iue(n,t){const s=new lA([],{},{},"",{},Ne,t,null,n.root,-1,{});return new YL("",new rs(s,[]))}(n,t),i=new mr([new Ph("",{})]),r=new mr({}),o=new mr({}),s=new mr({}),a=new mr(""),l=new _l(i,r,s,a,o,Ne,t,e.root);return l.snapshot=e.root,new HL(new rs(l,[]),e)}class _l{constructor(t,e,i,r,o,s,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.pipe(fe(c=>c[kh]))??ae(void 0),this._futureSnapshot=l}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(fe(t=>iu(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(fe(t=>iu(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function GL(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],o=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return function rue(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class lA{constructor(t,e,i,r,o,s,a,l,c,u,d,h){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=s,this.component=a,this.title=this.data?.[kh],this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._correctedLastPathIndex=h??u,this._resolve=d}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=iu(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=iu(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class YL extends zL{constructor(t,e){super(e),this.url=t,GM(this,e)}toString(){return WL(this._root)}}function GM(n,t){t.value._routerState=n,t.children.forEach(e=>GM(n,e))}function WL(n){const t=n.children.length>0?` { ${n.children.map(WL).join(", ")} } `:"";return`${n.value}${t}`}function YM(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,_o(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),_o(t.params,e.params)||n.params.next(e.params),function yce(n,t){if(n.length!==t.length)return!1;for(let e=0;e_o(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||WM(n.parent,t.parent))}function Qh(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function sue(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Qh(n,i,r);return Qh(n,i)})}(n,t,e);return new rs(i,r)}{if(n.shouldAttach(t.value)){const o=n.retrieve(t.value);if(null!==o){const s=o.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>Qh(n,a)),s}}const i=function aue(n){return new _l(new mr(n.url),new mr(n.params),new mr(n.queryParams),new mr(n.fragment),new mr(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(o=>Qh(n,o));return new rs(i,r)}}const JM="ngNavigationCancelingError";function JL(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=bl(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=KL(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function KL(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[JM]=!0,i.cancellationCode=t,e&&(i.url=e),i}function $L(n){return qL(n)&&bl(n.url)}function qL(n){return n&&n[JM]}class lue{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Uh,this.attachRef=null}}let Uh=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new lue,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const cA=!1;let XL=(()=>{class n{constructor(e,i,r,o,s){this.parentContexts=e,this.location=i,this.changeDetector=o,this.environmentInjector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new te,this.deactivateEvents=new te,this.attachEvents=new te,this.detachEvents=new te,this.name=r||Ne,e.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new P(4012,cA);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new P(4012,cA);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new P(4012,cA);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new P(4013,cA);this._activatedRoute=e;const r=this.location,s=e._futureSnapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new cue(e,a,r.injector);if(i&&function uue(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(s);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(s,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)(T(Uh),T(Ni),function Yu(n){return function Z2(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["ng-component"]],standalone:!0,features:[ux],decls:1,vars:0,template:function(e,i){1&e&&ie(0,"router-outlet")},dependencies:[XL],encapsulation:2}),n})();function ZL(n,t){return n.providers&&!n._injector&&(n._injector=vf(n.providers,t,`Route: ${n.path}`)),n._injector??t}function qM(n){const t=n.children&&n.children.map(qM),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Ne&&(e.component=KM),e}function Ar(n){return n.outlet||Ne}function eQ(n,t){const e=n.filter(i=>Ar(i)===t);return e.push(...n.filter(i=>Ar(i)!==t)),e}function jh(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class gue{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),YM(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=su(e);t.children.forEach(o=>{const s=o.value.outlet;this.deactivateRoutes(o,r[s],i),delete r[s]}),On(r,(o,s)=>{this.deactivateRouteAndItsChildren(o,i)})}deactivateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(r===o)if(r.component){const s=i.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,i);else o&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=su(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);if(i&&i.outlet){const s=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,o=su(t);for(const s of Object.keys(o))this.deactivateRouteAndItsChildren(o[s],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=su(e);t.children.forEach(o=>{this.activateRoutes(o,r[o.value.outlet],i),this.forwardEvent(new tue(o.value.snapshot))}),t.children.length&&this.forwardEvent(new Zce(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,o=e?e.value:null;if(YM(r),r===o)if(r.component){const s=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const s=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),YM(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=jh(r.snapshot),l=a?.get(Es)??null;s.attachRef=null,s.route=r,s.resolver=l,s.injector=a,s.outlet&&s.outlet.activateWith(r,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,i)}}class tQ{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class uA{constructor(t,e){this.component=t,this.route=e}}function mue(n,t,e){const i=n._root;return zh(i,t?t._root:null,e,[i.value])}function au(n,t){const e=Symbol(),i=t.get(n,e);return i===e?"function"!=typeof n||function fb(n){return null!==Pl(n)}(n)?t.get(n):n:i}function zh(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=su(t);return n.children.forEach(s=>{(function bue(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=n.value,s=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){const l=function yue(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!Al(n.url,t.url);case"pathParamsOrQueryParamsChange":return!Al(n.url,t.url)||!_o(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!WM(n,t)||!_o(n.queryParams,t.queryParams);default:return!WM(n,t)}}(s,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new tQ(i)):(o.data=s.data,o._resolvedData=s._resolvedData),zh(n,t,o.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new uA(a.outlet.component,s))}else s&&Hh(t,a,r),r.canActivateChecks.push(new tQ(i)),zh(n,null,o.component?a?a.children:null:e,i,r)})(s,o[s.value.outlet],e,i.concat([s.value]),r),delete o[s.value.outlet]}),On(o,(s,a)=>Hh(s,e.getContext(a),r)),r}function Hh(n,t,e){const i=su(n),r=n.value;On(i,(o,s)=>{Hh(o,r.component?t?t.children.getContext(s):null:t,e)}),e.canDeactivateChecks.push(new uA(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function Vh(n){return"function"==typeof n}function XM(n){return n instanceof Zm||"EmptyError"===n?.name}const dA=Symbol("INITIAL_VALUE");function lu(){return Li(n=>IM(n.map(t=>t.pipe($n(1),function Zle(...n){const t=n[n.length-1];return ds(t)?(n.pop(),e=>OM(n,e,t)):e=>OM(n,e)}(dA)))).pipe(fe(t=>{for(const e of t)if(!0!==e){if(e===dA)return dA;if(!1===e||e instanceof ml)return e}return!0}),ir(t=>t!==dA),$n(1)))}function nQ(n){return function lp(...n){return ba(n)}(yn(t=>{if(bl(t))throw JL(0,t)}),fe(t=>!0===t))}const ZM={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function iQ(n,t,e,i,r){const o=ew(n,t,e);return o.matched?function Rue(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?ae(r.map(s=>{const a=au(s,n);return la(function wue(n){return n&&Vh(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(lu(),nQ()):ae(!0)}(i=ZL(t,i),t,e).pipe(fe(s=>!0===s?o:{...ZM})):ae(o)}function ew(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...ZM}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||bce)(e,n,t);if(!r)return{...ZM};const o={};On(r.posParams,(a,l)=>{o[l]=a.path});const s=r.consumed.length>0?{...o,...r.consumed[r.consumed.length-1].parameters}:o;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:s,positionalParamSegments:r.posParams??{}}}function hA(n,t,e,i,r="corrected"){if(e.length>0&&function Que(n,t,e){return e.some(i=>pA(n,t,i)&&Ar(i)!==Ne)}(n,e,i)){const s=new Ue(t,function Lue(n,t,e,i){const r={};r[Ne]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const o of e)if(""===o.path&&Ar(o)!==Ne){const s=new Ue([],{});s._sourceSegment=n,s._segmentIndexShift=t.length,r[Ar(o)]=s}return r}(n,t,i,new Ue(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function Uue(n,t,e){return e.some(i=>pA(n,t,i))}(n,e,i)){const s=new Ue(n.segments,function Nue(n,t,e,i,r,o){const s={};for(const a of i)if(pA(n,e,a)&&!r[Ar(a)]){const l=new Ue([],{});l._sourceSegment=n,l._segmentIndexShift="legacy"===o?n.segments.length:t.length,s[Ar(a)]=l}return{...r,...s}}(n,t,e,i,n.children,r));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const o=new Ue(n.segments,n.children);return o._sourceSegment=n,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:e}}function pA(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function rQ(n,t,e,i){return!!(Ar(n)===i||i!==Ne&&pA(t,e,n))&&("**"===n.path||ew(t,n,e).matched)}function oQ(n,t,e){return 0===t.length&&!n.children[e]}const fA=!1;class gA{constructor(t){this.segmentGroup=t||null}}class sQ{constructor(t){this.urlTree=t}}function Gh(n){return Ss(new gA(n))}function aQ(n){return Ss(new sQ(n))}class Vue{constructor(t,e,i,r,o){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0}apply(){const t=hA(this.urlTree.root,[],[],this.config).segmentGroup,e=new Ue(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Ne).pipe(fe(o=>this.createUrlTree(sA(o),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ra(o=>{if(o instanceof sQ)return this.allowRedirects=!1,this.match(o.urlTree);throw o instanceof gA?this.noMatchError(o):o}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Ne).pipe(fe(r=>this.createUrlTree(sA(r),t.queryParams,t.fragment))).pipe(ra(r=>{throw r instanceof gA?this.noMatchError(r):r}))}noMatchError(t){return new P(4002,fA)}createUrlTree(t,e,i){const r=LM(t);return new ml(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(fe(o=>new Ue([],o))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const o of Object.keys(i.children))"primary"===o?r.unshift(o):r.push(o);return Lt(r).pipe(Wo(o=>{const s=i.children[o],a=eQ(e,o);return this.expandSegmentGroup(t,a,s,o).pipe(fe(l=>({segment:l,outlet:o})))}),_L((o,s)=>(o[s.outlet]=s.segment,o),{}),EL())}expandSegment(t,e,i,r,o,s){return Lt(i).pipe(Wo(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,o,s).pipe(ra(c=>{if(c instanceof gA)return ae(null);throw c}))),aa(a=>!!a),ra((a,l)=>{if(XM(a))return oQ(e,r,o)?ae(new Ue([],{})):Gh(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,o,s,a){return rQ(r,e,o,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s):Gh(e):Gh(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const o=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?aQ(o):this.lineralizeSegments(i,o).pipe(nn(s=>{const a=new Ue(s,{});return this.expandSegment(t,a,e,s,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,o,s){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=ew(e,r,o);if(!a)return Gh(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?aQ(d):this.lineralizeSegments(r,d).pipe(nn(h=>this.expandSegment(t,e,i,h.concat(c),s,!1)))}matchSegmentAgainstRoute(t,e,i,r,o){return"**"===i.path?(t=ZL(i,t),i.loadChildren?(i._loadedRoutes?ae({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(fe(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Ue(r,{})))):ae(new Ue(r,{}))):iQ(e,i,r,t).pipe(Li(({matched:s,consumedSegments:a,remainingSegments:l})=>s?this.getChildConfig(t=i._injector??t,i,r).pipe(nn(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:p,slicedSegments:f}=hA(e,a,l,h),g=new Ue(p.segments,p.children);if(0===f.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe(fe(E=>new Ue(a,E)));if(0===h.length&&0===f.length)return ae(new Ue(a,{}));const m=Ar(i)===o;return this.expandSegment(d,g,h,f,m?Ne:o,!0).pipe(fe(y=>new Ue(a.concat(y.segments),y.children)))})):Gh(e)))}getChildConfig(t,e,i){return e.children?ae({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?ae({routes:e._loadedRoutes,injector:e._loadedInjector}):function Fue(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?ae(!0):ae(r.map(s=>{const a=au(s,n);return la(function Eue(n){return n&&Vh(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(lu(),nQ())}(t,e,i).pipe(nn(r=>r?this.configLoader.loadChildren(t,e).pipe(yn(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):function zue(n){return Ss(KL(fA,3))}())):ae({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return ae(i);if(r.numberOfChildren>1||!r.children[Ne])return Ss(new P(4e3,fA));r=r.children[Ne]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const o=this.createSegmentGroup(t,e.root,i,r);return new ml(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return On(t,(r,o)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[o]=e[a]}else i[o]=r}),i}createSegmentGroup(t,e,i,r){const o=this.createSegments(t,e.segments,i,r);let s={};return On(e.children,(a,l)=>{s[l]=this.createSegmentGroup(t,a,i,r)}),new Ue(o,s)}createSegments(t,e,i,r){return e.map(o=>o.path.startsWith(":")?this.findPosParam(t,o,r):this.findOrReturn(o,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new P(4001,fA);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class Yue{}class Kue{constructor(t,e,i,r,o,s,a,l){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=a,this.urlSerializer=l}recognize(){const t=hA(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ne).pipe(fe(e=>{if(null===e)return null;const i=new lA([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ne,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new rs(i,e),o=new YL(this.url,r);return this.inheritParamsAndData(o._root),o}))}inheritParamsAndData(t){const e=t.value,i=GL(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Lt(Object.keys(i.children)).pipe(Wo(r=>{const o=i.children[r],s=eQ(e,r);return this.processSegmentGroup(t,s,o,r)}),_L((r,o)=>r&&o?(r.push(...o),r):null),function cce(n,t=!1){return e=>e.lift(new uce(n,t))}(r=>null!==r),eA(null),EL(),fe(r=>{if(null===r)return null;const o=lQ(r);return function $ue(n){n.sort((t,e)=>t.value.outlet===Ne?-1:e.value.outlet===Ne?1:t.value.outlet.localeCompare(e.value.outlet))}(o),o}))}processSegment(t,e,i,r,o){return Lt(e).pipe(Wo(s=>this.processSegmentAgainstRoute(s._injector??t,s,i,r,o)),aa(s=>!!s),ra(s=>{if(XM(s))return oQ(i,r,o)?ae([]):ae(null);throw s}))}processSegmentAgainstRoute(t,e,i,r,o){if(e.redirectTo||!rQ(e,i,r,o))return ae(null);let s;if("**"===e.path){const a=r.length>0?ML(r).parameters:{},l=uQ(i)+r.length;s=ae({snapshot:new lA(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,hQ(e),Ar(e),e.component??e._loadedComponent??null,e,cQ(i),l,pQ(e),l),consumedSegments:[],remainingSegments:[]})}else s=iQ(i,e,r,t).pipe(fe(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=uQ(i)+l.length;return{snapshot:new lA(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,hQ(e),Ar(e),e.component??e._loadedComponent??null,e,cQ(i),d,pQ(e),d),consumedSegments:l,remainingSegments:c}}));return s.pipe(Li(a=>{if(null===a)return ae(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function que(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:p,slicedSegments:f}=hA(i,c,u,h.filter(m=>void 0===m.redirectTo),this.relativeLinkResolution);if(0===f.length&&p.hasChildren())return this.processChildren(d,h,p).pipe(fe(m=>null===m?null:[new rs(l,m)]));if(0===h.length&&0===f.length)return ae([new rs(l,[])]);const g=Ar(e)===o;return this.processSegment(d,h,p,f,g?Ne:o).pipe(fe(m=>null===m?null:[new rs(l,m)]))}))}}function Xue(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function lQ(n){const t=[],e=new Set;for(const i of n){if(!Xue(i)){t.push(i);continue}const r=t.find(o=>i.value.routeConfig===o.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=lQ(i.children);t.push(new rs(i.value,r))}return t.filter(i=>!e.has(i))}function cQ(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function uQ(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function hQ(n){return n.data||{}}function pQ(n){return n.resolve||{}}function fQ(n){return"string"==typeof n.title||null===n.title}function tw(n){return Li(t=>{const e=n(t);return e?Lt(e).pipe(fe(()=>t)):ae(t)})}let gQ=(()=>{class n{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(o=>o.outlet===Ne);return i}getResolvedTitleForRoute(e){return e.data[kh]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Y({token:n,factory:function(){return Xt(mQ)},providedIn:"root"}),n})(),mQ=(()=>{class n extends gQ{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(j(b1))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class sde{}class lde extends class ade{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}const AA=new $("",{providedIn:"root",factory:()=>({})}),nw=new $("ROUTES");let iw=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ae(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=la(e.loadComponent()).pipe(yn(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),PM(()=>{this.componentLoaders.delete(e)})),r=new Bl(i,()=>new Me).pipe(Ma());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ae({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const o=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(fe(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=vL(l.get(nw,[],pe.Self|pe.Optional)));return{routes:c.map(qM),injector:l}}),PM(()=>{this.childrenLoaders.delete(i)})),s=new Bl(o,()=>new Me).pipe(Ma());return this.childrenLoaders.set(i,s),s}loadModuleFactoryOrRoutes(e){return la(e()).pipe(nn(i=>i instanceof lx||Array.isArray(i)?ae(i):Lt(this.compiler.compileModuleAsync(i))))}}return n.\u0275fac=function(e){return new(e||n)(j(Tn),j(I_))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class ude{}class dde{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function hde(n){throw n}function pde(n,t,e){return t.parse("/")}const fde={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gde={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function bQ(){const n=Xt(TL),t=Xt(Uh),e=Xt(z_),i=Xt(Tn),r=Xt(I_),o=Xt(nw,{optional:!0})??[],s=Xt(AA,{optional:!0})??{},a=Xt(mQ),l=Xt(gQ,{optional:!0}),c=Xt(ude,{optional:!0}),u=Xt(sde,{optional:!0}),d=new kn(null,n,t,e,i,r,vL(o));return c&&(d.urlHandlingStrategy=c),u&&(d.routeReuseStrategy=u),d.titleStrategy=l??a,function mde(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.relativeLinkResolution&&(t.relativeLinkResolution=n.relativeLinkResolution),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(s,d),d}let kn=(()=>{class n{constructor(e,i,r,o,s,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=o,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Me,this.errorHandler=hde,this.malformedUriErrorHandler=pde,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>ae(void 0),this.urlHandlingStrategy=new dde,this.routeReuseStrategy=new lde,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=s.get(iw),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new qce(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new $ce(h)),this.ngModule=s.get(Ra),this.console=s.get(OG);const d=s.get(At);this.isNgZoneEnabled=d instanceof At&&At.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=function _ce(){return new ml(new Ue([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=VL(this.currentUrlTree,this.rootComponentType),this.transitions=new mr({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(e){const i=this.events;return e.pipe(ir(r=>0!==r.id),fe(r=>({...r,extractedUrl:this.urlHandlingStrategy.extract(r.rawUrl)})),Li(r=>{let o=!1,s=!1;return ae(r).pipe(yn(a=>{this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Li(a=>{const l=this.browserUrlTree.toString(),c=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return yQ(a.source)&&(this.browserUrlTree=a.extractedUrl),ae(a).pipe(Li(d=>{const h=this.transitions.getValue();return i.next(new zM(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),h!==this.transitions.getValue()?Mc:Promise.resolve(d)}),function Gue(n,t,e,i){return Li(r=>function Hue(n,t,e,i,r){return new Vue(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(fe(o=>({...r,urlAfterRedirects:o}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),yn(d=>{this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects},r.urlAfterRedirects=d.urlAfterRedirects}),function ede(n,t,e,i,r,o){return nn(s=>function Jue(n,t,e,i,r,o,s="emptyOnly",a="legacy"){return new Kue(n,t,e,i,r,s,a,o).recognize().pipe(Li(l=>null===l?function Wue(n){return new et(t=>t.error(n))}(new Yue):ae(l)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r,o).pipe(fe(a=>({...s,targetSnapshot:a}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),yn(d=>{if(r.targetSnapshot=d.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const p=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(p,d)}this.browserUrlTree=d.urlAfterRedirects}const h=new Gce(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);i.next(h)}));if(c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:h,extractedUrl:p,source:f,restoredState:g,extras:m}=a,A=new zM(h,this.serializeUrl(p),f,g);i.next(A);const y=VL(p,this.rootComponentType).snapshot;return ae(r={...a,targetSnapshot:y,urlAfterRedirects:p,extras:{...m,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=a.rawUrl,a.resolve(null),Mc}),yn(a=>{const l=new Yce(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),fe(a=>r={...a,guards:mue(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),function Iue(n,t){return nn(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return 0===s.length&&0===o.length?ae({...e,guardsResult:!0}):function Sue(n,t,e,i){return Lt(n).pipe(nn(r=>function Pue(n,t,e,i,r){const o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return o&&0!==o.length?ae(o.map(a=>{const l=jh(t)??r,c=au(a,l);return la(function Mue(n){return n&&Vh(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):l.runInContext(()=>c(n,t,e,i))).pipe(aa())})).pipe(lu()):ae(!0)}(r.component,r.route,e,t,i)),aa(r=>!0!==r,!0))}(s,i,r,n).pipe(nn(a=>a&&function _ue(n){return"boolean"==typeof n}(a)?function xue(n,t,e,i){return Lt(t).pipe(Wo(r=>OM(function Bue(n,t){return null!==n&&t&&t(new Xce(n)),ae(!0)}(r.route.parent,i),function Tue(n,t){return null!==n&&t&&t(new eue(n)),ae(!0)}(r.route,i),function kue(n,t,e){const i=t[t.length-1],o=t.slice(0,t.length-1).reverse().map(s=>function Aue(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(s)).filter(s=>null!==s).map(s=>bL(()=>ae(s.guards.map(l=>{const c=jh(s.node)??e,u=au(l,c);return la(function vue(n){return n&&Vh(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(aa())})).pipe(lu())));return ae(o).pipe(lu())}(n,r.path,e),function Oue(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return ae(!0);const r=i.map(o=>bL(()=>{const s=jh(t)??e,a=au(o,s);return la(function Cue(n){return n&&Vh(n.canActivate)}(a)?a.canActivate(t,n):s.runInContext(()=>a(t,n))).pipe(aa())}));return ae(r).pipe(lu())}(n,r.route,e))),aa(r=>!0!==r,!0))}(i,o,n,t):ae(a)),fe(a=>({...e,guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),yn(a=>{if(r.guardsResult=a.guardsResult,bl(a.guardsResult))throw JL(0,a.guardsResult);const l=new Wce(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),ir(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,"",3),!1)),tw(a=>{if(a.guards.canActivateChecks.length)return ae(a).pipe(yn(l=>{const c=new Jce(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}),Li(l=>{let c=!1;return ae(l).pipe(function tde(n,t){return nn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return ae(e);let o=0;return Lt(r).pipe(Wo(s=>function nde(n,t,e,i){const r=n.routeConfig,o=n._resolve;return void 0!==r?.title&&!fQ(r)&&(o[kh]=r.title),function ide(n,t,e,i){const r=function rde(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return ae({});const o={};return Lt(r).pipe(nn(s=>function ode(n,t,e,i){const r=jh(t)??i,o=au(n,r);return la(o.resolve?o.resolve(t,e):r.runInContext(()=>o(t,e)))}(n[s],t,e,i).pipe(aa(),yn(a=>{o[s]=a}))),kM(1),function hce(n){return t=>t.lift(new pce(n))}(o),ra(s=>XM(s)?Mc:Ss(s)))}(o,n,t,i).pipe(fe(s=>(n._resolvedData=s,n.data=GL(n,e).resolve,r&&fQ(r)&&(n.data[kh]=r.title),null)))}(s.route,i,n,t)),yn(()=>o++),kM(1),nn(s=>o===r.length?ae(e):Mc))})}(this.paramsInheritanceStrategy,this.ngModule.injector),yn({next:()=>c=!0,complete:()=>{c||(this.restoreHistory(l),this.cancelNavigationTransition(l,"",2))}}))}),yn(l=>{const c=new Kce(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(c)}))}),tw(a=>{const l=c=>{const u=[];c.routeConfig?.loadComponent&&!c.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(c.routeConfig).pipe(yn(d=>{c.component=d}),fe(()=>{})));for(const d of c.children)u.push(...l(d));return u};return IM(l(a.targetSnapshot.root)).pipe(eA(),$n(1))}),tw(()=>this.afterPreactivation()),fe(a=>{const l=function oue(n,t,e){const i=Qh(n,t._root,e?e._root:void 0);return new HL(i,t)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return r={...a,targetRouterState:l}}),yn(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((n,t,e)=>fe(i=>(new gue(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),yn({next(){o=!0},complete(){o=!0}}),PM(()=>{o||s||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ra(a=>{if(s=!0,qL(a)){$L(a)||(this.navigated=!0,this.restoreHistory(r,!0));const l=new aA(r.id,this.serializeUrl(r.extractedUrl),a.message,a.cancellationCode);if(i.next(l),$L(a)){const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||yQ(r.source)};this.scheduleNavigation(c,"imperative",null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{this.restoreHistory(r,!0);const l=new UL(r.id,this.serializeUrl(r.extractedUrl),a,r.targetSnapshot??void 0);i.next(l);try{r.resolve(this.errorHandler(a))}catch(c){r.reject(c)}}return Mc}))}))}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},o=e.state?.navigationId?e.state:null;if(o){const a={...o};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const s=this.parseUrl(e.url);this.scheduleNavigation(s,i,o,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(qM),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...o};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=o||null}return null!==d&&(d=this.removeEmptyProps(d)),Qce(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=bl(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function Ade(n){for(let t=0;t{const o=e[r];return null!=o&&(i[r]=o),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new yl(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,o,s){if(this.disposed)return Promise.resolve(!1);let a,l,c;s?(a=s.resolve,l=s.reject,c=s.promise):c=new Promise((h,p)=>{a=h,l=p});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:o.replaceUrl||o.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:o,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),o={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",o):this.location.go(r,"",o)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===r?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const o=new aA(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(o),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){Oy()},n.\u0275prov=Y({token:n,factory:function(){return bQ()},providedIn:"root"}),n})();function yQ(n){return"imperative"!==n}class _Q{}let _de=(()=>{class n{constructor(e,i,r,o,s){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(ir(e=>e instanceof yl),Wo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const o of i){o.providers&&!o._injector&&(o._injector=vf(o.providers,e,`Route: ${o.path}`));const s=o._injector??e,a=o._loadedInjector??s;o.loadChildren&&!o._loadedRoutes&&void 0===o.canLoad||o.loadComponent&&!o._loadedComponent?r.push(this.preloadConfig(s,o)):(o.children||o._loadedRoutes)&&r.push(this.processRoutes(a,o.children??o._loadedRoutes))}return Lt(r).pipe(hs())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):ae(null);const o=r.pipe(nn(s=>null===s?ae(void 0):(i._loadedRoutes=s.routes,i._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));return i.loadComponent&&!i._loadedComponent?Lt([o,this.loader.loadComponent(i)]).pipe(hs()):o})}}return n.\u0275fac=function(e){return new(e||n)(j(kn),j(I_),j(_s),j(_Q),j(iw))},n.\u0275prov=Y({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const sw=new $("");let EQ=(()=>{class n{constructor(e,i,r={}){this.router=e,this.viewportScroller=i,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof zM?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof yl&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof jL&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.router.triggerEvent(new jL(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){Oy()},n.\u0275prov=Y({token:n,factory:n.\u0275fac}),n})();function cu(n,t){return{\u0275kind:n,\u0275providers:t}}function aw(n){return[{provide:nw,multi:!0,useValue:n}]}function vQ(){const n=Xt(Tn);return t=>{const e=n.get(Ua);if(t!==e.components[0])return;const i=n.get(kn),r=n.get(MQ);1===n.get(lw)&&i.initialNavigation(),n.get(wQ,null,pe.Optional)?.setUpPreloading(),n.get(sw,null,pe.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.next(),r.complete()}}const MQ=new $("",{factory:()=>new Me}),lw=new $("",{providedIn:"root",factory:()=>1});const wQ=new $("");function Mde(n){return cu(0,[{provide:wQ,useExisting:_de},{provide:_Q,useExisting:n}])}const DQ=new $("ROUTER_FORROOT_GUARD"),wde=[z_,{provide:TL,useClass:RM},{provide:kn,useFactory:bQ},Uh,{provide:_l,useFactory:function CQ(n){return n.routerState.root},deps:[kn]},iw];function Dde(){return new oT("Router",kn)}let IQ=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[wde,[],aw(e),{provide:DQ,useFactory:Tde,deps:[[kn,new Zu,new ed]]},{provide:AA,useValue:i||{}},i?.useHash?{provide:za,useClass:EY}:{provide:za,useClass:TT},{provide:sw,useFactory:()=>{const n=Xt(kn),t=Xt(P3),e=Xt(AA);return e.scrollOffset&&t.setOffset(e.scrollOffset),new EQ(n,t,e)}},i?.preloadingStrategy?Mde(i.preloadingStrategy).\u0275providers:[],{provide:oT,multi:!0,useFactory:Dde},i?.initialNavigation?Bde(i):[],[{provide:SQ,useFactory:vQ},{provide:qx,multi:!0,useExisting:SQ}]]}}static forChild(e){return{ngModule:n,providers:[aw(e)]}}}return n.\u0275fac=function(e){return new(e||n)(j(DQ,8))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[KM]}),n})();function Tde(n){return"guarded"}function Bde(n){return["disabled"===n.initialNavigation?cu(3,[{provide:Sf,multi:!0,useFactory:()=>{const t=Xt(kn);return()=>{t.setUpLocationChangeListener()}}},{provide:lw,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?cu(2,[{provide:lw,useValue:0},{provide:Sf,multi:!0,deps:[Tn],useFactory:t=>{const e=t.get(yY,Promise.resolve(null));let i=!1;return()=>e.then(()=>new Promise(o=>{const s=t.get(kn),a=t.get(MQ);(function r(o){t.get(kn).events.pipe(ir(a=>a instanceof yl||a instanceof aA||a instanceof UL),fe(a=>a instanceof yl||a instanceof aA&&(0===a.code||1===a.code)&&null),ir(a=>null!==a),$n(1)).subscribe(()=>{o()})})(()=>{o(!0),i=!0}),s.afterPreactivation=()=>(o(!0),i||a.closed?ae(void 0):a),s.initialNavigation()}))}}]).\u0275providers:[]]}const SQ=new $("");let kde=(()=>{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r,this.escape=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.text&&(this.setOption({tooltipLabel:e.text.currentValue}),this.active&&(e.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onClick(e){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?Z.appendChild(this.container,this.el.nativeElement):Z.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content")}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),Z.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?gC.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&gC.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+Z.getWindowScrollLeft(),top:e.top+Z.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+Z.getOuterWidth(this.el.nativeElement),r=e.top+(Z.getOuterHeight(this.el.nativeElement)-Z.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-Z.getOuterWidth(this.container),r=e.top+(Z.getOuterHeight(this.el.nativeElement)-Z.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(Z.getOuterWidth(this.el.nativeElement)-Z.getOuterWidth(this.container))/2,r=e.top-Z.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(Z.getOuterWidth(this.el.nativeElement)-Z.getOuterWidth(this.container))/2,r=e.top+Z.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return Z.hasClass(e,"p-inputwrapper")?Z.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,o=Z.getOuterWidth(this.container),s=Z.getOuterHeight(this.container),a=Z.getViewport();return r+o>a.width||r<0||i<0||i+s>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new AK(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):Z.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&gC.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(At),T(Lg))},n.\u0275dir=ue({type:n,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[_i]}),n})(),cw=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt]}),n})(),TQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,IQ,Ja,cw,IQ,cw]}),n})();function she(n,t){1&n&&Mt(0)}function ahe(n,t){if(1&n&&(ct(0),S(1,she,1,0,"ng-container",3),ut()),2&n){const e=w(2);v(1),C("ngTemplateOutlet",e.contentTemplate)}}function lhe(n,t){if(1&n&&(x(0,"div",1),Ri(1),S(2,ahe,2,1,"ng-container",2),B()),2&n){const e=w();C("hidden",!e.selected),Ot("id",e.id)("aria-hidden",!e.selected)("aria-labelledby",e.id+"-label"),v(2),C("ngIf",e.contentTemplate&&(e.cache?e.loaded:e.selected))}}const BQ=["*"],che=["content"],uhe=["navbar"],dhe=["prevBtn"],hhe=["nextBtn"],phe=["inkbar"];function fhe(n,t){if(1&n){const e=Re();x(0,"button",12,13),K("click",function(){return re(e),oe(w().navBackward())}),ie(2,"span",14),B()}}function ghe(n,t){1&n&&ie(0,"span",24),2&n&&C("ngClass",w(3).$implicit.leftIcon)}function mhe(n,t){1&n&&ie(0,"span",25),2&n&&C("ngClass",w(3).$implicit.rightIcon)}function Ahe(n,t){if(1&n&&(ct(0),S(1,ghe,1,1,"span",21),x(2,"span",22),de(3),B(),S(4,mhe,1,1,"span",23),ut()),2&n){const e=w(2).$implicit;v(1),C("ngIf",e.leftIcon),v(2),pt(e.header),v(1),C("ngIf",e.rightIcon)}}function bhe(n,t){1&n&&Mt(0)}function yhe(n,t){if(1&n){const e=Re();x(0,"span",26),K("click",function(r){re(e);const o=w(2).$implicit;return oe(w().close(r,o))}),B()}}const _he=function(n,t){return{"p-highlight":n,"p-disabled":t}};function Ehe(n,t){if(1&n){const e=Re();x(0,"li",16)(1,"a",17),K("click",function(r){re(e);const o=w().$implicit;return oe(w().open(r,o))})("keydown.enter",function(r){re(e);const o=w().$implicit;return oe(w().open(r,o))}),S(2,Ahe,5,3,"ng-container",18),S(3,bhe,1,0,"ng-container",19),S(4,yhe,1,0,"span",20),B()()}if(2&n){const e=w().$implicit;Gt(e.headerStyleClass),C("ngClass",Xi(16,_he,e.selected,e.disabled))("ngStyle",e.headerStyle),v(1),C("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),Ot("id",e.id+"-label")("aria-selected",e.selected)("aria-controls",e.id)("aria-selected",e.selected)("tabindex",e.disabled?null:"0"),v(1),C("ngIf",!e.headerTemplate),v(1),C("ngTemplateOutlet",e.headerTemplate),v(1),C("ngIf",e.closable)}}function Che(n,t){1&n&&S(0,Ehe,5,19,"li",15),2&n&&C("ngIf",!t.$implicit.closed)}function vhe(n,t){if(1&n){const e=Re();x(0,"button",27,28),K("click",function(){return re(e),oe(w().navForward())}),ie(2,"span",29),B()}}const Mhe=function(n){return{"p-tabview p-component":!0,"p-tabview-scrollable":n}};let whe=0,OQ=(()=>{class n{constructor(e,i,r){this.viewContainer=i,this.cd=r,this.cache=!0,this.tooltipPosition="top",this.tooltipPositionStyle="absolute",this.id="p-tabpanel-"+whe++,this.tabView=e}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()?this.headerTemplate=e.template:this.contentTemplate=e.template})}get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||this.cd.detectChanges(),e&&(this.loaded=!0)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.tabView.cd.markForCheck()}get header(){return this._header}set header(e){this._header=e,Promise.resolve().then(()=>{this.tabView.updateInkBar(),this.tabView.cd.markForCheck()})}get leftIcon(){return this._leftIcon}set leftIcon(e){this._leftIcon=e,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(e){this._rightIcon=e,this.tabView.cd.markForCheck()}ngOnDestroy(){this.view=null}}return n.\u0275fac=function(e){return new(e||n)(T(Je(()=>kQ)),T(Ni),T(li))},n.\u0275cmp=ve({type:n,selectors:[["p-tabPanel"]],contentQueries:function(e,i,r){if(1&e&&jn(r,ar,4),2&e){let o;He(o=Ve())&&(i.templates=o)}},hostAttrs:[1,"p-element"],inputs:{closable:"closable",headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",cache:"cache",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon"},ngContentSelectors:BQ,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(eo(),S(0,lhe,3,5,"div",0)),2&e&&C("ngIf",!i.closed)},dependencies:[Pt,Yo],encapsulation:2}),n})(),kQ=(()=>{class n{constructor(e,i){this.el=e,this.cd=i,this.orientation="top",this.onChange=new te,this.onClose=new te,this.activeIndexChange=new te,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.initTabs(),this.tabChangesSubscription=this.tabPanels.changes.subscribe(e=>{this.initTabs()})}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.tabChangesSubscription&&this.tabChangesSubscription.unsubscribe()}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}open(e,i){if(i.disabled)e&&e.preventDefault();else{if(!i.selected){let r=this.findSelectedTab();r&&(r.selected=!1),this.tabChanged=!0,i.selected=!0;let o=this.findTabIndex(i);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(o),this.onChange.emit({originalEvent:e,index:o}),this.updateScrollBar(o)}e&&e.preventDefault()}}close(e,i){this.controlClose?this.onClose.emit({originalEvent:e,index:this.findTabIndex(i),close:()=>{this.closeTab(i)}}):(this.closeTab(i),this.onClose.emit({originalEvent:e,index:this.findTabIndex(i)})),e.stopPropagation()}closeTab(e){if(!e.disabled){if(e.selected){this.tabChanged=!0,e.selected=!1;for(let i=0;ithis._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0,this.updateScrollBar(e))}updateInkBar(){if(this.navbar){const e=Z.findSingle(this.navbar.nativeElement,"li.p-highlight");if(!e)return;this.inkbar.nativeElement.style.width=Z.getWidth(e)+"px",this.inkbar.nativeElement.style.left=Z.getOffset(e).left-Z.getOffset(this.navbar.nativeElement).left+"px"}}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}updateButtonState(){const e=this.content.nativeElement,{scrollLeft:i,scrollWidth:r}=e,o=Z.getWidth(e);this.backwardIsDisabled=0===i,this.forwardIsDisabled=parseInt(i)===r-o}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce((e,i)=>i?e+Z.getWidth(i):e,0)}navBackward(){const e=this.content.nativeElement,i=Z.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft-i;e.scrollLeft=r<=0?0:r}navForward(){const e=this.content.nativeElement,i=Z.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft+i,o=e.scrollWidth-i;e.scrollLeft=r>=o?o:r}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(li))},n.\u0275cmp=ve({type:n,selectors:[["p-tabView"]],contentQueries:function(e,i,r){if(1&e&&jn(r,OQ,4),2&e){let o;He(o=Ve())&&(i.tabPanels=o)}},viewQuery:function(e,i){if(1&e&&(Zt(che,5),Zt(uhe,5),Zt(dhe,5),Zt(hhe,5),Zt(phe,5)),2&e){let r;He(r=Ve())&&(i.content=r.first),He(r=Ve())&&(i.navbar=r.first),He(r=Ve())&&(i.prevBtn=r.first),He(r=Ve())&&(i.nextBtn=r.first),He(r=Ve())&&(i.inkbar=r.first)}},hostAttrs:[1,"p-element"],inputs:{orientation:"orientation",style:"style",styleClass:"styleClass",controlClose:"controlClose",scrollable:"scrollable",activeIndex:"activeIndex"},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},ngContentSelectors:BQ,decls:13,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabview-nav-container"],["class","p-tabview-nav-prev p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabview-nav"],["navbar",""],["ngFor","",3,"ngForOf"],[1,"p-tabview-ink-bar"],["inkbar",""],["class","p-tabview-nav-next p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-panels"],["type","button","pRipple","",1,"p-tabview-nav-prev","p-tabview-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","presentation",3,"ngClass","ngStyle","class",4,"ngIf"],["role","presentation",3,"ngClass","ngStyle"],["role","tab","pRipple","",1,"p-tabview-nav-link",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet"],["class","p-tabview-close pi pi-times",3,"click",4,"ngIf"],["class","p-tabview-left-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-title"],["class","p-tabview-right-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-right-icon",3,"ngClass"],[1,"p-tabview-close","pi","pi-times",3,"click"],["type","button","pRipple","",1,"p-tabview-nav-next","p-tabview-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,i){1&e&&(eo(),x(0,"div",0)(1,"div",1),S(2,fhe,3,0,"button",2),x(3,"div",3,4),K("scroll",function(o){return i.onScroll(o)}),x(5,"ul",5,6),S(7,Che,1,1,"ng-template",7),ie(8,"li",8,9),B()(),S(10,vhe,3,0,"button",10),B(),x(11,"div",11),Ri(12),B()()),2&e&&(Gt(i.styleClass),C("ngClass",Wt(7,Mhe,i.scrollable))("ngStyle",i.style),v(2),C("ngIf",i.scrollable&&!i.backwardIsDisabled),v(5),C("ngForOf",i.tabs),v(3),C("ngIf",i.scrollable&&!i.forwardIsDisabled))},dependencies:[zn,tr,Pt,Yo,nr,kde,Jd],styles:[".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\n"],encapsulation:2,changeDetection:0}),n})(),PQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[Kt,Ko,cw,Ja,Ko]}),n})(),FQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[TQ,gN,xc,mN,bN,DC,AC,PQ,fL,pL,AL,_E,TQ,gN,xc,mN,bN,DC,AC,PQ,fL,pL,AL,_E]}),n})(),Dhe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[xh],imports:[Kt,yg,zd,Bse,FQ]}),n})();ms(nL,[ar,kQ,OQ,Zae,$ae,qle],[]);let RQ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[cM],imports:[Kt,yg,zd,xc]}),n})();function Ihe(n,t){1&n&&(x(0,"div",1),ie(1,"div",2),x(2,"div",3)(3,"div",4)(4,"div"),ie(5,"span",5)(6,"span",6),B(),x(7,"div",7),ie(8,"span",8)(9,"span",9),B()()()())}ms(Lm,[tr,Pt,$R,aM,KR],[]);let She=(()=>{class n{constructor(){this.items=Array(4).fill(0)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-suggestion-loading-list"]],decls:1,vars:1,consts:[["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"image","skeleton"],[1,"body"],[1,"data-wrapper"],[1,"title","skeleton"],[1,"subtitle","skeleton"],[1,"state"],[1,"circle","skeleton"],[1,"meta","skeleton"]],template:function(e,i){1&e&&S(0,Ihe,10,0,"div",0),2&e&&C("ngForOf",i.items)},dependencies:[tr],styles:["[_nghost-%COMP%]{width:100%;height:100%;max-height:400px;overflow:auto;display:block}.skeleton[_ngcontent-%COMP%]{animation:skeleton-loading 1s linear infinite alternate}.card[_ngcontent-%COMP%]{width:100%;max-height:80px;box-sizing:border-box;display:flex;gap:1rem;padding:8px;background-color:#fff;cursor:pointer}.image[_ngcontent-%COMP%]{min-width:64px;min-height:64px;background:#11152e}.body[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%]{overflow:hidden;height:100%;display:flex;flex-direction:column;justify-content:space-between}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .title[_ngcontent-%COMP%], .body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:80%;overflow:hidden;display:block;white-space:nowrap;text-overflow:ellipsis;background-color:#11152e;height:12px;border-radius:5px;margin-bottom:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{width:85%;height:10px}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;align-items:center}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .circle[_ngcontent-%COMP%]{width:16px;height:16px;background:#000;border-radius:100%;margin-right:.5rem}.body[_ngcontent-%COMP%] .data-wrapper[_ngcontent-%COMP%] .state[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{width:30px;height:10px;background:#000;border-radius:4px}@keyframes skeleton-loading{0%{background-color:#ccc}to{background-color:#f2f2f2}}"]}),n})(),xhe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({providers:[xh,s6,pk],imports:[Kt,yg,zd,RQ,FQ,Dhe,zd,RQ]}),n})();ms(xN,[tr,Pt,Qre],[]),ms(EN,[Pt,bg,wc,Pd,lg,Ic,jd,gM,Fs,zm,kre,_N],[]),ms(_N,[tr,Pt,$R,aM,She,KR],[]);class The extends TypeError{constructor(t,e){let i;const{message:r,explanation:o,...s}=t,{path:a}=t,l=0===a.length?r:`At path: ${a.join(".")} -- ${r}`;super(o??l),null!=o&&(this.cause=l),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>i??(i=[t,...e()])}}function br(n){return"object"==typeof n&&null!=n}function _n(n){return"symbol"==typeof n?n.toString():"string"==typeof n?JSON.stringify(n):`${n}`}function khe(n,t,e,i){if(!0===n)return;!1===n?n={}:"string"==typeof n&&(n={message:n});const{path:r,branch:o}=t,{type:s}=e,{refinement:a,message:l=`Expected a value of type \`${s}\`${a?` with refinement \`${a}\``:""}, but received: \`${_n(i)}\``}=n;return{value:i,type:s,refinement:a,key:r[r.length-1],path:r,branch:o,...n,message:l}}function*uw(n,t,e,i){(function Bhe(n){return br(n)&&"function"==typeof n[Symbol.iterator]})(n)||(n=[n]);for(const r of n){const o=khe(r,t,e,i);o&&(yield o)}}function*dw(n,t,e={}){const{path:i=[],branch:r=[n],coerce:o=!1,mask:s=!1}=e,a={path:i,branch:r};if(o&&(n=t.coercer(n,a),s&&"type"!==t.type&&br(t.schema)&&br(n)&&!Array.isArray(n)))for(const c in n)void 0===t.schema[c]&&delete n[c];let l="valid";for(const c of t.validator(n,a))c.explanation=e.message,l="not_valid",yield[c,void 0];for(let[c,u,d]of t.entries(n,a)){const h=dw(u,d,{path:void 0===c?i:[...i,c],branch:void 0===c?r:[...r,u],coerce:o,mask:s,message:e.message});for(const p of h)p[0]?(l=null!=p[0].refinement?"not_refined":"not_valid",yield[p[0],void 0]):o&&(u=p[1],void 0===c?n=u:n instanceof Map?n.set(c,u):n instanceof Set?n.add(u):br(n)&&(void 0!==u||c in n)&&(n[c]=u))}if("not_valid"!==l)for(const c of t.refiner(n,a))c.explanation=e.message,l="not_refined",yield[c,void 0];"valid"===l&&(yield[void 0,n])}class cn{constructor(t){const{type:e,schema:i,validator:r,refiner:o,coercer:s=(l=>l),entries:a=function*(){}}=t;this.type=e,this.schema=i,this.entries=a,this.coercer=s,this.validator=r?(l,c)=>uw(r(l,c),c,this,l):()=>[],this.refiner=o?(l,c)=>uw(o(l,c),c,this,l):()=>[]}assert(t,e){return LQ(t,this,e)}create(t,e){return function Phe(n,t,e){const i=Wh(n,t,{coerce:!0,message:e});if(i[0])throw i[0];return i[1]}(t,this,e)}is(t){return function QQ(n,t){return!Wh(n,t)[0]}(t,this)}mask(t,e){return function Fhe(n,t,e){const i=Wh(n,t,{coerce:!0,mask:!0,message:e});if(i[0])throw i[0];return i[1]}(t,this,e)}validate(t,e={}){return Wh(t,this,e)}}function LQ(n,t,e){const i=Wh(n,t,{message:e});if(i[0])throw i[0]}function Wh(n,t,e={}){const i=dw(n,t,e),r=function Ohe(n){const{done:t,value:e}=n.next();return t?void 0:e}(i);return r[0]?[new The(r[0],function*(){for(const s of i)s[0]&&(yield s[0])}),void 0]:[void 0,r[1]]}function Gi(n,t){return new cn({type:n,schema:null,validator:t})}function UQ(n){return new cn({type:"array",schema:n,*entries(t){if(n&&Array.isArray(t))for(const[e,i]of t.entries())yield[e,i,n]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||`Expected an array value, but received: ${_n(t)}`})}function El(n){const t=n?Object.keys(n):[],e=function jQ(){return Gi("never",()=>!1)}();return new cn({type:"object",schema:n||null,*entries(i){if(n&&br(i)){const r=new Set(Object.keys(i));for(const o of t)r.delete(o),yield[o,i[o],n[o]];for(const o of r)yield[o,i[o],e]}},validator:i=>br(i)||`Expected an object, but received: ${_n(i)}`,coercer:i=>br(i)?{...i}:i})}function zQ(n){return new cn({...n,validator:(t,e)=>void 0===t||n.validator(t,e),refiner:(t,e)=>void 0===t||n.refiner(t,e)})}function Jh(){return Gi("string",n=>"string"==typeof n||`Expected a string, but received: ${_n(n)}`)}const Nhe=Ft.create({name:"characterCount",addOptions:()=>({limit:null,mode:"textSize"}),addStorage:()=>({characters:()=>0,words:()=>0}),onBeforeCreate(){this.storage.characters=n=>{const t=n?.node||this.editor.state.doc;return"textSize"===(n?.mode||this.options.mode)?t.textBetween(0,t.content.size,void 0," ").length:t.nodeSize},this.storage.words=n=>{const t=n?.node||this.editor.state.doc;return t.textBetween(0,t.content.size," "," ").split(" ").filter(r=>""!==r).length}},addProseMirrorPlugins(){return[new it({key:new _t("characterCount"),filterTransaction:(n,t)=>{const e=this.options.limit;if(!n.docChanged||0===e||null==e)return!0;const i=this.storage.characters({node:t.doc}),r=this.storage.characters({node:n.doc});if(r<=e||i>e&&r>e&&r<=i)return!0;if(i>e&&r>e&&r>i||!n.getMeta("paste"))return!1;const s=n.selection.$head.pos;return n.deleteRange(s-(r-e),s),!(this.storage.characters({node:n.doc})>e)}})]}}),Lhe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,Qhe=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,Uhe=Qr.create({name:"highlight",addOptions:()=>({multicolor:!1,HTMLAttributes:{}}),addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML:()=>[{tag:"mark"}],renderHTML({HTMLAttributes:n}){return["mark",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:t})=>t.setMark(this.name,n),toggleHighlight:n=>({commands:t})=>t.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[dl({find:Lhe,type:this.type})]},addPasteRules(){return[na({find:Qhe,type:this.type})]}});function hw(n){this.j={},this.jr=[],this.jd=null,this.t=n}hw.prototype={accepts:function(){return!!this.t},tt:function(t,e){if(e&&e.j)return this.j[t]=e,e;var i=e,r=this.j[t];if(r)return i&&(r.t=i),r;r=Ct();var o=EA(this,t);return o?(Object.assign(r.j,o.j),r.jr.append(o.jr),r.jr=o.jd,r.t=i||o.t):r.t=i,this.j[t]=r,r}};var Ct=function(){return new hw},me=function(t){return new hw(t)},H=function(t,e,i){t.j[e]||(t.j[e]=i)},Sn=function(t,e,i){t.jr.push([e,i])},EA=function(t,e){var i=t.j[e];if(i)return i;for(var r=0;r=s)return[];for(;o0&&void 0!==arguments[0]?arguments[0]:[],t=Ct(),e=me(yr),i=me(jr),r=Ct(),o=me("WS"),s=[[np,i],[Zh,i],[ep,i],[tp,i]],a=function(){var b=me(jr);return b.j={"-":r},b.jr=[].concat(s),b},l=function(b){var D=a();return D.t=b,D};jhe(t,[["'",me(vA)],["{",me(hu)],["[",me(Kh)],["<",me($h)],["(",me(qh)],["}",me(vl)],["]",me(pu)],[">",me(fu)],[")",me(gu)],["&",me(CA)],["*",me(MA)],["@",me(mu)],["`",me(DA)],["^",me(IA)],[":",me(Xh)],[",",me(gw)],["$",me(SA)],[".",me(ca)],["=",me(xA)],["!",me(mw)],["-",me(TA)],["%",me(BA)],["|",me(OA)],["+",me(kA)],["#",me(PA)],["?",me(FA)],['"',me(Aw)],["/",me(as)],[";",me(bw)],["~",me(RA)],["_",me(NA)],["\\",me(wA)]]),H(t,"\n",me("NL")),Sn(t,JQ,o),H(o,"\n",Ct()),Sn(o,JQ,o);for(var c=0;c2&&void 0!==arguments[2]?arguments[2]:{},i=Object.create(n.prototype);for(var r in e)i[r]=e[r];i.constructor=t,t.prototype=i}(UA,e,t),e}UA.prototype={t:"token",isLink:!1,toString:function(){return this.v},toHref:function(){return this.toString()},startIndex:function(){return this.tk[0].s},endIndex:function(){return this.tk[this.tk.length-1].e},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pn.defaultProtocol;return{type:this.t,value:this.v,isLink:this.isLink,href:this.toHref(t),start:this.startIndex(),end:this.endIndex()}}};var qQ=Ml("email",{isLink:!0}),yw=Ml("email",{isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),_w=Ml("text"),XQ=Ml("nl"),ua=Ml("url",{isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pn.defaultProtocol,e=this.tk,i=!1,r=!1,o=[],s=0;e[s].t===du;)i=!0,o.push(e[s].v),s++;for(;e[s].t===as;)r=!0,o.push(e[s].v),s++;for(;s=0&&h++,r++,u++;if(h<0)for(var p=r-u;p0&&(o.push(Ew(_w,t,s)),s=[]);var f=d.t,g=e.slice((r-=h)-(u-=h),r);o.push(Ew(f,t,g))}}return s.length>0&&o.push(Ew(_w,t,s)),o}(zt.parser.start,n,function Vhe(n,t){for(var e=function Ghe(n){for(var t=[],e=n.length,i=0;i56319||i+1===e||(o=n.charCodeAt(i+1))<56320||o>57343?n[i]:n.slice(i,i+2);t.push(s),i+=s.length}return t}(t.replace(/[A-Z]/g,function(p){return p.toLowerCase()})),i=e.length,r=[],o=0,s=0;s=0&&(d+=e[s].length,h++),c+=e[s].length,o+=e[s].length,s++;s-=h,r.push({t:u.t,v:t.substr((o-=d)-(c-=d),c),s:o-c,e:o})}return r}(zt.scanner.start,n))}function vw(n){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=ZQ(n),i=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:null,e=ZQ(n);return 1===e.length&&e[0].isLink&&(!t||e[0].t===t)}function Zhe(n){return new it({key:new _t("autolink"),appendTransaction:(t,e,i)=>{const r=t.some(u=>u.docChanged)&&!e.doc.eq(i.doc),o=t.some(u=>u.getMeta("preventAutolink"));if(!r||o)return;const{tr:s}=i,a=function Qee(n,t){const e=new zC(n);return t.forEach(i=>{i.steps.forEach(r=>{e.step(r)})}),e}(e.doc,[...t]),{mapping:l}=a;return function Gee(n){const{mapping:t,steps:e}=n,i=[];return t.maps.forEach((r,o)=>{const s=[];if(r.ranges.length)r.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=e[o];if(void 0===a||void 0===l)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=t.slice(o).map(a,-1),u=t.slice(o).map(l),d=t.invert().map(c,-1),h=t.invert().map(u);i.push({oldRange:{from:d,to:h},newRange:{from:c,to:u}})})}),function Vee(n){const t=function Hee(n,t=JSON.stringify){const e={};return n.filter(i=>{const r=t(i);return!Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=!0)})}(n);return 1===t.length?t:t.filter((e,i)=>!t.filter((o,s)=>s!==i).some(o=>e.oldRange.from>=o.oldRange.from&&e.oldRange.to<=o.oldRange.to&&e.newRange.from>=o.newRange.from&&e.newRange.to<=o.newRange.to))}(i)}(a).forEach(({oldRange:u,newRange:d})=>{Fm(u.from,u.to,e.doc).filter(g=>g.mark.type===n.type).forEach(g=>{const y=Fm(l.map(g.from),l.map(g.to),i.doc).filter(O=>O.mark.type===n.type);if(!y.length)return;const E=y[0],b=e.doc.textBetween(g.from,g.to,void 0," "),D=i.doc.textBetween(E.from,E.to,void 0," "),I=e2(b),Q=e2(D);I&&!Q&&s.removeMark(E.from,E.to,n.type)});const h=function jee(n,t,e){const i=[];return n.nodesBetween(t.from,t.to,(r,o)=>{e(r)&&i.push({node:r,pos:o})}),i}(i.doc,d,g=>g.isTextblock);let p,f;if(h.length>1?(p=h[0],f=i.doc.textBetween(p.pos,p.pos+p.node.nodeSize,void 0," ")):h.length&&i.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(p=h[0],f=i.doc.textBetween(p.pos,d.to,void 0," ")),p&&f){const g=f.split(" ").filter(y=>""!==y);if(g.length<=0)return!1;const m=g[g.length-1],A=p.pos+f.lastIndexOf(m);if(!m)return!1;vw(m).filter(y=>y.isLink).filter(y=>!n.validate||n.validate(y.value)).map(y=>({...y,from:A+y.start+1,to:A+y.end+1})).forEach(y=>{s.addMark(y.from,y.to,n.type.create({href:y.href}))})}}),s.steps.length?s:void 0}})}const npe=Qr.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(qhe)},onDestroy(){!function $he(){zt.scanner=null,zt.parser=null,zt.pluginQueue=[],zt.customProtocols=[],zt.initialized=!1}()},inclusive(){return this.options.autolink},addOptions:()=>({openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}),addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},class:{default:this.options.HTMLAttributes.class}}},parseHTML:()=>[{tag:'a[href]:not([href *= "javascript:" i])'}],renderHTML({HTMLAttributes:n}){return["a",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:t})=>t().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:t})=>t().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[na({find:n=>vw(n).filter(t=>!this.options.validate||this.options.validate(t.value)).filter(t=>t.isLink).map(t=>({text:t.value,index:t.start,data:t})),type:this.type,getAttributes:n=>{var t;return{href:null===(t=n.data)||void 0===t?void 0:t.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(Zhe({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(function epe(n){return new it({key:new _t("handleClickLink"),props:{handleClick:(t,e,i)=>{var r;const o=zR(t.state,n.type.name);return!(!(null===(r=i.target)||void 0===r?void 0:r.closest("a"))||!o.href||(window.open(o.href,o.target),0))}}})}({type:this.type})),this.options.linkOnPaste&&n.push(function tpe(n){return new it({key:new _t("handlePasteLink"),props:{handlePaste:(t,e,i)=>{const{state:r}=t,{selection:o}=r,{empty:s}=o;if(s)return!1;let a="";i.content.forEach(c=>{a+=c.textContent});const l=vw(a).find(c=>c.isLink&&c.value===a);return!(!a||!l||(n.editor.commands.setMark(n.type,{href:l.href}),0))}}})}({editor:this.editor,type:this.type})),n}}),ipe=Ft.create({name:"placeholder",addOptions:()=>({emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something \u2026",showOnlyWhenEditable:!0,showOnlyCurrent:!0,includeChildren:!1}),addProseMirrorPlugins(){return[new it({props:{decorations:({doc:n,selection:t})=>{const e=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=t,r=[];if(!e)return null;const o=n.type.createAndFill(),s=o?.sameMarkup(n)&&null===o.content.findDiffStart(n.content);return n.descendants((a,l)=>{const c=i>=l&&i<=l+a.nodeSize;if((c||!this.options.showOnlyCurrent)&&!a.isLeaf&&!a.childCount){const d=[this.options.emptyNodeClass];s&&d.push(this.options.emptyEditorClass);const h=wn.node(l,l+a.nodeSize,{class:d.join(" "),"data-placeholder":"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:a,pos:l,hasAnchor:c}):this.options.placeholder});r.push(h)}return this.options.includeChildren}),kt.create(n,r)}}})]}}),rpe=tn.create({name:"tableRow",addOptions:()=>({HTMLAttributes:{}}),content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML:()=>[{tag:"tr"}],renderHTML({HTMLAttributes:n}){return["tr",Et(this.options.HTMLAttributes,n),0]}}),ope=Ft.create({name:"textAlign",addOptions:()=>({types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}),addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>n.style.textAlign||this.options.defaultAlignment,renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:t})=>!!this.options.alignments.includes(n)&&this.options.types.every(e=>t.updateAttributes(e,{textAlign:n})),unsetTextAlign:()=>({commands:n})=>this.options.types.every(t=>n.resetAttributes(t,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),spe=Qr.create({name:"underline",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("underline")&&{}}],renderHTML({HTMLAttributes:n}){return["u",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),ape=/^\s*>\s$/,lpe=tn.create({name:"blockquote",addOptions:()=>({HTMLAttributes:{}}),content:"block+",group:"block",defining:!0,parseHTML:()=>[{tag:"blockquote"}],renderHTML({HTMLAttributes:n}){return["blockquote",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[sM({find:ape,type:this.type})]}}),cpe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,upe=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,dpe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,hpe=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,ppe=Qr.create({name:"bold",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"strong"},{tag:"b",getAttrs:n=>"normal"!==n.style.fontWeight&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}],renderHTML({HTMLAttributes:n}){return["strong",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[dl({find:cpe,type:this.type}),dl({find:dpe,type:this.type})]},addPasteRules(){return[na({find:upe,type:this.type}),na({find:hpe,type:this.type})]}}),fpe=/^\s*([-+*])\s$/,gpe=tn.create({name:"bulletList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML:()=>[{tag:"ul"}],renderHTML({HTMLAttributes:n}){return["ul",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){return[sM({find:fpe,type:this.type})]}}),mpe=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,Ape=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,bpe=Qr.create({name:"code",addOptions:()=>({HTMLAttributes:{}}),excludes:"_",code:!0,exitable:!0,parseHTML:()=>[{tag:"code"}],renderHTML({HTMLAttributes:n}){return["code",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[dl({find:mpe,type:this.type})]},addPasteRules(){return[na({find:Ape,type:this.type})]}}),ype=/^```([a-z]+)?[\s\n]$/,_pe=/^~~~([a-z]+)?[\s\n]$/,Epe=tn.create({name:"codeBlock",addOptions:()=>({languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}),content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var t;const{languageClassPrefix:e}=this.options;return[...(null===(t=n.firstElementChild)||void 0===t?void 0:t.classList)||[]].filter(s=>s.startsWith(e)).map(s=>s.replace(e,""))[0]||null},rendered:!1}}},parseHTML:()=>[{tag:"pre",preserveWhitespace:"full"}],renderHTML({node:n,HTMLAttributes:t}){return["pre",Et(this.options.HTMLAttributes,t),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:t})=>t.setNode(this.name,n),toggleCodeBlock:n=>({commands:t})=>t.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:t}=this.editor.state.selection;return!(!n||t.parent.type.name!==this.name)&&!(1!==t.pos&&t.parent.textContent.length)&&this.editor.commands.clearNodes()},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=n,{selection:e}=t,{$from:i,empty:r}=e;if(!r||i.parent.type!==this.type)return!1;const o=i.parentOffset===i.parent.nodeSize-2,s=i.parent.textContent.endsWith("\n\n");return!(!o||!s)&&n.chain().command(({tr:a})=>(a.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=n,{selection:e,doc:i}=t,{$from:r,empty:o}=e;if(!o||r.parent.type!==this.type||r.parentOffset!==r.parent.nodeSize-2)return!1;const a=r.after();return void 0!==a&&!i.nodeAt(a)&&n.commands.exitCode()}}},addInputRules(){return[oM({find:ype,type:this.type,getAttributes:n=>({language:n[1]})}),oM({find:_pe,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new it({key:new _t("codeBlockVSCodeHandler"),props:{handlePaste:(n,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const e=t.clipboardData.getData("text/plain"),i=t.clipboardData.getData("vscode-editor-data"),o=(i?JSON.parse(i):void 0)?.mode;if(!e||!o)return!1;const{tr:s}=n.state;return s.replaceSelectionWith(this.type.create({language:o})),s.setSelection(Ee.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(e.replace(/\r\n?/g,"\n")),s.setMeta("paste",!0),n.dispatch(s),!0}}})]}}),Cpe=tn.create({name:"doc",topNode:!0,content:"block+"});function vpe(n={}){return new it({view:t=>new Mpe(t,n)})}class Mpe{constructor(t,e){this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=e.width||1,this.color=e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let r=o=>{this[i](o)};return t.dom.addEventListener(i,r),{name:i,handler:r}})}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e))}update(t,e){null!=this.cursorPos&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,null==t?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos);if(!t.parent.inlineContent){let s=t.nodeBefore,a=t.nodeAfter;if(s||a){let l=this.editorView.nodeDOM(this.cursorPos-(s?s.nodeSize:0)).getBoundingClientRect(),c=s?l.bottom:l.top;s&&a&&(c=(c+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:l.left,right:l.right,top:c-this.width/2,bottom:c+this.width/2}}}if(!e){let s=this.editorView.coordsAtPos(this.cursorPos);e={left:s.left-this.width/2,right:s.left+this.width/2,top:s.top,bottom:s.bottom}}let r,o,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none; background-color: "+this.color),!i||i==document.body&&"static"==getComputedStyle(i).position)r=-pageXOffset,o=-pageYOffset;else{let s=i.getBoundingClientRect();r=s.left-i.scrollLeft,o=s.top-i.scrollTop}this.element.style.left=e.left-r+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),i=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=i&&i.type.spec.disableDropCursor,o="function"==typeof r?r(this.editorView,e):r;if(e&&!o){let s=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice&&(s=Kk(this.editorView.state.doc,s,this.editorView.dragging.slice),null==s))return this.setCursor(null);this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const wpe=Ft.create({name:"dropCursor",addOptions:()=>({color:"currentColor",width:1,class:void 0}),addProseMirrorPlugins(){return[vpe(this.options)]}});class $t extends _e{constructor(t){super(t,t)}map(t,e){let i=t.resolve(e.map(this.head));return $t.valid(i)?new $t(i):_e.near(i)}content(){return G.empty}eq(t){return t instanceof $t&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for GapCursor.fromJSON");return new $t(t.resolve(e.pos))}getBookmark(){return new Mw(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!function Dpe(n){for(let t=n.depth;t>=0;t--){let e=n.index(t),i=n.node(t);if(0!=e)for(let r=i.child(e-1);;r=r.lastChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(t)||!function Ipe(n){for(let t=n.depth;t>=0;t--){let e=n.indexAfter(t),i=n.node(t);if(e!=i.childCount)for(let r=i.child(e);;r=r.firstChild){if(0==r.childCount&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}else if(i.type.spec.isolating)return!0}return!0}(t))return!1;let i=e.type.spec.allowGapCursor;if(null!=i)return i;let r=e.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,e,i=!1){e:for(;;){if(!i&&$t.valid(t))return t;let r=t.pos,o=null;for(let s=t.depth;;s--){let a=t.node(s);if(e>0?t.indexAfter(s)0){o=a.child(e>0?t.indexAfter(s):t.index(s)-1);break}if(0==s)return null;r+=e;let l=t.doc.resolve(r);if($t.valid(l))return l}for(;;){let s=e>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!ce.isSelectable(o)){t=t.doc.resolve(r+o.nodeSize*e),i=!1;continue e}break}o=s,r+=e;let a=t.doc.resolve(r);if($t.valid(a))return a}return null}}}$t.prototype.visible=!1,$t.findFrom=$t.findGapCursorFrom,_e.jsonID("gapcursor",$t);class Mw{constructor(t){this.pos=t}map(t){return new Mw(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return $t.valid(e)?new $t(e):_e.near(e)}}const xpe=Lv({ArrowLeft:jA("horiz",-1),ArrowRight:jA("horiz",1),ArrowUp:jA("vert",-1),ArrowDown:jA("vert",1)});function jA(n,t){const e="vert"==n?t>0?"down":"up":t>0?"right":"left";return function(i,r,o){let s=i.selection,a=t>0?s.$to:s.$from,l=s.empty;if(s instanceof Ee){if(!o.endOfTextblock(e)||0==a.depth)return!1;l=!1,a=i.doc.resolve(t>0?a.after():a.before())}let c=$t.findGapCursorFrom(a,t,l);return!!c&&(r&&r(i.tr.setSelection(new $t(c))),!0)}}function Tpe(n,t,e){if(!n||!n.editable)return!1;let i=n.state.doc.resolve(t);if(!$t.valid(i))return!1;let r=n.posAtCoords({left:e.clientX,top:e.clientY});return!(r&&r.inside>-1&&ce.isSelectable(n.state.doc.nodeAt(r.inside))||(n.dispatch(n.state.tr.setSelection(new $t(i))),0))}function Bpe(n,t){if("insertCompositionText"!=t.inputType||!(n.state.selection instanceof $t))return!1;let{$from:e}=n.state.selection,i=e.parent.contentMatchAt(e.index()).findWrapping(n.state.schema.nodes.text);if(!i)return!1;let r=L.empty;for(let s=i.length-1;s>=0;s--)r=L.from(i[s].createAndFill(null,r));let o=n.state.tr.replace(e.pos,e.pos,new G(r,0,0));return o.setSelection(Ee.near(o.doc.resolve(e.pos+1))),n.dispatch(o),!1}function Ope(n){if(!(n.selection instanceof $t))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",kt.create(n.doc,[wn.widget(n.selection.head,t,{key:"gapcursor"})])}const kpe=Ft.create({name:"gapCursor",addProseMirrorPlugins:()=>[new it({props:{decorations:Ope,createSelectionBetween:(n,t,e)=>t.pos==e.pos&&$t.valid(e)?new $t(e):null,handleClick:Tpe,handleKeyDown:xpe,handleDOMEvents:{beforeinput:Bpe}}})],extendNodeSchema(n){var t;return{allowGapCursor:null!==(t=Be(ne(n,"allowGapCursor",{name:n.name,options:n.options,storage:n.storage})))&&void 0!==t?t:null}}}),Ppe=tn.create({name:"hardBreak",addOptions:()=>({keepMarks:!0,HTMLAttributes:{}}),inline:!0,group:"inline",selectable:!1,parseHTML:()=>[{tag:"br"}],renderHTML({HTMLAttributes:n}){return["br",Et(this.options.HTMLAttributes,n)]},renderText:()=>"\n",addCommands(){return{setHardBreak:()=>({commands:n,chain:t,state:e,editor:i})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:r,storedMarks:o}=e;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=i.extensionManager,l=o||r.$to.parentOffset&&r.$from.marks();return t().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const d=l.filter(h=>a.includes(h.type.name));c.ensureMarks(d)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),Fpe=tn.create({name:"heading",addOptions:()=>({levels:[1,2,3,4,5,6],HTMLAttributes:{}}),content:"inline*",group:"block",defining:!0,addAttributes:()=>({level:{default:1,rendered:!1}}),parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:t}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,Et(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:n=>({commands:t})=>!!this.options.levels.includes(n.level)&&t.setNode(this.name,n),toggleHeading:n=>({commands:t})=>!!this.options.levels.includes(n.level)&&t.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return this.options.levels.reduce((n,t)=>({...n,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(n=>oM({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var Fn=function(){};Fn.prototype.append=function(t){return t.length?(t=Fn.from(t),!this.length&&t||t.length<200&&this.leafAppend(t)||this.length<200&&t.leafPrepend(this)||this.appendInner(t)):this},Fn.prototype.prepend=function(t){return t.length?Fn.from(t).append(this):this},Fn.prototype.appendInner=function(t){return new Rpe(this,t)},Fn.prototype.slice=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=this.length),t>=e?Fn.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))},Fn.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)},Fn.prototype.forEach=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=this.length),e<=i?this.forEachInner(t,e,i,0):this.forEachInvertedInner(t,e,i,0)},Fn.prototype.map=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=this.length);var r=[];return this.forEach(function(o,s){return r.push(t(o,s))},e,i),r},Fn.from=function(t){return t instanceof Fn?t:t&&t.length?new t2(t):Fn.empty};var t2=function(n){function t(i){n.call(this),this.values=i}n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t;var e={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,o){return 0==r&&o==this.length?this:new t(this.values.slice(r,o))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,o,s,a){for(var l=o;l=s;l--)if(!1===r(this.values[l],a+l))return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=200)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=200)return new t(r.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(t.prototype,e),t}(Fn);Fn.empty=new t2([]);var Rpe=function(n){function t(e,i){n.call(this),this.left=e,this.right=i,this.length=e.length+i.length,this.depth=Math.max(e.depth,i.depth)+1}return n&&(t.__proto__=n),(t.prototype=Object.create(n&&n.prototype)).constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(i){return ia&&!1===this.right.forEachInner(i,Math.max(r-a,0),Math.min(this.length,o)-a,s+a))return!1},t.prototype.forEachInvertedInner=function(i,r,o,s){var a=this.left.length;if(r>a&&!1===this.right.forEachInvertedInner(i,r-a,Math.max(o,a)-a,s+a)||o=o?this.right.slice(i-o,r-o):this.left.slice(i,o).append(this.right.slice(0,r-o))},t.prototype.leafAppend=function(i){var r=this.right.leafAppend(i);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(i){var r=this.left.leafPrepend(i);if(r)return new t(r,this.right)},t.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new t(this.left,new t(this.right,i)):new t(this,i)},t}(Fn);const n2=Fn;class zr{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(0==this.eventCount)return null;let r,o,i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}e&&(r=this.remapping(i,this.items.length),o=r.maps.length);let a,l,s=t.tr,c=[],u=[];return this.items.forEach((d,h)=>{if(!d.step)return r||(r=this.remapping(i,h+1),o=r.maps.length),o--,void u.push(d);if(r){u.push(new Co(d.map));let f,p=d.step.map(r.slice(o));p&&s.maybeStep(p).doc&&(f=s.mapping.maps[s.mapping.maps.length-1],c.push(new Co(f,void 0,void 0,c.length+u.length))),o--,f&&r.appendMap(f,o)}else s.maybeStep(d.step);return d.selection?(a=r?d.selection.map(r.slice(o)):d.selection,l=new zr(this.items.slice(0,i).append(u.reverse().concat(c)),this.eventCount-1),!1):void 0},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(t,e,i,r){let o=[],s=this.eventCount,a=this.items,l=!r&&a.length?a.get(a.length-1):null;for(let u=0;uUpe&&(a=function Qpe(n,t){let e;return n.forEach((i,r)=>{if(i.selection&&0==t--)return e=r,!1}),n.slice(e)}(a,c),s-=c),new zr(a.append(o),s)}remapping(t,e){let i=new Pc;return this.items.forEach((r,o)=>{i.appendMap(r.map,null!=r.mirrorOffset&&o-r.mirrorOffset>=t?i.maps.length-r.mirrorOffset:void 0)},t,e),i}addMaps(t){return 0==this.eventCount?this:new zr(this.items.append(t.map(e=>new Co(e))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let i=[],r=Math.max(0,this.items.length-e),o=t.mapping,s=t.steps.length,a=this.eventCount;this.items.forEach(h=>{h.selection&&a--},r);let l=e;this.items.forEach(h=>{let p=o.getMirror(--l);if(null==p)return;s=Math.min(s,p);let f=o.maps[p];if(h.step){let g=t.steps[p].invert(t.docs[p]),m=h.selection&&h.selection.map(o.slice(l+1,p));m&&a++,i.push(new Co(f,g,m))}else i.push(new Co(f))},r);let c=[];for(let h=e;h500&&(d=d.compress(this.items.length-i.length)),d}emptyItemCount(){let t=0;return this.items.forEach(e=>{e.step||t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),i=e.maps.length,r=[],o=0;return this.items.forEach((s,a)=>{if(a>=t)r.push(s),s.selection&&o++;else if(s.step){let l=s.step.map(e.slice(i)),c=l&&l.getMap();if(i--,c&&e.appendMap(c,i),l){let u=s.selection&&s.selection.map(e.slice(i));u&&o++;let h,d=new Co(c.invert(),l,u),p=r.length-1;(h=r.length&&r[p].merge(d))?r[p]=h:r.push(d)}}else s.map&&i--},this.items.length,0),new zr(n2.from(r.reverse()),o)}}zr.empty=new zr(n2.empty,0);class Co{constructor(t,e,i,r){this.map=t,this.step=e,this.selection=i,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new Co(e.getMap().invert(),e,this.selection)}}}class da{constructor(t,e,i,r){this.done=t,this.undone=e,this.prevRanges=i,this.prevTime=r}}const Upe=20;function r2(n){let t=[];return n.forEach((e,i,r,o)=>t.push(r,o)),t}function ww(n,t){if(!n)return null;let e=[];for(let i=0;inew da(zr.empty,zr.empty,null,0),apply:(t,e,i)=>function jpe(n,t,e,i){let o,r=e.getMeta(vo);if(r)return r.historyState;e.getMeta(a2)&&(n=new da(n.done,n.undone,null,0));let s=e.getMeta("appendedTransaction");if(0==e.steps.length)return n;if(s&&s.getMeta(vo))return s.getMeta(vo).redo?new da(n.done.addTransform(e,void 0,i,HA(t)),n.undone,r2(e.mapping.maps[e.steps.length-1]),n.prevTime):new da(n.done,n.undone.addTransform(e,void 0,i,HA(t)),null,n.prevTime);if(!1===e.getMeta("addToHistory")||s&&!1===s.getMeta("addToHistory"))return(o=e.getMeta("rebased"))?new da(n.done.rebased(e,o),n.undone.rebased(e,o),ww(n.prevRanges,e.mapping),n.prevTime):new da(n.done.addMaps(e.mapping.maps),n.undone.addMaps(e.mapping.maps),ww(n.prevRanges,e.mapping),n.prevTime);{let a=0==n.prevTime||!s&&(n.prevTime<(e.time||0)-i.newGroupDelay||!function zpe(n,t){if(!t)return!1;if(!n.docChanged)return!0;let e=!1;return n.mapping.maps[0].forEach((i,r)=>{for(let o=0;o=t[o]&&(e=!0)}),e}(e,n.prevRanges)),l=s?ww(n.prevRanges,e.mapping):r2(e.mapping.maps[e.steps.length-1]);return new da(n.done.addTransform(e,a?t.selection.getBookmark():void 0,i,HA(t)),zr.empty,l,e.time)}}(e,i,t,n)},config:n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},props:{handleDOMEvents:{beforeinput(t,e){let i=e.inputType,r="historyUndo"==i?l2:"historyRedo"==i?c2:null;return!!r&&(e.preventDefault(),r(t.state,t.dispatch))}}}})}const l2=(n,t)=>{let e=vo.getState(n);return!(!e||0==e.done.eventCount||(t&&o2(e,n,t,!1),0))},c2=(n,t)=>{let e=vo.getState(n);return!(!e||0==e.undone.eventCount||(t&&o2(e,n,t,!0),0))},Vpe=Ft.create({name:"history",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:n,dispatch:t})=>l2(n,t),redo:()=>({state:n,dispatch:t})=>c2(n,t)}),addProseMirrorPlugins(){return[Hpe(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-\u044f":()=>this.editor.commands.undo(),"Shift-Mod-\u044f":()=>this.editor.commands.redo()}}}),Gpe=tn.create({name:"horizontalRule",addOptions:()=>({HTMLAttributes:{}}),group:"block",parseHTML:()=>[{tag:"hr"}],renderHTML({HTMLAttributes:n}){return["hr",Et(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n})=>n().insertContent({type:this.name}).command(({tr:t,dispatch:e})=>{var i;if(e){const{$to:r}=t.selection,o=r.end();if(r.nodeAfter)t.setSelection(Ee.create(t.doc,r.pos));else{const s=null===(i=r.parent.type.contentMatch.defaultType)||void 0===i?void 0:i.create();s&&(t.insert(o,s),t.setSelection(Ee.create(t.doc,o)))}t.scrollIntoView()}return!0}).run()}},addInputRules(){return[WR({find:/^(?:---|\u2014-|___\s|\*\*\*\s)$/,type:this.type})]}}),Ype=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,Wpe=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,Jpe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,Kpe=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,$pe=Qr.create({name:"italic",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"em"},{tag:"i",getAttrs:n=>"normal"!==n.style.fontStyle&&null},{style:"font-style=italic"}],renderHTML({HTMLAttributes:n}){return["em",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[dl({find:Ype,type:this.type}),dl({find:Jpe,type:this.type})]},addPasteRules(){return[na({find:Wpe,type:this.type}),na({find:Kpe,type:this.type})]}}),qpe=tn.create({name:"listItem",addOptions:()=>({HTMLAttributes:{}}),content:"paragraph block*",defining:!0,parseHTML:()=>[{tag:"li"}],renderHTML({HTMLAttributes:n}){return["li",Et(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),Xpe=/^(\d+)\.\s$/,Zpe=tn.create({name:"orderedList",addOptions:()=>({itemTypeName:"listItem",HTMLAttributes:{}}),group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes:()=>({start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}),parseHTML:()=>[{tag:"ol"}],renderHTML({HTMLAttributes:n}){const{start:t,...e}=n;return 1===t?["ol",Et(this.options.HTMLAttributes,e),0]:["ol",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n})=>n.toggleList(this.name,this.options.itemTypeName)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){return[sM({find:Xpe,type:this.type,getAttributes:n=>({start:+n[1]}),joinPredicate:(n,t)=>t.childCount+t.attrs.start===+n[1]})]}}),efe=tn.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:n}){return["p",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),tfe=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,nfe=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,ife=Qr.create({name:"strike",addOptions:()=>({HTMLAttributes:{}}),parseHTML:()=>[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>!!n.includes("line-through")&&{}}],renderHTML({HTMLAttributes:n}){return["s",Et(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-x":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[dl({find:tfe,type:this.type})]},addPasteRules(){return[na({find:nfe,type:this.type})]}}),rfe=tn.create({name:"text",group:"inline"}),u2=Ft.create({name:"starterKit",addExtensions(){var n,t,e,i,r,o,s,a,l,c,u,d,h,p,f,g,m,A;const y=[];return!1!==this.options.blockquote&&y.push(lpe.configure(null===(n=this.options)||void 0===n?void 0:n.blockquote)),!1!==this.options.bold&&y.push(ppe.configure(null===(t=this.options)||void 0===t?void 0:t.bold)),!1!==this.options.bulletList&&y.push(gpe.configure(null===(e=this.options)||void 0===e?void 0:e.bulletList)),!1!==this.options.code&&y.push(bpe.configure(null===(i=this.options)||void 0===i?void 0:i.code)),!1!==this.options.codeBlock&&y.push(Epe.configure(null===(r=this.options)||void 0===r?void 0:r.codeBlock)),!1!==this.options.document&&y.push(Cpe.configure(null===(o=this.options)||void 0===o?void 0:o.document)),!1!==this.options.dropcursor&&y.push(wpe.configure(null===(s=this.options)||void 0===s?void 0:s.dropcursor)),!1!==this.options.gapcursor&&y.push(kpe.configure(null===(a=this.options)||void 0===a?void 0:a.gapcursor)),!1!==this.options.hardBreak&&y.push(Ppe.configure(null===(l=this.options)||void 0===l?void 0:l.hardBreak)),!1!==this.options.heading&&y.push(Fpe.configure(null===(c=this.options)||void 0===c?void 0:c.heading)),!1!==this.options.history&&y.push(Vpe.configure(null===(u=this.options)||void 0===u?void 0:u.history)),!1!==this.options.horizontalRule&&y.push(Gpe.configure(null===(d=this.options)||void 0===d?void 0:d.horizontalRule)),!1!==this.options.italic&&y.push($pe.configure(null===(h=this.options)||void 0===h?void 0:h.italic)),!1!==this.options.listItem&&y.push(qpe.configure(null===(p=this.options)||void 0===p?void 0:p.listItem)),!1!==this.options.orderedList&&y.push(Zpe.configure(null===(f=this.options)||void 0===f?void 0:f.orderedList)),!1!==this.options.paragraph&&y.push(efe.configure(null===(g=this.options)||void 0===g?void 0:g.paragraph)),!1!==this.options.strike&&y.push(ife.configure(null===(m=this.options)||void 0===m?void 0:m.strike)),!1!==this.options.text&&y.push(rfe.configure(null===(A=this.options)||void 0===A?void 0:A.text)),y}});let ofe=(()=>{class n{constructor(e,i){this.el=e,this._renderer=i,this.outputFormat="html",this.onChange=()=>{},this.onTouched=()=>{},this.handleChange=({transaction:r})=>{if(r.docChanged){if("html"===this.outputFormat)return void this.onChange(this.editor.getHTML());this.onChange(this.editor.getJSON())}}}writeValue(e){!e||(!this.outputFormat&&"string"==typeof e&&(this.outputFormat="html"),this.editor.chain().setContent(e,!1).run())}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.editor.setEditable(!e),this._renderer.setProperty(this.el.nativeElement,"disabled",e)}ngOnInit(){if(!this.editor)throw new Error("Required: Input `editor`");const e=this.el.nativeElement.innerHTML;this.el.nativeElement.innerHTML="",this.el.nativeElement.appendChild(this.editor.options.element.firstChild),this.editor.setOptions({element:this.el.nativeElement}),e&&this.editor.chain().setContent(e,!1).run(),this.editor.on("blur",()=>{this.onTouched()}),this.editor.on("transaction",this.handleChange)}ngOnDestroy(){this.editor.destroy()}}return n.\u0275fac=function(e){return new(e||n)(T(St),T(qr))},n.\u0275dir=ue({type:n,selectors:[["tiptap","editor",""],["","tiptap","","editor",""],["tiptap-editor","editor",""],["","tiptapEditor","","editor",""]],inputs:{editor:"editor",outputFormat:"outputFormat"},features:[yt([{provide:Qi,useExisting:Je(()=>n),multi:!0}])]}),n})(),sfe=(()=>{class n{constructor(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=ve({type:n,selectors:[["dot-editor-count-bar"]],inputs:{characterCount:"characterCount",charLimit:"charLimit",readingTime:"readingTime"},decls:8,vars:6,template:function(e,i){1&e&&(x(0,"span"),de(1),B(),x(2,"span"),de(3,"\u25cf"),B(),de(4),x(5,"span"),de(6,"\u25cf"),B(),de(7)),2&e&&(Ms("error-message",i.charLimit&&i.characterCount.characters()>i.charLimit),v(1),bf(" ",i.characterCount.characters(),"",i.charLimit?"/"+i.charLimit:""," chars\n"),v(3),no("\n",i.characterCount.words()," words\n"),v(3),no("\n",i.readingTime,"m read\n"))},styles:["[_nghost-%COMP%]{display:flex;justify-content:flex-end;align-items:flex-end;color:#b3b1b8;margin-top:1rem;gap:.65rem;font-size:16px}[_nghost-%COMP%] .error-message[_ngcontent-%COMP%]{color:#d0021b}"]}),n})();function afe(n,t){if(1&n&&ie(0,"dot-editor-count-bar",4),2&n){const e=w(2);C("characterCount",e.characterCount)("charLimit",e.charLimit)("readingTime",e.readingTime)}}const lfe=function(n){return{"overflow-hidden":n}};function cfe(n,t){if(1&n){const e=Re();ct(0),x(1,"div",1)(2,"tiptap-editor",2),K("ngModelChange",function(r){return re(e),oe(w().content=r)})("keyup",function(){return re(e),oe(w().subject.next())}),B()(),S(3,afe,1,3,"dot-editor-count-bar",3),ut()}if(2&n){const e=w();v(1),An(e.customStyles),v(1),C("ngModel",e.content)("editor",e.editor)("ngClass",Wt(6,lfe,e.freezeScroll)),v(1),C("ngIf",e.showCharData)}}let dfe=(()=>{class n{constructor(e,i,r){this.injector=e,this.viewContainerRef=i,this.dotMarketingConfigService=r,this.lang=Um,this.displayCountBar=!0,this.content="",this.valueChange=new te,this.subject=new Me,this.freezeScroll=!0,this._allowedBlocks=["paragraph"],this._customNodes=new Map([["dotContent",Jie(this.injector)],["image",pi],["video",Zie],["table",Zoe.extend({resizable:!0})]]),this.destroy$=new Me}set showVideoThumbnail(e){this.dotMarketingConfigService.setProperty(Bh.SHOW_VIDEO_THUMBNAIL,e)}set allowedBlocks(e){const i=e?e.replace(/ /g,"").split(",").filter(Boolean):[];this._allowedBlocks=[...this._allowedBlocks,...i]}set value(e){"string"!=typeof e?this.setEditorJSONContent(e):this.content=(n=>{const t=new RegExp(/]*)>(.|\n)*?<\/p>/gm),e=new RegExp(/]*)>(.|\n)*?<\/h\d+>/gm),i=new RegExp(/]*)>(.|\n)*?<\/li>/gm),r=new RegExp(/<(ul|ol)(|\s+[^>]*)>(.|\n)*?<\/(ul|ol)>/gm);return n.replace(Xte,o=>(n=>{const t=document.createElement("div");t.innerHTML=n;const e=t.querySelector("a").getAttribute("href"),i=t.querySelector("a").getAttribute("href"),r=t.querySelector("a").getAttribute("alt");return n.replace(/]*)>/gm,"").replace(//gm,"").replace(dM,o=>o.replace(/img/gm,`img href="${e}" title="${i}" alt="${r}"`))})(o)).replace(t,o=>Qm(o)).replace(e,o=>Qm(o)).replace(i,o=>Qm(o)).replace(r,o=>Qm(o))})(e)}get characterCount(){return this.editor?.storage.characterCount}get showCharData(){try{return JSON.parse(this.displayCountBar)}catch{return!0}}get readingTime(){return Math.ceil(this.characterCount.words()/265)}loadCustomBlocks(e){return Mh(function*(){return Promise.allSettled(e.map(function(){var i=Mh(function*(r){return import(r)});return function(r){return i.apply(this,arguments)}}()))})()}ngOnInit(){Lt(this.getCustomRemoteExtensions()).pipe($n(1)).subscribe(e=>{this.editor=new fte({extensions:[...this.getEditorExtensions(),...this.getEditorMarks(),...this.getEditorNodes(),...e]}),this.editor.on("create",()=>this.updateChartCount()),this.subject.pipe(Yn(this.destroy$),zg(250)).subscribe(()=>this.updateChartCount()),this.editor.on("update",({editor:i})=>{this.valueChange.emit(JSON.stringify(i.getJSON()))}),this.editor.on("transaction",({editor:i})=>{this.freezeScroll=Th.getState(i.view.state)?.freezeScroll})})}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}updateChartCount(){const e=this.editor.state.tr.step(new pl("chartCount",this.characterCount.characters())).step(new pl("wordCount",this.characterCount.words())).step(new pl("readingTime",this.readingTime));this.editor.view.dispatch(e)}isValidSchema(e){LQ(e,El({extensions:UQ(El({url:Jh(),actions:zQ(UQ(El({command:Jh(),menuLabel:Jh(),icon:Jh()})))}))}))}getParsedCustomBlocks(){if(!this.customBlocks.length)return{extensions:[]};try{const i=JSON.parse(this.customBlocks);return this.isValidSchema(i),i}catch(i){return console.warn("JSON parse fails, please check the JSON format.",i),{extensions:[]}}}parsedCustomModules(e,i){return i.status===Oh.REJECTED&&console.warn("Failed to load the module",i.reason),i.status===Oh.FULFILLED?{...e,...i?.value}:{...e}}getCustomRemoteExtensions(){var e=this;return Mh(function*(){const i=e.getParsedCustomBlocks(),r=i?.extensions?.map(l=>l.url),o=yield e.loadCustomBlocks(r),s=[];i.extensions.forEach(l=>{s.push(...l.actions?.map(c=>c.name)||[])});const a=o.reduce(e.parsedCustomModules,{});return Object.values(a)})()}getEditorNodes(){return[this._allowedBlocks?.length>1?u2.configure(this.starterConfig()):u2,...this.getAllowedCustomNodes()]}starterConfig(){const r=["heading1","heading2","heading3","heading4","heading5","heading6"].filter(s=>this._allowedBlocks?.includes(s)).map(s=>+s.slice(-1)),o=["orderedList","bulletList","blockquote","codeBlock","horizontalRule"].filter(s=>!this._allowedBlocks?.includes(s)).reduce((s,a)=>({...s,[a]:!1}),{});return{heading:!!r?.length&&{levels:r,HTMLAttributes:{}},...o}}getAllowedCustomNodes(){const e=[];if(this._allowedBlocks.length<=1)return[...this._customNodes.values()];for(const i of this._allowedBlocks){const r=this._customNodes.get(i);r&&e.push(r)}return e}getEditorExtensions(){return[Gre({lang:this.lang,allowedContentTypes:this.allowedContentTypes,allowedBlocks:this._allowedBlocks}),ipe.configure({placeholder:this.placeholder}),une(this.viewContainerRef,this.getParsedCustomBlocks()),nse(this.viewContainerRef),Sse(this.injector,this.viewContainerRef),bre(this.viewContainerRef),Vre(this.viewContainerRef),Bre(this.viewContainerRef),bse(this.injector,this.viewContainerRef),$re(this.viewContainerRef),wse(this.viewContainerRef),qre.extend({renderHTML({HTMLAttributes:n}){return["th",Et(this.options.HTMLAttributes,n),["button",{class:"dot-cell-arrow"}],["p",0]]}}),rpe,xse,Nhe]}getEditorMarks(){return[spe,ope.configure({types:["heading","paragraph","listItem","dotImage"]}),Uhe.configure({HTMLAttributes:{style:"background: #accef7;"}}),npe.configure({autolink:!1,openOnClick:!1})]}placeholder({node:e}){return e.type.name===Zn.HEADING?`${function ufe(n){return n.replace(/\p{L}+('\p{L}+)?/gu,function(t){return t.charAt(0).toUpperCase()+t.slice(1)})}(e.type.name)} ${e.attrs.level}`:e.type.name!==Zn.CODE_BLOCK?'Type "/" for commmands':void 0}setEditorJSONContent(e){this.content=this._allowedBlocks?.length>1?((n,t)=>{const e=(n=>n.reduce((t,e)=>eN[e]?{...t,...eN[e]}:{...t,[e]:!0},Jte))(this._allowedBlocks),i=Array.isArray(n)?[...n]:[...n.content];return tN(i,e)})(e):e}}return n.\u0275fac=function(e){return new(e||n)(T(Tn),T(Ni),T(qR))},n.\u0275cmp=ve({type:n,selectors:[["dot-block-editor"]],inputs:{lang:"lang",allowedContentTypes:"allowedContentTypes",customStyles:"customStyles",displayCountBar:"displayCountBar",charLimit:"charLimit",customBlocks:"customBlocks",content:"content",showVideoThumbnail:"showVideoThumbnail",allowedBlocks:"allowedBlocks",value:"value"},outputs:{valueChange:"valueChange"},decls:1,vars:1,consts:[[4,"ngIf"],[1,"editor-wrapper"],[3,"ngModel","editor","ngClass","ngModelChange","keyup"],[3,"characterCount","charLimit","readingTime",4,"ngIf"],[3,"characterCount","charLimit","readingTime"]],template:function(e,i){1&e&&S(0,cfe,4,8,"ng-container",0),2&e&&C("ngIf",i.editor)},dependencies:[zn,Pt,Pd,Ag,ofe,sfe],styles:['@import"https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400&display=swap";@import"https://fonts.googleapis.com/icon?family=Material+Icons";@font-face{font-family:primeicons;font-display:block;font-weight:400;font-style:normal;src:url(data:application/font-woff;base64,d09GRgABAAAAAQSgAAsAAAABBFQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIHFmNtYXAAAAFoAAAAVAAAAFQXVtN1Z2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAA+PAAAPjwt9TQjGhlYWQAAPq0AAAANgAAADYegaTEaGhlYQAA+uwAAAAkAAAAJAfqBMBobXR4AAD7EAAAA8wAAAPMwkwotGxvY2EAAP7cAAAB6AAAAeht864ebWF4cAABAMQAAAAgAAAAIAECAaduYW1lAAEA5AAAA5wAAAOcIOdgrHBvc3QAAQSAAAAAIAAAACAAAwAAAAMD/gGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6e4DwP/A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ljb24gTGlicmFyeSBmb3IgUHJpbWUgVUkgTGlicmFyaWVzCkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEkAYwBvAG4AIABMAGkAYgByAGEAcgB5ACAAZgBvAHIAIABQAHIAaQBtAGUAIABVAEkAIABMAGkAYgByAGEAcgBpAGUAcwAKAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALmh0dHBzOi8vZ2l0aHViLmNvbS9wcmltZWZhY2VzL3ByaW1laWNvbnMAaAB0AHQAcABzADoALwAvAGcAaQB0AGgAdQBiAC4AYwBvAG0ALwBwAHIAaQBtAGUAZgBhAGMAZQBzAC8AcAByAGkAbQBlAGkAYwBvAG4Ac01JVABNAEkAVGh0dHBzOi8vb3BlbnNvdXJjZS5vcmcvbGljZW5zZXMvTUlUAGgAdAB0AHAAcwA6AC8ALwBvAHAAZQBuAHMAbwB1AHIAYwBlAC4AbwByAGcALwBsAGkAYwBlAG4AcwBlAHMALwBNAEkAVFZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMHByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4Ac3ByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcnByaW1laWNvbnMAcAByAGkAbQBlAGkAYwBvAG4AcwADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) format("woff")}[_nghost-%COMP%] .form__buttons{display:flex;justify-content:center;margin-top:4.5rem}[_nghost-%COMP%] .form__buttons button{margin:0 .5rem}[_nghost-%COMP%] .form__group{margin:1rem 0;position:relative}[_nghost-%COMP%] .form__group:after{clear:both;content:"";display:table}[_nghost-%COMP%] .form__group .md-inputtext, [_nghost-%COMP%] .form__group>.ui-inputtext{width:100%}.ui-dialog-content [_nghost-%COMP%] .form__group:first-child{padding-top:0}.ui-dialog-content [_nghost-%COMP%] .form__group:last-child{padding-bottom:0}[_nghost-%COMP%] .form__group .ui-dropdown{width:100%}[_nghost-%COMP%] .form__group--validation{min-height:60px}[_nghost-%COMP%] .form__group--helper{position:relative}[_nghost-%COMP%] .form__group--helper input[pinputtext]{padding-right:4.5rem}[_nghost-%COMP%] .form__group--helper dot-field-helper{position:absolute;top:1.5rem;right:0;z-index:1}[_nghost-%COMP%] .p-field-hint, [_nghost-%COMP%] .form__group-hint{color:#7e7a86;display:block;font-size:.85rem;margin-top:.25rem}[_nghost-%COMP%] .form__label{color:#524e5c99;display:block;font-size:.85rem}[_nghost-%COMP%] .form__hint-icon{border-radius:50%;border:solid 1px;color:#7e7a86;cursor:pointer;margin-left:1rem;text-align:center;width:15px}.form__group [_nghost-%COMP%] .form__hint-icon:first-child{margin:0;position:absolute;right:0;top:32px;z-index:1}.form__group:first-child [_nghost-%COMP%] .form__hint-icon:first-child{top:25px}[_nghost-%COMP%] .form-group__two-cols>*:first-child{display:inline-block;padding-bottom:.5rem}@media (min-width: 40.063em){[_nghost-%COMP%] .form-group__two-cols{align-items:center;display:flex;justify-content:space-between}[_nghost-%COMP%] .form-group__two-cols>*:first-child{padding-bottom:0}}[_nghost-%COMP%] h1, [_nghost-%COMP%] h2, [_nghost-%COMP%] h3, [_nghost-%COMP%] h4, [_nghost-%COMP%] h5{font-weight:400;line-height:1.5}[_nghost-%COMP%] h1{font-size:4.28rem;letter-spacing:-.5px}[_nghost-%COMP%] h2{font-size:3.43rem}[_nghost-%COMP%] h3{font-size:2.43rem;letter-spacing:.25px}[_nghost-%COMP%] h4{font-size:1.71rem}[_nghost-%COMP%] h5{font-size:1.43rem}[_nghost-%COMP%] .p-component{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;font-weight:400;line-height:normal}[_nghost-%COMP%] .p-component-overlay{background-color:#fff9;transition-duration:.2s}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-component:disabled{opacity:.38}[_nghost-%COMP%] .p-text-secondary{color:#11152e}[_nghost-%COMP%] .pi{font-size:1rem}[_nghost-%COMP%] .p-link{font-size:1rem;font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;border-radius:2px}[_nghost-%COMP%] .p-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button{width:auto}[_nghost-%COMP%] .p-fluid .p-inputgroup .p-button.p-button-icon-only{width:2.5rem}[_nghost-%COMP%] .p-field>label{font-size:.85rem}[_nghost-%COMP%] .formgroup-inline .field-checkbox, [_nghost-%COMP%] .formgroup-inline .field-checkbox{margin-bottom:0}[_nghost-%COMP%] .p-label-input-required:after{content:"*";color:red;margin-left:2px;vertical-align:middle}[_nghost-%COMP%] .p-button.p-autocomplete-dropdown{padding-left:1rem;padding-right:1rem}[_nghost-%COMP%] .p-autocomplete .p-autocomplete-loader{right:.75rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-dd .p-autocomplete-loader{right:3rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container{padding:.375rem .75rem}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled):hover{border-color:#11152e}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-input-token input{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;padding:0;margin:0}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token{padding:.375rem .75rem;margin-right:.5rem;background:rgba(63,81,181,.12);color:var(--color-main);border-radius:2px}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon{margin-left:.5rem}[_nghost-%COMP%] .p-autocomplete.p-error>.p-inputtext, [_nghost-%COMP%] .p-autocomplete.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] p-autocomplete.ng-dirty.ng-invalid>.p-autocomplete>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-autocomplete-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items{padding:0}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-autocomplete.p-autocomplete-multiple .p-autocomplete-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-autocomplete-dropdown{background:#fff;border:1px solid #b3b1b8;border-top-right-radius:2px;border-bottom-right-radius:2px;border-left:none;padding:0;min-width:3rem}[_nghost-%COMP%] .p-autocomplete-dropdown:enabled:hover, [_nghost-%COMP%] .p-autocomplete-dropdown:enabled:focus{background:#f1f1f1;border:1px solid #b3b1b8;border-left:none}[_nghost-%COMP%] .p-autocomplete-dropdown .p-button-icon:before{color:gray}[_nghost-%COMP%] .p-badge{background:var(--color-main);color:#fff;font-size:.75rem;font-weight:700;min-width:1.5rem;height:1.5rem;line-height:1.5;display:inline-flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-badge.p-badge-secondary{background-color:initial;color:var(--color-sec);border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-badge.p-badge-lg{font-size:1.125rem;min-width:2.5rem;height:2.5rem}[_nghost-%COMP%] .p-badge.p-badge-xl{font-size:1.5rem;min-width:3rem;height:3rem}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi{color:#b3b1b8}[_nghost-%COMP%] .p-breadcrumb ul>.p-breadcrumb-chevron.pi:not(:nth-child(2)){font-size:.75rem}[_nghost-%COMP%] .p-breadcrumb ul li:first-child{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li:nth-child(2):before{content:"";width:1px;height:20px;background:#b3b1b8;display:block}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link{transition:none;border-radius:2px}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text{font-size:1.25rem}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link[href] .p-menuitem-text:hover{color:var(--color-main);text-decoration:underline}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-text{color:#7e7a86}[_nghost-%COMP%] .p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-breadcrumb ul li.p-breadcrumb-chevron{margin:0 .5rem;color:#11152e}[_nghost-%COMP%] .p-breadcrumb ul li:last-child .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-button{background:var(--color-main);border-radius:2px;border:0 none;border:solid 1px transparent;color:#fff;font-size:1rem;font-weight:500;line-height:normal;padding:.75rem 2rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-button:enabled:hover, [_nghost-%COMP%] .p-button:enabled:active, [_nghost-%COMP%] .p-button:enabled:focus{background:rgba(var(--color-main_rgb),.72);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text{background-color:transparent;color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text:enabled:hover, [_nghost-%COMP%] .p-button.p-button-text:enabled:focus{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain{color:#11152e}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain:enabled:hover{background:rgba(0,0,0,.04);color:#11152e}[_nghost-%COMP%] .p-button.p-button-text.p-button-plain:enabled:active{background:rgba(0,0,0,.16);color:#11152e}[_nghost-%COMP%] .p-button.p-button-vertical{font-size:1rem;padding:.5rem .75rem;color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-vertical:enabled:hover, [_nghost-%COMP%] .p-button.p-button-vertical:enabled:focus{color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-vertical .p-button-icon{margin:0 0 .25rem;font-size:1.5rem}[_nghost-%COMP%] .p-button:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px rgba(var(--color-sec_rgb),.2)}[_nghost-%COMP%] .p-button .p-button-icon-left{margin-right:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-right{margin-left:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-bottom{margin-top:.5rem}[_nghost-%COMP%] .p-button .p-button-icon-top{margin-bottom:.5rem}[_nghost-%COMP%] .p-button .p-badge{margin-left:.5rem;min-width:1rem;height:1rem;line-height:1rem;color:var(--color-main);background-color:#fff}[_nghost-%COMP%] .p-button.p-button-raised{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-button.p-button-rounded{border-radius:2rem}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only{color:#524e5c;padding:.571rem;min-width:auto}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:hover{color:#524e5c}[_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:active, [_nghost-%COMP%] .p-button-rounded.p-button.p-button-icon-only:enabled:focus{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-button.p-button-icon-only{padding-left:.75rem;padding-right:.75rem}[_nghost-%COMP%] .p-button.p-button-icon-only .p-button-icon-left, [_nghost-%COMP%] .p-button.p-button-icon-only .p-button-icon-right{margin:0}[_nghost-%COMP%] .p-button.p-button-icon-only.p-button-rounded{border-radius:50%;height:3rem;width:3rem}[_nghost-%COMP%] .p-button.p-button-sm{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-button.p-button-sm .p-button-icon{font-size:.85rem}[_nghost-%COMP%] .p-button.p-button-lg{font-size:1.5rem;padding:.75rem 2rem}[_nghost-%COMP%] .p-button.p-button-lg .p-button-icon{font-size:1.5rem}[_nghost-%COMP%] .p-fluid .p-button-icon-only{width:3rem}[_nghost-%COMP%] .p-fluid .p-buttonset{display:flex}[_nghost-%COMP%] .p-fluid .p-buttonset .p-button{flex:1}[_nghost-%COMP%] .p-button.p-button-disabled, [_nghost-%COMP%] .p-buttonset.p-button-disabled>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-disabled>.p-button{color:#b3b1b8;background:rgba(0,0,0,.12);border:none}[_nghost-%COMP%] .p-button.p-button-secondary, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button{color:var(--color-sec);border-top:1px solid var(--color-sec);border-left:1px solid var(--color-sec);border-bottom:1px solid var(--color-sec);background:none}[_nghost-%COMP%] .p-button.p-button-secondary{border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary:hover{background:none;border-right:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary:disabled{border-color:transparent}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:hover{border-top:1px solid var(--color-main);border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);color:var(--color-main)}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:hover~.p-splitbutton-menubutton, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:hover~.p-splitbutton-menubutton, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:hover~.p-splitbutton-menubutton{border-left:1px solid var(--color-main)}[_nghost-%COMP%] .p-button-secondary.p-confirm-dialog-reject{border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button-secondary.p-confirm-dialog-reject:hover{border-color:var(--color-main);background:none}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-button.p-button-secondary:enabled:focus{background:none;border-color:transparent;color:var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-info, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button{color:#fff;background:#2196f3;border:0 none}[_nghost-%COMP%] .p-button.p-button-info:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:hover{background:rgba(33,150,243,.92);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-info:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-button.p-button-info:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button:enabled:active{background:rgba(33,150,243,.68);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button{color:#fff;background:#d32f2f;border:0 none}[_nghost-%COMP%] .p-button.p-button-danger:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:hover{background:rgba(211,47,47,.92);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-button.p-button-danger:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:active{background:rgba(211,47,47,.68);color:#fff;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text{background-color:transparent;color:#d32f2f;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:hover{background:rgba(211,47,47,.04);border-color:transparent;color:#d32f2f}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:active{background:rgba(211,47,47,.16);border-color:transparent;color:#d32f2f}[_nghost-%COMP%] .p-button.p-button-link{color:var(--color-main);background:transparent;border:transparent;text-decoration:underline}[_nghost-%COMP%] .p-button-label{text-transform:uppercase;font-weight:500}[_nghost-%COMP%] .p-button.p-button-link:enabled:hover{background:transparent;border-color:transparent;color:var(--color-main)}[_nghost-%COMP%] .p-button.p-button-link:enabled:hover .p-button-label{text-decoration:underline}[_nghost-%COMP%] .p-button.p-button-link:enabled:focus{background:transparent;box-shadow:none;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-link:enabled:active{background:transparent;color:transparent;border-color:transparent}[_nghost-%COMP%] .p-button.p-button-link.p-button-sm{padding:0 .75rem}[_nghost-%COMP%] .p-button .p-ink{background-color:rgba(var(--color-white_rgb),.32)}[_nghost-%COMP%] .p-button:disabled{background-color:#0000001f!important;color:#b3b1b8!important;opacity:1}[_nghost-%COMP%] .p-button:disabled.p-button-link{background-color:transparent!important}[_nghost-%COMP%] .p-button:disabled.p-button-text{background-color:transparent!important;color:#b3b1b8!important}[_nghost-%COMP%] .p-button:disabled.p-button-outlined{background-color:transparent!important;border-color:#b3b1b8;color:#b3b1b8}[_nghost-%COMP%] .p-button.p-button-raised:enabled:focus{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:focus{border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button:enabled:active{border:1px solid var(--color-sec)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text:enabled:focus{background:rgba(255,64,129,.12)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text:enabled:active{background:rgba(255,64,129,.16)}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-text .p-ink, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-text .p-ink, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-text .p-ink{background-color:#ff408129}[_nghost-%COMP%] .p-button.p-button-danger:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:focus{background:rgba(211,47,47,.76)}[_nghost-%COMP%] .p-button.p-button-danger:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button:enabled:active{background:rgba(211,47,47,.68)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:focus, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:focus, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:focus{background:rgba(211,47,47,.12)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text:enabled:active{background:rgba(211,47,47,.16)}[_nghost-%COMP%] .p-button.p-button-danger.p-button-text .p-ink, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-text .p-ink, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-text .p-ink{background-color:#d32f2f29}[_nghost-%COMP%] .p-button.p-button-outlined{background-color:transparent;color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined:enabled:hover{background:rgba(33,150,243,.04);color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined:enabled:active{background:rgba(33,150,243,.16);color:var(--color-main);border:1px solid}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain{color:#6c757d;border-color:#6c757d}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain:enabled:hover{background:#e9ecef;color:#6c757d}[_nghost-%COMP%] .p-button.p-button-outlined.p-button-plain:enabled:active{background:#dee2e6;color:#6c757d}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined{background-color:transparent;color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined:enabled:hover{background:rgba(96,125,139,.04);color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-secondary.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-secondary>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-button.p-button-outlined:enabled:active{background:rgba(96,125,139,.16);color:#607d8b;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined{background-color:transparent;color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined:enabled:hover{background:rgba(2,136,209,.04);color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-info.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-info>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-info>.p-button.p-button-outlined:enabled:active{background:rgba(2,136,209,.16);color:#0288d1;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined{background-color:transparent;color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined:enabled:hover{background:rgba(104,159,56,.04);color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-success.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-success>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-success>.p-button.p-button-outlined:enabled:active{background:rgba(104,159,56,.16);color:#689f38;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined{background-color:transparent;color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined:enabled:hover{background:rgba(251,192,45,.04);color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-warning.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-warning>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-warning>.p-button.p-button-outlined:enabled:active{background:rgba(251,192,45,.16);color:#fbc02d;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined{background-color:transparent;color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined:enabled:hover{background:rgba(156,39,176,.04);color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-help.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-help>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-help>.p-button.p-button-outlined:enabled:active{background:rgba(156,39,176,.16);color:#9c27b0;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined{background-color:transparent;color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined:enabled:hover, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined:enabled:hover{background:rgba(211,47,47,.04);color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-button.p-button-danger.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-buttonset.p-button-danger>.p-button.p-button-outlined:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-danger>.p-button.p-button-outlined:enabled:active{background:rgba(211,47,47,.16);color:#d32f2f;border:1px solid}[_nghost-%COMP%] .p-calendar.p-error>.p-inputtext, [_nghost-%COMP%] .p-calendar.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-calendar.ng-dirty.ng-invalid>.p-calendar>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-calendar-w-btn{border:1px solid #b3b1b8;background:#ffffff;border-radius:2px}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext{background-image:none;background:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-inputtext:enabled:focus{box-shadow:none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button{background-color:transparent;border:0 none}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button span{color:#11152e}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:enabled:hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-calendar-w-btn .p-datepicker-trigger.p-button:focus{background:#11152e}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled):hover{border-color:#11152e}[_nghost-%COMP%] .p-calendar-w-btn:not(.p-disabled).p-inputwrapper-focus{border-color:#b3b1b8;box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-datepicker{padding:.5rem;background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline){background:#ffffff;border:0 none;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-datepicker-inline) .p-datepicker-header{background:#ffffff}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{padding:.5rem;color:#11152e;background:#ffffff;font-weight:500;margin:0;border-bottom:1px solid #e2e2e2;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev:focus, [_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{line-height:2rem}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select{transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title select:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month{margin-right:.5rem}[_nghost-%COMP%] .p-datepicker table{font-size:1rem;margin:.5rem 0}[_nghost-%COMP%] .p-datepicker table th{padding:.5rem}[_nghost-%COMP%] .p-datepicker table th>span{width:3rem;height:3rem}[_nghost-%COMP%] .p-datepicker table td{padding:.5rem}[_nghost-%COMP%] .p-datepicker table td>span{width:3rem;height:3rem;border-radius:50%;transition:none;border:1px solid transparent}[_nghost-%COMP%] .p-datepicker table td>span.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker table td>span:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span{background:#ffffff;color:#11152e;border-color:#b3b1b8}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today>span.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar{padding:.75rem 0;border-top:1px solid #e2e2e2}[_nghost-%COMP%] .p-datepicker .p-datepicker-buttonbar .p-button{width:auto}[_nghost-%COMP%] .p-datepicker .p-timepicker{border-top:1px solid #e2e2e2;padding:.5rem}[_nghost-%COMP%] .p-datepicker .p-timepicker button{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datepicker .p-timepicker button:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker .p-timepicker button:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker .p-timepicker button:last-child{margin-top:.2em}[_nghost-%COMP%] .p-datepicker .p-timepicker span{font-size:1rem}[_nghost-%COMP%] .p-datepicker .p-timepicker>div{padding:0 .5rem}[_nghost-%COMP%] .p-datepicker.p-datepicker-timeonly .p-timepicker{border-top:0 none}[_nghost-%COMP%] .p-datepicker .p-monthpicker{margin:.5rem 0}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month{padding:.5rem;transition:none;border-radius:2px}[_nghost-%COMP%] .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group{border-right:1px solid #e2e2e2;padding-right:.5rem;padding-left:.5rem;padding-top:0;padding-bottom:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child{padding-left:0}[_nghost-%COMP%] .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child{padding-right:0;border-right:0 none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}@media screen and (max-width: 769px){[_nghost-%COMP%] .p-datepicker table th, [_nghost-%COMP%] .p-datepicker table td{padding:0}}[_nghost-%COMP%] .p-datepicker .p-datepicker-header{border-bottom:0 none}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-title{margin:0 auto 0 0;order:1}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-prev{order:2}[_nghost-%COMP%] .p-datepicker .p-datepicker-header .p-datepicker-next{order:3}[_nghost-%COMP%] .p-datepicker table th{border-bottom:1px solid #e2e2e2;color:#b3b1b8;font-weight:400;font-size:.875rem}[_nghost-%COMP%] .p-datepicker table td.p-datepicker-today.p-highlight{box-shadow:0 0 0 1px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] p-checkbox.ng-dirty.ng-invalid>.p-checkbox>.p-checkbox-box{border-color:#d0021b}@keyframes checkbox-check{0%{width:0;height:0;border-color:#fff;transform:translateZ(0) rotate(45deg)}33%{width:4px;height:0;transform:translateZ(0) rotate(45deg)}to{width:4px;height:10px;border-color:#fff;transform:translate3d(0,-10px,0) rotate(45deg)}}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-checkbox{width:18px;height:18px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box{border:2px solid #7e7a86;background:#ffffff;width:18px;height:18px;color:#11152e;border-radius:2px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);position:relative}[_nghost-%COMP%] .p-checkbox .p-checkbox-box .p-checkbox-icon{transition-duration:.2s;color:#fff;font-size:14px}[_nghost-%COMP%] .p-checkbox .p-checkbox-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight{border-color:var(--color-main);background:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-main);background:var(--color-main);color:#fff}[_nghost-%COMP%] .p-checkbox.p-error>.p-checkbox-box, [_nghost-%COMP%] .p-checkbox.p-invalid>.p-checkbox-box{border-color:#d0021b}[_nghost-%COMP%] .p-checkbox-label{margin-left:.5rem}[_nghost-%COMP%] .p-checkbox{border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-main)}[_nghost-%COMP%] .p-checkbox .p-checkbox-box.p-highlight .p-checkbox-icon:before{content:"";position:absolute;top:8px;left:2px;border-right:2px solid transparent;border-bottom:2px solid transparent;transform:rotate(45deg);transform-origin:0% 100%;animation:checkbox-check 125ms 50ms linear forwards}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-checkbox:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled):hover{box-shadow:0 0 1px 10px #3f51b50a}[_nghost-%COMP%] .p-checkbox.p-checkbox-checked:not(.p-checkbox-disabled).p-checkbox-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] p-chips.ng-dirty.ng-invalid>.p-chips>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-chips .p-chips-multiple-container{padding:.375rem .75rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token{padding:.375rem .75rem;margin-right:.5rem;background:rgba(var(--color-sec_rgb),.12);color:var(--color-main);border-radius:2px}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon{margin-left:.5rem}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token{padding:.375rem 0}[_nghost-%COMP%] .p-chips .p-chips-multiple-container .p-chips-input-token input{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;padding:0;margin:0}[_nghost-%COMP%] .p-chips.p-error>.p-inputtext, [_nghost-%COMP%] .p-chips.p-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-contextmenu{padding:.5rem 0;background:#ffffff;color:#11152e;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;width:12.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link{padding:.75rem;color:#11152e;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-menuitem-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-contextmenu .p-submenu-list{padding:.5rem 0;background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-menuitem-icon, [_nghost-%COMP%] .p-contextmenu .p-menuitem.p-menuitem-active>.p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-contextmenu .p-menu-separator{border-top:1px solid rgba(0,0,0,.12);margin:.5rem 0}[_nghost-%COMP%] .p-contextmenu .p-submenu-icon{font-size:.875rem}[_nghost-%COMP%] .p-datatable .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-datatable .p-datatable-header{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-footer{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th{background:#ffffff;border:1px solid #e2e2e2;border-width:0 0 1px 0;color:#7e7a86;font-size:.85rem;font-weight:500;padding:.75rem;text-align:left;transition:none}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-thead>tr>th:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tfoot>tr>td{text-align:left;padding:.75rem;border:1px solid #b3b1b8;border-width:0 0 1px 0;font-weight:500;color:#11152e;background:#ffffff}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline-color:transparent}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-icon{color:#7e7a86;margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column .p-sortable-column-badge{border-radius:50%;height:1.143rem;min-width:1.143rem;line-height:1.143rem;color:var(--color-main);background:rgba(var(--color-sec_rgb),.12);margin-left:.5rem}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.05);color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon{color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight{background:#ffffff;color:#11152e}[_nghost-%COMP%] .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon{color:#11152e}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{background:#ffffff;color:#11152e;height:4rem;transition:none;outline-color:transparent;cursor:pointer;overflow-wrap:anywhere}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td{text-align:left;border:1px solid #e2e2e2;border-width:0 0 1px 0;padding:.5rem .75rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:first-child{padding-left:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td:last-child{padding-right:2rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:enabled:hover, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-toggler:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-init:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save:focus, [_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-cancel:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr>td .p-row-editor-save{margin-right:.5rem}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.disabled-row{background:#f1f3f4;color:#7e7a86;cursor:default}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-top>td{box-shadow:inset 0 2px 0 0 rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr.p-datatable-dragpoint-bottom>td{box-shadow:inset 0 -2px 0 0 rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.05);color:#11152e}[_nghost-%COMP%] .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody>tr.disabled-row:hover{background:#f1f3f4;color:#7e7a86}[_nghost-%COMP%] .p-datatable .p-column-resizer-helper{background:var(--color-main)}[_nghost-%COMP%] .p-datatable .p-datatable-scrollable-header, [_nghost-%COMP%] .p-datatable .p-datatable-scrollable-footer{background:#ffffff}[_nghost-%COMP%] .p-datatable .p-datatable-loading-icon{font-size:3rem;color:var(--color-sec)}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-header{border-width:1px 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-footer{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-top{border-width:0 1px 0 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-paginator-bottom{border-width:0 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-thead>tr>th{border-width:1px 1px 1px 1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tbody>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-gridlines .p-datatable-tfoot>tr>td{border-width:1px}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even){background:rgba(0,0,0,.02)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight{background:rgba(var(--color-sec_rgb),.05);color:var(--color-main)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler{color:var(--color-main)}[_nghost-%COMP%] .p-datatable.p-datatable-striped .p-datatable-tbody>tr:nth-child(even).p-highlight .p-row-toggler:hover{color:#11152e}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-header{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-thead>tr>th{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tbody>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-tfoot>tr>td{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-sm .p-datatable-footer{padding:.375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-header{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-thead>tr>th{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tbody>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-tfoot>tr>td{padding:.9375rem}[_nghost-%COMP%] .p-datatable.p-datatable-lg .p-datatable-footer{padding:.9375rem}[_nghost-%COMP%] .p-datatable .p-sortable-column{outline:0 none}[_nghost-%COMP%] .p-datatable .p-sortable-column:focus{background-color:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr{outline:0 none}[_nghost-%COMP%] .p-datatable .p-datatable-tbody>tr:not(.p-highlight):focus{background-color:rgba(var(--color-sec_rgb),.05)}[_nghost-%COMP%] .p-dataview .p-paginator-top{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-paginator-bottom{border-width:0 0 1px 0;border-radius:0}[_nghost-%COMP%] .p-dataview .p-dataview-header{background:#ffffff;color:#000001;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500}[_nghost-%COMP%] .p-dataview .p-dataview-content{background:#ffffff;color:#000001;border:0 none;padding:.75rem}[_nghost-%COMP%] .p-dataview.p-dataview-list .p-dataview-content>.grid>div{border:solid rgba(0,0,0,.12);border-width:0 0 1px 0}[_nghost-%COMP%] .p-dataview .p-dataview-footer{background:#ffffff;color:#000001;border:1px solid #b3b1b8;border-width:0 0 1px 0;padding:.75rem;font-weight:500;border-bottom-left-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-dataview .p-dataview-loading-icon{font-size:2rem}[_nghost-%COMP%] .p-dataview .p-dataview-emptymessage{padding:.75rem}[_nghost-%COMP%] .p-dialog{border-radius:2px;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f;border:0 none}[_nghost-%COMP%] .p-dialog .p-dialog-header{border-bottom:0 none;background:#ffffff;color:#11152e;padding:2.5rem;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-title{font-size:1.5rem;font-size:1.7rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon{width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s;margin-right:.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 4px rgba(var(--color-sec_rgb),.2)}[_nghost-%COMP%] .p-dialog .p-dialog-header .p-dialog-header-icon:last-child{margin-right:0}[_nghost-%COMP%] .p-dialog .p-dialog-content{background:#ffffff;color:#11152e;padding:0 2.5rem 2.5rem}[_nghost-%COMP%] .p-dialog .p-dialog-footer{border-top:0 none;background:#ffffff;color:#11152e;padding:1.5rem;text-align:right;border-bottom-right-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-dialog .p-dialog-footer button{margin:0 .5rem 0 0;width:auto}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-icon{font-size:3rem}[_nghost-%COMP%] .p-dialog.p-confirm-dialog .p-confirm-dialog-message{line-height:1.5em}[_nghost-%COMP%] .p-dialog-mask.p-component-overlay{background-color:#11152ecc;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] p-dynamicdialog .p-component-overlay{align-items:baseline;padding:7rem}[_nghost-%COMP%] .p-dropdown{background:#ffffff;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:2px}[_nghost-%COMP%] .p-dropdown:not(.p-disabled):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-dropdown.p-dropdown-clearable .p-dropdown-label{padding-right:2.5rem}[_nghost-%COMP%] .p-dropdown .p-dropdown-label{background:transparent;border:0 none}[_nghost-%COMP%] .p-dropdown .p-dropdown-label.p-placeholder{color:#11152e}[_nghost-%COMP%] .p-dropdown .p-dropdown-label:enabled:focus{outline:0 none;box-shadow:none}[_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background:transparent;color:#1b3359;width:2.357rem;border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-dropdown .p-dropdown-clear-icon{color:#11152e;right:2.357rem}[_nghost-%COMP%] .p-dropdown-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter{padding-right:3rem}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items{padding:0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message{padding:.75rem;color:#11152e;background:transparent}[_nghost-%COMP%] .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group{margin:0;padding:.75rem;color:#11152e;background:#ffffff;font-weight:400}[_nghost-%COMP%] .p-dropdown-panel.p-error, [_nghost-%COMP%] .p-dropdown-panel.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-dropdown.ng-dirty.ng-invalid>.p-dropdown{border-color:#d0021b}[_nghost-%COMP%] .p-dropdown .p-inputtext, [_nghost-%COMP%] .p-dropdown .p-dropdown-trigger{background-image:none;background:transparent}[_nghost-%COMP%] .p-dropdown .p-inputtext{border:0 none}[_nghost-%COMP%] .p-dropdown:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-dropdown-item .p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-dropdown-sm .p-dropdown .p-dropdown-label{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-float-label>label{left:.75rem;color:#11152e;transition-duration:.2s}[_nghost-%COMP%] .p-float-label .p-autocomplete-multiple-container .p-autocomplete-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label .p-chips-multiple-container .p-chips-token{padding:.25rem 1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.5rem!important;background-color:#fff;padding:2px 4px;margin-left:-4px;margin-top:0}[_nghost-%COMP%] .p-float-label textarea~label{margin-top:0}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label{color:#11152e}[_nghost-%COMP%] .p-inplace .p-inplace-display{padding:1rem;border-radius:2px;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-inplace .p-inplace-display:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-inplace .p-inplace-display:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputgroup-addon{background:#ffffff;color:#11152e;border-top:1px solid #b3b1b8;border-left:1px solid #b3b1b8;border-bottom:1px solid #b3b1b8;padding:.75rem;min-width:2.357rem}[_nghost-%COMP%] .p-inputgroup-addon:last-child{border-right:1px solid #b3b1b8}[_nghost-%COMP%] .p-inputgroup>.p-component, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component{border-radius:0;margin:0}[_nghost-%COMP%] .p-inputgroup>.p-component+.p-inputgroup-addon, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component+.p-inputgroup-addon{border-left:0 none}[_nghost-%COMP%] .p-inputgroup>.p-component:focus, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component:focus{z-index:1}[_nghost-%COMP%] .p-inputgroup>.p-component:focus~label, [_nghost-%COMP%] .p-inputgroup>.p-float-label>.p-component:focus~label{z-index:1}[_nghost-%COMP%] .p-inputgroup-addon:first-child, [_nghost-%COMP%] .p-inputgroup button:first-child, [_nghost-%COMP%] .p-inputgroup input:first-child{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-inputgroup .p-float-label:first-child input{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-inputgroup-addon:last-child, [_nghost-%COMP%] .p-inputgroup button:last-child, [_nghost-%COMP%] .p-inputgroup input:last-child{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-inputgroup .p-float-label:last-child input{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-inputswitch{width:2.75rem;height:1rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider{background:#b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:.5rem}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{background:#ffffff;width:1.5rem;height:1.5rem;left:-1px;margin-top:-.75rem;border-radius:50%;transition-duration:.2s}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{transform:translate(1.5rem)}[_nghost-%COMP%] .p-inputswitch.p-focus .p-inputswitch-slider{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider{background:#b3b1b8}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before{background:var(--color-main)}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-inputswitch .p-inputswitch-slider:before{transition-property:box-shadow transform;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f,0 0 1px 10px #0000000a}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #0000001f,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b50a,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus .p-inputswitch-slider:before, [_nghost-%COMP%] .p-inputswitch.p-inputswitch-checked.p-inputswitch-focus:not(.p-disabled):hover .p-inputswitch-slider:before{box-shadow:0 0 1px 10px #3f51b51f,0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}[_nghost-%COMP%] #p-inputtext-extend, [_nghost-%COMP%] .p-inputtext{font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:1rem;color:#11152e;background:#ffffff;padding:.75rem;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);-webkit-appearance:none;appearance:none;border-radius:2px}[_nghost-%COMP%] #p-inputtext-extend:enabled:hover, [_nghost-%COMP%] .p-inputtext:enabled:hover{border-color:var(--color-main)}[_nghost-%COMP%] #p-inputtext-extend:enabled:focus, [_nghost-%COMP%] .p-inputtext:enabled:focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-inputtext.p-inputtext-sm{font-size:.85rem;padding:.5rem .75rem}[_nghost-%COMP%] .p-inputtext.p-inputtext-lg{font-size:1.5rem;padding:.9375rem}[_nghost-%COMP%] .p-input-icon-left>i:first-of-type{left:.75rem;color:#11152e}[_nghost-%COMP%] .p-input-icon-left>.p-inputtext{padding-left:2.5rem}[_nghost-%COMP%] .p-input-icon-right>i:last-of-type{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-input-icon-right>.p-inputtext{padding-right:2.5rem}[_nghost-%COMP%] ::-webkit-input-placeholder{color:#7e7a86}[_nghost-%COMP%] :-moz-placeholder{color:#11152e}[_nghost-%COMP%] ::-moz-placeholder{color:#11152e}[_nghost-%COMP%] :-ms-input-placeholder{color:#11152e}[_nghost-%COMP%] .p-input-filled .p-inputtext{background-color:#f5f5f5}[_nghost-%COMP%] .p-input-filled .p-inputtext:enabled:hover{background-color:#ececec}[_nghost-%COMP%] .p-input-filled .p-inputtext:enabled:focus{background-color:#dcdcdc}[_nghost-%COMP%] .p-inputtext-sm .p-inputtext{font-size:.875rem;padding:.65625rem}[_nghost-%COMP%] .p-inputtext-lg .p-inputtext{font-size:1.5rem;padding:.9375rem}[_nghost-%COMP%] .p-listbox{background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px}[_nghost-%COMP%] .p-listbox .p-listbox-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter{padding-right:2.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-listbox-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-listbox .p-listbox-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox .p-listbox-list{padding:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item{margin:0;padding:.75rem;border:0 none;color:#11152e;transition:none;border-radius:0}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-listbox .p-listbox-list .p-listbox-item .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-listbox-item .p-ink{background-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-menu{padding:.5rem 0;background:#ffffff;color:#11152e;border:1px solid #b3b1b8;border-radius:2px;width:12.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link{padding:.75rem;color:#11152e;border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-menuitem-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-menu .p-menuitem-link .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon{color:#11152e}[_nghost-%COMP%] .p-menu .p-menuitem-link:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-menu.p-menu-overlay{background:#ffffff;border:0 none;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f}[_nghost-%COMP%] .p-menu .p-submenu-header{margin:0;padding:.75rem;color:#11152e;background:#ffffff;font-weight:400;border-top-right-radius:0;border-top-left-radius:0}[_nghost-%COMP%] .p-menu .p-menu-separator{border-top:1px solid rgba(0,0,0,.12);margin:.5rem 0}[_nghost-%COMP%] .p-inline-message{padding:.75rem;margin:0;border-radius:2px}[_nghost-%COMP%] .p-inline-message.p-inline-message-info{background:#b3e5fc;border:solid transparent;border-width:1px;color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-info .p-inline-message-icon{color:#01579b}[_nghost-%COMP%] .p-inline-message.p-inline-message-success{background:#c8e6c9;border:solid transparent;border-width:1px;color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-success .p-inline-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn{background:#ffecb3;border:solid transparent;border-width:1px;color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-warn .p-inline-message-icon{color:#7f6003}[_nghost-%COMP%] .p-inline-message.p-inline-message-error{background:#ffcdd2;border:solid transparent;border-width:1px;color:#b71c1c}[_nghost-%COMP%] .p-inline-message.p-inline-message-error .p-inline-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-inline-message .p-inline-message-icon{font-size:1rem;margin-right:.5rem}[_nghost-%COMP%] .p-inline-message .p-inline-message-text{font-size:1rem}[_nghost-%COMP%] .p-inline-message.p-inline-message-icon-only .p-inline-message-icon{margin-right:0}[_nghost-%COMP%] .p-message{margin:.75rem 0;border-radius:2px}[_nghost-%COMP%] .p-message .p-message-wrapper{padding:1rem 1.5rem}[_nghost-%COMP%] .p-message .p-message-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-message .p-message-close:hover{background:rgba(var(--color-white_rgb),.3)}[_nghost-%COMP%] .p-message .p-message-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-message.p-message-info{background:#b3e5fc;border:solid transparent;border-width:0 0 0 0;color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-icon{color:#01579b}[_nghost-%COMP%] .p-message.p-message-info .p-message-close{color:#01579b}[_nghost-%COMP%] .p-message.p-message-success{background:#c8e6c9;border:solid transparent;border-width:0 0 0 0;color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-icon{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-success .p-message-close{color:#1b5e20}[_nghost-%COMP%] .p-message.p-message-warn{background:#ffecb3;border:solid transparent;border-width:0 0 0 0;color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-icon{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-warn .p-message-close{color:#7f6003}[_nghost-%COMP%] .p-message.p-message-error{background:#ffcdd2;border:solid transparent;border-width:0 0 0 0;color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-icon{color:#b71c1c}[_nghost-%COMP%] .p-message.p-message-error .p-message-close{color:#b71c1c}[_nghost-%COMP%] .p-message .p-message-text{font-size:1rem;font-weight:500}[_nghost-%COMP%] .p-message .p-message-icon{font-size:1.5rem;margin-right:.5rem}[_nghost-%COMP%] .p-message .p-message-summary{font-weight:700}[_nghost-%COMP%] .p-message .p-message-detail{margin-left:.5rem}[_nghost-%COMP%] .p-multiselect{background:#ffffff;border:1px solid #b3b1b8;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);border-radius:2px;min-width:13rem}[_nghost-%COMP%] .p-multiselect:not(.p-multiselect-open):hover{border-color:var(--color-main)}[_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-multiselect .p-multiselect-label{padding:.75rem;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-multiselect .p-multiselect-label.p-placeholder{color:#11152e}[_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background:transparent;color:#11152e;width:2.357rem;border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-multiselect-panel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header{padding:.75rem;border-bottom:1px solid rgba(0,0,0,.12);color:#11152e;background:#ffffff;margin:0;border-top-right-radius:2px;border-top-left-radius:2px}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext{padding-right:2.5rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-open{border-color:var(--color-main);box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close{margin-left:.5rem;width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items{padding:0}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item{margin:0;padding:.75rem;border:0 none;color:#11152e;background:transparent;transition:none;border-radius:0}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight{color:var(--color-main);background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover{color:#11152e;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus{outline:0 none;outline-offset:0;box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message{padding:.75rem;color:#11152e;background:transparent}[_nghost-%COMP%] .p-multiselect .p-multiselect-label, [_nghost-%COMP%] .p-multiselect .p-multiselect-trigger{background-image:none;background:transparent}[_nghost-%COMP%] .p-multiselect .p-multiselect-label{border:0 none}[_nghost-%COMP%] .p-multiselect:not(.p-disabled).p-focus{box-shadow:inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main),inset 0 0 0 1px var(--color-main)}[_nghost-%COMP%] .p-multiselect-item .p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip{color:#524e5c}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label{gap:.5rem;padding:.5rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-label.p-placeholder{padding:1rem}[_nghost-%COMP%] .p-multiselect.p-multiselect-chip .p-multiselect-token{align-items:center;background:rgba(var(--color-main_rgb),.1);border-radius:4px;color:rgb(var(--color-main_rgb));display:flex;gap:.5rem;justify-content:center;margin-right:.5rem;padding:.5rem}[_nghost-%COMP%] .p-overlaypanel{background:#ffffff;color:#11152e;border:0 none;border-radius:2px;box-shadow:0 11px 15px -7px #0003,0 24px 38px 3px #00000024,0 9px 46px 8px #0000001f}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:.75rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close{background:var(--color-main);color:#fff;width:2rem;height:2rem;transition:background-color .2s,color .2s,box-shadow .2s;border-radius:50%;position:absolute;top:-1rem;right:-1rem}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-close:enabled:hover{background:rgba(var(--color-sec_rgb),.12);color:#fff}[_nghost-%COMP%] .p-overlaypanel:after{border:solid transparent;border-color:rgba(var(--color-white_rgb),0)}[_nghost-%COMP%] .p-overlaypanel:before{border:solid transparent;border-color:rgba(var(--color-white_rgb),0)}[_nghost-%COMP%] .p-overlaypanel.p-overlaypanel-flipped:after{border-top-color:#fff}[_nghost-%COMP%] .p-overlaypanel.p-overlaypanel-flipped:before{border-top-color:#fff}[_nghost-%COMP%] .p-overlaypanel .p-overlaypanel-content{padding:1.5rem}[_nghost-%COMP%] .p-paginator{background:#ffffff;color:#11152e;border:solid #e2e2e2;border-width:0;padding:.375rem .75rem;border-radius:2px;justify-content:flex-end}[_nghost-%COMP%] .p-paginator .p-paginator-first, [_nghost-%COMP%] .p-paginator .p-paginator-prev, [_nghost-%COMP%] .p-paginator .p-paginator-next, [_nghost-%COMP%] .p-paginator .p-paginator-last{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover, [_nghost-%COMP%] .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);border-color:transparent;color:#11152e}[_nghost-%COMP%] .p-paginator .p-paginator-first{border-top-left-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-paginator .p-paginator-last{border-top-right-radius:2px;border-bottom-right-radius:2px}[_nghost-%COMP%] .p-paginator .p-dropdown{margin-left:.5rem;height:3rem}[_nghost-%COMP%] .p-paginator .p-dropdown .p-dropdown-label{padding-right:0}[_nghost-%COMP%] .p-paginator .p-paginator-current{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;padding:0 .5rem}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page{background-color:transparent;border:0 none;color:#11152e;min-width:3rem;height:3rem;margin:.143rem;transition:none;border-radius:50%}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover{background:#f1f3f4;border-color:transparent;color:#11152e}[_nghost-%COMP%] .p-paginator-bottom{border:none}[_nghost-%COMP%] .p-progressbar{border:0 none;height:4px;background:rgba(var(--color-sec_rgb),.12);border-radius:2px}[_nghost-%COMP%] .p-progressbar .p-progressbar-value{border:0 none;margin:0;background:var(--color-main)}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{color:#11152e;line-height:4px}[_nghost-%COMP%] .p-progressbar{border-radius:0}[_nghost-%COMP%] .p-progressbar .p-progressbar-label{display:none}[_nghost-%COMP%] .p-radiobutton{width:20px;height:20px}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box{border:2px solid #7e7a86;background:#ffffff;width:20px;height:20px;color:#11152e;border-radius:50%;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{outline:0 none;outline-offset:0;box-shadow:none;border-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box .p-radiobutton-icon{width:10px;height:10px;transition-duration:.2s;background-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight{border-color:var(--color-main);background:#ffffff}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover{border-color:var(--color-main);background:#ffffff;color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton-label{margin-left:.5rem}[_nghost-%COMP%] .p-radiobutton{border-radius:50%;transition:box-shadow .2s}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus{border:2px solid rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled).p-focus{border-color:var(--color-main)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled):hover{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-radiobutton.p-radiobutton-checked:not(.p-radiobutton-disabled).p-radiobutton-focused{box-shadow:0 0 1px 10px rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-selectbutton .p-button{background:transparent;border:1px solid #b3b1b8;color:#7e7a86;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s,background-size .2s cubic-bezier(.64,.09,.08,1);text-transform:uppercase}[_nghost-%COMP%] .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover{background-color:rgba(var(--color-sec_rgb),.12);color:#524e5c}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight .p-button-icon-right{color:#7e7a86}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover{background:rgba(var(--color-sec_rgb),.12);border-color:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-left, [_nghost-%COMP%] .p-selectbutton .p-button.p-highlight:hover .p-button-icon-right{color:#11152e}[_nghost-%COMP%] .p-selectbutton .p-button:focus{background:rgba(var(--color-sec_rgb),.12);border-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-selectbutton .p-button:focus.p-highlight{background:rgba(var(--color-sec_rgb),.12);border-color:#b3b1b8;color:#524e5c}[_nghost-%COMP%] .p-button-tabbed{box-shadow:0 1px #b3b1b8;display:inline-block}[_nghost-%COMP%] .p-button-tabbed .p-button{border-radius:0;padding:1rem 2rem;border:none}[_nghost-%COMP%] .p-button-tabbed .p-button:focus.p-highlight, [_nghost-%COMP%] .p-button-tabbed .p-button.p-highlight{color:#524e5c;box-shadow:0 -4px 0 0 var(--color-main) inset}[_nghost-%COMP%] .p-button-compact .p-button{padding-left:1rem;padding-right:1rem}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight{background-color:var(--color-main);color:#fff}[_nghost-%COMP%] .p-button-compact .p-button.p-highlight:focus{background-color:var(--color-main);color:#fff}[_nghost-%COMP%] .p-splitbutton>.p-button:disabled{border-color:#00000003}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:not(:disabled){border-right:1px solid var(--color-sec)}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:not(:disabled):hover{border-right:1px solid var(--color-main)}[_nghost-%COMP%] .p-splitbutton-menubutton.p-button{min-width:unset}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-defaultbutton:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-defaultbutton:enabled:focus{border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);border-top:1px solid var(--color-main);color:var(--color-main);border-right:none}[_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:enabled:active, [_nghost-%COMP%] .p-splitbutton.p-button-secondary>.p-splitbutton-menubutton:enabled:focus{border-left:1px solid var(--color-main);border-bottom:1px solid var(--color-main);border-top:1px solid var(--color-main);border-right:1px solid var(--color-main);color:var(--color-main)}[_nghost-%COMP%] .p-splitbutton>.p-splitbutton-menubutton{padding:0 1rem}[_nghost-%COMP%] .p-splitbutton>.p-splitbutton-menubutton:disabled{border-left:1px solid #b3b1b8}[_nghost-%COMP%] .p-tabview .p-tabview-nav{border:solid rgba(0,0,0,.12);border-width:0 0 1px 0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li{margin-right:0}[_nghost-%COMP%] .p-tabview-title{text-transform:uppercase}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border:none;border-width:0 0 0 0;border-color:transparent transparent transparent transparent;color:#11152e;padding:1.2rem 2.5rem 1.35rem;font-weight:500;transition:none;margin:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link{background:rgba(var(--color-sec_rgb),.12);color:#11152e;background-clip:padding-box;border-bottom:4px solid rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link{border-bottom:4px solid var(--color-sec)}[_nghost-%COMP%] .p-tabview .p-tabview-left-icon{margin-right:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-right-icon{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-close{margin-left:.5rem}[_nghost-%COMP%] .p-tabview .p-tabview-panels{border:0 none;color:#11152e;border-bottom-right-radius:2px;border-bottom-left-radius:2px}[_nghost-%COMP%] .p-tabview .p-tabview-nav{position:relative}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link{border-radius:0}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link>.p-ink{background-color:#3f51b529}[_nghost-%COMP%] .p-tabview .p-tabview-nav li .p-tabview-nav-link:focus{background-color:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tabview .p-tabview-nav .p-tabview-ink-bar{display:none}[_nghost-%COMP%] .p-tabview-nav-next, [_nghost-%COMP%] .p-tabview-nav-prev{width:40px}[_nghost-%COMP%] .p-toast .p-toast-message{line-height:1.5;background-color:#fff;margin:0 0 1rem;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;border-radius:2px}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content{padding:1.5rem;border-width:0 0 0 0;align-items:center}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-text{margin:0 0 0 1rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon{font-size:1.5rem}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-summary{font-weight:700}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-content .p-toast-detail{margin:.5rem 0 0}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{width:2rem;height:2rem;border-radius:50%;background:transparent;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:hover{background:rgba(var(--color-white_rgb),.3)}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-toast .p-toast-message{border:solid transparent;border-width:0 0 0 0;color:#11152e}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-message-icon{color:#fff;background:var(--color-sec);border-radius:50%;display:flex;justify-content:center;align-items:center;padding:.5rem;align-self:center}[_nghost-%COMP%] .p-toast .p-toast-message .p-toast-icon-close{color:#524e5c;position:absolute;top:.75rem;right:.75rem}[_nghost-%COMP%] .p-toolbar{background-color:#fff;border-bottom:solid 1px #b3b1b8;display:flex;padding:1rem 1.5rem}[_nghost-%COMP%] .p-toolbar.p-corner-all{border-radius:0}[_nghost-%COMP%] .p-toolbar-group-left, [_nghost-%COMP%] .p-toolbar-group-right{align-items:center;display:flex;flex:1}[_nghost-%COMP%] .p-toolbar-group-left{justify-content:flex-start}[_nghost-%COMP%] .p-toolbar-group-right{justify-content:flex-end}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{background:rgba(97,97,97,.9);color:#fff;padding:.75rem 1rem;font-size:1rem;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;border-radius:2px}[_nghost-%COMP%] .p-tooltip.p-tooltip-right .p-tooltip-arrow{border-right-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-left .p-tooltip-arrow{border-left-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-top .p-tooltip-arrow{border-top-color:#616161e6}[_nghost-%COMP%] .p-tooltip.p-tooltip-bottom .p-tooltip-arrow{border-bottom-color:#616161e6}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{box-shadow:none}[_nghost-%COMP%] .p-tree{border:1px solid #b3b1b8;background:#ffffff;color:#11152e;padding:.75rem;border-radius:2px}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode{padding:.25rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content{border-radius:2px;transition:none;padding:.571rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem;width:2rem;height:2rem;color:#11152e;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover{color:#11152e;border-color:transparent;background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon{margin-right:.5rem;color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon{color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight{background:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler, [_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-dragover{background:rgba(0,0,0,.04);color:#11152e}[_nghost-%COMP%] .p-tree .p-tree-filter-container{margin-bottom:.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter{width:100%;padding-right:2.5rem}[_nghost-%COMP%] .p-tree .p-tree-filter-container .p-tree-filter-icon{right:.75rem;color:#11152e}[_nghost-%COMP%] .p-tree .p-treenode-children{padding:0 0 0 1rem}[_nghost-%COMP%] .p-tree .p-tree-loading-icon{font-size:3rem}[_nghost-%COMP%] .p-tree .p-treenode-droppoint.p-treenode-droppoint-active{background-color:#3241911f}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content{border-radius:2px;border:1px solid #b3b1b8;background-color:#fff;color:#11152e;padding:.571rem;transition:none}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight{background-color:rgba(var(--color-sec_rgb),.12);color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight .p-treenode-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-tree-toggler{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-icon{color:#11152e;margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox{margin-right:.5rem}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox .p-checkbox-icon{color:var(--color-main)}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-label:not(.p-highlight):hover{background-color:inherit;color:inherit}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover{background:rgba(var(--color-sec_rgb),.12);color:#11152e}[_nghost-%COMP%] .p-tree.p-tree-horizontal .p-treenode .p-treenode-content:focus{outline:0 none;outline-offset:0;box-shadow:none}[_nghost-%COMP%] .p-skeleton{background-color:#e9ecef;border-radius:3px}[_nghost-%COMP%] .p-skeleton:after{background:linear-gradient(90deg,rgba(255,255,255,0),rgba(255,255,255,.4),rgba(255,255,255,0))}[_nghost-%COMP%] .p-tieredmenu{padding:.5rem 0;background:#ffffff;border:0 none;border-radius:2px;width:100%}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link{padding:.75rem;color:var(--color-background);border-radius:0;transition:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover{background:rgba(var(--color-sec_rgb),.12)}[_nghost-%COMP%] .p-tieredmenu.p-tieredmenu-overlay{box-shadow:0 10px 24px #0003}[_nghost-%COMP%] .p-sidebar{background:#ffffff;border:0 none;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d}[_nghost-%COMP%] .p-sidebar .p-sidebar-header{padding:1.5rem}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon{width:2rem;height:2rem;border:0 none;background:transparent;border-radius:50%;transition:background-color .2s,color .2s,box-shadow .2s}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:enabled:hover, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:enabled:hover{border-color:transparent}[_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-close:focus, [_nghost-%COMP%] .p-sidebar .p-sidebar-header .p-sidebar-icon:focus{outline:0 none;outline-offset:0}[_nghost-%COMP%] .p-sidebar .p-sidebar-content{padding:1rem;height:100%}[_nghost-%COMP%] .p-sidebar-mask{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-enter{animation:p-component-overlay-enter-animation .15s forwards}[_nghost-%COMP%] .p-sidebar-mask.p-component-overlay-leave{animation:p-component-overlay-leave-animation .15s forwards}@keyframes p-component-overlay-enter-animation{0%{background-color:transparent}to{background-color:#11152ecc}}@keyframes p-component-overlay-leave-animation{0%{background-color:#11152ecc}to{background-color:transparent}}[_nghost-%COMP%] .p-confirm-popup{position:absolute;margin-top:.75rem;top:0;left:0;background:#ffffff;color:#524e5c;border:0 none;border-radius:2px;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-icon{font-size:1.5rem}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-message{margin-left:1rem}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer{padding:.75rem 1.5rem;display:flex;column-gap:5px;justify-content:flex-end}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-footer button{margin:0 0 .5rem;width:auto}[_nghost-%COMP%] .p-confirm-popup-flipped{margin-top:0;margin-bottom:.75rem}[_nghost-%COMP%] .p-confirm-popup:after, [_nghost-%COMP%] .p-confirm-popup:before{bottom:100%;left:calc(var(--overlayArrowLeft, 0) + 1.5rem);content:" ";height:0;width:0;position:absolute;pointer-events:none}[_nghost-%COMP%] .p-confirm-popup:after{border-width:8px;margin-left:-8px}[_nghost-%COMP%] .p-confirm-popup:before{border-width:10px;margin-left:-10px}[_nghost-%COMP%] .p-confirm-popup-flipped:after, [_nghost-%COMP%] .p-confirm-popup-flipped:before{bottom:auto;top:100%}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:after{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup.p-confirm-popup-flipped:before{border-bottom-color:transparent}[_nghost-%COMP%] .p-confirm-popup .p-confirm-popup-content{display:flex;align-items:center;padding:1.5rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-sm{font-size:.875rem;padding:.65625rem 1.09375rem}[_nghost-%COMP%] .p-confirm-popup .p-button.p-button-text{background-color:transparent;color:var(--color-main);border-color:transparent}[_nghost-%COMP%] .p-card{background:#ffffff;color:#524e5c;border:1px solid #e2e2e2;border-radius:4px}[_nghost-%COMP%] .p-card .p-card-header{padding:1rem 1rem 0}[_nghost-%COMP%] .p-card .p-card-subtitle{font-weight:400;margin-bottom:.5rem;color:#7e7a86}[_nghost-%COMP%] .p-card .p-card-body{padding:1.5rem}[_nghost-%COMP%] .p-card .p-card-body .p-card-title{font-size:1.5rem;font-weight:700;margin-bottom:.75rem}[_nghost-%COMP%] .p-card .p-card-footer{padding:1rem 0 0}[_nghost-%COMP%] .p-card .p-card{min-height:42px;display:flex;align-items:center}[_nghost-%COMP%] .p-card .p-card-body .p-card-body{padding:.5rem .75rem;width:100%}[_nghost-%COMP%] .p-slider{background:#e2e2e2;border:0 none;border-radius:6px}[_nghost-%COMP%] .p-slider.p-slider-horizontal{height:.286rem}[_nghost-%COMP%] .p-slider.p-slider-horizontal .p-slider-handle{margin-top:-.5715rem;margin-left:-.5715rem}[_nghost-%COMP%] .p-slider.p-slider-vertical{width:.286rem}[_nghost-%COMP%] .p-slider.p-slider-vertical .p-slider-handle{margin-left:-.5715rem;margin-bottom:-.5715rem}[_nghost-%COMP%] .p-slider .p-slider-handle{height:1.143rem;width:1.143rem;background:#ffffff;border:2px solid var(--color-main);border-radius:50%;transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s}[_nghost-%COMP%] .p-slider .p-slider-handle:focus{outline:0 none;outline-offset:0;box-shadow:0 0 0 .2rem var(--color-main_mod)}[_nghost-%COMP%] .p-slider .p-slider-range{background:var(--color-main)}[_nghost-%COMP%] .p-slider:not(.p-disabled) .p-slider-handle:hover{background:var(--color-main);border-color:var(--color-main)}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,left .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-horizontal .p-slider-range{transition:width .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-handle{transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,bottom .2s}[_nghost-%COMP%] .p-slider.p-slider-animate.p-slider-vertical .p-slider-range{transition:height .2s}[_nghost-%COMP%] .p-tag{display:inline-flex;align-items:center;justify-content:center;background:var(--color-main);color:#fff;font-size:1rem;font-weight:400;padding:.5rem 1rem;border-radius:7px}[_nghost-%COMP%] .p-tag.p-tag-success{background-color:#f5fdf8;color:#3ed97a}[_nghost-%COMP%] .p-tag.p-tag-info{background-color:#f7f9fe;color:var(--color-main)}[_nghost-%COMP%] .p-tag.p-tag-warning{background-color:#fff8ec;color:#ffb444}[_nghost-%COMP%] .p-tag.p-tag-danger{background-color:#fff6f6;color:#f65446}[_nghost-%COMP%] .p-tag .p-tag-icon{margin-right:.5rem;font-size:.75rem}[_nghost-%COMP%] .p-error, [_nghost-%COMP%] .p-invalid{color:#d0021b}[_nghost-%COMP%] p-inputmask.ng-dirty.ng-invalid>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] p-inputnumber.ng-dirty.ng-invalid>.p-inputnumber>.p-inputtext{border-color:#d0021b}[_nghost-%COMP%] .p-inputswitch.p-error, [_nghost-%COMP%] .p-inputswitch.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-inputswitch.ng-dirty.ng-invalid>.p-inputswitch{border-color:#d0021b}[_nghost-%COMP%] .p-inputtext.p-error, [_nghost-%COMP%] .p-inputtext.p-invalid, [_nghost-%COMP%] .p-inputtext.ng-dirty.ng-invalid{border-color:#d0021b}[_nghost-%COMP%] p-listbox.ng-dirty.ng-invalid>.p-listbox{border-color:#d0021b}[_nghost-%COMP%] .p-listbox.p-error, [_nghost-%COMP%] .p-listbox.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-multiselect.ng-dirty.ng-invalid>.p-multiselect{border-color:#d0021b}[_nghost-%COMP%] .p-radiobutton.p-error>.p-radiobutton-box, [_nghost-%COMP%] .p-radiobutton.p-invalid>.p-radiobutton-box{border-color:#d0021b}[_nghost-%COMP%] p-radiobutton.ng-dirty.ng-invalid>.p-radiobutton>.p-radiobutton-box{border-color:#d0021b}[_nghost-%COMP%] .p-selectbutton.p-error>.p-button, [_nghost-%COMP%] .p-selectbutton.p-invalid>.p-button{border-color:#d0021b}[_nghost-%COMP%] p-selectbutton.ng-dirty.ng-invalid>.p-selectbutton>.p-button{border-color:#d0021b}[_nghost-%COMP%] .p-togglebutton.p-button.p-error, [_nghost-%COMP%] .p-togglebutton.p-button.p-invalid{border-color:#d0021b}[_nghost-%COMP%] p-togglebutton.ng-dirty.ng-invalid>.p-togglebutton.p-button{border-color:#d0021b}[_nghost-%COMP%] .p-multiselect.p-error, [_nghost-%COMP%] .p-multiselect.p-invalid{border-color:#d0021b}[_nghost-%COMP%] .p-rating .p-rating-icon.p-rating-cancel{color:#d0021b}[_nghost-%COMP%] .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover{color:#d0021b}[_nghost-%COMP%] .p-password-panel{padding:.75rem;background:#ffffff;color:#11152e;border:0 none;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;border-radius:2px}[_nghost-%COMP%] .p-password-panel .p-password-meter{margin-bottom:.5rem}[_nghost-%COMP%] :root{--color-background: #3a3847;--color-main: #6b4de2;--color-main_mod: #8674c0;--color-main_rgb: 107, 77, 226;--color-sec: #6f5fa3;--color-sec_rgb: 111, 95, 163;--color-white: #fff;--color-white_rgb: 255, 255, 255;--empty-message: ""}@font-face{ {font-family: "Material Icons"; font-style: normal; font-weight: 400; font-display: swap; src: url(/dotAdmin/assets/MaterialIcons-Regular.ttf) format("truetype");}}[_nghost-%COMP%] .material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff) format("woff");}}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-500.woff) format("woff");}}@font-face{ {font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: local(""),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2) format("woff2"),url(/dotAdmin/assets/roboto-v27-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-700.woff) format("woff");}}[_nghost-%COMP%] *, [_nghost-%COMP%] *:before, [_nghost-%COMP%] *:after{box-sizing:border-box}[_nghost-%COMP%] html, [_nghost-%COMP%] body{color:#11152e;font-family:Roboto,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:14px;height:100%;margin:0;padding:0}[_nghost-%COMP%] html{-ms-overflow-style:-ms-autohiding-scrollbar}[_nghost-%COMP%] body{background-position:top center;background-repeat:no-repeat;background-size:cover}[_nghost-%COMP%] a{color:var(--color-main)}[_nghost-%COMP%] a:hover{text-decoration:none}[_nghost-%COMP%] a.link-secondary{color:var(--color-sec)}[_nghost-%COMP%] a[actionlink]{color:var(--color-sec);font-size:11px;text-transform:uppercase;cursor:pointer}[_nghost-%COMP%] .gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:1;transform-origin:right top}[_nghost-%COMP%] .gu-hide{display:none!important}[_nghost-%COMP%] .gu-unselectable{-webkit-user-select:none!important;user-select:none!important}[_nghost-%COMP%] .p-component, [_nghost-%COMP%] .p-component *{box-sizing:border-box}[_nghost-%COMP%] .p-hidden{display:none}[_nghost-%COMP%] .p-hidden-space{visibility:hidden}[_nghost-%COMP%] .p-hidden-accessible{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}[_nghost-%COMP%] .p-hidden-accessible input, [_nghost-%COMP%] .p-hidden-accessible select{transform:scale(0)}[_nghost-%COMP%] .p-reset{margin:0;padding:0;border:0;outline:0;text-decoration:none;font-size:100%;list-style:none}[_nghost-%COMP%] .p-disabled, [_nghost-%COMP%] .p-disabled *{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-component-overlay{position:fixed;top:0;left:0;width:100%;height:100%}[_nghost-%COMP%] .p-overflow-hidden{overflow:hidden}[_nghost-%COMP%] .p-unselectable-text{-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-scrollbar-measure{width:100px;height:100px;overflow:scroll;position:absolute;top:-9999px}@keyframes p-fadein{0%{opacity:0}to{opacity:1}}[_nghost-%COMP%] input[type=button], [_nghost-%COMP%] input[type=submit], [_nghost-%COMP%] input[type=reset], [_nghost-%COMP%] input[type=file]::-webkit-file-upload-button, [_nghost-%COMP%] button{border-radius:0}[_nghost-%COMP%] .p-link{text-align:left;background-color:transparent;margin:0;padding:0;border:0;cursor:pointer;-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .p-link:disabled{cursor:default}[_nghost-%COMP%] .p-sr-only{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}[_nghost-%COMP%] .p-connected-overlay{opacity:0;transform:scaleY(.8);transition:transform .12s cubic-bezier(0,0,.2,1),opacity .12s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .p-connected-overlay-visible{opacity:1;transform:scaleY(1)}[_nghost-%COMP%] .p-connected-overlay-hidden{opacity:0;transform:scaleY(1);transition:opacity .1s linear}[_nghost-%COMP%] .p-toggleable-content.ng-animating{overflow:hidden}[_nghost-%COMP%] .p-badge{display:inline-block;border-radius:10px;text-align:center;padding:0 .5rem}[_nghost-%COMP%] .p-overlay-badge{position:relative}[_nghost-%COMP%] .p-overlay-badge .p-badge{position:absolute;top:0;right:0;transform:translate(50%,-50%);transform-origin:100% 0;margin:0}[_nghost-%COMP%] .p-badge-dot{width:.5rem;min-width:.5rem;height:.5rem;border-radius:50%;padding:0}[_nghost-%COMP%] .p-badge-no-gutter{padding:0;border-radius:50%}[_nghost-%COMP%] .p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}[_nghost-%COMP%] .p-button-label{flex:1 1 auto}[_nghost-%COMP%] .p-button-icon-right{order:1}[_nghost-%COMP%] .p-button:disabled{cursor:default}[_nghost-%COMP%] .p-button-icon-only{justify-content:center}[_nghost-%COMP%] .p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}[_nghost-%COMP%] .p-button-vertical{flex-direction:column}[_nghost-%COMP%] .p-button-icon-bottom{order:2}[_nghost-%COMP%] .p-buttonset .p-button{margin:0}[_nghost-%COMP%] .p-buttonset .p-button:not(:last-child){border-right:0 none}[_nghost-%COMP%] .p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .p-buttonset .p-button:focus{position:relative;z-index:1}[_nghost-%COMP%] .p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-checkbox-disabled{cursor:default!important;pointer-events:none}[_nghost-%COMP%] .p-checkbox-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-checkbox-label{line-height:1}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-color{background:transparent url(color.png) no-repeat left top}[_nghost-%COMP%] .p-colorpicker-panel .p-colorpicker-hue{background:transparent url(hue.png) no-repeat left top}[_nghost-%COMP%] .p-inputtext{margin:0}[_nghost-%COMP%] .p-fluid .p-inputtext{width:100%}[_nghost-%COMP%] .p-inputgroup{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup-addon{display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] .p-inputgroup .p-float-label{display:flex;align-items:stretch;width:100%}[_nghost-%COMP%] .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-fluid .p-inputgroup .p-inputtext, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper, [_nghost-%COMP%] .p-inputgroup .p-inputwrapper>.p-component{flex:1 1 auto;width:1%}[_nghost-%COMP%] .p-float-label{display:block;position:relative}[_nghost-%COMP%] .p-float-label label{position:absolute;pointer-events:none;top:50%;margin-top:-.5rem;transition-property:all;transition-timing-function:ease;line-height:1}[_nghost-%COMP%] .p-float-label textarea~label{top:1rem}[_nghost-%COMP%] .p-float-label input:focus~label, [_nghost-%COMP%] .p-float-label input.p-filled~label, [_nghost-%COMP%] .p-float-label textarea:focus~label, [_nghost-%COMP%] .p-float-label textarea.p-filled~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-focus~label, [_nghost-%COMP%] .p-float-label .p-inputwrapper-filled~label{top:-.75rem;font-size:12px}[_nghost-%COMP%] .p-float-label .input:-webkit-autofill~label{top:-20px;font-size:12px}[_nghost-%COMP%] .p-float-label .p-placeholder, [_nghost-%COMP%] .p-float-label input::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext::placeholder{opacity:0;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-float-label .p-focus .p-placeholder, [_nghost-%COMP%] .p-float-label input:focus::placeholder, [_nghost-%COMP%] .p-float-label .p-inputtext:focus::placeholder{opacity:1;transition-property:all;transition-timing-function:ease}[_nghost-%COMP%] .p-input-icon-left, [_nghost-%COMP%] .p-input-icon-right{position:relative;display:inline-block}[_nghost-%COMP%] .p-input-icon-left>i, [_nghost-%COMP%] .p-input-icon-right>i{position:absolute;top:50%;margin-top:-.5rem}[_nghost-%COMP%] .p-fluid .p-input-icon-left, [_nghost-%COMP%] .p-fluid .p-input-icon-right{display:block;width:100%}[_nghost-%COMP%] .p-inputtextarea-resizable{overflow:hidden;resize:none}[_nghost-%COMP%] .p-fluid .p-inputtextarea{width:100%}[_nghost-%COMP%] .p-password{position:relative;display:inline-flex}[_nghost-%COMP%] .p-password-panel{position:absolute;top:0;left:0}[_nghost-%COMP%] .p-password .p-password-panel{min-width:100%}[_nghost-%COMP%] .p-password-meter{height:10px}[_nghost-%COMP%] .p-password-strength{height:100%;width:0;transition:width 1s ease-in-out}[_nghost-%COMP%] .p-fluid .p-password{display:flex}[_nghost-%COMP%] .p-password-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}[_nghost-%COMP%] .p-password-clearable{position:relative}[_nghost-%COMP%] .p-radiobutton{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}[_nghost-%COMP%] .p-radiobutton-box{display:flex;justify-content:center;align-items:center}[_nghost-%COMP%] .p-radiobutton-icon{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0) scale(.1);border-radius:50%;visibility:hidden}[_nghost-%COMP%] .p-radiobutton-box.p-highlight .p-radiobutton-icon{transform:translateZ(0) scale(1);visibility:visible}[_nghost-%COMP%] p-radiobutton{display:inline-flex;vertical-align:bottom;align-items:center}[_nghost-%COMP%] .p-radiobutton-label{line-height:1}[_nghost-%COMP%] .p-ripple{overflow:hidden;position:relative}[_nghost-%COMP%] .p-ink{display:block;position:absolute;background:rgba(255,255,255,.5);border-radius:100%;transform:scale(0)}[_nghost-%COMP%] .p-ink-active{animation:ripple .4s linear}[_nghost-%COMP%] .p-ripple-disabled .p-ink{display:none!important}@keyframes ripple{to{opacity:0;transform:scale(2.5)}}[_nghost-%COMP%] .p-tooltip{position:absolute;display:none;padding:.25em .5rem;max-width:12.5rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-right, [_nghost-%COMP%] .p-tooltip.p-tooltip-left{padding:0 .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top, [_nghost-%COMP%] .p-tooltip.p-tooltip-bottom{padding:.25em 0}[_nghost-%COMP%] .p-tooltip .p-tooltip-text{white-space:pre-line;word-break:break-word}[_nghost-%COMP%] .p-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}[_nghost-%COMP%] .p-tooltip-right .p-tooltip-arrow{top:50%;left:0;margin-top:-.25rem;border-width:.25em .25em .25em 0}[_nghost-%COMP%] .p-tooltip-left .p-tooltip-arrow{top:50%;right:0;margin-top:-.25rem;border-width:.25em 0 .25em .25rem}[_nghost-%COMP%] .p-tooltip.p-tooltip-top{padding:.25em 0}[_nghost-%COMP%] .p-tooltip-top .p-tooltip-arrow{bottom:0;left:50%;margin-left:-.25rem;border-width:.25em .25em 0}[_nghost-%COMP%] .p-tooltip-bottom .p-tooltip-arrow{top:0;left:50%;margin-left:-.25rem;border-width:0 .25em .25rem}@font-face{ {font-family: "primeicons"; font-display: block; src: url(primeicons.eot); src: url(primeicons.eot?#iefix) format("embedded-opentype"),url(primeicons.woff2) format("woff2"),url(primeicons.woff) format("woff"),url(primeicons.ttf) format("truetype"),url(primeicons.svg?#primeicons) format("svg"); font-weight: normal; font-style: normal;}}[_nghost-%COMP%] .pi{font-family:primeicons;speak:none;font-style:normal;font-weight:400;font-feature-settings:normal;font-variant:normal;text-transform:none;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[_nghost-%COMP%] .pi:before{--webkit-backface-visibility:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}[_nghost-%COMP%] .pi-fw{width:1.28571429em;text-align:center}[_nghost-%COMP%] .pi-spin{animation:fa-spin 2s infinite linear}@keyframes fa-spin{0%{transform:rotate(0)}to{transform:rotate(359deg)}}[_nghost-%COMP%] .pi-eraser:before{content:"\\ea04"}[_nghost-%COMP%] .pi-stopwatch:before{content:"\\ea01"}[_nghost-%COMP%] .pi-verified:before{content:"\\ea02"}[_nghost-%COMP%] .pi-delete-left:before{content:"\\ea03"}[_nghost-%COMP%] .pi-hourglass:before{content:"\\e9fe"}[_nghost-%COMP%] .pi-truck:before{content:"\\ea00"}[_nghost-%COMP%] .pi-wrench:before{content:"\\e9ff"}[_nghost-%COMP%] .pi-microphone:before{content:"\\e9fa"}[_nghost-%COMP%] .pi-megaphone:before{content:"\\e9fb"}[_nghost-%COMP%] .pi-arrow-right-arrow-left:before{content:"\\e9fc"}[_nghost-%COMP%] .pi-bitcoin:before{content:"\\e9fd"}[_nghost-%COMP%] .pi-file-edit:before{content:"\\e9f6"}[_nghost-%COMP%] .pi-language:before{content:"\\e9f7"}[_nghost-%COMP%] .pi-file-export:before{content:"\\e9f8"}[_nghost-%COMP%] .pi-file-import:before{content:"\\e9f9"}[_nghost-%COMP%] .pi-file-word:before{content:"\\e9f1"}[_nghost-%COMP%] .pi-gift:before{content:"\\e9f2"}[_nghost-%COMP%] .pi-cart-plus:before{content:"\\e9f3"}[_nghost-%COMP%] .pi-thumbs-down-fill:before{content:"\\e9f4"}[_nghost-%COMP%] .pi-thumbs-up-fill:before{content:"\\e9f5"}[_nghost-%COMP%] .pi-arrows-alt:before{content:"\\e9f0"}[_nghost-%COMP%] .pi-calculator:before{content:"\\e9ef"}[_nghost-%COMP%] .pi-sort-alt-slash:before{content:"\\e9ee"}[_nghost-%COMP%] .pi-arrows-h:before{content:"\\e9ec"}[_nghost-%COMP%] .pi-arrows-v:before{content:"\\e9ed"}[_nghost-%COMP%] .pi-pound:before{content:"\\e9eb"}[_nghost-%COMP%] .pi-prime:before{content:"\\e9ea"}[_nghost-%COMP%] .pi-chart-pie:before{content:"\\e9e9"}[_nghost-%COMP%] .pi-reddit:before{content:"\\e9e8"}[_nghost-%COMP%] .pi-code:before{content:"\\e9e7"}[_nghost-%COMP%] .pi-sync:before{content:"\\e9e6"}[_nghost-%COMP%] .pi-shopping-bag:before{content:"\\e9e5"}[_nghost-%COMP%] .pi-server:before{content:"\\e9e4"}[_nghost-%COMP%] .pi-database:before{content:"\\e9e3"}[_nghost-%COMP%] .pi-hashtag:before{content:"\\e9e2"}[_nghost-%COMP%] .pi-bookmark-fill:before{content:"\\e9df"}[_nghost-%COMP%] .pi-filter-fill:before{content:"\\e9e0"}[_nghost-%COMP%] .pi-heart-fill:before{content:"\\e9e1"}[_nghost-%COMP%] .pi-flag-fill:before{content:"\\e9de"}[_nghost-%COMP%] .pi-circle:before{content:"\\e9dc"}[_nghost-%COMP%] .pi-circle-fill:before{content:"\\e9dd"}[_nghost-%COMP%] .pi-bolt:before{content:"\\e9db"}[_nghost-%COMP%] .pi-history:before{content:"\\e9da"}[_nghost-%COMP%] .pi-box:before{content:"\\e9d9"}[_nghost-%COMP%] .pi-at:before{content:"\\e9d8"}[_nghost-%COMP%] .pi-arrow-up-right:before{content:"\\e9d4"}[_nghost-%COMP%] .pi-arrow-up-left:before{content:"\\e9d5"}[_nghost-%COMP%] .pi-arrow-down-left:before{content:"\\e9d6"}[_nghost-%COMP%] .pi-arrow-down-right:before{content:"\\e9d7"}[_nghost-%COMP%] .pi-telegram:before{content:"\\e9d3"}[_nghost-%COMP%] .pi-stop-circle:before{content:"\\e9d2"}[_nghost-%COMP%] .pi-stop:before{content:"\\e9d1"}[_nghost-%COMP%] .pi-whatsapp:before{content:"\\e9d0"}[_nghost-%COMP%] .pi-building:before{content:"\\e9cf"}[_nghost-%COMP%] .pi-qrcode:before{content:"\\e9ce"}[_nghost-%COMP%] .pi-car:before{content:"\\e9cd"}[_nghost-%COMP%] .pi-instagram:before{content:"\\e9cc"}[_nghost-%COMP%] .pi-linkedin:before{content:"\\e9cb"}[_nghost-%COMP%] .pi-send:before{content:"\\e9ca"}[_nghost-%COMP%] .pi-slack:before{content:"\\e9c9"}[_nghost-%COMP%] .pi-sun:before{content:"\\e9c8"}[_nghost-%COMP%] .pi-moon:before{content:"\\e9c7"}[_nghost-%COMP%] .pi-vimeo:before{content:"\\e9c6"}[_nghost-%COMP%] .pi-youtube:before{content:"\\e9c5"}[_nghost-%COMP%] .pi-flag:before{content:"\\e9c4"}[_nghost-%COMP%] .pi-wallet:before{content:"\\e9c3"}[_nghost-%COMP%] .pi-map:before{content:"\\e9c2"}[_nghost-%COMP%] .pi-link:before{content:"\\e9c1"}[_nghost-%COMP%] .pi-credit-card:before{content:"\\e9bf"}[_nghost-%COMP%] .pi-discord:before{content:"\\e9c0"}[_nghost-%COMP%] .pi-percentage:before{content:"\\e9be"}[_nghost-%COMP%] .pi-euro:before{content:"\\e9bd"}[_nghost-%COMP%] .pi-book:before{content:"\\e9ba"}[_nghost-%COMP%] .pi-shield:before{content:"\\e9b9"}[_nghost-%COMP%] .pi-paypal:before{content:"\\e9bb"}[_nghost-%COMP%] .pi-amazon:before{content:"\\e9bc"}[_nghost-%COMP%] .pi-phone:before{content:"\\e9b8"}[_nghost-%COMP%] .pi-filter-slash:before{content:"\\e9b7"}[_nghost-%COMP%] .pi-facebook:before{content:"\\e9b4"}[_nghost-%COMP%] .pi-github:before{content:"\\e9b5"}[_nghost-%COMP%] .pi-twitter:before{content:"\\e9b6"}[_nghost-%COMP%] .pi-step-backward-alt:before{content:"\\e9ac"}[_nghost-%COMP%] .pi-step-forward-alt:before{content:"\\e9ad"}[_nghost-%COMP%] .pi-forward:before{content:"\\e9ae"}[_nghost-%COMP%] .pi-backward:before{content:"\\e9af"}[_nghost-%COMP%] .pi-fast-backward:before{content:"\\e9b0"}[_nghost-%COMP%] .pi-fast-forward:before{content:"\\e9b1"}[_nghost-%COMP%] .pi-pause:before{content:"\\e9b2"}[_nghost-%COMP%] .pi-play:before{content:"\\e9b3"}[_nghost-%COMP%] .pi-compass:before{content:"\\e9ab"}[_nghost-%COMP%] .pi-id-card:before{content:"\\e9aa"}[_nghost-%COMP%] .pi-ticket:before{content:"\\e9a9"}[_nghost-%COMP%] .pi-file-o:before{content:"\\e9a8"}[_nghost-%COMP%] .pi-reply:before{content:"\\e9a7"}[_nghost-%COMP%] .pi-directions-alt:before{content:"\\e9a5"}[_nghost-%COMP%] .pi-directions:before{content:"\\e9a6"}[_nghost-%COMP%] .pi-thumbs-up:before{content:"\\e9a3"}[_nghost-%COMP%] .pi-thumbs-down:before{content:"\\e9a4"}[_nghost-%COMP%] .pi-sort-numeric-down-alt:before{content:"\\e996"}[_nghost-%COMP%] .pi-sort-numeric-up-alt:before{content:"\\e997"}[_nghost-%COMP%] .pi-sort-alpha-down-alt:before{content:"\\e998"}[_nghost-%COMP%] .pi-sort-alpha-up-alt:before{content:"\\e999"}[_nghost-%COMP%] .pi-sort-numeric-down:before{content:"\\e99a"}[_nghost-%COMP%] .pi-sort-numeric-up:before{content:"\\e99b"}[_nghost-%COMP%] .pi-sort-alpha-down:before{content:"\\e99c"}[_nghost-%COMP%] .pi-sort-alpha-up:before{content:"\\e99d"}[_nghost-%COMP%] .pi-sort-alt:before{content:"\\e99e"}[_nghost-%COMP%] .pi-sort-amount-up:before{content:"\\e99f"}[_nghost-%COMP%] .pi-sort-amount-down:before{content:"\\e9a0"}[_nghost-%COMP%] .pi-sort-amount-down-alt:before{content:"\\e9a1"}[_nghost-%COMP%] .pi-sort-amount-up-alt:before{content:"\\e9a2"}[_nghost-%COMP%] .pi-palette:before{content:"\\e995"}[_nghost-%COMP%] .pi-undo:before{content:"\\e994"}[_nghost-%COMP%] .pi-desktop:before{content:"\\e993"}[_nghost-%COMP%] .pi-sliders-v:before{content:"\\e991"}[_nghost-%COMP%] .pi-sliders-h:before{content:"\\e992"}[_nghost-%COMP%] .pi-search-plus:before{content:"\\e98f"}[_nghost-%COMP%] .pi-search-minus:before{content:"\\e990"}[_nghost-%COMP%] .pi-file-excel:before{content:"\\e98e"}[_nghost-%COMP%] .pi-file-pdf:before{content:"\\e98d"}[_nghost-%COMP%] .pi-check-square:before{content:"\\e98c"}[_nghost-%COMP%] .pi-chart-line:before{content:"\\e98b"}[_nghost-%COMP%] .pi-user-edit:before{content:"\\e98a"}[_nghost-%COMP%] .pi-exclamation-circle:before{content:"\\e989"}[_nghost-%COMP%] .pi-android:before{content:"\\e985"}[_nghost-%COMP%] .pi-google:before{content:"\\e986"}[_nghost-%COMP%] .pi-apple:before{content:"\\e987"}[_nghost-%COMP%] .pi-microsoft:before{content:"\\e988"}[_nghost-%COMP%] .pi-heart:before{content:"\\e984"}[_nghost-%COMP%] .pi-mobile:before{content:"\\e982"}[_nghost-%COMP%] .pi-tablet:before{content:"\\e983"}[_nghost-%COMP%] .pi-key:before{content:"\\e981"}[_nghost-%COMP%] .pi-shopping-cart:before{content:"\\e980"}[_nghost-%COMP%] .pi-comments:before{content:"\\e97e"}[_nghost-%COMP%] .pi-comment:before{content:"\\e97f"}[_nghost-%COMP%] .pi-briefcase:before{content:"\\e97d"}[_nghost-%COMP%] .pi-bell:before{content:"\\e97c"}[_nghost-%COMP%] .pi-paperclip:before{content:"\\e97b"}[_nghost-%COMP%] .pi-share-alt:before{content:"\\e97a"}[_nghost-%COMP%] .pi-envelope:before{content:"\\e979"}[_nghost-%COMP%] .pi-volume-down:before{content:"\\e976"}[_nghost-%COMP%] .pi-volume-up:before{content:"\\e977"}[_nghost-%COMP%] .pi-volume-off:before{content:"\\e978"}[_nghost-%COMP%] .pi-eject:before{content:"\\e975"}[_nghost-%COMP%] .pi-money-bill:before{content:"\\e974"}[_nghost-%COMP%] .pi-images:before{content:"\\e973"}[_nghost-%COMP%] .pi-image:before{content:"\\e972"}[_nghost-%COMP%] .pi-sign-in:before{content:"\\e970"}[_nghost-%COMP%] .pi-sign-out:before{content:"\\e971"}[_nghost-%COMP%] .pi-wifi:before{content:"\\e96f"}[_nghost-%COMP%] .pi-sitemap:before{content:"\\e96e"}[_nghost-%COMP%] .pi-chart-bar:before{content:"\\e96d"}[_nghost-%COMP%] .pi-camera:before{content:"\\e96c"}[_nghost-%COMP%] .pi-dollar:before{content:"\\e96b"}[_nghost-%COMP%] .pi-lock-open:before{content:"\\e96a"}[_nghost-%COMP%] .pi-table:before{content:"\\e969"}[_nghost-%COMP%] .pi-map-marker:before{content:"\\e968"}[_nghost-%COMP%] .pi-list:before{content:"\\e967"}[_nghost-%COMP%] .pi-eye-slash:before{content:"\\e965"}[_nghost-%COMP%] .pi-eye:before{content:"\\e966"}[_nghost-%COMP%] .pi-folder-open:before{content:"\\e964"}[_nghost-%COMP%] .pi-folder:before{content:"\\e963"}[_nghost-%COMP%] .pi-video:before{content:"\\e962"}[_nghost-%COMP%] .pi-inbox:before{content:"\\e961"}[_nghost-%COMP%] .pi-lock:before{content:"\\e95f"}[_nghost-%COMP%] .pi-unlock:before{content:"\\e960"}[_nghost-%COMP%] .pi-tags:before{content:"\\e95d"}[_nghost-%COMP%] .pi-tag:before{content:"\\e95e"}[_nghost-%COMP%] .pi-power-off:before{content:"\\e95c"}[_nghost-%COMP%] .pi-save:before{content:"\\e95b"}[_nghost-%COMP%] .pi-question-circle:before{content:"\\e959"}[_nghost-%COMP%] .pi-question:before{content:"\\e95a"}[_nghost-%COMP%] .pi-copy:before{content:"\\e957"}[_nghost-%COMP%] .pi-file:before{content:"\\e958"}[_nghost-%COMP%] .pi-clone:before{content:"\\e955"}[_nghost-%COMP%] .pi-calendar-times:before{content:"\\e952"}[_nghost-%COMP%] .pi-calendar-minus:before{content:"\\e953"}[_nghost-%COMP%] .pi-calendar-plus:before{content:"\\e954"}[_nghost-%COMP%] .pi-ellipsis-v:before{content:"\\e950"}[_nghost-%COMP%] .pi-ellipsis-h:before{content:"\\e951"}[_nghost-%COMP%] .pi-bookmark:before{content:"\\e94e"}[_nghost-%COMP%] .pi-globe:before{content:"\\e94f"}[_nghost-%COMP%] .pi-replay:before{content:"\\e94d"}[_nghost-%COMP%] .pi-filter:before{content:"\\e94c"}[_nghost-%COMP%] .pi-print:before{content:"\\e94b"}[_nghost-%COMP%] .pi-align-right:before{content:"\\e946"}[_nghost-%COMP%] .pi-align-left:before{content:"\\e947"}[_nghost-%COMP%] .pi-align-center:before{content:"\\e948"}[_nghost-%COMP%] .pi-align-justify:before{content:"\\e949"}[_nghost-%COMP%] .pi-cog:before{content:"\\e94a"}[_nghost-%COMP%] .pi-cloud-download:before{content:"\\e943"}[_nghost-%COMP%] .pi-cloud-upload:before{content:"\\e944"}[_nghost-%COMP%] .pi-cloud:before{content:"\\e945"}[_nghost-%COMP%] .pi-pencil:before{content:"\\e942"}[_nghost-%COMP%] .pi-users:before{content:"\\e941"}[_nghost-%COMP%] .pi-clock:before{content:"\\e940"}[_nghost-%COMP%] .pi-user-minus:before{content:"\\e93e"}[_nghost-%COMP%] .pi-user-plus:before{content:"\\e93f"}[_nghost-%COMP%] .pi-trash:before{content:"\\e93d"}[_nghost-%COMP%] .pi-external-link:before{content:"\\e93c"}[_nghost-%COMP%] .pi-window-maximize:before{content:"\\e93b"}[_nghost-%COMP%] .pi-window-minimize:before{content:"\\e93a"}[_nghost-%COMP%] .pi-refresh:before{content:"\\e938"}[_nghost-%COMP%] .pi-user:before{content:"\\e939"}[_nghost-%COMP%] .pi-exclamation-triangle:before{content:"\\e922"}[_nghost-%COMP%] .pi-calendar:before{content:"\\e927"}[_nghost-%COMP%] .pi-chevron-circle-left:before{content:"\\e928"}[_nghost-%COMP%] .pi-chevron-circle-down:before{content:"\\e929"}[_nghost-%COMP%] .pi-chevron-circle-right:before{content:"\\e92a"}[_nghost-%COMP%] .pi-chevron-circle-up:before{content:"\\e92b"}[_nghost-%COMP%] .pi-angle-double-down:before{content:"\\e92c"}[_nghost-%COMP%] .pi-angle-double-left:before{content:"\\e92d"}[_nghost-%COMP%] .pi-angle-double-right:before{content:"\\e92e"}[_nghost-%COMP%] .pi-angle-double-up:before{content:"\\e92f"}[_nghost-%COMP%] .pi-angle-down:before{content:"\\e930"}[_nghost-%COMP%] .pi-angle-left:before{content:"\\e931"}[_nghost-%COMP%] .pi-angle-right:before{content:"\\e932"}[_nghost-%COMP%] .pi-angle-up:before{content:"\\e933"}[_nghost-%COMP%] .pi-upload:before{content:"\\e934"}[_nghost-%COMP%] .pi-download:before{content:"\\e956"}[_nghost-%COMP%] .pi-ban:before{content:"\\e935"}[_nghost-%COMP%] .pi-star-fill:before{content:"\\e936"}[_nghost-%COMP%] .pi-star:before{content:"\\e937"}[_nghost-%COMP%] .pi-chevron-left:before{content:"\\e900"}[_nghost-%COMP%] .pi-chevron-right:before{content:"\\e901"}[_nghost-%COMP%] .pi-chevron-down:before{content:"\\e902"}[_nghost-%COMP%] .pi-chevron-up:before{content:"\\e903"}[_nghost-%COMP%] .pi-caret-left:before{content:"\\e904"}[_nghost-%COMP%] .pi-caret-right:before{content:"\\e905"}[_nghost-%COMP%] .pi-caret-down:before{content:"\\e906"}[_nghost-%COMP%] .pi-caret-up:before{content:"\\e907"}[_nghost-%COMP%] .pi-search:before{content:"\\e908"}[_nghost-%COMP%] .pi-check:before{content:"\\e909"}[_nghost-%COMP%] .pi-check-circle:before{content:"\\e90a"}[_nghost-%COMP%] .pi-times:before{content:"\\e90b"}[_nghost-%COMP%] .pi-times-circle:before{content:"\\e90c"}[_nghost-%COMP%] .pi-plus:before{content:"\\e90d"}[_nghost-%COMP%] .pi-plus-circle:before{content:"\\e90e"}[_nghost-%COMP%] .pi-minus:before{content:"\\e90f"}[_nghost-%COMP%] .pi-minus-circle:before{content:"\\e910"}[_nghost-%COMP%] .pi-circle-on:before{content:"\\e911"}[_nghost-%COMP%] .pi-circle-off:before{content:"\\e912"}[_nghost-%COMP%] .pi-sort-down:before{content:"\\e913"}[_nghost-%COMP%] .pi-sort-up:before{content:"\\e914"}[_nghost-%COMP%] .pi-sort:before{content:"\\e915"}[_nghost-%COMP%] .pi-step-backward:before{content:"\\e916"}[_nghost-%COMP%] .pi-step-forward:before{content:"\\e917"}[_nghost-%COMP%] .pi-th-large:before{content:"\\e918"}[_nghost-%COMP%] .pi-arrow-down:before{content:"\\e919"}[_nghost-%COMP%] .pi-arrow-left:before{content:"\\e91a"}[_nghost-%COMP%] .pi-arrow-right:before{content:"\\e91b"}[_nghost-%COMP%] .pi-arrow-up:before{content:"\\e91c"}[_nghost-%COMP%] .pi-bars:before{content:"\\e91d"}[_nghost-%COMP%] .pi-arrow-circle-down:before{content:"\\e91e"}[_nghost-%COMP%] .pi-arrow-circle-left:before{content:"\\e91f"}[_nghost-%COMP%] .pi-arrow-circle-right:before{content:"\\e920"}[_nghost-%COMP%] .pi-arrow-circle-up:before{content:"\\e921"}[_nghost-%COMP%] .pi-info:before{content:"\\e923"}[_nghost-%COMP%] .pi-info-circle:before{content:"\\e924"}[_nghost-%COMP%] .pi-home:before{content:"\\e925"}[_nghost-%COMP%] .pi-spinner:before{content:"\\e926"}[_nghost-%COMP%]{position:relative;font-family:Roboto,sans-serif;height:100%;display:block}[_nghost-%COMP%] .editor-wrapper[_ngcontent-%COMP%]{display:block;border-radius:4px;height:500px;overflow:hidden;position:relative;resize:vertical;outline:#b3b1b8 solid 1px}[_nghost-%COMP%]:focus-within{outline-color:var(--color-main)}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] {display:block;height:100%;overflow-y:auto;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror{box-sizing:border-box;display:block;min-height:100%;outline:none;padding:16px 64px;font:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img{max-width:100%;max-height:100%;position:relative}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror img:before{align-items:center;background:#f1f3f4;border-radius:3px;border:1px solid #b3b1b8;color:#7e7a86;content:"The image URL " attr(src) " seems to be broken, please double check the URL.";display:flex;height:100%;left:0;padding:1rem;position:absolute;text-align:center;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol{padding-inline-start:16px;margin:0 0 0 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ol li{list-style-type:decimal}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror ul li{list-style-type:disc}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li{padding-top:4.576px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror li p{padding:0;margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h1{font-size:38.88px;line-height:41.2128px;padding-top:6.88px;margin-bottom:13.76px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h2{font-size:30.88px;line-height:41.12px;padding-top:10.4px;margin-bottom:10.4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h3{font-size:25.12px;line-height:41.2px;padding-top:41.2px;margin-bottom:8px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror h4{font-size:20.64px;line-height:41.28px;padding-top:13.76px;margin-bottom:6.88px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror p{font-size:16px;line-height:20.64px;padding-top:4.576px;margin-bottom:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror blockquote{margin:16px;border-left:3px solid rgba(17,21,46,.1);padding-left:16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre{background:#11152e;border-radius:8px;color:#fff;padding:12px 16px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror pre code{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;background:none;color:inherit;padding:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror .is-empty:before{color:#b3b1b8;content:attr(data-placeholder);float:left;height:0;pointer-events:none}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table{border-collapse:collapse;margin:0;overflow:hidden;table-layout:fixed;width:100%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{border:2px solid #b3b1b8;box-sizing:border-box;min-width:1rem;padding:3px 20px 3px 5px;position:relative;vertical-align:top}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-clip:padding-box}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td>*, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th>*{margin-bottom:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th{background-color:#f1f3f4;font-weight:700;text-align:left}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell{background-color:#e2e2e2}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell:after{content:"";inset:0;pointer-events:none;position:absolute}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .column-resize-handle{bottom:-2px;position:absolute;right:-2px;pointer-events:none;top:0;width:4px}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table p{margin:0}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .tableWrapper{padding:1rem 0;overflow-x:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .resize-cursor{cursor:ew-resize;cursor:col-resize}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .dot-cell-arrow{position:absolute;display:none;top:3px;right:5px;border:solid black;border-width:0 2px 2px 0;padding:3px;transform:rotate(45deg);-webkit-transform:rotate(45deg);background:transparent;cursor:pointer;z-index:100}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table .selectedCell .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table td.focus .dot-cell-arrow, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .ProseMirror table th.focus .dot-cell-arrow{display:block}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] video{max-width:100%;max-height:100%;height:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .vertical-video{max-height:400px;width:auto}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .horizontal-video, [_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .node-image{height:auto;width:50%}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%] .node-container{margin-bottom:1rem}[_nghost-%COMP%] tiptap-editor[_ngcontent-%COMP%]{scrollbar-gutter:stable}[_nghost-%COMP%] .overflow-hidden[_ngcontent-%COMP%]{overflow-y:hidden}']}),n})(),hfe=(()=>{class n{constructor(e){this.injector=e}ngDoBootstrap(){if(void 0===customElements.get("dotcms-block-editor")){const e=function A8(n,t){const e=function u8(n,t){return t.get(Es).resolveComponentFactory(n).inputs}(n,t.injector),i=t.strategyFactory||new f8(n,t.injector),r=function c8(n){const t={};return n.forEach(({propName:e,templateName:i})=>{t[function r8(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(i)]=e}),t}(e);class o extends m8{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||t.injector);e.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return o.observedAttributes=Object.keys(r),e.forEach(({propName:s})=>{Object.defineProperty(o.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(a){this.ngElementStrategy.setInputValue(s,a)},configurable:!0,enumerable:!0})}),o}(dfe,{injector:this.injector});customElements.define("dotcms-block-editor",e)}}}return n.\u0275fac=function(e){return new(e||n)(j(Tn))},n.\u0275mod=Fe({type:n}),n.\u0275inj=Pe({imports:[A1,pK,Kt,yg,xhe,DC,AC,_E]}),n})();(function XG(){if(mT)throw new Error("Cannot enable prod mode after platform setup.");gT=!1})(),C5().bootstrapModule(hfe).catch(n=>console.error(n))},222:(Vr,Il,yu)=>{Vr=yu.nmd(Vr);var pa="__lodash_hash_undefined__",fa=9007199254740991,Er="[object Arguments]",ga="[object Array]",ma="[object Boolean]",We="[object Date]",_u="[object Error]",Aa="[object Function]",Ge="[object Map]",Eu="[object Number]",cs="[object Object]",us="[object Promise]",lp="[object RegExp]",ba="[object Set]",et="[object String]",Cr="[object WeakMap]",Cu="[object ArrayBuffer]",ya="[object DataView]",Ow=/^\[object .+?Constructor\]$/,sb=/^(?:0|[1-9]\d*)$/,vt={};vt["[object Float32Array]"]=vt["[object Float64Array]"]=vt["[object Int8Array]"]=vt["[object Int16Array]"]=vt["[object Int32Array]"]=vt["[object Uint8Array]"]=vt["[object Uint8ClampedArray]"]=vt["[object Uint16Array]"]=vt["[object Uint32Array]"]=!0,vt[Er]=vt[ga]=vt[Cu]=vt[ma]=vt[ya]=vt[We]=vt[_u]=vt[Aa]=vt[Ge]=vt[Eu]=vt[cs]=vt[lp]=vt[ba]=vt[et]=vt[Cr]=!1;var vu="object"==typeof global&&global&&global.Object===Object&&global,hp="object"==typeof self&&self&&self.Object===Object&&self,xi=vu||hp||Function("return this")(),pp=Il&&!Il.nodeType&&Il,fp=pp&&Vr&&!Vr.nodeType&&Vr,Tl=fp&&fp.exports===pp,Mu=Tl&&vu.process,gp=function(){try{return Mu&&Mu.binding&&Mu.binding("util")}catch{}}(),mp=gp&&gp.isTypedArray;function _a(_,M){for(var R=-1,z=null==_?0:_.length;++RTe))return!1;var at=F.get(_);if(at&&F.get(M))return at==M;var nt=-1,hn=!0,Qe=2&R?new xu:void 0;for(F.set(_,M),F.set(M,_);++nt-1},dn.prototype.set=function hb(_,M){var R=this.__data__,z=wa(R,_);return z<0?(++this.size,R.push([_,M])):R[z][1]=M,this},fs.prototype.clear=function pb(){this.size=0,this.__data__={hash:new To,map:new(So||dn),string:new To}},fs.prototype.delete=function Hw(_){var M=ku(this,_).delete(_);return this.size-=M?1:0,M},fs.prototype.get=function ni(_){return ku(this,_).get(_)},fs.prototype.has=function tt(_){return ku(this,_).has(_)},fs.prototype.set=function Vw(_,M){var R=ku(this,_),z=R.size;return R.set(_,M),this.size+=R.size==z?0:1,this},xu.prototype.add=xu.prototype.push=function Gw(_){return this.__data__.set(_,pa),this},xu.prototype.has=function Y(_){return this.__data__.has(_)},Bo.prototype.clear=function Pe(){this.__data__=new dn,this.size=0},Bo.prototype.delete=function Pl(_){var M=this.__data__,R=M.delete(_);return this.size=M.size,R},Bo.prototype.get=function fb(_){return this.__data__.get(_)},Bo.prototype.has=function Mp(_){return this.__data__.has(_)},Bo.prototype.set=function gb(_,M){var R=this.__data__;if(R instanceof dn){var z=R.__data__;if(!So||z.length<199)return z.push([_,M]),this.size=++R.size,this;R=this.__data__=new fs(z)}return R.set(_,M),this.size=R.size,this};var mt=Ep?function(_){return null==_?[]:(_=Object(_),function wu(_,M){for(var R=-1,z=null==_?0:_.length,Le=0,F=[];++R-1&&_%1==0&&_-1&&_%1==0&&_<=fa}function Fe(_){var M=typeof _;return null!=_&&("object"==M||"function"==M)}function Ia(_){return null!=_&&"object"==typeof _}var Lu=mp?function Ea(_){return function(M){return _(M)}}(mp):function Ab(_){return Ia(_)&&Nu(_.length)&&!!vt[Oo(_)]};function ue(_){return function bb(_){return null!=_&&Nu(_.length)&&!Ru(_)}(_)?function mb(_,M){var R=Yr(_),z=!R&&Mr(_),Le=!R&&!z&&ve(_),F=!R&&!z&&!Le&&Lu(_),ee=R||z||Le||F,Te=ee?function kw(_,M){for(var R=-1,z=Array(_);++R<_;)z[R]=M(R);return z}(_.length,String):[],st=Te.length;for(var at in _)(M||Wi.call(_,at))&&(!ee||!("length"==at||Le&&("offset"==at||"parent"==at)||F&&("buffer"==at||"byteLength"==at||"byteOffset"==at)||Ww(at,st)))&&Te.push(at);return Te}(_):function gi(_){if(!function Rl(_){var M=_&&_.constructor;return _===("function"==typeof M&&M.prototype||ps)}(_))return Iu(_);var M=[];for(var R in Object(_))Wi.call(_,R)&&"constructor"!=R&&M.push(R);return M}(_)}Vr.exports=function ms(_,M){return wp(_,M)}}},Vr=>{Vr(Vr.s=10)}]); \ No newline at end of file