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