UNPKG

altair-static

Version:

Static package for altair graphql client

3 lines (2 loc) 67.6 kB
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="eaf3d84f-0e99-5cdc-86cb-752864bc9dce")}catch(e){}}(); (self.webpackChunkaltair=self.webpackChunkaltair||[]).push([[461],{27884:(d,m,n)=>{"use strict";n(17237),n(43506),n(54720),window.global=window},54720:()=>{(function(){"use strict";var d=window.Document.prototype.createElement,m=window.Document.prototype.createElementNS,n=window.Document.prototype.importNode,f=window.Document.prototype.prepend,p=window.Document.prototype.append,E=window.DocumentFragment.prototype.prepend,g=window.DocumentFragment.prototype.append,T=window.Node.prototype.cloneNode,k=window.Node.prototype.appendChild,b=window.Node.prototype.insertBefore,D=window.Node.prototype.removeChild,N=window.Node.prototype.replaceChild,w=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),S=window.Element.prototype.attachShadow,L=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),st=window.Element.prototype.getAttribute,J=window.Element.prototype.setAttribute,V=window.Element.prototype.removeAttribute,M=window.Element.prototype.getAttributeNS,at=window.Element.prototype.setAttributeNS,ct=window.Element.prototype.removeAttributeNS,j=window.Element.prototype.insertAdjacentElement,Et=window.Element.prototype.insertAdjacentHTML,_t=window.Element.prototype.prepend,Ht=window.Element.prototype.append,se=window.Element.prototype.before,ie=window.Element.prototype.after,$t=window.Element.prototype.replaceWith,qt=window.Element.prototype.remove,Ee=window.HTMLElement,Vt=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),ye=window.HTMLElement.prototype.insertAdjacentElement,ae=window.HTMLElement.prototype.insertAdjacentHTML,ce=new Set;function le(o){var a=ce.has(o);return o=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(o),!a&&o}"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(o){return ce.add(o)});var Nt=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);function ut(o){var a=o.isConnected;if(void 0!==a)return a;if(Nt(o))return!0;for(;o&&!(o.__CE_isImportDocument||o instanceof Document);)o=o.parentNode||(window.ShadowRoot&&o instanceof ShadowRoot?o.host:void 0);return!(!o||!(o.__CE_isImportDocument||o instanceof Document))}function xt(o){var a=o.children;if(a)return Array.prototype.slice.call(a);for(a=[],o=o.firstChild;o;o=o.nextSibling)o.nodeType===Node.ELEMENT_NODE&&a.push(o);return a}function ue(o,a){for(;a&&a!==o&&!a.nextSibling;)a=a.parentNode;return a&&a!==o?a.nextSibling:null}function jt(o,a,l){for(var y=o;y;){if(y.nodeType===Node.ELEMENT_NODE){var t=y;a(t);var e=t.localName;if("link"===e&&"import"===t.getAttribute("rel")){if(y=t.import,void 0===l&&(l=new Set),y instanceof Node&&!l.has(y))for(l.add(y),y=y.firstChild;y;y=y.nextSibling)jt(y,a,l);y=ue(o,t);continue}if("template"===e){y=ue(o,t);continue}if(t=t.__CE_shadowRoot)for(t=t.firstChild;t;t=t.nextSibling)jt(t,a,l)}y=y.firstChild?y.firstChild:ue(o,y)}}function Yt(){var o=!(null==Mt||!Mt.noDocumentConstructionObserver),a=!(null==Mt||!Mt.shadyDomFastWalk);this.h=[],this.a=[],this.f=!1,this.shadyDomFastWalk=a,this.C=!o}function Zt(o,a,l,y){var t=window.ShadyDom;if(o.shadyDomFastWalk&&t&&t.inUse){if(a.nodeType===Node.ELEMENT_NODE&&l(a),a.querySelectorAll)for(o=t.nativeMethods.querySelectorAll.call(a,"*"),a=0;a<o.length;a++)l(o[a])}else jt(a,l,y)}function te(o,a){o.f&&Zt(o,a,function(l){return Gt(o,l)})}function Gt(o,a){if(o.f&&!a.__CE_patched){a.__CE_patched=!0;for(var l=0;l<o.h.length;l++)o.h[l](a);for(l=0;l<o.a.length;l++)o.a[l](a)}}function Pt(o,a){var l=[];for(Zt(o,a,function(t){return l.push(t)}),a=0;a<l.length;a++){var y=l[a];1===y.__CE_state?o.connectedCallback(y):Jt(o,y)}}function St(o,a){var l=[];for(Zt(o,a,function(t){return l.push(t)}),a=0;a<l.length;a++){var y=l[a];1===y.__CE_state&&o.disconnectedCallback(y)}}function gt(o,a,l){var y=(l=void 0===l?{}:l).D,t=l.upgrade||function(s){return Jt(o,s)},e=[];for(Zt(o,a,function(s){if(o.f&&Gt(o,s),"link"===s.localName&&"import"===s.getAttribute("rel")){var r=s.import;r instanceof Node&&(r.__CE_isImportDocument=!0,r.__CE_registry=document.__CE_registry),r&&"complete"===r.readyState?r.__CE_documentLoadHandled=!0:s.addEventListener("load",function(){var i=s.import;if(!i.__CE_documentLoadHandled){i.__CE_documentLoadHandled=!0;var v=new Set;y&&(y.forEach(function(_){return v.add(_)}),v.delete(i)),gt(o,i,{D:v,upgrade:t})}})}else e.push(s)},y),a=0;a<e.length;a++)t(e[a])}function Jt(o,a){try{var l=a.ownerDocument,y=l.__CE_registry,t=y&&(l.defaultView||l.__CE_isImportDocument)?ee(y,a.localName):void 0;if(t&&void 0===a.__CE_state){t.constructionStack.push(a);try{try{if(new t.constructorFunction!==a)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{t.constructionStack.pop()}}catch(i){throw a.__CE_state=2,i}if(a.__CE_state=1,a.__CE_definition=t,t.attributeChangedCallback&&a.hasAttributes()){var e=t.observedAttributes;for(t=0;t<e.length;t++){var s=e[t],r=a.getAttribute(s);null!==r&&o.attributeChangedCallback(a,s,null,r,null)}}ut(a)&&o.connectedCallback(a)}}catch(i){Bt(i)}}function fe(o,a,l,y){var t=a.__CE_registry;if(t&&(null===y||"http://www.w3.org/1999/xhtml"===y)&&(t=ee(t,l)))try{var e=new t.constructorFunction;if(void 0===e.__CE_state||void 0===e.__CE_definition)throw Error("Failed to construct '"+l+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==e.namespaceURI)throw Error("Failed to construct '"+l+"': The constructed element's namespace must be the HTML namespace.");if(e.hasAttributes())throw Error("Failed to construct '"+l+"': The constructed element must not have any attributes.");if(null!==e.firstChild)throw Error("Failed to construct '"+l+"': The constructed element must not have any children.");if(null!==e.parentNode)throw Error("Failed to construct '"+l+"': The constructed element must not have a parent node.");if(e.ownerDocument!==a)throw Error("Failed to construct '"+l+"': The constructed element's owner document is incorrect.");if(e.localName!==l)throw Error("Failed to construct '"+l+"': The constructed element's local name is incorrect.");return e}catch(s){return Bt(s),a=null===y?d.call(a,l):m.call(a,y,l),Object.setPrototypeOf(a,HTMLUnknownElement.prototype),a.__CE_state=2,a.__CE_definition=void 0,Gt(o,a),a}return Gt(o,a=null===y?d.call(a,l):m.call(a,y,l)),a}function Bt(o){var a=o.message,l=o.sourceURL||o.fileName||"",y=o.line||o.lineNumber||0,e=void 0;void 0===ErrorEvent.prototype.initErrorEvent?e=new ErrorEvent("error",{cancelable:!0,message:a,filename:l,lineno:y,colno:o.column||o.columnNumber||0,error:o}):((e=document.createEvent("ErrorEvent")).initErrorEvent("error",!1,!0,a,l,y),e.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})}),void 0===e.error&&Object.defineProperty(e,"error",{configurable:!0,enumerable:!0,get:function(){return o}}),window.dispatchEvent(e),e.defaultPrevented||console.error(o)}function he(){var o=this;this.a=void 0,this.w=new Promise(function(a){o.g=a})}function me(o){var a=document;this.g=void 0,this.b=o,this.a=a,gt(this.b,this.a),"loading"===this.a.readyState&&(this.g=new MutationObserver(this.A.bind(this)),this.g.observe(this.a,{childList:!0,subtree:!0}))}function de(o){o.g&&o.g.disconnect()}function Tt(o){this.j=new Map,this.l=new Map,this.u=new Map,this.o=!1,this.s=new Map,this.i=function(a){return a()},this.c=!1,this.m=[],this.b=o,this.v=o.C?new me(o):void 0}function ge(o,a){if(!le(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(ee(o,a))throw Error("A custom element with name '"+a+"' has already been defined.");if(o.o)throw Error("A custom element is already being defined.")}function Qt(o,a,l){var y;o.o=!0;try{var t=l.prototype;if(!(t instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var e=function(_){var x=t[_];if(void 0!==x&&!(x instanceof Function))throw Error("The '"+_+"' callback must be a function.");return x},s=e("connectedCallback"),r=e("disconnectedCallback"),i=e("adoptedCallback"),v=(y=e("attributeChangedCallback"))&&l.observedAttributes||[]}catch(_){throw _}finally{o.o=!1}return o.l.set(a,l={localName:a,constructorFunction:l,connectedCallback:s,disconnectedCallback:r,adoptedCallback:i,attributeChangedCallback:y,observedAttributes:v,constructionStack:[]}),o.u.set(l.constructorFunction,l),l}function Wt(o){if(!1!==o.c){o.c=!1;for(var a=[],l=o.m,y=new Map,t=0;t<l.length;t++)y.set(l[t],[]);for(gt(o.b,document,{upgrade:function(i){if(void 0===i.__CE_state){var v=i.localName,_=y.get(v);_?_.push(i):o.l.has(v)&&a.push(i)}}}),t=0;t<a.length;t++)Jt(o.b,a[t]);for(t=0;t<l.length;t++){for(var e=l[t],s=y.get(e),r=0;r<s.length;r++)Jt(o.b,s[r]);(e=o.s.get(e))&&e.resolve(void 0)}l.length=0}}function ee(o,a){var l=o.l.get(a);if(l)return l;if(l=o.j.get(a)){o.j.delete(a);try{return Qt(o,a,l())}catch(y){Bt(y)}}}function pe(o,a,l){function y(t){return function(e){for(var s=[],r=0;r<arguments.length;++r)s[r]=arguments[r];r=[];for(var i=[],v=0;v<s.length;v++){var _=s[v];if(_ instanceof Element&&ut(_)&&i.push(_),_ instanceof DocumentFragment)for(_=_.firstChild;_;_=_.nextSibling)r.push(_);else r.push(_)}for(t.apply(this,s),s=0;s<i.length;s++)St(o,i[s]);if(ut(this))for(s=0;s<r.length;s++)(i=r[s])instanceof Element&&Pt(o,i)}}void 0!==l.prepend&&(a.prepend=y(l.prepend)),void 0!==l.append&&(a.append=y(l.append))}Yt.prototype.connectedCallback=function(o){var a=o.__CE_definition;if(a.connectedCallback)try{a.connectedCallback.call(o)}catch(l){Bt(l)}},Yt.prototype.disconnectedCallback=function(o){var a=o.__CE_definition;if(a.disconnectedCallback)try{a.disconnectedCallback.call(o)}catch(l){Bt(l)}},Yt.prototype.attributeChangedCallback=function(o,a,l,y,t){var e=o.__CE_definition;if(e.attributeChangedCallback&&-1<e.observedAttributes.indexOf(a))try{e.attributeChangedCallback.call(o,a,l,y,t)}catch(s){Bt(s)}},he.prototype.resolve=function(o){if(this.a)throw Error("Already resolved.");this.a=o,this.g(o)},me.prototype.A=function(o){var a=this.a.readyState;for("interactive"!==a&&"complete"!==a||de(this),a=0;a<o.length;a++)for(var l=o[a].addedNodes,y=0;y<l.length;y++)gt(this.b,l[y])},Tt.prototype.B=function(o,a){var l=this;if(!(a instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");ge(this,o),this.j.set(o,a),this.m.push(o),this.c||(this.c=!0,this.i(function(){return Wt(l)}))},Tt.prototype.define=function(o,a){var l=this;if(!(a instanceof Function))throw new TypeError("Custom element constructors must be functions.");ge(this,o),Qt(this,o,a),this.m.push(o),this.c||(this.c=!0,this.i(function(){return Wt(l)}))},Tt.prototype.upgrade=function(o){gt(this.b,o)},Tt.prototype.get=function(o){if(o=ee(this,o))return o.constructorFunction},Tt.prototype.whenDefined=function(o){if(!le(o))return Promise.reject(new SyntaxError("'"+o+"' is not a valid custom element name."));var a=this.s.get(o);if(a)return a.w;a=new he,this.s.set(o,a);var l=this.l.has(o)||this.j.has(o);return o=-1===this.m.indexOf(o),l&&o&&a.resolve(void 0),a.w},Tt.prototype.polyfillWrapFlushCallback=function(o){this.v&&de(this.v);var a=this.i;this.i=function(l){return o(function(){return a(l)})}},window.CustomElementRegistry=Tt,Tt.prototype.define=Tt.prototype.define,Tt.prototype.upgrade=Tt.prototype.upgrade,Tt.prototype.get=Tt.prototype.get,Tt.prototype.whenDefined=Tt.prototype.whenDefined,Tt.prototype.polyfillDefineLazy=Tt.prototype.B,Tt.prototype.polyfillWrapFlushCallback=Tt.prototype.polyfillWrapFlushCallback;var ne={},Mt=window.customElements;function we(){var o=new Yt;(function ke(o){function a(){var l=this.constructor,y=document.__CE_registry.u.get(l);if(!y)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var t=y.constructionStack;if(0===t.length)return t=d.call(document,y.localName),Object.setPrototypeOf(t,l.prototype),t.__CE_state=1,t.__CE_definition=y,Gt(o,t),t;var e=t.length-1,s=t[e];if(s===ne)throw Error("Failed to construct '"+y.localName+"': This element was already constructed.");return t[e]=ne,Object.setPrototypeOf(s,l.prototype),Gt(o,s),s}a.prototype=Ee.prototype,Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:a}),window.HTMLElement=a})(o),function Pe(o){Document.prototype.createElement=function(a){return fe(o,this,a,null)},Document.prototype.importNode=function(a,l){return a=n.call(this,a,!!l),this.__CE_registry?gt(o,a):te(o,a),a},Document.prototype.createElementNS=function(a,l){return fe(o,this,l,a)},pe(o,Document.prototype,{prepend:f,append:p})}(o),pe(o,DocumentFragment.prototype,{prepend:E,append:g}),function De(o){function a(l,y){Object.defineProperty(l,"textContent",{enumerable:y.enumerable,configurable:!0,get:y.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)y.set.call(this,t);else{var e=void 0;if(this.firstChild){var s=this.childNodes,r=s.length;if(0<r&&ut(this)){e=Array(r);for(var i=0;i<r;i++)e[i]=s[i]}}if(y.set.call(this,t),e)for(t=0;t<e.length;t++)St(o,e[t])}}})}Node.prototype.insertBefore=function(l,y){if(l instanceof DocumentFragment){var t=xt(l);if(l=b.call(this,l,y),ut(this))for(y=0;y<t.length;y++)Pt(o,t[y]);return l}return t=l instanceof Element&&ut(l),y=b.call(this,l,y),t&&St(o,l),ut(this)&&Pt(o,l),y},Node.prototype.appendChild=function(l){if(l instanceof DocumentFragment){var y=xt(l);if(l=k.call(this,l),ut(this))for(var t=0;t<y.length;t++)Pt(o,y[t]);return l}return y=l instanceof Element&&ut(l),t=k.call(this,l),y&&St(o,l),ut(this)&&Pt(o,l),t},Node.prototype.cloneNode=function(l){return l=T.call(this,!!l),this.ownerDocument.__CE_registry?gt(o,l):te(o,l),l},Node.prototype.removeChild=function(l){var y=l instanceof Element&&ut(l),t=D.call(this,l);return y&&St(o,l),t},Node.prototype.replaceChild=function(l,y){if(l instanceof DocumentFragment){var t=xt(l);if(l=N.call(this,l,y),ut(this))for(St(o,y),y=0;y<t.length;y++)Pt(o,t[y]);return l}t=l instanceof Element&&ut(l);var e=N.call(this,l,y),s=ut(this);return s&&St(o,y),t&&St(o,l),s&&Pt(o,l),e},w&&w.get?a(Node.prototype,w):function Oe(o,a){o.f=!0,o.h.push(a)}(o,function(l){a(l,{enumerable:!0,configurable:!0,get:function(){for(var y=[],t=this.firstChild;t;t=t.nextSibling)t.nodeType!==Node.COMMENT_NODE&&y.push(t.textContent);return y.join("")},set:function(y){for(;this.firstChild;)D.call(this,this.firstChild);null!=y&&""!==y&&k.call(this,document.createTextNode(y))}})})}(o),function be(o){function a(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(s){var r=this,i=void 0;if(ut(this)&&(i=[],Zt(o,this,function(x){x!==r&&i.push(x)})),e.set.call(this,s),i)for(var v=0;v<i.length;v++){var _=i[v];1===_.__CE_state&&o.disconnectedCallback(_)}return this.ownerDocument.__CE_registry?gt(o,this):te(o,this),s}})}function l(t,e){t.insertAdjacentElement=function(s,r){var i=ut(r);return s=e.call(this,s,r),i&&St(o,r),ut(s)&&Pt(o,r),s}}function y(t,e){function s(r,i){for(var v=[];r!==i;r=r.nextSibling)v.push(r);for(i=0;i<v.length;i++)gt(o,v[i])}t.insertAdjacentHTML=function(r,i){if("beforebegin"===(r=r.toLowerCase())){var v=this.previousSibling;e.call(this,r,i),s(v||this.parentNode.firstChild,this)}else if("afterbegin"===r)v=this.firstChild,e.call(this,r,i),s(this.firstChild,v);else if("beforeend"===r)v=this.lastChild,e.call(this,r,i),s(v||this.firstChild,null);else{if("afterend"!==r)throw new SyntaxError("The value provided ("+String(r)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");v=this.nextSibling,e.call(this,r,i),s(this.nextSibling,v)}}}S&&(Element.prototype.attachShadow=function(t){if(t=S.call(this,t),o.f&&!t.__CE_patched){t.__CE_patched=!0;for(var e=0;e<o.h.length;e++)o.h[e](t)}return this.__CE_shadowRoot=t}),L&&L.get?a(Element.prototype,L):Vt&&Vt.get?a(HTMLElement.prototype,Vt):function _e(o,a){o.f=!0,o.a.push(a)}(o,function(t){a(t,{enumerable:!0,configurable:!0,get:function(){return T.call(this,!0).innerHTML},set:function(e){var s="template"===this.localName,r=s?this.content:this,i=m.call(document,this.namespaceURI,this.localName);for(i.innerHTML=e;0<r.childNodes.length;)D.call(r,r.childNodes[0]);for(e=s?i.content:i;0<e.childNodes.length;)k.call(r,e.childNodes[0])}})}),Element.prototype.setAttribute=function(t,e){if(1!==this.__CE_state)return J.call(this,t,e);var s=st.call(this,t);J.call(this,t,e),e=st.call(this,t),o.attributeChangedCallback(this,t,s,e,null)},Element.prototype.setAttributeNS=function(t,e,s){if(1!==this.__CE_state)return at.call(this,t,e,s);var r=M.call(this,t,e);at.call(this,t,e,s),s=M.call(this,t,e),o.attributeChangedCallback(this,e,r,s,t)},Element.prototype.removeAttribute=function(t){if(1!==this.__CE_state)return V.call(this,t);var e=st.call(this,t);V.call(this,t),null!==e&&o.attributeChangedCallback(this,t,e,null,null)},Element.prototype.removeAttributeNS=function(t,e){if(1!==this.__CE_state)return ct.call(this,t,e);var s=M.call(this,t,e);ct.call(this,t,e);var r=M.call(this,t,e);s!==r&&o.attributeChangedCallback(this,e,s,r,t)},ye?l(HTMLElement.prototype,ye):j&&l(Element.prototype,j),ae?y(HTMLElement.prototype,ae):Et&&y(Element.prototype,Et),pe(o,Element.prototype,{prepend:_t,append:Ht}),function Te(o){function a(y){return function(t){for(var e=[],s=0;s<arguments.length;++s)e[s]=arguments[s];s=[];for(var r=[],i=0;i<e.length;i++){var v=e[i];if(v instanceof Element&&ut(v)&&r.push(v),v instanceof DocumentFragment)for(v=v.firstChild;v;v=v.nextSibling)s.push(v);else s.push(v)}for(y.apply(this,e),e=0;e<r.length;e++)St(o,r[e]);if(ut(this))for(e=0;e<s.length;e++)(r=s[e])instanceof Element&&Pt(o,r)}}var l=Element.prototype;void 0!==se&&(l.before=a(se)),void 0!==ie&&(l.after=a(ie)),void 0!==$t&&(l.replaceWith=function(y){for(var t=[],e=0;e<arguments.length;++e)t[e]=arguments[e];e=[];for(var s=[],r=0;r<t.length;r++){var i=t[r];if(i instanceof Element&&ut(i)&&s.push(i),i instanceof DocumentFragment)for(i=i.firstChild;i;i=i.nextSibling)e.push(i);else e.push(i)}for(r=ut(this),$t.apply(this,t),t=0;t<s.length;t++)St(o,s[t]);if(r)for(St(o,this),t=0;t<e.length;t++)(s=e[t])instanceof Element&&Pt(o,s)}),void 0!==qt&&(l.remove=function(){var y=ut(this);qt.call(this),y&&St(o,this)})}(o)}(o),o=new Tt(o),document.__CE_registry=o,Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:o})}Mt&&!Mt.forcePolyfill&&"function"==typeof Mt.define&&"function"==typeof Mt.get||we(),window.__CE_installPolyfill=we}).call(self)},43506:()=>{"use strict";const d=globalThis;function m(t){return(d.__Zone_symbol_prefix||"__zone_symbol__")+t}const p=Object.getOwnPropertyDescriptor,E=Object.defineProperty,g=Object.getPrototypeOf,T=Object.create,k=Array.prototype.slice,b="addEventListener",D="removeEventListener",N=m(b),w=m(D),S="true",L="false",st=m("");function J(t,e){return Zone.current.wrap(t,e)}function V(t,e,s,r,i){return Zone.current.scheduleMacroTask(t,e,s,r,i)}const M=m,at=typeof window<"u",ct=at?window:void 0,j=at&&ct||globalThis,Et="removeAttribute";function _t(t,e){for(let s=t.length-1;s>=0;s--)"function"==typeof t[s]&&(t[s]=J(t[s],e+"_"+s));return t}function se(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const ie=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,$t=!("nw"in j)&&typeof j.process<"u"&&"[object process]"===j.process.toString(),qt=!$t&&!ie&&!(!at||!ct.HTMLElement),Ee=typeof j.process<"u"&&"[object process]"===j.process.toString()&&!ie&&!(!at||!ct.HTMLElement),Vt={},ye=M("enable_beforeunload"),ae=function(t){if(!(t=t||j.event))return;let e=Vt[t.type];e||(e=Vt[t.type]=M("ON_PROPERTY"+t.type));const s=this||t.target||j,r=s[e];let i;return qt&&s===ct&&"error"===t.type?(i=r&&r.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===i&&t.preventDefault()):(i=r&&r.apply(this,arguments),"beforeunload"===t.type&&j[ye]&&"string"==typeof i?t.returnValue=i:null!=i&&!i&&t.preventDefault()),i};function ce(t,e,s){let r=p(t,e);if(!r&&s&&p(s,e)&&(r={enumerable:!0,configurable:!0}),!r||!r.configurable)return;const i=M("on"+e+"patched");if(t.hasOwnProperty(i)&&t[i])return;delete r.writable,delete r.value;const v=r.get,_=r.set,x=e.slice(2);let Z=Vt[x];Z||(Z=Vt[x]=M("ON_PROPERTY"+x)),r.set=function(Y){let I=this;!I&&t===j&&(I=j),I&&("function"==typeof I[Z]&&I.removeEventListener(x,ae),_&&_.call(I,null),I[Z]=Y,"function"==typeof Y&&I.addEventListener(x,ae,!1))},r.get=function(){let Y=this;if(!Y&&t===j&&(Y=j),!Y)return null;const I=Y[Z];if(I)return I;if(v){let X=v.call(this);if(X)return r.set.call(this,X),"function"==typeof Y[Et]&&Y.removeAttribute(e),X}return null},E(t,e,r),t[i]=!0}function le(t,e,s){if(e)for(let r=0;r<e.length;r++)ce(t,"on"+e[r],s);else{const r=[];for(const i in t)"on"==i.slice(0,2)&&r.push(i);for(let i=0;i<r.length;i++)ce(t,r[i],s)}}const Nt=M("originalInstance");function ut(t){const e=j[t];if(!e)return;j[M(t)]=e,j[t]=function(){const i=_t(arguments,t);switch(i.length){case 0:this[Nt]=new e;break;case 1:this[Nt]=new e(i[0]);break;case 2:this[Nt]=new e(i[0],i[1]);break;case 3:this[Nt]=new e(i[0],i[1],i[2]);break;case 4:this[Nt]=new e(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},jt(j[t],e);const s=new e(function(){});let r;for(r in s)"XMLHttpRequest"===t&&"responseBlob"===r||function(i){"function"==typeof s[i]?j[t].prototype[i]=function(){return this[Nt][i].apply(this[Nt],arguments)}:E(j[t].prototype,i,{set:function(v){"function"==typeof v?(this[Nt][i]=J(v,t+"."+i),jt(this[Nt][i],v)):this[Nt][i]=v},get:function(){return this[Nt][i]}})}(r);for(r in e)"prototype"!==r&&e.hasOwnProperty(r)&&(j[t][r]=e[r])}function xt(t,e,s){let r=t;for(;r&&!r.hasOwnProperty(e);)r=g(r);!r&&t[e]&&(r=t);const i=M(e);let v=null;if(r&&(!(v=r[i])||!r.hasOwnProperty(i))&&(v=r[i]=r[e],se(r&&p(r,e)))){const x=s(v,i,e);r[e]=function(){return x(this,arguments)},jt(r[e],v)}return v}function ue(t,e,s){let r=null;function i(v){const _=v.data;return _.args[_.cbIdx]=function(){v.invoke.apply(this,arguments)},r.apply(_.target,_.args),v}r=xt(t,e,v=>function(_,x){const Z=s(_,x);return Z.cbIdx>=0&&"function"==typeof x[Z.cbIdx]?V(Z.name,x[Z.cbIdx],Z,i):v.apply(_,x)})}function jt(t,e){t[M("OriginalDelegate")]=e}let Yt=!1,Zt=!1;function _e(){if(Yt)return Zt;Yt=!0;try{const t=ct.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(Zt=!0)}catch{}return Zt}function te(t){return"function"==typeof t}function Gt(t){return"number"==typeof t}let Pt=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Pt=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Pt=!1}const St={useG:!0},gt={},Jt={},fe=new RegExp("^"+st+"(\\w+)(true|false)$"),Bt=M("propagationStopped");function he(t,e){const s=(e?e(t):t)+L,r=(e?e(t):t)+S,i=st+s,v=st+r;gt[t]={},gt[t][L]=i,gt[t][S]=v}function me(t,e,s,r){const i=r&&r.add||b,v=r&&r.rm||D,_=r&&r.listeners||"eventListeners",x=r&&r.rmAll||"removeAllListeners",Z=M(i),Y="."+i+":",I="prependListener",X="."+I+":",ot=function(B,R,lt){if(B.isRemoved)return;const ht=B.callback;let Ot;"object"==typeof ht&&ht.handleEvent&&(B.callback=F=>ht.handleEvent(F),B.originalDelegate=ht);try{B.invoke(B,R,[lt])}catch(F){Ot=F}const dt=B.options;return dt&&"object"==typeof dt&&dt.once&&R[v].call(R,lt.type,B.originalDelegate?B.originalDelegate:B.callback,dt),Ot};function ft(B,R,lt){if(!(R=R||t.event))return;const ht=B||R.target||t,Ot=ht[gt[R.type][lt?S:L]];if(Ot){const dt=[];if(1===Ot.length){const F=ot(Ot[0],ht,R);F&&dt.push(F)}else{const F=Ot.slice();for(let mt=0;mt<F.length&&(!R||!0!==R[Bt]);mt++){const q=ot(F[mt],ht,R);q&&dt.push(q)}}if(1===dt.length)throw dt[0];for(let F=0;F<dt.length;F++){const mt=dt[F];e.nativeScheduleMicroTask(()=>{throw mt})}}}const yt=function(B){return ft(this,B,!1)},kt=function(B){return ft(this,B,!0)};function Dt(B,R){if(!B)return!1;let lt=!0;R&&void 0!==R.useG&&(lt=R.useG);const ht=R&&R.vh;let Ot=!0;R&&void 0!==R.chkDup&&(Ot=R.chkDup);let dt=!1;R&&void 0!==R.rt&&(dt=R.rt);let F=B;for(;F&&!F.hasOwnProperty(i);)F=g(F);if(!F&&B[i]&&(F=B),!F||F[Z])return!1;const mt=R&&R.eventNameToString,q={},K=F[Z]=F[i],U=F[M(v)]=F[v],Q=F[M(_)]=F[_],Rt=F[M(x)]=F[x];let bt;R&&R.prepend&&(bt=F[M(R.prepend)]=F[R.prepend]);const wt=lt?function(h){if(!q.isExisting)return K.call(q.target,q.eventName,q.capture?kt:yt,q.options)}:function(h){return K.call(q.target,q.eventName,h.invoke,q.options)},it=lt?function(h){if(!h.isRemoved){const O=gt[h.eventName];let W;O&&(W=O[h.capture?S:L]);const $=W&&h.target[W];if($)for(let H=0;H<$.length;H++)if($[H]===h){$.splice(H,1),h.isRemoved=!0,h.removeAbortListener&&(h.removeAbortListener(),h.removeAbortListener=null),0===$.length&&(h.allRemoved=!0,h.target[W]=null);break}}if(h.allRemoved)return U.call(h.target,h.eventName,h.capture?kt:yt,h.options)}:function(h){return U.call(h.target,h.eventName,h.invoke,h.options)},Ut=R&&R.diff?R.diff:function(h,O){const W=typeof O;return"function"===W&&h.callback===O||"object"===W&&h.originalDelegate===O},zt=Zone[M("UNPATCHED_EVENTS")],It=t[M("PASSIVE_EVENTS")],C=function(h,O,W,$,H=!1,et=!1){return function(){const nt=this||t;let rt=arguments[0];R&&R.transferEventName&&(rt=R.transferEventName(rt));let pt=arguments[1];if(!pt)return h.apply(this,arguments);if($t&&"uncaughtException"===rt)return h.apply(this,arguments);let vt=!1;if("function"!=typeof pt){if(!pt.handleEvent)return h.apply(this,arguments);vt=!0}if(ht&&!ht(h,pt,nt,arguments))return;const Kt=Pt&&!!It&&-1!==It.indexOf(rt),At=function P(h){if("object"==typeof h&&null!==h){const O={...h};return h.signal&&(O.signal=h.signal),O}return h}(function tt(h,O){return!Pt&&"object"==typeof h&&h?!!h.capture:Pt&&O?"boolean"==typeof h?{capture:h,passive:!0}:h?"object"==typeof h&&!1!==h.passive?{...h,passive:!0}:h:{passive:!0}:h}(arguments[2],Kt)),re=At?.signal;if(re?.aborted)return;if(zt)for(let Ft=0;Ft<zt.length;Ft++)if(rt===zt[Ft])return Kt?h.call(nt,rt,pt,At):h.apply(this,arguments);const Se=!!At&&("boolean"==typeof At||At.capture),Ne=!(!At||"object"!=typeof At)&&At.once,Le=Zone.current;let Re=gt[rt];Re||(he(rt,mt),Re=gt[rt]);const xe=Re[Se?S:L];let Ce,oe=nt[xe],je=!1;if(oe){if(je=!0,Ot)for(let Ft=0;Ft<oe.length;Ft++)if(Ut(oe[Ft],pt))return}else oe=nt[xe]=[];const Me=nt.constructor.name,Ie=Jt[Me];Ie&&(Ce=Ie[rt]),Ce||(Ce=Me+O+(mt?mt(rt):rt)),q.options=At,Ne&&(q.options.once=!1),q.target=nt,q.capture=Se,q.eventName=rt,q.isExisting=je;const ve=lt?St:void 0;ve&&(ve.taskData=q),re&&(q.options.signal=void 0);const Lt=Le.scheduleEventTask(Ce,pt,ve,W,$);if(re){q.options.signal=re;const Ft=()=>Lt.zone.cancelTask(Lt);h.call(re,"abort",Ft,{once:!0}),Lt.removeAbortListener=()=>re.removeEventListener("abort",Ft)}return q.target=null,ve&&(ve.taskData=null),Ne&&(q.options.once=!0),!Pt&&"boolean"==typeof Lt.options||(Lt.options=At),Lt.target=nt,Lt.capture=Se,Lt.eventName=rt,vt&&(Lt.originalDelegate=pt),et?oe.unshift(Lt):oe.push(Lt),H?nt:void 0}};return F[i]=C(K,Y,wt,it,dt),bt&&(F[I]=C(bt,X,function(h){return bt.call(q.target,q.eventName,h.invoke,q.options)},it,dt,!0)),F[v]=function(){const h=this||t;let O=arguments[0];R&&R.transferEventName&&(O=R.transferEventName(O));const W=arguments[2],$=!!W&&("boolean"==typeof W||W.capture),H=arguments[1];if(!H)return U.apply(this,arguments);if(ht&&!ht(U,H,h,arguments))return;const et=gt[O];let nt;et&&(nt=et[$?S:L]);const rt=nt&&h[nt];if(rt)for(let pt=0;pt<rt.length;pt++){const vt=rt[pt];if(Ut(vt,H))return rt.splice(pt,1),vt.isRemoved=!0,0!==rt.length||(vt.allRemoved=!0,h[nt]=null,$||"string"!=typeof O)||(h[st+"ON_PROPERTY"+O]=null),vt.zone.cancelTask(vt),dt?h:void 0}return U.apply(this,arguments)},F[_]=function(){const h=this||t;let O=arguments[0];R&&R.transferEventName&&(O=R.transferEventName(O));const W=[],$=de(h,mt?mt(O):O);for(let H=0;H<$.length;H++){const et=$[H];W.push(et.originalDelegate?et.originalDelegate:et.callback)}return W},F[x]=function(){const h=this||t;let O=arguments[0];if(O){R&&R.transferEventName&&(O=R.transferEventName(O));const W=gt[O];if(W){const et=h[W[L]],nt=h[W[S]];if(et){const rt=et.slice();for(let pt=0;pt<rt.length;pt++){const vt=rt[pt];this[v].call(this,O,vt.originalDelegate?vt.originalDelegate:vt.callback,vt.options)}}if(nt){const rt=nt.slice();for(let pt=0;pt<rt.length;pt++){const vt=rt[pt];this[v].call(this,O,vt.originalDelegate?vt.originalDelegate:vt.callback,vt.options)}}}}else{const W=Object.keys(h);for(let $=0;$<W.length;$++){const et=fe.exec(W[$]);let nt=et&&et[1];nt&&"removeListener"!==nt&&this[x].call(this,nt)}this[x].call(this,"removeListener")}if(dt)return this},jt(F[i],K),jt(F[v],U),Rt&&jt(F[x],Rt),Q&&jt(F[_],Q),!0}let Ct=[];for(let B=0;B<s.length;B++)Ct[B]=Dt(s[B],r);return Ct}function de(t,e){if(!e){const v=[];for(let _ in t){const x=fe.exec(_);let Z=x&&x[1];if(Z&&(!e||Z===e)){const Y=t[_];if(Y)for(let I=0;I<Y.length;I++)v.push(Y[I])}}return v}let s=gt[e];s||(he(e),s=gt[e]);const r=t[s[L]],i=t[s[S]];return r?i?r.concat(i):r.slice():i?i.slice():[]}function Tt(t,e){const s=t.Event;s&&s.prototype&&e.patchMethod(s.prototype,"stopImmediatePropagation",r=>function(i,v){i[Bt]=!0,r&&r.apply(i,v)})}const Qt=M("zoneTask");function Wt(t,e,s,r){let i=null,v=null;s+=r;const _={};function x(Y){const I=Y.data;I.args[0]=function(){return Y.invoke.apply(this,arguments)};const X=i.apply(t,I.args);return Gt(X)?I.handleId=X:(I.handle=X,I.isRefreshable=te(X.refresh)),Y}function Z(Y){const{handle:I,handleId:X}=Y.data;return v.call(t,I??X)}i=xt(t,e+=r,Y=>function(I,X){if(te(X[0])){const ot={isRefreshable:!1,isPeriodic:"Interval"===r,delay:"Timeout"===r||"Interval"===r?X[1]||0:void 0,args:X},ft=X[0];X[0]=function(){try{return ft.apply(this,arguments)}finally{const{handle:lt,handleId:ht,isPeriodic:Ot,isRefreshable:dt}=ot;!Ot&&!dt&&(ht?delete _[ht]:lt&&(lt[Qt]=null))}};const yt=V(e,X[0],ot,x,Z);if(!yt)return yt;const{handleId:kt,handle:Dt,isRefreshable:Ct,isPeriodic:B}=yt.data;if(kt)_[kt]=yt;else if(Dt&&(Dt[Qt]=yt,Ct&&!B)){const R=Dt.refresh;Dt.refresh=function(){const{zone:lt,state:ht}=yt;return"notScheduled"===ht?(yt._state="scheduled",lt._updateTaskCount(yt,1)):"running"===ht&&(yt._state="scheduling"),R.call(this)}}return Dt??kt??yt}return Y.apply(t,X)}),v=xt(t,s,Y=>function(I,X){const ot=X[0];let ft;Gt(ot)?(ft=_[ot],delete _[ot]):(ft=ot?.[Qt],ft?ot[Qt]=null:ft=ot),ft?.type?ft.cancelFn&&ft.zone.cancelTask(ft):Y.apply(t,X)})}function Te(t,e,s){if(!s||0===s.length)return e;const r=s.filter(v=>v.target===t);if(!r||0===r.length)return e;const i=r[0].ignoreProperties;return e.filter(v=>-1===i.indexOf(v))}function be(t,e,s,r){t&&le(t,Te(t,e,s),r)}function ne(t){return Object.getOwnPropertyNames(t).filter(e=>e.startsWith("on")&&e.length>2).map(e=>e.substring(2))}function o(t,e,s,r,i){const v=Zone.__symbol__(r);if(e[v])return;const _=e[v]=e[r];e[r]=function(x,Z,Y){return Z&&Z.prototype&&i.forEach(function(I){const X=`${s}.${r}::`+I,ot=Z.prototype;try{if(ot.hasOwnProperty(I)){const ft=t.ObjectGetOwnPropertyDescriptor(ot,I);ft&&ft.value?(ft.value=t.wrapWithCurrentZone(ft.value,X),t._redefineProperty(Z.prototype,I,ft)):ot[I]&&(ot[I]=t.wrapWithCurrentZone(ot[I],X))}else ot[I]&&(ot[I]=t.wrapWithCurrentZone(ot[I],X))}catch{}}),_.call(e,x,Z,Y)},t.attachOriginToPatched(e[r],_)}const y=function f(){const t=globalThis,e=!0===t[m("forceDuplicateZoneCheck")];if(t.Zone&&(e||"function"!=typeof t.Zone.__symbol__))throw new Error("Zone already loaded.");return t.Zone??=function n(){const t=d.performance;function e(tt){t&&t.mark&&t.mark(tt)}function s(tt,A){t&&t.measure&&t.measure(tt,A)}e("Zone");let r=(()=>{class tt{static{this.__symbol__=m}static assertZonePatched(){if(d.Promise!==q.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 c=tt.current;for(;c.parent;)c=c.parent;return c}static get current(){return U.zone}static get currentTask(){return Q}static __load_patch(c,u,G=!1){if(q.hasOwnProperty(c)){const z=!0===d[m("forceDuplicateZoneCheck")];if(!G&&z)throw Error("Already loaded patch: "+c)}else if(!d["__Zone_disable_"+c]){const z="Zone:"+c;e(z),q[c]=u(d,tt,K),s(z,z)}}get parent(){return this._parent}get name(){return this._name}constructor(c,u){this._parent=c,this._name=u?u.name||"unnamed":"<root>",this._properties=u&&u.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,u)}get(c){const u=this.getZoneWith(c);if(u)return u._properties[c]}getZoneWith(c){let u=this;for(;u;){if(u._properties.hasOwnProperty(c))return u;u=u._parent}return null}fork(c){if(!c)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,c)}wrap(c,u){if("function"!=typeof c)throw new Error("Expecting function got: "+c);const G=this._zoneDelegate.intercept(this,c,u),z=this;return function(){return z.runGuarded(G,this,arguments,u)}}run(c,u,G,z){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,c,u,G,z)}finally{U=U.parent}}runGuarded(c,u=null,G,z){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,c,u,G,z)}catch(wt){if(this._zoneDelegate.handleError(this,wt))throw wt}}finally{U=U.parent}}runTask(c,u,G){if(c.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(c.zone||Dt).name+"; Execution: "+this.name+")");const z=c,{type:wt,data:{isPeriodic:it=!1,isRefreshable:Xt=!1}={}}=c;if(c.state===Ct&&(wt===mt||wt===F))return;const Ut=c.state!=lt;Ut&&z._transitionTo(lt,R);const zt=Q;Q=z,U={parent:U,zone:this};try{wt==F&&c.data&&!it&&!Xt&&(c.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,z,u,G)}catch(It){if(this._zoneDelegate.handleError(this,It))throw It}}finally{const It=c.state;if(It!==Ct&&It!==Ot)if(wt==mt||it||Xt&&It===B)Ut&&z._transitionTo(R,lt,B);else{const P=z._zoneDelegates;this._updateTaskCount(z,-1),Ut&&z._transitionTo(Ct,lt,Ct),Xt&&(z._zoneDelegates=P)}U=U.parent,Q=zt}}scheduleTask(c){if(c.zone&&c.zone!==this){let G=this;for(;G;){if(G===c.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${c.zone.name}`);G=G.parent}}c._transitionTo(B,Ct);const u=[];c._zoneDelegates=u,c._zone=this;try{c=this._zoneDelegate.scheduleTask(this,c)}catch(G){throw c._transitionTo(Ot,B,Ct),this._zoneDelegate.handleError(this,G),G}return c._zoneDelegates===u&&this._updateTaskCount(c,1),c.state==B&&c._transitionTo(R,B),c}scheduleMicroTask(c,u,G,z){return this.scheduleTask(new _(dt,c,u,G,z,void 0))}scheduleMacroTask(c,u,G,z,wt){return this.scheduleTask(new _(F,c,u,G,z,wt))}scheduleEventTask(c,u,G,z,wt){return this.scheduleTask(new _(mt,c,u,G,z,wt))}cancelTask(c){if(c.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(c.zone||Dt).name+"; Execution: "+this.name+")");if(c.state===R||c.state===lt){c._transitionTo(ht,R,lt);try{this._zoneDelegate.cancelTask(this,c)}catch(u){throw c._transitionTo(Ot,ht),this._zoneDelegate.handleError(this,u),u}return this._updateTaskCount(c,-1),c._transitionTo(Ct,ht),c.runCount=-1,c}}_updateTaskCount(c,u){const G=c._zoneDelegates;-1==u&&(c._zoneDelegates=null);for(let z=0;z<G.length;z++)G[z]._updateTaskCount(c.type,u)}}return tt})();const i={name:"",onHasTask:(tt,A,c,u)=>tt.hasTask(c,u),onScheduleTask:(tt,A,c,u)=>tt.scheduleTask(c,u),onInvokeTask:(tt,A,c,u,G,z)=>tt.invokeTask(c,u,G,z),onCancelTask:(tt,A,c,u)=>tt.cancelTask(c,u)};class v{get zone(){return this._zone}constructor(A,c,u){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=A,this._parentDelegate=c,this._forkZS=u&&(u&&u.onFork?u:c._forkZS),this._forkDlgt=u&&(u.onFork?c:c._forkDlgt),this._forkCurrZone=u&&(u.onFork?this._zone:c._forkCurrZone),this._interceptZS=u&&(u.onIntercept?u:c._interceptZS),this._interceptDlgt=u&&(u.onIntercept?c:c._interceptDlgt),this._interceptCurrZone=u&&(u.onIntercept?this._zone:c._interceptCurrZone),this._invokeZS=u&&(u.onInvoke?u:c._invokeZS),this._invokeDlgt=u&&(u.onInvoke?c:c._invokeDlgt),this._invokeCurrZone=u&&(u.onInvoke?this._zone:c._invokeCurrZone),this._handleErrorZS=u&&(u.onHandleError?u:c._handleErrorZS),this._handleErrorDlgt=u&&(u.onHandleError?c:c._handleErrorDlgt),this._handleErrorCurrZone=u&&(u.onHandleError?this._zone:c._handleErrorCurrZone),this._scheduleTaskZS=u&&(u.onScheduleTask?u:c._scheduleTaskZS),this._scheduleTaskDlgt=u&&(u.onScheduleTask?c:c._scheduleTaskDlgt),this._scheduleTaskCurrZone=u&&(u.onScheduleTask?this._zone:c._scheduleTaskCurrZone),this._invokeTaskZS=u&&(u.onInvokeTask?u:c._invokeTaskZS),this._invokeTaskDlgt=u&&(u.onInvokeTask?c:c._invokeTaskDlgt),this._invokeTaskCurrZone=u&&(u.onInvokeTask?this._zone:c._invokeTaskCurrZone),this._cancelTaskZS=u&&(u.onCancelTask?u:c._cancelTaskZS),this._cancelTaskDlgt=u&&(u.onCancelTask?c:c._cancelTaskDlgt),this._cancelTaskCurrZone=u&&(u.onCancelTask?this._zone:c._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const G=u&&u.onHasTask;(G||c&&c._hasTaskZS)&&(this._hasTaskZS=G?u:i,this._hasTaskDlgt=c,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,u.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=c,this._scheduleTaskCurrZone=this._zone),u.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=c,this._invokeTaskCurrZone=this._zone),u.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=c,this._cancelTaskCurrZone=this._zone))}fork(A,c){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,A,c):new r(A,c)}intercept(A,c,u){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,A,c,u):c}invoke(A,c,u,G,z){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,A,c,u,G,z):c.apply(u,G)}handleError(A,c){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,A,c)}scheduleTask(A,c){let u=c;if(this._scheduleTaskZS)this._hasTaskZS&&u._zoneDelegates.push(this._hasTaskDlgtOwner),u=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,A,c),u||(u=c);else if(c.scheduleFn)c.scheduleFn(c);else{if(c.type!=dt)throw new Error("Task is missing scheduleFn.");yt(c)}return u}invokeTask(A,c,u,G){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,A,c,u,G):c.callback.apply(u,G)}cancelTask(A,c){let u;if(this._cancelTaskZS)u=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,A,c);else{if(!c.cancelFn)throw Error("Task is not cancelable");u=c.cancelFn(c)}return u}hasTask(A,c){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,A,c)}catch(u){this.handleError(A,u)}}_updateTaskCount(A,c){const u=this._taskCounts,G=u[A],z=u[A]=G+c;if(z<0)throw new Error("More tasks executed then were scheduled.");0!=G&&0!=z||this.hasTask(this._zone,{microTask:u.microTask>0,macroTask:u.macroTask>0,eventTask:u.eventTask>0,change:A})}}class _{constructor(A,c,u,G,z,wt){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=A,this.source=c,this.data=G,this.scheduleFn=z,this.cancelFn=wt,!u)throw new Error("callback is not defined");this.callback=u;const it=this;this.invoke=A===mt&&G&&G.useG?_.invokeTask:function(){return _.invokeTask.call(d,it,this,arguments)}}static invokeTask(A,c,u){A||(A=this),Rt++;try{return A.runCount++,A.zone.runTask(A,c,u)}finally{1==Rt&&kt(),Rt--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(Ct,B)}_transitionTo(A,c,u){if(this._state!==c&&this._state!==u)throw new Error(`${this.type} '${this.source}': can not transition to '${A}', expecting state '${c}'${u?" or '"+u+"'":""}, was '${this._state}'.`);this._state=A,A==Ct&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const x=m("setTimeout"),Z=m("Promise"),Y=m("then");let ot,I=[],X=!1;function ft(tt){if(ot||d[Z]&&(ot=d[Z].resolve(0)),ot){let A=ot[Y];A||(A=ot.then),A.call(ot,tt)}else d[x](tt,0)}function yt(tt){0===Rt&&0===I.length&&ft(kt),tt&&I.push(tt)}function kt(){if(!X){for(X=!0;I.length;){const tt=I;I=[];for(let A=0;A<tt.length;A++){const c=tt[A];try{c.zone.runTask(c,null,null)}catch(u){K.onUnhandledError(u)}}}K.microtaskDrainDone(),X=!1}}const Dt={name:"NO ZONE"},Ct="notScheduled",B="scheduling",R="scheduled",lt="running",ht="canceling",Ot="unknown",dt="microTask",F="macroTask",mt="eventTask",q={},K={symbol:m,currentZoneFrame:()=>U,onUnhandledError:bt,microtaskDrainDone:bt,scheduleMicroTask:yt,showUncaughtError:()=>!r[m("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:bt,patchMethod:()=>bt,bindArguments:()=>[],patchThen:()=>bt,patchMacroTask:()=>bt,patchEventPrototype:()=>bt,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>bt,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>bt,wrapWithCurrentZone:()=>bt,filterProperties:()=>[],attachOriginToPatched:()=>bt,_redefineProperty:()=>bt,patchCallbacks:()=>bt,nativeScheduleMicroTask:ft};let U={parent:null,zone:new r(null,null)},Q=null,Rt=0;function bt(){}return s("Zone","Zone"),r}(),t.Zone}();(function l(t){(function Mt(t){t.__load_patch("ZoneAwarePromise",(e,s,r)=>{const i=Object.getOwnPropertyDescriptor,v=Object.defineProperty,x=r.symbol,Z=[],Y=!1!==e[x("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],I=x("Promise"),X=x("then"),ot="__creationTrace__";r.onUnhandledError=P=>{if(r.showUncaughtError()){const C=P&&P.rejection;C?console.error("Unhandled Promise rejection:",C instanceof Error?C.message:C,"; Zone:",P.zone.name,"; Task:",P.task&&P.task.source,"; Value:",C,C instanceof Error?C.stack:void 0):console.error(P)}},r.microtaskDrainDone=()=>{for(;Z.length;){const P=Z.shift();try{P.zone.runGuarded(()=>{throw P.throwOriginal?P.rejection:P})}catch(C){yt(C)}}};const ft=x("unhandledPromiseRejectionHandler");function yt(P){r.onUnhandledError(P);try{const C=s[ft];"function"==typeof C&&C.call(this,P)}catch{}}function kt(P){return P&&P.then}function Dt(P){return P}function Ct(P){return it.reject(P)}const B=x("state"),R=x("value"),lt=x("finally"),ht=x("parentPromiseValue"),Ot=x("parentPromiseState"),dt="Promise.then",F=null,mt=!0,q=!1,K=0;function U(P,C){return h=>{try{tt(P,C,h)}catch(O){tt(P,!1,O)}}}const Q=function(){let P=!1;return function(h){return function(){P||(P=!0,h.apply(null,arguments))}}},Rt="Promise resolved with itself",bt=x("currentTaskTrace");function tt(P,C,h){const O=Q();if(P===h)throw new TypeError(Rt);if(P[B]===F){let W=null;try{("object"==typeof h||"function"==typeof h)&&(W=h&&h.then)}catch($){return O(()=>{tt(P,!1,$)})(),P}if(C!==q&&h instanceof it&&h.hasOwnProperty(B)&&h.hasOwnProperty(R)&&h[B]!==F)c(h),tt(P,h[B],h[R]);else if(C!==q&&"function"==typeof W)try{W.call(h,O(U(P,C)),O(U(P,!1)))}catch($){O(()=>{tt(P,!1,$)})()}else{P[B]=C;const $=P[R];if(P[R]=h,P[lt]===lt&&C===mt&&(P[B]=P[Ot],P[R]=P[ht]),C===q&&h instanceof Error){const H=s.currentTask&&s.currentTask.data&&s.currentTask.data[ot];H&&v(h,bt,{configurable:!0,enumerable:!1,writable:!0,value:H})}for(let H=0;H<$.length;)u(P,$[H++],$[H++],$[H++],$[H++]);if(0==$.length&&C==q){P[B]=K;let H=h;try{throw new Error("Uncaught (in promise): "+function _(P){return P&&P.toString===Object.prototype.toString?(P.constructor&&P.constructor.name||"")+": "+JSON.stringify(P):P?P.toString():Object.prototype.toString.call(P)}(h)+(h&&h.stack?"\n"+h.stack:""))}catch(et){H=et}Y&&(H.throwOriginal=!0),H.rejection=h,H.promise=P,H.zone=s.current,H.task=s.currentTask,Z.push(H),r.scheduleMicroTask()}}}return P}const A=x("rejectionHandledHandler");function c(P){if(P[B]===K){try{const C=s[A];C&&"function"==typeof C&&C.call(this,{rejection:P[R],promise:P})}catch{}P[B]=q;for(let C=0;C<Z.length;C++)P===Z[C].promise&&Z.splice(C,1)}}function u(P,C,h,O,W){c(P);const $=P[B],H=$?"function"==typeof O?O:Dt:"function"==typeof W?W:Ct;C.scheduleMicroTask(dt,()=>{try{const et=P[R],nt=!!h&&lt===h[lt];nt&&(h[ht]=et,h[Ot]=$);const rt=C.run(H,void 0,nt&&H!==Ct&&H!==Dt?[]:[et]);tt(h,!0,rt)}catch(et){tt(h,!1,et)}},h)}const z=function(){},wt=e.AggregateError;class it{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(C){return C instanceof it?C:tt(new this(null),mt,C)}static reject(C){return tt(new this(null),q,C)}static withResolvers(){const C={};return C.promise=new it((h,O)=>{C.resolve=h,C.reject=O}),C}static any(C){if(!C||"function"!=typeof C[Symbol.iterator])return Promise.reject(new wt([],"All promises were rejected"));const h=[];let O=0;try{for(let H of C)O++,h.push(it.resolve(H))}catch{return Promise.reject(new wt([],"All promises were rejected"))}if(0===O)return Promise.reject(new wt([],"All promises were rejected"));let W=!1;const $=[];return new it((H,et)=>{for(let nt=0;nt<h.length;nt++)h[nt].then(rt=>{W||(W=!0,H(rt))},rt=>{$.push(rt),O--,0===O&&(W=!0,et(new wt($,"All promises were rejected")))})})}static race(C){let h,O,W=new this((et,nt)=>{h=et,O=nt});function $(et){h(et)}function H(et){O(et)}for(let et of C)kt(et)||(et=this.resolve(et)),et.then($,H);return W}static all(C){return it.allWithCallback(C)}static allSettled(C){return(this&&this.prototype instanceof it?this:it).allWithCallback(C,{thenCallback:O=>({status:"fulfilled",value:O}),errorCallback:O=>({status:"rejected",reason:O})})}static allWithCallback(C,h){let O,W,$=new this((rt,pt)=>{O=rt,W=pt}),H=2,et=0;const nt=[];for(let rt of C){kt(rt)||(rt=this.resolve(rt));const pt=et;try{rt.then(vt=>{nt[pt]=h?h.thenCallback(vt):vt,H--,0===H&&O(nt)},vt=>{h?(nt[pt]=h.errorCallback(vt),H--,0===H&&O(nt)):W(vt)})}catch(vt){W(vt)}H++,et++}return H-=2,0===H&&O(nt),$}constructor(C){const h=this;if(!(h instanceof it))throw new Error("Must be an instanceof Promise.");h[B]=F,h[R]=[];try{const O=Q();C&&C(O(U(h,mt)),O(U(h,q)))}catch(O){tt(h,!1,O)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return it}then(C,h){let O=this.constructor?.[Symbol.species];(!O||"function"!=typeof O)&&(O=this.constructor||it);const W=new O(z),$=s.current;return this[B]==F?this[R].push($,W,C,h):u(this,$,W,C,h),W}catch(C){return this.then(null,C)}finally(C){let h=this.constructor?.[Symbol.species];(!h||"function"!=typeof h)&&(h=it);const O=new h(z);O[lt]=lt;const W=s.current;return this[B]==F?this[R].push(W,O,C,C):u(this,W,O,C,C),O}}it.resolve=it.resolve,it.reject=it.reject,it.race=it.race,it.all=it.all;const Xt=e[I]=e.Promise;e.Promise=it;const Ut=x("thenPatched");function zt(P){const C=P.prototype,h=i(C,"then");if(h&&(!1===h.writable||!h.configurable))return;const O=C.then;C[X]=O,P.prototype.then=function(W,$){return new it((et,nt)=>{O.call(this,et,nt)}).then(W,$)},P[Ut]=!0}return r.patchThen=zt,Xt&&(zt(Xt),xt(e,"fetch",P=>function It(P){return function(C,h){let O=P.apply(C,h);if(O instanceof it)return O;let W=O.constructor;return W[Ut]||zt(W),O}}(P))),Promise[s.__symbol__("uncaughtPromiseErrors")]=Z,it})})(t),function we(t){t.__load_patch("toString",e=>{const s=Function.prototype.toString,r=M("OriginalDelegate"),i=M("Promise"),v=M("Error"),_=function(){if("function"==typeof this){const I=this[r];if(I)return"function"==typeof I?s.call(I):Object.prototype.toString.call(I);if(this===Promise){const X=e[i];if(X)return s.call(X)}if(this===Error){const X=e[v];if(X)return s.call(X)}}return s.call(this)};_[r]=s,Function.prototype.toString=_;const x=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":x.call(this)}})}(t),function a(t){t.__load_patch("util",(e,s,r)=>{const i=ne(e);r.patchOnProperties=le,r.patchMethod=xt,r.bindArguments=_t,r.patchMacroTask=ue;const v=s.__symbol__("BLACK_LISTED_EVENTS"),_=s.__symbol__("UNPATCHED_EVENTS");e[_]&&(e[v]=e[_]),e[v]&&(s[v]=s[_]=e[v]),r.patchEventPrototype=Tt,r.patchEventTarget=me,r.isIEOrEdge=_e,r.ObjectDefineProperty=E,r.ObjectGetOwnPropertyDescriptor=p,r.ObjectCreate=T,r.ArraySlice=k,r.patchClass=ut,r.wrapWithCurrentZone=J,r.filterProperties=Te,r.attachOriginToPatched=jt,r._redefineProperty=Object.defineProperty,r.patchCallbacks=o,r.getGlobalObjects=()=>({globalSources:Jt,zoneSymbolEventNames:gt,eventNames:i,isBrowser:qt,isMix:Ee,isNode:$t,TRUE_STR:S,FALSE_STR:L,ZONE_SYMBOL_PREFIX:st,ADD_EVENT_LISTENER_STR:b,REMOVE_EVENT_LISTENER_STR:D})})}(t)})(y),function De(t){t.__load_patch("legacy",e=>{const s=e[t.__symbol__("legacyPatch")];s&&s()}),t.__load_patch("timers",e=>{const s="set",r="clear";Wt(e,s,r,"Timeout"),Wt(e,s,r,"Interval"),Wt(e,s,r,"Immediate")}),t.__load_patch("requestAnimationFrame",e=>{Wt(e,"request","cancel","AnimationFrame"),Wt(e,"mozRequest","mozCancel","AnimationFrame"),Wt(e,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(e,s)=>{const r=["alert","prompt","confirm"];for(let i=0;i<r.length;i++)xt(e,r[i],(_,x,Z)=>function(Y,I){return s.current.run(_,e,I,Z)})}),t.__load_patch("EventTarget",(e,s,r)=>{(function Pe(t,e){e.patchEventPrototype(t,e)})(e,r),function pe(t,e){if(Zone[e.symbol("patchEventTarget")])return;const{eventNames:s,zoneSymbolEventNames:r,TRUE_STR:i,FALSE_STR:v,ZONE_SYMBOL_PREFIX:_}=e.getGlobalObjects();for(let Z=0;Z<s.length;Z++){const Y=s[Z],ot=_+(Y+v),ft=_+(Y+i);r[Y]={},r[Y][v]=ot,r[Y][i]=ft}const x=t.EventTarget;x&&x.prototype&&e.patchEventTarget(t,e,[x&&x.prototype])}(e,r);const i=e.XMLHttpRequestEventTarget;i&&i.prototype&&r.patchEventTarget(e,r,[i.prototype])}),t.__load_patch("Muta