UNPKG

@project-sunbird/sunbird-questionset-editor-web-component

Version:

The web component package for the sunbird questionset editor

3 lines 6.94 MB
(()=>{"use strict";var e,b={},p={};function t(e){var n=p[e];if(void 0!==n)return n.exports;var r=p[e]={id:e,loaded:!1,exports:{}};return b[e].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}t.m=b,e=[],t.O=(n,r,a,o)=>{if(!r){var i=1/0;for(f=0;f<e.length;f++){for(var[r,a,o]=e[f],s=!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):(s=!1,o<i&&(i=o));if(s){e.splice(f--,1);var l=a();void 0!==l&&(n=l)}}return n}o=o||0;for(var f=e.length;f>0&&e[f-1][2]>o;f--)e[f]=e[f-1];e[f]=[r,a,o]},t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},(()=>{var n,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 f={};n=n||[null,e({}),e([]),e(e)];for(var i=2&a&&r;("object"==typeof i||"function"==typeof i)&&!~n.indexOf(i);i=e(i))Object.getOwnPropertyNames(i).forEach(s=>f[s]=()=>r[s]);return f.default=()=>r,t.d(o,f),o}})(),t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),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={121:0};t.O.j=a=>0===e[a];var n=(a,o)=>{var c,l,[f,i,s]=o,_=0;if(f.some(u=>0!==e[u])){for(c in i)t.o(i,c)&&(t.m[c]=i[c]);if(s)var d=s(t)}for(a&&a(o);_<f.length;_++)t.o(e,l=f[_])&&e[l]&&e[l][0](),e[l]=0;return t.O(d)},r=self.webpackChunkquestionset_editor_library_wc=self.webpackChunkquestionset_editor_library_wc||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})()})(); "use strict";(self.webpackChunkquestionset_editor_library_wc=self.webpackChunkquestionset_editor_library_wc||[]).push([[461],{6935(){const te=globalThis;function ee(e){return(te.__Zone_symbol_prefix||"__zone_symbol__")+e}const pe=Object.getOwnPropertyDescriptor,Oe=Object.defineProperty,Ne=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,Ze="addEventListener",Le="removeEventListener",Ie=ee(Ze),Me=ee(Le),ae="true",le="false",ye=ee("");function Ae(e,r){return Zone.current.wrap(e,r)}function je(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}const j=ee,Pe=typeof window<"u",me=Pe?window:void 0,$=Pe&&me||globalThis;function He(e,r){for(let c=e.length-1;c>=0;c--)"function"==typeof e[c]&&(e[c]=Ae(e[c],r+"_"+c));return e}function Ue(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const We=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in $)&&typeof $.process<"u"&&"[object process]"===$.process.toString(),xe=!we&&!We&&!(!Pe||!me.HTMLElement),qe=typeof $.process<"u"&&"[object process]"===$.process.toString()&&!We&&!(!Pe||!me.HTMLElement),Re={},gt=j("enable_beforeunload"),Xe=function(e){if(!(e=e||$.event))return;let r=Re[e.type];r||(r=Re[e.type]=j("ON_PROPERTY"+e.type));const c=this||e.target||$,t=c[r];let i;return xe&&c===me&&"error"===e.type?(i=t&&t.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=t&&t.apply(this,arguments),"beforeunload"===e.type&&$[gt]&&"string"==typeof i?e.returnValue=i:null!=i&&!i&&e.preventDefault()),i};function Ye(e,r,c){let t=pe(e,r);if(!t&&c&&pe(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;const i=j("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;const u=t.get,E=t.set,T=r.slice(2);let p=Re[T];p||(p=Re[T]=j("ON_PROPERTY"+T)),t.set=function(D){let d=this;!d&&e===$&&(d=$),d&&("function"==typeof d[p]&&d.removeEventListener(T,Xe),E?.call(d,null),d[p]=D,"function"==typeof D&&d.addEventListener(T,Xe,!1))},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;const d=D[p];if(d)return d;if(u){let w=u.call(this);if(w)return t.set.call(this,w),"function"==typeof D.removeAttribute&&D.removeAttribute(r),w}return null},Oe(e,r,t),e[i]=!0}function $e(e,r,c){if(r)for(let t=0;t<r.length;t++)Ye(e,"on"+r[t],c);else{const t=[];for(const i in e)"on"==i.slice(0,2)&&t.push(i);for(let i=0;i<t.length;i++)Ye(e,t[i],c)}}const re=j("originalInstance");function ve(e){const r=$[e];if(!r)return;$[j(e)]=r,$[e]=function(){const i=He(arguments,e);switch(i.length){case 0:this[re]=new r;break;case 1:this[re]=new r(i[0]);break;case 2:this[re]=new r(i[0],i[1]);break;case 3:this[re]=new r(i[0],i[1],i[2]);break;case 4:this[re]=new r(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},fe($[e],r);const c=new r(function(){});let t;for(t in c)"XMLHttpRequest"===e&&"responseBlob"===t||function(i){"function"==typeof c[i]?$[e].prototype[i]=function(){return this[re][i].apply(this[re],arguments)}:Oe($[e].prototype,i,{set:function(u){"function"==typeof u?(this[re][i]=Ae(u,e+"."+i),fe(this[re][i],u)):this[re][i]=u},get:function(){return this[re][i]}})}(t);for(t in r)"prototype"!==t&&r.hasOwnProperty(t)&&($[e][t]=r[t])}function ue(e,r,c){let t=e;for(;t&&!t.hasOwnProperty(r);)t=Ne(t);!t&&e[r]&&(t=e);const i=j(r);let u=null;if(t&&(!(u=t[i])||!t.hasOwnProperty(i))&&(u=t[i]=t[r],Ue(t&&pe(t,r)))){const T=c(u,i,r);t[r]=function(){return T(this,arguments)},fe(t[r],u)}return u}function kt(e,r,c){let t=null;function i(u){const E=u.data;return E.args[E.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(E.target,E.args),u}t=ue(e,r,u=>function(E,T){const p=c(E,T);return p.cbIdx>=0&&"function"==typeof T[p.cbIdx]?je(p.name,T[p.cbIdx],p,i):u.apply(E,T)})}function fe(e,r){e[j("OriginalDelegate")]=r}let Je=!1,Ve=!1;function pt(){if(Je)return Ve;Je=!0;try{const e=me.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ve=!0)}catch{}return Ve}function Ke(e){return"function"==typeof e}function Qe(e){return"number"==typeof e}const yt={useG:!0},ne={},et={},tt=new RegExp("^"+ye+"(\\w+)(true|false)$"),nt=j("propagationStopped");function rt(e,r){const c=(r?r(e):e)+le,t=(r?r(e):e)+ae,i=ye+c,u=ye+t;ne[e]={},ne[e][le]=i,ne[e][ae]=u}function mt(e,r,c,t){const i=t&&t.add||Ze,u=t&&t.rm||Le,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",p=j(i),D="."+i+":",d="prependListener",w="."+d+":",M=function(m,h,H){if(m.isRemoved)return;const V=m.callback;let Y;"object"==typeof V&&V.handleEvent&&(m.callback=g=>V.handleEvent(g),m.originalDelegate=V);try{m.invoke(m,h,[H])}catch(g){Y=g}const F=m.options;return F&&"object"==typeof F&&F.once&&h[u].call(h,H.type,m.originalDelegate?m.originalDelegate:m.callback,F),Y};function x(m,h,H){if(!(h=h||e.event))return;const V=m||h.target||e,Y=V[ne[h.type][H?ae:le]];if(Y){const F=[];if(1===Y.length){const g=M(Y[0],V,h);g&&F.push(g)}else{const g=Y.slice();for(let U=0;U<g.length&&(!h||!0!==h[nt]);U++){const O=M(g[U],V,h);O&&F.push(O)}}if(1===F.length)throw F[0];for(let g=0;g<F.length;g++){const U=F[g];r.nativeScheduleMicroTask(()=>{throw U})}}}const z=function(m){return x(this,m,!1)},J=function(m){return x(this,m,!0)};function K(m,h){if(!m)return!1;let H=!0;h&&void 0!==h.useG&&(H=h.useG);const V=h&&h.vh;let Y=!0;h&&void 0!==h.chkDup&&(Y=h.chkDup);let F=!1;h&&void 0!==h.rt&&(F=h.rt);let g=m;for(;g&&!g.hasOwnProperty(i);)g=Ne(g);if(!g&&m[i]&&(g=m),!g||g[p])return!1;const U=h&&h.eventNameToString,O={},R=g[p]=g[i],b=g[j(u)]=g[u],S=g[j(E)]=g[E],Q=g[j(T)]=g[T];let W;h&&h.prepend&&(W=g[j(h.prepend)]=g[h.prepend]);const q=H?function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?J:z,O.options)}:function(s){return R.call(O.target,O.eventName,s.invoke,O.options)},A=H?function(s){if(!s.isRemoved){const l=ne[s.eventName];let v;l&&(v=l[s.capture?ae:le]);const C=v&&s.target[v];if(C)for(let k=0;k<C.length;k++)if(C[k]===s){C.splice(k,1),s.isRemoved=!0,s.removeAbortListener&&(s.removeAbortListener(),s.removeAbortListener=null),0===C.length&&(s.allRemoved=!0,s.target[v]=null);break}}if(s.allRemoved)return b.call(s.target,s.eventName,s.capture?J:z,s.options)}:function(s){return b.call(s.target,s.eventName,s.invoke,s.options)},he=h?.diff||function(s,l){const v=typeof l;return"function"===v&&s.callback===l||"object"===v&&s.originalDelegate===l},de=Zone[j("UNPATCHED_EVENTS")],oe=e[j("PASSIVE_EVENTS")],a=function(s,l,v,C,k=!1,Z=!1){return function(){const L=this||e;let I=arguments[0];h&&h.transferEventName&&(I=h.transferEventName(I));let G=arguments[1];if(!G)return s.apply(this,arguments);if(we&&"uncaughtException"===I)return s.apply(this,arguments);let B=!1;if("function"!=typeof G){if(!G.handleEvent)return s.apply(this,arguments);B=!0}if(V&&!V(s,G,L,arguments))return;const Te=!!oe&&-1!==oe.indexOf(I),ie=function f(s){if("object"==typeof s&&null!==s){const l={...s};return s.signal&&(l.signal=s.signal),l}return s}(function N(s,l){return l?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?{...s,passive:!0}:s:{passive:!0}:s}(arguments[2],Te)),ge=ie?.signal;if(ge?.aborted)return;if(de)for(let ce=0;ce<de.length;ce++)if(I===de[ce])return Te?s.call(L,I,G,ie):s.apply(this,arguments);const Ge=!!ie&&("boolean"==typeof ie||ie.capture),at=!(!ie||"object"!=typeof ie)&&ie.once,It=Zone.current;let Be=ne[I];Be||(rt(I,U),Be=ne[I]);const lt=Be[Ge?ae:le];let De,ke=L[lt],ut=!1;if(ke){if(ut=!0,Y)for(let ce=0;ce<ke.length;ce++)if(he(ke[ce],G))return}else ke=L[lt]=[];const ft=L.constructor.name,ht=et[ft];ht&&(De=ht[I]),De||(De=ft+l+(U?U(I):I)),O.options=ie,at&&(O.options.once=!1),O.target=L,O.capture=Ge,O.eventName=I,O.isExisting=ut;const be=H?yt:void 0;be&&(be.taskData=O),ge&&(O.options.signal=void 0);const se=It.scheduleEventTask(De,G,be,v,C);if(ge){O.options.signal=ge;const ce=()=>se.zone.cancelTask(se);s.call(ge,"abort",ce,{once:!0}),se.removeAbortListener=()=>ge.removeEventListener("abort",ce)}return O.target=null,be&&(be.taskData=null),at&&(O.options.once=!0),"boolean"!=typeof se.options&&(se.options=ie),se.target=L,se.capture=Ge,se.eventName=I,B&&(se.originalDelegate=G),Z?ke.unshift(se):ke.push(se),k?L:void 0}};return g[i]=a(R,D,q,A,F),W&&(g[d]=a(W,w,function(s){return W.call(O.target,O.eventName,s.invoke,O.options)},A,F,!0)),g[u]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=arguments[2],C=!!v&&("boolean"==typeof v||v.capture),k=arguments[1];if(!k)return b.apply(this,arguments);if(V&&!V(b,k,s,arguments))return;const Z=ne[l];let L;Z&&(L=Z[C?ae:le]);const I=L&&s[L];if(I)for(let G=0;G<I.length;G++){const B=I[G];if(he(B,k))return I.splice(G,1),B.isRemoved=!0,0!==I.length||(B.allRemoved=!0,s[L]=null,C||"string"!=typeof l)||(s[ye+"ON_PROPERTY"+l]=null),B.zone.cancelTask(B),F?s:void 0}return b.apply(this,arguments)},g[E]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=[],C=ot(s,U?U(l):l);for(let k=0;k<C.length;k++){const Z=C[k];v.push(Z.originalDelegate?Z.originalDelegate:Z.callback)}return v},g[T]=function(){const s=this||e;let l=arguments[0];if(l){h&&h.transferEventName&&(l=h.transferEventName(l));const v=ne[l];if(v){const Z=s[v[le]],L=s[v[ae]];if(Z){const I=Z.slice();for(let G=0;G<I.length;G++){const B=I[G];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}if(L){const I=L.slice();for(let G=0;G<I.length;G++){const B=I[G];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}}}else{const v=Object.keys(s);for(let C=0;C<v.length;C++){const Z=tt.exec(v[C]);let L=Z&&Z[1];L&&"removeListener"!==L&&this[T].call(this,L)}this[T].call(this,"removeListener")}if(F)return this},fe(g[i],R),fe(g[u],b),Q&&fe(g[T],Q),S&&fe(g[E],S),!0}let X=[];for(let m=0;m<c.length;m++)X[m]=K(c[m],t);return X}function ot(e,r){if(!r){const u=[];for(let E in e){const T=tt.exec(E);let p=T&&T[1];if(p&&(!r||p===r)){const D=e[E];if(D)for(let d=0;d<D.length;d++)u.push(D[d])}}return u}let c=ne[r];c||(rt(r),c=ne[r]);const t=e[c[le]],i=e[c[ae]];return t?i?t.concat(i):t.slice():i?i.slice():[]}function vt(e,r){const c=e.Event;c&&c.prototype&&r.patchMethod(c.prototype,"stopImmediatePropagation",t=>function(i,u){i[nt]=!0,t&&t.apply(i,u)})}const Ce=j("zoneTask");function Ee(e,r,c,t){let i=null,u=null;c+=t;const E={};function T(D){const d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};const w=i.apply(e,d.args);return Qe(w)?d.handleId=w:(d.handle=w,d.isRefreshable=Ke(w.refresh)),D}function p(D){const{handle:d,handleId:w}=D.data;return u.call(e,d??w)}i=ue(e,r+=t,D=>function(d,w){if(Ke(w[0])){const M={isRefreshable:!1,isPeriodic:"Interval"===t,delay:"Timeout"===t||"Interval"===t?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{const{handle:H,handleId:V,isPeriodic:Y,isRefreshable:F}=M;!Y&&!F&&(V?delete E[V]:H&&(H[Ce]=null))}};const z=je(r,w[0],M,T,p);if(!z)return z;const{handleId:J,handle:K,isRefreshable:X,isPeriodic:m}=z.data;if(J)E[J]=z;else if(K&&(K[Ce]=z,X&&!m)){const h=K.refresh;K.refresh=function(){const{zone:H,state:V}=z;return"notScheduled"===V?(z._state="scheduled",H._updateTaskCount(z,1)):"running"===V&&(z._state="scheduling"),h.call(this)}}return K??J??z}return D.apply(e,w)}),u=ue(e,c,D=>function(d,w){const M=w[0];let x;Qe(M)?(x=E[M],delete E[M]):(x=M?.[Ce],x?M[Ce]=null:x=M),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,w)})}function st(e,r,c){if(!c||0===c.length)return r;const t=c.filter(u=>u.target===e);if(0===t.length)return r;const i=t[0].ignoreProperties;return r.filter(u=>-1===i.indexOf(u))}function it(e,r,c,t){e&&$e(e,st(e,r,c),t)}function Fe(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Nt(e,r,c,t,i){const u=Zone.__symbol__(t);if(r[u])return;const E=r[u]=r[t];r[t]=function(T,p,D){return p&&p.prototype&&i.forEach(function(d){const w=`${c}.${t}::`+d,M=p.prototype;try{if(M.hasOwnProperty(d)){const x=e.ObjectGetOwnPropertyDescriptor(M,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,w),e._redefineProperty(p.prototype,d,x)):M[d]&&(M[d]=e.wrapWithCurrentZone(M[d],w))}else M[d]&&(M[d]=e.wrapWithCurrentZone(M[d],w))}catch{}}),E.call(r,T,p,D)},e.attachOriginToPatched(r[t],E)}const ct=function Se(){const e=globalThis,r=!0===e[ee("forceDuplicateZoneCheck")];if(e.Zone&&(r||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return e.Zone??=function ze(){const e=te.performance;function r(N){e&&e.mark&&e.mark(N)}function c(N,_){e&&e.measure&&e.measure(N,_)}r("Zone");let t=(()=>{class N{static __symbol__=ee;static assertZonePatched(){if(te.Promise!==O.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 n=N.current;for(;n.parent;)n=n.parent;return n}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(n,o,y=!1){if(O.hasOwnProperty(n)){const P=!0===te[ee("forceDuplicateZoneCheck")];if(!y&&P)throw Error("Already loaded patch: "+n)}else if(!te["__Zone_disable_"+n]){const P="Zone:"+n;r(P),O[n]=o(te,N,R),c(P,P)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){const o=this.getZoneWith(n);if(o)return o._properties[n]}getZoneWith(n){let o=this;for(;o;){if(o._properties.hasOwnProperty(n))return o;o=o._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,o){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const y=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(y,this,arguments,o)}}run(n,o,y,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,y,P)}finally{b=b.parent}}runGuarded(n,o=null,y,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,y,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,y){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");const P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===U||q===g))return;const he=n.state!=H;he&&P._transitionTo(H,h);const de=S;S=P,b={parent:b,zone:this};try{q==g&&n.data&&!A&&!_e&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,o,y)}catch(oe){if(this._zoneDelegate.handleError(this,oe))throw oe}}finally{const oe=n.state;if(oe!==X&&oe!==Y)if(q==U||A||_e&&oe===m)he&&P._transitionTo(h,H,m);else{const f=P._zoneDelegates;this._updateTaskCount(P,-1),he&&P._transitionTo(X,H,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=de}}scheduleTask(n){if(n.zone&&n.zone!==this){let y=this;for(;y;){if(y===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);y=y.parent}}n._transitionTo(m,X);const o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(y){throw n._transitionTo(Y,m,X),this._zoneDelegate.handleError(this,y),y}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==m&&n._transitionTo(h,m),n}scheduleMicroTask(n,o,y,P){return this.scheduleTask(new E(F,n,o,y,P,void 0))}scheduleMacroTask(n,o,y,P,q){return this.scheduleTask(new E(g,n,o,y,P,q))}scheduleEventTask(n,o,y,P,q){return this.scheduleTask(new E(U,n,o,y,P,q))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");if(n.state===h||n.state===H){n._transitionTo(V,h,H);try{this._zoneDelegate.cancelTask(this,n)}catch(o){throw n._transitionTo(Y,V),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(n,-1),n._transitionTo(X,V),n.runCount=-1,n}}_updateTaskCount(n,o){const y=n._zoneDelegates;-1==o&&(n._zoneDelegates=null);for(let P=0;P<y.length;P++)y[P]._updateTaskCount(n.type,o)}}return N})();const i={name:"",onHasTask:(N,_,n,o)=>N.hasTask(n,o),onScheduleTask:(N,_,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,_,n,o,y,P)=>N.invokeTask(n,o,y,P),onCancelTask:(N,_,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(_,n,o){this._zone=_,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const y=o&&o.onHasTask;(y||n&&n._hasTaskZS)&&(this._hasTaskZS=y?o:i,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(_,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,n):new t(_,n)}intercept(_,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,n,o):n}invoke(_,n,o,y,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,n,o,y,P):n.apply(o,y)}handleError(_,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,n)}scheduleTask(_,n){let o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,n),o||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=F)throw new Error("Task is missing scheduleFn.");z(n)}return o}invokeTask(_,n,o,y){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,n,o,y):n.callback.apply(o,y)}cancelTask(_,n){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o}hasTask(_,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,n)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,n){const o=this._taskCounts,y=o[_],P=o[_]=y+n;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=y&&0!=P||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_})}}class E{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(_,n,o,y,P,q){if(this.type=_,this.source=n,this.data=y,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;const A=this;this.invoke=_===U&&y&&y.useG?E.invokeTask:function(){return E.invokeTask.call(te,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{1==Q&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,m)}_transitionTo(_,n,o){if(this._state!==n&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=_,_==X&&(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=ee("setTimeout"),p=ee("Promise"),D=ee("then");let M,d=[],w=!1;function x(N){if(M||te[p]&&(M=te[p].resolve(0)),M){let _=M[D];_||(_=M.then),_.call(M,N)}else te[T](N,0)}function z(N){0===Q&&0===d.length&&x(J),N&&d.push(N)}function J(){if(!w){for(w=!0;d.length;){const N=d;d=[];for(let _=0;_<N.length;_++){const n=N[_];try{n.zone.runTask(n,null,null)}catch(o){R.onUnhandledError(o)}}}R.microtaskDrainDone(),w=!1}}const K={name:"NO ZONE"},X="notScheduled",m="scheduling",h="scheduled",H="running",V="canceling",Y="unknown",F="microTask",g="macroTask",U="eventTask",O={},R={symbol:ee,currentZoneFrame:()=>b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:z,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x};let b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}(),e.Zone}();(function Lt(e){(function St(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{const i=Object.getOwnPropertyDescriptor,u=Object.defineProperty,T=t.symbol,p=[],D=!1!==r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=T("Promise"),w=T("then");t.onUnhandledError=f=>{if(t.showUncaughtError()){const a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;p.length;){const f=p.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){z(a)}}};const x=T("unhandledPromiseRejectionHandler");function z(f){t.onUnhandledError(f);try{const a=c[x];"function"==typeof a&&a.call(this,f)}catch{}}function J(f){return f&&"function"==typeof f.then}function K(f){return f}function X(f){return A.reject(f)}const m=T("state"),h=T("value"),H=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),g=null,U=!0,O=!1;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}const S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){const l=S();if(f===s)throw new TypeError(Q);if(f[m]===g){let v=null;try{("object"==typeof s||"function"==typeof s)&&(v=s&&s.then)}catch(C){return l(()=>{N(f,!1,C)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(m)&&s.hasOwnProperty(h)&&s[m]!==g)n(s),N(f,s[m],s[h]);else if(a!==O&&"function"==typeof v)try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[m]=a;const C=f[h];if(f[h]=s,f[H]===H&&a===U&&(f[m]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){const k=c.currentTask&&c.currentTask.data&&c.currentTask.data.__creationTrace__;k&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k<C.length;)o(f,C[k++],C[k++],C[k++],C[k++]);if(0==C.length&&a==O){f[m]=0;let k=s;try{throw new Error("Uncaught (in promise): "+function E(f){return f&&f.toString===Object.prototype.toString?(f.constructor&&f.constructor.name||"")+": "+JSON.stringify(f):f?f.toString():Object.prototype.toString.call(f)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(Z){k=Z}D&&(k.throwOriginal=!0),k.rejection=s,k.promise=f,k.zone=c.current,k.task=c.currentTask,p.push(k),t.scheduleMicroTask()}}}return f}const _=T("rejectionHandledHandler");function n(f){if(0===f[m]){try{const a=c[_];a&&"function"==typeof a&&a.call(this,{rejection:f[h],promise:f})}catch{}f[m]=O;for(let a=0;a<p.length;a++)f===p[a].promise&&p.splice(a,1)}}function o(f,a,s,l,v){n(f);const C=f[m],k=C?"function"==typeof l?l:K:"function"==typeof v?v:X;a.scheduleMicroTask("Promise.then",()=>{try{const Z=f[h],L=!!s&&H===s[H];L&&(s[V]=Z,s[Y]=C);const I=a.run(k,void 0,L&&k!==X&&k!==K?[]:[Z]);N(s,!0,I)}catch(Z){N(s,!1,Z)}},s)}const P=function(){},q=r.AggregateError;class A{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(a){return a instanceof A?a:N(new this(null),U,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){const a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||"function"!=typeof a[Symbol.iterator])return Promise.reject(new q([],"All promises were rejected"));const s=[];let l=0;try{for(let k of a)l++,s.push(A.resolve(k))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(0===l)return Promise.reject(new q([],"All promises were rejected"));let v=!1;const C=[];return new A((k,Z)=>{for(let L=0;L<s.length;L++)s[L].then(I=>{v||(v=!0,k(I))},I=>{C.push(I),l--,0===l&&(v=!0,Z(new q(C,"All promises were rejected")))})})}static race(a){let s,l,v=new this((Z,L)=>{s=Z,l=L});function C(Z){s(Z)}function k(Z){l(Z)}for(let Z of a)J(Z)||(Z=this.resolve(Z)),Z.then(C,k);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,C=new this((I,G)=>{l=I,v=G}),k=2,Z=0;const L=[];for(let I of a){J(I)||(I=this.resolve(I));const G=Z;try{I.then(B=>{L[G]=s?s.thenCallback(B):B,k--,0===k&&l(L)},B=>{s?(L[G]=s.errorCallback(B),k--,0===k&&l(L)):v(B)})}catch(B){v(B)}k++,Z++}return k-=2,0===k&&l(L),C}constructor(a){const s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[m]=g,s[h]=[];try{const l=S();a&&a(l(b(s,U)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||"function"!=typeof l)&&(l=this.constructor||A);const v=new l(P),C=c.current;return this[m]==g?this[h].push(C,v,a,s):o(this,C,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=A);const l=new s(P);l[H]=H;const v=c.current;return this[m]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;const _e=r[d]=r.Promise;r.Promise=A;const he=T("thenPatched");function de(f){const a=f.prototype,s=i(a,"then");if(s&&(!1===s.writable||!s.configurable))return;const l=a.then;a[w]=l,f.prototype.then=function(v,C){return new A((Z,L)=>{l.call(this,Z,L)}).then(v,C)},f[he]=!0}return t.patchThen=de,_e&&(de(_e),ue(r,"fetch",f=>function oe(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[he]||de(v),l}}(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=p,A})})(e),function Ot(e){e.__load_patch("toString",r=>{const c=Function.prototype.toString,t=j("OriginalDelegate"),i=j("Promise"),u=j("Error"),E=function(){if("function"==typeof this){const d=this[t];if(d)return"function"==typeof d?c.call(d):Object.prototype.toString.call(d);if(this===Promise){const w=r[i];if(w)return c.call(w)}if(this===Error){const w=r[u];if(w)return c.call(w)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;const T=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":T.call(this)}})}(e),function Zt(e){e.__load_patch("util",(r,c,t)=>{const i=Fe(r);t.patchOnProperties=$e,t.patchMethod=ue,t.bindArguments=He,t.patchMacroTask=kt;const u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(c[u]=c[E]=r[u]),t.patchEventPrototype=vt,t.patchEventTarget=mt,t.isIEOrEdge=pt,t.ObjectDefineProperty=Oe,t.ObjectGetOwnPropertyDescriptor=pe,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ve,t.wrapWithCurrentZone=Ae,t.filterProperties=st,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:ne,eventNames:i,isBrowser:xe,isMix:qe,isNode:we,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ye,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:Le})})}(e)})(ct),function Dt(e){e.__load_patch("legacy",r=>{const c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{const c="set",t="clear";Ee(r,c,t,"Timeout"),Ee(r,c,t,"Interval"),Ee(r,c,t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{Ee(r,"request","cancel","AnimationFrame"),Ee(r,"mozRequest","mozCancel","AnimationFrame"),Ee(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{const t=["alert","prompt","confirm"];for(let i=0;i<t.length;i++)ue(r,t[i],(E,T,p)=>function(D,d){return c.current.run(E,r,d,p)})}),e.__load_patch("EventTarget",(r,c,t)=>{(function Rt(e,r){r.patchEventPrototype(e,r)})(r,t),function wt(e,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let p=0;p<c.length;p++){const D=c[p],M=E+(D+u),x=E+(D+i);t[D]={},t[D][u]=M,t[D][i]=x}const T=e.EventTarget;T&&T.prototype&&r.patchEventTarget(e,r,[T&&T.prototype])}(r,t);const i=r.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(r,t,[i.prototype])}),e.__load_patch("MutationObserver",(r,c,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{ve("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{!function Ct(e,r){if(we&&!qe||Zone[e.symbol("patchEvents")])return;const c=r.__Zone_ignore_on_properties;let t=[];if(xe){const i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const u=[];it(i,Fe(i),c&&c.concat(u),Ne(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<t.length;i++){const u=r[t[i]];u?.prototype&&it(u.prototype,Fe(u.prototype),c)}}(t,r)}),e.__load_patch("customElements",(r,c,t)=>{!function Pt(e,r){const{isBrowser:c,isMix:t}=r.getGlobalObjects();(c||t)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,t)}),e.__load_patch("XHR",(r,c)=>{!function D(d){const w=d.XMLHttpRequest;if(!w)return;const M=w.prototype;let z=M[Ie],J=M[Me];if(!z){const R=d.XMLHttpRequestEventTarget;if(R){const b=R.prototype;z=b[Ie],J=b[Me]}}const K="readystatechange",X="scheduled";function m(R){const b=R.data,S=b.target;S[E]=!1,S[p]=!1;const Q=S[u];z||(z=S[Ie],J=S[Me]),Q&&J.call(S,K,Q);const W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){const _=S[c.__symbol__("loadfalse")];if(0!==S.status&&_&&_.length>0){const n=R.invoke;R.invoke=function(){const o=S[c.__symbol__("loadfalse")];for(let y=0;y<o.length;y++)o[y]===R&&o.splice(y,1);!b.aborted&&R.state===X&&n.call(R)},_.push(R)}else R.invoke()}else!b.aborted&&!1===S[E]&&(S[p]=!0)};return z.call(S,K,W),S[t]||(S[t]=R),U.apply(S,b.args),S[E]=!0,R}function h(){}function H(R){const b=R.data;return b.aborted=!0,O.apply(b.target,b.args)}const V=ue(M,"open",()=>function(R,b){return R[i]=0==b[2],R[T]=b[1],V.apply(R,b)}),F=j("fetchTaskAborting"),g=j("fetchTaskScheduling"),U=ue(M,"send",()=>function(R,b){if(!0===c.current[g]||R[i])return U.apply(R,b);{const S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},Q=je("XMLHttpRequest.send",h,S,m,H);R&&!0===R[p]&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=ue(M,"abort",()=>function(R,b){const S=function x(R){return R[t]}(R);if(S&&"string"==typeof S.type){if(null==S.cancelFn||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(!0===c.current[F])return O.apply(R,b)})}(r);const t=j("xhrTask"),i=j("xhrSync"),u=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),p=j("xhrErrorBeforeScheduled")}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function Et(e,r){const c=e.constructor.name;for(let t=0;t<r.length;t++){const i=r[t],u=e[i];if(u){if(!Ue(pe(e,i)))continue;e[i]=(T=>{const p=function(){return T.apply(this,He(arguments,c+"."+i))};return fe(p,T),p})(u)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){ot(r,i).forEach(T=>{const p=r.PromiseRejectionEvent;if(p){const D=new p(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{!function bt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(r,t)})}(ct)}},te=>{te(te.s=6935)}]); var Reflect,conceptModal;!function(Y,S){"object"==typeof exports&&"object"==typeof module?module.exports=S():"function"==typeof define&&define.amd?define([],S):"object"==typeof exports?exports.SunbirdFileUploadLib=S():Y.SunbirdFileUploadLib=S()}(this,()=>(()=>{"use strict";var Y={d:(tt,Ye)=>{for(var ct in Ye)Y.o(Ye,ct)&&!Y.o(tt,ct)&&Object.defineProperty(tt,ct,{enumerable:!0,get:Ye[ct]})},o:(tt,Ye)=>Object.prototype.hasOwnProperty.call(tt,Ye),r:tt=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(tt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(tt,"__esModule",{value:!0})}},S={};function o(tt,Ye){return function(){return tt.apply(Ye,arguments)}}Y.r(S),Y.d(S,{FileUploader:()=>wn});const{toString:e}=Object.prototype,{getPrototypeOf:n}=Object,c=(t=Object.create(null),tt=>{const Ye=e.call(tt);return t[Ye]||(t[Ye]=Ye.slice(8,-1).toLowerCase())});var t;const s=tt=>(tt=tt.toLowerCase(),Ye=>c(Ye)===tt),u=tt=>Ye=>typeof Ye===tt,{isArray:f}=Array,g=u("undefined"),p=s("ArrayBuffer"),_=u("string"),d=u("function"),h=u("number"),E=tt=>null!==tt&&"object"==typeof tt,T=tt=>{if("object"!==c(tt))return!1;const Ye=n(tt);return!(null!==Ye&&Ye!==Object.prototype&&null!==Object.getPrototypeOf(Ye)||Symbol.toStringTag in tt||Symbol.iterator in tt)},D=s("Date"),w=s("File"),A=s("Blob"),O=s("FileList"),I=s("URLSearchParams");function l(tt,Ye,{allOwnKeys:ct=!1}={}){if(null==tt)return;let Ie,je;if("object"!=typeof tt&&(tt=[tt]),f(tt))for(Ie=0,je=tt.length;Ie<je;Ie++)Ye.call(null,tt[Ie],Ie,tt);else{const at=ct?Object.getOwnPropertyNames(tt):Object.keys(tt),it=at.length;let Mt;for(Ie=0;Ie<it;Ie++)Mt=at[Ie],Ye.call(null,tt[Mt],Mt,tt)}}function B(tt,Ye){Ye=Ye.toLowerCase();const ct=Object.keys(tt);let Ie,je=ct.length;for(;je-- >0;)if(Ie=ct[je],Ye===Ie.toLowerCase())return Ie;return null}const R=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,y=tt=>!g(tt)&&tt!==R,C=(v=typeof Uint8Array<"u"&&n(Uint8Array),tt=>v&&tt instanceof v);var v;const P=s("HTMLFormElement"),L=(({hasOwnProperty:tt})=>(Ye,ct)=>tt.call(Ye,ct))(Object.prototype),M=s("RegExp"),k=(tt,Ye)=>{const ct=Object.getOwnPropertyDescriptors(tt),Ie={};l(ct,(je,at)=>{!1!==Ye(je,at,tt)&&(Ie[at]=je)}),Object.defineProperties(tt,Ie)},V="abcdefghijklmnopqrstuvwxyz",Q="0123456789",re={DIGIT:Q,ALPHA:V,ALPHA_DIGIT:V+V.toUpperCase()+Q},le=s("AsyncFunction"),ge={isArray:f,isArrayBuffer:p,isBuffer:function(tt){return null!==tt&&!g(tt)&&null!==tt.constructor&&!g(tt.constructor)&&d(tt.constructor.isBuffer)&&tt.constructor.isBuffer(tt)},isFormData:tt=>{let Ye;return tt&&("function"==typeof FormData&&tt instanceof FormData||d(tt.append)&&("formdata"===(Ye=c(tt))||"object"===Ye&&d(tt.toString)&&"[object FormData]"===tt.toString()))},isArrayBufferView:function(tt){let Ye;return Ye=typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(tt):tt&&tt.buffer&&p(tt.buffer),Ye},isString:_,isNumber:h,isBoolean:tt=>!0===tt||!1===tt,isObject:E,isPlainObject:T,isUndefined:g,isDate:D,isFile:w,isBlob:A,isRegExp:M,isFunction:d,isStream:tt=>E(tt)&&d(tt.pipe),isURLSearchParams:I,isTypedArray:C,isFileList:O,forEach:l,merge:function tt(){const{caseless:Ye}=y(this)&&this||{},ct={},Ie=(je,at)=>{const it=Ye&&B(ct,at)||at;ct[it]=T(ct[it])&&T(je)?tt(ct[it],je):T(je)?tt({},je):f(je)?je.slice():je};for(let je=0,at=arguments.length;je<at;je++)arguments[je]&&l(arguments[je],Ie);return ct},extend:(tt,Ye,ct,{allOwnKeys:Ie}={})=>(l(Ye,(je,at)=>{tt[at]=ct&&d(je)?o(je,ct):je},{allOwnKeys:Ie}),tt),trim:tt=>tt.trim?tt.trim():tt.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:tt=>(65279===tt.charCodeAt(0)&&(tt=tt.slice(1)),tt),inherits:(tt,Ye,ct,Ie)=>{tt.prototype=Object.create(Ye.prototype,Ie),tt.prototype.constructor=tt,Object.defineProperty(tt,"super",{value:Ye.prototype}),ct&&Object.assign(tt.prototype,ct)},toFlatObject:(tt,Ye,ct,Ie)=>{let je,at,it;const Mt={};if(Ye=Ye||{},null==tt)return Ye;do{for(je=Object.getOwnPropertyNames(tt),at=je.length;at-- >0;)it=je[at],Ie&&!Ie(it,tt,Ye)||Mt[it]||(Ye[it]=tt[it],Mt[it]=!0);tt=!1!==ct&&n(tt)}while(tt&&(!ct||ct(tt,Ye))&&tt!==Object.prototype);return Ye},kindOf:c,kindOfTest:s,endsWith:(tt,Ye,ct)=>{tt=String(tt),(void 0===ct||ct>tt.length)&&(ct=tt.length);const Ie=tt.indexOf(Ye,ct-=Ye.length);return-1!==Ie&&Ie===ct},toArray:tt=>{if(!tt)return null;if(f(tt))return tt;let Ye=tt.length;if(!h(Ye))return null;const ct=new Array(Ye);for(;Ye-- >0;)ct[Ye]=tt[Ye];return ct},forEachEntry:(tt,Ye)=>{const ct=(tt&&tt[Symbol.iterator]).call(tt);let Ie;for(;(Ie=ct.next())&&!Ie.done;){const je=Ie.value;Ye.call(tt,je[0],je[1])}},matchAll:(tt,Ye)=>{let ct;const Ie=[];for(;null!==(ct=tt.exec(Ye));)Ie.push(ct);return Ie},isHTMLForm:P,hasOwnProperty:L,hasOwnProp:L,reduceDescriptors:k,freezeMethods:tt=>{k(tt,(Ye,ct)=>{if(d(tt)&&-1!==["arguments","caller","callee"].indexOf(ct))return!1;d(tt[ct])&&(Ye.enumerable=!1,"writable"in Ye?Ye.writable=!1:Ye.set||(Ye.set=()=>{throw Error("Can not rewrite read-only method '"+ct+"'")}))})},toObjectSet:(tt,Ye)=>{const ct={},Ie=je=>{je.forEach(at=>{ct[at]=!0})};return f(tt)?Ie(tt):Ie(String(tt).split(Ye)),ct},toCamelCase:tt=>tt.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Ye,ct,Ie){return ct.toUpperCase()+Ie}),noop:()=>{},toFiniteNumber:(tt,Ye)=>(tt=+tt,Number.isFinite(tt)?tt:Ye),findKey:B,global:R,isContextDefined:y,ALPHABET:re,generateString:(tt=16,Ye=re.ALPHA_DIGIT)=>{let ct="";const{length:Ie}=Ye;for(;tt--;)ct+=Ye[Math.random()*Ie|0];return ct},isSpecCompliantForm:function(tt){return!!(tt&&d(tt.append)&&"FormData"===tt[Symbol.toStringTag]&&tt[Symbol.iterator])},toJSONObject:tt=>{const Ye=new Array(10),ct=(Ie,je)=>{if(E(Ie)){if(Ye.indexOf(Ie)>=0)return;if(!("toJSON"in Ie)){Ye[je]=Ie;const at=f(Ie)?[]:{};return l(Ie,(it,Mt)=>{const Bt=ct(it,je+1);!g(Bt)&&(at[Mt]=Bt)}),Ye[je]=void 0,at}}return Ie};return ct(tt,0)},isAsyncFn:le,isThenable:tt=>tt&&(E(tt)||d(tt))&&d(tt.then)&&d(tt.catch)};function de(tt,Ye,ct,Ie,je){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=tt,this.name="AxiosError",Ye&&(this.code=Ye),ct&&(this.config=ct),Ie&&(this.request=Ie),je&&(this.response=je)}ge.inherits(de,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ge.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const F=de.prototype,N={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(tt=>{N[tt]={value:tt}}),Object.defineProperties(de,N),Object.defineProperty(F,"isAxiosError",{value:!0}),de.from=(tt,Ye,ct,Ie,je,at)=>{const it=Object.create(F);return ge.toFlatObject(tt,it,function(Mt){return Mt!==Error.prototype},Mt=>"isAxiosError"!==Mt),de.call(it,tt.message,Ye,ct,Ie,je),it.cause=tt,it.name=tt.name,at&&Object.assign(it,at),it};const H=de;function ue(tt){return ge.isPlainObject(tt)||ge.isArray(tt)}function ee(tt){return ge.endsWith(tt,"[]")?tt.slice(0,-2):tt}function Ce(tt,Ye,ct){return tt?tt.concat(Ye).map(function(Ie,je){return Ie=ee(Ie),!ct&&je?"["+Ie+"]":Ie}).join(ct?".":""):Ye}const me=ge.toFlatObject(ge,{},null,function(tt){return/^is[A-Z]/.test(tt)}),Oe=function(tt,Ye,ct){if(!ge.isObject(tt))throw new TypeError("target must be an object");Ye=Ye||new FormData;const Ie=(ct=ge.toFlatObject(ct,{metaTokens:!0,dots:!1,indexes:!1},!1,function(tn,gt){return!ge.isUndefined(gt[tn])})).metaTokens,je=ct.visitor||nn,at=ct.dots,it=ct.indexes,Mt=(ct.Blob||typeof Blob<"u"&&Blob)&&ge.isSpecCompliantForm(Ye);if(!ge.isFunction(je))throw new TypeError("visitor must be a function");function Bt(tn){if(null===tn)return"";if(ge.isDate(tn))return tn.toISOString();if(!Mt&&ge.isBlob(tn))throw new H("Blob is not supported. Use a Buffer instead.");return ge.isArrayBuffer(tn)||ge.isTypedArray(tn)?Mt&&"function"==typeof Blob?new Blob([tn]):Buffer.from(tn):tn}function nn(tn,gt,Ct){let Yt=tn;if(tn&&!Ct&&"object"==typeof tn)if(ge.endsWith(gt,"{}"))gt=Ie?gt:gt.slice(0,-2),tn=JSON.stringify(tn);else if(ge.isArray(tn)&&ge.isArray(En=tn)&&!En.some(ue)||(ge.isFileList(tn)||ge.endsWith(gt,"[]"))&&(Yt=ge.toArray(tn)))return gt=ee(gt),Yt.forEach(function(En,Nn){!ge.isUndefined(En)&&null!==En&&Ye.append(!0===it?Ce([gt],Nn,at):null===it?gt:gt+"[]",Bt(En))}),!1;var En;return!!ue(tn)||(Ye.append(Ce(Ct,gt,at),Bt(tn)),!1)}const Ht=[],Xt=Object.assign(me,{defaultVisitor:nn,convertValue:Bt,isVisitable:ue});if(!ge.isObject(tt))throw new TypeError("data must be an object");return function tn(gt,Ct){if(!ge.isUndefined(gt)){if(-1!==Ht.indexOf(gt))throw Error("Circular reference detected in "+Ct.join("."));Ht.push(gt),ge.forEach(gt,function(Yt,En){!0===(!(ge.isUndefined(Yt)||null===Yt)&&je.call(Ye,Yt,ge.isString(En)?En.trim():En,Ct,Xt))&&tn(Yt,Ct?Ct.concat(En):[En])}),Ht.pop()}}(tt),Ye};function we(tt){const Ye={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(tt).replace(/[!'()~]|%20|%00/g,function(ct){return Ye[ct]})}function _e(tt,Ye){this._pairs=[],tt&&Oe(tt,this,Ye)}const $e=_e.prototype;$e.append=function(tt,Ye){this._pairs.push([tt,Ye])},$e.toString=function(tt){const Ye=tt?function(ct){return tt.call(this,ct,we)}:we;return this._pairs.map(function(ct){return Ye(ct[0])+"="+Ye(ct[1])},"").join("&")};const ot=_e;function Ne(tt){return encodeURIComponent(tt).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function qe(tt,Ye,ct){if(!Ye)return tt;const Ie=ct&&ct.encode||Ne,je=ct&&ct.serialize;let at;if(at=je?je(Ye,ct):ge.isURLSearchParams(Ye)?Ye.toString():new ot(Ye,ct).toString(Ie),at){const it=tt.indexOf("#");-1!==it&&(tt=tt.slice(0,it)),tt+=(-1===tt.indexOf("?")?"?":"&")+at}return tt}const he=class{constructor(){this.handlers=[]}use(tt,Ye,ct){return this.handlers.push({fulfilled:tt,rejected:Ye,synchronous:!!ct&&ct.synchronous,runWhen:ct?ct.runWhen:null}),this.handlers.length-1}eject(tt){this.handlers[tt]&&(this.handlers[tt]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(tt){ge.forEach(this.handlers,function(Ye){null!==Ye&&tt(Ye)})}},Te={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ce={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:ot,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},isStandardBrowserEnv:(()=>{let tt;return(typeof navigator>"u"||"ReactNative"!==(tt=navigator.product)&&"NativeScript"!==tt&&"NS"!==tt)&&typeof window<"u"&&typeof document<"u"})(),isStandardBrowserWebWorkerEnv:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},Fe=function(tt){function Ye(ct,Ie,je,at){let it=ct[at++];const Mt=Number.isFinite(+it),Bt=at>=ct.length;return it=!it&&ge.isArray(je)?je.length:it,Bt?(je[it]=ge.hasOwnProp(je,it)?[je[it],Ie]:Ie,!Mt):(je[it]&&ge.isObject(je[it])||(je[it]=[]),Ye(ct,Ie,je[it],at)&&ge.isArray(je[it])&&(je[it]=function(nn){const Ht={},Xt=Object.keys(nn);let tn;const gt=Xt.length;let Ct;for(tn=0;tn<gt;tn++)Ct=Xt[tn],Ht[Ct]=nn[Ct];return Ht}(je[it])),!Mt)}if(ge.isFormData(tt)&&ge.isFunction(tt.entries)){const ct={};return ge.forEachEntry(tt,(Ie,je)=>{Ye(ge.matchAll(/\w+|\[(\w*)]/g,Ie).map(it=>"[]"===it[0]?"":it[1]||it[0]),je,ct,0)}),ct}return null},st={"Content-Type":void 0},yt={transitional:Te,adapter:["xhr","http"],transformRequest:[function(tt,Ye){const ct=Ye.getContentType()||"",Ie=ct.indexOf("application/json")>-1,je=ge.isObject(tt);if(je&&ge.isHTMLForm(tt)&&(tt=new FormData(tt)),ge.isFormData(tt))return Ie&&Ie?JSON.stringify(Fe(tt)):tt;if(ge.isArrayBuffer(tt)||ge.isBuffer(tt)||ge.isStream(tt)||ge.isFile(tt)||ge.isBlob(tt))return tt;if(ge.isArrayBufferView(tt))return tt.buffer;if(ge.isURLSearchParams(tt))return Ye.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),tt.toString();let at;if(je){if(ct.indexOf("application/x-www-form-urlencoded")>-1)return(it=tt,Mt=this.formSerializer,Oe(it,new ce.classes.URLSearchParams,Object.assign({visitor:function(Bt,nn,Ht,Xt){return ce.isNode&&ge.isBuffer(Bt)?(this.append(nn,Bt.toString("base64")),!1):Xt.defaultVisitor.apply(this,arguments)}},Mt))).toString();if((at=ge.isFileList(tt))||ct.indexOf("multipart/form-data")>-1){const it=this.env&&this.env.FormData;return Oe(at?{"files[]":tt}:tt,it&&new it,this.formSerializer)}}var it,Mt;return je||Ie?(Ye.setContentType("application/json",!1),function(it){if(ge.isString(it))try{return(0,JSON.parse)(it),ge.trim(it)}catch(nn){if("SyntaxError"!==nn.name)throw nn}return(0,JSON.stringify)(it)}(tt)):tt}],transformResponse:[function(tt){const Ye=this.transitional||yt.transitional,ct=Ye&&Ye.forcedJSONParsing,Ie="json"===this.responseType;if(tt&&ge.isString(tt)&&(ct&&!this.responseType||Ie)){const je=!(Ye&&Ye.silentJSONParsing)&&Ie;try{return JSON.parse(tt)}catch(at){if(je)throw"SyntaxError"===at.name?H.from(at,H.ERR_BAD_RESPONSE,this,null,this.response):at}}return tt}],timeout:0,xsrfCookieName:"XSRF-T