homebridge-config-ui-x
Version:
A web based management, configuration and control platform for Homebridge.
3 lines (2 loc) • 35.1 kB
JavaScript
var ce=globalThis;function ee(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function _t(){let e=ce.performance;function n(N){e&&e.mark&&e.mark(N)}function c(N,_){e&&e.measure&&e.measure(N,_)}n("Zone");let t=(()=>{class N{static __symbol__=ee;static assertZonePatched(){if(ce.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let r=N.current;for(;r.parent;)r=r.parent;return r}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(r,o,k=!1){if(O.hasOwnProperty(r)){let R=ce[ee("forceDuplicateZoneCheck")]===!0;if(!k&&R)throw Error("Already loaded patch: "+r)}else if(!ce["__Zone_disable_"+r]){let R="Zone:"+r;n(R),O[r]=o(ce,N,P),c(R,R)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(r,o){this._parent=r,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(r){let o=this.getZoneWith(r);if(o)return o._properties[r]}getZoneWith(r){let o=this;for(;o;){if(o._properties.hasOwnProperty(r))return o;o=o._parent}return null}fork(r){if(!r)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,r)}wrap(r,o){if(typeof r!="function")throw new Error("Expecting function got: "+r);let k=this._zoneDelegate.intercept(this,r,o),R=this;return function(){return R.runGuarded(k,this,arguments,o)}}run(r,o,k,R){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,r,o,k,R)}finally{b=b.parent}}runGuarded(r,o=null,k,R){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,r,o,k,R)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(r,o,k){if(r.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(r.zone||J).name+"; Execution: "+this.name+")");let R=r,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=r;if(r.state===X&&(q===z||q===g))return;let ae=r.state!=j;ae&&R._transitionTo(j,h);let le=S;S=R,b={parent:b,zone:this};try{q==g&&r.data&&!A&&!_e&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,R,o,k)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=r.state;if(ne!==X&&ne!==$)if(q==z||A||_e&&ne===y)ae&&R._transitionTo(h,j,y);else{let f=R._zoneDelegates;this._updateTaskCount(R,-1),ae&&R._transitionTo(X,j,X),_e&&(R._zoneDelegates=f)}b=b.parent,S=le}}scheduleTask(r){if(r.zone&&r.zone!==this){let k=this;for(;k;){if(k===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);k=k.parent}}r._transitionTo(y,X);let o=[];r._zoneDelegates=o,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(k){throw r._transitionTo($,y,X),this._zoneDelegate.handleError(this,k),k}return r._zoneDelegates===o&&this._updateTaskCount(r,1),r.state==y&&r._transitionTo(h,y),r}scheduleMicroTask(r,o,k,R){return this.scheduleTask(new E(U,r,o,k,R,void 0))}scheduleMacroTask(r,o,k,R,q){return this.scheduleTask(new E(g,r,o,k,R,q))}scheduleEventTask(r,o,k,R,q){return this.scheduleTask(new E(z,r,o,k,R,q))}cancelTask(r){if(r.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(r.zone||J).name+"; Execution: "+this.name+")");if(!(r.state!==h&&r.state!==j)){r._transitionTo(B,h,j);try{this._zoneDelegate.cancelTask(this,r)}catch(o){throw r._transitionTo($,B),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(r,-1),r._transitionTo(X,B),r.runCount=-1,r}}_updateTaskCount(r,o){let k=r._zoneDelegates;o==-1&&(r._zoneDelegates=null);for(let R=0;R<k.length;R++)k[R]._updateTaskCount(r.type,o)}}return N})(),i={name:"",onHasTask:(N,_,r,o)=>N.hasTask(r,o),onScheduleTask:(N,_,r,o)=>N.scheduleTask(r,o),onInvokeTask:(N,_,r,o,k,R)=>N.invokeTask(r,o,k,R),onCancelTask:(N,_,r,o)=>N.cancelTask(r,o)};class u{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(_,r,o){this._zone=_,this._parentDelegate=r,this._forkZS=o&&(o&&o.onFork?o:r._forkZS),this._forkDlgt=o&&(o.onFork?r:r._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:r._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:r._interceptZS),this._interceptDlgt=o&&(o.onIntercept?r:r._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:r._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:r._invokeZS),this._invokeDlgt=o&&(o.onInvoke?r:r._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:r._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:r._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?r:r._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:r._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:r._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?r:r._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:r._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:r._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?r:r._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:r._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:r._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?r:r._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:r._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let k=o&&o.onHasTask,R=r&&r._hasTaskZS;(k||R)&&(this._hasTaskZS=k?o:i,this._hasTaskDlgt=r,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=r,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=r,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=r,this._cancelTaskCurrZone=this._zone))}fork(_,r){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,r):new t(_,r)}intercept(_,r,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,r,o):r}invoke(_,r,o,k,R){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,r,o,k,R):r.apply(o,k)}handleError(_,r){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,r):!0}scheduleTask(_,r){let o=r;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,r),o||(o=r);else if(r.scheduleFn)r.scheduleFn(r);else if(r.type==U)V(r);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(_,r,o,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,r,o,k):r.callback.apply(o,k)}cancelTask(_,r){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,r);else{if(!r.cancelFn)throw Error("Task is not cancelable");o=r.cancelFn(r)}return o}hasTask(_,r){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,r)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,r){let o=this._taskCounts,k=o[_],R=o[_]=k+r;if(R<0)throw new Error("More tasks executed then were scheduled.");if(k==0||R==0){let q={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_};this.hasTask(this._zone,q)}}}class E{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(_,r,o,k,R,q){if(this.type=_,this.source=r,this.data=k,this.scheduleFn=R,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;let A=this;_===z&&k&&k.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ce,A,this,arguments)}}static invokeTask(_,r,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,r,o)}finally{Q==1&&K(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,y)}_transitionTo(_,r,o){if(this._state===r||this._state===o)this._state=_,_==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${r}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}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}}}let T=ee("setTimeout"),m=ee("Promise"),w=ee("then"),d=[],C=!1,Z;function x(N){if(Z||ce[m]&&(Z=ce[m].resolve(0)),Z){let _=Z[w];_||(_=Z.then),_.call(Z,N)}else ce[T](N,0)}function V(N){Q===0&&d.length===0&&x(K),N&&d.push(N)}function K(){if(!C){for(C=!0;d.length;){let N=d;d=[];for(let _=0;_<N.length;_++){let r=N[_];try{r.zone.runTask(r,null,null)}catch(o){P.onUnhandledError(o)}}}P.microtaskDrainDone(),C=!1}}let J={name:"NO ZONE"},X="notScheduled",y="scheduling",h="scheduled",j="running",B="canceling",$="unknown",U="microTask",g="macroTask",z="eventTask",O={},P={symbol:ee,currentZoneFrame:()=>b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:V,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x},b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}function Tt(){let e=globalThis,n=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(n||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=_t(),e.Zone}var ye=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,gt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Ie=ee(He),Le=ee(xe),ue="true",fe="false",ve=ee("");function Be(e,n){return Zone.current.wrap(e,n)}function Ue(e,n,c,t,i){return Zone.current.scheduleMacroTask(e,n,c,t,i)}var H=ee,De=typeof window<"u",be=De?window:void 0,Y=De&&be||globalThis,pt="removeAttribute";function Fe(e,n){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Be(e[c],n+"_"+c));return e}function mt(e,n){let c=e.constructor.name;for(let t=0;t<n.length;t++){let i=n[t],u=e[i];if(u){let E=ye(e,i);if(!tt(E))continue;e[i]=(T=>{let m=function(){return T.apply(this,Fe(arguments,c+"."+i))};return de(m,T),m})(u)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Ge=!we&&!nt&&!!(De&&be.HTMLElement),rt=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!nt&&!!(De&&be.HTMLElement),Pe={},kt=H("enable_beforeunload"),$e=function(e){if(e=e||Y.event,!e)return;let n=Pe[e.type];n||(n=Pe[e.type]=H("ON_PROPERTY"+e.type));let c=this||e.target||Y,t=c[n],i;if(Ge&&c===be&&e.type==="error"){let u=e;i=t&&t.call(this,u.message,u.filename,u.lineno,u.colno,u.error),i===!0&&e.preventDefault()}else i=t&&t.apply(this,arguments),e.type==="beforeunload"&&Y[kt]&&typeof i=="string"?e.returnValue=i:i!=null&&!i&&e.preventDefault();return i};function Ye(e,n,c){let t=ye(e,n);if(!t&&c&&ye(c,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let i=H("on"+n+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;let u=t.get,E=t.set,T=n.slice(2),m=Pe[T];m||(m=Pe[T]=H("ON_PROPERTY"+T)),t.set=function(w){let d=this;if(!d&&e===Y&&(d=Y),!d)return;typeof d[m]=="function"&&d.removeEventListener(T,$e),E?.call(d,null),d[m]=w,typeof w=="function"&&d.addEventListener(T,$e,!1)},t.get=function(){let w=this;if(!w&&e===Y&&(w=Y),!w)return null;let d=w[m];if(d)return d;if(u){let C=u.call(this);if(C)return t.set.call(this,C),typeof w[pt]=="function"&&w.removeAttribute(n),C}return null},Ae(e,n,t),e[i]=!0}function ot(e,n,c){if(n)for(let t=0;t<n.length;t++)Ye(e,"on"+n[t],c);else{let t=[];for(let i in e)i.slice(0,2)=="on"&&t.push(i);for(let i=0;i<t.length;i++)Ye(e,t[i],c)}}var oe=H("originalInstance");function ke(e){let n=Y[e];if(!n)return;Y[H(e)]=n,Y[e]=function(){let i=Fe(arguments,e);switch(i.length){case 0:this[oe]=new n;break;case 1:this[oe]=new n(i[0]);break;case 2:this[oe]=new n(i[0],i[1]);break;case 3:this[oe]=new n(i[0],i[1],i[2]);break;case 4:this[oe]=new n(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},de(Y[e],n);let c=new n(function(){}),t;for(t in c)e==="XMLHttpRequest"&&t==="responseBlob"||function(i){typeof c[i]=="function"?Y[e].prototype[i]=function(){return this[oe][i].apply(this[oe],arguments)}:Ae(Y[e].prototype,i,{set:function(u){typeof u=="function"?(this[oe][i]=Be(u,e+"."+i),de(this[oe][i],u)):this[oe][i]=u},get:function(){return this[oe][i]}})}(t);for(t in n)t!=="prototype"&&n.hasOwnProperty(t)&&(Y[e][t]=n[t])}function he(e,n,c){let t=e;for(;t&&!t.hasOwnProperty(n);)t=je(t);!t&&e[n]&&(t=e);let i=H(n),u=null;if(t&&(!(u=t[i])||!t.hasOwnProperty(i))){u=t[i]=t[n];let E=t&&ye(t,n);if(tt(E)){let T=c(u,i,n);t[n]=function(){return T(this,arguments)},de(t[n],u)}}return u}function yt(e,n,c){let t=null;function i(u){let E=u.data;return E.args[E.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(E.target,E.args),u}t=he(e,n,u=>function(E,T){let m=c(E,T);return m.cbIdx>=0&&typeof T[m.cbIdx]=="function"?Ue(m.name,T[m.cbIdx],m,i):u.apply(E,T)})}function de(e,n){e[H("OriginalDelegate")]=n}var Ke=!1,Me=!1;function vt(){if(Ke)return Me;Ke=!0;try{let e=be.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Je(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var bt={useG:!0},te={},st={},it=new RegExp("^"+ve+"(\\w+)(true|false)$"),ct=H("propagationStopped");function at(e,n){let c=(n?n(e):e)+fe,t=(n?n(e):e)+ue,i=ve+c,u=ve+t;te[e]={},te[e][fe]=i,te[e][ue]=u}function Rt(e,n,c,t){let i=t&&t.add||He,u=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",m=H(i),w="."+i+":",d="prependListener",C="."+d+":",Z=function(y,h,j){if(y.isRemoved)return;let B=y.callback;typeof B=="object"&&B.handleEvent&&(y.callback=g=>B.handleEvent(g),y.originalDelegate=B);let $;try{y.invoke(y,h,[j])}catch(g){$=g}let U=y.options;if(U&&typeof U=="object"&&U.once){let g=y.originalDelegate?y.originalDelegate:y.callback;h[u].call(h,j.type,g,U)}return $};function x(y,h,j){if(h=h||e.event,!h)return;let B=y||h.target||e,$=B[te[h.type][j?ue:fe]];if($){let U=[];if($.length===1){let g=Z($[0],B,h);g&&U.push(g)}else{let g=$.slice();for(let z=0;z<g.length&&!(h&&h[ct]===!0);z++){let O=Z(g[z],B,h);O&&U.push(O)}}if(U.length===1)throw U[0];for(let g=0;g<U.length;g++){let z=U[g];n.nativeScheduleMicroTask(()=>{throw z})}}}let V=function(y){return x(this,y,!1)},K=function(y){return x(this,y,!0)};function J(y,h){if(!y)return!1;let j=!0;h&&h.useG!==void 0&&(j=h.useG);let B=h&&h.vh,$=!0;h&&h.chkDup!==void 0&&($=h.chkDup);let U=!1;h&&h.rt!==void 0&&(U=h.rt);let g=y;for(;g&&!g.hasOwnProperty(i);)g=je(g);if(!g&&y[i]&&(g=y),!g||g[m])return!1;let z=h&&h.eventNameToString,O={},P=g[m]=g[i],b=g[H(u)]=g[u],S=g[H(E)]=g[E],Q=g[H(T)]=g[T],W;h&&h.prepend&&(W=g[H(h.prepend)]=g[h.prepend]);function N(s,l){return l?typeof s=="boolean"?{capture:s,passive:!0}:s?typeof s=="object"&&s.passive!==!1?{...s,passive:!0}:s:{passive:!0}:s}let _=function(s){if(!O.isExisting)return P.call(O.target,O.eventName,O.capture?K:V,O.options)},r=function(s){if(!s.isRemoved){let l=te[s.eventName],v;l&&(v=l[s.capture?ue:fe]);let D=v&&s.target[v];if(D){for(let p=0;p<D.length;p++)if(D[p]===s){D.splice(p,1),s.isRemoved=!0,s.removeAbortListener&&(s.removeAbortListener(),s.removeAbortListener=null),D.length===0&&(s.allRemoved=!0,s.target[v]=null);break}}}if(s.allRemoved)return b.call(s.target,s.eventName,s.capture?K:V,s.options)},o=function(s){return P.call(O.target,O.eventName,s.invoke,O.options)},k=function(s){return W.call(O.target,O.eventName,s.invoke,O.options)},R=function(s){return b.call(s.target,s.eventName,s.invoke,s.options)},q=j?_:o,A=j?r:R,_e=function(s,l){let v=typeof l;return v==="function"&&s.callback===l||v==="object"&&s.originalDelegate===l},ae=h?.diff||_e,le=Zone[H("UNPATCHED_EVENTS")],ne=e[H("PASSIVE_EVENTS")];function f(s){if(typeof s=="object"&&s!==null){let l={...s};return s.signal&&(l.signal=s.signal),l}return s}let a=function(s,l,v,D,p=!1,I=!1){return function(){let L=this||e,M=arguments[0];h&&h.transferEventName&&(M=h.transferEventName(M));let F=arguments[1];if(!F)return s.apply(this,arguments);if(we&&M==="uncaughtException")return s.apply(this,arguments);let G=!1;if(typeof F!="function"){if(!F.handleEvent)return s.apply(this,arguments);G=!0}if(B&&!B(s,F,L,arguments))return;let Te=!!ne&&ne.indexOf(M)!==-1,se=f(N(arguments[2],Te)),Ee=se?.signal;if(Ee?.aborted)return;if(le){for(let ie=0;ie<le.length;ie++)if(M===le[ie])return Te?s.call(L,M,F,se):s.apply(this,arguments)}let Oe=se?typeof se=="boolean"?!0:se.capture:!1,Ve=se&&typeof se=="object"?se.once:!1,dt=Zone.current,Ne=te[M];Ne||(at(M,z),Ne=te[M]);let ze=Ne[Oe?ue:fe],ge=L[ze],We=!1;if(ge){if(We=!0,$){for(let ie=0;ie<ge.length;ie++)if(ae(ge[ie],F))return}}else ge=L[ze]=[];let Re,qe=L.constructor.name,Xe=st[qe];Xe&&(Re=Xe[M]),Re||(Re=qe+l+(z?z(M):M)),O.options=se,Ve&&(O.options.once=!1),O.target=L,O.capture=Oe,O.eventName=M,O.isExisting=We;let me=j?bt:void 0;me&&(me.taskData=O),Ee&&(O.options.signal=void 0);let re=dt.scheduleEventTask(Re,F,me,v,D);if(Ee){O.options.signal=Ee;let ie=()=>re.zone.cancelTask(re);s.call(Ee,"abort",ie,{once:!0}),re.removeAbortListener=()=>Ee.removeEventListener("abort",ie)}if(O.target=null,me&&(me.taskData=null),Ve&&(O.options.once=!0),typeof re.options!="boolean"&&(re.options=se),re.target=L,re.capture=Oe,re.eventName=M,G&&(re.originalDelegate=F),I?ge.unshift(re):ge.push(re),p)return L}};return g[i]=a(P,w,q,A,U),W&&(g[d]=a(W,C,k,A,U,!0)),g[u]=function(){let s=this||e,l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));let v=arguments[2],D=v?typeof v=="boolean"?!0:v.capture:!1,p=arguments[1];if(!p)return b.apply(this,arguments);if(B&&!B(b,p,s,arguments))return;let I=te[l],L;I&&(L=I[D?ue:fe]);let M=L&&s[L];if(M)for(let F=0;F<M.length;F++){let G=M[F];if(ae(G,p)){if(M.splice(F,1),G.isRemoved=!0,M.length===0&&(G.allRemoved=!0,s[L]=null,!D&&typeof l=="string")){let Te=ve+"ON_PROPERTY"+l;s[Te]=null}return G.zone.cancelTask(G),U?s:void 0}}return b.apply(this,arguments)},g[E]=function(){let s=this||e,l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));let v=[],D=lt(s,z?z(l):l);for(let p=0;p<D.length;p++){let I=D[p],L=I.originalDelegate?I.originalDelegate:I.callback;v.push(L)}return v},g[T]=function(){let s=this||e,l=arguments[0];if(l){h&&h.transferEventName&&(l=h.transferEventName(l));let v=te[l];if(v){let D=v[fe],p=v[ue],I=s[D],L=s[p];if(I){let M=I.slice();for(let F=0;F<M.length;F++){let G=M[F],Te=G.originalDelegate?G.originalDelegate:G.callback;this[u].call(this,l,Te,G.options)}}if(L){let M=L.slice();for(let F=0;F<M.length;F++){let G=M[F],Te=G.originalDelegate?G.originalDelegate:G.callback;this[u].call(this,l,Te,G.options)}}}}else{let v=Object.keys(s);for(let D=0;D<v.length;D++){let p=v[D],I=it.exec(p),L=I&&I[1];L&&L!=="removeListener"&&this[T].call(this,L)}this[T].call(this,"removeListener")}if(U)return this},de(g[i],P),de(g[u],b),Q&&de(g[T],Q),S&&de(g[E],S),!0}let X=[];for(let y=0;y<c.length;y++)X[y]=J(c[y],t);return X}function lt(e,n){if(!n){let u=[];for(let E in e){let T=it.exec(E),m=T&&T[1];if(m&&(!n||m===n)){let w=e[E];if(w)for(let d=0;d<w.length;d++)u.push(w[d])}}return u}let c=te[n];c||(at(n),c=te[n]);let t=e[c[fe]],i=e[c[ue]];return t?i?t.concat(i):t.slice():i?i.slice():[]}function Ct(e,n){let c=e.Event;c&&c.prototype&&n.patchMethod(c.prototype,"stopImmediatePropagation",t=>function(i,u){i[ct]=!0,t&&t.apply(i,u)})}function Pt(e,n){n.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var Ce=H("zoneTask");function pe(e,n,c,t){let i=null,u=null;n+=t,c+=t;let E={};function T(w){let d=w.data;d.args[0]=function(){return w.invoke.apply(this,arguments)};let C=i.apply(e,d.args);return Qe(C)?d.handleId=C:(d.handle=C,d.isRefreshable=Je(C.refresh)),w}function m(w){let{handle:d,handleId:C}=w.data;return u.call(e,d??C)}i=he(e,n,w=>function(d,C){if(Je(C[0])){let Z={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?C[1]||0:void 0,args:C},x=C[0];C[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:j,handleId:B,isPeriodic:$,isRefreshable:U}=Z;!$&&!U&&(B?delete E[B]:j&&(j[Ce]=null))}};let V=Ue(n,C[0],Z,T,m);if(!V)return V;let{handleId:K,handle:J,isRefreshable:X,isPeriodic:y}=V.data;if(K)E[K]=V;else if(J&&(J[Ce]=V,X&&!y)){let h=J.refresh;J.refresh=function(){let{zone:j,state:B}=V;return B==="notScheduled"?(V._state="scheduled",j._updateTaskCount(V,1)):B==="running"&&(V._state="scheduling"),h.call(this)}}return J??K??V}else return w.apply(e,C)}),u=he(e,c,w=>function(d,C){let Z=C[0],x;Qe(Z)?(x=E[Z],delete E[Z]):(x=Z?.[Ce],x?Z[Ce]=null:x=Z),x?.type?x.cancelFn&&x.zone.cancelTask(x):w.apply(e,C)})}function Dt(e,n){let{isBrowser:c,isMix:t}=n.getGlobalObjects();if(!c&&!t||!e.customElements||!("customElements"in e))return;let i=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,e.customElements,"customElements","define",i)}function wt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=n.getGlobalObjects();for(let m=0;m<c.length;m++){let w=c[m],d=w+u,C=w+i,Z=E+d,x=E+C;t[w]={},t[w][u]=Z,t[w][i]=x}let T=e.EventTarget;if(!(!T||!T.prototype))return n.patchEventTarget(e,n,[T&&T.prototype]),!0}function St(e,n){n.patchEventPrototype(e,n)}function ut(e,n,c){if(!c||c.length===0)return n;let t=c.filter(u=>u.target===e);if(t.length===0)return n;let i=t[0].ignoreProperties;return n.filter(u=>i.indexOf(u)===-1)}function et(e,n,c,t){if(!e)return;let i=ut(e,n,c);ot(e,i,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Ot(e,n){if(we&&!rt||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,t=[];if(Ge){let i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=[];et(i,Ze(i),c&&c.concat(u),je(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<t.length;i++){let u=n[t[i]];u?.prototype&&et(u.prototype,Ze(u.prototype),c)}}function Nt(e){e.__load_patch("legacy",n=>{let c=n[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",n=>{let c="set",t="clear";pe(n,c,t,"Timeout"),pe(n,c,t,"Interval"),pe(n,c,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{pe(n,"request","cancel","AnimationFrame"),pe(n,"mozRequest","mozCancel","AnimationFrame"),pe(n,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(n,c)=>{let t=["alert","prompt","confirm"];for(let i=0;i<t.length;i++){let u=t[i];he(n,u,(E,T,m)=>function(w,d){return c.current.run(E,n,d,m)})}}),e.__load_patch("EventTarget",(n,c,t)=>{St(n,t),wt(n,t);let i=n.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(n,t,[i.prototype])}),e.__load_patch("MutationObserver",(n,c,t)=>{ke("MutationObserver"),ke("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,c,t)=>{ke("IntersectionObserver")}),e.__load_patch("FileReader",(n,c,t)=>{ke("FileReader")}),e.__load_patch("on_property",(n,c,t)=>{Ot(t,n)}),e.__load_patch("customElements",(n,c,t)=>{Dt(n,t)}),e.__load_patch("XHR",(n,c)=>{w(n);let t=H("xhrTask"),i=H("xhrSync"),u=H("xhrListener"),E=H("xhrScheduled"),T=H("xhrURL"),m=H("xhrErrorBeforeScheduled");function w(d){let C=d.XMLHttpRequest;if(!C)return;let Z=C.prototype;function x(P){return P[t]}let V=Z[Ie],K=Z[Le];if(!V){let P=d.XMLHttpRequestEventTarget;if(P){let b=P.prototype;V=b[Ie],K=b[Le]}}let J="readystatechange",X="scheduled";function y(P){let b=P.data,S=b.target;S[E]=!1,S[m]=!1;let Q=S[u];V||(V=S[Ie],K=S[Le]),Q&&K.call(S,J,Q);let W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&P.state===X){let _=S[c.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let r=P.invoke;P.invoke=function(){let o=S[c.__symbol__("loadfalse")];for(let k=0;k<o.length;k++)o[k]===P&&o.splice(k,1);!b.aborted&&P.state===X&&r.call(P)},_.push(P)}else P.invoke()}else!b.aborted&&S[E]===!1&&(S[m]=!0)};return V.call(S,J,W),S[t]||(S[t]=P),z.apply(S,b.args),S[E]=!0,P}function h(){}function j(P){let b=P.data;return b.aborted=!0,O.apply(b.target,b.args)}let B=he(Z,"open",()=>function(P,b){return P[i]=b[2]==!1,P[T]=b[1],B.apply(P,b)}),$="XMLHttpRequest.send",U=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),z=he(Z,"send",()=>function(P,b){if(c.current[g]===!0||P[i])return z.apply(P,b);{let S={target:P,url:P[T],isPeriodic:!1,args:b,aborted:!1},Q=Ue($,h,S,y,j);P&&P[m]===!0&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=he(Z,"abort",()=>function(P,b){let S=x(P);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(c.current[U]===!0)return O.apply(P,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&mt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,c)=>{function t(i){return function(u){lt(n,i).forEach(T=>{let m=n.PromiseRejectionEvent;if(m){let w=new m(i,{promise:u.promise,reason:u.rejection});T.invoke(w)}})}}n.PromiseRejectionEvent&&(c[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,c,t)=>{Pt(n,t)})}function It(e){e.__load_patch("ZoneAwarePromise",(n,c,t)=>{let i=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function E(f){if(f&&f.toString===Object.prototype.toString){let a=f.constructor&&f.constructor.name;return(a||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let T=t.symbol,m=[],w=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,d=T("Promise"),C=T("then"),Z="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){let a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;m.length;){let f=m.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){V(a)}}};let x=T("unhandledPromiseRejectionHandler");function V(f){t.onUnhandledError(f);try{let a=c[x];typeof a=="function"&&a.call(this,f)}catch{}}function K(f){return f&&typeof f.then=="function"}function J(f){return f}function X(f){return A.reject(f)}let y=T("state"),h=T("value"),j=T("finally"),B=T("parentPromiseValue"),$=T("parentPromiseState"),U="Promise.then",g=null,z=!0,O=!1,P=0;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}let S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){let l=S();if(f===s)throw new TypeError(Q);if(f[y]===g){let v=null;try{(typeof s=="object"||typeof s=="function")&&(v=s&&s.then)}catch(D){return l(()=>{N(f,!1,D)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(y)&&s.hasOwnProperty(h)&&s[y]!==g)r(s),N(f,s[y],s[h]);else if(a!==O&&typeof v=="function")try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(D){l(()=>{N(f,!1,D)})()}else{f[y]=a;let D=f[h];if(f[h]=s,f[j]===j&&a===z&&(f[y]=f[$],f[h]=f[B]),a===O&&s instanceof Error){let p=c.currentTask&&c.currentTask.data&&c.currentTask.data[Z];p&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p<D.length;)o(f,D[p++],D[p++],D[p++],D[p++]);if(D.length==0&&a==O){f[y]=P;let p=s;try{throw new Error("Uncaught (in promise): "+E(s)+(s&&s.stack?`
`+s.stack:""))}catch(I){p=I}w&&(p.throwOriginal=!0),p.rejection=s,p.promise=f,p.zone=c.current,p.task=c.currentTask,m.push(p),t.scheduleMicroTask()}}}return f}let _=T("rejectionHandledHandler");function r(f){if(f[y]===P){try{let a=c[_];a&&typeof a=="function"&&a.call(this,{rejection:f[h],promise:f})}catch{}f[y]=O;for(let a=0;a<m.length;a++)f===m[a].promise&&m.splice(a,1)}}function o(f,a,s,l,v){r(f);let D=f[y],p=D?typeof l=="function"?l:J:typeof v=="function"?v:X;a.scheduleMicroTask(U,()=>{try{let I=f[h],L=!!s&&j===s[j];L&&(s[B]=I,s[$]=D);let M=a.run(p,void 0,L&&p!==X&&p!==J?[]:[I]);N(s,!0,M)}catch(I){N(s,!1,I)}},s)}let k="function ZoneAwarePromise() { [native code] }",R=function(){},q=n.AggregateError;class A{static toString(){return k}static resolve(a){return a instanceof A?a:N(new this(null),z,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){let a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new q([],"All promises were rejected"));let s=[],l=0;try{for(let p of a)l++,s.push(A.resolve(p))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(l===0)return Promise.reject(new q([],"All promises were rejected"));let v=!1,D=[];return new A((p,I)=>{for(let L=0;L<s.length;L++)s[L].then(M=>{v||(v=!0,p(M))},M=>{D.push(M),l--,l===0&&(v=!0,I(new q(D,"All promises were rejected")))})})}static race(a){let s,l,v=new this((I,L)=>{s=I,l=L});function D(I){s(I)}function p(I){l(I)}for(let I of a)K(I)||(I=this.resolve(I)),I.then(D,p);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,D=new this((M,F)=>{l=M,v=F}),p=2,I=0,L=[];for(let M of a){K(M)||(M=this.resolve(M));let F=I;try{M.then(G=>{L[F]=s?s.thenCallback(G):G,p--,p===0&&l(L)},G=>{s?(L[F]=s.errorCallback(G),p--,p===0&&l(L)):v(G)})}catch(G){v(G)}p++,I++}return p-=2,p===0&&l(L),D}constructor(a){let s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[y]=g,s[h]=[];try{let l=S();a&&a(l(b(s,z)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||typeof l!="function")&&(l=this.constructor||A);let v=new l(R),D=c.current;return this[y]==g?this[h].push(D,v,a,s):o(this,D,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||typeof s!="function")&&(s=A);let l=new s(R);l[j]=j;let v=c.current;return this[y]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;let _e=n[d]=n.Promise;n.Promise=A;let ae=T("thenPatched");function le(f){let a=f.prototype,s=i(a,"then");if(s&&(s.writable===!1||!s.configurable))return;let l=a.then;a[C]=l,f.prototype.then=function(v,D){return new A((I,L)=>{l.call(this,I,L)}).then(v,D)},f[ae]=!0}t.patchThen=le;function ne(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[ae]||le(v),l}}return _e&&(le(_e),he(n,"fetch",f=>ne(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=m,A})}function Lt(e){e.__load_patch("toString",n=>{let c=Function.prototype.toString,t=H("OriginalDelegate"),i=H("Promise"),u=H("Error"),E=function(){if(typeof this=="function"){let d=this[t];if(d)return typeof d=="function"?c.call(d):Object.prototype.toString.call(d);if(this===Promise){let C=n[i];if(C)return c.call(C)}if(this===Error){let C=n[u];if(C)return c.call(C)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;let T=Object.prototype.toString,m="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?m:T.call(this)}})}function Mt(e,n,c,t,i){let u=Zone.__symbol__(t);if(n[u])return;let E=n[u]=n[t];n[t]=function(T,m,w){return m&&m.prototype&&i.forEach(function(d){let C=`${c}.${t}::`+d,Z=m.prototype;try{if(Z.hasOwnProperty(d)){let x=e.ObjectGetOwnPropertyDescriptor(Z,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,C),e._redefineProperty(m.prototype,d,x)):Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],C))}else Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],C))}catch{}}),E.call(n,T,m,w)},e.attachOriginToPatched(n[t],E)}function Zt(e){e.__load_patch("util",(n,c,t)=>{let i=Ze(n);t.patchOnProperties=ot,t.patchMethod=he,t.bindArguments=Fe,t.patchMacroTask=yt;let u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");n[E]&&(n[u]=n[E]),n[u]&&(c[u]=c[E]=n[u]),t.patchEventPrototype=Ct,t.patchEventTarget=Rt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=ye,t.ObjectCreate=Et,t.ArraySlice=gt,t.patchClass=ke,t.wrapWithCurrentZone=Be,t.filterProperties=ut,t.attachOriginToPatched=de,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:i,isBrowser:Ge,isMix:rt,isNode:we,TRUE_STR:ue,FALSE_STR:fe,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){It(e),Lt(e),Zt(e)}var ft=Tt();At(ft);Nt(ft);window.global=window;var jt=":";function Ht(e,n){for(let c=1,t=1;c<e.length;c++,t++)if(n[t]==="\\")t++;else if(e[c]===jt)return c;throw new Error(`Unterminated $localize metadata block in "${n}".`)}var Se=function(e,...n){if(Se.translate){let t=Se.translate(e,n);e=t[0],n=t[1]}let c=ht(e[0],e.raw[0]);for(let t=1;t<e.length;t++)c+=n[t-1]+ht(e[t],e.raw[t]);return c},xt=":";function ht(e,n){return n.charAt(0)===xt?e.substring(Ht(e,n)+1):e}globalThis.$localize=Se;