1"use strict";(self.webpackChunkCloudRek_Front=self.webpackChunkCloudRek_Front||[]).push([[8514],{40668:(sa,Le,W)=>{W.d(Le,{_:()=>We,H:()=>se});var X=W(54438),We=function(){function m(R,C,B){this.el=R,this.vcr=C,this.renderer=B,this.dtOptions={}}return m.prototype.ngOnInit=function(){var R=this;this.dtTrigger?this.dtTrigger.subscribe(function(C){R.displayTable(C)}):this.displayTable(null)},m.prototype.ngOnDestroy=function(){this.dtTrigger&&this.dtTrigger.unsubscribe(),this.dt&&this.dt.destroy(!0)},m.prototype.displayTable=function(R){var C=this;R&&(this.dtOptions=R),this.dtInstance=new Promise(function(B,j){Promise.resolve(C.dtOptions).then(function(w){0===Object.keys(w).length&&0===$("tbody tr",C.el.nativeElement).length?j("Both the table and dtOptions cannot be empty"):setTimeout(function(){var Q={rowCallback:function(H,T,ee){if(w.columns){var q=w.columns;C.applyNgPipeTransform(H,q),C.applyNgRefTemplate(H,q,T)}w.rowCallback&&w.rowCallback(H,T,ee)}};Q=Object.assign({},w,Q),C.dt=$(C.el.nativeElement).DataTable(Q),B(C.dt)})})})},m.prototype.applyNgPipeTransform=function(R,C){C.filter(function(j){return j.ngPipeInstance&&!j.ngTemplateRef}).forEach(function(j){var w=j.ngPipeInstance,F=j.ngPipeArgs||[],Q=C.findIndex(function(q){return q.data===j.data}),H=R.childNodes.item(Q),T=$(H).text(),ee=w.transform.apply(w,function(m,R,C){if(C||2===arguments.length)for(var w,B=0,j=R.length;B<j;B++)(w||!(B in R))&&(w||(w=Array.prototype.slice.call(R,0,B)),w[B]=R[B]);return m.concat(w||Array.prototype.slice.call(R))}([T],F,!1));$(H).text(ee)})},m.prototype.applyNgRefTemplate=function(R,C,B){var j=this;C.filter(function(F){return F.ngTemplateRef&&!F.ngPipeInstance}).forEach(function(F){var Q=F.ngTemplateRef,H=Q.ref,T=Q.context,ee=C.findIndex(function(Ie){return Ie.data===F.data}),q=R.childNodes.item(ee);$(q).html("");var Se=Object.assign({},T,T?.userData,{adtData:B}),He=j.vcr.createEmbeddedView(H,Se);j.renderer.appendChild(q,He.rootNodes[0])})},m.\u0275fac=function(C){return new(C||m)(X.rXU(X.aKT),X.rXU(X.c1b),X.rXU(X.sFG))},m.\u0275dir=X.FsC({type:m,selectors:[["","datatable",""]],inputs:{dtOptions:"dtOptions",dtTrigger:"dtTrigger"}}),m}(),fe=W(60177),se=function(){function m(){}return m.forRoot=function(){return{ngModule:m}},m.\u0275fac=function(C){return new(C||m)},m.\u0275mod=X.$C({type:m}),m.\u0275inj=X.G2t({imports:[[fe.MD]]}),m}()},76144:(sa,Le,W)=>{W.d(Le,{$j:()=>Xv,EE:()=>Yv});var X=W(10467),i=W(54438),We=W(345),fe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},se=function(e){return e&&e.Math==Math&&e},m=se("object"==typeof globalThis&&globalThis)||se("object"==typeof window&&window)||se("object"==typeof self&&self)||se("object"==typeof fe&&fe)||function(){return this}()||Function("return this")(),R={},C=function(e){try{return!!e()}catch{return!0}},j=!C(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),F=!C(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}),H=Function.prototype.call,T=F?H.bind(H):function(){return H.apply(H,arguments)},ee={},q={}.propertyIsEnumerable,Se=Object.getOwnPropertyDescriptor,He=Se&&!q.call({1:2},1);ee.f=He?function(t){var r=Se(this,t);return!!r&&r.enumerable}:q;var L,ge,Ie=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},it=F,ot=Function.prototype,Ve=ot.call,zt=it&&ot.bind.bind(Ve,Ve),D=it?function(e){return e&&zt(e)}:function(e){return e&&function(){return Ve.apply(e,arguments)}},kt=D,d=kt({}.toString),y=kt("".slice),a=function(e){return y(d(e),8,-1)},c=C,h=a,f=m.Object,b=D("".split),I=c(function(){return!f("z").propertyIsEnumerable(0)})?function(e){return"String"==h(e)?b(e,""):f(e)}:f,M=m.TypeError,k=function(e){if(null==e)throw M("Can't call method on "+e);return e},ce=I,re=k,U=function(e){return ce(re(e))},S=function(e){return"function"==typeof e},pe=S,z=function(e){return"object"==typeof e?null!==e:pe(e)},le=m,st=S,te=function(e,t){return arguments.length<2?function(e){return st(e)?e:void 0}(le[e]):le[e]&&le[e][t]},Me=D({}.isPrototypeOf),Ee=te("navigator","userAgent")||"",ve=Ee,de=m.process,Ge=m.Deno,ht=de&&de.versions||Ge&&Ge.version,ut=ht&&ht.v8;ut&&(ge=(L=ut.split("."))[0]>0&&L[0]<4?1:+(L[0]+L[1])),!ge&&ve&&(!(L=ve.match(/Edge\/(\d+)/))||L[1]>
vendor: 5,889 bytes, line 1
1=74)&&(L=ve.match(/Chrome\/(\d+)/))&&(ge=+L[1]);var ne=ge,ie=ne,ca=!!Object.getOwnPropertySymbols&&!C(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ie&&ie<41}),la=ca&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Qi=te,qi=S,Ji=Me,eo=m.Object,ha=la?function(e){return"symbol"==typeof e}:function(e){var t=Qi("Symbol");return qi(t)&&Ji(t.prototype,eo(e))},ro=m.String,ft=function(e){try{return ro(e)}catch{return"Object"}},no=S,io=ft,oo=m.TypeError,me=function(e){if(no(e))return e;throw oo(io(e)+" is not a function")},so=me,Xe=function(e,t){var r=e[t];return null==r?void 0:so(r)},Ft=T,Lt=S,Wt=z,lo=m.TypeError,pt={exports:{}},ua=m,uo=Object.defineProperty,Ht=function(e,t){try{uo(ua,e,{value:t,configurable:!0,writable:!0})}catch{ua[e]=t}return t},fa="__core-js_shared__",Vt=m[fa]||Ht(fa,{}),pa=Vt;(pt.exports=function(e,t){return pa[e]||(pa[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.2",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.2/LICENSE",source:"https://github.com/zloirock/core-js"});var mo=k,yo=m.Object,va=function(e){return yo(mo(e))},_o=va,bo=D({}.hasOwnProperty),oe=Object.hasOwn||function(t,r){return bo(_o(t),r)},Co=D,$o=0,wo=Math.random(),So=Co(1..toString),da=function(e){return"Symbol("+(void 0===e?"":e)+")_"+So(++$o+wo,36)},Io=m,ga=oe,Eo=da,ma=ca,ya=la,Ae=(0,pt.exports)("wks"),ye=Io.Symbol,xa=ye&&ye.for,Ro=ya?ye:ye&&ye.withoutSetter||Eo,V=function(e){if(!ga(Ae,e)||!ma&&"string"!=typeof Ae[e]){var t="Symbol."+e;Ae[e]=ma&&ga(ye,e)?ye[e]:ya&&xa?xa(t):Ro(t)}return Ae[e]},Oo=T,_a=z,ba=ha,To=Xe,Do=m.TypeError,No=V("toPrimitive"),zo=function(e,t){if(!_a(e)||ba(e))return e;var o,r=To(e,No);if(r){if(void 0===t&&(t="default"),o=Oo(r,e,t),!_a(o)||ba(o))return o;throw Do("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var r,o;if("string"===t&&Lt(r=e.toString)&&!Wt(o=Ft(r,e))||Lt(r=e.valueOf)&&!Wt(o=Ft(r,e))||"string"!==t&&Lt(r=e.toString)&&!Wt(o=Ft(r,e)))return o;throw lo("Can't convert object to primitive value")}(e,t)},ko=ha,Ca=function(e){var t=zo(e,"string");return ko(t)?t:t+""},$a=z,Gt=m.document,Fo=$a(Gt)&&$a(Gt.createElement),Xt=function(e){return Fo?Gt.createElement(e):{}},Ho=Xt,wa=!j&&!C(function(){return 7!=Object.defineProperty(Ho("div"),"a",{get:function(){return 7}}).a}),Go=T,Xo=ee,Yo=Ie,Ko=U,Qo=Ca,qo=oe,Jo=wa,Sa=Object.getOwnPropertyDescriptor;R.f=j?Sa:function(t,r){if(t=Ko(t),r=Qo(r),Jo)try{return Sa(t,r)}catch{}if(qo(t,r))return Yo(!Go(Xo.f,t,r),t[r])};var xe={},Ia=j&&C(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),ts=z,rs=m.String,as=m.TypeError,Y=function(e){if(ts(e))return e;throw as(rs(e)+" is not an object")},os=wa,vt=Y,Ea=Ca,cs=m.TypeError,Yt=Object.defineProperty,ls=Object.getOwnPropertyDescriptor,Kt="enumerable",Qt="configurable",qt="writable";xe.f=j?Ia?function(t,r,o){if(vt(t),r=Ea(r),vt(o),"function"==typeof t&&"prototype"===r&&"value"in o&&qt in o&&!o[qt]){var l=ls(t,r);l&&l[qt]&&(t[r]=o.value,o={configurable:Qt in o?o[Qt]:l[Qt],enumerable:Kt in o?o[Kt]:l[Kt],writable:!1})}return Yt(t,r,o)}:Yt:function(t,r,o){if(vt(t),r=Ea(r),vt(o),os)try{return Yt(t,r,o)}catch{}if("get"in o||"set"in o)throw cs("Accessors not supported");return"value"in o&&(t[r]=o.value),t};var us=xe,fs=Ie,dt=j?function(e,t,r){return us.f(e,t,fs(1,r))}:function(e,t,r){return e[t]=r,e},Oe={exports:{}},vs=S,Jt=Vt,ds=D(Function.toString);vs(Jt.inspectSource)||(Jt.inspectSource=function(e){return ds(e)});var mt,Ye,yt,gt=Jt.inspectSource,ys=gt,Ra=m.WeakMap,xs=S(Ra)&&/native code/.test(ys(Ra)),bs=da,Aa=(0,pt.exports)("keys"),Oa=function(e){return Aa[e]||(Aa[e]=bs(e))},Zt={},er=D,$s=z,ws=dt,tr=oe,Ss=Oa,Is=Zt,Pa="Object already initialized",ar=m.TypeError;if(xs||Vt.state){var _e=Vt.state||(Vt.state=new(0,m.WeakMap)),As=er(_e.get),ja=er(_e.has),Os=er(_e.set);mt=function(e,t){if(ja(_e,e))throw new ar(Pa);return t.facade=e,Os(_e,e,t),t},Ye=function(e){return As(_e,e)||{}},yt=function(e){return ja(_e,e)}}else{var Te=Ss("state");Is[Te]=!0,mt=function(e,t){if(tr(e,Te))throw new ar(Pa);return t.facade=e,ws(e,Te,t),t},Ye=function(e){return tr(e,Te)?e[Te]:{}},yt=function(e){return tr(e,Te)}}var nr={set:mt,get:Ye,has:yt,enforce:function(e){return yt(e)?Ye(e):mt(e,{})},getterFor:function(e){return function(t){var r;if(!$s(t)||(r=Ye(t)).type!==e)throw ar("Incompatible receiver, "+e+" required");return r}}},ir=j,Da=Function.prototype,Ps=ir&&Object.getOwnPropertyDescriptor,or=oe(Da,"name"),Ds=or&&(!ir||ir&&Ps(Da,"name").configurable),Bs=m,Na=S,zs=oe,Ba=dt,ks=Ht,Us=gt,Fs=Ds,Ls=nr.get,Ws=nr.enforce,Hs=String(String).split("String");(Oe.exports=function(e,t,r,o){var _,l=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,v=!!o&&!!o.noTargetGet,p=o&&void 0!==o.name?o.name:t;Na(r)&&("Symbol("===String(p).slice(0,7)&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!zs(r,"name")||Fs&&r.name!==p)&&Ba(r,"name",p),(_=Ws(r)).source||(_.source=Hs.join("string"==typeof p?p:""))),e!==Bs?(l?!v&&e[t]&&(u=!0):delete e[t],u?e[t]=r:Ba(e,t,r)):u?e[t]=r:ks(t,r)})(Function.prototype,"toString",function(){return Na(this)&&Ls(this).source||Us(this)});var ka={},Vs=Math.ceil,Gs=Math.floor,xt=function(e){var t=+e;return t!=t||0===t?0:(t>0?Gs:Vs)(t)},Xs=xt,Ys=Math.max,Ks=Math.min,qs=xt,Js=Math.min,Ke=function(e){return e>0?Js(qs(e),9007199254740991):0},Zs=Ke,Ua=function(e){return Zs(e.length)},ec=U,rc=Ua,Fa=function(e){return function(t,r,o){var p,l=ec(t),u=rc(l),v=function(e,t){var r=Xs(e);return r<0?Ys(r+t,0):Ks(r,t)}(o,u);if(e&&r!=r){for(;u>v;)if((p=l[v++])!=p)return!0}else for(;u>v;v++)if((e||v in l)&&l[v]===r)return e||v||0;return!e&&-1}},La={includes:Fa(!0),indexOf:Fa(!1)},sr=oe,nc=U,ic=La.indexOf,oc=Zt,Wa=D([].push),Ha=function(e,t){var u,r=nc(e),o=0,l=[];for(u in r)!sr(oc,u)&&sr(r,u)&&Wa(l,u);for(;t.length>
1o;)sr(r,u=t[o++])&&(~ic(l,u)||Wa(l,u));return l},cr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sc=Ha,lc=cr.concat("length","prototype");ka.f=Object.getOwnPropertyNames||function(t){return sc(t,lc)};var Va={};Va.f=Object.getOwnPropertySymbols;var hc=te,fc=ka,pc=Va,vc=Y,dc=D([].concat),gc=hc("Reflect","ownKeys")||function(t){var r=fc.f(vc(t)),o=pc.f;return o?dc(r,o(t)):r},Ga=oe,mc=gc,yc=R,xc=xe,bc=C,Cc=S,$c=/#|\.prototype\./,Qe=function(e,t){var r=Sc[wc(e)];return r==Mc||r!=Ic&&(Cc(t)?bc(t):!!t)},wc=Qe.normalize=function(e){return String(e).replace($c,".").toLowerCase()},Sc=Qe.data={},Ic=Qe.NATIVE="N",Mc=Qe.POLYFILL="P",Xa=Qe,lr=m,Ec=R.f,Rc=dt,Ac=Oe.exports,Oc=Ht,Tc=function(e,t,r){for(var o=mc(t),l=xc.f,u=yc.f,v=0;v<o.length;v++){var p=o[v];!Ga(e,p)&&(!r||!Ga(r,p))&&l(e,p,u(t,p))}},Pc=Xa,ae=function(e,t){var v,p,_,x,g,r=e.target,o=e.global,l=e.stat;if(v=o?lr:l?lr[r]||Oc(r,{}):(lr[r]||{}).prototype)for(p in t){if(x=t[p],_=e.noTargetGet?(g=Ec(v,p))&&g.value:v[p],!Pc(o?p:r+(l?".":"#")+p,e.forced)&&void 0!==_){if(typeof x==typeof _)continue;Tc(x,_)}(e.sham||_&&_.sham)&&Rc(x,"sham",!0),Ac(v,p,x,e)}},hr="process"==a(m.process),Nc=Oe.exports,zc=S,kc=m.String,Uc=m.TypeError,Lc=D,Wc=Y,Vc=Object.setPrototypeOf||("__proto__"in{}?function(){var r,e=!1,t={};try{(r=Lc(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(t,[]),e=t instanceof Array}catch{}return function(l,u){return Wc(l),function(e){if("object"==typeof e||zc(e))return e;throw Uc("Can't set "+kc(e)+" as a prototype")}(u),e?r(l,u):l.__proto__=u,l}}():void 0),Gc=xe.f,Xc=oe,Ka=V("toStringTag"),Qc=te,qc=xe,Zc=j,Qa=V("species"),rl=Me,al=m.TypeError,qa={};qa[V("toStringTag")]="z";var cl=m,ll="[object z]"===String(qa),hl=S,_t=a,fl=V("toStringTag"),pl=cl.Object,vl="Arguments"==_t(function(){return arguments}()),ur=ll?_t:function(e){var t,r,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch{}}(t=pl(e),fl))?r:vl?_t(t):"Object"==(o=_t(t))&&hl(t.callee)?"Arguments":o},gl=D,ml=C,Ja=S,yl=ur,_l=gt,Za=function(){},bl=[],en=te("Reflect","construct"),fr=/^\s*(?:class|function)\b/,Cl=gl(fr.exec),$l=!fr.exec(Za),qe=function(t){if(!Ja(t))return!1;try{return en(Za,bl,t),!0}catch{return!1}},tn=function(t){if(!Ja(t))return!1;switch(yl(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return $l||!!Cl(fr,_l(t))}catch{return!0}};tn.sham=!0;var Ze,be,yr,xr,wl=!en||ml(function(){var e;return qe(qe.call)||!qe(Object)||!qe(function(){e=!0})||e})?tn:qe,Il=wl,Ml=ft,El=m.TypeError,rn=Y,Tl=V("species"),an=Function.prototype,nn=an.apply,on=an.call,sn="object"==typeof Reflect&&Reflect.apply||(F?on.bind(nn):function(){return on.apply(nn,arguments)}),Dl=me,Nl=F,Bl=D(D.bind),pr=function(e,t){return Dl(e),void 0===t?e:Nl?Bl(e,t):function(){return e.apply(t,arguments)}},ln=te("document","documentElement"),Ul=D([].slice),Ll=m.TypeError,hn=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ee),K=m,Vl=sn,Gl=pr,un=S,Xl=oe,Yl=C,fn=ln,Kl=Ul,pn=Xt,ql=hn,Jl=hr,vr=K.setImmediate,dr=K.clearImmediate,Zl=K.process,gr=K.Dispatch,eh=K.Function,vn=K.MessageChannel,th=K.String,mr=0,Je={},dn="onreadystatechange";try{Ze=K.location}catch{}var _r=function(e){if(Xl(Je,e)){var t=Je[e];delete Je[e],t()}},br=function(e){return function(){_r(e)}},gn=function(e){_r(e.data)},mn=function(e){K.postMessage(th(e),Ze.protocol+"//"+Ze.host)};(!vr||!dr)&&(vr=function(t){!function(e,t){if(e<t)throw Ll("Not enough arguments")}(arguments.length,1);var r=un(t)?t:eh(t),o=Kl(arguments,1);return Je[++mr]=function(){Vl(r,void 0,o)},be(mr),mr},dr=function(t){delete Je[t]},Jl?be=function(e){Zl.nextTick(br(e))}:gr&&gr.now?be=function(e){gr.now(br(e))}:vn&&!ql?(xr=(yr=new vn).port2,yr.port1.onmessage=gn,be=Gl(xr.postMessage,xr)):K.addEventListener&&un(K.postMessage)&&!K.importScripts&&Ze&&"file:"!==Ze.protocol&&!Yl(mn)?(be=mn,K.addEventListener("message",gn,!1)):be=dn in pn("script")?function(e){fn.appendChild(pn("script"))[dn]=function(){fn.removeChild(this),_r(e)}}:function(e){setTimeout(br(e),0)});var et,$e,tt,Pe,wr,Sr,Ct,Sn,yn={set:vr,clear:dr},ah=m,nh=/ipad|iphone|ipod/i.test(Ee)&&void 0!==ah.Pebble,oh=/web0s(?!.*chrome)/i.test(Ee),Ce=m,xn=pr,Cr=yn.set,ch=hn,lh=nh,hh=oh,$r=hr,_n=Ce.MutationObserver||Ce.WebKitMutationObserver,bn=Ce.document,Cn=Ce.process,bt=Ce.Promise,$n=(0,R.f)(Ce,"queueMicrotask"),wn=$n&&$n.value;wn||(et=function(){var e,t;for($r&&(e=Cn.domain)&&e.exit();$e;){t=$e.fn,$e=$e.next;try{t()}catch(r){throw $e?Pe():tt=void 0,r}}tt=void 0,e&&e.enter()},ch||$r||hh||!_n||!bn?!lh&&bt&&bt.resolve?((Ct=bt.resolve(void 0)).constructor=bt,Sn=xn(Ct.then,
1Ct),Pe=function(){Sn(et)}):$r?Pe=function(){Cn.nextTick(et)}:(Cr=xn(Cr,Ce),Pe=function(){Cr(et)}):(wr=!0,Sr=bn.createTextNode(""),new _n(et).observe(Sr,{characterData:!0}),Pe=function(){Sr.data=wr=!wr}));var uh=wn||function(e){var t={fn:e,next:void 0};tt&&(tt.next=t),$e||($e=t,Pe()),tt=t},fh=m,Ir=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},In=function(){this.head=null,this.tail=null};In.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}};var vh=In,$t=m.Promise,gh="object"==typeof window&&"object"!=typeof Deno,mh=m,rt=$t,yh=S,xh=Xa,_h=gt,Ch=gh,Mn=ne,$h=V("species"),Mr=!1,En=yh(mh.PromiseRejectionEvent),wh=xh("Promise",function(){var e=_h(rt),t=e!==String(rt);if(!t&&66===Mn)return!0;if(Mn>=51&&/native code/.test(e))return!1;var r=new rt(function(u){u(1)}),o=function(u){u(function(){},function(){})};return(r.constructor={})[$h]=o,!(Mr=r.then(function(){})instanceof o)||!t&&Ch&&!En}),at={CONSTRUCTOR:wh,REJECTION_EVENT:En,SUBCLASSING:Mr},je={},Rn=me,Sh=function(e){var t,r;this.promise=new e(function(o,l){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=o,r=l}),this.resolve=Rn(t),this.reject=Rn(r)};je.f=function(e){return new Sh(e)};var Rt,Un,Fn,Ih=ae,wt=hr,he=m,De=T,Mh=Oe.exports,An=Vc,Oh=me,St=S,Th=z,jh=function(e,t){var o,r=rn(e).constructor;return void 0===r||null==(o=rn(r)[Tl])?t:function(e){if(Il(e))return e;throw El(Ml(e)+" is not a constructor")}(o)},On=yn.set,Er=uh,Nh=Ir,Bh=vh,Tn=nr,It=$t,Pn=je,Mt="Promise",jn=at.CONSTRUCTOR,zh=at.REJECTION_EVENT,kh=at.SUBCLASSING,Ar=Tn.getterFor(Mt),Uh=Tn.set,Ne=It&&It.prototype,we=It,Et=Ne,Dn=he.TypeError,Or=he.document,Tr=he.process,Pr=Pn.f,Fh=Pr,Lh=!!(Or&&Or.createEvent&&he.dispatchEvent),Nn="unhandledrejection",Ln=function(e){var t;return!(!Th(e)||!St(t=e.then))&&t},Wn=function(e,t){var _,x,g,r=t.value,o=1==t.state,l=o?e.ok:e.fail,u=e.resolve,v=e.reject,p=e.domain;try{l?(o||(2===t.rejection&&Xh(t),t.rejection=1),!0===l?_=r:(p&&p.enter(),_=l(r),p&&(p.exit(),g=!0)),_===e.promise?v(Dn("Promise-chain cycle")):(x=Ln(_))?De(x,_,u,v):u(_)):v(r)}catch(A){p&&!g&&p.exit(),v(A)}},Hn=function(e,t){e.notified||(e.notified=!0,Er(function(){for(var o,r=e.reactions;o=r.get();)Wn(o,e);e.notified=!1,t&&!e.rejection&&Gh(e)}))},Vn=function(e,t,r){var o,l;Lh?((o=Or.createEvent("Event")).promise=t,o.reason=r,o.initEvent(e,!1,!0),he.dispatchEvent(o)):o={promise:t,reason:r},!zh&&(l=he["on"+e])?l(o):e===Nn&&function(e,t){var r=fh.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}("Unhandled promise rejection",r)},Gh=function(e){De(On,he,function(){var l,t=e.facade,r=e.value;if(Gn(e)&&(l=Nh(function(){wt?Tr.emit("unhandledRejection",r,t):Vn(Nn,t,r)}),e.rejection=wt||Gn(e)?2:1,l.error))throw l.value})},Gn=function(e){return 1!==e.rejection&&!e.parent},Xh=function(e){De(On,he,function(){var t=e.facade;wt?Tr.emit("rejectionHandled",t):Vn("rejectionhandled",t,e.value)})},Be=function(e,t,r){return function(o){e(t,o,r)}},ze=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Hn(e,!0))},Dr=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Dn("Promise can't be resolved itself");var o=Ln(t);o?Er(function(){var l={done:!1};try{De(o,t,Be(Dr,l,e),Be(ze,l,e))}catch(u){ze(l,u,e)}}):(e.value=t,e.state=1,Hn(e,!1))}catch(l){ze({done:!1},l,e)}}};if(jn&&(we=function(t){(function(e,t){if(rl(t,e))return e;throw al("Incorrect invocation")})(this,Et),Oh(t),De(Rt,this);var r=Ar(this);try{t(Be(Dr,r),Be(ze,r))}catch(o){ze(r,o)}},(Rt=function(t){Uh(this,{type:Mt,done:!1,notified:!1,parent:!1,reactions:new Bh,rejection:!1,state:0,value:void 0})}).prototype=function(e,t,r){for(var o in t)Nc(e,o,t[o],r);return e}(Et=we.prototype,{then:function(t,r){var o=Ar(this),l=Pr(jh(this,we));return o.parent=!0,l.ok=!St(t)||t,l.fail=St(r)&&r,l.domain=wt?Tr.domain:void 0,0==o.state?o.reactions.add(l):Er(function(){Wn(l,o)}),l.promise}}),Un=function(){var e=new Rt,t=Ar(e);this.promise=e,this.resolve=Be(Dr,t),this.reject=Be(ze,t)},Pn.f=Pr=function(e){return e===we||void 0===e?new Un(e):Fh(e)},St(It)&&Ne!==Object.prototype)){Fn=Ne.then,kh||Mh(Ne,"then",function(t,r){var o=this;return new we(function(l,u){De(Fn,o,l,u)}).then(t,r)},{unsafe:!0});try{delete Ne.constructor}catch{}An&&An(Ne,Et)}
1Ih({global:!0,wrap:!0,forced:jn},{Promise:we}),function(e,t,r){e&&!r&&(e=e.prototype),e&&!Xc(e,Ka)&&Gc(e,Ka,{configurable:!0,value:t})}(we,Mt,!1),function(e){var t=Qc(e);Zc&&t&&!t[Qa]&&(0,qc.f)(t,Qa,{configurable:!0,get:function(){return this}})}(Mt);var Xn={},Kh=Xn,Qh=V("iterator"),qh=Array.prototype,Zh=ur,Yn=Xe,eu=Xn,ru=V("iterator"),Kn=function(e){if(null!=e)return Yn(e,ru)||Yn(e,"@@iterator")||eu[Zh(e)]},nu=T,iu=me,ou=Y,su=ft,cu=Kn,lu=m.TypeError,uu=T,Qn=Y,fu=Xe,du=pr,gu=T,mu=Y,yu=ft,_u=Ua,qn=Me,Cu=Kn,Jn=function(e,t,r){var o,l;Qn(e);try{if(!(o=fu(e,"return"))){if("throw"===t)throw r;return r}o=uu(o,e)}catch(u){l=!0,o=u}if("throw"===t)throw r;if(l)throw o;return Qn(o),r},$u=m.TypeError,At=function(e,t){this.stopped=e,this.result=t},Zn=At.prototype,ei=function(e,t,r){var _,x,g,A,O,P,J,l=!(!r||!r.AS_ENTRIES),u=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),p=du(t,r&&r.that),G=function(N){return _&&Jn(_,"normal",N),new At(!0,N)},Z=function(N){return l?(mu(N),v?p(N[0],N[1],G):p(N[0],N[1])):v?p(N,G):p(N)};if(u)_=e;else{if(!(x=Cu(e)))throw $u(yu(e)+" is not iterable");if(function(e){return void 0!==e&&(Kh.Array===e||qh[Qh]===e)}(x)){for(g=0,A=_u(e);A>g;g++)if((O=Z(e[g]))&&qn(Zn,O))return O;return new At(!1)}_=function(e,t){var r=arguments.length<2?cu(e):t;if(iu(r))return ou(nu(r,e));throw lu(su(e)+" is not iterable")}(e,x)}for(P=_.next;!(J=gu(P,_)).done;){try{O=Z(J.value)}catch(N){Jn(_,"throw",N)}if("object"==typeof O&&O&&qn(Zn,O))return O}return new At(!1)},ti=V("iterator"),ri=!1;try{var Su=0,ai={next:function(){return{done:!!Su++}},return:function(){ri=!0}};ai[ti]=function(){return this},Array.from(ai,function(){throw 2})}catch{}var Mu=$t,ni=at.CONSTRUCTOR||!function(e,t){if(!t&&!ri)return!1;var r=!1;try{var o={};o[ti]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch{}return r}(function(e){Mu.all(e).then(void 0,function(){})}),Ou=T,Tu=me,Pu=je,ju=Ir,Du=ei;ae({target:"Promise",stat:!0,forced:ni},{all:function(t){var r=this,o=Pu.f(r),l=o.resolve,u=o.reject,v=ju(function(){var p=Tu(r.resolve),_=[],x=0,g=1;Du(t,function(A){var O=x++,P=!1;g++,Ou(p,r,A).then(function(J){P||(P=!0,_[O]=J,--g||l(_))},u)}),--g||l(_)});return v.error&&u(v.value),o.promise}});var Nr=$t,ku=te,Uu=S,Fu=Oe.exports,ii=Nr&&Nr.prototype;if(ae({target:"Promise",proto:!0,forced:at.CONSTRUCTOR,real:!0},{catch:function(e){return this.then(void 0,e)}}),Uu(Nr)){var oi=ku("Promise").prototype.catch;ii.catch!==oi&&Fu(ii,"catch",oi,{unsafe:!0})}var Wu=T,Hu=me,Vu=je,Gu=Ir,Xu=ei;ae({target:"Promise",stat:!0,forced:ni},{race:function(t){var r=this,o=Vu.f(r),l=o.reject,u=Gu(function(){var v=Hu(r.resolve);Xu(t,function(p){Wu(v,r,p).then(o.resolve,l)})});return u.error&&l(u.value),o.promise}});var Qu=T,qu=je;ae({target:"Promise",stat:!0,forced:at.CONSTRUCTOR},{reject:function(t){var r=qu.f(this);return Qu(r.reject,void 0,t),r.promise}});var Zu=Y,ef=z,tf=je,af=ae,of=at.CONSTRUCTOR;te("Promise"),af({target:"Promise",stat:!0,forced:of},{resolve:function(t){return function(e,t){if(Zu(e),ef(t)&&t.constructor===e)return t;var r=tf.f(e);return(0,r.resolve)(t),r.promise}(this,t)}});var lf=ur,hf=m.String,ke=function(e){if("Symbol"===lf(e))throw TypeError("Cannot convert a Symbol value to a string");return hf(e)},uf=Y,Br=C,zr=m.RegExp,kr=Br(function(){var e=zr("a","y");return e.lastIndex=2,null!=e.exec("abcd")}),vf=kr||Br(function(){return!zr("a","y").sticky}),df=kr||Br(function(){var e=zr("^r","gy");return e.lastIndex=2,null!=e.exec("str")}),gf={BROKEN_CARET:df,MISSED_STICKY:vf,UNSUPPORTED_Y:kr},si={},mf=Ha,yf=cr,xf=Object.keys||function(t){return mf(t,yf)},Cf=xe,$f=Y,wf=U,Sf=xf;si.f=j&&!Ia?Object.defineProperties:function(t,r){$f(t);for(var p,o=wf(r),l=Sf(r),u=l.length,v=0;u>v;)Cf.f(t,p=l[v++],o[p]);return t};var Ot,If=Y,Mf=si,ci=cr,Ef=Zt,Rf=ln,Af=Xt,Ur="prototype",ui=Oa("IE_PROTO"),Lr=function(){},fi=function(e){return"<script>"+e+"<\/script>"},pi=function(e){e.write(fi("")),e.close();var t=e.parentWindow.Object;return e=null,t},Tt=function(){try{Ot=new ActiveXObject("htmlfile")}catch{}Tt=typeof document<"u"?document.domain&&Ot?pi(Ot):function(){var r,e=Af("iframe");return e.style.display="none",Rf.appendChild(e),e.src=String("javascript:"),(r=e.contentWindow.document).open(),r.write(fi("document.F=Object")),r.close(),r.F}():pi(Ot);for(var e=ci.length;e--;)delete Tt[Ur][ci[e]];return Tt()};Ef[ui]=!0;var e,t,vi=Object.create||function(t,r){var o;return null!==t?(Lr[Ur]=If(t),o=new Lr,Lr[Ur]=null,o[ui]=t):o=Tt(),void 0===r?o:Mf.f(o,r)},Df=m.RegExp,Nf=C(function(){var e=Df(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}),kf=m.RegExp,Uf=C(function(){var e=kf("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}),Ue=T,Pt=D,Ff=ke,Lf=function(){var e=uf(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Wf=gf,Vf=vi,Gf=nr.get,Xf=Nf,Yf=Uf,Kf=(0,pt.exports)("native-string-replace",String.prototype.replace),jt=RegExp.prototype.exec,Wr=jt,Qf=Pt("".charAt),qf=Pt("".indexOf),Jf=Pt("".replace),Hr=Pt("".slice),Vr=(t=/b*/g,Ue(jt,e=/a/,"a"),Ue(jt,t,"a"),0!==e.lastIndex||0!==t.lastIndex),di=Wf.BROKEN_CARET,Gr=void 0!==/()??/.exec("")[1];(Vr||Gr||di||Xf||Yf)&&(Wr=function(t){var v,p,_,x,g,A,O,r=this,o=Gf(r),l=Ff(t),u=o.raw;if(u)return u.lastIndex=r.lastIndex,v=Ue(Wr,u,l),r.lastIndex=u.lastIndex,v;var P=o.groups,J=di&&r.sticky,G=Ue(Lf,r),Z=r.source,N=0,ue=l;if(J&&(G=Jf(G,"y",""),-1===qf(G,"g")&&(G+="g"),ue=Hr(l,r.lastIndex),r.lastIndex>0&&(!r.multiline||r.multiline&&"\n"!==Qf(l,r.lastIndex-1))&&(Z="(?: "+Z+")",ue=" "+ue,N++),p=new RegExp("^(?:"+Z+")",G)),Gr&&(p=new RegExp("^"+Z+"$(?!\\s)",G)),Vr&&(_=r.lastIndex),x=Ue(jt,J?p:r,ue),J?x?(x.input=Hr(x.input,N),x[0]=Hr(x[0],N),x.index=r.lastIndex,r.lastIndex+=x[0].length):r.lastIndex=0:Vr&&x&&(r.lastIndex=r.global?x.index+x[0].length:_),Gr&&x&&x.length>1&&Ue(Kf,x[0],p,function(){for(g=1;g<arguments.length-2;g++)void 0===arguments[g]&&(x[g]=void 0)}),x&&P)for(x.groups=A=Vf(null),g=0;g<P.length;g++)A[(O=P[g])[0]]=x[O[1]];return x});var Xr=Wr;ae({target:"RegExp",proto:!0,forced:/./.exec!==Xr},{exec:Xr});var mi=D,yi=Oe.exports,tp=Xr,xi=C,_i=V,rp=dt,ap=_i("species"),Yr=
1RegExp.prototype,bi=function(e,t,r,o){var l=_i(e),u=!xi(function(){var x={};return x[l]=function(){return 7},7!=""[e](x)}),v=u&&!xi(function(){var x=!1,g=/a/;return"split"===e&&((g={}).constructor={},g.constructor[ap]=function(){return g},g.flags="",g[l]=/./[l]),g.exec=function(){return x=!0,null},g[l](""),!x});if(!u||!v||r){var p=mi(/./[l]),_=t(l,""[e],function(x,g,A,O,P){var J=mi(x),G=g.exec;return G===tp||G===Yr.exec?u&&!P?{done:!0,value:p(g,A,O)}:{done:!0,value:J(A,g,O)}:{done:!1}});yi(String.prototype,e,_[0]),yi(Yr,l,_[1])}o&&rp(Yr[l],"sham",!0)},Kr=D,np=xt,ip=ke,op=k,sp=Kr("".charAt),Ci=Kr("".charCodeAt),cp=Kr("".slice),$i=function(e){return function(t,r){var v,p,o=ip(op(t)),l=np(r),u=o.length;return l<0||l>=u?e?"":void 0:(v=Ci(o,l))<55296||v>56319||l+1===u||(p=Ci(o,l+1))<56320||p>57343?e?sp(o,l):v:e?cp(o,l,l+2):p-56320+(v-55296<<10)+65536}},hp=($i(!1),$i(!0)),wi=function(e,t,r){return t+(r?hp(e,t).length:1)},Si=T,fp=Y,pp=S,vp=a,dp=Xr,gp=m.TypeError,Ii=function(e,t){var r=e.exec;if(pp(r)){var o=Si(r,e,t);return null!==o&&fp(o),o}if("RegExp"===vp(e))return Si(dp,e,t);throw gp("RegExp#exec called on incompatible receiver")},mp=T,xp=Y,_p=Ke,Qr=ke,bp=k,Cp=Xe,$p=wi,Mi=Ii;bi("match",function(e,t,r){return[function(l){var u=bp(this),v=null==l?void 0:Cp(l,e);return v?mp(v,l,u):new RegExp(l)[e](Qr(u))},function(o){var l=xp(this),u=Qr(o),v=r(t,l,u);if(v.done)return v.value;if(!l.global)return Mi(l,u);var p=l.unicode;l.lastIndex=0;for(var g,_=[],x=0;null!==(g=Mi(l,u));){var A=Qr(g[0]);_[x]=A,""===A&&(l.lastIndex=$p(u,_p(l.lastIndex),p)),x++}return 0===x?null:_}]});var qr=D,wp=va,Sp=Math.floor,Jr=qr("".charAt),Ip=qr("".replace),Zr=qr("".slice),Mp=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ep=/\$([$&'`]|\d{1,2})/g,Ap=sn,Ei=T,Dt=D,Op=bi,Tp=C,Pp=Y,jp=S,Dp=xt,Np=Ke,Fe=ke,Bp=k,zp=wi,kp=Xe,Up=function(e,t,r,o,l,u){var v=r+e.length,p=o.length,_=Ep;return void 0!==l&&(l=wp(l),_=Mp),Ip(u,_,function(x,g){var A;switch(Jr(g,0)){case"$":return"$";case"&":return e;case"`":return Zr(t,0,r);case"'":return Zr(t,v);case"<":A=l[Zr(g,1,-1)];break;default:var O=+g;if(0===O)return x;if(O>p){var P=Sp(O/10);return 0===P?x:P<=p?void 0===o[P-1]?Jr(g,1):o[P-1]+Jr(g,1):x}A=o[O-1]}return void 0===A?"":A})},Fp=Ii,ea=V("replace"),Wp=Math.max,Hp=Math.min,Vp=Dt([].concat),ta=Dt([].push),Ri=Dt("".indexOf),Ai=Dt("".slice),Gp=function(e){return void 0===e?e:String(e)},Xp="$0"==="a".replace(/./,"$0"),Oi=!!/./[ea]&&""===/./[ea]("a","$0"),Yp=!Tp(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(e,"$<a>")});Op("replace",function(e,t,r){var o=Oi?"$":"$0";return[function(u,v){var p=Bp(this),_=null==u?void 0:kp(u,ea);return _?Ei(_,u,p,v):Ei(t,Fe(p),u,v)},function(l,u){var v=Pp(this),p=Fe(l);if("string"==typeof u&&-1===Ri(u,o)&&-1===Ri(u,"$<")){var _=r(t,v,p,u);if(_.done)return _.value}var x=jp(u);x||(u=Fe(u));var g=v.global;if(g){var A=v.unicode;v.lastIndex=0}for(var O=[];;){var P=Fp(v,p);if(null===P||(ta(O,P),!g))break;""===Fe(P[0])&&(v.lastIndex=zp(p,Np(v.lastIndex),A))}for(var G="",Z=0,N=0;N<O.length;N++){for(var ue=Fe((P=O[N])[0]),nt=Wp(Hp(Dp(P.index),p.length),0),na=[],ia=1;ia<P.length;ia++)ta(na,Gp(P[ia]));var oa=P.groups;if(x){var Vi=Vp([ue],na,nt,p);void 0!==oa&&ta(Vi,oa);var Gi=Fe(Ap(u,void 0,Vi))}else Gi=Up(ue,p,nt,na,oa,u);nt>=Z&&(G+=Ai(p,Z,nt)+Gi,Z=nt+ue.length)}return G+Ai(p,Z)}]},!Yp||!Xp||Oi);var Kp=z,Qp=a,Jp=V("match"),rv=m.TypeError,Ti=function(e){if(function(e){var t;return Kp(e)&&(void 0!==(t=e[Jp])?!!t:"RegExp"==Qp(e))}(e))throw rv("The method doesn't accept regular expressions");return e},nv=V("match"),Pi=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[nv]=!1,"/./"[e](t)}catch{}}return!1},iv=ae,ji=D,ov=R.f,sv=Ke,Di=ke,cv=Ti,lv=k,hv=Pi,Ni=ji("".startsWith),uv=ji("".slice),fv=Math.min,Bi=hv("startsWith"),pv=!Bi&&!!function(){var e=ov(String.prototype,"startsWith");return e&&!e.writable}();iv({target:"String",proto:!0,forced:!pv&&!Bi},{startsWith:function(t){var r=Di(lv(this));cv(t);var o=sv(fv(arguments.length>1?arguments[1]:void 0,r.length)),l=Di(t);return Ni?Ni(r,l,o):uv(r,o,o+l.length)===l}});var dv=vi,gv=xe,ra=V("unscopables"),aa=Array.prototype;null==aa[ra]&&gv.f(aa,ra,{configurable:!0,value:dv(null)});var xv=La.includes;ae({target:"Array",proto:!0},{includes:function(t){return xv(this,t,arguments.length>1?arguments[1]:void 0)}}),function(e){aa[ra][e]=!0}("includes");var bv=ae,zi=D,Cv=R.f,$v=Ke,ki=ke,wv=Ti,Sv=k,Iv=Pi,Ui=zi("".endsWith),Mv=zi("".slice),Ev=Math.min,Fi=Iv("endsWith"),Rv=!Fi&&!!function(){var e=Cv(String.prototype,"endsWith");return e&&!e.writable}();bv({target:"String",proto:!0,forced:!Rv&&!Fi},{endsWith:function(t){var r=ki(Sv(this));wv(t);var o=arguments.length>1?arguments[1]:void 0,l=r.length,u=void 0===o?l:Ev($v(o),l),v=ki(t);return Ui?Ui(r,v,u):Mv(r,u-v.length,u)===v}});const Nt=e=>{const t=e.match(/^(https?\:)\/\/(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);return t&&{href:e,protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]}},Pv=e=>function Av(e,t,r,o){return new(r||(r=Promise))(function(u,v){function p(g){try{x(o.next(g))}catch(A){v(A)}}function _(g){try{x(o.throw(g))}catch(A){v(A)}}function x(g){g.done?u(g.value):function l(u){return u instanceof r?u:new r(function(v){v(u)})}(g.value).then(p,_)}x((o=o.apply(e,t||[])).next())})}(void 0,void 0,void 0,function*(){mammoth||console.error("Please install mammoth and make sure mammoth.browser.min.js is loaded.");const t=yield(e=>
1new Promise((t,r)=>{try{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=()=>{const l=new FileReader;l.readAsArrayBuffer(o.response),l.onloadend=()=>{t(l.result)}},o.send()}catch{r(`error while retrieving file ${e}.`)}}))(e);return(yield mammoth.convertToHtml({arrayBuffer:t})).value}),Li=e=>{var t;let r=!1;try{r=Dv()?!(null!==(t=e?.contentWindow)&&void 0!==t&&t.document):!e?.contentDocument}catch{}return r},Dv=()=>/MSIE (\d+\.\d+);/.test(navigator.userAgent)||navigator.userAgent.indexOf("Trident/")>-1,Wi=(e,t="google",r="",o="")=>{switch(t){case"google":o="https://docs.google.com/gview?url=%URL%&embedded=true";break;case"office":o="https://view.officeapps.live.com/op/embed.aspx?src=%URL%";break;case"pdf":o=""}const l="google"===t||"office"===t||"url"===t,u=e?.indexOf("/")?encodeURIComponent(e):e;let v=o?o.replace("%URL%",u):e;return r&&l&&"url"!==t&&(v=`${v}${r.startsWith("&")?"":"&"}${r}`),{url:v,externalViewer:l}};var Hi=W(60177);const kv=["iframe"];function Uv(e,t){if(1&e&&i.nrm(0,"div",4),2&e){const r=i.XpG(2);i.Y8G("innerHtml",r.docHtml,i.npT)}}function Fv(e,t){if(1&e&&(i.j41(0,"object",5)(1,"p"),i.EFF(2," Your browser does not support PDFs. "),i.j41(3,"a",6),i.EFF(4,"Download the PDF"),i.k0s(),i.EFF(5,". "),i.k0s()()),2&e){const r=i.XpG(2);i.Y8G("data",r.fullUrl,i.f$h),i.R7$(3),i.Y8G("href",r.fullUrl,i.B4B)}}function Lv(e,t){if(1&e&&(i.qex(0),i.DNE(1,Uv,1,1,"div",2)(2,Fv,6,2,"object",3),i.bVm()),2&e){const r=i.XpG();i.R7$(),i.Y8G("ngIf","pdf"!==r.configuredViewer),i.R7$(),i.Y8G("ngIf",r.fullUrl&&"pdf"===r.configuredViewer)}}function Wv(e,t){if(1&e){const r=i.RV6();i.j41(0,"iframe",9,0),i.bIt("load",function(){i.eBV(r);const l=i.XpG(2);return i.Njj(l.iframeLoaded())}),i.k0s()}if(2&e){const r=i.XpG(2);i.Y8G("src",r.fullUrl,i.f$h)}}function Hv(e,t){if(1&e){const r=i.RV6();i.j41(0,"iframe",12,0),i.bIt("load",function(){i.eBV(r);const l=i.XpG(3);return i.Njj(l.iframeLoaded())}),i.k0s()}if(2&e){const r=i.XpG(3);i.Y8G("src",r.fullUrl,i.f$h)}}function Vv(e,t){if(1&e&&(i.j41(0,"div",10),i.nrm(1,"div"),i.DNE(2,Hv,2,1,"iframe",11),i.k0s()),2&e){const r=i.XpG(2);i.R7$(),i.xc7("background-color","popout-hide"===r.disableContent?"#fff":"transparent"),i.AVh("overlay-full","all"===r.disableContent)("overlay-popout-google","google"===r.configuredViewer&&("popout"===r.disableContent||"popout-hide"===r.disableContent))("overlay-popout-office","office"===r.configuredViewer&&("popout"===r.disableContent||"popout-hide"===r.disableContent)),i.R7$(),i.Y8G("ngIf",r.fullUrl)}}function Gv(e,t){if(1&e&&(i.qex(0),i.DNE(1,Wv,2,1,"iframe",7)(2,Vv,3,9,"div",8),i.bVm()),2&e){const r=i.XpG();i.R7$(),i.Y8G("ngIf",r.fullUrl&&"none"===r.disableContent),i.R7$(),i.Y8G("ngIf","none"!==r.disableContent)}}let Xv=(()=>{class e{constructor(r,o){this.domSanitizer=r,this.ngZone=o,this.loaded=new i.bkB,this.url="",this.queryParams="",this.viewerUrl="",this.googleCheckInterval=3e3,this.googleMaxChecks=5,this.disableContent="none",this.googleCheckContentLoaded=!0,this.viewer="google",this.overrideLocalhost="",this.iframes=void 0,this.fullUrl=void 0,this.externalViewer=!1,this.docHtml="",this.configuredViewer="google",this.checkIFrameSubscription=void 0,this.shouldCheckIframe=!1}ngAfterViewInit(){if(this.shouldCheckIframe){const r=this.iframes?.first?.nativeElement;r&&(this.shouldCheckIframe=!1,this.reloadIframe(r))}}ngOnDestroy(){this.checkIFrameSubscription&&this.checkIFrameSubscription.unsubscribe()}ngOnChanges(r){var o=this;return(0,X.A)(function*(){if(r&&r.viewer&&(r.viewer.isFirstChange||r.viewer.currentValue!==r.viewer.previousValue)&&("google"!==o.viewer&&"office"!==o.viewer&&"mammoth"!==o.viewer&&"pdf"!==o.viewer&&"url"!==o.viewer&&console.error(`Unsupported viewer: '${o.viewer}'. Supported viewers: google, office, mammoth and pdf`),o.configuredViewer=o.viewer),r.url&&r.url.currentValue!==r.url.previousValue||r.viewer&&r.viewer.currentValue!==r.viewer.previousValue||r.viewerUrl&&r.viewerUrl.currentValue!==r.viewerUrl.previousValue){let l=Wi(o.url,o.configuredViewer,o.queryParams,o.viewerUrl);if(o.externalViewer=l.externalViewer,l.externalViewer&&o.overrideLocalhost&&(e=>{const t=Nt(e),r=t?.hostname||"";return["localhost","127.0.0.1","","::1"].includes(r)||r.startsWith("192.168.")||r.startsWith("10.0.")||r.endsWith(".local")})(o.url)){const u=((e,t)=>{const r=Nt(e),o=Nt(t);return r&&o?e.replace(r.port?`${r.hostname}:${r.port}`:r.hostname,o.port?`${o.hostname}:${o.port}`:o.hostname):e})(o.url,o.overrideLocalhost);l=Wi(u,o.configuredViewer,o.queryParams,o.viewerUrl)}o.docHtml="",o.checkIFrameSubscription&&o.checkIFrameSubscription.unsubscribe(),o.url?l.externalViewer||"url"===o.configuredViewer||"pdf"===o.configuredViewer?(o.fullUrl=o.domSanitizer.bypassSecurityTrustResourceUrl(l.url),"google"===o.configuredViewer&&o.googleCheckContentLoaded&&o.ngZone.runOutsideAngular(()=>{const u=o.iframes?.first?.nativeElement;u?o.reloadIframe(u):o.shouldCheckIframe=!0})):"mammoth"===o.configuredViewer&&(o.docHtml=yield Pv(o.url)):o.fullUrl=void 0}})()}reloadIframe(r){this.checkIFrameSubscription=(()=>{let e=null,t=0;return{subscribe:(r,o=3e3,l=5)=>{if(!Li(r))return e=setInterval(()=>{t++,t>=l&&clearInterval(e),(e=>{if(e){const t=e.src;e.src="about:blank",setTimeout(()=>{e&&(e.src=t)},100)}})(r)},o),e;e&&clearInterval(e)},unsubscribe:()=>{e&&clearInterval(e)}}})(),this.checkIFrameSubscription.subscribe(r,this.googleCheckInterval,this.googleMaxChecks)}iframeLoaded(){const r=this.iframes?.first?.nativeElement;r&&Li(r)&&(this.loaded.emit(void 0),this.checkIFrameSubscription&&this.checkIFrameSubscription.unsubscribe())}}return e.\u0275fac=function(r){return new(r||e)(i.rXU(We.up),i.rXU(i.SKi))},e.\u0275cmp=i.VBU({type:e,selectors:[["ngx-doc-viewer"]],viewQuery:function(r,o){if(1&r&&i.GBs(kv,5),2&r){let l;i.mGM(l=i.lsd())&&(o.iframes=l)}},inputs:{url:"url",queryParams:"queryParams",viewerUrl:"viewerUrl",googleCheckInterval:"googleCheckInterval",googleMaxChecks:"googleMaxChecks",disableContent:"disableContent",googleCheckContentLoaded:"googleCheckContentLoaded",viewer:"viewer",overrideLocalhost:"overrideLocalhost"},outputs:{loaded:"loaded"},features:[i.OA$],decls:2,vars:2,consts:[["iframe",""],[4,"ngIf"],[3,"innerHtml",4,"ngIf"],["type","application/pdf","width","100%","height","100%",3,"data",4,"ngIf"],[3,"innerHtml"],["type","application/pdf","width","100%","height","100%",3,"data"],[3,"href"],["id","iframe-doc-viewer","frameBorder","0",3,"src","load",4,"ngIf"],["class","container",4,"ngIf"],["id","iframe-doc-viewer","frameBorder","0",3,"load","src"],[1,"container"],["id","iframe","frameBorder","0",3,"src","load",4,"ngIf"],["id","iframe","frameBorder","0",3,"load","src"]],template:function(r,o){1&r&&i.DNE(0,Lv,3,2,"ng-container",1)(1,Gv,3,2,"ng-container",1),2&r&&(i.Y8G("ngIf",!o.externalViewer),i.R7$(),i.Y8G("ngIf",o.externalViewer))},dependencies:[Hi.bT],styles:["[_nghost-%COMP%]{display:block}.container[_ngcontent-%COMP%]{width:100%;height:100%;position:relative}.overlay-popout-google[_ngcontent-%COMP%]{width:40px;height:40px;right:26px;top:11.5px;position:absolute;z-index:1000}.overlay-popout-office[_ngcontent-%COMP%]{width:100px;height:20px;right:0;bottom:0;position:absolute;z-index:1000}.overlay-full[_ngcontent-%COMP%]{width:100%;height:100%;right:0;top:0;position:absolute;z-index:1000}iframe[_ngcontent-%COMP%]{width:100%;height:100%}"]}),e})(),Yv=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=i.$C({type:e}),e.\u0275inj=i.G2t({imports:[Hi.MD]}),e})()},46156:(sa,Le,W)=>{W.d(Le,{_D:()=>zt,xv:()=>D});var X=W(10467),i=W(54438),We=W(345),fe=W(60177);const se=["wrapper"],m=["sourceImage"];function R(d,y){if(1&d){const a=i.RV6();i.j41(0,"img",5,1),i.bIt("load",function(){i.eBV(a);const s=i.XpG();return i.Njj(s.imageLoadedInView())})("mousedown",function(s){i.eBV(a);const c=i.XpG();return i.Njj(c.startMove(s,c.moveTypes.Drag))})("touchstart",function(s){i.eBV(a);const c=i.XpG();return i.Njj(c.startMove(s,c.moveTypes.Drag))})("error",function(s){i.eBV(a);const c=i.XpG();return i.Njj(c.loadImageError(s))}),i.k0s()}
1if(2&d){const a=i.XpG();i.xc7("visibility",a.imageVisible?"visible":"hidden")("transform",a.safeTransformStyle),i.AVh("ngx-ic-draggable",!a.disabled&&a.allowMoveImage),i.Y8G("src",a.safeImgDataUrl,i.B4B),i.BMQ("alt",a.imageAltText)}}function C(d,y){if(1&d){const a=i.RV6();i.qex(0),i.j41(1,"span",9),i.bIt("mousedown",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"topleft"))})("touchstart",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"topleft"))}),i.nrm(2,"span",10),i.k0s(),i.j41(3,"span",11),i.nrm(4,"span",10),i.k0s(),i.j41(5,"span",12),i.bIt("mousedown",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"topright"))})("touchstart",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"topright"))}),i.nrm(6,"span",10),i.k0s(),i.j41(7,"span",13),i.nrm(8,"span",10),i.k0s(),i.j41(9,"span",14),i.bIt("mousedown",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"bottomright"))})("touchstart",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"bottomright"))}),i.nrm(10,"span",10),i.k0s(),i.j41(11,"span",15),i.nrm(12,"span",10),i.k0s(),i.j41(13,"span",16),i.bIt("mousedown",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"bottomleft"))})("touchstart",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"bottomleft"))}),i.nrm(14,"span",10),i.k0s(),i.j41(15,"span",17),i.nrm(16,"span",10),i.k0s(),i.j41(17,"span",18),i.bIt("mousedown",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"top"))})("touchstart",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"top"))}),i.k0s(),i.j41(18,"span",19),i.bIt("mousedown",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"right"))})("touchstart",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"right"))}),i.k0s(),i.j41(19,"span",20),i.bIt("mousedown",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"bottom"))})("touchstart",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"bottom"))}),i.k0s(),i.j41(20,"span",21),i.bIt("mousedown",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"left"))})("touchstart",function(s){i.eBV(a);const c=i.XpG(2);return i.Njj(c.startMove(s,c.moveTypes.Resize,"left"))}),i.k0s(),i.bVm()}}function B(d,y){if(1&d){const a=i.RV6();i.j41(0,"div",6),i.bIt("keydown",function(s){i.eBV(a);const c=i.XpG();return i.Njj(c.keyboardAccess(s))}),i.j41(1,"div",7),i.bIt("mousedown",function(s){i.eBV(a);const c=i.XpG();return i.Njj(c.startMove(s,c.moveTypes.Move))})("touchstart",function(s){i.eBV(a);const c=i.XpG();return i.Njj(c.startMove(s,c.moveTypes.Move))}),i.k0s(),i.DNE(2,C,21,0,"ng-container",8),i.k0s()}if(2&d){const a=i.XpG();i.xc7("top",a.cropper.y1,"px")("left",a.cropper.x1,"px")("width",a.cropper.x2-a.cropper.x1,"px")("height",a.cropper.y2-a.cropper.y1,"px")("margin-left","center"===a.alignImage?a.marginLeft:null)("visibility",a.imageVisible?"visible":"hidden"),i.AVh("ngx-ic-round",a.roundCropper),i.R7$(2),i.Y8G("ngIf",!a.hideResizeSquares)}}class j{constructor(){this.format="png",this.maintainAspectRatio=!0,this.transform={},this.aspectRatio=1,this.resetCropOnAspectRatioChange=!0,this.resizeToWidth=0,this.resizeToHeight=0,this.cropperMinWidth=0,this.cropperMinHeight=0,this.cropperMaxHeight=0,this.cropperMaxWidth=0,this.cropperStaticWidth=0,this.cropperStaticHeight=0,this.canvasRotation=0,this.initialStepSize=3,this.roundCropper=!1,this.onlyScaleDown=!1,this.imageQuality=92,this.autoCrop=!0,this.backgroundColor=null,this.containWithinAspectRatio=!1,this.hideResizeSquares=!1,this.alignImage="center",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(y){Object.keys(y).filter(a=>
1a in this).forEach(a=>this[a]=y[a]),this.validateOptions()}setOptionsFromChanges(y){Object.keys(y).filter(a=>a in this).forEach(a=>this[a]=y[a].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}}var w=function(d){return d.Drag="drag",d.Move="move",d.Resize="resize",d.Pinch="pinch",d}(w||{});function ee(d,y){return d/100*y}let q=(()=>{class d{crop(a,n,s,c){const h=this.getImagePosition(a,n,s,c),f=h.x2-h.x1,b=h.y2-h.y1,I=document.createElement("canvas");I.width=f,I.height=b;const E=I.getContext("2d");if(!E)return null;null!=c.backgroundColor&&(E.fillStyle=c.backgroundColor,E.fillRect(0,0,f,b));const M=(c.transform.scale||1)*(c.transform.flipH?-1:1),k=(c.transform.scale||1)*(c.transform.flipV?-1:1),{translateH:ce,translateV:re}=this.getCanvasTranslate(a,n,c),U=n.transformed;E.setTransform(M,0,0,k,U.size.width/2+ce,U.size.height/2+re),E.translate(-h.x1/M,-h.y1/k),E.rotate((c.transform.rotate||0)*Math.PI/180),E.drawImage(U.image,-U.size.width/2,-U.size.height/2);const S={width:f,height:b,imagePosition:h,cropperPosition:{...s}};c.containWithinAspectRatio&&(S.offsetImagePosition=this.getOffsetImagePosition(a,n,s,c));const pe=this.getResizeRatio(f,b,c);return 1!==pe&&(S.width=Math.round(f*pe),S.height=c.maintainAspectRatio?Math.round(S.width/c.aspectRatio):Math.round(b*pe),function T(d,y,a){const n=d.width,s=d.height,c=n/(y=Math.round(y)),h=s/(a=Math.round(a)),f=Math.ceil(c/2),b=Math.ceil(h/2),I=d.getContext("2d");if(I){const E=I.getImageData(0,0,n,s),M=I.createImageData(y,a),k=E.data,ce=M.data;for(let re=0;re<a;re++)for(let U=0;U<y;U++){const S=4*(U+re*y),pe=re*h;let z=0,le=0,st=0,ct=0,te=0,lt=0,Me=0;const Ut=Math.floor(U*c),Ee=Math.floor(re*h);let Re=Math.ceil((U+1)*c),ve=Math.ceil((re+1)*h);Re=Math.min(Re,n),ve=Math.min(ve,s);for(let de=Ee;de<ve;de++){const Ge=Math.abs(pe-de)/b,ht=U*c,ut=Ge*Ge;for(let L=Ut;L<Re;L++){const ge=Math.abs(ht-L)/f,ne=Math.sqrt(ut+ge*ge);if(ne>=1)continue;z=2*ne*ne*ne-3*ne*ne+1;const ie=4*(L+de*n);Me+=z*k[ie+3],st+=z,k[ie+3]<255&&(z=z*k[ie+3]/250),ct+=z*k[ie],te+=z*k[ie+1],lt+=z*k[ie+2],le+=z}}ce[S]=ct/le,ce[S+1]=te/le,ce[S+2]=lt/le,ce[S+3]=Me/st}d.width=y,d.height=a,I.putImageData(M,0,0)}}(I,S.width,S.height)),S.base64=I.toDataURL("image/"+c.format,this.getQuality(c)),S}getCanvasTranslate(a,n,s){if("px"===s.transform.translateUnit){const c=this.getRatio(a,n);return{translateH:(s.transform.translateH||0)*c,translateV:(s.transform.translateV||0)*c}}return{translateH:s.transform.translateH?ee(s.transform.translateH,n.transformed.size.width):0,translateV:s.transform.translateV?ee(s.transform.translateV,n.transformed.size.height):0}}getRatio(a,n){return n.transformed.size.width/a.nativeElement.offsetWidth}getImagePosition(a,n,s,c){const h=this.getRatio(a,n),f={x1:Math.round(s.x1*h),y1:Math.round(s.y1*h),x2:Math.round(s.x2*h),y2:Math.round(s.y2*h)};return c.containWithinAspectRatio||(f.x1=Math.max(f.x1,0),f.y1=Math.max(f.y1,0),f.x2=Math.min(f.x2,n.transformed.size.width),f.y2=Math.min(f.y2,n.transformed.size.height)),f}getOffsetImagePosition(a,n,s,c){const b=n.transformed.size.width/a.nativeElement.offsetWidth;let I,E;(c.canvasRotation+n.exifTransform.rotate)%2?(I=(n.transformed.size.width-n.original.size.height)/2,E=(n.transformed.size.height-n.original.size.width)/2):(I=(n.transformed.size.width-n.original.size.width)/2,E=(n.transformed.size.height-n.original.size.height)/2);const M={x1:Math.round(s.x1*b)-I,y1:Math.round(s.y1*b)-E,x2:Math.round(s.x2*b)-I,y2:Math.round(s.y2*b)-E};return c.containWithinAspectRatio||(M.x1=Math.max(M.x1,0),M.y1=Math.max(M.y1,0),M.x2=Math.min(M.x2,n.transformed.size.width),M.y2=Math.min(M.y2,n.transformed.size.height)),M}getResizeRatio(a,n,s){const c=s.resizeToWidth/a,h=s.resizeToHeight/n,f=new Array;s.resizeToWidth>0&&f.push(c),s.resizeToHeight>0&&f.push(h);const b=0===f.length?1:Math.min(...f);return b>1&&!s.onlyScaleDown?b:Math.min(b,1)}getQuality(a){return Math.min(1,Math.max(0,a.imageQuality/100))}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275prov=i.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),Se=(()=>{class d{resetCropperPosition(a,n,s){if(!a?.nativeElement)return;const c=a.nativeElement;if(s.cropperStaticHeight&&s.cropperStaticWidth)n.x1=0,n.x2=c.offsetWidth>s.cropperStaticWidth?s.cropperStaticWidth:c.offsetWidth,n.y1=0,n.y2=c.offsetHeight>s.cropperStaticHeight?s.cropperStaticHeight:c.offsetHeight;else{const h=Math.min(s.cropperScaledMaxWidth,c.offsetWidth),f=Math.min(s.cropperScaledMaxHeight,c.offsetHeight);if(s.maintainAspectRatio)if(c.offsetWidth/s.aspectRatio<c.offsetHeight){n.x1=0,n.x2=h;const b=h/s.aspectRatio;n.y1=(c.offsetHeight-b)/2,n.y2=n.y1+b}else{n.y1=0,n.y2=f;const b=f*s.aspectRatio;n.x1=(c.offsetWidth-b)/2,n.x2=n.x1+b}else n.x1=0,n.x2=h,n.y1=0,n.y2=f}}move(a,n,s){const c=this.getClientX(a)-n.clientX,h=this.getClientY(a)-n.clientY;s.x1=n.x1+c,s.y1=n.y1+h,s.x2=n.x2+c,s.y2=n.y2+h}resize(a,n,s,c,h){const f=this.getClientX(a)-n.clientX,b=this.getClientY(a)-n.clientY;switch(n.position){case"left":s.x1=Math.min(Math.max(n.x1+f,s.x2-h.cropperScaledMaxWidth),s.x2-h.cropperScaledMinWidth);break;case"topleft":s.x1=Math.min(Math.max(n.x1+f,s.x2-h.cropperScaledMaxWidth),s.x2-h.cropperScaledMinWidth),s.y1=Math.min(Math.max(n.y1+b,
1s.y2-h.cropperScaledMaxHeight),s.y2-h.cropperScaledMinHeight);break;case"top":s.y1=Math.min(Math.max(n.y1+b,s.y2-h.cropperScaledMaxHeight),s.y2-h.cropperScaledMinHeight);break;case"topright":s.x2=Math.max(Math.min(n.x2+f,s.x1+h.cropperScaledMaxWidth),s.x1+h.cropperScaledMinWidth),s.y1=Math.min(Math.max(n.y1+b,s.y2-h.cropperScaledMaxHeight),s.y2-h.cropperScaledMinHeight);break;case"right":s.x2=Math.max(Math.min(n.x2+f,s.x1+h.cropperScaledMaxWidth),s.x1+h.cropperScaledMinWidth);break;case"bottomright":s.x2=Math.max(Math.min(n.x2+f,s.x1+h.cropperScaledMaxWidth),s.x1+h.cropperScaledMinWidth),s.y2=Math.max(Math.min(n.y2+b,s.y1+h.cropperScaledMaxHeight),s.y1+h.cropperScaledMinHeight);break;case"bottom":s.y2=Math.max(Math.min(n.y2+b,s.y1+h.cropperScaledMaxHeight),s.y1+h.cropperScaledMinHeight);break;case"bottomleft":s.x1=Math.min(Math.max(n.x1+f,s.x2-h.cropperScaledMaxWidth),s.x2-h.cropperScaledMinWidth),s.y2=Math.max(Math.min(n.y2+b,s.y1+h.cropperScaledMaxHeight),s.y1+h.cropperScaledMinHeight);break;case"center":const I=a.scale,E=Math.min(Math.max(h.cropperScaledMinWidth,Math.abs(n.x2-n.x1)*I),h.cropperScaledMaxWidth),M=Math.min(Math.max(h.cropperScaledMinHeight,Math.abs(n.y2-n.y1)*I),h.cropperScaledMaxHeight);s.x1=n.clientX-E/2,s.x2=n.clientX+E/2,s.y1=n.clientY-M/2,s.y2=n.clientY+M/2,s.x1<0?(s.x2-=s.x1,s.x1=0):s.x2>c.width&&(s.x1-=s.x2-c.width,s.x2=c.width),s.y1<0?(s.y2-=s.y1,s.y1=0):s.y2>c.height&&(s.y1-=s.y2-c.height,s.y2=c.height)}h.maintainAspectRatio&&this.checkAspectRatio(n.position,s,c,h)}checkAspectRatio(a,n,s,c){let h=0,f=0;switch(a){case"top":n.x2=n.x1+(n.y2-n.y1)*c.aspectRatio,h=Math.max(n.x2-s.width,0),f=Math.max(0-n.y1,0),(h>0||f>0)&&(n.x2-=f*c.aspectRatio>h?f*c.aspectRatio:h,n.y1+=f*c.aspectRatio>h?f:h/c.aspectRatio);break;case"bottom":n.x2=n.x1+(n.y2-n.y1)*c.aspectRatio,h=Math.max(n.x2-s.width,0),f=Math.max(n.y2-s.height,0),(h>0||f>0)&&(n.x2-=f*c.aspectRatio>h?f*c.aspectRatio:h,n.y2-=f*c.aspectRatio>h?f:h/c.aspectRatio);break;case"topleft":n.y1=n.y2-(n.x2-n.x1)/c.aspectRatio,h=Math.max(0-n.x1,0),f=Math.max(0-n.y1,0),(h>0||f>0)&&(n.x1+=f*c.aspectRatio>h?f*c.aspectRatio:h,n.y1+=f*c.aspectRatio>h?f:h/c.aspectRatio);break;case"topright":n.y1=n.y2-(n.x2-n.x1)/c.aspectRatio,h=Math.max(n.x2-s.width,0),f=Math.max(0-n.y1,0),(h>0||f>0)&&(n.x2-=f*c.aspectRatio>h?f*c.aspectRatio:h,n.y1+=f*c.aspectRatio>h?f:h/c.aspectRatio);break;case"right":case"bottomright":n.y2=n.y1+(n.x2-n.x1)/c.aspectRatio,h=Math.max(n.x2-s.width,0),f=Math.max(n.y2-s.height,0),(h>0||f>0)&&(n.x2-=f*c.aspectRatio>h?f*c.aspectRatio:h,n.y2-=f*c.aspectRatio>h?f:h/c.aspectRatio);break;case"left":case"bottomleft":n.y2=n.y1+(n.x2-n.x1)/c.aspectRatio,h=Math.max(0-n.x1,0),f=Math.max(n.y2-s.height,0),(h>0||f>0)&&(n.x1+=f*c.aspectRatio>h?f*c.aspectRatio:h,n.y2-=f*c.aspectRatio>h?f:h/c.aspectRatio);break;case"center":n.x2=n.x1+(n.y2-n.y1)*c.aspectRatio,n.y2=n.y1+(n.x2-n.x1)/c.aspectRatio;const b=Math.max(0-n.x1,0),I=Math.max(n.x2-s.width,0),E=Math.max(n.y2-s.height,0),M=Math.max(0-n.y1,0);(b>0||I>0||E>0||M>0)&&(n.x1+=E*c.aspectRatio>b?E*c.aspectRatio:b,n.x2-=M*c.aspectRatio>I?M*c.aspectRatio:I,n.y1+=M*c.aspectRatio>I?M:I/c.aspectRatio,n.y2-=E*c.aspectRatio>b?E:b/c.aspectRatio)}}getClientX(a){return a.touches?.[0].clientX||a.clientX||0}getClientY(a){return a.touches?.[0].clientY||a.clientY||0}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275prov=i.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),d})();let Ve=(()=>{class d{constructor(){this.autoRotateSupported=function Ie(){return new Promise(d=>{const y=new Image;y.onload=()=>{d(1===y.width&&2===y.height)},y.src="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q=="})}()}loadImageFile(a,n){return new Promise((s,c)=>{const h=new FileReader;h.onload=f=>{this.loadImage(f.target.result,a.type,n).then(s).catch(c)},h.readAsDataURL(a)})}loadImage(a,n,s){return this.isValidImageType(n)?this.loadBase64Image(a,s):Promise.reject(new Error("Invalid image type"))}isValidImageType(a){return/image\/(png|jpg|jpeg|bmp|gif|tiff|webp|x-icon|vnd.microsoft.icon)/.test(a)}loadImageFromURL(a,n){return new Promise((s,c)=>{const h=new Image;h.onerror=()=>c,h.onload=()=>{const f=document.createElement("canvas"),b=f.getContext("2d");f.width=h.width,f.height=h.height,b?.drawImage(h,0,0),this.loadBase64Image(f.toDataURL(),n).then(s)},h.crossOrigin="anonymous",h.src=a})}loadBase64Image(a,n){return new Promise((s,c)=>{const h=new Image;h.onload=()=>s({originalImage:h,originalBase64:a}),h.onerror=c,h.src=a}).then(s=>this.transformImageBase64(s,n))}transformImageBase64(a,n){var s=this;return(0,X.A)(function*(){const c=yield s.autoRotateSupported,h=yield function it(d){switch("string"==typeof d&&(d=function ot(d){const y=new DataView(function Bt(d){d=d.replace(/^data\:([^\;]+)\;base64,/gim,"");const y=atob(d),a=y.length,n=new Uint8Array(a);for(let s=0;s<a;s++)n[s]=y.charCodeAt(s);return n.buffer}(d));if(65496!==y.getUint16(0,!1))return-2;const a=y.byteLength;let n=2;
1for(;n<a;){if(y.getUint16(n+2,!1)<=8)return-1;const s=y.getUint16(n,!1);if(n+=2,65505==s){if(1165519206!==y.getUint32(n+=2,!1))return-1;const c=18761==y.getUint16(n+=6,!1);n+=y.getUint32(n+4,c);const h=y.getUint16(n,c);n+=2;for(let f=0;f<h;f++)if(274==y.getUint16(n+12*f,c))return y.getUint16(n+12*f+8,c)}else{if(65280&~s)break;n+=y.getUint16(n,!1)}}return-1}(d)),d){case 2:return{rotate:0,flip:!0};case 3:return{rotate:2,flip:!1};case 4:return{rotate:2,flip:!0};case 5:return{rotate:1,flip:!0};case 6:return{rotate:1,flip:!1};case 7:return{rotate:3,flip:!0};case 8:return{rotate:3,flip:!1};default:return{rotate:0,flip:!1}}}(c?-1:a.originalBase64);return a.originalImage&&a.originalImage.complete?s.transformLoadedImage({original:{base64:a.originalBase64,image:a.originalImage,size:{width:a.originalImage.naturalWidth,height:a.originalImage.naturalHeight}},exifTransform:h},n):Promise.reject(new Error("No image loaded"))})()}transformLoadedImage(a,n){var s=this;return(0,X.A)(function*(){const c=n.canvasRotation+a.exifTransform.rotate,h={width:a.original.image.naturalWidth,height:a.original.image.naturalHeight};if(0===c&&!a.exifTransform.flip&&!n.containWithinAspectRatio)return{original:{base64:a.original.base64,image:a.original.image,size:{...h}},transformed:{base64:a.original.base64,image:a.original.image,size:{...h}},exifTransform:a.exifTransform};const f=s.getTransformedSize(h,a.exifTransform,n),b=document.createElement("canvas");b.width=f.width,b.height=f.height;const I=b.getContext("2d");I?.setTransform(a.exifTransform.flip?-1:1,0,0,1,b.width/2,b.height/2),I?.rotate(Math.PI*(c/2)),I?.drawImage(a.original.image,-h.width/2,-h.height/2);const E=b.toDataURL(),M=yield s.loadImageFromBase64(E);return{original:{base64:a.original.base64,image:a.original.image,size:{...h}},transformed:{base64:E,image:M,size:{width:M.width,height:M.height}},exifTransform:a.exifTransform}})()}loadImageFromBase64(a){return new Promise((n,s)=>{const c=new Image;c.onload=()=>n(c),c.onerror=s,c.src=a})}getTransformedSize(a,n,s){const c=s.canvasRotation+n.rotate;if(s.containWithinAspectRatio){if(c%2){const f=a.height/s.aspectRatio;return{width:Math.max(a.height,a.width*s.aspectRatio),height:Math.max(a.width,f)}}{const f=a.width/s.aspectRatio;return{width:Math.max(a.width,a.height*s.aspectRatio),height:Math.max(a.height,f)}}}return c%2?{height:a.width,width:a.height}:{width:a.width,height:a.height}}}return d.\u0275fac=function(a){return new(a||d)},d.\u0275prov=i.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),zt=(()=>{class d{constructor(a,n,s,c,h){this.cropService=a,this.cropperPositionService=n,this.loadImageService=s,this.sanitizer=c,this.cd=h,this.Hammer=window?.Hammer||null,this.settings=new j,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=w,this.imageVisible=!1,this.format=this.settings.format,this.transform={},this.maintainAspectRatio=this.settings.maintainAspectRatio,this.aspectRatio=this.settings.aspectRatio,this.resetCropOnAspectRatioChange=this.settings.resetCropOnAspectRatioChange,this.resizeToWidth=this.settings.resizeToWidth,this.resizeToHeight=this.settings.resizeToHeight,this.cropperMinWidth=this.settings.cropperMinWidth,this.cropperMinHeight=this.settings.cropperMinHeight,this.cropperMaxHeight=this.settings.cropperMaxHeight,this.cropperMaxWidth=this.settings.cropperMaxWidth,this.cropperStaticWidth=this.settings.cropperStaticWidth,this.cropperStaticHeight=this.settings.cropperStaticHeight,this.canvasRotation=this.settings.canvasRotation,this.initialStepSize=this.settings.initialStepSize,this.roundCropper=this.settings.roundCropper,this.onlyScaleDown=this.settings.onlyScaleDown,this.imageQuality=this.settings.imageQuality,this.autoCrop=this.settings.autoCrop,this.backgroundColor=this.settings.backgroundColor,this.containWithinAspectRatio=this.settings.containWithinAspectRatio,this.hideResizeSquares=this.settings.hideResizeSquares,this.allowMoveImage=!1,this.cropper={x1:-100,y1:-100,x2:1e4,y2:1e4},this.alignImage=this.settings.alignImage,this.disabled=!1,this.hidden=!1,this.imageCropped=new i.bkB,this.startCropImage=new i.bkB,this.imageLoaded=new i.bkB,this.cropperReady=new i.bkB,this.loadImageFailed=new i.bkB,this.transformChange=new i.bkB,this.reset()}ngOnChanges(a){this.onChangesUpdateSettings(a),this.onChangesInputImage(a),this.loadedImage?.original.image.complete&&(a.containWithinAspectRatio||a.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(n=>this.setLoadedImage(n)).catch(n=>this.loadImageError(n)),(a.cropper||a.maintainAspectRatio||a.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),!this.maintainAspectRatio||!this.resetCropOnAspectRatioChange&&this.aspectRatioIsCorrect()||!a.maintainAspectRatio&&!a.aspectRatio?a.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop()):this.resetCropperPosition(),this.cd.markForCheck()),a.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop(),this.cd.markForCheck()),a.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(a){this.settings.setOptionsFromChanges(a),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1})}onChangesInputImage(a){(a.imageChangedEvent||a.imageURL||a.imageBase64||a.imageFile)&&this.reset(),a.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),a.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),a.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),a.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){const a=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${a}, ${this.transform.translateV||0}${a}) scaleX(`+(this.transform.scale||1)*(this.transform.flipH?-1:1)+") scaleY("+(this.transform.scale||1)*(this.transform.flipV?-1:1)+") rotate("+(this.transform.rotate||0)+"deg)")}ngOnInit(){this.settings.stepSize=this.initialStepSize,this.activatePinchGesture()}reset(){this.imageVisible=!1,this.loadedImage=void 0,this.safeImgDataUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=",this.moveStart={active:!1,type:null,position:null,x1:0,y1:0,x2:0,y2:0,clientX:0,clientY:0},this.maxSize={width:0,height:0},this.cropper.x1=-100,this.cropper.y1=-100,this.cropper.x2=1e4,this.cropper.y2=1e4}loadImageFile(a){this.loadImageService.loadImageFile(a,this.settings).then(n=>this.setLoadedImage(n)).catch(n=>this.loadImageError(n))}loadBase64Image(a){this.loadImageService.loadBase64Image(a,this.settings).then(n=>this.setLoadedImage(n)).catch(n=>this.loadImageError(n))}loadImageFromURL(a){this.loadImageService.loadImageFromURL(a,this.settings).then(n=>this.setLoadedImage(n)).catch(n=>this.loadImageError(n))}setLoadedImage(a){this.loadedImage=a,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(a.transformed.base64),this.cd.markForCheck()}loadImageError(a){console.error(a),this.loadImageFailed.emit()}imageLoadedInView(){null!=this.loadedImage&&(this.imageLoaded.emit(this.loadedImage),this.setImageMaxSizeRetries=0,setTimeout(()=>this.checkImageMaxSizeRecursively()))}checkImageMaxSizeRecursively(){this.setImageMaxSizeRetries>40?this.loadImageFailed.emit():this.sourceImageLoaded()?(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.resetCropperPosition(),this.cropperReady.emit({...this.maxSize}),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){this.loadedImage&&(this.hidden?this.resizedWhileHidden=!0:(this.resizeCropperPosition(),this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()))}activatePinchGesture(){if(this.Hammer){const a=new this.Hammer(this.wrapper.nativeElement);a.get("pinch").set({enable:!0}),a.on("pinchmove",this.onPinch.bind(this)),a.on("pinchend",this.pinchStop.bind(this)),a.on("pinchstart",this.startPinch.bind(this))}else(0,i.naY)()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")}resizeCropperPosition(){const a=this.sourceImage.nativeElement;(this.maxSize.width!==a.offsetWidth||this.maxSize.height!==a.offsetHeight)&&(this.cropper.x1=this.cropper.x1*a.offsetWidth/this.maxSize.width,this.cropper.x2=this.cropper.x2*a.offsetWidth/this.maxSize.width,this.cropper.y1=this.cropper.y1*a.offsetHeight/this.maxSize.height,this.cropper.y2=this.cropper.y2*a.offsetHeight/this.maxSize.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(a){this.changeKeyboardStepSize(a),this.keyboardMoveCropper(a)}changeKeyboardStepSize(a){const n=+a.key;n>=1&&n<=9&&(this.settings.stepSize=n)}keyboardMoveCropper(a){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(a.key))return;const s=a.shiftKey?w.Resize:w.Move,c=a.altKey?function Q(d){switch(d){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";default:return"right"}}(a.key):function F(d){switch(d){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";default:return"left"}}(a.key),h=function H(d,y){switch(d){case"ArrowUp":return{clientX:0,clientY:-1*y};case"ArrowRight":return{clientX:y,clientY:0};case"ArrowDown":return{clientX:0,clientY:y};default:return{clientX:-1*y,clientY:0}}}(a.key,this.settings.stepSize);a.preventDefault(),a.stopPropagation(),this.startMove({clientX:0,clientY:0},s,c),this.moveImg(h),this.moveStop()}startMove(a,n,s=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===w.Pinch||n===w.Drag&&!this.allowMoveImage||(a.preventDefault&&a.preventDefault(),this.moveStart={active:!0,type:n,position:s,transform:{...this.transform},clientX:this.cropperPositionService.getClientX(a),clientY:this.cropperPositionService.getClientY(a),...this.cropper})}startPinch(a){this.safeImgDataUrl&&(a.preventDefault&&a.preventDefault(),this.moveStart={active:!0,type:w.Pinch,position:"center",clientX:this.cropper.x1+(this.cropper.x2-this.cropper.x1)/2,clientY:this.cropper.y1+(this.cropper.y2-this.cropper.y1)/2,...this.cropper})}moveImg(a){if(this.moveStart.active){if(a.stopPropagation&&a.stopPropagation(),a.preventDefault&&a.preventDefault(),this.moveStart.type===w.Move)this.cropperPositionService.move(a,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===w.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(a,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===w.Drag){const n=this.cropperPositionService.getClientX(a)-this.moveStart.clientX,s=this.cropperPositionService.getClientY(a)-this.moveStart.clientY;this.transform={...this.transform,translateH:(this.moveStart.transform?.translateH||0)+n,translateV:(this.moveStart.transform?.translateV||0)+s},this.setCssTransform()}this.cd.detectChanges()}}onPinch(a){this.moveStart.active&&(a.stopPropagation&&a.stopPropagation(),a.preventDefault&&a.preventDefault(),this.moveStart.type===w.Pinch&&(this.cropperPositionService.resize(a,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.detectChanges())}setMaxSize(){if(this.sourceImage){const a=this.sourceImage.nativeElement;this.maxSize.width=a.offsetWidth,this.maxSize.height=a.offsetHeight,this.marginLeft=this.sanitizer.bypassSecurityTrustStyle("calc(50% - "+this.maxSize.width/2+"px)")}}setCropperScaledMinSize(){this.loadedImage?.transformed?.image?(this.setCropperScaledMinWidth(),this.setCropperScaledMinHeight()):(this.settings.cropperScaledMinWidth=20,this.settings.cropperScaledMinHeight=20)}setCropperScaledMinWidth(){this.settings.cropperScaledMinWidth=this.cropperMinWidth>0?Math.max(20,this.cropperMinWidth/this.loadedImage.transformed.image.width*this.maxSize.width):20}setCropperScaledMinHeight(){this.settings.cropperScaledMinHeight=this.maintainAspectRatio?Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){const a=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/a:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/a:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidth<this.settings.cropperScaledMaxHeight*this.aspectRatio&&(this.settings.cropperScaledMaxHeight=this.settings.cropperScaledMaxWidth/this.aspectRatio))}else this.settings.cropperScaledMaxWidth=this.maxSize.width,this.settings.cropperScaledMaxHeight=this.maxSize.height}checkCropperPosition(a=!1){this.cropper.x1<0&&(this.cropper.x2-=a?this.cropper.x1:0,this.cropper.x1=0),this.cropper.y1<0&&(this.cropper.y2-=a?this.cropper.y1:0,this.cropper.y1=0),this.cropper.x2>this.maxSize.width&&(this.cropper.x1-=a?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=a?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}moveStop(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===w.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(){if(null!=this.loadedImage?.transformed?.image){this.startCropImage.emit();const a=this.cropService.crop(this.sourceImage,this.loadedImage,this.cropper,this.settings);return null!=a&&this.imageCropped.emit(a),a}return null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}}return d.\u0275fac=function(a){return new(a||d)(i.rXU(q),i.rXU(Se),i.rXU(Ve),i.rXU(We.up),i.rXU(i.gRc))},d.\u0275cmp=i.VBU({type:d,selectors:[["image-cropper"]],viewQuery:function(a,n){if(1&a&&(i.GBs(se,7),i.GBs(m,5)),2&a){let s;i.mGM(s=i.lsd())&&(n.wrapper=s.first),i.mGM(s=i.lsd())&&(n.sourceImage=s.first)}},hostVars:6,hostBindings:function(a,n){1&a&&i.bIt("resize",function(){return n.onResize()},!1,i.tSv)("mousemove",function(c){return n.moveImg(c)},!1,i.EBC)("touchmove",function(c){return n.moveImg(c)},!1,i.EBC)("mouseup",function(){return n.moveStop()},!1,i.EBC)("touchend",function(){return n.moveStop()},!1,i.EBC),2&a&&(i.xc7("text-align",n.alignImage),i.AVh("disabled",n.disabled)("ngx-ix-hidden",n.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",as
1pectRatio:"aspectRatio",resetCropOnAspectRatioChange:"resetCropOnAspectRatioChange",resizeToWidth:"resizeToWidth",resizeToHeight:"resizeToHeight",cropperMinWidth:"cropperMinWidth",cropperMinHeight:"cropperMinHeight",cropperMaxHeight:"cropperMaxHeight",cropperMaxWidth:"cropperMaxWidth",cropperStaticWidth:"cropperStaticWidth",cropperStaticHeight:"cropperStaticHeight",canvasRotation:"canvasRotation",initialStepSize:"initialStepSize",roundCropper:"roundCropper",onlyScaleDown:"onlyScaleDown",imageQuality:"imageQuality",autoCrop:"autoCrop",backgroundColor:"backgroundColor",containWithinAspectRatio:"containWithinAspectRatio",hideResizeSquares:"hideResizeSquares",allowMoveImage:"allowMoveImage",cropper:"cropper",alignImage:"alignImage",disabled:"disabled",hidden:"hidden"},outputs:{imageCropped:"imageCropped",startCropImage:"startCropImage",imageLoaded:"imageLoaded",cropperReady:"cropperReady",loadImageFailed:"loadImageFailed",transformChange:"transformChange"},features:[i.OA$],decls:5,vars:10,consts:[["wrapper",""],["sourceImage",""],["class","ngx-ic-source-image",3,"src","visibility","transform","ngx-ic-draggable","load","mousedown","touchstart","error",4,"ngIf"],[1,"ngx-ic-overlay"],["class","ngx-ic-cropper","tabindex","0",3,"ngx-ic-round","top","left","width","height","margin-left","visibility","keydown",4,"ngIf"],[1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],[1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],[1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],[1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],[1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],[1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],[1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],[1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(a,n){1&a&&(i.j41(0,"div",null,0),i.DNE(2,R,2,8,"img",2),i.nrm(3,"div",3),i.DNE(4,B,3,15,"div",4),i.k0s()),2&a&&(i.xc7("background",n.imageVisible&&n.backgroundColor),i.R7$(2),i.Y8G("ngIf",n.safeImgDataUrl),i.R7$(),i.xc7("width",n.maxSize.width,"px")("height",n.maxSize.height,"px")("margin-left","center"===n.alignImage?n.marginLeft:null),i.R7$(),i.Y8G("ngIf",n.imageVisible))},dependencies:[fe.bT],styles:['[_nghost-%COMP%]{display:flex;position:relative;width:100%;max-width:100%;max-height:100%;overflow:hidden;padding:5px;text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;transform-origin:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%] img.ngx-ic-source-image.ngx-ic-draggable[_ngcontent-%COMP%]{user-drag:none;-webkit-user-drag:none;user-select:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;cursor:grab}[_nghost-%COMP%] .ngx-ic-overlay[_ngcontent-%COMP%]{position:absolute;pointer-events:none;touch-action:none;outline:var(--cropper-overlay-color, white) solid 100vw;top:0;left:0}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{position:absolute;display:flex;color:#53535c;background:transparent;outline:rgba(255,255,255,.3) solid 100vw;outline:var(--cropper-outline-color, rgba(255, 255, 255, .3)) solid 100vw;touch-action:none}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]{outline-width:100vh}}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:after{position:absolute;content:"";inset:0;pointer-events:none;border:dashed 1px;opacity:.75;color:inherit;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{width:100%;cursor:move;border:1px solid rgba(255,255,255,.5)}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%]:focus .ngx-ic-move[_ngcontent-%COMP%]{border-color:#1e90ff;border-width:2px}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%]{position:absolute;display:inline-block;line-height:6px;padding:8px;opacity:.85;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%] .ngx-ic-square[_ngcontent-%COMP%]{display:inline-block;background:#53535C;width:6px;height:6px;border:1px solid rgba(255,255,255,.5);box-sizing:content-box}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topleft[_ngcontent-%COMP%]{top:-12px;left:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-top[_ngcontent-%COMP%]{top:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-topright[_ngcontent-%COMP%]{top:-12px;right:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-right[_ngcontent-%COMP%]{top:calc(50% - 12px);right:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomright[_ngcontent-%COMP%]{bottom:-12px;right:-12px;cursor:nwse-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-12px;left:calc(50% - 12px);cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-bottomleft[_ngcontent-%COMP%]{bottom:-12px;left:-12px;cursor:nesw-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize.ngx-ic-left[_ngcontent-%COMP%]{top:calc(50% - 12px);left:-12px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%]{position:absolute;z-index:1}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-top[_ngcontent-%COMP%]{top:-11px;left:11px;width:calc(100% - 22px);height:22px;
1cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-right[_ngcontent-%COMP%]{top:11px;right:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-bottom[_ngcontent-%COMP%]{bottom:-11px;left:11px;width:calc(100% - 22px);height:22px;cursor:ns-resize}[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar.ngx-ic-left[_ngcontent-%COMP%]{top:11px;left:-11px;height:calc(100% - 22px);width:22px;cursor:ew-resize}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]{outline-color:transparent}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{border-radius:100%;box-shadow:0 0 0 100vw #ffffff4d;box-shadow:0 0 0 100vw var(--cropper-outline-color, rgba(255, 255, 255, .3))}@media (orientation: portrait){[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%]:after{box-shadow:0 0 0 100vh #ffffff4d;box-shadow:0 0 0 100vh var(--cropper-outline-color, rgba(255, 255, 255, .3))}}[_nghost-%COMP%] .ngx-ic-cropper.ngx-ic-round[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{border-radius:100%}.disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-resize-bar[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .ngx-ic-cropper[_ngcontent-%COMP%] .ngx-ic-move[_ngcontent-%COMP%]{display:none}.ngx-ix-hidden[_nghost-%COMP%]{display:none}'],changeDetection:0}),d})(),D=(()=>{class d{}return d.\u0275fac=function(a){return new(a||d)},d.\u0275mod=i.$C({type:d}),d.\u0275inj=i.G2t({imports:[[fe.MD]]}),d})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.