angular-t9n
Version:
A translation tool for Angular i18n
3 lines (2 loc) • 35 kB
JavaScript
var gt=":";function Tt(e,n){for(let c=1,t=1;c<e.length;c++,t++)if(n[t]==="\\")t++;else if(e[c]===gt)return c;throw new Error(`Unterminated $localize metadata block in "${n}".`)}var Pe=function(e,...n){if(Pe.translate){let t=Pe.translate(e,n);e=t[0],n=t[1]}let c=Ye(e[0],e.raw[0]);for(let t=1;t<e.length;t++)c+=n[t-1]+Ye(e[t],e.raw[t]);return c},Et=":";function Ye(e,n){return n.charAt(0)===Et?e.substring(Tt(e,n)+1):e}globalThis.$localize=Pe;var ce=globalThis;function ee(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function mt(){let e=ce.performance;function n(I){e&&e.mark&&e.mark(I)}function c(I,_){e&&e.measure&&e.measure(I,_)}n("Zone");let t=(()=>{class I{static{this.__symbol__=ee}static assertZonePatched(){if(ce.Promise!==C.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=I.current;for(;r.parent;)r=r.parent;return r}static get current(){return b.zone}static get currentTask(){return O}static __load_patch(r,o,y=!1){if(C.hasOwnProperty(r)){let w=ce[ee("forceDuplicateZoneCheck")]===!0;if(!y&&w)throw Error("Already loaded patch: "+r)}else if(!ce["__Zone_disable_"+r]){let w="Zone:"+r;n(w),C[r]=o(ce,I,P),c(w,w)}}get parent(){return this._parent}get name(){return this._name}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 y=this._zoneDelegate.intercept(this,r,o),w=this;return function(){return w.runGuarded(y,this,arguments,o)}}run(r,o,y,w){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,r,o,y,w)}finally{b=b.parent}}runGuarded(r,o=null,y,w){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,r,o,y,w)}catch(W){if(this._zoneDelegate.handleError(this,W))throw W}}finally{b=b.parent}}runTask(r,o,y){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 w=r,{type:W,data:{isPeriodic:j=!1,isRefreshable:_e=!1}={}}=r;if(r.state===q&&(W===G||W===E))return;let ae=r.state!=Z;ae&&w._transitionTo(Z,h);let le=O;O=w,b={parent:b,zone:this};try{W==E&&r.data&&!j&&!_e&&(r.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,w,o,y)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=r.state;if(ne!==q&&ne!==X)if(W==G||j||_e&&ne===k)ae&&w._transitionTo(h,Z,k);else{let f=w._zoneDelegates;this._updateTaskCount(w,-1),ae&&w._transitionTo(q,Z,q),_e&&(w._zoneDelegates=f)}b=b.parent,O=le}}scheduleTask(r){if(r.zone&&r.zone!==this){let y=this;for(;y;){if(y===r.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${r.zone.name}`);y=y.parent}}r._transitionTo(k,q);let o=[];r._zoneDelegates=o,r._zone=this;try{r=this._zoneDelegate.scheduleTask(this,r)}catch(y){throw r._transitionTo(X,k,q),this._zoneDelegate.handleError(this,y),y}return r._zoneDelegates===o&&this._updateTaskCount(r,1),r.state==k&&r._transitionTo(h,k),r}scheduleMicroTask(r,o,y,w){return this.scheduleTask(new g(B,r,o,y,w,void 0))}scheduleMacroTask(r,o,y,w,W){return this.scheduleTask(new g(E,r,o,y,w,W))}scheduleEventTask(r,o,y,w,W){return this.scheduleTask(new g(G,r,o,y,w,W))}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!==Z)){r._transitionTo(H,h,Z);try{this._zoneDelegate.cancelTask(this,r)}catch(o){throw r._transitionTo(X,H),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(r,-1),r._transitionTo(q,H),r.runCount=-1,r}}_updateTaskCount(r,o){let y=r._zoneDelegates;o==-1&&(r._zoneDelegates=null);for(let w=0;w<y.length;w++)y[w]._updateTaskCount(r.type,o)}}return I})(),i={name:"",onHasTask:(I,_,r,o)=>I.hasTask(r,o),onScheduleTask:(I,_,r,o)=>I.scheduleTask(r,o),onInvokeTask:(I,_,r,o,y,w)=>I.invokeTask(r,o,y,w),onCancelTask:(I,_,r,o)=>I.cancelTask(r,o)};class u{get zone(){return this._zone}constructor(_,r,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},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 y=o&&o.onHasTask,w=r&&r._hasTaskZS;(y||w)&&(this._hasTaskZS=y?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,y,w){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,r,o,y,w):r.apply(o,y)}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==B)V(r);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(_,r,o,y){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,r,o,y):r.callback.apply(o,y)}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,y=o[_],w=o[_]=y+r;if(w<0)throw new Error("More tasks executed then were scheduled.");if(y==0||w==0){let W={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_};this.hasTask(this._zone,W)}}}class g{constructor(_,r,o,y,w,W){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=r,this.data=y,this.scheduleFn=w,this.cancelFn=W,!o)throw new Error("callback is not defined");this.callback=o;let j=this;_===G&&y&&y.useG?this.invoke=g.invokeTask:this.invoke=function(){return g.invokeTask.call(ce,j,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(q,k)}_transitionTo(_,r,o){if(this._state===r||this._state===o)this._state=_,_==q&&(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"),p=ee("Promise"),S=ee("then"),d=[],R=!1,A;function $(I){if(A||ce[p]&&(A=ce[p].resolve(0)),A){let _=A[S];_||(_=A.then),_.call(A,I)}else ce[T](I,0)}function V(I){Q===0&&d.length===0&&$(K),I&&d.push(I)}function K(){if(!R){for(R=!0;d.length;){let I=d;d=[];for(let _=0;_<I.length;_++){let r=I[_];try{r.zone.runTask(r,null,null)}catch(o){P.onUnhandledError(o)}}}P.microtaskDrainDone(),R=!1}}let J={name:"NO ZONE"},q="notScheduled",k="scheduling",h="scheduled",Z="running",H="canceling",X="unknown",B="microTask",E="macroTask",G="eventTask",C={},P={symbol:ee,currentZoneFrame:()=>b,onUnhandledError:F,microtaskDrainDone:F,scheduleMicroTask:V,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:F,patchMethod:()=>F,bindArguments:()=>[],patchThen:()=>F,patchMacroTask:()=>F,patchEventPrototype:()=>F,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>F,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>F,wrapWithCurrentZone:()=>F,filterProperties:()=>[],attachOriginToPatched:()=>F,_redefineProperty:()=>F,patchCallbacks:()=>F,nativeScheduleMicroTask:$},b={parent:null,zone:new t(null,null)},O=null,Q=0;function F(){}return c("Zone","Zone"),t}function pt(){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??=mt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ze=Object.defineProperty,xe=Object.getPrototypeOf,yt=Object.create,kt=Array.prototype.slice,$e="addEventListener",He="removeEventListener",Me=ee($e),Le=ee(He),ue="true",fe="false",we=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 x=ee,Oe=typeof window<"u",ye=Oe?window:void 0,Y=Oe&&ye||globalThis,vt="removeAttribute";function ze(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 bt(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 g=be(e,i);if(!rt(g))continue;e[i]=(T=>{let p=function(){return T.apply(this,ze(arguments,c+"."+i))};return de(p,T),p})(u)}}}function rt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var ot=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Ce=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Ve=!Ce&&!ot&&!!(Oe&&ye.HTMLElement),st=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!ot&&!!(Oe&&ye.HTMLElement),Se={},wt=x("enable_beforeunload"),Ke=function(e){if(e=e||Y.event,!e)return;let n=Se[e.type];n||(n=Se[e.type]=x("ON_PROPERTY"+e.type));let c=this||e.target||Y,t=c[n],i;if(Ve&&c===ye&&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[wt]&&typeof i=="string"?e.returnValue=i:i!=null&&!i&&e.preventDefault();return i};function Je(e,n,c){let t=be(e,n);if(!t&&c&&be(c,n)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let i=x("on"+n+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;let u=t.get,g=t.set,T=n.slice(2),p=Se[T];p||(p=Se[T]=x("ON_PROPERTY"+T)),t.set=function(S){let d=this;if(!d&&e===Y&&(d=Y),!d)return;typeof d[p]=="function"&&d.removeEventListener(T,Ke),g&&g.call(d,null),d[p]=S,typeof S=="function"&&d.addEventListener(T,Ke,!1)},t.get=function(){let S=this;if(!S&&e===Y&&(S=Y),!S)return null;let d=S[p];if(d)return d;if(u){let R=u.call(this);if(R)return t.set.call(this,R),typeof S[vt]=="function"&&S.removeAttribute(n),R}return null},Ze(e,n,t),e[i]=!0}function it(e,n,c){if(n)for(let t=0;t<n.length;t++)Je(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++)Je(e,t[i],c)}}var oe=x("originalInstance");function ve(e){let n=Y[e];if(!n)return;Y[x(e)]=n,Y[e]=function(){let i=ze(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)}:Ze(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=xe(t);!t&&e[n]&&(t=e);let i=x(n),u=null;if(t&&(!(u=t[i])||!t.hasOwnProperty(i))){u=t[i]=t[n];let g=t&&be(t,n);if(rt(g)){let T=c(u,i,n);t[n]=function(){return T(this,arguments)},de(t[n],u)}}return u}function Rt(e,n,c){let t=null;function i(u){let g=u.data;return g.args[g.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(g.target,g.args),u}t=he(e,n,u=>function(g,T){let p=c(g,T);return p.cbIdx>=0&&typeof T[p.cbIdx]=="function"?Ue(p.name,T[p.cbIdx],p,i):u.apply(g,T)})}function de(e,n){e[x("OriginalDelegate")]=n}var Qe=!1,Ae=!1;function Pt(){try{let e=ye.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function Nt(){if(Qe)return Ae;Qe=!0;try{let e=ye.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Ae=!0)}catch{}return Ae}function et(e){return typeof e=="function"}function tt(e){return typeof e=="number"}var pe=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){pe=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{pe=!1}var St={useG:!0},te={},ct={},at=new RegExp("^"+we+"(\\w+)(true|false)$"),lt=x("propagationStopped");function ut(e,n){let c=(n?n(e):e)+fe,t=(n?n(e):e)+ue,i=we+c,u=we+t;te[e]={},te[e][fe]=i,te[e][ue]=u}function Ot(e,n,c,t){let i=t&&t.add||$e,u=t&&t.rm||He,g=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",p=x(i),S="."+i+":",d="prependListener",R="."+d+":",A=function(k,h,Z){if(k.isRemoved)return;let H=k.callback;typeof H=="object"&&H.handleEvent&&(k.callback=E=>H.handleEvent(E),k.originalDelegate=H);let X;try{k.invoke(k,h,[Z])}catch(E){X=E}let B=k.options;if(B&&typeof B=="object"&&B.once){let E=k.originalDelegate?k.originalDelegate:k.callback;h[u].call(h,Z.type,E,B)}return X};function $(k,h,Z){if(h=h||e.event,!h)return;let H=k||h.target||e,X=H[te[h.type][Z?ue:fe]];if(X){let B=[];if(X.length===1){let E=A(X[0],H,h);E&&B.push(E)}else{let E=X.slice();for(let G=0;G<E.length&&!(h&&h[lt]===!0);G++){let C=A(E[G],H,h);C&&B.push(C)}}if(B.length===1)throw B[0];for(let E=0;E<B.length;E++){let G=B[E];n.nativeScheduleMicroTask(()=>{throw G})}}}let V=function(k){return $(this,k,!1)},K=function(k){return $(this,k,!0)};function J(k,h){if(!k)return!1;let Z=!0;h&&h.useG!==void 0&&(Z=h.useG);let H=h&&h.vh,X=!0;h&&h.chkDup!==void 0&&(X=h.chkDup);let B=!1;h&&h.rt!==void 0&&(B=h.rt);let E=k;for(;E&&!E.hasOwnProperty(i);)E=xe(E);if(!E&&k[i]&&(E=k),!E||E[p])return!1;let G=h&&h.eventNameToString,C={},P=E[p]=E[i],b=E[x(u)]=E[u],O=E[x(g)]=E[g],Q=E[x(T)]=E[T],F;h&&h.prepend&&(F=E[x(h.prepend)]=E[h.prepend]);function I(s,l){return!pe&&typeof s=="object"&&s?!!s.capture:!pe||!l?s:typeof s=="boolean"?{capture:s,passive:!0}:s?typeof s=="object"&&s.passive!==!1?{...s,passive:!0}:s:{passive:!0}}let _=function(s){if(!C.isExisting)return P.call(C.target,C.eventName,C.capture?K:V,C.options)},r=function(s){if(!s.isRemoved){let l=te[s.eventName],v;l&&(v=l[s.capture?ue:fe]);let N=v&&s.target[v];if(N){for(let m=0;m<N.length;m++)if(N[m]===s){N.splice(m,1),s.isRemoved=!0,s.removeAbortListener&&(s.removeAbortListener(),s.removeAbortListener=null),N.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(C.target,C.eventName,s.invoke,C.options)},y=function(s){return F.call(C.target,C.eventName,s.invoke,C.options)},w=function(s){return b.call(s.target,s.eventName,s.invoke,s.options)},W=Z?_:o,j=Z?r:w,_e=function(s,l){let v=typeof l;return v==="function"&&s.callback===l||v==="object"&&s.originalDelegate===l},ae=h&&h.diff?h.diff:_e,le=Zone[x("UNPATCHED_EVENTS")],ne=e[x("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,N,m=!1,D=!1){return function(){let M=this||e,L=arguments[0];h&&h.transferEventName&&(L=h.transferEventName(L));let U=arguments[1];if(!U)return s.apply(this,arguments);if(Ce&&L==="uncaughtException")return s.apply(this,arguments);let z=!1;if(typeof U!="function"){if(!U.handleEvent)return s.apply(this,arguments);z=!0}if(H&&!H(s,U,M,arguments))return;let ge=pe&&!!ne&&ne.indexOf(L)!==-1,se=f(I(arguments[2],ge)),Te=se?.signal;if(Te?.aborted)return;if(le){for(let ie=0;ie<le.length;ie++)if(L===le[ie])return ge?s.call(M,L,U,se):s.apply(this,arguments)}let Ie=se?typeof se=="boolean"?!0:se.capture:!1,Ge=se&&typeof se=="object"?se.once:!1,_t=Zone.current,De=te[L];De||(ut(L,G),De=te[L]);let Fe=De[Ie?ue:fe],Ee=M[Fe],We=!1;if(Ee){if(We=!0,X){for(let ie=0;ie<Ee.length;ie++)if(ae(Ee[ie],U))return}}else Ee=M[Fe]=[];let Re,qe=M.constructor.name,Xe=ct[qe];Xe&&(Re=Xe[L]),Re||(Re=qe+l+(G?G(L):L)),C.options=se,Ge&&(C.options.once=!1),C.target=M,C.capture=Ie,C.eventName=L,C.isExisting=We;let ke=Z?St:void 0;ke&&(ke.taskData=C),Te&&(C.options.signal=void 0);let re=_t.scheduleEventTask(Re,U,ke,v,N);if(Te){C.options.signal=Te;let ie=()=>re.zone.cancelTask(re);s.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(C.target=null,ke&&(ke.taskData=null),Ge&&(C.options.once=!0),!pe&&typeof re.options=="boolean"||(re.options=se),re.target=M,re.capture=Ie,re.eventName=L,z&&(re.originalDelegate=U),D?Ee.unshift(re):Ee.push(re),m)return M}};return E[i]=a(P,S,W,j,B),F&&(E[d]=a(F,R,y,j,B,!0)),E[u]=function(){let s=this||e,l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));let v=arguments[2],N=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(H&&!H(b,m,s,arguments))return;let D=te[l],M;D&&(M=D[N?ue:fe]);let L=M&&s[M];if(L)for(let U=0;U<L.length;U++){let z=L[U];if(ae(z,m)){if(L.splice(U,1),z.isRemoved=!0,L.length===0&&(z.allRemoved=!0,s[M]=null,!N&&typeof l=="string")){let ge=we+"ON_PROPERTY"+l;s[ge]=null}return z.zone.cancelTask(z),B?s:void 0}}return b.apply(this,arguments)},E[g]=function(){let s=this||e,l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));let v=[],N=ft(s,G?G(l):l);for(let m=0;m<N.length;m++){let D=N[m],M=D.originalDelegate?D.originalDelegate:D.callback;v.push(M)}return v},E[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 N=v[fe],m=v[ue],D=s[N],M=s[m];if(D){let L=D.slice();for(let U=0;U<L.length;U++){let z=L[U],ge=z.originalDelegate?z.originalDelegate:z.callback;this[u].call(this,l,ge,z.options)}}if(M){let L=M.slice();for(let U=0;U<L.length;U++){let z=L[U],ge=z.originalDelegate?z.originalDelegate:z.callback;this[u].call(this,l,ge,z.options)}}}}else{let v=Object.keys(s);for(let N=0;N<v.length;N++){let m=v[N],D=at.exec(m),M=D&&D[1];M&&M!=="removeListener"&&this[T].call(this,M)}this[T].call(this,"removeListener")}if(B)return this},de(E[i],P),de(E[u],b),Q&&de(E[T],Q),O&&de(E[g],O),!0}let q=[];for(let k=0;k<c.length;k++)q[k]=J(c[k],t);return q}function ft(e,n){if(!n){let u=[];for(let g in e){let T=at.exec(g),p=T&&T[1];if(p&&(!n||p===n)){let S=e[g];if(S)for(let d=0;d<S.length;d++)u.push(S[d])}}return u}let c=te[n];c||(ut(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[lt]=!0,t&&t.apply(i,u)})}function It(e,n){n.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var Ne=x("zoneTask");function me(e,n,c,t){let i=null,u=null;n+=t,c+=t;let g={};function T(S){let d=S.data;d.args[0]=function(){return S.invoke.apply(this,arguments)};let R=i.apply(e,d.args);return tt(R)?d.handleId=R:(d.handle=R,d.isRefreshable=et(R.refresh)),S}function p(S){let{handle:d,handleId:R}=S.data;return u.call(e,d??R)}i=he(e,n,S=>function(d,R){if(et(R[0])){let A={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?R[1]||0:void 0,args:R},$=R[0];R[0]=function(){try{return $.apply(this,arguments)}finally{let{handle:Z,handleId:H,isPeriodic:X,isRefreshable:B}=A;!X&&!B&&(H?delete g[H]:Z&&(Z[Ne]=null))}};let V=Ue(n,R[0],A,T,p);if(!V)return V;let{handleId:K,handle:J,isRefreshable:q,isPeriodic:k}=V.data;if(K)g[K]=V;else if(J&&(J[Ne]=V,q&&!k)){let h=J.refresh;J.refresh=function(){let{zone:Z,state:H}=V;return H==="notScheduled"?(V._state="scheduled",Z._updateTaskCount(V,1)):H==="running"&&(V._state="scheduling"),h.call(this)}}return J??K??V}else return S.apply(e,R)}),u=he(e,c,S=>function(d,R){let A=R[0],$;tt(A)?($=g[A],delete g[A]):($=A?.[Ne],$?A[Ne]=null:$=A),$?.type?$.cancelFn&&$.zone.cancelTask($):S.apply(e,R)})}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 Mt(e,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:g}=n.getGlobalObjects();for(let p=0;p<c.length;p++){let S=c[p],d=S+u,R=S+i,A=g+d,$=g+R;t[S]={},t[S][u]=A,t[S][i]=$}let T=e.EventTarget;if(!(!T||!T.prototype))return n.patchEventTarget(e,n,[T&&T.prototype]),!0}function Lt(e,n){n.patchEventPrototype(e,n)}function ht(e,n,c){if(!c||c.length===0)return n;let t=c.filter(u=>u.target===e);if(!t||t.length===0)return n;let i=t[0].ignoreProperties;return n.filter(u=>i.indexOf(u)===-1)}function nt(e,n,c,t){if(!e)return;let i=ht(e,n,c);it(e,i,t)}function je(e){return Object.getOwnPropertyNames(e).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function At(e,n){if(Ce&&!st||Zone[e.symbol("patchEvents")])return;let c=n.__Zone_ignore_on_properties,t=[];if(Ve){let i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=Pt()?[{target:i,ignoreProperties:["error"]}]:[];nt(i,je(i),c&&c.concat(u),xe(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&&u.prototype&&nt(u.prototype,je(u.prototype),c)}}function jt(e){e.__load_patch("legacy",n=>{let c=n[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",n=>{let c="set",t="clear";me(n,c,t,"Timeout"),me(n,c,t,"Interval"),me(n,c,t,"Immediate")}),e.__load_patch("requestAnimationFrame",n=>{me(n,"request","cancel","AnimationFrame"),me(n,"mozRequest","mozCancel","AnimationFrame"),me(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,(g,T,p)=>function(S,d){return c.current.run(g,n,d,p)})}}),e.__load_patch("EventTarget",(n,c,t)=>{Lt(n,t),Mt(n,t);let i=n.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(n,t,[i.prototype])}),e.__load_patch("MutationObserver",(n,c,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(n,c,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(n,c,t)=>{ve("FileReader")}),e.__load_patch("on_property",(n,c,t)=>{At(t,n)}),e.__load_patch("customElements",(n,c,t)=>{Dt(n,t)}),e.__load_patch("XHR",(n,c)=>{S(n);let t=x("xhrTask"),i=x("xhrSync"),u=x("xhrListener"),g=x("xhrScheduled"),T=x("xhrURL"),p=x("xhrErrorBeforeScheduled");function S(d){let R=d.XMLHttpRequest;if(!R)return;let A=R.prototype;function $(P){return P[t]}let V=A[Me],K=A[Le];if(!V){let P=d.XMLHttpRequestEventTarget;if(P){let b=P.prototype;V=b[Me],K=b[Le]}}let J="readystatechange",q="scheduled";function k(P){let b=P.data,O=b.target;O[g]=!1,O[p]=!1;let Q=O[u];V||(V=O[Me],K=O[Le]),Q&&K.call(O,J,Q);let F=O[u]=()=>{if(O.readyState===O.DONE)if(!b.aborted&&O[g]&&P.state===q){let _=O[c.__symbol__("loadfalse")];if(O.status!==0&&_&&_.length>0){let r=P.invoke;P.invoke=function(){let o=O[c.__symbol__("loadfalse")];for(let y=0;y<o.length;y++)o[y]===P&&o.splice(y,1);!b.aborted&&P.state===q&&r.call(P)},_.push(P)}else P.invoke()}else!b.aborted&&O[g]===!1&&(O[p]=!0)};return V.call(O,J,F),O[t]||(O[t]=P),G.apply(O,b.args),O[g]=!0,P}function h(){}function Z(P){let b=P.data;return b.aborted=!0,C.apply(b.target,b.args)}let H=he(A,"open",()=>function(P,b){return P[i]=b[2]==!1,P[T]=b[1],H.apply(P,b)}),X="XMLHttpRequest.send",B=x("fetchTaskAborting"),E=x("fetchTaskScheduling"),G=he(A,"send",()=>function(P,b){if(c.current[E]===!0||P[i])return G.apply(P,b);{let O={target:P,url:P[T],isPeriodic:!1,args:b,aborted:!1},Q=Ue(X,h,O,k,Z);P&&P[p]===!0&&!O.aborted&&Q.state===q&&Q.invoke()}}),C=he(A,"abort",()=>function(P,b){let O=$(P);if(O&&typeof O.type=="string"){if(O.cancelFn==null||O.data&&O.data.aborted)return;O.zone.cancelTask(O)}else if(c.current[B]===!0)return C.apply(P,b)})}}),e.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&&bt(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(n,c)=>{function t(i){return function(u){ft(n,i).forEach(T=>{let p=n.PromiseRejectionEvent;if(p){let S=new p(i,{promise:u.promise,reason:u.rejection});T.invoke(S)}})}}n.PromiseRejectionEvent&&(c[x("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[x("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(n,c,t)=>{It(n,t)})}function Zt(e){e.__load_patch("ZoneAwarePromise",(n,c,t)=>{let i=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function g(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,p=[],S=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,d=T("Promise"),R=T("then"),A="__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(;p.length;){let f=p.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){V(a)}}};let $=T("unhandledPromiseRejectionHandler");function V(f){t.onUnhandledError(f);try{let a=c[$];typeof a=="function"&&a.call(this,f)}catch{}}function K(f){return f&&f.then}function J(f){return f}function q(f){return j.reject(f)}let k=T("state"),h=T("value"),Z=T("finally"),H=T("parentPromiseValue"),X=T("parentPromiseState"),B="Promise.then",E=null,G=!0,C=!1,P=0;function b(f,a){return s=>{try{I(f,a,s)}catch(l){I(f,!1,l)}}}let O=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",F=T("currentTaskTrace");function I(f,a,s){let l=O();if(f===s)throw new TypeError(Q);if(f[k]===E){let v=null;try{(typeof s=="object"||typeof s=="function")&&(v=s&&s.then)}catch(N){return l(()=>{I(f,!1,N)})(),f}if(a!==C&&s instanceof j&&s.hasOwnProperty(k)&&s.hasOwnProperty(h)&&s[k]!==E)r(s),I(f,s[k],s[h]);else if(a!==C&&typeof v=="function")try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(N){l(()=>{I(f,!1,N)})()}else{f[k]=a;let N=f[h];if(f[h]=s,f[Z]===Z&&a===G&&(f[k]=f[X],f[h]=f[H]),a===C&&s instanceof Error){let m=c.currentTask&&c.currentTask.data&&c.currentTask.data[A];m&&u(s,F,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m<N.length;)o(f,N[m++],N[m++],N[m++],N[m++]);if(N.length==0&&a==C){f[k]=P;let m=s;try{throw new Error("Uncaught (in promise): "+g(s)+(s&&s.stack?`
`+s.stack:""))}catch(D){m=D}S&&(m.throwOriginal=!0),m.rejection=s,m.promise=f,m.zone=c.current,m.task=c.currentTask,p.push(m),t.scheduleMicroTask()}}}return f}let _=T("rejectionHandledHandler");function r(f){if(f[k]===P){try{let a=c[_];a&&typeof a=="function"&&a.call(this,{rejection:f[h],promise:f})}catch{}f[k]=C;for(let a=0;a<p.length;a++)f===p[a].promise&&p.splice(a,1)}}function o(f,a,s,l,v){r(f);let N=f[k],m=N?typeof l=="function"?l:J:typeof v=="function"?v:q;a.scheduleMicroTask(B,()=>{try{let D=f[h],M=!!s&&Z===s[Z];M&&(s[H]=D,s[X]=N);let L=a.run(m,void 0,M&&m!==q&&m!==J?[]:[D]);I(s,!0,L)}catch(D){I(s,!1,D)}},s)}let y="function ZoneAwarePromise() { [native code] }",w=function(){},W=n.AggregateError;class j{static toString(){return y}static resolve(a){return a instanceof j?a:I(new this(null),G,a)}static reject(a){return I(new this(null),C,a)}static withResolvers(){let a={};return a.promise=new j((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new W([],"All promises were rejected"));let s=[],l=0;try{for(let m of a)l++,s.push(j.resolve(m))}catch{return Promise.reject(new W([],"All promises were rejected"))}if(l===0)return Promise.reject(new W([],"All promises were rejected"));let v=!1,N=[];return new j((m,D)=>{for(let M=0;M<s.length;M++)s[M].then(L=>{v||(v=!0,m(L))},L=>{N.push(L),l--,l===0&&(v=!0,D(new W(N,"All promises were rejected")))})})}static race(a){let s,l,v=new this((D,M)=>{s=D,l=M});function N(D){s(D)}function m(D){l(D)}for(let D of a)K(D)||(D=this.resolve(D)),D.then(N,m);return v}static all(a){return j.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof j?this:j).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,N=new this((L,U)=>{l=L,v=U}),m=2,D=0,M=[];for(let L of a){K(L)||(L=this.resolve(L));let U=D;try{L.then(z=>{M[U]=s?s.thenCallback(z):z,m--,m===0&&l(M)},z=>{s?(M[U]=s.errorCallback(z),m--,m===0&&l(M)):v(z)})}catch(z){v(z)}m++,D++}return m-=2,m===0&&l(M),N}constructor(a){let s=this;if(!(s instanceof j))throw new Error("Must be an instanceof Promise.");s[k]=E,s[h]=[];try{let l=O();a&&a(l(b(s,G)),l(b(s,C)))}catch(l){I(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return j}then(a,s){let l=this.constructor?.[Symbol.species];(!l||typeof l!="function")&&(l=this.constructor||j);let v=new l(w),N=c.current;return this[k]==E?this[h].push(N,v,a,s):o(this,N,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||typeof s!="function")&&(s=j);let l=new s(w);l[Z]=Z;let v=c.current;return this[k]==E?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}j.resolve=j.resolve,j.reject=j.reject,j.race=j.race,j.all=j.all;let _e=n[d]=n.Promise;n.Promise=j;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[R]=l,f.prototype.then=function(v,N){return new j((D,M)=>{l.call(this,D,M)}).then(v,N)},f[ae]=!0}t.patchThen=le;function ne(f){return function(a,s){let l=f.apply(a,s);if(l instanceof j)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")]=p,j})}function xt(e){e.__load_patch("toString",n=>{let c=Function.prototype.toString,t=x("OriginalDelegate"),i=x("Promise"),u=x("Error"),g=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 R=n[i];if(R)return c.call(R)}if(this===Error){let R=n[u];if(R)return c.call(R)}}return c.call(this)};g[t]=c,Function.prototype.toString=g;let T=Object.prototype.toString,p="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?p:T.call(this)}})}function $t(e,n,c,t,i){let u=Zone.__symbol__(t);if(n[u])return;let g=n[u]=n[t];n[t]=function(T,p,S){return p&&p.prototype&&i.forEach(function(d){let R=`${c}.${t}::`+d,A=p.prototype;try{if(A.hasOwnProperty(d)){let $=e.ObjectGetOwnPropertyDescriptor(A,d);$&&$.value?($.value=e.wrapWithCurrentZone($.value,R),e._redefineProperty(p.prototype,d,$)):A[d]&&(A[d]=e.wrapWithCurrentZone(A[d],R))}else A[d]&&(A[d]=e.wrapWithCurrentZone(A[d],R))}catch{}}),g.call(n,T,p,S)},e.attachOriginToPatched(n[t],g)}function Ht(e){e.__load_patch("util",(n,c,t)=>{let i=je(n);t.patchOnProperties=it,t.patchMethod=he,t.bindArguments=ze,t.patchMacroTask=Rt;let u=c.__symbol__("BLACK_LISTED_EVENTS"),g=c.__symbol__("UNPATCHED_EVENTS");n[g]&&(n[u]=n[g]),n[u]&&(c[u]=c[g]=n[u]),t.patchEventPrototype=Ct,t.patchEventTarget=Ot,t.isIEOrEdge=Nt,t.ObjectDefineProperty=Ze,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=yt,t.ArraySlice=kt,t.patchClass=ve,t.wrapWithCurrentZone=Be,t.filterProperties=ht,t.attachOriginToPatched=de,t._redefineProperty=Object.defineProperty,t.patchCallbacks=$t,t.getGlobalObjects=()=>({globalSources:ct,zoneSymbolEventNames:te,eventNames:i,isBrowser:Ve,isMix:st,isNode:Ce,TRUE_STR:ue,FALSE_STR:fe,ZONE_SYMBOL_PREFIX:we,ADD_EVENT_LISTENER_STR:$e,REMOVE_EVENT_LISTENER_STR:He})})}function Bt(e){Zt(e),xt(e),Ht(e)}var dt=pt();Bt(dt);jt(dt);(globalThis.$localize??={}).locale="en";