@project-sunbird/sunbird-epub-player-web-component
Version:
The web component package for the sunbird epub player
10 lines • 1.59 MB
JavaScript
(()=>{"use strict";var e,d={},_={};function a(e){var n=_[e];if(void 0!==n)return n.exports;var r=_[e]={id:e,loaded:!1,exports:{}};return d[e].call(r.exports,r,r.exports,a),r.loaded=!0,r.exports}a.m=d,e=[],a.O=(n,r,u,l)=>{if(!r){var c=1/0;for(t=0;t<e.length;t++){for(var[r,u,l]=e[t],i=!0,f=0;f<r.length;f++)(!1&l||c>=l)&&Object.keys(a.O).every(b=>a.O[b](r[f]))?r.splice(f--,1):(i=!1,l<c&&(c=l));if(i){e.splice(t--,1);var o=u();void 0!==o&&(n=o)}}return n}l=l||0;for(var t=e.length;t>0&&e[t-1][2]>l;t--)e[t]=e[t-1];e[t]=[r,u,l]},a.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return a.d(n,{a:n}),n},a.d=(e,n)=>{for(var r in n)a.o(n,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},a.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),a.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={runtime:0};a.O.j=u=>0===e[u];var n=(u,l)=>{var f,o,[t,c,i]=l,s=0;if(t.some(v=>0!==e[v])){for(f in c)a.o(c,f)&&(a.m[f]=c[f]);if(i)var p=i(a)}for(u&&u(l);s<t.length;s++)o=t[s],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(p)},r=self.webpackChunkepub_player_wc=self.webpackChunkepub_player_wc||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})()})();
//# sourceMappingURL=runtime.js.map
(self.webpackChunkepub_player_wc=self.webpackChunkepub_player_wc||[]).push([["polyfills"],{3415:(V,$,we)=>{"use strict";we(4124),we(9056)},9056:()=>{
/*! (C) Andrea Giammarchi - @WebReflection - ISC Style License */
!function(V,$){"use strict";function we(){var e=He.splice(0,He.length);for(re=0;e.length;)e.shift().call(null,e.shift())}function Ce(e,t){for(var n=0,a=e.length;n<a;n++)Be(e[n],t)}function Pe(e){return function(t){Y(t)&&(Be(t,e),ae.length&&Ce(t.querySelectorAll(ae),e))}}function Ae(e){var t=H.call(e,"is"),n=e.nodeName.toUpperCase(),a=ge.call(Me,t?ct+t.toUpperCase():_e+n);return t&&-1<a&&!yt(n,t)?-1:a}function yt(e,t){return-1<ae.indexOf(e+'[is="'+t+'"]')}function vt(e){var t=e.currentTarget,n=e.attrChange,a=e.attrName,f=e.target,d=e[ot]||2,m=e[st]||3;!E||f&&f!==t||!t[ke]||"style"===a||e.prevValue===e.newValue&&(""!==e.newValue||n!==d&&n!==m)||t[ke](a,n===d?null:e.prevValue,n===m?null:e.newValue)}function et(e){var t=Pe(e);return function(n){He.push(t,n.target),re&&clearTimeout(re),re=setTimeout(we,1)}}function Ue(e){Ke&&(Ke=!1,e.currentTarget.removeEventListener(Lt,Ue)),ae.length&&Ce((e.target||x).querySelectorAll(ae),e.detail===Ee?Ee:me),W&&function ve(){for(var e,t=0,n=k.length;t<n;t++)e=k[t],xe.contains(e)||(n--,k.splice(t--,1),Be(e,Ee))}()}function ut(e,t){var n=this;Z.call(n,e,t),We.call(n,{target:n})}function tt(e,t,n){var a=t.apply(e,n),f=Ae(a);return-1<f&&oe(a,Ve[f]),n.pop()&&ae.length&&function Se(e){for(var t,n=0,a=e.length;n<a;n++)t=e[n],oe(t,Ve[Ae(t)])}(a.querySelectorAll(ae)),a}function de(e,t){te(e,t),ze?ze.observe(e,w):(ye&&(e.setAttribute=ut,e[ne]=je(e),e[Te](it,We)),e[Te](De,vt)),e[Fe]&&E&&(e.created=!0,e[Fe](),e.created=!1)}function Ie(e){throw new Error("A "+e+" type is already registered")}function Be(e,t){var n,a,f=Ae(e);-1<f&&!O.call(e,"TEMPLATE")&&(Xe(e,Ve[f]),f=0,t!==me||e[me]?t!==Ee||e[Ee]||(e[me]=!1,e[Ee]=!0,a="disconnected",f=1):(e[Ee]=!1,e[me]=!0,a="connected",f=1,W&&ge.call(k,e)<0&&k.push(e)),f&&(n=e[t+be]||e[a+be])&&n.call(e))}function Ze(){}function G(e,t,n){var a=n&&n[pe]||"",f=t.prototype,d=le(f),m=t.observedAttributes||Et,y={prototype:d};K(d,Fe,{value:function(){if(R)R=!1;else if(!this[T]){this[T]=!0,new t(this),f[Fe]&&f[Fe].call(this);var p=P[q.get(t)];(!v||p.create.length>1)&&ee(this)}}}),K(d,ke,{value:function(p){-1<ge.call(m,p)&&f[ke]&&f[ke].apply(this,arguments)}}),f[ht]&&K(d,he,{value:f[ht]}),f[dt]&&K(d,Mt,{value:f[dt]}),a&&(y[pe]=a),e=e.toUpperCase(),P[e]={constructor:t,create:a?[a,U(e)]:[e]},q.set(t,e),x[ce](e.toLowerCase(),y),ft(e),I[e].r()}function Ge(e){var t=P[e.toUpperCase()];return t&&t.constructor}function Oe(e){return"string"==typeof e?e:e&&e.is||""}function ee(e){for(var t,n=e[ke],a=n?e.attributes:Et,f=a.length;f--;)t=a[f],n.call(e,t.name||t.nodeName,null,t.value||t.nodeValue)}function ft(e){return(e=e.toUpperCase())in I||(I[e]={},I[e].p=new b(function(t){I[e].r=t})),I[e].p}function nt(){g&&delete V.customElements,Ne(V,"customElements",{configurable:!0,value:new Ze}),Ne(V,"CustomElementRegistry",{configurable:!0,value:Ze});for(var e=kt.get(/^HTML[A-Z]*[a-z]/),t=e.length;t--;function(n){var a=V[n];if(a){V[n]=function(f){var d,m;return f||(f=this),f[T]||(R=!0,d=P[q.get(f.constructor)],(f=(m=v&&1===d.create.length)?Reflect.construct(a,Et,d.constructor):x.createElement.apply(x,d.create))[T]=!0,R=!1,m||ee(f)),f},V[n].prototype=a.prototype;try{a.prototype.constructor=V[n]}catch{!0,Ne(a,T,{value:V[n]})}}}(e[t]));x.createElement=function(n,a){var f=Oe(a);return f?c.call(this,n,U(f)):c.call(this,n)},B||(Re=!0,x[ce](""))}var x=V.document,ie=V.Object,kt=function(e){var t,n,a,f,d=/^[A-Z]+[a-z]/,y=function(j,F){(F=F.toLowerCase())in p||(p[j]=(p[j]||[]).concat(F),p[F]=p[F.toUpperCase()]=j)},p=(ie.create||ie)(null),D={};for(n in e)for(f in e[n])for(a=e[n][f],p[f]=a,t=0;t<a.length;t++)p[a[t].toLowerCase()]=p[a[t].toUpperCase()]=f;return D.get=function(j){return"string"==typeof j?p[j]||(d.test(j)?[]:""):function(j){var F,Q=[];for(F in p)j.test(F)&&Q.push(F);return Q}(j)},D.set=function(j,F){return d.test(j)?y(j,F):y(F,j),D},D}({collections:{HTMLAllCollection:["all"],HTMLCollection:["forms"],HTMLFormControlsCollection:["elements"],HTMLOptionsCollection:["options"]},elements:{Element:["element"],HTMLAnchorElement:["a"],HTMLAppletElement:["applet"],HTMLAreaElement:["area"],HTMLAttachmentElement:["attachment"],HTMLAudioElement:["audio"],HTMLBRElement:["br"],HTMLBaseElement:["base"],HTMLBodyElement:["body"],HTMLButtonElement:["button"],HTMLCanvasElement:["canvas"],HTMLContentElement:["content"],HTMLDListElement:["dl"],HTMLDataElement:["data"],HTMLDataListElement:["datalist"],HTMLDetailsElement:["details"],HTMLDialogElement:["dialog"],HTMLDirectoryElement:["dir"],HTMLDivElement:["div"],HTMLDocument:["document"],HTMLElement:["element","abbr","address","article","aside","b","bdi","bdo","cite","code","command","dd","dfn","dt","em","figcaption","figure","footer","header","i","kbd","mark","nav","noscript","rp","rt","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr"],HTMLEmbedElement:["embed"],HTMLFieldSetElement:["fieldset"],HTMLFontElement:["font"],HTMLFormElement:["form"],HTMLFrameElement:["frame"],HTMLFrameSetElement:["frameset"],HTMLHRElement:["hr"],HTMLHeadElement:["head"],HTMLHeadingElement:["h1","h2","h3","h4","h5","h6"],HTMLHtmlElement:["html"],HTMLIFrameElement:["iframe"],HTMLImageElement:["img"],HTMLInputElement:["input"],HTMLKeygenElement:["keygen"],HTMLLIElement:["li"],HTMLLabelElement:["label"],HTMLLegendElement:["legend"],HTMLLinkElement:["link"],HTMLMapElement:["map"],HTMLMarqueeElement:["marquee"],HTMLMediaElement:["media"],HTMLMenuElement:["menu"],HTMLMenuItemElement:["menuitem"],HTMLMetaElement:["meta"],HTMLMeterElement:["meter"],HTMLModElement:["del","ins"],HTMLOListElement:["ol"],HTMLObjectElement:["object"],HTMLOptGroupElement:["optgroup"],HTMLOptionElement:["option"],HTMLOutputElement:["output"],HTMLParagraphElement:["p"],HTMLParamElement:["param"],HTMLPictureElement:["picture"],HTMLPreElement:["pre"],HTMLProgressElement:["progress"],HTMLQuoteElement:["blockquote","q","quote"],HTMLScriptElement:["script"],HTMLSelectElement:["select"],HTMLShadowElement:["shadow"],HTMLSlotElement:["slot"],HTMLSourceElement:["source"],HTMLSpanElement:["span"],HTMLStyleElement:["style"],HTMLTableCaptionElement:["caption"],HTMLTableCellElement:["td","th"],HTMLTableColElement:["col","colgroup"],HTMLTableElement:["table"],HTMLTableRowElement:["tr"],HTMLTableSectionElement:["thead","tbody","tfoot"],HTMLTemplateElement:["template"],HTMLTextAreaElement:["textarea"],HTMLTimeElement:["time"],HTMLTitleElement:["title"],HTMLTrackElement:["track"],HTMLUListElement:["ul"],HTMLUnknownElement:["unknown","vhgroupv","vkeygen"],HTMLVideoElement:["video"]},nodes:{Attr:["node"],Audio:["audio"],CDATASection:["node"],CharacterData:["node"],Comment:["#comment"],Document:["#document"],DocumentFragment:["#document-fragment"],DocumentType:["node"],HTMLDocument:["#document"],Image:["img"],Option:["option"],ProcessingInstruction:["node"],ShadowRoot:["#shadow-root"],Text:["#text"],XMLDocument:["xml"]}});"object"!=typeof $&&($={type:$||"auto"});var He,We,qe,je,ze,rt,Xe,oe,fe,e,t,n,a,f,ce="registerElement",bt=1e5*V.Math.random()|0,ne="__"+ce+bt,Te="addEventListener",me="attached",be="Callback",Ee="detached",pe="extends",ke="attributeChanged"+be,he=me+be,ht="connected"+be,dt="disconnected"+be,Fe="created"+be,Mt=Ee+be,ot="ADDITION",st="REMOVAL",De="DOMAttrModified",Lt="DOMContentLoaded",it="DOMSubtreeModified",_e="<",ct="=",Ct=/^[A-Z][._A-Z0-9]*-[-._A-Z0-9]*$/,Pt=["ANNOTATION-XML","COLOR-PROFILE","FONT-FACE","FONT-FACE-SRC","FONT-FACE-URI","FONT-FACE-FORMAT","FONT-FACE-NAME","MISSING-GLYPH"],Me=[],Ve=[],ae="",xe=x.documentElement,ge=Me.indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},mt=ie.prototype,Tt=mt.hasOwnProperty,at=mt.isPrototypeOf,Ne=ie.defineProperty,Et=[],Ye=ie.getOwnPropertyDescriptor,r=ie.getOwnPropertyNames,s=ie.getPrototypeOf,h=ie.setPrototypeOf,o=!!ie.__proto__,T="__dreCEv1",g=V.customElements,v=!/^force/.test($.type)&&!!(g&&g.define&&g.get&&g.whenDefined),M=ie.create||ie,N=V.Map||function(){var e,t=[],n=[];return{get:function(a){return n[ge.call(t,a)]},set:function(a,f){(e=ge.call(t,a))<0?n[t.push(a)-1]=f:n[e]=f}}},b=V.Promise||function(e){function t(d){for(a=!0;n.length;)n.shift()(d)}var n=[],a=!1,f={catch:function(){return f},then:function(d){return n.push(d),a&&setTimeout(t,1),f}};return e(t),f},R=!1,P=M(null),I=M(null),q=new N,U=function(e){return e.toLowerCase()},le=ie.create||function e(t){return t?(e.prototype=t,new e):this},te=h||(o?function(e,t){return e.__proto__=t,e}:r&&Ye?function(){function e(t,n){for(var a,f=r(n),d=0,m=f.length;d<m;d++)a=f[d],Tt.call(t,a)||Ne(t,a,Ye(n,a))}return function(t,n){do{e(t,n)}while((n=s(n))&&!at.call(n,t));return t}}():function(e,t){for(var n in t)e[n]=t[n];return e}),L=V.MutationObserver||V.WebKitMutationObserver,_=V.HTMLAnchorElement,S=(V.HTMLElement||V.Element||V.Node).prototype,W=!at.call(S,xe),K=W?function(e,t,n){return e[t]=n.value,e}:Ne,Y=W?function(e){return 1===e.nodeType}:function(e){return at.call(S,e)},k=W&&[],z=S.attachShadow,A=S.cloneNode,O=S.closest||function(e){for(var t=this;t&&t.nodeName!==e;)t=t.parentNode;return t},C=S.dispatchEvent,H=S.getAttribute,se=S.hasAttribute,J=S.removeAttribute,Z=S.setAttribute,i=x.createElement,l=x.importNode,c=i,w=L&&{attributes:!0,characterData:!0,attributeOldValue:!0},X=L||function(e){ye=!1,xe.removeEventListener(De,X)},re=0,B=ce in x&&!/^force-all/.test($.type),$e=!0,Re=!1,ye=!0,Ke=!0,E=!0;if(L&&((fe=x.createElement("div")).innerHTML="<div><div></div></div>",new L(function(e,t){if(e[0]&&"childList"==e[0].type&&!e[0].removedNodes[0].childNodes.length){var n=(fe=Ye(S,"innerHTML"))&&fe.set;n&&Ne(S,"innerHTML",{set:function(a){for(;this.lastChild;)this.removeChild(this.lastChild);n.call(this,a)}})}t.disconnect(),fe=null}).observe(fe,{childList:!0,subtree:!0}),fe.innerHTML=""),B||(h||o?(Xe=function(e,t){at.call(t,e)||de(e,t)},oe=de):(Xe=function(e,t){e[ne]||(e[ne]=ie(!0),de(e,t))},oe=Xe),W?(ye=!1,e=Ye(S,Te),t=e.value,n=function(d){var m=new CustomEvent(De,{bubbles:!0});m.attrName=d,m.prevValue=H.call(this,d),m.newValue=null,m[st]=m.attrChange=2,J.call(this,d),C.call(this,m)},a=function(d,m){var y=se.call(this,d),p=y&&H.call(this,d),D=new CustomEvent(De,{bubbles:!0});Z.call(this,d,m),D.attrName=d,D.prevValue=y?p:null,D.newValue=m,y?D.MODIFICATION=D.attrChange=1:D[ot]=D.attrChange=0,C.call(this,D)},f=function(d){var m,y=d.currentTarget,p=y[ne],D=d.propertyName;p.hasOwnProperty(D)&&(p=p[D],(m=new CustomEvent(De,{bubbles:!0})).attrName=p.name,m.prevValue=p.value||null,m.newValue=p.value=y[D]||null,null==m.prevValue?m[ot]=m.attrChange=0:m.MODIFICATION=m.attrChange=1,C.call(y,m))},e.value=function(d,m,y){d===De&&this[ke]&&this.setAttribute!==a&&(this[ne]={className:{name:"class",value:this.className}},this.setAttribute=a,this.removeAttribute=n,t.call(this,"propertychange",f)),t.call(this,d,m,y)},Ne(S,Te,e)):L||(xe[Te](De,X),xe.setAttribute(ne,1),xe.removeAttribute(ne),ye&&(We=function(e){var t,n,a,f=this;if(f===e.target){for(a in t=f[ne],f[ne]=n=je(f),n){if(!(a in t))return qe(0,f,a,t[a],n[a],ot);if(n[a]!==t[a])return qe(1,f,a,t[a],n[a],"MODIFICATION")}for(a in t)if(!(a in n))return qe(2,f,a,t[a],n[a],st)}},qe=function(e,t,n,a,f,d){var m={attrChange:e,currentTarget:t,attrName:n,prevValue:a,newValue:f};m[d]=e,vt(m)},je=function(e){for(var t,n,a={},f=e.attributes,d=0,m=f.length;d<m;d++)"setAttribute"!==(n=(t=f[d]).name)&&(a[n]=t.value);return a})),x[ce]=function(e,t){if(n=e.toUpperCase(),$e&&($e=!1,L?(ze=function(p,D){function j(F,Q){for(var ue=0,Je=F.length;ue<Je;Q(F[ue++]));}return new L(function(F){for(var Q,ue,Je,pt=0,_t=F.length;pt<_t;pt++)"childList"===(Q=F[pt]).type?(j(Q.addedNodes,p),j(Q.removedNodes,D)):(ue=Q.target,E&&ue[ke]&&"style"!==Q.attributeName&&(Je=H.call(ue,Q.attributeName))!==Q.oldValue&&ue[ke](Q.attributeName,Q.oldValue,Je))})}(Pe(me),Pe(Ee)),(rt=function(p){return ze.observe(p,{childList:!0,subtree:!0}),p})(x),z&&(S.attachShadow=function(){return rt(z.apply(this,arguments))})):(He=[],x[Te]("DOMNodeInserted",et(me)),x[Te]("DOMNodeRemoved",et(Ee))),x[Te](Lt,Ue),x[Te]("readystatechange",Ue),x.importNode=function(p,D){switch(p.nodeType){case 1:return tt(x,l,[p,!!D]);case 11:for(var j=x.createDocumentFragment(),F=p.childNodes,Q=F.length,ue=0;ue<Q;ue++)j.appendChild(x.importNode(F[ue],!!D));return j;default:return A.call(p,!!D)}},S.cloneNode=function(p){return tt(this,A,[!!p])}),Re)return Re=!1;if(-2<ge.call(Me,ct+n)+ge.call(Me,_e+n)&&Ie(e),!Ct.test(n)||-1<ge.call(Pt,n))throw new Error("The type "+e+" is invalid");var n,a,f=function(){return m?x.createElement(y,n):x.createElement(y)},d=t||mt,m=Tt.call(d,pe),y=m?t[pe].toUpperCase():n;return m&&-1<ge.call(Me,_e+y)&&Ie(y),a=Me.push((m?ct:_e)+n)-1,ae=ae.concat(ae.length?",":"",m?y+'[is="'+e.toLowerCase()+'"]':y),f.prototype=Ve[a]=Tt.call(d,"prototype")?d.prototype:le(S),ae.length&&Ce(x.querySelectorAll(ae),me),f},x.createElement=c=function(e,t){var n=Oe(t),a=n?i.call(x,e,U(n)):i.call(x,e),f=""+e,d=ge.call(Me,(n?ct:_e)+(n||f).toUpperCase()),m=-1<d;return n&&(a.setAttribute("is",n=n.toLowerCase()),m&&(m=yt(f.toUpperCase(),n))),E=!x.createElement.innerHTMLHelper,m&&oe(a,Ve[d]),a}),addEventListener("beforeunload",function(){delete x.createElement,delete x.importNode,delete x[ce]},!1),Ze.prototype={constructor:Ze,define:v?function(e,t,n){if(n)G(e,t,n);else{var a=e.toUpperCase();P[a]={constructor:t,create:[a]},q.set(t,a),g.define(e,t)}}:G,get:v?function(e){return g.get(e)||Ge(e)}:Ge,whenDefined:v?function(e){return b.race([g.whenDefined(e),ft(e)])}:ft},!g||/^force/.test($.type))nt();else if(!$.noBuiltIn)try{!function(e,t,n){var a=new RegExp("^<a\\s+is=('|\")"+n+"\\1></a>$");if(t[pe]="a",e.prototype=le(_.prototype),e.prototype.constructor=e,V.customElements.define(n,e,t),!a.test(x.createElement("a",{is:n}).outerHTML)||!a.test((new e).outerHTML))throw t}(function e(){return Reflect.construct(_,[],e)},{},"document-register-element-a"+bt)}catch{nt()}if(!$.noBuiltIn)try{if(i.call(x,"a","a").outerHTML.indexOf("is")<0)throw{}}catch{U=function(t){return{is:t.toLowerCase()}}}}(window)},4124:()=>{"use strict";
/**
* @license Angular v<unknown>
* (c) 2010-2024 Google LLC. https://angular.io/
* License: MIT
*/const V=globalThis;function $(r){return(V.__Zone_symbol_prefix||"__zone_symbol__")+r}const Se=Object.getOwnPropertyDescriptor,Pe=Object.defineProperty,Ae=Object.getPrototypeOf,yt=Object.create,vt=Array.prototype.slice,et="addEventListener",Ue="removeEventListener",ut=$(et),tt=$(Ue),de="true",ve="false",Ie=$("");function Be(r,s){return Zone.current.wrap(r,s)}function Ze(r,s,h,o,u){return Zone.current.scheduleMacroTask(r,s,h,o,u)}const G=$,Ge=typeof window<"u",Oe=Ge?window:void 0,ee=Ge&&Oe||globalThis,ft="removeAttribute";function nt(r,s){for(let h=r.length-1;h>=0;h--)"function"==typeof r[h]&&(r[h]=Be(r[h],s+"_"+h));return r}function ie(r){return!r||!1!==r.writable&&!("function"==typeof r.get&&typeof r.set>"u")}const kt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,He=!("nw"in ee)&&typeof ee.process<"u"&&"[object process]"==={}.toString.call(ee.process),We=!He&&!kt&&!(!Ge||!Oe.HTMLElement),qe=typeof ee.process<"u"&&"[object process]"==={}.toString.call(ee.process)&&!kt&&!(!Ge||!Oe.HTMLElement),je={},ze=function(r){if(!(r=r||ee.event))return;let s=je[r.type];s||(s=je[r.type]=G("ON_PROPERTY"+r.type));const h=this||r.target||ee,o=h[s];let u;if(We&&h===Oe&&"error"===r.type){const T=r;u=o&&o.call(this,T.message,T.filename,T.lineno,T.colno,T.error),!0===u&&r.preventDefault()}else u=o&&o.apply(this,arguments),null!=u&&!u&&r.preventDefault();return u};function rt(r,s,h){let o=Se(r,s);if(!o&&h&&Se(h,s)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const u=G("on"+s+"patched");if(r.hasOwnProperty(u)&&r[u])return;delete o.writable,delete o.value;const T=o.get,g=o.set,v=s.slice(2);let M=je[v];M||(M=je[v]=G("ON_PROPERTY"+v)),o.set=function(N){let b=this;!b&&r===ee&&(b=ee),b&&("function"==typeof b[M]&&b.removeEventListener(v,ze),g&&g.call(b,null),b[M]=N,"function"==typeof N&&b.addEventListener(v,ze,!1))},o.get=function(){let N=this;if(!N&&r===ee&&(N=ee),!N)return null;const b=N[M];if(b)return b;if(T){let R=T.call(this);if(R)return o.set.call(this,R),"function"==typeof N[ft]&&N.removeAttribute(s),R}return null},Pe(r,s,o),r[u]=!0}function Xe(r,s,h){if(s)for(let o=0;o<s.length;o++)rt(r,"on"+s[o],h);else{const o=[];for(const u in r)"on"==u.slice(0,2)&&o.push(u);for(let u=0;u<o.length;u++)rt(r,o[u],h)}}const oe=G("originalInstance");function fe(r){const s=ee[r];if(!s)return;ee[G(r)]=s,ee[r]=function(){const u=nt(arguments,r);switch(u.length){case 0:this[oe]=new s;break;case 1:this[oe]=new s(u[0]);break;case 2:this[oe]=new s(u[0],u[1]);break;case 3:this[oe]=new s(u[0],u[1],u[2]);break;case 4:this[oe]=new s(u[0],u[1],u[2],u[3]);break;default:throw new Error("Arg list too long.")}},ne(ee[r],s);const h=new s(function(){});let o;for(o in h)"XMLHttpRequest"===r&&"responseBlob"===o||function(u){"function"==typeof h[u]?ee[r].prototype[u]=function(){return this[oe][u].apply(this[oe],arguments)}:Pe(ee[r].prototype,u,{set:function(T){"function"==typeof T?(this[oe][u]=Be(T,r+"."+u),ne(this[oe][u],T)):this[oe][u]=T},get:function(){return this[oe][u]}})}(o);for(o in s)"prototype"!==o&&s.hasOwnProperty(o)&&(ee[r][o]=s[o])}function ce(r,s,h){let o=r;for(;o&&!o.hasOwnProperty(s);)o=Ae(o);!o&&r[s]&&(o=r);const u=G(s);let T=null;if(o&&(!(T=o[u])||!o.hasOwnProperty(u))){T=o[u]=o[s];if(ie(o&&Se(o,s))){const v=h(T,u,s);o[s]=function(){return v(this,arguments)},ne(o[s],T)}}return T}function bt(r,s,h){let o=null;function u(T){const g=T.data;return g.args[g.cbIdx]=function(){T.invoke.apply(this,arguments)},o.apply(g.target,g.args),T}o=ce(r,s,T=>function(g,v){const M=h(g,v);return M.cbIdx>=0&&"function"==typeof v[M.cbIdx]?Ze(M.name,v[M.cbIdx],M,u):T.apply(g,v)})}function ne(r,s){r[G("OriginalDelegate")]=s}let Te=!1,me=!1;function Ee(){if(Te)return me;Te=!0;try{const r=Oe.navigator.userAgent;(-1!==r.indexOf("MSIE ")||-1!==r.indexOf("Trident/")||-1!==r.indexOf("Edge/"))&&(me=!0)}catch{}return me}let pe=!1;if(typeof window<"u")try{const r=Object.defineProperty({},"passive",{get:function(){pe=!0}});window.addEventListener("test",r,r),window.removeEventListener("test",r,r)}catch{pe=!1}const ke={useG:!0},he={},ht={},dt=new RegExp("^"+Ie+"(\\w+)(true|false)$"),Fe=G("propagationStopped");function Mt(r,s){const h=(s?s(r):r)+ve,o=(s?s(r):r)+de,u=Ie+h,T=Ie+o;he[r]={},he[r][ve]=u,he[r][de]=T}function ot(r,s,h,o){const u=o&&o.add||et,T=o&&o.rm||Ue,g=o&&o.listeners||"eventListeners",v=o&&o.rmAll||"removeAllListeners",M=G(u),N="."+u+":",b="prependListener",R="."+b+":",P=function(L,_,S){if(L.isRemoved)return;const W=L.callback;let K;"object"==typeof W&&W.handleEvent&&(L.callback=k=>W.handleEvent(k),L.originalDelegate=W);try{L.invoke(L,_,[S])}catch(k){K=k}const Y=L.options;if(Y&&"object"==typeof Y&&Y.once){const k=L.originalDelegate?L.originalDelegate:L.callback;_[T].call(_,S.type,k,Y)}return K};function I(L,_,S){if(!(_=_||r.event))return;const W=L||_.target||r,K=W[he[_.type][S?de:ve]];if(K){const Y=[];if(1===K.length){const k=P(K[0],W,_);k&&Y.push(k)}else{const k=K.slice();for(let z=0;z<k.length&&(!_||!0!==_[Fe]);z++){const A=P(k[z],W,_);A&&Y.push(A)}}if(1===Y.length)throw Y[0];for(let k=0;k<Y.length;k++){const z=Y[k];s.nativeScheduleMicroTask(()=>{throw z})}}}const q=function(L){return I(this,L,!1)},U=function(L){return I(this,L,!0)};function le(L,_){if(!L)return!1;let S=!0;_&&void 0!==_.useG&&(S=_.useG);const W=_&&_.vh;let K=!0;_&&void 0!==_.chkDup&&(K=_.chkDup);let Y=!1;_&&void 0!==_.rt&&(Y=_.rt);let k=L;for(;k&&!k.hasOwnProperty(u);)k=Ae(k);if(!k&&L[u]&&(k=L),!k||k[M])return!1;const z=_&&_.eventNameToString,A={},O=k[M]=k[u],C=k[G(T)]=k[T],H=k[G(g)]=k[g],se=k[G(v)]=k[v];let J;_&&_.prepend&&(J=k[G(_.prepend)]=k[_.prepend]);const re=S?function(e){if(!A.isExisting)return O.call(A.target,A.eventName,A.capture?U:q,A.options)}:function(e){return O.call(A.target,A.eventName,e.invoke,A.options)},B=S?function(e){if(!e.isRemoved){const t=he[e.eventName];let n;t&&(n=t[e.capture?de:ve]);const a=n&&e.target[n];if(a)for(let f=0;f<a.length;f++)if(a[f]===e){a.splice(f,1),e.isRemoved=!0,0===a.length&&(e.allRemoved=!0,e.target[n]=null);break}}if(e.allRemoved)return C.call(e.target,e.eventName,e.capture?U:q,e.options)}:function(e){return C.call(e.target,e.eventName,e.invoke,e.options)},Re=_&&_.diff?_.diff:function(e,t){const n=typeof t;return"function"===n&&e.callback===t||"object"===n&&e.originalDelegate===t},ye=Zone[G("UNPATCHED_EVENTS")],Ke=r[G("PASSIVE_EVENTS")],E=function(e,t,n,a,f=!1,d=!1){return function(){const m=this||r;let y=arguments[0];_&&_.transferEventName&&(y=_.transferEventName(y));let p=arguments[1];if(!p)return e.apply(this,arguments);if(He&&"uncaughtException"===y)return e.apply(this,arguments);let D=!1;if("function"!=typeof p){if(!p.handleEvent)return e.apply(this,arguments);D=!0}if(W&&!W(e,p,m,arguments))return;const j=pe&&!!Ke&&-1!==Ke.indexOf(y),F=function Z(e,t){return!pe&&"object"==typeof e&&e?!!e.capture:pe&&t?"boolean"==typeof e?{capture:e,passive:!0}:e?"object"==typeof e&&!1!==e.passive?{...e,passive:!0}:e:{passive:!0}:e}(arguments[2],j),Q=F&&"object"==typeof F&&F.signal&&"object"==typeof F.signal?F.signal:void 0;if(Q?.aborted)return;if(ye)for(let Qe=0;Qe<ye.length;Qe++)if(y===ye[Qe])return j?e.call(m,y,p,F):e.apply(this,arguments);const ue=!!F&&("boolean"==typeof F||F.capture),Je=!(!F||"object"!=typeof F)&&F.once,pt=Zone.current;let _t=he[y];_t||(Mt(y,z),_t=he[y]);const Ot=_t[ue?de:ve];let wt,lt=m[Ot],Ht=!1;if(lt){if(Ht=!0,K)for(let Qe=0;Qe<lt.length;Qe++)if(Re(lt[Qe],p))return}else lt=m[Ot]=[];const Dt=m.constructor.name,Nt=ht[Dt];Nt&&(wt=Nt[y]),wt||(wt=Dt+t+(z?z(y):y)),A.options=F,Je&&(A.options.once=!1),A.target=m,A.capture=ue,A.eventName=y,A.isExisting=Ht;const gt=S?ke:void 0;gt&&(gt.taskData=A),Q&&(A.options.signal=void 0);const Le=pt.scheduleEventTask(wt,p,gt,n,a);return Q&&(A.options.signal=Q,e.call(Q,"abort",()=>{Le.zone.cancelTask(Le)},{once:!0})),A.target=null,gt&&(gt.taskData=null),Je&&(F.once=!0),!pe&&"boolean"==typeof Le.options||(Le.options=F),Le.target=m,Le.capture=ue,Le.eventName=y,D&&(Le.originalDelegate=p),d?lt.unshift(Le):lt.push(Le),f?m:void 0}};return k[u]=E(O,N,re,B,Y),J&&(k[b]=E(J,R,function(e){return J.call(A.target,A.eventName,e.invoke,A.options)},B,Y,!0)),k[T]=function(){const e=this||r;let t=arguments[0];_&&_.transferEventName&&(t=_.transferEventName(t));const n=arguments[2],a=!!n&&("boolean"==typeof n||n.capture),f=arguments[1];if(!f)return C.apply(this,arguments);if(W&&!W(C,f,e,arguments))return;const d=he[t];let m;d&&(m=d[a?de:ve]);const y=m&&e[m];if(y)for(let p=0;p<y.length;p++){const D=y[p];if(Re(D,f)){if(y.splice(p,1),D.isRemoved=!0,0===y.length&&(D.allRemoved=!0,e[m]=null,!a&&"string"==typeof t)){e[Ie+"ON_PROPERTY"+t]=null}return D.zone.cancelTask(D),Y?e:void 0}}return C.apply(this,arguments)},k[g]=function(){const e=this||r;let t=arguments[0];_&&_.transferEventName&&(t=_.transferEventName(t));const n=[],a=st(e,z?z(t):t);for(let f=0;f<a.length;f++){const d=a[f];let m=d.originalDelegate?d.originalDelegate:d.callback;n.push(m)}return n},k[v]=function(){const e=this||r;let t=arguments[0];if(t){_&&_.transferEventName&&(t=_.transferEventName(t));const n=he[t];if(n){const a=n[ve],f=n[de],d=e[a],m=e[f];if(d){const y=d.slice();for(let p=0;p<y.length;p++){const D=y[p];let j=D.originalDelegate?D.originalDelegate:D.callback;this[T].call(this,t,j,D.options)}}if(m){const y=m.slice();for(let p=0;p<y.length;p++){const D=y[p];let j=D.originalDelegate?D.originalDelegate:D.callback;this[T].call(this,t,j,D.options)}}}}else{const n=Object.keys(e);for(let a=0;a<n.length;a++){const f=n[a],d=dt.exec(f);let m=d&&d[1];m&&"removeListener"!==m&&this[v].call(this,m)}this[v].call(this,"removeListener")}if(Y)return this},ne(k[u],O),ne(k[T],C),se&&ne(k[v],se),H&&ne(k[g],H),!0}let te=[];for(let L=0;L<h.length;L++)te[L]=le(h[L],o);return te}function st(r,s){if(!s){const T=[];for(let g in r){const v=dt.exec(g);let M=v&&v[1];if(M&&(!s||M===s)){const N=r[g];if(N)for(let b=0;b<N.length;b++)T.push(N[b])}}return T}let h=he[s];h||(Mt(s),h=he[s]);const o=r[h[ve]],u=r[h[de]];return o?u?o.concat(u):o.slice():u?u.slice():[]}function De(r,s){const h=r.Event;h&&h.prototype&&s.patchMethod(h.prototype,"stopImmediatePropagation",o=>function(u,T){u[Fe]=!0,o&&o.apply(u,T)})}const it=G("zoneTask");function _e(r,s,h,o){let u=null,T=null;h+=o;const g={};function v(N){const b=N.data;return b.args[0]=function(){return N.invoke.apply(this,arguments)},b.handleId=u.apply(r,b.args),N}function M(N){return T.call(r,N.data.handleId)}u=ce(r,s+=o,N=>function(b,R){if("function"==typeof R[0]){const P={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?R[1]||0:void 0,args:R},I=R[0];R[0]=function(){try{return I.apply(this,arguments)}finally{P.isPeriodic||("number"==typeof P.handleId?delete g[P.handleId]:P.handleId&&(P.handleId[it]=null))}};const q=Ze(s,R[0],P,v,M);if(!q)return q;const U=q.data.handleId;return"number"==typeof U?g[U]=q:U&&(U[it]=q),U&&U.ref&&U.unref&&"function"==typeof U.ref&&"function"==typeof U.unref&&(q.ref=U.ref.bind(U),q.unref=U.unref.bind(U)),"number"==typeof U||U?U:q}return N.apply(r,R)}),T=ce(r,h,N=>function(b,R){const P=R[0];let I;"number"==typeof P?I=g[P]:(I=P&&P[it],I||(I=P)),I&&"string"==typeof I.type?"notScheduled"!==I.state&&(I.cancelFn&&I.data.isPeriodic||0===I.runCount)&&("number"==typeof P?delete g[P]:P&&(P[it]=null),I.zone.cancelTask(I)):N.apply(r,R)})}function Me(r,s,h){if(!h||0===h.length)return s;const o=h.filter(T=>T.target===r);if(!o||0===o.length)return s;const u=o[0].ignoreProperties;return s.filter(T=>-1===u.indexOf(T))}function Ve(r,s,h,o){if(!r)return;Xe(r,Me(r,s,h),o)}function ae(r){return Object.getOwnPropertyNames(r).filter(s=>s.startsWith("on")&&s.length>2).map(s=>s.substring(2))}function xe(r,s){if(He&&!qe||Zone[r.symbol("patchEvents")])return;const h=s.__Zone_ignore_on_properties;let o=[];if(We){const u=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const T=function be(){try{const r=Oe.navigator.userAgent;if(-1!==r.indexOf("MSIE ")||-1!==r.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:u,ignoreProperties:["error"]}]:[];Ve(u,ae(u),h&&h.concat(T),Ae(u))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let u=0;u<o.length;u++){const T=s[o[u]];T&&T.prototype&&Ve(T.prototype,ae(T.prototype),h)}}function mt(r){r.__load_patch("ZoneAwarePromise",(s,h,o)=>{const u=Object.getOwnPropertyDescriptor,T=Object.defineProperty;const v=o.symbol,M=[],N=!1!==s[v("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],b=v("Promise"),R=v("then"),P="__creationTrace__";o.onUnhandledError=E=>{if(o.showUncaughtError()){const e=E&&E.rejection;e?console.error("Unhandled Promise rejection:",e instanceof Error?e.message:e,"; Zone:",E.zone.name,"; Task:",E.task&&E.task.source,"; Value:",e,e instanceof Error?e.stack:void 0):console.error(E)}},o.microtaskDrainDone=()=>{for(;M.length;){const E=M.shift();try{E.zone.runGuarded(()=>{throw E.throwOriginal?E.rejection:E})}catch(e){q(e)}}};const I=v("unhandledPromiseRejectionHandler");function q(E){o.onUnhandledError(E);try{const e=h[I];"function"==typeof e&&e.call(this,E)}catch{}}function U(E){return E&&E.then}function le(E){return E}function te(E){return B.reject(E)}const L=v("state"),_=v("value"),S=v("finally"),W=v("parentPromiseValue"),K=v("parentPromiseState"),Y="Promise.then",k=null,z=!0,A=!1,O=0;function C(E,e){return t=>{try{Z(E,e,t)}catch(n){Z(E,!1,n)}}}const H=function(){let E=!1;return function(t){return function(){E||(E=!0,t.apply(null,arguments))}}},se="Promise resolved with itself",J=v("currentTaskTrace");function Z(E,e,t){const n=H();if(E===t)throw new TypeError(se);if(E[L]===k){let a=null;try{("object"==typeof t||"function"==typeof t)&&(a=t&&t.then)}catch(f){return n(()=>{Z(E,!1,f)})(),E}if(e!==A&&t instanceof B&&t.hasOwnProperty(L)&&t.hasOwnProperty(_)&&t[L]!==k)l(t),Z(E,t[L],t[_]);else if(e!==A&&"function"==typeof a)try{a.call(t,n(C(E,e)),n(C(E,!1)))}catch(f){n(()=>{Z(E,!1,f)})()}else{E[L]=e;const f=E[_];if(E[_]=t,E[S]===S&&e===z&&(E[L]=E[K],E[_]=E[W]),e===A&&t instanceof Error){const d=h.currentTask&&h.currentTask.data&&h.currentTask.data[P];d&&T(t,J,{configurable:!0,enumerable:!1,writable:!0,value:d})}for(let d=0;d<f.length;)c(E,f[d++],f[d++],f[d++],f[d++]);if(0==f.length&&e==A){E[L]=O;let d=t;try{throw new Error("Uncaught (in promise): "+function g(E){if(E&&E.toString===Object.prototype.toString)return(E.constructor&&E.constructor.name||"")+": "+JSON.stringify(E);return E?E.toString():Object.prototype.toString.call(E)}(t)+(t&&t.stack?"\n"+t.stack:""))}catch(m){d=m}N&&(d.throwOriginal=!0),d.rejection=t,d.promise=E,d.zone=h.current,d.task=h.currentTask,M.push(d),o.scheduleMicroTask()}}}return E}const i=v("rejectionHandledHandler");function l(E){if(E[L]===O){try{const e=h[i];e&&"function"==typeof e&&e.call(this,{rejection:E[_],promise:E})}catch{}E[L]=A;for(let e=0;e<M.length;e++)E===M[e].promise&&M.splice(e,1)}}function c(E,e,t,n,a){l(E);const f=E[L],d=f?"function"==typeof n?n:le:"function"==typeof a?a:te;e.scheduleMicroTask(Y,()=>{try{const m=E[_],y=!!t&&S===t[S];y&&(t[W]=m,t[K]=f);const p=e.run(d,void 0,y&&d!==te&&d!==le?[]:[m]);Z(t,!0,p)}catch(m){Z(t,!1,m)}},t)}const X=function(){},re=s.AggregateError;class B{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(e){return e instanceof B?e:Z(new this(null),z,e)}static reject(e){return Z(new this(null),A,e)}static withResolvers(){const e={};return e.promise=new B((t,n)=>{e.resolve=t,e.reject=n}),e}static any(e){if(!e||"function"!=typeof e[Symbol.iterator])return Promise.reject(new re([],"All promises were rejected"));const t=[];let n=0;try{for(let d of e)n++,t.push(B.resolve(d))}catch{return Promise.reject(new re([],"All promises were rejected"))}if(0===n)return Promise.reject(new re([],"All promises were rejected"));let a=!1;const f=[];return new B((d,m)=>{for(let y=0;y<t.length;y++)t[y].then(p=>{a||(a=!0,d(p))},p=>{f.push(p),n--,0===n&&(a=!0,m(new re(f,"All promises were rejected")))})})}static race(e){let t,n,a=new this((m,y)=>{t=m,n=y});function f(m){t(m)}function d(m){n(m)}for(let m of e)U(m)||(m=this.resolve(m)),m.then(f,d);return a}static all(e){return B.allWithCallback(e)}static allSettled(e){return(this&&this.prototype instanceof B?this:B).allWithCallback(e,{thenCallback:n=>({status:"fulfilled",value:n}),errorCallback:n=>({status:"rejected",reason:n})})}static allWithCallback(e,t){let n,a,f=new this((p,D)=>{n=p,a=D}),d=2,m=0;const y=[];for(let p of e){U(p)||(p=this.resolve(p));const D=m;try{p.then(j=>{y[D]=t?t.thenCallback(j):j,d--,0===d&&n(y)},j=>{t?(y[D]=t.errorCallback(j),d--,0===d&&n(y)):a(j)})}catch(j){a(j)}d++,m++}return d-=2,0===d&&n(y),f}constructor(e){const t=this;if(!(t instanceof B))throw new Error("Must be an instanceof Promise.");t[L]=k,t[_]=[];try{const n=H();e&&e(n(C(t,z)),n(C(t,A)))}catch(n){Z(t,!1,n)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return B}then(e,t){let n=this.constructor?.[Symbol.species];(!n||"function"!=typeof n)&&(n=this.constructor||B);const a=new n(X),f=h.current;return this[L]==k?this[_].push(f,a,e,t):c(this,f,a,e,t),a}catch(e){return this.then(null,e)}finally(e){let t=this.constructor?.[Symbol.species];(!t||"function"!=typeof t)&&(t=B);const n=new t(X);n[S]=S;const a=h.current;return this[L]==k?this[_].push(a,n,e,e):c(this,a,n,e,e),n}}B.resolve=B.resolve,B.reject=B.reject,B.race=B.race,B.all=B.all;const $e=s[b]=s.Promise;s.Promise=B;const Re=v("thenPatched");function ye(E){const e=E.prototype,t=u(e,"then");if(t&&(!1===t.writable||!t.configurable))return;const n=e.then;e[R]=n,E.prototype.then=function(a,f){return new B((m,y)=>{n.call(this,m,y)}).then(a,f)},E[Re]=!0}return o.patchThen=ye,$e&&(ye($e),ce(s,"fetch",E=>function Ke(E){return function(e,t){let n=E.apply(e,t);if(n instanceof B)return n;let a=n.constructor;return a[Re]||ye(a),n}}(E))),Promise[h.__symbol__("uncaughtPromiseErrors")]=M,B})}function at(r,s,h,o,u){const T=Zone.__symbol__(o);if(s[T])return;const g=s[T]=s[o];s[o]=function(v,M,N){return M&&M.prototype&&u.forEach(function(b){const R=`${h}.${o}::`+b,P=M.prototype;try{if(P.hasOwnProperty(b)){const I=r.ObjectGetOwnPropertyDescriptor(P,b);I&&I.value?(I.value=r.wrapWithCurrentZone(I.value,R),r._redefineProperty(M.prototype,b,I)):P[b]&&(P[b]=r.wrapWithCurrentZone(P[b],R))}else P[b]&&(P[b]=r.wrapWithCurrentZone(P[b],R))}catch{}}),g.call(s,v,M,N)},r.attachOriginToPatched(s[o],g)}const Ye=function Ce(){const r=globalThis,s=!0===r[$("forceDuplicateZoneCheck")];if(r.Zone&&(s||"function"!=typeof r.Zone.__symbol__))throw new Error("Zone already loaded.");return r.Zone??=function we(){const r=V.performance;function s(Z){r&&r.mark&&r.mark(Z)}function h(Z,i){r&&r.measure&&r.measure(Z,i)}s("Zone");class o{static#e=this.__symbol__=$;static assertZonePatched(){if(V.Promise!==A.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 i=o.current;for(;i.parent;)i=i.parent;return i}static get current(){return C.zone}static get currentTask(){return H}static __load_patch(i,l,c=!1){if(A.hasOwnProperty(i)){const w=!0===V[$("forceDuplicateZoneCheck")];if(!c&&w)throw Error("Already loaded patch: "+i)}else if(!V["__Zone_disable_"+i]){const w="Zone:"+i;s(w),A[i]=l(V,o,O),h(w,w)}}get parent(){return this._parent}get name(){return this._name}constructor(i,l){this._parent=i,this._name=l?l.name||"unnamed":"<root>",this._properties=l&&l.properties||{},this._zoneDelegate=new T(this,this._parent&&this._parent._zoneDelegate,l)}get(i){const l=this.getZoneWith(i);if(l)return l._properties[i]}getZoneWith(i){let l=this;for(;l;){if(l._properties.hasOwnProperty(i))return l;l=l._parent}return null}fork(i){if(!i)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,i)}wrap(i,l){if("function"!=typeof i)throw new Error("Expecting function got: "+i);const c=this._zoneDelegate.intercept(this,i,l),w=this;return function(){return w.runGuarded(c,this,arguments,l)}}run(i,l,c,w){C={parent:C,zone:this};try{return this._zoneDelegate.invoke(this,i,l,c,w)}finally{C=C.parent}}runGuarded(i,l=null,c,w){C={parent:C,zone:this};try{try{return this._zoneDelegate.invoke(this,i,l,c,w)}catch(X){if(this._zoneDelegate.handleError(this,X))throw X}}finally{C=C.parent}}runTask(i,l,c){if(i.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(i.zone||le).name+"; Execution: "+this.name+")");if(i.state===te&&(i.type===z||i.type===k))return;const w=i.state!=S;w&&i._transitionTo(S,_),i.runCount++;const X=H;H=i,C={parent:C,zone:this};try{i.type==k&&i.data&&!i.data.isPeriodic&&(i.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,i,l,c)}catch(re){if(this._zoneDelegate.handleError(this,re))throw re}}finally{i.state!==te&&i.state!==K&&(i.type==z||i.data&&i.data.isPeriodic?w&&i._transitionTo(_,S):(i.runCount=0,this._updateTaskCount(i,-1),w&&i._transitionTo(te,S,te))),C=C.parent,H=X}}scheduleTask(i){if(i.zone&&i.zone!==this){let c=this;for(;c;){if(c===i.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${i.zone.name}`);c=c.parent}}i._transitionTo(L,te);const l=[];i._zoneDelegates=l,i._zone=this;try{i=this._zoneDelegate.scheduleTask(this,i)}catch(c){throw i._transitionTo(K,L,te),this._zoneDelegate.handleError(this,c),c}return i._zoneDelegates===l&&this._updateTaskCount(i,1),i.state==L&&i._transitionTo(_,L),i}scheduleMicroTask(i,l,c,w){return this.scheduleTask(new g(Y,i,l,c,w,void 0))}scheduleMacroTask(i,l,c,w,X){return this.scheduleTask(new g(k,i,l,c,w,X))}scheduleEventTask(i,l,c,w,X){return this.scheduleTask(new g(z,i,l,c,w,X))}cancelTask(i){if(i.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(i.zone||le).name+"; Execution: "+this.name+")");if(i.state===_||i.state===S){i._transitionTo(W,_,S);try{this._zoneDelegate.cancelTask(this,i)}catch(l){throw i._transitionTo(K,W),this._zoneDelegate.handleError(this,l),l}return this._updateTaskCount(i,-1),i._transitionTo(te,W),i.runCount=0,i}}_updateTaskCount(i,l){const c=i._zoneDelegates;-1==l&&(i._zoneDelegates=null);for(let w=0;w<c.length;w++)c[w]._updateTaskCount(i.type,l)}}const u={name:"",onHasTask:(Z,i,l,c)=>Z.hasTask(l,c),onScheduleTask:(Z,i,l,c)=>Z.scheduleTask(l,c),onInvokeTask:(Z,i,l,c,w,X)=>Z.invokeTask(l,c,w,X),onCancelTask:(Z,i,l,c)=>Z.cancelTask(l,c)};class T{get zone(){return this._zone}constructor(i,l,c){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this._zone=i,this._parentDelegate=l,this._forkZS=c&&(c&&c.onFork?c:l._forkZS),this._forkDlgt=c&&(c.onFork?l:l._forkDlgt),this._forkCurrZone=c&&(c.onFork?this._zone:l._forkCurrZone),this._interceptZS=c&&(c.onIntercept?c:l._interceptZS),this._interceptDlgt=c&&(c.onIntercept?l:l._interceptDlgt),this._interceptCurrZone=c&&(c.onIntercept?this._zone:l._interceptCurrZone),this._invokeZS=c&&(c.onInvoke?c:l._invokeZS),this._invokeDlgt=c&&(c.onInvoke?l:l._invokeDlgt),this._invokeCurrZone=c&&(c.onInvoke?this._zone:l._invokeCurrZone),this._handleErrorZS=c&&(c.onHandleError?c:l._handleErrorZS),this._handleErrorDlgt=c&&(c.onHandleError?l:l._handleErrorDlgt),this._handleErrorCurrZone=c&&(c.onHandleError?this._zone:l._handleErrorCurrZone),this._scheduleTaskZS=c&&(c.onScheduleTask?c:l._scheduleTaskZS),this._scheduleTaskDlgt=c&&(c.onScheduleTask?l:l._scheduleTaskDlgt),this._scheduleTaskCurrZone=c&&(c.onScheduleTask?this._zone:l._scheduleTaskCurrZone),this._invokeTaskZS=c&&(c.onInvokeTask?c:l._invokeTaskZS),this._invokeTaskDlgt=c&&(c.onInvokeTask?l:l._invokeTaskDlgt),this._invokeTaskCurrZone=c&&(c.onInvokeTask?this._zone:l._invokeTaskCurrZone),this._cancelTaskZS=c&&(c.onCancelTask?c:l._cancelTaskZS),this._cancelTaskDlgt=c&&(c.onCancelTask?l:l._cancelTaskDlgt),this._cancelTaskCurrZone=c&&(c.onCancelTask?this._zone:l._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const w=c&&c.onHasTask,X=l&&l._hasTaskZS;(w||X)&&(this._hasTaskZS=w?c:u,this._hasTaskDlgt=l,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,c.onScheduleTask||(this._scheduleTaskZS=u,this._scheduleTaskDlgt=l,this._scheduleTaskCurrZone=this._zone),c.onInvokeTask||(this._invokeTaskZS=u,this._invokeTaskDlgt=l,this._invokeTaskCurrZone=this._zone),c.onCancelTask||(this._cancelTaskZS=u,this._cancelTaskDlgt=l,this._cancelTaskCurrZone=this._zone))}fork(i,l){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,i,l):new o(i,l)}intercept(i,l,c){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,i,l,c):l}invoke(i,l,c,w,X){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,i,l,c,w,X):l.apply(c,w)}handleError(i,l){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,i,l)}scheduleTask(i,l){let c=l;if(this._scheduleTaskZS)this._hasTaskZS&&c._zoneDelegates.push(this._hasTaskDlgtOwner),c=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,i,l),c||(c=l);else if(l.scheduleFn)l.scheduleFn(l);else{if(l.type!=Y)throw new Error("Task is missing scheduleFn.");q(l)}return c}invokeTask(i,l,c,w){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,i,l,c,w):l.callback.apply(c,w)}cancelTask(i,l){let c;if(this._cancelTaskZS)c=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,i,l);else{if(!l.cancelFn)throw Error("Task is not cancelable");c=l.cancelFn(l)}return c}hasTask(i,l){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,i,l)}catch(c){this.handleError(i,c)}}_updateTaskCount(i,l){const c=this._taskCounts,w=c[i],X=c[i]=w+l;if(X<0)throw new Error("More tasks executed then were scheduled.");if(0==w||0==X){const re={microTask:c.microTask>0,macroTask:c.macroTask>0,eventTask:c.eventTask>0,change:i};this.hasTask(this._zone,re)}}}class g{constructor(i,l,c,w,X,re){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=i,this.source=l,this.data=w,this.scheduleFn=X,this.cancelFn=re,!c)throw new Error("callback is not defined");this.callback=c;const B=this;i===z&&w&&w.useG?this.invoke=g.invokeTask:this.invoke=function(){return g.invokeTask.call(V,B,this,arguments)}}static invokeTask(i,l,c){i||(i=this),se++;try{return i.runCount++,i.zone.runTask(i,l,c)}finally{1==se&&U(),se--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(te,L)}_transitionTo(i,l,c){if(this._state!==l&&this._state!==c)throw new Error(`${this.type} '${this.source}': can not transition to '${i}', expecting state '${l}'${c?" or '"+c+"'":""}, was '${this._state}'.`);this._state=i,i==te&&(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 v=$("setTimeout"),M=$("Promise"),N=$("then");let P,b=[],R=!1;function I(Z){if(P||V[M]&&(P=V[M].resolve(0)),P){let i=P[N];i||(i=P.then),i.call(P,Z)}else V[v](Z,0)}function q(Z){0===se&&0===b.length&&I(U),Z&&b.push(Z)}function U(){if(!R){for(R=!0;b.length;){const Z=b;b=[];for(let i=0;i<Z.length;i++){const l=Z[i];try{l.zone.runTask(l,null,null)}catch(c){O.onUnhandledError(c)}}}O.microtaskDrainDone(),R=!1}}const le={name:"NO ZONE"},te="notScheduled",L="scheduling",_="scheduled",S="running",W="canceling",K="unknown",Y="microTask",k="macroTask",z="eventTask",A={},O={symbol:$,currentZoneFrame:()=>C,onUnhandledError:J,microtaskDrainDone:J,scheduleMicroTask:q,showUncaughtError:()=>!o[$("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:J,patchMethod:()=>J,bindArguments:()=>[],patchThen:()=>J,patchMacroTask:()=>J,patchEventPrototype:()=>J,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>J,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>J,wrapWithCurrentZone:()=>J,filterProperties:()=>[],attachOriginToPatched:()=>J,_redefineProperty:()=>J,patchCallbacks:()=>J,nativeScheduleMicroTask:I};let C={parent:null,zone:new o(null,null)},H=null,se=0;function J(){}return h("Zone","Zone"),o}(),r.Zone}();(function Et(r){mt(r),function Tt(r){r.__load_patch("toString",s=>{const h=Function.prototype.toString,o=G("OriginalDelegate"),u=G("Promise"),T=G("Error"),g=function(){if("function"==typeof this){const b=this[o];if(b)return"function"==typeof b?h.call(b):Object.prototype.toString.call(b);if(this===Promise){const R=s[u];if(R)return h.call(R)}if(this===Error){const R=s[T];if(R)return h.call(R)}}return h.call(this)};g[o]=h,Function.prototype.toString=g;const v=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":v.call(this)}})}(r),function Ne(r){r.__load_patch("util",(s,h,o)=>{const u=ae(s);o.patchOnProperties=Xe,o.patchMethod=ce,o.bindArguments=nt,o.patchMacroTask=bt;const T=h.__symbol__("BLACK_LISTED_EVENTS"),g=h.__symbol__("UNPATCHED_EVENTS");s[g]&&(s[T]=s[g]),s[T]&&(h[T]=h[g]=s[T]),o.patchEventPrototype=De,o.patchEventTarget=ot,o.isIEOrEdge=Ee,o.ObjectDefineProperty=Pe,o.ObjectGetOwnPropertyDescriptor=Se,o.ObjectCreate=yt,o.ArraySlice=vt,o.patchClass=fe,o.wrapWithCurrentZone=Be,o.filterProperties=Me,o.attachOriginToPatched=ne,o._redefineProperty=Object.defineProperty,o.patchCallbacks=at,o.getGlobalObjects=()=>({globalSources:ht,zoneSymbolEventNames:he,eventNames:u,isBrowser:We,isMix:qe,isNode:He,TRUE_STR:de,FALSE_STR:ve,ZONE_SYMBOL_PREFIX:Ie,ADD_EVENT_LISTENER_STR:et,REMOVE_EVENT_LISTENER_STR:Ue})})}(r)})(Ye),function ge(r){r.__load_patch("legacy",s=>{const h=s[r.__symbol__("legacyPatch")];h&&h()}),r.__load_patch("timers",s=>{const h="set",o="clear";_e(s,h,o,"Timeout"),_e(s,h,o,"Interval"),_e(s,h,o,"Immediate")}),r.__load_patch("requestAnimationFrame",s=>{_e(s,"request","cancel","AnimationFrame"),_e(s,"mozRequest","mozCancel","AnimationFrame"),_e(s,"webkitRequest","webkitCancel","AnimationFrame")}),r.__load_patch("blocking",(s,h)=>{const o=["alert","prompt","confirm"];for(let u=0;u<o.length;u++){const T=o[u];ce(s,T,(g,v,M)=>function(N,b){return h.current.run(g,s,b,M)})}}),r.__load_patch("EventTarget",(s,h,o)=>{(function Pt(r,s){s.patchEventPrototype(r,s)})(s,o),function Ct(r,s){if(Zone[s.symbol("patchEventTarget")])return;const{eventNames:h,zoneSymbolEventNames:o,TRUE_STR:u,FALSE_STR:T,ZONE_SYMBOL_PREFIX:g}=s.getGlobalObjects();for(let M=0;M<h.length;M++){const N=h[M],P=g+(N+T),I=g+(N+u);o[N]={},o[N][T]=P,o[N][u]=I}const v=r.EventTarget;return v&&v.prototype?(s.patchEventTarget(r,s,[v&&v.prototype]),!0):void 0}(s,o);const u=s.XMLHttpRequestEventTarget;u&&u.prototype&&o.patchEventTarget(s,o,[u.prototype])}),r.__load_patch("MutationObserver",(s,h,o)=>{fe("MutationObserver"),fe("WebKitMutationObserver")}),r.__load_patch("IntersectionObserver",(s,h,o)=>{fe("IntersectionObserver")}),r.__load_patch("FileReader",(s,h,o)=>{fe("FileReader")}),r.__load_patch("on_property",(s,h,o)=>{xe(o,s)}),r.__load_patch("customElements",(s,h,o)=>{!function ct(r,s){const{isBrowser:h,isMix:o}=s.getGlobalObjects();if(!h&&!o||!r.customElements||!("customElements"in r))return;s.patchCallbacks(s,r.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(s,o)}),r.__load_patch("XHR",(s,h)=>{!function N(b){const R=b.XMLHttpRequest;if(!R)return;const P=R.prototype;let q=P[ut],U=P[tt];if(!q){const O=b.XMLHttpRequestEventTarget;if(O){const C=O.prototype;q=C[ut],U=C[tt]}}const le="readystatechange",te="scheduled";function L(O){const C=O.data,H=C.target;H[g]=!1,H[M]=!1;const se=H[T];q||(q=H[ut],U=H[tt]),se&&U.call(H,le,se);const J=H[T]=()=>{if(H.readyState===H.DONE)if(!C.aborted&&H[g]&&O.state===te){const i=H[h.__symbol__("loadfalse")];if(0!==H.status&&i&&i.length>0){const l=O.invoke;O.invoke=function(){const c=H[h.__symbol__("loadfalse")];for(let w=0;w<c.length;w++)c[w]===O&&c.splice(w,1);!C.aborted&&O.state===te&&l.call(O)},i.push(O)}else O.invoke()}else!C.aborted&&!1===H[g]&&(H[M]=!0)};return q.call(H,le,J),H[o]||(H[o]=O),z.apply(H,C.args),H[g]=!0,O}function _(){}function S(O){const C=O.data;return C.aborted=!0,A.apply(C.target,C.args)}const W=ce(P,"open",()=>function(O,C){return O[u]=0==C[2],O[v]=C[1],W.apply(O,C)}),Y=G("fetchTaskAborting"),k=G("fetchTaskScheduling"),z=ce(P,"send",()=>function(O,C){if(!0===h.current[k]||O[u])return z.apply(O,C);{const H={target:O,url:O[v],isPeriodic:!1,args:C,aborted:!1},se=Ze("XMLHttpRequest.send",_,H,L,S);O&&!0===O[M]&&!H.aborted&&se.state===te&&se.invoke()}}),A=ce(P,"abort",()=>function(O,C){const H=function I(O){return O[o]}(O);if(H&&"string"==typeof H.type){if(null==H.cancelFn||H.data&&H.data.aborted)return;H.zone.cancelTask(H)}else if(!0===h.current[Y])return A.apply(O,C)})}(s);const o=G("xhrTask"),u=G("xhrSync"),T=G("xhrListener"),g=G("xhrScheduled"),v=G("xhrURL"),M=G("xhrErrorBeforeScheduled")}),r.__load_patch("geolocation",s=>{s.navigator&&s.navigator.geolocation&&function x(r,s){const h=r.constructor.name;for(let o=0;o<s.length;o++){const u=s[o],T=r[u];if(T){if(!ie(Se(r,u)))continue;r[u]=(v=>{const M=function(){return v.apply(this,nt(arguments,h+"."+u))};return ne(M,v),M})(T)}}}(s.navigator.geolocation,["getCurrentPosition","watchPosition"])}),r.__load_patch("PromiseRejectionEvent",(s,h)=>{function o(u){return function(T){st(s,u).forEach(v=>{const M=s.PromiseRejectionEvent;if(M){const N=new M(u,{promise:T.promise,reason:T.rejection});v.invoke(N)}})}}s.PromiseRejectionEvent&&(h[G("unhandledPromiseRejectionHandler")]=o("unhandledrejection"),h[G("rejectionHandledHandler")]=o("rejectionhandled"))}),r.__load_patch("queueMicrotask",(s,h,o)=>{!function Lt(r,s){s.patchMethod(r,"queueMicrotask",h=>function(o,u){Zo