UNPKG

cedar-embeddable-editor

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