diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..69630d0 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +commerceapp.webart.work \ No newline at end of file diff --git a/assets/default.png b/assets/default.png new file mode 100644 index 0000000..f738295 Binary files /dev/null and b/assets/default.png differ diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..47bb5e2 Binary files /dev/null and b/assets/favicon.ico differ diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..f738295 Binary files /dev/null and b/assets/logo.png differ diff --git a/chunk-2GWY33P4.js b/chunk-2GWY33P4.js new file mode 100644 index 0000000..f9bd57e --- /dev/null +++ b/chunk-2GWY33P4.js @@ -0,0 +1 @@ +import{e as M}from"./chunk-LQFWOSYV.js";import{I as s,L as p,M as u,Pa as S,R as _,Ta as y,X as C,_a as n,bb as g,cb as j,db as b,fb as a,kb as w,q as v,r as d,rb as k,t as m,tb as I}from"./chunk-65U4F77E.js";var x={formId:"commerceservice",title:"Commerceservice",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commerceservice title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commerceservice description"},{name:"Label",value:"Description"}]}]};var D=(()=>{class i extends g{constructor(r,t,e,c){super({name:"commerceservice"},r,t,e,c),this.commerceservices=this.getDocs(),this.commerceservicesByAuthor={},this.get(),this.filteredDocuments(this.commerceservicesByAuthor)}static{this.\u0275fac=function(t){return new(t||i)(m(b),m(j),m(a),m(n))}}static{this.\u0275prov=v({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();var h=(()=>{class i{get rows(){return this._commerceserviceService.commerceservices}constructor(r,t,e,c,l,T){this._translate=r,this._commerceserviceService=t,this._alert=e,this._form=c,this._core=l,this._router=T,this.columns=["name","description"],this.commerce=this._router.url.includes("/commerceservices/")?this._router.url.replace("/commerceservices/",""):"",this.form=this._form.getForm("commerceservice",x),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(o,f)=>{this.commerce&&(o.commerce=this.commerce),this._commerceserviceService.create(o),f()}})},update:o=>{this._form.modal(this.form,[],o).then(f=>{this._core.copy(f,o),this._commerceserviceService.update(o)})},delete:o=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commerceservice?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commerceserviceService.delete(o)}}]})},buttons:[{icon:"cloud_download",click:o=>{this._form.modalUnique("commerceservice","url",o)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(r=!0){return()=>{this._form.modalDocs(r?[]:this.rows).then(t=>{if(r)for(let e of t)this.commerce&&(e.commerce=this.commerce),this._commerceserviceService.create(e);else{for(let e of this.rows)t.find(c=>c._id===e._id)||this._commerceserviceService.delete(e);for(let e of t){let c=this.rows.find(l=>l._id===e._id);c?(this._core.copy(e,c),this._commerceserviceService.update(c)):(this.commerce&&(e.commerce=this.commerce),e.__created=!1,this._commerceserviceService.create(e))}}})}}static{this.\u0275fac=function(t){return new(t||i)(s(w),s(D),s(a),s(I),s(n),s(S))}}static{this.\u0275cmp=p({type:i,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commerceservices",3,"columns","config","rows"]],template:function(t,e){t&1&&C(0,"wtable",0),t&2&&_("columns",e.columns)("config",e.config)("rows",e.rows)},dependencies:[k],encapsulation:2})}}return i})();var N=[{path:"",component:h},{path:":commerce_id",component:h}],K=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=u({type:i})}static{this.\u0275inj=d({imports:[y.forChild(N),M]})}}return i})();export{K as CommerceservicesModule}; diff --git a/chunk-2VBCDRJZ.js b/chunk-2VBCDRJZ.js new file mode 100644 index 0000000..d612170 --- /dev/null +++ b/chunk-2VBCDRJZ.js @@ -0,0 +1 @@ +import{a as M}from"./chunk-ANGIOSFH.js";import{a as S,c as E,d as F,e as I}from"./chunk-LQFWOSYV.js";import{$ as s,Da as x,H as p,I as c,L as h,M as _,P as b,R as d,Ta as y,Ua as v,V as i,W as n,_ as w,_a as C,aa as f,ia as l,lb as O,mb as k,pa as P,r as m,tb as T,ub as j,w as u,x as g}from"./chunk-65U4F77E.js";var D=()=>({"border-radius":"var(--c-img-round)",width:"52px",height:"52px"});function V(t,B){if(t&1){let e=w();i(0,"wform",13),s("wChange",function(){u(e);let r=f();return g(r.update())}),n()}if(t&2){let e=f();d("config",e.formProfile)("submition",e.user)}}var L=(()=>{class t{constructor(e,o,r){this._form=e,this._core=o,this.us=r,this.url=v.url,this.formProfile=this._form.getForm("profile",{formId:"profile",title:"Profile Settings",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"Enter your name"},{name:"Label",value:"Name"}]},{name:"Text",key:"phone",fields:[{name:"Placeholder",value:"Enter your phone"},{name:"Label",value:"Phone"}]},{name:"Text",key:"bio",fields:[{name:"Placeholder",value:"Enter your bio"},{name:"Label",value:"Bio"},{name:"Textarea",value:!0}]}]}),this.formPassword=this._form.getForm("change password",{formId:"change password",title:"Change password",components:[{name:"Password",key:"oldPass",focused:!0,fields:[{name:"Placeholder",value:"Enter your old password"},{name:"Label",value:"Old Password"}]},{name:"Password",key:"newPass",fields:[{name:"Placeholder",value:"Enter your new password"},{name:"Label",value:"New Password"}]}]}),this._core.onComplete("us.user").then(()=>{let a={};this._core.copy(this.us.user,a),this.user=a})}update(){this._core.copy(this.user,this.us.user),this.us.updateMe()}changePassword(){this._form.modal(this.formPassword,{label:"Change",click:(e,o)=>{this.us.changePassword(e.oldPass,e.newPass),o()}}).then(e=>{this.us.changePassword(e.oldPass,e.newPass)})}updateThumb(e){this.us.user.thumb=Array.isArray(e)?e[0]:e,this.us.updateMe()}static{this.\u0275fac=function(o){return new(o||t)(c(T),c(C),c(M))}}static{this.\u0275cmp=h({type:t,selectors:[["app-profile"]],standalone:!1,decls:18,vars:8,consts:[[1,"container"],[1,"profile__header"],[1,"avatar","_profile"],["err","assets/default.png","container","user",3,"update","value","name","isPhoto","imgStyle","height","width"],[1,"profile__body"],[3,"config","submition","wChange",4,"ngIf"],[1,"profile__footer"],[1,"profile__logout"],["type","danger",3,"click"],[1,"material-icons"],["translate",""],[1,"profile__password"],["type","link","translate","",3,"click"],[3,"wChange","config","submition"]],template:function(o,r){o&1&&(i(0,"div",0)(1,"wcard")(2,"div",1)(3,"div")(4,"div",2)(5,"ngx-file",3),s("update",function(N){return r.updateThumb(N)}),n()()()(),i(6,"div",4),b(7,V,1,2,"wform",5),i(8,"div",6)(9,"div",7)(10,"wbutton",8),s("click",function(){return r.us.logout()}),i(11,"span",9),l(12,"logout"),n(),i(13,"span",10),l(14,"Profile.Logout"),n()()(),i(15,"div",11)(16,"wbutton",12),s("click",function(){return r.changePassword()}),l(17," Profile.Change Password "),n()()()()()()),o&2&&(p(5),d("value",r.us.user.thumb?r.url+r.us.user.thumb:"assets/default.png")("name",r.us.user._id+".jpg")("isPhoto",!0)("imgStyle",P(7,D))("height",512)("width",512),p(2),d("ngIf",r.user))},dependencies:[O,x,k,S,j,E],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] wcard[_ngcontent-%COMP%]{width:100%;transition:all .3s;display:block}.container[_ngcontent-%COMP%]{padding:unset}.profile__header[_ngcontent-%COMP%]{z-index:9;top:20px;position:absolute;right:30px;letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:12px}.profile__footer[_ngcontent-%COMP%]{margin-top:20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}@media (max-width: 767.9px){.profile__footer[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.profile__footer[_ngcontent-%COMP%] .profile__logout[_ngcontent-%COMP%]{order:2;margin-top:20px}}.profile__logout[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:0;display:flex;justify-content:space-between;align-items:center}.profile__logout[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:10px}.imgClass[_ngcontent-%COMP%]{height:52px;width:52px}.avatar[_ngcontent-%COMP%]{border-radius:50%;border:1px solid var(--c-border);position:relative;margin:0 auto;padding:3px}.avatar._profile[_ngcontent-%COMP%]{width:60px;height:60px}.avatar__img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar__upload[_ngcontent-%COMP%]{cursor:pointer;position:absolute;right:0;bottom:0;width:24px;height:24px;border-radius:50%;background:var(--c-primary);display:flex;justify-content:center;align-items:center;transition:.3s all ease-in-out}.avatar__icon[_ngcontent-%COMP%]{color:#fff;font-size:16px}.profile__password[_ngcontent-%COMP%]{cursor:pointer}"]})}}return t})();var A=[{path:"",component:L}],re=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=_({type:t})}static{this.\u0275inj=m({imports:[y.forChild(A),I,F]})}}return t})();export{re as ProfileModule}; diff --git a/chunk-2ZMTOFWJ.js b/chunk-2ZMTOFWJ.js new file mode 100644 index 0000000..bec0412 --- /dev/null +++ b/chunk-2ZMTOFWJ.js @@ -0,0 +1 @@ +import{$ as m,A as b,Ba as $,Ca as N,Da as D,G as S,H as s,Ha as P,I as F,L as k,M as O,P as _,Pa as B,R as d,T,V as a,W as o,X as h,_ as M,aa as l,ba as Y,ca as E,ia as g,ja as v,ka as V,mb as z,nb as W,pa as H,qa as L,r as y,w as u,x,y as C,z as w}from"./chunk-65U4F77E.js";var Z=[[["","header",""]],[["","body",""]]],G=["[header]","[body]"],R=n=>({"header--open":n});function A(n,p){n&1&&(a(0,"div",8),E(1,1),o())}var se=(()=>{class n{constructor(){this.config=this.config||{},this.config.show=typeof this.config.show=="boolean"?this.config.show:!1,this.config.toggle=this.config.toggle||this.toggle.bind(this),this.config.open=this.config.open||this.open.bind(this),this.config.close=this.config.close||this.close.bind(this)}toggle(){this.config.show=!this.config.show}open(){this.config.show=!0}close(){this.config.show=!1}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=k({type:n,selectors:[["wcollapse"]],inputs:{config:"config"},standalone:!1,ngContentSelectors:G,decls:10,vars:4,consts:[[1,"header",3,"click","ngClass"],[1,"accardion__arrow"],["width","24","height","24","viewBox","0 0 24 24","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M6 9L12 15L18 9","stroke","#B9B01F","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["id","paint0_linear_31_2","x1","8","y1","-5.5","x2","12","y2","29","gradientUnits","userSpaceOnUse"],["stop-color","#183AE9"],["offset","1","stop-color","#2E9D75"],["class","body",4,"ngIf"],[1,"body"]],template:function(e,i){e&1&&(Y(Z),a(0,"div",0),m("click",function(){return i.config.toggle()}),E(1),a(2,"div",1),C(),a(3,"svg",2),h(4,"path",3),a(5,"defs")(6,"linearGradient",4),h(7,"stop",5)(8,"stop",6),o()()()()(),_(9,A,2,0,"div",7)),e&2&&(d("ngClass",L(2,R,i.config.show)),s(9),d("ngIf",i.config.show))},dependencies:[$,D],styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:10px;background:#22252a;border-radius:12px}.header--open[_ngcontent-%COMP%]{border-radius:12px 12px 0 0}.header--open[_ngcontent-%COMP%] .accardion__arrow[_ngcontent-%COMP%]{transform:rotate(180deg)}.accardion__arrow[_ngcontent-%COMP%]{display:flex;transition:all .3s}"]})}}return n})();var _e=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=O({type:n})}static{this.\u0275inj=y({imports:[P]})}}return n})();var U=()=>[1,2,3,4,5,6,7];function q(n,p){if(n&1&&(a(0,"span",22),g(1),o()),n&2){let t=l().$implicit,e=l(2);s(),v(e.dayTitle[t])}}function J(n,p){if(n&1){let t=M();a(0,"div",25),m("click",function(i){let c=u(t).$implicit;return l(4).eventClicked(c),x(i.stopPropagation())}),o()}}function K(n,p){if(n&1&&(a(0,"span",23)(1,"span",23),g(2),o(),a(3,"div"),_(4,J,1,0,"div",24),o()()),n&2){let t=l().$implicit,e=l(2);s(2),v(e.startDay+t),s(2),d("ngForOf",e.eventsByDate[e.toDate(e.previousYear,e.previousMonth,e.startDay+t)])}}function Q(n,p){if(n&1){let t=M();a(0,"div",25),m("click",function(i){let c=u(t).$implicit;return l(4).eventClicked(c),x(i.stopPropagation())}),o()}}function X(n,p){if(n&1&&(a(0,"span")(1,"div",23),g(2),o(),a(3,"div"),_(4,Q,1,0,"div",24),o()()),n&2){let t=l().$implicit,e=l().index,i=l();s(2),V(" ",t+e*7-i.skipDays," "),s(2),d("ngForOf",i.eventsByDate[i.toDate(i.currentYear,i.currentMonth,t+e*7-i.skipDays)])}}function ee(n,p){if(n&1){let t=M();a(0,"div",25),m("click",function(i){let c=u(t).$implicit;return l(4).eventClicked(c),x(i.stopPropagation())}),o()}}function te(n,p){if(n&1&&(a(0,"span")(1,"div"),g(2),o(),a(3,"div"),_(4,ee,1,0,"div",24),o()()),n&2){let t=l().$implicit,e=l(2);s(2),v(t-e.keepDays),s(2),d("ngForOf",e.eventsByDate[e.toDate(e.nextYear,e.nextMonth,t-e.keepDays)])}}function ne(n,p){if(n&1){let t=M();a(0,"span",18),m("click",function(){let i=u(t).$implicit,c=l().index,r=l();return x(r.dateClicked(!c&&r.skipDays>=i?r.toDate(r.previousYear,r.previousMonth,r.startDay+i):c===r.weeksInMonth.length-1&&r.keepDays=t),s(),d("ngIf",e&&e!==i.weeksInMonth.length-1||e===i.weeksInMonth.length-1&&i.keepDays>=t||!e&&i.skipDays{class n{constructor(t){this._router=t,this.eventsByDate={},this.createEvent=new b,this.updateEvent=new b,this.dayTitle={1:"\u041F\u041D",2:"\u0412\u0422",3:"\u0421\u0420",4:"\u0427\u0422",5:"\u041F\u0422",6:"\u0421\u0411",7:"\u041D\u0414"},this.monthTitle={0:"\u0421\u0456\u0447\u0435\u043D\u044C",1:"\u041B\u044E\u0442\u0438\u0439",2:"\u0411\u0435\u0440\u0435\u0437\u0435\u043D\u044C",3:"\u041A\u0432\u0456\u0442\u0435\u043D\u044C",4:"\u0422\u0440\u0430\u0432\u0435\u043D\u044C",5:"\u0427\u0435\u0440\u0432\u0435\u043D\u044C",6:"\u041B\u0438\u043F\u0435\u043D\u044C",7:"\u0421\u0435\u0440\u043F\u0435\u043D\u044C",8:"\u0412\u0435\u0440\u0435\u0441\u0435\u043D\u044C",9:"\u0416\u043E\u0432\u0442\u0435\u043D\u044C",10:"\u041B\u0438\u0441\u0442\u043E\u043F\u0430\u0434",11:"\u0413\u0440\u0443\u0434\u0435\u043D\u044C"},this.manager=this._router.url.includes("manager"),this.currentMonth=new Date().getMonth(),this.currentYear=new Date().getFullYear(),this.weeksInMonth=[],this.startDay=0,this.skipDays=0,this.keepDays=0,this.selectedDate=localStorage.getItem("travel_selectedDate")||"",this._onMonthChange(),this.onResize()}setNow(){this.currentMonth=new Date().getMonth(),this.currentYear=new Date().getFullYear(),this._onMonthChange()}setPreviousMonth(){this.currentMonth--,this.currentMonth===-1&&(this.currentMonth=11,this.currentYear--),this._onMonthChange()}setNextMonth(){this.currentMonth++,this.currentMonth===12&&(this.currentMonth=0,this.currentYear++),this._onMonthChange()}_onMonthChange(){this.currentMonth===11?(this.previousMonth=10,this.previousYear=this.currentYear,this.nextMonth=0,this.nextYear=this.currentYear+1):this.currentMonth===0?(this.previousMonth=11,this.previousYear=this.currentYear-1,this.nextMonth=1,this.nextYear=this.currentYear):(this.previousMonth=this.currentMonth-1,this.previousYear=this.currentYear,this.nextMonth=this.currentMonth+1,this.nextYear=this.currentYear);let t=new Date(this.currentYear,this.currentMonth,1),e=this.getWeekNumber(t);this.weeksInMonth=[];let i=this.getWeeksInMonth(this.currentMonth,this.currentYear);for(let f=0;f1?this.getDaysInMonth(this.currentMonth-1,this.currentYear):this.getDaysInMonth(11,this.currentYear-1),r=this.getDaysInMonth(this.currentMonth,this.currentYear);this.startDay=c-this.skipDays,this.keepDays=(r+this.skipDays)%7,(!this.selectedDate||this.selectedDate.split(".")[0]!==this.currentYear.toString()||this.selectedDate.split(".")[1]!==(this.currentMonth-1).toString())&&(this.selectedDate="")}onResize(){this.isMobile=window.innerWidth<=768}toDate(t,e,i,c="."){return`${t}${c}${e}${c}${i}`}dateClicked(t){this.isMobile&&(this.selectedDate=t,localStorage.setItem("travel_selectedDate",t))}eventClicked(t){this.isMobile?this.selectedDate=this.date(t):this.updateEvent.emit(t)}getWeekNumber(t){let e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7));let i=new Date(e.getFullYear(),0,1);return Math.ceil(((e.getTime()-i.getTime())/864e5+1)/7)}getWeeksInMonth(t,e){let i=new Date(e,t,1),c=new Date(e,t+1,0),r=this.getWeekNumber(i),f=this.getWeekNumber(c);return r>f&&(f=this.getWeekNumber(new Date(e,11,31))),f-r+1}getDaysInMonth(t,e){return new Date(e,t+1,0).getDate()}date(t,e="."){return`${t.year}${e}${t.month}${e}${t.day}`}static{this.\u0275fac=function(e){return new(e||n)(F(B))}}static{this.\u0275cmp=k({type:n,selectors:[["wcalendar"]],hostBindings:function(e,i){e&1&&m("resize",function(){return i.onResize()},!1,S)},inputs:{eventsByDate:"eventsByDate"},outputs:{createEvent:"createEvent",updateEvent:"updateEvent"},standalone:!1,decls:21,vars:7,consts:[[1,"calendar-nav"],[1,"calendar-nav__today"],[3,"click"],[1,"calendar-nav-year"],[1,"calendar-nav-year__buttons"],[1,"material-icons","arrow-back",3,"click"],["width","34","height","34","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M8.94961 2.7043L8.89219 2.75352L4.61289 6.47227C4.46797 6.59805 4.37773 6.78672 4.37773 6.99727C4.37773 7.20781 4.4707 7.39648 4.61289 7.52227L8.88398 11.2383L8.95508 11.3012C9.02344 11.3477 9.10547 11.375 9.19297 11.375C9.43086 11.375 9.625 11.1727 9.625 10.9211L9.625 3.07891C9.625 2.82734 9.43086 2.625 9.19297 2.625C9.10273 2.625 9.01797 2.65508 8.94961 2.7043Z","fill","black"],[1,"calendar-nav-year__data"],[1,"material-icons","arrow-next",3,"click"],["d","M5.05039 11.2957L5.10781 11.2465L9.38711 7.52773C9.53203 7.40195 9.62227 7.21328 9.62227 7.00273C9.62227 6.79219 9.5293 6.60352 9.38711 6.47773L5.11602 2.76172L5.04492 2.69883C4.97656 2.65234 4.89453 2.625 4.80703 2.625C4.56914 2.625 4.375 2.82734 4.375 3.07891V10.9211C4.375 11.1727 4.56914 11.375 4.80703 11.375C4.89727 11.375 4.98203 11.3449 5.05039 11.2957Z","fill","black"],[1,"calendar"],["class","calendar__row",4,"ngFor","ngForOf"],["class","line",4,"ngIf"],["class","events-wrapper",4,"ngIf"],[1,"calendar__row"],[1,"calendar__week"],["class","calendar__day",3,"click",4,"ngFor","ngForOf"],[1,"calendar__day",3,"click"],["class","calendar__day-name",4,"ngIf"],["class","calendar__stard-day",4,"ngIf"],[4,"ngIf"],[1,"calendar__day-name"],[1,"calendar__stard-day"],["class","calendar-events",3,"click",4,"ngFor","ngForOf"],[1,"calendar-events",3,"click"],[1,"line"],[1,"events-wrapper"],["class","event__item",4,"ngFor","ngForOf"],[1,"event__item"],[1,"event__icon"],["width","40","height","40","viewBox","0 0 40 40","fill","none","xmlns","http://www.w3.org/2000/svg"],["clip-path","url(#clip0_120_2)"],["d","M5.38231 1.1333C2.68075 1.1333 1.16199 2.53004 1.16199 5.38396V34.8037C1.16199 37.4732 2.52741 38.8709 5.22682 38.8709H34.771C37.4705 38.8709 38.838 37.5428 38.838 34.8037V5.38396C38.838 2.59964 37.4705 1.1333 34.6862 1.1333C34.6862 1.1333 5.37303 1.12396 5.38231 1.1333Z","fill","#256EFF","stroke","#256EFF","stroke-width","3.408"],["d","M20.1713 6.70935C17.5403 6.70935 13.9067 7.46112 12.4032 8.08759C10.8996 8.71406 9.8973 9.34053 9.58409 10.9067L8.45651 19.5891V31.5528H10.3985V33.429C10.3985 35.7165 13.7461 35.7165 13.7461 33.429V31.5528H19.9263H19.9459H26.3712V33.429C26.3712 35.7165 29.7187 35.7165 29.7187 33.429V31.5528H31.6607V19.5891L30.5331 10.9067C30.2199 9.34053 29.2176 8.71406 27.714 8.08759C26.2105 7.46112 22.5769 6.70935 19.9459 6.70935","fill","white"],["d","M28.0436 27.8023C28.9304 27.8023 29.6493 27.0833 29.6493 26.1965C29.6493 25.3097 28.9304 24.5906 28.0436 24.5906C27.1568 24.5906 26.4377 25.3097 26.4377 26.1965C26.4377 27.0833 27.1568 27.8023 28.0436 27.8023Z","fill","#256EFF"],["d","M12.0736 27.8023C11.1868 27.8023 10.4679 27.0833 10.4679 26.1965C10.4679 25.3097 11.1868 24.5906 12.0736 24.5906C12.9604 24.5906 13.6794 25.3097 13.6794 26.1965C13.6794 27.0833 12.9604 27.8023 12.0736 27.8023Z","fill","#256EFF"],["d","M19.9344 10.3115H15.285C14.3453 10.3115 14.3453 8.90198 15.285 8.90198H19.9459H24.8322C25.7719 8.90198 25.7719 10.3115 24.8322 10.3115H19.9344Z","fill","#256EFF"],["d","M19.9344 11.7346H12.7516C11.7589 11.7346 11.4996 12.2391 11.3791 13.0041L10.5014 19.3014C10.4195 19.9049 10.5941 20.5041 11.4281 20.5041H19.9458H28.6891C29.523 20.5041 29.6977 19.9049 29.6158 19.3014L28.7381 13.0041C28.6176 12.2391 28.3583 11.7346 27.3656 11.7346H19.9344Z","fill","#256EFF"],["id","clip0_120_2"],["width","40","height","40","fill","white"],[1,"event-text"],[1,"event-text","event-text__left"],[1,"event-text__row"],[1,"add-event-mobile"]],template:function(e,i){e&1&&(a(0,"div",0)(1,"div",1)(2,"wbutton",2),m("click",function(){return i.setNow()}),g(3,"\u0421\u044C\u043E\u0433\u043E\u0434\u043D\u0456"),o()(),a(4,"div",3)(5,"div",4)(6,"i",5),m("click",function(){return i.setPreviousMonth()}),C(),a(7,"svg",6),h(8,"path",7),o()(),w(),a(9,"div",8)(10,"span"),g(11),o(),a(12,"span"),g(13),o()(),a(14,"i",9),m("click",function(){return i.setNextMonth()}),C(),a(15,"svg",6),h(16,"path",10),o()()()()(),w(),a(17,"div",11),_(18,ie,4,3,"div",12),o(),_(19,ae,1,0,"div",13)(20,re,2,1,"div",14)),e&2&&(s(11),v(i.monthTitle[i.currentMonth]),s(2),v(i.currentYear),s(4),T("calendar-mobile",i.isMobile),s(),d("ngForOf",i.weeksInMonth),s(),d("ngIf",i.isMobile&&i.selectedDate),s(),d("ngIf",i.isMobile&&i.selectedDate))},dependencies:[N,D,z],styles:['@charset "UTF-8";.calendar[_ngcontent-%COMP%]{padding-top:20px;display:flex;flex-direction:column;height:100vh}.calendar__row[_ngcontent-%COMP%]{flex:1;display:flex;position:relative}.calendar__stard-day[_ngcontent-%COMP%]{text-align:center}.calendar__day[_ngcontent-%COMP%]{flex:1;background:var(--c-calendar);padding:10px 5px;border-radius:0;border:1px solid var(--border);font-weight:900;display:flex;flex-flow:column wrap}.calendar__day-name[_ngcontent-%COMP%]{color:var(--day-name);font-size:12px;font-weight:700;padding-bottom:3px;text-align:center}.calendar__week[_ngcontent-%COMP%]{position:absolute;width:30px;height:30px;background:#625959;display:flex;align-items:center;justify-content:center;border-radius:5px;color:#fff;top:-10px;left:-10px}.calendar-time[_ngcontent-%COMP%]{display:flex;align-items:center;color:var(--c-primary);line-height:1;justify-content:center;font-weight:300}.calendar-time__clock[_ngcontent-%COMP%]{display:flex;margin-right:7px}.calendar-time__clock[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-primary)}.calendar-events[_ngcontent-%COMP%]{font-size:12px;background:var(--events);border-radius:5px;font-weight:500;color:#fff;padding:5px;margin-bottom:5px}.calendar-events__text[_ngcontent-%COMP%]{font-weight:900}.calendar-events__column[_ngcontent-%COMP%]{margin-right:20px}.calendar-events__row[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid #fff}.calendar-events__row[_ngcontent-%COMP%]:last-child{border:none}.calendar-events__name[_ngcontent-%COMP%]{color:var(--c-primary)}.calendar-nav[_ngcontent-%COMP%], .calendar-nav-year[_ngcontent-%COMP%]{display:flex;align-items:center}.calendar-nav-year__buttons[_ngcontent-%COMP%]{display:flex;align-items:center;width:250px;justify-content:space-between}.calendar-nav-year__buttons[_ngcontent-%COMP%] .arrow-back[_ngcontent-%COMP%]{cursor:pointer}.calendar-nav-year__buttons[_ngcontent-%COMP%] .arrow-back[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-primary)}.calendar-nav-year__buttons[_ngcontent-%COMP%] .arrow-next[_ngcontent-%COMP%]{cursor:pointer}.calendar-nav-year__buttons[_ngcontent-%COMP%] .arrow-next[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-primary)}.calendar-nav-year__data[_ngcontent-%COMP%]{margin:0 15px;font-size:20px}.calendar-nav-year__data[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:last-child{margin-left:10px}.calendar-nav__today[_ngcontent-%COMP%]{margin-right:20px}.line[_ngcontent-%COMP%]{width:100%;z-index:1;background:#fff;height:1px;margin:15px 0}.event__item[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid var(--day-name);margin-bottom:10px}.event__icon[_ngcontent-%COMP%]{margin-right:10px}.event-text__left[_ngcontent-%COMP%]{display:flex}.event-text__title[_ngcontent-%COMP%]{font-weight:700}.event-text__row[_ngcontent-%COMP%]{display:flex;padding-bottom:5px}.event-text__column[_ngcontent-%COMP%]{margin-right:20px}.event-text__column-from[_ngcontent-%COMP%]{color:var(--c-primary);font-weight:900}.event-text__column-time[_ngcontent-%COMP%]{font-size:14px;color:var(--day-name)}.event-driver[_ngcontent-%COMP%]{border-left:1px solid var(--day-name);padding-left:10px}.event-driver__name[_ngcontent-%COMP%]{color:var(--c-primary);font-weight:900}.event-driver__phone[_ngcontent-%COMP%]{font-size:14px;color:var(--day-name)}.add-event-mobile[_ngcontent-%COMP%]{padding:10px 20px;margin-top:20px}@media screen and (max-width: 769px){.calendar-nav-year__buttons[_ngcontent-%COMP%]{width:unset}.calendar-nav__today[_ngcontent-%COMP%]{margin-right:10px}.calendar-nav-year__data[_ngcontent-%COMP%]{margin:0 15px;font-size:15px;font-weight:600}.calendar-mobile[_ngcontent-%COMP%]{height:fit-content}.calendar-mobile[_ngcontent-%COMP%] .calendar-events[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .calendar-mobile[_ngcontent-%COMP%] .calendar-events[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:none}.calendar-mobile[_ngcontent-%COMP%] .calendar__day[_ngcontent-%COMP%]{margin:2px;padding:8px;border-radius:5px;min-height:70px;font-size:14px}.calendar-mobile[_ngcontent-%COMP%] .calendar__week[_ngcontent-%COMP%]{width:21px;height:21px;font-size:12px}.calendar-mobile[_ngcontent-%COMP%] .calendar-events[_ngcontent-%COMP%]{padding:2px}}']})}}return n})();var Pe=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=O({type:n})}static{this.\u0275inj=y({imports:[P,W]})}}return n})();export{se as a,_e as b,Me as c,Pe as d}; diff --git a/chunk-4U3ARV3H.js b/chunk-4U3ARV3H.js new file mode 100644 index 0000000..97ee430 --- /dev/null +++ b/chunk-4U3ARV3H.js @@ -0,0 +1 @@ +import{e as M}from"./chunk-LQFWOSYV.js";import{I as m,L as u,M as b,Pa as C,R as _,Ta as S,X as v,_a as s,bb as y,cb as g,db as j,fb as a,kb as w,q as h,r as p,rb as k,t as n,tb as I}from"./chunk-65U4F77E.js";var x={formId:"commercebrand",title:"Commercebrand",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commercebrand title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commercebrand description"},{name:"Label",value:"Description"}]}]};var D=(()=>{class r extends y{constructor(o,t,e,c){super({name:"commercebrand"},o,t,e,c),this.commercebrands=this.getDocs(),this.commercebrandsByAuthor={},this.get(),this.filteredDocuments(this.commercebrandsByAuthor)}static{this.\u0275fac=function(t){return new(t||r)(n(j),n(g),n(a),n(s))}}static{this.\u0275prov=h({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var f=(()=>{class r{get rows(){return this._commercebrandService.commercebrands}constructor(o,t,e,c,l,T){this._translate=o,this._commercebrandService=t,this._alert=e,this._form=c,this._core=l,this._router=T,this.columns=["name","description"],this.commerce=this._router.url.includes("/commercebrands/")?this._router.url.replace("/commercebrands/",""):"",this.form=this._form.getForm("commercebrand",x),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(i,d)=>{this.commerce&&(i.commerce=this.commerce),this._commercebrandService.create(i),d()}})},update:i=>{this._form.modal(this.form,[],i).then(d=>{this._core.copy(d,i),this._commercebrandService.update(i)})},delete:i=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commercebrand?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commercebrandService.delete(i)}}]})},buttons:[{icon:"cloud_download",click:i=>{this._form.modalUnique("commercebrand","url",i)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(o=!0){return()=>{this._form.modalDocs(o?[]:this.rows).then(t=>{if(o)for(let e of t)this.commerce&&(e.commerce=this.commerce),this._commercebrandService.create(e);else{for(let e of this.rows)t.find(c=>c._id===e._id)||this._commercebrandService.delete(e);for(let e of t){let c=this.rows.find(l=>l._id===e._id);c?(this._core.copy(e,c),this._commercebrandService.update(c)):(this.commerce&&(e.commerce=this.commerce),e.__created=!1,this._commercebrandService.create(e))}}})}}static{this.\u0275fac=function(t){return new(t||r)(m(w),m(D),m(a),m(I),m(s),m(C))}}static{this.\u0275cmp=u({type:r,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commercebrands",3,"columns","config","rows"]],template:function(t,e){t&1&&v(0,"wtable",0),t&2&&_("columns",e.columns)("config",e.config)("rows",e.rows)},dependencies:[k],encapsulation:2})}}return r})();var N=[{path:"",component:f},{path:":commerce_id",component:f}],K=(()=>{class r{static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275mod=b({type:r})}static{this.\u0275inj=p({imports:[S.forChild(N),M]})}}return r})();export{K as CommercebrandsModule}; diff --git a/chunk-65U4F77E.js b/chunk-65U4F77E.js new file mode 100644 index 0000000..028415a --- /dev/null +++ b/chunk-65U4F77E.js @@ -0,0 +1,8 @@ +var q0=Object.create;var Ko=Object.defineProperty,G0=Object.defineProperties,W0=Object.getOwnPropertyDescriptor,Z0=Object.getOwnPropertyDescriptors,Y0=Object.getOwnPropertyNames,Qo=Object.getOwnPropertySymbols,Q0=Object.getPrototypeOf,el=Object.prototype.hasOwnProperty,Oh=Object.prototype.propertyIsEnumerable;var Ah=(t,n,e)=>n in t?Ko(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,b=(t,n)=>{for(var e in n||={})el.call(n,e)&&Ah(t,e,n[e]);if(Qo)for(var e of Qo(n))Oh.call(n,e)&&Ah(t,e,n[e]);return t},H=(t,n)=>G0(t,Z0(n));var K0=(t,n)=>{var e={};for(var r in t)el.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&Qo)for(var r of Qo(t))n.indexOf(r)<0&&Oh.call(t,r)&&(e[r]=t[r]);return e};var NO=(t,n)=>()=>(n||t((n={exports:{}}).exports,n),n.exports),J0=(t,n)=>{for(var e in n)Ko(t,e,{get:n[e],enumerable:!0})},X0=(t,n,e,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of Y0(n))!el.call(t,i)&&i!==e&&Ko(t,i,{get:()=>n[i],enumerable:!(r=W0(n,i))||r.enumerable});return t};var PO=(t,n,e)=>(e=t!=null?q0(Q0(t)):{},X0(n||!t||!t.__esModule?Ko(e,"default",{value:t,enumerable:!0}):e,t));var dt=(t,n,e)=>new Promise((r,i)=>{var o=c=>{try{a(e.next(c))}catch(l){i(l)}},s=c=>{try{a(e.throw(c))}catch(l){i(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(o,s);a((e=e.apply(t,n)).next())});function il(t,n){return Object.is(t,n)}var be=null,Jo=!1,ol=1,Je=Symbol("SIGNAL");function Q(t){let n=be;return be=t,n}function Nh(){return be}var Ni={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function es(t){if(Jo)throw new Error("");if(be===null)return;be.consumerOnSignalRead(t);let n=be.nextProducerIndex++;if(rs(be),nt.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}function cl(t){rs(t);for(let n=0;n0}function rs(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}function Fh(t){t.liveConsumerNode??=[],t.liveConsumerIndexOfThis??=[]}function Lh(t){return t.producerNode!==void 0}function Vh(t){let n=Object.create(nw);n.computation=t;let e=()=>{if(sl(n),es(n),n.value===Xo)throw n.error;return n.value};return e[Je]=n,e}var tl=Symbol("UNSET"),nl=Symbol("COMPUTING"),Xo=Symbol("ERRORED"),nw=H(b({},Ni),{value:tl,dirty:!0,error:null,equal:il,producerMustRecompute(t){return t.value===tl||t.value===nl},producerRecomputeValue(t){if(t.value===nl)throw new Error("Detected cycle in computations.");let n=t.value;t.value=nl;let e=ts(t),r;try{r=t.computation()}catch(i){r=Xo,t.error=i}finally{al(t,e)}if(n!==tl&&n!==Xo&&r!==Xo&&t.equal(n,r)){t.value=n;return}t.value=r,t.version++}});function rw(){throw new Error}var jh=rw;function Bh(){jh()}function Uh(t){jh=t}var iw=null;function $h(t){let n=Object.create(ul);n.value=t;let e=()=>(es(n),n.value);return e[Je]=n,e}function is(t,n){Rh()||Bh(),t.equal(t.value,n)||(t.value=n,ow(t))}function Hh(t,n){Rh()||Bh(),is(t,n(t.value))}var ul=H(b({},Ni),{equal:il,value:void 0});function ow(t){t.version++,ew(),Ph(t),iw?.()}function F(t){return typeof t=="function"}function br(t){let e=t(r=>{Error.call(r),r.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var os=br(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +${e.map((r,i)=>`${i+1}) ${r.toString()}`).join(` + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Pi(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var _e=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let o of e)o.remove(this);else e.remove(this);let{initialTeardown:r}=this;if(F(r))try{r()}catch(o){n=o instanceof os?o.errors:[o]}let{_finalizers:i}=this;if(i){this._finalizers=null;for(let o of i)try{zh(o)}catch(s){n=n??[],s instanceof os?n=[...n,...s.errors]:n.push(s)}}if(n)throw new os(n)}}add(n){var e;if(n&&n!==this)if(this.closed)zh(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Pi(e,n)}remove(n){let{_finalizers:e}=this;e&&Pi(e,n),n instanceof t&&n._removeParent(this)}};_e.EMPTY=(()=>{let t=new _e;return t.closed=!0,t})();var dl=_e.EMPTY;function ss(t){return t instanceof _e||t&&"closed"in t&&F(t.remove)&&F(t.add)&&F(t.unsubscribe)}function zh(t){F(t)?t():t.unsubscribe()}var Ct={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Dr={setTimeout(t,n,...e){let{delegate:r}=Dr;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Dr;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function as(t){Dr.setTimeout(()=>{let{onUnhandledError:n}=Ct;if(n)n(t);else throw t})}function Ri(){}var qh=fl("C",void 0,void 0);function Gh(t){return fl("E",void 0,t)}function Wh(t){return fl("N",t,void 0)}function fl(t,n,e){return{kind:t,value:n,error:e}}var Wn=null;function Er(t){if(Ct.useDeprecatedSynchronousErrorHandling){let n=!Wn;if(n&&(Wn={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:r}=Wn;if(Wn=null,e)throw r}}else t()}function Zh(t){Ct.useDeprecatedSynchronousErrorHandling&&Wn&&(Wn.errorThrown=!0,Wn.error=t)}var Zn=class extends _e{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,ss(n)&&n.add(this)):this.destination=cw}static create(n,e,r){return new Zt(n,e,r)}next(n){this.isStopped?pl(Wh(n),this):this._next(n)}error(n){this.isStopped?pl(Gh(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?pl(qh,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},sw=Function.prototype.bind;function hl(t,n){return sw.call(t,n)}var gl=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){cs(r)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){cs(r)}else cs(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){cs(e)}}},Zt=class extends Zn{constructor(n,e,r){super();let i;if(F(n)||!n)i={next:n??void 0,error:e??void 0,complete:r??void 0};else{let o;this&&Ct.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=()=>this.unsubscribe(),i={next:n.next&&hl(n.next,o),error:n.error&&hl(n.error,o),complete:n.complete&&hl(n.complete,o)}):i=n}this.destination=new gl(i)}};function cs(t){Ct.useDeprecatedSynchronousErrorHandling?Zh(t):as(t)}function aw(t){throw t}function pl(t,n){let{onStoppedNotification:e}=Ct;e&&Dr.setTimeout(()=>e(t,n))}var cw={closed:!0,next:Ri,error:aw,complete:Ri};var Ir=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Xe(t){return t}function ml(...t){return yl(t)}function yl(t){return t.length===0?Xe:t.length===1?t[0]:function(e){return t.reduce((r,i)=>i(r),e)}}var z=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,i){let o=uw(e)?e:new Zt(e,r,i);return Er(()=>{let{operator:s,source:a}=this;o.add(s?s.call(o,a):a?this._subscribe(o):this._trySubscribe(o))}),o}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return r=Yh(r),new r((i,o)=>{let s=new Zt({next:a=>{try{e(a)}catch(c){o(c),s.unsubscribe()}},error:o,complete:i});this.subscribe(s)})}_subscribe(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)}[Ir](){return this}pipe(...e){return yl(e)(this)}toPromise(e){return e=Yh(e),new e((r,i)=>{let o;this.subscribe(s=>o=s,s=>i(s),()=>r(o))})}}return t.create=n=>new t(n),t})();function Yh(t){var n;return(n=t??Ct.Promise)!==null&&n!==void 0?n:Promise}function lw(t){return t&&F(t.next)&&F(t.error)&&F(t.complete)}function uw(t){return t&&t instanceof Zn||lw(t)&&ss(t)}function vl(t){return F(t?.lift)}function Z(t){return n=>{if(vl(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Y(t,n,e,r,i){return new _l(t,n,e,r,i)}var _l=class extends Zn{constructor(n,e,r,i,o,s){super(n),this.onFinalize=o,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=i?function(a){try{i(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function Mr(){return Z((t,n)=>{let e=null;t._refCount++;let r=Y(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let i=t._connection,o=e;e=null,i&&(!o||i===o)&&i.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}var xr=class extends z{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,vl(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new _e;let e=this.getSubject();n.add(this.source.subscribe(Y(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=_e.EMPTY)}return n}refCount(){return Mr()(this)}};var Qh=br(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var re=(()=>{class t extends z{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let r=new ls(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new Qh}next(e){Er(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(e)}})}error(e){Er(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){Er(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:r,isStopped:i,observers:o}=this;return r||i?dl:(this.currentObservers=null,o.push(e),new _e(()=>{this.currentObservers=null,Pi(o,e)}))}_checkFinalizedStatuses(e){let{hasError:r,thrownError:i,isStopped:o}=this;r?e.error(i):o&&e.complete()}asObservable(){let e=new z;return e.source=this,e}}return t.create=(n,e)=>new ls(n,e),t})(),ls=class extends re{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0||r.call(e,n)}error(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0||r.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&r!==void 0?r:dl}};var Oe=class extends re{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var wl={now(){return(wl.delegate||Date).now()},delegate:void 0};var ki=class extends re{constructor(n=1/0,e=1/0,r=wl){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:r,_infiniteTimeWindow:i,_timestampProvider:o,_windowTime:s}=this;e||(r.push(n),!i&&r.push(o.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:i}=this,o=i.slice();for(let s=0;st.complete());function Kh(t){return t&&F(t.schedule)}function Cl(t){return t[t.length-1]}function us(t){return F(Cl(t))?t.pop():void 0}function Rt(t){return Kh(Cl(t))?t.pop():void 0}function Jh(t,n){return typeof Cl(t)=="number"?t.pop():n}function ep(t,n,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?o(u.value):i(u.value).then(a,c)}l((r=r.apply(t,n||[])).next())})}function Xh(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yn(t){return this instanceof Yn?(this.v=t,this):new Yn(t)}function tp(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(t,n||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(C){return Promise.resolve(C).then(h,d)}}function a(h,C){r[h]&&(i[h]=function(E){return new Promise(function(x,R){o.push([h,E,x,R])>1||c(h,E)})},C&&(i[h]=C(i[h])))}function c(h,C){try{l(r[h](C))}catch(E){f(o[0][3],E)}}function l(h){h.value instanceof Yn?Promise.resolve(h.value.v).then(u,d):f(o[0][2],h)}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,C){h(C),o.shift(),o.length&&c(o[0][0],o[0][1])}}function np(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Xh=="function"?Xh(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(o){e[o]=t[o]&&function(s){return new Promise(function(a,c){s=t[o](s),i(a,c,s.done,s.value)})}}function i(o,s,a,c){Promise.resolve(c).then(function(l){o({value:l,done:a})},s)}}var Sr=t=>t&&typeof t.length=="number"&&typeof t!="function";function ds(t){return F(t?.then)}function fs(t){return F(t[Ir])}function hs(t){return Symbol.asyncIterator&&F(t?.[Symbol.asyncIterator])}function ps(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function dw(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var gs=dw();function ms(t){return F(t?.[gs])}function ys(t){return tp(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:r,done:i}=yield Yn(e.read());if(i)return yield Yn(void 0);yield yield Yn(r)}}finally{e.releaseLock()}})}function vs(t){return F(t?.getReader)}function ae(t){if(t instanceof z)return t;if(t!=null){if(fs(t))return fw(t);if(Sr(t))return hw(t);if(ds(t))return pw(t);if(hs(t))return rp(t);if(ms(t))return gw(t);if(vs(t))return mw(t)}throw ps(t)}function fw(t){return new z(n=>{let e=t[Ir]();if(F(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function hw(t){return new z(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,as)})}function gw(t){return new z(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function rp(t){return new z(n=>{yw(t,n).catch(e=>n.error(e))})}function mw(t){return rp(ys(t))}function yw(t,n){var e,r,i,o;return ep(this,void 0,void 0,function*(){try{for(e=np(t);r=yield e.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){i={error:s}}finally{try{r&&!r.done&&(o=e.return)&&(yield o.call(e))}finally{if(i)throw i.error}}n.complete()})}function ze(t,n,e,r=0,i=!1){let o=n.schedule(function(){e(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(o),!i)return o}function _s(t,n=0){return Z((e,r)=>{e.subscribe(Y(r,i=>ze(r,t,()=>r.next(i),n),()=>ze(r,t,()=>r.complete(),n),i=>ze(r,t,()=>r.error(i),n)))})}function ws(t,n=0){return Z((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function ip(t,n){return ae(t).pipe(ws(n),_s(n))}function op(t,n){return ae(t).pipe(ws(n),_s(n))}function sp(t,n){return new z(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}function ap(t,n){return new z(e=>{let r;return ze(e,n,()=>{r=t[gs](),ze(e,n,()=>{let i,o;try{({value:i,done:o}=r.next())}catch(s){e.error(s);return}o?e.complete():e.next(i)},0,!0)}),()=>F(r?.return)&&r.return()})}function Cs(t,n){if(!t)throw new Error("Iterable cannot be null");return new z(e=>{ze(e,n,()=>{let r=t[Symbol.asyncIterator]();ze(e,n,()=>{r.next().then(i=>{i.done?e.complete():e.next(i.value)})},0,!0)})})}function cp(t,n){return Cs(ys(t),n)}function lp(t,n){if(t!=null){if(fs(t))return ip(t,n);if(Sr(t))return sp(t,n);if(ds(t))return op(t,n);if(hs(t))return Cs(t,n);if(ms(t))return ap(t,n);if(vs(t))return cp(t,n)}throw ps(t)}function te(t,n){return n?lp(t,n):ae(t)}function k(...t){let n=Rt(t);return te(t,n)}function Tr(t,n){let e=F(t)?t:()=>t,r=i=>i.error(e());return new z(n?i=>n.schedule(r,0,i):r)}function bl(t){return!!t&&(t instanceof z||F(t.lift)&&F(t.subscribe))}var Yt=br(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function B(t,n){return Z((e,r)=>{let i=0;e.subscribe(Y(r,o=>{r.next(t.call(n,o,i++))}))})}var{isArray:vw}=Array;function _w(t,n){return vw(n)?t(...n):t(n)}function Ar(t){return B(n=>_w(t,n))}var{isArray:ww}=Array,{getPrototypeOf:Cw,prototype:bw,keys:Dw}=Object;function bs(t){if(t.length===1){let n=t[0];if(ww(n))return{args:n,keys:null};if(Ew(n)){let e=Dw(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}function Ew(t){return t&&typeof t=="object"&&Cw(t)===bw}function Ds(t,n){return t.reduce((e,r,i)=>(e[r]=n[i],e),{})}function Fi(...t){let n=Rt(t),e=us(t),{args:r,keys:i}=bs(t);if(r.length===0)return te([],n);let o=new z(Iw(r,n,i?s=>Ds(i,s):Xe));return e?o.pipe(Ar(e)):o}function Iw(t,n,e=Xe){return r=>{up(n,()=>{let{length:i}=t,o=new Array(i),s=i,a=i;for(let c=0;c{let l=te(t[c],n),u=!1;l.subscribe(Y(r,d=>{o[c]=d,u||(u=!0,a--),a||r.next(e(o.slice()))},()=>{--s||r.complete()}))},r)},r)}}function up(t,n,e){t?ze(e,t,n):n()}function dp(t,n,e,r,i,o,s,a){let c=[],l=0,u=0,d=!1,f=()=>{d&&!c.length&&!l&&n.complete()},h=E=>l{o&&n.next(E),l++;let x=!1;ae(e(E,u++)).subscribe(Y(n,R=>{i?.(R),o?h(R):n.next(R)},()=>{x=!0},void 0,()=>{if(x)try{for(l--;c.length&&lC(R)):C(R)}f()}catch(R){n.error(R)}}))};return t.subscribe(Y(n,h,()=>{d=!0,f()})),()=>{a?.()}}function pe(t,n,e=1/0){return F(n)?pe((r,i)=>B((o,s)=>n(r,o,i,s))(ae(t(r,i))),e):(typeof n=="number"&&(e=n),Z((r,i)=>dp(r,i,t,e)))}function kt(t=1/0){return pe(Xe,t)}function fp(){return kt(1)}function Or(...t){return fp()(te(t,Rt(t)))}function Es(t){return new z(n=>{ae(t()).subscribe(n)})}function Dl(...t){let n=us(t),{args:e,keys:r}=bs(t),i=new z(o=>{let{length:s}=e;if(!s){o.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||o.next(r?Ds(r,a):a),o.complete())}))}});return n?i.pipe(Ar(n)):i}var Mw=["addListener","removeListener"],xw=["addEventListener","removeEventListener"],Sw=["on","off"];function El(t,n,e,r){if(F(e)&&(r=e,e=void 0),r)return El(t,n,e).pipe(Ar(r));let[i,o]=Ow(t)?xw.map(s=>a=>t[s](n,a,e)):Tw(t)?Mw.map(hp(t,n)):Aw(t)?Sw.map(hp(t,n)):[];if(!i&&Sr(t))return pe(s=>El(s,n,e))(ae(t));if(!i)throw new TypeError("Invalid event target");return new z(s=>{let a=(...c)=>s.next(1o(a)})}function hp(t,n){return e=>r=>t[e](n,r)}function Tw(t){return F(t.addListener)&&F(t.removeListener)}function Aw(t){return F(t.on)&&F(t.off)}function Ow(t){return F(t.addEventListener)&&F(t.removeEventListener)}function Nw(...t){let n=Rt(t),e=Jh(t,1/0),r=t;return r.length?r.length===1?ae(r[0]):kt(e)(te(r,n)):Ne}function qe(t,n){return Z((e,r)=>{let i=0;e.subscribe(Y(r,o=>t.call(n,o,i++)&&r.next(o)))})}function bt(t){return Z((n,e)=>{let r=null,i=!1,o;r=n.subscribe(Y(e,void 0,void 0,s=>{o=ae(t(s,bt(t)(n))),r?(r.unsubscribe(),r=null,o.subscribe(e)):i=!0})),i&&(r.unsubscribe(),r=null,o.subscribe(e))})}function pp(t,n,e,r,i){return(o,s)=>{let a=e,c=n,l=0;o.subscribe(Y(s,u=>{let d=l++;c=a?t(c,u,d):(a=!0,u),r&&s.next(c)},i&&(()=>{a&&s.next(c),s.complete()})))}}function Qt(t,n){return F(n)?pe(t,n,1):pe(t,1)}function _n(t){return Z((n,e)=>{let r=!1;n.subscribe(Y(e,i=>{r=!0,e.next(i)},()=>{r||e.next(t),e.complete()}))})}function Kt(t){return t<=0?()=>Ne:Z((n,e)=>{let r=0;n.subscribe(Y(e,i=>{++r<=t&&(e.next(i),t<=r&&e.complete())}))})}function Il(t){return B(()=>t)}function Is(t=Pw){return Z((n,e)=>{let r=!1;n.subscribe(Y(e,i=>{r=!0,e.next(i)},()=>r?e.complete():e.error(t())))})}function Pw(){return new Yt}function wn(t){return Z((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function ft(t,n){let e=arguments.length>=2;return r=>r.pipe(t?qe((i,o)=>t(i,o,r)):Xe,Kt(1),e?_n(n):Is(()=>new Yt))}function Nr(t){return t<=0?()=>Ne:Z((n,e)=>{let r=[];n.subscribe(Y(e,i=>{r.push(i),t{for(let i of r)e.next(i);e.complete()},void 0,()=>{r=null}))})}function Ml(t,n){let e=arguments.length>=2;return r=>r.pipe(t?qe((i,o)=>t(i,o,r)):Xe,Nr(1),e?_n(n):Is(()=>new Yt))}function xl(t,n){return Z(pp(t,n,arguments.length>=2,!0))}function Rw(t={}){let{connector:n=()=>new re,resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return o=>{let s,a,c,l=0,u=!1,d=!1,f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=c=void 0,u=d=!1},C=()=>{let E=s;h(),E?.unsubscribe()};return Z((E,x)=>{l++,!d&&!u&&f();let R=c=c??n();x.add(()=>{l--,l===0&&!d&&!u&&(a=Sl(C,i))}),R.subscribe(x),!s&&l>0&&(s=new Zt({next:X=>R.next(X),error:X=>{d=!0,f(),a=Sl(h,e,X),R.error(X)},complete:()=>{u=!0,f(),a=Sl(h,r),R.complete()}}),ae(E).subscribe(s))})(o)}}function Sl(t,n,...e){if(n===!0){t();return}if(n===!1)return;let r=new Zt({next:()=>{r.unsubscribe(),t()}});return n(...e).subscribe(r)}function Tl(...t){let n=Rt(t);return Z((e,r)=>{(n?Or(t,e,n):Or(t,e)).subscribe(r)})}function Ge(t,n){return Z((e,r)=>{let i=null,o=0,s=!1,a=()=>s&&!i&&r.complete();e.subscribe(Y(r,c=>{i?.unsubscribe();let l=0,u=o++;ae(t(c,u)).subscribe(i=Y(r,d=>r.next(n?n(c,d,u,l++):d),()=>{i=null,a()}))},()=>{s=!0,a()}))})}function Al(t){return Z((n,e)=>{ae(t).subscribe(Y(e,()=>e.complete(),Ri)),!e.closed&&n.subscribe(e)})}function Me(t,n,e){let r=F(t)||n||e?{next:t,error:n,complete:e}:t;return r?Z((i,o)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;i.subscribe(Y(o,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),o.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),o.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),o.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):Xe}var rg="https://g.co/ng/security#xss",S=class extends Error{code;constructor(n,e){super(ya(n,e)),this.code=n}};function ya(t,n){return`${`NG0${Math.abs(t)}`}${n?": "+n:""}`}var ig=Symbol("InputSignalNode#UNSET"),kw=H(b({},ul),{transformFn:void 0,applyValueToInputSignal(t,n){is(t,n)}});function og(t,n){let e=Object.create(kw);e.value=t,e.transformFn=n?.transform;function r(){if(es(e),e.value===ig)throw new S(-950,!1);return e.value}return r[Je]=e,r}function Yi(t){return{toString:t}.toString()}var Ms="__parameters__";function Fw(t){return function(...e){if(t){let r=t(...e);for(let i in r)this[i]=r[i]}}}function sg(t,n,e){return Yi(()=>{let r=Fw(n);function i(...o){if(this instanceof i)return r.apply(this,o),this;let s=new i(...o);return a.annotation=s,a;function a(c,l,u){let d=c.hasOwnProperty(Ms)?c[Ms]:Object.defineProperty(c,Ms,{value:[]})[Ms];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return e&&(i.prototype=Object.create(e.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}var tt=globalThis;function ie(t){for(let n in t)if(t[n]===ie)return n;throw Error("Could not find renamed property on target object.")}function Lw(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Ve(t){if(typeof t=="string")return t;if(Array.isArray(t))return"["+t.map(Ve).join(", ")+"]";if(t==null)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;let n=t.toString();if(n==null)return""+n;let e=n.indexOf(` +`);return e===-1?n:n.substring(0,e)}function Hl(t,n){return t==null||t===""?n===null?"":n:n==null||n===""?t:t+" "+n}var Vw=ie({__forward_ref__:ie});function sr(t){return t.__forward_ref__=sr,t.toString=function(){return Ve(this())},t}function Le(t){return ag(t)?t():t}function ag(t){return typeof t=="function"&&t.hasOwnProperty(Vw)&&t.__forward_ref__===sr}function D(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function le(t){return{providers:t.providers||[],imports:t.imports||[]}}function va(t){return gp(t,lg)||gp(t,ug)}function cg(t){return va(t)!==null}function gp(t,n){return t.hasOwnProperty(n)?t[n]:null}function jw(t){let n=t&&(t[lg]||t[ug]);return n||null}function mp(t){return t&&(t.hasOwnProperty(yp)||t.hasOwnProperty(Bw))?t[yp]:null}var lg=ie({\u0275prov:ie}),yp=ie({\u0275inj:ie}),ug=ie({ngInjectableDef:ie}),Bw=ie({ngInjectorDef:ie}),M=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=D({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function dg(t){return t&&!!t.\u0275providers}var Uw=ie({\u0275cmp:ie}),$w=ie({\u0275dir:ie}),Hw=ie({\u0275pipe:ie}),zw=ie({\u0275mod:ie}),js=ie({\u0275fac:ie}),ji=ie({__NG_ELEMENT_ID__:ie}),vp=ie({__NG_ENV_ID__:ie});function jr(t){return typeof t=="string"?t:t==null?"":String(t)}function qw(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():jr(t)}function Gw(t,n){let e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new S(-200,t)}function Yu(t,n){throw new S(-201,!1)}var q=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(q||{}),zl;function fg(){return zl}function We(t){let n=zl;return zl=t,n}function hg(t,n,e){let r=va(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(e&q.Optional)return null;if(n!==void 0)return n;Yu(t,"Injector")}var Ww={},Ui=Ww,ql="__NG_DI_FLAG__",Bs="ngTempTokenPath",Zw="ngTokenPath",Yw=/\n/gm,Qw="\u0275",_p="__source",Lr;function Kw(){return Lr}function Cn(t){let n=Lr;return Lr=t,n}function Jw(t,n=q.Default){if(Lr===void 0)throw new S(-203,!1);return Lr===null?hg(t,void 0,n):Lr.get(t,n&q.Optional?null:void 0,n)}function _(t,n=q.Default){return(fg()||Jw)(Le(t),n)}function w(t,n=q.Default){return _(t,_a(n))}function _a(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Gl(t){let n=[];for(let e=0;e ");else if(typeof n=="object"){let o=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];o.push(s+":"+(typeof a=="string"?JSON.stringify(a):Ve(a)))}i=`{${o.join(", ")}}`}return`${e}${r?"("+r+")":""}[${i}]: ${t.replace(Yw,` + `)}`}var Qi=pg(sg("Optional"),8);var wa=pg(sg("SkipSelf"),4);function Kn(t,n){let e=t.hasOwnProperty(js);return e?t[js]:null}function nC(t,n,e){if(t.length!==n.length)return!1;for(let r=0;rArray.isArray(e)?Qu(e,n):n(e))}function gg(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function Us(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function iC(t,n){let e=[];for(let r=0;rn;){let o=i-2;t[i]=t[o],i--}t[n]=e,t[n+1]=r}}function Ca(t,n,e){let r=Ki(t,n);return r>=0?t[r|1]=e:(r=~r,oC(t,r,n,e)),r}function Ol(t,n){let e=Ki(t,n);if(e>=0)return t[e|1]}function Ki(t,n){return sC(t,n,1)}function sC(t,n,e){let r=0,i=t.length>>e;for(;i!==r;){let o=r+(i-r>>1),s=t[o<n?i=o:r=o+1}return~(i<{e.push(s)};return Qu(n,s=>{let a=s;Wl(a,o,[],r)&&(i||=[],i.push(a))}),i!==void 0&&Dg(i,o),e}function Dg(t,n){for(let e=0;e{n(o,r)})}}function Wl(t,n,e,r){if(t=Le(t),!t)return!1;let i=null,o=mp(t),s=!o&&En(t);if(!o&&!s){let c=t.ngModule;if(o=mp(c),o)i=c;else return!1}else{if(s&&!s.standalone)return!1;i=t}let a=r.has(i);if(s){if(a)return!1;if(r.add(i),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Wl(l,n,e,r)}}else if(o){if(o.imports!=null&&!a){r.add(i);let l;try{Qu(o.imports,u=>{Wl(u,n,e,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Dg(l,n)}if(!a){let l=Kn(i)||(()=>new i);n({provide:i,useFactory:l,deps:Ze},i),n({provide:yg,useValue:i,multi:!0},i),n({provide:Ur,useValue:()=>_(i),multi:!0},i)}let c=o.providers;if(c!=null&&!a){let l=t;Ku(c,u=>{n(u,l)})}}else return!1;return i!==t&&t.providers!==void 0}function Ku(t,n){for(let e of t)dg(e)&&(e=e.\u0275providers),Array.isArray(e)?Ku(e,n):n(e)}var cC=ie({provide:String,useValue:ie});function Eg(t){return t!==null&&typeof t=="object"&&cC in t}function lC(t){return!!(t&&t.useExisting)}function uC(t){return!!(t&&t.useFactory)}function $r(t){return typeof t=="function"}function dC(t){return!!t.useClass}var Da=new M(""),Rs={},fC={},Nl;function Ju(){return Nl===void 0&&(Nl=new $s),Nl}var je=class{},$i=class extends je{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,r,i){super(),this.parent=e,this.source=r,this.scopes=i,Yl(n,s=>this.processProvider(s)),this.records.set(mg,Pr(void 0,this)),i.has("environment")&&this.records.set(je,Pr(void 0,this));let o=this.records.get(Da);o!=null&&typeof o.value=="string"&&this.scopes.add(o.value),this.injectorDefTypes=new Set(this.get(yg,Ze,q.Self))}destroy(){Li(this),this._destroyed=!0;let n=Q(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Q(n)}}onDestroy(n){return Li(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){Li(this);let e=Cn(this),r=We(void 0),i;try{return n()}finally{Cn(e),We(r)}}get(n,e=Ui,r=q.Default){if(Li(this),n.hasOwnProperty(vp))return n[vp](this);r=_a(r);let i,o=Cn(this),s=We(void 0);try{if(!(r&q.SkipSelf)){let c=this.records.get(n);if(c===void 0){let l=yC(n)&&va(n);l&&this.injectableDefInScope(l)?c=Pr(Zl(n),Rs):c=null,this.records.set(n,c)}if(c!=null)return this.hydrate(n,c)}let a=r&q.Self?Ju():this.parent;return e=r&q.Optional&&e===Ui?null:e,a.get(n,e)}catch(a){if(a.name==="NullInjectorError"){if((a[Bs]=a[Bs]||[]).unshift(Ve(n)),o)throw a;return eC(a,n,"R3InjectorError",this.source)}else throw a}finally{We(s),Cn(o)}}resolveInjectorInitializers(){let n=Q(null),e=Cn(this),r=We(void 0),i;try{let o=this.get(Ur,Ze,q.Self);for(let s of o)s()}finally{Cn(e),We(r),Q(n)}}toString(){let n=[],e=this.records;for(let r of e.keys())n.push(Ve(r));return`R3Injector[${n.join(", ")}]`}processProvider(n){n=Le(n);let e=$r(n)?n:Le(n&&n.provide),r=pC(n);if(!$r(n)&&n.multi===!0){let i=this.records.get(e);i||(i=Pr(void 0,Rs,!0),i.factory=()=>Gl(i.multi),this.records.set(e,i)),e=n,i.multi.push(n)}this.records.set(e,r)}hydrate(n,e){let r=Q(null);try{return e.value===Rs&&(e.value=fC,e.value=e.factory()),typeof e.value=="object"&&e.value&&mC(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Q(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=Le(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function Zl(t){let n=va(t),e=n!==null?n.factory:Kn(t);if(e!==null)return e;if(t instanceof M)throw new S(204,!1);if(t instanceof Function)return hC(t);throw new S(204,!1)}function hC(t){if(t.length>0)throw new S(204,!1);let e=jw(t);return e!==null?()=>e.factory(t):()=>new t}function pC(t){if(Eg(t))return Pr(void 0,t.useValue);{let n=Ig(t);return Pr(n,Rs)}}function Ig(t,n,e){let r;if($r(t)){let i=Le(t);return Kn(i)||Zl(i)}else if(Eg(t))r=()=>Le(t.useValue);else if(uC(t))r=()=>t.useFactory(...Gl(t.deps||[]));else if(lC(t))r=()=>_(Le(t.useExisting));else{let i=Le(t&&(t.useClass||t.provide));if(gC(t))r=()=>new i(...Gl(t.deps));else return Kn(i)||Zl(i)}return r}function Li(t){if(t.destroyed)throw new S(205,!1)}function Pr(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function gC(t){return!!t.deps}function mC(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function yC(t){return typeof t=="function"||typeof t=="object"&&t instanceof M}function Yl(t,n){for(let e of t)Array.isArray(e)?Yl(e,n):e&&dg(e)?Yl(e.\u0275providers,n):n(e)}function Qe(t,n){t instanceof $i&&Li(t);let e,r=Cn(t),i=We(void 0);try{return n()}finally{Cn(r),We(i)}}function Mg(){return fg()!==void 0||Kw()!=null}function vC(t){if(!Mg())throw new S(-203,!1)}function _C(t){let n=tt.ng;if(n&&n.\u0275compilerFacade)return n.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function wC(t){return typeof t=="function"}var nn=0,j=1,L=2,Re=3,It=4,Ke=5,Hi=6,Hs=7,ht=8,Hr=9,Jt=10,ge=11,zi=12,wp=13,Qr=14,pt=15,Jn=16,Rr=17,Xt=18,Ea=19,xg=20,bn=21,Pl=22,zs=23,et=24,De=25,Sg=1;var Xn=7,qs=8,zr=9,Ye=10,Gs=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}(Gs||{});function Dn(t){return Array.isArray(t)&&typeof t[Sg]=="object"}function rn(t){return Array.isArray(t)&&t[Sg]===!0}function Xu(t){return(t.flags&4)!==0}function Ia(t){return t.componentOffset>-1}function Ma(t){return(t.flags&1)===1}function In(t){return!!t.template}function Ql(t){return(t[L]&512)!==0}var Kl=class{previousValue;currentValue;firstChange;constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}};function Tg(t,n,e,r){n!==null?n.applyValueToInputSignal(n,r):t[e]=r}var yt=(()=>{let t=()=>Ag;return t.ngInherit=!0,t})();function Ag(t){return t.type.prototype.ngOnChanges&&(t.setInput=bC),CC}function CC(){let t=Ng(this),n=t?.current;if(n){let e=t.previous;if(e===Br)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function bC(t,n,e,r,i){let o=this.declaredInputs[r],s=Ng(t)||DC(t,{previous:Br,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[o];a[o]=new Kl(l&&l.currentValue,e,c===Br),Tg(t,n,i,e)}var Og="__ngSimpleChanges__";function Ng(t){return t[Og]||null}function DC(t,n){return t[Og]=n}var Cp=null;var Ft=function(t,n,e){Cp?.(t,n,e)},Pg="svg",EC="math";function Vt(t){for(;Array.isArray(t);)t=t[nn];return t}function Rg(t,n){return Vt(n[t])}function vt(t,n){return Vt(n[t.index])}function ed(t,n){return t.data[n]}function Ji(t,n){return t[n]}function Tn(t,n){let e=n[t];return Dn(e)?e:e[nn]}function IC(t){return(t[L]&4)===4}function td(t){return(t[L]&128)===128}function MC(t){return rn(t[Re])}function qr(t,n){return n==null?null:t[n]}function kg(t){t[Rr]=0}function nd(t){t[L]&1024||(t[L]|=1024,td(t)&&Sa(t))}function xC(t,n){for(;t>0;)n=n[Qr],t--;return n}function xa(t){return!!(t[L]&9216||t[et]?.dirty)}function Jl(t){t[Jt].changeDetectionScheduler?.notify(9),t[L]&64&&(t[L]|=1024),xa(t)&&Sa(t)}function Sa(t){t[Jt].changeDetectionScheduler?.notify(0);let n=er(t);for(;n!==null&&!(n[L]&8192||(n[L]|=8192,!td(n)));)n=er(n)}function Fg(t,n){if((t[L]&256)===256)throw new S(911,!1);t[bn]===null&&(t[bn]=[]),t[bn].push(n)}function SC(t,n){if(t[bn]===null)return;let e=t[bn].indexOf(n);e!==-1&&t[bn].splice(e,1)}function er(t){let n=t[Re];return rn(n)?n[Re]:n}var U={lFrame:zg(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Xl=!1;function TC(){return U.lFrame.elementDepthCount}function AC(){U.lFrame.elementDepthCount++}function OC(){U.lFrame.elementDepthCount--}function Lg(){return U.bindingsEnabled}function Vg(){return U.skipHydrationRootTNode!==null}function NC(t){return U.skipHydrationRootTNode===t}function PC(){U.skipHydrationRootTNode=null}function V(){return U.lFrame.lView}function me(){return U.lFrame.tView}function N(t){return U.lFrame.contextLView=t,t[ht]}function P(t){return U.lFrame.contextLView=null,t}function Pe(){let t=jg();for(;t!==null&&t.type===64;)t=t.parent;return t}function jg(){return U.lFrame.currentTNode}function RC(){let t=U.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function ar(t,n){let e=U.lFrame;e.currentTNode=t,e.isParent=n}function rd(){return U.lFrame.isParent}function id(){U.lFrame.isParent=!1}function kC(){return U.lFrame.contextLView}function Bg(){return Xl}function bp(t){let n=Xl;return Xl=t,n}function An(){let t=U.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function FC(){return U.lFrame.bindingIndex}function LC(t){return U.lFrame.bindingIndex=t}function Xi(){return U.lFrame.bindingIndex++}function od(t){let n=U.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function VC(){return U.lFrame.inI18n}function jC(t,n){let e=U.lFrame;e.bindingIndex=e.bindingRootIndex=t,eu(n)}function BC(){return U.lFrame.currentDirectiveIndex}function eu(t){U.lFrame.currentDirectiveIndex=t}function UC(t){let n=U.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Ug(){return U.lFrame.currentQueryIndex}function sd(t){U.lFrame.currentQueryIndex=t}function $C(t){let n=t[j];return n.type===2?n.declTNode:n.type===1?t[Ke]:null}function $g(t,n,e){if(e&q.SkipSelf){let i=n,o=t;for(;i=i.parent,i===null&&!(e&q.Host);)if(i=$C(o),i===null||(o=o[Qr],i.type&10))break;if(i===null)return!1;n=i,t=o}let r=U.lFrame=Hg();return r.currentTNode=n,r.lView=t,!0}function ad(t){let n=Hg(),e=t[j];U.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Hg(){let t=U.lFrame,n=t===null?null:t.child;return n===null?zg(t):n}function zg(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function qg(){let t=U.lFrame;return U.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Gg=qg;function cd(){let t=qg();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function HC(t){return(U.lFrame.contextLView=xC(t,U.lFrame.contextLView))[ht]}function On(){return U.lFrame.selectedIndex}function tr(t){U.lFrame.selectedIndex=t}function ld(){let t=U.lFrame;return ed(t.tView,t.selectedIndex)}function Ta(){U.lFrame.currentNamespace=Pg}function Wg(){zC()}function zC(){U.lFrame.currentNamespace=null}function qC(){return U.lFrame.currentNamespace}var Zg=!0;function Aa(){return Zg}function Oa(t){Zg=t}function GC(t,n,e){let{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=n.type.prototype;if(r){let s=Ag(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}i&&(e.preOrderHooks??=[]).push(0-t,i),o&&((e.preOrderHooks??=[]).push(t,o),(e.preOrderCheckHooks??=[]).push(t,o))}function Na(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e=r)break}else n[c]<0&&(t[Rr]+=65536),(a>14>16&&(t[L]&3)===n&&(t[L]+=16384,Dp(a,o)):Dp(a,o)}var Vr=-1,nr=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,r){this.factory=n,this.canSeeViewProviders=e,this.injectImpl=r}};function ZC(t){return t instanceof nr}function YC(t){return(t.flags&8)!==0}function QC(t){return(t.flags&16)!==0}function tu(t,n,e){let r=0;for(;rn){s=o-1;break}}}for(;o>16}function Zs(t,n){let e=JC(t),r=n;for(;e>0;)r=r[Qr],e--;return r}var ru=!0;function Ys(t){let n=ru;return ru=t,n}var XC=256,Jg=XC-1,Xg=5,eb=0,Lt={};function tb(t,n,e){let r;typeof e=="string"?r=e.charCodeAt(0)||0:e.hasOwnProperty(ji)&&(r=e[ji]),r==null&&(r=e[ji]=eb++);let i=r&Jg,o=1<>Xg)]|=o}function Qs(t,n){let e=em(t,n);if(e!==-1)return e;let r=n[j];r.firstCreatePass&&(t.injectorIndex=n.length,Fl(r.data,t),Fl(n,null),Fl(r.blueprint,null));let i=ud(t,n),o=t.injectorIndex;if(Kg(i)){let s=Ws(i),a=Zs(i,n),c=a[j].data;for(let l=0;l<8;l++)n[o+l]=a[s+l]|c[s+l]}return n[o+8]=i,o}function Fl(t,n){t.push(0,0,0,0,0,0,0,0,n)}function em(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function ud(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,r=null,i=n;for(;i!==null;){if(r=om(i),r===null)return Vr;if(e++,i=i[Qr],r.injectorIndex!==-1)return r.injectorIndex|e<<16}return Vr}function iu(t,n,e){tb(t,n,e)}function nb(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let r=e.length,i=0;for(;i>20,d=r?a:a+u,f=i?a+u:l;for(let h=d;h=c&&C.type===e)return h}if(i){let h=s[c];if(h&&In(h)&&h.type===e)return c}return null}function rr(t,n,e,r){let i=t[e],o=n.data;if(ZC(i)){let s=i;s.resolving&&Gw(qw(o[e]));let a=Ys(s.canSeeViewProviders);s.resolving=!0;let c,l=s.injectImpl?We(s.injectImpl):null,u=$g(t,r,q.Default);try{i=t[e]=s.factory(void 0,o,t,r),n.firstCreatePass&&e>=r.directiveStart&&GC(e,o[e],n)}finally{l!==null&&We(l),Ys(a),s.resolving=!1,Gg()}}return i}function ib(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(ji)?t[ji]:void 0;return typeof n=="number"?n>=0?n&Jg:ob:n}function Ip(t,n,e){let r=1<>Xg)]&r)}function Mp(t,n){return!(t&q.Self)&&!(t&q.Host&&n)}var Qn=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,r){return rm(this._tNode,this._lView,n,_a(r),e)}};function ob(){return new Qn(Pe(),V())}function Kr(t){return Yi(()=>{let n=t.prototype.constructor,e=n[js]||ou(n),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==r;){let o=i[js]||ou(i);if(o&&o!==e)return o;i=Object.getPrototypeOf(i)}return o=>new o})}function ou(t){return ag(t)?()=>{let n=ou(Le(t));return n&&n()}:Kn(t)}function sb(t,n,e,r,i){let o=t,s=n;for(;o!==null&&s!==null&&s[L]&2048&&!(s[L]&512);){let a=im(o,s,e,r|q.Self,Lt);if(a!==Lt)return a;let c=o.parent;if(!c){let l=s[xg];if(l){let u=l.get(e,Lt,r);if(u!==Lt)return u}c=om(s),s=s[Qr]}o=c}return i}function om(t){let n=t[j],e=n.type;return e===2?n.declTNode:e===1?t[Ke]:null}function dd(t){return nb(Pe(),t)}function xp(t,n=null,e=null,r){let i=sm(t,n,e,r);return i.resolveInjectorInitializers(),i}function sm(t,n=null,e=null,r,i=new Set){let o=[e||Ze,aC(t)];return r=r||(typeof t=="object"?void 0:Ve(t)),new $i(o,n||Ju(),r||null,i)}var xe=class t{static THROW_IF_NOT_FOUND=Ui;static NULL=new $s;static create(n,e){if(Array.isArray(n))return xp({name:""},e,n,"");{let r=n.name??"";return xp({name:r},n.parent,n.providers,r)}}static \u0275prov=D({token:t,providedIn:"any",factory:()=>_(mg)});static __NG_ELEMENT_ID__=-1};var ab=new M("");ab.__NG_ELEMENT_ID__=t=>{let n=Pe();if(n===null)throw new S(204,!1);if(n.type&2)return n.value;if(t&q.Optional)return null;throw new S(204,!1)};var am=!1,fd=(()=>{class t{static __NG_ELEMENT_ID__=cb;static __NG_ENV_ID__=e=>e}return t})(),su=class extends fd{_lView;constructor(n){super(),this._lView=n}onDestroy(n){return Fg(this._lView,n),()=>SC(this._lView,n)}};function cb(){return new su(V())}var Gr=class{},hd=new M("",{providedIn:"root",factory:()=>!1});var cm=new M(""),lm=new M(""),on=(()=>{class t{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new Oe(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=D({token:t,providedIn:"root",factory:()=>new t})}return t})();var au=class extends re{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,Mg()&&(this.destroyRef=w(fd,{optional:!0})??void 0,this.pendingTasks=w(on,{optional:!0})??void 0)}emit(n){let e=Q(null);try{super.next(n)}finally{Q(e)}}subscribe(n,e,r){let i=n,o=e||(()=>null),s=r;if(n&&typeof n=="object"){let c=n;i=c.next?.bind(c),o=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(o=this.wrapInTimeout(o),i&&(i=this.wrapInTimeout(i)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:i,error:o,complete:s});return n instanceof _e&&n.add(a),a}wrapInTimeout(n){return e=>{let r=this.pendingTasks?.add();setTimeout(()=>{n(e),r!==void 0&&this.pendingTasks?.remove(r)})}}},G=au;function Ks(...t){}function um(t){let n,e;function r(){t=Ks;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),r()})),()=>r()}function Sp(t){return queueMicrotask(()=>t()),()=>{t=Ks}}var pd="isAngularZone",Js=pd+"_ID",lb=0,ne=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new G(!1);onMicrotaskEmpty=new G(!1);onStable=new G(!1);onError=new G(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:i=!1,scheduleInRootZone:o=am}=n;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!i&&r,s.shouldCoalesceRunChangeDetection=i,s.callbackScheduled=!1,s.scheduleInRootZone=o,fb(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(pd)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new S(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,i){let o=this._inner,s=o.scheduleEventTask("NgZoneEvent: "+i,n,ub,Ks,Ks);try{return o.runTask(s,e,r)}finally{o.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}},ub={};function gd(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function db(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){um(()=>{t.callbackScheduled=!1,cu(t),t.isCheckStableRunning=!0,gd(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),cu(t)}function fb(t){let n=()=>{db(t)},e=lb++;t._inner=t._inner.fork({name:"angular",properties:{[pd]:!0,[Js]:e,[Js+e]:!0},onInvokeTask:(r,i,o,s,a,c)=>{if(hb(c))return r.invokeTask(o,s,a,c);try{return Tp(t),r.invokeTask(o,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),Ap(t)}},onInvoke:(r,i,o,s,a,c,l)=>{try{return Tp(t),r.invoke(o,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!pb(c)&&n(),Ap(t)}},onHasTask:(r,i,o,s)=>{r.hasTask(o,s),i===o&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,cu(t),gd(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,i,o,s)=>(r.handleError(o,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function cu(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Tp(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ap(t){t._nesting--,gd(t)}var Xs=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new G;onMicrotaskEmpty=new G;onStable=new G;onError=new G;run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,i){return n.apply(e,r)}};function hb(t){return dm(t,"__ignore_ng_zone__")}function pb(t){return dm(t,"__scheduler_tick__")}function dm(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}function gb(t="zone.js",n){return t==="noop"?new Xs:t==="zone.js"?new ne(n):t}var en=class{_console=console;handleError(n){this._console.error("ERROR",n)}},mb=new M("",{providedIn:"root",factory:()=>{let t=w(ne),n=w(en);return e=>t.runOutsideAngular(()=>n.handleError(e))}});function Op(t,n){return og(t,n)}function yb(t){return og(ig,t)}var fm=(Op.required=yb,Op);function vb(){return Jr(Pe(),V())}function Jr(t,n){return new Ee(vt(t,n))}var Ee=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=vb}return t})();function _b(t){return t instanceof Ee?t.nativeElement:t}function wb(){return this._results[Symbol.iterator]()}var lu=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new re}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let r=rC(n);(this._changesDetected=!nC(this._results,r,e))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=wb};function hm(t){return(t.flags&128)===128}var pm=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}(pm||{}),gm=new Map,Cb=0;function bb(){return Cb++}function Db(t){gm.set(t[Ea],t)}function uu(t){gm.delete(t[Ea])}var Np="__ngContext__";function Mn(t,n){Dn(n)?(t[Np]=n[Ea],Db(n)):t[Np]=n}function mm(t){return vm(t[zi])}function ym(t){return vm(t[It])}function vm(t){for(;t!==null&&!rn(t);)t=t[It];return t}var du;function _m(t){du=t}function Eb(){if(du!==void 0)return du;if(typeof document<"u")return document;throw new S(210,!1)}var md=new M("",{providedIn:"root",factory:()=>Ib}),Ib="ng",yd=new M(""),Mt=new M("",{providedIn:"platform",factory:()=>"unknown"});var QL=new M(""),vd=new M("",{providedIn:"root",factory:()=>Eb().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Mb="h",xb="b";var wm=!1,Sb=new M("",{providedIn:"root",factory:()=>wm});var _d=function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t}(_d||{}),Pa=new M(""),Pp=new Set;function cr(t){Pp.has(t)||(Pp.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var kr=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(kr||{}),Cm=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=D({token:t,providedIn:"root",factory:()=>new t})}return t})(),Tb=[kr.EarlyRead,kr.Write,kr.MixedReadWrite,kr.Read],Ab=(()=>{class t{ngZone=w(ne);scheduler=w(Gr);errorHandler=w(en,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){w(Pa,{optional:!0})}execute(){this.executing=!0;for(let e of Tb)for(let r of this.sequences)if(!(r.erroredOrDestroyed||!r.hooks[e]))try{r.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>r.hooks[e](r.pipelinedValue),r.snapshot))}catch(i){r.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let e of this.sequences)e.afterRun(),e.once&&(this.sequences.delete(e),e.destroy());for(let e of this.deferredRegistrations)this.sequences.add(e);this.deferredRegistrations.size>0&&this.scheduler.notify(8),this.deferredRegistrations.clear()}register(e){this.executing?this.deferredRegistrations.add(e):(this.sequences.add(e),this.scheduler.notify(7))}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,r){return r?.run(_d.AFTER_NEXT_RENDER,e)??e()}static \u0275prov=D({token:t,providedIn:"root",factory:()=>new t})}return t})(),fu=class{impl;hooks;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,r,i,o=null){this.impl=n,this.hooks=e,this.once=r,this.snapshot=o,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.()}};function wd(t,n){!n?.injector&&vC(wd);let e=n?.injector??w(xe);return cr("NgAfterNextRender"),Nb(t,e,n,!0)}function Ob(t,n){if(t instanceof Function){let e=[void 0,void 0,void 0,void 0];return e[n]=t,e}else return[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function Nb(t,n,e,r){let i=n.get(Cm);i.impl??=n.get(Ab);let o=n.get(Pa,null,{optional:!0}),s=e?.phase??kr.MixedReadWrite,a=e?.manualCleanup!==!0?n.get(fd):null,c=new fu(i.impl,Ob(t,s),r,a,o?.snapshot(null));return i.impl.register(c),c}var Pb=()=>null;function Cd(t,n,e=!1){return Pb(t,n,e)}var jt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}(jt||{}),xs;function Rb(){if(xs===void 0&&(xs=null,tt.trustedTypes))try{xs=tt.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return xs}function Ra(t){return Rb()?.createHTML(t)||t}var Ss;function kb(){if(Ss===void 0&&(Ss=null,tt.trustedTypes))try{Ss=tt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Ss}function Rp(t){return kb()?.createScriptURL(t)||t}var tn=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${rg})`}},hu=class extends tn{getTypeName(){return"HTML"}},pu=class extends tn{getTypeName(){return"Style"}},gu=class extends tn{getTypeName(){return"Script"}},mu=class extends tn{getTypeName(){return"URL"}},yu=class extends tn{getTypeName(){return"ResourceURL"}};function xt(t){return t instanceof tn?t.changingThisBreaksApplicationSecurity:t}function Nn(t,n){let e=Fb(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${rg})`)}return e===n}function Fb(t){return t instanceof tn&&t.getTypeName()||null}function bm(t){return new hu(t)}function Dm(t){return new pu(t)}function Em(t){return new gu(t)}function Im(t){return new mu(t)}function Mm(t){return new yu(t)}function Lb(t){let n=new _u(t);return Vb()?new vu(n):n}var vu=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(Ra(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},_u=class{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=Ra(n),e}};function Vb(){try{return!!new window.DOMParser().parseFromString(Ra(""),"text/html")}catch{return!1}}var jb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ka(t){return t=String(t),t.match(jb)?t:"unsafe:"+t}function sn(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function eo(...t){let n={};for(let e of t)for(let r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}var xm=sn("area,br,col,hr,img,wbr"),Sm=sn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Tm=sn("rp,rt"),Bb=eo(Tm,Sm),Ub=eo(Sm,sn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),$b=eo(Tm,sn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),kp=eo(xm,Ub,$b,Bb),Am=sn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Hb=sn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),zb=sn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),qb=eo(Am,Hb,zb),Gb=sn("script,style,template"),wu=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,r=!0,i=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild){i.push(e),e=Yb(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let o=Zb(e);if(o){e=o;break}e=i.pop()}}return this.buf.join("")}startElement(n){let e=Fp(n).toLowerCase();if(!kp.hasOwnProperty(e))return this.sanitizedSomething=!0,!Gb.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let r=n.attributes;for(let i=0;i"),!0}endElement(n){let e=Fp(n).toLowerCase();kp.hasOwnProperty(e)&&!xm.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(Lp(n))}};function Wb(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function Zb(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw Om(n);return n}function Yb(t){let n=t.firstChild;if(n&&Wb(t,n))throw Om(n);return n}function Fp(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function Om(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var Qb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Kb=/([^\#-~ |!])/g;function Lp(t){return t.replace(/&/g,"&").replace(Qb,function(n){let e=n.charCodeAt(0),r=n.charCodeAt(1);return"&#"+((e-55296)*1024+(r-56320)+65536)+";"}).replace(Kb,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Ts;function Nm(t,n){let e=null;try{Ts=Ts||Lb(t);let r=n?String(n):"";e=Ts.getInertBodyElement(r);let i=5,o=r;do{if(i===0)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=e.innerHTML,e=Ts.getInertBodyElement(r)}while(r!==o);let a=new wu().sanitizeChildren(Vp(e)||e);return Ra(a)}finally{if(e){let r=Vp(e)||e;for(;r.firstChild;)r.firstChild.remove()}}}function Vp(t){return"content"in t&&Jb(t)?t.content:null}function Jb(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var $t=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}($t||{});function Fa(t){let n=Rm();return n?n.sanitize($t.URL,t)||"":Nn(t,"URL")?xt(t):ka(jr(t))}function Xb(t){let n=Rm();if(n)return Rp(n.sanitize($t.RESOURCE_URL,t)||"");if(Nn(t,"ResourceURL"))return Rp(xt(t));throw new S(904,!1)}function eD(t,n){return n==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||n==="href"&&(t==="base"||t==="link")?Xb:Fa}function Pm(t,n,e){return eD(n,e)(t)}function Rm(){let t=V();return t&&t[Jt].sanitizer}var tD=/^>|^->||--!>|)/g,rD="\u200B$1\u200B";function iD(t){return t.replace(tD,n=>n.replace(nD,rD))}function KL(t){return t.ownerDocument.defaultView}function km(t){return t.ownerDocument}function Fm(t){return t instanceof Function?t():t}var xn=function(t){return t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",t}(xn||{}),Bt=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Bt||{}),oD;function bd(t,n){return oD(t,n)}function Fr(t,n,e,r,i){if(r!=null){let o,s=!1;rn(r)?o=r:Dn(r)&&(s=!0,r=r[nn]);let a=Vt(r);t===0&&e!==null?i==null?Um(n,e,a):ta(n,e,a,i||null,!0):t===1&&e!==null?ta(n,e,a,i||null,!0):t===2?_D(n,a,s):t===3&&n.destroyNode(a),o!=null&&CD(n,t,o,e,i)}}function sD(t,n){return t.createText(n)}function aD(t,n,e){t.setValue(n,e)}function cD(t,n){return t.createComment(iD(n))}function Lm(t,n,e){return t.createElement(n,e)}function lD(t,n){Vm(t,n),n[nn]=null,n[Ke]=null}function uD(t,n,e,r,i,o){r[nn]=i,r[Ke]=n,Va(t,r,e,1,i,o)}function Vm(t,n){n[Jt].changeDetectionScheduler?.notify(10),Va(t,n,n[ge],2,null,null)}function dD(t){let n=t[zi];if(!n)return Ll(t[j],t);for(;n;){let e=null;if(Dn(n))e=n[zi];else{let r=n[Ye];r&&(e=r)}if(!e){for(;n&&!n[It]&&n!==t;)Dn(n)&&Ll(n[j],n),n=n[Re];n===null&&(n=t),Dn(n)&&Ll(n[j],n),e=n&&n[It]}n=e}}function fD(t,n,e,r){let i=Ye+r,o=e.length;r>0&&(e[i-1][It]=n),r0&&(t[e-1][It]=r[It]);let o=Us(t,Ye+n);lD(r[j],r);let s=o[Xt];s!==null&&s.detachView(o[j]),r[Re]=null,r[It]=null,r[L]&=-129}return r}function Ed(t,n){if(!(n[L]&256)){let e=n[ge];e.destroyNode&&Va(t,n,e,3,null,null),dD(n)}}function Ll(t,n){if(n[L]&256)return;let e=Q(null);try{n[L]&=-129,n[L]|=256,n[et]&&ll(n[et]),pD(t,n),hD(t,n),n[j].type===1&&n[ge].destroy();let r=n[Jn];if(r!==null&&rn(n[Re])){r!==n[Re]&&Dd(r,n);let i=n[Xt];i!==null&&i.detachView(t)}uu(n)}finally{Q(e)}}function hD(t,n){let e=t.cleanup,r=n[Hs];if(e!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[e[s+1]];e[s].call(a)}r!==null&&(n[Hs]=null);let i=n[bn];if(i!==null){n[bn]=null;for(let s=0;s-1){let{encapsulation:o}=t.data[r.directiveStart+i];if(o===jt.None||o===jt.Emulated)return null}return vt(r,e)}}function ta(t,n,e,r,i){t.insertBefore(n,e,r,i)}function Um(t,n,e){t.appendChild(n,e)}function jp(t,n,e,r,i){r!==null?ta(t,n,e,r,i):Um(t,n,e)}function $m(t,n){return t.parentNode(n)}function mD(t,n){return t.nextSibling(n)}function Hm(t,n,e){return vD(t,n,e)}function yD(t,n,e){return t.type&40?vt(t,e):null}var vD=yD,Bp;function La(t,n,e,r){let i=Bm(t,r,n),o=n[ge],s=r.parent||n[Ke],a=Hm(s,r,n);if(i!=null)if(Array.isArray(e))for(let c=0;c-1){let o;for(;++io?d="":d=i[u+1].toLowerCase(),r&2&&l!==d){if(Dt(r))return!1;s=!0}}}}return Dt(r)||s}function Dt(t){return(t&1)===0}function SD(t,n,e,r){if(n===null)return-1;let i=0;if(r||!e){let o=!1;for(;i-1)for(e++;e0?'="'+a+'"':"")+"]"}else r&8?i+="."+s:r&4&&(i+=" "+s);else i!==""&&!Dt(s)&&(n+=Up(o,i),i=""),r=s,o=o||!Dt(r);e++}return i!==""&&(n+=Up(o,i)),n}function RD(t){return t.map(PD).join(",")}function kD(t){let n=[],e=[],r=1,i=2;for(;rDe&&Qm(t,n,De,!1),Ft(s?2:0,i),e(r,i)}finally{tr(o),Ft(s?3:1,i)}}function xd(t,n,e){if(Xu(n)){let r=Q(null);try{let i=n.directiveStart,o=n.directiveEnd;for(let s=i;snull;function $D(t,n,e,r){let i=cy(n);i.push(e),t.firstCreatePass&&ly(t).push(r,i.length-1)}function HD(t,n,e,r,i,o){let s=n?n.injectorIndex:-1,a=0;return Vg()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function $p(t,n,e,r,i){for(let o in n){if(!n.hasOwnProperty(o))continue;let s=n[o];if(s===void 0)continue;r??={};let a,c=xn.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=o;if(i!==null){if(!i.hasOwnProperty(o))continue;l=i[o]}t===0?Hp(r,e,l,a,c):Hp(r,e,l,a)}return r}function Hp(t,n,e,r,i){let o;t.hasOwnProperty(e)?(o=t[e]).push(n,r):o=t[e]=[n,r],i!==void 0&&o.push(i)}function zD(t,n,e){let r=n.directiveStart,i=n.directiveEnd,o=t.data,s=n.attrs,a=[],c=null,l=null;for(let u=r;u0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function YD(t,n,e,r){let i=e.directiveStart,o=e.directiveEnd;Ia(e)&&nE(n,e,t.data[i+e.componentOffset]),t.firstCreatePass||Qs(e,n),Mn(r,n);let s=e.initialInputs;for(let a=i;a{Sa(t.lView)},consumerOnSignalRead(){this.lView[et]=this}});function yE(t){let n=t[et]??Object.create(vE);return n.lView=t,n}var vE=H(b({},Ni),{consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{let n=er(t.lView);for(;n&&!hy(n[j]);)n=er(n);n&&nd(n)},consumerOnSignalRead(){this.lView[et]=this}});function hy(t){return t.type!==2}function py(t){if(t[zs]===null)return;let n=!0;for(;n;){let e=!1;for(let r of t[zs])r.dirty&&(e=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=e&&!!(t[L]&8192)}}var _E=100;function gy(t,n=!0,e=0){let i=t[Jt].rendererFactory,o=!1;o||i.begin?.();try{wE(t,e)}catch(s){throw n&&uy(t,s),s}finally{o||i.end?.()}}function wE(t,n){let e=Bg();try{bp(!0),Eu(t,n);let r=0;for(;xa(t);){if(r===_E)throw new S(103,!1);r++,Eu(t,1)}}finally{bp(e)}}function CE(t,n,e,r){let i=n[L];if((i&256)===256)return;let o=!1,s=!1;ad(n);let a=!0,c=null,l=null;o||(hy(t)?(l=hE(n),c=ts(l)):Nh()===null?(a=!1,l=yE(n),c=ts(l)):n[et]&&(ll(n[et]),n[et]=null));try{kg(n),LC(t.bindingStartIndex),e!==null&&ey(t,n,e,2,r);let u=(i&3)===3;if(!o)if(u){let h=t.preOrderCheckHooks;h!==null&&ks(n,h,null)}else{let h=t.preOrderHooks;h!==null&&Fs(n,h,0,null),Rl(n,0)}if(s||bE(n),py(n),my(n,0),t.contentQueries!==null&&ay(t,n),!o)if(u){let h=t.contentCheckHooks;h!==null&&ks(n,h)}else{let h=t.contentHooks;h!==null&&Fs(n,h,1),Rl(n,1)}FD(t,n);let d=t.components;d!==null&&vy(n,d,0);let f=t.viewQuery;if(f!==null&&Du(2,f,r),!o)if(u){let h=t.viewCheckHooks;h!==null&&ks(n,h)}else{let h=t.viewHooks;h!==null&&Fs(n,h,2),Rl(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Pl]){for(let h of n[Pl])h();n[Pl]=null}o||(n[L]&=-73)}catch(u){throw o||Sa(n),u}finally{l!==null&&(al(l,c),a&&gE(l)),cd()}}function my(t,n){for(let e=mm(t);e!==null;e=ym(e))for(let r=Ye;r-1&&(ea(n,r),Us(e,r))}this._attachedToViewContainer=!1}Ed(this._lView[j],this._lView)}onDestroy(n){Fg(this._lView,n)}markForCheck(){Fd(this._cdRefInjectingView||this._lView,4)}markForRefresh(){nd(this._cdRefInjectingView||this._lView)}detach(){this._lView[L]&=-129}reattach(){Jl(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,gy(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=Ql(this._lView),e=this._lView[Jn];e!==null&&!n&&Dd(e,this._lView),Vm(this._lView[j],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=n;let e=Ql(this._lView),r=this._lView[Jn];r!==null&&!e&&jm(r,this._lView),Jl(this._lView)}},gt=(()=>{class t{static __NG_ELEMENT_ID__=ME}return t})(),EE=gt,IE=class extends EE{_declarationLView;_declarationTContainer;elementRef;constructor(n,e,r){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,e){return this.createEmbeddedViewImpl(n,e)}createEmbeddedViewImpl(n,e,r){let i=Rd(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:e,dehydratedView:r});return new ir(i)}};function ME(){return Ua(Pe(),V())}function Ua(t,n){return t.type&4?new IE(n,t,Jr(t,n)):null}var XL=new RegExp(`^(\\d+)*(${xb}|${Mb})*(.*)`);var xE=()=>null;function ia(t,n){return xE(t,n)}var Iu=class{},oa=class{},Mu=class{resolveComponentFactory(n){throw Error(`No component factory found for ${Ve(n)}.`)}},Ut=class{static NULL=new Mu},Wr=class{},St=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>SE()}return t})();function SE(){let t=V(),n=Pe(),e=Tn(n.index,t);return(Dn(e)?e:t)[ge]}var TE=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:()=>null})}return t})();function sa(t,n,e){let r=e?t.styles:null,i=e?t.classes:null,o=0;if(n!==null)for(let s=0;s0&&Gm(t,e,o.join(" "))}}function FE(t,n,e){let r=t.projection=[];for(let i=0;i{class t{static __NG_ELEMENT_ID__=VE}return t})();function VE(){let t=Pe();return wy(t,V())}var jE=an,_y=class extends jE{_lContainer;_hostTNode;_hostLView;constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return Jr(this._hostTNode,this._hostLView)}get injector(){return new Qn(this._hostTNode,this._hostLView)}get parentInjector(){let n=ud(this._hostTNode,this._hostLView);if(Kg(n)){let e=Zs(n,this._hostLView),r=Ws(n),i=e[j].data[r+8];return new Qn(i,e)}else return new Qn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=qp(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-Ye}createEmbeddedView(n,e,r){let i,o;typeof r=="number"?i=r:r!=null&&(i=r.index,o=r.injector);let s=ia(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},o,s);return this.insertImpl(a,i,na(this._hostTNode,s)),a}createComponent(n,e,r,i,o){let s=n&&!wC(n),a;if(s)a=e;else{let C=e||{};a=C.index,r=C.injector,i=C.projectableNodes,o=C.environmentInjector||C.ngModuleRef}let c=s?n:new Zr(En(n)),l=r||this.parentInjector;if(!o&&c.ngModule==null){let E=(s?l:this.parentInjector).get(je,null);E&&(o=E)}let u=En(c.componentType??{}),d=ia(this._lContainer,u?.id??null),f=d?.firstChild??null,h=c.create(l,i,f,o);return this.insertImpl(h.hostView,a,na(this._hostTNode,d)),h}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,r){let i=n._lView;if(MC(i)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let c=i[Re],l=new _y(c,c[Ke],c[Re]);l.detach(l.indexOf(n))}}let o=this._adjustIndex(e),s=this._lContainer;return kd(s,i,o,r),n.attachToViewContainerRef(),gg(Vl(s),o,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=qp(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),r=ea(this._lContainer,e);r&&(Us(Vl(this._lContainer),e),Ed(r[j],r))}detach(n){let e=this._adjustIndex(n,-1),r=ea(this._lContainer,e);return r&&Us(Vl(this._lContainer),e)!=null?new ir(r):null}_adjustIndex(n,e=0){return n??this.length+e}};function qp(t){return t[qs]}function Vl(t){return t[qs]||(t[qs]=[])}function wy(t,n){let e,r=n[t.index];return rn(r)?e=r:(e=sy(r,n,null,t),n[t.index]=e,Ba(n,e)),UE(e,n,t,r),new _y(e,t,n)}function BE(t,n){let e=t[ge],r=e.createComment(""),i=vt(n,t),o=$m(e,i);return ta(e,o,r,mD(e,i),!1),r}var UE=zE,$E=()=>!1;function HE(t,n,e){return $E(t,n,e)}function zE(t,n,e,r){if(t[Xn])return;let i;e.type&8?i=Vt(r):i=BE(n,e),t[Xn]=i}var Su=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Tu=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let r=n.contentQueries!==null?n.contentQueries[0]:e.length,i=[];for(let o=0;o0)r.push(s[a/2]);else{let l=o[a+1],u=n[-c];for(let d=Ye;dn.trim())}function Dy(t,n,e){t.queries===null&&(t.queries=new Au),t.queries.track(new Ou(n,e))}function XE(t,n){let e=t.contentQueries||(t.contentQueries=[]),r=e.length?e[e.length-1]:-1;n!==r&&e.push(t.queries.length-1,n)}function Ld(t,n){return t.queries.getByIndex(n)}function eI(t,n){let e=t[j],r=Ld(e,n);return r.crossesNgTemplate?Nu(e,t,n,[]):Cy(e,t,r,n)}function tI(t){return typeof t=="function"&&t[Je]!==void 0}function $a(t,n){cr("NgSignals");let e=$h(t),r=e[Je];return n?.equal&&(r.equal=n.equal),e.set=i=>is(r,i),e.update=i=>Hh(r,i),e.asReadonly=nI.bind(e),e}function nI(){let t=this[Je];if(t.readonlyFn===void 0){let n=()=>this();n[Je]=t,t.readonlyFn=n}return t.readonlyFn}function Ey(t){return tI(t)&&typeof t.set=="function"}function rI(t){let n=[],e=new Map;function r(i){let o=e.get(i);if(!o){let s=t(i);e.set(i,o=s.then(aI))}return o}return la.forEach((i,o)=>{let s=[];i.templateUrl&&s.push(r(i.templateUrl).then(l=>{i.template=l}));let a=typeof i.styles=="string"?[i.styles]:i.styles||[];if(i.styles=a,i.styleUrl&&i.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(i.styleUrls?.length){let l=i.styles.length,u=i.styleUrls;i.styleUrls.forEach((d,f)=>{a.push(""),s.push(r(d).then(h=>{a[l+f]=h,u.splice(u.indexOf(d),1),u.length==0&&(i.styleUrls=void 0)}))})}else i.styleUrl&&s.push(r(i.styleUrl).then(l=>{a.push(l),i.styleUrl=void 0}));let c=Promise.all(s).then(()=>cI(o));n.push(c)}),oI(),Promise.all(n).then(()=>{})}var la=new Map,iI=new Set;function oI(){let t=la;return la=new Map,t}function sI(){return la.size===0}function aI(t){return typeof t=="string"?t:t.text()}function cI(t){iI.delete(t)}var Sn=class{},Gi=class{};var ua=class extends Sn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new aa(this);constructor(n,e,r,i=!0){super(),this.ngModuleType=n,this._parent=e;let o=vg(n);this._bootstrapComponents=Fm(o.bootstrap),this._r3Injector=sm(n,e,[{provide:Sn,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver},...r],Ve(n),new Set(["environment"])),i&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},da=class extends Gi{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new ua(this.moduleType,n,[])}};function lI(t,n,e){return new ua(t,n,e,!1)}var Pu=class extends Sn{injector;componentFactoryResolver=new aa(this);instance=null;constructor(n){super();let e=new $i([...n.providers,{provide:Sn,useValue:this},{provide:Ut,useValue:this.componentFactoryResolver}],n.parent||Ju(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function Ha(t,n,e=null){return new Pu({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var uI=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let r=bg(!1,e.type),i=r.length>0?Ha([r],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,i)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=D({token:t,providedIn:"environment",factory:()=>new t(_(je))})}return t})();function fe(t){return Yi(()=>{let n=Iy(t),e=H(b({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===pm.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?i=>i.get(uI).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||jt.Emulated,styles:t.styles||Ze,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&cr("NgStandalone"),My(e);let r=t.dependencies;return e.directiveDefs=fa(r,!1),e.pipeDefs=fa(r,!0),e.id=hI(e),e})}function dI(t){return En(t)||_g(t)}function fI(t){return t!==null}function ue(t){return Yi(()=>({type:t.type,bootstrap:t.bootstrap||Ze,declarations:t.declarations||Ze,imports:t.imports||Ze,exports:t.exports||Ze,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Gp(t,n){if(t==null)return Br;let e={};for(let r in t)if(t.hasOwnProperty(r)){let i=t[r],o,s,a=xn.None;Array.isArray(i)?(a=i[0],o=i[1],s=i[2]??o):(o=i,s=i),n?(e[o]=a!==xn.None?[r,a]:r,n[o]=s):e[o]=r}return e}function oe(t){return Yi(()=>{let n=Iy(t);return My(n),n})}function Pn(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function Iy(t){let n={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:t.inputs||Br,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ze,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gp(t.inputs,n),outputs:Gp(t.outputs),debugInfo:null}}function My(t){t.features?.forEach(n=>n(t))}function fa(t,n){if(!t)return null;let e=n?wg:dI;return()=>(typeof t=="function"?t():t).map(r=>e(r)).filter(fI)}function hI(t){let n=0,e=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let o of r.join("|"))n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function pI(t){return Object.getPrototypeOf(t.prototype).constructor}function Rn(t){let n=pI(t.type),e=!0,r=[t];for(;n;){let i;if(In(t))i=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new S(903,!1);i=n.\u0275dir}if(i){if(e){r.push(i);let s=t;s.inputs=As(t.inputs),s.inputTransforms=As(t.inputTransforms),s.declaredInputs=As(t.declaredInputs),s.outputs=As(t.outputs);let a=i.hostBindings;a&&_I(t,a);let c=i.viewQuery,l=i.contentQueries;if(c&&yI(t,c),l&&vI(t,l),gI(t,i),Lw(t.outputs,i.outputs),In(i)&&i.data.animation){let u=t.data;u.animation=(u.animation||[]).concat(i.data.animation)}}let o=i.features;if(o)for(let s=0;s=0;r--){let i=t[r];i.hostVars=n+=i.hostVars,i.hostAttrs=qi(i.hostAttrs,e=qi(e,i.hostAttrs))}}function As(t){return t===Br?{}:t===Ze?[]:t}function yI(t,n){let e=t.viewQuery;e?t.viewQuery=(r,i)=>{n(r,i),e(r,i)}:t.viewQuery=n}function vI(t,n){let e=t.contentQueries;e?t.contentQueries=(r,i,o)=>{n(r,i,o),e(r,i,o)}:t.contentQueries=n}function _I(t,n){let e=t.hostBindings;e?t.hostBindings=(r,i)=>{n(r,i),e(r,i)}:t.hostBindings=n}function Vd(t){let n=t.inputConfig,e={};for(let r in n)if(n.hasOwnProperty(r)){let i=n[r];Array.isArray(i)&&i[3]&&(e[r]=i[3])}t.inputTransforms=e}function xy(t){return jd(t)?Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t:!1}function wI(t,n){if(Array.isArray(t))for(let e=0;e{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var Bd=new M(""),to=new M(""),qa=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];taskTrackingZone=null;constructor(e,r,i){this._ngZone=e,this.registry=r,Ud||(MI(i),i.addToWindow(r)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(e)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==o),e()},r)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:i})}whenStable(e,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,r,i),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,i){return[]}static \u0275fac=function(r){return new(r||t)(_(ne),_(Ga),_(to))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Ga=(()=>{class t{_applications=new Map;registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return Ud?.findTestabilityInTree(this,e,r)??null}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function MI(t){Ud=t}var Ud;function ur(t){return!!t&&typeof t.then=="function"}function Ay(t){return!!t&&typeof t.subscribe=="function"}var Wa=new M("");var Oy=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r});appInits=w(Wa,{optional:!0})??[];injector=w(xe);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let i of this.appInits){let o=Qe(this.injector,i);if(ur(o))e.push(o);else if(Ay(o)){let s=new Promise((a,c)=>{o.subscribe({complete:a,error:c})});e.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(i=>{this.reject(i)}),e.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xI=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:()=>new ku})}return t})(),ku=class{queuedEffectCount=0;queues=new Map;schedule(n){this.enqueue(n)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let r=this.queues.get(e);r.has(n)||(this.queuedEffectCount++,r.add(n))}flush(){for(;this.queuedEffectCount>0;)for(let[n,e]of this.queues)n===null?this.flushQueue(e):n.run(()=>this.flushQueue(e))}flushQueue(n){for(let e of n)n.delete(e),this.queuedEffectCount--,e.run()}},Za=new M("");function SI(){Uh(()=>{throw new S(600,!1)})}function TI(t){return t.isBoundToModule}var AI=10;function OI(t,n,e){try{let r=e();return ur(r)?r.catch(i=>{throw n.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw n.runOutsideAngular(()=>t.handleError(r)),r}}function Ny(t,n){return Array.isArray(n)?n.reduce(Ny,t):b(b({},t),n)}var rt=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(mb);afterRenderManager=w(Cm);zonelessEnabled=w(hd);rootEffectScheduler=w(xI);dirtyFlags=0;deferredDirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new re;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=w(on).hasPendingTasks.pipe(B(e=>!e));constructor(){w(Pa,{optional:!0})}whenStable(){let e;return new Promise(r=>{e=this.isStable.subscribe({next:i=>{i&&r()}})}).finally(()=>{e.unsubscribe()})}_injector=w(je);get injector(){return this._injector}bootstrap(e,r){let i=e instanceof oa;if(!this._injector.get(Oy).done){let f=!i&&Cg(e),h=!1;throw new S(405,h)}let s;i?s=e:s=this._injector.get(Ut).resolveComponentFactory(e),this.componentTypes.push(s.componentType);let a=TI(s)?void 0:this._injector.get(Sn),c=r||s.selector,l=s.create(xe.NULL,[],c,a),u=l.location.nativeElement,d=l.injector.get(Bd,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),Vs(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick=()=>{if(this.tracingSnapshot!==null){let r=this.tracingSnapshot;this.tracingSnapshot=null,r.run(_d.CHANGE_DETECTION,this._tick);return}if(this._runningTick)throw new S(101,!1);let e=Q(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,Q(e),this.afterTick.next()}};synchronize(){let e=null;this._injector.destroyed||(e=this._injector.get(Wr,null,{optional:!0})),this.dirtyFlags|=this.deferredDirtyFlags,this.deferredDirtyFlags=0;let r=0;for(;this.dirtyFlags!==0&&r++xa(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){let r=e;Vs(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(Za,[]).forEach(i=>i(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Vs(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new S(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Vs(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function NI(t,n,e,r){if(!e&&!xa(t))return;gy(t,n,e&&!r?0:1)}function dr(t,n,e,r){let i=V(),o=Xi();if(mt(i,o,n)){let s=me(),a=ld();rE(a,i,t,n,e,r)}return dr}function Py(t,n,e,r){return mt(t,Xi(),e)?n+jr(e)+r:nt}function PI(t,n,e,r,i,o){let s=FC(),a=Wi(t,s,e,i);return od(2),a?n+jr(e)+r+jr(i)+o:nt}function Os(t,n){return t<<17|n<<2}function or(t){return t>>17&32767}function RI(t){return(t&2)==2}function kI(t,n){return t&131071|n<<17}function Fu(t){return t|2}function Yr(t){return(t&131068)>>2}function jl(t,n){return t&-131069|n<<2}function FI(t){return(t&1)===1}function Lu(t){return t|1}function LI(t,n,e,r,i,o){let s=o?n.classBindings:n.styleBindings,a=or(s),c=Yr(s);t[r]=e;let l=!1,u;if(Array.isArray(e)){let d=e;u=d[1],(u===null||Ki(d,u)>0)&&(l=!0)}else u=e;if(i)if(c!==0){let f=or(t[a+1]);t[r+1]=Os(f,a),f!==0&&(t[f+1]=jl(t[f+1],r)),t[a+1]=kI(t[a+1],r)}else t[r+1]=Os(a,0),a!==0&&(t[a+1]=jl(t[a+1],r)),a=r;else t[r+1]=Os(c,0),a===0?a=r:t[c+1]=jl(t[c+1],r),c=r;l&&(t[r+1]=Fu(t[r+1])),Wp(t,u,r,!0),Wp(t,u,r,!1),VI(n,u,t,r,o),s=Os(a,c),o?n.classBindings=s:n.styleBindings=s}function VI(t,n,e,r,i){let o=i?t.residualClasses:t.residualStyles;o!=null&&typeof n=="string"&&Ki(o,n)>=0&&(e[r+1]=Lu(e[r+1]))}function Wp(t,n,e,r){let i=t[e+1],o=n===null,s=r?or(i):Yr(i),a=!1;for(;s!==0&&(a===!1||o);){let c=t[s],l=t[s+1];jI(c,n)&&(a=!0,t[s+1]=r?Lu(l):Fu(l)),s=r?or(l):Yr(l)}a&&(t[e+1]=r?Fu(i):Lu(i))}function jI(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?Ki(t,n)>=0:!1}var Et={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function BI(t){return t.substring(Et.key,Et.keyEnd)}function UI(t){return $I(t),Ry(t,ky(t,0,Et.textEnd))}function Ry(t,n){let e=Et.textEnd;return e===n?-1:(n=Et.keyEnd=HI(t,Et.key=n,e),ky(t,n,e))}function $I(t){Et.key=0,Et.keyEnd=0,Et.value=0,Et.valueEnd=0,Et.textEnd=t.length}function ky(t,n,e){for(;n32;)n++;return n}function y(t,n,e){let r=V(),i=Xi();if(mt(r,i,n)){let o=me(),s=ld();ny(o,s,r,t,n,r[ge],e,!1)}return y}function Vu(t,n,e,r,i){let o=n.inputs,s=i?"class":"style";Nd(t,e,o[s],s,r)}function Fy(t,n,e){return Vy(t,n,e,!1),Fy}function he(t,n){return Vy(t,n,null,!0),he}function cn(t){jy(YI,Ly,t,!0)}function Ly(t,n){for(let e=UI(n);e>=0;e=Ry(n,e))Ca(t,BI(n),!0)}function Vy(t,n,e,r){let i=V(),o=me(),s=od(2);if(o.firstUpdatePass&&Uy(o,t,s,r),n!==nt&&mt(i,s,n)){let a=o.data[On()];$y(o,a,i,i[ge],t,i[s+1]=KI(n,e),r,s)}}function jy(t,n,e,r){let i=me(),o=od(2);i.firstUpdatePass&&Uy(i,null,o,r);let s=V();if(e!==nt&&mt(s,o,e)){let a=i.data[On()];if(Hy(a,r)&&!By(i,o)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(e=Hl(c,e||"")),Vu(i,a,s,e,r)}else QI(i,a,s,s[ge],s[o+1],s[o+1]=ZI(t,n,e),r,o)}}function By(t,n){return n>=t.expandoStartIndex}function Uy(t,n,e,r){let i=t.data;if(i[e+1]===null){let o=i[On()],s=By(t,e);Hy(o,r)&&n===null&&!s&&(n=!1),n=zI(i,o,n,r),LI(i,o,n,e,s,r)}}function zI(t,n,e,r){let i=UC(t),o=r?n.residualClasses:n.residualStyles;if(i===null)(r?n.classBindings:n.styleBindings)===0&&(e=Bl(null,t,n,e,r),e=Zi(e,n.attrs,r),o=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==i)if(e=Bl(i,t,n,e,r),o===null){let c=qI(t,n,r);c!==void 0&&Array.isArray(c)&&(c=Bl(null,t,n,c[1],r),c=Zi(c,n.attrs,r),GI(t,n,r,c))}else o=WI(t,n,r)}return o!==void 0&&(r?n.residualClasses=o:n.residualStyles=o),e}function qI(t,n,e){let r=e?n.classBindings:n.styleBindings;if(Yr(r)!==0)return t[or(r)]}function GI(t,n,e,r){let i=e?n.classBindings:n.styleBindings;t[or(i)]=r}function WI(t,n,e){let r,i=n.directiveEnd;for(let o=1+n.directiveStylingLast;o0;){let c=t[i],l=Array.isArray(c),u=l?c[1]:c,d=u===null,f=e[i+1];f===nt&&(f=d?Ze:void 0);let h=d?Ol(f,r):u===r?f:void 0;if(l&&!ha(h)&&(h=Ol(c,r)),ha(h)&&(a=h,s))return a;let C=t[i+1];i=s?or(C):Yr(C)}if(n!==null){let c=o?n.residualClasses:n.residualStyles;c!=null&&(a=Ol(c,r))}return a}function ha(t){return t!==void 0}function KI(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=Ve(xt(t)))),t}function Hy(t,n){return(t.flags&(n?8:16))!==0}function zy(t,n,e){let r=V(),i=Py(r,t,n,e);jy(Ca,Ly,i,!0)}function t2(t,n){cr("NgControlFlow");let e=V(),r=Xi(),i=e[r]!==nt?e[r]:-1,o=i!==-1?Yp(e,De+i):void 0,s=0;if(mt(e,r,t)){let a=Q(null);try{if(o!==void 0&&dE(o,s),t!==-1){let c=De+t,l=Yp(e,c),u=JI(e[j],c),d=ia(l,u.tView.ssrId),f=Rd(e,u,n,{dehydratedView:d});kd(l,f,s,na(u,d))}}finally{Q(a)}}else if(o!==void 0){let a=uE(o,s);a!==void 0&&(a[ht]=n)}}function Yp(t,n){return t[n]}function JI(t,n){return ed(t,n)}function XI(t,n,e,r,i,o){let s=n.consts,a=qr(s,i),c=Xr(n,t,2,r,a);return Od(n,e,c,qr(s,o)),c.attrs!==null&&sa(c,c.attrs,!1),c.mergedAttrs!==null&&sa(c,c.mergedAttrs,!0),n.queries!==null&&n.queries.elementStart(n,c),c}function m(t,n,e,r){let i=V(),o=me(),s=De+t,a=i[ge],c=o.firstCreatePass?XI(s,o,i,n,e,r):o.data[s],l=eM(o,i,c,a,n,t);i[s]=l;let u=Ma(c);return ar(c,!0),Wm(a,l,c),!bI(c)&&Aa()&&La(o,i,l,c),TC()===0&&Mn(l,i),AC(),u&&(Sd(o,i,c),xd(o,c,i)),r!==null&&Td(i,c),m}function v(){let t=Pe();rd()?id():(t=t.parent,ar(t,!1));let n=t;NC(n)&&PC(),OC();let e=me();return e.firstCreatePass&&(Na(e,t),Xu(t)&&e.queries.elementEnd(t)),n.classesWithoutHost!=null&&YC(n)&&Vu(e,n,V(),n.classesWithoutHost,!0),n.stylesWithoutHost!=null&&QC(n)&&Vu(e,n,V(),n.stylesWithoutHost,!1),v}function ke(t,n,e,r){return m(t,n,e,r),v(),ke}var eM=(t,n,e,r,i,o)=>(Oa(!0),Lm(r,i,qC()));function tM(t,n,e,r,i){let o=n.consts,s=qr(o,r),a=Xr(n,t,8,"ng-container",s);s!==null&&sa(a,s,!0);let c=qr(o,i);return Od(n,e,a,c),n.queries!==null&&n.queries.elementStart(n,a),a}function ye(t,n,e){let r=V(),i=me(),o=t+De,s=i.firstCreatePass?tM(o,i,r,n,e):i.data[o];ar(s,!0);let a=nM(i,r,s,t);return r[o]=a,Aa()&&La(i,r,a,s),Mn(a,r),Ma(s)&&(Sd(i,r,s),xd(i,s,r)),e!=null&&Td(r,s),ye}function ve(){let t=Pe(),n=me();return rd()?id():(t=t.parent,ar(t,!1)),n.firstCreatePass&&(Na(n,t),Xu(t)&&n.queries.elementEnd(t)),ve}function _t(t,n,e){return ye(t,n,e),ve(),_t}var nM=(t,n,e,r)=>(Oa(!0),cD(n[ge],""));function W(){return V()}var pa="en-US";var rM=pa;function iM(t){typeof t=="string"&&(rM=t.toLowerCase().replace(/_/g,"-"))}var oM=(t,n,e)=>{};function O(t,n,e,r){let i=V(),o=me(),s=Pe();return qy(o,i,i[ge],s,t,n,r),O}function sM(t,n,e,r){let i=t.cleanup;if(i!=null)for(let o=0;oc?a[c]:null}typeof s=="string"&&(o+=2)}return null}function qy(t,n,e,r,i,o,s){let a=Ma(r),l=t.firstCreatePass&&ly(t),u=n[ht],d=cy(n),f=!0;if(r.type&3||s){let E=vt(r,n),x=s?s(E):E,R=d.length,X=s?Ae=>s(Vt(Ae[r.index])):r.index,J=null;if(!s&&a&&(J=sM(t,n,i,r.index)),J!==null){let Ae=J.__ngLastListenerFn__||J;Ae.__ngNextListenerFn__=o,J.__ngLastListenerFn__=o,f=!1}else{o=Kp(r,n,u,o),oM(E,i,o);let Ae=e.listen(x,i,o);d.push(o,Ae),l&&l.push(i,X,R,R+1)}}else o=Kp(r,n,u,o);let h=r.outputs,C;if(f&&h!==null&&(C=h[i])){let E=C.length;if(E)for(let x=0;x-1?Tn(t.index,n):n;Fd(s,5);let a=Qp(n,e,r,o),c=i.__ngNextListenerFn__;for(;c;)a=Qp(n,e,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function g(t=1){return HC(t)}function aM(t,n){let e=null,r=TD(t);for(let i=0;i=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}function Tt(t){let n=kC();return Ji(n,De+t)}function A(t,n=""){let e=V(),r=me(),i=t+De,o=r.firstCreatePass?Xr(r,i,1,n,null):r.data[i],s=uM(r,e,o,n,t);e[i]=s,Aa()&&La(r,e,s,o),ar(o,!1)}var uM=(t,n,e,r,i)=>(Oa(!0),sD(n[ge],r));function Ie(t){return de("",t,""),Ie}function de(t,n,e){let r=V(),i=Py(r,t,n,e);return i!==nt&&dy(r,On(),i),de}function $d(t,n,e,r,i){let o=V(),s=PI(o,t,n,e,r,i);return s!==nt&&dy(o,On(),s),$d}function ro(t,n,e){Ey(n)&&(n=n());let r=V(),i=Xi();if(mt(r,i,n)){let o=me(),s=ld();ny(o,s,r,t,n,r[ge],e,!1)}return ro}function Qa(t,n){let e=Ey(t);return e&&t.set(n),e}function io(t,n){let e=V(),r=me(),i=Pe();return qy(r,e,e[ge],i,t,n),io}function dM(t,n,e){let r=me();if(r.firstCreatePass){let i=In(t);ju(e,r.data,r.blueprint,i,!0),ju(n,r.data,r.blueprint,i,!1)}}function ju(t,n,e,r,i){if(t=Le(t),Array.isArray(t))for(let o=0;o>20;if($r(t)||!t.multi){let h=new nr(l,i,I),C=$l(c,n,i?u:u+f,d);C===-1?(iu(Qs(a,s),o,c),Ul(o,t,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(h),s.push(h)):(e[C]=h,s[C]=h)}else{let h=$l(c,n,u+f,d),C=$l(c,n,u,u+f),E=h>=0&&e[h],x=C>=0&&e[C];if(i&&!x||!i&&!E){iu(Qs(a,s),o,c);let R=pM(i?hM:fM,e.length,i,r,l);!i&&x&&(e[C].providerFactory=R),Ul(o,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,i&&(a.providerIndexes+=1048576),e.push(R),s.push(R)}else{let R=Gy(e[i?C:h],l,!i&&r);Ul(o,t,h>-1?h:C,R)}!i&&r&&x&&e[C].componentProviders++}}}function Ul(t,n,e,r){let i=$r(n),o=dC(n);if(i||o){let c=(o?Le(n.useClass):n).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!i&&n.multi){let u=l.indexOf(e);u===-1?l.push(e,[r,c]):l[u+1].push(r,c)}else l.push(e,c)}}}function Gy(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function $l(t,n,e,r){for(let i=e;i{e.providersResolver=(r,i)=>dM(r,i?i(t):t,n)}}function Hd(t,n,e){let r=t.\u0275cmp;r.directiveDefs=fa(n,!1),r.pipeDefs=fa(e,!0)}function n2(t,n,e){let r=An()+t,i=V();return i[r]===nt?lr(i,r,e?n.call(e):n()):Sy(i,r)}function kn(t,n,e,r){return Yy(V(),An(),t,n,e,r)}function Wy(t,n,e,r,i,o,s,a,c,l,u){let d=An()+t,f=V(),h=Ru(f,d,e,r,i,o);return Ru(f,d+4,s,a,c,l)||h?lr(f,d+8,u?n.call(u,e,r,i,o,s,a,c,l):n(e,r,i,o,s,a,c,l)):Sy(f,d+8)}function Zy(t,n,e,r){return vM(V(),An(),t,n,e,r)}function so(t,n){let e=t[n];return e===nt?void 0:e}function Yy(t,n,e,r,i,o){let s=n+e;return mt(t,s,i)?lr(t,s+1,o?r.call(o,i):r(i)):so(t,s+1)}function gM(t,n,e,r,i,o,s){let a=n+e;return Wi(t,a,i,o)?lr(t,a+2,s?r.call(s,i,o):r(i,o)):so(t,a+2)}function mM(t,n,e,r,i,o,s,a){let c=n+e;return CI(t,c,i,o,s)?lr(t,c+3,a?r.call(a,i,o,s):r(i,o,s)):so(t,c+3)}function yM(t,n,e,r,i,o,s,a,c){let l=n+e;return Ru(t,l,i,o,s,a)?lr(t,l+4,c?r.call(c,i,o,s,a):r(i,o,s,a)):so(t,l+4)}function vM(t,n,e,r,i,o){let s=n+e,a=!1;for(let c=0;c=0;e--){let r=n[e];if(t===r.name)return r}}function r2(t,n,e){let r=t+De,i=V(),o=Ji(i,r);return Ka(i,r)?Yy(i,An(),n,o.transform,e,o):o.transform(e)}function i2(t,n,e,r){let i=t+De,o=V(),s=Ji(o,i);return Ka(o,i)?gM(o,An(),n,s.transform,e,r,s):s.transform(e,r)}function ti(t,n,e,r,i){let o=t+De,s=V(),a=Ji(s,o);return Ka(s,o)?mM(s,An(),n,a.transform,e,r,i,a):a.transform(e,r,i)}function Qy(t,n,e,r,i,o){let s=t+De,a=V(),c=Ji(a,s);return Ka(a,s)?yM(a,An(),n,c.transform,e,r,i,o,c):c.transform(e,r,i,o)}function Ka(t,n){return t[j].data[n].pure}function ln(t,n){return Ua(t,n)}var Ns=null;function wM(t){Ns!==null&&(t.defaultEncapsulation!==Ns.defaultEncapsulation||t.preserveWhitespaces!==Ns.preserveWhitespaces)||(Ns=t)}var Uu=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},Ja=(()=>{class t{compileModuleSync(e){return new da(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let r=this.compileModuleSync(e),i=vg(e),o=Fm(i.declarations).reduce((s,a)=>{let c=En(a);return c&&s.push(new Zr(c)),s},[]);return new Uu(r,o)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),CM=new M("");function bM(t,n,e){let r=new da(e);return Promise.resolve(r)}function Jp(t){for(let n=t.length-1;n>=0;n--)if(t[n]!==void 0)return t[n]}var DM=(()=>{class t{zone=w(ne);changeDetectionScheduler=w(Gr);applicationRef=w(rt);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function EM({ngZoneFactory:t,ignoreChangesOutsideZone:n,scheduleInRootZone:e}){return t??=()=>new ne(H(b({},Ky()),{scheduleInRootZone:e})),[{provide:ne,useFactory:t},{provide:Ur,multi:!0,useFactory:()=>{let r=w(DM,{optional:!0});return()=>r.initialize()}},{provide:Ur,multi:!0,useFactory:()=>{let r=w(IM);return()=>{r.initialize()}}},n===!0?{provide:cm,useValue:!0}:[],{provide:lm,useValue:e??am}]}function Ky(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var IM=(()=>{class t{subscription=new _e;initialized=!1;zone=w(ne);pendingTasks=w(on);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ne.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ne.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var MM=(()=>{class t{appRef=w(rt);taskService=w(on);ngZone=w(ne);zonelessEnabled=w(hd);tracing=w(Pa,{optional:!0});disableScheduling=w(cm,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new _e;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(Js):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(lm,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Xs||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let r=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 8:{this.appRef.deferredDirtyFlags|=8;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 13:{this.appRef.dirtyFlags|=16,r=!0;break}case 14:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{r=!0;break}case 10:case 9:case 7:case 11:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let i=this.useMicrotaskScheduler?Sp:um;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(Js+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(e),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Sp(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xM(){return typeof $localize<"u"&&$localize.locale||pa}var zd=new M("",{providedIn:"root",factory:()=>w(zd,q.Optional|q.SkipSelf)||xM()});var ga=new M("");function Ps(t){return!t.moduleRef}function SM(t){let n=Ps(t)?t.r3Injector:t.moduleRef.injector,e=n.get(ne);return e.run(()=>{Ps(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=n.get(en,null),i;if(e.runOutsideAngular(()=>{i=e.onError.subscribe({next:o=>{r.handleError(o)}})}),Ps(t)){let o=()=>n.destroy(),s=t.platformInjector.get(ga);s.add(o),n.onDestroy(()=>{i.unsubscribe(),s.delete(o)})}else{let o=()=>t.moduleRef.destroy(),s=t.platformInjector.get(ga);s.add(o),t.moduleRef.onDestroy(()=>{Vs(t.allPlatformModules,t.moduleRef),i.unsubscribe(),s.delete(o)})}return OI(r,e,()=>{let o=n.get(Oy);return o.runInitializers(),o.donePromise.then(()=>{let s=n.get(zd,pa);if(iM(s||pa),Ps(t)){let a=n.get(rt);return t.rootComponent!==void 0&&a.bootstrap(t.rootComponent),a}else return TM(t.moduleRef,t.allPlatformModules),t.moduleRef})})})}function TM(t,n){let e=t.injector.get(rt);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>e.bootstrap(r));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new S(-403,!1);n.push(t)}var Jy=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,r){let i=r?.scheduleInRootZone,o=()=>gb(r?.ngZone,H(b({},Ky({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:i})),s=r?.ignoreChangesOutsideZone,a=[EM({ngZoneFactory:o,ignoreChangesOutsideZone:s}),{provide:Gr,useExisting:MM}],c=lI(e.moduleType,this.injector,a);return SM({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,r=[]){let i=Ny({},r);return bM(this.injector,i,e).then(o=>this.bootstrapModuleFactory(o,i))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new S(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let e=this._injector.get(ga,null);e&&(e.forEach(r=>r()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||t)(_(xe))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Bi=null,Xy=new M("");function AM(t){if(Bi&&!Bi.get(Xy,!1))throw new S(400,!1);SI(),Bi=t;let n=t.get(Jy);return PM(t),n}function qd(t,n,e=[]){let r=`Platform: ${n}`,i=new M(r);return(o=[])=>{let s=ev();if(!s||s.injector.get(Xy,!1)){let a=[...e,...o,{provide:i,useValue:!0}];t?t(a):AM(OM(a,r))}return NM(i)}}function OM(t=[],n){return xe.create({name:n,providers:[{provide:Da,useValue:"platform"},{provide:ga,useValue:new Set([()=>Bi=null])},...t]})}function NM(t){let n=ev();if(!n)throw new S(401,!1);return n}function ev(){return Bi?.get(Jy)??null}function PM(t){let n=t.get(yd,null);Qe(t,()=>{n?.forEach(e=>e())})}function o2(){return!1}var Fn=(()=>{class t{static __NG_ELEMENT_ID__=RM}return t})();function RM(t){return kM(Pe(),V(),(t&16)===16)}function kM(t,n,e){if(Ia(t)&&!e){let r=Tn(t.index,n);return new ir(r,r)}else if(t.type&175){let r=n[pt];return new ir(r,n)}return null}var $u=class{constructor(){}supports(n){return xy(n)}create(n){return new Hu(n)}},FM=(t,n)=>n,Hu=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||FM}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,i=0,o=null;for(;e||r;){let s=!r||e&&e.currentIndex{s=this._trackByFn(i,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,i),r=!0):(r&&(e=this._verifyReinsertion(e,a,s,i)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,i++}),this.length=i;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,r,i){let o;return n===null?o=this._itTail:(o=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,o,i)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,i),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,o,i)):n=this._addAfter(new zu(e,r),o,i)),n}_verifyReinsertion(n,e,r,i){let o=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return o!==null?n=this._reinsertAfter(o,n._prev,i):n.currentIndex!=i&&(n.currentIndex=i,this._addToMoves(n,i)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let i=n._prevRemoved,o=n._nextRemoved;return i===null?this._removalsHead=o:i._nextRemoved=o,o===null?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){let i=e===null?this._itHead:e._next;return n._next=i,n._prev=e,i===null?this._itTail=n:i._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new ma),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,r=n._next;return e===null?this._itHead=r:e._next=r,r===null?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ma),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},zu=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e}},qu=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let r;for(r=this._head;r!==null;r=r._nextDup)if((e===null||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let e=n._prevDup,r=n._nextDup;return e===null?this._head=r:e._nextDup=r,r===null?this._tail=e:r._prevDup=e,this._head===null}},ma=class{map=new Map;put(n){let e=n.trackById,r=this.map.get(e);r||(r=new qu,this.map.set(e,r)),r.add(n)}get(n,e){let r=n,i=this.map.get(r);return i?i.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Xp(t,n,e){let r=t.previousIndex;if(r===null)return r;let i=0;return e&&r{if(e&&e.key===i)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{let o=this._getOrCreateRecordForKey(i,r);e=this._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){let r=n._prev;return e._next=n,e._prev=r,n._prev=e,r&&(r._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let i=this._records.get(n);this._maybeAddToChanges(i,e);let o=i._prev,s=i._next;return o&&(o._next=s),s&&(s._prev=o),i._next=null,i._prev=null,i}let r=new Zu(n);return this._records.set(n,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(r=>e(n[r],r))}},Zu=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}};function eg(){return new Gd([new $u])}var Gd=(()=>{class t{factories;static \u0275prov=D({token:t,providedIn:"root",factory:eg});constructor(e){this.factories=e}static create(e,r){if(r!=null){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||eg()),deps:[[t,new wa,new Qi]]}}find(e){let r=this.factories.find(i=>i.supports(e));if(r!=null)return r;throw new S(901,!1)}}return t})();function tg(){return new Wd([new Gu])}var Wd=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:tg});factories;constructor(e){this.factories=e}static create(e,r){if(r){let i=r.factories.slice();e=e.concat(i)}return new t(e)}static extend(e){return{provide:t,useFactory:r=>t.create(e,r||tg()),deps:[[t,new wa,new Qi]]}}find(e){let r=this.factories.find(i=>i.supports(e));if(r)return r;throw new S(901,!1)}}return t})();var tv=qd(null,"core",[]),nv=(()=>{class t{constructor(e){}static \u0275fac=function(r){return new(r||t)(_(rt))};static \u0275mod=ue({type:t});static \u0275inj=le({})}return t})();function pr(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function LM(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}function Xa(t,n){cr("NgSignals");let e=Vh(t);return n?.equal&&(e[Je].equal=n.equal),e}function Ln(t){let n=Q(null);try{return t()}finally{Q(n)}}var ng=class{[Je];constructor(n){this[Je]=n}destroy(){this[Je].destroy()}};function rv(t){let n=En(t);if(!n)return null;let e=new Zr(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var lv=null;function At(){return lv}function uv(t){lv??=t}var ec=class{};var Se=new M(""),ef=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(VM),providedIn:"platform"})}return t})(),dv=new M(""),VM=(()=>{class t extends ef{_location;_history;_doc=w(Se);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return At().getBaseHref(this._doc)}onPopState(e){let r=At().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){let r=At().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,r,i){this._history.pushState(e,r,i)}replaceState(e,r,i){this._history.replaceState(e,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function tf(t,n){if(t.length==0)return n;if(n.length==0)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,e==2?t+n.substring(1):e==1?t+n:t+"/"+n}function iv(t){let n=t.match(/#|\?|$/),e=n&&n.index||t.length,r=e-(t[e-1]==="/"?1:0);return t.slice(0,r)+t.slice(e)}function un(t){return t&&t[0]!=="?"?"?"+t:t}var dn=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(nf),providedIn:"root"})}return t})(),fv=new M(""),nf=(()=>{class t extends dn{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??w(Se).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return tf(this._baseHref,e)}path(e=!1){let r=this._platformLocation.pathname+un(this._platformLocation.search),i=this._platformLocation.hash;return i&&e?`${r}${i}`:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+un(o));this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+un(o));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(_(ef),_(fv,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),hv=(()=>{class t extends dn{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(e){let r=tf(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,i,o){let s=this.prepareExternalUrl(i+un(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.pushState(e,r,s)}replaceState(e,r,i,o){let s=this.prepareExternalUrl(i+un(o));s.length==0&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(_(ef),_(fv,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),ri=(()=>{class t{_subject=new re;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let r=this._locationStrategy.getBaseHref();this._basePath=UM(iv(ov(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+un(r))}normalize(e){return t.stripTrailingSlash(BM(this._basePath,ov(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",i=null){this._locationStrategy.pushState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+un(r)),i)}replaceState(e,r="",i=null){this._locationStrategy.replaceState(i,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+un(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(i=>i(e,r))}subscribe(e,r,i){return this._subject.subscribe({next:e,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=un;static joinWithSlash=tf;static stripTrailingSlash=iv;static \u0275fac=function(r){return new(r||t)(_(dn))};static \u0275prov=D({token:t,factory:()=>jM(),providedIn:"root"})}return t})();function jM(){return new ri(_(dn))}function BM(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function ov(t){return t.replace(/\/index.html$/,"")}function UM(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}function tc(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let r=e.indexOf("="),[i,o]=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)];if(i.trim()===n)return decodeURIComponent(o)}return null}var Zd=/\s+/,sv=[],fn=(()=>{class t{_ngEl;_renderer;initialClasses=sv;rawClass;stateMap=new Map;constructor(e,r){this._ngEl=e,this._renderer=r}set klass(e){this.initialClasses=e!=null?e.trim().split(Zd):sv}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Zd):e}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let r of e)this._updateState(r,!0);else if(e!=null)for(let r of Object.keys(e))this._updateState(r,!!e[r]);this._applyStateDiff()}_updateState(e,r){let i=this.stateMap.get(e);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let r=e[0],i=e[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(e,r){e=e.trim(),e.length>0&&e.split(Zd).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(r){return new(r||t)(I(Ee),I(St))};static \u0275dir=oe({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var Yd=class{$implicit;ngForOf;index;count;constructor(n,e,r,i){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Be=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,r,i){this._viewContainer=e,this._template=r,this._differs=i}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;if(!this._differ&&e)if(0)try{}catch{}else this._differ=this._differs.find(e).create(this.ngForTrackBy)}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let r=this._viewContainer;e.forEachOperation((i,o,s)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Yd(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(o===null?void 0:o);else if(o!==null){let a=r.get(o);r.move(a,s),av(a,i)}});for(let i=0,o=r.length;i{let o=r.get(i.currentIndex);av(o,i)})}static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(I(an),I(gt),I(Gd))};static \u0275dir=oe({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function av(t,n){t.context.$implicit=n.item}var st=(()=>{class t{_viewContainer;_context=new Qd;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,r){this._viewContainer=e,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){cv("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){cv("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(I(an),I(gt))};static \u0275dir=oe({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Qd=class{$implicit=null;ngIf=null};function cv(t,n){if(!!!(!n||n.createEmbeddedView))throw new Error(`${t} must be a TemplateRef, but received '${Ve(n)}'.`)}var pv=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,r,i){this._ngEl=e,this._differs=r,this._renderer=i}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){let[i,o]=e.split("."),s=i.indexOf("-")===-1?void 0:Bt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,o?`${r}${o}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||t)(I(Ee),I(Wd),I(St))};static \u0275dir=oe({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),ii=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(e,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(r){return new(r||t)(I(an))};static \u0275dir=oe({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[yt]})}return t})();var S2=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(r){return new(r||t)};static \u0275pipe=Pn({name:"json",type:t,pure:!1})}return t})();var Fe=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({})}return t})(),rf="browser",$M="server";function HM(t){return t===rf}function gr(t){return t===$M}var gv=(()=>{class t{static \u0275prov=D({token:t,providedIn:"root",factory:()=>HM(w(Mt))?new Kd(w(Se),window):new Jd})}return t})(),Kd=class{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=zM(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),r=e.left+this.window.pageXOffset,i=e.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(r-o[0],i-o[1])}};function zM(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let o=i.shadowRoot;if(o){let s=o.getElementById(n)||o.querySelector(`[name="${n}"]`);if(s)return s}i=r.nextNode()}}return null}var Jd=class{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}},ni=class{};var co=class{},rc=class{},Ue=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` +`).forEach(e=>{let r=e.indexOf(":");if(r>0){let i=e.slice(0,r),o=e.slice(r+1).trim();this.addHeaderEntry(i,o)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let i=(n.op==="a"?this.headers.get(e):void 0)||[];i.push(...r),this.headers.set(e,i);break;case"d":let o=n.value;if(!o)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=this.headers.get(e);if(!s)return;s=s.filter(a=>o.indexOf(a)===-1),s.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,s)}break}}addHeaderEntry(n,e){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(o=>o.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var sf=class{encodeKey(n){return mv(n)}encodeValue(n){return mv(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function qM(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(i=>{let o=i.indexOf("="),[s,a]=o==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,o)),n.decodeValue(i.slice(o+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var GM=/%(\d[a-f0-9])/gi,WM={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function mv(t){return encodeURIComponent(t).replace(GM,(n,e)=>WM[e]??n)}function nc(t){return`${t}`}var jn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new sf,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=qM(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],i=Array.isArray(r)?r.map(nc):[nc(r)];this.map.set(e,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(o=>{e.push({param:r,value:o,op:"a"})}):e.push({param:r,value:i,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(nc(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(nc(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var af=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function ZM(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function yv(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function vv(t){return typeof Blob<"u"&&t instanceof Blob}function _v(t){return typeof FormData<"u"&&t instanceof FormData}function YM(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var ao=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,e,r,i){this.url=e,this.method=n.toUpperCase();let o;if(ZM(this.method)||i?(this.body=r!==void 0?r:null,o=i):o=r,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params),this.transferCache=o.transferCache),this.headers??=new Ue,this.context??=new af,!this.params)this.params=new jn,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":af.set(h,n.setHeaders[h]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new t(e,r,s,{params:u,headers:l,context:d,reportProgress:c,responseType:i,withCredentials:a,transferCache:o})}},Bn=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}(Bn||{}),lo=class{headers;status;statusText;url;ok;type;constructor(n,e=200,r="OK"){this.headers=n.headers||new Ue,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},ic=class t extends lo{constructor(n={}){super(n)}type=Bn.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},uo=class t extends lo{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=Bn.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Vn=class extends lo{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},Ev=200,QM=204;function of(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,transferCache:t.transferCache}}var uf=(()=>{class t{handler;constructor(e){this.handler=e}request(e,r,i={}){let o;if(e instanceof ao)o=e;else{let c;i.headers instanceof Ue?c=i.headers:c=new Ue(i.headers);let l;i.params&&(i.params instanceof jn?l=i.params:l=new jn({fromObject:i.params})),o=new ao(e,r,i.body!==void 0?i.body:null,{headers:c,context:i.context,params:l,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache})}let s=k(o).pipe(Qt(c=>this.handler.handle(c)));if(e instanceof ao||i.observe==="events")return s;let a=s.pipe(qe(c=>c instanceof uo));switch(i.observe||"body"){case"body":switch(o.responseType){case"arraybuffer":return a.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(B(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(B(c=>{if(c.body!==null&&typeof c.body!="string")throw new Error("Response is not a string.");return c.body}));case"json":default:return a.pipe(B(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new jn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,i={}){return this.request("PATCH",e,of(i,r))}post(e,r,i={}){return this.request("POST",e,of(i,r))}put(e,r,i={}){return this.request("PUT",e,of(i,r))}static \u0275fac=function(r){return new(r||t)(_(co))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),KM=/^\)\]\}',?\n/,JM="X-Request-URL";function wv(t){if(t.url)return t.url;let n=JM.toLocaleLowerCase();return t.headers.get(n)}var XM=(()=>{class t{fetchImpl=w(cf,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=w(ne);handle(e){return new z(r=>{let i=new AbortController;return this.doRequest(e,i.signal,r).then(lf,o=>r.error(new Vn({error:o}))),()=>i.abort()})}doRequest(e,r,i){return dt(this,null,function*(){let o=this.createRequestInit(e),s;try{let h=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,b({signal:r},o)));ex(h),i.next({type:Bn.Sent}),s=yield h}catch(h){i.error(new Vn({error:h,status:h.status??0,statusText:h.statusText,url:e.urlWithParams,headers:h.headers}));return}let a=new Ue(s.headers),c=s.statusText,l=wv(s)??e.urlWithParams,u=s.status,d=null;if(e.reportProgress&&i.next(new ic({headers:a,status:u,statusText:c,url:l})),s.body){let h=s.headers.get("content-length"),C=[],E=s.body.getReader(),x=0,R,X,J=typeof Zone<"u"&&Zone.current;yield this.ngZone.runOutsideAngular(()=>dt(this,null,function*(){for(;;){let{done:He,value:Ce}=yield E.read();if(He)break;if(C.push(Ce),x+=Ce.length,e.reportProgress){X=e.responseType==="text"?(X??"")+(R??=new TextDecoder).decode(Ce,{stream:!0}):void 0;let Wt=()=>i.next({type:Bn.DownloadProgress,total:h?+h:void 0,loaded:x,partialText:X});J?J.run(Wt):Wt()}}}));let Ae=this.concatChunks(C,x);try{let He=s.headers.get("Content-Type")??"";d=this.parseBody(e,Ae,He)}catch(He){i.error(new Vn({error:He,headers:new Ue(s.headers),status:s.status,statusText:s.statusText,url:wv(s)??e.urlWithParams}));return}}u===0&&(u=d?Ev:0),u>=200&&u<300?(i.next(new uo({body:d,headers:a,status:u,statusText:c,url:l})),i.complete()):i.error(new Vn({error:d,headers:a,status:u,statusText:c,url:l}))})}parseBody(e,r,i){switch(e.responseType){case"json":let o=new TextDecoder().decode(r).replace(KM,"");return o===""?null:JSON.parse(o);case"text":return new TextDecoder().decode(r);case"blob":return new Blob([r],{type:i});case"arraybuffer":return r.buffer}}createRequestInit(e){let r={},i=e.withCredentials?"include":void 0;if(e.headers.forEach((o,s)=>r[o]=s.join(",")),e.headers.has("Accept")||(r.Accept="application/json, text/plain, */*"),!e.headers.has("Content-Type")){let o=e.detectContentTypeHeader();o!==null&&(r["Content-Type"]=o)}return{body:e.serializeBody(),method:e.method,headers:r,credentials:i}}concatChunks(e,r){let i=new Uint8Array(r),o=0;for(let s of e)i.set(s,o),o+=s.length;return i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),cf=class{};function lf(){}function ex(t){t.then(lf,lf)}function Iv(t,n){return n(t)}function tx(t,n){return(e,r)=>n.intercept(e,{handle:i=>t(i,r)})}function nx(t,n,e){return(r,i)=>Qe(e,()=>n(r,o=>t(o,i)))}var rx=new M(""),df=new M(""),ix=new M(""),Mv=new M("",{providedIn:"root",factory:()=>!0});function ox(){let t=null;return(n,e)=>{t===null&&(t=(w(rx,{optional:!0})??[]).reduceRight(tx,Iv));let r=w(on);if(w(Mv)){let o=r.add();return t(n,e).pipe(wn(()=>r.remove(o)))}else return t(n,e)}}var Cv=(()=>{class t extends co{backend;injector;chain=null;pendingTasks=w(on);contributeToStability=w(Mv);constructor(e,r){super(),this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(df),...this.injector.get(ix,[])]));this.chain=r.reduceRight((i,o)=>nx(i,o,this.injector),Iv)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,i=>this.backend.handle(i)).pipe(wn(()=>this.pendingTasks.remove(r)))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(_(rc),_(je))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();var sx=/^\)\]\}',?\n/;function ax(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}var bv=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new S(-2800,!1);let r=this.xhrFactory;return(r.\u0275loadImpl?te(r.\u0275loadImpl()):k(null)).pipe(Ge(()=>new z(o=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((E,x)=>s.setRequestHeader(E,x.join(","))),e.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){let E=e.detectContentTypeHeader();E!==null&&s.setRequestHeader("Content-Type",E)}if(e.responseType){let E=e.responseType.toLowerCase();s.responseType=E!=="json"?E:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let E=s.statusText||"OK",x=new Ue(s.getAllResponseHeaders()),R=ax(s)||e.url;return c=new ic({headers:x,status:s.status,statusText:E,url:R}),c},u=()=>{let{headers:E,status:x,statusText:R,url:X}=l(),J=null;x!==QM&&(J=typeof s.response>"u"?s.responseText:s.response),x===0&&(x=J?Ev:0);let Ae=x>=200&&x<300;if(e.responseType==="json"&&typeof J=="string"){let He=J;J=J.replace(sx,"");try{J=J!==""?JSON.parse(J):null}catch(Ce){J=He,Ae&&(Ae=!1,J={error:Ce,text:J})}}Ae?(o.next(new uo({body:J,headers:E,status:x,statusText:R,url:X||void 0})),o.complete()):o.error(new Vn({error:J,headers:E,status:x,statusText:R,url:X||void 0}))},d=E=>{let{url:x}=l(),R=new Vn({error:E,status:s.status||0,statusText:s.statusText||"Unknown Error",url:x||void 0});o.error(R)},f=!1,h=E=>{f||(o.next(l()),f=!0);let x={type:Bn.DownloadProgress,loaded:E.loaded};E.lengthComputable&&(x.total=E.total),e.responseType==="text"&&s.responseText&&(x.partialText=s.responseText),o.next(x)},C=E=>{let x={type:Bn.UploadProgress,loaded:E.loaded};E.lengthComputable&&(x.total=E.total),o.next(x)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",h),a!==null&&s.upload&&s.upload.addEventListener("progress",C)),s.send(a),o.next({type:Bn.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),e.reportProgress&&(s.removeEventListener("progress",h),a!==null&&s.upload&&s.upload.removeEventListener("progress",C)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(_(ni))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),xv=new M(""),cx="XSRF-TOKEN",lx=new M("",{providedIn:"root",factory:()=>cx}),ux="X-XSRF-TOKEN",dx=new M("",{providedIn:"root",factory:()=>ux}),oc=class{},fx=(()=>{class t{doc;platform;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,r,i){this.doc=e,this.platform=r,this.cookieName=i}getToken(){if(this.platform==="server")return null;let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=tc(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||t)(_(Se),_(Mt),_(lx))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function hx(t,n){let e=t.url.toLowerCase();if(!w(xv)||t.method==="GET"||t.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(t);let r=w(oc).getToken(),i=w(dx);return r!=null&&!t.headers.has(i)&&(t=t.clone({headers:t.headers.set(i,r)})),n(t)}var Sv=function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t}(Sv||{});function px(t,n){return{\u0275kind:t,\u0275providers:n}}function Tv(...t){let n=[uf,bv,Cv,{provide:co,useExisting:Cv},{provide:rc,useFactory:()=>w(XM,{optional:!0})??w(bv)},{provide:df,useValue:hx,multi:!0},{provide:xv,useValue:!0},{provide:oc,useClass:fx}];for(let e of t)n.push(...e.\u0275providers);return ba(n)}var Dv=new M("");function Av(){return px(Sv.LegacyInterceptors,[{provide:Dv,useFactory:ox},{provide:df,useExisting:Dv,multi:!0}])}var hf=class extends ec{supportsDOMEvents=!0},pf=class t extends hf{static makeCurrent(){uv(new t)}onAndCancel(n,e,r){return n.addEventListener(e,r),()=>{n.removeEventListener(e,r)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=mx();return e==null?null:yx(e)}resetBaseElement(){fo=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return tc(document.cookie,n)}},fo=null;function mx(){return fo=fo||document.querySelector("base"),fo?fo.getAttribute("href"):null}function yx(t){return new URL(t,document.baseURI).pathname}var gf=class{addToWindow(n){tt.getAngularTestability=(r,i=!0)=>{let o=n.findTestabilityInTree(r,i);if(o==null)throw new S(5103,!1);return o},tt.getAllAngularTestabilities=()=>n.getAllTestabilities(),tt.getAllAngularRootElements=()=>n.getAllRootElements();let e=r=>{let i=tt.getAllAngularTestabilities(),o=i.length,s=function(){o--,o==0&&r()};i.forEach(a=>{a.whenStable(s)})};tt.frameworkStabilizers||(tt.frameworkStabilizers=[]),tt.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,r){if(e==null)return null;let i=n.getTestability(e);return i??(r?At().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},vx=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),mf=new M(""),Fv=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,r,i){return this._findPluginFor(r).addEventListener(e,r,i)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(o=>o.supports(e)),!r)throw new S(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(_(mf),_(ne))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),sc=class{_doc;constructor(n){this._doc=n}manager},yf="ng-app-id";function Ov(t){for(let n of t)n.remove()}function Nv(t,n){let e=n.createElement("style");return e.textContent=t,e}function _x(t,n,e){let r=t.head?.querySelectorAll(`style[${yf}="${n}"]`);if(r)for(let i of r)i.textContent&&(i.removeAttribute(yf),e.set(i.textContent,{usage:0,elements:[i]}))}function vf(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var Lv=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,r,i,o={}){this.doc=e,this.appId=r,this.nonce=i,this.isServer=gr(o),_x(e,r,this.inline),this.hosts.add(e.head)}addStyles(e,r){for(let i of e)this.addUsage(i,this.inline,Nv);r?.forEach(i=>this.addUsage(i,this.external,vf))}removeStyles(e,r){for(let i of e)this.removeUsage(i,this.inline);r?.forEach(i=>this.removeUsage(i,this.external))}addUsage(e,r,i){let o=r.get(e);o?o.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(e,this.doc)))})}removeUsage(e,r){let i=r.get(e);i&&(i.usage--,i.usage<=0&&(Ov(i.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ov(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:i}]of this.inline)i.push(this.addElement(e,Nv(r,this.doc)));for(let[r,{elements:i}]of this.external)i.push(this.addElement(e,vf(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(yf,this.appId),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(_(Se),_(md),_(vd,8),_(Mt))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),ff={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},wf=/%COMP%/g,Vv="%COMP%",wx=`_nghost-${Vv}`,Cx=`_ngcontent-${Vv}`,bx=!0,Dx=new M("",{providedIn:"root",factory:()=>bx});function Ex(t){return Cx.replace(wf,t)}function Ix(t){return wx.replace(wf,t)}function jv(t,n){return n.map(e=>e.replace(wf,t))}var Pv=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,r,i,o,s,a,c,l=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.platformIsServer=gr(a),this.defaultRenderer=new ho(e,s,c,this.platformIsServer)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===jt.ShadowDom&&(r=H(b({},r),{encapsulation:jt.Emulated}));let i=this.getOrCreateRenderer(e,r);return i instanceof ac?i.applyToHost(e):i instanceof po&&i.applyStyles(),i}getOrCreateRenderer(e,r){let i=this.rendererByCompId,o=i.get(r.id);if(!o){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case jt.Emulated:o=new ac(c,l,r,this.appId,u,s,a,d);break;case jt.ShadowDom:return new _f(c,l,e,r,s,a,this.nonce,d);default:o=new po(c,l,r,u,s,a,d);break}i.set(r.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}static \u0275fac=function(r){return new(r||t)(_(Fv),_(Lv),_(md),_(Dx),_(Se),_(Mt),_(ne),_(vd))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),ho=class{eventManager;doc;ngZone;platformIsServer;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,i){this.eventManager=n,this.doc=e,this.ngZone=r,this.platformIsServer=i}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(ff[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Rv(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Rv(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new S(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,i){if(i){e=i+":"+e;let o=ff[i];o?n.setAttributeNS(o,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let i=ff[r];i?n.removeAttributeNS(i,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,i){i&(Bt.DashCase|Bt.Important)?n.style.setProperty(e,r,i&Bt.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Bt.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r){if(typeof n=="string"&&(n=At().getGlobalEventTarget(this.doc,n),!n))throw new Error(`Unsupported event target ${n} for event ${e}`);return this.eventManager.addEventListener(n,e,this.decoratePreventDefault(r))}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function Rv(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var _f=class extends ho{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,r,i,o,s,a,c){super(n,o,s,c),this.sharedStylesHost=e,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=jv(i.id,i.styles);for(let d of l){let f=document.createElement("style");a&&f.setAttribute("nonce",a),f.textContent=d,this.shadowRoot.appendChild(f)}let u=i.getExternalStyles?.();if(u)for(let d of u){let f=vf(d,o);a&&f.setAttribute("nonce",a),this.shadowRoot.appendChild(f)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},po=class extends ho{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,i,o,s,a,c){super(n,o,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=i,this.styles=c?jv(c,r.styles):r.styles,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},ac=class extends po{contentAttr;hostAttr;constructor(n,e,r,i,o,s,a,c){let l=i+"-"+r.id;super(n,e,r,o,s,a,c,l),this.contentAttr=Ex(l),this.hostAttr=Ix(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}},Mx=(()=>{class t extends sc{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,i){return e.addEventListener(r,i,!1),()=>this.removeEventListener(e,r,i)}removeEventListener(e,r,i){return e.removeEventListener(r,i)}static \u0275fac=function(r){return new(r||t)(_(Se))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),kv=["alt","control","meta","shift"],xx={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Sx={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Tx=(()=>{class t extends sc{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,i){let o=t.parseEventName(r),s=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>At().onAndCancel(e,o.domEventName,s))}static parseEventName(e){let r=e.toLowerCase().split("."),i=r.shift();if(r.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),kv.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=o,r.length!=0||o.length===0)return null;let c={};return c.domEventName=i,c.fullKey=s,c}static matchEventFullKeyCode(e,r){let i=xx[e.key]||e.key,o="";return r.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),kv.forEach(s=>{if(s!==i){let a=Sx[s];a(e)&&(o+=s+".")}}),o+=i,o===r)}static eventCallback(e,r,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>r(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(_(Se))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function Ax(){pf.makeCurrent()}function Ox(){return new en}function Nx(){return _m(document),document}var Px=[{provide:Mt,useValue:rf},{provide:yd,useValue:Ax,multi:!0},{provide:Se,useFactory:Nx,deps:[]}],tV=qd(tv,"browser",Px),Rx=new M(""),kx=[{provide:to,useClass:gf,deps:[]},{provide:Bd,useClass:qa,deps:[ne,Ga,to]},{provide:qa,useClass:qa,deps:[ne,Ga,to]}],Fx=[{provide:Da,useValue:"root"},{provide:en,useFactory:Ox,deps:[]},{provide:mf,useClass:Mx,multi:!0,deps:[Se,ne,Mt]},{provide:mf,useClass:Tx,multi:!0,deps:[Se]},Pv,Lv,Fv,{provide:Wr,useExisting:Pv},{provide:ni,useClass:vx,deps:[]},[]],nV=(()=>{class t{constructor(e){}static \u0275fac=function(r){return new(r||t)(_(Rx,12))};static \u0275mod=ue({type:t});static \u0275inj=le({providers:[...Fx,...kx],imports:[Fe,nv]})}return t})(),Bv=(()=>{class t{_doc;_dom;constructor(e){this._doc=e,this._dom=At()}addTag(e,r=!1){return e?this._getOrCreateElement(e,r):null}addTags(e,r=!1){return e?e.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,r)),i),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let r=this._doc.querySelectorAll(`meta[${e}]`);return r?[].slice.call(r):[]}updateTag(e,r){if(!e)return null;r=r||this._parseSelector(e);let i=this.getTag(r);return i?this._setMetaElementAttributes(e,i):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,r=!1){if(!r){let s=this._parseSelector(e),a=this.getTags(s).filter(c=>this._containsAttributes(e,c))[0];if(a!==void 0)return a}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(e,r){return Object.keys(e).forEach(i=>r.setAttribute(this._getMetaKeyMap(i),e[i])),r}_parseSelector(e){let r=e.name?"name":"property";return`${r}="${e[r]}"`}_containsAttributes(e,r){return Object.keys(e).every(i=>r.getAttribute(this._getMetaKeyMap(i))===e[i])}_getMetaKeyMap(e){return Lx[e]||e}static \u0275fac=function(r){return new(r||t)(_(Se))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Lx={httpEquiv:"http-equiv"},cc=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(_(Se))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var rV=new M("HammerLoader");var Uv=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:function(r){let i=null;return r?i=new(r||t):i=_(Vx),i},providedIn:"root"})}return t})(),Vx=(()=>{class t extends Uv{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case $t.NONE:return r;case $t.HTML:return Nn(r,"HTML")?xt(r):Nm(this._doc,String(r)).toString();case $t.STYLE:return Nn(r,"Style")?xt(r):r;case $t.SCRIPT:if(Nn(r,"Script"))return xt(r);throw new S(5200,!1);case $t.URL:return Nn(r,"URL")?xt(r):ka(String(r));case $t.RESOURCE_URL:if(Nn(r,"ResourceURL"))return xt(r);throw new S(5201,!1);default:throw new S(5202,!1)}}bypassSecurityTrustHtml(e){return bm(e)}bypassSecurityTrustStyle(e){return Dm(e)}bypassSecurityTrustScript(e){return Em(e)}bypassSecurityTrustUrl(e){return Im(e)}bypassSecurityTrustResourceUrl(e){return Mm(e)}static \u0275fac=function(r){return new(r||t)(_(Se))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $="primary",So=Symbol("RouteTitle"),If=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ui(t){return new If(t)}function jx(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.lengthr[o]===i)}else return t===n}function e_(t){return t.length>0?t[t.length-1]:null}function $n(t){return bl(t)?t:ur(t)?te(Promise.resolve(t)):k(t)}var Ux={exact:n_,subset:r_},t_={exact:$x,subset:Hx,ignored:()=>!0};function Hv(t,n,e){return Ux[e.paths](t.root,n.root,e.matrixParams)&&t_[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function $x(t,n){return zt(t,n)}function n_(t,n,e){if(!yr(t.segments,n.segments)||!dc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!n_(t.children[r],n.children[r],e))return!1;return!0}function Hx(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>Xv(t[e],n[e]))}function r_(t,n,e){return i_(t,n,n.segments,e)}function i_(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!yr(i,e)||n.hasChildren()||!dc(i,e,r))}else if(t.segments.length===e.length){if(!yr(t.segments,e)||!dc(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!r_(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!yr(t.segments,i)||!dc(t.segments,i,r)||!t.children[$]?!1:i_(t.children[$],n,o,r)}}function dc(t,n,e){return n.every((r,i)=>t_[e](t[i].parameters,r.parameters))}var pn=class{root;queryParams;fragment;_queryParamMap;constructor(n=new ee([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ui(this.queryParams),this._queryParamMap}toString(){return Gx.serialize(this)}},ee=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return fc(this)}},mr=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ui(this.parameters),this._parameterMap}toString(){return s_(this)}};function zx(t,n){return yr(t,n)&&t.every((e,r)=>zt(e.parameters,n[r].parameters))}function yr(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function qx(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===$&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==$&&(e=e.concat(n(i,r)))}),e}var To=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>new di,providedIn:"root"})}return t})(),di=class{parse(n){let e=new Sf(n);return new pn(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${go(n.root,!0)}`,r=Yx(n.queryParams),i=typeof n.fragment=="string"?`#${Wx(n.fragment)}`:"";return`${e}${r}${i}`}},Gx=new di;function fc(t){return t.segments.map(n=>s_(n)).join("/")}function go(t,n){if(!t.hasChildren())return fc(t);if(n){let e=t.children[$]?go(t.children[$],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==$&&r.push(`${i}:${go(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=qx(t,(r,i)=>i===$?[go(t.children[$],!1)]:[`${i}:${go(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[$]!=null?`${fc(t)}/${e[0]}`:`${fc(t)}/(${e.join("//")})`}}function o_(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function lc(t){return o_(t).replace(/%3B/gi,";")}function Wx(t){return encodeURI(t)}function xf(t){return o_(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function hc(t){return decodeURIComponent(t)}function zv(t){return hc(t.replace(/\+/g,"%20"))}function s_(t){return`${xf(t.path)}${Zx(t.parameters)}`}function Zx(t){return Object.entries(t).map(([n,e])=>`;${xf(n)}=${xf(e)}`).join("")}function Yx(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${lc(e)}=${lc(i)}`).join("&"):`${lc(e)}=${lc(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Qx=/^[^\/()?;#]+/;function Cf(t){let n=t.match(Qx);return n?n[0]:""}var Kx=/^[^\/()?;=#]+/;function Jx(t){let n=t.match(Kx);return n?n[0]:""}var Xx=/^[^=?&#]+/;function eS(t){let n=t.match(Xx);return n?n[0]:""}var tS=/^[^&#]+/;function nS(t){let n=t.match(tS);return n?n[0]:""}var Sf=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ee([],{}):new ee([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[$]=new ee(n,e)),r}parseSegment(){let n=Cf(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new S(4009,!1);return this.capture(n),new mr(hc(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Jx(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Cf(this.remaining);i&&(r=i,this.capture(r))}n[hc(e)]=hc(r)}parseQueryParam(n){let e=eS(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=nS(this.remaining);s&&(r=s,this.capture(r))}let i=zv(e),o=zv(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Cf(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new S(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=$);let s=this.parseChildren();e[o]=Object.keys(s).length===1?s[$]:new ee([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new S(4011,!1)}};function a_(t){return t.segments.length>0?new ee([],{[$]:t}):t}function c_(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=c_(i);if(r===$&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new ee(t.segments,n);return rS(e)}function rS(t){if(t.numberOfChildren===1&&t.children[$]){let n=t.children[$];return new ee(t.segments.concat(n.segments),n.children)}return t}function vr(t){return t instanceof pn}function iS(t,n,e=null,r=null){let i=l_(t);return u_(i,n,e,r)}function l_(t){let n;function e(o){let s={};for(let c of o.children){let l=e(c);s[c.outlet]=l}let a=new ee(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=a_(r);return n??i}function u_(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return bf(i,i,i,e,r);let o=oS(n);if(o.toRoot())return bf(i,i,new ee([],{}),e,r);let s=sS(o,i,t),a=s.processChildren?vo(s.segmentGroup,s.index,o.commands):f_(s.segmentGroup,s.index,o.commands);return bf(i,s.segmentGroup,a,e,r)}function pc(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Co(t){return typeof t=="object"&&t!=null&&t.outlets}function bf(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([c,l])=>{o[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`});let s;t===n?s=e:s=d_(t,n,e);let a=a_(c_(s));return new pn(a,o,i)}function d_(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=d_(o,n,e)}),new ee(t.segments,r)}var gc=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&pc(r[0]))throw new S(4003,!1);let i=r.find(Co);if(i&&i!==e_(r))throw new S(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function oS(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new gc(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new gc(e,n,r)}var ai=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function sS(t,n,e){if(t.isAbsolute)return new ai(n,!0,0);if(!e)return new ai(n,!1,NaN);if(e.parent===null)return new ai(e,!0,0);let r=pc(t.commands[0])?0:1,i=e.segments.length-1+r;return aS(e,i,t.numberOfDoubleDots)}function aS(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new S(4005,!1);i=r.segments.length}return new ai(r,!1,i-o)}function cS(t){return Co(t[0])?t[0].outlets:{[$]:t}}function f_(t,n,e){if(t??=new ee([],{}),t.segments.length===0&&t.hasChildren())return vo(t,n,e);let r=lS(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndexo!==$)&&t.children[$]&&t.numberOfChildren===1&&t.children[$].segments.length===0){let o=vo(t.children[$],n,e);return new ee(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=f_(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new ee(t.segments,i)}}function lS(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i=e.length)return o;let s=t.segments[i],a=e[r];if(Co(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!Gv(c,l,s))return o;r+=2}else{if(!Gv(c,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Tf(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=Tf(new ee([],{}),0,r))}),n}function qv(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function Gv(t,n,e){return t==e.path&&zt(n,e.parameters)}var _o="imperative",Te=function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t}(Te||{}),wt=class{id;url;constructor(n,e){this.id=n,this.url=e}},fi=class extends wt{type=Te.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Nt=class extends wt{urlAfterRedirects;type=Te.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},ct=function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t}(ct||{}),mc=function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t}(mc||{}),hn=class extends wt{reason;code;type=Te.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Un=class extends wt{reason;code;type=Te.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},bo=class extends wt{error;target;type=Te.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},yc=class extends wt{urlAfterRedirects;state;type=Te.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Af=class extends wt{urlAfterRedirects;state;type=Te.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Of=class extends wt{urlAfterRedirects;state;shouldActivate;type=Te.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Nf=class extends wt{urlAfterRedirects;state;type=Te.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pf=class extends wt{urlAfterRedirects;state;type=Te.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rf=class{route;type=Te.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},kf=class{route;type=Te.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Ff=class{snapshot;type=Te.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lf=class{snapshot;type=Te.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vf=class{snapshot;type=Te.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jf=class{snapshot;type=Te.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},vc=class{routerEvent;position;anchor;type=Te.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},Do=class{},hi=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function dS(t,n){return t.providers&&!t._injector&&(t._injector=Ha(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Ot(t){return t.outlet||$}function fS(t,n){let e=t.filter(r=>Ot(r)===n);return e.push(...t.filter(r=>Ot(r)!==n)),e}function Ao(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Bf=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Ao(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Oo(this.rootInjector)}},Oo=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Bf(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(_(je))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_c=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Uf(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=Uf(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=$f(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return $f(n,this._root).map(e=>e.value)}};function Uf(t,n){if(t===n.value)return n;for(let e of n.children){let r=Uf(t,e);if(r)return r}return null}function $f(t,n){if(t===n.value)return[n];for(let e of n.children){let r=$f(t,e);if(r.length)return r.unshift(n),r}return[]}var at=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function si(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var wc=class extends _c{snapshot;constructor(n,e){super(n),this.snapshot=e,Kf(this,n)}toString(){return this.snapshot.toString()}};function h_(t){let n=hS(t),e=new Oe([new mr("",{})]),r=new Oe({}),i=new Oe({}),o=new Oe({}),s=new Oe(""),a=new _r(e,r,o,s,i,$,t,n.root);return a.snapshot=n.root,new wc(new at(a,[]),n)}function hS(t){let n={},e={},r={},i="",o=new ci([],n,r,i,e,$,t,null,{});return new bc("",new at(o,[]))}var _r=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(B(l=>l[So]))??k(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(B(n=>ui(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(B(n=>ui(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function Cc(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:b(b({},n.params),t.params),data:b(b({},n.data),t.data),resolve:b(b(b(b({},t.data),n.data),i?.data),t._resolvedData)}:r={params:b({},t.params),data:b({},t.data),resolve:b(b({},t.data),t._resolvedData??{})},i&&g_(i)&&(r.resolve[So]=i.title),r}var ci=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[So]}constructor(n,e,r,i,o,s,a,c,l){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ui(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ui(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},bc=class extends _c{url;constructor(n,e){super(e),this.url=n,Kf(this,e)}toString(){return p_(this._root)}};function Kf(t,n){n.value._routerState=t,n.children.forEach(e=>Kf(t,e))}function p_(t){let n=t.children.length>0?` { ${t.children.map(p_).join(", ")} } `:"";return`${t.value}${n}`}function Df(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,zt(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),zt(n.params,e.params)||t.paramsSubject.next(e.params),Bx(n.url,e.url)||t.urlSubject.next(e.url),zt(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function Hf(t,n){let e=zt(t.params,n.params)&&zx(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||Hf(t.parent,n.parent))}function g_(t){return typeof t.title=="string"||t.title===null}var pS=new M(""),gS=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=$;activateEvents=new G;deactivateEvents=new G;attachEvents=new G;detachEvents=new G;routerOutletData=fm(void 0);parentContexts=w(Oo);location=w(an);changeDetector=w(Fn);inputBinder=w(Sc,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new S(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new S(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new S(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new S(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new zf(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=oe({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[yt]})}return t})(),zf=class t{route;childContexts;parent;outletData;__ngOutletInjector(n){return new t(this.route,this.childContexts,n,this.outletData)}constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===_r?this.route:n===Oo?this.childContexts:n===pS?this.outletData:this.parent.get(n,e)}},Sc=new M(""),Wv=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Fi([r.queryParams,r.params,r.data]).pipe(Ge(([o,s,a],c)=>(a=b(b(b({},o),s),a),c===0?k(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=rv(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function mS(t,n,e){let r=Eo(t,n._root,e?e._root:void 0);return new wc(r,n)}function Eo(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=yS(t,n,e);return new at(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Eo(t,a)),s}}let r=vS(n.value),i=n.children.map(o=>Eo(t,o));return new at(r,i)}}function yS(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Eo(t,r,i);return Eo(t,r)})}function vS(t){return new _r(new Oe(t.url),new Oe(t.params),new Oe(t.queryParams),new Oe(t.fragment),new Oe(t.data),t.outlet,t.component,t)}var Io=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},m_="ngNavigationCancelingError";function Dc(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=vr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=y_(!1,ct.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function y_(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[m_]=!0,e.cancellationCode=n,e}function _S(t){return v_(t)&&vr(t.url)}function v_(t){return!!t&&t[m_]}var wS=(t,n,e,r)=>B(i=>(new qf(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),qf=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Df(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=si(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=si(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=si(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=si(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new jf(o.value.snapshot))}),n.children.length&&this.forwardEvent(new Lf(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Df(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Df(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Ec=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},li=class{component;route;constructor(n,e){this.component=n,this.route=e}};function CS(t,n,e){let r=t._root,i=n?n._root:null;return mo(r,i,e,[r.value])}function bS(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function gi(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!cg(t)?t:n.get(t):r}function mo(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=si(n);return t.children.forEach(s=>{DS(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>wo(a,e.getContext(s),i)),i}function DS(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let c=ES(s,o,o.routeConfig.runGuardsAndResolvers);c?i.canActivateChecks.push(new Ec(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?mo(t,n,a?a.children:null,r,i):mo(t,n,e,r,i),c&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new li(a.outlet.component,s))}else s&&wo(n,a,i),i.canActivateChecks.push(new Ec(r)),o.component?mo(t,null,a?a.children:null,r,i):mo(t,null,e,r,i);return i}function ES(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!yr(t.url,n.url);case"pathParamsOrQueryParamsChange":return!yr(t.url,n.url)||!zt(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Hf(t,n)||!zt(t.queryParams,n.queryParams);case"paramsChange":default:return!Hf(t,n)}}function wo(t,n,e){let r=si(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?wo(s,n.children.getContext(o),e):wo(s,null,e):wo(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new li(n.outlet.component,i)):e.canDeactivateChecks.push(new li(null,i)):e.canDeactivateChecks.push(new li(null,i))}function No(t){return typeof t=="function"}function IS(t){return typeof t=="boolean"}function MS(t){return t&&No(t.canLoad)}function xS(t){return t&&No(t.canActivate)}function SS(t){return t&&No(t.canActivateChild)}function TS(t){return t&&No(t.canDeactivate)}function AS(t){return t&&No(t.canMatch)}function __(t){return t instanceof Yt||t?.name==="EmptyError"}var uc=Symbol("INITIAL_VALUE");function pi(){return Ge(t=>Fi(t.map(n=>n.pipe(Kt(1),Tl(uc)))).pipe(B(n=>{for(let e of n)if(e!==!0){if(e===uc)return uc;if(e===!1||OS(e))return e}return!0}),qe(n=>n!==uc),Kt(1)))}function OS(t){return vr(t)||t instanceof Io}function NS(t,n){return pe(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?k(H(b({},e),{guardsResult:!0})):PS(s,r,i,t).pipe(pe(a=>a&&IS(a)?RS(r,o,t,n):k(a)),B(a=>H(b({},e),{guardsResult:a})))})}function PS(t,n,e,r){return te(t).pipe(pe(i=>jS(i.component,i.route,e,n,r)),ft(i=>i!==!0,!0))}function RS(t,n,e,r){return te(n).pipe(Qt(i=>Or(FS(i.route.parent,r),kS(i.route,r),VS(t,i.path,e),LS(t,i.route,e))),ft(i=>i!==!0,!0))}function kS(t,n){return t!==null&&n&&n(new Vf(t)),k(!0)}function FS(t,n){return t!==null&&n&&n(new Ff(t)),k(!0)}function LS(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return k(!0);let i=r.map(o=>Es(()=>{let s=Ao(n)??e,a=gi(o,s),c=xS(a)?a.canActivate(n,t):Qe(s,()=>a(n,t));return $n(c).pipe(ft())}));return k(i).pipe(pi())}function VS(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>bS(s)).filter(s=>s!==null).map(s=>Es(()=>{let a=s.guards.map(c=>{let l=Ao(s.node)??e,u=gi(c,l),d=SS(u)?u.canActivateChild(r,t):Qe(l,()=>u(r,t));return $n(d).pipe(ft())});return k(a).pipe(pi())}));return k(o).pipe(pi())}function jS(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return k(!0);let s=o.map(a=>{let c=Ao(n)??i,l=gi(a,c),u=TS(l)?l.canDeactivate(t,n,e,r):Qe(c,()=>l(t,n,e,r));return $n(u).pipe(ft())});return k(s).pipe(pi())}function BS(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return k(!0);let o=i.map(s=>{let a=gi(s,t),c=MS(a)?a.canLoad(n,e):Qe(t,()=>a(n,e));return $n(c)});return k(o).pipe(pi(),w_(r))}function w_(t){return ml(Me(n=>{if(typeof n!="boolean")throw Dc(t,n)}),B(n=>n===!0))}function US(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return k(!0);let o=i.map(s=>{let a=gi(s,t),c=AS(a)?a.canMatch(n,e):Qe(t,()=>a(n,e));return $n(c)});return k(o).pipe(pi(),w_(r))}var Mo=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},xo=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function oi(t){return Tr(new Mo(t))}function $S(t){return Tr(new S(4e3,!1))}function HS(t){return Tr(y_(!1,ct.GuardRejected))}var Gf=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return k(r);if(i.numberOfChildren>1||!i.children[$])return $S(`${n.redirectTo}`);i=i.children[$]}}applyRedirectCommands(n,e,r,i,o){if(typeof e!="string"){let a=e,{queryParams:c,fragment:l,routeConfig:u,url:d,outlet:f,params:h,data:C,title:E}=i,x=Qe(o,()=>a({params:h,data:C,queryParams:c,fragment:l,routeConfig:u,url:d,outlet:f,title:E}));if(x instanceof pn)throw new xo(x);e=x}let s=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,r);if(e[0]==="/")throw new xo(s);return s}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new pn(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,i)}),new ee(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new S(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}},Wf={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function zS(t,n,e,r,i){let o=C_(t,n,e);return o.matched?(r=dS(n,r),US(r,n,e,i).pipe(B(s=>s===!0?o:b({},Wf)))):k(o)}function C_(t,n,e){if(n.path==="**")return qS(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?b({},Wf):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||jx)(e,t,n);if(!i)return b({},Wf);let o={};Object.entries(i.posParams??{}).forEach(([a,c])=>{o[a]=c.path});let s=i.consumed.length>0?b(b({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function qS(t){return{matched:!0,parameters:t.length>0?e_(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Zv(t,n,e,r){return e.length>0&&ZS(t,e,r)?{segmentGroup:new ee(n,WS(r,new ee(e,t.children))),slicedSegments:[]}:e.length===0&&YS(t,e,r)?{segmentGroup:new ee(t.segments,GS(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new ee(t.segments,t.children),slicedSegments:e}}function GS(t,n,e,r){let i={};for(let o of e)if(Tc(t,n,o)&&!r[Ot(o)]){let s=new ee([],{});i[Ot(o)]=s}return b(b({},r),i)}function WS(t,n){let e={};e[$]=n;for(let r of t)if(r.path===""&&Ot(r)!==$){let i=new ee([],{});e[Ot(r)]=i}return e}function ZS(t,n,e){return e.some(r=>Tc(t,n,r)&&Ot(r)!==$)}function YS(t,n,e){return e.some(r=>Tc(t,n,r))}function Tc(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function QS(t,n,e){return n.length===0&&!t.children[e]}var Zf=class{};function KS(t,n,e,r,i,o,s="emptyOnly"){return new Yf(t,n,e,r,i,s,o).recognize()}var JS=31,Yf=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new Gf(this.urlSerializer,this.urlTree)}noMatchError(n){return new S(4002,`'${n.segmentGroup}'`)}recognize(){let n=Zv(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(B(({children:e,rootSnapshot:r})=>{let i=new at(r,e),o=new bc("",i),s=iS(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new ci([],Object.freeze({}),Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),$,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,$,e).pipe(B(r=>({children:r,rootSnapshot:e})),bt(r=>{if(r instanceof xo)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Mo?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(B(s=>s instanceof at?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return te(o).pipe(Qt(s=>{let a=r.children[s],c=fS(e,s);return this.processSegmentGroup(n,c,a,s,i)}),xl((s,a)=>(s.push(...a),s)),_n(null),Ml(),pe(s=>{if(s===null)return oi(r);let a=b_(s);return XS(a),k(a)}))}processSegment(n,e,r,i,o,s,a){return te(e).pipe(Qt(c=>this.processSegmentAgainstRoute(c._injector??n,e,c,r,i,o,s,a).pipe(bt(l=>{if(l instanceof Mo)return k(null);throw l}))),ft(c=>!!c),bt(c=>{if(__(c))return QS(r,i,o)?k(new Zf):oi(r);throw c}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,c){return Ot(r)!==s&&(s===$||!Tc(i,o,r))?oi(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,c):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,c):oi(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:f}=C_(e,i,o);if(!c)return oi(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>JS&&(this.allowRedirects=!1));let h=new ci(o,l,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Yv(i),Ot(i),i.component??i._loadedComponent??null,i,Qv(i)),C=Cc(h,a,this.paramsInheritanceStrategy);h.params=Object.freeze(C.params),h.data=Object.freeze(C.data);let E=this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,h,n);return this.applyRedirects.lineralizeSegments(i,E).pipe(pe(x=>this.processSegment(n,r,e,x.concat(f),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=zS(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(Ge(c=>c.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(Ge(({routes:l})=>{let u=r._loadedInjector??n,{parameters:d,consumedSegments:f,remainingSegments:h}=c,C=new ci(f,d,Object.freeze(b({},this.urlTree.queryParams)),this.urlTree.fragment,Yv(r),Ot(r),r.component??r._loadedComponent??null,r,Qv(r)),E=Cc(C,s,this.paramsInheritanceStrategy);C.params=Object.freeze(E.params),C.data=Object.freeze(E.data);let{segmentGroup:x,slicedSegments:R}=Zv(e,f,h,l);if(R.length===0&&x.hasChildren())return this.processChildren(u,l,x,C).pipe(B(J=>new at(C,J)));if(l.length===0&&R.length===0)return k(new at(C,[]));let X=Ot(r)===o;return this.processSegment(u,l,x,R,X?$:o,!0,C).pipe(B(J=>new at(C,J instanceof at?[J]:[])))}))):oi(e)))}getChildConfig(n,e,r){return e.children?k({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?k({routes:e._loadedRoutes,injector:e._loadedInjector}):BS(n,e,r,this.urlSerializer).pipe(pe(i=>i?this.configLoader.loadChildren(n,e).pipe(Me(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):HS(e))):k({routes:[],injector:n})}};function XS(t){t.sort((n,e)=>n.value.outlet===$?-1:e.value.outlet===$?1:n.value.outlet.localeCompare(e.value.outlet))}function eT(t){let n=t.value.routeConfig;return n&&n.path===""}function b_(t){let n=[],e=new Set;for(let r of t){if(!eT(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=b_(r.children);n.push(new at(r.value,i))}return n.filter(r=>!e.has(r))}function Yv(t){return t.data||{}}function Qv(t){return t.resolve||{}}function tT(t,n,e,r,i,o){return pe(s=>KS(t,n,e,r,s.extractedUrl,i,o).pipe(B(({state:a,tree:c})=>H(b({},s),{targetSnapshot:a,urlAfterRedirects:c}))))}function nT(t,n){return pe(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return k(e);let o=new Set(i.map(c=>c.route)),s=new Set;for(let c of o)if(!s.has(c))for(let l of D_(c))s.add(l);let a=0;return te(s).pipe(Qt(c=>o.has(c)?rT(c,r,t,n):(c.data=Cc(c,c.parent,t).resolve,k(void 0))),Me(()=>a++),Nr(1),pe(c=>a===s.size?k(e):Ne))})}function D_(t){let n=t.children.map(e=>D_(e)).flat();return[t,...n]}function rT(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!g_(i)&&(o[So]=i.title),iT(o,t,n,r).pipe(B(s=>(t._resolvedData=s,t.data=Cc(t,t.parent,e).resolve,null)))}function iT(t,n,e,r){let i=Mf(t);if(i.length===0)return k({});let o={};return te(i).pipe(pe(s=>oT(t[s],n,e,r).pipe(ft(),Me(a=>{if(a instanceof Io)throw Dc(new di,a);o[s]=a}))),Nr(1),Il(o),bt(s=>__(s)?Ne:Tr(s)))}function oT(t,n,e,r){let i=Ao(n)??r,o=gi(t,i),s=o.resolve?o.resolve(n,e):Qe(i,()=>o(n,e));return $n(s)}function Ef(t){return Ge(n=>{let e=t(n);return e?te(e).pipe(B(()=>n)):k(n)})}var E_=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===$);return r}getResolvedTitleForRoute(e){return e.data[So]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(sT),providedIn:"root"})}return t})(),sT=(()=>{class t extends E_{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(_(cc))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Po=new M("",{providedIn:"root",factory:()=>({})}),aT=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(r,i){r&1&&ke(0,"router-outlet")},dependencies:[gS],encapsulation:2})}return t})();function Jf(t){let n=t.children&&t.children.map(Jf),e=n?H(b({},t),{children:n}):b({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==$&&(e.component=aT),e}var Ic=new M(""),Xf=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=w(Ja);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return k(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let r=$n(e.loadComponent()).pipe(B(I_),Me(o=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=o}),wn(()=>{this.componentLoaders.delete(e)})),i=new xr(r,()=>new re).pipe(Mr());return this.componentLoaders.set(e,i),i}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return k({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=cT(r,this.compiler,e,this.onLoadEndListener).pipe(wn(()=>{this.childrenLoaders.delete(r)})),s=new xr(o,()=>new re).pipe(Mr());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function cT(t,n,e,r){return $n(t.loadChildren()).pipe(B(I_),pe(i=>i instanceof Gi||Array.isArray(i)?k(i):te(n.compileModuleAsync(i))),B(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Ic,[],{optional:!0,self:!0}).flat()),{routes:s.map(Jf),injector:o}}))}function lT(t){return t&&typeof t=="object"&&"default"in t}function I_(t){return lT(t)?t.default:t}var eh=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(uT),providedIn:"root"})}return t})(),uT=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),M_=new M(""),x_=new M("");function dT(t,n,e){let r=t.get(x_),i=t.get(Se);return t.get(ne).runOutsideAngular(()=>{if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(l=>setTimeout(l));let o,s=new Promise(l=>{o=l}),a=i.startViewTransition(()=>(o(),fT(t))),{onViewTransitionCreated:c}=r;return c&&Qe(t,()=>c({transition:a,from:n,to:e})),s})}function fT(t){return new Promise(n=>{wd({read:()=>setTimeout(n)},{injector:t})})}var S_=new M(""),th=(()=>{class t{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new re;transitionAbortSubject=new re;configLoader=w(Xf);environmentInjector=w(je);urlSerializer=w(To);rootContexts=w(Oo);location=w(ri);inputBindingEnabled=w(Sc,{optional:!0})!==null;titleStrategy=w(E_);options=w(Po,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=w(eh);createViewTransition=w(M_,{optional:!0});navigationErrorHandler=w(S_,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>k(void 0);rootComponentType=null;constructor(){let e=i=>this.events.next(new Rf(i)),r=i=>this.events.next(new kf(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;this.transitions?.next(H(b(b({},this.transitions.value),e),{id:r}))}setupNavigations(e,r,i){return this.transitions=new Oe({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:()=>{},reject:()=>{},promise:Promise.resolve(!0),source:_o,restoredState:null,currentSnapshot:i.snapshot,targetSnapshot:null,currentRouterState:i,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(qe(o=>o.id!==0),B(o=>H(b({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Ge(o=>{let s=!1,a=!1;return k(o).pipe(Ge(c=>{if(this.navigationId>o.id)return this.cancelNavigationTransition(o,"",ct.SupersededByNewNavigation),Ne;this.currentTransition=o,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,targetBrowserUrl:typeof c.extras.browserUrl=="string"?this.urlSerializer.parse(c.extras.browserUrl):c.extras.browserUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?H(b({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=c.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&u!=="reload"){let d="";return this.events.next(new Un(c.id,this.urlSerializer.serialize(c.rawUrl),d,mc.IgnoredSameUrlNavigation)),c.resolve(!1),Ne}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return k(c).pipe(Ge(d=>{let f=this.transitions?.getValue();return this.events.next(new fi(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions?.getValue()?Ne:Promise.resolve(d)}),tT(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Me(d=>{o.targetSnapshot=d.targetSnapshot,o.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation=H(b({},this.currentNavigation),{finalUrl:d.urlAfterRedirects});let f=new yc(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){let{id:d,extractedUrl:f,source:h,restoredState:C,extras:E}=c,x=new fi(d,this.urlSerializer.serialize(f),h,C);this.events.next(x);let R=h_(this.rootComponentType).snapshot;return this.currentTransition=o=H(b({},c),{targetSnapshot:R,urlAfterRedirects:f,extras:H(b({},E),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=f,k(o)}else{let d="";return this.events.next(new Un(c.id,this.urlSerializer.serialize(c.extractedUrl),d,mc.IgnoredByUrlHandlingStrategy)),c.resolve(!1),Ne}}),Me(c=>{let l=new Af(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),B(c=>(this.currentTransition=o=H(b({},c),{guards:CS(c.targetSnapshot,c.currentSnapshot,this.rootContexts)}),o)),NS(this.environmentInjector,c=>this.events.next(c)),Me(c=>{if(o.guardsResult=c.guardsResult,c.guardsResult&&typeof c.guardsResult!="boolean")throw Dc(this.urlSerializer,c.guardsResult);let l=new Of(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),qe(c=>c.guardsResult?!0:(this.cancelNavigationTransition(c,"",ct.GuardRejected),!1)),Ef(c=>{if(c.guards.canActivateChecks.length)return k(c).pipe(Me(l=>{let u=new Nf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),Ge(l=>{let u=!1;return k(l).pipe(nT(this.paramsInheritanceStrategy,this.environmentInjector),Me({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",ct.NoDataFromResolver)}}))}),Me(l=>{let u=new Pf(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),Ef(c=>{let l=u=>{let d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(Me(f=>{u.component=f}),B(()=>{})));for(let f of u.children)d.push(...l(f));return d};return Fi(l(c.targetSnapshot.root)).pipe(_n(null),Kt(1))}),Ef(()=>this.afterPreactivation()),Ge(()=>{let{currentSnapshot:c,targetSnapshot:l}=o,u=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return u?te(u).pipe(B(()=>o)):k(o)}),B(c=>{let l=mS(e.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=o=H(b({},c),{targetRouterState:l}),this.currentNavigation.targetRouterState=l,o}),Me(()=>{this.events.next(new Do)}),wS(this.rootContexts,e.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Kt(1),Me({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Nt(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),Al(this.transitionAbortSubject.pipe(Me(c=>{throw c}))),wn(()=>{!s&&!a&&this.cancelNavigationTransition(o,"",ct.SupersededByNewNavigation),this.currentTransition?.id===o.id&&(this.currentNavigation=null,this.currentTransition=null)}),bt(c=>{if(a=!0,v_(c))this.events.next(new hn(o.id,this.urlSerializer.serialize(o.extractedUrl),c.message,c.cancellationCode)),_S(c)?this.events.next(new hi(c.url,c.navigationBehaviorOptions)):o.resolve(!1);else{let l=new bo(o.id,this.urlSerializer.serialize(o.extractedUrl),c,o.targetSnapshot??void 0);try{let u=Qe(this.environmentInjector,()=>this.navigationErrorHandler?.(l));if(u instanceof Io){let{message:d,cancellationCode:f}=Dc(this.urlSerializer,u);this.events.next(new hn(o.id,this.urlSerializer.serialize(o.extractedUrl),d,f)),this.events.next(new hi(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(l),c}catch(u){this.options.resolveNavigationPromiseOnError?o.resolve(!1):o.reject(u)}}return Ne}))}))}cancelNavigationTransition(e,r,i){let o=new hn(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==r?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hT(t){return t!==_o}var pT=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(gT),providedIn:"root"})}return t})(),Qf=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},gT=(()=>{class t extends Qf{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Kr(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),T_=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:()=>w(mT),providedIn:"root"})}return t})(),mT=(()=>{class t extends T_{location=w(ri);urlSerializer=w(To);options=w(Po,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";urlHandlingStrategy=w(eh);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new pn;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}routerState=h_(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&e(r.url,r.state)})}handleRouterEvent(e,r){if(e instanceof fi)this.stateMemento=this.createStateMemento();else if(e instanceof Un)this.rawUrlTree=r.initialUrl;else if(e instanceof yc){if(this.urlUpdateStrategy==="eager"&&!r.extras.skipLocationChange){let i=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(r.targetBrowserUrl??i,r)}}else e instanceof Do?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(r.targetBrowserUrl??this.rawUrlTree,r)):e instanceof hn&&(e.code===ct.GuardRejected||e.code===ct.NoDataFromResolver)?this.restoreHistory(r):e instanceof bo?this.restoreHistory(r,!0):e instanceof Nt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let i=e instanceof pn?this.urlSerializer.serialize(e):e;if(this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl){let o=this.browserPageId,s=b(b({},r.extras.state),this.generateNgRouterState(r.id,o));this.location.replaceState(i,"",s)}else{let o=b(b({},r.extras.state),this.generateNgRouterState(r.id,this.browserPageId+1));this.location.go(i,"",o)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.currentUrlTree===e.finalUrl&&o===0&&(this.resetState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Kr(t)))(i||t)}})();static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),yo=function(t){return t[t.COMPLETE=0]="COMPLETE",t[t.FAILED=1]="FAILED",t[t.REDIRECTING=2]="REDIRECTING",t}(yo||{});function A_(t,n){t.events.pipe(qe(e=>e instanceof Nt||e instanceof hn||e instanceof bo||e instanceof Un),B(e=>e instanceof Nt||e instanceof Un?yo.COMPLETE:(e instanceof hn?e.code===ct.Redirect||e.code===ct.SupersededByNewNavigation:!1)?yo.REDIRECTING:yo.FAILED),qe(e=>e!==yo.REDIRECTING),Kt(1)).subscribe(()=>{n()})}var yT={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vT={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},lt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=w(za);stateManager=w(T_);options=w(Po,{optional:!0})||{};pendingTasks=w(on);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=w(th);urlSerializer=w(To);location=w(ri);urlHandlingStrategy=w(eh);_events=new re;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=w(pT);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=w(Ic,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!w(Sc,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new _e;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=this.navigationTransitions.currentNavigation;if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof hn&&r.code!==ct.Redirect&&r.code!==ct.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Nt)this.navigated=!0;else if(r instanceof hi){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),c=b({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||hT(i.source)},s);this.scheduleNavigation(a,_o,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}wT(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),_o,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(e,"popstate",r)},0)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let c=b({},i);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(o.state=c)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Jf),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=b(b({},this.currentUrlTree.queryParams),o);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=o||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let f=i?i.snapshot:this.routerState.snapshot.root;d=l_(f)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root}return u_(d,e,u,l??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=vr(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,_o,null,r)}navigate(e,r={skipLocationChange:!1}){return _T(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=b({},yT):r===!1?i=b({},vT):i=r,vr(e))return Hv(this.currentUrlTree,e,i);let o=this.parseUrl(e);return Hv(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,c=f});let u=this.pendingTasks.add();return A_(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _T(t){for(let n=0;n{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new re;constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area",this.isAnchorElement?this.subscription=e.events.subscribe(l=>{l instanceof Nt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(vr(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let r=this.href===null?null:Pm(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:vr(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(I(lt),I(_r),dd("tabindex"),I(St),I(Ee),I(dn))};static \u0275dir=oe({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(r,i){r&1&&O("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&dr("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",pr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",pr],replaceUrl:[2,"replaceUrl","replaceUrl",pr],routerLink:"routerLink"},features:[Vd,yt]})}return t})(),bV=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new G;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Nt&&this.update()})}ngAfterContentInit(){k(this.links.changes,k(null)).pipe(kt()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=te(e).pipe(kt()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=CT(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(I(lt),I(Ee),I(St),I(Fn),I(Mc,8))};static \u0275dir=oe({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&fr(o,Mc,5),r&2){let s;it(s=ot())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[yt]})}return t})();function CT(t){return!!t.paths}var xc=class{},DV=(()=>{class t{preload(e,r){return r().pipe(bt(()=>k(null)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var bT=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o,s){this.router=e,this.injector=i,this.preloadingStrategy=o,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(qe(e=>e instanceof Nt),Qt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=Ha(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return te(i).pipe(kt())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=k(null);let o=i.pipe(pe(s=>s===null?k(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(r);return te([o,s]).pipe(kt())}else return o})}static \u0275fac=function(r){return new(r||t)(_(lt),_(Ja),_(je),_(xc),_(Xf))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),O_=new M(""),DT=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof fi?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Nt?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Un&&e.code===mc.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof vc&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new vc(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Km()};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})();function ET(t){return t.routerState.root}function Ro(t,n){return{\u0275kind:t,\u0275providers:n}}function IT(){let t=w(xe);return n=>{let e=t.get(rt);if(n!==e.components[0])return;let r=t.get(lt),i=t.get(N_);t.get(nh)===1&&r.initialNavigation(),t.get(P_,null,q.Optional)?.setUpPreloading(),t.get(O_,null,q.Optional)?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var N_=new M("",{factory:()=>new re}),nh=new M("",{providedIn:"root",factory:()=>1});function MT(){return Ro(2,[{provide:nh,useValue:0},{provide:Wa,multi:!0,deps:[xe],useFactory:n=>{let e=n.get(dv,Promise.resolve());return()=>e.then(()=>new Promise(r=>{let i=n.get(lt),o=n.get(N_);A_(i,()=>{r(!0)}),n.get(th).afterPreactivation=()=>(r(!0),o.closed?k(void 0):o),i.initialNavigation()}))}}])}function xT(){return Ro(3,[{provide:Wa,multi:!0,useFactory:()=>{let n=w(lt);return()=>{n.setUpLocationChangeListener()}}},{provide:nh,useValue:2}])}var P_=new M("");function ST(t){return Ro(0,[{provide:P_,useExisting:bT},{provide:xc,useExisting:t}])}function TT(){return Ro(8,[Wv,{provide:Sc,useExisting:Wv}])}function AT(t){let n=[{provide:M_,useValue:dT},{provide:x_,useValue:b({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ro(9,n)}var Kv=new M("ROUTER_FORROOT_GUARD"),OT=[ri,{provide:To,useClass:di},lt,Oo,{provide:_r,useFactory:ET,deps:[lt]},Xf,[]],R_=(()=>{class t{constructor(e){}static forRoot(e,r){return{ngModule:t,providers:[OT,[],{provide:Ic,multi:!0,useValue:e},{provide:Kv,useFactory:kT,deps:[[lt,new Qi,new wa]]},r?.errorHandler?{provide:S_,useValue:r.errorHandler}:[],{provide:Po,useValue:r||{}},r?.useHash?PT():RT(),NT(),r?.preloadingStrategy?ST(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?FT(r):[],r?.bindToComponentInputs?TT().\u0275providers:[],r?.enableViewTransitions?AT().\u0275providers:[],LT()]}}static forChild(e){return{ngModule:t,providers:[{provide:Ic,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)(_(Kv,8))};static \u0275mod=ue({type:t});static \u0275inj=le({})}return t})();function NT(){return{provide:O_,useFactory:()=>{let t=w(gv),n=w(ne),e=w(Po),r=w(th),i=w(To);return e.scrollOffset&&t.setOffset(e.scrollOffset),new DT(i,r,t,n,e)}}}function PT(){return{provide:dn,useClass:hv}}function RT(){return{provide:dn,useClass:nf}}function kT(t){return"guarded"}function FT(t){return[t.initialNavigation==="disabled"?xT().\u0275providers:[],t.initialNavigation==="enabledBlocking"?MT().\u0275providers:[]]}var Jv=new M("");function LT(){return[{provide:Jv,useFactory:IT},{provide:Za,multi:!0,useExisting:Jv}]}var mi={roles:[],production:!0,appId:"test",url:"https://webart.work"};var H_=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,r){this._renderer=e,this._elementRef=r}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(r){return new(r||t)(I(St),I(Ee))};static \u0275dir=oe({type:t})}return t})(),ah=(()=>{class t extends H_{static \u0275fac=(()=>{let e;return function(i){return(e||(e=Kr(t)))(i||t)}})();static \u0275dir=oe({type:t,features:[Rn]})}return t})(),Rc=new M(""),VT={provide:Rc,useExisting:sr(()=>ch),multi:!0},ch=(()=>{class t extends ah{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Kr(t)))(i||t)}})();static \u0275dir=oe({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,i){r&1&&O("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},standalone:!1,features:[oo([VT]),Rn]})}return t})(),jT={provide:Rc,useExisting:sr(()=>Hn),multi:!0};function BT(){let t=At()?At().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var UT=new M(""),Hn=(()=>{class t extends H_{_compositionMode;_composing=!1;constructor(e,r,i){super(e,r),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!BT())}writeValue(e){let r=e??"";this.setProperty("value",r)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(r){return new(r||t)(I(St),I(Ee),I(UT,8))};static \u0275dir=oe({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,i){r&1&&O("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[oo([jT]),Rn]})}return t})();var $T=new M(""),HT=new M("");function z_(t){return t!=null}function q_(t){return ur(t)?te(t):t}function G_(t){let n={};return t.forEach(e=>{n=e!=null?b(b({},n),e):n}),Object.keys(n).length===0?null:n}function W_(t,n){return n.map(e=>e(t))}function zT(t){return!t.validate}function Z_(t){return t.map(n=>zT(n)?n:e=>n.validate(e))}function qT(t){if(!t)return null;let n=t.filter(z_);return n.length==0?null:function(e){return G_(W_(e,n))}}function Y_(t){return t!=null?qT(Z_(t)):null}function GT(t){if(!t)return null;let n=t.filter(z_);return n.length==0?null:function(e){let r=W_(e,n).map(q_);return Dl(r).pipe(B(G_))}}function Q_(t){return t!=null?GT(Z_(t)):null}function F_(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function WT(t){return t._rawValidators}function ZT(t){return t._rawAsyncValidators}function rh(t){return t?Array.isArray(t)?t:[t]:[]}function Oc(t,n){return Array.isArray(t)?t.includes(n):t===n}function L_(t,n){let e=rh(n);return rh(t).forEach(i=>{Oc(e,i)||e.push(i)}),e}function V_(t,n){return rh(n).filter(e=>!Oc(t,e))}var Nc=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Y_(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Q_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},ih=class extends Nc{name;get formDirective(){return null}get path(){return null}},_i=class extends Nc{_parent=null;name=null;valueAccessor=null},oh=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},YT={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},UV=H(b({},YT),{"[class.ng-submitted]":"isSubmitted"}),Ci=(()=>{class t extends oh{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(I(_i,2))};static \u0275dir=oe({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,i){r&2&&he("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[Rn]})}return t})();var ko="VALID",Ac="INVALID",yi="PENDING",Fo="DISABLED",wi=class{},Pc=class extends wi{value;source;constructor(n,e){super(),this.value=n,this.source=e}},Lo=class extends wi{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},Vo=class extends wi{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},vi=class extends wi{status;source;constructor(n,e){super(),this.status=n,this.source=e}};function QT(t){return(kc(t)?t.validators:t)||null}function KT(t){return Array.isArray(t)?Y_(t):t||null}function JT(t,n){return(kc(n)?n.asyncValidators:t)||null}function XT(t){return Array.isArray(t)?Q_(t):t||null}function kc(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}var sh=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Ln(this.statusReactive)}set status(n){Ln(()=>this.statusReactive.set(n))}_status=Xa(()=>this.statusReactive());statusReactive=$a(void 0);get valid(){return this.status===ko}get invalid(){return this.status===Ac}get pending(){return this.status==yi}get disabled(){return this.status===Fo}get enabled(){return this.status!==Fo}errors;get pristine(){return Ln(this.pristineReactive)}set pristine(n){Ln(()=>this.pristineReactive.set(n))}_pristine=Xa(()=>this.pristineReactive());pristineReactive=$a(!0);get dirty(){return!this.pristine}get touched(){return Ln(this.touchedReactive)}set touched(n){Ln(()=>this.touchedReactive.set(n))}_touched=Xa(()=>this.touchedReactive());touchedReactive=$a(!1);get untouched(){return!this.touched}_events=new re;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(L_(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(L_(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(V_(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(V_(n,this._rawAsyncValidators))}hasValidator(n){return Oc(this._rawValidators,n)}hasAsyncValidator(n){return Oc(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(H(b({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Vo(!0,r))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,r),e&&n.emitEvent!==!1&&this._events.next(new Vo(!1,r))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(H(b({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new Lo(!1,r))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,r),e&&n.emitEvent!==!1&&this._events.next(new Lo(!0,r))}markAsPending(n={}){this.status=yi;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new vi(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(H(b({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Fo,this.errors=null,this._forEachChild(i=>{i.disable(H(b({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Pc(this.value,r)),this._events.next(new vi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(H(b({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=ko,this._forEachChild(r=>{r.enable(H(b({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(H(b({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ko||this.status===yi)&&this._runAsyncValidator(r,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Pc(this.value,e)),this._events.next(new vi(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(H(b({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Fo:ko}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=yi,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let r=q_(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((r,i)=>r&&r._find(i),this)}getError(n,e){let r=e?this.get(e):this;return r&&r.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new vi(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,r)}_initObservables(){this.valueChanges=new G,this.statusChanges=new G}_calculateStatus(){return this._allControlsDisabled()?Fo:this.errors?Ac:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(yi)?yi:this._anyControlsHaveStatus(Ac)?Ac:ko}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let r=!this._anyControlsDirty(),i=this.pristine!==r;this.pristine=r,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),i&&this._events.next(new Lo(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new Vo(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){kc(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=KT(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=XT(this._rawAsyncValidators)}};var lh=new M("CallSetDisabledState",{providedIn:"root",factory:()=>Fc}),Fc="always";function e1(t,n){return[...n.path,t]}function t1(t,n,e=Fc){r1(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),i1(t,n),s1(t,n),o1(t,n),n1(t,n)}function j_(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function n1(t,n){if(n.valueAccessor.setDisabledState){let e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function r1(t,n){let e=WT(t);n.validator!==null?t.setValidators(F_(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let r=ZT(t);n.asyncValidator!==null?t.setAsyncValidators(F_(r,n.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let i=()=>t.updateValueAndValidity();j_(n._rawValidators,i),j_(n._rawAsyncValidators,i)}function i1(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&K_(t,n)})}function o1(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&K_(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function K_(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function s1(t,n){let e=(r,i)=>{n.valueAccessor.writeValue(r),i&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function a1(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function c1(t){return Object.getPrototypeOf(t.constructor)===ah}function l1(t,n){if(!n)return null;Array.isArray(n);let e,r,i;return n.forEach(o=>{o.constructor===Hn?e=o:c1(o)?r=o:i=o}),i||r||e||null}function B_(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function U_(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var u1=class extends sh{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,r){super(QT(e),JT(r,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kc(e)&&(e.nonNullable||e.initialValueIsDefault)&&(U_(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){B_(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){B_(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){U_(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var d1={provide:_i,useExisting:sr(()=>wr)},$_=Promise.resolve(),wr=(()=>{class t extends _i{_changeDetectorRef;callSetDisabledState;control=new u1;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new G;constructor(e,r,i,o,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(r),this._setAsyncValidators(i),this.valueAccessor=l1(this,o)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),a1(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){t1(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){$_.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let r=e.isDisabled.currentValue,i=r!==0&&pr(r);$_.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?e1(e,this._parent):[e]}static \u0275fac=function(r){return new(r||t)(I(ih,9),I($T,10),I(HT,10),I(Rc,10),I(Fn,8),I(lh,8))};static \u0275dir=oe({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[oo([d1]),Rn,yt]})}return t})();var f1={provide:Rc,useExisting:sr(()=>uh),multi:!0};var h1=(()=>{class t{_accessors=[];add(e,r){this._accessors.push([e,r])}remove(e){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===e){this._accessors.splice(r,1);return}}select(e){this._accessors.forEach(r=>{this._isSameGroup(r,e)&&r[1]!==e&&r[1].fireUncheck(e.value)})}_isSameGroup(e,r){return e[0].control?e[0]._parent===r._control._parent&&e[1].name===r.name:!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),uh=(()=>{class t extends ah{_registry;_injector;_state;_control;_fn;setDisabledStateFired=!1;onChange=()=>{};name;formControlName;value;callSetDisabledState=w(lh,{optional:!0})??Fc;constructor(e,r,i,o){super(e,r),this._registry=i,this._injector=o}ngOnInit(){this._control=this._injector.get(_i),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(e){this._state=e===this.value,this.setProperty("checked",this._state)}registerOnChange(e){this._fn=e,this.onChange=()=>{e(this.value),this._registry.select(this)}}setDisabledState(e){(this.setDisabledStateFired||e||this.callSetDisabledState==="whenDisabledForLegacyCode")&&this.setProperty("disabled",e),this.setDisabledStateFired=!0}fireUncheck(e){this.writeValue(e)}_checkName(){this.name&&this.formControlName&&(this.name,this.formControlName),!this.name&&this.formControlName&&(this.name=this.formControlName)}static \u0275fac=function(r){return new(r||t)(I(St),I(Ee),I(h1),I(xe))};static \u0275dir=oe({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(r,i){r&1&&O("change",function(){return i.onChange()})("blur",function(){return i.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},standalone:!1,features:[oo([f1]),Rn]})}return t})();var p1=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({})}return t})();var qt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:lh,useValue:e.callSetDisabledState??Fc}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({imports:[p1]})}return t})();var Pt=Object.create(null);Pt.open="0";Pt.close="1";Pt.ping="2";Pt.pong="3";Pt.message="4";Pt.upgrade="5";Pt.noop="6";var jo=Object.create(null);Object.keys(Pt).forEach(t=>{jo[Pt[t]]=t});var Bo={type:"error",data:"parser error"};var e0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",t0=typeof ArrayBuffer=="function",n0=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,Uo=({type:t,data:n},e,r)=>e0&&n instanceof Blob?e?r(n):J_(n,r):t0&&(n instanceof ArrayBuffer||n0(n))?e?r(n):J_(new Blob([n]),r):r(Pt[t]+(n||"")),J_=(t,n)=>{let e=new FileReader;return e.onload=function(){let r=e.result.split(",")[1];n("b"+(r||""))},e.readAsDataURL(t)};function X_(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}var fh;function r0(t,n){if(e0&&t.data instanceof Blob)return t.data.arrayBuffer().then(X_).then(n);if(t0&&(t.data instanceof ArrayBuffer||n0(t.data)))return n(X_(t.data));Uo(t,!1,e=>{fh||(fh=new TextEncoder),n(fh.encode(e))})}var i0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$o=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let t=0;t{let n=t.length*.75,e=t.length,r,i=0,o,s,a,c;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);let l=new ArrayBuffer(n),u=new Uint8Array(l);for(r=0;r>4,u[i++]=(s&15)<<4|a>>2,u[i++]=(a&3)<<6|c&63;return l};var g1=typeof ArrayBuffer=="function",Ho=(t,n)=>{if(typeof t!="string")return{type:"message",data:s0(t,n)};let e=t.charAt(0);return e==="b"?{type:"message",data:m1(t.substring(1),n)}:jo[e]?t.length>1?{type:jo[e],data:t.substring(1)}:{type:jo[e]}:Bo},m1=(t,n)=>{if(g1){let e=o0(t);return s0(e,n)}else return{base64:!0,data:t}},s0=(t,n)=>{switch(n){case"blob":return t instanceof Blob?t:new Blob([t]);case"arraybuffer":default:return t instanceof ArrayBuffer?t:t.buffer}};var a0="",c0=(t,n)=>{let e=t.length,r=new Array(e),i=0;t.forEach((o,s)=>{Uo(o,!1,a=>{r[s]=a,++i===e&&n(r.join(a0))})})},l0=(t,n)=>{let e=t.split(a0),r=[];for(let i=0;i{let r=e.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);let o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}t.data&&typeof t.data!="string"&&(i[0]|=128),n.enqueue(i),n.enqueue(e)})}})}var hh;function Lc(t){return t.reduce((n,e)=>n+e.length,0)}function Vc(t,n){if(t[0].length===n)return t.shift();let e=new Uint8Array(n),r=0;for(let i=0;iMath.pow(2,21)-1){a.enqueue(Bo);break}i=u*Math.pow(2,32)+l.getUint32(4),r=3}else{if(Lc(e)t){a.enqueue(Bo);break}}}})}var ph=4;function ce(t){if(t)return y1(t)}function y1(t){for(var n in ce.prototype)t[n]=ce.prototype[n];return t}ce.prototype.on=ce.prototype.addEventListener=function(t,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(n),this};ce.prototype.once=function(t,n){function e(){this.off(t,e),n.apply(this,arguments)}return e.fn=n,this.on(t,e),this};ce.prototype.off=ce.prototype.removeListener=ce.prototype.removeAllListeners=ce.prototype.removeEventListener=function(t,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var e=this._callbacks["$"+t];if(!e)return this;if(arguments.length==1)return delete this._callbacks["$"+t],this;for(var r,i=0;iPromise.resolve().then(n):(n,e)=>e(n,0),$e=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),f0="arraybuffer";function jc(t,...n){return n.reduce((e,r)=>(t.hasOwnProperty(r)&&(e[r]=t[r]),e),{})}var v1=$e.setTimeout,_1=$e.clearTimeout;function mn(t,n){n.useNativeTimers?(t.setTimeoutFn=v1.bind($e),t.clearTimeoutFn=_1.bind($e)):(t.setTimeoutFn=$e.setTimeout.bind($e),t.clearTimeoutFn=$e.clearTimeout.bind($e))}var w1=1.33;function h0(t){return typeof t=="string"?C1(t):Math.ceil((t.byteLength||t.size)*w1)}function C1(t){let n=0,e=0;for(let r=0,i=t.length;r=57344?e+=3:(r++,e+=4);return e}function Bc(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function p0(t){let n="";for(let e in t)t.hasOwnProperty(e)&&(n.length&&(n+="&"),n+=encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n}function g0(t){let n={},e=t.split("&");for(let r=0,i=e.length;r{this.readyState="paused",n()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||e()})),this.writable||(r++,this.once("drain",function(){--r||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(n){let e=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};l0(n,this.socket.binaryType).forEach(e),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let n=()=>{this.write([{type:"close"}])};this.readyState==="open"?n():this.once("open",n)}write(n){this.writable=!1,c0(n,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let n=this.opts.secure?"https":"http",e=this.query||{};return this.opts.timestampRequests!==!1&&(e[this.opts.timestampParam]=Bc()),!this.supportsBinary&&!e.sid&&(e.b64=1),this.createUri(n,e)}};var m0=!1;try{m0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var y0=m0;function b1(){}var gh=class extends zo{constructor(n){if(super(n),typeof location<"u"){let e=location.protocol==="https:",r=location.port;r||(r=e?"443":"80"),this.xd=typeof location<"u"&&n.hostname!==location.hostname||r!==n.port}}doWrite(n,e){let r=this.request({method:"POST",data:n});r.on("success",e),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){let n=this.request();n.on("data",this.onData.bind(this)),n.on("error",(e,r)=>{this.onError("xhr poll error",e,r)}),this.pollXhr=n}},$c=(()=>{class t extends ce{constructor(e,r,i){super(),this.createRequest=e,mn(this,i),this._opts=i,this._method=i.method||"GET",this._uri=r,this._data=i.data!==void 0?i.data:null,this._create()}_create(){var e;let r=jc(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let i=this._xhr=this.createRequest(r);try{i.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){i.setDisableHeaderCheck&&i.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&i.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{i.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{i.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(i),"withCredentials"in i&&(i.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(i.timeout=this._opts.requestTimeout),i.onreadystatechange=()=>{var o;i.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(i.getResponseHeader("set-cookie"))),i.readyState===4&&(i.status===200||i.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof i.status=="number"?i.status:0)},0))},i.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=t.requestsCount++,t.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=b1,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete t.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}return t.requestsCount=0,t.requests={},t})();if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",v0);else if(typeof addEventListener=="function"){let t="onpagehide"in $e?"pagehide":"unload";addEventListener(t,v0,!1)}}function v0(){for(let t in $c.requests)$c.requests.hasOwnProperty(t)&&$c.requests[t].abort()}var D1=function(){let t=_0({xdomain:!1});return t&&t.responseType!==null}(),zn=class extends gh{constructor(n){super(n);let e=n&&n.forceBase64;this.supportsBinary=D1&&!e}request(n={}){return Object.assign(n,{xd:this.xd},this.opts),new $c(_0,this.uri(),n)}};function _0(t){let n=t.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!n||y0))return new XMLHttpRequest}catch{}if(!n)try{return new $e[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var w0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",yh=class extends yn{get name(){return"websocket"}doOpen(){let n=this.uri(),e=this.opts.protocols,r=w0?{}:jc(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(n,e,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=n=>this.onClose({description:"websocket connection closed",context:n}),this.ws.onmessage=n=>this.onData(n.data),this.ws.onerror=n=>this.onError("websocket error",n)}write(n){this.writable=!1;for(let e=0;e{try{this.doWrite(r,o)}catch{}i&&gn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let n=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=Bc()),this.supportsBinary||(e.b64=1),this.createUri(n,e)}},mh=$e.WebSocket||$e.MozWebSocket,qn=class extends yh{createSocket(n,e,r){return w0?new mh(n,e,r):e?new mh(n,e):new mh(n)}doWrite(n,e){this.ws.send(e)}};var bi=class extends yn{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(n){return this.emitReserved("error",n)}this._transport.closed.then(()=>{this.onClose()}).catch(n=>{this.onError("webtransport error",n)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(n=>{let e=d0(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=n.readable.pipeThrough(e).getReader(),i=u0();i.readable.pipeTo(n.writable),this._writer=i.writable.getWriter();let o=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),o())}).catch(a=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(n){this.writable=!1;for(let e=0;e{i&&gn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var n;(n=this._transport)===null||n===void 0||n.close()}};var vh={websocket:qn,webtransport:bi,polling:zn};var E1=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,I1=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Di(t){if(t.length>8e3)throw"URI too long";let n=t,e=t.indexOf("["),r=t.indexOf("]");e!=-1&&r!=-1&&(t=t.substring(0,e)+t.substring(e,r).replace(/:/g,";")+t.substring(r,t.length));let i=E1.exec(t||""),o={},s=14;for(;s--;)o[I1[s]]=i[s]||"";return e!=-1&&r!=-1&&(o.source=n,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=M1(o,o.path),o.queryKey=x1(o,o.query),o}function M1(t,n){let e=/\/{2,9}/g,r=n.replace(e,"/").split("/");return(n.slice(0,1)=="/"||n.length===0)&&r.splice(0,1),n.slice(-1)=="/"&&r.splice(r.length-1,1),r}function x1(t,n){let e={};return n.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(e[i]=o)}),e}var _h=typeof addEventListener=="function"&&typeof removeEventListener=="function",Hc=[];_h&&addEventListener("offline",()=>{Hc.forEach(t=>t())},!1);var zc=(()=>{class t extends ce{constructor(e,r){if(super(),this.binaryType=f0,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(r=e,e=null),e){let i=Di(e);r.hostname=i.host,r.secure=i.protocol==="https"||i.protocol==="wss",r.port=i.port,i.query&&(r.query=i.query)}else r.host&&(r.hostname=Di(r.host).host);mn(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(i=>{let o=i.prototype.name;this.transports.push(o),this._transportsByName[o]=i}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=g0(this.opts.query)),_h&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Hc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let r=Object.assign({},this.opts.query);r.EIO=ph,r.transport=e,this.id&&(r.sid=this.id);let i=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](i)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(e);r.open(),this.setTransport(r)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=e.data,this._onError(r);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let i=0;i0&&r>this._maxPayload)return this.writeBuffer.slice(0,i);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,gn(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,r,i){return this._sendPacket("message",e,r,i),this}send(e,r,i){return this._sendPacket("message",e,r,i),this}_sendPacket(e,r,i,o){if(typeof r=="function"&&(o=r,r=void 0),typeof i=="function"&&(o=i,i=null),this.readyState==="closing"||this.readyState==="closed")return;i=i||{},i.compress=i.compress!==!1;let s={type:e,data:r,options:i};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),e()},i=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?i():e()}):this.upgrading?i():e()),this}_onError(e){if(t.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),_h&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let i=Hc.indexOf(this._offlineEventListener);i!==-1&&Hc.splice(i,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,r),this.writeBuffer=[],this._prevBufferLen=0}}}return t.protocol=ph,t})(),qc=class extends zc{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let n=0;n{r||(e.send([{type:"ping",data:"probe"}]),e.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;zc.priorWebsocketSuccess=e.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(u(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{let f=new Error("probe error");f.transport=e.name,this.emitReserved("upgradeError",f)}}))};function o(){r||(r=!0,u(),e.close(),e=null)}let s=d=>{let f=new Error("probe error: "+d);f.transport=e.name,o(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function c(){s("socket closed")}function l(d){e&&d.name!==e.name&&o()}let u=()=>{e.removeListener("open",i),e.removeListener("error",s),e.removeListener("close",a),this.off("close",c),this.off("upgrading",l)};e.once("open",i),e.once("error",s),e.once("close",a),this.once("close",c),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&n!=="webtransport"?this.setTimeoutFn(()=>{r||e.open()},200):e.open()}onHandshake(n){this._upgrades=this._filterUpgrades(n.upgrades),super.onHandshake(n)}_filterUpgrades(n){let e=[];for(let r=0;rvh[i]).filter(i=>!!i)),super(n,r)}};var Zj=Ei.protocol;function C0(t,n="",e){let r=t;e=e||typeof location<"u"&&location,t==null&&(t=e.protocol+"//"+e.host),typeof t=="string"&&(t.charAt(0)==="/"&&(t.charAt(1)==="/"?t=e.protocol+t:t=e.host+t),/^(https?|wss?):\/\//.test(t)||(typeof e<"u"?t=e.protocol+"//"+t:t="https://"+t),r=Di(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+n,r.href=r.protocol+"://"+o+(e&&e.port===r.port?"":":"+r.port),r}var Ih={};J0(Ih,{Decoder:()=>Dh,Encoder:()=>bh,PacketType:()=>K,protocol:()=>M0});var T1=typeof ArrayBuffer=="function",A1=t=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,b0=Object.prototype.toString,O1=typeof Blob=="function"||typeof Blob<"u"&&b0.call(Blob)==="[object BlobConstructor]",N1=typeof File=="function"||typeof File<"u"&&b0.call(File)==="[object FileConstructor]";function Go(t){return T1&&(t instanceof ArrayBuffer||A1(t))||O1&&t instanceof Blob||N1&&t instanceof File}function qo(t,n){if(!t||typeof t!="object")return!1;if(Array.isArray(t)){for(let e=0,r=t.length;e=0&&t.num{delete this.acks[n];for(let a=0;a{this.io.clearTimeoutFn(o),e.apply(this,a)};s.withError=!0,this.acks[n]=s}emitWithAck(n,...e){return new Promise((r,i)=>{let o=(s,a)=>s?i(s):r(a);o.withError=!0,e.push(o),this.emit(n,...e)})}_addToQueue(n){let e;typeof n[n.length-1]=="function"&&(e=n.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:n,flags:Object.assign({fromQueue:!0},this.flags)};n.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(i)):(this._queue.shift(),e&&e(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(n=!1){if(!this.connected||this._queue.length===0)return;let e=this._queue[0];e.pending&&!n||(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(n){n.nsp=this.nsp,this.io._packet(n)}onopen(){typeof this.auth=="function"?this.auth(n=>{this._sendConnectPacket(n)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(n){this.packet({type:K.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},n):n})}onerror(n){this.connected||this.emitReserved("connect_error",n)}onclose(n,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",n,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(n=>{if(!this.sendBuffer.some(r=>String(r.id)===n)){let r=this.acks[n];delete this.acks[n],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(n){if(n.nsp===this.nsp)switch(n.type){case K.CONNECT:n.data&&n.data.sid?this.onconnect(n.data.sid,n.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case K.EVENT:case K.BINARY_EVENT:this.onevent(n);break;case K.ACK:case K.BINARY_ACK:this.onack(n);break;case K.DISCONNECT:this.ondisconnect();break;case K.CONNECT_ERROR:this.destroy();let r=new Error(n.data.message);r.data=n.data.data,this.emitReserved("connect_error",r);break}}onevent(n){let e=n.data||[];n.id!=null&&e.push(this.ack(n.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(n){if(this._anyListeners&&this._anyListeners.length){let e=this._anyListeners.slice();for(let r of e)r.apply(this,n)}super.emit.apply(this,n),this._pid&&n.length&&typeof n[n.length-1]=="string"&&(this._lastOffset=n[n.length-1])}ack(n){let e=this,r=!1;return function(...i){r||(r=!0,e.packet({type:K.ACK,id:n,data:i}))}}onack(n){let e=this.acks[n.id];typeof e=="function"&&(delete this.acks[n.id],e.withError&&n.data.unshift(null),e.apply(this,n.data))}onconnect(n,e){this.id=n,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(n=>this.emitEvent(n)),this.receiveBuffer=[],this.sendBuffer.forEach(n=>{this.notifyOutgoingListeners(n),this.packet(n)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(n=>n()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:K.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(n){return this.flags.compress=n,this}get volatile(){return this.flags.volatile=!0,this}timeout(n){return this.flags.timeout=n,this}onAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(n),this}prependAny(n){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(n),this}offAny(n){if(!this._anyListeners)return this;if(n){let e=this._anyListeners;for(let r=0;r0&&t.jitter<=1?t.jitter:0,this.attempts=0}Cr.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),e=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+e:t-e}return Math.min(t,this.max)|0};Cr.prototype.reset=function(){this.attempts=0};Cr.prototype.setMin=function(t){this.ms=t};Cr.prototype.setMax=function(t){this.max=t};Cr.prototype.setJitter=function(t){this.jitter=t};var Mi=class extends ce{constructor(n,e){var r;super(),this.nsps={},this.subs=[],n&&typeof n=="object"&&(e=n,n=void 0),e=e||{},e.path=e.path||"/socket.io",this.opts=e,mn(this,e),this.reconnection(e.reconnection!==!1),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor((r=e.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Cr({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(e.timeout==null?2e4:e.timeout),this._readyState="closed",this.uri=n;let i=e.parser||Ih;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=e.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(n){return arguments.length?(this._reconnection=!!n,n||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(n){return n===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=n,this)}reconnectionDelay(n){var e;return n===void 0?this._reconnectionDelay:(this._reconnectionDelay=n,(e=this.backoff)===null||e===void 0||e.setMin(n),this)}randomizationFactor(n){var e;return n===void 0?this._randomizationFactor:(this._randomizationFactor=n,(e=this.backoff)===null||e===void 0||e.setJitter(n),this)}reconnectionDelayMax(n){var e;return n===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=n,(e=this.backoff)===null||e===void 0||e.setMax(n),this)}timeout(n){return arguments.length?(this._timeout=n,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(n){if(~this._readyState.indexOf("open"))return this;this.engine=new Ei(this.uri,this.opts);let e=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let i=ut(e,"open",function(){r.onopen(),n&&n()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),n?n(a):this.maybeReconnectOnOpen()},s=ut(e,"error",o);if(this._timeout!==!1){let a=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),e.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(n){return this.open(n)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let n=this.engine;this.subs.push(ut(n,"ping",this.onping.bind(this)),ut(n,"data",this.ondata.bind(this)),ut(n,"error",this.onerror.bind(this)),ut(n,"close",this.onclose.bind(this)),ut(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(n){try{this.decoder.add(n)}catch(e){this.onclose("parse error",e)}}ondecoded(n){gn(()=>{this.emitReserved("packet",n)},this.setTimeoutFn)}onerror(n){this.emitReserved("error",n)}socket(n,e){let r=this.nsps[n];return r?this._autoConnect&&!r.active&&r.connect():(r=new Ii(this,n,e),this.nsps[n]=r),r}_destroy(n){let e=Object.keys(this.nsps);for(let r of e)if(this.nsps[r].active)return;this._close()}_packet(n){let e=this.encoder.encode(n);for(let r=0;rn()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(n,e){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",n,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let n=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{n.skipReconnect||(this.emitReserved("reconnect_attempt",n.backoff.attempts),!n.skipReconnect&&n.open(i=>{i?(n._reconnecting=!1,n.reconnect(),this.emitReserved("reconnect_error",i)):n.onreconnect()}))},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let n=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",n)}};var Wo={};function Gc(t,n){typeof t=="object"&&(n=t,t=void 0),n=n||{};let e=C0(t,n.path||"/socket.io"),r=e.source,i=e.id,o=e.path,s=Wo[i]&&o in Wo[i].nsps,a=n.forceNew||n["force new connection"]||n.multiplex===!1||s,c;return a?c=new Mi(r,n):(Wo[i]||(Wo[i]=new Mi(r,n)),c=Wo[i]),e.query&&!n.query&&(n.query=e.queryKey),c.socket(e.path,n)}Object.assign(Gc,{Manager:Mi,Socket:Ii,io:Gc,connect:Gc});var F1=["alert"],L1=t=>({"animation-duration":t});function V1(t,n){if(t&1&&(m(0,"div",9),ke(1,"span",10),v()),t&2){let e=g(2);p(),y("ngStyle",kn(1,L1,(e.timeout+350)/1e3+"s"))}}function j1(t,n){if(t&1&&ke(0,"div"),t&2){let e=g(3);cn(e.icon)}}function B1(t,n){if(t&1&&(m(0,"div",11),T(1,j1,1,3,"div",12),m(2,"div",13),A(3),v()()),t&2){let e=g(2);p(),y("ngIf",e.icon),p(2),Ie(e.text)}}function U1(t,n){if(t&1){let e=W();m(0,"button",15),O("click",function(){let i=N(e).$implicit;return g(3).remove(),P(i.callback&&i.callback())}),A(1),v()}if(t&2){let e=n.$implicit;p(),de(" ",e.text," ")}}function $1(t,n){if(t&1&&(m(0,"div"),T(1,U1,2,1,"button",14),v()),t&2){let e=g(2);p(),y("ngForOf",e.buttons)}}function H1(t,n){if(t&1){let e=W();m(0,"div",16),O("click",function(){N(e);let i=g(2);return P(i.remove())}),v()}}function z1(t,n){if(t&1&&(m(0,"div",2)(1,"div",3,0),T(3,V1,2,3,"div",4),m(4,"div",5),T(5,B1,4,2,"div",6)(6,$1,2,1,"div",7)(7,H1,1,0,"div",8),v()()()),t&2){let e=g();he("_close",e.delete_animation),y("ngClass",e.class),p(),he("waw-alert-color-blue",e.type=="info")("waw-alert-color-red",e.type=="error")("waw-alert-color-green",e.type=="success")("waw-alert-color-orange",e.type=="warning")("waw-alert-color-yellow",e.type=="question"),p(2),y("ngIf",e.progress),p(2),y("ngIf",!e.component),p(),y("ngIf",!e.component&&e.type=="question"),p(),y("ngIf",e.closable)}}function q1(t,n){if(t&1){let e=W();m(0,"span",3),O("click",function(){N(e);let i=g();return P(i.close())}),A(1,"\xD7"),v()}}function G1(t,n){if(t&1){let e=W();ye(0),m(1,"input",2,0),O("change",function(i){let o=N(e).$implicit,s=Tt(2);return g().fs.change(i,o),P(s.value="")}),v(),ve()}if(t&2){let e=n.$implicit;p(),y("id",e.id)("hidden",!0)("accept",e.accept||e.part&&"image/*"||"")("multiple",e.multiple&&!0||"")}}var Gn=new M("config"),xi={meta:{useTitleSuffix:!1,warnMissingGuard:!0,defaults:{}},socket:!1,http:{url:"",headers:{}},store:{prefix:""}},Mh={alerts:{},text:"",type:"info",class:"",progress:!0,position:"bottomRight",timeout:5e3,closable:!0,buttons:[]};String.prototype.capitalize||(String.prototype.capitalize=function(){return this.length>0?this.charAt(0).toUpperCase()+this.slice(1).toLowerCase():""});var we=(()=>{class t{platformId;ssr=!1;localStorage;navigator;document;window;constructor(e){this.platformId=e,this.ssr=gr(this.platformId),gr(this.platformId)?(this.localStorage={getItem:()=>{},setItem:()=>{},removeItem:()=>{},clear:()=>{}},this.document={querySelectorAll:()=>{},addEventListener:()=>{},removeEventListener:()=>{},documentElement:{},body:{}},this.window={location:{host:""},addEventListener:()=>{},removeEventListener:()=>{},setTimeout:()=>{}},this.navigator={userAgent:"",platform:""}):(this.localStorage=localStorage,this.document=document,this.window=window,this.navigator=navigator),this.detectDevice()}ota(e,r=!1){if(Array.isArray(e))return e;if(typeof e!="object"||e===null)return[];let i=[];for(let o in e)e.hasOwnProperty(o)&&(e[o]||typeof e[o]=="number"||typeof e[o]=="boolean")&&(r?i.push(o):i.push(e[o]));return i}splice(e,r,i="_id"){if(!Array.isArray(e)||!Array.isArray(r))return r;let o=new Set(e.map(s=>s[i]));return r.filter(s=>!o.has(s[i]))}ids2id(...e){return e.sort((r,i)=>Number(r.toString().substring(0,8))>Number(i.toString().substring(0,8))?1:-1),e.join()}_afterWhile={};afterWhile(e,r,i=1e3){typeof e=="function"&&(r=e,e="common"),typeof r=="function"&&typeof i=="number"&&(typeof e=="string"?(clearTimeout(this._afterWhile[e]),this._afterWhile[e]=this.window.setTimeout(r,i)):typeof e=="object"?(clearTimeout(e.__afterWhile),e.__afterWhile=this.window.setTimeout(r,i)):console.warn("badly configured after while"))}copy(e,r){for(let i in e)typeof e[i]!="object"||e[i]instanceof Date||Array.isArray(e[i])||e[i]===null?r[i]=e[i]:((typeof r[i]!="object"||r[i]instanceof Date||Array.isArray(r[i])||r[i]===null)&&(r[i]={}),this.copy(e[i],r[i]))}device="";detectDevice(){let e=this.navigator.userAgent||this.navigator.vendor||this.window.opera;/windows phone/i.test(e)?this.device="Windows Phone":/android/i.test(e)?this.device="Android":/iPad|iPhone|iPod/.test(e)&&!this.window.MSStream?this.device="iOS":this.device="Web"}isMobile(){return this.device==="Windows Phone"||this.device==="Android"||this.device==="iOS"}isTablet(){return this.device==="iOS"&&/iPad/.test(navigator.userAgent)}isWeb(){return this.device==="Web"}isAndroid(){return this.device==="Android"}isIos(){return this.device==="iOS"}version="1.0.0";appVersion="";dateVersion="";setVersion(){this.version=this.appVersion||"",this.version+=this.version&&this.dateVersion?" ":"",this.version+=this.dateVersion||""}setAppVersion(e){this.appVersion=e,this.setVersion()}setDateVersion(e){this.dateVersion=e,this.setVersion()}_signals={};emit(e,r){this._signals[e]||(this._signals[e]=new re),this._signals[e].next(r)}on(e){return this._signals[e]||(this._signals[e]=new re),this._signals[e].asObservable()}off(e){this._signals[e]&&(this._signals[e].complete(),delete this._signals[e])}_completed={};_completeResolvers={};complete(e){this._completed[e]=!0,this._completeResolvers[e]&&(this._completeResolvers[e].forEach(r=>r()),this._completeResolvers[e]=[])}onComplete(e){return this._completed[e]?Promise.resolve():new Promise(r=>{this._completeResolvers[e]||(this._completeResolvers[e]=[]),this._completeResolvers[e].push(r)})}completed(e){return!!this._completed[e]}_locked={};_unlockResolvers={};lock(e){this._locked[e]=!0,this._unlockResolvers[e]||(this._unlockResolvers[e]=[])}unlock(e){this._locked[e]=!1,this._unlockResolvers[e]&&(this._unlockResolvers[e].forEach(r=>r()),this._unlockResolvers[e]=[])}onUnlock(e){return this._locked[e]?new Promise(r=>{this._unlockResolvers[e]||(this._unlockResolvers[e]=[]),this._unlockResolvers[e].push(r)}):Promise.resolve()}locked(e){return!!this._locked[e]}static \u0275fac=function(r){return new(r||t)(_(Mt))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Zo=t=>typeof t<"u",x0=(()=>{class t{router;meta;core;titleService;config;_meta;constructor(e,r,i,o,s){this.router=e,this.meta=r,this.core=i,this.titleService=o,this.config=s,this.config=this.config||xi,this._meta=this.config.meta||{},this._warnMissingGuard()}setDefaults(e){this._meta.defaults=e}setTitle(e,r){let i=Zo(e)?e:this._meta.defaults.title||"";return this._meta.useTitleSuffix&&(i+=Zo(r)?r:this._meta.defaults.titleSuffix||""),this._updateMetaTag("title",i),this._updateMetaTag("og:title",i),this.titleService.setTitle(i),this}setLink(e){return Object.keys(e).forEach(r=>{let i=this.core.document.createElement("link");i.setAttribute("rel",r),i.setAttribute("href",e[r]),this.core.document.head.appendChild(i)}),this}setTag(e,r,i){if(e==="title"||e==="titleSuffix")throw new Error(`Attempt to set ${e} through 'setTag': 'title' and 'titleSuffix' are reserved tag names. Please use 'MetaService.setTitle' instead`);let o=Zo(r)?r:this._meta.defaults[e]||"";return this._updateMetaTag(e,o,i),e==="description"&&(this._updateMetaTag("og:description",o,i),this._updateMetaTag("twitter:description",o,i)),this}_updateMetaTag(e,r,i){i=i||(e.startsWith("og:")||e.startsWith("twitter:")?"property":"name"),this.meta.updateTag({[i]:e,content:r})}removeTag(e,r){r=r||(e.startsWith("og:")||e.startsWith("twitter:")?"property":"name"),this.meta.removeTag(`${r}="${e}"`)}_warnMissingGuard(){if(Zo(this._meta.warnMissingGuard)&&!this._meta.warnMissingGuard)return;let e=!!Object.keys(this._meta.defaults).length,r=o=>o&&o.IDENTIFIER==="MetaGuard",i=!1;this.router.config.forEach(o=>{let s=o.data&&o.data.meta;!Zo(o.redirectTo)&&(e||s)&&!(o.canActivate||[]).some(r)&&(console.warn(`Route with path "${o.path}" has ${s?"":"default "}meta tags, but does not use MetaGuard. Please add MetaGuard to the canActivate array in your route configuration`),i=!0)}),i&&console.warn("To disable these warnings, set metaConfig.warnMissingGuard: false in your MetaConfig passed to MetaModule.forRoot()")}static \u0275fac=function(r){return new(r||t)(_(lt),_(Bv),_(we),_(cc),_(Gn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),W1=(()=>{class t{metaService;config;static IDENTIFIER="MetaGuard";_meta;constructor(e,r){this.metaService=e,this.config=r,this._meta=r.meta,this.config||(this.config=xi)}canActivate(e,r){return this._processRouteMetaTags(e.data&&e.data.meta),!0}_processRouteMetaTags(e={}){e.disableUpdate||(e.title&&this.metaService.setTitle(e.title,e.titleSuffix),Array.isArray(e.links)?this.metaService.setLink(e.links):typeof e.links=="string"&&this.metaService.setLink(e.links.split(" ")),Array.isArray(this._meta.defaults?.links)?this.metaService.setLink(this._meta.defaults?.links):typeof this._meta.defaults?.links=="string"&&this.metaService.setLink(this._meta.defaults?.links.split(" ")),Object.keys(e).forEach(r=>{r==="title"||r==="titleSuffix"||r==="links"||Object.keys(e[r]).forEach(i=>{this.metaService.setTag(i,e[r][i],r)})}),Object.keys(this._meta.defaults).forEach(r=>{r in e||r==="title"||r==="titleSuffix"||r==="links"||this.metaService.setTag(r,this._meta.defaults[r])}))}static \u0275fac=function(r){return new(r||t)(_(x0),_(Gn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac})}return t})(),Z1=(()=>{class t{core;alert;component;text="";class="";type="info";progress=!0;position="bottomRight";icon="";timeout=5e3;close;closable=!0;buttons=[];constructor(e){this.core=e,setTimeout(()=>{if(this.timeout){let r=JSON.parse(JSON.stringify(this.timeout)),i=setTimeout(()=>{this.remove()},r),o=new Date;this.alert.nativeElement.addEventListener("mouseenter",()=>{clearTimeout(i),r-=new Date().getTime()-o.getTime()},!1),this.alert.nativeElement.addEventListener("mouseleave",()=>{o=new Date,clearTimeout(i),i=e.window.setTimeout(()=>{this.remove()},r)},!1)}})}delete_animation=!1;remove(){this.delete_animation=!0,setTimeout(()=>{this.close(),this.delete_animation=!1},350)}static \u0275fac=function(r){return new(r||t)(I(we))};static \u0275cmp=fe({type:t,selectors:[["alert"]],viewQuery:function(r,i){if(r&1&&ei(F1,5),r&2){let o;it(o=ot())&&(i.alert=o.first)}},standalone:!1,decls:1,vars:1,consts:[["alert",""],["class","waw-alert-container height",3,"ngClass","_close",4,"ngIf"],[1,"waw-alert-container","height",3,"ngClass"],[1,"waw-alert","bounceInUp","waw-alert-theme-light","waw-alert-animateInside","waw-alert-opened"],["class","waw-alert__progress",4,"ngIf"],[1,"waw-alert-body"],["class","waw-alert-texts",4,"ngIf"],[4,"ngIf"],["class","waw-alert__close",3,"click",4,"ngIf"],[1,"waw-alert__progress"],[3,"ngStyle"],[1,"waw-alert-texts"],[3,"class",4,"ngIf"],[1,"waw-alert-message","slideIn"],["class","alert-btn",3,"click",4,"ngFor","ngForOf"],[1,"alert-btn",3,"click"],[1,"waw-alert__close",3,"click"]],template:function(r,i){r&1&&T(0,z1,8,17,"div",1),r&2&&y("ngIf",i.text)},dependencies:[fn,Be,st,pv],styles:['@keyframes _ngcontent-%COMP%_iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes _ngcontent-%COMP%_iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes _ngcontent-%COMP%_iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes _ngcontent-%COMP%_iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes _ngcontent-%COMP%_iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper[_ngcontent-%COMP%]{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert[_ngcontent-%COMP%]{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show[_ngcontent-%COMP%]{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon[_ngcontent-%COMP%]{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon[_ngcontent-%COMP%]:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon[_ngcontent-%COMP%]:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text[_ngcontent-%COMP%]{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text[_ngcontent-%COMP%] .text-block[_ngcontent-%COMP%]{width:99%}.alert-text[_ngcontent-%COMP%] .text-block__text[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close[_ngcontent-%COMP%]{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold[_ngcontent-%COMP%]{font-weight:700}.waw-alert__progress[_ngcontent-%COMP%]{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%]:hover span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__progress[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:_ngcontent-%COMP%_waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress[_ngcontent-%COMP%] span._red[_ngcontent-%COMP%]{background-color:#ffafb4}.waw-alert__progress[_ngcontent-%COMP%] span._green[_ngcontent-%COMP%]{background-color:#a6efb8}.waw-alert__progress[_ngcontent-%COMP%] span._yellow[_ngcontent-%COMP%]{background-color:#fff9b2}.waw-alert__progress[_ngcontent-%COMP%] span._orange[_ngcontent-%COMP%], .waw-alert__progress[_ngcontent-%COMP%] span._blue[_ngcontent-%COMP%]{background-color:#ffcfa5}.waw-alert__progress[_ngcontent-%COMP%] span._white[_ngcontent-%COMP%]{background-color:#fff}.waw-alert__progress[_ngcontent-%COMP%] span._black[_ngcontent-%COMP%]{background-color:#000}.waw-alert[_ngcontent-%COMP%]:hover .waw-alert__progress[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{animation-play-state:paused}.waw-alert__close[_ngcontent-%COMP%]{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert__close[_ngcontent-%COMP%]:before, .waw-alert__close[_ngcontent-%COMP%]:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close[_ngcontent-%COMP%]:before{transform:rotate(45deg)}.waw-alert__close[_ngcontent-%COMP%]:after{transform:rotate(-45deg)}@keyframes _ngcontent-%COMP%_waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container[_ngcontent-%COMP%]{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.waw-alert[_ngcontent-%COMP%]{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%]{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert[_ngcontent-%COMP%] > .waw-alert-progressbar[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert[_ngcontent-%COMP%] > .waw-alert-close[_ngcontent-%COMP%]:hover{opacity:1}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-texts[_ngcontent-%COMP%]{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert[_ngcontent-%COMP%] > .waw-alert-body[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper[_ngcontent-%COMP%]{padding:10px 15px}.waw-alert[_ngcontent-%COMP%]{margin:5px;border-radius:3px;width:auto}.waw-alert[_ngcontent-%COMP%]:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert[_ngcontent-%COMP%]:not(.waw-alert-rtl) .waw-alert-cover[_ngcontent-%COMP%]{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl[_ngcontent-%COMP%] .waw-alert-cover[_ngcontent-%COMP%]{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%] .waw-alert-progressbar[_ngcontent-%COMP%]{background:transparent}.waw-alert.waw-alert-balloon[_ngcontent-%COMP%]:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target[_ngcontent-%COMP%] .waw-alert[_ngcontent-%COMP%]:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%]{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-title[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-message[_ngcontent-%COMP%]{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark[_ngcontent-%COMP%] .waw-alert-icon[_ngcontent-%COMP%]{color:#fff}.waw-alert.waw-alert-color-red[_ngcontent-%COMP%]{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange[_ngcontent-%COMP%]{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow[_ngcontent-%COMP%]{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue[_ngcontent-%COMP%]{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green[_ngcontent-%COMP%]{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn[_ngcontent-%COMP%], .waw-alert[_ngcontent-%COMP%] .slideIn[_ngcontent-%COMP%]{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight[_ngcontent-%COMP%]{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp[_ngcontent-%COMP%]{-webkit-animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both;animation:_ngcontent-%COMP%_iziT-bounceInUp .7s ease-in-out both}.height[_ngcontent-%COMP%]{height:auto!important}']})}return t})(),Y1=(()=>{class t{class="";size="flex";closable=!0;close;onOpen;timestart;timeout;showModal=!1;allowClose=!0;onClickOutside;ngOnInit(){typeof this.onClickOutside!="function"&&(this.onClickOutside=this.close),typeof this.onOpen=="function"&&this.onOpen(),window.addEventListener("popstate",this.popStateListener.bind(this))}ngAfterViewInit(){setTimeout(()=>{this.showModal=!0},this.timestart||0)}ngOnDestroy(){window.removeEventListener("popstate",this.popStateListener.bind(this))}popStateListener(e){this.close()}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["lib-modal"]],standalone:!1,decls:4,vars:3,consts:[[1,"modal",3,"click","hidden","ngClass"],[1,"modal-content",3,"click"],["class","close",3,"click",4,"ngIf"],[1,"close",3,"click"]],template:function(r,i){r&1&&(m(0,"div",0),O("click",function(){return i.onClickOutside()}),m(1,"div",1),O("click",function(s){return s.stopPropagation()}),ke(2,"div"),T(3,q1,2,0,"span",2),v()()),r&2&&(y("hidden",!i.showModal)("ngClass",i.class+" "+i.size),p(3),y("ngIf",i.closable))},dependencies:[fn,st],styles:[".modal[_ngcontent-%COMP%]{position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;overflow-y:auto;background-color:#000;background-color:#00000080}.modal-content[_ngcontent-%COMP%]{position:relative;background-color:#fff;margin:15% auto;padding:20px;border:1px solid #888;min-width:20%;max-width:80%}.close[_ngcontent-%COMP%]{color:#aaa;position:absolute;right:10px;top:3px;font-size:32px;line-height:1}.close[_ngcontent-%COMP%]:hover, .close[_ngcontent-%COMP%]:focus{color:#000;text-decoration:none;cursor:pointer}"]})}return t})();var Zc=(()=>{class t{elementRef;clickOutside=new G;constructor(e){this.elementRef=e}onClick(e){this.elementRef.nativeElement.contains(e.target)||this.clickOutside.emit(e)}static \u0275fac=function(r){return new(r||t)(I(Ee))};static \u0275dir=oe({type:t,selectors:[["","clickOutside",""]],hostBindings:function(r,i){r&1&&O("click",function(s){return i.onClick(s)},!1,km)},outputs:{clickOutside:"clickOutside"},standalone:!1})}return t})();var Yc=(()=>{class t{c=0;transform(e,r,i,o,s,a){if(!r)return e;if(typeof i=="number"&&(o=i,i=null),s||!r)return o&&Array.isArray(e)?e.slice(0,o):e||[];let c=[],l={};if(!Array.isArray(r)&&typeof r=="object"){let f=[];for(let h in r)r[h]&&f.push(h);r=f}typeof r=="string"&&(r=[r]),i||(i=["name"]),typeof i=="string"&&(i=i.split(" "));let u=function(f,h,C,E){if(f){if(h.indexOf(".")>-1){let x=h.split("."),R=x.shift();if(Array.isArray(f[R])){for(let X=0;X-1||r[x].toLowerCase().indexOf(f[h].toString().toLowerCase())>-1)){l[E]||c.push(C),l[E]=!0,R=!0;break}if(R)break}}},d=function(f,h){for(let C=0;C{class t{now=new Date().getTime();refreshNow(){this.now=new Date().getTime()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Wc=class extends Q1{_config;_http;_store;_alert;_core;_url="/api/";_docs=[];_perPage=20;_filteredDocumentsCallbacks=[];constructor(n,e,r,i,o){super(),this._config=n,this._http=e,this._store=r,this._alert=i,this._core=o,this._url+=this._config.name,this._store.getJson("docs_"+this._config.name,s=>{Array.isArray(s)&&(this._docs.push(...s),this._filterDocuments())}),this._core.on("wipe").subscribe(()=>{this._docs.splice(0,this._docs.length),this._filterDocuments(),this.setDocs()})}setDocs(){this._store.setJson("docs_"+this._config.name,this._docs)}getDocs(){return this._docs}addDocs(n){if(Array.isArray(n))for(let e of n)this.addDoc(e)}addDoc(n){this._config.replace&&this._config.replace(n);let e=this._docs.find(r=>this._id(r)===this._id(n));e?(this._core.copy(n,e),this._core.copy(e,n)):this._docs.push(n),this.setDocs()}new(n={}){return H(b({},n),{_id:Date.now().toString(),__created:!1,__modified:!1})}doc(n){return this._docs.find(e=>this._id(e)===n)||this.new()}setPerPage(n){this._perPage=n}get(n={},e={}){let r=`${this._url}/get${e.name||""}`,i=(typeof n.page=="number"||n.query?"?":"")+(n.query||"")+(typeof n.page=="number"?`&skip=${this._perPage*(n.page-1)}&limit=${this._perPage}`:""),o=this._http.get(`${r}${i}`);return o.subscribe({next:s=>{s.forEach(a=>this.addDoc(a)),e.callback&&e.callback(s),typeof n.page!="number"&&this._filterDocuments()},error:s=>{e.errCallback&&e.errCallback(s)}}),o}create(n,e={}){if(n.__created)return new z(i=>{i.error(new Error("Document has already been created."))});n.__created=!0;let r=this._http.post(`${this._url}/create${e.name||""}`,n);return r.subscribe({next:i=>{i?(this._core.copy(i,n),this.addDoc(n),this._filterDocuments(),e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}create`,text:e.alert})):(n.__created=!1,e.errCallback&&e.errCallback(i)),this._core.emit(`${this._config.name}_create`,n)},error:i=>{n.__created=!1,e.errCallback&&e.errCallback(i)}}),r}fetch(n={},e={}){let r=this._http.post(`${this._url}/fetch${e.name||""}`,n);return r.subscribe({next:i=>{i?(this.addDoc(i),this._filterDocuments(),e.callback&&e.callback(i),e.alert&&this._alert.show({unique:`${this._config.name}create`,text:e.alert})):e.errCallback&&e.errCallback(i)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}updateAfterWhile(n,e={}){return n.__modified=!0,new z(r=>{this._core.afterWhile(this._id(n),()=>{this.update(n,e).subscribe({next:i=>{r.next(i)},error:i=>{r.error(i)},complete:()=>{r.complete()}})})})}update(n,e={}){n.__modified=!0;let r=this._http.post(`${this._url}/update${e.name||""}`,n);return r.subscribe({next:i=>{i?(n.__modified=!1,this._core.copy(i,n),e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}update`,text:e.alert})):e.errCallback&&e.errCallback(i),this._core.emit(`${this._config.name}_update`,n)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}unique(n,e={}){n.__modified=!0;let r=this._http.post(`${this._url}/unique${e.name||""}`,n);return r.subscribe({next:i=>{i?(n.__modified=!1,n[e.name]=i,e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}unique`,text:e.alert})):e.errCallback&&e.errCallback(i),this._core.emit(`${this._config.name}_unique`,n)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}delete(n,e={}){let r=this._http.post(`${this._url}/delete${e.name||""}`,n);return r.subscribe({next:i=>{i?(this._docs.splice(this._docs.findIndex(o=>this._id(o)===this._id(n)),1),this.setDocs(),this._filterDocuments(),e.callback&&e.callback(n),e.alert&&this._alert.show({unique:`${this._config.name}delete`,text:e.alert})):e.errCallback&&e.errCallback(i),this._core.emit(`${this._config.name}_delete`,n)},error:i=>{e.errCallback&&e.errCallback(i)}}),r}filteredDocuments(n,e="author",r,i=(o,s)=>o[this._id(o)]s[this._id(s)]?1:0){let o=()=>{for(let s in n)for(let a=n[s].length-1;a>=0;a--){let c=typeof e=="function"?e(n[s][a]):e,l=n[s][a];this._docs.find(u=>Array.isArray(u[c])?u[c].includes(l[this._id(u)]):u[c]===l[this._id(u)])||n[s].splice(a,1)}for(let s of this._docs){let a=typeof e=="function"?e(s):e;(typeof r=="function"?!r(s):Array.isArray(s[a])?!s[a]?.length:!s[a])||(typeof e=="function"?e(s)&&!n[s[a]].find(c=>c._id===s._id)&&n[s[a]].push(s):Array.isArray(s[a])?s[a].forEach(c=>{n[c]=n[c]||[],n[c].find(l=>l._id===s._id)||n[c].push(s)}):(n[s[a]]=n[s[a]]||[],n[s[a]].find(c=>c._id===s._id)||n[s[a]].push(s)))}for(let s in n)n[s].sort(i)};return this._filteredDocumentsCallbacks.push(o),o}_id(n){return n[this._config._id||"_id"]?.toString()}_filterDocuments(){for(let n of this._filteredDocumentsCallbacks)n()}},Gt=(()=>{class t{config;core;_prefix="";constructor(e,r){this.config=e,this.core=r,this.config=this.config||xi}setPrefix(e){this._prefix=e}set(e,r,i=()=>{},o=()=>{}){if(e=this.applyPrefix(e),this.config.store?.set)this.config.store.set(e,r,i,o);else try{this.core.localStorage.setItem(e,r),i()}catch{o()}}setAsync(e,r){return dt(this,null,function*(){e=this.applyPrefix(e);try{return this.config.store?.set?yield this.config.store.set(e,r):this.core.localStorage.setItem(e,r),!0}catch(i){return console.error(i),!1}})}get(e,r=()=>{},i=()=>{}){if(e=this.applyPrefix(e),this.config.store?.get)this.config.store.get(e,r,i);else{let o=this.core.localStorage.getItem(e)||"";r(o)}}getAsync(e){return dt(this,null,function*(){e=this.applyPrefix(e);try{return this.config.store?.get?yield this.config.store.get(e):this.core.localStorage.getItem(e)||""}catch(r){return console.error(r),""}})}setJson(e,r,i=()=>{},o=()=>{}){this.set(e,JSON.stringify(r),i,o)}setJsonAsync(e,r){return dt(this,null,function*(){return this.setAsync(e,JSON.stringify(r))})}getJson(e,r=()=>{},i=()=>{}){this.get(e,o=>{try{let s=JSON.parse(o);r(s)}catch{r(null)}},i)}getJsonAsync(e){return dt(this,null,function*(){let r=yield this.getAsync(e);try{return JSON.parse(r)}catch(i){return console.error(i),null}})}remove(e,r,i){return dt(this,null,function*(){e=this.applyPrefix(e);try{return this.config.store?.remove?yield this.config.store.remove(e,r,i):this.core.localStorage.removeItem(e),r?.(),!0}catch(o){return console.error(o),i?.(),!1}})}clear(e,r){return dt(this,null,function*(){try{return this.config.store?.clear?yield this.config.store.clear():this.core.localStorage.clear(),e?.(),!0}catch(i){return console.error(i),r?.(),!1}})}applyPrefix(e){return this.config.store?.prefix&&(e=this.config.store.prefix+e),this._prefix&&(e=this._prefix+e),e}static \u0275fac=function(r){return new(r||t)(_(Gn,8),_(we))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Si=(()=>{class t{store;http;_config;errors=[];url="";locked=!1;awaitLocked=[];_http;_headers={};_http_headers=new Ue(this._headers);constructor(e,r,i){if(this.store=e,this.http=r,this._config=i,this._http=this._config.http||{},typeof this._http.headers=="object"){for(let o in this._http.headers)this._headers[o]=this._http.headers[o];this._http_headers=new Ue(this._headers)}this.store.get("http_url",o=>{this.url=o||this._http.url||""}),this.store.getJson("http_headers",o=>{if(o){for(let s in o)this._headers[s]=o[s];this._http_headers=new Ue(this._headers)}})}setUrl(e){this.url=e,this.store.set("http_url",e)}removeUrl(){this.url=this._http.url||"",this.store.remove("http_url")}set(e,r){this._headers[e]=r,this.store.setJson("http_headers",this._headers),this._http_headers=new Ue(this._headers)}header(e){return this._headers[e]}remove(e){delete this._headers[e],this._http_headers=new Ue(this._headers),this.store.setJson("http_headers",this._headers)}_httpMethod(e,r,i,o){return e==="post"?this.http.post(r,i,o):e==="put"?this.http.put(r,i,o):e==="patch"?this.http.patch(r,i,o):e==="delete"?this.http.delete(r,o):this.http.get(r,o)}_post(e,r,i=a=>{},o={},s="post"){if(typeof o=="function"&&(o={err:o}),o.err||(o.err=l=>{}),this.locked&&!o.skipLock)return new z(l=>{let u=setTimeout(()=>{this._post(e,r,i,o,s).subscribe(l)},100);this.awaitLocked.push(u)});let a=(o.url||this.url)+e;this.prepare_handle(a,r);let c=new ki(1);return this._httpMethod(s,a,r,{headers:this._http_headers}).pipe(ft(),bt(l=>(this.handleError(o.err,()=>{this._post(e,r,i,o,s).subscribe(c)})(l),c.error(l),Ne))).subscribe({next:l=>{this.response_handle(a,l,()=>i(l)),c.next(l),c.complete()},error:l=>c.error(l),complete:()=>c.complete()}),c.asObservable()}post(e,r,i=s=>{},o={}){return this._post(e,r,i,o)}put(e,r,i=s=>{},o={}){return this._post(e,r,i,o,"put")}patch(e,r,i=s=>{},o={}){return this._post(e,r,i,o,"patch")}delete(e,r=o=>{},i={}){return this._post(e,null,r,i,"delete")}get(e,r=o=>{},i={}){return this._post(e,null,r,i,"get")}clearLocked(){for(let e of this.awaitLocked)clearTimeout(e);this.awaitLocked=[]}lock(){this.locked=!0}unlock(){this.locked=!1}handleError(e,r){return i=>new Promise(o=>{this.err_handle(i,e,r),o()})}err_handle(e,r,i){typeof r=="function"&&r(e);for(let o of this.errors)typeof o=="function"&&o(e,i)}prepare_handle(e,r){}response_handle(e,r,i){typeof i=="function"&&i()}static \u0275fac=function(r){return new(r||t)(_(Gt),_(uf),_(Gn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),S0=(()=>{class t{store;http;core;data={};socket={emit:(e,r)=>{console.log(e,r,"is not used on sockets")}};config(e,r){if(!this.data["opts"+e]){if(this.data["arr"+e]||(this.data["arr"+e]=[]),this.data["obj"+e]||(this.data["obj"+e]={}),this.data["opts"+e])for(let i in r)this.data["opts"+e][i]=r[i];else this.data["opts"+e]=r=r||{};if(typeof r.use=="string"&&(r.use=r.use.split(" ")),r.query)for(let i in r.query)typeof r.query[i]=="function"&&(r.query[i]={allow:r.query[i]}),this.data["obj"+e][i]=[];if(r.groups){if(typeof r.groups=="string"&&(r.groups=r.groups.split(" ")),Array.isArray(r.groups)){let i=r.groups;r.groups={};for(let o=0;o{s?(this.socket.emit("create",{_id:s._id,part:e}),this.push(e,s),typeof i=="function"&&i(s)):typeof i=="function"&&i(!1)},{url:o.base_url||this.http.url}))}fetch(e,r=void 0,i=void 0){if(r.query&&r.query._id&&!r.force&&this.data["obj"+e][r.query._id])return this.data["obj"+e][r.query._id];typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(e,r);let o="/api/"+e+"/fetch"+(r.name||""),s;if(r.query&&r.query._id&&this.data["obj"+e][r.query._id])s=this.data["obj"+e][r.query._id];else{s={};for(let a in this.data["opts"+e].replace)this.replace(s,a,this.data["opts"+e].replace[a])}return this.http.post(r.url||o,r.query||{},a=>{if(!a)return i&&i(!1);for(let c in a)s[c]=a[c];for(let c in s)s[c]=a[c];this.push(e,s),a&&typeof i=="function"&&i(s)},{url:r.base_url||this.http.url}),s}get(e,r=void 0,i=void 0){typeof r=="function"&&(i=r,r={}),r||(r={}),this.config(e,r);let o="/api/"+e+"/get"+(r.name||"")+(r.param||"");return this.http.get(r.url||o,s=>{if(Array.isArray(s)){for(let a=0;a{a&&this.socket.emit("update",{_id:r._id,part:e}),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}unique(e,r,i=void 0,o=void 0){typeof i=="function"&&(o=i,i={}),typeof i!="object"&&(i={}),r=this.prepare_update(e,r,i);let s="/api/"+e+"/unique"+(i.name||"");this.http.post(i.url||s,r,a=>{if(a){this.socket.emit("update",{_id:r._id,part:e});let c=this.data["obj"+e][r._id];for(let l in r)c[l]=r[l];this.renew(e,c)}(a||typeof a=="string")&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}delete(e,r,i=void 0,o=void 0){if(typeof i=="function"&&(o=i,i={}),typeof i!="object"&&(i={}),i.fields){typeof i.fields=="string"&&(i.fields=i.fields.split(" "));let a={};for(let c=0;c{a&&(this.socket.emit("delete",{_id:r._id,part:e}),this.remove(e,r)),a&&typeof o=="function"?o(a):typeof o=="function"&&o(!1)},{url:i.base_url||this.http.url})}_id(e){typeof e=="function"&&this.http.get("/waw/newId",e)}to_id(e){if(!e)return[];if(Array.isArray(e))e=e.slice();else if(typeof e=="object"){if(e._id)return[e._id];let r=[];for(let i in e)e[i]&&r.push(e[i]._id||e[i]);e=r}for(let r=0;r-1){r=r.split(".");let o=r.shift();return typeof e[o]!="object"?void 0:this.populate(e[o],r.join("."),i)}if(Array.isArray(e[r])){for(let o=e[r].length-1;o>=0;o--)this.data["obj"+i][e[r][o]]?e[r][o]=this.data["obj"+i][e[r][o]]:e[r].splice(o,1);return}else if(typeof e[r]=="string")e[r]=this.data["obj"+i][e[r]]||null;else return}else setTimeout(()=>{this.populate(e,r,i)},100)}}on(e,r){typeof e=="string"&&(e=e.split(" "));for(var i=0;i{this.on(e,r)},100);r(this.data)}track(e,r){return r&&r._id&&r._id||e}sortAscId(){return function(e,r){return e._id>r._id?1:-1}}sortDescId(){return function(e,r){return e._idi[e.field].toLowerCase()?1:r[e.field].toLowerCase()i[e.field].toLowerCase()||!e.next?-1:e.next(r,i)}}sortAscDate(e){return typeof e=="string"&&(e={field:e}),function(r,i){return r[e.field].getTime()>i[e.field].getTime()?1:r[e.field].getTime()i[e.field].getTime()||!e.next?-1:e.next(r,i)}}sortAscNumber(e){return typeof e=="string"&&(e={field:e}),function(r,i){return r[e.field]>i[e.field]?1:r[e.field]i[e.field]||!e.next?-1:e.next(r,i)}}sortAscBoolean(e){return typeof e=="string"&&(e={field:e}),function(r,i){return!r[e.field]&&i[e.field]?1:r[e.field]&&!i[e.field]||!e.next?-1:e.next(r,i)}}sortDescBoolean(e){return typeof e=="string"&&(e={field:e}),function(r,i){return r[e.field]&&!i[e.field]?1:!r[e.field]&&i[e.field]||!e.next?-1:e.next(r,i)}}beArr(e,r){Array.isArray(e)?r(e):r([])}beObj(e,r){(typeof e!="object"||Array.isArray(e)||!e)&&(e={}),r(e)}beDate(e,r){r(new Date(e))}beString(e,r){typeof e!="string"&&(e=""),r(e)}beDoc=(e,r)=>{this.beObj(e,i=>{i._id?r(i):this._id(o=>{i._id=o,r(i)})})};forceArr(e,r){r([])}forceObj(e,r){r({})}forceString(e,r){r("")}forceDoc=(e,r)=>{this._id(i=>{r({_id:i})})};getCreated(e,r,i){r(new Date(parseInt(i._id.substring(0,8),16)*1e3))}replace(e,r,i){if(r.indexOf(".")>-1){r=r.split(".");let o=r.shift();return e[o]&&(typeof e[o]!="object"||Array.isArray(e[o]))?void 0:(e[o]||(e[o]={}),this.replace(e[o],r.join("."),i))}typeof i=="function"&&i(e[r],function(o){e[r]=o},e)}renew(e,r){if(!this.data["obj"+e][r._id])return this.push(e,r);if(this.data["opts"+e].replace)for(let i in this.data["opts"+e].replace)this.replace(r,i,this.data["opts"+e].replace[i]);for(let i in this.data["obj"+e][r._id])this.data["obj"+e][r._id][i]=r[i];for(let i in r)this.data["obj"+e][r._id][i]=r[i];for(let i=0;i{if(a[l]=!0,!!l){if(Array.isArray(this.data["obj"+e][i][l])||(this.data["obj"+e][i][l]=[]),o){for(let u=this.data["obj"+e][i][l].length-1;u>=0;u--)if(this.data["obj"+e][i][l][u]._id==r._id)return;this.data["obj"+e][i][l].push(r)}else for(let u=this.data["obj"+e][i][l].length-1;u>=0;u--)this.data["obj"+e][i][l][u]._id==r._id&&this.data["obj"+e][i][l].splice(u,1);typeof s.sort=="function"&&this.data["obj"+e][i][l].sort(s.sort)}};c(s.field(r,c.bind(this)));for(let l in this.data["obj"+e][i])if(!a[l])for(let u=this.data["obj"+e][i][l].length-1;u>=0;u--)this.data["obj"+e][i][l][u]._id==r._id&&this.data["obj"+e][i][l].splice(u,1)}if(this.data["opts"+e].query)for(let i in this.data["opts"+e].query){let o=!0,s=this.data["opts"+e].query[i];if(typeof s.ignore=="function"&&s.ignore(r)&&(o=!1),typeof s.allow=="function"&&!s.allow(r)&&(o=!1),this.data["obj"+e][i]||(this.data["obj"+e][i]=[]),o){for(let a=this.data["obj"+e][i].length-1;a>=0;a--)if(this.data["obj"+e][i][a]._id==r._id)return;this.data["obj"+e][i].push(r)}else for(let a=this.data["obj"+e][i].length-1;a>=0;a--)this.data["obj"+e][i][a]._id==r._id&&this.data["obj"+e][i].splice(a,1);typeof s.sort=="function"&&this.data["obj"+e][i].sort(s.sort)}}push(e,r){if(this.data["arr"+e]||(this.data["arr"+e]=[]),this.data["obj"+e]||(this.data["obj"+e]={}),this.data["opts"+e]||(this.data["opts"+e]={}),this.data["obj"+e][r._id])return this.renew(e,r);if(this.data["opts"+e].replace)for(let i in this.data["opts"+e].replace)this.replace(r,i,this.data["opts"+e].replace[i]);if(this.data["opts"+e].populate){let i=this.data["opts"+e].populate;if(Array.isArray(i))for(let o=0;o{a&&(Array.isArray(this.data["obj"+e][i][a])||(this.data["obj"+e][i][a]=[]),this.data["obj"+e][i][a].push(r),typeof o.sort=="function"&&this.data["obj"+e][i][a].sort(o.sort))};s(o.field(r,a=>{s(a)}))}if(this.data["opts"+e].query)for(let i in this.data["opts"+e].query){let o=this.data["opts"+e].query[i];typeof o.ignore=="function"&&o.ignore(r)||typeof o.allow=="function"&&!o.allow(r)||(this.data["obj"+e][i]||(this.data["obj"+e][i]=[]),this.data["obj"+e][i].push(r),typeof o.sort=="function"&&this.data["obj"+e][i].sort(o.sort))}for(let i=0;i=0;s--)this.data["obj"+e][i][o][s]._id==r._id&&this.data["obj"+e][i][o].splice(s,1);if(this.data["opts"+e].query){for(let i in this.data["opts"+e].query)for(let o=this.data["obj"+e][i].length-1;o>=0;o--)if(this.data["obj"+e][i][o]._id==r._id){this.data["obj"+e][i].splice(o,1);break}}}}constructor(e,r,i){this.store=e,this.http=r,this.core=i,console.warn("Mongo Service is deprecated"),this.core.onComplete("socket").then(o=>{this.socket=o,o.on("create",s=>{this.fetch(s.part,{force:!0,query:{_id:s._id}})}),o.on("update",s=>{this.fetch(s.part,{force:!0,query:{_id:s._id}})}),o.on("delete",s=>{this.remove(s.part,s)})})}static \u0275fac=function(r){return new(r||t)(_(Gt),_(Si),_(we))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var QB=(()=>{class t{core;replacements=[{from:"%20",to:" "}];hash={};done=!1;constructor(e){this.core=e,this.initialize()}initialize(){if(!this.core.window.location.hash){this.done=!0;return}this.load(),this.done=!0}load(){this.hash={};let e=this.core.window.location.hash.replace("#!#","").replace("#","").split("&");for(let r of e){let[i,o]=r.split("=");i=this.applyReplacements(i),o=this.applyReplacements(o),this.hash[i]=o}}applyReplacements(e){if(!e)return"";for(let r of this.replacements)e=e.split(r.from).join(r.to);return e}on(e,r){if(!this.done){setTimeout(()=>this.on(e,r),100);return}r(this.hash[e])}save(){let e=Object.entries(this.hash).map(([r,i])=>`${r}=${i}`).join("&");this.core.window.location.hash=e}set(e,r){this.hash[e]=r,this.save()}get(e){return this.hash[e]}clear(e){e?delete this.hash[e]:this.hash={},this.save()}static \u0275fac=function(r){return new(r||t)(_(we))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xh=(()=>{class t{componentFactoryResolver;appRef;injector;core;providedIn={};constructor(e,r,i,o){this.componentFactoryResolver=e,this.appRef=r,this.injector=i,this.core=o}appendById(e,r={},i){let o=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);this.projectComponentInputs(o,r),this.appRef.attachView(o.hostView);let s=o.hostView.rootNodes[0],a=this.core.document.getElementById(i);return a&&typeof a.appendChild=="function"&&a.appendChild(s),{nativeElement:s,componentRef:o}}appendComponent(e,r={},i=this.core.document.body){if(r.providedIn){if(this.providedIn[r.providedIn])return;this.providedIn[r.providedIn]=!0}let o=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);this.projectComponentInputs(o,r),this.appRef.attachView(o.hostView);let s=o.hostView.rootNodes[0];return i&&typeof i.appendChild=="function"&&i.appendChild(s),{nativeElement:s,componentRef:o}}getComponentRef(e,r={}){let i=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector);return this.projectComponentInputs(i,r),this.appRef.attachView(i.hostView),i}projectComponentInputs(e,r){if(r){let i=Object.getOwnPropertyNames(r);for(let o of i)e.instance[o]=r[o]}return e}static \u0275fac=function(r){return new(r||t)(_(Ut),_(rt),_(xe),_(we))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),K1=(()=>{class t{constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["lib-wrapper"]],standalone:!1,decls:8,vars:0,consts:[["id","bottomRight",1,"waw-alert-wrapper","waw-alert-wrapper-bottomRight"],["id","bottomLeft",1,"waw-alert-wrapper","waw-alert-wrapper-bottomLeft"],["id","topRight",1,"waw-alert-wrapper","waw-alert-wrapper-topRight"],["id","topLeft",1,"waw-alert-wrapper","waw-alert-wrapper-topLeft"],["id","topCenter",1,"waw-alert-wrapper","waw-alert-wrapper-topCenter"],["id","bottomCenter",1,"waw-alert-wrapper","waw-alert-wrapper-bottomCenter"],["id","center",1,"waw-alert-wrapper","waw-alert-wrapper-center"]],template:function(r,i){r&1&&(m(0,"div"),ke(1,"div",0)(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5)(7,"div",6),v())},styles:[".waw-alert-wrapper[_ngcontent-%COMP%]{z-index:99999;position:fixed;width:100%;pointer-events:none;display:flex;flex-direction:column}.waw-alert-wrapper-bottomLeft[_ngcontent-%COMP%]{left:0;bottom:0;text-align:left}.waw-alert-wrapper-bottomRight[_ngcontent-%COMP%]{right:0;bottom:0;text-align:right}.waw-alert-wrapper-topLeft[_ngcontent-%COMP%]{left:0;top:0;text-align:left}.waw-alert-wrapper-topRight[_ngcontent-%COMP%]{top:0;right:0;text-align:right}.waw-alert-wrapper-topCenter[_ngcontent-%COMP%]{top:0;left:0;right:0;text-align:center}.waw-alert-wrapper-bottomCenter[_ngcontent-%COMP%]{bottom:0;left:0;right:0;text-align:center}.waw-alert-wrapper-center[_ngcontent-%COMP%]{inset:0;text-align:center;justify-content:center;flex-flow:column;align-items:center}"]})}return t})(),T0=(()=>{class t{dom;core;config;alert;_container;constructor(e,r,i){if(this.dom=e,this.core=r,this.config=i,this.config||(this.config=xi),this.alert=this.config.alert,!this.alert)this.alert=Mh;else for(let o in Mh)this.alert[o]||(this.alert[o]=Mh[o]);this._container=this.dom.appendComponent(K1)}uniques={};shortcuts={tl:"topLeft",tc:"topCenter",tr:"topRight",r:"right",br:"bottomRight",bc:"bottomCenter",bl:"bottomLeft",l:"left",c:"center"};positionNumber={topLeft:3,topCenter:4,topRight:2,right:"",bottomRight:0,bottomCenter:5,bottomLeft:1,left:"",center:6};show(e){typeof e=="string"&&(e={text:e}),e||(e={}),e.type||(e.type="info");for(let o in this.alert)o=="class"?e[o]=e[o]+" "+this.alert[o]:typeof e[o]>"u"&&(e[o]=this.alert[o]);this.shortcuts[e.position]&&(e.position=this.shortcuts[e.position]),e.position||(e.position="bottomRight");var r;e.close=()=>{r&&r.componentRef.destroy(),e.component.nativeElement.remove(),typeof e.onClose=="function"&&e.onClose()};let i=!1;return typeof e.component=="string"&&this.alert.alerts[e.component]?(e.component=this.alert.alerts[e.component],i=!0):e.component=this.dom.appendById(Z1,e,e.position),typeof e.component=="function"&&(r=this.dom.appendComponent(e.component,e,this._container.nativeElement.children[0].children[this.positionNumber[e.position]||0])),e.unique&&(this.uniques[e.unique]&&this.uniques[e.unique].remove(),this.uniques[e.unique]=e.component.nativeElement),typeof e.timeout!="number"&&(e.timeout=2e3),e.timeout&&setTimeout(()=>{e.close()},e.timeout),e.component.nativeElement}open(e){this.show(e)}info(e){e.type="info",this.show(e)}success(e){e.type="success",this.show(e)}warning(e){e.type="warning",this.show(e)}error(e){e.type="error",this.show(e)}question(e){e.type="question",this.show(e)}destroy(){this.core.document.getElementById("bottomRight").innerHTML="",this.core.document.getElementById("bottomLeft").innerHTML="",this.core.document.getElementById("bottomCenter").innerHTML="",this.core.document.getElementById("topRight").innerHTML="",this.core.document.getElementById("topLeft").innerHTML="",this.core.document.getElementById("topCenter").innerHTML="",this.core.document.getElementById("center").innerHTML=""}static \u0275fac=function(r){return new(r||t)(_(xh),_(we),_(Gn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var A0=(()=>{class t{dom;core;config;_modal;constructor(e,r,i){this.dom=e,this.core=r,this.config=i,this.config||(this.config={}),this.config.modal||(this.config.modal={}),this.config.modal.modals||(this.config.modal.modals={}),this._modal=i.modal}show(e){if(this.locked)return;if((typeof e=="string"||typeof e=="function")&&(e={component:e}),(!e||typeof e!="object")&&(e={}),typeof e.component=="string"&&this._modal.modals[e.component]&&(e.component=this._modal.modals[e.component]),typeof e.component!="function"){console.log("This component does not exists.");return}e.class||(e.class="");for(let o in this.config.modal)o=="class"?e.class+=(e.class&&" "||"")+this.config.modal.class:e[o]||(e[o]=this._modal[o]);e.id=Math.floor(Math.random()*Date.now())+Date.now(),this.opened[e.id]=e,this.core.document.body.classList.add("modalOpened");let r,i;return e.close=()=>{i.componentRef.destroy(),r.nativeElement.remove(),typeof e.onClose=="function"&&e.onClose(),delete this.opened[e.id],Object.keys(this.opened).length||this.core.document.body.classList.remove("modalOpened")},typeof e.timeout=="number"&&e.timeout>0&&setTimeout(e.close,e.timeout),r=this.dom.appendComponent(Y1,e),i=this.dom.appendComponent(e.component,e,r.nativeElement.children[0].children[0].children[0]),r.nativeElement}open(e){this.show(e)}small(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="small",this.show(e)}mid(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="mid",this.show(e)}big(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="big",this.show(e)}full(e){(typeof e=="string"||typeof e=="function")&&(e={component:e}),e.size="full",this.show(e)}opened={};locked=!1;destroy(){if(!this.locked){for(let e in this.opened)this.opened[e].close();this.core.document.body.classList.remove("modalOpened")}}static \u0275fac=function(r){return new(r||t)(_(xh),_(we),_(Gn,8))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),J1=(()=>{class t{fs;constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=fe({type:t,selectors:[["lib-files"]],standalone:!1,decls:1,vars:1,consts:[["input",""],[4,"ngFor","ngForOf"],["type","file","name","file",3,"change","id","hidden","accept","multiple"]],template:function(r,i){r&1&&T(0,G1,3,4,"ng-container",1),r&2&&y("ngForOf",i.fs.files)},dependencies:[Be],encapsulation:2})}return t})(),KB=(()=>{class t{dom;core;http;added={};files=[];constructor(e,r,i){this.dom=e,this.core=r,this.http=i,this.dom.appendComponent(J1,{fs:this})}add(e){if(typeof e=="string"&&(e={id:e}),!e.id){console.log("You have to pass ID into file object");return}if(e.type=e.type||"image",typeof e.resize=="number"&&(e.resize={width:e.resize,height:e.resize}),this.added[e.id]&&(this.files=this.files.filter(r=>r.id!==e.id)),this.files.push(e),this.added[e.id]=e,e.save)return()=>{e.complete?.()}}change(e,r){let i=e.target;i.files&&(r.type==="image"?r.multiple?(r.multiple_cb&&(r.multiple_files=[],r.multiple_counter=i.files.length),Array.from(i.files).forEach(o=>this.process(o,r))):this.process(i.files[0],r):r.type==="file"?(r.multiple&&r.multiple_cb?.(Array.from(i.files).map(o=>({dataUrl:"",file:o}))),Array.from(i.files).forEach(o=>r.cb?.("",o)),(r.part||r.url)&&this.uploadFiles(r,i.files)):console.log("Provide type `image` or `file`"))}remove(e,r,i={},o=()=>{}){if(i.url=r,i.save)return()=>{this.http.post(i.api||`/api/${e}/file/delete`,i,o)};this.http.post(i.api||`/api/${e}/file/delete`,i,o)}uploadFiles(e,r,i=()=>{}){let o=new FormData;e.append?e.append(o,r):r.forEach((a,c)=>o.append(`file[${c}]`,a));let s=typeof e.body=="function"?e.body():e.body||{};Object.entries(s).forEach(([a,c])=>o.append(a,c)),e.save?e.complete=()=>{this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,o,a=>{e.resp?.(a),i(a)})}:this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,o,a=>{e.resp?.(a),i(a)})}image(e,r=()=>{}){if(e.save)return()=>{this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,e,r)};this.http.post(e.api||`/api/${e.part}/file${e.name?`/${e.name}`:""}`,e,r)}update(e,r,i){if(r.cb?.(e,i),r.multiple_cb&&(r.multiple_files.push({dataUrl:e,file:i}),--r.multiple_counter===0&&r.multiple_cb(r.multiple_files)),!r.part)return;let o=typeof r.body=="function"?r.body():r.body||{};o.dataUrl=e,r.save?r.complete=()=>{this.http.post(r.api||`/api/${r.part}/file${r.name?`/${r.name}`:""}`,o,s=>{r.cb?.(s)})}:this.http.post(r.api||`/api/${r.part}/file${r.name?`/${r.name}`:""}`,o,s=>{r.cb?.(s)})}process(e,r){if(!e.type.startsWith("image/")){r.cb?.(!1,e),r.multiple_cb&&(r.multiple_files.push({dataUrl:"",file:e}),--r.multiple_counter===0&&r.multiple_cb(r.multiple_files));return}r.resize&&(r.resize.width=r.resize.width||1920,r.resize.height=r.resize.height||1080);let i=new FileReader;i.onload=o=>{if(!r.resize)return this.update(o.target?.result,r,e);let s=this.core.document.createElement("canvas"),a=this.core.document.createElement("img");a.onload=()=>{if(a.width<=r.resize.width&&a.height<=r.resize.height)return this.update(o.target?.result,r,e);let c=r.resize.width/r.resize.height,l=a.width/a.height,u,d;l>c?(u=Math.min(r.resize.width,a.width),d=u/l):(d=Math.min(r.resize.height,a.height),u=d*l),s.width=u,s.height=d,s.getContext("2d").drawImage(a,0,0,u,d);let h=s.toDataURL("image/jpeg",1);this.update(h,r,e)},a.src=o.target?.result},i.readAsDataURL(e)}static \u0275fac=function(r){return new(r||t)(_(xh),_(we),_(Si))};static \u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),JB=(()=>{class t{core;variables={};_forms={};var={};constructor(e){this.core=e;let r=this.core.localStorage.getItem("css_variables");this.variables=r?JSON.parse(r):{};for(let i in this.variables)this.setProperty(i,this.variables[i])}form(e){return typeof e!="string"?{}:(this._forms[e]||(this._forms[e]={}),this._forms[e])}valid(e,r="email",i=0){let o={email:s=>/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,10})+$/.test(s||""),text:s=>typeof s=="string",array:s=>Array.isArray(s),object:s=>typeof s=="object"&&!Array.isArray(s)&&s!==null,number:s=>typeof s=="number",password:s=>{if(!s)return!1;switch(i){case 1:return/^((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9]))/.test(s||"");case 2:return/^(((?=.*[a-z])(?=.*[0-9]))|((?=.*[A-Z])(?=.*[0-9])))(?=.{8,})/.test(s||"");case 3:return/^((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]))(?=.{8,})/.test(s||"");case 4:return/^((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[@#$%&!-_]))(?=.{8,})/.test(s||"");default:return!!s}}};return o[r]?o[r](e):!1}level(e=""){if(!e)return 0;let r=0;return e.length>8&&r++,/[a-z]/.test(e)&&r++,/[A-Z]/.test(e)&&r++,/[1-9]/.test(e)&&r++,/[`!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?~]/.test(e)&&r++,r}save(){this.core.localStorage.setItem("css_variables",JSON.stringify(this.variables))}setProperty(e,r){this.core.document.documentElement.style.setProperty(e,r)}set(e,r={}){if(typeof r=="string"&&(r=r==="local"?{local:!0}:{host:r}),!(r.host&&this.core.window.location.host!==r.host)){for(let i in e){if(r.local)this.variables[i]=e[i];else if(this.variables[i])continue;this.setProperty(i,e[i])}r.local&&this.save()}}get(){return this.variables}remove(e){let r=Array.isArray(e)?e:e.split(" ");for(let i of r)delete this.variables[i];this.save()}arr(e=10,r="number"){let i=[];for(let o=0;o{class t{static forRoot(e=xi){return{ngModule:t,providers:[{provide:Gn,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=ue({type:t});static \u0275inj=le({providers:[{provide:Gn,useValue:xi},W1,x0,Tv(Av())],imports:[Fe,qt]})}return t})();var X1=["*"],eA=(t,n,e,r,i,o,s,a,c)=>({_primary:t,_secondary:n,_success:e,_danger:r,_warning:i,_info:o,_light:s,_dark:a,_link:c}),Qc=(()=>{class t{constructor(){this.type="primary",this.class="",this.disabled=!1,this.disableSubmit=!1,this.wClick=new G}clicked(){this.disabled||(typeof this.click=="function"&&this.click(),this.wClick.emit())}setDisabled(e){this.disabled=e}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=fe({type:t,selectors:[["wbutton"]],inputs:{type:"type",class:"class",disabled:"disabled",disableSubmit:"disableSubmit",click:"click"},outputs:{wClick:"wClick"},standalone:!1,ngContentSelectors:X1,decls:2,vars:16,consts:[[3,"click","ngClass","type","disabled"]],template:function(r,i){r&1&&(Ya(),m(0,"button",0),O("click",function(){return i.clicked()}),no(1),v()),r&2&&(zy("w-btn",i.class?" "+i.class:"",""),y("ngClass",Zy(6,eA,[i.type==="primary",i.type==="secondary",i.type==="success",i.type==="danger",i.type==="warning",i.type==="info",i.type==="light",i.type==="dark",i.type==="link"]))("type",i.click||i.disableSubmit?"button":"submit")("disabled",i.disabled))},dependencies:[fn],encapsulation:2})}}return t})();var Kc=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Fe]})}}return t})();function tA(t,n){if(t&1){let e=W();m(0,"wbutton",4),O("click",function(){let i=N(e).$implicit,o=g();return P(i.click(o.submition,o.close))}),A(1),v()}if(t&2){let e=n.$implicit;y("ngClass",e.class),p(),de(" ",e.label," ")}}var Yo=(()=>{class t{set(e){this._core.copy(e,this.submition),this._core.copy(e.data,this.submition.data)}constructor(e){this._core=e}static{this.\u0275fac=function(r){return new(r||t)(I(we))}}static{this.\u0275cmp=fe({type:t,selectors:[["ng-component"]],standalone:!1,decls:4,vars:3,consts:[["formRef",""],[3,"wSubmit","wChange","config","submition"],[1,"btn-action","btn-action_w95p"],["class","w-btn _primary",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"w-btn","_primary",3,"click","ngClass"]],template:function(r,i){if(r&1){let o=W();m(0,"wform",1,0),O("wSubmit",function(){return N(o),i.set(i.submition),i.submit(i.submition),P(i.close())})("wChange",function(){return N(o),i.set(i.submition),P(i.change(i.submition))}),v(),m(2,"div",2),T(3,tA,2,2,"wbutton",3),v()}r&2&&(y("config",i.form)("submition",i.submition),p(3),y("ngForOf",i.buttons))},styles:[".btn-action[_ngcontent-%COMP%]{padding:30px 0 0}.btn-action[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{width:100%;display:block}"]})}}return t})();var Jc=(()=>{class t{constructor(e){this._mongo=e}get getDoc(){return this.doc}change(){this._mongo.unique(this.module,this.doc,{name:this.field},e=>{this.doc[this.field]!==e&&(this.doc[this.field]=e)})}static{this.\u0275fac=function(r){return new(r||t)(I(S0))}}static{this.\u0275cmp=fe({type:t,selectors:[["app-modal-unique"]],standalone:!1,decls:1,vars:2,consts:[[3,"wChange","config","submition"]],template:function(r,i){r&1&&(m(0,"wform",0),O("wChange",function(){return i.change()}),v()),r&2&&y("config",i.form)("submition",i.getDoc)},encapsulation:2})}}return t})();var N0=(()=>{class t extends Wc{constructor(e,r,i,o){super({name:"form"},e,r,i,o),this.customforms=[],this.get().subscribe(s=>this.customforms.push(...s)),o.on("customform_create").subscribe(s=>{this.customforms.push(s)}),o.on("customform_delete").subscribe(s=>{this.customforms.splice(this.customforms.findIndex(a=>a._id===s._id),1)})}static{this.\u0275fac=function(r){return new(r||t)(_(Si),_(Gt),_(T0),_(we))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var P0=[{name:"Afrikaans",origin:"Afrikaans",code:"af"},{name:"Albanian",origin:"shqiptare",code:"sq"},{name:"Amharic",origin:"\u12A0\u121B\u122D\u129B",code:"am"},{name:"Arabic",origin:"\u0639\u0631\u0628\u064A",code:"ar"},{name:"Armenian",origin:"\u0570\u0561\u0575\u0565\u0580\u0565\u0576",code:"hy"},{name:"Assamese",origin:"\u0985\u09B8\u09AE\u09C0\u09DF\u09BE",code:"as"},{name:"Aymara",origin:"Aymara",code:"ay"},{name:"Azerbaijani",origin:"Az\u0259rbaycan",code:"az"},{name:"Bambara",origin:"U b'a don",code:"bm"},{name:"Basque",origin:"euskara",code:"eu"},{name:"Belarusian",origin:"\u0431\u0435\u043B\u0430\u0440\u0443\u0441\u043A\u0456",code:"be"},{name:"Bengali",origin:"\u09AC\u09BE\u0982\u09B2\u09BE",code:"bn"},{name:"Bhojpuri",origin:"\u092D\u094B\u091C\u092A\u0941\u0930\u0940",code:"bho"},{name:"Bosnian",origin:"bosanski",code:"bs"},{name:"Bulgarian",origin:"\u0431\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438",code:"bg"},{name:"Catalan",origin:"catal\xE0",code:"ca"},{name:"Cebuano",origin:"Cebuano",code:"ceb"},{name:"Chinese (Simplified)",origin:"\u7B80\u4F53\u4E2D\u6587\uFF09",code:"zh-CN"},{name:"Chinese (Traditional)",origin:"\u4E2D\u570B\u50B3\u7D71\u7684\uFF09",code:"zh-TW"},{name:"Corsican",origin:"Corsu",code:"co"},{name:"Croatian",origin:"Hrvatski",code:"hr"},{name:"Czech",origin:"\u010De\u0161tina",code:"cs"},{name:"Danish",origin:"dansk",code:"da"},{name:"Dhivehi",origin:"\u078B\u07A8\u0788\u07AC\u0780\u07A8",code:"dv"},{name:"Dogri",origin:"\u0921\u094B\u0917\u0930\u0940",code:"doi"},{name:"Dutch",origin:"Nederlands",code:"nl"},{name:"English",origin:"English",code:"en"},{name:"English (British)",origin:"English (British)",code:"en-GB"},{name:"English (Australian)",origin:"English (Australian)",code:"en-AU"},{name:"Esperanto",origin:"Esperanto",code:"eo"},{name:"Estonian",origin:"eesti keel",code:"et"},{name:"Ewe",origin:"A\u014Bgba",code:"ee"},{name:"Filipino (Tagalog)",origin:"Filipino (Tagalog)",code:"fil"},{name:"Finnish",origin:"Suomalainen",code:"fi"},{name:"French",origin:"Fran\xE7ais",code:"fr"},{name:"Frisian",origin:"Frysk",code:"fy"},{name:"Galician",origin:"galego",code:"gl"},{name:"Georgian",origin:"\u10E5\u10D0\u10E0\u10D7\u10E3\u10DA\u10D8",code:"ka"},{name:"German",origin:"Deutsch",code:"de"},{name:"Greek",origin:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",code:"el"},{name:"Guarani",origin:"guarani",code:"gn"},{name:"Gujarati",origin:"\u0A97\u0AC1\u0A9C\u0AB0\u0ABE\u0AA4\u0AC0",code:"gu"},{name:"Haitian Creole",origin:"Krey\xF2l ayisyen",code:"ht"},{name:"Hausa",origin:"Hausa",code:"ha"},{name:"Hawaiian",origin:"\u02BB\u014Clelo Hawai\u02BBi",code:"haw"},{name:"Hebrew",origin:"\u05E2\u05B4\u05D1\u05E8\u05B4\u05D9\u05EA",code:"he"},{name:"Hindi",origin:"\u0928\u0939\u0940\u0902",code:"hi"},{name:"Hmong",origin:"Hmong",code:"hmn"},{name:"Hungarian",origin:"Magyar",code:"hu"},{name:"Icelandic",origin:"\xEDslenskur",code:"is"},{name:"Igbo",origin:"Igbo",code:"ig"},{name:"Ilocano",origin:"Ilocano",code:"ilo"},{name:"Indonesian",origin:"bahasa Indonesia",code:"id"},{name:"Irish",origin:"Gaeilge",code:"ga"},{name:"Italian",origin:"Italiano",code:"it"},{name:"Japanese",origin:"\u65E5\u672C",code:"ja"},{name:"Javanese",origin:"basa jawa",code:"jv"},{name:"Kannada",origin:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",code:"kn"},{name:"Kazakh",origin:"\u049B\u0430\u0437\u0430\u049B",code:"kk"},{name:"Khmer",origin:"\u1781\u17D2\u1798\u17C2\u179A",code:"km"},{name:"Kinyarwanda",origin:"Kinyarwanda",code:"rw"},{name:"Konkani",origin:"\u0915\u094B\u0902\u0915\u0923\u0940",code:"gom"},{name:"Korean",origin:"\uD55C\uAD6D\uC778",code:"ko"},{name:"Krio",origin:"Kryo we de na di w\u0254l",code:"kri"},{name:"Kurdish",origin:"Kurd\xEE",code:"ku"},{name:"Kurdish (Sorani)",origin:"\u06A9\u0648\u0631\u062F\u06CC (\u0633\u06C6\u0631\u0627\u0646\u06CC)",code:"ckb"},{name:"Kyrgyz",origin:"\u041A\u044B\u0440\u0433\u044B\u0437\u0447\u0430",code:"ky"},{name:"Lao",origin:"\u0EC1\u0EAE\u0E87\u200B\u0E87\u0EB2\u0E99",code:"lo"},{name:"Latin",origin:"Latinus",code:"la"},{name:"Latvian",origin:"latviski",code:"lv"},{name:"Lingala",origin:"Lingala",code:"ln"},{name:"Lithuanian",origin:"lietuvi\u0173",code:"lt"},{name:"Luganda",origin:"Luganda",code:"lg"},{name:"Luxembourgish",origin:"l\xEBtzebuergesch",code:"lb"},{name:"Macedonian",origin:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438",code:"mk"},{name:"Maithili",origin:"\u092E\u0948\u0925\u093F\u0932\u0940",code:"mai"},{name:"Malagasy",origin:"Malagasy",code:"mg"},{name:"Malay",origin:"Melayu",code:"ms"},{name:"Malayalam",origin:"\u0D2E\u0D32\u0D2F\u0D3E\u0D33\u0D02",code:"ml"},{name:"Maltese",origin:"Malti",code:"mt"},{name:"Maori",origin:"Maori",code:"mi"},{name:"Marathi",origin:"\u092E\u0930\u093E\u0920\u0940",code:"mr"},{name:"Meiteilon (Manipuri)",origin:"\uABC3\uABE6\uABCF\uABC7\uABE6\uABCF\uABC2\uABE3\uABDF (\uABC3\uABC5\uABE4\uABC4\uABE8\uABD4\uABE4) \uABF4.",code:"mni-Mtei"},{name:"Mizo",origin:"Mizo",code:"lus"},{name:"Mongolian",origin:"\u041C\u043E\u043D\u0433\u043E\u043B",code:"mn"},{name:"Myanmar (Burmese)",origin:"\u1019\u103C\u1014\u103A\u1019\u102C (\u1017\u1019\u102C)\u104A",code:"my"},{name:"Nepali",origin:"\u0928\u0947\u092A\u093E\u0932\u0940",code:"ne"},{name:"Norwegian",origin:"norsk",code:"no"},{name:"Nyanja (Chichewa)",origin:"Nyanja (Chichewa)",code:"ny"},{name:"Odia (Oriya)",origin:"\u0B13\u0B21\u0B3F\u0B06 (\u0B13\u0B21\u0B3F\u0B06)",code:"or"},{name:"Oromo",origin:"Oromo",code:"om"},{name:"Pashto",origin:"\u067E\u069A\u062A\u0648",code:"ps"},{name:"Persian",origin:"\u0641\u0627\u0631\u0633\u06CC",code:"fa"},{name:"Polish",origin:"Polski",code:"pl"},{name:"Portuguese (Portugal, Brazil)",origin:"Portugu\xEAs (Portugal, Brasil)",code:"pt"},{name:"Punjabi",origin:"\u0A2A\u0A70\u0A1C\u0A3E\u0A2C\u0A40",code:"pa"},{name:"Quechua",origin:"Runasimi",code:"qu"},{name:"Romanian",origin:"Rom\xE2n\u0103",code:"ro"},{name:"Russian",origin:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",code:"ru"},{name:"Samoan",origin:"Samoa",code:"sm"},{name:"Sanskrit",origin:"\u0938\u0902\u0938\u094D\u0915\u0943\u0924",code:"sa"},{name:"Scots Gaelic",origin:"G\xE0idhlig na h-Alba",code:"gd"},{name:"Sepedi",origin:"Sepedi",code:"nso"},{name:"Serbian",origin:"\u0421\u0440\u043F\u0441\u043A\u0438",code:"sr"},{name:"Sesotho",origin:"Senyesemane",code:"st"},{name:"Shona",origin:"Shona",code:"sn"},{name:"Sindhi",origin:"\u0633\u0646\u068C\u064A",code:"sd"},{name:"Sinhala (Sinhalese)",origin:"\u0DC3\u0DD2\u0D82\u0DC4\u0DBD (\u0DC3\u0DD2\u0D82\u0DC4\u0DBD)",code:"si"},{name:"Slovak",origin:"slovensk\xFD",code:"sk"},{name:"Slovenian",origin:"Sloven\u0161\u010Dina",code:"sl"},{name:"Somali",origin:"Somali",code:"so"},{name:"Spanish",origin:"espa\xF1ol",code:"es"},{name:"Sundanese",origin:"Sundanese",code:"su"},{name:"Swahili",origin:"kiswahili",code:"sw"},{name:"Swedish",origin:"svenska",code:"sv"},{name:"Tagalog (Filipino)",origin:"Tagalog (Filipino)",code:"tl"},{name:"Tajik",origin:"\u0442\u043E\u04B7\u0438\u043A\u04E3",code:"tg"},{name:"Tamil",origin:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",code:"ta"},{name:"Tatar",origin:"\u0422\u0430\u0442\u0430\u0440",code:"tt"},{name:"Telugu",origin:"\u0C24\u0C46\u0C32\u0C41\u0C17\u0C41",code:"te"},{name:"Thai",origin:"\u0E41\u0E1A\u0E1A\u0E44\u0E17\u0E22",code:"th"},{name:"Tigrinya",origin:"\u1275\u130D\u122A\u129B",code:"ti"},{name:"Tsonga",origin:"Tsonga",code:"ts"},{name:"Turkish",origin:"T\xFCrk",code:"tr"},{name:"Turkmen",origin:"T\xFCrkmenler",code:"tk"},{name:"Twi (Akan)",origin:"Twi (Will) .",code:"ak"},{name:"Ukrainian",origin:"\u0443\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",code:"uk"},{name:"Urdu",origin:"\u0627\u0631\u062F\u0648",code:"ur"},{name:"Uyghur",origin:"\u0626\u06C7\u064A\u063A\u06C7\u0631",code:"ug"},{name:"Uzbek",origin:"o'zbek",code:"uz"},{name:"Vietnamese",origin:"Ti\u1EBFng Vi\u1EC7t",code:"vi"},{name:"Welsh",origin:"Cymraeg",code:"cy"},{name:"Xhosa",origin:"isiXhosa",code:"xh"},{name:"Yiddish",origin:"\u05D9\u05D9\u05D3\u05D9\u05E9",code:"yi"},{name:"Yoruba",origin:"Yoruba",code:"yo"},{name:"Zulu",origin:"Zulu",code:"zu"}];var Ai=(()=>{class t{constructor(e,r,i){this.store=e,this.http=r,this._core=i,this.allLanguages=P0,this.appId=mi.appId,this.words=[],this.pages=[],this.languages=mi.languages?mi.languages:[{code:"en",name:"English",origin:"English"}],this.language=this.languages.length?this.languages[0]:{code:"en",name:"English",origin:"English"},this.translates={},this.resets={},this.now=Date.now(),this._created={},this._wordsLoaded=!1,this.store.getJson("translates",o=>{o&&(this.translates=o||{})}),this._core.on("languages").subscribe(o=>{this.languages=o}),this.store.getJson("words",o=>{o&&(this.words=o)}),this.store.getJson("language",o=>{o&&this.set_language(o)}),this.http.get("/api/translate/get"+(this.appId?"/"+this.appId:""),o=>{o&&(this.translates=o,this.store.setJson("translates",this.translates))}),this.http.get("/api/word/get"+(this.appId?"/"+this.appId:""),o=>{if(o){this.words=o,this.store.setJson("words",this.words);for(let s=0;s=0;r--)this.words[r]._id==e._id&&this.words.splice(r,1);this.http.post("/api/word/delete"+(this.appId?"/"+this.appId:""),{_id:e._id}),this.http.post("/api/translate/delete"+(this.appId?"/"+this.appId:""),{slug:e.slug})}set_language(e){e&&(this.http.post("/api/translate/set",{appId:this.appId,language:e.code}),this.language=e,this.reset(),this.store.setJson("language",e))}next_language(){for(let e=0;ei?.slug||"").filter(i=>!!i).indexOf(e)<0&&this.create_word(e),this._slug2name(e))):""}create_word(e){this._created[e]||(this._wordsLoaded?(this._created[e]=!0,this.http.post("/api/word/create",{appId:this.appId,slug:e,word:this._slug2name(e),page:e.split(".")[0],lang:this.language.code},r=>{r&&this.words.push(r)})):setTimeout(()=>{this.create_word(e)},500))}update_translate(e,r,i){this._core.afterWhile(this,()=>{if(this.http.post("/api/translate/create",{appId:this.appId,slug:e,translate:i,lang:r}),this.store.setJson("translates",this.translates),this.language.code===r&&Array.isArray(this.resets[e]))for(let o=0;o{let r="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(this.translates)),i=document.createElement("a");i.href=r,i.download="translate.json",i.click(),i.remove()})}_slug2name(e){return e.substr(e.indexOf(".")+1)}static{this.\u0275fac=function(r){return new(r||t)(_(Gt),_(Si),_(we))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var R0=(()=>{class t{constructor(e,r,i,o,s,a,c){this.componentFactoryResolver=e,this._cfs=r,this._translate=i,this._modal=o,this._store=s,this.appRef=a,this.injector=c,this.appId=mi.appId,this._injectedComponent={},this.templateFields={},this.customTemplateFields={},this._templateComponent={},this.forms=[],this.formIds=[],this._store.getJson("formIds",l=>{Array.isArray(l)&&this.formIds.push(...l)})}getTemplateFields(e){return this.templateFields[e]||["Placeholder","Label"]}setTemplateFields(e,r,i={}){this.templateFields[e]=r,this.customTemplateFields[e]=b(b({},this.customTemplateFields[e]||{}),i)}getCustomTemplateFields(e){return this.customTemplateFields[e]||{}}injectComponent(e,r,i=["Placeholder","Label"],o={}){if(!this._injectedComponent[e]){this._injectedComponent[e]=!0,this.templateFields[e]=i,this.customTemplateFields[e]=o;let a=this.componentFactoryResolver.resolveComponentFactory(r).create(this.injector);this.appRef.attachView(a.hostView);let c=a.hostView.rootNodes[0];document.body.appendChild(c)}}addTemplateComponent(e,r){this._templateComponent[e]||(this._templateComponent[e]=r)}getTemplateComponent(e){return this._templateComponent[e]}getTemplateComponentsNames(){let e=[];for(let r in this._templateComponent)e.push(r);return e}translateForm(e){if(e.title){e.title=this._translate.translate(`Form_${e.formId}.${e.title}`,r=>{e.title=r});for(let r of e.components)for(let i of r.fields||[])this.translateFormComponent(e,i)}}translateFormComponent(e,r){let i=r.value;typeof i=="string"&&!r.skipTranslation&&(r.value=this._translate.translate(`Form_${e.formId}.${i}`,o=>{r.value=o}))}getDefaultForm(e,r=["name","description"]){return this.formIds.indexOf(e)===-1&&(this.formIds.push(e),this._store.setJson("formIds",this.formIds)),{id:e,components:r.map((o,s)=>({name:o.includes(".")?o.split(".")[1]:"Text",key:o,focused:!s,fields:[{name:"Placeholder",value:"Enter your "+o.split(".")[0]},{name:"Label",value:o.split(".")[0].capitalize()}]}))}}getForm(e,r){if(r&&this.forms.map(o=>o.formId).indexOf(r?.formId)===-1&&this.forms.push(r),this.formIds.indexOf(e)===-1&&(this.formIds.push(e),this._store.setJson("formIds",this.formIds)),r=r||this.forms.find(o=>o.formId===e),r=r||this.getDefaultForm(e),r)for(let o of r.components)o.root=!0;let i=this._cfs.customforms.filter(o=>o.active&&o.formId===e);r.formId=e;for(let o of i){r.title=r.title||o.name,r.class=r.class||o.class;for(let s of o.components)s.root=!1,r.components.push(s)}return this.translateForm(r),r}modal(e,r=[],i={},o=a=>{},s={}){return new Promise(a=>{this._modal.show(H(b({},s),{component:Yo,class:"forms_modal",size:"big",form:e,buttons:Array.isArray(r)?r:[r],submition:i,onClose:function(){a(this.submition)},submit:c=>{a(c)},change:c=>{typeof o=="function"&&o(c)}}))})}modalDocs(e){return new Promise(r=>{let i={docs:JSON.stringify(e.length?e:[],null,4)};this._modal.show({component:Yo,class:"forms_modal",size:"big",submition:i,form:{title:"Modify content of documents",components:[{name:"Code",key:"docs",fields:[{name:"Placeholder",value:"fill content of documents"}]}]},onClose:function(){let o=i.docs?JSON.parse(i.docs):[];r(o)},submit:()=>{let o=i.docs?JSON.parse(i.docs):[];r(o)}})})}modalUnique(e,r,i,o="",s=()=>{}){this._modal.show({component:Jc,form:this.getDefaultForm("unique",[r+(o?"."+o:"")]),module:e,field:r,doc:i,class:"forms_modal",onClose:s})}static{this.\u0275fac=function(r){return new(r||t)(_(Ut),_(N0),_(Ai),_(A0),_(Gt),_(rt),_(xe))}}static{this.\u0275prov=D({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var iA=(t,n,e,r,i,o,s,a)=>({field:t,config:n,component:e,key:r,submition:i,wSubmit:o,wChange:s,wClick:a}),oA=t=>({$implicit:t});function sA(t,n){if(t&1){let e=W();m(0,"form-component",4),O("wSubmit",function(){N(e);let i=g(3);return P(i.wSubmit.emit(i.submition))})("wChange",function(){N(e);let i=g(3);return P(i.wChange.emit())})("wClick",function(){N(e);let i=g(3);return P(i.wClick.emit())}),v()}if(t&2){let e=g(),r=e.$implicit,i=e.index,o=g(2);cn(o.config.formId+"_"+o.index+"_"+i+" "+(o.component.class||"")),y("component",r)("submition",o.submition)("config",o.config)("index",o.index+"_"+i)}}function aA(t,n){if(t&1&&(ye(0),T(1,sA,1,6,"form-component",3),ve()),t&2){let e=g(2);p(),y("ngIf",!e.component.hidden)}}function cA(t,n){if(t&1&&(ye(0),m(1,"div",1),T(2,aA,2,1,"ng-container",2),v(),ve()),t&2){let e=g();p(),cn(e.component.class||""),p(),y("ngForOf",e.component.components)}}function lA(t,n){t&1&&_t(0)}function uA(t,n){if(t&1&&(ye(0),m(1,"div",5),T(2,lA,1,0,"ng-container",6),v(),ve()),t&2){let e=g();p(2),y("ngTemplateOutlet",e.template)("ngTemplateOutletContext",kn(11,oA,Wy(2,iA,e.field,e.config,e.component,e.localKey,e.localSubmition,e.submit.bind(e),e.change.bind(e),e.click.bind(e))))}}var k0=(()=>{class t{submit(){this.wSubmit.emit(this.submition)}change(){this.wChange.emit(this.submition)}click(){this.wClick.emit(this.submition)}get hasComponents(){return Array.isArray(this.component.components)}get template(){return this._form.getTemplateComponent(this.component.name)}constructor(e){this._form=e,this.submition={},this.wSubmit=new G,this.wChange=new G,this.wClick=new G,this.field={}}ngOnInit(){if(Array.isArray(this.component.fields))for(let r of this.component.fields)this.field[r.name]=r.value;this.localSubmition=this.submition;let e=(this.component.key||"")?.split(".");for(;e.length>1;){let r=e.shift();if(r.endsWith("[]")){r=r.replace("[]","");let i=this._getIndex();for(this.localSubmition[r]=this.localSubmition[r]||[];i+1>this.localSubmition[r].length;)this.localSubmition[r].push({});this.localSubmition=this.localSubmition[r][i]}else this.localSubmition=this.localSubmition[this.localKey]}this.localKey=e[0]}_getIndex(e=this.config.components){for(let r of e)if(r.components){if(this._getIndex(r.components)>=0){for(let o=0;o=0)return r.components.indexOf(this.component)}return-1}static{this.\u0275fac=function(r){return new(r||t)(I(R0))}}static{this.\u0275cmp=fe({type:t,selectors:[["form-component"]],inputs:{index:"index",config:"config",component:"component",submition:"submition"},outputs:{wSubmit:"wSubmit",wChange:"wChange",wClick:"wClick"},standalone:!1,decls:2,vars:2,consts:[[4,"ngIf"],[1,"form-components-container"],[4,"ngFor","ngForOf"],["class","w-forms__component",3,"class","component","submition","config","index","wSubmit","wChange","wClick",4,"ngIf"],[1,"w-forms__component",3,"wSubmit","wChange","wClick","component","submition","config","index"],[1,"form-container"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(r,i){r&1&&T(0,cA,3,3,"ng-container",0)(1,uA,3,13,"ng-container",0),r&2&&(y("ngIf",i.hasComponents),p(),y("ngIf",i.component.name&&i.template&&(!i.component.key||i.localKey&&i.localSubmition)))},dependencies:[Be,st,ii,t],styles:["[_nghost-%COMP%]{position:relative}.w-forms[_ngcontent-%COMP%]{position:relative;padding:0!important;background-color:red}.w-forms__component[_ngcontent-%COMP%]{align-items:end;margin:0 0 10px}.w-forms__level[_ngcontent-%COMP%]{top:3px;right:5px;position:absolute;display:inline-block;color:var(--c-text-secondary);font-size:22px;line-height:calc(var(--fs) + 4px);letter-spacing:var(--letter-spacing);transition:var(--transition)}.w-forms__level._sky[_ngcontent-%COMP%]{color:var(--c-info)}.w-forms__level._orange[_ngcontent-%COMP%]{color:var(--c-warn)}.w-forms__level._green[_ngcontent-%COMP%]{color:var(--c-success)}.w-forms__input[_ngcontent-%COMP%]{padding-right:35px}.w-forms__input-block[_ngcontent-%COMP%]{position:relative}.w-forms__toggle[_ngcontent-%COMP%]{display:flex;position:absolute;right:10px;bottom:10px;color:var(--c-placeholder);transform:translateY(-50%);cursor:pointer}.w-forms__toggle[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:21px}.w-forms[_ngcontent-%COMP%] .icon-visibility[_ngcontent-%COMP%]{color:var(--c-primary)}"]})}}return t})();function fA(t,n){if(t&1&&(m(0,"h1",4),A(1),v()),t&2){let e=g();p(),Ie(e.config.title)}}function hA(t,n){if(t&1){let e=W();m(0,"form-component",6),O("wSubmit",function(){N(e);let i=g(2);return P(i.onSubmit())})("wChange",function(){N(e);let i=g(2);return P(i.onChange())})("wClick",function(){N(e);let i=g(2);return P(i.onClick())}),v()}if(t&2){let e=g(),r=e.$implicit,i=e.index,o=g();cn(o.config.formId+"_"+i+" "+(r.class||"")+" "+o.config.formId),y("component",r)("submition",o.submition)("config",o.config)("index",""+i)}}function pA(t,n){if(t&1&&(ye(0),T(1,hA,1,6,"form-component",5),ve()),t&2){let e=n.$implicit;p(),y("ngIf",!e.hidden)}}var Th=(()=>{class t{constructor(e){this._core=e,this.submition={},this.wChange=new G,this.wSubmit=new G}ngAfterViewInit(){this.submition.data=this.submition.data||{}}component(e,r=this.config.components){for(let i of r){if(i.key===e)return i;if(i.components?.length){let o=this.component(e,i.components);if(o)return o}}return!1}onSubmit(){this._core.afterWhile(this,()=>{for(let e of this.config.components)if(e.key&&e.required&&(e.valid&&!e.valid()||!e.valid&&!this.submition[e.key])){typeof e.focus=="function"&&e.focus();return}this.wSubmit.emit(this.submition)})}onChange(){this._core.afterWhile(this,()=>{this.wChange.emit(this.submition)})}onClick(){}static{this.\u0275fac=function(r){return new(r||t)(I(we))}}static{this.\u0275cmp=fe({type:t,selectors:[["wform"]],inputs:{config:"config",submition:"submition"},outputs:{wChange:"wChange",wSubmit:"wSubmit"},standalone:!1,decls:4,vars:2,consts:[[1,"w-forms"],["class","w-forms__title",4,"ngIf"],[3,"ngSubmit"],[4,"ngFor","ngForOf"],[1,"w-forms__title"],["class","w-forms__component",3,"class","component","submition","config","index","wSubmit","wChange","wClick",4,"ngIf"],[1,"w-forms__component",3,"wSubmit","wChange","wClick","component","submition","config","index"]],template:function(r,i){r&1&&(m(0,"div",0),T(1,fA,2,1,"h1",1),m(2,"form",2),O("ngSubmit",function(){return i.onSubmit()}),T(3,pA,2,1,"ng-container",3),v()()),r&2&&(p(),y("ngIf",i.config.title),p(2),y("ngForOf",i.config.components))},dependencies:[Be,st,k0],encapsulation:2})}}return t})();var F0=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Fe,Kc]})}}return t})();Hd(Yo,[fn,Be,Qc,Th],[]);Hd(Jc,[Th],[]);var L0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(gt))}}static{this.\u0275dir=oe({type:t,selectors:[["ng-template","cell",""]],inputs:{cell:"cell"},standalone:!1})}}return t})(),V0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(gt))}}static{this.\u0275dir=oe({type:t,selectors:[["ng-template","sort",""]],inputs:{cell:"cell"},standalone:!1})}}return t})(),j0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(gt))}}static{this.\u0275dir=oe({type:t,selectors:[["ng-template","actions",""]],standalone:!1})}}return t})(),B0=(()=>{class t{constructor(e){this.template=e}static{this.\u0275fac=function(r){return new(r||t)(I(gt))}}static{this.\u0275dir=oe({type:t,selectors:[["ng-template","customEdit",""]],standalone:!1})}}return t})();var U0=(()=>{class t{transform(e,r,i,o){if(!Array.isArray(e))return[];if(r.perPage===-1)return e;e=e.slice();for(let s=0;ss[i.title]a[i.title]?i.direction=="desc"?-1:1:0),e.slice((r.page-1)*r.perPage,r.page*r.perPage)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275pipe=Pn({name:"perPage",type:t,pure:!0,standalone:!1})}}return t})();var mA=t=>({$implicit:t});function yA(t,n){if(t&1){let e=W();m(0,"div",19)(1,"input",20),O("keyup.enter",function(){N(e);let i=g();return i.search(),P(i.searchShow=!1)})("ngModelChange",function(){N(e);let i=g();return P(i.searching())}),io("ngModelChange",function(i){N(e);let o=g();return Qa(o.searching_text,i)||(o.searching_text=i),P(i)}),v(),m(2,"span",21),O("click",function(){N(e);let i=g();return i.search(),P(i.searchShow=!1)}),A(3," search "),v()()}if(t&2){let e=g();he("table-search--active",e.searchShow),p(),ro("ngModel",e.searching_text)}}function vA(t,n){if(t&1){let e=W();m(0,"div",22)(1,"span",23),O("click",function(){N(e);let i=g();return P(i.searchShow=!0)}),A(2," search "),v()()}}function _A(t,n){if(t&1&&(m(0,"i",27),A(1),v()),t&2){let e=g(2).$implicit;y("title",e.icon),p(),de(" ",e.icon," ")}}function wA(t,n){if(t&1&&(m(0,"span"),A(1),v()),t&2){let e=g(2).$implicit;p(),Ie(e.text)}}function CA(t,n){if(t&1){let e=W();m(0,"wbutton",25),O("click",function(){N(e);let i=g().$implicit;return P(i.click())}),T(1,_A,2,2,"i",26)(2,wA,2,1,"span",11),v()}if(t&2){let e=g().$implicit;cn(e.class),y("disableSubmit",!0),p(),y("ngIf",e.icon),p(),y("ngIf",e.text)}}function bA(t,n){if(t&1&&(ye(0),T(1,CA,3,5,"wbutton",24),ve()),t&2){let e=n.$implicit,r=g(2);p(),y("ngIf",r.config.create&&e)}}function DA(t,n){if(t&1&&(ye(0),T(1,bA,2,1,"ng-container",17),ve()),t&2){let e=g();p(),y("ngForOf",e.config.headerButtons)}}function EA(t,n){if(t&1){let e=W();m(0,"wbutton",28),O("click",function(){N(e);let i=g();return P(i.config.create())}),A(1," + "),m(2,"span"),A(3,"Add new"),v()()}t&2&&y("disableSubmit",!0)}function IA(t,n){t&1&&(m(0,"th"),A(1,"No."),v())}function MA(t,n){t&1&&(m(0,"span",32),A(1," keyboard_backspace "),v())}function xA(t,n){if(t&1){let e=W();m(0,"th",29)(1,"div",30),O("click",function(){let i=N(e).$implicit,o=g();return P(o.sort(i))}),m(2,"span"),A(3),v(),T(4,MA,2,0,"span",31),v()()}if(t&2){let e=n.$implicit,r=g();p(),he("_sortActiveDown",r.sort_type.direction==="desc"&&e.field===r.sort_type.title)("_sortActiveUp",r.sort_type.direction==="asc"&&e.field===r.sort_type.title),p(2),Ie(e.title),p(),y("ngIf",r.sortable[e.field])}}function SA(t,n){t&1&&_t(0)}function TA(t,n){if(t&1&&T(0,SA,1,0,"ng-container",34),t&2){let e=g(2);y("ngTemplateOutlet",e.action.template)}}function AA(t,n){t&1&&A(0,"Actions")}function OA(t,n){t&1&&_t(0)}function NA(t,n){if(t&1&&(m(0,"th"),T(1,TA,1,1,"ng-template",null,0,ln)(3,AA,1,0,"ng-template",null,1,ln)(5,OA,1,0,"ng-container",33),v()),t&2){let e=Tt(2),r=Tt(4),i=g();p(5),y("ngIf",i.action)("ngIfThen",e)("ngIfElse",r)}}function PA(t,n){if(t&1&&(m(0,"td"),A(1),v()),t&2){let e=g().$implicit;p(),Ie(e.num)}}function RA(t,n){if(t&1&&(m(0,"td"),A(1),v()),t&2){let e=g().$implicit,r=g().$implicit;dr("data-label",e.title+":\xA0"),p(),de(" ",r[e.field]," ")}}function kA(t,n){t&1&&_t(0)}function FA(t,n){if(t&1&&(m(0,"td"),T(1,kA,1,0,"ng-container",36),v()),t&2){let e=g().$implicit,r=g().$implicit,i=g();dr("data-label",e.title+":\xA0"),p(),y("ngTemplateOutlet",i.custom_cell[e.field])("ngTemplateOutletContext",kn(3,mA,r))}}function LA(t,n){t&1&&_t(0)}function VA(t,n){if(t&1&&(ye(0),T(1,RA,2,2,"ng-template",null,2,ln)(3,FA,2,5,"ng-template",null,3,ln)(5,LA,1,0,"ng-container",33),ve()),t&2){let e=n.$implicit,r=Tt(2),i=Tt(4),o=g(2);p(5),y("ngIf",o.custom_cell[e.field])("ngIfThen",i)("ngIfElse",r)}}function jA(t,n){if(t&1){let e=W();m(0,"i",44),O("click",function(){N(e);let i=g(2).$implicit,o=g(3).$implicit;return P(i.click(o))}),A(1),v()}if(t&2){let e=g(2).$implicit;y("title",e.icon),p(),de(" ",e.icon," ")}}function BA(t,n){if(t&1&&(m(0,"a",45)(1,"i",27),A(2),v()()),t&2){let e=g(2).$implicit;y("href",e.ahref,Fa)("target",e.target||"_blank"),p(),y("title",e.icon),p(),de(" ",e.icon," ")}}function UA(t,n){if(t&1&&(m(0,"a",45)(1,"i",27),A(2),v()()),t&2){let e=g(2).$implicit,r=g(3).$implicit;y("href",e.ahrefFunc(r),Fa)("target",e.target||"_blank"),p(),y("title",e.icon),p(),de(" ",e.icon," ")}}function $A(t,n){if(t&1&&(m(0,"a",46)(1,"i",27),A(2),v()()),t&2){let e=g(2).$implicit;y("routerLink",e.href),p(),y("title",e.icon),p(),de(" ",e.icon," ")}}function HA(t,n){if(t&1&&(m(0,"a",46)(1,"i",27),A(2),v()()),t&2){let e=g(2).$implicit,r=g(3).$implicit;y("routerLink",e.hrefFunc(r)),p(),y("title",e.icon),p(),de(" ",e.icon," ")}}function zA(t,n){if(t&1&&(ye(0),T(1,jA,2,2,"i",41)(2,BA,3,4,"a",42)(3,UA,3,4,"a",42)(4,$A,3,3,"a",43)(5,HA,3,3,"a",43),ve()),t&2){let e=g().$implicit;p(),y("ngIf",!e.ahref&&!e.ahrefFunc&&!e.href&&!e.hrefFunc),p(),y("ngIf",e.href),p(),y("ngIf",e.ahrefFunc),p(),y("ngIf",e.href),p(),y("ngIf",e.hrefFunc)}}function qA(t,n){if(t&1&&(ye(0),T(1,zA,6,5,"ng-container",11),ve()),t&2){let e=n.$implicit;p(),y("ngIf",e)}}function GA(t,n){if(t&1&&(ye(0),T(1,qA,2,1,"ng-container",17),ve()),t&2){let e=g(3);p(),y("ngForOf",e.config.buttons)}}function WA(t,n){if(t&1){let e=W();m(0,"i",47),O("click",function(){N(e);let i=g(2).$implicit,o=g();return P(o.config.update(i))}),A(1," edit "),v()}}function ZA(t,n){if(t&1){let e=W();m(0,"i",48),O("click",function(){N(e);let i=g(2).$implicit,o=g();return P(o.config.delete(i))}),A(1," delete_outline "),v()}}function YA(t,n){if(t&1&&(m(0,"td",37)(1,"div",38),T(2,GA,2,1,"ng-container",11)(3,WA,2,0,"i",39)(4,ZA,2,0,"i",40),v()()),t&2){let e=g(2);p(2),y("ngIf",e.config.buttons),p(),y("ngIf",e.config.update),p(),y("ngIf",e.config.delete)}}function QA(t,n){if(t&1&&(m(0,"tr"),T(1,PA,2,1,"td",11)(2,VA,6,3,"ng-container",17)(3,YA,5,3,"td",35),v()),t&2){let e=g();p(),y("ngIf",e.config.num),p(),y("ngForOf",e.columns),p(),y("ngIf",e.config.delete||e.config.update||e.config.buttons)}}function KA(t,n){if(t&1){let e=W();m(0,"div",60)(1,"div",61),O("click",function(){let i=N(e).$implicit,o=g(3);return P(o.changePerPage(i))}),A(2),v()()}if(t&2){let e=n.$implicit,r=g(3);p(),he("selected",r.config.perPage===e),p(),de(" ",e," ")}}function JA(t,n){if(t&1){let e=W();m(0,"div",60)(1,"div",61),O("click",function(){N(e);let i=g(3);return P(i.changePerPage(-1))}),A(2," All "),v()()}if(t&2){let e=g(3);p(),he("selected",e.config.perPage===-1)}}function XA(t,n){if(t&1&&(m(0,"div",62),A(1),v()),t&2){let e=g(3);p(),de(" Page ",e.config.page," ")}}function eO(t,n){if(t&1&&(m(0,"div",62)(1,"span"),A(2),v(),m(3,"span"),A(4," of "),v(),m(5,"span"),A(6),hr(7,"search"),v()()),t&2){let e,r=g(3);p(2),$d("",(r.config.page-1)*r.config.perPage+1," - ",r.config.page*r.config.perPage>(r.rows==null?null:r.rows.length)&&(r.rows==null?null:r.rows.length)||r.config.page*r.config.perPage,""),p(4),Ie((e=ti(7,3,r.rows,r.searching_text,r.config.searchBy||"title"))==null?null:e.length)}}function tO(t,n){if(t&1){let e=W();m(0,"div",52)(1,"div",53),A(2,"Showing items per page"),v(),m(3,"div",54),O("clickOutside",function(){N(e);let i=g(2);return P(i.select_page_size=!1)}),m(4,"div",55),O("click",function(){N(e);let i=g(2);return P(i.select_page_size=!i.select_page_size)}),A(5),v(),m(6,"div",56),T(7,KA,3,3,"div",57)(8,JA,3,2,"div",58),v()(),T(9,XA,2,1,"div",59)(10,eO,8,7,"div",59),v()}if(t&2){let e=g(2);p(3),he("open",e.select_page_size),p(2),de(" ",e.config.perPage===-1?"All":e.config.perPage," "),p(2),y("ngForOf",e.config.pageSizeOptions),p(),y("ngIf",e.config.allDocs),p(),y("ngIf",e.config.perPage>=0&&!e.config.allDocs),p(),y("ngIf",e.config.perPage>=0&&e.config.allDocs)}}function nO(t,n){if(t&1){let e=W();m(0,"div",63)(1,"wbutton",64),O("click",function(){N(e);let i=g(2);return P(i.config.page=1)}),m(2,"span",65),A(3,"keyboard_double_arrow_left"),v()(),m(4,"wbutton",66),O("click",function(){N(e);let i=g(2);return P(i.previous())}),m(5,"span",65),A(6,"chevron_left"),v()(),m(7,"wbutton",67),O("click",function(){N(e);let i=g(2);return P(i.next())}),m(8,"span",65),A(9,"chevron_right"),v()(),m(10,"wbutton",68),O("click",function(){N(e);let i=g(2);return P(i.lastPage())}),m(11,"span",65),A(12,"keyboard_double_arrow_right"),v()()()}if(t&2){let e=g(2);p(),y("disabled",e.config.page===1),p(3),y("disabled",e.config.page===1),p(3),y("disabled",e.config.page*e.config.perPage>(e.rows==null?null:e.rows.length)),p(3),y("disabled",e.isLast())}}function rO(t,n){if(t&1){let e=W();m(0,"div",63)(1,"wbutton",66),O("click",function(){N(e);let i=g(2);return P(i.previous())}),m(2,"span",65),A(3,"chevron_left"),v()(),m(4,"wbutton",67),O("click",function(){N(e);let i=g(2);return P(i.next())}),m(5,"span",65),A(6,"chevron_right"),v()()()}if(t&2){let e=g(2);p(),y("disabled",e.config.page===1),p(3),y("disabled",e.rows.length!==e.config.perPage)}}function iO(t,n){if(t&1&&(m(0,"tfoot",49),T(1,tO,11,7,"div",50)(2,nO,13,4,"div",51)(3,rO,7,2,"div",51),v()),t&2){let e=g();p(),y("ngIf",e.config.perPage),p(),y("ngIf",e.config.perPage!==-1&&e.config.allDocs),p(),y("ngIf",!e.config.allDocs)}}var G3=(()=>{class t{constructor(e,r){this._router=e,this._store=r,this.tableId="table_"+this._router.url.split("/").filter(i=>i&&i.length!==24).join("/"),this.config={},this.columns=[],this.rows=[],this.value="_id",this.title="",this.now=Date.now(),this.searchShow=!1,this.searching_text="",this.filter_filter="",this.onSearch=new G,this.custom_cell={},this.sort_type={},this.sortable={},this.select_page_size=!1}ngOnInit(){this.default_config();for(let e=0;e{e&&this.changePerPage(Number(e))})}default_config(){this.config.pageSizeOptions||(this.config.pageSizeOptions=[1,10,20,50]),this.config.perPage||(this.config.perPage=-1),this.config.page||(this.config.page=1),this.config.searchable||(this.config.searchable=!1),typeof this.config.allDocs!="boolean"&&(this.config.allDocs=!0)}ngAfterContentInit(){for(let r=0;r{this.refresh()},1e3);setTimeout(()=>{clearInterval(e)},2e4)}refresh(){this.now=Date.now()}searching(){setTimeout(()=>{this.config.globalSearch||(this.filter_filter=this.searching_text)},100),clearTimeout(this._search_timeout),this._search_timeout=setTimeout(this.searching.bind(this),2e3)}search(){clearTimeout(this._search_timeout),setTimeout(()=>{this.config.globalSearch||(this.filter_filter=this.searching_text),this.refresh()},100),this.onSearch.emit(this.searching_text)}next(){(typeof this.config.paginate=="function"||this.config.page*this.config.perPage1&&(this.config.page-=1,typeof this.config.paginate=="function"&&this.config.paginate(this.config.page),this.refresh())}changePerPage(e){this.config.perPage=e,typeof this.config.setPerPage=="function"&&this.config.setPerPage(this.config.perPage),this.config.page=1,typeof this.config.paginate=="function"&&this.config.paginate(this.config.page),this._store.set(this.tableId+"perPage",e.toString()),(this.config.page-1)*this.config.perPage>this.rows.length&&this.lastPage(),this.select_page_size=!1,this.refresh()}lastPage(){this.config.page=Math.ceil(this.rows.length/this.config.perPage)}isLast(){return this.rows&&this.config.page==Math.ceil(this.rows.length/this.config.perPage)}sort(e){this.sort_type.title!=e.title&&(this.sort_type={}),this.sortable[e.field]&&(this.sort_type={title:e.field,direction:typeof this.sort_type.direction!="string"&&"asc"||this.sort_type.direction=="asc"&&"desc"||void 0})}static{this.\u0275fac=function(r){return new(r||t)(I(lt),I(Gt))}}static{this.\u0275cmp=fe({type:t,selectors:[["wtable"]],contentQueries:function(r,i,o){if(r&1&&(fr(o,j0,5),fr(o,B0,5),fr(o,L0,4),fr(o,V0,4)),r&2){let s;it(s=ot())&&(i.action=s.first),it(s=ot())&&(i.editForm=s.first),it(s=ot())&&(i.cell=s),it(s=ot())&&(i.sortHeaders=s)}},inputs:{config:"config",columns:"columns",rows:"rows",value:"value",title:"title"},outputs:{onSearch:"onSearch"},standalone:!1,decls:21,vars:19,consts:[["customAction",""],["defaultAction",""],["defaultRows",""],["customRows",""],[1,"wtable"],[1,"users__header","w-card__header"],[1,"w-forms__title"],["class","table-search",3,"table-search--active",4,"ngIf"],["class","table-search__icon-mobile",4,"ngIf"],[1,"users__btns"],[1,"user__icons"],[4,"ngIf"],["class","table-plus-btn",3,"disableSubmit","click",4,"ngIf"],["cellpadding","0","cellspacing","0",1,"table"],[1,"table-header"],["scope","col",4,"ngFor","ngForOf"],[1,"table-body"],[4,"ngFor","ngForOf"],["class","table-footer",4,"ngIf"],[1,"table-search"],["placeholder","Search...","type","text",1,"table-search__input",3,"keyup.enter","ngModelChange","ngModel"],[1,"material-icons","material-symbols-outlined","table-search__icon",3,"click"],[1,"table-search__icon-mobile"],[1,"material-icons","material-symbols-outlined",3,"click"],["class","edit-header",3,"disableSubmit","class","click",4,"ngIf"],[1,"edit-header",3,"click","disableSubmit"],["class","material-icons",3,"title",4,"ngIf"],[1,"material-icons",3,"title"],[1,"table-plus-btn",3,"click","disableSubmit"],["scope","col"],[1,"table-header__sort",3,"click"],["class","material-icons icon-arrow",4,"ngIf"],[1,"material-icons","icon-arrow"],[4,"ngIf","ngIfThen","ngIfElse"],[4,"ngTemplateOutlet"],["class","table-body__last-td","data-label","Actions:\xA0",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-label","Actions:\xA0",1,"table-body__last-td"],[1,"table__actions"],["class","material-icons","title","Edit",3,"click",4,"ngIf"],["class","material-icons","title","Delete",3,"click",4,"ngIf"],["class","material-icons",3,"title","click",4,"ngIf"],[3,"href","target",4,"ngIf"],[3,"routerLink",4,"ngIf"],[1,"material-icons",3,"click","title"],[3,"href","target"],[3,"routerLink"],["title","Edit",1,"material-icons",3,"click"],["title","Delete",1,"material-icons",3,"click"],[1,"table-footer"],["class","item-page",4,"ngIf"],["class","table-footer__pagination",4,"ngIf"],[1,"item-page"],[1,"item-page__text"],[1,"item-page__dropdown",3,"clickOutside"],[1,"caption",3,"click"],[1,"list"],["class","item",4,"ngFor","ngForOf"],["class","item",4,"ngIf"],["class","item-page__result",4,"ngIf"],[1,"item"],[3,"click"],[1,"item-page__result"],[1,"table-footer__pagination"],[1,"table-footer__arrow","_start",3,"click","disabled"],[1,"material-icons"],[1,"table-footer__arrow","_left",3,"click","disabled"],[1,"table-footer__arrow","_right",3,"click","disabled"],[1,"table-footer__arrow","_end",3,"click","disabled"]],template:function(r,i){r&1&&(m(0,"div",4)(1,"div",5)(2,"h3",6),A(3),v(),T(4,yA,4,3,"div",7)(5,vA,3,0,"div",8),m(6,"div",9)(7,"div",10),T(8,DA,2,1,"ng-container",11)(9,EA,4,1,"wbutton",12),v()()(),m(10,"table",13)(11,"thead",14)(12,"tr"),T(13,IA,2,0,"th",11)(14,xA,5,6,"th",15)(15,NA,6,3,"th",11),v()(),m(16,"tbody",16),T(17,QA,4,3,"tr",17),hr(18,"search"),hr(19,"perPage"),v(),T(20,iO,4,3,"tfoot",18),v()()),r&2&&(p(3),Ie(i.title),p(),y("ngIf",i.config.searchable),p(),y("ngIf",!i.searchShow),p(3),y("ngIf",i.config.headerButtons),p(),y("ngIf",i.config.create),p(4),y("ngIf",i.config.num),p(),y("ngForOf",i.columns),p(),y("ngIf",i.config.delete||i.config.update),p(2),y("ngForOf",i.config.allDocs?Qy(19,14,ti(18,10,i.rows,i.filter_filter,i.config.searchBy||"title"),i.config,i.sort_type,i.filter_filter+i.now):i.rows),p(3),y("ngIf",i.config.perPage||i.config.formCreate&&i.config.create))},dependencies:[Be,st,ii,Hn,Ci,wr,Zc,Qc,Mc,Yc,U0],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.wtable[_ngcontent-%COMP%]{background:var(--c-bg-secondary);box-shadow:var(--c-shadow);border-radius:10px;padding-bottom:70px;max-width:100%;height:auto;margin:0 auto;position:relative}@media (max-width: 991px){.wtable[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px}}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%]{padding-bottom:20px}}.wtable[_ngcontent-%COMP%] .edit-header[_ngcontent-%COMP%]{height:45px}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .edit-header[_ngcontent-%COMP%]{height:38px}}.wtable[_ngcontent-%COMP%] .edit-header[_ngcontent-%COMP%] .edit[_ngcontent-%COMP%], .wtable[_ngcontent-%COMP%] .edit-header[_ngcontent-%COMP%] .playlist[_ngcontent-%COMP%]{height:45px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%]{border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:auto}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]{cursor:pointer;font-size:16px;font-weight:500;border:0;display:flex;justify-content:center;align-items:center;min-width:140px;height:45px;border-radius:4px;padding:5px 12px;background-color:var(--c-primary);color:var(--c-primary);border:1px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:unset!important}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]:hover{box-shadow:0 0 3px 0 var(--c-primary);background-color:var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:5px}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-plus-btn[_ngcontent-%COMP%]{min-width:38px;max-width:38px;height:38px;top:15px}}.wtable[_ngcontent-%COMP%] .table-search[_ngcontent-%COMP%]{position:relative;display:flex;flex-grow:1;margin:0 30px}.wtable[_ngcontent-%COMP%] .table-search--active[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]{opacity:1}.wtable[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]{width:100%;height:45px;border-radius:4px;padding:0 10px;color:inherit;background:var(--c-bg-secondary);border:1px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-search__input[_ngcontent-%COMP%]:focus{border:2px solid var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-search__icon[_ngcontent-%COMP%]{width:40px;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:4;cursor:pointer}.wtable[_ngcontent-%COMP%] .table-search__icon-mobile[_ngcontent-%COMP%]{display:none;margin-left:auto;margin-right:130px}@media (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-search[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%]{display:block;position:absolute;margin:0;width:100%;z-index:2}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%] + .table-plus-btn[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search.table-search--active[_ngcontent-%COMP%] + .w-forms__title[_ngcontent-%COMP%]{display:none}.wtable[_ngcontent-%COMP%] .table-search__icon-mobile[_ngcontent-%COMP%]{display:none}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-header__sort[_ngcontent-%COMP%]{position:relative;cursor:pointer}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-header__sort[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{transform:rotate(90deg);font-size:var(--fs);position:absolute;top:3px;cursor:pointer}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{position:relative;padding:0 16px;height:48px;text-align:left;font-weight:500;font-size:calc(var(--fs) - 2px);font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);border-bottom:1px solid var(--c-border);overflow:hidden;text-overflow:ellipsis}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{opacity:0;transition:.3s all ease-in-out}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:hover .icon-arrow[_ngcontent-%COMP%]{opacity:1;transition:.3s all ease-in-out}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .table-header__sort._sortActiveDown[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{transform:rotate(-90deg);opacity:1}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] .table-header__sort._sortActiveUp[_ngcontent-%COMP%] .icon-arrow[_ngcontent-%COMP%]{opacity:1}@media all and (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{display:none;text-align:left}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{width:140px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{cursor:pointer;padding:5px 16px;height:60px;text-align:left;vertical-align:middle;font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);color:var(--c-text-primary);word-break:break-word;display:table-cell;border-bottom:1px solid var(--c-border)}@media all and (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;column-gap:5px;border-bottom:0;border:2px solid var(--c-border);height:auto;min-height:60px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:before{content:attr(data-label);word-break:keep-all;display:inline-block;font-weight:500;font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);text-overflow:ellipsis}@media (min-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:before{display:none}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:none}@media (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child td[_ngcontent-%COMP%]{border-bottom:2px solid var(--c-border)}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:none}@media (max-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{border-right:2px solid var(--c-border)}}@media (max-width: 992px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{margin-top:20px}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child{border-right:none}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table__actions[_ngcontent-%COMP%]{display:flex;gap:6px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table__actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:var(--c-text-primary)}@media (max-width: 991.9px){.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%]{margin-bottom:20px;border-bottom:3px solid var(--c-border)}}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:22px;width:22px}.wtable[_ngcontent-%COMP%] .table[_ngcontent-%COMP%] .table-body__last-td[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{color:var(--c-primary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%]{height:65px;display:flex;gap:120px;position:absolute;width:100%;left:0;bottom:0;padding:0 8px 0 15px;align-items:center;justify-content:space-between}@media screen and (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%]{height:90px;padding:10px 20px;flex-direction:column;position:static;gap:20px}}.wtable[_ngcontent-%COMP%] .table-footer__pagination[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative;bottom:15px}@media (max-width: 599px){.wtable[_ngcontent-%COMP%] .table-footer__pagination[_ngcontent-%COMP%]{bottom:0;left:5px}}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]{border:0;background:none;width:30px;height:30px;margin-right:30px;cursor:pointer}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;display:block;min-width:22px;min-height:22px;border:2px solid transparent;border-radius:100px}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{position:absolute;width:2px;height:90%;background-color:var(--c-grey);mix-blend-mode:overlay;top:8%}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{content:"";display:block;box-sizing:border-box;position:absolute;width:10px;height:10px;border-bottom:2px solid var(--c-grey);border-right:2px solid var(--c-grey);mix-blend-mode:overlay;transform:rotate(135deg);left:2px;top:2px}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]:disabled i[_ngcontent-%COMP%]:after{border-color:#9f9f9f}.wtable[_ngcontent-%COMP%] .table-footer__arrow[_ngcontent-%COMP%]:disabled i[_ngcontent-%COMP%]:before{background:#9f9f9f}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:1px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{left:8px;top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._start[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{display:block;left:2px;content:""}.wtable[_ngcontent-%COMP%] .table-footer__arrow._left[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._left[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._right[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{transform:rotate(315deg);top:4px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]{position:relative;left:2px}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:after{left:-3px;top:4px;transform:rotate(315deg)}.wtable[_ngcontent-%COMP%] .table-footer__arrow._end[_ngcontent-%COMP%] .chevron[_ngcontent-%COMP%]:before{display:block;left:11px;content:""}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page[_ngcontent-%COMP%]{font-size:12px;color:#9f9f9f;letter-spacing:1px;display:flex;align-items:center}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%]{position:relative;margin:0 10px;font-weight:700}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]{background-color:transparent;padding:11px 24px;border-radius:4px;border:1px solid var(--c-border);cursor:pointer}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{position:absolute;background-color:var(--c-bg-secondary);width:100%;bottom:100%;flex-direction:column;border-radius:4px 4px 0 0;display:none;z-index:999}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:11px 20px;cursor:pointer;text-align:center}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown[_ngcontent-%COMP%] .list[_ngcontent-%COMP%] .item.selected[_ngcontent-%COMP%]{font-weight:700}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown.open[_ngcontent-%COMP%] .caption[_ngcontent-%COMP%]{border-radius:0 0 4px 4px}.wtable[_ngcontent-%COMP%] .table-footer[_ngcontent-%COMP%] .item-page__dropdown.open[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse;border:1px solid var(--c-border);border-bottom:0}.users__btns[_ngcontent-%COMP%]{display:flex}']})}}return t})();var oO=["inputEl"],$0=["*","*"];function sO(t,n){if(t&1&&(m(0,"span",7),A(1),v()),t&2){let e=g(2);p(),Ie(e.label)}}function aO(t,n){if(t&1&&(m(0,"div",8),A(1),v()),t&2){let e=g(2);p(),de(" ",e.label||e.placeholder," is invalid. ")}}function cO(t,n){if(t&1){let e=W();m(0,"label",3),T(1,sO,2,1,"span",4),m(2,"input",5,0),O("ngModelChange",function(i){N(e);let o=g();return o.value=i,P(o.onChange())})("keyup.enter",function(){N(e);let i=g();return P(i.onSubmit())})("blur",function(){N(e);let i=g();return P(i.wBlur.emit())}),v(),T(4,aO,2,1,"div",6),no(5),v()}if(t&2){let e=g();y("for",e.name),p(),y("ngIf",e.label),p(),he("error",e.error),y("placeholder",e.placeholder||"Enter text...")("type",e.type||"text")("disabled",e.disabled)("ngModel",e.value)("ngClass",e.wClass)("name",e.name),p(2),y("ngIf",e.error)}}function lO(t,n){if(t&1&&(m(0,"div",8),A(1),v()),t&2){let e=g(2);p(),de(" ",e.label||e.placeholder," is invalid. ")}}function uO(t,n){if(t&1){let e=W();ye(0),m(1,"label",3)(2,"span",7),A(3),v(),m(4,"textarea",9,0),O("ngModelChange",function(i){N(e);let o=g();return o.value=i,P(o.onChange())})("keyup.enter",function(){N(e);let i=g();return P(i.onSubmit())})("blur",function(){N(e);let i=g();return P(i.wBlur.emit())}),v(),T(6,lO,2,1,"div",6),v(),ve()}if(t&2){let e=g();p(),y("for",e.name),p(2),Ie(e.label),p(),he("error",e.error),y("placeholder",e.placeholder)("disabled",e.disabled)("ngModel",e.value)("ngClass",e.wClass)("name",e.name),p(2),y("ngIf",e.error)}}function dO(t,n){if(t&1){let e=W();m(0,"label",11)(1,"span",12),A(2),v(),m(3,"input",13,0),O("ngModelChange",function(i){N(e);let o=g(2);return o.value=i,P(o.onChange())}),v(),ke(5,"span",14),no(6,1),v()}if(t&2){let e=n.$implicit,r=g(2);p(2),Ie(e),p(),he("error",r.error),y("disabled",r.disabled)("ngModel",r.value)("ngClass",r.wClass)("value",e)("name",r.name)}}function fO(t,n){if(t&1&&(ye(0),T(1,dO,7,8,"label",10),ve()),t&2){let e=g();p(),y("ngForOf",e.items)}}function hO(t,n){if(t&1&&(m(0,"span",19),A(1),v()),t&2){let e=g(2);p(),Ie(e.label)}}function pO(t,n){if(t&1){let e=W();ye(0),m(1,"label",15)(2,"input",16,0),O("ngModelChange",function(i){N(e);let o=g();return o.value=i,P(o.onChange())}),v(),ke(4,"span",17),T(5,hO,2,1,"span",18),v(),ve()}if(t&2){let e=g();p(2),he("error",e.error),y("disabled",e.disabled)("ngModel",e.value)("ngClass",e.wClass)("name",e.name),p(3),y("ngIf",e.label)}}var X3=(()=>{class t{constructor(e){this._core=e,this.value="",this.valid=r=>!!r,this.items=[],this.placeholder="",this.disabled=!1,this.focused=!1,this.name="name",this.type="text",this.label="",this.wChange=new G,this.wSubmit=new G,this.wBlur=new G,this.error=!1}ngOnInit(){this.focused&&this.focus(),this.setFocus&&(this.setFocus.focus=this.focus.bind(this))}ngOnChanges(e){e.disabled&&(this.disabled=e.disabled.currentValue)}focus(){setTimeout(()=>{this.inputEl.nativeElement.focus()},100)}onChange(){this._core.afterWhile("winput",()=>{this.value=typeof this.replace=="function"?this.replace(this.value):this.value,this.wChange.emit(this.value)},100)}onSubmit(){this.valid(this.value)?this.wSubmit.emit(this.value):this.error=!0}setDisabled(e){this.disabled=e}static{this.\u0275fac=function(r){return new(r||t)(I(we))}}static{this.\u0275cmp=fe({type:t,selectors:[["winput"]],viewQuery:function(r,i){if(r&1&&ei(oO,5),r&2){let o;it(o=ot())&&(i.inputEl=o.first)}},inputs:{value:"value",replace:"replace",valid:"valid",items:"items",placeholder:"placeholder",disabled:"disabled",focused:"focused",wClass:"wClass",name:"name",type:"type",label:"label",setFocus:"setFocus"},outputs:{wChange:"wChange",wSubmit:"wSubmit",wBlur:"wBlur"},standalone:!1,features:[yt],ngContentSelectors:$0,decls:4,vars:4,consts:[["inputEl",""],["class","w-forms",3,"for",4,"ngIf"],[4,"ngIf"],[1,"w-forms",3,"for"],["class","w-forms__title",4,"ngIf"],[1,"w-forms__input",3,"ngModelChange","keyup.enter","blur","placeholder","type","disabled","ngModel","ngClass","name"],["class","error-message",4,"ngIf"],[1,"w-forms__title"],[1,"error-message"],[1,"w-forms__textarea",3,"ngModelChange","keyup.enter","blur","placeholder","disabled","ngModel","ngClass","name"],["class","check-label",4,"ngFor","ngForOf"],[1,"check-label"],[1,"form-label"],["type","radio",3,"ngModelChange","disabled","ngModel","ngClass","value","name"],[1,"checkbox","_radio"],[1,"container-box"],["type","checkbox",1,"w-input__checkbox",3,"ngModelChange","disabled","ngModel","ngClass","name"],[1,"checkmark"],["class","check-text",4,"ngIf"],[1,"check-text"]],template:function(r,i){r&1&&(Ya($0),T(0,cO,6,11,"label",1)(1,uO,7,10,"ng-container",2)(2,fO,2,1,"ng-container",2)(3,pO,6,7,"ng-container",2)),r&2&&(y("ngIf",i.type!=="radio"&&i.type!=="checkbox"&&i.type!=="textarea"),p(),y("ngIf",i.type==="textarea"),p(),y("ngIf",i.type==="radio"),p(),y("ngIf",i.type==="checkbox"))},dependencies:[Hn,ch,uh,Ci,wr,fn,Be,st],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.w-forms[_ngcontent-%COMP%]{position:relative;padding:10px 0;display:block}.w-forms__title[_ngcontent-%COMP%]{letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:var(--b-radius);margin-bottom:10px}.w-forms__field[_ngcontent-%COMP%], .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]{background-color:transparent;border:1px solid var(--c-border);border-radius:var(--b-radius);color:var(--c-text-secondary);font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 4px);transition:var(--transition);width:100%;display:block;letter-spacing:var(--letter-spacing);padding:8px 12px;appearance:textfield;-webkit-appearance:textfield;-moz-appearance:textfield}.w-forms__field[_ngcontent-%COMP%]::placeholder, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]::placeholder{color:var(--c-placeholder);transition:var(--transition)}.w-forms__field[_ngcontent-%COMP%]:focus, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]:focus{transition:var(--transition);border-color:var(--c-primary);outline:none}.w-forms__field[_ngcontent-%COMP%]:disabled, .w-forms[_ngcontent-%COMP%] .w-forms__textarea[_ngcontent-%COMP%]:disabled{background-color:var(--c-grey);border-color:var(--c-grey);color:var(--c-grey);cursor:default;opacity:.6}.w-forms__field[type=time][_ngcontent-%COMP%], .w-forms[_ngcontent-%COMP%] .w-forms__textarea[type=time][_ngcontent-%COMP%]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}.w-forms__checkbox[_ngcontent-%COMP%]{display:none}.w-forms__checkbox[_ngcontent-%COMP%]:checked ~ .checkbox[_ngcontent-%COMP%]:before{opacity:1}input.error[_ngcontent-%COMP%], textarea.error[_ngcontent-%COMP%]{border:1px solid red}.error-message[_ngcontent-%COMP%]{color:red;font-size:12px;margin-top:4px}.check-label[_ngcontent-%COMP%]{display:flex;column-gap:5px;cursor:pointer}.check-label[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{position:relative;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.check-label[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]:before{position:absolute;left:50%;top:50%;transition:var(--transition);opacity:0;transform:translate(-50%,-65%) rotate(45deg);height:11px;width:7px;display:block;content:"";border-bottom:2px solid var(--c-primary);border-right:2px solid var(--c-primary)}.container-box[_ngcontent-%COMP%]{position:relative;padding-left:35px;margin-bottom:12px;cursor:pointer;font-size:22px;-webkit-user-select:none;user-select:none}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:32px;width:32px;background-color:#12677a6e;border-radius:50%;transition:all .3s}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after, .container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:before{content:"";position:absolute;display:none}.container-box[_ngcontent-%COMP%] .checkmark[_ngcontent-%COMP%]:after{left:10px;top:47%;width:8px;height:14px;border:solid white;border-width:0 3px 3px 0;transform:rotate(45deg) translate(-50%,-50%)}.container-box[_ngcontent-%COMP%]:hover input[_ngcontent-%COMP%] ~ .checkmark[_ngcontent-%COMP%]{background-color:#0f353d60}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]{background-color:var(--c-primary)}.container-box[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked ~ .checkmark[_ngcontent-%COMP%]:after{display:block}']})}}return t})();var H0=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[qt,Fe]})}}return t})();var bU=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Fe,qt,Ti,F0,Kc,R_,H0]})}}return t})();var EU=(()=>{class t{constructor(e,r){this.elementRef=e,this.tr=r}ngOnInit(){this.elementRef.nativeElement.innerHTML=this.tr.translate(this.elementRef.nativeElement.innerHTML,e=>{this.elementRef.nativeElement.innerHTML=e})}static{this.\u0275fac=function(r){return new(r||t)(I(Ee),I(Ai))}}static{this.\u0275dir=oe({type:t,selectors:[["","translate",""]],standalone:!1})}}return t})();var MU=(()=>{class t{constructor(e){this._tr=e}transform(e,r){return this._tr.translate(e)}static{this.\u0275fac=function(r){return new(r||t)(I(Ai,16))}}static{this.\u0275pipe=Pn({name:"translate",type:t,pure:!0,standalone:!1})}}return t})();var kU=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[Fe,qt,Ti]})}}return t})();var gO=["e_search"],mO=t=>({item:t});function yO(t,n){if(t&1&&(m(0,"div",21),A(1),v()),t&2){let e=g();p(),Ie(e.label)}}function vO(t,n){if(t&1&&(m(0,"div"),A(1),v()),t&2){let e=g(3);p(),Ie(e.placeholder)}}function _O(t,n){t&1&&(m(0,"span"),A(1,", "),v())}function wO(t,n){if(t&1){let e=W();m(0,"span"),A(1),m(2,"i",27),O("click",function(){N(e);let i=g().index,o=g(3);return o._values.splice(i,1),P(o.modelChange.emit(o._values))}),A(3,"close"),v()()}if(t&2){let e=g().$implicit,r=g(3);p(),de("",r._items[e][r.name]," ")}}function CO(t,n){if(t&1&&(m(0,"span"),T(1,_O,2,0,"span",25)(2,wO,4,1,"span",25),v()),t&2){let e=n.$implicit,r=n.index,i=g(3);p(),y("ngIf",r),p(),y("ngIf",i._items[e])}}function bO(t,n){if(t&1&&(m(0,"div",24),T(1,vO,2,1,"div",25)(2,CO,3,2,"span",26),v()),t&2){let e=g(2);p(),y("ngIf",!e._values.length),p(),y("ngForOf",e._values)}}function DO(t,n){if(t&1&&(m(0,"div",24),A(1),v()),t&2){let e=g(2);p(),de(" ",e._selected||e.placeholder," ")}}function EO(t,n){if(t&1&&(m(0,"div",22),T(1,bO,3,2,"div",23)(2,DO,2,1,"div",23),v()),t&2){let e=g();p(),y("ngIf",e.multiple),p(),y("ngIf",!e.multiple)}}function IO(t,n){if(t&1){let e=W();m(0,"div",17),O("click",function(){N(e);let i=g();return P(i.clear())}),m(1,"span",28),A(2,"close"),v()()}}function MO(t,n){if(t&1){let e=W();m(0,"div",33)(1,"input",34,3),io("ngModelChange",function(i){N(e);let o=g(3);return Qa(o.search,i)||(o.search=i),P(i)}),v(),Ta(),m(3,"svg",35),ke(4,"path",36),v()()}if(t&2){let e=g(3);p(),ro("ngModel",e.search)}}function xO(t,n){if(t&1&&(m(0,"div"),_t(1,15),T(2,MO,5,1,"ng-template",null,2,ln),v()),t&2){let e=Tt(3),r=g(2);p(),y("ngTemplateOutlet",r.t_search?r.t_search:e)}}function SO(t,n){if(t&1&&_t(0,37),t&2){let e=n.$implicit;g();let r=Tt(8),i=g();y("ngTemplateOutlet",i.t_item?i.t_item:r)("ngTemplateOutletContext",kn(2,mO,e))}}function TO(t,n){t&1&&(m(0,"div",38),A(1," Nothing was found "),v())}function AO(t,n){if(t&1){let e=W();m(0,"div",39),O("click",function(){let i=N(e).item,o=g(2);return P(o.item_onclick(i))}),m(1,"div",40),A(2),v()()}if(t&2){let e=n.item,r=g(2);he("disabled",r._values.indexOf(e.value)!==-1),p(),he("selected",r._values.indexOf(e[r.value])!==-1),p(),de(" ",e[r.name]," ")}}function OO(t,n){if(t&1&&(m(0,"div",29),T(1,xO,4,1,"div",25),m(2,"div",30),T(3,SO,1,4,"ng-container",31),hr(4,"search"),T(5,TO,2,0,"div",32),hr(6,"search"),v(),T(7,AO,3,5,"ng-template",null,1,ln),v()),t&2){let e,r=g();he("_search",r.searchable),p(),y("ngIf",r.searchable),p(2),y("ngForOf",ti(4,5,r.items,r.search,r.searchableBy)),p(2),y("ngIf",!((e=ti(6,9,r.items,r.search,r.searchableBy))!=null&&e.length))}}var $U=(()=>{class t{constructor(){this.placeholder="",this.items=[],this._items={},this.disabled=!1,this.clearable=!1,this.name="name",this.value="_id",this.multiple=!1,this.label="",this.searchable=!1,this.searchableBy="name",this.modelChange=new G,this._values=[],this._names=[],this.search=""}clear(){this.multiple?(this._values=[],this.modelChange.emit(this._values)):(this._selected="",this.modelChange.emit(""))}ngOnInit(){for(let e=0;e{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=ue({type:t})}static{this.\u0275inj=le({imports:[qt,Fe,Ti]})}}return t})();export{b as a,H as b,K0 as c,NO as d,PO as e,dt as f,ml as g,Oe as h,El as i,Nw as j,qe as k,ft as l,Rw as m,Al as n,S as o,sr as p,D as q,le as r,M as s,_ as t,w as u,yt as v,N as w,P as x,Ta as y,Wg as z,G as A,ne as B,Ee as C,Mt as D,QL as E,Fa as F,KL as G,p as H,I,gt as J,Wr as K,fe as L,ue as M,oe as N,Vd as O,T as P,dr as Q,y as R,Fy as S,he as T,t2 as U,m as V,v as W,ke as X,ye as Y,ve as Z,W as _,O as $,g as aa,Ya as ba,no as ca,fr as da,ei as ea,it as fa,ot as ga,Tt as ha,A as ia,Ie as ja,de as ka,ro as la,Qa as ma,io as na,oo as oa,n2 as pa,kn as qa,hr as ra,r2 as sa,i2 as ta,ln as ua,o2 as va,Fn as wa,Wd as xa,pr as ya,LM as za,Se as Aa,fn as Ba,Be as Ca,st as Da,pv as Ea,ii as Fa,S2 as Ga,Fe as Ha,HM as Ia,Pv as Ja,tV as Ka,nV as La,rV as Ma,Uv as Na,gS as Oa,lt as Pa,Mc as Qa,bV as Ra,DV as Sa,R_ as Ta,mi as Ua,Rc as Va,ch as Wa,Ci as Xa,wr as Ya,qt as Za,we as _a,W1 as $a,Zc as ab,Wc as bb,Gt as cb,Si as db,QB as eb,T0 as fb,A0 as gb,KB as hb,JB as ib,Ti as jb,Ai as kb,EU as lb,Qc as mb,Kc as nb,X3 as ob,H0 as pb,L0 as qb,G3 as rb,N0 as sb,R0 as tb,Th as ub,F0 as vb,bU as wb,MU as xb,kU as yb,$U as zb,YU as Ab}; diff --git a/chunk-6QP2GCSX.js b/chunk-6QP2GCSX.js new file mode 100644 index 0000000..0eaf8f4 --- /dev/null +++ b/chunk-6QP2GCSX.js @@ -0,0 +1 @@ +import{e as U}from"./chunk-LQFWOSYV.js";import{$ as I,H as v,I as c,L as b,M as k,P as y,R as T,Ta as V,V as f,W as u,Wa as W,X as w,Xa as j,Ya as N,_ as x,aa as M,fb as P,ia as C,ka as S,kb as D,la as F,ma as A,na as L,qb as E,r as g,rb as z,sb as B,tb as R,w as d,x as _}from"./chunk-65U4F77E.js";function Y(s,h){if(s&1&&C(0),s&2){let o=h.$implicit;S(" ",o.components==null?null:o.components.length," ")}}function G(s,h){if(s&1){let o=x();f(0,"label",3)(1,"input",4),I("ngModelChange",function(){let m=d(o).$implicit,l=M();return _(l.changeStatus(m))}),L("ngModelChange",function(m){let l=d(o).$implicit;return A(l.active,m)||(l.active=m),_(m)}),u(),w(2,"span",5),f(3,"span",6),C(4,"Active"),u()()}if(s&2){let o=h.$implicit;v(),F("ngModel",o.active)}}var $=(()=>{class s{get rows(){return this._cfs.customforms}constructor(o,n,m,l){this._translate=o,this._cfs=n,this._alert=m,this._form=l,this.columns=["formId","components","active"],this.form=this._form.getForm("form",{formId:"form",title:"Custom form",components:[{name:"Text",key:"title",focused:!0,fields:[{name:"Placeholder",value:"fill title"},{name:"Label",value:"Title"}]},{name:"Select",key:"formId",fields:[{name:"Placeholder",value:"Select form id"},{name:"Label",value:"Form ID"},{name:"Items",value:this._form.formIds}]}]}),this.components=[],this.formComponents=this._form.getForm("formComponents",{formId:"formComponents",title:"Custom components",components:[{components:this.components},{name:"Select",key:"addComponent",fields:[{name:"Placeholder",value:"Select form componnet"},{name:"Label",value:"Form Component"},{name:"Value",value:"name",skipTranslation:!0},{name:"Items",value:this._form.getTemplateComponentsNames()}]}]}),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(t,i)=>{this._cfs.create(t,{callback:i.bind(this)})}}).then(this._cfs.create.bind(this))},update:t=>{this._form.modal(this.form,{label:"Update",click:(i,p)=>{this._cfs.update(i,{callback:p.bind(this)})}},t).then(this._cfs.update.bind(this))},delete:t=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this user?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._cfs.delete(t)}}]})},buttons:[{icon:"text_fields",click:t=>{console.log(this.formComponents),this.components.splice(0,this.components.length);let i={addComponent:"Text"};t.components=t.components||[];for(let e=t.components.length-1;e>=0;e--){let a=this._form.getTemplateFields(t.components[e].name);t.components[e].fields=t.components[e].fields.filter(r=>a.includes(r.name));for(let r of a)t.components[e].fields.find(q=>q.name===r)||t.components[e].fields.push({value:"",name:r});i["key"+e]=t.components[e].key;for(let r of t.components[e].fields)i[r.name+e]=r.value}let p=e=>{this.components.splice(e,1),t.components.splice(e,1),this._cfs.updateAfterWhile(t)};(t.components||[]).forEach(e=>{this.components.push(this._addCustomComponent(e.name,this.components.length,p))}),this._form.modal(this.formComponents,{label:"Add component",click:()=>{let e=i.addComponent;this.components.push(this._addCustomComponent(e,this.components.length,p)),t.components.push({name:i.addComponent,fields:this._form.getTemplateFields(e).map(a=>({value:"",name:a}))})}},i,()=>{},{size:"big"}).then(()=>{for(let e=0;e({name:this._form.getCustomTemplateFields(o)[i]||"Text",key:i+n,fields:[{name:"Placeholder",value:"fill "+i},{name:"Label",value:i.charAt(0).toUpperCase()+i.slice(1,i.length)}]}));return{class:"d-f mt10",components:[{name:"Text",key:"key"+n,fields:[{name:"Placeholder",value:"fill key"},{name:"Label",value:"Key"}]},...l,{name:"Button",fields:[{name:"Label",value:"Remove"},{name:"Click",value:()=>{m(n)}}]}]}}changeStatus(o){setTimeout(()=>{if(o.active)for(let n of this._cfs.customforms)n._id===o._id||n.formId!==o.formId||n.active&&(n.active=!1,this._cfs.updateAfterWhile(n));this._cfs.updateAfterWhile(o)})}static{this.\u0275fac=function(n){return new(n||s)(c(D),c(B),c(P),c(R))}}static{this.\u0275cmp=b({type:s,selectors:[["ng-component"]],standalone:!1,decls:3,vars:3,consts:[["title","Forms Customization",3,"columns","config","rows"],["cell","components"],["cell","active"],[1,"container-box"],["type","checkbox",1,"w-input__checkbox",3,"ngModelChange","ngModel"],[1,"checkmark"],[1,"checkmark-text"]],template:function(n,m){n&1&&(f(0,"wtable",0),y(1,Y,1,1,"ng-template",1)(2,G,5,1,"ng-template",2),u()),n&2&&T("columns",m.columns)("config",m.config)("rows",m.rows)},dependencies:[W,j,N,z,E],encapsulation:2})}}return s})();var H=[{path:"",component:$}],me=(()=>{class s{static{this.\u0275fac=function(n){return new(n||s)}}static{this.\u0275mod=k({type:s})}static{this.\u0275inj=g({imports:[V.forChild(H),U]})}}return s})();export{me as CustomformsModule}; diff --git a/chunk-ANGIOSFH.js b/chunk-ANGIOSFH.js new file mode 100644 index 0000000..12d1ea0 --- /dev/null +++ b/chunk-ANGIOSFH.js @@ -0,0 +1 @@ +import{Pa as c,Ua as o,_a as d,bb as u,cb as l,db as m,fb as p,q as n,t as s}from"./chunk-65U4F77E.js";var I=(()=>{class i extends u{constructor(e,t,r,a,f){super({name:"user"},e,t,r,a),this._router=f,this.roles=(o.roles||[]).concat(["admin"]),this.employees=o.roles||[],this.mode="",this.users=this.getDocs(),this.user=localStorage.getItem("waw_user")?JSON.parse(localStorage.getItem("waw_user")):this.new(),this._changingPassword=!1,this.store=t,this.http=e,this.alert=r,this.core=a,this.http.header("token")&&(this.fetch({},{name:"me"}).subscribe(this.setUser.bind(this)),this.get()),this.store.get("mode",h=>{h&&this.setMode(h)})}setMode(e=""){e?(this.store.set("mode",e),document.body.parentNode.classList.add(e)):(this.store.remove("mode"),document.body.parentNode.classList.remove("dark")),this.mode=e}setUser(e){this.user=e,localStorage.setItem("waw_user",JSON.stringify(e)),this.core.complete("us.user")}role(e){return!!(this.user?.is||{})[e]}updateMe(){this.setUser(this.user),this.update(this.user)}updateMeAfterWhile(){this.setUser(this.user),this.updateAfterWhile(this.user)}changePassword(e,t){this._changingPassword||(this._changingPassword=!0,this.http.post("/api/user/changePassword",{newPass:t,oldPass:e},r=>{this._changingPassword=!1,r?this.alert.info({text:"Successfully changed password"}):this.alert.error({text:"Incorrect current password"})}))}logout(){this.user=this.new(),localStorage.removeItem("waw_user"),this._router.navigateByUrl("/sign"),this.http.remove("token"),setTimeout(()=>{location.reload()},100)}updateAdmin(e){this.update(e,{name:"admin"})}deleteAdmin(e){this.delete(e,{name:"admin"})}static{this.\u0275fac=function(t){return new(t||i)(s(m),s(l),s(p),s(d),s(c))}}static{this.\u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();export{I as a}; diff --git a/chunk-E2BLES7M.js b/chunk-E2BLES7M.js new file mode 100644 index 0000000..6dd6dd9 --- /dev/null +++ b/chunk-E2BLES7M.js @@ -0,0 +1 @@ +import{e as M}from"./chunk-LQFWOSYV.js";import{I as m,L as u,M as _,Pa as S,R as v,Ta as y,X as C,_a as n,bb as g,cb as j,db as b,fb as a,kb as w,q as h,r as p,rb as k,t as s,tb as I}from"./chunk-65U4F77E.js";var x={formId:"commerceorder",title:"Commerceorder",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commerceorder title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commerceorder description"},{name:"Label",value:"Description"}]}]};var D=(()=>{class o extends g{constructor(t,r,e,c){super({name:"commerceorder"},t,r,e,c),this.commerceorders=this.getDocs(),this.commerceordersByAuthor={},this.get(),this.filteredDocuments(this.commerceordersByAuthor)}static{this.\u0275fac=function(r){return new(r||o)(s(b),s(j),s(a),s(n))}}static{this.\u0275prov=h({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var f=(()=>{class o{get rows(){return this._commerceorderService.commerceorders}constructor(t,r,e,c,l,T){this._translate=t,this._commerceorderService=r,this._alert=e,this._form=c,this._core=l,this._router=T,this.columns=["name","description"],this.commerce=this._router.url.includes("/commerceorders/")?this._router.url.replace("/commerceorders/",""):"",this.form=this._form.getForm("commerceorder",x),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(i,d)=>{this.commerce&&(i.commerce=this.commerce),this._commerceorderService.create(i),d()}})},update:i=>{this._form.modal(this.form,[],i).then(d=>{this._core.copy(d,i),this._commerceorderService.update(i)})},delete:i=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commerceorder?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commerceorderService.delete(i)}}]})},buttons:[{icon:"cloud_download",click:i=>{this._form.modalUnique("commerceorder","url",i)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(t=!0){return()=>{this._form.modalDocs(t?[]:this.rows).then(r=>{if(t)for(let e of r)this.commerce&&(e.commerce=this.commerce),this._commerceorderService.create(e);else{for(let e of this.rows)r.find(c=>c._id===e._id)||this._commerceorderService.delete(e);for(let e of r){let c=this.rows.find(l=>l._id===e._id);c?(this._core.copy(e,c),this._commerceorderService.update(c)):(this.commerce&&(e.commerce=this.commerce),e.__created=!1,this._commerceorderService.create(e))}}})}}static{this.\u0275fac=function(r){return new(r||o)(m(w),m(D),m(a),m(I),m(n),m(S))}}static{this.\u0275cmp=u({type:o,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commerceorders",3,"columns","config","rows"]],template:function(r,e){r&1&&C(0,"wtable",0),r&2&&v("columns",e.columns)("config",e.config)("rows",e.rows)},dependencies:[k],encapsulation:2})}}return o})();var N=[{path:"",component:f},{path:":commerce_id",component:f}],K=(()=>{class o{static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275mod=_({type:o})}static{this.\u0275inj=p({imports:[y.forChild(N),M]})}}return o})();export{K as CommerceordersModule}; diff --git a/chunk-FG2FCVR6.js b/chunk-FG2FCVR6.js new file mode 100644 index 0000000..7ffd781 --- /dev/null +++ b/chunk-FG2FCVR6.js @@ -0,0 +1 @@ +import{e as M}from"./chunk-LQFWOSYV.js";import{I as m,L as h,M as _,Pa as S,R as v,Ta as y,X as C,_a as n,bb as g,cb as j,db as b,fb as a,kb as w,q as u,r as f,rb as k,t as s,tb as I}from"./chunk-65U4F77E.js";var x={formId:"commerceproduct",title:"Commerceproduct",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commerceproduct title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commerceproduct description"},{name:"Label",value:"Description"}]}]};var D=(()=>{class o extends g{constructor(r,t,e,i){super({name:"commerceproduct"},r,t,e,i),this.commerceproducts=this.getDocs(),this.commerceproductsByAuthor={},this.get(),this.filteredDocuments(this.commerceproductsByAuthor)}static{this.\u0275fac=function(t){return new(t||o)(s(b),s(j),s(a),s(n))}}static{this.\u0275prov=u({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var p=(()=>{class o{get rows(){return this._commerceproductService.commerceproducts}constructor(r,t,e,i,l,T){this._translate=r,this._commerceproductService=t,this._alert=e,this._form=i,this._core=l,this._router=T,this.columns=["name","description"],this.commerce=this._router.url.includes("/commerceproducts/")?this._router.url.replace("/commerceproducts/",""):"",this.form=this._form.getForm("commerceproduct",x),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(c,d)=>{this.commerce&&(c.commerce=this.commerce),this._commerceproductService.create(c),d()}})},update:c=>{this._form.modal(this.form,[],c).then(d=>{this._core.copy(d,c),this._commerceproductService.update(c)})},delete:c=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commerceproduct?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commerceproductService.delete(c)}}]})},buttons:[{icon:"cloud_download",click:c=>{this._form.modalUnique("commerceproduct","url",c)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(r=!0){return()=>{this._form.modalDocs(r?[]:this.rows).then(t=>{if(r)for(let e of t)this.commerce&&(e.commerce=this.commerce),this._commerceproductService.create(e);else{for(let e of this.rows)t.find(i=>i._id===e._id)||this._commerceproductService.delete(e);for(let e of t){let i=this.rows.find(l=>l._id===e._id);i?(this._core.copy(e,i),this._commerceproductService.update(i)):(this.commerce&&(e.commerce=this.commerce),e.__created=!1,this._commerceproductService.create(e))}}})}}static{this.\u0275fac=function(t){return new(t||o)(m(w),m(D),m(a),m(I),m(n),m(S))}}static{this.\u0275cmp=h({type:o,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commerceproducts",3,"columns","config","rows"]],template:function(t,e){t&1&&C(0,"wtable",0),t&2&&v("columns",e.columns)("config",e.config)("rows",e.rows)},dependencies:[k],encapsulation:2})}}return o})();var N=[{path:"",component:p},{path:":commerce_id",component:p}],K=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=_({type:o})}static{this.\u0275inj=f({imports:[y.forChild(N),M]})}}return o})();export{K as CommerceproductsModule}; diff --git a/chunk-HM3TCJL7.js b/chunk-HM3TCJL7.js new file mode 100644 index 0000000..20dbe28 --- /dev/null +++ b/chunk-HM3TCJL7.js @@ -0,0 +1 @@ +import{$ as c,Ab as $,H as d,Ha as T,I as g,L as w,M as C,P as b,R as u,Ta as P,V as r,W as o,Za as O,aa as v,db as S,ia as m,jb as j,ka as _,kb as k,lb as I,mb as A,nb as E,qb as F,r as h,ra as M,rb as N,ta as y,tb as D,wb as z,xb as B,yb as J,zb as L}from"./chunk-65U4F77E.js";function W(n,f){if(n&1&&m(0),n&2){let t=f.$implicit;_(" ",t==null||t.slug==null?null:t.slug.split(".")[0]," ")}}function q(n,f){if(n&1&&(m(0),M(1,"translate")),n&2){let t=f.$implicit,e=v();_(" ",y(1,1,t==null?null:t.slug,e.ts.now)," ")}}var H=(()=>{class n{setPage(t){this.page=t,localStorage.setItem("page",t)}get rows(){return this.ts.words.filter(t=>this.page&&typeof t=="object"?this.page===t.slug.split(".")[0]:!0)}constructor(t,e,a){this.ts=t,this._form=e,this._http=a,this.columns=["page","word","translation"],this.form=this._form.getForm("translate",{formId:"translate",title:"Translate",components:[{name:"Text",key:"translate",focused:!0,fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]}]}),this.formAll=this._form.getForm("translateAll",{formId:"translateAll",title:"Translate All",components:[{name:"Text",key:"words",fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]},{name:"Text",key:"translates",focused:!0,fields:[{name:"Placeholder",value:"fill Translate"},{name:"Label",value:"Translate"},{name:"Textarea",value:!0}]}]}),this.config={update:i=>{this._form.modal(this.form,[],{translate:this.ts.translate(i.slug)}).then(l=>{this._http.post("/api/translate/create",{appId:this.ts.appId,slug:i.slug,lang:this.ts.language.code,translate:l.translate}),this.ts.translates[this.ts.language.code][i.slug]=l.translate,this.ts.reset()})}},this.pages=[{name:this.ts.translate("Common.All"),_id:""}].concat(this.ts.pages.map(i=>({name:i,_id:i}))),this.page=localStorage.getItem("page")||""}translateAll(t=!1){let e=t?this.rows.filter(s=>!this.ts.translates[this.ts.language.code][s.slug]):this.rows,a=JSON.stringify(e.map(s=>s.word)),i=e.map(s=>s.slug),l=JSON.stringify(e.map(s=>this.ts.translate(s.slug)));this._form.modal(this.formAll,[],{words:a,translates:l}).then(s=>{if(l===s.translates)return;let x=JSON.parse(s.translates);for(let p=0;pe.code===t))}static{this.\u0275fac=function(e){return new(e||n)(g(k),g(D),g(S))}}static{this.\u0275cmp=w({type:n,selectors:[["ng-component"]],standalone:!1,decls:26,vars:7,consts:[[1,"container-fluid"],[1,"page-wrapper"],[1,"translate__top-inner"],[1,"translate__inner"],["for","",1,"formboxs"],["translate","",1,"formboxs_title"],["value","code",3,"modelChange","items","select"],[2,"width","300px",3,"modelChange","items","select"],[1,"translate__buttons"],[1,"translate__dawn-jcon",3,"click"],[1,"material-icons","ng-tns-c405976996-4"],["translate",""],[3,"columns","config","rows"],["cell","page"],["cell","translation"]],template:function(e,a){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"label",4)(5,"div",5),m(6," Common.Select language "),o(),r(7,"wselect",6),c("modelChange",function(l){return a.set_language(l)}),o()(),r(8,"label",4)(9,"div",5),m(10," Common.Select page "),o(),r(11,"wselect",7),c("modelChange",function(l){return a.setPage(l)}),o()()(),r(12,"div",8)(13,"wbutton",9),c("click",function(){return a.translateAll()}),r(14,"span",10),m(15," translate "),o(),r(16,"span",11),m(17,"Common.Translate all"),o()(),r(18,"wbutton",9),c("click",function(){return a.translateAll(!0)}),r(19,"span",10),m(20," translate "),o(),r(21,"span",11),m(22,"Common.Translate missed"),o()()()(),r(23,"wtable",12),b(24,W,1,1,"ng-template",13)(25,q,2,4,"ng-template",14),o()()()),e&2&&(d(7),u("items",a.ts.languages)("select",a.ts.language.code),d(4),u("items",a.pages)("select",a.page),d(12),u("columns",a.columns)("config",a.config)("rows",a.rows))},dependencies:[I,A,N,F,L,B],styles:['.translate__top-inner[_ngcontent-%COMP%]{width:100%;max-width:100vw;display:flex;background:var(--c-bg-secondary);padding:15px;align-items:end;flex-wrap:wrap;gap:20px;justify-content:space-between;border-radius:10px;margin:0 auto;position:relative}@media screen and (max-width: 1250px){.translate__top-inner[_ngcontent-%COMP%]{justify-content:center}}@media (max-width: 767px){.translate__top-inner[_ngcontent-%COMP%]{flex-direction:column;align-items:center;padding:15px}}.translate__top-inner[_ngcontent-%COMP%]:before{content:"";position:absolute;height:100px;width:100%;background-color:var(--c-bg-secondary);z-index:-1;left:0;right:0;bottom:-50px}.translate__btn[_ngcontent-%COMP%]{position:absolute;top:-5px;right:25px;font-size:23px}.translate__dawn-jcon[_ngcontent-%COMP%] span.material-icons[_ngcontent-%COMP%]{padding-right:5px}.translate__buttons[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:10px}@media (max-width: 575px){.translate__buttons[_ngcontent-%COMP%]{flex-direction:column}.translate__buttons[_ngcontent-%COMP%] wbutton[_ngcontent-%COMP%]{width:100%}}.translate__inner[_ngcontent-%COMP%]{display:flex;gap:40px;flex-wrap:wrap}@media (max-width: 575px){.translate__inner[_ngcontent-%COMP%]{flex-direction:column;align-items:center;gap:20px}}.formboxs_label[_ngcontent-%COMP%]{width:100%;color:var(--c-text-primary);position:relative;display:flex;justify-content:space-between;padding-bottom:10px;padding-right:52px}.translate__main-wrap[_ngcontent-%COMP%]{justify-content:center}.translate__select[_ngcontent-%COMP%]{min-width:200px;max-width:200px;background:var(--c-grey);padding:5px;border:1px solid #7f8c8d;border-radius:5px}.translate__main-inner[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-direction:column;width:100%;max-width:350px;border-radius:10px;margin:5px 15px 35px;padding:10px;height:fit-content;background:var(--c-bg-secondary);border:2px solid var(--c-primary);cursor:pointer}@media (max-width: 575px){.translate__main-inner[_ngcontent-%COMP%]{margin:0}}.title[_ngcontent-%COMP%]{text-align:center}.input[_ngcontent-%COMP%]{width:100%;margin-right:10px;border-radius:5px;padding:5px 10px;border:1px solid var(--c-text-primary)}.formboxs[_ngcontent-%COMP%]{display:flex;gap:10px;flex-direction:column;align-items:flex-start}.formboxs_title[_ngcontent-%COMP%]{color:var(--c-text-primary);display:flex;justify-content:center;align-items:center}.main__sub-inner[_ngcontent-%COMP%]{margin:20px;display:flex;flex-wrap:wrap}@media (max-width: 767px){.main__sub-inner[_ngcontent-%COMP%]{margin:20px 0}}@media (max-width: 575px){.main__sub-inner[_ngcontent-%COMP%]{gap:20px}}.img-close[_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;position:absolute;top:-6px;right:-6px;z-index:2;transition:all .3s;cursor:pointer}.img-close[_ngcontent-%COMP%]:before{content:"";position:absolute;left:50%;top:50%;width:80%;height:2px;transform:translate(-50%,-50%) rotate(45deg);background:var(--c-text-primary)}.img-close[_ngcontent-%COMP%]:after{content:"";position:absolute;left:50%;top:50%;width:80%;height:2px;transform:translate(-50%,-50%) rotate(-45deg);background:var(--c-text-primary)}']})}}return n})();var G=[{path:"",component:H}],dt=(()=>{class n{static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275mod=C({type:n})}static{this.\u0275inj=h({imports:[P.forChild(G),J,T,E,O,z,j,$]})}}return n})();export{dt as TranslatesModule}; diff --git a/chunk-LPDYMR2D.js b/chunk-LPDYMR2D.js new file mode 100644 index 0000000..ca8f048 --- /dev/null +++ b/chunk-LPDYMR2D.js @@ -0,0 +1 @@ +import{b as H,d as W}from"./chunk-2ZMTOFWJ.js";import{c as P,d as S,e as M}from"./chunk-LQFWOSYV.js";import{Ga as b,H as m,I as d,L as u,M as c,R as r,Ta as E,V as t,W as e,X as p,ia as n,ja as f,mb as h,ob as C,pa as y,r as s,ra as w,sa as v,tb as g,ub as x,vb as k}from"./chunk-65U4F77E.js";var I=()=>["banana","lemon","lime"],F=(()=>{class i{constructor(l){this._form=l,this.submition={emails:[]},this.form=this._form.getForm("testform",{formId:"testform",title:"Test Title",components:[{components:[{components:[{name:"Email",key:"emails[].name",fields:[{name:"Placeholder",value:"Enter your email 1"},{name:"Label",value:"Email"}]},{name:"Email",key:"emails[].description",fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]}]},{components:[{name:"Email",key:"emails[].name",fields:[{name:"Placeholder",value:"Enter your email 2"},{name:"Label",value:"Email"}]},{name:"Email",key:"emails[].description",fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]}]}]},{name:"Email",key:"email",fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]},{name:"Password",key:"password",fields:[{name:"Placeholder",value:"Enter your password"},{name:"Label",value:"Password"}]},{name:"Number",key:"resetPin",fields:[{name:"Placeholder",value:"Enter code from email"},{name:"Label",value:"code"}]},{name:"Button",fields:[{name:"Label",value:"Let's go"},{name:"Submit",value:!0},{name:"Click",value:()=>{alert("Button Clicked")}}]}]})}static{this.\u0275fac=function(o){return new(o||i)(d(g))}}static{this.\u0275cmp=u({type:i,selectors:[["ng-component"]],standalone:!1,decls:45,vars:7,consts:[[1,"wrapper-com"],[3,"config","submition"],["type","textarea"],["type","radio",3,"items"],["type","checkbox","label","Hello World"],["type","password"],["type","email"],["type","number"],["type","tel"],["type","url"],["type","search"],["type","date"],["type","datetime-local"],["type","month"],["type","week"],["type","time"],["type","color"],["type","datetime"],["type","range"],["type","primary"],["type","secondary"],["type","success"],["type","danger"],["type","warning"],["type","info"],["type","light"],["type","dark"],["type","link"]],template:function(o,a){o&1&&(t(0,"div",0)(1,"div")(2,"h2"),n(3,"Document Preview:"),e(),t(4,"span"),n(5),w(6,"json"),e()(),p(7,"wform",1)(8,"winput")(9,"winput",2)(10,"winput",3)(11,"winput",4)(12,"winput",5)(13,"winput",6)(14,"winput",7)(15,"winput",8)(16,"winput",9)(17,"winput",10)(18,"winput",11)(19,"winput",12)(20,"winput",13)(21,"winput",14)(22,"winput",15)(23,"winput",16)(24,"winput",17)(25,"winput",18),t(26,"wbutton",19),n(27,"Hello World"),e(),t(28,"wbutton",20),n(29,"Hello World"),e(),t(30,"wbutton",21),n(31,"Hello World"),e(),t(32,"wbutton",22),n(33,"Hello World"),e(),t(34,"wbutton",23),n(35,"Hello World"),e(),t(36,"wbutton",24),n(37,"Hello World"),e(),t(38,"wbutton",25),n(39,"Hello World"),e(),t(40,"wbutton",26),n(41,"Hello World"),e(),t(42,"wbutton",27),n(43,"Hello World"),e(),p(44,"ngx-file"),e()),o&2&&(m(5),f(v(6,4,a.submition)),m(2),r("config",a.form)("submition",a.submition),m(3),r("items",y(6,I)))},dependencies:[h,C,x,P,b],styles:[".wrapper-com[_ngcontent-%COMP%]{height:100vh;overflow:scroll;padding:20px;background:var(--c-bg-primary)}"]})}}return i})();var j=[{path:"",component:F}],U=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275mod=c({type:i})}static{this.\u0275inj=s({imports:[E.forChild(j),M,S,H,W,k]})}}return i})();export{U as ComponentsModule}; diff --git a/chunk-LQFWOSYV.js b/chunk-LQFWOSYV.js new file mode 100644 index 0000000..aa0b366 --- /dev/null +++ b/chunk-LQFWOSYV.js @@ -0,0 +1,37 @@ +import{$ as ee,A as ge,Aa as ct,Ab as it,B as Ve,Ba as Ae,C as Mt,Ca as Ye,Da as Te,Ea as Vt,F as et,Fa as Nt,G as Rt,H as le,Ha as xe,I as ne,J as Lt,L as se,M as _e,Ma as jt,N as Tt,Na as Ut,O as Ot,P as re,Q as Ne,R as q,S as je,T as Ue,U as rt,Ua as Kt,V as K,Va as Gt,W as G,X as me,Xa as Qt,Y as ot,Ya as Yt,Z as st,Za as Oe,_ as ce,a as we,aa as ie,b as Pe,ba as at,ca as Ke,d as Ft,da as pt,db as Xt,e as yt,ea as de,f as ke,fa as he,g as Et,ga as ue,gb as Zt,h as _t,ha as It,hb as Jt,i as qe,ia as be,ib as qt,j as gt,ja as Ge,jb as tt,k as mt,ka as Qe,l as xt,m as St,mb as Xe,n as $t,nb as Ze,oa as Pt,ob as Se,p as Bt,pb as ht,q as Le,r as Ee,s as Dt,t as We,tb as fe,u as He,ua as pe,v as ze,va as Wt,vb as ei,w as Z,wa as lt,wb as ti,x as J,xa as Ht,y as kt,ya as vt,yb as ii,za as zt,zb as ni}from"./chunk-65U4F77E.js";var wt=Ft((io,mi)=>{"use strict";(function(){var p="ace",b=function(){return this}();if(!b&&typeof window<"u"&&(b=window),!p&&typeof acequirejs<"u")return;var h=function(t,e,r){if(typeof t!="string"){h.original?h.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace());return}arguments.length==2&&(r=e),h.modules[t]||(h.payloads[t]=r,h.modules[t]=null)};h.modules={},h.payloads={};var c=function(t,e,r){if(typeof e=="string"){var i=a(t,e);if(i!=null)return r&&r(),i}else if(Object.prototype.toString.call(e)==="[object Array]"){for(var o=[],s=0,g=e.length;s1&&n(e,"")>-1&&(i=RegExp(this.source,c.replace.call(a(this),"g","")),c.replace.call(t.slice(e.index),i,function(){for(var s=1;se.index&&this.lastIndex--}return e},l||(RegExp.prototype.test=function(t){var e=c.exec.call(this,t);return e&&this.global&&!e[0].length&&this.lastIndex>e.index&&this.lastIndex--,!!e});function a(t){return(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":"")}function n(t,e,r){if(Array.prototype.indexOf)return t.indexOf(e,r);for(var i=r||0;i0?M>z&&(M=z):M==null?M=0:M<0&&(M=Math.max(z+M,0)),M+kX)for(V=oe;V--;)this[Y+V]=this[X+V];if(R&&M===ae)this.length=ae,this.push.apply(this,j);else for(this.length=ae+R,V=0;V>>0;if(t(k)!="[object Function]")throw new TypeError;for(;++R>>0,R=Array(j),W=arguments[1];if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");for(var X=0;X>>0,R=[],W,X=arguments[1];if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");for(var Y=0;Y>>0,R=arguments[1];if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");for(var W=0;W>>0,R=arguments[1];if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");for(var W=0;W>>0;if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");if(!j&&arguments.length==1)throw new TypeError("reduce of empty array with no initial value");var R=0,W;if(arguments.length>=2)W=arguments[1];else do{if(R in P){W=P[R++];break}if(++R>=j)throw new TypeError("reduce of empty array with no initial value")}while(!0);for(;R>>0;if(t(k)!="[object Function]")throw new TypeError(k+" is not a function");if(!j&&arguments.length==1)throw new TypeError("reduceRight of empty array with no initial value");var R,W=j-1;if(arguments.length>=2)R=arguments[1];else do{if(W in P){R=P[W--];break}if(--W<0)throw new TypeError("reduceRight of empty array with no initial value")}while(!0);do W in this&&(R=k.call(void 0,R,P[W],W,z));while(W--);return R}),(!Array.prototype.indexOf||[0,1].indexOf(1,2)!=-1)&&(Array.prototype.indexOf=function(k){var z=y&&t(this)=="[object String]"?this.split(""):T(this),P=z.length>>>0;if(!P)return-1;var j=0;for(arguments.length>1&&(j=N(arguments[1])),j=j>=0?j:Math.max(0,P+j);j>>0;if(!P)return-1;var j=P-1;for(arguments.length>1&&(j=Math.min(j,N(arguments[1]))),j=j>=0?j:P-Math.abs(j);j>=0;j--)if(j in z&&k===z[j])return j;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(k){return k.__proto__||(k.constructor?k.constructor.prototype:a)}),!Object.getOwnPropertyDescriptor){var m="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(k,z){if(typeof k!="object"&&typeof k!="function"||k===null)throw new TypeError(m+k);if(e(k,z)){var P,j,R;if(P={enumerable:!0,configurable:!0},g){var W=k.__proto__;k.__proto__=a;var j=o(k,z),R=s(k,z);if(k.__proto__=W,j||R)return j&&(P.get=j),R&&(P.set=R),P}return P.value=k[z],P}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(k){return Object.keys(k)}),!Object.create){var w;Object.prototype.__proto__===null?w=function(){return{__proto__:null}}:w=function(){var M={};for(var k in M)M[k]=null;return M.constructor=M.hasOwnProperty=M.propertyIsEnumerable=M.isPrototypeOf=M.toLocaleString=M.toString=M.valueOf=M.__proto__=null,M},Object.create=function(k,z){var P;if(k===null)P=w();else{if(typeof k!="object")throw new TypeError("typeof prototype["+typeof k+"] != 'object'");var j=function(){};j.prototype=k,P=new j,P.__proto__=k}return z!==void 0&&Object.defineProperties(P,z),P}}function d(M){try{return Object.defineProperty(M,"sentinel",{}),"sentinel"in M}catch{}}if(Object.defineProperty){var v=d({}),F=typeof document>"u"||d(document.createElement("div"));if(!v||!F)var E=Object.defineProperty}if(!Object.defineProperty||E){var f="Property description must be an object: ",A="Object.defineProperty called on non-object: ",x="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(k,z,P){if(typeof k!="object"&&typeof k!="function"||k===null)throw new TypeError(A+k);if(typeof P!="object"&&typeof P!="function"||P===null)throw new TypeError(f+P);if(E)try{return E.call(Object,k,z,P)}catch{}if(e(P,"value"))if(g&&(o(k,z)||s(k,z))){var j=k.__proto__;k.__proto__=a,delete k[z],k[z]=P.value,k.__proto__=j}else k[z]=P.value;else{if(!g)throw new TypeError(x);e(P,"get")&&r(k,z,P.get),e(P,"set")&&i(k,z,P.set)}return k}}Object.defineProperties||(Object.defineProperties=function(k,z){for(var P in z)e(z,P)&&Object.defineProperty(k,P,z[P]);return k}),Object.seal||(Object.seal=function(k){return k}),Object.freeze||(Object.freeze=function(k){return k});try{Object.freeze(function(){})}catch{Object.freeze=function(z){return function(j){return typeof j=="function"?j:z(j)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(k){return k}),Object.isSealed||(Object.isSealed=function(k){return!1}),Object.isFrozen||(Object.isFrozen=function(k){return!1}),Object.isExtensible||(Object.isExtensible=function(k){if(Object(k)===k)throw new TypeError;for(var z="";e(k,z);)z+="?";k[z]=!0;var P=e(k,z);return delete k[z],P}),!Object.keys){var S=!0,$=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],B=$.length;for(var D in{toString:null})S=!1;Object.keys=function(k){if(typeof k!="object"&&typeof k!="function"||k===null)throw new TypeError("Object.keys called on a non-object");var z=[];for(var P in k)e(k,P)&&z.push(P);if(S)for(var j=0,R=B;j0||-1)*Math.floor(Math.abs(M))),M}function L(M){var k=typeof M;return M===null||k==="undefined"||k==="boolean"||k==="number"||k==="string"}function U(M){var k,z,P;if(L(M))return M;if(z=M.valueOf,typeof z=="function"&&(k=z.call(M),L(k))||(P=M.toString,typeof P=="function"&&(k=P.call(M),L(k))))return k;throw new TypeError}var T=function(M){if(M==null)throw new TypeError("can't convert "+M+" to object");return Object(M)}});ace.define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(p,b,h){"use strict";p("./regexp"),p("./es5-shim")});ace.define("ace/lib/dom",["require","exports","module"],function(p,b,h){"use strict";var c="http://www.w3.org/1999/xhtml";if(b.getDocumentHead=function(u){return u||(u=document),u.head||u.getElementsByTagName("head")[0]||u.documentElement},b.createElement=function(u,l){return document.createElementNS?document.createElementNS(l||c,u):document.createElement(u)},b.hasCssClass=function(u,l){var a=(u.className+"").split(/\s+/g);return a.indexOf(l)!==-1},b.addCssClass=function(u,l){b.hasCssClass(u,l)||(u.className+=" "+l)},b.removeCssClass=function(u,l){for(var a=u.className.split(/\s+/g);;){var n=a.indexOf(l);if(n==-1)break;a.splice(n,1)}u.className=a.join(" ")},b.toggleCssClass=function(u,l){for(var a=u.className.split(/\s+/g),n=!0;;){var t=a.indexOf(l);if(t==-1)break;n=!1,a.splice(t,1)}return n&&a.push(l),u.className=a.join(" "),n},b.setCssClass=function(u,l,a){a?b.addCssClass(u,l):b.removeCssClass(u,l)},b.hasCssString=function(u,l){var a=0,n;if(l=l||document,l.createStyleSheet&&(n=l.styleSheets)){for(;a"u"){b.importCssString=function(){};return}window.pageYOffset!==void 0?(b.getPageScrollTop=function(){return window.pageYOffset},b.getPageScrollLeft=function(){return window.pageXOffset}):(b.getPageScrollTop=function(){return document.body.scrollTop},b.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?b.computedStyle=function(u,l){return l?(window.getComputedStyle(u,"")||{})[l]||"":window.getComputedStyle(u,"")||{}}:b.computedStyle=function(u,l){return l?u.currentStyle[l]:u.currentStyle},b.setInnerHtml=function(u,l){var a=u.cloneNode(!1);return a.innerHTML=l,u.parentNode.replaceChild(a,u),a},"textContent"in document.documentElement?(b.setInnerText=function(u,l){u.textContent=l},b.getInnerText=function(u){return u.textContent}):(b.setInnerText=function(u,l){u.innerText=l},b.getInnerText=function(u){return u.innerText}),b.getParentWindow=function(u){return u.defaultView||u.parentWindow}});ace.define("ace/lib/oop",["require","exports","module"],function(p,b,h){"use strict";b.inherits=function(c,u){c.super_=u,c.prototype=Object.create(u.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}})},b.mixin=function(c,u){for(var l in u)c[l]=u[l];return c},b.implement=function(c,u){b.mixin(c,u)}});ace.define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(p,b,h){"use strict";p("./fixoldbrowsers");var c=p("./oop"),u=function(){var l={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}},a,n;for(n in l.FUNCTION_KEYS)a=l.FUNCTION_KEYS[n].toLowerCase(),l[a]=parseInt(n,10);for(n in l.PRINTABLE_KEYS)a=l.PRINTABLE_KEYS[n].toLowerCase(),l[a]=parseInt(n,10);return c.mixin(l,l.MODIFIER_KEYS),c.mixin(l,l.PRINTABLE_KEYS),c.mixin(l,l.FUNCTION_KEYS),l.enter=l.return,l.escape=l.esc,l.del=l.delete,l[173]="-",function(){for(var t=["cmd","ctrl","alt","shift"],e=Math.pow(2,t.length);e--;)l.KEY_MODS[e]=t.filter(function(r){return e&l.KEY_MODS[r]}).join("-")+"-"}(),l.KEY_MODS[0]="",l.KEY_MODS[-1]="input-",l}();c.mixin(b,u),b.keyCodeToString=function(l){var a=u[l];return typeof a!="string"&&(a=String.fromCharCode(l)),a.toLowerCase()}});ace.define("ace/lib/useragent",["require","exports","module"],function(p,b,h){"use strict";if(b.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},b.getOS=function(){return b.isMac?b.OS.MAC:b.isLinux?b.OS.LINUX:b.OS.WINDOWS},typeof navigator=="object"){var c=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),u=navigator.userAgent;b.isWin=c=="win",b.isMac=c=="mac",b.isLinux=c=="linux",b.isIE=navigator.appName=="Microsoft Internet Explorer"||navigator.appName.indexOf("MSAppHost")>=0?parseFloat((u.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((u.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),b.isOldIE=b.isIE&&b.isIE<9,b.isGecko=b.isMozilla=(window.Controllers||window.controllers)&&window.navigator.product==="Gecko",b.isOldGecko=b.isGecko&&parseInt((u.match(/rv:(\d+)/)||[])[1],10)<4,b.isOpera=window.opera&&Object.prototype.toString.call(window.opera)=="[object Opera]",b.isWebKit=parseFloat(u.split("WebKit/")[1])||void 0,b.isChrome=parseFloat(u.split(" Chrome/")[1])||void 0,b.isAIR=u.indexOf("AdobeAIR")>=0,b.isIPad=u.indexOf("iPad")>=0,b.isChromeOS=u.indexOf(" CrOS ")>=0,b.isIOS=/iPad|iPhone|iPod/.test(u)&&!window.MSStream,b.isIOS&&(b.isMac=!0)}});ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("./keys"),u=p("./useragent"),l=null,a=0;b.addListener=function(i,o,s){if(i.addEventListener)return i.addEventListener(o,s,!1);if(i.attachEvent){var g=function(){s.call(i,window.event)};s._wrapper=g,i.attachEvent("on"+o,g)}},b.removeListener=function(i,o,s){if(i.removeEventListener)return i.removeEventListener(o,s,!1);i.detachEvent&&i.detachEvent("on"+o,s._wrapper||s)},b.stopEvent=function(i){return b.stopPropagation(i),b.preventDefault(i),!1},b.stopPropagation=function(i){i.stopPropagation?i.stopPropagation():i.cancelBubble=!0},b.preventDefault=function(i){i.preventDefault?i.preventDefault():i.returnValue=!1},b.getButton=function(i){return i.type=="dblclick"?0:i.type=="contextmenu"||u.isMac&&i.ctrlKey&&!i.altKey&&!i.shiftKey?2:i.preventDefault?i.button:{1:0,2:2,4:1}[i.button]},b.capture=function(i,o,s){function g(C){o&&o(C),s&&s(C),b.removeListener(document,"mousemove",o,!0),b.removeListener(document,"mouseup",g,!0),b.removeListener(document,"dragstart",g,!0)}return b.addListener(document,"mousemove",o,!0),b.addListener(document,"mouseup",g,!0),b.addListener(document,"dragstart",g,!0),g},b.addTouchMoveListener=function(i,o){var s,g;b.addListener(i,"touchstart",function(C){var _=C.touches,y=_[0];s=y.clientX,g=y.clientY}),b.addListener(i,"touchmove",function(C){var _=C.touches;if(!(_.length>1)){var y=_[0];C.wheelX=s-y.clientX,C.wheelY=g-y.clientY,s=y.clientX,g=y.clientY,o(C)}})},b.addMouseWheelListener=function(i,o){"onmousewheel"in i?b.addListener(i,"mousewheel",function(s){var g=8;s.wheelDeltaX!==void 0?(s.wheelX=-s.wheelDeltaX/g,s.wheelY=-s.wheelDeltaY/g):(s.wheelX=0,s.wheelY=-s.wheelDelta/g),o(s)}):"onwheel"in i?b.addListener(i,"wheel",function(s){var g=.35;switch(s.deltaMode){case s.DOM_DELTA_PIXEL:s.wheelX=s.deltaX*g||0,s.wheelY=s.deltaY*g||0;break;case s.DOM_DELTA_LINE:case s.DOM_DELTA_PAGE:s.wheelX=(s.deltaX||0)*5,s.wheelY=(s.deltaY||0)*5;break}o(s)}):b.addListener(i,"DOMMouseScroll",function(s){s.axis&&s.axis==s.HORIZONTAL_AXIS?(s.wheelX=(s.detail||0)*5,s.wheelY=0):(s.wheelX=0,s.wheelY=(s.detail||0)*5),o(s)})},b.addMultiMouseDownListener=function(i,o,s,g){var C=0,_,y,m,w={2:"dblclick",3:"tripleclick",4:"quadclick"};function d(F){if(b.getButton(F)!==0?C=0:F.detail>1?(C++,C>4&&(C=1)):C=1,u.isIE){var E=Math.abs(F.clientX-_)>5||Math.abs(F.clientY-y)>5;(!m||E)&&(C=1),m&&clearTimeout(m),m=setTimeout(function(){m=null},o[C-1]||600),C==1&&(_=F.clientX,y=F.clientY)}if(F._clicks=C,s[g]("mousedown",F),C>4)C=0;else if(C>1)return s[g](w[C],F)}function v(F){C=2,m&&clearTimeout(m),m=setTimeout(function(){m=null},o[C-1]||600),s[g]("mousedown",F),s[g](w[C],F)}Array.isArray(i)||(i=[i]),i.forEach(function(F){b.addListener(F,"mousedown",d),u.isOldIE&&b.addListener(F,"dblclick",v)})};var n=u.isMac&&u.isOpera&&!("KeyboardEvent"in window)?function(i){return 0|(i.metaKey?1:0)|(i.altKey?2:0)|(i.shiftKey?4:0)|(i.ctrlKey?8:0)}:function(i){return 0|(i.ctrlKey?1:0)|(i.altKey?2:0)|(i.shiftKey?4:0)|(i.metaKey?8:0)};b.getModifierString=function(i){return c.KEY_MODS[n(i)]};function t(i,o,s){var g=n(o);if(!u.isMac&&l){if(o.getModifierState&&(o.getModifierState("OS")||o.getModifierState("Win"))&&(g|=8),l.altGr)if((3&g)!=3)l.altGr=0;else return;if(s===18||s===17){var C="location"in o?o.location:o.keyLocation;if(s===17&&C===1)l[s]==1&&(a=o.timeStamp);else if(s===18&&g===3&&C===2){var _=o.timeStamp-a;_<50&&(l.altGr=!0)}}}if(s in c.MODIFIER_KEYS&&(s=-1),g&8&&s>=91&&s<=93&&(s=-1),!g&&s===13){var C="location"in o?o.location:o.keyLocation;if(C===3&&(i(o,g,-s),o.defaultPrevented))return}if(u.isChromeOS&&g&8){if(i(o,g,s),o.defaultPrevented)return;g&=-9}return!g&&!(s in c.FUNCTION_KEYS)&&!(s in c.PRINTABLE_KEYS)?!1:i(o,g,s)}b.addCommandKeyListener=function(i,o){var s=b.addListener;if(u.isOldGecko||u.isOpera&&!("KeyboardEvent"in window)){var g=null;s(i,"keydown",function(_){g=_.keyCode}),s(i,"keypress",function(_){return t(o,_,g)})}else{var C=null;s(i,"keydown",function(_){l[_.keyCode]=(l[_.keyCode]||0)+1;var y=t(o,_,_.keyCode);return C=_.defaultPrevented,y}),s(i,"keypress",function(_){C&&(_.ctrlKey||_.altKey||_.shiftKey||_.metaKey)&&(b.stopEvent(_),C=null)}),s(i,"keyup",function(_){l[_.keyCode]=null}),l||(e(),s(window,"focus",e))}};function e(){l=Object.create(null)}if(typeof window=="object"&&window.postMessage&&!u.isOldIE){var r=1;b.nextTick=function(i,o){o=o||window;var s="zero-timeout-message-"+r;b.addListener(o,"message",function g(C){C.data==s&&(b.stopPropagation(C),b.removeListener(o,"message",g),i())}),o.postMessage(s,"*")}}b.nextFrame=typeof window=="object"&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),b.nextFrame?b.nextFrame=b.nextFrame.bind(window):b.nextFrame=function(i){setTimeout(i,17)}});ace.define("ace/lib/lang",["require","exports","module"],function(p,b,h){"use strict";b.last=function(l){return l[l.length-1]},b.stringReverse=function(l){return l.split("").reverse().join("")},b.stringRepeat=function(l,a){for(var n="";a>0;)a&1&&(n+=l),(a>>=1)&&(l+=l);return n};var c=/^\s\s*/,u=/\s\s*$/;b.stringTrimLeft=function(l){return l.replace(c,"")},b.stringTrimRight=function(l){return l.replace(u,"")},b.copyObject=function(l){var a={};for(var n in l)a[n]=l[n];return a},b.copyArray=function(l){for(var a=[],n=0,t=l.length;n_.length?V=V.substr(9):V.substr(0,4)==_.substr(0,4)?V=V.substr(4,V.length-_.length+1):V.charAt(V.length-1)==_.charAt(0)&&(V=V.slice(0,-1)),V==_.charAt(0)||V.charAt(V.length-1)==_.charAt(0)&&(V=V.slice(0,-1)),V&&s.onTextInput(V)),y&&(y=!1),O&&(O=!1))},H=function(V){if(!d){var Q=C.value;I(Q),S()}},N=function(V,Q,te){var ye=V.clipboardData||window.clipboardData;if(!(!ye||e)){var $e=r||te?"Text":"text/plain";try{return Q?ye.setData($e,Q)!==!1:ye.getData($e)}catch(Fe){if(!te)return N(Fe,Q,!0)}}},L=function(V,Q){var te=s.getCopyText();if(!te)return c.preventDefault(V);N(V,te)?(u.isIOS&&(m=Q,C.value=` + aa`+te+`a a +`,C.setSelectionRange(4,4+te.length),y={value:te}),Q?s.onCut():s.onCopy(),u.isIOS||c.preventDefault(V)):(y=!0,C.value=te,C.select(),setTimeout(function(){y=!1,S(),x(),Q?s.onCut():s.onCopy()}))},U=function(V){L(V,!0)},T=function(V){L(V,!1)},M=function(V){var Q=N(V);typeof Q=="string"?(Q&&s.onPaste(Q,V),u.isIE&&setTimeout(x),c.preventDefault(V)):(C.value="",w=!0)};c.addCommandKeyListener(C,s.onCommandKey.bind(s)),c.addListener(C,"select",B),c.addListener(C,"input",H),c.addListener(C,"cut",U),c.addListener(C,"copy",T),c.addListener(C,"paste",M);var k=function(V){d||!s.onCompositionStart||s.$readOnly||(d={},d.canUndo=s.session.$undoManager,s.onCompositionStart(),setTimeout(z,0),s.on("mousedown",P),d.canUndo&&!s.selection.isEmpty()&&(s.insert(""),s.session.markUndoGroup(),s.selection.clearSelection()),s.session.markUndoGroup())},z=function(){if(!(!d||!s.onCompositionUpdate||s.$readOnly)){var V=C.value.replace(/\x01/g,"");if(d.lastValue!==V&&(s.onCompositionUpdate(V),d.lastValue&&s.undo(),d.canUndo&&(d.lastValue=V),d.lastValue)){var Q=s.selection.getRange();s.insert(d.lastValue),s.session.markUndoGroup(),d.range=s.selection.getRange(),s.selection.setRange(Q),s.selection.clearSelection()}}},P=function(V){if(!(!s.onCompositionEnd||s.$readOnly)){var Q=d;d=!1;var te=setTimeout(function(){te=null;var $e=C.value.replace(/\x01/g,"");d||($e==Q.lastValue?S():!Q.lastValue&&$e&&(S(),I($e)))});D=function(Fe){return te&&clearTimeout(te),Fe=Fe.replace(/\x01/g,""),Fe==Q.lastValue?"":(Q.lastValue&&te&&s.undo(),Fe)},s.onCompositionEnd(),s.removeListener("mousedown",P),V.type=="compositionend"&&Q.range&&s.selection.setRange(Q.range);var ye=!!u.isChrome&&u.isChrome>=53||!!u.isWebKit&&u.isWebKit>=603;ye&&H()}},j=a.delayedCall(z,50);c.addListener(C,"compositionstart",k),u.isGecko?c.addListener(C,"text",function(){j.schedule()}):(c.addListener(C,"keyup",function(){j.schedule()}),c.addListener(C,"keydown",function(){j.schedule()})),c.addListener(C,"compositionend",P),this.getElement=function(){return C},this.setReadOnly=function(V){C.readOnly=V},this.onContextMenu=function(V){O=!0,x(s.selection.isEmpty()),s._emit("nativecontextmenu",{target:s,domEvent:V}),this.moveToMouse(V,!0)},this.moveToMouse=function(V,Q){v||(v=C.style.cssText),C.style.cssText=(Q?"z-index:100000;":"")+"height:"+C.style.height+";"+(u.isIE?"opacity:0.1;":"");var te=s.container.getBoundingClientRect(),ye=l.computedStyle(s.container),$e=te.top+(parseInt(ye.borderTopWidth)||0),Fe=te.left+(parseInt(te.borderLeftWidth)||0),Ce=te.bottom-$e-C.clientHeight-2,Be=function(Je){C.style.left=Je.clientX-Fe-2+"px",C.style.top=Math.min(Je.clientY-$e-2,Ce)+"px"};Be(V),V.type=="mousedown"&&(s.renderer.$keepTextAreaAtCursor&&(s.renderer.$keepTextAreaAtCursor=null),clearTimeout(R),u.isWin&&c.capture(s.container,Be,W))},this.onContextMenuClose=W;var R;function W(){clearTimeout(R),R=setTimeout(function(){v&&(C.style.cssText=v,v=""),s.renderer.$keepTextAreaAtCursor==null&&(s.renderer.$keepTextAreaAtCursor=!0,s.renderer.$moveTextAreaToCursor())},0)}var X=function(V){s.textInput.onContextMenu(V),W()};if(c.addListener(C,"mouseup",X),c.addListener(C,"mousedown",function(V){V.preventDefault(),W()}),c.addListener(s.renderer.scroller,"contextmenu",X),c.addListener(C,"contextmenu",X),u.isIOS){var Y=null,oe=!1;o.addEventListener("keydown",function(V){Y&&clearTimeout(Y),oe=!0}),o.addEventListener("keyup",function(V){Y=setTimeout(function(){oe=!1},100)});var ae=function(V){if(document.activeElement===C&&!oe){if(m)return setTimeout(function(){m=!1},100);var Q=C.selectionStart,te=C.selectionEnd;if(C.setSelectionRange(4,5),Q==te)switch(Q){case 0:s.onCommandKey(null,0,n.up);break;case 1:s.onCommandKey(null,0,n.home);break;case 2:s.onCommandKey(null,t.option,n.left);break;case 4:s.onCommandKey(null,0,n.left);break;case 5:s.onCommandKey(null,0,n.right);break;case 7:s.onCommandKey(null,t.option,n.right);break;case 8:s.onCommandKey(null,0,n.end);break;case 9:s.onCommandKey(null,0,n.down);break}else{switch(te){case 6:s.onCommandKey(null,t.shift,n.right);break;case 7:s.onCommandKey(null,t.shift|t.option,n.right);break;case 8:s.onCommandKey(null,t.shift,n.end);break;case 9:s.onCommandKey(null,t.shift,n.down);break}switch(Q){case 0:s.onCommandKey(null,t.shift,n.up);break;case 1:s.onCommandKey(null,t.shift,n.home);break;case 2:s.onCommandKey(null,t.shift|t.option,n.left);break;case 3:s.onCommandKey(null,t.shift,n.left);break}}}};document.addEventListener("selectionchange",ae),s.on("destroy",function(){document.removeEventListener("selectionchange",ae)})}};b.TextInput=i});ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/keyboard/textinput_ios"],function(p,b,h){"use strict";var c=p("../lib/event"),u=p("../lib/useragent"),l=p("../lib/dom"),a=p("../lib/lang"),n=u.isChrome<18,t=u.isIE,e=p("./textinput_ios").TextInput,r=function(i,o){if(u.isIOS)return e.call(this,i,o);var s=l.createElement("textarea");s.className="ace_text-input",s.setAttribute("wrap","off"),s.setAttribute("autocorrect","off"),s.setAttribute("autocapitalize","off"),s.setAttribute("spellcheck",!1),s.style.opacity="0",i.insertBefore(s,i.firstChild);var g="\u2028\u2028",C=!1,_=!1,y=!1,m="",w=!0;try{var d=document.activeElement===s}catch{}c.addListener(s,"blur",function(R){o.onBlur(R),d=!1}),c.addListener(s,"focus",function(R){d=!0,o.onFocus(R),E()}),this.focus=function(){if(m)return s.focus();var R=s.style.top;s.style.position="fixed",s.style.top="0px",s.focus(),setTimeout(function(){s.style.position="",s.style.top=="0px"&&(s.style.top=R)},0)},this.blur=function(){s.blur()},this.isFocused=function(){return d};var v=a.delayedCall(function(){d&&E(w)}),F=a.delayedCall(function(){y||(s.value=g,d&&E())});function E(R){if(!y){if(y=!0,S)var W=0,X=R?0:s.value.length-1;else var W=R?2:1,X=2;try{s.setSelectionRange(W,X)}catch{}y=!1}}function f(){y||(s.value=g,u.isWebKit&&F.schedule())}u.isWebKit||o.addEventListener("changeSelection",function(){o.selection.isEmpty()!=w&&(w=!w,v.schedule())}),f(),d&&o.onFocus();var A=function(R){return R.selectionStart===0&&R.selectionEnd===R.value.length},x=function(R){C?C=!1:A(s)?(o.selectAll(),E()):S&&E(o.selection.isEmpty())},S=null;this.setInputHandler=function(R){S=R},this.getInputHandler=function(){return S};var $=!1,B=function(R){S&&(R=S(R),S=null),_?(E(),R&&o.onPaste(R),_=!1):R==g.charAt(0)?$?o.execCommand("del",{source:"ace"}):o.execCommand("backspace",{source:"ace"}):(R.substring(0,2)==g?R=R.substr(2):R.charAt(0)==g.charAt(0)?R=R.substr(1):R.charAt(R.length-1)==g.charAt(0)&&(R=R.slice(0,-1)),R.charAt(R.length-1)==g.charAt(0)&&(R=R.slice(0,-1)),R&&o.onTextInput(R)),$&&($=!1)},D=function(R){if(!y){var W=s.value;B(W),f()}},O=function(R,W,X){var Y=R.clipboardData||window.clipboardData;if(!(!Y||n)){var oe=t||X?"Text":"text/plain";try{return W?Y.setData(oe,W)!==!1:Y.getData(oe)}catch(ae){if(!X)return O(ae,W,!0)}}},I=function(R,W){var X=o.getCopyText();if(!X)return c.preventDefault(R);O(R,X)?(W?o.onCut():o.onCopy(),c.preventDefault(R)):(C=!0,s.value=X,s.select(),setTimeout(function(){C=!1,f(),E(),W?o.onCut():o.onCopy()}))},H=function(R){I(R,!0)},N=function(R){I(R,!1)},L=function(R){var W=O(R);typeof W=="string"?(W&&o.onPaste(W,R),u.isIE&&setTimeout(E),c.preventDefault(R)):(s.value="",_=!0)};c.addCommandKeyListener(s,o.onCommandKey.bind(o)),c.addListener(s,"select",x),c.addListener(s,"input",D),c.addListener(s,"cut",H),c.addListener(s,"copy",N),c.addListener(s,"paste",L),(!("oncut"in s)||!("oncopy"in s)||!("onpaste"in s))&&c.addListener(i,"keydown",function(R){if(!(u.isMac&&!R.metaKey||!R.ctrlKey))switch(R.keyCode){case 67:N(R);break;case 86:L(R);break;case 88:H(R);break}});var U=function(R){y||!o.onCompositionStart||o.$readOnly||(y={},y.canUndo=o.session.$undoManager,o.onCompositionStart(),setTimeout(T,0),o.on("mousedown",M),y.canUndo&&!o.selection.isEmpty()&&(o.insert(""),o.session.markUndoGroup(),o.selection.clearSelection()),o.session.markUndoGroup())},T=function(){if(!(!y||!o.onCompositionUpdate||o.$readOnly)){var R=s.value.replace(/\u2028/g,"");if(y.lastValue!==R&&(o.onCompositionUpdate(R),y.lastValue&&o.undo(),y.canUndo&&(y.lastValue=R),y.lastValue)){var W=o.selection.getRange();o.insert(y.lastValue),o.session.markUndoGroup(),y.range=o.selection.getRange(),o.selection.setRange(W),o.selection.clearSelection()}}},M=function(R){if(!(!o.onCompositionEnd||o.$readOnly)){var W=y;y=!1;var X=setTimeout(function(){X=null;var oe=s.value.replace(/\u2028/g,"");y||(oe==W.lastValue?f():!W.lastValue&&oe&&(f(),B(oe)))});S=function(ae){return X&&clearTimeout(X),ae=ae.replace(/\u2028/g,""),ae==W.lastValue?"":(W.lastValue&&X&&o.undo(),ae)},o.onCompositionEnd(),o.removeListener("mousedown",M),R.type=="compositionend"&&W.range&&o.selection.setRange(W.range);var Y=!!u.isChrome&&u.isChrome>=53||!!u.isWebKit&&u.isWebKit>=603;Y&&D()}},k=a.delayedCall(T,50);c.addListener(s,"compositionstart",U),u.isGecko?c.addListener(s,"text",function(){k.schedule()}):(c.addListener(s,"keyup",function(){k.schedule()}),c.addListener(s,"keydown",function(){k.schedule()})),c.addListener(s,"compositionend",M),this.getElement=function(){return s},this.setReadOnly=function(R){s.readOnly=R},this.onContextMenu=function(R){$=!0,E(o.selection.isEmpty()),o._emit("nativecontextmenu",{target:o,domEvent:R}),this.moveToMouse(R,!0)},this.moveToMouse=function(R,W){m||(m=s.style.cssText),s.style.cssText=(W?"z-index:100000;":"")+"height:"+s.style.height+";"+(u.isIE?"opacity:0.1;":"");var X=o.container.getBoundingClientRect(),Y=l.computedStyle(o.container),oe=X.top+(parseInt(Y.borderTopWidth)||0),ae=X.left+(parseInt(X.borderLeftWidth)||0),V=X.bottom-oe-s.clientHeight-2,Q=function(te){s.style.left=te.clientX-ae-2+"px",s.style.top=Math.min(te.clientY-oe-2,V)+"px"};Q(R),R.type=="mousedown"&&(o.renderer.$keepTextAreaAtCursor&&(o.renderer.$keepTextAreaAtCursor=null),clearTimeout(z),u.isWin&&c.capture(o.container,Q,P))},this.onContextMenuClose=P;var z;function P(){clearTimeout(z),z=setTimeout(function(){m&&(s.style.cssText=m,m=""),o.renderer.$keepTextAreaAtCursor==null&&(o.renderer.$keepTextAreaAtCursor=!0,o.renderer.$moveTextAreaToCursor())},0)}var j=function(R){o.textInput.onContextMenu(R),P()};c.addListener(s,"mouseup",j),c.addListener(s,"mousedown",function(R){R.preventDefault(),P()}),c.addListener(o.renderer.scroller,"contextmenu",j),c.addListener(s,"contextmenu",j)};b.TextInput=r});ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("../lib/dom"),u=p("../lib/event"),l=p("../lib/useragent"),a=0,n=250;function t(i){i.$clickSelection=null;var o=i.editor;o.setDefaultHandler("mousedown",this.onMouseDown.bind(i)),o.setDefaultHandler("dblclick",this.onDoubleClick.bind(i)),o.setDefaultHandler("tripleclick",this.onTripleClick.bind(i)),o.setDefaultHandler("quadclick",this.onQuadClick.bind(i)),o.setDefaultHandler("mousewheel",this.onMouseWheel.bind(i)),o.setDefaultHandler("touchmove",this.onTouchMove.bind(i));var s=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];s.forEach(function(g){i[g]=this[g]},this),i.selectByLines=this.extendSelectionBy.bind(i,"getLineRange"),i.selectByWords=this.extendSelectionBy.bind(i,"getWordRange")}(function(){this.onMouseDown=function(i){var o=i.inSelection(),s=i.getDocumentPosition();this.mousedownEvent=i;var g=this.editor,C=i.getButton();if(C!==0){var _=g.getSelectionRange(),y=_.isEmpty();g.$blockScrolling++,(y||C==1)&&g.selection.moveToPosition(s),g.$blockScrolling--,C==2&&(g.textInput.onContextMenu(i.domEvent),l.isMozilla||i.preventDefault());return}if(this.mousedownEvent.time=Date.now(),o&&!g.isFocused()&&(g.focus(),this.$focusTimout&&!this.$clickSelection&&!g.inMultiSelectMode)){this.setState("focusWait"),this.captureMouse(i);return}return this.captureMouse(i),this.startSelect(s,i.domEvent._clicks>1),i.preventDefault()},this.startSelect=function(i,o){i=i||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var s=this.editor;s.$blockScrolling++,this.mousedownEvent.getShiftKey()?s.selection.selectToPosition(i):o||s.selection.moveToPosition(i),o||this.select(),s.renderer.scroller.setCapture&&s.renderer.scroller.setCapture(),s.setStyle("ace_selecting"),this.setState("select"),s.$blockScrolling--},this.select=function(){var i,o=this.editor,s=o.renderer.screenToTextCoordinates(this.x,this.y);if(o.$blockScrolling++,this.$clickSelection){var g=this.$clickSelection.comparePoint(s);if(g==-1)i=this.$clickSelection.end;else if(g==1)i=this.$clickSelection.start;else{var C=r(this.$clickSelection,s);s=C.cursor,i=C.anchor}o.selection.setSelectionAnchor(i.row,i.column)}o.selection.selectToPosition(s),o.$blockScrolling--,o.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(i){var o,s=this.editor,g=s.renderer.screenToTextCoordinates(this.x,this.y),C=s.selection[i](g.row,g.column);if(s.$blockScrolling++,this.$clickSelection){var _=this.$clickSelection.comparePoint(C.start),y=this.$clickSelection.comparePoint(C.end);if(_==-1&&y<=0)o=this.$clickSelection.end,(C.end.row!=g.row||C.end.column!=g.column)&&(g=C.start);else if(y==1&&_>=0)o=this.$clickSelection.start,(C.start.row!=g.row||C.start.column!=g.column)&&(g=C.end);else if(_==-1&&y==1)g=C.end,o=C.start;else{var m=r(this.$clickSelection,g);g=m.cursor,o=m.anchor}s.selection.setSelectionAnchor(o.row,o.column)}s.selection.selectToPosition(g),s.$blockScrolling--,s.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var i=e(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),o=Date.now();(i>a||o-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(i){var o=i.getDocumentPosition(),s=this.editor,g=s.session,C=g.getBracketRange(o);C?(C.isEmpty()&&(C.start.column--,C.end.column++),this.setState("select")):(C=s.selection.getWordRange(o.row,o.column),this.setState("selectByWords")),this.$clickSelection=C,this.select()},this.onTripleClick=function(i){var o=i.getDocumentPosition(),s=this.editor;this.setState("selectByLines");var g=s.getSelectionRange();g.isMultiLine()&&g.contains(o.row,o.column)?(this.$clickSelection=s.selection.getLineRange(g.start.row),this.$clickSelection.end=s.selection.getLineRange(g.end.row).end):this.$clickSelection=s.selection.getLineRange(o.row),this.select()},this.onQuadClick=function(i){var o=this.editor;o.selectAll(),this.$clickSelection=o.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(i){if(!i.getAccelKey()){i.getShiftKey()&&i.wheelY&&!i.wheelX&&(i.wheelX=i.wheelY,i.wheelY=0);var o=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var s=this.$lastScroll,g=i.domEvent.timeStamp,C=g-s.t,_=i.wheelX/C,y=i.wheelY/C;C=1&&o.renderer.isScrollableBy(i.wheelX*i.speed,0)&&(w=!0),m<=1&&o.renderer.isScrollableBy(0,i.wheelY*i.speed)&&(w=!0),w)s.allowed=g;else if(g-s.allowedr.session.documentToScreenRow(E.row,E.column))return y()}if(C!=d)if(C=d.text.join("
"),o.setHtml(C),o.show(),r._signal("showGutterTooltip",o),r.on("mousewheel",y),e.$tooltipFollowsMouse)m(g);else{var f=g.domEvent.target,A=f.getBoundingClientRect(),x=o.getElement().style;x.left=A.right+"px",x.top=A.bottom+"px"}}function y(){s&&(s=clearTimeout(s)),C&&(o.hide(),C=null,r._signal("hideGutterTooltip",o),r.removeEventListener("mousewheel",y))}function m(w){o.setPosition(w.x,w.y)}e.editor.setDefaultHandler("guttermousemove",function(w){var d=w.domEvent.target||w.domEvent.srcElement;if(c.hasCssClass(d,"ace_fold-widget"))return y();C&&e.$tooltipFollowsMouse&&m(w),g=w,!s&&(s=setTimeout(function(){s=null,g&&!e.isMousePressed?_():y()},50))}),l.addListener(r.renderer.$gutter,"mouseout",function(w){g=null,!(!C||s)&&(s=setTimeout(function(){s=null,y()},50))}),r.on("changeSession",y)}function t(e){a.call(this,e)}u.inherits(t,a),function(){this.setPosition=function(e,r){var i=window.innerWidth||document.documentElement.clientWidth,o=window.innerHeight||document.documentElement.clientHeight,s=this.getWidth(),g=this.getHeight();e+=15,r+=15,e+s>i&&(e-=e+s-i),r+g>o&&(r-=20+g),a.prototype.setPosition.call(this,e,r)}}.call(t.prototype),b.GutterHandler=n});ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("../lib/event"),u=p("../lib/useragent"),l=b.MouseEvent=function(a,n){this.domEvent=a,this.editor=n,this.x=this.clientX=a.clientX,this.y=this.clientY=a.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){c.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){c.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(this.$inSelection!==null)return this.$inSelection;var a=this.editor,n=a.getSelectionRange();if(n.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=n.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return c.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=u.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(l.prototype)});ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("../lib/dom"),u=p("../lib/event"),l=p("../lib/useragent"),a=200,n=200,t=5;function e(i){var o=i.editor,s=c.createElement("img");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",l.isOpera&&(s.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");var g=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];g.forEach(function(T){i[T]=this[T]},this),o.addEventListener("mousedown",this.onMouseDown.bind(i));var C=o.container,_,y,m,w,d,v,F=0,E,f,A,x,S;this.onDragStart=function(T){if(this.cancelDrag||!C.draggable){var M=this;return setTimeout(function(){M.startSelect(),M.captureMouse(T)},0),T.preventDefault()}d=o.getSelectionRange();var k=T.dataTransfer;k.effectAllowed=o.getReadOnly()?"copy":"copyMove",l.isOpera&&(o.container.appendChild(s),s.scrollTop=0),k.setDragImage&&k.setDragImage(s,0,0),l.isOpera&&o.container.removeChild(s),k.clearData(),k.setData("Text",o.session.getTextRange()),f=!0,this.setState("drag")},this.onDragEnd=function(T){if(C.draggable=!1,f=!1,this.setState(null),!o.getReadOnly()){var M=T.dataTransfer.dropEffect;!E&&M=="move"&&o.session.remove(o.getSelectionRange()),o.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(T){if(!(o.getReadOnly()||!L(T.dataTransfer)))return y=T.clientX,m=T.clientY,_||O(),F++,T.dataTransfer.dropEffect=E=U(T),u.preventDefault(T)},this.onDragOver=function(T){if(!(o.getReadOnly()||!L(T.dataTransfer)))return y=T.clientX,m=T.clientY,_||(O(),F++),H!==null&&(H=null),T.dataTransfer.dropEffect=E=U(T),u.preventDefault(T)},this.onDragLeave=function(T){if(F--,F<=0&&_)return I(),E=null,u.preventDefault(T)},this.onDrop=function(T){if(v){var M=T.dataTransfer;if(f)switch(E){case"move":d.contains(v.row,v.column)?d={start:v,end:v}:d=o.moveText(d,v);break;case"copy":d=o.moveText(d,v,!0);break}else{var k=M.getData("Text");d={start:v,end:o.session.insert(v,k)},o.focus(),E=null}return I(),u.preventDefault(T)}},u.addListener(C,"dragstart",this.onDragStart.bind(i)),u.addListener(C,"dragend",this.onDragEnd.bind(i)),u.addListener(C,"dragenter",this.onDragEnter.bind(i)),u.addListener(C,"dragover",this.onDragOver.bind(i)),u.addListener(C,"dragleave",this.onDragLeave.bind(i)),u.addListener(C,"drop",this.onDrop.bind(i));function $(T,M){var k=Date.now(),z=!M||T.row!=M.row,P=!M||T.column!=M.column;if(!x||z||P)o.$blockScrolling+=1,o.moveCursorToPosition(T),o.$blockScrolling-=1,x=k,S={x:y,y:m};else{var j=r(S.x,S.y,y,m);j>t?x=null:k-x>=n&&(o.renderer.scrollCursorIntoView(),x=null)}}function B(T,M){var k=Date.now(),z=o.renderer.layerConfig.lineHeight,P=o.renderer.layerConfig.characterWidth,j=o.renderer.scroller.getBoundingClientRect(),R={x:{left:y-j.left,right:j.right-y},y:{top:m-j.top,bottom:j.bottom-m}},W=Math.min(R.x.left,R.x.right),X=Math.min(R.y.top,R.y.bottom),Y={row:T.row,column:T.column};W/P<=2&&(Y.column+=R.x.left=a&&o.renderer.scrollCursorIntoView(Y):A=k:A=null}function D(){var T=v;v=o.renderer.screenToTextCoordinates(y,m),$(v,T),B(v,T)}function O(){d=o.selection.toOrientedRange(),_=o.session.addMarker(d,"ace_selection",o.getSelectionStyle()),o.clearSelection(),o.isFocused()&&o.renderer.$cursorLayer.setBlinking(!1),clearInterval(w),D(),w=setInterval(D,20),F=0,u.addListener(document,"mousemove",N)}function I(){clearInterval(w),o.session.removeMarker(_),_=null,o.$blockScrolling+=1,o.selection.fromOrientedRange(d),o.$blockScrolling-=1,o.isFocused()&&!f&&o.renderer.$cursorLayer.setBlinking(!o.getReadOnly()),d=null,v=null,F=0,A=null,x=null,u.removeListener(document,"mousemove",N)}var H=null;function N(){H==null&&(H=setTimeout(function(){H!=null&&_&&I()},20))}function L(T){var M=T.types;return!M||Array.prototype.some.call(M,function(k){return k=="text/plain"||k=="Text"})}function U(T){var M=["copy","copymove","all","uninitialized"],k=["move","copymove","linkmove","all","uninitialized"],z=l.isMac?T.altKey:T.ctrlKey,P="uninitialized";try{P=T.dataTransfer.effectAllowed.toLowerCase()}catch{}var j="none";return z&&M.indexOf(P)>=0?j="copy":k.indexOf(P)>=0?j="move":M.indexOf(P)>=0&&(j="copy"),j}}(function(){this.dragWait=function(){var i=Date.now()-this.mousedownEvent.time;i>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var i=this.editor.container;i.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(i){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var i=this.editor,o=i.container;o.draggable=!0,i.renderer.$cursorLayer.setBlinking(!1),i.setStyle("ace_dragging");var s=l.isWin?"default":"move";i.renderer.setCursorStyle(s),this.setState("dragReady")},this.onMouseDrag=function(i){var o=this.editor.container;if(l.isIE&&this.state=="dragReady"){var s=r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>3&&o.dragDrop()}if(this.state==="dragWait"){var s=r(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);s>0&&(o.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(i){if(this.$dragEnabled){this.mousedownEvent=i;var o=this.editor,s=i.inSelection(),g=i.getButton(),C=i.domEvent.detail||1;if(C===1&&g===0&&s){if(i.editor.inMultiSelectMode&&(i.getAccelKey()||i.getShiftKey()))return;this.mousedownEvent.time=Date.now();var _=i.domEvent.target||i.domEvent.srcElement;if("unselectable"in _&&(_.unselectable="on"),o.getDragDelay()){if(l.isWebKit){this.cancelDrag=!0;var y=o.container;y.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(i,this.onMouseDrag.bind(this)),i.defaultPrevented=!0}}}}).call(e.prototype);function r(i,o,s,g){return Math.sqrt(Math.pow(s-i,2)+Math.pow(g-o,2))}b.DragdropHandler=e});ace.define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(p,b,h){"use strict";var c=p("./dom");b.get=function(u,l){var a=new XMLHttpRequest;a.open("GET",u,!0),a.onreadystatechange=function(){a.readyState===4&&l(a.responseText)},a.send(null)},b.loadScript=function(u,l){var a=c.getDocumentHead(),n=document.createElement("script");n.src=u,a.appendChild(n),n.onload=n.onreadystatechange=function(t,e){(e||!n.readyState||n.readyState=="loaded"||n.readyState=="complete")&&(n=n.onload=n.onreadystatechange=null,e||l())}},b.qualifyURL=function(u){var l=document.createElement("a");return l.href=u,l.href}});ace.define("ace/lib/event_emitter",["require","exports","module"],function(p,b,h){"use strict";var c={},u=function(){this.propagationStopped=!0},l=function(){this.defaultPrevented=!0};c._emit=c._dispatchEvent=function(a,n){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var t=this._eventRegistry[a]||[],e=this._defaultHandlers[a];if(!(!t.length&&!e)){(typeof n!="object"||!n)&&(n={}),n.type||(n.type=a),n.stopPropagation||(n.stopPropagation=u),n.preventDefault||(n.preventDefault=l),t=t.slice();for(var r=0;r1&&(C=s[s.length-2]);var y=t[o+"Path"];return y==null?y=t.basePath:g=="/"&&(o=g=""),y&&y.slice(-1)!="/"&&(y+="/"),y+o+g+C+this.get("suffix")},b.setModuleUrl=function(i,o){return t.$moduleUrls[i]=o},b.$loading={},b.loadModule=function(i,o){var s,g;Array.isArray(i)&&(g=i[0],i=i[1]);try{s=p(i)}catch{}if(s&&!b.$loading[i])return o&&o(s);if(b.$loading[i]||(b.$loading[i]=[]),b.$loading[i].push(o),!(b.$loading[i].length>1)){var C=function(){p([i],function(_){b._emit("load.module",{name:i,module:_});var y=b.$loading[i];b.$loading[i]=null,y.forEach(function(m){m&&m(_)})})};if(!b.get("packaged"))return C();l.loadScript(b.moduleUrl(i,g),C)}},e(!0);function e(i){if(!(!n||!n.document)){t.packaged=i||p.packaged||h.packaged||n.define&&define.packaged;for(var o={},s="",g=document.currentScript||document._currentScript,C=g&&g.ownerDocument||document,_=C.getElementsByTagName("script"),y=0;y<_.length;y++){var m=_[y],w=m.src||m.getAttribute("src");if(w){for(var d=m.attributes,v=0,F=d.length;v0)if(ye==16){for(Ce=Fe;Ce-1){for(Ce=Fe;Ce=0&&Y[nt]==A;nt--)W[nt]=l}}}function k(R,W,X){if(!(a=R){for(ae=oe+1;ae=R;)ae++;for(V=oe,Q=ae-1;V=W.length||(ae=X[Y-1])!=w&&ae!=d||(V=W[Y+1])!=w&&V!=d?v:(n&&(V=d),V==ae?V:v);case S:return ae=Y>0?X[Y-1]:F,ae==w&&Y+10&&X[Y-1]==w)return w;if(n)return v;for(te=Y+1,Q=W.length;te=1425&&ye<=2303||ye==64286;if(ae=W[te],$e&&(ae==m||ae==f))return m}return Y<1||(ae=W[Y-1])==F?v:X[Y-1];case F:return n=!1,e=!0,l;case E:return r=!0,v;case D:case O:case H:case N:case I:n=!1;case L:return v}}function P(R){var W=R.charCodeAt(0),X=W>>8;return X==0?W>191?y:U[W]:X==5?/[\u0591-\u05f4]/.test(R)?m:y:X==6?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(R)?B:/[\u0660-\u0669\u066b-\u066c]/.test(R)?d:W==1642?$:/[\u06f0-\u06f9]/.test(R)?w:f:X==32&&W<=8287?T[W&255]:X==254&&W>=65136?f:v}function j(R){return R>="\u064B"&&R<="\u0655"}b.L=y,b.R=m,b.EN=w,b.ON_R=3,b.AN=4,b.R_H=5,b.B=6,b.DOT="\xB7",b.doBidiReorder=function(R,W,X){if(R.length<2)return{};var Y=R.split(""),oe=new Array(Y.length),ae=new Array(Y.length),V=[];l=X?_:C,M(Y,V,Y.length,W);for(var Q=0;Qf&&W[Q]0&&Y[Q-1]==="\u0644"&&/\u0622|\u0623|\u0625|\u0627/.test(Y[Q])&&(V[Q-1]=V[Q]=b.R_H,Q++);Y[Y.length-1]===b.DOT&&(V[Y.length-1]=b.B);for(var Q=0;Q=0&&(t=this.session.$docRowCache[r])}return t},this.getSplitIndex=function(){var t=0,e=this.session.$screenRowCache;if(e.length)for(var r,i=this.session.$getRowCacheIndex(e,this.currentRow);this.currentRow-t>0&&(r=this.session.$getRowCacheIndex(e,this.currentRow-t-1),r===i);)i=r,t++;return t},this.updateRowLine=function(t,e){if(t===void 0&&(t=this.getDocumentRow()),this.wrapIndent=0,this.isLastRow=t===this.session.getLength()-1,this.line=this.session.getLine(t),this.session.$useWrapMode){var r=this.session.$wrapData[t];r&&(e===void 0&&(e=this.getSplitIndex()),e>0&&r.length?(this.wrapIndent=r.indent,this.line=e0?t-1:0,this.bidiMap),r=this.bidiMap.bidiLevels,i=0;t===0&&r[e]%2!==0&&e++;for(var o=0;o=C&&d<_,y&&!m?w=s:!y&&m&&g.push({left:w,width:s-w}),s+=this.charWidths[o],m=y;return y&&v===i.length&&g.push({left:w,width:s-w}),g},this.offsetToCol=function(r){var e=0,r=Math.max(r,0),i=0,o=0,s=this.bidiMap.bidiLevels,g=this.charWidths[s[o]];for(this.wrapIndent&&(r-=this.wrapIndent*this.charWidths[c.L]);r>i+g/2;){if(i+=g,o===s.length-1){g=0;break}g=this.charWidths[s[++o]]}return o>0&&s[o-1]%2!==0&&s[o]%2===0?(r0&&s[o-1]%2===0&&s[o]%2!==0?e=1+(r>i?this.bidiMap.logicalFromVisual[o]:this.bidiMap.logicalFromVisual[o-1]):this.isRtlDir&&o===s.length-1&&g===0&&s[o-1]%2===0||!this.isRtlDir&&o===0&&s[o]%2!==0?e=1+this.bidiMap.logicalFromVisual[o]:(o>0&&s[o-1]%2!==0&&g!==0&&o--,e=this.bidiMap.logicalFromVisual[o]),e+this.wrapIndent}}).call(n.prototype),b.BidiHandler=n});ace.define("ace/range",["require","exports","module"],function(p,b,h){"use strict";var c=function(l,a){return l.row-a.row||l.column-a.column},u=function(l,a,n,t){this.start={row:l,column:a},this.end={row:n,column:t}};(function(){this.isEqual=function(l){return this.start.row===l.start.row&&this.end.row===l.end.row&&this.start.column===l.start.column&&this.end.column===l.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(l,a){return this.compare(l,a)==0},this.compareRange=function(l){var a,n=l.end,t=l.start;return a=this.compare(n.row,n.column),a==1?(a=this.compare(t.row,t.column),a==1?2:a==0?1:0):a==-1?-2:(a=this.compare(t.row,t.column),a==-1?-1:a==1?42:0)},this.comparePoint=function(l){return this.compare(l.row,l.column)},this.containsRange=function(l){return this.comparePoint(l.start)==0&&this.comparePoint(l.end)==0},this.intersects=function(l){var a=this.compareRange(l);return a==-1||a==0||a==1},this.isEnd=function(l,a){return this.end.row==l&&this.end.column==a},this.isStart=function(l,a){return this.start.row==l&&this.start.column==a},this.setStart=function(l,a){typeof l=="object"?(this.start.column=l.column,this.start.row=l.row):(this.start.row=l,this.start.column=a)},this.setEnd=function(l,a){typeof l=="object"?(this.end.column=l.column,this.end.row=l.row):(this.end.row=l,this.end.column=a)},this.inside=function(l,a){return this.compare(l,a)==0?!(this.isEnd(l,a)||this.isStart(l,a)):!1},this.insideStart=function(l,a){return this.compare(l,a)==0?!this.isEnd(l,a):!1},this.insideEnd=function(l,a){return this.compare(l,a)==0?!this.isStart(l,a):!1},this.compare=function(l,a){return!this.isMultiLine()&&l===this.start.row?athis.end.column?1:0:lthis.end.row?1:this.start.row===l?a>=this.start.column?0:-1:this.end.row===l?a<=this.end.column?0:1:0},this.compareStart=function(l,a){return this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},this.compareEnd=function(l,a){return this.end.row==l&&this.end.column==a?1:this.compare(l,a)},this.compareInside=function(l,a){return this.end.row==l&&this.end.column==a?1:this.start.row==l&&this.start.column==a?-1:this.compare(l,a)},this.clipRows=function(l,a){if(this.end.row>a)var n={row:a+1,column:0};else if(this.end.rowa)var t={row:a+1,column:0};else if(this.start.rowe.row||t.row==e.row&&t.column>e.column},this.getRange=function(){var t=this.anchor,e=this.lead;return this.isEmpty()?a.fromPoints(e,e):this.isBackwards()?a.fromPoints(e,t):a.fromPoints(t,e)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var t=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(t,this.doc.getLine(t).length)},this.setRange=this.setSelectionRange=function(t,e){e?(this.setSelectionAnchor(t.end.row,t.end.column),this.selectTo(t.start.row,t.start.column)):(this.setSelectionAnchor(t.start.row,t.start.column),this.selectTo(t.end.row,t.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(t){var e=this.lead;this.$isEmpty&&this.setSelectionAnchor(e.row,e.column),t.call(this)},this.selectTo=function(t,e){this.$moveSelection(function(){this.moveCursorTo(t,e)})},this.selectToPosition=function(t){this.$moveSelection(function(){this.moveCursorToPosition(t)})},this.moveTo=function(t,e){this.clearSelection(),this.moveCursorTo(t,e)},this.moveToPosition=function(t){this.clearSelection(),this.moveCursorToPosition(t)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(t,e){if(typeof e>"u"){var r=t||this.lead;t=r.row,e=r.column}return this.session.getWordRange(t,e)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var t=this.getCursor(),e=this.session.getAWordRange(t.row,t.column);this.setSelectionRange(e)},this.getLineRange=function(t,e){var r=typeof t=="number"?t:this.lead.row,i,o=this.session.getFoldLine(r);return o?(r=o.start.row,i=o.end.row):i=r,e===!0?new a(r,0,i,this.session.getLine(i).length):new a(r,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(t,e,r){var i=t.column,o=t.column+e;return r<0&&(i=t.column-e,o=t.column),this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(i,o).split(" ").length-1==e},this.moveCursorLeft=function(){var t=this.lead.getPosition(),e;if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(t.column===0)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var r=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,r,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-r):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var t=this.lead.getPosition(),e;if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(e.column=i)}}this.moveCursorTo(e.row,e.column)},this.moveCursorFileEnd=function(){var t=this.doc.getLength()-1,e=this.doc.getLine(t).length;this.moveCursorTo(t,e)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var t=this.lead.row,e=this.lead.column,r=this.doc.getLine(t),i=r.substring(e),o;this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var s=this.session.getFoldAt(t,e,1);if(s){this.moveCursorTo(s.end.row,s.end.column);return}if((o=this.session.nonTokenRe.exec(i))&&(e+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,i=r.substring(e)),e>=r.length){this.moveCursorTo(t,r.length),this.moveCursorRight(),t0&&this.moveCursorWordLeft();return}(s=this.session.tokenRe.exec(o))&&(e-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,e)},this.$shortWordEndIndex=function(t){var e,r=0,i,o=/\s/,s=this.session.tokenRe;if(s.lastIndex=0,e=this.session.tokenRe.exec(t))r=this.session.tokenRe.lastIndex;else{for(;(i=t[r])&&o.test(i);)r++;if(r<1){for(s.lastIndex=0;(i=t[r])&&!s.test(i);)if(s.lastIndex=0,r++,o.test(i))if(r>2){r--;break}else{for(;(i=t[r])&&o.test(i);)r++;if(r>2)break}}}return s.lastIndex=0,r},this.moveCursorShortWordRight=function(){var t=this.lead.row,e=this.lead.column,r=this.doc.getLine(t),i=r.substring(e),o=this.session.getFoldAt(t,e,1);if(o)return this.moveCursorTo(o.end.row,o.end.column);if(e==r.length){var s=this.doc.getLength();do t++,i=this.doc.getLine(t);while(t0&&/^\s*$/.test(i));e=i.length,/\s+$/.test(i)||(i="")}var o=u.stringReverse(i),s=this.$shortWordEndIndex(o);return this.moveCursorTo(t,e-s)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(t,e){var r=this.session.documentToScreenPosition(this.lead.row,this.lead.column),i;e===0&&(t!==0&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(i=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(i/this.session.$bidiHandler.charWidths[0])):i=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column);var o=this.session.screenToDocumentPosition(r.row+t,r.column,i);t!==0&&e===0&&o.row===this.lead.row&&o.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[o.row]&&(o.row>0||t>0)&&o.row++,this.moveCursorTo(o.row,o.column+e,e===0)},this.moveCursorToPosition=function(t){this.moveCursorTo(t.row,t.column)},this.moveCursorTo=function(t,e,r){var i=this.session.getFoldAt(t,e,1);i&&(t=i.start.row,e=i.start.column),this.$keepDesiredColumnOnChange=!0;var o=this.session.getLine(t);/[\uDC00-\uDFFF]/.test(o.charAt(e))&&o.charAt(e-1)&&(this.lead.row==t&&this.lead.column==e+1?e=e-1:e=e+1),this.lead.setPosition(t,e),this.$keepDesiredColumnOnChange=!1,r||(this.$desiredColumn=null)},this.moveCursorToScreen=function(t,e,r){var i=this.session.screenToDocumentPosition(t,e);this.moveCursorTo(i.row,i.column,r)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(t){this.setSelectionRange(t,t.cursor==t.start),this.$desiredColumn=t.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(t){var e=this.getRange();return t?(t.start.column=e.start.column,t.start.row=e.start.row,t.end.column=e.end.column,t.end.row=e.end.row):t=e,t.cursor=this.isBackwards()?t.start:t.end,t.desiredColumn=this.$desiredColumn,t},this.getRangeOfMovements=function(t){var e=this.getCursor();try{t(this);var r=this.getCursor();return a.fromPoints(e,r)}catch{return a.fromPoints(e,e)}finally{this.moveCursorToPosition(e)}},this.toJSON=function(){if(this.rangeCount)var t=this.ranges.map(function(e){var r=e.clone();return r.isBackwards=e.cursor==e.start,r});else{var t=this.getRange();t.isBackwards=this.isBackwards()}return t},this.fromJSON=function(t){if(t.start==null)if(this.rangeList){this.toSingleRange(t[0]);for(var e=t.length;e--;){var r=a.fromPoints(t[e].start,t[e].end);t[e].isBackwards&&(r.cursor=r.start),this.addRange(r,!0)}return}else t=t[0];this.rangeList&&this.toSingleRange(t),this.setSelectionRange(t,t.isBackwards)},this.isEqual=function(t){if((t.length||this.rangeCount)&&t.length!=this.rangeCount)return!1;if(!t.length||!this.ranges)return this.getRange().isEqual(t);for(var e=this.ranges.length;e--;)if(!this.ranges[e].isEqual(t[e]))return!1;return!0}}).call(n.prototype),b.Selection=n});ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(p,b,h){"use strict";var c=p("./config"),u=2e3,l=function(a){this.states=a,this.regExps={},this.matchMappings={};for(var n in this.states){for(var t=this.states[n],e=[],r=0,i=this.matchMappings[n]={defaultToken:"text"},o="g",s=[],g=0;g1?C.onMatch=this.$applyToken:C.onMatch=C.token),y>1&&(/\\\d/.test(C.regex)?_=C.regex.replace(/\\([0-9]+)/g,function(m,w){return"\\"+(parseInt(w,10)+r+1)}):(y=1,_=this.removeCapturingGroups(C.regex)),!C.splitRegex&&typeof C.token!="string"&&s.push(C)),i[r]=g,r+=y,e.push(_),C.onMatch||(C.onMatch=null)}}e.length||(i[0]=0,e.push("$")),s.forEach(function(m){m.splitRegex=this.createSplitterRegexp(m.regex,o)},this),this.regExps[n]=new RegExp("("+e.join(")|(")+")|($)",o)}};(function(){this.$setMaxTokenCount=function(a){u=a|0},this.$applyToken=function(a){var n=this.splitRegex.exec(a).slice(1),t=this.token.apply(this,n);if(typeof t=="string")return[{type:t,value:a}];for(var e=[],r=0,i=t.length;rC){var F=a.substring(C,v-d.length);y.type==m?y.value+=F:(y.type&&g.push(y),y={type:m,value:F})}for(var E=0;Eu){for(_>2*a.length&&this.reportError("infinite loop with in ace tokenizer",{startState:n,line:a});C1&&t[0]!==e&&t.unshift("#tmp",e),{tokens:g,state:t.length?t:e}},this.reportError=c.reportError}).call(l.prototype),b.Tokenizer=l});ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(p,b,h){"use strict";var c=p("../lib/lang"),u=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(n,t){if(!t){for(var e in n)this.$rules[e]=n[e];return}for(var e in n){for(var r=n[e],i=0;i=this.$rowTokens.length;){if(this.$row+=1,l||(l=this.$session.getLength()),this.$row>=l)return this.$row=l-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var l=this.$rowTokens,a=this.$tokenIndex,n=l[a].start;if(n!==void 0)return n;for(n=0;a>0;)a-=1,n+=l[a].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var l=this.$rowTokens[this.$tokenIndex],a=this.getCurrentTokenColumn();return new c(this.$row,a,this.$row,a+l.value.length)}}).call(u.prototype),b.TokenIterator=u});ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(p,b,h){"use strict";var c=p("../../lib/oop"),u=p("../behaviour").Behaviour,l=p("../../token_iterator").TokenIterator,a=p("../../lib/lang"),n=["text","paren.rparen","punctuation.operator"],t=["text","paren.rparen","punctuation.operator","comment"],e,r={},i={'"':'"',"'":"'"},o=function(C){var _=-1;if(C.multiSelect&&(_=C.selection.index,r.rangeCount!=C.multiSelect.rangeCount&&(r={rangeCount:C.multiSelect.rangeCount})),r[_])return e=r[_];e=r[_]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},s=function(C,_,y,m){var w=C.end.row-C.start.row;return{text:y+_+m,selection:[0,C.start.column+1,w,C.end.column+(w?0:1)]}},g=function(C){this.add("braces","insertion",function(_,y,m,w,d){var v=m.getCursorPosition(),F=w.doc.getLine(v.row);if(d=="{"){o(m);var E=m.getSelectionRange(),f=w.doc.getTextRange(E);if(f!==""&&f!=="{"&&m.getWrapBehavioursEnabled())return s(E,f,"{","}");if(g.isSaneInsertion(m,w))return/[\]\}\)]/.test(F[v.column])||m.inMultiSelectMode||C&&C.braces?(g.recordAutoInsert(m,w,"}"),{text:"{}",selection:[1,1]}):(g.recordMaybeInsert(m,w,"{"),{text:"{",selection:[1,1]})}else if(d=="}"){o(m);var A=F.substring(v.column,v.column+1);if(A=="}"){var x=w.$findOpeningBracket("}",{column:v.column+1,row:v.row});if(x!==null&&g.isAutoInsertedClosing(v,F,d))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else if(d==` +`||d==`\r +`){o(m);var S="";g.isMaybeInsertedClosing(v,F)&&(S=a.stringRepeat("}",e.maybeInsertedBrackets),g.clearMaybeInsertedClosing());var A=F.substring(v.column,v.column+1);if(A==="}"){var $=w.findMatchingBracket({row:v.row,column:v.column+1},"}");if(!$)return null;var B=this.$getIndent(w.getLine($.row))}else if(S)var B=this.$getIndent(F);else{g.clearMaybeInsertedClosing();return}var D=B+w.getTabString();return{text:` +`+D+` +`+B+S,selection:[1,D.length,1,D.length]}}else g.clearMaybeInsertedClosing()}),this.add("braces","deletion",function(_,y,m,w,d){var v=w.doc.getTextRange(d);if(!d.isMultiLine()&&v=="{"){o(m);var F=w.doc.getLine(d.start.row),E=F.substring(d.end.column,d.end.column+1);if(E=="}")return d.end.column++,d;e.maybeInsertedBrackets--}}),this.add("parens","insertion",function(_,y,m,w,d){if(d=="("){o(m);var v=m.getSelectionRange(),F=w.doc.getTextRange(v);if(F!==""&&m.getWrapBehavioursEnabled())return s(v,F,"(",")");if(g.isSaneInsertion(m,w))return g.recordAutoInsert(m,w,")"),{text:"()",selection:[1,1]}}else if(d==")"){o(m);var E=m.getCursorPosition(),f=w.doc.getLine(E.row),A=f.substring(E.column,E.column+1);if(A==")"){var x=w.$findOpeningBracket(")",{column:E.column+1,row:E.row});if(x!==null&&g.isAutoInsertedClosing(E,f,d))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(_,y,m,w,d){var v=w.doc.getTextRange(d);if(!d.isMultiLine()&&v=="("){o(m);var F=w.doc.getLine(d.start.row),E=F.substring(d.start.column+1,d.start.column+2);if(E==")")return d.end.column++,d}}),this.add("brackets","insertion",function(_,y,m,w,d){if(d=="["){o(m);var v=m.getSelectionRange(),F=w.doc.getTextRange(v);if(F!==""&&m.getWrapBehavioursEnabled())return s(v,F,"[","]");if(g.isSaneInsertion(m,w))return g.recordAutoInsert(m,w,"]"),{text:"[]",selection:[1,1]}}else if(d=="]"){o(m);var E=m.getCursorPosition(),f=w.doc.getLine(E.row),A=f.substring(E.column,E.column+1);if(A=="]"){var x=w.$findOpeningBracket("]",{column:E.column+1,row:E.row});if(x!==null&&g.isAutoInsertedClosing(E,f,d))return g.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(_,y,m,w,d){var v=w.doc.getTextRange(d);if(!d.isMultiLine()&&v=="["){o(m);var F=w.doc.getLine(d.start.row),E=F.substring(d.start.column+1,d.start.column+2);if(E=="]")return d.end.column++,d}}),this.add("string_dquotes","insertion",function(_,y,m,w,d){var v=w.$mode.$quotes||i;if(d.length==1&&v[d]){if(this.lineCommentStart&&this.lineCommentStart.indexOf(d)!=-1)return;o(m);var F=d,E=m.getSelectionRange(),f=w.doc.getTextRange(E);if(f!==""&&(f.length!=1||!v[f])&&m.getWrapBehavioursEnabled())return s(E,f,F,F);if(!f){var A=m.getCursorPosition(),x=w.doc.getLine(A.row),S=x.substring(A.column-1,A.column),$=x.substring(A.column,A.column+1),B=w.getTokenAt(A.row,A.column),D=w.getTokenAt(A.row,A.column+1);if(S=="\\"&&B&&/escape/.test(B.type))return null;var O=B&&/string|escape/.test(B.type),I=!D||/string|escape/.test(D.type),H;if($==F)H=O!==I,H&&/string\.end/.test(D.type)&&(H=!1);else{if(O&&!I||O&&I)return null;var N=w.$mode.tokenRe;N.lastIndex=0;var L=N.test(S);N.lastIndex=0;var U=N.test(S);if(L||U||$&&!/[\s;,.})\]\\]/.test($))return null;H=!0}return{text:H?F+F:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(_,y,m,w,d){var v=w.doc.getTextRange(d);if(!d.isMultiLine()&&(v=='"'||v=="'")){o(m);var F=w.doc.getLine(d.start.row),E=F.substring(d.start.column+1,d.start.column+2);if(E==v)return d.end.column++,d}})};g.isSaneInsertion=function(C,_){var y=C.getCursorPosition(),m=new l(_,y.row,y.column);if(!this.$matchTokenType(m.getCurrentToken()||"text",n)){var w=new l(_,y.row,y.column+1);if(!this.$matchTokenType(w.getCurrentToken()||"text",n))return!1}return m.stepForward(),m.getCurrentTokenRow()!==y.row||this.$matchTokenType(m.getCurrentToken()||"text",t)},g.$matchTokenType=function(C,_){return _.indexOf(C.type||C)>-1},g.recordAutoInsert=function(C,_,y){var m=C.getCursorPosition(),w=_.doc.getLine(m.row);this.isAutoInsertedClosing(m,w,e.autoInsertedLineEnd[0])||(e.autoInsertedBrackets=0),e.autoInsertedRow=m.row,e.autoInsertedLineEnd=y+w.substr(m.column),e.autoInsertedBrackets++},g.recordMaybeInsert=function(C,_,y){var m=C.getCursorPosition(),w=_.doc.getLine(m.row);this.isMaybeInsertedClosing(m,w)||(e.maybeInsertedBrackets=0),e.maybeInsertedRow=m.row,e.maybeInsertedLineStart=w.substr(0,m.column)+y,e.maybeInsertedLineEnd=w.substr(m.column),e.maybeInsertedBrackets++},g.isAutoInsertedClosing=function(C,_,y){return e.autoInsertedBrackets>0&&C.row===e.autoInsertedRow&&y===e.autoInsertedLineEnd[0]&&_.substr(C.column)===e.autoInsertedLineEnd},g.isMaybeInsertedClosing=function(C,_){return e.maybeInsertedBrackets>0&&C.row===e.maybeInsertedRow&&_.substr(C.column)===e.maybeInsertedLineEnd&&_.substr(0,C.column)==e.maybeInsertedLineStart},g.popAutoInsertedClosing=function(){e.autoInsertedLineEnd=e.autoInsertedLineEnd.substr(1),e.autoInsertedBrackets--},g.clearMaybeInsertedClosing=function(){e&&(e.maybeInsertedBrackets=0,e.maybeInsertedRow=-1)},c.inherits(g,u),b.CstyleBehaviour=g});ace.define("ace/unicode",["require","exports","module"],function(p,b,h){"use strict";b.packages={},c({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"});function c(u){var l=/\w{4}/g;for(var a in u)b.packages[a]=u[a].replace(l,"\\u$&")}});ace.define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour/cstyle","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(p,b,h){"use strict";var c=p("../tokenizer").Tokenizer,u=p("./text_highlight_rules").TextHighlightRules,l=p("./behaviour/cstyle").CstyleBehaviour,a=p("../unicode"),n=p("../lib/lang"),t=p("../token_iterator").TokenIterator,e=p("../range").Range,r=function(){this.HighlightRules=u};(function(){this.$defaultBehaviour=new l,this.tokenRe=new RegExp("^["+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+a.packages.L+a.packages.Mn+a.packages.Mc+a.packages.Nd+a.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules(this.$highlightRuleConfig),this.$tokenizer=new c(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(i,o,s,g){var C=o.doc,_=!0,y=!0,m=1/0,w=o.getTabSize(),d=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))var E=this.lineCommentStart.map(n.escapeRegExp).join("|"),v=this.lineCommentStart[0];else var E=n.escapeRegExp(this.lineCommentStart),v=this.lineCommentStart;E=new RegExp("^(\\s*)(?:"+E+") ?"),d=o.getUseSoftTabs();var x=function(L,U){var T=L.match(E);if(T){var M=T[1].length,k=T[0].length;!B(L,M,k)&&T[0][k-1]==" "&&k--,C.removeInLine(U,M,k)}},$=v+" ",A=function(L,U){(!_||/\S/.test(L))&&(B(L,m,m)?C.insertInLine({row:U,column:m},$):C.insertInLine({row:U,column:m},v))},S=function(L,U){return E.test(L)},B=function(L,U,T){for(var M=0;U--&&L.charAt(U)==" ";)M++;if(M%w!=0)return!1;for(var M=0;L.charAt(T++)==" ";)M++;return w>2?M%w!=w-1:M%w==0}}else{if(!this.blockComment)return!1;var v=this.blockComment.start,F=this.blockComment.end,E=new RegExp("^(\\s*)(?:"+n.escapeRegExp(v)+")"),f=new RegExp("(?:"+n.escapeRegExp(F)+")\\s*$"),A=function(I,H){S(I,H)||(!_||/\S/.test(I))&&(C.insertInLine({row:H,column:I.length},F),C.insertInLine({row:H,column:m},v))},x=function(I,H){var N;(N=I.match(f))&&C.removeInLine(H,I.length-N[0].length,I.length),(N=I.match(E))&&C.removeInLine(H,N[1].length,N[0].length)},S=function(I,H){if(E.test(I))return!0;for(var N=o.getTokens(H),L=0;LI.length&&(O=I.length)}),m==1/0&&(m=O,_=!1,y=!1),d&&m%w!=0&&(m=Math.floor(m/w)*w),D(y?x:A)},this.toggleBlockComment=function(i,o,s,g){var C=this.blockComment;if(C){!C.start&&C[0]&&(C=C[0]);var _=new t(o,g.row,g.column),y=_.getCurrentToken(),m=o.selection,w=o.selection.toOrientedRange(),d,v;if(y&&/comment/.test(y.type)){for(var F,E;y&&/comment/.test(y.type);){var f=y.value.indexOf(C.start);if(f!=-1){var A=_.getCurrentTokenRow(),x=_.getCurrentTokenColumn()+f;F=new e(A,x,A,x+C.start.length);break}y=_.stepBackward()}for(var _=new t(o,g.row,g.column),y=_.getCurrentToken();y&&/comment/.test(y.type);){var f=y.value.indexOf(C.end);if(f!=-1){var A=_.getCurrentTokenRow(),x=_.getCurrentTokenColumn()+f;E=new e(A,x,A,x+C.end.length);break}y=_.stepForward()}E&&o.remove(E),F&&(o.remove(F),d=F.start.row,v=-C.start.length)}else v=C.start.length,d=s.start.row,o.insert(s.end,C.end),o.insert(s.start,C.start);w.start.row==d&&(w.start.column+=v),w.end.row==d&&(w.end.column+=v),o.selection.fromOrientedRange(w)}},this.getNextLineIndent=function(i,o,s){return this.$getIndent(o)},this.checkOutdent=function(i,o,s){return!1},this.autoOutdent=function(i,o,s){},this.$getIndent=function(i){return i.match(/^\s*/)[0]},this.createWorker=function(i){return null},this.createModeDelegates=function(i){this.$embeds=[],this.$modes={};for(var o in i)i[o]&&(this.$embeds.push(o),this.$modes[o]=new i[o]);for(var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],o=0;o=0&&n.row=0&&n.column<=a[n.row].length}function l(a,n){n.action!="insert"&&n.action!="remove"&&c(n,"delta.action must be 'insert' or 'remove'"),n.lines instanceof Array||c(n,"delta.lines must be an Array"),(!n.start||!n.end)&&c(n,"delta.start/end must be an present");var t=n.start;u(a,n.start)||c(n,"delta.start must be contained in document");var e=n.end;n.action=="remove"&&!u(a,e)&&c(n,"delta.end must contained in document for 'remove' actions");var r=e.row-t.row,i=e.column-(r==0?t.column:0);(r!=n.lines.length-1||n.lines[r].length!=i)&&c(n,"delta.range must match delta lines")}b.applyDelta=function(a,n,t){var e=n.start.row,r=n.start.column,i=a[e]||"";switch(n.action){case"insert":var o=n.lines;if(o.length===1)a[e]=i.substring(0,r)+n.lines[0]+i.substring(r);else{var s=[e,1].concat(n.lines);a.splice.apply(a,s),a[e]=i.substring(0,r)+a[e],a[e+n.lines.length-1]+=i.substring(r)}break;case"remove":var g=n.end.column,C=n.end.row;e===C?a[e]=i.substring(0,r)+i.substring(g):a.splice(e,C-e+1,i.substring(0,r)+a[C].substring(g));break}}});ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./lib/event_emitter").EventEmitter,l=b.Anchor=function(a,n,t){this.$onChange=this.onChange.bind(this),this.attach(a),typeof t>"u"?this.setPosition(n.row,n.column):this.setPosition(n,t)};(function(){c.implement(this,u),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(t){if(!(t.start.row==t.end.row&&t.start.row!=this.row)&&!(t.start.row>this.row)){var e=n(t,{row:this.row,column:this.column},this.$insertRight);this.setPosition(e.row,e.column,!0)}};function a(t,e,r){var i=r?t.column<=e.column:t.column=this.document.getLength()?(r.row=Math.max(0,this.document.getLength()-1),r.column=this.document.getLine(r.row).length):t<0?(r.row=0,r.column=0):(r.row=t,r.column=Math.min(this.document.getLine(r.row).length,Math.max(0,e))),e<0&&(r.column=0),r}}).call(l.prototype)});ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./apply_delta").applyDelta,l=p("./lib/event_emitter").EventEmitter,a=p("./range").Range,n=p("./anchor").Anchor,t=function(e){this.$lines=[""],e.length===0?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){c.implement(this,l),this.setValue=function(e){var r=this.getLength()-1;this.remove(new a(0,0,r,this.getLine(r).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,r){return new n(this,e,r)},"aaa".split(/a/).length===0?this.$split=function(e){return e.replace(/\r\n|\r/g,` +`).split(` +`)}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var r=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=r?r[1]:` +`,this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return`\r +`;case"unix":return` +`;default:return this.$autoNewLine||` +`}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return e==`\r +`||e=="\r"||e==` +`},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,r){return this.$lines.slice(e,r+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var r;if(e.start.row===e.end.row)r=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{r=this.getLines(e.start.row,e.end.row),r[0]=(r[0]||"").substring(e.start.column);var i=r.length-1;e.end.row-e.start.row==i&&(r[i]=r[i].substring(0,e.end.column))}return r},this.insertLines=function(e,r){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,r)},this.removeLines=function(e,r){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,r)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,r){return this.getLength()<=1&&this.$detectNewLine(r),this.insertMergedLines(e,this.$split(r))},this.insertInLine=function(e,r){var i=this.clippedPos(e.row,e.column),o=this.pos(e.row,e.column+r.length);return this.applyDelta({start:i,end:o,action:"insert",lines:[r]},!0),this.clonePos(o)},this.clippedPos=function(e,r){var i=this.getLength();e===void 0?e=i:e<0?e=0:e>=i&&(e=i-1,r=void 0);var o=this.getLine(e);return r==null&&(r=o.length),r=Math.min(Math.max(r,0),o.length),{row:e,column:r}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,r){return{row:e,column:r}},this.$clipPosition=function(e){var r=this.getLength();return e.row>=r?(e.row=Math.max(0,r-1),e.column=this.getLine(r-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,r){e=Math.min(Math.max(e,0),this.getLength());var i=0;e0,o=r=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,r){if(e instanceof a||(e=a.fromPoints(e.start,e.end)),r.length===0&&e.isEmpty())return e.start;if(r==this.getTextRange(e))return e.end;this.remove(e);var i;return r?i=this.insert(e.start,r):i=e.start,i},this.applyDeltas=function(e){for(var r=0;r=0;r--)this.revertDelta(e[r])},this.applyDelta=function(e,r){var i=e.action=="insert";(i?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(i&&e.lines.length>2e4&&this.$splitAndapplyLargeDelta(e,2e4),u(this.$lines,e,r),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,r){var i=e.lines,o=i.length,s=e.start.row,g=e.start.column,C=0,_=0;do{C=_,_+=r-1;var y=i.slice(C,_);if(_>o){e.lines=y,e.start.row=s+C,e.start.column=g;break}y.push(""),this.applyDelta({start:this.pos(s+C,g),end:this.pos(s+_,g=0),action:e.action,lines:y},!0)}while(!0)},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:e.action=="insert"?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,r){for(var i=this.$lines||this.getAllLines(),o=this.getNewLineCharacter().length,s=r||0,g=i.length;s20){t.running=setTimeout(t.$worker,20);break}}t.currentLine=r,i==-1&&(i=r),s<=i&&t.fireUpdateEvent(s,i)}}};(function(){c.implement(this,u),this.setTokenizer=function(a){this.tokenizer=a,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(a){this.doc=a,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(a,n){var t={first:a,last:n};this._signal("update",{data:t})},this.start=function(a){this.currentLine=Math.min(a||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(a){var n=a.start.row,t=a.end.row-n;if(t===0)this.lines[n]=null;else if(a.action=="remove")this.lines.splice(n,t+1,null),this.states.splice(n,t+1,null);else{var e=Array(t+1);e.unshift(n,1),this.lines.splice.apply(this.lines,e),this.states.splice.apply(this.states,e)}this.currentLine=Math.min(n,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(a){return this.lines[a]||this.$tokenizeRow(a)},this.getState=function(a){return this.currentLine==a&&this.$tokenizeRow(a),this.states[a]||"start"},this.$tokenizeRow=function(a){var n=this.doc.getLine(a),t=this.states[a-1],e=this.tokenizer.getLineTokens(n,t,a);return this.states[a]+""!=e.state+""?(this.states[a]=e.state,this.lines[a+1]=null,this.currentLine>a+1&&(this.currentLine=a+1)):this.currentLine==a&&(this.currentLine=a+1),this.lines[a]=e.tokens}}).call(l.prototype),b.BackgroundTokenizer=l});ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(p,b,h){"use strict";var c=p("./lib/lang"),u=p("./lib/oop"),l=p("./range").Range,a=function(n,t,e){this.setRegexp(n),this.clazz=t,this.type=e||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(n){this.regExp+""!=n+""&&(this.regExp=n,this.cache=[])},this.update=function(n,t,e,r){if(this.regExp)for(var i=r.firstRow,o=r.lastRow,s=i;s<=o;s++){var g=this.cache[s];g==null&&(g=c.getMatchOffsets(e.getLine(s),this.regExp),g.length>this.MAX_RANGES&&(g=g.slice(0,this.MAX_RANGES)),g=g.map(function(_){return new l(s,_.offset,s,_.offset+_.length)}),this.cache[s]=g.length?g:"");for(var C=g.length;C--;)t.drawSingleLineMarker(n,g[C].toScreenRange(e),this.clazz,r)}}}).call(a.prototype),b.SearchHighlight=a});ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(p,b,h){"use strict";var c=p("../range").Range;function u(l,a){this.foldData=l,Array.isArray(a)?this.folds=a:a=this.folds=[a];var n=a[a.length-1];this.range=new c(a[0].start.row,a[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(t){t.setFoldLine(this)},this)}(function(){this.shiftRow=function(l){this.start.row+=l,this.end.row+=l,this.folds.forEach(function(a){a.start.row+=l,a.end.row+=l})},this.addFold=function(l){if(l.sameRow){if(l.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(l),this.folds.sort(function(a,n){return-a.range.compareEnd(n.start.row,n.start.column)}),this.range.compareEnd(l.start.row,l.start.column)>0?(this.end.row=l.end.row,this.end.column=l.end.column):this.range.compareStart(l.end.row,l.end.column)<0&&(this.start.row=l.start.row,this.start.column=l.start.column)}else if(l.start.row==this.end.row)this.folds.push(l),this.end.row=l.end.row,this.end.column=l.end.column;else if(l.end.row==this.start.row)this.folds.unshift(l),this.start.row=l.start.row,this.start.column=l.start.column;else throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");l.foldLine=this},this.containsRow=function(l){return l>=this.start.row&&l<=this.end.row},this.walk=function(l,a,n){var t=0,e=this.folds,r,i,o,s=!0;a==null&&(a=this.end.row,n=this.end.column);for(var g=0;g0)){var s=u(a,i.start);return o===0?n&&s!==0?-r-2:r:s>0||s===0&&!n?r:-r-1}}return-r-1},this.add=function(a){var n=!a.isEmpty(),t=this.pointIndex(a.start,n);t<0&&(t=-t-1);var e=this.pointIndex(a.end,n,t);return e<0?e=-e-1:e++,this.ranges.splice(t,e-t,a)},this.addList=function(a){for(var n=[],t=a.length;t--;)n.push.apply(n,this.add(a[t]));return n},this.substractPoint=function(a){var n=this.pointIndex(a);if(n>=0)return this.ranges.splice(n,1)},this.merge=function(){var a=[],n=this.ranges;n=n.sort(function(o,s){return u(o.start,s.start)});for(var t=n[0],e,r=1;r=0},this.containsPoint=function(a){return this.pointIndex(a)>=0},this.rangeAtPoint=function(a){var n=this.pointIndex(a);if(n>=0)return this.ranges[n]},this.clipRows=function(a,n){var t=this.ranges;if(t[0].start.row>n||t[t.length-1].start.rowe)break;if(_.start.row==e&&_.start.column>=n.column&&(_.start.column==n.column&&this.$insertRight||(_.start.column+=o,_.start.row+=i)),_.end.row==e&&_.end.column>=n.column){if(_.end.column==n.column&&this.$insertRight)continue;_.end.column==n.column&&o>0&&g_.start.column&&_.end.column==s[g+1].start.column&&(_.end.column-=o),_.end.column+=o,_.end.row+=i}}}if(i!=0&&g=t)return o;if(o.end.row>t)return null}return null},this.getNextFoldLine=function(t,e){var r=this.$foldData,i=0;for(e&&(i=r.indexOf(e)),i==-1&&(i=0),i;i=t)return o}return null},this.getFoldedRowCount=function(t,e){for(var r=this.$foldData,i=e-t+1,o=0;o=e){C=t?i-=e-C:i=0);break}else g>=t&&(C>=t?i-=g-C:i-=g-t+1)}return i},this.$addFoldLine=function(t){return this.$foldData.push(t),this.$foldData.sort(function(e,r){return e.start.row-r.start.row}),t},this.addFold=function(t,e){var r=this.$foldData,i=!1,o;t instanceof l?o=t:(o=new l(e,t),o.collapseChildren=e.collapseChildren),this.$clipRangeToDocument(o.range);var s=o.start.row,g=o.start.column,C=o.end.row,_=o.end.column;if(!(s0&&(this.removeFolds(w),w.forEach(function(E){o.addSubFold(E)}));for(var d=0;d0&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(t){t.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(t,e){var r,i;if(t==null?(r=new c(0,0,this.getLength(),0),e=!0):typeof t=="number"?r=new c(t,0,t,this.getLine(t).length):"row"in t?r=c.fromPoints(t,t):r=t,i=this.getFoldsInRangeList(r),e)this.removeFolds(i);else for(var o=i;o.length;)this.expandFolds(o),o=this.getFoldsInRangeList(r);if(i.length)return i},this.isRowFolded=function(t,e){return!!this.getFoldLine(t,e)},this.getRowFoldEnd=function(t,e){var r=this.getFoldLine(t,e);return r?r.end.row:t},this.getRowFoldStart=function(t,e){var r=this.getFoldLine(t,e);return r?r.start.row:t},this.getFoldDisplayLine=function(t,e,r,i,o){i==null&&(i=t.start.row),o==null&&(o=0),e==null&&(e=t.end.row),r==null&&(r=this.getLine(e).length);var s=this.doc,g="";return t.walk(function(C,_,y,m){if(!(__)break;while(o&&g.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return C.end.row=i.getCurrentTokenRow(),C.end.column=i.getCurrentTokenColumn()+o.value.length-2,C}},this.foldAll=function(t,e,r){r==null&&(r=1e5);var i=this.foldWidgets;if(i){e=e||this.getLength(),t=t||0;for(var o=t;o=t){o=s.end.row;try{var g=this.addFold("...",s);g&&(g.collapseChildren=r)}catch{}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(t){if(!this.$foldStyles[t])throw new Error("invalid fold style: "+t+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=t){this.$foldStyle=t,t=="manual"&&this.unfold();var e=this.$foldMode;this.$setFolding(null),this.$setFolding(e)}},this.$setFolding=function(t){if(this.$foldMode!=t){if(this.$foldMode=t,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._signal("changeAnnotation"),!t||this.$foldStyle=="manual"){this.foldWidgets=null;return}this.foldWidgets=[],this.getFoldWidget=t.getFoldWidget.bind(t,this,this.$foldStyle),this.getFoldWidgetRange=t.getFoldWidgetRange.bind(t,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)}},this.getParentFoldRangeData=function(t,e){var r=this.foldWidgets;if(!r||e&&r[t])return{};for(var i=t-1,o;i>=0;){var s=r[i];if(s==null&&(s=r[i]=this.getFoldWidget(i)),s=="start"){var g=this.getFoldWidgetRange(i);if(o||(o=g),g&&g.end.row>=t)break}i--}return{range:i!==-1&&g,firstRange:o}},this.onFoldWidgetClick=function(t,e){e=e.domEvent;var r={children:e.shiftKey,all:e.ctrlKey||e.metaKey,siblings:e.altKey},i=this.$toggleFoldWidget(t,r);if(!i){var o=e.target||e.srcElement;o&&/ace_fold-widget/.test(o.className)&&(o.className+=" ace_invalid")}},this.$toggleFoldWidget=function(t,e){if(this.getFoldWidget){var r=this.getFoldWidget(t),i=this.getLine(t),o=r==="end"?-1:1,s=this.getFoldAt(t,o===-1?0:i.length,o);if(s)return e.children||e.all?this.removeFold(s):this.expandFold(s),s;var g=this.getFoldWidgetRange(t,!0);if(g&&!g.isMultiLine()&&(s=this.getFoldAt(g.start.row,g.start.column,1),s&&g.isEqual(s.range)))return this.removeFold(s),s;if(e.siblings){var C=this.getParentFoldRangeData(t);if(C.range)var _=C.range.start.row+1,y=C.range.end.row;this.foldAll(_,y,e.all?1e4:0)}else e.children?(y=g?g.end.row:this.getLength(),this.foldAll(t+1,y,e.all?1e4:0)):g&&(e.all&&(g.collapseChildren=1e4),this.addFold("...",g));return g}},this.toggleFoldWidget=function(t){var e=this.selection.getCursor().row;e=this.getRowFoldStart(e);var r=this.$toggleFoldWidget(e,{});if(!r){var i=this.getParentFoldRangeData(e,!0);if(r=i.range||i.firstRange,r){e=r.start.row;var o=this.getFoldAt(e,this.getLine(e).length,1);o?this.removeFold(o):this.addFold("...",r)}}},this.updateFoldWidgets=function(t){var e=t.start.row,r=t.end.row-e;if(r===0)this.foldWidgets[e]=null;else if(t.action=="remove")this.foldWidgets.splice(e,r+1,null);else{var i=Array(r+1);i.unshift(e,1),this.foldWidgets.splice.apply(this.foldWidgets,i)}},this.tokenizerUpdateFoldWidgets=function(t){var e=t.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}b.Folding=n});ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(p,b,h){"use strict";var c=p("../token_iterator").TokenIterator,u=p("../range").Range;function l(){this.findMatchingBracket=function(a,n){if(a.column==0)return null;var t=n||this.getLine(a.row).charAt(a.column-1);if(t=="")return null;var e=t.match(/([\(\[\{])|([\)\]\}])/);return e?e[1]?this.$findClosingBracket(e[1],a):this.$findOpeningBracket(e[2],a):null},this.getBracketRange=function(a){var n=this.getLine(a.row),t=!0,e,r=n.charAt(a.column-1),i=r&&r.match(/([\(\[\{])|([\)\]\}])/);if(i||(r=n.charAt(a.column),a={row:a.row,column:a.column+1},i=r&&r.match(/([\(\[\{])|([\)\]\}])/),t=!1),!i)return null;if(i[1]){var o=this.$findClosingBracket(i[1],a);if(!o)return null;e=u.fromPoints(a,o),t||(e.end.column++,e.start.column--),e.cursor=e.end}else{var o=this.$findOpeningBracket(i[2],a);if(!o)return null;e=u.fromPoints(o,a),t||(e.start.column++,e.end.column--),e.cursor=e.start}return e},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(a,n,t){var e=this.$brackets[a],r=1,i=new c(this,n.row,n.column),o=i.getCurrentToken();if(o||(o=i.stepForward()),!!o){t||(t=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var s=n.column-i.getCurrentTokenColumn()-2,g=o.value;;){for(;s>=0;){var C=g.charAt(s);if(C==e){if(r-=1,r==0)return{row:i.getCurrentTokenRow(),column:s+i.getCurrentTokenColumn()}}else C==a&&(r+=1);s-=1}do o=i.stepBackward();while(o&&!t.test(o.type));if(o==null)break;g=o.value,s=g.length-1}return null}},this.$findClosingBracket=function(a,n,t){var e=this.$brackets[a],r=1,i=new c(this,n.row,n.column),o=i.getCurrentToken();if(o||(o=i.stepForward()),!!o){t||(t=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var s=n.column-i.getCurrentTokenColumn();;){for(var g=o.value,C=g.length;sx&&(this.$docRowCache.splice(x,A),this.$screenRowCache.splice(x,A))},this.$getRowCacheIndex=function(f,A){for(var x=0,S=f.length-1;x<=S;){var $=x+S>>1,B=f[$];if(A>B)x=$+1;else if(A=A));B++);return S=x[B],S?(S.index=B,S.start=$-S.value.length,S):null},this.setUndoManager=function(f){if(this.$undoManager=f,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),f){var A=this;this.$syncInformUndoManager=function(){A.$informUndoManager.cancel(),A.$deltasFold.length&&(A.$deltas.push({group:"fold",deltas:A.$deltasFold}),A.$deltasFold=[]),A.$deltasDoc.length&&(A.$deltas.push({group:"doc",deltas:A.$deltasDoc}),A.$deltasDoc=[]),A.$deltas.length>0&&f.execute({action:"aceupdate",args:[A.$deltas,A],merge:A.mergeUndoDeltas}),A.mergeUndoDeltas=!1,A.$deltas=[]},this.$informUndoManager=u.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?u.stringRepeat(" ",this.getTabSize()):" "},this.setUseSoftTabs=function(f){this.setOption("useSoftTabs",f)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(f){this.setOption("tabSize",f)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(f){return this.$useSoftTabs&&f.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(f){this.setOption("navigateWithinSoftTabs",f)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(f){this.setOption("overwrite",f)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(f,A){this.$decorations[f]||(this.$decorations[f]=""),this.$decorations[f]+=" "+A,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(f,A){this.$decorations[f]=(this.$decorations[f]||"").replace(" "+A,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(f){this.$breakpoints=[];for(var A=0;A0&&(S=!!x.charAt(A-1).match(this.tokenRe)),S||(S=!!x.charAt(A).match(this.tokenRe)),S)var $=this.tokenRe;else if(/^\s+$/.test(x.slice(A-1,A+1)))var $=/\s/;else var $=this.nonTokenRe;var B=A;if(B>0){do B--;while(B>=0&&x.charAt(B).match($));B++}for(var D=A;Df&&(f=A.screenWidth)}),this.lineWidgetWidth=f},this.$computeWidth=function(f){if(this.$modified||f){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var A=this.doc.getAllLines(),x=this.$rowLengthCache,S=0,$=0,B=this.$foldData[$],D=B?B.start.row:1/0,O=A.length,I=0;ID){if(I=B.end.row+1,I>=O)break;B=this.$foldData[$++],D=B?B.start.row:1/0}x[I]==null&&(x[I]=this.$getStringScreenWidth(A[I])[0]),x[I]>S&&(S=x[I])}this.screenWidth=S}},this.getLine=function(f){return this.doc.getLine(f)},this.getLines=function(f,A){return this.doc.getLines(f,A)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(f){return this.doc.getTextRange(f||this.selection.getRange())},this.insert=function(f,A){return this.doc.insert(f,A)},this.remove=function(f){return this.doc.remove(f)},this.removeFullLines=function(f,A){return this.doc.removeFullLines(f,A)},this.undoChanges=function(f,A){if(f.length){this.$fromUndo=!0;for(var x=null,S=f.length-1;S!=-1;S--){var $=f[S];$.group=="doc"?(this.doc.revertDeltas($.deltas),x=this.$getUndoSelection($.deltas,!0,x)):$.deltas.forEach(function(B){this.addFolds(B.folds)},this)}return this.$fromUndo=!1,x&&this.$undoSelect&&!A&&this.selection.setSelectionRange(x),x}},this.redoChanges=function(f,A){if(f.length){this.$fromUndo=!0;for(var x=null,S=0;Sf.end.column&&(B.start.column+=O),B.end.row==f.end.row&&B.end.column>f.end.column&&(B.end.column+=O)),D&&B.start.row>=f.end.row&&(B.start.row+=D,B.end.row+=D)}if(B.end=this.insert(B.start,S),$.length){var I=f.start,H=B.start,D=H.row-I.row,O=H.column-I.column;this.addFolds($.map(function(U){return U=U.clone(),U.start.row==I.row&&(U.start.column+=O),U.end.row==I.row&&(U.end.column+=O),U.start.row+=D,U.end.row+=D,U}))}return B},this.indentRows=function(f,A,x){x=x.replace(/\t/g,this.getTabString());for(var S=f;S<=A;S++)this.doc.insertInLine({row:S,column:0},x)},this.outdentRows=function(f){for(var A=f.collapseRows(),x=new r(0,0,0,0),S=this.getTabSize(),$=A.start.row;$<=A.end.row;++$){var B=this.getLine($);x.start.row=$,x.end.row=$;for(var D=0;D0){var S=this.getRowFoldEnd(A+x);if(S>this.doc.getLength()-1)return 0;var $=S-A}else{f=this.$clipRowToDocument(f),A=this.$clipRowToDocument(A);var $=A-f+1}var B=new r(f,0,A,Number.MAX_VALUE),D=this.getFoldsInRange(B).map(function(I){return I=I.clone(),I.start.row+=$,I.end.row+=$,I}),O=x==0?this.doc.getLines(f,A):this.doc.removeFullLines(f,A);return this.doc.insertFullLines(f+$,O),D.length&&this.addFolds(D),$},this.moveLinesUp=function(f,A){return this.$moveLines(f,A,-1)},this.moveLinesDown=function(f,A){return this.$moveLines(f,A,1)},this.duplicateLines=function(f,A){return this.$moveLines(f,A,0)},this.$clipRowToDocument=function(f){return Math.max(0,Math.min(f,this.doc.getLength()-1))},this.$clipColumnToRow=function(f,A){return A<0?0:Math.min(this.doc.getLine(f).length,A)},this.$clipPositionToDocument=function(f,A){if(A=Math.max(0,A),f<0)f=0,A=0;else{var x=this.doc.getLength();f>=x?(f=x-1,A=this.doc.getLine(x-1).length):A=Math.min(this.doc.getLine(f).length,A)}return{row:f,column:A}},this.$clipRangeToDocument=function(f){f.start.row<0?(f.start.row=0,f.start.column=0):f.start.column=this.$clipColumnToRow(f.start.row,f.start.column);var A=this.doc.getLength()-1;return f.end.row>A?(f.end.row=A,f.end.column=this.doc.getLine(A).length):f.end.column=this.$clipColumnToRow(f.end.row,f.end.column),f},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(f){if(f!=this.$useWrapMode){if(this.$useWrapMode=f,this.$modified=!0,this.$resetRowCache(0),f){var A=this.getLength();this.$wrapData=Array(A),this.$updateWrapData(0,A-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(f,A){(this.$wrapLimitRange.min!==f||this.$wrapLimitRange.max!==A)&&(this.$wrapLimitRange={min:f,max:A},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(f,A){var x=this.$wrapLimitRange;x.max<0&&(x={min:A,max:A});var S=this.$constrainWrapLimit(f,x.min,x.max);return S!=this.$wrapLimit&&S>1?(this.$wrapLimit=S,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0):!1},this.$constrainWrapLimit=function(f,A,x){return A&&(f=Math.max(A,f)),x&&(f=Math.min(x,f)),f},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(f){this.setWrapLimitRange(f,f)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(f){var A=this.$useWrapMode,x=f.action,S=f.start,$=f.end,B=S.row,D=$.row,O=D-B,I=null;if(this.$updating=!0,O!=0)if(x==="remove"){this[A?"$wrapData":"$rowLengthCache"].splice(B,O);var H=this.$foldData;I=this.getFoldsInRange(f),this.removeFolds(I);var N=this.getFoldLine($.row),L=0;if(N){N.addRemoveChars($.row,$.column,S.column-$.column),N.shiftRow(-O);var U=this.getFoldLine(B);U&&U!==N&&(U.merge(N),N=U),L=H.indexOf(N)+1}for(L;L=$.row&&N.shiftRow(-O)}D=B}else{var T=Array(O);T.unshift(B,0);var M=A?this.$wrapData:this.$rowLengthCache;M.splice.apply(M,T);var H=this.$foldData,N=this.getFoldLine(B),L=0;if(N){var k=N.range.compareInside(S.row,S.column);k==0?(N=N.split(S.row,S.column),N&&(N.shiftRow(O),N.addRemoveChars(D,0,$.column-S.column))):k==-1&&(N.addRemoveChars(B,0,$.column-S.column),N.shiftRow(O)),L=H.indexOf(N)+1}for(L;L=B&&N.shiftRow(O)}}else{O=Math.abs(f.start.column-f.end.column),x==="remove"&&(I=this.getFoldsInRange(f),this.removeFolds(I),O=-O);var N=this.getFoldLine(B);N&&N.addRemoveChars(B,S.column,O)}return A&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,A?this.$updateWrapData(B,D):this.$updateRowLengthCache(B,D),I},this.$updateRowLengthCache=function(f,A,x){this.$rowLengthCache[f]=null,this.$rowLengthCache[A]=null},this.$updateWrapData=function(f,A){var x=this.doc.getAllLines(),S=this.getTabSize(),$=this.$wrapData,B=this.$wrapLimit,D,O,I=f;for(A=Math.min(A,x.length-1);I<=A;)O=this.getFoldLine(I,O),O?(D=[],O.walk(function(H,N,L,U){var T;if(H!=null){T=this.$getDisplayTokens(H,D.length),T[0]=y;for(var M=1;MA-U;){var T=B+A-U;if(f[T-1]>=d&&f[T]>=d){L(T);continue}if(f[T]==y||f[T]==m){for(T;T!=B-1&&f[T]!=y;T--);if(T>B){L(T);continue}for(T=B+A,T;T>2)),B-1);T>M&&f[T]M&&f[T]M&&f[T]==w;)T--}else for(;T>M&&f[T]M){L(++T);continue}T=B+A,f[T]==_&&T--,L(T-U)}return S},this.$getDisplayTokens=function(f,A){var x=[],S;A=A||0;for(var $=0;$39&&B<48||B>57&&B<64?x.push(w):B>=4352&&E(B)?x.push(C,_):x.push(C)}return x},this.$getStringScreenWidth=function(f,A,x){if(A==0)return[0,0];A==null&&(A=1/0),x=x||0;var S,$;for($=0;$=4352&&E(S)?x+=2:x+=1,!(x>A));$++);return[x,$]},this.lineWidgets=null,this.getRowLength=function(f){if(this.lineWidgets)var A=this.lineWidgets[f]&&this.lineWidgets[f].rowCount||0;else A=0;return!this.$useWrapMode||!this.$wrapData[f]?1+A:this.$wrapData[f].length+1+A},this.getRowLineCount=function(f){return!this.$useWrapMode||!this.$wrapData[f]?1:this.$wrapData[f].length+1},this.getRowWrapIndent=function(f){if(this.$useWrapMode){var A=this.screenToDocumentPosition(f,Number.MAX_VALUE),x=this.$wrapData[A.row];return x.length&&x[0]=0)var O=H[N],$=this.$docRowCache[N],U=f>H[L-1];else var U=!L;for(var T=this.getLength()-1,M=this.getNextFoldLine($),k=M?M.start.row:1/0;O<=f&&(I=this.getRowLength($),!(O+I>f||$>=T));)O+=I,$++,$>k&&($=M.end.row+1,M=this.getNextFoldLine($,M),k=M?M.start.row:1/0),U&&(this.$docRowCache.push($),this.$screenRowCache.push(O));if(M&&M.start.row<=$)S=this.getFoldDisplayLine(M),$=M.start.row;else{if(O+I<=f||$>T)return{row:T,column:this.getLine(T).length};S=this.getLine($),M=null}var z=0,P=Math.floor(f-O);if(this.$useWrapMode){var j=this.$wrapData[$];j&&(D=j[P],P>0&&j.length&&(z=j.indent,B=j[P-1]||j[j.length-1],S=S.substring(B)))}return x!==void 0&&this.$bidiHandler.isBidiRow(O+P,$,P)&&(A=this.$bidiHandler.offsetToCol(x)),B+=this.$getStringScreenWidth(S,A-z)[1],this.$useWrapMode&&B>=D&&(B=D-1),M?M.idxToPosition(B):{row:$,column:B}},this.documentToScreenPosition=function(f,A){if(typeof A>"u")var x=this.$clipPositionToDocument(f.row,f.column);else x=this.$clipPositionToDocument(f,A);f=x.row,A=x.column;var S=0,$=null,B=null;B=this.getFoldAt(f,A,1),B&&(f=B.start.row,A=B.start.column);var D,O=0,I=this.$docRowCache,H=this.$getRowCacheIndex(I,f),N=I.length;if(N&&H>=0)var O=I[H],S=this.$screenRowCache[H],L=f>I[N-1];else var L=!N;for(var U=this.getNextFoldLine(O),T=U?U.start.row:1/0;O=T){if(D=U.end.row+1,D>f)break;U=this.getNextFoldLine(D,U),T=U?U.start.row:1/0}else D=O+1;S+=this.getRowLength(O),O=D,L&&(this.$docRowCache.push(O),this.$screenRowCache.push(S))}var M="";U&&O>=T?(M=this.getFoldDisplayLine(U,f,A),$=U.start.row):(M=this.getLine(f).substring(0,A),$=f);var k=0;if(this.$useWrapMode){var z=this.$wrapData[$];if(z){for(var P=0;M.length>=z[P];)S++,P++;M=M.substring(z[P-1]||0,M.length),k=P>0?z.indent:0}}return{row:S,column:k+this.$getStringScreenWidth(M)[0]}},this.documentToScreenColumn=function(f,A){return this.documentToScreenPosition(f,A).column},this.documentToScreenRow=function(f,A){return this.documentToScreenPosition(f,A).row},this.getScreenLength=function(){var f=0,A=null;if(this.$useWrapMode)for(var $=this.$wrapData.length,B=0,S=0,A=this.$foldData[S++],D=A?A.start.row:1/0;B<$;){var O=this.$wrapData[B];f+=O?O.length+1:1,B++,B>D&&(B=A.end.row+1,A=this.$foldData[S++],D=A?A.start.row:1/0)}else{f=this.getLength();for(var x=this.$foldData,S=0;Sx));B++);return[S,B]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()},this.isFullWidth=E;function E(f){return f<4352?!1:f>=4352&&f<=4447||f>=4515&&f<=4519||f>=4602&&f<=4607||f>=9001&&f<=9002||f>=11904&&f<=11929||f>=11931&&f<=12019||f>=12032&&f<=12245||f>=12272&&f<=12283||f>=12288&&f<=12350||f>=12353&&f<=12438||f>=12441&&f<=12543||f>=12549&&f<=12589||f>=12593&&f<=12686||f>=12688&&f<=12730||f>=12736&&f<=12771||f>=12784&&f<=12830||f>=12832&&f<=12871||f>=12880&&f<=13054||f>=13056&&f<=19903||f>=19968&&f<=42124||f>=42128&&f<=42182||f>=43360&&f<=43388||f>=44032&&f<=55203||f>=55216&&f<=55238||f>=55243&&f<=55291||f>=63744&&f<=64255||f>=65040&&f<=65049||f>=65072&&f<=65106||f>=65108&&f<=65126||f>=65128&&f<=65131||f>=65281&&f<=65376||f>=65504&&f<=65510}}.call(g.prototype),p("./edit_session/folding").Folding.call(g.prototype),p("./edit_session/bracket_match").BracketMatch.call(g.prototype),a.defineOptions(g.prototype,"session",{wrap:{set:function(C){if(!C||C=="off"?C=!1:C=="free"?C=!0:C=="printMargin"?C=-1:typeof C=="string"&&(C=parseInt(C,10)||!1),this.$wrap!=C)if(this.$wrap=C,!C)this.setUseWrapMode(!1);else{var _=typeof C=="number"?C:null;this.setWrapLimitRange(_,_),this.setUseWrapMode(!0)}},get:function(){return this.getUseWrapMode()?this.$wrap==-1?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(C){C=C=="auto"?this.$mode.type!="text":C!="text",C!=this.$wrapAsCode&&(this.$wrapAsCode=C,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(C){this.$useWorker=C,this.$stopWorker(),C&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(C){isNaN(C)||this.$tabSize===C||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=C,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},overwrite:{set:function(C){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(C){this.doc.setNewLineMode(C)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(C){this.setMode(C)},get:function(){return this.$modeId}}}),b.EditSession=g});ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(p,b,h){"use strict";var c=p("./lib/lang"),u=p("./lib/oop"),l=p("./range").Range,a=function(){this.$options={}};(function(){this.set=function(t){return u.mixin(this.$options,t),this},this.getOptions=function(){return c.copyObject(this.$options)},this.setOptions=function(t){this.$options=t},this.find=function(t){var e=this.$options,r=this.$matchIterator(t,e);if(!r)return!1;var i=null;return r.forEach(function(o,s,g,C){return i=new l(o,s,g,C),s==C&&e.start&&e.start.start&&e.skipCurrent!=!1&&i.isEqual(e.start)?(i=null,!1):!0}),i},this.findAll=function(t){var e=this.$options;if(!e.needle)return[];this.$assembleRegExp(e);var r=e.range,i=r?t.getLines(r.start.row,r.end.row):t.doc.getAllLines(),o=[],s=e.re;if(e.$isMultiLine){var g=s.length,C=i.length-g,_;e:for(var y=s.offset||0;y<=C;y++){for(var m=0;mv||(o.push(_=new l(y,v,y+g-1,F)),g>2&&(y=y+g-2))}}else for(var E=0;ES&&o[m].end.row==r.end.row;)m--;for(o=o.slice(E,m+1),E=0,m=o.length;E=C;v--)if(w(v,Number.MAX_VALUE,d))return;if(e.wrap!=!1){for(v=_,C=g.row;v>=C;v--)if(w(v,Number.MAX_VALUE,d))return}}};else var y=function(v){var F=g.row;if(!w(F,g.column,v)){for(F=F+1;F<=_;F++)if(w(F,0,v))return;if(e.wrap!=!1){for(F=C,_=g.row;F<=_;F++)if(w(F,0,v))return}}};if(e.$isMultiLine)var m=r.length,w=function(d,v,F){var E=i?d-m+1:d;if(!(E<0)){var f=t.getLine(E),A=f.search(r[0]);if(!(!i&&Av)&&F(E,A,E+m-1,S))return!0}}};else if(i)var w=function(v,F,E){var f=t.getLine(v),A=[],x,S=0;for(r.lastIndex=0;x=r.exec(f);){var $=x[0].length;if(S=x.index,!$){if(S>=f.length)break;r.lastIndex=S+=1}if(x.index+$>F)break;A.push(x.index,$)}for(var B=A.length-1;B>=0;B-=2){var D=A[B-1],$=A[B];if(E(v,D,v,D+$))return!0}};else var w=function(v,F,E){var f=t.getLine(v),A,x=F;for(r.lastIndex=F;A=r.exec(f);){var S=A[0].length;if(x=A.index,E(v,x,v,x+S))return!0;if(!S&&(r.lastIndex=x+=1,x>=f.length))return!1}};return{forEach:y}}}).call(a.prototype);function n(t,e){function r(i){return/\w/.test(i)||e.regExp?"\\b":""}return r(t[0])+t+r(t[t.length-1])}b.Search=a});ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(p,b,h){"use strict";var c=p("../lib/keys"),u=p("../lib/useragent"),l=c.KEY_MODS;function a(t,e){this.platform=e||(u.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(t),this.$singleCommand=!0}function n(t,e){a.call(this,t,e),this.$singleCommand=!1}n.prototype=a.prototype,function(){this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,r){var i=e&&(typeof e=="string"?e:e.name);e=this.commands[i],r||delete this.commands[i];var o=this.commandKeyBinding;for(var s in o){var g=o[s];if(g==e)delete o[s];else if(Array.isArray(g)){var C=g.indexOf(e);C!=-1&&(g.splice(C,1),g.length==1&&(o[s]=g[0]))}}},this.bindKey=function(e,r,i){if(typeof e=="object"&&e&&(i==null&&(i=e.position),e=e[this.platform]),!!e){if(typeof r=="function")return this.addCommand({exec:r,bindKey:e,name:r.name||e});e.split("|").forEach(function(o){var s="";if(o.indexOf(" ")!=-1){var g=o.split(/\s+/);o=g.pop(),g.forEach(function(y){var m=this.parseKeys(y),w=l[m.hashId]+m.key;s+=(s?" ":"")+w,this._addCommandToBinding(s,"chainKeys")},this),s+=" "}var C=this.parseKeys(o),_=l[C.hashId]+C.key;this._addCommandToBinding(s+_,r,i)},this)}};function t(e){return typeof e=="object"&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this._addCommandToBinding=function(e,r,i){var o=this.commandKeyBinding,s;if(!r)delete o[e];else if(!o[e]||this.$singleCommand)o[e]=r;else{Array.isArray(o[e])?(s=o[e].indexOf(r))!=-1&&o[e].splice(s,1):o[e]=[o[e]],typeof i!="number"&&(i=t(r));var g=o[e];for(s=0;si)break}g.splice(s,0,r)}},this.addCommands=function(e){e&&Object.keys(e).forEach(function(r){var i=e[r];if(i){if(typeof i=="string")return this.bindKey(i,r);typeof i=="function"&&(i={exec:i}),typeof i=="object"&&(i.name||(i.name=r),this.addCommand(i))}},this)},this.removeCommands=function(e){Object.keys(e).forEach(function(r){this.removeCommand(e[r])},this)},this.bindKeys=function(e){Object.keys(e).forEach(function(r){this.bindKey(r,e[r])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var r=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(_){return _}),i=r.pop(),o=c[i];if(c.FUNCTION_KEYS[o])i=c.FUNCTION_KEYS[o].toLowerCase();else if(r.length){if(r.length==1&&r[0]=="shift")return{key:i.toUpperCase(),hashId:-1}}else return{key:i,hashId:-1};for(var s=0,g=r.length;g--;){var C=c.KEY_MODS[r[g]];if(C==null)return typeof console<"u"&&console.error("invalid modifier "+r[g]+" in "+e),!1;s|=C}return{key:i,hashId:s}},this.findKeyCommand=function(r,i){var o=l[r]+i;return this.commandKeyBinding[o]},this.handleKeyboard=function(e,r,i,o){if(!(o<0)){var s=l[r]+i,g=this.commandKeyBinding[s];return e.$keyChain&&(e.$keyChain+=" "+s,g=this.commandKeyBinding[e.$keyChain]||g),g&&(g=="chainKeys"||g[g.length-1]=="chainKeys")?(e.$keyChain=e.$keyChain||s,{command:"null"}):(e.$keyChain&&((!r||r==4)&&i.length==1?e.$keyChain=e.$keyChain.slice(0,-s.length-1):(r==-1||o>0)&&(e.$keyChain="")),{command:g})}},this.getStatusText=function(e,r){return r.$keyChain||""}}.call(a.prototype),b.HashHandler=a,b.MultiHashHandler=n});ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("../keyboard/hash_handler").MultiHashHandler,l=p("../lib/event_emitter").EventEmitter,a=function(n,t){u.call(this,t,n),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};c.inherits(a,u),function(){c.implement(this,l),this.exec=function(n,t,e){if(Array.isArray(n)){for(var r=n.length;r--;)if(this.exec(n[r],t,e))return!0;return!1}if(typeof n=="string"&&(n=this.commands[n]),!n||t&&t.$readOnly&&!n.readOnly||n.isAvailable&&!n.isAvailable(t))return!1;var i={editor:t,command:n,args:e};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),i.returnValue!==!1},this.toggleRecording=function(n){if(!this.$inReplay)return n&&n._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(t){this.macro.push([t.command,t.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(n){if(!(this.$inReplay||!this.macro)){if(this.recording)return this.toggleRecording(n);try{this.$inReplay=!0,this.macro.forEach(function(t){typeof t=="string"?this.exec(t,n):this.exec(t[0],n,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(n){return n.map(function(t){return typeof t[0]!="string"&&(t[0]=t[0].name),t[1]||(t=t[0]),t})}}.call(a.prototype),b.CommandManager=a});ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(p,b,h){"use strict";var c=p("../lib/lang"),u=p("../config"),l=p("../range").Range;function a(n,t){return{win:n,mac:t}}b.commands=[{name:"showSettingsMenu",bindKey:a("Ctrl-,","Command-,"),exec:function(n){u.loadModule("ace/ext/settings_menu",function(t){t.init(n),n.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:a("Alt-E","F4"),exec:function(n){u.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(n,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(n){u.loadModule("ace/ext/error_marker",function(t){t.showErrorMarker(n,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:a("Ctrl-A","Command-A"),exec:function(n){n.selectAll()},readOnly:!0},{name:"centerselection",bindKey:a(null,"Ctrl-L"),exec:function(n){n.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:a("Ctrl-L","Command-L"),exec:function(n){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||n.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(n){n.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(n){n.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:a("F2","F2"),exec:function(n){n.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:a("Alt-F2","Alt-F2"),exec:function(n){n.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(n){n.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:a("Alt-0","Command-Option-0"),exec:function(n){n.session.foldAll(),n.session.unfold(n.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(n){n.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:a("Ctrl-K","Command-G"),exec:function(n){n.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(n){n.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:a("Alt-K","Ctrl-G"),exec:function(n){n.selection.isEmpty()?n.selection.selectWord():n.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(n){n.selection.isEmpty()?n.selection.selectWord():n.findPrevious()},readOnly:!0},{name:"find",bindKey:a("Ctrl-F","Command-F"),exec:function(n){u.loadModule("ace/ext/searchbox",function(t){t.Search(n)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(n){n.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(n){n.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(n){n.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(n){n.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:a("Up","Up|Ctrl-P"),exec:function(n,t){n.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(n){n.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(n){n.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(n){n.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:a("Down","Down|Ctrl-N"),exec:function(n,t){n.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(n){n.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:a("Ctrl-Left","Option-Left"),exec:function(n){n.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(n){n.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(n){n.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(n){n.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:a("Left","Left|Ctrl-B"),exec:function(n,t){n.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(n){n.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:a("Ctrl-Right","Option-Right"),exec:function(n){n.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(n){n.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(n){n.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:a("Shift-Right","Shift-Right"),exec:function(n){n.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:a("Right","Right|Ctrl-F"),exec:function(n,t){n.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(n){n.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:a(null,"Option-PageDown"),exec:function(n){n.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(n){n.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(n){n.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:a(null,"Option-PageUp"),exec:function(n){n.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(n){n.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:a("Ctrl-Up",null),exec:function(n){n.renderer.scrollBy(0,-2*n.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:a("Ctrl-Down",null),exec:function(n){n.renderer.scrollBy(0,2*n.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(n){n.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(n){n.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(n){n.commands.toggleRecording(n)},readOnly:!0},{name:"replaymacro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(n){n.commands.replay(n)},readOnly:!0},{name:"jumptomatching",bindKey:a("Ctrl-P","Ctrl-P"),exec:function(n){n.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:a("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(n){n.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(n){n.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(n){},readOnly:!0},{name:"cut",exec:function(n){var t=n.getSelectionRange();n._emit("cut",t),n.selection.isEmpty()||(n.session.remove(t),n.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(n,t){n.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:a("Ctrl-D","Command-D"),exec:function(n){n.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(n){n.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(n){n.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:a("Ctrl-/","Command-/"),exec:function(n){n.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(n){n.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(n){n.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(n){n.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(n){u.loadModule("ace/ext/searchbox",function(t){t.Search(n,!0)})}},{name:"undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(n){n.undo()}},{name:"redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(n){n.redo()}},{name:"copylinesup",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(n){n.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:a("Alt-Up","Option-Up"),exec:function(n){n.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(n){n.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:a("Alt-Down","Option-Down"),exec:function(n){n.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(n){n.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(n){n.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:a("Shift-Delete",null),exec:function(n){if(n.selection.isEmpty())n.remove("left");else return!1},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(n){n.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(n){n.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(n){var t=n.selection.getRange();t.start.column=0,n.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(n){var t=n.selection.getRange();t.end.column=Number.MAX_VALUE,n.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(n){n.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(n){n.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(n){n.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:a("Tab","Tab"),exec:function(n){n.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(n){n.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(n){n.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(n,t){n.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(n,t){n.insert(c.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:a(null,"Ctrl-O"),exec:function(n){n.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(n){n.transposeLetters()},multiSelectAction:function(n){n.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(n){n.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(n){n.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(n){var t=n.selection.getRange();t.start.column=t.end.column=0,t.end.row++,n.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:a(null,null),exec:function(n){for(var t=n.selection.isBackwards(),e=t?n.selection.getSelectionLead():n.selection.getSelectionAnchor(),r=t?n.selection.getSelectionAnchor():n.selection.getSelectionLead(),i=n.session.doc.getLine(e.row).length,o=n.session.doc.getTextRange(n.selection.getRange()),s=o.replace(/\n\s*/," ").length,g=n.session.doc.getLine(e.row),C=e.row+1;C<=r.row+1;C++){var _=c.stringTrimLeft(c.stringTrimRight(n.session.doc.getLine(C)));_.length!==0&&(_=" "+_),g+=_}r.row+10?(n.selection.moveCursorTo(e.row,e.column),n.selection.selectTo(e.row,e.column+s)):(i=n.session.doc.getLine(e.row).length>i?i+1:i,n.selection.moveCursorTo(e.row,i))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:a(null,null),exec:function(n){var t=n.session.doc.getLength()-1,e=n.session.doc.getLine(t).length,r=n.selection.rangeList.ranges,i=[];r.length<1&&(r=[n.selection.getRange()]);for(var o=0;o0&&this.$blockScrolling--;var F=v&&v.scrollIntoView;if(F){switch(F){case"center-animate":F="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var E=this.selection.getRange(),f=this.renderer.layerConfig;(E.start.row>=f.lastRow||E.end.row<=f.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}F=="animate"&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(d){if(this.$mergeUndoDeltas){var v=this.prevOp,F=this.$mergeableCommands,E=v.command&&d.command.name==v.command.name;if(d.command.name=="insertstring"){var f=d.args;this.mergeNextCommand===void 0&&(this.mergeNextCommand=!0),E=E&&this.mergeNextCommand&&(!/\s/.test(f)||/\s/.test(v.args)),this.mergeNextCommand=!0}else E=E&&F.indexOf(d.command.name)!==-1;this.$mergeUndoDeltas!="always"&&Date.now()-this.sequenceStartTime>2e3&&(E=!1),E?this.session.mergeUndoDeltas=!0:F.indexOf(d.command.name)!==-1&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(d,v){if(d&&typeof d=="string"){this.$keybindingId=d;var F=this;y.loadModule(["keybinding",d],function(E){F.$keybindingId==d&&F.keyBinding.setKeyboardHandler(E&&E.handler),v&&v()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(d),v&&v()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(d){if(this.session!=d){this.curOp&&this.endOperation(),this.curOp={};var v=this.session;if(v){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var F=this.session.getSelection();F.off("changeCursor",this.$onCursorChange),F.off("changeSelection",this.$onSelectionChange)}this.session=d,d?(this.$onDocumentChange=this.onDocumentChange.bind(this),d.on("change",this.$onDocumentChange),this.renderer.setSession(d),this.$onChangeMode=this.onChangeMode.bind(this),d.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),d.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),d.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),d.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),d.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),d.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=d.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(d)),this._signal("changeSession",{session:d,oldSession:v}),this.curOp=null,v&&v._signal("changeEditor",{oldEditor:this}),d&&d._signal("changeEditor",{editor:this}),d&&d.bgTokenizer&&d.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(d,v){return this.session.doc.setValue(d),v?v==1?this.navigateFileEnd():v==-1&&this.navigateFileStart():this.selectAll(),d},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(d){this.renderer.onResize(d)},this.setTheme=function(d,v){this.renderer.setTheme(d,v)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(d){this.renderer.setStyle(d)},this.unsetStyle=function(d){this.renderer.unsetStyle(d)},this.getFontSize=function(){return this.getOption("fontSize")||u.computedStyle(this.container,"fontSize")},this.setFontSize=function(d){this.setOption("fontSize",d)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var d=this;this.$highlightPending=!0,setTimeout(function(){d.$highlightPending=!1;var v=d.session;if(!(!v||!v.bgTokenizer)){var F=v.findMatchingBracket(d.getCursorPosition());if(F)var E=new s(F.row,F.column,F.row,F.column+1);else if(v.$mode.getMatching)var E=v.$mode.getMatching(d.session);E&&(v.$bracketHighlight=v.addMarker(E,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var d=this;this.$highlightTagPending=!0,setTimeout(function(){d.$highlightTagPending=!1;var v=d.session;if(!(!v||!v.bgTokenizer)){var F=d.getCursorPosition(),E=new m(d.session,F.row,F.column),f=E.getCurrentToken();if(!f||!/\b(?:tag-open|tag-name)/.test(f.type)){v.removeMarker(v.$tagHighlight),v.$tagHighlight=null;return}if(!(f.type.indexOf("tag-open")!=-1&&(f=E.stepForward(),!f))){var A=f.value,x=0,S=E.stepBackward();if(S.value=="<")do S=f,f=E.stepForward(),f&&f.value===A&&f.type.indexOf("tag-name")!==-1&&(S.value==="<"?x++:S.value==="=0);else{do f=S,S=E.stepBackward(),f&&f.value===A&&f.type.indexOf("tag-name")!==-1&&(S.value==="<"?x++:S.value==="1)&&(v=!1)),d.$highlightLineMarker&&!v)d.removeMarker(d.$highlightLineMarker.id),d.$highlightLineMarker=null;else if(!d.$highlightLineMarker&&v){var F=new s(v.row,v.column,v.row,1/0);F.id=d.addMarker(F,"ace_active-line","screenLine"),d.$highlightLineMarker=F}else v&&(d.$highlightLineMarker.start.row=v.row,d.$highlightLineMarker.end.row=v.row,d.$highlightLineMarker.start.column=v.column,d._signal("changeBackMarker"))},this.onSelectionChange=function(d){var v=this.session;if(v.$selectionMarker&&v.removeMarker(v.$selectionMarker),v.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var F=this.selection.getRange(),E=this.getSelectionStyle();v.$selectionMarker=v.addMarker(F,"ace_selection",E)}var f=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(f),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var d=this.session,v=this.getSelectionRange();if(!(v.isEmpty()||v.isMultiLine())){var F=v.start.column-1,E=v.end.column+1,f=d.getLine(v.start.row),A=f.length,x=f.substring(Math.max(F,0),Math.min(E,A));if(!(F>=0&&/^[\w\d]/.test(x)||E<=A&&/[\w\d]$/.test(x))&&(x=f.substring(v.start.column,v.end.column),!!/^[\w\d]+$/.test(x))){var S=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:x});return S}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(d){this.renderer.updateText(),this._emit("changeMode",d)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var d=this.getSelectedText();return this._signal("copy",d),d},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(d,v){var F={text:d,event:v};this.commands.exec("paste",this,F)},this.$handlePaste=function(d){typeof d=="string"&&(d={text:d}),this._signal("paste",d);var v=d.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(v);else{var F=v.split(/\r\n|\r|\n/),E=this.selection.rangeList.ranges;if(F.length>E.length||F.length<2||!F[1])return this.commands.exec("insertstring",this,v);for(var f=E.length;f--;){var A=E[f];A.isEmpty()||this.session.remove(A),this.session.insert(A.start,F[f])}}},this.execCommand=function(d,v){return this.commands.exec(d,this,v)},this.insert=function(d,v){var F=this.session,E=F.getMode(),f=this.getCursorPosition();if(this.getBehavioursEnabled()&&!v){var A=E.transformAction(F.getState(f.row),"insertion",this,F,d);A&&(d!==A.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),d=A.text)}if(d==" "&&(d=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()&&d.indexOf(` +`)==-1){var x=new s.fromPoints(f,f);x.end.column+=d.length,this.session.remove(x)}}else{var x=this.getSelectionRange();f=this.session.remove(x),this.clearSelection()}if(d==` +`||d==`\r +`){var D=F.getLine(f.row);if(f.column>D.search(/\S|$/)){var S=D.substr(f.column).search(/\S|$/);F.doc.removeInLine(f.row,f.column,f.column+S)}}this.clearSelection();var $=f.column,B=F.getState(f.row),D=F.getLine(f.row),O=E.checkOutdent(B,D,d),I=F.insert(f,d);if(A&&A.selection&&(A.selection.length==2?this.selection.setSelectionRange(new s(f.row,$+A.selection[0],f.row,$+A.selection[1])):this.selection.setSelectionRange(new s(f.row+A.selection[0],A.selection[1],f.row+A.selection[2],A.selection[3]))),F.getDocument().isNewLine(d)){var H=E.getNextLineIndent(B,D.slice(0,f.column),F.getTabString());F.insert({row:f.row+1,column:0},H)}O&&E.autoOutdent(B,F,f.row)},this.onTextInput=function(d){this.keyBinding.onTextInput(d)},this.onCommandKey=function(d,v,F){this.keyBinding.onCommandKey(d,v,F)},this.setOverwrite=function(d){this.session.setOverwrite(d)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(d){this.setOption("scrollSpeed",d)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(d){this.setOption("dragDelay",d)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(d){this.setOption("selectionStyle",d)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(d){this.setOption("highlightActiveLine",d)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(d){this.setOption("highlightGutterLine",d)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(d){this.setOption("highlightSelectedWord",d)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(d){this.renderer.setAnimatedScroll(d)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(d){this.renderer.setShowInvisibles(d)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(d){this.renderer.setDisplayIndentGuides(d)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(d){this.renderer.setShowPrintMargin(d)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(d){this.renderer.setPrintMarginColumn(d)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(d){this.setOption("readOnly",d)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(d){this.setOption("behavioursEnabled",d)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(d){this.setOption("wrapBehavioursEnabled",d)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(d){this.setOption("showFoldWidgets",d)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(d){this.setOption("fadeFoldWidgets",d)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(d){this.selection.isEmpty()&&(d=="left"?this.selection.selectLeft():this.selection.selectRight());var v=this.getSelectionRange();if(this.getBehavioursEnabled()){var F=this.session,E=F.getState(v.start.row),f=F.getMode().transformAction(E,"deletion",this,F,v);if(v.end.column===0){var A=F.getTextRange(v);if(A[A.length-1]==` +`){var x=F.getLine(v.end.row);/^\s+$/.test(x)&&(v.end.column=x.length)}}f&&(v=f)}this.session.remove(v),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var d=this.getSelectionRange();d.start.column==d.end.column&&d.start.row==d.end.row&&(d.end.column=0,d.end.row++),this.session.remove(d),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var d=this.getCursorPosition();this.insert(` +`),this.moveCursorToPosition(d)},this.transposeLetters=function(){if(this.selection.isEmpty()){var d=this.getCursorPosition(),v=d.column;if(v!==0){var F=this.session.getLine(d.row),E,f;vS.toLowerCase()?1:0});for(var f=new s(0,0,0,0),E=d.first;E<=d.last;E++){var A=v.getLine(E);f.start.row=E,f.end.row=E,f.end.column=A.length,v.replace(f,F[E-d.first])}},this.toggleCommentLines=function(){var d=this.session.getState(this.getCursorPosition().row),v=this.$getSelectedRows();this.session.getMode().toggleCommentLines(d,this.session,v.first,v.last)},this.toggleBlockComment=function(){var d=this.getCursorPosition(),v=this.session.getState(d.row),F=this.getSelectionRange();this.session.getMode().toggleBlockComment(v,this.session,F,d)},this.getNumberAt=function(d,v){var F=/[\-]?[0-9]+(?:\.[0-9]+)?/g;F.lastIndex=0;for(var E=this.session.getLine(d);F.lastIndex=v){var A={value:f[0],start:f.index,end:f.index+f[0].length};return A}}return null},this.modifyNumber=function(d){var v=this.selection.getCursor().row,F=this.selection.getCursor().column,E=new s(v,F-1,v,F),f=this.session.getTextRange(E);if(!isNaN(parseFloat(f))&&isFinite(f)){var A=this.getNumberAt(v,F);if(A){var x=A.value.indexOf(".")>=0?A.start+A.value.indexOf(".")+1:A.end,S=A.start+A.value.length-x,$=parseFloat(A.value);$*=Math.pow(10,S),x!==A.end&&FH+1)break;H=N.last}for(D--,S=this.session.$moveLines(I,H,v?0:d),v&&d==-1&&(O=D+1);O<=D;)x[O].moveBy(S,0),O++;v||(S=0),$+=S}f.fromOrientedRange(f.ranges[0]),f.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(d){return d=(d||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(d.start.row),last:this.session.getRowFoldEnd(d.end.row)}},this.onCompositionStart=function(d){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(d){this.renderer.setCompositionText(d)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(d){return d>=this.getFirstVisibleRow()&&d<=this.getLastVisibleRow()},this.isRowFullyVisible=function(d){return d>=this.renderer.getFirstFullyVisibleRow()&&d<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(d,v){var F=this.renderer,E=this.renderer.layerConfig,f=d*Math.floor(E.height/E.lineHeight);this.$blockScrolling++,v===!0?this.selection.$moveSelection(function(){this.moveCursorBy(f,0)}):v===!1&&(this.selection.moveCursorBy(f,0),this.selection.clearSelection()),this.$blockScrolling--;var A=F.scrollTop;F.scrollBy(0,f*E.lineHeight),v!=null&&F.scrollCursorIntoView(null,.5),F.animateScrolling(A)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(d){this.renderer.scrollToRow(d)},this.scrollToLine=function(d,v,F,E){this.renderer.scrollToLine(d,v,F,E)},this.centerSelection=function(){var d=this.getSelectionRange(),v={row:Math.floor(d.start.row+(d.end.row-d.start.row)/2),column:Math.floor(d.start.column+(d.end.column-d.start.column)/2)};this.renderer.alignCursor(v,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(d,v){this.selection.moveCursorTo(d,v)},this.moveCursorToPosition=function(d){this.selection.moveCursorToPosition(d)},this.jumpToMatching=function(d,v){var F=this.getCursorPosition(),E=new m(this.session,F.row,F.column),f=E.getCurrentToken(),A=f||E.stepForward();if(A){var x,S=!1,$={},B=F.column-A.start,D,O={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(A.value.match(/[{}()\[\]]/g)){for(;B=0;--A)this.$tryReplace(F[A],d)&&E++;return this.selection.setSelectionRange(f),this.$blockScrolling-=1,E},this.$tryReplace=function(d,v){var F=this.session.getTextRange(d);return v=this.$search.replace(F,v),v!==null?(d.end=this.session.replace(d,v),d):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(d,v,F){v||(v={}),typeof d=="string"||d instanceof RegExp?v.needle=d:typeof d=="object"&&c.mixin(v,d);var E=this.selection.getRange();v.needle==null&&(d=this.session.getTextRange(E)||this.$search.$options.needle,d||(E=this.session.getWordRange(E.start.row,E.start.column),d=this.session.getTextRange(E)),this.$search.set({needle:d})),this.$search.set(v),v.start||this.$search.set({start:E});var f=this.$search.find(this.session);if(v.preventScroll)return f;if(f)return this.revealRange(f,F),f;v.backwards?E.start=E.end:E.end=E.start,this.selection.setRange(E)},this.findNext=function(d,v){this.find({skipCurrent:!0,backwards:!1},d,v)},this.findPrevious=function(d,v){this.find(d,{skipCurrent:!0,backwards:!0},v)},this.revealRange=function(d,v){this.$blockScrolling+=1,this.session.unfold(d),this.selection.setSelectionRange(d),this.$blockScrolling-=1;var F=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(d.start,d.end,.5),v!==!1&&this.renderer.animateScrolling(F)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(d){if(d){var v,F=this,E=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var f=this.$scrollAnchor;f.style.cssText="position:absolute",this.container.insertBefore(f,this.container.firstChild);var A=this.on("changeSelection",function(){E=!0}),x=this.renderer.on("beforeRender",function(){E&&(v=F.renderer.container.getBoundingClientRect())}),S=this.renderer.on("afterRender",function(){if(E&&v&&(F.isFocused()||F.searchBox&&F.searchBox.isFocused())){var $=F.renderer,B=$.$cursorLayer.$pixelPos,D=$.layerConfig,O=B.top-D.offset;B.top>=0&&O+v.top<0?E=!0:B.topwindow.innerHeight?E=!1:E=null,E!=null&&(f.style.top=O+"px",f.style.left=B.left+"px",f.style.height=D.lineHeight+"px",f.scrollIntoView(E)),E=v=null}});this.setAutoScrollEditorIntoView=function($){$||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",A),this.renderer.off("afterRender",S),this.renderer.off("beforeRender",x))}}},this.$resetCursorStyle=function(){var d=this.$cursorStyle||"ace",v=this.renderer.$cursorLayer;v&&(v.setSmoothBlinking(/smooth/.test(d)),v.isBlinking=!this.$readOnly&&d!="wide",u.setCssClass(v.element,"ace_slim-cursors",/slim/.test(d)))}}.call(w.prototype),y.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(d){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:d})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(d){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(d){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(d){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(d){this.setAutoScrollEditorIntoView(d)}},keyboardHandler:{set:function(d){this.setKeyboardHandler(d)},get:function(){return this.keybindingId},handlesSet:!0},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),b.Editor=w});ace.define("ace/undomanager",["require","exports","module"],function(p,b,h){"use strict";var c=function(){this.reset()};(function(){this.execute=function(n){var t=n.args[0];this.$doc=n.args[1],n.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(n){var t=this.$undoStack.pop(),e=null;return t&&(e=this.$doc.undoChanges(t,n),this.$redoStack.push(t),this.dirtyCounter--),e},this.redo=function(n){var t=this.$redoStack.pop(),e=null;return t&&(e=this.$doc.redoChanges(this.$deserializeDeltas(t),n),this.$undoStack.push(t),this.dirtyCounter++),e},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return this.$undoStack.length>0},this.hasRedo=function(){return this.$redoStack.length>0},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return this.dirtyCounter===0},this.$serializeDeltas=function(n){return a(n,u)},this.$deserializeDeltas=function(n){return a(n,l)};function u(n){return{action:n.action,start:n.start,end:n.end,lines:n.lines.length==1?null:n.lines,text:n.lines.length==1?n.lines[0]:null}}function l(n){return{action:n.action,start:n.start,end:n.end,lines:n.lines||[n.text]}}function a(n,t){for(var e=new Array(n.length),r=0;rs&&(F=o.end.row+1,o=e.getNextFoldLine(F,o),s=o?o.start.row:1/0),F>i){for(;this.$cells.length>v+1;)d=this.$cells.pop(),this.element.removeChild(d.element);break}d=this.$cells[++v],d||(d={element:null,textNode:null,foldWidget:null},d.element=c.createElement("div"),d.textNode=document.createTextNode(""),d.element.appendChild(d.textNode),this.element.appendChild(d.element),this.$cells[v]=d);var E="ace_gutter-cell ";C[F]&&(E+=C[F]),_[F]&&(E+=_[F]),this.$annotations[F]&&(E+=this.$annotations[F].className),d.element.className!=E&&(d.element.className=E);var f=e.getRowLength(F)*t.lineHeight+"px";if(f!=d.element.style.height&&(d.element.style.height=f),g){var A=g[F];A==null&&(A=g[F]=e.getFoldWidget(F))}if(A){d.foldWidget||(d.foldWidget=c.createElement("span"),d.element.appendChild(d.foldWidget));var E="ace_fold-widget ace_"+A;A=="start"&&F==s&&Fr.right-e.right)return"foldWidgets"}}).call(n.prototype),b.Gutter=n});ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(p,b,h){"use strict";var c=p("../range").Range,u=p("../lib/dom"),l=function(a){this.element=u.createElement("div"),this.element.className="ace_layer ace_marker-layer",a.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(n){this.$padding=n},this.setSession=function(n){this.session=n},this.setMarkers=function(n){this.markers=n},this.update=function(n){if(n){this.config=n;var t=[];for(var e in this.markers){var r=this.markers[e];if(!r.range){r.update(t,this,this.session,n);continue}var i=r.range.clipRows(n.firstRow,n.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,n),s=this.$padding+(this.session.$bidiHandler.isBidiRow(i.start.row)?this.session.$bidiHandler.getPosLeft(i.start.column):i.start.column*n.characterWidth);r.renderer(t,i,s,o,n)}else r.type=="fullLine"?this.drawFullLineMarker(t,i,r.clazz,n):r.type=="screenLine"?this.drawScreenLineMarker(t,i,r.clazz,n):i.isMultiLine()?r.type=="text"?this.drawTextMarker(t,i,r.clazz,n):this.drawMultiLineMarker(t,i,r.clazz,n):this.session.$bidiHandler.isBidiRow(i.start.row)?this.drawBidiSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",n):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",n)}this.element.innerHTML=t.join("")}},this.$getTop=function(n,t){return(n-t.firstRowScreen)*t.lineHeight};function a(n,t,e,r){return(n?1:0)|(t?2:0)|(e?4:0)|(r?8:0)}this.drawTextMarker=function(n,t,e,r,i){for(var o=this.session,s=t.start.row,g=t.end.row,C=s,_=0,y=0,m=o.getScreenLastRowColumn(C),w=null,d=new c(C,t.start.column,C,y);C<=g;C++)d.start.row=d.end.row=C,d.start.column=C==s?t.start.column:o.getRowWrapIndent(C),d.end.column=m,_=y,y=m,m=C+1m,C==g),this.session.$bidiHandler.isBidiRow(C)?this.drawBidiSingleLineMarker(n,d,w,r,C==g?0:1,i):this.drawSingleLineMarker(n,d,w,r,C==g?0:1,i)},this.drawMultiLineMarker=function(n,t,e,r,i){var o=this.$padding,s,g,C;if(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var _=t.clone();_.end.row=_.start.row,_.end.column=this.session.getLine(_.start.row).length,this.drawBidiSingleLineMarker(n,_,e+" ace_br1 ace_start",r,null,i)}else s=r.lineHeight,g=this.$getTop(t.start.row,r),C=o+t.start.column*r.characterWidth,n.push("
");if(this.session.$bidiHandler.isBidiRow(t.end.row)){var _=t.clone();_.start.row=_.end.row,_.start.column=0,this.drawBidiSingleLineMarker(n,_,e+" ace_br12",r,null,i)}else{var y=t.end.column*r.characterWidth;s=r.lineHeight,g=this.$getTop(t.end.row,r),n.push("
")}if(s=(t.end.row-t.start.row-1)*r.lineHeight,!(s<=0)){g=this.$getTop(t.start.row+1,r);var m=(t.start.column?1:0)|(t.end.column?0:8);n.push("
")}},this.drawSingleLineMarker=function(n,t,e,r,i,o){var s=r.lineHeight,g=(t.end.column+(i||0)-t.start.column)*r.characterWidth,C=this.$getTop(t.start.row,r),_=this.$padding+t.start.column*r.characterWidth;n.push("
")},this.drawBidiSingleLineMarker=function(n,t,e,r,i,o){var s=r.lineHeight,g=this.$getTop(t.start.row,r),C=this.$padding,_=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);_.forEach(function(y){n.push("
")})},this.drawFullLineMarker=function(n,t,e,r,i){var o=this.$getTop(t.start.row,r),s=r.lineHeight;t.start.row!=t.end.row&&(s+=this.$getTop(t.end.row,r)-o),n.push("
")},this.drawScreenLineMarker=function(n,t,e,r,i){var o=this.$getTop(t.start.row,r),s=r.lineHeight;n.push("
")}}).call(l.prototype),b.Marker=l});ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("../lib/dom"),l=p("../lib/lang"),a=p("../lib/useragent"),n=p("../lib/event_emitter").EventEmitter,t=function(e){this.element=u.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){c.implement(this,n),this.EOF_CHAR="\xB6",this.EOL_CHAR_LF="\xAC",this.EOL_CHAR_CRLF="\xA4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xB7",this.$padding=0,this.$updateEolChar=function(){var e=this.session.doc.getNewLineCharacter()==` +`?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(r){this._signal("changeCharacterSize",r)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles==e?!1:(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides==e?!1:(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var r=this.$tabStrings=[0],i=1;i"+l.stringRepeat(this.TAB_CHAR,i)+""):r.push(l.stringRepeat(" ",i));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var o="ace_indent-guide",s="",g="";if(this.showInvisibles){o+=" ace_invisible",s=" ace_invisible_space",g=" ace_invisible_tab";var C=l.stringRepeat(this.SPACE_CHAR,this.tabSize),_=l.stringRepeat(this.TAB_CHAR,this.tabSize)}else var C=l.stringRepeat(" ",this.tabSize),_=C;this.$tabStrings[" "]=""+C+"",this.$tabStrings[" "]=""+_+""}},this.updateLines=function(e,r,i){(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)&&this.scrollLines(e),this.config=e;for(var o=Math.max(r,e.firstRow),s=Math.min(i,e.lastRow),g=this.element.childNodes,C=0,_=e.firstRow;_m&&(_=y.end.row+1,y=this.session.getNextFoldLine(_,y),m=y?y.start.row:1/0),!(_>s);){var w=g[C++];if(w){var d=[];this.$renderLine(d,_,!this.$useLineGroups(),_==m?y:!1),w.style.height=e.lineHeight*this.session.getRowLength(_)+"px",w.innerHTML=d.join("")}_++}},this.scrollLines=function(e){var r=this.config;if(this.config=e,!r||r.lastRow0;o--)i.removeChild(i.firstChild);if(r.lastRow>e.lastRow)for(var o=this.session.getFoldedRowCount(e.lastRow+1,r.lastRow);o>0;o--)i.removeChild(i.lastChild);if(e.firstRowr.lastRow){var s=this.$renderLinesFragment(e,r.lastRow+1,e.lastRow);i.appendChild(s)}},this.$renderLinesFragment=function(e,r,i){for(var o=this.element.ownerDocument.createDocumentFragment(),s=r,g=this.session.getNextFoldLine(s),C=g?g.start.row:1/0;s>C&&(s=g.end.row+1,g=this.session.getNextFoldLine(s,g),C=g?g.start.row:1/0),!(s>i);){var _=u.createElement("div"),y=[];if(this.$renderLine(y,s,!1,s==C?g:!1),_.innerHTML=y.join(""),this.$useLineGroups())_.className="ace_line_group",o.appendChild(_),_.style.height=e.lineHeight*this.session.getRowLength(s)+"px";else for(;_.firstChild;)o.appendChild(_.firstChild);s++}return o},this.update=function(e){this.config=e;for(var r=[],i=e.firstRow,o=e.lastRow,s=i,g=this.session.getNextFoldLine(s),C=g?g.start.row:1/0;s>C&&(s=g.end.row+1,g=this.session.getNextFoldLine(s,g),C=g?g.start.row:1/0),!(s>o);)this.$useLineGroups()&&r.push("
"),this.$renderLine(r,s,!1,s==C?g:!1),this.$useLineGroups()&&r.push("
"),s++;this.element.innerHTML=r.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,r,i,o){var s=this,g=/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF\uFFF9-\uFFFC])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C=function(w,d,v,F,E){if(d)return s.showInvisibles?""+l.stringRepeat(s.SPACE_CHAR,w.length)+"":w;if(w=="&")return"&";if(w=="<")return"<";if(w==">")return">";if(w==" "){var f=s.session.getScreenTabSize(r+F);return r+=f-1,s.$tabStrings[f]}else if(w=="\u3000"){var A=s.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",x=s.showInvisibles?s.SPACE_CHAR:"";return r+=1,""+x+""}else return v?""+s.SPACE_CHAR+"":(r+=1,""+w+"")},_=o.replace(g,C);if(this.$textToken[i.type])e.push(_);else{var y="ace_"+i.type.replace(/\./g," ace_"),m="";i.type=="fold"&&(m=" style='width:"+i.value.length*this.config.characterWidth+"px;' "),e.push("",_,"")}return r+o.length},this.renderIndentGuide=function(e,r,i){var o=r.search(this.$indentGuideRe);return o<=0||o>=i?r:r[0]==" "?(o-=o%this.tabSize,e.push(l.stringRepeat(this.$tabStrings[" "],o/this.tabSize)),r.substr(o)):r[0]==" "?(e.push(l.stringRepeat(this.$tabStrings[" "],o)),r.substr(o)):r},this.$renderWrappedLine=function(e,r,i,o){for(var s=0,g=0,C=i[0],_=0,y=0;y=C;)_=this.$renderToken(e,_,m,w.substring(0,C-s)),w=w.substring(C-s),s=C,o||e.push("","
"),e.push(l.stringRepeat("\xA0",i.indent)),g++,_=0,C=i[g]||Number.MAX_VALUE;w.length!=0&&(s+=w.length,_=this.$renderToken(e,_,m,w))}}},this.$renderSimpleLine=function(e,r){var i=0,o=r[0],s=o.value;this.displayIndentGuides&&(s=this.renderIndentGuide(e,s)),s&&(i=this.$renderToken(e,i,o,s));for(var g=1;g"),s.length){var g=this.session.getRowSplitData(r);g&&g.length?this.$renderWrappedLine(e,s,g,i):this.$renderSimpleLine(e,s)}this.showInvisibles&&(o&&(r=o.end.row),e.push("",r==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"")),i||e.push("
")},this.$getFoldLineTokens=function(e,r){var i=this.session,o=[];function s(C,_,y){for(var m=0,w=0;w+C[m].value.length<_;)if(w+=C[m].value.length,m++,m==C.length)return;if(w!=_){var d=C[m].value.substring(_-w);d.length>y-_&&(d=d.substring(0,y-_)),o.push({type:C[m].type,value:d}),w=_+d.length,m+=1}for(;wy?o.push({type:C[m].type,value:d.substring(0,y-w)}):o.push(C[m]),w+=d.length,m+=1}}var g=i.getTokens(e);return r.walk(function(C,_,y,m,w){C!=null?o.push({type:"fold",value:C}):(w&&(g=i.getTokens(_)),g.length&&s(g,m,y))},r.end.row,this.session.getLine(r.end.row).length),o},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(t.prototype),b.Text=t});ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(p,b,h){"use strict";var c=p("../lib/dom"),u,l=function(a){this.element=c.createElement("div"),this.element.className="ace_layer ace_cursor-layer",a.appendChild(this.element),u===void 0&&(u=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),c.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(u?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(a){for(var n=this.cursors,t=n.length;t--;)n[t].style.visibility=a?"":"hidden"},this.$updateOpacity=function(a){for(var n=this.cursors,t=n.length;t--;)n[t].style.opacity=a?"":"0"},this.$padding=0,this.setPadding=function(a){this.$padding=a},this.setSession=function(a){this.session=a},this.setBlinking=function(a){a!=this.isBlinking&&(this.isBlinking=a,this.restartTimer())},this.setBlinkInterval=function(a){a!=this.blinkInterval&&(this.blinkInterval=a,this.restartTimer())},this.setSmoothBlinking=function(a){a!=this.smoothBlinking&&!u&&(this.smoothBlinking=a,c.setCssClass(this.element,"ace_smooth-blinking",a),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var a=c.createElement("div");return a.className="ace_cursor",this.element.appendChild(a),this.cursors.push(a),a},this.removeCursor=function(){if(this.cursors.length>1){var a=this.cursors.pop();return a.parentNode.removeChild(a),a}},this.hideCursor=function(){this.isVisible=!1,c.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,c.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var a=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&c.removeCssClass(this.element,"ace_smooth-blinking"),a(!0),!(!this.isBlinking||!this.blinkInterval||!this.isVisible)){this.smoothBlinking&&setTimeout(function(){c.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var n=function(){this.timeoutId=setTimeout(function(){a(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){a(!0),n()},this.blinkInterval),n()}},this.getPixelPosition=function(a,n){if(!this.config||!this.session)return{left:0,top:0};a||(a=this.session.selection.getCursor());var t=this.session.documentToScreenPosition(a),e=this.$padding+(this.session.$bidiHandler.isBidiRow(t.row,a.row)?this.session.$bidiHandler.getPosLeft(t.column):t.column*this.config.characterWidth),r=(t.row-(n?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:e,top:r}},this.update=function(a){this.config=a;var n=this.session.$selectionMarkers,t=0,e=0;(n===void 0||n.length===0)&&(n=[{cursor:null}]);for(var t=0,r=n.length;ta.height+a.offset||i.top<0)&&t>1)){var o=(this.cursors[e++]||this.addCursor()).style;this.drawCursor?this.drawCursor(o,i,a,n[t],this.session):(o.left=i.left+"px",o.top=i.top+"px",o.width=a.characterWidth+"px",o.height=a.lineHeight+"px")}}for(;this.cursors.length>e;)this.removeCursor();var s=this.session.getOverwrite();this.$setOverwrite(s),this.$pixelPos=i,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(a){a!=this.overwrite&&(this.overwrite=a,a?c.addCssClass(this.element,"ace_overwrite-cursors"):c.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(l.prototype),b.Cursor=l});ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./lib/dom"),l=p("./lib/event"),a=p("./lib/event_emitter").EventEmitter,n=32768,t=function(i){this.element=u.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=u.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),i.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)};(function(){c.implement(this,a),this.setVisible=function(i){this.element.style.display=i?"":"none",this.isVisible=i,this.coeff=1}}).call(t.prototype);var e=function(i,o){t.call(this,i),this.scrollTop=0,this.scrollHeight=0,o.$scrollbarWidth=this.width=u.scrollbarWidth(i.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};c.inherits(e,t),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,this.coeff!=1){var i=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-i)/(this.coeff-i)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(i){this.element.style.height=i+"px"},this.setInnerHeight=this.setScrollHeight=function(i){this.scrollHeight=i,i>n?(this.coeff=n/i,i=n):this.coeff!=1&&(this.coeff=1),this.inner.style.height=i+"px"},this.setScrollTop=function(i){this.scrollTop!=i&&(this.skipEvent=!0,this.scrollTop=i,this.element.scrollTop=i*this.coeff)}}.call(e.prototype);var r=function(i,o){t.call(this,i),this.scrollLeft=0,this.height=o.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};c.inherits(r,t),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(i){this.element.style.width=i+"px"},this.setInnerWidth=function(i){this.inner.style.width=i+"px"},this.setScrollWidth=function(i){this.inner.style.width=i+"px"},this.setScrollLeft=function(i){this.scrollLeft!=i&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=i)}}.call(r.prototype),b.ScrollBar=e,b.ScrollBarV=e,b.ScrollBarH=r,b.VScrollBar=e,b.HScrollBar=r});ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(p,b,h){"use strict";var c=p("./lib/event"),u=function(l,a){this.onRender=l,this.pending=!1,this.changes=0,this.window=a||window};(function(){this.schedule=function(l){if(this.changes=this.changes|l,!this.pending&&this.changes){this.pending=!0;var a=this;c.nextFrame(function(){a.pending=!1;for(var n;n=a.changes;)a.changes=0,a.onRender(n)},this.window)}}}).call(u.prototype),b.RenderLoop=u});ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(p,b,h){var c=p("../lib/oop"),u=p("../lib/dom"),l=p("../lib/lang"),a=p("../lib/useragent"),n=p("../lib/event_emitter").EventEmitter,t=0,e=b.FontMetrics=function(r){this.el=u.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=u.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=u.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),r.appendChild(this.el),t||this.$testFractionalRect(),this.$measureNode.innerHTML=l.stringRepeat("X",t),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){c.implement(this,n),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var r=u.createElement("div");this.$setMeasureNodeStyles(r.style),r.style.width="0.2px",document.documentElement.appendChild(r);var i=r.getBoundingClientRect().width;i>0&&i<1?t=50:t=100,r.parentNode.removeChild(r)},this.$setMeasureNodeStyles=function(r,i){r.width=r.height="auto",r.left=r.top="0px",r.visibility="hidden",r.position="absolute",r.whiteSpace="pre",a.isIE<8?r["font-family"]="inherit":r.font="inherit",r.overflow=i?"hidden":"visible"},this.checkForSizeChanges=function(){var r=this.$measureSizes();if(r&&(this.$characterSize.width!==r.width||this.$characterSize.height!==r.height)){this.$measureNode.style.fontWeight="bold";var i=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=r,this.charSizes=Object.create(null),this.allowBoldFonts=i&&i.width===r.width&&i.height===r.height,this._emit("changeCharacterSize",{data:r})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var r=this;return this.$pollSizeChangesTimer=setInterval(function(){r.checkForSizeChanges()},500)},this.setPolling=function(r){r?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(t===50){var r=null;try{r=this.$measureNode.getBoundingClientRect()}catch{r={width:0,height:0}}var i={height:r.height,width:r.width/t}}else var i={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/t};return i.width===0||i.height===0?null:i},this.$measureCharWidth=function(r){this.$main.innerHTML=l.stringRepeat(r,t);var i=this.$main.getBoundingClientRect();return i.width/t},this.getCharacterWidth=function(r){var i=this.charSizes[r];return i===void 0&&(i=this.charSizes[r]=this.$measureCharWidth(r)/this.$characterSize.width),i},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(e.prototype)});ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./lib/dom"),l=p("./config"),a=p("./lib/useragent"),n=p("./layer/gutter").Gutter,t=p("./layer/marker").Marker,e=p("./layer/text").Text,r=p("./layer/cursor").Cursor,i=p("./scrollbar").HScrollBar,o=p("./scrollbar").VScrollBar,s=p("./renderloop").RenderLoop,g=p("./layer/font_metrics").FontMetrics,C=p("./lib/event_emitter").EventEmitter,_=`.ace_editor {position: relative;overflow: hidden;font: 12px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: '';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_text-input-ios {position: absolute !important;top: -100000px !important;left: -100000px !important;}`;u.importCssString(_,"ace_editor.css");var y=function(m,w){var d=this;this.container=m||u.createElement("div"),this.$keepTextAreaAtCursor=!a.isOldIE,u.addCssClass(this.container,"ace_editor"),this.setTheme(w),this.$gutter=u.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=u.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=u.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new n(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new t(this.content);var v=this.$textLayer=new e(this.content);this.canvas=v.element,this.$markerFront=new t(this.content),this.$cursorLayer=new r(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new o(this.container,this),this.scrollBarH=new i(this.container,this),this.scrollBarV.addEventListener("scroll",function(F){d.$scrollAnimation||d.session.setScrollTop(F.data-d.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(F){d.$scrollAnimation||d.session.setScrollLeft(F.data-d.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new g(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(F){d.updateCharacterSize(),d.onResize(!0,d.gutterWidth,d.$size.width,d.$size.height),d._signal("changeCharacterSize",F)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new s(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),l.resetOptions(this),l._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,c.implement(this,C),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(m){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=m,m&&this.scrollMargin.top&&m.getScrollTop()<=0&&m.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(m),this.$markerBack.setSession(m),this.$markerFront.setSession(m),this.$gutterLayer.setSession(m),this.$textLayer.setSession(m),m&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(m,w,d){if(w===void 0&&(w=1/0),this.$changedLines?(this.$changedLines.firstRow>m&&(this.$changedLines.firstRow=m),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(m){m?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(m,w,d,v){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=m?1:0;var F=this.container;v||(v=F.clientHeight||F.scrollHeight),d||(d=F.clientWidth||F.scrollWidth);var E=this.$updateCachedSize(m,w,d,v);if(!this.$size.scrollerHeight||!d&&!v)return this.resizing=0;m&&(this.$gutterLayer.$padding=null),m?this.$renderChanges(E|this.$changes,!0):this.$loop.schedule(E|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(m,w,d,v){v-=this.$extraHeight||0;var F=0,E=this.$size,f={width:E.width,height:E.height,scrollerHeight:E.scrollerHeight,scrollerWidth:E.scrollerWidth};return v&&(m||E.height!=v)&&(E.height=v,F|=this.CHANGE_SIZE,E.scrollerHeight=E.height,this.$horizScroll&&(E.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",F=F|this.CHANGE_SCROLL),d&&(m||E.width!=d)&&(F|=this.CHANGE_SIZE,E.width=d,w==null&&(w=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=w,this.scrollBarH.element.style.left=this.scroller.style.left=w+"px",E.scrollerWidth=Math.max(0,d-w-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||m)&&(F|=this.CHANGE_FULL)),E.$dirty=!d||!v,F&&this._signal("resize",f),F},this.onGutterResize=function(){var m=this.$showGutter?this.$gutter.offsetWidth:0;m!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,m,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var m=this.$size.scrollerWidth-this.$padding*2,w=Math.floor(m/this.characterWidth);return this.session.adjustWrapLimit(w,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(m){this.setOption("animatedScroll",m)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(m){this.setOption("showInvisibles",m),this.session.$bidiHandler.setShowInvisibles(m)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(m){this.setOption("displayIndentGuides",m)},this.setShowPrintMargin=function(m){this.setOption("showPrintMargin",m)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(m){this.setOption("printMarginColumn",m)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(m){return this.setOption("showGutter",m)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(m){this.setOption("fadeFoldWidgets",m)},this.setHighlightGutterLine=function(m){this.setOption("highlightGutterLine",m)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var m=this.$cursorLayer.$pixelPos,w=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var d=this.session.selection.getCursor();d.column=0,m=this.$cursorLayer.getPixelPosition(d,!0),w*=this.session.getRowLength(d.row)}this.$gutterLineHighlight.style.top=m.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=w+"px"},this.$updatePrintMargin=function(){if(!(!this.$showPrintMargin&&!this.$printMarginEl)){if(!this.$printMarginEl){var m=u.createElement("div");m.className="ace_layer ace_print-margin-layer",this.$printMarginEl=u.createElement("div"),this.$printMarginEl.className="ace_print-margin",m.appendChild(this.$printMarginEl),this.content.insertBefore(m,this.content.firstChild)}var w=this.$printMarginEl.style;w.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",w.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&this.session.$wrap==-1&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var m=this.layerConfig,w=this.$cursorLayer.$pixelPos.top,d=this.$cursorLayer.$pixelPos.left;w-=m.offset;var v=this.textarea.style,F=this.lineHeight;if(w<0||w>m.height-F){v.top=v.left="0";return}var E=this.characterWidth;if(this.$composition){var f=this.textarea.value.replace(/^\x01+/,"");E*=this.session.$getStringScreenWidth(f)[0]+2,F+=2}d-=this.scrollLeft,d>this.$size.scrollerWidth-E&&(d=this.$size.scrollerWidth-E),d+=this.gutterWidth,v.height=F+"px",v.width=E+"px",v.left=Math.min(d,this.$size.scrollerWidth-E)+"px",v.top=Math.min(w,this.$size.height-F)+"px"}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(this.layerConfig.offset===0?0:1)},this.getLastFullyVisibleRow=function(){var m=this.layerConfig,w=m.lastRow,d=this.session.documentToScreenRow(w,0)*m.lineHeight;return d-this.session.getScrollTop()>m.height-m.lineHeight?w-1:w},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(m){this.$padding=m,this.$textLayer.setPadding(m),this.$cursorLayer.setPadding(m),this.$markerFront.setPadding(m),this.$markerBack.setPadding(m),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(m,w,d,v){var F=this.scrollMargin;F.top=m|0,F.bottom=w|0,F.right=v|0,F.left=d|0,F.v=F.top+F.bottom,F.h=F.left+F.right,F.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-F.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(m){this.setOption("hScrollBarAlwaysVisible",m)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(m){this.setOption("vScrollBarAlwaysVisible",m)},this.$updateScrollBarV=function(){var m=this.layerConfig.maxHeight,w=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(m-=(w-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>m-w&&(m=this.scrollTop+w,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(m+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(m,w){if(this.$changes&&(m|=this.$changes,this.$changes=0),!this.session||!this.container.offsetWidth||this.$frozen||!m&&!w){this.$changes|=m;return}if(this.$size.$dirty)return this.$changes|=m,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender"),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var d=this.layerConfig;if(m&this.CHANGE_FULL||m&this.CHANGE_SIZE||m&this.CHANGE_TEXT||m&this.CHANGE_LINES||m&this.CHANGE_SCROLL||m&this.CHANGE_H_SCROLL){if(m|=this.$computeLayerConfig(),d.firstRow!=this.layerConfig.firstRow&&d.firstRowScreen==this.layerConfig.firstRowScreen){var v=this.scrollTop+(d.firstRow-this.layerConfig.firstRow)*this.lineHeight;v>0&&(this.scrollTop=v,m=m|this.CHANGE_SCROLL,m|=this.$computeLayerConfig())}d=this.layerConfig,this.$updateScrollBarV(),m&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-d.offset+"px",this.content.style.marginTop=-d.offset+"px",this.content.style.width=d.width+2*this.$padding+"px",this.content.style.height=d.minHeight+"px"}if(m&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),m&this.CHANGE_FULL){this.$textLayer.update(d),this.$showGutter&&this.$gutterLayer.update(d),this.$markerBack.update(d),this.$markerFront.update(d),this.$cursorLayer.update(d),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this._signal("afterRender");return}if(m&this.CHANGE_SCROLL){m&this.CHANGE_TEXT||m&this.CHANGE_LINES?this.$textLayer.update(d):this.$textLayer.scrollLines(d),this.$showGutter&&this.$gutterLayer.update(d),this.$markerBack.update(d),this.$markerFront.update(d),this.$cursorLayer.update(d),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor(),this._signal("afterRender");return}m&this.CHANGE_TEXT?(this.$textLayer.update(d),this.$showGutter&&this.$gutterLayer.update(d)):m&this.CHANGE_LINES?(this.$updateLines()||m&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(d):(m&this.CHANGE_TEXT||m&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(d),m&this.CHANGE_CURSOR&&(this.$cursorLayer.update(d),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),m&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(d),m&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(d),this._signal("afterRender")},this.$autosize=function(){var m=this.session.getScreenLength()*this.lineHeight,w=this.$maxLines*this.lineHeight,d=Math.min(w,Math.max((this.$minLines||1)*this.lineHeight,m))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(d+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&d>this.$maxPixelHeight&&(d=this.$maxPixelHeight);var v=m>w;if(d!=this.desiredHeight||this.$size.height!=this.desiredHeight||v!=this.$vScroll){v!=this.$vScroll&&(this.$vScroll=v,this.scrollBarV.setVisible(v));var F=this.container.clientWidth;this.container.style.height=d+"px",this.$updateCachedSize(!0,this.$gutterWidth,F,d),this.desiredHeight=d,this._signal("autosize")}},this.$computeLayerConfig=function(){var m=this.session,w=this.$size,d=w.height<=2*this.lineHeight,v=this.session.getScreenLength(),F=v*this.lineHeight,E=this.$getLongestLine(),f=!d&&(this.$hScrollBarAlwaysVisible||w.scrollerWidth-E-2*this.$padding<0),A=this.$horizScroll!==f;A&&(this.$horizScroll=f,this.scrollBarH.setVisible(f));var x=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var S=this.scrollTop%this.lineHeight,$=w.scrollerHeight+this.lineHeight,B=!this.$maxLines&&this.$scrollPastEnd?(w.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;F+=B;var D=this.scrollMargin;this.session.setScrollTop(Math.max(-D.top,Math.min(this.scrollTop,F-w.scrollerHeight+D.bottom))),this.session.setScrollLeft(Math.max(-D.left,Math.min(this.scrollLeft,E+2*this.$padding-w.scrollerWidth+D.right)));var O=!d&&(this.$vScrollBarAlwaysVisible||w.scrollerHeight-F+B<0||this.scrollTop>D.top),I=x!==O;I&&(this.$vScroll=O,this.scrollBarV.setVisible(O));var H=Math.ceil($/this.lineHeight)-1,N=Math.max(0,Math.round((this.scrollTop-S)/this.lineHeight)),L=N+H,U,T,M=this.lineHeight;N=m.screenToDocumentRow(N,0);var k=m.getFoldLine(N);k&&(N=k.start.row),U=m.documentToScreenRow(N,0),T=m.getRowLength(N)*M,L=Math.min(m.screenToDocumentRow(L,0),m.getLength()-1),$=w.scrollerHeight+m.getRowLength(L)*M+T,S=this.scrollTop-U*M;var z=0;return this.layerConfig.width!=E&&(z=this.CHANGE_H_SCROLL),(A||I)&&(z=this.$updateCachedSize(!0,this.gutterWidth,w.width,w.height),this._signal("scrollbarVisibilityChanged"),I&&(E=this.$getLongestLine())),this.layerConfig={width:E,padding:this.$padding,firstRow:N,firstRowScreen:U,lastRow:L,lineHeight:M,characterWidth:this.characterWidth,minHeight:$,maxHeight:F,offset:S,gutterOffset:M?Math.max(0,Math.ceil((S+w.height-w.scrollerHeight)/M)):0,height:this.$size.scrollerHeight},z},this.$updateLines=function(){if(this.$changedLines){var m=this.$changedLines.firstRow,w=this.$changedLines.lastRow;this.$changedLines=null;var d=this.layerConfig;if(!(m>d.lastRow+1)&&!(wE?(w&&x+f>E+this.lineHeight&&(E-=w*this.$size.scrollerHeight),E===0&&(E=-this.scrollMargin.top),this.session.setScrollTop(E)):x+this.$size.scrollerHeight-AF?(F=1-this.scrollMargin.top||w>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||m<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||m>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right)return!0},this.pixelToScreenCoordinates=function(m,w){var d=this.scroller.getBoundingClientRect(),v=m+this.scrollLeft-d.left-this.$padding,F=v/this.characterWidth,E=Math.floor((w+this.scrollTop-d.top)/this.lineHeight),f=Math.round(F);return{row:E,column:f,side:F-f>0?1:-1,offsetX:v}},this.screenToTextCoordinates=function(m,w){var d=this.scroller.getBoundingClientRect(),v=m+this.scrollLeft-d.left-this.$padding,F=Math.round(v/this.characterWidth),E=(w+this.scrollTop-d.top)/this.lineHeight;return this.session.screenToDocumentPosition(E,Math.max(F,0),v)},this.textToScreenCoordinates=function(m,w){var d=this.scroller.getBoundingClientRect(),v=this.session.documentToScreenPosition(m,w),F=this.$padding+(this.session.$bidiHandler.isBidiRow(v.row,m)?this.session.$bidiHandler.getPosLeft(v.column):Math.round(v.column*this.characterWidth)),E=v.row*this.lineHeight;return{pageX:d.left+F-this.scrollLeft,pageY:d.top+E-this.scrollTop}},this.visualizeFocus=function(){u.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){u.removeCssClass(this.container,"ace_focus")},this.showComposition=function(m){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,u.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(m){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(u.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(m,w){var d=this;if(this.$themeId=m,d._dispatchEvent("themeChange",{theme:m}),!m||typeof m=="string"){var v=m||this.$options.theme.initialValue;l.loadModule(["theme",v],F)}else F(m);function F(E){if(d.$themeId!=m)return w&&w();if(!E||!E.cssClass)throw new Error("couldn't load module "+m+" or it didn't call define");u.importCssString(E.cssText,E.cssClass,d.container.ownerDocument),d.theme&&u.removeCssClass(d.container,d.theme.cssClass);var f="padding"in E?E.padding:"padding"in(d.theme||{})?4:d.$padding;d.$padding&&f!=d.$padding&&d.setPadding(f),d.$theme=E.cssClass,d.theme=E,u.addCssClass(d.container,E.cssClass),u.setCssClass(d.container,"ace_dark",E.isDark),d.$size&&(d.$size.width=0,d.$updateSizeAsync()),d._dispatchEvent("themeLoaded",{theme:E}),w&&w()}},this.getTheme=function(){return this.$themeId},this.setStyle=function(m,w){u.setCssClass(this.container,m,w!==!1)},this.unsetStyle=function(m){u.removeCssClass(this.container,m)},this.setCursorStyle=function(m){this.scroller.style.cursor!=m&&(this.scroller.style.cursor=m)},this.setMouseCursor=function(m){this.scroller.style.cursor=m},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(y.prototype),l.defineOptions(y.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(m){this.$textLayer.setShowInvisibles(m)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(m){typeof m=="number"&&(this.$printMarginColumn=m),this.$showPrintMargin=!!m,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(m){this.$gutter.style.display=m?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(m){u.setCssClass(this.$gutter,"ace_fade-fold-widgets",m)},initialValue:!1},showFoldWidgets:{set:function(m){this.$gutterLayer.setShowFoldWidgets(m)},initialValue:!0},showLineNumbers:{set:function(m){this.$gutterLayer.setShowLineNumbers(m),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(m){this.$textLayer.setDisplayIndentGuides(m)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(m){if(!this.$gutterLineHighlight){this.$gutterLineHighlight=u.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",this.$gutter.appendChild(this.$gutterLineHighlight);return}this.$gutterLineHighlight.style.display=m?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(m){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(m){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(m){typeof m=="number"&&(m=m+"px"),this.container.style.fontSize=m,this.updateFontSize()},initialValue:12},fontFamily:{set:function(m){this.container.style.fontFamily=m,this.updateFontSize()}},maxLines:{set:function(m){this.updateFull()}},minLines:{set:function(m){this.updateFull()}},maxPixelHeight:{set:function(m){this.updateFull()},initialValue:0},scrollPastEnd:{set:function(m){m=+m||0,this.$scrollPastEnd!=m&&(this.$scrollPastEnd=m,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(m){this.$gutterLayer.$fixedWidth=!!m,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(m){this.setTheme(m)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),b.VirtualRenderer=y});ace.define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("../lib/net"),l=p("../lib/event_emitter").EventEmitter,a=p("../config");function n(i,o){var s=o.src;""+u.qualifyURL(i);try{return new Blob([s],{type:"application/javascript"})}catch{var g=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder,C=new g;return C.append(s),C.getBlob("application/javascript")}}function t(i,o){var s=n(i,o),g=window.URL||window.webkitURL,C=g.createObjectURL(s);return new Worker(C)}var e=function(i,o,s,g,C){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),p.nameToUrl&&!p.toUrl&&(p.toUrl=p.nameToUrl),a.get("packaged")||!p.toUrl)g=g||a.moduleUrl(o.id,"worker");else{var _=this.$normalizePath;g=g||_(p.toUrl("ace/worker/worker.js",null,"_"));var y={};i.forEach(function(m){y[m]=_(p.toUrl(m,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}this.$worker=t(g,o),C&&this.send("importScripts",C),this.$worker.postMessage({init:!0,tlns:y,module:o.id,classname:s}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){c.implement(this,l),this.onMessage=function(i){var o=i.data;switch(o.type){case"event":this._signal(o.name,{data:o.data});break;case"call":var s=this.callbacks[o.id];s&&(s(o.data),delete this.callbacks[o.id]);break;case"error":this.reportError(o.data);break;case"log":window.console&&console.log&&console.log.apply(console,o.data);break}},this.reportError=function(i){window.console&&console.error&&console.error(i)},this.$normalizePath=function(i){return u.qualifyURL(i)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(i,o){this.$worker.postMessage({command:i,args:o})},this.call=function(i,o,s){if(s){var g=this.callbackId++;this.callbacks[g]=s,o.push(g)}this.send(i,o)},this.emit=function(i,o){try{this.$worker.postMessage({event:i,data:{data:o.data}})}catch(s){console.error(s.stack)}},this.attachToDocument=function(i){this.$doc&&this.terminate(),this.$doc=i,this.call("setValue",[i.getValue()]),i.on("change",this.changeListener)},this.changeListener=function(i){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),i.action=="insert"?this.deltaQueue.push(i.start,i.lines):this.deltaQueue.push(i.start,i.end)},this.$sendDeltaQueue=function(){var i=this.deltaQueue;i&&(this.deltaQueue=null,i.length>50&&i.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:i}))}}).call(e.prototype);var r=function(i,o,s){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var g=null,C=!1,_=Object.create(l),y=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(w){y.messageBuffer.push(w),g&&(C?setTimeout(m):m())},this.setEmitSync=function(w){C=w};var m=function(){var w=y.messageBuffer.shift();w.command?g[w.command].apply(g,w.args):w.event&&_._signal(w.event,w.data)};_.postMessage=function(w){y.onMessage({data:w})},_.callback=function(w,d){this.postMessage({type:"call",id:d,data:w})},_.emit=function(w,d){this.postMessage({type:"event",name:w,data:d})},a.loadModule(["worker",o],function(w){for(g=new w[s](_);y.messageBuffer.length;)m()})};r.prototype=e.prototype,b.UIWorkerClient=r,b.WorkerClient=e,b.createWorker=t});ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(p,b,h){"use strict";var c=p("./range").Range,u=p("./lib/event_emitter").EventEmitter,l=p("./lib/oop"),a=function(n,t,e,r,i,o){var s=this;this.length=t,this.session=n,this.doc=n.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){s.onCursorChange()})},this.$pos=e;var g=n.getUndoManager().$undoStack||n.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=g.length,this.setup(),n.selection.on("changeCursor",this.$onCursorChange)};(function(){l.implement(this,u),this.setup=function(){var n=this,t=this.doc,e=this.session;this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var r=this.pos;r.$insertRight=!0,r.detach(),r.markerId=e.addMarker(new c(r.row,r.column,r.row,r.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(i){var o=t.createAnchor(i.row,i.column);o.$insertRight=!0,o.detach(),n.others.push(o)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var n=this.session,t=this;this.othersActive=!0,this.others.forEach(function(e){e.markerId=n.addMarker(new c(e.row,e.column,e.row,e.column+t.length),t.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var n=0;n=this.pos.column&&t.start.column<=this.pos.column+this.length+1,i=t.start.column-this.pos.column;if(this.updateAnchors(n),r&&(this.length+=e),r&&!this.session.$fromUndo){if(n.action==="insert")for(var o=this.others.length-1;o>=0;o--){var s=this.others[o],g={row:s.row,column:s.column+i};this.doc.insertMergedLines(g,n.lines)}else if(n.action==="remove")for(var o=this.others.length-1;o>=0;o--){var s=this.others[o],g={row:s.row,column:s.column+i};this.doc.remove(new c(g.row,g.column,g.row,g.column-e))}}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(n){this.pos.onChange(n);for(var t=this.others.length;t--;)this.others[t].onChange(n);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var n=this,t=this.session,e=function(i,o){t.removeMarker(i.markerId),i.markerId=t.addMarker(new c(i.row,i.column,i.row,i.column+n.length),o,null,!1)};e(this.pos,this.mainClass);for(var r=this.others.length;r--;)e(this.others[r],this.othersClass)}},this.onCursorChange=function(n){if(!(this.$updating||!this.session)){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",n)):(this.hideOtherMarkers(),this._emit("cursorLeave",n))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(this.$undoStackDepth!==-1){for(var n=this.session.getUndoManager(),t=(n.$undoStack||n.$undostack).length-this.$undoStackDepth,e=0;e1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),w||this.fromOrientedRange(m)}},this.toSingleRange=function(m){m=m||this.ranges[0];var w=this.rangeList.removeAll();w.length&&this.$onRemoveRange(w),m&&this.fromOrientedRange(m)},this.substractPoint=function(m){var w=this.rangeList.substractPoint(m);if(w)return this.$onRemoveRange(w),w[0]},this.mergeOverlappingRanges=function(){var m=this.rangeList.merge();m.length?this.$onRemoveRange(m):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(m){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(m),this._signal("addRange",{range:m})},this.$onRemoveRange=function(m){if(this.rangeCount=this.rangeList.ranges.length,this.rangeCount==1&&this.inMultiSelectMode){var w=this.rangeList.ranges.pop();m.push(w),this.rangeCount=0}for(var d=m.length;d--;){var v=this.ranges.indexOf(m[d]);this.ranges.splice(v,1)}this._signal("removeRange",{ranges:m}),this.rangeCount===0&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),w=w||this.ranges[0],w&&!w.isEqual(this.getRange())&&this.fromOrientedRange(w)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new c,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(this.rangeCount>1){var m=this.rangeList.ranges,w=m[m.length-1],d=u.fromPoints(m[0].start,w.end);this.toSingleRange(),this.setSelectionRange(d,w.cursor==w.start)}else{var d=this.getRange(),v=this.isBackwards(),F=d.start.row,E=d.end.row;if(F==E){if(v)var f=d.end,A=d.start;else var f=d.start,A=d.end;this.addRange(u.fromPoints(A,A)),this.addRange(u.fromPoints(f,f));return}var x=[],S=this.getLineRange(F,!0);S.start.column=d.start.column,x.push(S);for(var $=F+1;$1){var m=this.rangeList.ranges,w=m[m.length-1],d=u.fromPoints(m[0].start,w.end);this.toSingleRange(),this.setSelectionRange(d,w.cursor==w.start)}else{var v=this.session.documentToScreenPosition(this.selectionLead),F=this.session.documentToScreenPosition(this.selectionAnchor),E=this.rectangularRangeBlock(v,F);E.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(m,w,d){var v=[],F=m.column0;)H--;if(H>0)for(var N=0;v[N].isEmpty();)N++;for(var L=H;L>=N;L--)v[L].isEmpty()&&v.splice(L,1)}return v}}.call(l.prototype);var g=p("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(m){m.cursor||(m.cursor=m.end);var w=this.getSelectionStyle();return m.marker=this.session.addMarker(m,"ace_selection",w),this.session.$selectionMarkers.push(m),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,m},this.removeSelectionMarker=function(m){if(m.marker){this.session.removeMarker(m.marker);var w=this.session.$selectionMarkers.indexOf(m);w!=-1&&this.session.$selectionMarkers.splice(w,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(m){for(var w=this.session.$selectionMarkers,d=m.length;d--;){var v=m[d];if(v.marker){this.session.removeMarker(v.marker);var F=w.indexOf(v);F!=-1&&w.splice(F,1)}}this.session.selectionMarkerCount=w.length},this.$onAddRange=function(m){this.addSelectionMarker(m.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(m){this.removeSelectionMarkers(m.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(m){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(e.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(m){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(e.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(m){var w=m.command,d=m.editor;if(d.multiSelect){if(w.multiSelectAction)w.multiSelectAction=="forEach"?v=d.forEachSelection(w,m.args):w.multiSelectAction=="forEachLine"?v=d.forEachSelection(w,m.args,!0):w.multiSelectAction=="single"?(d.exitMultiSelectMode(),v=w.exec(d,m.args||{})):v=w.multiSelectAction(d,m.args||{});else{var v=w.exec(d,m.args||{});d.multiSelect.addRange(d.multiSelect.toOrientedRange()),d.multiSelect.mergeOverlappingRanges()}return v}},this.forEachSelection=function(m,w,d){if(!this.inVirtualSelectionMode){var v=d&&d.keepOrder,F=d==!0||d&&d.$byLines,E=this.session,f=this.selection,A=f.rangeList,x=(v?f:A).ranges,S;if(!x.length)return m.exec?m.exec(this,w||{}):m(this,w||{});var $=f._eventRegistry;f._eventRegistry={};var B=new l(E);this.inVirtualSelectionMode=!0;for(var D=x.length;D--;){if(F)for(;D>0&&x[D].start.row==x[D-1].end.row;)D--;B.fromOrientedRange(x[D]),B.index=D,this.selection=E.selection=B;var O=m.exec?m.exec(this,w||{}):m(this,w||{});!S&&O!==void 0&&(S=O),B.toOrientedRange(x[D])}B.detach(),this.selection=E.selection=f,this.inVirtualSelectionMode=!1,f._eventRegistry=$,f.mergeOverlappingRanges();var I=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),I&&I.from==I.to&&this.renderer.animateScrolling(I.from),S}},this.exitMultiSelectMode=function(){!this.inMultiSelectMode||this.inVirtualSelectionMode||this.multiSelect.toSingleRange()},this.getSelectedText=function(){var m="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var w=this.multiSelect.rangeList.ranges,d=[],v=0;v0);f<0&&(f=0),A>=S&&(A=S-1)}var B=this.session.removeFullLines(f,A);B=this.$reAlignText(B,x),this.session.insert({row:f,column:0},B.join(` +`)+` +`),x||(E.start.column=0,E.end.column=B[B.length-1].length),this.selection.setRange(E)}else{F.forEach(function(H){w.substractPoint(H.cursor)});var D=0,O=1/0,I=d.map(function(H){var N=H.cursor,L=m.getLine(N.row),U=L.substr(N.column).search(/\S/g);return U==-1&&(U=0),N.column>D&&(D=N.column),UT?m.insert(L,t.stringRepeat(" ",U-T)):m.remove(new u(L.row,L.column,L.row,L.column-U+T)),H.start.column=H.end.column=D,H.start.row=H.end.row=L.row,H.cursor=H.end}),w.fromOrientedRange(d[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}},this.$reAlignText=function(m,w){var d=!0,v=!0,F,E,f;return m.map(function(B){var D=B.match(/(\s*)(.*?)(\s*)([=:].*)/);return D?F==null?(F=D[1].length,E=D[2].length,f=D[3].length,D):(F+E+f!=D[1].length+D[2].length+D[3].length&&(v=!1),F!=D[1].length&&(d=!1),F>D[1].length&&(F=D[1].length),ED[3].length&&(f=D[3].length),D):[B]}).map(w?x:d?v?S:x:$);function A(B){return t.stringRepeat(" ",B)}function x(B){return B[2]?A(F)+B[2]+A(E-B[2].length+f)+B[4].replace(/^([=:])\s+/,"$1 "):B[0]}function S(B){return B[2]?A(F+E-B[2].length)+B[2]+A(f," ")+B[4].replace(/^([=:])\s+/,"$1 "):B[0]}function $(B){return B[2]?A(F)+B[2]+A(f)+B[4].replace(/^([=:])\s+/,"$1 "):B[0]}}}).call(g.prototype);function C(m,w){return m.row==w.row&&m.column==w.column}b.onSessionChange=function(m){var w=m.session;w&&!w.multiSelect&&(w.$selectionMarkers=[],w.selection.$initRangeList(),w.multiSelect=w.selection),this.multiSelect=w&&w.multiSelect;var d=m.oldSession;d&&(d.multiSelect.off("addRange",this.$onAddRange),d.multiSelect.off("removeRange",this.$onRemoveRange),d.multiSelect.off("multiSelect",this.$onMultiSelect),d.multiSelect.off("singleSelect",this.$onSingleSelect),d.multiSelect.lead.off("change",this.$checkMultiselectChange),d.multiSelect.anchor.off("change",this.$checkMultiselectChange)),w&&(w.multiSelect.on("addRange",this.$onAddRange),w.multiSelect.on("removeRange",this.$onRemoveRange),w.multiSelect.on("multiSelect",this.$onMultiSelect),w.multiSelect.on("singleSelect",this.$onSingleSelect),w.multiSelect.lead.on("change",this.$checkMultiselectChange),w.multiSelect.anchor.on("change",this.$checkMultiselectChange)),w&&this.inMultiSelectMode!=w.selection.inMultiSelectMode&&(w.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())};function _(m){m.$multiselectOnSessionChange||(m.$onAddRange=m.$onAddRange.bind(m),m.$onRemoveRange=m.$onRemoveRange.bind(m),m.$onMultiSelect=m.$onMultiSelect.bind(m),m.$onSingleSelect=m.$onSingleSelect.bind(m),m.$multiselectOnSessionChange=b.onSessionChange.bind(m),m.$checkMultiselectChange=m.$checkMultiselectChange.bind(m),m.$multiselectOnSessionChange(m),m.on("changeSession",m.$multiselectOnSessionChange),m.on("mousedown",a),m.commands.addCommands(e.defaultCommands),y(m))}function y(m){var w=m.textInput.getElement(),d=!1;n.addListener(w,"keydown",function(F){var E=F.keyCode==18&&!(F.ctrlKey||F.shiftKey||F.metaKey);m.$blockSelectEnabled&&E?d||(m.renderer.setMouseCursor("crosshair"),d=!0):d&&v()}),n.addListener(w,"keyup",v),n.addListener(w,"blur",v);function v(F){d&&(m.renderer.setMouseCursor(""),d=!1)}}b.MultiSelect=_,p("./config").defineOptions(g.prototype,"editor",{enableMultiselect:{set:function(m){_(this),m?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(m){this.$blockSelectEnabled=m},value:!0}})});ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(p,b,h){"use strict";var c=p("../../range").Range,u=b.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(l,a,n){var t=l.getLine(n);return this.foldingStartMarker.test(t)?"start":a=="markbeginend"&&this.foldingStopMarker&&this.foldingStopMarker.test(t)?"end":""},this.getFoldWidgetRange=function(l,a,n){return null},this.indentationBlock=function(l,a,n){var t=/\S/,e=l.getLine(a),r=e.search(t);if(r!=-1){for(var i=n||e.length,o=l.getLength(),s=a,g=a;++as){var _=l.getLine(g).length;return new c(s,i,g,_)}}},this.openingBracketBlock=function(l,a,n,t,e){var r={row:n,column:t+1},i=l.$findClosingBracket(a,r,e);if(i){var o=l.foldWidgets[i.row];return o==null&&(o=l.getFoldWidget(i.row)),o=="start"&&i.row>r.row&&(i.row--,i.column=l.getLine(i.row).length),c.fromPoints(r,i)}},this.closingBracketBlock=function(l,a,n,t,e){var r={row:n,column:t},i=l.$findOpeningBracket(a,r);if(i)return i.column++,r.column--,c.fromPoints(i,r)}}).call(u.prototype)});ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(p,b,h){"use strict";b.isDark=!1,b.cssClass="ace-tm",b.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var c=p("../lib/dom");c.importCssString(b.cssText,b.cssClass)});ace.define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(p,b,h){"use strict";var c=p("./lib/oop"),u=p("./lib/dom"),l=p("./range").Range;function a(n){this.session=n,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(n){var t;return this.lineWidgets?t=this.lineWidgets[n]&&this.lineWidgets[n].rowCount||0:t=0,!this.$useWrapMode||!this.$wrapData[n]?1+t:this.$wrapData[n].length+1+t},this.$getWidgetScreenLength=function(){var n=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(n+=t.rowCount)}),n},this.$onChangeEditor=function(n){this.attach(n.editor)},this.attach=function(n){n&&n.widgetManager&&n.widgetManager!=this&&n.widgetManager.detach(),this.editor!=n&&(this.detach(),this.editor=n,n&&(n.widgetManager=this,n.renderer.on("beforeRender",this.measureWidgets),n.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(n){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var e=this.session.lineWidgets;e&&e.forEach(function(r){r&&r.el&&r.el.parentNode&&(r._inDocument=!1,r.el.parentNode.removeChild(r.el))})}},this.updateOnFold=function(n,t){var e=t.lineWidgets;if(!(!e||!n.action)){for(var r=n.data,i=r.start.row,o=r.end.row,s=n.action=="add",g=i+1;g0&&!r[i];)i--;this.firstRow=e.firstRow,this.lastRow=e.lastRow,t.$cursorLayer.config=e;for(var s=i;s<=o;s++){var g=r[s];if(!(!g||!g.el)){if(g.hidden){g.el.style.top=-100-(g.pixelHeight||0)+"px";continue}g._inDocument||(g._inDocument=!0,t.container.appendChild(g.el));var C=t.$cursorLayer.getPixelPosition({row:s,column:0},!0).top;g.coverLine||(C+=e.lineHeight*this.session.getRowLineCount(g.row)),g.el.style.top=C-e.offset+"px";var _=g.coverGutter?0:t.gutterWidth;g.fixedWidth||(_-=t.scrollLeft),g.el.style.left=_+"px",g.fullWidth&&g.screenWidth&&(g.el.style.minWidth=e.width+2*e.padding+"px"),g.fixedWidth?g.el.style.right=t.scrollBar.getWidth()+"px":g.el.style.right=""}}}}}).call(a.prototype),b.LineWidgets=a});ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(p,b,h){"use strict";var c=p("../line_widgets").LineWidgets,u=p("../lib/dom"),l=p("../range").Range;function a(t,e,r){for(var i=0,o=t.length-1;i<=o;){var s=i+o>>1,g=r(e,t[s]);if(g>0)i=s+1;else if(g<0)o=s-1;else return s}return-(i+1)}function n(t,e,r){var i=t.getAnnotations().sort(l.comparePoints);if(i.length){var o=a(i,{row:e,column:-1},l.comparePoints);o<0&&(o=-o-1),o>=i.length?o=r>0?0:i.length-1:o===0&&r<0&&(o=i.length-1);var s=i[o];if(!(!s||!r)){if(s.row===e){do s=i[o+=r];while(s&&s.row===e);if(!s)return i.slice()}var g=[];e=s.row;do g[r<0?"unshift":"push"](s),s=i[o+=r];while(s&&s.row==e);return g.length&&g}}}b.showErrorMarker=function(t,e){var r=t.session;r.widgetManager||(r.widgetManager=new c(r),r.widgetManager.attach(t));var i=t.getCursorPosition(),o=i.row,s=r.widgetManager.getWidgetsAtRow(o).filter(function(F){return F.type=="errorMarker"})[0];s?s.destroy():o-=e;var g=n(r,o,e),C;if(g){var _=g[0];i.column=(_.pos&&typeof _.column!="number"?_.pos.sc:_.column)||0,i.row=_.row,C=t.renderer.$gutterLayer.$annotations[i.row]}else{if(s)return;C={text:["Looks good!"],className:"ace_ok"}}t.session.unfold(i.row),t.selection.moveToPosition(i);var y={row:i.row,fixedWidth:!0,coverGutter:!0,el:u.createElement("div"),type:"errorMarker"},m=y.el.appendChild(u.createElement("div")),w=y.el.appendChild(u.createElement("div"));w.className="error_widget_arrow "+C.className;var d=t.renderer.$cursorLayer.getPixelPosition(i).left;w.style.left=d+t.renderer.gutterWidth-5+"px",y.el.className="error_widget_wrapper",m.className="error_widget "+C.className,m.innerHTML=C.text.join("
"),m.appendChild(u.createElement("div"));var v=function(F,E,f){if(E===0&&(f==="esc"||f==="return"))return y.destroy(),{command:"null"}};y.destroy=function(){t.$mouseHandler.isMousePressed||(t.keyBinding.removeKeyboardHandler(v),r.widgetManager.removeLineWidget(y),t.off("changeSelection",y.destroy),t.off("changeSession",y.destroy),t.off("mouseup",y.destroy),t.off("change",y.destroy))},t.keyBinding.addKeyboardHandler(v),t.on("changeSelection",y.destroy),t.on("changeSession",y.destroy),t.on("mouseup",y.destroy),t.on("change",y.destroy),t.session.widgetManager.addLineWidget(y),y.el.onmousedown=t.focus.bind(t),t.renderer.scrollCursorIntoView(null,.5,{bottom:y.el.offsetHeight})},u.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")});ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(p,b,h){"use strict";p("./lib/fixoldbrowsers");var c=p("./lib/dom"),u=p("./lib/event"),l=p("./editor").Editor,a=p("./edit_session").EditSession,n=p("./undomanager").UndoManager,t=p("./virtual_renderer").VirtualRenderer;p("./worker/worker_client"),p("./keyboard/hash_handler"),p("./placeholder"),p("./multi_select"),p("./mode/folding/fold_mode"),p("./theme/textmate"),p("./ext/error_marker"),b.config=p("./config"),b.acequire=p,typeof define=="function"&&(b.define=define),b.edit=function(e){if(typeof e=="string"){var r=e;if(e=document.getElementById(r),!e)throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof l)return e.env.editor;var i="";if(e&&/input|textarea/i.test(e.tagName)){var o=e;i=o.value,e=c.createElement("pre"),o.parentNode.replaceChild(e,o)}else e&&(i=c.getInnerText(e),e.innerHTML="");var s=b.createEditSession(i),g=new l(new t(e));g.setSession(s);var C={document:s,editor:g,onResize:g.resize.bind(g,null)};return o&&(C.textarea=o),u.addListener(window,"resize",C.onResize),g.on("destroy",function(){u.removeListener(window,"resize",C.onResize),C.editor.container.env=null}),g.container.env=g.env=C,g},b.createEditSession=function(e,r){var i=new a(e,r);return i.setUndoManager(new n),i},b.EditSession=a,b.UndoManager=n,b.version="1.2.9"});(function(){ace.acequire(["ace/ace"],function(p){p&&(p.config.init(!0),p.define=ace.define),window.ace||(window.ace=p);for(var b in p)p.hasOwnProperty(b)&&(window.ace[b]=p[b])})})();mi.exports=window.ace.acequire("ace/ace")});var pi=Ft((no,At)=>{"use strict";At.exports.id="ace/mode/json_worker";At.exports.src=`"no use strict";!function(window){function resolveModuleId(id,paths){for(var testPath=id,tail="";testPath;){var alias=paths[testPath];if("string"==typeof alias)return alias+tail;if(alias)return alias.location.replace(/\\/*$/,"/")+(tail||alias.main||alias.name);if(alias===!1)return"";var i=testPath.lastIndexOf("/");if(-1===i)break;tail=testPath.substr(i)+tail,testPath=testPath.slice(0,i)}return id}if(!(void 0!==window.window&&window.document||window.acequire&&window.define)){window.console||(window.console=function(){var msgs=Array.prototype.slice.call(arguments,0);postMessage({type:"log",data:msgs})},window.console.error=window.console.warn=window.console.log=window.console.trace=window.console),window.window=window,window.ace=window,window.onerror=function(message,file,line,col,err){postMessage({type:"error",data:{message:message,data:err.data,file:file,line:line,col:col,stack:err.stack}})},window.normalizeModule=function(parentId,moduleName){if(-1!==moduleName.indexOf("!")){var chunks=moduleName.split("!");return window.normalizeModule(parentId,chunks[0])+"!"+window.normalizeModule(parentId,chunks[1])}if("."==moduleName.charAt(0)){var base=parentId.split("/").slice(0,-1).join("/");for(moduleName=(base?base+"/":"")+moduleName;-1!==moduleName.indexOf(".")&&previous!=moduleName;){var previous=moduleName;moduleName=moduleName.replace(/^\\.\\//,"").replace(/\\/\\.\\//,"/").replace(/[^\\/]+\\/\\.\\.\\//,"")}}return moduleName},window.acequire=function acequire(parentId,id){if(id||(id=parentId,parentId=null),!id.charAt)throw Error("worker.js acequire() accepts only (parentId, id) as arguments");id=window.normalizeModule(parentId,id);var module=window.acequire.modules[id];if(module)return module.initialized||(module.initialized=!0,module.exports=module.factory().exports),module.exports;if(!window.acequire.tlns)return console.log("unable to load "+id);var path=resolveModuleId(id,window.acequire.tlns);return".js"!=path.slice(-3)&&(path+=".js"),window.acequire.id=id,window.acequire.modules[id]={},importScripts(path),window.acequire(parentId,id)},window.acequire.modules={},window.acequire.tlns={},window.define=function(id,deps,factory){if(2==arguments.length?(factory=deps,"string"!=typeof id&&(deps=id,id=window.acequire.id)):1==arguments.length&&(factory=id,deps=[],id=window.acequire.id),"function"!=typeof factory)return window.acequire.modules[id]={exports:factory,initialized:!0},void 0;deps.length||(deps=["require","exports","module"]);var req=function(childId){return window.acequire(id,childId)};window.acequire.modules[id]={exports:{},factory:function(){var module=this,returnExports=factory.apply(this,deps.map(function(dep){switch(dep){case"require":return req;case"exports":return module.exports;case"module":return module;default:return req(dep)}}));return returnExports&&(module.exports=returnExports),module}}},window.define.amd={},acequire.tlns={},window.initBaseUrls=function(topLevelNamespaces){for(var i in topLevelNamespaces)acequire.tlns[i]=topLevelNamespaces[i]},window.initSender=function(){var EventEmitter=window.acequire("ace/lib/event_emitter").EventEmitter,oop=window.acequire("ace/lib/oop"),Sender=function(){};return function(){oop.implement(this,EventEmitter),this.callback=function(data,callbackId){postMessage({type:"call",id:callbackId,data:data})},this.emit=function(name,data){postMessage({type:"event",name:name,data:data})}}.call(Sender.prototype),new Sender};var main=window.main=null,sender=window.sender=null;window.onmessage=function(e){var msg=e.data;if(msg.event&&sender)sender._signal(msg.event,msg.data);else if(msg.command)if(main[msg.command])main[msg.command].apply(main,msg.args);else{if(!window[msg.command])throw Error("Unknown command:"+msg.command);window[msg.command].apply(window,msg.args)}else if(msg.init){window.initBaseUrls(msg.tlns),acequire("ace/lib/es5-shim"),sender=window.sender=window.initSender();var clazz=acequire(msg.module)[msg.classname];main=window.main=new clazz(sender)}}}}(this),ace.define("ace/lib/oop",["require","exports","module"],function(acequire,exports){"use strict";exports.inherits=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})},exports.mixin=function(obj,mixin){for(var key in mixin)obj[key]=mixin[key];return obj},exports.implement=function(proto,mixin){exports.mixin(proto,mixin)}}),ace.define("ace/range",["require","exports","module"],function(acequire,exports){"use strict";var comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},Range=function(startRow,startColumn,endRow,endColumn){this.start={row:startRow,column:startColumn},this.end={row:endRow,column:endColumn}};(function(){this.isEqual=function(range){return this.start.row===range.start.row&&this.end.row===range.end.row&&this.start.column===range.start.column&&this.end.column===range.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(row,column){return 0==this.compare(row,column)},this.compareRange=function(range){var cmp,end=range.end,start=range.start;return cmp=this.compare(end.row,end.column),1==cmp?(cmp=this.compare(start.row,start.column),1==cmp?2:0==cmp?1:0):-1==cmp?-2:(cmp=this.compare(start.row,start.column),-1==cmp?-1:1==cmp?42:0)},this.comparePoint=function(p){return this.compare(p.row,p.column)},this.containsRange=function(range){return 0==this.comparePoint(range.start)&&0==this.comparePoint(range.end)},this.intersects=function(range){var cmp=this.compareRange(range);return-1==cmp||0==cmp||1==cmp},this.isEnd=function(row,column){return this.end.row==row&&this.end.column==column},this.isStart=function(row,column){return this.start.row==row&&this.start.column==column},this.setStart=function(row,column){"object"==typeof row?(this.start.column=row.column,this.start.row=row.row):(this.start.row=row,this.start.column=column)},this.setEnd=function(row,column){"object"==typeof row?(this.end.column=row.column,this.end.row=row.row):(this.end.row=row,this.end.column=column)},this.inside=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)||this.isStart(row,column)?!1:!0:!1},this.insideStart=function(row,column){return 0==this.compare(row,column)?this.isEnd(row,column)?!1:!0:!1},this.insideEnd=function(row,column){return 0==this.compare(row,column)?this.isStart(row,column)?!1:!0:!1},this.compare=function(row,column){return this.isMultiLine()||row!==this.start.row?this.start.row>row?-1:row>this.end.row?1:this.start.row===row?column>=this.start.column?0:-1:this.end.row===row?this.end.column>=column?0:1:0:this.start.column>column?-1:column>this.end.column?1:0},this.compareStart=function(row,column){return this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.compareEnd=function(row,column){return this.end.row==row&&this.end.column==column?1:this.compare(row,column)},this.compareInside=function(row,column){return this.end.row==row&&this.end.column==column?1:this.start.row==row&&this.start.column==column?-1:this.compare(row,column)},this.clipRows=function(firstRow,lastRow){if(this.end.row>lastRow)var end={row:lastRow+1,column:0};else if(firstRow>this.end.row)var end={row:firstRow,column:0};if(this.start.row>lastRow)var start={row:lastRow+1,column:0};else if(firstRow>this.start.row)var start={row:firstRow,column:0};return Range.fromPoints(start||this.start,end||this.end)},this.extend=function(row,column){var cmp=this.compare(row,column);if(0==cmp)return this;if(-1==cmp)var start={row:row,column:column};else var end={row:row,column:column};return Range.fromPoints(start||this.start,end||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return Range.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new Range(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new Range(this.start.row,0,this.end.row,0)},this.toScreenRange=function(session){var screenPosStart=session.documentToScreenPosition(this.start),screenPosEnd=session.documentToScreenPosition(this.end);return new Range(screenPosStart.row,screenPosStart.column,screenPosEnd.row,screenPosEnd.column)},this.moveBy=function(row,column){this.start.row+=row,this.start.column+=column,this.end.row+=row,this.end.column+=column}}).call(Range.prototype),Range.fromPoints=function(start,end){return new Range(start.row,start.column,end.row,end.column)},Range.comparePoints=comparePoints,Range.comparePoints=function(p1,p2){return p1.row-p2.row||p1.column-p2.column},exports.Range=Range}),ace.define("ace/apply_delta",["require","exports","module"],function(acequire,exports){"use strict";exports.applyDelta=function(docLines,delta){var row=delta.start.row,startColumn=delta.start.column,line=docLines[row]||"";switch(delta.action){case"insert":var lines=delta.lines;if(1===lines.length)docLines[row]=line.substring(0,startColumn)+delta.lines[0]+line.substring(startColumn);else{var args=[row,1].concat(delta.lines);docLines.splice.apply(docLines,args),docLines[row]=line.substring(0,startColumn)+docLines[row],docLines[row+delta.lines.length-1]+=line.substring(startColumn)}break;case"remove":var endColumn=delta.end.column,endRow=delta.end.row;row===endRow?docLines[row]=line.substring(0,startColumn)+line.substring(endColumn):docLines.splice(row,endRow-row+1,line.substring(0,startColumn)+docLines[endRow].substring(endColumn))}}}),ace.define("ace/lib/event_emitter",["require","exports","module"],function(acequire,exports){"use strict";var EventEmitter={},stopPropagation=function(){this.propagationStopped=!0},preventDefault=function(){this.defaultPrevented=!0};EventEmitter._emit=EventEmitter._dispatchEvent=function(eventName,e){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var listeners=this._eventRegistry[eventName]||[],defaultHandler=this._defaultHandlers[eventName];if(listeners.length||defaultHandler){"object"==typeof e&&e||(e={}),e.type||(e.type=eventName),e.stopPropagation||(e.stopPropagation=stopPropagation),e.preventDefault||(e.preventDefault=preventDefault),listeners=listeners.slice();for(var i=0;listeners.length>i&&(listeners[i](e,this),!e.propagationStopped);i++);return defaultHandler&&!e.defaultPrevented?defaultHandler(e,this):void 0}},EventEmitter._signal=function(eventName,e){var listeners=(this._eventRegistry||{})[eventName];if(listeners){listeners=listeners.slice();for(var i=0;listeners.length>i;i++)listeners[i](e,this)}},EventEmitter.once=function(eventName,callback){var _self=this;callback&&this.addEventListener(eventName,function newCallback(){_self.removeEventListener(eventName,newCallback),callback.apply(null,arguments)})},EventEmitter.setDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers||(handlers=this._defaultHandlers={_disabled_:{}}),handlers[eventName]){var old=handlers[eventName],disabled=handlers._disabled_[eventName];disabled||(handlers._disabled_[eventName]=disabled=[]),disabled.push(old);var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}handlers[eventName]=callback},EventEmitter.removeDefaultHandler=function(eventName,callback){var handlers=this._defaultHandlers;if(handlers){var disabled=handlers._disabled_[eventName];if(handlers[eventName]==callback)handlers[eventName],disabled&&this.setDefaultHandler(eventName,disabled.pop());else if(disabled){var i=disabled.indexOf(callback);-1!=i&&disabled.splice(i,1)}}},EventEmitter.on=EventEmitter.addEventListener=function(eventName,callback,capturing){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];return listeners||(listeners=this._eventRegistry[eventName]=[]),-1==listeners.indexOf(callback)&&listeners[capturing?"unshift":"push"](callback),callback},EventEmitter.off=EventEmitter.removeListener=EventEmitter.removeEventListener=function(eventName,callback){this._eventRegistry=this._eventRegistry||{};var listeners=this._eventRegistry[eventName];if(listeners){var index=listeners.indexOf(callback);-1!==index&&listeners.splice(index,1)}},EventEmitter.removeAllListeners=function(eventName){this._eventRegistry&&(this._eventRegistry[eventName]=[])},exports.EventEmitter=EventEmitter}),ace.define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),EventEmitter=acequire("./lib/event_emitter").EventEmitter,Anchor=exports.Anchor=function(doc,row,column){this.$onChange=this.onChange.bind(this),this.attach(doc),column===void 0?this.setPosition(row.row,row.column):this.setPosition(row,column)};(function(){function $pointsInOrder(point1,point2,equalPointsInOrder){var bColIsAfter=equalPointsInOrder?point1.column<=point2.column:point1.columnthis.row)){var point=$getTransformedPoint(delta,{row:this.row,column:this.column},this.$insertRight);this.setPosition(point.row,point.column,!0)}},this.setPosition=function(row,column,noClip){var pos;if(pos=noClip?{row:row,column:column}:this.$clipPositionToDocument(row,column),this.row!=pos.row||this.column!=pos.column){var old={row:this.row,column:this.column};this.row=pos.row,this.column=pos.column,this._signal("change",{old:old,value:pos})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(doc){this.document=doc||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(row,column){var pos={};return row>=this.document.getLength()?(pos.row=Math.max(0,this.document.getLength()-1),pos.column=this.document.getLine(pos.row).length):0>row?(pos.row=0,pos.column=0):(pos.row=row,pos.column=Math.min(this.document.getLine(pos.row).length,Math.max(0,column))),0>column&&(pos.column=0),pos}}).call(Anchor.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(acequire,exports){"use strict";var oop=acequire("./lib/oop"),applyDelta=acequire("./apply_delta").applyDelta,EventEmitter=acequire("./lib/event_emitter").EventEmitter,Range=acequire("./range").Range,Anchor=acequire("./anchor").Anchor,Document=function(textOrLines){this.$lines=[""],0===textOrLines.length?this.$lines=[""]:Array.isArray(textOrLines)?this.insertMergedLines({row:0,column:0},textOrLines):this.insert({row:0,column:0},textOrLines)};(function(){oop.implement(this,EventEmitter),this.setValue=function(text){var len=this.getLength()-1;this.remove(new Range(0,0,len,this.getLine(len).length)),this.insert({row:0,column:0},text)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(row,column){return new Anchor(this,row,column)},this.$split=0==="aaa".split(/a/).length?function(text){return text.replace(/\\r\\n|\\r/g,"\\n").split("\\n")}:function(text){return text.split(/\\r\\n|\\r|\\n/)},this.$detectNewLine=function(text){var match=text.match(/^.*?(\\r\\n|\\r|\\n)/m);this.$autoNewLine=match?match[1]:"\\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\\r\\n";case"unix":return"\\n";default:return this.$autoNewLine||"\\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(newLineMode){this.$newLineMode!==newLineMode&&(this.$newLineMode=newLineMode,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(text){return"\\r\\n"==text||"\\r"==text||"\\n"==text},this.getLine=function(row){return this.$lines[row]||""},this.getLines=function(firstRow,lastRow){return this.$lines.slice(firstRow,lastRow+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(range){return this.getLinesForRange(range).join(this.getNewLineCharacter())},this.getLinesForRange=function(range){var lines;if(range.start.row===range.end.row)lines=[this.getLine(range.start.row).substring(range.start.column,range.end.column)];else{lines=this.getLines(range.start.row,range.end.row),lines[0]=(lines[0]||"").substring(range.start.column);var l=lines.length-1;range.end.row-range.start.row==l&&(lines[l]=lines[l].substring(0,range.end.column))}return lines},this.insertLines=function(row,lines){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(row,lines)},this.removeLines=function(firstRow,lastRow){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(firstRow,lastRow)},this.insertNewLine=function(position){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(position,["",""])},this.insert=function(position,text){return 1>=this.getLength()&&this.$detectNewLine(text),this.insertMergedLines(position,this.$split(text))},this.insertInLine=function(position,text){var start=this.clippedPos(position.row,position.column),end=this.pos(position.row,position.column+text.length);return this.applyDelta({start:start,end:end,action:"insert",lines:[text]},!0),this.clonePos(end)},this.clippedPos=function(row,column){var length=this.getLength();void 0===row?row=length:0>row?row=0:row>=length&&(row=length-1,column=void 0);var line=this.getLine(row);return void 0==column&&(column=line.length),column=Math.min(Math.max(column,0),line.length),{row:row,column:column}},this.clonePos=function(pos){return{row:pos.row,column:pos.column}},this.pos=function(row,column){return{row:row,column:column}},this.$clipPosition=function(position){var length=this.getLength();return position.row>=length?(position.row=Math.max(0,length-1),position.column=this.getLine(length-1).length):(position.row=Math.max(0,position.row),position.column=Math.min(Math.max(position.column,0),this.getLine(position.row).length)),position},this.insertFullLines=function(row,lines){row=Math.min(Math.max(row,0),this.getLength());var column=0;this.getLength()>row?(lines=lines.concat([""]),column=0):(lines=[""].concat(lines),row--,column=this.$lines[row].length),this.insertMergedLines({row:row,column:column},lines)},this.insertMergedLines=function(position,lines){var start=this.clippedPos(position.row,position.column),end={row:start.row+lines.length-1,column:(1==lines.length?start.column:0)+lines[lines.length-1].length};return this.applyDelta({start:start,end:end,action:"insert",lines:lines}),this.clonePos(end)},this.remove=function(range){var start=this.clippedPos(range.start.row,range.start.column),end=this.clippedPos(range.end.row,range.end.column);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})}),this.clonePos(start)},this.removeInLine=function(row,startColumn,endColumn){var start=this.clippedPos(row,startColumn),end=this.clippedPos(row,endColumn);return this.applyDelta({start:start,end:end,action:"remove",lines:this.getLinesForRange({start:start,end:end})},!0),this.clonePos(start)},this.removeFullLines=function(firstRow,lastRow){firstRow=Math.min(Math.max(0,firstRow),this.getLength()-1),lastRow=Math.min(Math.max(0,lastRow),this.getLength()-1);var deleteFirstNewLine=lastRow==this.getLength()-1&&firstRow>0,deleteLastNewLine=this.getLength()-1>lastRow,startRow=deleteFirstNewLine?firstRow-1:firstRow,startCol=deleteFirstNewLine?this.getLine(startRow).length:0,endRow=deleteLastNewLine?lastRow+1:lastRow,endCol=deleteLastNewLine?0:this.getLine(endRow).length,range=new Range(startRow,startCol,endRow,endCol),deletedLines=this.$lines.slice(firstRow,lastRow+1);return this.applyDelta({start:range.start,end:range.end,action:"remove",lines:this.getLinesForRange(range)}),deletedLines},this.removeNewLine=function(row){this.getLength()-1>row&&row>=0&&this.applyDelta({start:this.pos(row,this.getLine(row).length),end:this.pos(row+1,0),action:"remove",lines:["",""]})},this.replace=function(range,text){if(range instanceof Range||(range=Range.fromPoints(range.start,range.end)),0===text.length&&range.isEmpty())return range.start;if(text==this.getTextRange(range))return range.end;this.remove(range);var end;return end=text?this.insert(range.start,text):range.start},this.applyDeltas=function(deltas){for(var i=0;deltas.length>i;i++)this.applyDelta(deltas[i])},this.revertDeltas=function(deltas){for(var i=deltas.length-1;i>=0;i--)this.revertDelta(deltas[i])},this.applyDelta=function(delta,doNotValidate){var isInsert="insert"==delta.action;(isInsert?1>=delta.lines.length&&!delta.lines[0]:!Range.comparePoints(delta.start,delta.end))||(isInsert&&delta.lines.length>2e4&&this.$splitAndapplyLargeDelta(delta,2e4),applyDelta(this.$lines,delta,doNotValidate),this._signal("change",delta))},this.$splitAndapplyLargeDelta=function(delta,MAX){for(var lines=delta.lines,l=lines.length,row=delta.start.row,column=delta.start.column,from=0,to=0;;){from=to,to+=MAX-1;var chunk=lines.slice(from,to);if(to>l){delta.lines=chunk,delta.start.row=row+from,delta.start.column=column;break}chunk.push(""),this.applyDelta({start:this.pos(row+from,column),end:this.pos(row+to,column=0),action:delta.action,lines:chunk},!0)}},this.revertDelta=function(delta){this.applyDelta({start:this.clonePos(delta.start),end:this.clonePos(delta.end),action:"insert"==delta.action?"remove":"insert",lines:delta.lines.slice()})},this.indexToPosition=function(index,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,i=startRow||0,l=lines.length;l>i;i++)if(index-=lines[i].length+newlineLength,0>index)return{row:i,column:index+lines[i].length+newlineLength};return{row:l-1,column:lines[l-1].length}},this.positionToIndex=function(pos,startRow){for(var lines=this.$lines||this.getAllLines(),newlineLength=this.getNewLineCharacter().length,index=0,row=Math.min(pos.row,lines.length),i=startRow||0;row>i;++i)index+=lines[i].length+newlineLength;return index+pos.column}}).call(Document.prototype),exports.Document=Document}),ace.define("ace/lib/lang",["require","exports","module"],function(acequire,exports){"use strict";exports.last=function(a){return a[a.length-1]},exports.stringReverse=function(string){return string.split("").reverse().join("")},exports.stringRepeat=function(string,count){for(var result="";count>0;)1&count&&(result+=string),(count>>=1)&&(string+=string);return result};var trimBeginRegexp=/^\\s\\s*/,trimEndRegexp=/\\s\\s*$/;exports.stringTrimLeft=function(string){return string.replace(trimBeginRegexp,"")},exports.stringTrimRight=function(string){return string.replace(trimEndRegexp,"")},exports.copyObject=function(obj){var copy={};for(var key in obj)copy[key]=obj[key];return copy},exports.copyArray=function(array){for(var copy=[],i=0,l=array.length;l>i;i++)copy[i]=array[i]&&"object"==typeof array[i]?this.copyObject(array[i]):array[i];return copy},exports.deepCopy=function deepCopy(obj){if("object"!=typeof obj||!obj)return obj;var copy;if(Array.isArray(obj)){copy=[];for(var key=0;obj.length>key;key++)copy[key]=deepCopy(obj[key]);return copy}if("[object Object]"!==Object.prototype.toString.call(obj))return obj;copy={};for(var key in obj)copy[key]=deepCopy(obj[key]);return copy},exports.arrayToMap=function(arr){for(var map={},i=0;arr.length>i;i++)map[arr[i]]=1;return map},exports.createMap=function(props){var map=Object.create(null);for(var i in props)map[i]=props[i];return map},exports.arrayRemove=function(array,value){for(var i=0;array.length>=i;i++)value===array[i]&&array.splice(i,1)},exports.escapeRegExp=function(str){return str.replace(/([.*+?^\${}()|[\\]\\/\\\\])/g,"\\\\$1")},exports.escapeHTML=function(str){return str.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/i;i+=2){if(Array.isArray(data[i+1]))var d={action:"insert",start:data[i],lines:data[i+1]};else var d={action:"remove",start:data[i],end:data[i+1]};doc.applyDelta(d,!0)}return _self.$timeout?deferredUpdate.schedule(_self.$timeout):(_self.onUpdate(),void 0)})};(function(){this.$timeout=500,this.setTimeout=function(timeout){this.$timeout=timeout},this.setValue=function(value){this.doc.setValue(value),this.deferredUpdate.schedule(this.$timeout)},this.getValue=function(callbackId){this.sender.callback(this.doc.getValue(),callbackId)},this.onUpdate=function(){},this.isPending=function(){return this.deferredUpdate.isPending()}}).call(Mirror.prototype)}),ace.define("ace/mode/json/json_parse",["require","exports","module"],function(){"use strict";var at,ch,text,value,escapee={'"':'"',"\\\\":"\\\\","/":"/",b:"\\b",f:"\\f",n:"\\n",r:"\\r",t:" "},error=function(m){throw{name:"SyntaxError",message:m,at:at,text:text}},next=function(c){return c&&c!==ch&&error("Expected '"+c+"' instead of '"+ch+"'"),ch=text.charAt(at),at+=1,ch},number=function(){var number,string="";for("-"===ch&&(string="-",next("-"));ch>="0"&&"9">=ch;)string+=ch,next();if("."===ch)for(string+=".";next()&&ch>="0"&&"9">=ch;)string+=ch;if("e"===ch||"E"===ch)for(string+=ch,next(),("-"===ch||"+"===ch)&&(string+=ch,next());ch>="0"&&"9">=ch;)string+=ch,next();return number=+string,isNaN(number)?(error("Bad number"),void 0):number},string=function(){var hex,i,uffff,string="";if('"'===ch)for(;next();){if('"'===ch)return next(),string;if("\\\\"===ch)if(next(),"u"===ch){for(uffff=0,i=0;4>i&&(hex=parseInt(next(),16),isFinite(hex));i+=1)uffff=16*uffff+hex;string+=String.fromCharCode(uffff)}else{if("string"!=typeof escapee[ch])break;string+=escapee[ch]}else string+=ch}error("Bad string")},white=function(){for(;ch&&" ">=ch;)next()},word=function(){switch(ch){case"t":return next("t"),next("r"),next("u"),next("e"),!0;case"f":return next("f"),next("a"),next("l"),next("s"),next("e"),!1;case"n":return next("n"),next("u"),next("l"),next("l"),null}error("Unexpected '"+ch+"'")},array=function(){var array=[];if("["===ch){if(next("["),white(),"]"===ch)return next("]"),array;for(;ch;){if(array.push(value()),white(),"]"===ch)return next("]"),array;next(","),white()}}error("Bad array")},object=function(){var key,object={};if("{"===ch){if(next("{"),white(),"}"===ch)return next("}"),object;for(;ch;){if(key=string(),white(),next(":"),Object.hasOwnProperty.call(object,key)&&error('Duplicate key "'+key+'"'),object[key]=value(),white(),"}"===ch)return next("}"),object;next(","),white()}}error("Bad object")};return value=function(){switch(white(),ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&"9">=ch?number():word()}},function(source,reviver){var result;return text=source,at=0,ch=" ",result=value(),white(),ch&&error("Syntax error"),"function"==typeof reviver?function walk(holder,key){var k,v,value=holder[key];if(value&&"object"==typeof value)for(k in value)Object.hasOwnProperty.call(value,k)&&(v=walk(value,k),void 0!==v?value[k]=v:delete value[k]);return reviver.call(holder,key,value)}({"":result},""):result}}),ace.define("ace/mode/json_worker",["require","exports","module","ace/lib/oop","ace/worker/mirror","ace/mode/json/json_parse"],function(acequire,exports){"use strict";var oop=acequire("../lib/oop"),Mirror=acequire("../worker/mirror").Mirror,parse=acequire("./json/json_parse"),JsonWorker=exports.JsonWorker=function(sender){Mirror.call(this,sender),this.setTimeout(200)};oop.inherits(JsonWorker,Mirror),function(){this.onUpdate=function(){var value=this.doc.getValue(),errors=[];try{value&&parse(value)}catch(e){var pos=this.doc.indexToPosition(e.at-1);errors.push({row:pos.row,column:pos.column,text:e.message,type:"error"})}this.sender.emit("annotate",errors)}}.call(JsonWorker.prototype)}),ace.define("ace/lib/es5-shim",["require","exports","module"],function(){function Empty(){}function doesDefinePropertyWork(object){try{return Object.defineProperty(object,"sentinel",{}),"sentinel"in object}catch(exception){}}function toInteger(n){return n=+n,n!==n?n=0:0!==n&&n!==1/0&&n!==-(1/0)&&(n=(n>0||-1)*Math.floor(Math.abs(n))),n}Function.prototype.bind||(Function.prototype.bind=function(that){var target=this;if("function"!=typeof target)throw new TypeError("Function.prototype.bind called on incompatible "+target);var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var result=target.apply(this,args.concat(slice.call(arguments)));return Object(result)===result?result:this}return target.apply(that,args.concat(slice.call(arguments)))};return target.prototype&&(Empty.prototype=target.prototype,bound.prototype=new Empty,Empty.prototype=null),bound});var defineGetter,defineSetter,lookupGetter,lookupSetter,supportsAccessors,call=Function.prototype.call,prototypeOfArray=Array.prototype,prototypeOfObject=Object.prototype,slice=prototypeOfArray.slice,_toString=call.bind(prototypeOfObject.toString),owns=call.bind(prototypeOfObject.hasOwnProperty);if((supportsAccessors=owns(prototypeOfObject,"__defineGetter__"))&&(defineGetter=call.bind(prototypeOfObject.__defineGetter__),defineSetter=call.bind(prototypeOfObject.__defineSetter__),lookupGetter=call.bind(prototypeOfObject.__lookupGetter__),lookupSetter=call.bind(prototypeOfObject.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function makeArray(l){var a=Array(l+2);return a[0]=a[1]=0,a}var lengthBefore,array=[];return array.splice.apply(array,makeArray(20)),array.splice.apply(array,makeArray(26)),lengthBefore=array.length,array.splice(5,0,"XXX"),lengthBefore+1==array.length,lengthBefore+1==array.length?!0:void 0 +}()){var array_splice=Array.prototype.splice;Array.prototype.splice=function(start,deleteCount){return arguments.length?array_splice.apply(this,[void 0===start?0:start,void 0===deleteCount?this.length-start:deleteCount].concat(slice.call(arguments,2))):[]}}else Array.prototype.splice=function(pos,removeCount){var length=this.length;pos>0?pos>length&&(pos=length):void 0==pos?pos=0:0>pos&&(pos=Math.max(length+pos,0)),length>pos+removeCount||(removeCount=length-pos);var removed=this.slice(pos,pos+removeCount),insert=slice.call(arguments,2),add=insert.length;if(pos===length)add&&this.push.apply(this,insert);else{var remove=Math.min(removeCount,length-pos),tailOldPos=pos+remove,tailNewPos=tailOldPos+add-remove,tailCount=length-tailOldPos,lengthAfterRemove=length-remove;if(tailOldPos>tailNewPos)for(var i=0;tailCount>i;++i)this[tailNewPos+i]=this[tailOldPos+i];else if(tailNewPos>tailOldPos)for(i=tailCount;i--;)this[tailNewPos+i]=this[tailOldPos+i];if(add&&pos===lengthAfterRemove)this.length=lengthAfterRemove,this.push.apply(this,insert);else for(this.length=lengthAfterRemove+add,i=0;add>i;++i)this[pos+i]=insert[i]}return removed};Array.isArray||(Array.isArray=function(obj){return"[object Array]"==_toString(obj)});var boxedString=Object("a"),splitString="a"!=boxedString[0]||!(0 in boxedString);if(Array.prototype.forEach||(Array.prototype.forEach=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,thisp=arguments[1],i=-1,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError;for(;length>++i;)i in self&&fun.call(thisp,self[i],i,object)}),Array.prototype.map||(Array.prototype.map=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=Array(length),thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(result[i]=fun.call(thisp,self[i],i,object));return result}),Array.prototype.filter||(Array.prototype.filter=function(fun){var value,object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,result=[],thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)i in self&&(value=self[i],fun.call(thisp,value,i,object)&&result.push(value));return result}),Array.prototype.every||(Array.prototype.every=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&!fun.call(thisp,self[i],i,object))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0,thisp=arguments[1];if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");for(var i=0;length>i;i++)if(i in self&&fun.call(thisp,self[i],i,object))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var result,i=0;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i++];break}if(++i>=length)throw new TypeError("reduce of empty array with no initial value")}for(;length>i;i++)i in self&&(result=fun.call(void 0,result,self[i],i,object));return result}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(fun){var object=toObject(this),self=splitString&&"[object String]"==_toString(this)?this.split(""):object,length=self.length>>>0;if("[object Function]"!=_toString(fun))throw new TypeError(fun+" is not a function");if(!length&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var result,i=length-1;if(arguments.length>=2)result=arguments[1];else for(;;){if(i in self){result=self[i--];break}if(0>--i)throw new TypeError("reduceRight of empty array with no initial value")}do i in this&&(result=fun.call(void 0,result,self[i],i,object));while(i--);return result}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=0;for(arguments.length>1&&(i=toInteger(arguments[1])),i=i>=0?i:Math.max(0,length+i);length>i;i++)if(i in self&&self[i]===sought)return i;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(sought){var self=splitString&&"[object String]"==_toString(this)?this.split(""):toObject(this),length=self.length>>>0;if(!length)return-1;var i=length-1;for(arguments.length>1&&(i=Math.min(i,toInteger(arguments[1]))),i=i>=0?i:length-Math.abs(i);i>=0;i--)if(i in self&&sought===self[i])return i;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(object){return object.__proto__||(object.constructor?object.constructor.prototype:prototypeOfObject)}),!Object.getOwnPropertyDescriptor){var ERR_NON_OBJECT="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(object,property){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT+object);if(owns(object,property)){var descriptor,getter,setter;if(descriptor={enumerable:!0,configurable:!0},supportsAccessors){var prototype=object.__proto__;object.__proto__=prototypeOfObject;var getter=lookupGetter(object,property),setter=lookupSetter(object,property);if(object.__proto__=prototype,getter||setter)return getter&&(descriptor.get=getter),setter&&(descriptor.set=setter),descriptor}return descriptor.value=object[property],descriptor}}}if(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(object){return Object.keys(object)}),!Object.create){var createEmpty;createEmpty=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var empty={};for(var i in empty)empty[i]=null;return empty.constructor=empty.hasOwnProperty=empty.propertyIsEnumerable=empty.isPrototypeOf=empty.toLocaleString=empty.toString=empty.valueOf=empty.__proto__=null,empty},Object.create=function(prototype,properties){var object;if(null===prototype)object=createEmpty();else{if("object"!=typeof prototype)throw new TypeError("typeof prototype["+typeof prototype+"] != 'object'");var Type=function(){};Type.prototype=prototype,object=new Type,object.__proto__=prototype}return void 0!==properties&&Object.defineProperties(object,properties),object}}if(Object.defineProperty){var definePropertyWorksOnObject=doesDefinePropertyWork({}),definePropertyWorksOnDom="undefined"==typeof document||doesDefinePropertyWork(document.createElement("div"));if(!definePropertyWorksOnObject||!definePropertyWorksOnDom)var definePropertyFallback=Object.defineProperty}if(!Object.defineProperty||definePropertyFallback){var ERR_NON_OBJECT_DESCRIPTOR="Property description must be an object: ",ERR_NON_OBJECT_TARGET="Object.defineProperty called on non-object: ",ERR_ACCESSORS_NOT_SUPPORTED="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(object,property,descriptor){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError(ERR_NON_OBJECT_TARGET+object);if("object"!=typeof descriptor&&"function"!=typeof descriptor||null===descriptor)throw new TypeError(ERR_NON_OBJECT_DESCRIPTOR+descriptor);if(definePropertyFallback)try{return definePropertyFallback.call(Object,object,property,descriptor)}catch(exception){}if(owns(descriptor,"value"))if(supportsAccessors&&(lookupGetter(object,property)||lookupSetter(object,property))){var prototype=object.__proto__;object.__proto__=prototypeOfObject,delete object[property],object[property]=descriptor.value,object.__proto__=prototype}else object[property]=descriptor.value;else{if(!supportsAccessors)throw new TypeError(ERR_ACCESSORS_NOT_SUPPORTED);owns(descriptor,"get")&&defineGetter(object,property,descriptor.get),owns(descriptor,"set")&&defineSetter(object,property,descriptor.set)}return object}}Object.defineProperties||(Object.defineProperties=function(object,properties){for(var property in properties)owns(properties,property)&&Object.defineProperty(object,property,properties[property]);return object}),Object.seal||(Object.seal=function(object){return object}),Object.freeze||(Object.freeze=function(object){return object});try{Object.freeze(function(){})}catch(exception){Object.freeze=function(freezeObject){return function(object){return"function"==typeof object?object:freezeObject(object)}}(Object.freeze)}if(Object.preventExtensions||(Object.preventExtensions=function(object){return object}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(object){if(Object(object)===object)throw new TypeError;for(var name="";owns(object,name);)name+="?";object[name]=!0;var returnValue=owns(object,name);return delete object[name],returnValue}),!Object.keys){var hasDontEnumBug=!0,dontEnums=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],dontEnumsLength=dontEnums.length;for(var key in{toString:null})hasDontEnumBug=!1;Object.keys=function(object){if("object"!=typeof object&&"function"!=typeof object||null===object)throw new TypeError("Object.keys called on a non-object");var keys=[];for(var name in object)owns(object,name)&&keys.push(name);if(hasDontEnumBug)for(var i=0,ii=dontEnumsLength;ii>i;i++){var dontEnum=dontEnums[i];owns(object,dontEnum)&&keys.push(dontEnum)}return keys}}Date.now||(Date.now=function(){return(new Date).getTime()});var ws=" \\n\v\\f\\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\\u2028\\u2029\uFEFF";if(!String.prototype.trim||ws.trim()){ws="["+ws+"]";var trimBeginRegexp=RegExp("^"+ws+ws+"*"),trimEndRegexp=RegExp(ws+ws+"*$");String.prototype.trim=function(){return(this+"").replace(trimBeginRegexp,"").replace(trimEndRegexp,"")}}var toObject=function(o){if(null==o)throw new TypeError("can't convert "+o+" to object");return Object(o)}});`});var Hi=["wrapper"],zi=["sourceImage"];function Vi(p,b){if(p&1){let h=ce();K(0,"img",5,1),ee("load",function(){Z(h);let u=ie();return J(u.imageLoadedInView())})("mousedown",function(u){Z(h);let l=ie();return J(l.startMove(u,l.moveTypes.Drag))})("touchstart",function(u){Z(h);let l=ie();return J(l.startMove(u,l.moveTypes.Drag))})("error",function(u){Z(h);let l=ie();return J(l.loadImageError(u))}),G()}if(p&2){let h=ie();je("visibility",h.imageVisible?"visible":"hidden")("transform",h.safeTransformStyle),Ue("ngx-ic-draggable",!h.disabled&&h.allowMoveImage),q("src",h.safeImgDataUrl,et),Ne("alt",h.imageAltText)}}function Ni(p,b){if(p&1){let h=ce();ot(0),K(1,"span",9),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"topleft"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"topleft"))}),me(2,"span",10),G(),K(3,"span",11),me(4,"span",10),G(),K(5,"span",12),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"topright"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"topright"))}),me(6,"span",10),G(),K(7,"span",13),me(8,"span",10),G(),K(9,"span",14),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottomright"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottomright"))}),me(10,"span",10),G(),K(11,"span",15),me(12,"span",10),G(),K(13,"span",16),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottomleft"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottomleft"))}),me(14,"span",10),G(),K(15,"span",17),me(16,"span",10),G(),K(17,"span",18),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"top"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"top"))}),G(),K(18,"span",19),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"right"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"right"))}),G(),K(19,"span",20),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottom"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"bottom"))}),G(),K(20,"span",21),ee("mousedown",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"left"))})("touchstart",function(u){Z(h);let l=ie(2);return J(l.startMove(u,l.moveTypes.Resize,"left"))}),G(),st()}}function ji(p,b){if(p&1){let h=ce();K(0,"div",6),ee("keydown",function(u){Z(h);let l=ie();return J(l.keyboardAccess(u))}),K(1,"div",7),ee("mousedown",function(u){Z(h);let l=ie();return J(l.startMove(u,l.moveTypes.Move))})("touchstart",function(u){Z(h);let l=ie();return J(l.startMove(u,l.moveTypes.Move))}),G(),re(2,Ni,21,0,"ng-container",8),G()}if(p&2){let h=ie();je("top",h.cropper.y1,"px")("left",h.cropper.x1,"px")("width",h.cropper.x2-h.cropper.x1,"px")("height",h.cropper.y2-h.cropper.y1,"px")("margin-left",h.alignImage==="center"?h.marginLeft:null)("visibility",h.imageVisible?"visible":"hidden"),Ue("ngx-ic-round",h.roundCropper),Ne("aria-label",h.cropperFrameAriaLabel),le(2),q("ngIf",!h.hideResizeSquares)}}var Ct=class{constructor(){this.format="png",this.output="blob",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.cropperFrameAriaLabel="Crop photo",this.cropperScaledMinWidth=20,this.cropperScaledMinHeight=20,this.cropperScaledMaxWidth=20,this.cropperScaledMaxHeight=20,this.stepSize=this.initialStepSize}setOptions(b){Object.keys(b).filter(h=>h in this).forEach(h=>this[h]=b[h]),this.validateOptions()}setOptionsFromChanges(b){Object.keys(b).filter(h=>h in this).forEach(h=>this[h]=b[h].currentValue),this.validateOptions()}validateOptions(){if(this.maintainAspectRatio&&!this.aspectRatio)throw new Error("`aspectRatio` should > 0 when `maintainAspectRatio` is enabled")}},Me=function(p){return p.Drag="drag",p.Move="move",p.Resize="resize",p.Pinch="pinch",p}(Me||{});function Ui(p){switch(p){case"ArrowUp":return"top";case"ArrowRight":return"right";case"ArrowDown":return"bottom";case"ArrowLeft":default:return"left"}}function Ki(p){switch(p){case"ArrowUp":return"bottom";case"ArrowRight":return"left";case"ArrowDown":return"top";case"ArrowLeft":default:return"right"}}function Gi(p,b){switch(p){case"ArrowUp":return{clientX:0,clientY:b*-1};case"ArrowRight":return{clientX:b,clientY:0};case"ArrowDown":return{clientX:0,clientY:b};case"ArrowLeft":default:return{clientX:b*-1,clientY:0}}}function Qi(p,b,h){let c=p.width,u=p.height;b=Math.round(b),h=Math.round(h);let l=c/b,a=u/h,n=Math.ceil(l/2),t=Math.ceil(a/2),e=p.getContext("2d");if(e){let r=e.getImageData(0,0,c,u),i=e.createImageData(b,h),o=r.data,s=i.data;for(let g=0;g=1)continue;m=2*L*L*L-3*L*L+1;let U=4*(H+B*c);f+=m*o[U+3],d+=m,o[U+3]<255&&(m=m*o[U+3]/250),v+=m*o[U],F+=m*o[U+1],E+=m*o[U+2],w+=m}}s[_]=v/w,s[_+1]=F/w,s[_+2]=E/w,s[_+3]=f/d}p.width=b,p.height=h,e.putImageData(i,0,0)}}function ri(p,b){return p/100*b}var Yi=(()=>{class p{crop(h,c,u,l,a){let n=this.getImagePosition(h,c,u,a),t=n.x2-n.x1,e=n.y2-n.y1,r=document.createElement("canvas");r.width=t,r.height=e;let i=r.getContext("2d");if(!i)return null;u.backgroundColor!=null&&(i.fillStyle=u.backgroundColor,i.fillRect(0,0,t,e));let o=(u.transform.scale||1)*(u.transform.flipH?-1:1),s=(u.transform.scale||1)*(u.transform.flipV?-1:1),{translateH:g,translateV:C}=this.getCanvasTranslate(h,u,a),_=h.transformed;i.setTransform(o,0,0,s,_.size.width/2+g,_.size.height/2+C),i.translate(-n.x1/o,-n.y1/s),i.rotate((u.transform.rotate||0)*Math.PI/180),i.drawImage(_.image,-_.size.width/2,-_.size.height/2);let y={width:t,height:e,imagePosition:n,cropperPosition:we({},c)};u.containWithinAspectRatio&&(y.offsetImagePosition=this.getOffsetImagePosition(h,c,u,a));let m=this.getResizeRatio(t,e,u);return m!==1&&(y.width=Math.round(t*m),y.height=u.maintainAspectRatio?Math.round(y.width/u.aspectRatio):Math.round(e*m),Qi(r,y.width,y.height)),l==="blob"?this.cropToBlob(y,r,u):(y.base64=r.toDataURL("image/"+u.format,this.getQuality(u)),y)}cropToBlob(h,c,u){return ke(this,null,function*(){return h.blob=yield new Promise(l=>c.toBlob(l,"image/"+u.format,this.getQuality(u))),h.blob&&(h.objectUrl=URL.createObjectURL(h.blob)),h})}getCanvasTranslate(h,c,u){if(c.transform.translateUnit==="px"){let l=this.getRatio(h,u);return{translateH:(c.transform.translateH||0)*l,translateV:(c.transform.translateV||0)*l}}else return{translateH:c.transform.translateH?ri(c.transform.translateH,h.transformed.size.width):0,translateV:c.transform.translateV?ri(c.transform.translateV,h.transformed.size.height):0}}getRatio(h,c){return h.transformed.size.width/c.width}getImagePosition(h,c,u,l){let a=this.getRatio(h,l),n={x1:Math.round(c.x1*a),y1:Math.round(c.y1*a),x2:Math.round(c.x2*a),y2:Math.round(c.y2*a)};return u.containWithinAspectRatio||(n.x1=Math.max(n.x1,0),n.y1=Math.max(n.y1,0),n.x2=Math.min(n.x2,h.transformed.size.width),n.y2=Math.min(n.y2,h.transformed.size.height)),n}getOffsetImagePosition(h,c,u,l){let a=u.canvasRotation+h.exifTransform.rotate,n=this.getRatio(h,l),t,e;a%2?(t=(h.transformed.size.width-h.original.size.height)/2,e=(h.transformed.size.height-h.original.size.width)/2):(t=(h.transformed.size.width-h.original.size.width)/2,e=(h.transformed.size.height-h.original.size.height)/2);let r={x1:Math.round(c.x1*n)-t,y1:Math.round(c.y1*n)-e,x2:Math.round(c.x2*n)-t,y2:Math.round(c.y2*n)-e};return u.containWithinAspectRatio||(r.x1=Math.max(r.x1,0),r.y1=Math.max(r.y1,0),r.x2=Math.min(r.x2,h.transformed.size.width),r.y2=Math.min(r.y2,h.transformed.size.height)),r}getResizeRatio(h,c,u){let l=u.resizeToWidth/h,a=u.resizeToHeight/c,n=new Array;u.resizeToWidth>0&&n.push(l),u.resizeToHeight>0&&n.push(a);let t=n.length===0?1:Math.min(...n);return t>1&&!u.onlyScaleDown?t:Math.min(t,1)}getQuality(h){return Math.min(1,Math.max(0,h.imageQuality/100))}}return p.\u0275fac=function(h){return new(h||p)},p.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"}),p})(),Xi=(()=>{class p{resetCropperPosition(h,c,u,l){if(h?.nativeElement)if(u.cropperStaticHeight&&u.cropperStaticWidth)c.x1=0,c.x2=l.width>u.cropperStaticWidth?u.cropperStaticWidth:l.width,c.y1=0,c.y2=l.height>u.cropperStaticHeight?u.cropperStaticHeight:l.height;else{let a=Math.min(u.cropperScaledMaxWidth,l.width),n=Math.min(u.cropperScaledMaxHeight,l.height);if(!u.maintainAspectRatio)c.x1=0,c.x2=a,c.y1=0,c.y2=n;else if(l.width/u.aspectRatiol.width&&(u.x1-=u.x2-l.width,u.x2=l.width),u.y1<0?(u.y2-=u.y1,u.y1=0):u.y2>l.height&&(u.y1-=u.y2-l.height,u.y2=l.height);break}a.maintainAspectRatio&&this.checkAspectRatio(c.position,u,l,a)}checkAspectRatio(h,c,u,l){let a=0,n=0;switch(h){case"top":c.x2=c.x1+(c.y2-c.y1)*l.aspectRatio,a=Math.max(c.x2-u.width,0),n=Math.max(0-c.y1,0),(a>0||n>0)&&(c.x2-=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y1+=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"bottom":c.x2=c.x1+(c.y2-c.y1)*l.aspectRatio,a=Math.max(c.x2-u.width,0),n=Math.max(c.y2-u.height,0),(a>0||n>0)&&(c.x2-=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y2-=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"topleft":c.y1=c.y2-(c.x2-c.x1)/l.aspectRatio,a=Math.max(0-c.x1,0),n=Math.max(0-c.y1,0),(a>0||n>0)&&(c.x1+=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y1+=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"topright":c.y1=c.y2-(c.x2-c.x1)/l.aspectRatio,a=Math.max(c.x2-u.width,0),n=Math.max(0-c.y1,0),(a>0||n>0)&&(c.x2-=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y1+=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"right":case"bottomright":c.y2=c.y1+(c.x2-c.x1)/l.aspectRatio,a=Math.max(c.x2-u.width,0),n=Math.max(c.y2-u.height,0),(a>0||n>0)&&(c.x2-=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y2-=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"left":case"bottomleft":c.y2=c.y1+(c.x2-c.x1)/l.aspectRatio,a=Math.max(0-c.x1,0),n=Math.max(c.y2-u.height,0),(a>0||n>0)&&(c.x1+=n*l.aspectRatio>a?n*l.aspectRatio:a,c.y2-=n*l.aspectRatio>a?n:a/l.aspectRatio);break;case"center":c.x2=c.x1+(c.y2-c.y1)*l.aspectRatio,c.y2=c.y1+(c.x2-c.x1)/l.aspectRatio;let t=Math.max(0-c.x1,0),e=Math.max(c.x2-u.width,0),r=Math.max(c.y2-u.height,0),i=Math.max(0-c.y1,0);(t>0||e>0||r>0||i>0)&&(c.x1+=r*l.aspectRatio>t?r*l.aspectRatio:t,c.x2-=i*l.aspectRatio>e?i*l.aspectRatio:e,c.y1+=i*l.aspectRatio>e?i:e/l.aspectRatio,c.y2-=r*l.aspectRatio>t?r:t/l.aspectRatio);break}}getClientX(h){return h.touches?.[0].clientX||h.clientX||0}getClientY(h){return h.touches?.[0].clientY||h.clientY||0}}return p.\u0275fac=function(h){return new(h||p)},p.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"}),p})(),Zi="data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAEAAgMBEQACEQEDEQH/xABKAAEAAAAAAAAAAAAAAAAAAAALEAEAAAAAAAAAAAAAAAAAAAAAAQEAAAAAAAAAAAAAAAAAAAAAEQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIRAxEAPwA/8H//2Q==";function Ji(){return new Promise(p=>{let b=new Image;b.onload=()=>{let h=b.width===1&&b.height===2;p(h)},b.src=Zi})}function qi(p){switch(typeof p=="object"&&(p=en(p)),p){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}}}function en(p){let b=new DataView(p);if(b.getUint16(0,!1)!==65496)return-2;let h=b.byteLength,c=2;for(;c{class p{constructor(){this.autoRotateSupported=Ji()}loadImageFile(h,c){return ke(this,null,function*(){let u=yield h.arrayBuffer();return yield this.checkImageTypeAndLoadImageFromArrayBuffer(u,h.type,c)})}checkImageTypeAndLoadImageFromArrayBuffer(h,c,u){return this.isValidImageType(c)?this.loadImageFromArrayBuffer(h,u,c):Promise.reject(new Error("Invalid image type"))}isValidImageType(h){return/image\/(png|jpg|jpeg|bmp|gif|tiff|svg|webp|x-icon|vnd.microsoft.icon)/.test(h)}loadImageFromURL(h,c){return ke(this,null,function*(){let l=yield(yield fetch(h)).blob(),a=yield l.arrayBuffer();return yield this.loadImageFromArrayBuffer(a,c,l.type)})}loadBase64Image(h,c){let u=this.base64ToArrayBuffer(h);return this.loadImageFromArrayBuffer(u,c)}base64ToArrayBuffer(h){h=h.replace(/^data:([^;]+);base64,/gmi,"");let c=atob(h),u=c.length,l=new Uint8Array(u);for(let a=0;ake(this,null,function*(){try{let t=new Blob([h],u?{type:u}:void 0),e=URL.createObjectURL(t),r=new Image,o=u==="image/svg+xml"?yield this.getSvgImageSize(t):void 0;r.onload=()=>a({originalImage:r,originalImageSize:o,originalObjectUrl:e,originalArrayBuffer:h}),r.onerror=n,r.src=e}catch(t){n(t)}}));return yield this.transformImageFromArrayBuffer(l,c,l.originalImageSize!=null)})}getSvgImageSize(h){return ke(this,null,function*(){let l=new DOMParser().parseFromString(yield h.text(),"image/svg+xml").querySelector("svg");if(!l)throw Error("Failed to parse SVG image");let a=l.getAttribute("width"),n=l.getAttribute("height");if(a&&n)return null;let t=l.getAttribute("viewBox")||l.getAttribute("viewbox");if(t){let e=t.split(" ");return{width:+e[2],height:+e[3]}}throw Error("Failed to load SVG image. SVG must have width + height or viewBox definition.")})}transformImageFromArrayBuffer(h,c,u=!1){return ke(this,null,function*(){let l=yield this.autoRotateSupported,a=qi(l?-1:h.originalArrayBuffer);if(!h.originalImage||!h.originalImage.complete)return Promise.reject(new Error("No image loaded"));let n={original:{objectUrl:h.originalObjectUrl,image:h.originalImage,size:h.originalImageSize??{width:h.originalImage.naturalWidth,height:h.originalImage.naturalHeight}},exifTransform:a};return this.transformLoadedImage(n,c,u)})}transformLoadedImage(h,c,u=!1){return ke(this,null,function*(){let l=c.canvasRotation+h.exifTransform.rotate,a=h.original.size;if(!u&&l===0&&!h.exifTransform.flip&&!c.containWithinAspectRatio)return{original:{objectUrl:h.original.objectUrl,image:h.original.image,size:we({},a)},transformed:{objectUrl:h.original.objectUrl,image:h.original.image,size:we({},a)},exifTransform:h.exifTransform};let n=this.getTransformedSize(a,h.exifTransform,c),t=document.createElement("canvas");t.width=n.width,t.height=n.height;let e=t.getContext("2d");e?.setTransform(h.exifTransform.flip?-1:1,0,0,1,t.width/2,t.height/2),e?.rotate(Math.PI*(l/2)),e?.drawImage(h.original.image,-a.width/2,-a.height/2);let r=yield new Promise(s=>t.toBlob(s,c.format));if(!r)throw new Error("Failed to get Blob for transformed image.");let i=URL.createObjectURL(r),o=yield this.loadImageFromObjectUrl(i);return{original:{objectUrl:h.original.objectUrl,image:h.original.image,size:we({},a)},transformed:{objectUrl:i,image:o,size:{width:o.width,height:o.height}},exifTransform:h.exifTransform}})}loadImageFromObjectUrl(h){return new Promise((c,u)=>{let l=new Image;l.onload=()=>c(l),l.onerror=u,l.src=h})}getTransformedSize(h,c,u){let l=u.canvasRotation+c.rotate;if(u.containWithinAspectRatio)if(l%2){let a=h.width*u.aspectRatio,n=h.height/u.aspectRatio;return{width:Math.max(h.height,a),height:Math.max(h.width,n)}}else{let a=h.height*u.aspectRatio,n=h.width/u.aspectRatio;return{width:Math.max(h.width,a),height:Math.max(h.height,n)}}return l%2?{height:h.width,width:h.height}:{width:h.width,height:h.height}}}return p.\u0275fac=function(h){return new(h||p)},p.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"}),p})(),oi=(()=>{class p{constructor(h,c,u,l,a,n,t){this.cropService=h,this.cropperPositionService=c,this.loadImageService=u,this.sanitizer=l,this.cd=a,this.zone=n,this.hammerLoader=t,this.settings=new Ct,this.setImageMaxSizeRetries=0,this.resizedWhileHidden=!1,this.marginLeft="0px",this.maxSize={width:0,height:0},this.moveTypes=Me,this.imageVisible=!1,this.cropperFrameAriaLabel=this.settings.cropperFrameAriaLabel,this.output=this.settings.output,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 ge,this.startCropImage=new ge,this.imageLoaded=new ge,this.cropperReady=new ge,this.loadImageFailed=new ge,this.transformChange=new ge,this.reset()}ngOnChanges(h){this.onChangesUpdateSettings(h),this.onChangesInputImage(h),this.loadedImage?.original.image.complete&&(h.containWithinAspectRatio||h.canvasRotation)&&this.loadImageService.transformLoadedImage(this.loadedImage,this.settings).then(c=>this.setLoadedImage(c)).catch(c=>this.loadImageError(c)),(h.cropper||h.maintainAspectRatio||h.aspectRatio)&&(this.setMaxSize(),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize(),this.maintainAspectRatio&&(this.resetCropOnAspectRatioChange||!this.aspectRatioIsCorrect())&&(h.maintainAspectRatio||h.aspectRatio)?this.resetCropperPosition():h.cropper&&(this.checkCropperPosition(!1),this.doAutoCrop())),h.transform&&(this.transform=this.transform||{},this.setCssTransform(),this.doAutoCrop()),h.hidden&&this.resizedWhileHidden&&!this.hidden&&setTimeout(()=>{this.onResize(),this.resizedWhileHidden=!1})}onChangesUpdateSettings(h){this.settings.setOptionsFromChanges(h),this.settings.cropperStaticHeight&&this.settings.cropperStaticWidth&&(this.hideResizeSquares=!0,this.settings.setOptions({hideResizeSquares:!0,cropperMinWidth:this.settings.cropperStaticWidth,cropperMinHeight:this.settings.cropperStaticHeight,cropperMaxHeight:this.settings.cropperStaticHeight,cropperMaxWidth:this.settings.cropperStaticWidth,maintainAspectRatio:!1}))}onChangesInputImage(h){(h.imageChangedEvent||h.imageURL||h.imageBase64||h.imageFile)&&this.reset(),h.imageChangedEvent&&this.isValidImageChangedEvent()&&this.loadImageFile(this.imageChangedEvent.target.files[0]),h.imageURL&&this.imageURL&&this.loadImageFromURL(this.imageURL),h.imageBase64&&this.imageBase64&&this.loadBase64Image(this.imageBase64),h.imageFile&&this.imageFile&&this.loadImageFile(this.imageFile)}isValidImageChangedEvent(){return this.imageChangedEvent?.target?.files?.length>0}setCssTransform(){let h=this.transform?.translateUnit||"%";this.safeTransformStyle=this.sanitizer.bypassSecurityTrustStyle(`translate(${this.transform.translateH||0}${h}, ${this.transform.translateV||0}${h}) 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(h){this.loadImageService.loadImageFile(h,this.settings).then(c=>this.setLoadedImage(c)).catch(c=>this.loadImageError(c))}loadBase64Image(h){this.loadImageService.loadBase64Image(h,this.settings).then(c=>this.setLoadedImage(c)).catch(c=>this.loadImageError(c))}loadImageFromURL(h){this.loadImageService.loadImageFromURL(h,this.settings).then(c=>this.setLoadedImage(c)).catch(c=>this.loadImageError(c))}setLoadedImage(h){this.loadedImage=h,this.safeImgDataUrl=this.sanitizer.bypassSecurityTrustResourceUrl(h.transformed.objectUrl),this.cd.markForCheck()}loadImageError(h){console.error(h),this.loadImageFailed.emit()}imageLoadedInView(){this.loadedImage!=null&&(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(we({},this.maxSize)),this.cd.markForCheck()):(this.setImageMaxSizeRetries++,setTimeout(()=>this.checkImageMaxSizeRecursively(),50))}sourceImageLoaded(){return this.sourceImage?.nativeElement?.offsetWidth>0}onResize(){if(this.loadedImage)if(this.hidden)this.resizedWhileHidden=!0;else{let h=we({},this.maxSize);this.setMaxSize(),this.resizeCropperPosition(h),this.setCropperScaledMinSize(),this.setCropperScaledMaxSize()}}activatePinchGesture(){return ke(this,null,function*(){yield this.hammerLoader?.();let h=window?.Hammer||null;if(h){let c=new h(this.wrapper.nativeElement);c.get("pinch").set({enable:!0}),c.on("pinchmove",this.onPinch.bind(this)),c.on("pinchend",this.pinchStop.bind(this)),c.on("pinchstart",this.startPinch.bind(this))}else Wt()&&console.warn("[NgxImageCropper] Could not find HammerJS - Pinch Gesture won't work")})}resizeCropperPosition(h){(h.width!==this.maxSize.width||h.height!==this.maxSize.height)&&(this.cropper.x1=this.cropper.x1*this.maxSize.width/h.width,this.cropper.x2=this.cropper.x2*this.maxSize.width/h.width,this.cropper.y1=this.cropper.y1*this.maxSize.height/h.height,this.cropper.y2=this.cropper.y2*this.maxSize.height/h.height)}resetCropperPosition(){this.cropperPositionService.resetCropperPosition(this.sourceImage,this.cropper,this.settings,this.maxSize),this.doAutoCrop(),this.imageVisible=!0}keyboardAccess(h){this.changeKeyboardStepSize(h),this.keyboardMoveCropper(h)}changeKeyboardStepSize(h){let c=+h.key;c>=1&&c<=9&&(this.settings.stepSize=c)}keyboardMoveCropper(h){if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(h.key))return;let u=h.shiftKey?Me.Resize:Me.Move,l=h.altKey?Ki(h.key):Ui(h.key),a=Gi(h.key,this.settings.stepSize);h.preventDefault(),h.stopPropagation(),this.startMove({clientX:0,clientY:0},u,l),this.handleMouseMove(a),this.handleMouseUp()}startMove(h,c,u=null){this.disabled||this.moveStart?.active&&this.moveStart?.type===Me.Pinch||c===Me.Drag&&!this.allowMoveImage||(h.preventDefault&&h.preventDefault(),this.moveStart=we({active:!0,type:c,position:u,transform:we({},this.transform),clientX:this.cropperPositionService.getClientX(h),clientY:this.cropperPositionService.getClientY(h)},this.cropper),this.initMouseMove())}initMouseMove(){gt(qe(document,"mousemove"),qe(document,"touchmove")).pipe($t(gt(qe(document,"mouseup"),qe(document,"touchend")).pipe(xt()))).subscribe({next:h=>this.zone.run(()=>{this.handleMouseMove(h),this.cd.markForCheck()}),complete:()=>this.zone.run(()=>{this.handleMouseUp(),this.cd.markForCheck()})})}startPinch(h){this.safeImgDataUrl&&(h.preventDefault&&h.preventDefault(),this.moveStart=we({active:!0,type:Me.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))}handleMouseMove(h){if(this.moveStart.active){if(h.stopPropagation&&h.stopPropagation(),h.preventDefault&&h.preventDefault(),this.moveStart.type===Me.Move)this.cropperPositionService.move(h,this.moveStart,this.cropper),this.checkCropperPosition(!0);else if(this.moveStart.type===Me.Resize)!this.cropperStaticWidth&&!this.cropperStaticHeight&&this.cropperPositionService.resize(h,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1);else if(this.moveStart.type===Me.Drag){let c=this.cropperPositionService.getClientX(h)-this.moveStart.clientX,u=this.cropperPositionService.getClientY(h)-this.moveStart.clientY;this.transform=Pe(we({},this.transform),{translateH:(this.moveStart.transform?.translateH||0)+c,translateV:(this.moveStart.transform?.translateV||0)+u}),this.setCssTransform()}}}onPinch(h){this.moveStart.active&&(h.stopPropagation&&h.stopPropagation(),h.preventDefault&&h.preventDefault(),this.moveStart.type===Me.Pinch&&(this.cropperPositionService.resize(h,this.moveStart,this.cropper,this.maxSize,this.settings),this.checkCropperPosition(!1)),this.cd.markForCheck())}setMaxSize(){if(this.sourceImage){let h=getComputedStyle(this.sourceImage.nativeElement);this.maxSize.width=parseFloat(h.width),this.maxSize.height=parseFloat(h.height),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.maintainAspectRatio?this.settings.cropperScaledMinHeight=Math.max(20,this.settings.cropperScaledMinWidth/this.aspectRatio):this.cropperMinHeight>0?this.settings.cropperScaledMinHeight=Math.max(20,this.cropperMinHeight/this.loadedImage.transformed.image.height*this.maxSize.height):this.settings.cropperScaledMinHeight=20}setCropperScaledMaxSize(){if(this.loadedImage?.transformed?.image){let h=this.loadedImage.transformed.size.width/this.maxSize.width;this.settings.cropperScaledMaxWidth=this.cropperMaxWidth>20?this.cropperMaxWidth/h:this.maxSize.width,this.settings.cropperScaledMaxHeight=this.cropperMaxHeight>20?this.cropperMaxHeight/h:this.maxSize.height,this.maintainAspectRatio&&(this.settings.cropperScaledMaxWidth>this.settings.cropperScaledMaxHeight*this.aspectRatio?this.settings.cropperScaledMaxWidth=this.settings.cropperScaledMaxHeight*this.aspectRatio:this.settings.cropperScaledMaxWidththis.maxSize.width&&(this.cropper.x1-=h?this.cropper.x2-this.maxSize.width:0,this.cropper.x2=this.maxSize.width),this.cropper.y2>this.maxSize.height&&(this.cropper.y1-=h?this.cropper.y2-this.maxSize.height:0,this.cropper.y2=this.maxSize.height)}handleMouseUp(){this.moveStart.active&&(this.moveStart.active=!1,this.moveStart?.type===Me.Drag?this.transformChange.emit(this.transform):this.doAutoCrop())}pinchStop(){this.moveStart.active&&(this.moveStart.active=!1,this.doAutoCrop())}doAutoCrop(){this.autoCrop&&this.crop()}crop(h=this.settings.output){if(this.loadedImage?.transformed?.image!=null){if(this.startCropImage.emit(),h==="blob")return this.cropToBlob();if(h==="base64")return this.cropToBase64()}return null}cropToBlob(){return new Promise((h,c)=>this.zone.run(()=>ke(this,null,function*(){let u=yield this.cropService.crop(this.loadedImage,this.cropper,this.settings,"blob",this.maxSize);u?(this.imageCropped.emit(u),h(u)):c("Crop image failed")})))}cropToBase64(){let h=this.cropService.crop(this.loadedImage,this.cropper,this.settings,"base64",this.maxSize);return h?(this.imageCropped.emit(h),h):null}aspectRatioIsCorrect(){return(this.cropper.x2-this.cropper.x1)/(this.cropper.y2-this.cropper.y1)===this.aspectRatio}}return p.\u0275fac=function(h){return new(h||p)(ne(Yi),ne(Xi),ne(tn),ne(Ut),ne(lt),ne(Ve),ne(jt,8))},p.\u0275cmp=se({type:p,selectors:[["image-cropper"]],viewQuery:function(h,c){if(h&1&&(de(Hi,7),de(zi,5)),h&2){let u;he(u=ue())&&(c.wrapper=u.first),he(u=ue())&&(c.sourceImage=u.first)}},hostVars:6,hostBindings:function(h,c){h&1&&ee("resize",function(){return c.onResize()},!1,Rt),h&2&&(je("text-align",c.alignImage),Ue("disabled",c.disabled)("ngx-ix-hidden",c.hidden))},inputs:{imageChangedEvent:"imageChangedEvent",imageURL:"imageURL",imageBase64:"imageBase64",imageFile:"imageFile",imageAltText:"imageAltText",cropperFrameAriaLabel:"cropperFrameAriaLabel",output:"output",format:"format",transform:"transform",maintainAspectRatio:"maintainAspectRatio",aspectRatio:"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"},standalone:!1,features:[ze],decls:5,vars:10,consts:[["wrapper",""],["sourceImage",""],["class","ngx-ic-source-image","role","presentation",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"],["role","presentation",1,"ngx-ic-source-image",3,"load","mousedown","touchstart","error","src"],["tabindex","0",1,"ngx-ic-cropper",3,"keydown"],["role","presentation",1,"ngx-ic-move",3,"mousedown","touchstart"],[4,"ngIf"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topleft",3,"mousedown","touchstart"],[1,"ngx-ic-square"],[1,"ngx-ic-resize","ngx-ic-top"],["role","presentation",1,"ngx-ic-resize","ngx-ic-topright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-right"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomright",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-bottom"],["role","presentation",1,"ngx-ic-resize","ngx-ic-bottomleft",3,"mousedown","touchstart"],[1,"ngx-ic-resize","ngx-ic-left"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-top",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-right",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-bottom",3,"mousedown","touchstart"],["role","presentation",1,"ngx-ic-resize-bar","ngx-ic-left",3,"mousedown","touchstart"]],template:function(h,c){h&1&&(K(0,"div",null,0),re(2,Vi,2,8,"img",2),me(3,"div",3),re(4,ji,3,16,"div",4),G()),h&2&&(je("background",c.imageVisible&&c.backgroundColor),le(2),q("ngIf",c.safeImgDataUrl),le(),je("width",c.maxSize.width,"px")("height",c.maxSize.height,"px")("margin-left",c.alignImage==="center"?c.marginLeft:null),le(),q("ngIf",c.imageVisible))},dependencies:[Te],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;cursor: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}),p})(),si=(()=>{class p{}return p.\u0275fac=function(h){return new(h||p)},p.\u0275mod=_e({type:p}),p.\u0275inj=Ee({imports:[[xe]]}),p})();var li=(()=>{class p{imageCropped(h){this.croppedDataUrl=h.base64}static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275cmp=se({type:p,selectors:[["app-file-cropper"]],standalone:!1,decls:3,vars:5,consts:[["output","base64","format","png",3,"imageCropped","maintainAspectRatio","imageBase64","aspectRatio","cropperStaticWidth","cropperStaticHeight"],[1,"mt10",3,"click"]],template:function(c,u){c&1&&(K(0,"image-cropper",0),ee("imageCropped",function(a){return u.imageCropped(a)}),G(),K(1,"wbutton",1),ee("click",function(){return u.uploadImage(u.croppedDataUrl),u.close()}),be(2,"Cropper"),G()),c&2&&q("maintainAspectRatio",!0)("imageBase64",u.dataUrl)("aspectRatio",1)("cropperStaticWidth",u.width)("cropperStaticHeight",u.height)},dependencies:[oi,Xe],encapsulation:2})}}return p})();var hi=(()=>{class p{constructor(h){this._file=h,this._file.add({id:"formPhoto",resize:1920,cb:c=>{typeof c=="string"&&typeof this.setFile=="function"&&this.setFile(c)}}),this._file.add({id:"formPhotos",multiple:!0,resize:1920,cb:c=>{typeof c=="string"&&typeof this.setFile=="function"&&this.setFile(c)}})}static{this.\u0275fac=function(c){return new(c||p)(We(Jt))}}static{this.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();function on(p,b){if(p&1&&(K(0,"h3"),be(1),G()),p&2){let h=ie(2);le(),Ge(h.label)}}function sn(p,b){if(p&1){let h=ce();K(0,"label",6)(1,"img",7),ee("error",function(){Z(h);let u=ie(2);return J(u.force=u.err)}),G()()}if(p&2){let h=ie(2);le(),q("src",(h.force||h.value?h.url:"")+(h.force||h.value||"/assets/default.png"),et)("ngStyle",h.imgStyle)}}function an(p,b){p&1&&(K(0,"label",8),be(1,"Add"),G())}function ln(p,b){if(p&1){let h=ce();K(0,"div",11),me(1,"img",12),K(2,"i",13),ee("click",function(){let u=Z(h).index,l=ie(3);return J(l.files.splice(u,1))}),be(3,"X"),G()()}if(p&2){let h=b.$implicit,c=ie(3);le(),q("src",(c.force||c.value?c.url:"")+h,et)}}function cn(p,b){if(p&1&&(K(0,"div",9),re(1,ln,4,1,"div",10),G()),p&2){let h=ie(2);le(),q("ngForOf",h.files)}}function hn(p,b){if(p&1){let h=ce();K(0,"div",1),ee("click",function(){Z(h);let u=ie();return J(u.set())}),re(1,on,2,1,"h3",2)(2,sn,2,2,"label",3)(3,an,2,0,"label",4)(4,cn,2,1,"div",5),G()}if(p&2){let h=ie();q("ngClass",h.class),le(),q("ngIf",h.label),le(),q("ngIf",!h.multiple),le(),q("ngIf",h.multiple),le(),q("ngIf",h.multiple)}}var ut=(()=>{class p{get files(){return this.value}constructor(h,c,u){this._modal=h,this._http=c,this._fs=u,this.url=Kt.url,this.container="general",this.name="",this.err="",this.label="",this.class="",this.imgStyle={},this.multiple=!1,this.isPhoto=!1,this.isRound=!1,this.value=this.multiple?[]:"",this.update=new ge,this.force=""}ngOnInit(){if(!this.name&&!this.multiple&&this.value){let h=(this.value||"").split("/");this.name=h[h.length-1].split("?")[0]}}set(){this._fs.setFile=h=>{this.width&&this.height?this._modal.show({uploadImage:this.uploadImage.bind(this),component:li,width:this.width,height:this.height,dataUrl:h}):this.uploadImage(h)}}uploadImage(h){this._http.post("/api/file/photo",{container:this.container,name:this.name,dataUrl:h},c=>{this.multiple?(this.value||(this.value=[]),this.value.push(c)):(this.name=c.split("/")[5].split("?")[0],this.value=c),this.update.emit(this.value)})}static{this.\u0275fac=function(c){return new(c||p)(ne(Zt),ne(Xt),ne(hi))}}static{this.\u0275cmp=se({type:p,selectors:[["ngx-file"]],inputs:{container:"container",name:"name",err:"err",label:"label",class:"class",imgStyle:"imgStyle",multiple:"multiple",isPhoto:"isPhoto",isRound:"isRound",resize:"resize",width:"width",height:"height",value:"value"},outputs:{update:"update"},standalone:!1,decls:1,vars:1,consts:[[3,"ngClass","click",4,"ngIf"],[3,"click","ngClass"],[4,"ngIf"],["for","formPhoto",4,"ngIf"],["for","formPhotos","class","file__add",4,"ngIf"],["class","file__list",4,"ngIf"],["for","formPhoto"],["alt","Picture",1,"file__img",3,"error","src","ngStyle"],["for","formPhotos",1,"file__add"],[1,"file__list"],["class","file__item",4,"ngFor","ngForOf"],[1,"file__item"],["alt","Picture",1,"file__item-img",3,"src"],[1,"file__item-remove",3,"click"]],template:function(c,u){c&1&&re(0,hn,5,5,"div",0),c&2&&q("ngIf",u.isPhoto)},dependencies:[Ae,Ye,Te,Vt],styles:[".file__img[_ngcontent-%COMP%]{display:block;max-width:100%;height:auto;border-radius:var(--file-img-border-radius, 8px);cursor:pointer}.file__img.round[_ngcontent-%COMP%]{border-radius:50%}.file__add[_ngcontent-%COMP%]{display:inline-block;padding:10px 20px;background-color:var(--file-add-bg, #007bff);color:#fff;border-radius:4px;cursor:pointer;text-align:center;transition:background-color .3s ease}.file__add[_ngcontent-%COMP%]:hover{background-color:var(--file-add-bg-hover, #0056b3)}.file__list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.file__item[_ngcontent-%COMP%]{position:relative;display:inline-block}.file__item-img[_ngcontent-%COMP%]{display:block;width:100px;height:100px;object-fit:cover;border-radius:var(--file-item-border-radius, 4px);cursor:pointer}.file__item-remove[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;background-color:#f00c;color:#fff;border-radius:50%;width:20px;height:20px;text-align:center;line-height:20px;font-size:12px;cursor:pointer;transition:background-color .3s ease}.file__item-remove[_ngcontent-%COMP%]:hover{background-color:red}"]})}}return p})();var di=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({imports:[si,xe,Ze]})}}return p})();var un=["header"],dn=["footer"],fn=[[["","header",""]],"*",[["","footer",""]]],gn=["[header]","*","[footer]"];function mn(p,b){p&1&&(K(0,"div",6),Ke(1),G())}function pn(p,b){p&1&&Ke(0,1,["*ngIf","!sections"])}function vn(p,b){if(p&1&&(K(0,"div",7),be(1),G()),p&2){let h=b.$implicit;le(),Qe(" ",h," ")}}function Cn(p,b){p&1&&(K(0,"div",8),Ke(1,2),G())}var Ur=(()=>{class p{constructor(){this.cardClass="",this.sections=null,this.hasHeader=!1,this.hasFooter=!1}ngAfterContentInit(){this.hasHeader=!!this.headerContent,this.hasFooter=!!this.footerContent}static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275cmp=se({type:p,selectors:[["wcard"]],contentQueries:function(c,u,l){if(c&1&&(pt(l,un,5),pt(l,dn,5)),c&2){let a;he(a=ue())&&(u.headerContent=a.first),he(a=ue())&&(u.footerContent=a.first)}},inputs:{cardClass:"cardClass",sections:"sections"},standalone:!1,ngContentSelectors:gn,decls:6,vars:5,consts:[[1,"w-card",3,"ngClass"],["class","w-card__header",4,"ngIf"],[1,"w-card__body"],[4,"ngIf"],["class","w-card__body-section",4,"ngFor","ngForOf"],["class","w-card__footer",4,"ngIf"],[1,"w-card__header"],[1,"w-card__body-section"],[1,"w-card__footer"]],template:function(c,u){c&1&&(at(fn),K(0,"div",0),re(1,mn,2,0,"div",1),K(2,"div",2),re(3,pn,1,0,"ng-content",3)(4,vn,2,1,"div",4),G(),re(5,Cn,2,0,"div",5),G()),c&2&&(q("ngClass",u.cardClass),le(),q("ngIf",u.hasHeader),le(2),q("ngIf",!u.sections),le(),q("ngForOf",u.sections),le(),q("ngIf",u.hasFooter))},dependencies:[Ae,Ye,Te],styles:[".w-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:var(--c-bg-secondary);border-radius:var(--card-border-radius, 8px);box-shadow:var(--card-box-shadow, 0 2px 8px rgba(0, 0, 0, .1));overflow:hidden;margin-bottom:var(--card-margin-bottom, 20px);position:relative}.w-card__header[_ngcontent-%COMP%]{padding:var(--card-header-padding, 16px);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);flex-shrink:0}.w-card__body[_ngcontent-%COMP%]{padding:var(--card-body-padding, 16px);flex-grow:1;display:flex;flex-direction:column}.w-card__body-section[_ngcontent-%COMP%]{padding:var(--card-section-padding, 8px 0);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea)}.w-card__body-section[_ngcontent-%COMP%]:last-child{border-bottom:none}.w-card__footer[_ngcontent-%COMP%]{padding:var(--card-footer-padding, 16px);border-top:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);background-color:var(--card-footer-background, #f5f5f5);flex-shrink:0}"]})}}return p})();var fi=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({imports:[Oe,xe,tt]})}}return p})();var wn=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275cmp=se({type:p,selectors:[["icon-spider"]],standalone:!1,decls:30,vars:0,consts:[["viewBox","0 0 72 84","width","300px","height","300px","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M29.7441 38.2845C29.7441 38.2845 31.8474 35.0824 33.6034 33.46C35.2166 31.9737 35.9191 31.6079 36.0232 31.5575C36.1314 31.6079 36.8298 31.9737 38.443 33.46C40.1991 35.0824 42.3025 38.2845 42.3025 38.2845C42.3025 38.2845 47.196 35.9266 47.196 29.1802C47.196 22.4337 42.8736 18.9516 42.8736 18.9516C47.9679 27.7872 43.1013 33.2694 43.1013 33.2694C43.1013 33.2694 42.1364 33.1137 40.3998 31.0165C39.0996 29.5517 37.6333 28.246 36.031 27.126V27.1064V27.126C34.4245 28.2391 32.953 29.5384 31.6468 30.9971C29.9139 33.0942 28.9452 33.2498 28.9452 33.2498C28.9452 33.2498 24.0746 27.7679 29.1691 18.9321C29.1691 18.9321 24.8504 22.3948 24.8504 29.1607C24.8504 35.9266 29.7441 38.2845 29.7441 38.2845Z","fill","url(#paint0_linear_5_30)"],["d","M31.1333 41.3775C30.7938 44.101 32.322 45.2097 32.322 45.2097C32.3393 44.5685 32.4233 43.9308 32.5729 43.3072C32.7736 42.7159 33.8967 41.3618 35.0583 41.3618H36.988C38.1459 41.3618 39.2727 42.7003 39.4772 43.3072C39.6241 43.9312 39.707 44.5688 39.7242 45.2097C39.7242 45.2097 41.268 44.101 40.9167 41.3775C40.5965 38.8135 36.5132 35.3236 36.0464 34.9306V34.8917H36.0232H36V34.9306C35.533 35.3236 31.4499 38.8135 31.1333 41.3775Z","fill","url(#paint1_linear_5_30)"],["d","M43.2673 45.91C42.5186 47.5046 41.2429 48.7867 39.6587 49.5362C39.6587 49.5362 36.2085 44.7117 36.0386 44.5639V44.5406V44.5639C35.8688 44.7117 32.4224 49.5362 32.4224 49.5362C30.8254 48.7934 29.5365 47.5106 28.7792 45.91C27.6832 43.3578 28.7792 40.0742 28.7792 40.0742C27.8222 40.9534 25.823 45.91 28.0074 49.7775C28.644 50.9108 29.5247 51.8858 30.5848 52.6305C31.6448 53.3753 32.857 53.8708 34.1322 54.0805C34.1322 54.0805 33.395 52.9756 34.0125 51.1587C34.3557 50.1073 35.0716 49.2207 36.0232 48.6687C36.9748 49.2207 37.6907 50.1073 38.034 51.1587C38.6552 52.9756 37.9143 54.0805 37.9143 54.0805C39.1933 53.8718 40.4095 53.3761 41.473 52.6299C42.5364 51.8838 43.4201 50.9063 44.0583 49.7696C46.2235 45.879 44.2244 40.9456 43.2866 40.0663C43.2673 40.0742 44.3827 43.3578 43.2673 45.91Z","fill","url(#paint2_linear_5_30)"],["d","M18.7064 30.4135C19.2274 31.2189 25.8191 39.9729 25.8191 39.9729C25.8191 39.9729 27.1042 37.4868 25.9232 36.0005C24.7424 34.5144 21.5507 30.3474 20.9486 29.363C20.4509 28.4918 20.1627 27.515 20.1073 26.5111C20.034 25.6902 19.0767 14.6757 19.0767 14.6757C19.8965 11.6482 21.2001 8.77554 22.9362 6.17063C24.3439 4.00548 25.9018 1.94346 27.5982 0C27.5982 0 23.0403 3.23317 20.4314 7.2717C18.8838 9.64045 17.6645 12.2114 16.8074 14.913C16.8074 14.913 17.4134 24.6125 17.5407 26.5189C17.5809 27.8983 17.9831 29.2421 18.7064 30.4135Z","fill","url(#paint3_linear_5_30)"],["d","M19.0923 59.368C19.0923 59.368 19.0923 57.6639 20.1227 54.7848C21.1531 51.9056 24.7539 45.416 24.7539 45.416L25.0279 40.8056L24.3139 39.8095C24.3139 39.8095 19.096 37.7863 16.9811 36.6464C14.8663 35.5064 14.3105 35.1952 14.3105 35.1952C13.5116 33.6583 12.8328 32.0608 12.2805 30.4174C11.1922 27.3555 10.7599 25.9625 10.7599 25.9625C10.5214 22.9704 10.4609 19.9668 10.5785 16.9673C10.7599 11.781 11.0301 10.1158 11.0301 10.1158C11.0301 10.1158 9.72946 12.0067 9.15056 16.4031C8.57166 20.7996 8.44816 26.2622 8.44816 26.2622L11.7054 36.6152C11.7054 36.6152 14.407 38.4827 17.9074 40.4204C19.0234 41.0646 20.2047 41.5863 21.431 41.9767L12.4464 43.3735L3.91342 50.7658C2.51875 53.6073 1.48155 56.6135 0.825943 59.7142C-0.277831 64.9084 0.0540732 70.581 0.0540732 70.581C0.0540732 70.581 1.39713 64.9084 2.99104 59.8194C4.58495 54.7304 5.95501 52.3647 5.95501 52.3647L13.6737 46.3343L19.787 45.7468L15.0708 57.8078C15.0708 57.8078 15.0283 59.3641 15.7037 62.8657C16.3792 66.3673 19.266 75.67 19.266 75.67L26.6296 84L27.3397 83.8715L21.7822 74.6156L19.0923 59.368Z","fill","url(#paint4_linear_5_30)"],["d","M52.923 14.6757C52.923 14.6757 51.9659 25.6786 51.8888 26.5111C51.8333 27.515 51.5451 28.4918 51.0475 29.363C50.4492 30.3513 47.2537 34.5105 46.0728 36.0005C44.8918 37.4907 46.1769 39.9729 46.1769 39.9729C46.1769 39.9729 52.7725 31.2189 53.2936 30.4135C54.0144 29.2429 54.4139 27.9002 54.4514 26.5228C54.5826 24.6164 55.1886 14.9169 55.1886 14.9169C54.3296 12.216 53.1105 9.64533 51.5646 7.27559C48.9596 3.23317 44.4017 0 44.4017 0C46.1041 1.94244 47.6672 4.00452 49.0791 6.17063C50.8088 8.7772 52.1069 11.6496 52.923 14.6757Z","fill","url(#paint5_linear_5_30)"],["d","M71.1821 59.7027C70.5274 56.6015 69.4902 53.5952 68.0945 50.7541L59.5576 43.3617L50.5576 41.9689C51.7828 41.5784 52.9627 41.0566 54.0774 40.4126C57.5932 38.4673 60.2833 36.6075 60.2833 36.6075L63.5366 26.2544C63.5366 26.2544 63.4132 20.8074 62.8343 16.3992C62.2554 11.9911 60.9779 10.1158 60.9779 10.1158C60.9779 10.1158 61.248 11.7771 61.4295 16.9634C61.5448 19.9628 61.4841 22.9665 61.248 25.9586C61.248 25.9586 60.8081 27.3516 59.7313 30.4135C59.179 32.0569 58.5003 33.6544 57.7014 35.1913C57.7014 35.1913 57.1456 35.4986 55.0307 36.6425C52.9158 37.7863 47.6979 39.8056 47.6979 39.8056L46.9839 40.8017L47.2541 45.4121C47.2541 45.4121 50.8664 51.9017 51.8853 54.7808C52.9041 57.66 52.9158 59.3641 52.9158 59.3641L50.2142 74.6117L44.6528 83.8715L45.3629 84L52.7305 75.6778C52.7305 75.6778 55.6134 66.3868 56.2927 62.8735C56.972 59.3603 56.9256 57.8156 56.9256 57.8156L52.2094 45.7544L58.3189 46.3419L66.0375 52.3725C66.0375 52.3725 67.4115 54.738 69.0054 59.8272C70.5993 64.9162 71.9423 70.5888 71.9423 70.5888C71.9423 70.5888 72.2896 64.8967 71.1821 59.7027Z","fill","url(#paint6_linear_5_30)"],["id","paint0_linear_5_30","x1","36.0232","y1","18.9321","x2","36.0232","y2","38.2845","gradientUnits","userSpaceOnUse"],["stop-color","#F6C93C"],["offset","1","stop-color","#A79F1E"],["id","paint1_linear_5_30","x1","36.0264","y1","34.8917","x2","36.0264","y2","45.2097","gradientUnits","userSpaceOnUse"],["id","paint2_linear_5_30","x1","36.0264","y1","40.0663","x2","36.0264","y2","54.0805","gradientUnits","userSpaceOnUse"],["id","paint3_linear_5_30","x1","22.2029","y1","0","x2","22.2029","y2","39.9729","gradientUnits","userSpaceOnUse"],["id","paint4_linear_5_30","x1","13.6735","y1","10.1158","x2","13.6735","y2","84","gradientUnits","userSpaceOnUse"],["id","paint5_linear_5_30","x1","49.7951","y1","0","x2","49.7951","y2","39.9729","gradientUnits","userSpaceOnUse"],["id","paint6_linear_5_30","x1","58.3234","y1","10.1158","x2","58.3234","y2","84","gradientUnits","userSpaceOnUse"]],template:function(c,u){c&1&&(kt(),K(0,"svg",0),me(1,"path",1)(2,"path",2)(3,"path",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),K(8,"defs")(9,"linearGradient",8),me(10,"stop",9)(11,"stop",10),G(),K(12,"linearGradient",11),me(13,"stop",9)(14,"stop",10),G(),K(15,"linearGradient",12),me(16,"stop",9)(17,"stop",10),G(),K(18,"linearGradient",13),me(19,"stop",9)(20,"stop",10),G(),K(21,"linearGradient",14),me(22,"stop",9)(23,"stop",10),G(),K(24,"linearGradient",15),me(25,"stop",9)(26,"stop",10),G(),K(27,"linearGradient",16),me(28,"stop",9)(29,"stop",10),G()()())},encapsulation:2})}}return p})();var gi=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({})}}return p})();var Co=yt(wt());ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("./text_highlight_rules").TextHighlightRules,l=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};c.inherits(l,u),b.JsonHighlightRules=l});ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(p,b,h){"use strict";var c=p("../range").Range,u=function(){};(function(){this.checkOutdent=function(l,a){return/^\s+$/.test(l)?/^\s*\}/.test(a):!1},this.autoOutdent=function(l,a){var n=l.getLine(a),t=n.match(/^(\s*\})/);if(!t)return 0;var e=t[1].length,r=l.findMatchingBracket({row:a,column:e});if(!r||r.row==a)return 0;var i=this.$getIndent(l.getLine(r.row));l.replace(new c(a,0,a,e-1),i)},this.$getIndent=function(l){return l.match(/^\s*/)[0]}}).call(u.prototype),b.MatchingBraceOutdent=u});ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(p,b,h){"use strict";var c=p("../../lib/oop"),u=p("../../range").Range,l=p("./fold_mode").FoldMode,a=b.FoldMode=function(n){n&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+n.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+n.end)))};c.inherits(a,l),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(n,t,e){var r=n.getLine(e);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(n,t,e);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(n,t,e,r){var i=n.getLine(e);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(n,i,e);var g=i.match(this.foldingStartMarker);if(g){var o=g.index;if(g[1])return this.openingBracketBlock(n,g[1],e,o);var s=n.getCommentFoldRange(e,o+g[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(n,e):t!="all"&&(s=null)),s}if(t!=="markbegin"){var g=i.match(this.foldingStopMarker);if(g){var o=g.index+g[0].length;return g[1]?this.closingBracketBlock(n,g[1],e,o):n.getCommentFoldRange(e,o,-1)}}},this.getSectionRange=function(n,t){var e=n.getLine(t),r=e.search(/\S/),i=t,o=e.length;t=t+1;for(var s=t,g=n.getLength();++tC)break;var _=this.getFoldWidgetRange(n,"all",t);if(_){if(_.start.row<=i)break;if(_.isMultiLine())t=_.end.row;else if(r==C)break}s=t}}return new u(i,o,s,n.getLine(s).length)},this.getCommentRegionBlock=function(n,t,e){for(var r=t.search(/\s*$/),i=n.getLength(),o=e,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,g=1;++eo)return new u(o,r,_,t.length)}}.call(a.prototype)});ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(p,b,h){"use strict";var c=p("../lib/oop"),u=p("./text").Mode,l=p("./json_highlight_rules").JsonHighlightRules,a=p("./matching_brace_outdent").MatchingBraceOutdent,n=p("./behaviour/cstyle").CstyleBehaviour,t=p("./folding/cstyle").FoldMode,e=p("../worker/worker_client").WorkerClient,r=function(){this.HighlightRules=l,this.$outdent=new a,this.$behaviour=new n,this.foldingRules=new t};c.inherits(r,u),function(){this.getNextLineIndent=function(i,o,s){var g=this.$getIndent(o);if(i=="start"){var C=o.match(/^.*[\{\(\[]\s*$/);C&&(g+=s)}return g},this.checkOutdent=function(i,o,s){return this.$outdent.checkOutdent(o,s)},this.autoOutdent=function(i,o,s){this.$outdent.autoOutdent(o,s)},this.createWorker=function(i){var o=new e(["ace"],pi(),"JsonWorker");return o.attachToDocument(i.getDocument()),o.on("annotate",function(s){i.setAnnotations(s.data)}),o.on("terminate",function(){i.clearAnnotations()}),o},this.$id="ace/mode/json"}.call(r.prototype),b.Mode=r});ace.define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],function(p,b,h){b.isDark=!0,b.cssClass="ace-monokai",b.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-monokai .ace_cursor {color: #F8F8F0}.ace-monokai .ace_marker-layer .ace_selection {background: #49483E}.ace-monokai.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px #272822;}.ace-monokai .ace_marker-layer .ace_step {background: rgb(102, 82, 0)}.ace-monokai .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid #49483E}.ace-monokai .ace_marker-layer .ace_active-line {background: #202020}.ace-monokai .ace_gutter-active-line {background-color: #272727}.ace-monokai .ace_marker-layer .ace_selected-word {border: 1px solid #49483E}.ace-monokai .ace_invisible {color: #52524d}.ace-monokai .ace_entity.ace_name.ace_tag,.ace-monokai .ace_keyword,.ace-monokai .ace_meta.ace_tag,.ace-monokai .ace_storage {color: #F92672}.ace-monokai .ace_punctuation,.ace-monokai .ace_punctuation.ace_tag {color: #fff}.ace-monokai .ace_constant.ace_character,.ace-monokai .ace_constant.ace_language,.ace-monokai .ace_constant.ace_numeric,.ace-monokai .ace_constant.ace_other {color: #AE81FF}.ace-monokai .ace_invalid {color: #F8F8F0;background-color: #F92672}.ace-monokai .ace_invalid.ace_deprecated {color: #F8F8F0;background-color: #AE81FF}.ace-monokai .ace_support.ace_constant,.ace-monokai .ace_support.ace_function {color: #66D9EF}.ace-monokai .ace_fold {background-color: #A6E22E;border-color: #F8F8F2}.ace-monokai .ace_storage.ace_type,.ace-monokai .ace_support.ace_class,.ace-monokai .ace_support.ace_type {font-style: italic;color: #66D9EF}.ace-monokai .ace_entity.ace_name.ace_function,.ace-monokai .ace_entity.ace_other,.ace-monokai .ace_entity.ace_other.ace_attribute-name,.ace-monokai .ace_variable {color: #A6E22E}.ace-monokai .ace_variable.ace_parameter {font-style: italic;color: #FD971F}.ace-monokai .ace_string {color: #E6DB74}.ace-monokai .ace_comment {color: #75715E}.ace-monokai .ace_indent-guide {background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQImWPQ0FD0ZXBzd/wPAAjVAoxeSgNeAAAAAElFTkSuQmCC) right repeat-y}";var c=p("../lib/dom");c.importCssString(b.cssText,b.cssClass)});var Ci=yt(wt(),1);ace.define("ace/theme/github",["require","exports","module","ace/lib/dom"],function(p,b,h){b.isDark=!1,b.cssClass="ace-github",b.cssText='.ace-github .ace_gutter {background: #e8e8e8;color: #AAA;}.ace-github {background: #fff;color: #000;}.ace-github .ace_keyword {font-weight: bold;}.ace-github .ace_string {color: #D14;}.ace-github .ace_variable.ace_class {color: teal;}.ace-github .ace_constant.ace_numeric {color: #099;}.ace-github .ace_constant.ace_buildin {color: #0086B3;}.ace-github .ace_support.ace_function {color: #0086B3;}.ace-github .ace_comment {color: #998;font-style: italic;}.ace-github .ace_variable.ace_language {color: #0086B3;}.ace-github .ace_paren {font-weight: bold;}.ace-github .ace_boolean {font-weight: bold;}.ace-github .ace_string.ace_regexp {color: #009926;font-weight: normal;}.ace-github .ace_variable.ace_instance {color: teal;}.ace-github .ace_constant.ace_language {font-weight: bold;}.ace-github .ace_cursor {color: black;}.ace-github.ace_focus .ace_marker-layer .ace_active-line {background: rgb(255, 255, 204);}.ace-github .ace_marker-layer .ace_active-line {background: rgb(245, 245, 245);}.ace-github .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-github.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-github.ace_nobold .ace_line > span {font-weight: normal !important;}.ace-github .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-github .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-github .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-github .ace_gutter-active-line {background-color : rgba(0, 0, 0, 0.07);}.ace-github .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-github .ace_invisible {color: #BFBFBF}.ace-github .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-github .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var c=p("../lib/dom");c.importCssString(b.cssText,b.cssClass)});var bt=new Dt("ACE_CONFIG"),An=["blur","focus","copy","paste","change","changeSession"],bn=["changeCursor","changeSelection"],dt=class{readOnly;cursorStyle;selectionStyle;mergeUndoDeltas;behavioursEnabled;highlightActiveLine;highlightSelectedWord;wrapBehavioursEnabled;copyWithEmptySelection;navigateWithinSoftTabs;autoScrollEditorIntoView;mode;wrap;tabSize;overwrite;useWorker;foldStyle;newLineMode;useSoftTabs;firstLineNumber;theme;minLines;maxLines;fontSize;fontFamily;showGutter;printMargin;scrollPastEnd;animatedScroll;showInvisibles;fadeFoldWidgets;showLineNumbers;showFoldWidgets;showPrintMargin;fixedWidthGutter;printMarginColumn;displayIndentGuides;highlightGutterLine;hScrollBarAlwaysVisible;vScrollBarAlwaysVisible;dragDelay;dragEnabled;scrollSpeed;focusTimeout;tooltipFollowsMouse;enableBasicAutocompletion;enableLiveAutocompletion;enableSnippets;enableEmmet;useElasticTabstops;constructor(b={}){this.assign(b)}assign(b={},h){h=h||this;for(let c in b)b[c]&&!Array.isArray(b[c])&&typeof b[c]=="object"?(h[c]={},this.assign(b[c],h[c])):h[c]=b[c]}},vi=(()=>{class p{zone;elementRef;differs;defaults;instance=null;instanceEventListeners=[];selectionEventListeners=[];configDiff=null;disabled=!1;config;blur=new ge;focus=new ge;copy=new ge;paste=new ge;change=new ge;changeCursor=new ge;changeSession=new ge;changeSelection=new ge;constructor(h,c,u,l){this.zone=h,this.elementRef=c,this.differs=u,this.defaults=l}ngOnInit(){let h=new dt(this.defaults);h.assign(this.config),this.disabled?(h.readOnly=!0,h.highlightActiveLine=!1):h.highlightActiveLine!==!1&&(h.highlightActiveLine=!0),h.mode="ace/mode/"+(h.mode||"text"),h.theme="ace/theme/"+(h.theme||"github"),this.zone.runOutsideAngular(()=>{this.instance=Ci.edit(this.elementRef.nativeElement),this.instance.$blockScrolling=1/0,this.instance.setOptions(h)}),An.forEach(c=>{if(this.instance){let u=(...l)=>{l.length===1&&(l=l[0]),this[c]&&this.zone.run(()=>{this[c].observers.length&&this[c].emit(l)})};this.instance.on(c,u),this.instanceEventListeners.push({eventName:c,callback:u})}}),bn.forEach(c=>{if(this.instance){let u=(...l)=>{l.length===1&&(l=l[0]),this[c]&&this[c].observers.length&&this[c].emit(l)};this.instance.selection.on(c,u),this.selectionEventListeners.push({eventName:c,callback:u})}}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{}))}ngDoCheck(){this.configDiff&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnDestroy(){this.instance&&(this.instance.isFocused()&&this.blur.emit(),this.instanceEventListeners.forEach(h=>{this.instance.off(h.eventName,h.callback)}),this.instanceEventListeners=[],this.selectionEventListeners.forEach(h=>{this.instance.selection.off(h.eventName,h.callback)}),this.selectionEventListeners=[],delete this.instance,this.instance=null)}ngOnChanges(h){h.disabled&&h.disabled.currentValue!==h.disabled.previousValue&&this.zone.runOutsideAngular(()=>{if(this.instance){let c=new dt(this.defaults);c.assign(this.config),this.instance.clearSelection();let u=c.highlightActiveLine!==!1;this.instance.setHighlightActiveLine(this.disabled?!1:u),this.instance.setReadOnly(this.disabled?!0:c.readOnly||!1)}})}ace(){return this.instance}clear(){this.instance&&(this.instance.setValue(""),this.instance.clearSelection())}getValue(){if(this.instance)return this.instance.getValue()}setValue(h,c){this.instance&&this.instance.setValue(h||"",c)}static \u0275fac=function(c){return new(c||p)(ne(Ve),ne(Mt),ne(Ht),ne(bt,8))};static \u0275dir=Tt({type:p,selectors:[["","ace",""]],inputs:{disabled:"disabled",config:[0,"ace","config"]},outputs:{blur:"blur",focus:"focus",copy:"copy",paste:"paste",change:"change",changeCursor:"changeCursor",changeSession:"changeSession",changeSelection:"changeSelection"},exportAs:["ngxAce"],standalone:!1,features:[ze]})}return p})(),wi=(()=>{class p{content="";get value(){return this.content}set value(h){this.setContent(h)}disabled=!1;mode="";theme="";config;useAceClass=!0;blur=new ge;focus=new ge;copy=new ge;paste=new ge;change=new ge;valueChange=new ge;changeCursor=new ge;changeSession=new ge;changeSelection=new ge;directiveRef;constructor(){}ngAfterViewInit(){this.content!=null&&this.setContent(this.content,!0)}setContent(h,c){(c||h!==this.content)&&(this.directiveRef&&this.directiveRef.setValue(h,1),this.content=h)}getConfig(){return this.config=this.config||{},this.config.mode=this.mode||this.config.mode,this.config.theme=this.theme||this.config.theme,this.config}onContentChange(h){this.directiveRef&&(this.change.emit(h),this.content=this.directiveRef.getValue()||"",this.valueChange.emit(this.value))}static \u0275fac=function(c){return new(c||p)};static \u0275cmp=se({type:p,selectors:[["ace"]],viewQuery:function(c,u){if(c&1&&de(vi,7),c&2){let l;he(l=ue())&&(u.directiveRef=l.first)}},hostVars:2,hostBindings:function(c,u){c&2&&Ue("ace",u.useAceClass)},inputs:{value:"value",disabled:"disabled",mode:"mode",theme:"theme",config:"config",useAceClass:"useAceClass"},outputs:{blur:"blur",focus:"focus",copy:"copy",paste:"paste",change:"change",valueChange:"valueChange",changeCursor:"changeCursor",changeSession:"changeSession",changeSelection:"changeSelection"},exportAs:["ngxAce"],standalone:!1,decls:1,vars:2,consts:[[3,"blur","focus","copy","paste","change","changeCursor","changeSession","changeSelection","ace","disabled"]],template:function(c,u){c&1&&(K(0,"div",0),ee("blur",function(a){return u.blur.emit(a)})("focus",function(a){return u.focus.emit(a)})("copy",function(a){return u.copy.emit(a)})("paste",function(a){return u.paste.emit(a)})("change",function(a){return u.onContentChange(a)})("changeCursor",function(a){return u.changeCursor.emit(a)})("changeSession",function(a){return u.changeSession.emit(a)})("changeSelection",function(a){return u.changeSelection.emit(a)}),G()),c&2&&q("ace",u.getConfig())("disabled",u.disabled)},dependencies:[vi],styles:[`.ace,.ace>.ace_editor{display:block;width:100%;height:100%}.ace.flex{display:flex;flex-direction:inherit;align-items:inherit;min-width:0;min-height:0;-webkit-box-direction:inherit;-webkit-box-orient:inherit}.ace.flex>.ace_editor{flex:1 1 auto;min-width:0;min-height:0;-webkit-box-flex:1} +`],encapsulation:2})}return p})(),Ai=(()=>{class p{static \u0275fac=function(c){return new(c||p)};static \u0275mod=_e({type:p});static \u0275inj=Ee({imports:[xe,xe]})}return p})();var yn=["templateRef"];function En(p,b){if(p&1){let h=ce();K(0,"ace",1),ee("valueChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])}}var bi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Code",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(yn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["theme","monkai","mode","json",2,"width","100%",3,"valueChange","value"]],template:function(c,u){c&1&&re(0,En,1,1,"ng-template",null,0,pe)},dependencies:[wi],encapsulation:2})}}return p})();var Fi=(()=>{class p{constructor(h){this.doc=h,this.list={},this.cached={},this._notify=new _t([])}fixPaths(h){return h=h||[],Array.isArray(h)||(h=[h]),h.map(c=>{let u=typeof c=="string"?{path:c}:c;return u.type||(u.type=u.path.endsWith(".js")||u.callback?"script":"style"),u})}monitor(h){let c=this.fixPaths(h),u=[St(),mt(l=>l.length!==0)];return c.length>0&&u.push(mt(l=>l.length===c.length&&l.every(a=>a.status==="ok"&&c.find(n=>n.path===a.path)))),this._notify.asObservable().pipe(Et.apply(this,u))}clear(){this.list={},this.cached={}}load(h){return ke(this,null,function*(){return h=this.fixPaths(h),Promise.all(h.map(c=>c.type==="script"?this.loadScript(c.path,{callback:c.callback}):this.loadStyle(c.path))).then(c=>(this._notify.next(c),Promise.resolve(c)))})}loadScript(h,c){let{innerContent:u}=we({},c);return new Promise(l=>{if(this.list[h]===!0){l(Pe(we({},this.cached[h]),{status:"loading"}));return}this.list[h]=!0;let a=e=>{e.status==="ok"&&c?.callback?window[c?.callback]=()=>{n(e)}:n(e)},n=e=>{e.type="script",this.cached[h]=e,l(e),this._notify.next([e])},t=this.doc.createElement("script");t.type="text/javascript",t.src=h,t.charset="utf-8",u&&(t.innerHTML=u),t.readyState?t.onreadystatechange=()=>{(t.readyState==="loaded"||t.readyState==="complete")&&(t.onreadystatechange=null,a({path:h,status:"ok"}))}:t.onload=()=>a({path:h,status:"ok"}),t.onerror=e=>a({path:h,status:"error",error:e}),this.doc.getElementsByTagName("head")[0].appendChild(t)})}loadStyle(h,c){let{rel:u,innerContent:l}=we({rel:"stylesheet"},c);return new Promise(a=>{if(this.list[h]===!0){a(this.cached[h]);return}this.list[h]=!0;let n=this.doc.createElement("link");n.rel=u,n.type="text/css",n.href=h,l&&(n.innerHTML=l),this.doc.getElementsByTagName("head")[0].appendChild(n);let t={path:h,status:"ok",type:"style"};this.cached[h]=t,a(t)})}static{this.\u0275fac=function(c){return new(c||p)(We(ct))}}static{this.\u0275prov=Le({token:p,factory:p.\u0275fac,providedIn:"root"})}}return p})();var _n=["*"];function xn(p,b){if(p&1&&(K(0,"div"),Ke(1),G()),p&2){let h=ie();Ne("id",h.id)}}function Sn(p,b){if(p&1&&me(0,"textarea",0),p&2){let h=ie();Ne("id",h.id)("placeholder",h.placeholder)}}function $n(p,b){if(p&1&&be(0),p&2){let h=ie(2);Qe(" ",h._loading," ")}}function Bn(p,b){}function Dn(p,b){if(p&1&&re(0,Bn,0,0,"ng-template",2),p&2){let h=ie(2);q("ngTemplateOutlet",h._loadingTpl)}}function kn(p,b){if(p&1&&(K(0,"div",1),re(1,$n,1,1)(2,Dn,1,1,null,2),G()),p&2){let h=ie();le(),rt(h._loading?1:2)}}var ft=class{constructor(){this.baseURL="./assets/tinymce/",this.fileName="tinymce.min.js"}},yi=!(typeof document=="object"&&document),Ei=(()=>{class p{constructor(){this.defConfig=He(ft,{optional:!0}),this.lazySrv=He(Fi),this.ngZone=He(Ve),this.doc=He(ct),this.cd=He(lt),this.value="",this.load=!0,this.id=`_tinymce-${Math.random().toString(36).substring(2)}`,this.placeholder="",this.inline=!1,this._disabled=!1,this._loading=null,this._loadingTpl=null,this.delay=0,this.ready=new ge}set disabled(h){this._disabled=h,this.setDisabled()}set loading(h){h instanceof Lt?(this._loading=null,this._loadingTpl=h):this._loading=h}get instance(){return this._instance}_getWin(){return this.doc.defaultView||window}initDelay(){yi||setTimeout(()=>this.init(),Math.max(0,this.delay))}init(){let h=this._getWin();if(!h.tinymce)throw new Error("tinymce js\u6587\u4EF6\u52A0\u8F7D\u5931\u8D25");let{defConfig:c,config:u,id:l,inline:a}=this;if(this._instance)return;if(c?.baseURL){let e=""+c.baseURL;e.endsWith("/")&&(e=e.substring(0,e.length-1)),h.tinymce.baseURL=e}let n=we(we({},c?.config),u),t=Pe(we(we({selector:"#"+l,inline:a},c?.config),u),{setup:e=>{this._instance=e,this.onChange&&e.on("change keyup",()=>{this.value=e.getContent(),this.ngZone.run(()=>this.onChange(this.value))}),typeof n.setup=="function"&&n.setup(e)},init_instance_callback:e=>{e&&this.value&&e.setContent(this.value),this.setDisabled(),typeof n.init_instance_callback=="function"&&n.init_instance_callback(e),this.ready.emit(e)}});n.auto_focus&&(t.auto_focus=l),this.ngZone.runOutsideAngular(()=>h.tinymce.init(t)),this.load=!1,this.cd.detectChanges()}destroy(){this._instance!=null&&(this.ngZone.runOutsideAngular(()=>{this._instance.off(),this._instance.remove()}),this._instance=null)}setDisabled(){this._instance&&this.ngZone.runOutsideAngular(()=>{let h=this._disabled?"readonly":"design",c=this._instance.setMode;typeof c=="function"?c(h):this._instance.mode.set(h)})}ngAfterViewInit(){if(yi)return;if(this._getWin().tinymce){this.initDelay();return}let{defConfig:h}=this,c=h&&h.baseURL,u=h&&h.fileName,l=(c||"./assets/tinymce/")+(u||"tinymce.min.js");this.lazySrv.monitor(l).subscribe(()=>this.initDelay()),this.lazySrv.load(l)}ngOnChanges(h){this._instance&&h.config&&(this.destroy(),this.initDelay())}ngOnDestroy(){this.destroy()}writeValue(h){this.value=h||"",this._instance&&this.ngZone.runOutsideAngular(()=>this._instance.setContent(this.value))}registerOnChange(h){this.onChange=h}registerOnTouched(h){this.onTouched=h}setDisabledState(h){this.disabled=h,this.setDisabled()}static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275cmp=se({type:p,selectors:[["tinymce"]],inputs:{config:"config",placeholder:"placeholder",inline:[2,"inline","inline",vt],disabled:[2,"disabled","disabled",vt],loading:"loading",delay:[2,"delay","delay",zt]},outputs:{ready:"ready"},exportAs:["tinymce"],features:[Pt([{provide:Gt,useExisting:Bt(()=>p),multi:!0}]),Ot,ze],ngContentSelectors:_n,decls:3,vars:2,consts:[[1,"tinymce-selector"],[1,"loading"],[3,"ngTemplateOutlet"]],template:function(c,u){c&1&&(at(),re(0,xn,2,1,"div")(1,Sn,1,2,"textarea",0)(2,kn,3,1,"div",1)),c&2&&(rt(u.inline?0:1),le(2),rt(u.load?2:-1))},dependencies:[Nt],styles:[`tinymce .tinymce-selector{display:none} +`],encapsulation:2,changeDetection:0})}}return p})(),_i=(()=>{class p{static forRoot(h){return{ngModule:p,providers:[{provide:ft,useValue:h}]}}static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({imports:[xe]})}}return p})();var Rn=["templateRef"];function Ln(p,b){if(p&1){let h=ce();K(0,"tinymce",1),ee("ngModelChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("ngModel",h.submition[h.key])}}var xi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Html",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Rn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"ngModelChange","ngModel"]],template:function(c,u){c&1&&re(0,Ln,1,1,"ng-template",null,0,pe)},dependencies:[Qt,Yt,Ei],encapsulation:2})}}return p})();var Tn=["templateRef"];function On(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())})("wSubmit",function(){let u=Z(h).$implicit;return J(u.wSubmit())}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("setFocus",h.component)("label",h.field.Label)}}var Si=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Email",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Tn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","email",3,"wChange","wSubmit","value","placeholder","name","focused","ngClass","setFocus","label"]],template:function(c,u){c&1&&re(0,On,1,7,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var In=["templateRef"];function Pn(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return J(l.submition[l.key]=u)}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var $i=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Number",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(In,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","number",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,Pn,1,6,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var Wn=["templateRef"];function Hn(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return J(l.submition[l.key]=u)}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var Bi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Time",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Wn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","time",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,Hn,1,6,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var zn=["templateRef"];function Vn(p,b){if(p&1){let h=ce();K(0,"ngx-file",1),ee("update",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("label",h.field.Label)("width",h.field.Width)("height",h.field.Height)("isPhoto",!0)}}var Di=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Photo",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(zn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"update","value","label","width","height","isPhoto"]],template:function(c,u){c&1&&re(0,Vn,1,5,"ng-template",null,0,pe)},dependencies:[ut],encapsulation:2})}}return p})();var Nn=["templateRef"];function jn(p,b){if(p&1){let h=ce();K(0,"ngx-file",1),ee("update",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("container",h.config.formId)("label",h.field.Label)("width",h.field.Width)("height",h.field.Height)("multiple",!0)("isPhoto",!0)}}var ki=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Photos",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Nn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"update","value","container","label","width","height","multiple","isPhoto"]],template:function(c,u){c&1&&re(0,jn,1,7,"ng-template",null,0,pe)},dependencies:[ut],encapsulation:2})}}return p})();var Un=["templateRef"];function Kn(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return J(l.submition[l.key]=u)}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var Mi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Date",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Un,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","date",3,"wChange","value","placeholder","name","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,Kn,1,6,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var Gn=["templateRef"];function Qn(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("type",h.field.Textarea?"textarea":"text")("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("value",h.submition[h.key])("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var Ri=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Text",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Gn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"wChange","type","placeholder","name","value","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,Qn,1,7,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var Yn=["templateRef"];function Xn(p,b){if(p&1){let h=ce();K(0,"wbutton",1),ee("click",function(){let u=Z(h).$implicit,l=ie();return J(l.click(u))}),be(1),G()}if(p&2){let h=b.$implicit;q("disableSubmit",!0),le(),Ge(h.field.Label)}}var Li=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Button",this.templateRef)}click(h){typeof h.field.Click=="function"&&h.field.Click()}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["button-formcomponents"]],viewQuery:function(c,u){if(c&1&&de(Yn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"click","disableSubmit"]],template:function(c,u){c&1&&re(0,Xn,2,2,"ng-template",null,0,pe)},dependencies:[Xe],styles:[".w-btn[_ngcontent-%COMP%]{font-size:var(--fs);font-weight:500;font-family:var(--ff-base);background-color:var(--c-primary);border-radius:var(--b-radius-btn);transition:var(--transition);color:var(--c-white);position:relative;padding:11px 25px;line-height:19px;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;text-align:center;width:100%;border:none;cursor:pointer;transition:all .3s;border-radius:4px}.w-btn._primary[_ngcontent-%COMP%]{background-color:var(--c-primary)}.w-btn._primary[_ngcontent-%COMP%]:hover{background-color:var(--c-primary-hover)}.w-btn._second[_ngcontent-%COMP%]{border:1px solid #256eff;background-color:var(--c-white);color:#256eff}.w-btn._danger[_ngcontent-%COMP%]{background-color:var(--c-secondary);color:#fff}.w-btn._danger[_ngcontent-%COMP%]:hover{background:var(--c-secondary-hover)}.w-btn._link[_ngcontent-%COMP%]{background:transparent;color:var(--c-text-primary);font-size:14px;font-weight:400}.w-btn._link[_ngcontent-%COMP%]:hover{color:var(--c-text-secondary)}.w-btn[_ngcontent-%COMP%]:disabled{background-color:var(--c-grey-dark);cursor:default}.w-btn[_ngcontent-%COMP%]:disabled:hover{background-color:var(--c-grey-dark)}"]})}}return p})();var Zn=["templateRef"];function Jn(p,b){p&1&&me(0,"span",10)}function qn(p,b){p&1&&me(0,"span",11)}function er(p,b){p&1&&me(0,"span",12)}function tr(p,b){p&1&&me(0,"span",13)}function ir(p,b){if(p&1){let h=ce();K(0,"div",1)(1,"winput",2),ee("wChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())})("wSubmit",function(){let u=Z(h).$implicit;return J(u.wSubmit())}),G(),K(2,"div",3),re(3,Jn,1,0,"span",4)(4,qn,1,0,"span",5)(5,er,1,0,"span",6)(6,tr,1,0,"span",7),G(),K(7,"div",8)(8,"span",9),ee("click",function(){let u=Z(h).$implicit;return J(u.field.Show=!u.field.Show)}),be(9," visibility "),G()()()}if(p&2){let h=b.$implicit,c=ie();le(),q("value",h.submition[h.key])("type",h.field.Show?"text":"password")("placeholder",h.field.Placeholder)("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("setFocus",h.component)("label",h.field.Label),le(2),q("ngIf",c.ui.level(h.value)>1),le(),q("ngIf",c.ui.level(h.value)>2),le(),q("ngIf",c.ui.level(h.value)>3),le(),q("ngIf",c.ui.level(h.value)>4)}}var Ti=(()=>{class p{constructor(h,c){this._form=h,this.ui=c}ngOnInit(){this._form.addTemplateComponent("Password",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe),ne(qt))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(Zn,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[1,"pass_container"],["type","password",3,"wChange","wSubmit","value","type","placeholder","name","focused","ngClass","setFocus","label"],[1,"smart"],["class","red",4,"ngIf"],["class","orange",4,"ngIf"],["class","yellow",4,"ngIf"],["class","green",4,"ngIf"],[1,"eye"],[1,"material-icons",3,"click"],[1,"red"],[1,"orange"],[1,"yellow"],[1,"green"]],template:function(c,u){c&1&&re(0,ir,10,12,"ng-template",null,0,pe)},dependencies:[Se,Ae,Te],styles:[".pass_container[_ngcontent-%COMP%]{position:relative}.smart[_ngcontent-%COMP%]{position:absolute;right:0;top:0}.red[_ngcontent-%COMP%]{width:3px;height:8px;background-color:#bb1717;display:inline-block;margin-left:5px}.orange[_ngcontent-%COMP%]{width:3px;height:10px;background-color:#eb9719;display:inline-block;margin-left:5px}.yellow[_ngcontent-%COMP%]{width:3px;height:12px;background-color:#fffb00;display:inline-block;margin-left:5px}.green[_ngcontent-%COMP%]{width:3px;height:14px;background-color:#21d311;display:inline-block;margin-left:5px}.eye[_ngcontent-%COMP%]{position:relative;cursor:pointer}.eye[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;top:-32px;right:10px;font-size:22px;color:var(--c-text-primary)}@media screen and (max-width: 768px){.red[_ngcontent-%COMP%]{width:3px;height:8px;background-color:#bb1717;display:inline-block;margin-left:5px}.orange[_ngcontent-%COMP%]{width:3px;height:10px;background-color:#eb9719;display:inline-block;margin-left:5px}.yellow[_ngcontent-%COMP%]{width:3px;height:12px;background-color:#fffb00;display:inline-block;margin-left:5px}.green[_ngcontent-%COMP%]{width:3px;height:14px;background-color:#21d311;display:inline-block;margin-left:5px}#eye[_ngcontent-%COMP%]{position:absolute;left:165px;top:252px;font-size:22px;color:#5a5a5a}}"]})}}return p})();var nr=["templateRef"];function rr(p,b){if(p&1){let h=ce();K(0,"wselect",1),ee("modelChange",function(u){let l=Z(h).$implicit;return l.submition[l.key]=u,J(l.wChange())}),G()}if(p&2){let h=b.$implicit;q("select",h.submition[h.key])("multiple",h.field.Multiple||!1)("placeholder",h.field.Placeholder)("value",h.field.Value||"_id")("name",h.field.Name||"name")("ngClass",h.component.class)("items",h.field.Items)("searchable",!0)}}var Oi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Select",this.templateRef)}select(h){return h.value?.name||h.value||""}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(nr,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],[3,"modelChange","select","multiple","placeholder","value","name","ngClass","items","searchable"]],template:function(c,u){c&1&&re(0,rr,1,8,"ng-template",null,0,pe)},dependencies:[Ae,ni],styles:[".w-select[_ngcontent-%COMP%]{width:100%}.w-select__label[_ngcontent-%COMP%]{margin-bottom:5px}.w-select__body[_ngcontent-%COMP%]{position:relative;cursor:pointer;display:flex;min-height:50px;height:50px;align-items:center;border:2px solid var(--c-text-primary);border-radius:12px;transition:var(--transition)}.w-select__body._active[_ngcontent-%COMP%]{border-color:var(--c-sky)}.w-select__header[_ngcontent-%COMP%]{display:flex;align-items:center;width:100%;overflow:hidden;white-space:nowrap;padding:14px 10px 14px 40px;color:#666;position:relative}.w-select__header[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;left:10px;top:50%;transform:translateY(-50%)}.w-select__header[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-primary)}.w-select__text[_ngcontent-%COMP%]{margin-right:10px;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.w-select__text[_ngcontent-%COMP%] .text-overflow[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;word-break:keep-all;color:var(--c-text-primary)}.w-select__arrow[_ngcontent-%COMP%]{margin-right:15px;transition:var(--transition);display:flex;align-items:center;justify-content:center;border-radius:50%}.w-select__arrow[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:12px;height:12px}.w-select__arrow[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:var(--c-text-primary)}.w-select__arrow._active[_ngcontent-%COMP%]{transform:rotate(180deg)}.w-select[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:10px;transition:var(--transition);border-bottom:1px solid var(--c-text-primary)}.w-select[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background:var(--c-shadow);border-bottom:1px solid #1ac5eb;color:#1ac5eb}.w-select__popup[_ngcontent-%COMP%]{z-index:9;width:100%;left:0;position:absolute;top:calc(100% + 10px);background:var(--c-white);box-shadow:0 0 4px var(--c-border);border-radius:10px;border:2px solid #173b59;background:#f8f6f6;color:#666;padding-bottom:15px;padding-top:15px}.w-select__popup._search[_ngcontent-%COMP%]{padding-top:60px}.w-select__popup[_ngcontent-%COMP%] .popup-block[_ngcontent-%COMP%]{max-height:180px;overflow-y:auto;padding:0 15px}.w-select__popup[_ngcontent-%COMP%] .popup-block__empty-search[_ngcontent-%COMP%]{padding:15px;text-align:center;color:#717171}.w-select__search[_ngcontent-%COMP%]{top:10px;position:absolute;display:flex;justify-content:center;align-items:center;width:100%;left:0;padding:0 15px}.w-select__search[_ngcontent-%COMP%] .search-input[_ngcontent-%COMP%]{outline:none;width:100%;cursor:pointer;display:flex;padding:10px 30px 10px 10px;align-items:center;border:1px solid var(--c-border);border-radius:10px;transition:var(--transition)}.w-select__search[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{position:absolute;top:50%;right:25px;transform:translateY(-50%)}.w-select[_ngcontent-%COMP%] *[_ngcontent-%COMP%]::-webkit-scrollbar{width:5px;height:5px;background-color:var(--c-white)}.w-select[_ngcontent-%COMP%] *[_ngcontent-%COMP%] [_ngcontent-%COMP%]::-webkit-scrollbar-thumb{border-radius:10px;background-color:var(--c-border)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]{display:inline-flex;-webkit-user-select:none;user-select:none;cursor:pointer;padding:6px 8px;color:var(--c-text);border-radius:6px;overflow:hidden;transition:var(--transition)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:not(:last-child){margin-right:6px}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:hover{background:rgba(var(--c-sky),.09)}.w-select[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]:hover .checkbox__svg[_ngcontent-%COMP%]{border-color:var(--c-sky)}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]{display:none}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]:checked + .checkbox__body[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%]{background:var(--c-sky);border-color:var(--c-sky);animation:_ngcontent-%COMP%_wave .4s ease}.w-select[_ngcontent-%COMP%] .checkbox__input[_ngcontent-%COMP%]:checked + .checkbox__body[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{stroke-dashoffset:0}.w-select[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%]{position:relative;min-width:18px;min-height:18px;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.w-select[_ngcontent-%COMP%] .checkbox__svg[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{position:absolute;top:3px;left:2px;fill:none;stroke:var(--c-white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-select[_ngcontent-%COMP%] .checkbox__text[_ngcontent-%COMP%]{padding-left:8px;line-height:18px;text-overflow:ellipsis;overflow:hidden}.w-select[_ngcontent-%COMP%] .checkbox__svg-icon[_ngcontent-%COMP%]{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes _ngcontent-%COMP%_wave{50%{transform:scale(.9)}}.selected[_ngcontent-%COMP%]{font-weight:700}"]})}}return p})();var or=["templateRef"];function sr(p,b){if(p&1){let h=ce();K(0,"winput",1),ee("wChange",function(u){let l=Z(h).$implicit;return J(l.submition[l.key]=u)}),G()}if(p&2){let h=b.$implicit;q("value",h.submition[h.key])("name",h.field.Label||"name")("focused",h.component.focused)("ngClass",h.component.class)("label",h.field.Label)}}var Ii=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Boolean",this.templateRef)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&de(or,7),c&2){let l;he(l=ue())&&(u.templateRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["type","checkbox",3,"wChange","value","name","focused","ngClass","label"]],template:function(c,u){c&1&&re(0,sr,1,5,"ng-template",null,0,pe)},dependencies:[Se,Ae],encapsulation:2})}}return p})();var ar=["templateRef"],lr=["inputRef"];function cr(p,b){if(p&1){let h=ce();ot(0),K(1,"span"),be(2),G(),K(3,"i",5),ee("click",function(){let u=Z(h).index,l=ie().$implicit;return J(l.submition[l.key].splice(u,1))}),be(4,"X"),G(),st()}if(p&2){let h=b.$implicit;le(2),Ge(h)}}function hr(p,b){if(p&1){let h=ce();K(0,"div")(1,"winput",2,1),ee("wSubmit",function(){let u=Z(h).$implicit,l=ie();return J(l.addTag(u))}),G(),re(3,cr,5,1,"ng-container",3),K(4,"wbutton",4),ee("click",function(){let u=Z(h).$implicit,l=ie();return J(l.addTag(u))}),be(5),G()()}if(p&2){let h=b.$implicit,c=It(2);le(),q("placeholder",h.field.Placeholder)("label",h.field.Label),le(2),q("ngForOf",h.submition[h.key]),le(),q("disabled",!c.value),le(),Qe(" ",h.field.Button||"Add"," ")}}var Pi=(()=>{class p{constructor(h){this._form=h}ngOnInit(){this._form.addTemplateComponent("Tags",this.templateRef)}addTag(h){h.submition[h.key]=h.submition[h.key]||[],h.submition[h.key].push(this.inputRef.value.replace(` +`,"")),this.inputRef.value="",h.wChange.emit(),setTimeout(()=>{this.inputRef.focus()},100)}static{this.\u0275fac=function(c){return new(c||p)(ne(fe))}}static{this.\u0275cmp=se({type:p,selectors:[["ng-component"]],viewQuery:function(c,u){if(c&1&&(de(ar,7),de(lr,5)),c&2){let l;he(l=ue())&&(u.templateRef=l.first),he(l=ue())&&(u.inputRef=l.first)}},standalone:!1,decls:2,vars:0,consts:[["templateRef",""],["inputRef",""],[3,"wSubmit","placeholder","label"],[4,"ngFor","ngForOf"],[3,"click","disabled"],[3,"click"]],template:function(c,u){c&1&&re(0,hr,6,5,"ng-template",null,0,pe)},dependencies:[Se,Xe,Ye],encapsulation:2})}}return p})();var ur={maxLines:1/0,theme:"monokai",mode:"json",minLines:10,tabSize:4},Wi=(()=>{class p{constructor(h){this._form=h,this._form.injectComponent("Code",bi),this._form.injectComponent("Html",xi),this._form.injectComponent("Boolean",Ii,["Label"]),this._form.injectComponent("Button",Li,["Label"]),this._form.injectComponent("Date",Mi),this._form.injectComponent("Email",Si),this._form.injectComponent("Number",$i),this._form.injectComponent("Password",Ti),this._form.injectComponent("Photo",Di,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent("Photos",ki,["Label","Width","Height"],{Width:"Number",Height:"Number"}),this._form.injectComponent("Select",Oi,["Placeholder","Label","Items","Multiple"],{Items:"Tags",Multiple:"Boolean"}),this._form.injectComponent("Tags",Pi,["Button","Placeholder","Label"]),this._form.injectComponent("Text",Ri,["Textarea","Placeholder","Label"],{Textarea:"Boolean"}),this._form.injectComponent("Time",Bi)}static{this.\u0275fac=function(c){return new(c||p)(We(fe))}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({providers:[{provide:bt,useValue:ur}],imports:[ht,Ze,xe,di,it,Ai,Oe,_i.forRoot({baseURL:"//cdnjs.cloudflare.com/ajax/libs/tinymce/5.7.1/"})]})}}return p})();var Ts=(()=>{class p{static{this.\u0275fac=function(c){return new(c||p)}}static{this.\u0275mod=_e({type:p})}static{this.\u0275inj=Ee({imports:[Wi,it,xe,Oe,tt,ii,it,xe,Oe,tt,Ze,ht,fi,ei,ti,gi]})}}return p})();export{Ur as a,wn as b,ut as c,di as d,Ts as e}; diff --git a/chunk-NED2X3NE.js b/chunk-NED2X3NE.js new file mode 100644 index 0000000..2bf4f01 --- /dev/null +++ b/chunk-NED2X3NE.js @@ -0,0 +1 @@ +import{e as M}from"./chunk-LQFWOSYV.js";import{I as s,L as p,M as _,Pa as S,R as v,Ta as y,X as C,_a as n,bb as g,cb as j,db as b,fb as a,kb as w,q as f,r as h,rb as k,t as m,tb as I}from"./chunk-65U4F77E.js";var x={formId:"commercediscount",title:"Commercediscount",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commercediscount title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commercediscount description"},{name:"Label",value:"Description"}]}]};var D=(()=>{class o extends g{constructor(i,t,e,r){super({name:"commercediscount"},i,t,e,r),this.commercediscounts=this.getDocs(),this.commercediscountsByAuthor={},this.get(),this.filteredDocuments(this.commercediscountsByAuthor)}static{this.\u0275fac=function(t){return new(t||o)(m(b),m(j),m(a),m(n))}}static{this.\u0275prov=f({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var u=(()=>{class o{get rows(){return this._commercediscountService.commercediscounts}constructor(i,t,e,r,l,T){this._translate=i,this._commercediscountService=t,this._alert=e,this._form=r,this._core=l,this._router=T,this.columns=["name","description"],this.commerce=this._router.url.includes("/commercediscounts/")?this._router.url.replace("/commercediscounts/",""):"",this.form=this._form.getForm("commercediscount",x),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(c,d)=>{this.commerce&&(c.commerce=this.commerce),this._commercediscountService.create(c),d()}})},update:c=>{this._form.modal(this.form,[],c).then(d=>{this._core.copy(d,c),this._commercediscountService.update(c)})},delete:c=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commercediscount?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commercediscountService.delete(c)}}]})},buttons:[{icon:"cloud_download",click:c=>{this._form.modalUnique("commercediscount","url",c)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(t=>{if(i)for(let e of t)this.commerce&&(e.commerce=this.commerce),this._commercediscountService.create(e);else{for(let e of this.rows)t.find(r=>r._id===e._id)||this._commercediscountService.delete(e);for(let e of t){let r=this.rows.find(l=>l._id===e._id);r?(this._core.copy(e,r),this._commercediscountService.update(r)):(this.commerce&&(e.commerce=this.commerce),e.__created=!1,this._commercediscountService.create(e))}}})}}static{this.\u0275fac=function(t){return new(t||o)(s(w),s(D),s(a),s(I),s(n),s(S))}}static{this.\u0275cmp=p({type:o,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commercediscounts",3,"columns","config","rows"]],template:function(t,e){t&1&&C(0,"wtable",0),t&2&&v("columns",e.columns)("config",e.config)("rows",e.rows)},dependencies:[k],encapsulation:2})}}return o})();var N=[{path:"",component:u},{path:":commerce_id",component:u}],K=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=_({type:o})}static{this.\u0275inj=h({imports:[y.forChild(N),M]})}}return o})();export{K as CommercediscountsModule}; diff --git a/chunk-QDUYERLZ.js b/chunk-QDUYERLZ.js new file mode 100644 index 0000000..d4a78f2 --- /dev/null +++ b/chunk-QDUYERLZ.js @@ -0,0 +1 @@ +import{e as M}from"./chunk-LQFWOSYV.js";import{I as m,L as u,M as _,Pa as S,R as v,Ta as y,X as C,_a as n,bb as g,cb as j,db as b,fb as l,kb as w,q as h,r as d,rb as k,t as s,tb as I}from"./chunk-65U4F77E.js";var x={formId:"commerceportfolio",title:"Commerceportfolio",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commerceportfolio title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commerceportfolio description"},{name:"Label",value:"Description"}]}]};var D=(()=>{class t extends g{constructor(i,o,e,c){super({name:"commerceportfolio"},i,o,e,c),this.commerceportfolios=this.getDocs(),this.commerceportfoliosByAuthor={},this.get(),this.filteredDocuments(this.commerceportfoliosByAuthor)}static{this.\u0275fac=function(o){return new(o||t)(s(b),s(j),s(l),s(n))}}static{this.\u0275prov=h({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var p=(()=>{class t{get rows(){return this._commerceportfolioService.commerceportfolios}constructor(i,o,e,c,a,T){this._translate=i,this._commerceportfolioService=o,this._alert=e,this._form=c,this._core=a,this._router=T,this.columns=["name","description"],this.commerce=this._router.url.includes("/commerceportfolios/")?this._router.url.replace("/commerceportfolios/",""):"",this.form=this._form.getForm("commerceportfolio",x),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(r,f)=>{this.commerce&&(r.commerce=this.commerce),this._commerceportfolioService.create(r),f()}})},update:r=>{this._form.modal(this.form,[],r).then(f=>{this._core.copy(f,r),this._commerceportfolioService.update(r)})},delete:r=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commerceportfolio?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commerceportfolioService.delete(r)}}]})},buttons:[{icon:"cloud_download",click:r=>{this._form.modalUnique("commerceportfolio","url",r)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(o=>{if(i)for(let e of o)this.commerce&&(e.commerce=this.commerce),this._commerceportfolioService.create(e);else{for(let e of this.rows)o.find(c=>c._id===e._id)||this._commerceportfolioService.delete(e);for(let e of o){let c=this.rows.find(a=>a._id===e._id);c?(this._core.copy(e,c),this._commerceportfolioService.update(c)):(this.commerce&&(e.commerce=this.commerce),e.__created=!1,this._commerceportfolioService.create(e))}}})}}static{this.\u0275fac=function(o){return new(o||t)(m(w),m(D),m(l),m(I),m(n),m(S))}}static{this.\u0275cmp=u({type:t,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commerceportfolios",3,"columns","config","rows"]],template:function(o,e){o&1&&C(0,"wtable",0),o&2&&v("columns",e.columns)("config",e.config)("rows",e.rows)},dependencies:[k],encapsulation:2})}}return t})();var N=[{path:"",component:p},{path:":commerce_id",component:p}],K=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=_({type:t})}static{this.\u0275inj=d({imports:[y.forChild(N),M]})}}return t})();export{K as CommerceportfoliosModule}; diff --git a/chunk-R2GTPXUY.js b/chunk-R2GTPXUY.js new file mode 100644 index 0000000..4f9d337 --- /dev/null +++ b/chunk-R2GTPXUY.js @@ -0,0 +1 @@ +import{a as k}from"./chunk-ANGIOSFH.js";import{e as T}from"./chunk-LQFWOSYV.js";import{$ as y,Ca as M,H as b,I as s,L as C,M as x,P as p,R as a,Ta as O,V as f,W as _,_ as w,_a as P,aa as c,fb as v,kb as U,ob as j,qb as F,r as g,rb as I,tb as S,w as u,x as h}from"./chunk-65U4F77E.js";function N(t,l){if(t&1){let n=w();f(0,"winput",3),y("wChange",function(e){let o=u(n).$implicit,d=c().$implicit,r=c();return o.is[d]=e,h(r.update(o))}),_()}if(t&2){let n=l.$implicit,i=c().$implicit;a("value",n.is[i])}}function A(t,l){if(t&1&&p(0,N,1,1,"ng-template",2),t&2){let n=l.$implicit;a("cell",n)}}var $=(()=>{class t{get roles(){return this._us.roles}get users(){return this._us.users}constructor(n,i,e,o,d){this._translate=n,this._alert=i,this._form=e,this._core=o,this._us=d,this.form=this._form.getForm("user"),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(r,m)=>{this._us.create(r,{alert:"User has been created",callback:m.bind(this)})}}).then(this._us.create.bind(this))},update:r=>{this._form.modal(this.form,[],r).then(m=>{this._core.copy(m,r),this._us.update(r,{alert:"User has been updated"})})},delete:r=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this user?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._us.delete(r,{name:"admin",alert:"User has been deleted",callback:()=>{}})}}]})},headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]},this.columns=["name","email"];for(let r of this._us.roles)this.columns.push(r)}update(n){this._us.updateAdmin(n)}_bulkManagement(n=!0){return()=>{this._form.modalDocs(n?[]:this.users).then(i=>{for(let e of this.users)i.find(o=>o._id===e._id)||this._us.delete(e);for(let e of i)n?this._us.create(e):(this._core.copy(e,this._us.doc(e._id)),this._us.update(e))})}}static{this.\u0275fac=function(i){return new(i||t)(s(U),s(v),s(S),s(P),s(k))}}static{this.\u0275cmp=C({type:t,selectors:[["app-users"]],standalone:!1,decls:2,vars:4,consts:[["title","Users",3,"columns","config","rows"],[4,"ngFor","ngForOf"],[3,"cell"],["type","checkbox",3,"wChange","value"]],template:function(i,e){i&1&&(f(0,"wtable",0),p(1,A,1,1,null,1),_()),i&2&&(a("columns",e.columns)("config",e.config)("rows",e.users),b(),a("ngForOf",e.roles))},dependencies:[M,j,I,F],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.w-table-user[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap}.w-table-user__img[_ngcontent-%COMP%]{width:30px;height:30px;min-width:30px;min-height:30px;margin-right:10px}.w-table-user__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:var(--b-radius-img)}@media (max-width: 991.9px){.w-table-user__img[_ngcontent-%COMP%]{display:none}}@media (max-width: 991.9px){.w-table[_ngcontent-%COMP%] .email[_ngcontent-%COMP%], .w-table[_ngcontent-%COMP%] .role[_ngcontent-%COMP%]{display:none}}.w-table[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{height:18px;max-height:18px;display:block}.w-table[_ngcontent-%COMP%] .checkbox__body[_ngcontent-%COMP%]{padding:2px}.users-field[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-end}.users-field[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:10px}.users-field[_ngcontent-%COMP%] .forms[_ngcontent-%COMP%]{width:100%}@media (max-width: 575.9px){.users-field[_ngcontent-%COMP%]{flex-direction:column;align-items:center}.users-field[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin-bottom:20px;width:100%}}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{transition:var(--transition)}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]:hover{color:var(--c-error)}.w-table__td.actions[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%] i[_ngcontent-%COMP%] + i[_ngcontent-%COMP%]{margin-left:15px}.users__header[_ngcontent-%COMP%]{letter-spacing:0;line-height:23px;font-weight:500;font-size:20px;color:var(--c-text-primary);display:flex;justify-content:space-between;align-items:center;border-radius:var(--b-radius)}"]})}}return t})();var V=[{path:"",component:$}],W=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=x({type:t})}static{this.\u0275inj=g({imports:[O.forChild(V),T]})}}return t})();export{W as UsersModule}; diff --git a/chunk-SYZARBGJ.js b/chunk-SYZARBGJ.js new file mode 100644 index 0000000..5146760 --- /dev/null +++ b/chunk-SYZARBGJ.js @@ -0,0 +1 @@ +import{a as h,b as g,c as _,d as f}from"./chunk-2ZMTOFWJ.js";import{e as m}from"./chunk-LQFWOSYV.js";import{L as p,M as c,Ta as C,V as e,W as t,X as a,ia as n,r as s,y as r,z as l}from"./chunk-65U4F77E.js";var x=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275cmp=p({type:i,selectors:[["ng-component"]],standalone:!1,decls:63,vars:0,consts:[[1,"components-wrapper"],["header","",1,"accardion__header"],[1,"accardion__header-icon"],["width","40","height","40","viewBox","0 0 40 40","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M10.8333 22.5H22.5V20.8333H10.8333V22.5ZM10.8333 17.5H29.1667V15.8333H10.8333V17.5ZM10.8333 12.5H29.1667V10.8333H10.8333V12.5ZM5 33.4617V7.69333C5 6.92556 5.25722 6.285 5.77167 5.77167C6.28611 5.25833 6.92611 5.00111 7.69167 5H32.3083C33.075 5 33.715 5.25722 34.2283 5.77167C34.7417 6.28611 34.9989 6.92667 35 7.69333V25.6417C35 26.4083 34.7428 27.0489 34.2283 27.5633C33.7139 28.0778 33.0739 28.3344 32.3083 28.3333H10.1283L5 33.4617ZM9.41667 26.6667H32.3083C32.5639 26.6667 32.7989 26.56 33.0133 26.3467C33.2278 26.1333 33.3344 25.8983 33.3333 25.6417V7.69167C33.3333 7.43611 33.2267 7.20111 33.0133 6.98667C32.8 6.77222 32.565 6.66556 32.3083 6.66667H7.69167C7.43611 6.66667 7.20111 6.77333 6.98667 6.98667C6.77222 7.2 6.66556 7.435 6.66667 7.69167V29.4083L9.41667 26.6667Z","fill","#B9B01F"],["body","",1,"accardion__body"],["d","M29.7504 13.6832C31.31 14.5771 32.6125 15.8582 33.5322 17.4028C34.4518 18.9473 34.9574 20.703 35 22.5C35.0094 24.6008 34.3367 26.6478 33.0832 28.3336L35 35L28.3336 32.1168C26.4973 32.9314 24.5088 33.3459 22.5 33.3328C20.0094 33.425 17.5486 32.7674 15.4359 31.4452C13.3233 30.123 11.6562 28.1971 10.6504 25.9168","stroke","url(#paint0_linear_5_51)","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M30 15.8336C30 21.8168 24.4 26.6664 17.5 26.6664C15.4912 26.6794 13.5027 26.2649 11.6664 25.4504L10.5832 25.9168L5 28.3328L6.9168 21.6664C5.66343 19.9808 4.99082 17.9341 5 15.8336C5 9.8496 10.6 5 17.5 5C23.5504 5 28.6 8.7336 29.7504 13.6832C29.9184 14.3872 30.0016 15.1096 30 15.8336Z","stroke","url(#paint1_linear_5_51)","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["id","paint0_linear_5_51","x1","10.6504","y1","13.6832","x2","33.1714","y2","36.4622","gradientUnits","userSpaceOnUse"],["stop-color","#F5E920"],["offset","1","stop-color","#ABA31E"],["id","paint1_linear_5_51","x1","4.99991","y1","5","x2","29.6183","y2","28.3567","gradientUnits","userSpaceOnUse"],["d","M16 8C16 6.93913 16.4214 5.92172 17.1716 5.17157C17.9217 4.42143 18.9391 4 20 4C21.0609 4 22.0783 4.42143 22.8284 5.17157C23.5786 5.92172 24 6.93913 24 8V32C24 33.0609 23.5786 34.0783 22.8284 34.8284C22.0783 35.5786 21.0609 36 20 36C18.9391 36 17.9217 35.5786 17.1716 34.8284C16.4214 34.0783 16 33.0609 16 32V8ZM20 6C19.4696 6 18.9609 6.21071 18.5858 6.58579C18.2107 6.96086 18 7.46957 18 8V32C18 32.5304 18.2107 33.0391 18.5858 33.4142C18.9609 33.7893 19.4696 34 20 34C20.5304 34 21.0391 33.7893 21.4142 33.4142C21.7893 33.0391 22 32.5304 22 32V8C22 7.46957 21.7893 6.96086 21.4142 6.58579C21.0391 6.21071 20.5304 6 20 6ZM4 24C4 22.9391 4.42143 21.9217 5.17157 21.1716C5.92172 20.4214 6.93913 20 8 20C9.06087 20 10.0783 20.4214 10.8284 21.1716C11.5786 21.9217 12 22.9391 12 24V32C12 33.0609 11.5786 34.0783 10.8284 34.8284C10.0783 35.5786 9.06087 36 8 36C6.93913 36 5.92172 35.5786 5.17157 34.8284C4.42143 34.0783 4 33.0609 4 32V24ZM8 22C7.46957 22 6.96086 22.2107 6.58579 22.5858C6.21071 22.9609 6 23.4696 6 24V32C6 32.5304 6.21071 33.0391 6.58579 33.4142C6.96086 33.7893 7.46957 34 8 34C8.53043 34 9.03914 33.7893 9.41421 33.4142C9.78929 33.0391 10 32.5304 10 32V24C10 23.4696 9.78929 22.9609 9.41421 22.5858C9.03914 22.2107 8.53043 22 8 22ZM32 12C30.9391 12 29.9217 12.4214 29.1716 13.1716C28.4214 13.9217 28 14.9391 28 16V32C28 33.0609 28.4214 34.0783 29.1716 34.8284C29.9217 35.5786 30.9391 36 32 36C33.0609 36 34.0783 35.5786 34.8284 34.8284C35.5786 34.0783 36 33.0609 36 32V16C36 14.9391 35.5786 13.9217 34.8284 13.1716C34.0783 12.4214 33.0609 12 32 12ZM30 16C30 15.4696 30.2107 14.9609 30.5858 14.5858C30.9609 14.2107 31.4696 14 32 14C32.5304 14 33.0391 14.2107 33.4142 14.5858C33.7893 14.9609 34 15.4696 34 16V32C34 32.5304 33.7893 33.0391 33.4142 33.4142C33.0391 33.7893 32.5304 34 32 34C31.4696 34 30.9609 33.7893 30.5858 33.4142C30.2107 33.0391 30 32.5304 30 32V16Z","fill","url(#paint0_linear_7_145)"],["id","paint0_linear_7_145","x1","4","y1","4","x2","37.5613","y2","33.7177","gradientUnits","userSpaceOnUse"]],template:function(o,w){o&1&&(e(0,"div",0)(1,"wcollapse")(2,"div",1)(3,"div",2),r(),e(4,"svg",3),a(5,"path",4),t()(),l(),e(6,"h1"),n(7,"This is the header collapse"),t()(),e(8,"div",5)(9,"p"),n(10," It is a long established "),e(11,"span"),n(12,"fact that"),t(),n(13," a reader will be distracted by the readable content of a page when looking at its layout "),t()()(),e(14,"wcollapse")(15,"div",1)(16,"div",2),r(),e(17,"svg",3),a(18,"path",6)(19,"path",7),e(20,"defs")(21,"linearGradient",8),a(22,"stop",9)(23,"stop",10),t(),e(24,"linearGradient",11),a(25,"stop",9)(26,"stop",10),t()()()(),l(),e(27,"h1"),n(28,"This is the header collapse"),t()(),e(29,"div",5)(30,"p"),n(31," It is a long established "),e(32,"span"),n(33,"fact that"),t(),n(34," a reader will be distracted by the readable content of a page when looking at its layout "),t()()(),e(35,"wcollapse")(36,"div",1)(37,"div",2),r(),e(38,"svg",3),a(39,"path",12),e(40,"defs")(41,"linearGradient",13),a(42,"stop",9)(43,"stop",10),t()()()(),l(),e(44,"h1"),n(45,"This is the header collapse"),t()(),e(46,"div",5)(47,"p"),n(48," It is a long established "),e(49,"span"),n(50,"fact that"),t(),n(51," a reader will be distracted by the readable content of a page when looking at its layout "),t()()(),e(52,"wcollapse")(53,"div",1)(54,"h1"),n(55,"This is the header collapse"),t()(),e(56,"div",5)(57,"p"),n(58," It is a long established "),e(59,"span"),n(60,"fact that"),t(),n(61," a reader will be distracted by the readable content of a page when looking at its layout "),t()()(),a(62,"wcalendar"),t())},dependencies:[h,_],styles:[".components-wrapper[_ngcontent-%COMP%]{padding:20px;height:100vh;overflow-y:scroll}.accardion-wrapper[_ngcontent-%COMP%]{max-width:600px;border:1px solid #9095be;margin-bottom:20px;border-radius:12px}.accardion__header[_ngcontent-%COMP%]{display:flex;align-items:center}.accardion__header-icon[_ngcontent-%COMP%]{margin-right:10px;display:flex}.accardion__header-icon[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:32px;height:32px}.accardion__header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-weight:400;font-size:20px;color:#fff}.accardion__body[_ngcontent-%COMP%]{padding:10px;border-top:1px solid #9095be;background:#1e1e1e;border-radius:0 0 12px 12px;color:#fff}.accardion__body[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}.accardion__body[_ngcontent-%COMP%] p[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#b9b01f}.accardion__arrow[_ngcontent-%COMP%]{margin-left:20px;display:flex}.accardion__arrow[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:38px;height:38px}"]})}}return i})();var u=[{path:"",component:x}],k=(()=>{class i{static{this.\u0275fac=function(o){return new(o||i)}}static{this.\u0275mod=c({type:i})}static{this.\u0275inj=s({imports:[C.forChild(u),m,g,f]})}}return i})();export{k as TestModule}; diff --git a/chunk-UF7PIHYJ.js b/chunk-UF7PIHYJ.js new file mode 100644 index 0000000..5e78e03 --- /dev/null +++ b/chunk-UF7PIHYJ.js @@ -0,0 +1 @@ +import{e as M}from"./chunk-LQFWOSYV.js";import{I as m,L as u,M as g,Pa as C,R as _,Ta as S,X as v,_a as a,bb as y,cb as j,db as b,fb as n,kb as w,q as d,r as p,rb as k,t as s,tb as I}from"./chunk-65U4F77E.js";var x={formId:"commercetag",title:"Commercetag",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commercetag title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commercetag description"},{name:"Label",value:"Description"}]}]};var D=(()=>{class o extends y{constructor(i,t,e,c){super({name:"commercetag"},i,t,e,c),this.commercetags=this.getDocs(),this.commercetagsByAuthor={},this.get(),this.filteredDocuments(this.commercetagsByAuthor)}static{this.\u0275fac=function(t){return new(t||o)(s(b),s(j),s(n),s(a))}}static{this.\u0275prov=d({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var h=(()=>{class o{get rows(){return this._commercetagService.commercetags}constructor(i,t,e,c,l,T){this._translate=i,this._commercetagService=t,this._alert=e,this._form=c,this._core=l,this._router=T,this.columns=["name","description"],this.commerce=this._router.url.includes("/commercetags/")?this._router.url.replace("/commercetags/",""):"",this.form=this._form.getForm("commercetag",x),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(r,f)=>{this.commerce&&(r.commerce=this.commerce),this._commercetagService.create(r),f()}})},update:r=>{this._form.modal(this.form,[],r).then(f=>{this._core.copy(f,r),this._commercetagService.update(r)})},delete:r=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commercetag?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commercetagService.delete(r)}}]})},buttons:[{icon:"cloud_download",click:r=>{this._form.modalUnique("commercetag","url",r)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(t=>{if(i)for(let e of t)this.commerce&&(e.commerce=this.commerce),this._commercetagService.create(e);else{for(let e of this.rows)t.find(c=>c._id===e._id)||this._commercetagService.delete(e);for(let e of t){let c=this.rows.find(l=>l._id===e._id);c?(this._core.copy(e,c),this._commercetagService.update(c)):(this.commerce&&(e.commerce=this.commerce),e.__created=!1,this._commercetagService.create(e))}}})}}static{this.\u0275fac=function(t){return new(t||o)(m(w),m(D),m(n),m(I),m(a),m(C))}}static{this.\u0275cmp=u({type:o,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commercetags",3,"columns","config","rows"]],template:function(t,e){t&1&&v(0,"wtable",0),t&2&&_("columns",e.columns)("config",e.config)("rows",e.rows)},dependencies:[k],encapsulation:2})}}return o})();var N=[{path:"",component:h},{path:":commerce_id",component:h}],K=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=g({type:o})}static{this.\u0275inj=p({imports:[S.forChild(N),M]})}}return o})();export{K as CommercetagsModule}; diff --git a/chunk-VGL5NSMG.js b/chunk-VGL5NSMG.js new file mode 100644 index 0000000..6a7422c --- /dev/null +++ b/chunk-VGL5NSMG.js @@ -0,0 +1 @@ +import{e as j}from"./chunk-LQFWOSYV.js";import{I as m,L as h,M as p,R as _,Ta as C,X as v,_a as s,bb as y,cb as S,db as g,fb as a,kb as F,q as f,r as u,rb as b,t as n,tb as w}from"./chunk-65U4F77E.js";var k={formId:"commerce",title:"Commerce",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commerce title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commerce description"},{name:"Label",value:"Description"}]}]};var M=(()=>{class r extends y{constructor(i,o,t,c){super({name:"commerce"},i,o,t,c),this.commerces=this.getDocs(),this.commercesByAuthor={},this.get(),this.filteredDocuments(this.commercesByAuthor)}static{this.\u0275fac=function(o){return new(o||r)(n(g),n(S),n(a),n(s))}}static{this.\u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var x=(()=>{class r{get rows(){return this._commerceService.commerces}constructor(i,o,t,c,l){this._translate=i,this._commerceService=o,this._alert=t,this._form=c,this._core=l,this.columns=["name","description"],this.form=this._form.getForm("commerce",k),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(e,d)=>{this._commerceService.create(e),d()}})},update:e=>{this._form.modal(this.form,[],e).then(d=>{this._core.copy(d,e),this._commerceService.update(e)})},delete:e=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commerce?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commerceService.delete(e)}}]})},buttons:[{icon:"list_alt",hrefFunc:e=>"/commerceorders/"+e._id},{icon:"store",hrefFunc:e=>"/commercestores/"+e._id},{icon:"home",hrefFunc:e=>"/commercewarehouses/"+e._id},{icon:"production_quantity_limits",hrefFunc:e=>"/commerceproducts/"+e._id},{icon:"room_service",hrefFunc:e=>"/commerceservices/"+e._id},{icon:"photo_camera",hrefFunc:e=>"/commerceportfolios/"+e._id},{icon:"style",hrefFunc:e=>"/commercetag/"+e._id},{icon:"branding_watermark",hrefFunc:e=>"/commercebrand/"+e._id},{icon:"percent",hrefFunc:e=>"/commercediscounts/"+e._id},{icon:"cloud_download",click:e=>{this._form.modalUnique("commerce","url",e)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(o=>{if(i)for(let t of o)this._commerceService.create(t);else{for(let t of this.rows)o.find(c=>c._id===t._id)||this._commerceService.delete(t);for(let t of o){let c=this.rows.find(l=>l._id===t._id);c?(this._core.copy(t,c),this._commerceService.update(c)):(t.__created=!1,this._commerceService.create(t))}}})}}static{this.\u0275fac=function(o){return new(o||r)(m(F),m(M),m(a),m(w),m(s))}}static{this.\u0275cmp=h({type:r,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commerces",3,"columns","config","rows"]],template:function(o,t){o&1&&v(0,"wtable",0),o&2&&_("columns",t.columns)("config",t.config)("rows",t.rows)},dependencies:[b],encapsulation:2})}}return r})();var A=[{path:"",component:x}],E=(()=>{class r{static{this.\u0275fac=function(o){return new(o||r)}}static{this.\u0275mod=p({type:r})}static{this.\u0275inj=u({imports:[C.forChild(A),j]})}}return r})();export{E as CommercesModule}; diff --git a/chunk-VGZ42PZE.js b/chunk-VGZ42PZE.js new file mode 100644 index 0000000..843143e --- /dev/null +++ b/chunk-VGZ42PZE.js @@ -0,0 +1 @@ +import{e as M}from"./chunk-LQFWOSYV.js";import{I as s,L as u,M as _,Pa as S,R as v,Ta as y,X as C,_a as n,bb as g,cb as j,db as b,fb as a,kb as w,q as d,r as p,rb as k,t as m,tb as I}from"./chunk-65U4F77E.js";var x={formId:"commercestore",title:"Commercestore",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commercestore title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commercestore description"},{name:"Label",value:"Description"}]}]};var D=(()=>{class o extends g{constructor(r,t,e,c){super({name:"commercestore"},r,t,e,c),this.commercestores=this.getDocs(),this.commercestoresByAuthor={},this.get(),this.filteredDocuments(this.commercestoresByAuthor)}static{this.\u0275fac=function(t){return new(t||o)(m(b),m(j),m(a),m(n))}}static{this.\u0275prov=d({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var h=(()=>{class o{get rows(){return this._commercestoreService.commercestores}constructor(r,t,e,c,l,T){this._translate=r,this._commercestoreService=t,this._alert=e,this._form=c,this._core=l,this._router=T,this.columns=["name","description"],this.commerce=this._router.url.includes("/commercestores/")?this._router.url.replace("/commercestores/",""):"",this.form=this._form.getForm("commercestore",x),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(i,f)=>{this.commerce&&(i.commerce=this.commerce),this._commercestoreService.create(i),f()}})},update:i=>{this._form.modal(this.form,[],i).then(f=>{this._core.copy(f,i),this._commercestoreService.update(i)})},delete:i=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commercestore?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commercestoreService.delete(i)}}]})},buttons:[{icon:"cloud_download",click:i=>{this._form.modalUnique("commercestore","url",i)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(r=!0){return()=>{this._form.modalDocs(r?[]:this.rows).then(t=>{if(r)for(let e of t)this.commerce&&(e.commerce=this.commerce),this._commercestoreService.create(e);else{for(let e of this.rows)t.find(c=>c._id===e._id)||this._commercestoreService.delete(e);for(let e of t){let c=this.rows.find(l=>l._id===e._id);c?(this._core.copy(e,c),this._commercestoreService.update(c)):(this.commerce&&(e.commerce=this.commerce),e.__created=!1,this._commercestoreService.create(e))}}})}}static{this.\u0275fac=function(t){return new(t||o)(s(w),s(D),s(a),s(I),s(n),s(S))}}static{this.\u0275cmp=u({type:o,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commercestores",3,"columns","config","rows"]],template:function(t,e){t&1&&C(0,"wtable",0),t&2&&v("columns",e.columns)("config",e.config)("rows",e.rows)},dependencies:[k],encapsulation:2})}}return o})();var N=[{path:"",component:h},{path:":commerce_id",component:h}],K=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=_({type:o})}static{this.\u0275inj=p({imports:[y.forChild(N),M]})}}return o})();export{K as CommercestoresModule}; diff --git a/chunk-VMTNNAKU.js b/chunk-VMTNNAKU.js new file mode 100644 index 0000000..08f838a --- /dev/null +++ b/chunk-VMTNNAKU.js @@ -0,0 +1 @@ +import{e as M}from"./chunk-LQFWOSYV.js";import{I as s,L as p,M as w,Pa as C,R as _,Ta as S,X as v,_a as a,bb as y,cb as g,db as j,fb as n,kb as b,q as f,r as d,rb as k,t as m,tb as I}from"./chunk-65U4F77E.js";var x={formId:"commercewarehouse",title:"Commercewarehouse",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commercewarehouse title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commercewarehouse description"},{name:"Label",value:"Description"}]}]};var D=(()=>{class t extends y{constructor(r,o,e,c){super({name:"commercewarehouse"},r,o,e,c),this.commercewarehouses=this.getDocs(),this.commercewarehousesByAuthor={},this.get(),this.filteredDocuments(this.commercewarehousesByAuthor)}static{this.\u0275fac=function(o){return new(o||t)(m(j),m(g),m(n),m(a))}}static{this.\u0275prov=f({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var u=(()=>{class t{get rows(){return this._commercewarehouseService.commercewarehouses}constructor(r,o,e,c,h,T){this._translate=r,this._commercewarehouseService=o,this._alert=e,this._form=c,this._core=h,this._router=T,this.columns=["name","description"],this.commerce=this._router.url.includes("/commercewarehouses/")?this._router.url.replace("/commercewarehouses/",""):"",this.form=this._form.getForm("commercewarehouse",x),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(i,l)=>{this.commerce&&(i.commerce=this.commerce),this._commercewarehouseService.create(i),l()}})},update:i=>{this._form.modal(this.form,[],i).then(l=>{this._core.copy(l,i),this._commercewarehouseService.update(i)})},delete:i=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commercewarehouse?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commercewarehouseService.delete(i)}}]})},buttons:[{icon:"cloud_download",click:i=>{this._form.modalUnique("commercewarehouse","url",i)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(r=!0){return()=>{this._form.modalDocs(r?[]:this.rows).then(o=>{if(r)for(let e of o)this.commerce&&(e.commerce=this.commerce),this._commercewarehouseService.create(e);else{for(let e of this.rows)o.find(c=>c._id===e._id)||this._commercewarehouseService.delete(e);for(let e of o){let c=this.rows.find(h=>h._id===e._id);c?(this._core.copy(e,c),this._commercewarehouseService.update(c)):(this.commerce&&(e.commerce=this.commerce),e.__created=!1,this._commercewarehouseService.create(e))}}})}}static{this.\u0275fac=function(o){return new(o||t)(s(b),s(D),s(n),s(I),s(a),s(C))}}static{this.\u0275cmp=p({type:t,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commercewarehouses",3,"columns","config","rows"]],template:function(o,e){o&1&&v(0,"wtable",0),o&2&&_("columns",e.columns)("config",e.config)("rows",e.rows)},dependencies:[k],encapsulation:2})}}return t})();var N=[{path:"",component:u},{path:":commerce_id",component:u}],K=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=w({type:t})}static{this.\u0275inj=d({imports:[S.forChild(N),M]})}}return t})();export{K as CommercewarehousesModule}; diff --git a/chunk-X7V5V4VW.js b/chunk-X7V5V4VW.js new file mode 100644 index 0000000..31d096b --- /dev/null +++ b/chunk-X7V5V4VW.js @@ -0,0 +1 @@ +import{a as k}from"./chunk-ANGIOSFH.js";import{b as z,e as T}from"./chunk-LQFWOSYV.js";import{$ as s,Da as C,H as d,I as r,L as x,M as w,P as b,Pa as v,R as l,Ta as y,V as o,W as a,_,aa as g,db as M,eb as P,fb as O,ia as h,ib as S,kb as I,r as u,tb as j,ub as E,w as m,x as f}from"./chunk-65U4F77E.js";function D(t,F){if(t&1){let e=_();o(0,"span",8),s("click",function(){m(e);let i=g();return f(i.us.setMode("dark"))}),h(1," dark_mode "),a()}}function H(t,F){if(t&1){let e=_();o(0,"span",8),s("click",function(){m(e);let i=g();return f(i.us.setMode())}),h(1," light_mode "),a()}}var V=(()=>{class t{constructor(e,n,i,p,L,N,U,q){this.us=e,this.ui=n,this._alert=i,this._http=p,this._hash=L,this._router=N,this._form=U,this._translate=q,this.form=this._form.getForm("sign",{formId:"sign",title:"Sign In / Sign Up",components:[{name:"Email",key:"email",focused:!0,required:!0,fields:[{name:"Placeholder",value:"Enter your email"},{name:"Label",value:"Email"}]},{name:"Password",key:"password",required:!0,fields:[{name:"Placeholder",value:"Enter your password"},{name:"Label",value:"Password"}]},{name:"Number",key:"resetPin",fields:[{name:"Placeholder",value:"Enter code from email"},{name:"Label",value:"code"}],hidden:!0},{name:"Button",fields:[{name:"Label",value:"Let's go"},{name:"Submit",value:!0},{name:"Click",value:()=>{this.submit()}}]}]}),this.user={email:"ceo@webart.work",password:"asdasdasdasd",resetPin:null},this._set=c=>{c?(localStorage.setItem("waw_user",JSON.stringify(c)),this._http.set("token",c.token),this.us.setUser(c),this.us.get(),this._router.navigateByUrl("/profile")):this._alert.error({text:"Something went wrong"})}}submit(){!this.form.components[2].hidden&&this.user.resetPin?this.save():this.user.email||this._alert.error({text:this._translate.translate("Sign.Enter your email")}),this.ui.valid(this.user.email)?this.user.password?(this._hash.set("email",this.user.email),this._http.post("/api/user/status",this.user,e=>{e.email&&e.pass?this.login():e.email?this.reset():this.sign()})):this._alert.error({text:this._translate.translate("Sign.Enter your password")}):this._alert.error({text:this._translate.translate("Sign.Enter proper email")})}login(){this._http.post("/api/user/login",this.user,this._set.bind(this))}sign(){this._http.post("/api/user/sign",this.user,this._set.bind(this))}reset(){this._http.post("/api/user/request",this.user,()=>{this.form.components[2].hidden=!1}),this._alert.info({text:"Mail will sent to your email"})}save(){this._http.post("/api/user/change",this.user,e=>{e?this._alert.info({text:"Password successfully changed"}):this._alert.error({text:"Wrong Code"}),this.login()})}static{this.\u0275fac=function(n){return new(n||t)(r(k),r(S),r(O),r(M),r(P),r(v),r(j),r(I))}}static{this.\u0275cmp=x({type:t,selectors:[["ng-component"]],standalone:!1,decls:9,vars:4,consts:[[1,"auth-wrapper"],[1,"auth__wrap"],[1,"auth__img"],[3,"click"],[1,"auth__form"],[1,"auth"],["class","material-icons",3,"click",4,"ngIf"],[3,"wSubmit","submition","config"],[1,"material-icons",3,"click"]],template:function(n,i){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"icon-spider",3),s("click",function(){return i.us.setMode(i.us.mode?"":"dark")}),a()(),o(4,"div",4)(5,"div",5),b(6,D,2,0,"span",6)(7,H,2,0,"span",6),o(8,"wform",7),s("wSubmit",function(){return i.submit()}),a()()()()()),n&2&&(d(6),l("ngIf",!i.us.mode),d(),l("ngIf",i.us.mode),d(),l("submition",i.user)("config",i.form))},dependencies:[C,E,z],styles:["[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}[_nghost-%COMP%]{position:fixed;width:100%;height:100%;overflow-y:auto;display:flex;flex-direction:column}.auth-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:var(--c-bg-primary);flex-grow:1;padding:20px;transition:all .3s}.auth[_ngcontent-%COMP%]{max-width:340px;width:100%;padding:30px;border-radius:10px;box-shadow:0 0 6px var(--c-shadow);background:var(--c-bg-secondary);display:flex;flex-flow:row wrap;position:relative}.auth[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:absolute;right:25px;top:25px;z-index:9;cursor:pointer}@media (max-width: 767.9px){.auth[_ngcontent-%COMP%]{padding:25px;flex-flow:column wrap}}.auth__title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:var(--c-text-primary);text-align:center;margin-bottom:15px}@media (max-width: 767.9px){.auth__title[_ngcontent-%COMP%]{font-size:18px}}.auth__btn[_ngcontent-%COMP%]{text-align:center;margin-top:30px}.auth__btn[_ngcontent-%COMP%] .w-btn[_ngcontent-%COMP%]{margin:0;width:100%}.auth__wrap[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;align-items:center;max-width:880px;width:100%}@media (max-width: 767.9px){.auth__wrap[_ngcontent-%COMP%]{padding:25px;flex-flow:column wrap}}.auth__img[_ngcontent-%COMP%]{flex:0 0 50%;max-width:50%;display:flex;position:relative;padding-right:40px}.auth__img[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{left:50%;transform:translate(-78%);font-size:320px;position:absolute;opacity:0;cursor:pointer}@media (max-width: 767.9px){.auth__img[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:70px;transform:translate(-50%)}}.auth__img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:260px;width:100%;object-fit:cover}.auth__img[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:260px;width:100%;height:100%}@media (max-width: 767.9px){.auth__img[_ngcontent-%COMP%]{max-width:60px;margin:0 auto;flex:0 0 100%;padding:0 0 30px}.auth__img[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{height:100%;width:100%}}.auth__form[_ngcontent-%COMP%]{width:95%;flex:0 0 50%;max-width:50%;padding-left:40px;display:flex;justify-content:flex-end}@media (max-width: 767.9px){.auth__form[_ngcontent-%COMP%]{flex:0 0 100%;max-width:100%;justify-content:center;padding:0}}@media (max-width: 767.9px){.auth[_ngcontent-%COMP%] .form__title[_ngcontent-%COMP%]{font-size:14px}}wform[_ngcontent-%COMP%]{flex:1 0}@media (max-width: 767.9px){wform[_ngcontent-%COMP%]{flex:0 0 100%;padding:0}}.w-forms[_ngcontent-%COMP%]{position:relative}.w-forms__level[_ngcontent-%COMP%]{top:5px;right:5px;position:absolute;display:inline-block;color:var(--c-text-secondary);font-size:22px;letter-spacing:.3px;transition:.3s all ease-in-out}.w-forms__level._sky[_ngcontent-%COMP%]{color:#17a2b8}.w-forms__level._orange[_ngcontent-%COMP%]{color:#e67e22}.w-forms__level._green[_ngcontent-%COMP%]{color:#14c76e}.w-forms__input[_ngcontent-%COMP%]{padding-right:35px}.w-forms__input-block[_ngcontent-%COMP%]{position:relative}.w-forms__toggle[_ngcontent-%COMP%]{display:flex;position:absolute;right:10px;top:50%;color:var(--c-placeholder);transform:translateY(-50%);cursor:pointer}.w-forms__toggle[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:21px}.w-forms[_ngcontent-%COMP%] .icon-visibility[_ngcontent-%COMP%]{color:var(--c-primary)}@media screen and (max-width: 768px){.auth__img[_ngcontent-%COMP%]{display:none}}"]})}}return t})();var R=[{path:"",component:V}],ie=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=w({type:t})}static{this.\u0275inj=u({imports:[y.forChild(R),T]})}}return t})();export{ie as SignModule}; diff --git a/chunk-YRXDGEXZ.js b/chunk-YRXDGEXZ.js new file mode 100644 index 0000000..8b505c1 --- /dev/null +++ b/chunk-YRXDGEXZ.js @@ -0,0 +1 @@ +import{e as w}from"./chunk-LQFWOSYV.js";import{I as n,L as f,M as h,R as y,Ta as q,X as v,_a as s,bb as _,cb as C,db as S,fb as a,kb as g,q as d,r as p,rb as b,t as m,tb as j}from"./chunk-65U4F77E.js";var k={formId:"commerceproductquantity",title:"Commerceproductquantity",components:[{name:"Text",key:"name",focused:!0,fields:[{name:"Placeholder",value:"fill commerceproductquantity title"},{name:"Label",value:"Title"}]},{name:"Text",key:"description",fields:[{name:"Placeholder",value:"fill commerceproductquantity description"},{name:"Label",value:"Description"}]}]};var M=(()=>{class o extends _{constructor(i,e,t,r){super({name:"commerceproductquantity"},i,e,t,r),this.commerceproductquantitys=this.getDocs(),this.commerceproductquantitysByAuthor={},this.get(),this.filteredDocuments(this.commerceproductquantitysByAuthor)}static{this.\u0275fac=function(e){return new(e||o)(m(S),m(C),m(a),m(s))}}static{this.\u0275prov=d({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var x=(()=>{class o{get rows(){return this._commerceproductquantityService.commerceproductquantitys}constructor(i,e,t,r,u){this._translate=i,this._commerceproductquantityService=e,this._alert=t,this._form=r,this._core=u,this.columns=["name","description"],this.form=this._form.getForm("commerceproductquantity",k),this.config={create:()=>{this._form.modal(this.form,{label:"Create",click:(c,l)=>{this._commerceproductquantityService.create(c),l()}})},update:c=>{this._form.modal(this.form,[],c).then(l=>{this._core.copy(l,c),this._commerceproductquantityService.update(c)})},delete:c=>{this._alert.question({text:this._translate.translate("Common.Are you sure you want to delete this commerceproductquantity?"),buttons:[{text:this._translate.translate("Common.No")},{text:this._translate.translate("Common.Yes"),callback:()=>{this._commerceproductquantityService.delete(c)}}]})},buttons:[{icon:"cloud_download",click:c=>{this._form.modalUnique("commerceproductquantity","url",c)}}],headerButtons:[{icon:"playlist_add",click:this._bulkManagement(),class:"playlist"},{icon:"edit_note",click:this._bulkManagement(!1),class:"edit"}]}}_bulkManagement(i=!0){return()=>{this._form.modalDocs(i?[]:this.rows).then(e=>{if(i)for(let t of e)this._commerceproductquantityService.create(t);else{for(let t of this.rows)e.find(r=>r._id===t._id)||this._commerceproductquantityService.delete(t);for(let t of e){let r=this.rows.find(u=>u._id===t._id);r?(this._core.copy(t,r),this._commerceproductquantityService.update(r)):(t.__created=!1,this._commerceproductquantityService.create(t))}}})}}static{this.\u0275fac=function(e){return new(e||o)(n(g),n(M),n(a),n(j),n(s))}}static{this.\u0275cmp=f({type:o,selectors:[["ng-component"]],standalone:!1,decls:1,vars:3,consts:[["title","Commerceproductquantities",3,"columns","config","rows"]],template:function(e,t){e&1&&v(0,"wtable",0),e&2&&y("columns",t.columns)("config",t.config)("rows",t.rows)},dependencies:[b],encapsulation:2})}}return o})();var T=[{path:"",component:x}],E=(()=>{class o{static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275mod=h({type:o})}static{this.\u0275inj=p({imports:[q.forChild(T),w]})}}return o})();export{E as CommerceproductquantitiesModule}; diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..997406a Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..1dc1090 --- /dev/null +++ b/index.html @@ -0,0 +1,29 @@ + + + + + + + + + Platform default waw project + + + + + + + + + + + + + + + + + + + + diff --git a/main-HXQSPU4J.js b/main-HXQSPU4J.js new file mode 100644 index 0000000..b8f3157 --- /dev/null +++ b/main-HXQSPU4J.js @@ -0,0 +1 @@ +import{a as fn}from"./chunk-ANGIOSFH.js";import{e as gn}from"./chunk-LQFWOSYV.js";import{$ as M,$a as N,Aa as nn,B as Xt,D as Zt,Da as rn,E as ut,F as Jt,H as k,I as dt,Ia as sn,Ja as on,K as en,Ka as an,L as be,La as je,M as Me,Oa as Te,P as Oe,Pa as Ae,Qa as ln,R as C,Ra as cn,Sa as un,T as Ne,Ta as dn,Ua as ue,V as p,W as E,X as Z,_ as we,a as qe,aa as ce,ab as mn,c as Yt,ia as T,ja as tn,jb as hn,lb as pn,o as w,pa as B,q as $,r as Ce,t as X,u as Ht,w as Se,x as Ee}from"./chunk-65U4F77E.js";var _n=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=be({type:i,selectors:[["guest"]],standalone:!1,decls:1,vars:0,template:function(n,r){n&1&&Z(0,"router-outlet")},dependencies:[Te],encapsulation:2})}}return i})();var v=function(i){return i[i.State=0]="State",i[i.Transition=1]="Transition",i[i.Sequence=2]="Sequence",i[i.Group=3]="Group",i[i.Animate=4]="Animate",i[i.Keyframes=5]="Keyframes",i[i.Style=6]="Style",i[i.Trigger=7]="Trigger",i[i.Reference=8]="Reference",i[i.AnimateChild=9]="AnimateChild",i[i.AnimateRef=10]="AnimateRef",i[i.Query=11]="Query",i[i.Stagger=12]="Stagger",i}(v||{}),J="*";function Ue(i,e){return{type:v.Trigger,name:i,definitions:e,options:{}}}function de(i,e=null){return{type:v.Animate,styles:e,timings:i}}function yn(i,e=null){return{type:v.Sequence,steps:i,options:e}}function q(i){return{type:v.Style,styles:i,offset:null}}function Ve(i,e,t){return{type:v.State,name:i,styles:e,options:t}}function me(i,e,t=null){return{type:v.Transition,expr:i,animation:e,options:t}}var re=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Le=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,n=0,r=0,s=this.players.length;s==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++n==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(n=>{let r=n.totalTime?Math.min(1,t/n.totalTime):1;n.setPosition(r)})}getPosition(){let e=this.players.reduce((t,n)=>t===null||n.totalTime>t.totalTime?n:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},Qe="!";var vn=[Ue("flyInOut",[Ve("in",q({transform:"translateX(0)"})),me("void => *",[q({transform:"translateY(-10px)",opacity:0,height:"0"}),de(400)]),me("* => void",[de(400,q({opacity:0,height:"0",transform:"translateY(-10px)"}))])]),Ue("tabInOut",[Ve("in",q({transform:"translateX(0)"})),me("void => *",[q({transform:"translateX(10px)",opacity:0}),de(300)]),me("* => void",[de(300,q({opacity:0,transform:"translateX(10px)"}))])]),Ue("showInOut",[Ve("in",q({})),me("void => *",[q({opacity:0}),de(300)]),me("* => void",[de(300,q({opacity:0}))])])];var mt;try{mt=typeof Intl<"u"&&Intl.v8BreakIterator}catch{mt=!1}var Sn=(()=>{class i{_platformId=Ht(Zt);isBrowser=this._platformId?sn(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||mt)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||i)};static \u0275prov=$({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var j=()=>({exact:!0});function ti(i,e){if(i&1&&Z(0,"div",33),i&2){let t=ce();C("@showInOut",t.showSidebar)}}function ni(i,e){if(i&1){let t=we();p(0,"span",34),M("click",function(){Se(t);let r=ce();return Ee(r.us.setMode("dark"))}),T(1," dark_mode "),E()}}function ii(i,e){if(i&1){let t=we();p(0,"span",34),M("click",function(){Se(t);let r=ce();return Ee(r.us.setMode())}),T(1," light_mode "),E()}}function ri(i,e){if(i&1){let t=we();p(0,"a",35),M("click",function(){Se(t);let r=ce();return Ee(r.hideSidebar())}),p(1,"span",5),T(2,"people"),E(),p(3,"span",22),T(4,"Theme.Users"),E()()}i&2&&C("routerLinkActiveOptions",B(1,j))}function si(i,e){if(i&1){let t=we();p(0,"a",36),M("click",function(){Se(t);let r=ce();return Ee(r.hideSidebar())}),p(1,"span",5),T(2,"backup_table"),E(),p(3,"span",22),T(4,"Theme.Forms"),E()()}i&2&&C("routerLinkActiveOptions",B(1,j))}function oi(i,e){if(i&1){let t=we();p(0,"a",37),M("click",function(){Se(t);let r=ce();return Ee(r.hideSidebar())}),p(1,"span",5),T(2,"translate"),E(),p(3,"span",22),T(4,"Theme.Translates"),E()()}i&2&&C("routerLinkActiveOptions",B(1,j))}function ai(i,e){i&1&&Z(0,"hr")}var ht=(()=>{class i{hideSidebar(){!this._platform.ANDROID&&!this._platform.IOS&&(this.showSidebar=!1)}constructor(t,n){this.us=t,this._platform=n,this.url=ue.url,this.forceAvatarUrl="",this.showSidebar=!1}static{this.\u0275fac=function(n){return new(n||i)(dt(fn),dt(Sn))}}static{this.\u0275cmp=be({type:i,selectors:[["app-user"]],standalone:!1,decls:77,vars:37,consts:[["id","wrapper",1,"wrapper"],[1,"nav",3,"clickOutside"],[1,"nav__ul","container"],[1,"nav__li"],["routerLinkActive","_activeLink","routerLink","/profile",1,"nav__a",3,"click"],[1,"material-icons"],[1,"nav__li","_burger",3,"click"],[1,"nav__toggle"],[1,"nav__toggle-line"],[1,"main"],["class","fade",4,"ngIf"],[1,"nav__burger","_active"],[1,"nav__burger-list"],[1,"theme-switch"],["class","material-icons",3,"click",4,"ngIf"],["routerLink","/profile",1,"nav__burger-link","nav__burger-user"],["alt","Profile Picture","height","50","width","50",1,"avatar__img",3,"error","src"],[1,"name"],["routerLinkActive","_activeLink","routerLink","/admin/users","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/forms","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/admin/translates","class","nav__burger-link",3,"routerLinkActiveOptions","click",4,"ngIf"],["routerLinkActive","_activeLink","routerLink","/commerces",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["translate",""],["routerLinkActive","_activeLink","routerLink","/commerceorders",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/commercestores",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/commercewarehouses",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/commerceproducts",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/commerceservices",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/commerceportfolios",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/commercetags",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/commercebrands",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/commercediscounts",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],[4,"ngIf"],[1,"fade"],[1,"material-icons",3,"click"],["routerLinkActive","_activeLink","routerLink","/admin/users",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/forms",1,"nav__burger-link",3,"click","routerLinkActiveOptions"],["routerLinkActive","_activeLink","routerLink","/admin/translates",1,"nav__burger-link",3,"click","routerLinkActiveOptions"]],template:function(n,r){n&1&&(p(0,"div",0)(1,"nav",1),M("clickOutside",function(){return r.showSidebar=!1}),p(2,"ul",2)(3,"li",3)(4,"a",4),M("click",function(){return r.showSidebar=!1}),p(5,"span",5),T(6,"home"),E()()(),p(7,"li",6),M("click",function(){return r.showSidebar=!r.showSidebar}),p(8,"a",7),Z(9,"span",8),E()()()(),p(10,"div",9),Oe(11,ti,1,1,"div",10),p(12,"div",11)(13,"div",12)(14,"div",13),Oe(15,ni,2,0,"span",14)(16,ii,2,0,"span",14),E(),p(17,"a",15)(18,"img",16),M("error",function(){return r.forceAvatarUrl="assets/default.png"}),E(),p(19,"div",17),T(20),E()(),Z(21,"hr"),Oe(22,ri,5,2,"a",18)(23,si,5,2,"a",19)(24,oi,5,2,"a",20),p(25,"a",21),M("click",function(){return r.hideSidebar()}),p(26,"span",5),T(27,"business"),E(),p(28,"span",22),T(29,"Theme.Commerces"),E()(),p(30,"a",23),M("click",function(){return r.hideSidebar()}),p(31,"span",5),T(32,"list_alt"),E(),p(33,"span",22),T(34,"Theme.Orders"),E()(),p(35,"a",24),M("click",function(){return r.hideSidebar()}),p(36,"span",5),T(37,"store"),E(),p(38,"span",22),T(39,"Theme.Stores"),E()(),p(40,"a",25),M("click",function(){return r.hideSidebar()}),p(41,"span",5),T(42,"home"),E(),p(43,"span",22),T(44,"Theme.Warehouses"),E()(),p(45,"a",26),M("click",function(){return r.hideSidebar()}),p(46,"span",5),T(47,"production_quantity_limits"),E(),p(48,"span",22),T(49,"Theme.Products"),E()(),p(50,"a",27),M("click",function(){return r.hideSidebar()}),p(51,"span",5),T(52,"room_service"),E(),p(53,"span",22),T(54,"Theme.Services"),E()(),p(55,"a",28),M("click",function(){return r.hideSidebar()}),p(56,"span",5),T(57,"photo_camera"),E(),p(58,"span",22),T(59,"Theme.Portfolios"),E()(),p(60,"a",29),M("click",function(){return r.hideSidebar()}),p(61,"span",5),T(62,"style"),E(),p(63,"span",22),T(64,"Theme.Tags"),E()(),p(65,"a",30),M("click",function(){return r.hideSidebar()}),p(66,"span",5),T(67,"branding_watermark"),E(),p(68,"span",22),T(69,"Theme.Brands"),E()(),p(70,"a",31),M("click",function(){return r.hideSidebar()}),p(71,"span",5),T(72,"percent"),E(),p(73,"span",22),T(74,"Theme.Discounts"),E()(),Oe(75,ai,1,0,"hr",32),E()(),Z(76,"router-outlet"),E()()),n&2&&(k(2),Ne("_active",r.showSidebar),k(6),Ne("_active",r.showSidebar),k(2),Ne("showTable",r.showSidebar),k(),C("ngIf",r.showSidebar),k(),Ne("_active",r.showSidebar),k(3),C("ngIf",!r.us.mode),k(),C("ngIf",r.us.mode),k(2),C("src",r.forceAvatarUrl||r.us.user.thumb?r.url+r.us.user.thumb:"assets/default.png",Jt),k(2),tn(r.us.user.name||"Profile"),k(2),C("ngIf",r.us.role("admin")),k(),C("ngIf",r.us.role("admin")),k(),C("ngIf",r.us.role("admin")),k(),C("routerLinkActiveOptions",B(27,j)),k(5),C("routerLinkActiveOptions",B(28,j)),k(5),C("routerLinkActiveOptions",B(29,j)),k(5),C("routerLinkActiveOptions",B(30,j)),k(5),C("routerLinkActiveOptions",B(31,j)),k(5),C("routerLinkActiveOptions",B(32,j)),k(5),C("routerLinkActiveOptions",B(33,j)),k(5),C("routerLinkActiveOptions",B(34,j)),k(5),C("routerLinkActiveOptions",B(35,j)),k(5),C("routerLinkActiveOptions",B(36,j)),k(5),C("ngIf",r.us.role("admin")))},dependencies:[pn,rn,mn,Te,ln,cn],styles:['[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark[_ngcontent-%COMP%]:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}.wrapper[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column;background:var(--c-bg-primary);transition:all .5s ease-in-out}.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;position:relative;max-width:2000px;margin:0 auto;width:100%;padding:20px 270px 0 20px;transition:all .5s ease-in-out}@media screen and (max-width: 991px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:20px}}@media screen and (max-width: 767px){.wrapper[_ngcontent-%COMP%] .main[_ngcontent-%COMP%]{padding:10px}}hr[_ngcontent-%COMP%]{border:none;border-top:2px solid var(--c-text-primary);margin:5px 0}.nav[_ngcontent-%COMP%]{transition:all .5s ease-in-out;background:var(--c-basic);width:100%;box-shadow:0 3px 5px -1px #0003,0 6px 10px #00000024,0 1px 18px #0000001f;display:flex;justify-content:space-between;align-items:center;min-height:50px;z-index:100;overflow:hidden}.nav__ul[_ngcontent-%COMP%]{z-index:1;margin-top:0;margin-bottom:0;padding:0 20px;transition:all .5s ease-in-out;display:flex;align-items:center;width:100%}@media screen and (max-width: 767px){.nav__ul[_ngcontent-%COMP%]{justify-content:end!important}}.nav__li[_ngcontent-%COMP%]{display:inline-block}.nav__li._burger[_ngcontent-%COMP%]{width:44px;height:34px}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:auto}.nav__li[_ngcontent-%COMP%]:not(:last-child){margin-right:10px}.nav__a[_ngcontent-%COMP%]{cursor:pointer;color:#fff;font-size:var(--fs)-2px;padding:5px 10px;border-radius:8px;transition:all .5s ease-in-out;display:flex;justify-content:center;align-items:center;position:relative}.nav__a[_ngcontent-%COMP%]:before{content:"";position:absolute;width:5px;height:5px;background-color:#fff;bottom:-1px;border-radius:50%;transform:translateY(15px);opacity:0}@media (max-width: 991.9px){.nav__a[_ngcontent-%COMP%]:before{top:-3px}}.nav__a._activeLink[_ngcontent-%COMP%]:before{animation:_ngcontent-%COMP%_navLinkAnimation .75s forwards}@keyframes _ngcontent-%COMP%_navLinkAnimation{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.nav__a[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:#fff;width:24px}.nav__toggle[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;align-items:center;position:relative;order:3;cursor:pointer;justify-content:center}.nav__toggle-line[_ngcontent-%COMP%], .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle-line[_ngcontent-%COMP%]:after{cursor:pointer;border-radius:1px;height:2px;width:24px;position:absolute;display:block;content:"";transition:all .5s ease-in-out;background-color:transparent}.nav__toggle-line[_ngcontent-%COMP%]:before{top:0;transform:rotate(45deg);background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{bottom:-7px;top:0;transform:rotate(-45deg);background:#fff}@media screen and (max-width: 767px){.nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%], .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:before{top:-7px;transform:unset;background:#fff}.nav__toggle-line[_ngcontent-%COMP%]:after{top:7px;transform:unset;background:#fff}}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:#fff}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before, .nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:unset;top:-7px}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:unset;top:7px}@media screen and (max-width: 767px){.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]{background:transparent}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:before{transform:rotate(45deg);top:0}.nav__toggle._active[_ngcontent-%COMP%] .nav__toggle-line[_ngcontent-%COMP%]:after{transform:rotate(-45deg);bottom:-7px;top:0}}.nav__burger[_ngcontent-%COMP%]{margin:0;max-width:250px;width:100%;height:calc(100% - 50px);transform:translate(0)!important;top:50px;position:fixed;background-color:var(--c-bg-secondary);right:0;transform:translate(120%);z-index:10;box-shadow:0 3px 5px -1px #00000008,0 6px 10px #0000003d,0 1px 18px #0000004f;transition:all .5s ease-in-out;display:flex;flex-direction:column}@media screen and (max-width: 767px){.nav__burger[_ngcontent-%COMP%]{transform:translate(120%)!important}}.nav__burger._active[_ngcontent-%COMP%]{transform:translate(120%)!important;z-index:0}@media screen and (max-width: 767px){.nav__burger._active[_ngcontent-%COMP%]{transform:translate(0)!important;z-index:10}}.nav__burger-list[_ngcontent-%COMP%]{flex-grow:1;height:100%;display:flex;flex-direction:column;overflow-y:auto;padding:20px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%]{color:var(--c-text-primary);padding:10px}.nav__burger-list[_ngcontent-%COMP%] .nav__burger-link[_ngcontent-%COMP%] .avatar__img[_ngcontent-%COMP%]{border-radius:50%}.nav__burger-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.nav__burger-link[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:30px}.nav__burger-user[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--c-text-primary);padding:5px}.nav__burger-user[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{word-break:break-word}.nav__burger-user[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{color:var(--c-text-primary);font-size:48px}@media (max-width: 991.9px){.nav[_ngcontent-%COMP%]{order:2}.nav__ul[_ngcontent-%COMP%]{justify-content:space-between}.nav__li[_ngcontent-%COMP%]:last-child{margin-left:0}.nav__burger[_ngcontent-%COMP%]{top:0}}.theme-switch[_ngcontent-%COMP%]{position:absolute;right:10px;display:flex;justify-content:flex-end;margin-right:10px}.theme-switch[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{cursor:pointer}'],data:{animation:[vn]}})}}return i})();var En=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=be({type:i,selectors:[["app-root"]],standalone:!1,decls:1,vars:0,template:function(n,r){n&1&&Z(0,"router-outlet")},dependencies:[Te],encapsulation:2})}}return i})();function bn(i){return new w(3e3,!1)}function li(){return new w(3100,!1)}function ci(){return new w(3101,!1)}function ui(i){return new w(3001,!1)}function di(i){return new w(3003,!1)}function mi(i){return new w(3004,!1)}function hi(i,e){return new w(3005,!1)}function fi(){return new w(3006,!1)}function pi(){return new w(3007,!1)}function gi(i,e){return new w(3008,!1)}function _i(i){return new w(3002,!1)}function yi(i,e,t,n,r){return new w(3010,!1)}function vi(){return new w(3011,!1)}function Si(){return new w(3012,!1)}function Ei(){return new w(3200,!1)}function bi(){return new w(3202,!1)}function wi(){return new w(3013,!1)}function Ti(i){return new w(3014,!1)}function Ai(i){return new w(3015,!1)}function ki(i){return new w(3016,!1)}function Pi(i,e){return new w(3404,!1)}function Ci(i){return new w(3502,!1)}function Mi(i){return new w(3503,!1)}function Oi(){return new w(3300,!1)}function Ni(i){return new w(3504,!1)}function Di(i){return new w(3301,!1)}function Li(i,e){return new w(3302,!1)}function Ii(i){return new w(3303,!1)}function Fi(i,e){return new w(3400,!1)}function Ri(i){return new w(3401,!1)}function xi(i){return new w(3402,!1)}function zi(i,e){return new w(3505,!1)}function se(i){switch(i.length){case 0:return new re;case 1:return i[0];default:return new Le(i)}}function Rn(i,e,t=new Map,n=new Map){let r=[],s=[],o=-1,a=null;if(e.forEach(l=>{let c=l.get("offset"),d=c==o,u=d&&a||new Map;l.forEach((S,y)=>{let h=y,_=S;if(y!=="offset")switch(h=i.normalizePropertyName(h,r),_){case Qe:_=t.get(y);break;case J:_=n.get(y);break;default:_=i.normalizeStyleValue(y,h,_,r);break}u.set(h,_)}),d||s.push(u),a=u,o=c}),r.length)throw Ci(r);return s}function Ft(i,e,t,n){switch(e){case"start":i.onStart(()=>n(t&&ft(t,"start",i)));break;case"done":i.onDone(()=>n(t&&ft(t,"done",i)));break;case"destroy":i.onDestroy(()=>n(t&&ft(t,"destroy",i)));break}}function ft(i,e,t){let n=t.totalTime,r=!!t.disabled,s=Rt(i.element,i.triggerName,i.fromState,i.toState,e||i.phaseName,n??i.totalTime,r),o=i._data;return o!=null&&(s._data=o),s}function Rt(i,e,t,n,r="",s=0,o){return{element:i,triggerName:e,fromState:t,toState:n,phaseName:r,totalTime:s,disabled:!!o}}function V(i,e,t){let n=i.get(e);return n||i.set(e,n=t),n}function wn(i){let e=i.indexOf(":"),t=i.substring(1,e),n=i.slice(e+1);return[t,n]}var Bi=typeof document>"u"?null:document.documentElement;function xt(i){let e=i.parentNode||i.host||null;return e===Bi?null:e}function Ki(i){return i.substring(1,6)=="ebkit"}var he=null,Tn=!1;function qi(i){he||(he=ji()||{},Tn=he.style?"WebkitAppearance"in he.style:!1);let e=!0;return he.style&&!Ki(i)&&(e=i in he.style,!e&&Tn&&(e="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in he.style)),e}function ji(){return typeof document<"u"?document.body:null}function xn(i,e){for(;e;){if(e===i)return!0;e=xt(e)}return!1}function zn(i,e,t){if(t)return Array.from(i.querySelectorAll(e));let n=i.querySelector(e);return n?[n]:[]}var zt=(()=>{class i{validateStyleProperty(t){return qi(t)}containsElement(t,n){return xn(t,n)}getParentElement(t){return xt(t)}query(t,n,r){return zn(t,n,r)}computeStyle(t,n,r){return r||""}animate(t,n,r,s,o,a=[],l){return new re(r,s)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=$({token:i,factory:i.\u0275fac})}return i})(),ge=class{static NOOP=new zt},_e=class{};var Ui=1e3,Bn="{{",Vi="}}",Kn="ng-enter",St="ng-leave",$e="ng-trigger",Xe=".ng-trigger",An="ng-animating",Et=".ng-animating";function ne(i){if(typeof i=="number")return i;let e=i.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:bt(parseFloat(e[1]),e[2])}function bt(i,e){switch(e){case"s":return i*Ui;default:return i}}function Ze(i,e,t){return i.hasOwnProperty("duration")?i:Qi(i,e,t)}function Qi(i,e,t){let n=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,r,s=0,o="";if(typeof i=="string"){let a=i.match(n);if(a===null)return e.push(bn(i)),{duration:0,delay:0,easing:""};r=bt(parseFloat(a[1]),a[2]);let l=a[3];l!=null&&(s=bt(parseFloat(l),a[4]));let c=a[5];c&&(o=c)}else r=i;if(!t){let a=!1,l=e.length;r<0&&(e.push(li()),a=!0),s<0&&(e.push(ci()),a=!0),a&&e.splice(l,0,bn(i))}return{duration:r,delay:s,easing:o}}function $i(i){return i.length?i[0]instanceof Map?i:i.map(e=>new Map(Object.entries(e))):[]}function ee(i,e,t){e.forEach((n,r)=>{let s=Bt(r);t&&!t.has(r)&&t.set(r,i.style[s]),i.style[s]=n})}function pe(i,e){e.forEach((t,n)=>{let r=Bt(n);i.style[r]=""})}function Ie(i){return Array.isArray(i)?i.length==1?i[0]:yn(i):i}function Wi(i,e,t){let n=e.params||{},r=qn(i);r.length&&r.forEach(s=>{n.hasOwnProperty(s)||t.push(ui(s))})}var wt=new RegExp(`${Bn}\\s*(.+?)\\s*${Vi}`,"g");function qn(i){let e=[];if(typeof i=="string"){let t;for(;t=wt.exec(i);)e.push(t[1]);wt.lastIndex=0}return e}function Re(i,e,t){let n=`${i}`,r=n.replace(wt,(s,o)=>{let a=e[o];return a==null&&(t.push(di(o)),a=""),a.toString()});return r==n?i:r}var Gi=/-+([a-z0-9])/g;function Bt(i){return i.replace(Gi,(...e)=>e[1].toUpperCase())}function Yi(i,e){return i===0||e===0}function Hi(i,e,t){if(t.size&&e.length){let n=e[0],r=[];if(t.forEach((s,o)=>{n.has(o)||r.push(o),n.set(o,s)}),r.length)for(let s=1;so.set(a,Kt(i,a)))}}return e}function U(i,e,t){switch(e.type){case v.Trigger:return i.visitTrigger(e,t);case v.State:return i.visitState(e,t);case v.Transition:return i.visitTransition(e,t);case v.Sequence:return i.visitSequence(e,t);case v.Group:return i.visitGroup(e,t);case v.Animate:return i.visitAnimate(e,t);case v.Keyframes:return i.visitKeyframes(e,t);case v.Style:return i.visitStyle(e,t);case v.Reference:return i.visitReference(e,t);case v.AnimateChild:return i.visitAnimateChild(e,t);case v.AnimateRef:return i.visitAnimateRef(e,t);case v.Query:return i.visitQuery(e,t);case v.Stagger:return i.visitStagger(e,t);default:throw mi(e.type)}}function Kt(i,e){return window.getComputedStyle(i)[e]}var Xi=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),Je=class extends _e{normalizePropertyName(e,t){return Bt(e)}normalizeStyleValue(e,t,n,r){let s="",o=n.toString().trim();if(Xi.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&r.push(hi(e,n))}return o+s}};var et="*";function Zi(i,e){let t=[];return typeof i=="string"?i.split(/\s*,\s*/).forEach(n=>Ji(n,t,e)):t.push(i),t}function Ji(i,e,t){if(i[0]==":"){let l=er(i,t);if(typeof l=="function"){e.push(l);return}i=l}let n=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Ai(i)),e;let r=n[1],s=n[2],o=n[3];e.push(kn(r,o));let a=r==et&&o==et;s[0]=="<"&&!a&&e.push(kn(o,r))}function er(i,e){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var We=new Set(["true","1"]),Ge=new Set(["false","0"]);function kn(i,e){let t=We.has(i)||Ge.has(i),n=We.has(e)||Ge.has(e);return(r,s)=>{let o=i==et||i==r,a=e==et||e==s;return!o&&t&&typeof r=="boolean"&&(o=r?We.has(i):Ge.has(i)),!a&&n&&typeof s=="boolean"&&(a=s?We.has(e):Ge.has(e)),o&&a}}var jn=":self",tr=new RegExp(`s*${jn}s*,?`,"g");function Un(i,e,t,n){return new Tt(i).build(e,t,n)}var Pn="",Tt=class{_driver;constructor(e){this._driver=e}build(e,t,n){let r=new At(t);return this._resetContextStyleTimingState(r),U(this,Ie(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector=Pn,e.collectedStyles=new Map,e.collectedStyles.set(Pn,new Map),e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0,s=[],o=[];return e.name.charAt(0)=="@"&&t.errors.push(fi()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),a.type==v.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,t))}),l.name=c}else if(a.type==v.Transition){let l=this.visitTransition(a,t);n+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(pi())}),{type:v.Trigger,name:e.name,states:s,transitions:o,queryCount:n,depCount:r,options:null}}visitState(e,t){let n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){let s=new Set,o=r||{};n.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{qn(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&t.errors.push(gi(e.name,[...s.values()]))}return{type:v.State,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let n=U(this,Ie(e.animation),t),r=Zi(e.expr,t.errors);return{type:v.Transition,matchers:r,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:fe(e.options)}}visitSequence(e,t){return{type:v.Sequence,steps:e.steps.map(n=>U(this,n,t)),options:fe(e.options)}}visitGroup(e,t){let n=t.currentTime,r=0,s=e.steps.map(o=>{t.currentTime=n;let a=U(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:v.Group,steps:s,options:fe(e.options)}}visitAnimate(e,t){let n=sr(e.timings,t.errors);t.currentAnimateTimings=n;let r,s=e.styles?e.styles:q({});if(s.type==v.Keyframes)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;let c={};n.easing&&(c.easing=n.easing),o=q(c)}t.currentTime+=n.duration+n.delay;let l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:v.Animate,timings:n,style:r,options:null}}visitStyle(e,t){let n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){let n=[],r=Array.isArray(e.styles)?e.styles:[e.styles];for(let a of r)typeof a=="string"?a===J?n.push(a):t.errors.push(_i(a)):n.push(new Map(Object.entries(a)));let s=!1,o=null;return n.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s)){for(let l of a.values())if(l.toString().indexOf(Bn)>=0){s=!0;break}}}),{type:v.Style,styles:n,easing:o,offset:e.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(e,t){let n=t.currentAnimateTimings,r=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),e.styles.forEach(o=>{typeof o!="string"&&o.forEach((a,l)=>{let c=t.collectedStyles.get(t.currentQuerySelector),d=c.get(l),u=!0;d&&(s!=r&&s>=d.startTime&&r<=d.endTime&&(t.errors.push(yi(l,d.startTime,d.endTime,s,r)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:r}),t.options&&Wi(a,t.options,t.errors)})})}visitKeyframes(e,t){let n={type:v.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(vi()),n;let r=1,s=0,o=[],a=!1,l=!1,c=0,d=e.steps.map(O=>{let D=this._makeStyleAst(O,t),R=D.offset!=null?D.offset:rr(D.styles),I=0;return R!=null&&(s++,I=D.offset=R),l=l||I<0||I>1,a=a||I0&&s{let R=S>0?D==y?1:S*D:o[D],I=R*A;t.currentTime=h+_.delay+I,_.duration=I,this._validateStyleAst(O,t),O.offset=R,n.styles.push(O)}),n}visitReference(e,t){return{type:v.Reference,animation:U(this,Ie(e.animation),t),options:fe(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:v.AnimateChild,options:fe(e.options)}}visitAnimateRef(e,t){return{type:v.AnimateRef,animation:this.visitReference(e.animation,t),options:fe(e.options)}}visitQuery(e,t){let n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;let[s,o]=nr(e.selector);t.currentQuerySelector=n.length?n+" "+s:s,V(t.collectedStyles,t.currentQuerySelector,new Map);let a=U(this,Ie(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:v.Query,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:fe(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(wi());let n=e.timings==="full"?{duration:0,delay:0,easing:"full"}:Ze(e.timings,t.errors,!0);return{type:v.Stagger,animation:U(this,Ie(e.animation),t),timings:n,options:null}}};function nr(i){let e=!!i.split(/\s*,\s*/).find(t=>t==jn);return e&&(i=i.replace(tr,"")),i=i.replace(/@\*/g,Xe).replace(/@\w+/g,t=>Xe+"-"+t.slice(1)).replace(/:animating/g,Et),[i,e]}function ir(i){return i?qe({},i):null}var At=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function rr(i){if(typeof i=="string")return null;let e=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;e=parseFloat(n.get("offset")),n.delete("offset")}});else if(i instanceof Map&&i.has("offset")){let t=i;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function sr(i,e){if(i.hasOwnProperty("duration"))return i;if(typeof i=="number"){let s=Ze(i,e).duration;return pt(s,0,"")}let t=i;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=pt(0,0,"");return s.dynamic=!0,s.strValue=t,s}let r=Ze(t,e);return pt(r.duration,r.delay,r.easing)}function fe(i){return i?(i=qe({},i),i.params&&(i.params=ir(i.params))):i={},i}function pt(i,e,t){return{duration:i,delay:e,easing:t}}function qt(i,e,t,n,r,s,o=null,a=!1){return{type:1,element:i,keyframes:e,preStyleProps:t,postStyleProps:n,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}var xe=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},or=1,ar=":enter",lr=new RegExp(ar,"g"),cr=":leave",ur=new RegExp(cr,"g");function Vn(i,e,t,n,r,s=new Map,o=new Map,a,l,c=[]){return new kt().buildKeyframes(i,e,t,n,r,s,o,a,l,c)}var kt=class{buildKeyframes(e,t,n,r,s,o,a,l,c,d=[]){c=c||new xe;let u=new Pt(e,t,c,r,s,d,[]);u.options=l;let S=l.delay?ne(l.delay):0;u.currentTimeline.delayNextStep(S),u.currentTimeline.setStyles([o],null,u.errors,l),U(this,n,u);let y=u.timelines.filter(h=>h.containsAnimation());if(y.length&&a.size){let h;for(let _=y.length-1;_>=0;_--){let A=y[_];if(A.element===t){h=A;break}}h&&!h.allowOnlyTimelineStyles()&&h.setStyles([a],null,u.errors,l)}return y.length?y.map(h=>h.buildKeyframes()):[qt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let n=t.subInstructions.get(t.element);if(n){let r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){let n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,n),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,n){for(let r of e){let s=r?.delay;if(s){let o=typeof s=="number"?s:ne(Re(s,r?.params??{},t.errors));n.delayNextStep(o)}}}_visitSubInstructions(e,t,n){let s=t.currentTimeline.currentTime,o=n.duration!=null?ne(n.duration):null,a=n.delay!=null?ne(n.delay):null;return o!==0&&e.forEach(l=>{let c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),U(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let n=t.subContextCount,r=t,s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),s.delay!=null)){r.previousNode.type==v.Style&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=tt);let o=ne(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>U(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let n=[],r=t.currentTimeline.currentTime,s=e.options&&e.options.delay?ne(e.options.delay):0;e.steps.forEach(o=>{let a=t.createSubContext(e.options);s&&a.delayNextStep(s),U(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),n.push(a.currentTimeline)}),n.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let n=e.strValue,r=t.params?Re(n,t.params,t.errors):n;return Ze(r,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());let s=e.style;s.type==v.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(s):n.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let n=t.currentAnimateTimings,r=t.currentTimeline.duration,s=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){let n=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?ne(r.delay):0;s&&(t.previousNode.type===v.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=tt);let o=n,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{t.currentQueryIndex=d;let u=t.createSubContext(e.options,c);s&&u.delayNextStep(s),c===t.element&&(l=u.currentTimeline),U(this,e.animation,u),u.currentTimeline.applyStylesToKeyframe();let S=u.currentTimeline.currentTime;o=Math.max(o,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let n=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1),l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=n.currentStaggerTime;break}let d=t.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;U(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}},tt={},Pt=class i{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=tt;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,n,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.currentTimeline=l||new nt(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let n=e,r=this.options;n.duration!=null&&(r.duration=ne(n.duration)),n.delay!=null&&(r.delay=ne(n.delay));let s=n.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Re(s[a],o,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let n=e.params={};Object.keys(t).forEach(r=>{n[r]=t[r]})}}return e}createSubContext(e=null,t,n){let r=t||this.element,s=new i(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=tt,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){let r={duration:t??e.duration,delay:this.currentTimeline.currentTime+(n??0)+e.delay,easing:""},s=new Ct(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=e.replace(lr,"."+this._enterClassName),e=e.replace(ur,"."+this._leaveClassName);let l=n!=1,c=this._driver.query(this.element,e,l);n!==0&&(c=n<0?c.slice(c.length+n,c.length):c.slice(0,n)),a.push(...c)}return!s&&a.length==0&&o.push(Ti(t)),a}},nt=class i{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new i(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=or,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||J),this._currentKeyframe.set(t,J);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&this._previousKeyframe.set("easing",t);let s=r&&r.params||{},o=dr(e,this._globalTimelineStyles);for(let[a,l]of o){let c=Re(l,s,n);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??J),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,n)=>{let r=this._styleSummary.get(n);(!r||t.time>r.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,r=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===Qe?e.add(u):d===J&&t.add(u)}),n||c.set("offset",l/this.duration),r.push(c)});let s=[...e.values()],o=[...t.values()];if(n){let a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return qt(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}},Ct=class extends nt{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,n,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],o=n+t,a=t/o,l=new Map(e[0]);l.set("offset",0),s.push(l);let c=new Map(e[0]);c.set("offset",Cn(a)),s.push(c);let d=e.length-1;for(let u=1;u<=d;u++){let S=new Map(e[u]),y=S.get("offset"),h=t+y*n;S.set("offset",Cn(h/o)),s.push(S)}n=o,t=0,r="",e=s}return qt(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}};function Cn(i,e=3){let t=Math.pow(10,e-1);return Math.round(i*t)/t}function dr(i,e){let t=new Map,n;return i.forEach(r=>{if(r==="*"){n??=e.keys();for(let s of n)t.set(s,J)}else for(let[s,o]of r)t.set(s,o)}),t}function Mn(i,e,t,n,r,s,o,a,l,c,d,u,S){return{type:0,element:i,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:n,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:S}}var gt={},it=class{_triggerName;ast;_stateStyles;constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return mr(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){let r=this._stateStyles.get("*");return e!==void 0&&(r=this._stateStyles.get(e?.toString())||r),r?r.buildStyles(t,n):new Map}build(e,t,n,r,s,o,a,l,c,d){let u=[],S=this.ast.options&&this.ast.options.params||gt,y=a&&a.params||gt,h=this.buildStyles(n,y,u),_=l&&l.params||gt,A=this.buildStyles(r,_,u),O=new Set,D=new Map,R=new Map,I=r==="void",ye={params:Qn(_,S),delay:this.ast.options?.delay},Y=d?[]:Vn(e,t,this.ast.animation,s,o,h,A,ye,c,u),x=0;return Y.forEach(z=>{x=Math.max(z.duration+z.delay,x)}),u.length?Mn(t,this._triggerName,n,r,I,h,A,[],[],D,R,x,u):(Y.forEach(z=>{let oe=z.element,ve=V(D,oe,new Set);z.preStyleProps.forEach(ae=>ve.add(ae));let Qt=V(R,oe,new Set);z.postStyleProps.forEach(ae=>Qt.add(ae)),oe!==t&&O.add(oe)}),Mn(t,this._triggerName,n,r,I,h,A,Y,[...O.values()],D,R,x))}};function mr(i,e,t,n,r){return i.some(s=>s(e,t,n,r))}function Qn(i,e){let t=qe({},e);return Object.entries(i).forEach(([n,r])=>{r!=null&&(t[n]=r)}),t}var Mt=class{styles;defaultParams;normalizer;constructor(e,t,n){this.styles=e,this.defaultParams=t,this.normalizer=n}buildStyles(e,t){let n=new Map,r=Qn(e,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((o,a)=>{o&&(o=Re(o,r,t));let l=this.normalizer.normalizePropertyName(a,t);o=this.normalizer.normalizeStyleValue(a,l,o,t),n.set(a,o)})}),n}};function hr(i,e,t){return new Ot(i,e,t)}var Ot=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,n){this.name=e,this.ast=t,this._normalizer=n,t.states.forEach(r=>{let s=r.options&&r.options.params||{};this.states.set(r.name,new Mt(r.style,s,n))}),On(this.states,"true","1"),On(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new it(e,r,this.states))}),this.fallbackTransition=fr(e,this.states,this._normalizer)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(o=>o.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}};function fr(i,e,t){let n=[(o,a)=>!0],r={type:v.Sequence,steps:[],options:null},s={type:v.Transition,animation:r,matchers:n,options:null,queryCount:0,depCount:0};return new it(i,s,e)}function On(i,e,t){i.has(e)?i.has(t)||i.set(t,i.get(e)):i.has(t)&&i.set(e,i.get(t))}var pr=new xe,Nt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n}register(e,t){let n=[],r=[],s=Un(this._driver,t,n,r);if(n.length)throw Mi(n);r.length&&void 0,this._animations.set(e,s)}_buildPlayer(e,t,n){let r=e.element,s=Rn(this._normalizer,e.keyframes,t,n);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){let r=[],s=this._animations.get(e),o,a=new Map;if(s?(o=Vn(this._driver,t,s,Kn,St,new Map,new Map,n,pr,r),o.forEach(d=>{let u=V(a,d.element,new Map);d.postStyleProps.forEach(S=>u.set(S,null))})):(r.push(Oi()),o=[]),r.length)throw Ni(r);a.forEach((d,u)=>{d.forEach((S,y)=>{d.set(y,this._driver.computeStyle(u,y,J))})});let l=o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}),c=se(l);return this._playersById.set(e,c),c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Di(e);return t}listen(e,t,n,r){let s=Rt(t,"","","");return Ft(this._getPlayer(e),n,s,r),()=>{}}command(e,t,n,r){if(n=="register"){this.register(e,r[0]);return}if(n=="create"){let o=r[0]||{};this.create(e,t,o);return}let s=this._getPlayer(e);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e);break}}},Nn="ng-animate-queued",gr=".ng-animate-queued",_t="ng-animate-disabled",_r=".ng-animate-disabled",yr="ng-star-inserted",vr=".ng-star-inserted",Sr=[],$n={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Er={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},G="__ng_removed",ze=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let n=e&&e.hasOwnProperty("value"),r=n?e.value:e;if(this.value=wr(r),n){let s=e,{value:o}=s,a=Yt(s,["value"]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let n=this.options.params;Object.keys(t).forEach(r=>{n[r]==null&&(n[r]=t[r])})}}},Fe="void",yt=new ze(Fe),Dt=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+e,W(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.has(t))throw Li(n,t);if(n==null||n.length==0)throw Ii(t);if(!Tr(n))throw Fi(n,t);let s=V(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};s.push(o);let a=V(this._engine.statesByElement,e,new Map);return a.has(t)||(W(e,$e),W(e,$e+"-"+t),a.set(t,yt)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(t)||a.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Ri(e);return t}trigger(e,t,n,r=!0){let s=this._getTrigger(t),o=new Be(this.id,t,e),a=this._engine.statesByElement.get(e);a||(W(e,$e),W(e,$e+"-"+t),this._engine.statesByElement.set(e,a=new Map));let l=a.get(t),c=new ze(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(t,c),l||(l=yt),!(c.value===Fe)&&l.value===c.value){if(!Pr(l.params,c.params)){let _=[],A=s.matchStyles(l.value,l.params,_),O=s.matchStyles(c.value,c.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{pe(e,A),ee(e,O)})}return}let S=V(this._engine.playersByElement,e,[]);S.forEach(_=>{_.namespaceId==this.id&&_.triggerName==t&&_.queued&&_.destroy()});let y=s.matchTransition(l.value,c.value,e,c.params),h=!1;if(!y){if(!r)return;y=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(W(e,Nn),o.onStart(()=>{ke(e,Nn)})),o.onDone(()=>{let _=this.players.indexOf(o);_>=0&&this.players.splice(_,1);let A=this._engine.playersByElement.get(e);if(A){let O=A.indexOf(o);O>=0&&A.splice(O,1)}}),this.players.push(o),S.push(o),o}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let n=this._engine.driver.query(e,Xe,!0);n.forEach(r=>{if(r[G])return;let s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,n,r){let s=this._engine.statesByElement.get(e),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(e,c,Fe,r);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),n&&se(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),n=this._engine.statesByElement.get(e);if(t&&n){let r=new Set;t.forEach(s=>{let o=s.name;if(r.has(o))return;r.add(o);let l=this._triggers.get(o).fallbackTransition,c=n.get(o)||yt,d=new ze(Fe),u=new Be(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(e,t){let n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(n.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{let s=e[G];(!s||s===$n)&&(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){W(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(n=>{let r=n.player;if(r.destroyed)return;let s=n.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==n.triggerName){let l=Rt(s,n.triggerName,n.fromState.value,n.toState.value);l._data=e,Ft(n.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((n,r)=>{let s=n.transition.ast.depCount,o=r.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(n.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},Lt=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&e.push(n)})}),e}createNamespace(e,t){let n=new Dt(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){let n=this._namespaceList,r=this.namespacesByHostElement;if(n.length-1>=0){let o=!1,a=this.driver.getParentElement(t);for(;a;){let l=r.get(a);if(l){let c=n.indexOf(l);n.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}o||n.unshift(e)}else n.push(e);return r.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(e);this.namespacesByHostElement.delete(n.hostElement);let r=this._namespaceList.indexOf(n);r>=0&&this._namespaceList.splice(r,1),n.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,n=this.statesByElement.get(e);if(n){for(let r of n.values())if(r.namespaceId){let s=this._fetchNamespace(r.namespaceId);s&&t.add(s)}}return t}trigger(e,t,n,r){if(Ye(t)){let s=this._fetchNamespace(e);if(s)return s.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!Ye(t))return;let s=t[G];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){let o=this._fetchNamespace(e);o&&o.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),W(e,_t)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ke(e,_t))}removeNode(e,t,n){if(Ye(t)){let r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==e&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(e,t,n,r,s){this.collectedLeaveElements.push(t),t[G]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,n,r,s){return Ye(t)?this._fetchNamespace(e).listen(t,n,r,s):()=>{}}_buildInstruction(e,t,n,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Xe,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Et,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return se(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[G];if(t&&t.setForRemoval){if(e[G]=$n,t.namespaceId){this.destroyInnerAnimations(e);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(_t)&&this.markElementAsDisabled(e,!1),this.driver.query(e,_r,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,r)=>this._balanceNamespaceList(n,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?se(t).onDone(()=>{n.forEach(r=>r())}):n.forEach(r=>r())}}reportError(e){throw xi(e)}_flushAnimations(e,t){let n=new xe,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(m=>{d.add(m);let f=this.driver.query(m,gr,!0);for(let g=0;g{let g=Kn+_++;h.set(f,g),m.forEach(b=>W(b,g))});let A=[],O=new Set,D=new Set;for(let m=0;mO.add(b)):D.add(f))}let R=new Map,I=In(S,Array.from(O));I.forEach((m,f)=>{let g=St+_++;R.set(f,g),m.forEach(b=>W(b,g))}),e.push(()=>{y.forEach((m,f)=>{let g=h.get(f);m.forEach(b=>ke(b,g))}),I.forEach((m,f)=>{let g=R.get(f);m.forEach(b=>ke(b,g))}),A.forEach(m=>{this.processLeaveNode(m)})});let ye=[],Y=[];for(let m=this._namespaceList.length-1;m>=0;m--)this._namespaceList[m].drainQueuedTransitions(t).forEach(g=>{let b=g.player,L=g.element;if(ye.push(b),this.collectedEnterElements.length){let F=L[G];if(F&&F.setForMove){if(F.previousTriggersValues&&F.previousTriggersValues.has(g.triggerName)){let le=F.previousTriggersValues.get(g.triggerName),Q=this.statesByElement.get(g.element);if(Q&&Q.has(g.triggerName)){let Ke=Q.get(g.triggerName);Ke.value=le,Q.set(g.triggerName,Ke)}}b.destroy();return}}let H=!u||!this.driver.containsElement(u,L),K=R.get(L),ie=h.get(L),P=this._buildInstruction(g,n,ie,K,H);if(P.errors&&P.errors.length){Y.push(P);return}if(H){b.onStart(()=>pe(L,P.fromStyles)),b.onDestroy(()=>ee(L,P.toStyles)),r.push(b);return}if(g.isFallbackTransition){b.onStart(()=>pe(L,P.fromStyles)),b.onDestroy(()=>ee(L,P.toStyles)),r.push(b);return}let Gt=[];P.timelines.forEach(F=>{F.stretchStartingKeyframe=!0,this.disabledNodes.has(F.element)||Gt.push(F)}),P.timelines=Gt,n.append(L,P.timelines);let Jn={instruction:P,player:b,element:L};o.push(Jn),P.queriedElements.forEach(F=>V(a,F,[]).push(b)),P.preStyleProps.forEach((F,le)=>{if(F.size){let Q=l.get(le);Q||l.set(le,Q=new Set),F.forEach((Ke,ct)=>Q.add(ct))}}),P.postStyleProps.forEach((F,le)=>{let Q=c.get(le);Q||c.set(le,Q=new Set),F.forEach((Ke,ct)=>Q.add(ct))})});if(Y.length){let m=[];Y.forEach(f=>{m.push(zi(f.triggerName,f.errors))}),ye.forEach(f=>f.destroy()),this.reportError(m)}let x=new Map,z=new Map;o.forEach(m=>{let f=m.element;n.has(f)&&(z.set(f,f),this._beforeAnimationBuild(m.player.namespaceId,m.instruction,x))}),r.forEach(m=>{let f=m.element;this._getPreviousPlayers(f,!1,m.namespaceId,m.triggerName,null).forEach(b=>{V(x,f,[]).push(b),b.destroy()})});let oe=A.filter(m=>Fn(m,l,c)),ve=new Map;Ln(ve,this.driver,D,c,J).forEach(m=>{Fn(m,l,c)&&oe.push(m)});let ae=new Map;y.forEach((m,f)=>{Ln(ae,this.driver,new Set(m),l,Qe)}),oe.forEach(m=>{let f=ve.get(m),g=ae.get(m);ve.set(m,new Map([...f?.entries()??[],...g?.entries()??[]]))});let lt=[],$t=[],Wt={};o.forEach(m=>{let{element:f,player:g,instruction:b}=m;if(n.has(f)){if(d.has(f)){g.onDestroy(()=>ee(f,b.toStyles)),g.disabled=!0,g.overrideTotalTime(b.totalTime),r.push(g);return}let L=Wt;if(z.size>1){let K=f,ie=[];for(;K=K.parentNode;){let P=z.get(K);if(P){L=P;break}ie.push(K)}ie.forEach(P=>z.set(P,L))}let H=this._buildAnimation(g.namespaceId,b,x,s,ae,ve);if(g.setRealPlayer(H),L===Wt)lt.push(g);else{let K=this.playersByElement.get(L);K&&K.length&&(g.parentPlayer=se(K)),r.push(g)}}else pe(f,b.fromStyles),g.onDestroy(()=>ee(f,b.toStyles)),$t.push(g),d.has(f)&&r.push(g)}),$t.forEach(m=>{let f=s.get(m.element);if(f&&f.length){let g=se(f);m.setRealPlayer(g)}}),r.forEach(m=>{m.parentPlayer?m.syncPlayerEvents(m.parentPlayer):m.destroy()});for(let m=0;m!H.destroyed);L.length?Ar(this,f,L):this.processLeaveNode(f)}return A.length=0,lt.forEach(m=>{this.players.push(m),m.onDone(()=>{m.destroy();let f=this.players.indexOf(m);this.players.splice(f,1)}),m.play()}),lt}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,s){let o=[];if(t){let a=this.playersByQueriedElement.get(e);a&&(o=a)}else{let a=this.playersByElement.get(e);if(a){let l=!s||s==Fe;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(n||r)&&(o=o.filter(a=>!(n&&n!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,n){let r=t.triggerName,s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:r;for(let l of t.timelines){let c=l.element,d=c!==s,u=V(n,c,[]);this._getPreviousPlayers(c,d,o,a,t.toState).forEach(y=>{let h=y.getRealPlayer();h.beforeDestroy&&h.beforeDestroy(),y.destroy(),u.push(y)})}pe(s,t.fromStyles)}_buildAnimation(e,t,n,r,s,o){let a=t.triggerName,l=t.element,c=[],d=new Set,u=new Set,S=t.timelines.map(h=>{let _=h.element;d.add(_);let A=_[G];if(A&&A.removedBeforeQueried)return new re(h.duration,h.delay);let O=_!==l,D=kr((n.get(_)||Sr).map(x=>x.getRealPlayer())).filter(x=>{let z=x;return z.element?z.element===_:!1}),R=s.get(_),I=o.get(_),ye=Rn(this._normalizer,h.keyframes,R,I),Y=this._buildPlayer(h,ye,D);if(h.subTimeline&&r&&u.add(_),O){let x=new Be(e,a,_);x.setRealPlayer(Y),c.push(x)}return Y});c.forEach(h=>{V(this.playersByQueriedElement,h.element,[]).push(h),h.onDone(()=>br(this.playersByQueriedElement,h.element,h))}),d.forEach(h=>W(h,An));let y=se(S);return y.onDestroy(()=>{d.forEach(h=>ke(h,An)),ee(l,t.toStyles)}),u.forEach(h=>{V(r,h,[]).push(y)}),y}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new re(e.duration,e.delay)}},Be=class{namespaceId;triggerName;element;_player=new re;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,n)=>{t.forEach(r=>Ft(e,n,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){V(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function br(i,e,t){let n=i.get(e);if(n){if(n.length){let r=n.indexOf(t);n.splice(r,1)}n.length==0&&i.delete(e)}return n}function wr(i){return i??null}function Ye(i){return i&&i.nodeType===1}function Tr(i){return i=="start"||i=="done"}function Dn(i,e){let t=i.style.display;return i.style.display=e??"none",t}function Ln(i,e,t,n,r){let s=[];t.forEach(l=>s.push(Dn(l)));let o=[];n.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let S=e.computeStyle(c,u,r);d.set(u,S),(!S||S.length==0)&&(c[G]=Er,o.push(c))}),i.set(c,d)});let a=0;return t.forEach(l=>Dn(l,s[a++])),o}function In(i,e){let t=new Map;if(i.forEach(a=>t.set(a,[])),e.length==0)return t;let n=1,r=new Set(e),s=new Map;function o(a){if(!a)return n;let l=s.get(a);if(l)return l;let c=a.parentNode;return t.has(c)?l=c:r.has(c)?l=n:l=o(c),s.set(a,l),l}return e.forEach(a=>{let l=o(a);l!==n&&t.get(l).push(a)}),t}function W(i,e){i.classList?.add(e)}function ke(i,e){i.classList?.remove(e)}function Ar(i,e,t){se(t).onDone(()=>i.processLeaveNode(e))}function kr(i){let e=[];return Wn(i,e),e}function Wn(i,e){for(let t=0;tr.add(s)):e.set(i,n),t.delete(i),!0}var Pe=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new Lt(e.body,t,n),this._timelineEngine=new Nt(e.body,t,n),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,n,r,s){let o=e+"-"+r,a=this._triggerCache[o];if(!a){let l=[],c=[],d=Un(this._driver,s,l,c);if(l.length)throw Pi(r,l);c.length&&void 0,a=hr(r,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n){this._transitionEngine.removeNode(e,t,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if(n.charAt(0)=="@"){let[s,o]=wn(n),a=r;this._timelineEngine.command(s,t,o,a)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,s){if(n.charAt(0)=="@"){let[o,a]=wn(n);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,n,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function Cr(i,e){let t=null,n=null;return Array.isArray(e)&&e.length?(t=vt(e[0]),e.length>1&&(n=vt(e[e.length-1]))):e instanceof Map&&(t=vt(e)),t||n?new Mr(i,t,n):null}var Mr=(()=>{class i{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r;let s=i.initialStylesByElement.get(t);s||i.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ee(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ee(this._element,this._initialStyles),this._endStyles&&(ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(pe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pe(this._element,this._endStyles),this._endStyles=null),ee(this._element,this._initialStyles),this._state=3)}}return i})();function vt(i){let e=null;return i.forEach((t,n)=>{Or(n)&&(e=e||new Map,e.set(n,t))}),e}function Or(i){return i==="display"||i==="position"}var rt=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(e,t,n){return e.animate(this._convertKeyframesToObject(t),n)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,r)=>{r!=="offset"&&e.set(r,this._finished?n:Kt(this.element,r))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},st=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return xn(e,t)}getParentElement(e){return xt(e)}query(e,t,n){return zn(e,t,n)}computeStyle(e,t,n){return Kt(e,t)}animate(e,t,n,r,s,o=[]){let a=r==0?"both":"forwards",l={duration:n,delay:r,fill:a};s&&(l.easing=s);let c=new Map,d=o.filter(y=>y instanceof rt);Yi(n,r)&&d.forEach(y=>{y.currentSnapshot.forEach((h,_)=>c.set(_,h))});let u=$i(t).map(y=>new Map(y));u=Hi(e,u,c);let S=Cr(e,u);return new rt(e,u,l,S)}};var He="@",Gn="@.disabled",ot=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,n,r){this.namespaceId=e,this.delegate=t,this.engine=n,this._onDestroy=r}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n,r=!0){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,n){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==He&&t==Gn?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},It=class extends ot{factory;constructor(e,t,n,r,s){super(t,n,r,s),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==He?t.charAt(1)=="."&&t==Gn?(n=n===void 0?!0:!!n,this.disableAnimations(e,n)):this.engine.process(this.namespaceId,e,t.slice(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==He){let r=Nr(e),s=t.slice(1),o="";return s.charAt(0)!=He&&([s,o]=Dr(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{let l=a._data||-1;this.factory.scheduleListenerCallback(l,n,a)})}return this.delegate.listen(e,t,n)}};function Nr(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}function Dr(i){let e=i.indexOf("."),t=i.substring(0,e),n=i.slice(e+1);return[t,n]}var at=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,t.onRemovalComplete=(r,s)=>{s?.removeChild(null,r)}}createRenderer(e,t){let n="",r=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let c=this._rendererCache,d=c.get(r);if(!d){let u=()=>c.delete(r);d=new ot(n,r,this.engine,u),c.set(r,d)}return d}let s=t.id,o=t.id+"-"+this._currentId;this._currentId++,this.engine.register(o,e);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,e,c.name,c)};return t.data.animation.forEach(a),new It(this,o,r,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){if(e>=0&&et(n));return}let r=this._animationCallbacksBuffer;r.length==0&&queueMicrotask(()=>{this._zone.run(()=>{r.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),r.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}};var Ir=(()=>{class i extends Pe{constructor(t,n,r){super(t,n,r)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||i)(X(nn),X(ge),X(_e))};static \u0275prov=$({token:i,factory:i.\u0275fac})}return i})();function Fr(){return new Je}function Rr(i,e,t){return new at(i,e,t)}var Hn=[{provide:_e,useFactory:Fr},{provide:Pe,useClass:Ir},{provide:en,useFactory:Rr,deps:[on,Pe,Xt]}],Yn=[{provide:ge,useFactory:()=>new st},{provide:ut,useValue:"BrowserAnimations"},...Hn],xr=[{provide:ge,useClass:zt},{provide:ut,useValue:"NoopAnimations"},...Hn],Xn=(()=>{class i{static withConfig(t){return{ngModule:i,providers:t.disableAnimations?xr:Yn}}static \u0275fac=function(n){return new(n||i)};static \u0275mod=Me({type:i});static \u0275inj=Ce({providers:Yn,imports:[je]})}return i})();var jt=(()=>{class i{constructor(t){this.router=t}canActivate(){return localStorage.getItem("waw_user")?!0:(this.router.navigateByUrl("/sign"),!1)}static{this.\u0275fac=function(n){return new(n||i)(X(Ae))}}static{this.\u0275prov=$({token:i,factory:i.\u0275fac})}}return i})();var Ut=(()=>{class i{constructor(t){this.router=t}canActivate(){return localStorage.getItem("waw_user")?(this.router.navigateByUrl("/profile"),!1):!0}static{this.\u0275fac=function(n){return new(n||i)(X(Ae))}}static{this.\u0275prov=$({token:i,factory:i.\u0275fac})}}return i})();var Vt=(()=>{class i{constructor(t){this.router=t}canActivate(){if(localStorage.getItem("waw_user")){let t=JSON.parse(localStorage.getItem("waw_user"));return t.is&&t.is.admin?!0:(this.router.navigate(["/profile"]),!1)}else return this.router.navigate(["/sign"]),!1}static{this.\u0275fac=function(n){return new(n||i)(X(Ae))}}static{this.\u0275prov=$({token:i,factory:i.\u0275fac})}}return i})();var zr=[{path:"",redirectTo:"/sign",pathMatch:"full"},{path:"",canActivate:[Ut],component:_n,children:[{path:"components",canActivate:[N],data:{meta:{title:"Components"}},loadChildren:()=>import("./chunk-LPDYMR2D.js").then(i=>i.ComponentsModule)},{path:"test",canActivate:[N],data:{meta:{title:"test"}},loadChildren:()=>import("./chunk-SYZARBGJ.js").then(i=>i.TestModule)},{path:"sign",canActivate:[N],data:{meta:{title:"Sign"}},loadChildren:()=>import("./chunk-X7V5V4VW.js").then(i=>i.SignModule)}]},{path:"",canActivate:[jt],component:ht,children:[{path:"commerceproductquantities",canActivate:[N],data:{meta:{title:"Commerceproductquantities"}},loadChildren:()=>import("./chunk-YRXDGEXZ.js").then(i=>i.CommerceproductquantitiesModule)},{path:"commercewarehouses",canActivate:[N],data:{meta:{title:"Commercewarehouses"}},loadChildren:()=>import("./chunk-VMTNNAKU.js").then(i=>i.CommercewarehousesModule)},{path:"commercetags",canActivate:[N],data:{meta:{title:"Commercetags"}},loadChildren:()=>import("./chunk-UF7PIHYJ.js").then(i=>i.CommercetagsModule)},{path:"commercestores",canActivate:[N],data:{meta:{title:"Commercestores"}},loadChildren:()=>import("./chunk-VGZ42PZE.js").then(i=>i.CommercestoresModule)},{path:"commerceservices",canActivate:[N],data:{meta:{title:"Commerceservices"}},loadChildren:()=>import("./chunk-2GWY33P4.js").then(i=>i.CommerceservicesModule)},{path:"commerceproducts",canActivate:[N],data:{meta:{title:"Commerceproducts"}},loadChildren:()=>import("./chunk-FG2FCVR6.js").then(i=>i.CommerceproductsModule)},{path:"commerceportfolios",canActivate:[N],data:{meta:{title:"Commerceportfolios"}},loadChildren:()=>import("./chunk-QDUYERLZ.js").then(i=>i.CommerceportfoliosModule)},{path:"commerceorders",canActivate:[N],data:{meta:{title:"Commerceorders"}},loadChildren:()=>import("./chunk-E2BLES7M.js").then(i=>i.CommerceordersModule)},{path:"commercediscounts",canActivate:[N],data:{meta:{title:"Commercediscounts"}},loadChildren:()=>import("./chunk-NED2X3NE.js").then(i=>i.CommercediscountsModule)},{path:"commercebrands",canActivate:[N],data:{meta:{title:"Commercebrands"}},loadChildren:()=>import("./chunk-4U3ARV3H.js").then(i=>i.CommercebrandsModule)},{path:"commerces",canActivate:[N],data:{meta:{title:"Commerces"}},loadChildren:()=>import("./chunk-VGL5NSMG.js").then(i=>i.CommercesModule)},{path:"profile",canActivate:[N],data:{meta:{title:"My Profile"}},loadChildren:()=>import("./chunk-2VBCDRJZ.js").then(i=>i.ProfileModule)}]},{path:"admin",canActivate:[Vt],component:ht,children:[{path:"users",canActivate:[N],data:{meta:{title:"Users"}},loadChildren:()=>import("./chunk-R2GTPXUY.js").then(i=>i.UsersModule)},{path:"forms",canActivate:[N],data:{meta:{title:"Forms"}},loadChildren:()=>import("./chunk-6QP2GCSX.js").then(i=>i.CustomformsModule)},{path:"translates",canActivate:[N],data:{meta:{title:"Translates"}},loadChildren:()=>import("./chunk-HM3TCJL7.js").then(i=>i.TranslatesModule)}]},{path:"**",redirectTo:"profile",pathMatch:"full"}],Zn=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=Me({type:i,bootstrap:[En]})}static{this.\u0275inj=Ce({providers:[jt,Ut,Vt],imports:[gn,je,Xn,hn.forRoot({store:{},http:{url:ue.url},socket:ue.production,meta:{useTitleSuffix:!0,defaults:{title:"Web Art Work",titleSuffix:" | Web Art Work","og:image":"https://webart.work/api/user/cdn/waw-logo.png"}},modal:{modals:{}},alert:{alerts:{}},loader:{loaders:{}},popup:{popups:{}}}),dn.forRoot(zr,{scrollPositionRestoration:"enabled",preloadingStrategy:un})]})}}return i})();ue.production&&void 0;an().bootstrapModule(Zn).catch(i=>console.error(i)); diff --git a/media/1-I5WRTGCC.woff2 b/media/1-I5WRTGCC.woff2 new file mode 100644 index 0000000..a8fc845 Binary files /dev/null and b/media/1-I5WRTGCC.woff2 differ diff --git a/media/2-SO44HAFF.woff2 b/media/2-SO44HAFF.woff2 new file mode 100644 index 0000000..bd4e3bd Binary files /dev/null and b/media/2-SO44HAFF.woff2 differ diff --git a/media/3-O3LXZE7D.woff2 b/media/3-O3LXZE7D.woff2 new file mode 100644 index 0000000..d7c16dc Binary files /dev/null and b/media/3-O3LXZE7D.woff2 differ diff --git a/media/4-BAXDZN46.woff2 b/media/4-BAXDZN46.woff2 new file mode 100644 index 0000000..fd7e21b Binary files /dev/null and b/media/4-BAXDZN46.woff2 differ diff --git a/media/5-F4YEHKRH.woff2 b/media/5-F4YEHKRH.woff2 new file mode 100644 index 0000000..295b9f0 Binary files /dev/null and b/media/5-F4YEHKRH.woff2 differ diff --git a/polyfills-QLBWGKOY.js b/polyfills-QLBWGKOY.js new file mode 100644 index 0000000..607a8dd --- /dev/null +++ b/polyfills-QLBWGKOY.js @@ -0,0 +1,2 @@ +var ce=globalThis;function ee(e){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+e}function dt(){let e=ce.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{this.__symbol__=ee}static assertZonePatched(){if(ce.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,p=!1){if(O.hasOwnProperty(n)){let P=ce[ee("forceDuplicateZoneCheck")]===!0;if(!p&&P)throw Error("Already loaded patch: "+n)}else if(!ce["__Zone_disable_"+n]){let P="Zone:"+n;r(P),O[n]=o(ce,N,R),c(P,P)}}get parent(){return this._parent}get name(){return this._name}constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){let 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(typeof n!="function")throw new Error("Expecting function got: "+n);let p=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(p,this,arguments,o)}}run(n,o,p,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,p,P)}finally{b=b.parent}}runGuarded(n,o=null,p,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,p,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,p){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+")");let P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===z||q===g))return;let ae=n.state!=j;ae&&P._transitionTo(j,h);let le=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,p)}catch(ne){if(this._zoneDelegate.handleError(this,ne))throw ne}}finally{let ne=n.state;if(ne!==X&&ne!==Y)if(q==z||A||_e&&ne===k)ae&&P._transitionTo(h,j,k);else{let f=P._zoneDelegates;this._updateTaskCount(P,-1),ae&&P._transitionTo(X,j,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=le}}scheduleTask(n){if(n.zone&&n.zone!==this){let p=this;for(;p;){if(p===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);p=p.parent}}n._transitionTo(k,X);let o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(p){throw n._transitionTo(Y,k,X),this._zoneDelegate.handleError(this,p),p}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==k&&n._transitionTo(h,k),n}scheduleMicroTask(n,o,p,P){return this.scheduleTask(new E(G,n,o,p,P,void 0))}scheduleMacroTask(n,o,p,P,q){return this.scheduleTask(new E(g,n,o,p,P,q))}scheduleEventTask(n,o,p,P,q){return this.scheduleTask(new E(z,n,o,p,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!==j)){n._transitionTo(V,h,j);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){let p=n._zoneDelegates;o==-1&&(n._zoneDelegates=null);for(let P=0;PN.hasTask(n,o),onScheduleTask:(N,_,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,_,n,o,p,P)=>N.invokeTask(n,o,p,P),onCancelTask:(N,_,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}constructor(_,n,o){this._taskCounts={microTask:0,macroTask:0,eventTask:0},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;let p=o&&o.onHasTask,P=n&&n._hasTaskZS;(p||P)&&(this._hasTaskZS=p?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,p,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,n,o,p,P):n.apply(o,p)}handleError(_,n){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,n):!0}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==G)U(n);else throw new Error("Task is missing scheduleFn.");return o}invokeTask(_,n,o,p){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,n,o,p):n.callback.apply(o,p)}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){let o=this._taskCounts,p=o[_],P=o[_]=p+n;if(P<0)throw new Error("More tasks executed then were scheduled.");if(p==0||P==0){let q={microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_};this.hasTask(this._zone,q)}}}class E{constructor(_,n,o,p,P,q){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=_,this.source=n,this.data=p,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;let A=this;_===z&&p&&p.useG?this.invoke=E.invokeTask:this.invoke=function(){return E.invokeTask.call(ce,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{Q==1&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,k)}_transitionTo(_,n,o){if(this._state===n||this._state===o)this._state=_,_==X&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`)}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}}}let T=ee("setTimeout"),y=ee("Promise"),D=ee("then"),d=[],w=!1,Z;function x(N){if(Z||ce[y]&&(Z=ce[y].resolve(0)),Z){let _=Z[D];_||(_=Z.then),_.call(Z,N)}else ce[T](N,0)}function U(N){Q===0&&d.length===0&&x(J),N&&d.push(N)}function J(){if(!w){for(w=!0;d.length;){let N=d;d=[];for(let _=0;_b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:U,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},b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}function _t(){let e=globalThis,r=e[ee("forceDuplicateZoneCheck")]===!0;if(e.Zone&&(r||typeof e.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return e.Zone??=dt(),e.Zone}var be=Object.getOwnPropertyDescriptor,Ae=Object.defineProperty,je=Object.getPrototypeOf,Et=Object.create,Tt=Array.prototype.slice,He="addEventListener",xe="removeEventListener",Le=ee(He),Ie=ee(xe),ue="true",fe="false",Pe=ee("");function Ve(e,r){return Zone.current.wrap(e,r)}function Ge(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}var H=ee,De=typeof window<"u",pe=De?window:void 0,$=De&&pe||globalThis,gt="removeAttribute";function Fe(e,r){for(let c=e.length-1;c>=0;c--)typeof e[c]=="function"&&(e[c]=Ve(e[c],r+"_"+c));return e}function mt(e,r){let c=e.constructor.name;for(let t=0;t{let y=function(){return T.apply(this,Fe(arguments,c+"."+i))};return de(y,T),y})(u)}}}function tt(e){return e?e.writable===!1?!1:!(typeof e.get=="function"&&typeof e.set>"u"):!0}var nt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Se=!("nw"in $)&&typeof $.process<"u"&&$.process.toString()==="[object process]",Be=!Se&&!nt&&!!(De&&pe.HTMLElement),rt=typeof $.process<"u"&&$.process.toString()==="[object process]"&&!nt&&!!(De&&pe.HTMLElement),Ce={},yt=H("enable_beforeunload"),Ye=function(e){if(e=e||$.event,!e)return;let r=Ce[e.type];r||(r=Ce[e.type]=H("ON_PROPERTY"+e.type));let c=this||e.target||$,t=c[r],i;if(Be&&c===pe&&e.type==="error"){let u=e;i=t&&t.call(this,u.message,u.filename,u.lineno,u.colno,u.error),i===!0&&e.preventDefault()}else i=t&&t.apply(this,arguments),e.type==="beforeunload"&&$[yt]&&typeof i=="string"?e.returnValue=i:i!=null&&!i&&e.preventDefault();return i};function $e(e,r,c){let t=be(e,r);if(!t&&c&&be(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;let i=H("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;let u=t.get,E=t.set,T=r.slice(2),y=Ce[T];y||(y=Ce[T]=H("ON_PROPERTY"+T)),t.set=function(D){let d=this;if(!d&&e===$&&(d=$),!d)return;typeof d[y]=="function"&&d.removeEventListener(T,Ye),E&&E.call(d,null),d[y]=D,typeof D=="function"&&d.addEventListener(T,Ye,!1)},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;let d=D[y];if(d)return d;if(u){let w=u.call(this);if(w)return t.set.call(this,w),typeof D[gt]=="function"&&D.removeAttribute(r),w}return null},Ae(e,r,t),e[i]=!0}function ot(e,r,c){if(r)for(let t=0;tfunction(E,T){let y=c(E,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?Ge(y.name,T[y.cbIdx],y,i):u.apply(E,T)})}function de(e,r){e[H("OriginalDelegate")]=r}var Je=!1,Me=!1;function kt(){try{let e=pe.navigator.userAgent;if(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1)return!0}catch{}return!1}function vt(){if(Je)return Me;Je=!0;try{let e=pe.navigator.userAgent;(e.indexOf("MSIE ")!==-1||e.indexOf("Trident/")!==-1||e.indexOf("Edge/")!==-1)&&(Me=!0)}catch{}return Me}function Ke(e){return typeof e=="function"}function Qe(e){return typeof e=="number"}var ye=!1;if(typeof window<"u")try{let e=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{ye=!1}var bt={useG:!0},te={},st={},it=new RegExp("^"+Pe+"(\\w+)(true|false)$"),ct=H("propagationStopped");function at(e,r){let c=(r?r(e):e)+fe,t=(r?r(e):e)+ue,i=Pe+c,u=Pe+t;te[e]={},te[e][fe]=i,te[e][ue]=u}function Pt(e,r,c,t){let i=t&&t.add||He,u=t&&t.rm||xe,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",y=H(i),D="."+i+":",d="prependListener",w="."+d+":",Z=function(k,h,j){if(k.isRemoved)return;let V=k.callback;typeof V=="object"&&V.handleEvent&&(k.callback=g=>V.handleEvent(g),k.originalDelegate=V);let Y;try{k.invoke(k,h,[j])}catch(g){Y=g}let G=k.options;if(G&&typeof G=="object"&&G.once){let g=k.originalDelegate?k.originalDelegate:k.callback;h[u].call(h,j.type,g,G)}return Y};function x(k,h,j){if(h=h||e.event,!h)return;let V=k||h.target||e,Y=V[te[h.type][j?ue:fe]];if(Y){let G=[];if(Y.length===1){let g=Z(Y[0],V,h);g&&G.push(g)}else{let g=Y.slice();for(let z=0;z{throw z})}}}let U=function(k){return x(this,k,!1)},J=function(k){return x(this,k,!0)};function K(k,h){if(!k)return!1;let j=!0;h&&h.useG!==void 0&&(j=h.useG);let V=h&&h.vh,Y=!0;h&&h.chkDup!==void 0&&(Y=h.chkDup);let G=!1;h&&h.rt!==void 0&&(G=h.rt);let g=k;for(;g&&!g.hasOwnProperty(i);)g=je(g);if(!g&&k[i]&&(g=k),!g||g[y])return!1;let z=h&&h.eventNameToString,O={},R=g[y]=g[i],b=g[H(u)]=g[u],S=g[H(E)]=g[E],Q=g[H(T)]=g[T],W;h&&h.prepend&&(W=g[H(h.prepend)]=g[h.prepend]);function N(s,l){return!ye&&typeof s=="object"&&s?!!s.capture:!ye||!l?s:typeof s=="boolean"?{capture:s,passive:!0}:s?typeof s=="object"&&s.passive!==!1?{...s,passive:!0}:s:{passive:!0}}let _=function(s){if(!O.isExisting)return R.call(O.target,O.eventName,O.capture?J:U,O.options)},n=function(s){if(!s.isRemoved){let l=te[s.eventName],v;l&&(v=l[s.capture?ue:fe]);let C=v&&s.target[v];if(C){for(let m=0;mre.zone.cancelTask(re);s.call(Te,"abort",ie,{once:!0}),re.removeAbortListener=()=>Te.removeEventListener("abort",ie)}if(O.target=null,ke&&(ke.taskData=null),Ue&&(O.options.once=!0),!ye&&typeof re.options=="boolean"||(re.options=se),re.target=I,re.capture=Oe,re.eventName=M,B&&(re.originalDelegate=F),L?ge.unshift(re):ge.push(re),m)return I}};return g[i]=a(R,D,q,A,G),W&&(g[d]=a(W,w,p,A,G,!0)),g[u]=function(){let s=this||e,l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));let v=arguments[2],C=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(V&&!V(b,m,s,arguments))return;let L=te[l],I;L&&(I=L[C?ue:fe]);let M=I&&s[I];if(M)for(let F=0;Ffunction(i,u){i[ct]=!0,t&&t.apply(i,u)})}function Rt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}var Re=H("zoneTask");function me(e,r,c,t){let i=null,u=null;r+=t,c+=t;let E={};function T(D){let d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};let w=i.apply(e,d.args);return Qe(w)?d.handleId=w:(d.handle=w,d.isRefreshable=Ke(w.refresh)),D}function y(D){let{handle:d,handleId:w}=D.data;return u.call(e,d??w)}i=he(e,r,D=>function(d,w){if(Ke(w[0])){let Z={isRefreshable:!1,isPeriodic:t==="Interval",delay:t==="Timeout"||t==="Interval"?w[1]||0:void 0,args:w},x=w[0];w[0]=function(){try{return x.apply(this,arguments)}finally{let{handle:j,handleId:V,isPeriodic:Y,isRefreshable:G}=Z;!Y&&!G&&(V?delete E[V]:j&&(j[Re]=null))}};let U=Ge(r,w[0],Z,T,y);if(!U)return U;let{handleId:J,handle:K,isRefreshable:X,isPeriodic:k}=U.data;if(J)E[J]=U;else if(K&&(K[Re]=U,X&&!k)){let h=K.refresh;K.refresh=function(){let{zone:j,state:V}=U;return V==="notScheduled"?(U._state="scheduled",j._updateTaskCount(U,1)):V==="running"&&(U._state="scheduling"),h.call(this)}}return K??J??U}else return D.apply(e,w)}),u=he(e,c,D=>function(d,w){let Z=w[0],x;Qe(Z)?(x=E[Z],delete E[Z]):(x=Z?.[Re],x?Z[Re]=null:x=Z),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,w)})}function Ct(e,r){let{isBrowser:c,isMix:t}=r.getGlobalObjects();if(!c&&!t||!e.customElements||!("customElements"in e))return;let i=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];r.patchCallbacks(r,e.customElements,"customElements","define",i)}function Dt(e,r){if(Zone[r.symbol("patchEventTarget")])return;let{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let y=0;yu.target===e);if(!t||t.length===0)return r;let i=t[0].ignoreProperties;return r.filter(u=>i.indexOf(u)===-1)}function et(e,r,c,t){if(!e)return;let i=ut(e,r,c);ot(e,i,t)}function Ze(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Ot(e,r){if(Se&&!rt||Zone[e.symbol("patchEvents")])return;let c=r.__Zone_ignore_on_properties,t=[];if(Be){let i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let u=kt()?[{target:i,ignoreProperties:["error"]}]:[];et(i,Ze(i),c&&c.concat(u),je(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i{let c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{let c="set",t="clear";me(r,c,t,"Timeout"),me(r,c,t,"Interval"),me(r,c,t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{me(r,"request","cancel","AnimationFrame"),me(r,"mozRequest","mozCancel","AnimationFrame"),me(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{let t=["alert","prompt","confirm"];for(let i=0;ifunction(D,d){return c.current.run(E,r,d,y)})}}),e.__load_patch("EventTarget",(r,c,t)=>{St(r,t),Dt(r,t);let 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)=>{Ot(t,r)}),e.__load_patch("customElements",(r,c,t)=>{Ct(r,t)}),e.__load_patch("XHR",(r,c)=>{D(r);let t=H("xhrTask"),i=H("xhrSync"),u=H("xhrListener"),E=H("xhrScheduled"),T=H("xhrURL"),y=H("xhrErrorBeforeScheduled");function D(d){let w=d.XMLHttpRequest;if(!w)return;let Z=w.prototype;function x(R){return R[t]}let U=Z[Le],J=Z[Ie];if(!U){let R=d.XMLHttpRequestEventTarget;if(R){let b=R.prototype;U=b[Le],J=b[Ie]}}let K="readystatechange",X="scheduled";function k(R){let b=R.data,S=b.target;S[E]=!1,S[y]=!1;let Q=S[u];U||(U=S[Le],J=S[Ie]),Q&&J.call(S,K,Q);let W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&R.state===X){let _=S[c.__symbol__("loadfalse")];if(S.status!==0&&_&&_.length>0){let n=R.invoke;R.invoke=function(){let o=S[c.__symbol__("loadfalse")];for(let p=0;pfunction(R,b){return R[i]=b[2]==!1,R[T]=b[1],V.apply(R,b)}),Y="XMLHttpRequest.send",G=H("fetchTaskAborting"),g=H("fetchTaskScheduling"),z=he(Z,"send",()=>function(R,b){if(c.current[g]===!0||R[i])return z.apply(R,b);{let S={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},Q=Ge(Y,h,S,k,j);R&&R[y]===!0&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=he(Z,"abort",()=>function(R,b){let S=x(R);if(S&&typeof S.type=="string"){if(S.cancelFn==null||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(c.current[G]===!0)return O.apply(R,b)})}}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&mt(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){lt(r,i).forEach(T=>{let y=r.PromiseRejectionEvent;if(y){let D=new y(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[H("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[H("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{Rt(r,t)})}function Lt(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{let i=Object.getOwnPropertyDescriptor,u=Object.defineProperty;function E(f){if(f&&f.toString===Object.prototype.toString){let a=f.constructor&&f.constructor.name;return(a||"")+": "+JSON.stringify(f)}return f?f.toString():Object.prototype.toString.call(f)}let T=t.symbol,y=[],D=r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,d=T("Promise"),w=T("then"),Z="__creationTrace__";t.onUnhandledError=f=>{if(t.showUncaughtError()){let 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(;y.length;){let f=y.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){U(a)}}};let x=T("unhandledPromiseRejectionHandler");function U(f){t.onUnhandledError(f);try{let a=c[x];typeof a=="function"&&a.call(this,f)}catch{}}function J(f){return f&&f.then}function K(f){return f}function X(f){return A.reject(f)}let k=T("state"),h=T("value"),j=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),G="Promise.then",g=null,z=!0,O=!1,R=0;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}let 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){let l=S();if(f===s)throw new TypeError(Q);if(f[k]===g){let v=null;try{(typeof s=="object"||typeof s=="function")&&(v=s&&s.then)}catch(C){return l(()=>{N(f,!1,C)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(k)&&s.hasOwnProperty(h)&&s[k]!==g)n(s),N(f,s[k],s[h]);else if(a!==O&&typeof v=="function")try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[k]=a;let C=f[h];if(f[h]=s,f[j]===j&&a===z&&(f[k]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){let m=c.currentTask&&c.currentTask.data&&c.currentTask.data[Z];m&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let L=f[h],I=!!s&&j===s[j];I&&(s[V]=L,s[Y]=C);let M=a.run(m,void 0,I&&m!==X&&m!==K?[]:[L]);N(s,!0,M)}catch(L){N(s,!1,L)}},s)}let p="function ZoneAwarePromise() { [native code] }",P=function(){},q=r.AggregateError;class A{static toString(){return p}static resolve(a){return a instanceof A?a:N(new this(null),z,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){let a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||typeof a[Symbol.iterator]!="function")return Promise.reject(new q([],"All promises were rejected"));let s=[],l=0;try{for(let m of a)l++,s.push(A.resolve(m))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(l===0)return Promise.reject(new q([],"All promises were rejected"));let v=!1,C=[];return new A((m,L)=>{for(let I=0;I{v||(v=!0,m(M))},M=>{C.push(M),l--,l===0&&(v=!0,L(new q(C,"All promises were rejected")))})})}static race(a){let s,l,v=new this((L,I)=>{s=L,l=I});function C(L){s(L)}function m(L){l(L)}for(let L of a)J(L)||(L=this.resolve(L)),L.then(C,m);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((M,F)=>{l=M,v=F}),m=2,L=0,I=[];for(let M of a){J(M)||(M=this.resolve(M));let F=L;try{M.then(B=>{I[F]=s?s.thenCallback(B):B,m--,m===0&&l(I)},B=>{s?(I[F]=s.errorCallback(B),m--,m===0&&l(I)):v(B)})}catch(B){v(B)}m++,L++}return m-=2,m===0&&l(I),C}constructor(a){let s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[k]=g,s[h]=[];try{let l=S();a&&a(l(b(s,z)),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||typeof l!="function")&&(l=this.constructor||A);let v=new l(P),C=c.current;return this[k]==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||typeof s!="function")&&(s=A);let l=new s(P);l[j]=j;let v=c.current;return this[k]==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;let _e=r[d]=r.Promise;r.Promise=A;let ae=T("thenPatched");function le(f){let a=f.prototype,s=i(a,"then");if(s&&(s.writable===!1||!s.configurable))return;let l=a.then;a[w]=l,f.prototype.then=function(v,C){return new A((L,I)=>{l.call(this,L,I)}).then(v,C)},f[ae]=!0}t.patchThen=le;function ne(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[ae]||le(v),l}}return _e&&(le(_e),he(r,"fetch",f=>ne(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=y,A})}function It(e){e.__load_patch("toString",r=>{let c=Function.prototype.toString,t=H("OriginalDelegate"),i=H("Promise"),u=H("Error"),E=function(){if(typeof this=="function"){let d=this[t];if(d)return typeof d=="function"?c.call(d):Object.prototype.toString.call(d);if(this===Promise){let w=r[i];if(w)return c.call(w)}if(this===Error){let w=r[u];if(w)return c.call(w)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;let T=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:T.call(this)}})}function Mt(e,r,c,t,i){let u=Zone.__symbol__(t);if(r[u])return;let E=r[u]=r[t];r[t]=function(T,y,D){return y&&y.prototype&&i.forEach(function(d){let w=`${c}.${t}::`+d,Z=y.prototype;try{if(Z.hasOwnProperty(d)){let x=e.ObjectGetOwnPropertyDescriptor(Z,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,w),e._redefineProperty(y.prototype,d,x)):Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}else Z[d]&&(Z[d]=e.wrapWithCurrentZone(Z[d],w))}catch{}}),E.call(r,T,y,D)},e.attachOriginToPatched(r[t],E)}function Zt(e){e.__load_patch("util",(r,c,t)=>{let i=Ze(r);t.patchOnProperties=ot,t.patchMethod=he,t.bindArguments=Fe,t.patchMacroTask=pt;let 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=wt,t.patchEventTarget=Pt,t.isIEOrEdge=vt,t.ObjectDefineProperty=Ae,t.ObjectGetOwnPropertyDescriptor=be,t.ObjectCreate=Et,t.ArraySlice=Tt,t.patchClass=ve,t.wrapWithCurrentZone=Ve,t.filterProperties=ut,t.attachOriginToPatched=de,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Mt,t.getGlobalObjects=()=>({globalSources:st,zoneSymbolEventNames:te,eventNames:i,isBrowser:Be,isMix:rt,isNode:Se,TRUE_STR:ue,FALSE_STR:fe,ZONE_SYMBOL_PREFIX:Pe,ADD_EVENT_LISTENER_STR:He,REMOVE_EVENT_LISTENER_STR:xe})})}function At(e){Lt(e),It(e),Zt(e)}var ft=_t();At(ft);Nt(ft);window.global=window; diff --git a/styles-YGTQHXMO.css b/styles-YGTQHXMO.css new file mode 100644 index 0000000..9206279 --- /dev/null +++ b/styles-YGTQHXMO.css @@ -0,0 +1 @@ +html,*,*:before,*:after{box-sizing:border-box}html{line-height:1.15;-webkit-text-size-adjust:100%}*{outline:0}html,body{margin:0;padding:0}main{display:block}h1{font-size:2em;margin:0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[hidden]{display:none}img{max-width:100%;display:inline-block;vertical-align:top}a{text-decoration:none}:root{--c-white: #fff;--c-basic: #3558ae;--c-primary: #256eff;--c-primary-hover: #0051f1;--c-secondary: rgb(197, 61, 61);--c-secondary-hover: rgb(150, 42, 42);--c-bg-primary: #f3f4f7;--c-bg-secondary: #ffffff;--c-bg-tertiary: #fcfdfe;--c-border: #f0f1f7;--c-shadow: #f3f3f3;--c-text-primary: #666666;--c-text-secondary: #19235c;--c-placeholder: #313335ab;--c-img-round: 50%;--card-background: #fefefe;--card-border-radius: 10px;--card-box-shadow: 0 4px 12px rgba(0, 0, 0, .15);--card-margin-bottom: 24px;--card-header-padding: 20px;--card-header-background: #e0e0e0;--card-body-padding: 20px;--card-section-padding: 10px 0;--card-footer-padding: 20px;--card-footer-background: #e0e0e0;--card-border-width: 2px;--card-border-color: #cccccc;--file-img-border-radius: 50%;--file-add-bg: #28a745;--file-add-bg-hover: #218838;--file-item-border-radius: 10px;--day-name: #988888;--b-radius-btn: 10px;--transition: all .3s;--events: #4c8e9d;--border: rgba(102, 91, 91, .432)}html.dark:root{--c-white: #fff;--c-basic: #333;--c-bg-primary: #282828;--c-bg-secondary: #343434;--c-bg-tertiary: #404040;--c-border: #404040;--c-shadow: #444444;--c-text-primary: #ffffff;--c-text-secondary: #ffffff;--c-placeholder: #d3cdcd;--c-calendar: #141414;--day-name: #dad5d5;--events: #1c2e32;--border: rgb(255 255 255 / 23%)}@font-face{font-family:Poppins;src:url("./media/1-I5WRTGCC.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/2-SO44HAFF.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/3-O3LXZE7D.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Poppins;src:url("./media/4-BAXDZN46.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:url("./media/5-F4YEHKRH.woff2") format("woff2")}.material-icons,i{font-family:Material Icons;font-weight:400;font-style:normal;font-size:26px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr}html{font-size:16px;overflow:hidden;height:100%}body{font-family:Poppins,sans-serif;color:var(--c-text-primary);line-height:1.4;position:relative;overflow:hidden;height:100%;display:flex;flex-direction:column}.container{margin-left:auto;margin-right:auto;padding:10px;max-width:100%;width:100%}.container-box{display:flex;align-items:center}.container-box .w-input__checkbox{margin-right:5px}.showTable{padding:20px 20px 0!important}*::-webkit-scrollbar-track{box-shadow:inset 0 0 6px var(--c-shadow);background-color:#fff;display:none}*::-webkit-scrollbar{width:5px;height:5px;background-color:#fff}* ::-webkit-scrollbar-thumb{box-shadow:inset 0 0 6px var(--c-basic);background-color:var(--c-basic)}@keyframes iziT-bounceInUp{0%{opacity:0;transform:translateY(200px)}50%{opacity:1;transform:translateY(-10px)}70%{transform:translateY(5px)}to{transform:translateY(0)}}@keyframes iziT-fadeIn{0%{opacity:0}to{opacity:1}}@keyframes iziT-fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes iziT-fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes iziT-bounceInLeft{0%{opacity:0;transform:translate(280px)}50%{opacity:1;transform:translate(-20px)}70%{transform:translate(10px)}to{transform:translate(0)}}@keyframes iziT-bounceInDown{0%{opacity:0;transform:translateY(-200px)}50%{opacity:1;transform:translateY(10px)}70%{transform:translateY(-5px)}to{transform:translateY(0)}}.alert-wrapper{position:fixed;bottom:50px;left:0;width:100%;height:60px;overflow:hidden}.alert{display:flex;-webkit-box-align:center;align-items:center;width:auto;background:#3aed92;color:#fff;max-width:700px;margin:0 auto;transform:translateY(300px) scale(0);transition:.3s all ease-in-out}.alert._show{transform:translateY(0) scale(1);transition:.3s all ease-in-out}.alert-icon{min-width:60px;min-height:60px;position:relative;display:flex;justify-content:center;align-items:center;background-color:#2bd17d}.alert-icon:before{content:"";position:absolute;width:25px;height:25px;border-radius:50%;border:2px solid #fff}.alert-icon:after{content:"";position:absolute;top:22px;width:7px;height:11px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.alert-text{padding:0 20px;word-break:break-all;overflow:auto;height:60px}.alert-text .text-block{width:99%}.alert-text .text-block__text{text-overflow:ellipsis;overflow:hidden;white-space:pre}.alert-close{min-width:50px;margin-left:auto;font-size:25px;display:flex;justify-content:center;align-items:center}.font-bold{font-weight:700}.waw-alert__progress{bottom:0;position:absolute;width:100%;margin-bottom:0;border-radius:50px}.waw-alert__progress:hover span{animation-play-state:paused}.waw-alert__progress span{display:block;width:100%;height:2px;background-color:#a5a5a5ed;animation-name:waw-alert-progress;animation-duration:10s;border-radius:50px}.waw-alert__progress span._red{background-color:#ffafb4}.waw-alert__progress span._green{background-color:#a6efb8}.waw-alert__progress span._yellow{background-color:#fff9b2}.waw-alert__progress span._orange,.waw-alert__progress span._blue{background-color:#ffcfa5}.waw-alert__progress span._white{background-color:#fff}.waw-alert__progress span._black{background-color:#000}.waw-alert:hover .waw-alert__progress>span{animation-play-state:paused}.waw-alert__close{width:15px;height:15px;opacity:.3;position:relative;order:2}.waw-alert__close:hover{opacity:1}.waw-alert__close:before,.waw-alert__close:after{cursor:pointer;position:absolute;left:15px;content:" ";height:12px;width:2px;background-color:#47525d}.waw-alert__close:before{transform:rotate(45deg)}.waw-alert__close:after{transform:rotate(-45deg)}@keyframes waw-alert-progress{0%{width:100%}to{width:0%}}.waw-alert-container{font-size:0;height:100px;width:100%;transform:translateZ(0);backface-visibility:hidden;transition:.3s all ease-in-out;opacity:1}.waw-alert-container._close{opacity:0;transition:.3s all ease-in-out}.waw-alert{display:inline-block;clear:both;position:relative;font-family:Lato,Tahoma,Arial;font-size:14px;padding:8px 25px 9px 0;background:#eeeeeee6;border-color:#eeeeeee6;width:100%;pointer-events:all;cursor:default;transform:translate(0);-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:54px}.waw-alert>.waw-alert-progressbar{position:absolute;left:0;bottom:0;width:100%;z-index:1;background:#fff3}.waw-alert>.waw-alert-progressbar>div{height:2px;width:100%;background:#0000004d;border-radius:0 0 3px 3px}.waw-alert>.waw-alert-close{position:absolute;right:0;top:0;border:0;padding:0;opacity:.6;width:42px;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAJPAAACTwBcGfW0QAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAD3SURBVFiF1ZdtDoMgDEBfdi4PwAX8vLFn0qT7wxantojKupmQmCi8R4tSACpgjC2ICCUbEBa8ingjsU1AXRBeR8aLN64FiknswN8CYefBBDQ3whuFESy7WyQMeC0ipEI0A+0FeBvHUFN8xPaUhAH/iKoWsnXHGegy4J0yxialOfaHJAz4bhRzQzgDvdGnz4GbAonZbCQMuBm1K/kcFu8Mp1N2cFFpsxsMuJqqbIGExGl4loARajU1twskJLLhIsID7+tvUoDnIjTg5T9DPH9EBrz8rxjPzciAl9+O8SxI8CzJ8CxKFfh3ynK8Dyb8wNHM/XDqejx/AtNyPO87tNybAAAAAElFTkSuQmCC) no-repeat 50% 50%;background-size:8px;cursor:pointer;outline:none}.waw-alert>.waw-alert-close:hover{opacity:1}.waw-alert>.waw-alert-body{position:relative;padding:0 0 0 10px;height:auto;min-height:36px;margin:0 0 0 15px;text-align:left;display:flex;justify-content:space-between;align-items:center}.waw-alert>.waw-alert-body:after{content:"";display:table;clear:both}.waw-alert>.waw-alert-body .waw-alert-texts{margin:10px 0 0;padding-right:2px;display:inline-block;float:left;display:flex;justify-content:space-between;align-items:center}.waw-alert>.waw-alert-body .waw-alert-icon{height:100%;position:absolute;left:0;top:50%;display:table;font-size:23px;line-height:24px;margin-top:-12px;color:#000;width:24px;height:24px}.waw-alert>.waw-alert-body .waw-alert-title{padding:0;margin:0 10px 0 0;line-height:16px;font-size:14px;text-align:left;float:left;color:#000;white-space:normal;font-weight:700}.waw-alert>.waw-alert-body .waw-alert-message{padding:0;font-size:14px;line-height:16px;text-align:left;float:left;color:#0009;white-space:normal}@media only screen and (min-width: 568px){.waw-alert-wrapper{padding:10px 15px}.waw-alert{margin:5px;border-radius:3px;width:auto}.waw-alert:after{content:"";z-index:-1;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px;box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a,0 8px 8px -5px #00000040}.waw-alert:not(.waw-alert-rtl) .waw-alert-cover{border-radius:3px 0 0 3px}.waw-alert.waw-alert-rtl .waw-alert-cover{border-radius:0 3px 3px 0}.waw-alert.waw-alert-color-dark:after{box-shadow:inset 0 -10px 20px -10px #ffffff4d,0 10px 10px -5px #00000040}.waw-alert.waw-alert-balloon .waw-alert-progressbar{background:transparent}.waw-alert.waw-alert-balloon:after{box-shadow:0 10px 10px -5px #00000040,inset 0 10px 20px -5px #00000040}.waw-alert-target .waw-alert:after{box-shadow:inset 0 -10px 20px -10px #0003,inset 0 0 5px #0000001a}}.waw-alert.waw-alert-theme-dark{background:#565c70;border-color:#565c70}.waw-alert.waw-alert-theme-dark .waw-alert-title{color:#fff}.waw-alert.waw-alert-theme-dark .waw-alert-message{color:#ffffffb3;font-weight:300}.waw-alert.waw-alert-theme-dark .waw-alert-icon{color:#fff}.waw-alert.waw-alert-color-red{background:#ffafb4e6;border-color:#ffafb4e6}.waw-alert.waw-alert-color-orange{background:#ffcfa5e6;border-color:#ffcfa5e6}.waw-alert.waw-alert-color-yellow{background:#fff9b2e6;border-color:#fff9b2e6}.waw-alert.waw-alert-color-blue{background:#9ddeffe6;border-color:#9ddeffe6}.waw-alert.waw-alert-color-green{background:#a6efb8e6;border-color:#a6efb8e6}.waw-alert.slideIn,.waw-alert .slideIn{-webkit-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;-moz-animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both;animation:iziT-slideIn 1s cubic-bezier(.16,.81,.32,1) both}.waw-alert.bounceInLeft{-webkit-animation:iziT-bounceInLeft .7s ease-in-out both;animation:iziT-bounceInLeft .7s ease-in-out both}.waw-alert.bounceInRight{-webkit-animation:iziT-bounceInRight .85s ease-in-out both;animation:iziT-bounceInRight .85s ease-in-out both}.waw-alert.bounceInDown{-webkit-animation:iziT-bounceInDown .7s ease-in-out both;animation:iziT-bounceInDown .7s ease-in-out both}.waw-alert.bounceInUp{-webkit-animation:iziT-bounceInUp .7s ease-in-out both;animation:iziT-bounceInUp .7s ease-in-out both}.height{height:auto!important}.w-btn{font-size:var(--fs);font-weight:500;font-family:var(--ff-base);background-color:var(--c-primary);border-radius:var(--b-radius-btn);transition:var(--transition);color:var(--c-white);position:relative;padding:11px 25px;line-height:19px;white-space:nowrap;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;text-align:center;width:100%;border:none;cursor:pointer;transition:all .3s;border-radius:4px}.w-btn._primary{background-color:var(--c-primary)}.w-btn._primary:hover{background-color:var(--c-primary-hover)}.w-btn._second{border:1px solid #256eff;background-color:var(--c-white);color:#256eff}.w-btn._danger{background-color:var(--c-secondary);color:#fff}.w-btn._danger:hover{background:var(--c-secondary-hover)}.w-btn._link{background:transparent;color:var(--c-text-primary);font-size:14px;font-weight:400}.w-btn._link:hover{color:var(--c-text-secondary)}.w-btn:disabled{background-color:var(--c-grey-dark);cursor:default}.w-btn:disabled:hover{background-color:var(--c-grey-dark)}.w-switch{display:flex;align-items:center;cursor:pointer}.w-switch__toggle{position:relative;width:45px;height:25px}.w-switch__input{display:none}.w-switch__input:checked+.w-switch__slider{background-color:var(--c-primary);border:1px solid var(--c-primary)}.w-switch__input:focus+.w-switch__slider{box-shadow:0 0 1px var(--c-shadow)}.w-switch__input:checked+.w-switch__slider:before{transform:translate(15px,-50%);background-color:#fff}.w-switch__slider{position:absolute;inset:0;background-color:#e7e7e7;border:1px solid var(--c-border);outline:none;transition:.3s all ease-in-out}.w-switch__slider:before{position:absolute;content:"";height:16px;width:16px;left:6px;top:50%;transform:translateY(-50%);background-color:#fff;transition:.3s all ease-in-out}.w-switch__slider._round{border-radius:34px}.w-switch__slider._round:before{border-radius:50%}.w-switch__text{margin-left:10px;font-size:14px;line-height:14px;letter-spacing:.3px;color:var(--c-text)}.form-container{margin-bottom:15px}.w-forms{position:relative;display:flex;flex-direction:column;width:100%;gap:10px}.w-forms__title{display:inline-block;color:var(--c-text-primary);font-size:19px;line-height:18px;letter-spacing:.3px;font-weight:500;margin-bottom:15px}.w-forms__component label{padding:0!important}.w-forms__input,.w-forms__textarea,.w-forms__select{height:42px;background-color:transparent;border:1px solid var(--c-border);border-radius:8px;color:var(--c-text-secondary);font-size:14px;line-height:20px;transition:.3s all ease-in-out;width:100%;display:block;letter-spacing:.3px;padding:10px}.w-forms__input::placeholder,.w-forms__textarea::placeholder,.w-forms__select::placeholder{color:var(--c-placeholder);transition:.3s all ease-in-out}.w-forms__input:focus,.w-forms__textarea:focus,.w-forms__select:focus{transition:.3s all ease-in-out;border-color:var(--c-primary)}.w-forms__input:disabled,.w-forms__textarea:disabled,.w-forms__select:disabled{background-color:#e7e7e7;border-color:#e7e7e7;color:#e7e7e7;cursor:default;opacity:.6}.w-forms__input[type=time]{display:block;-webkit-appearance:textfield;-moz-appearance:textfield}.w-forms__select{appearance:none;padding-right:30px}.w-forms__chevron{position:absolute;top:30px;right:12px}.w-forms__chevron:before{color:var(--c-primary)}.w-forms__textarea{min-height:80px;resize:vertical;max-height:250px;margin-top:10px}.w-card{display:flex;flex-direction:column;background-color:var(--c-bg-secondary);border-radius:var(--card-border-radius, 8px);box-shadow:var(--card-box-shadow, 0 2px 8px rgba(0, 0, 0, .1));overflow:hidden;margin-bottom:var(--card-margin-bottom, 20px)}.w-card__header{padding:var(--card-header-padding, 16px);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);flex-shrink:0;display:flex;justify-content:space-between;align-items:center}.w-card__body{padding:var(--card-body-padding, 16px);flex-grow:1;display:flex;flex-direction:column}.w-card__body-section{padding:var(--card-section-padding, 8px 0);border-bottom:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea)}.w-card__body-section:last-child{border-bottom:none}.w-card__footer{padding:var(--card-footer-padding, 16px);border-top:var(--card-border-width, 1px) solid var(--card-border-color, #eaeaea);background-color:var(--card-footer-background, #f5f5f5);flex-shrink:0}.w-checkbox__body{display:inline-flex;-webkit-user-select:none;user-select:none;color:var(--c-text-primary);cursor:pointer;padding:6px 8px;border-radius:6px;overflow:hidden;transition:.3s all ease-in-out}.w-checkbox__body:not(:last-child){margin-right:6px}.w-checkbox__body:hover{background:rgba(var(--c-primary),.09)}.w-checkbox__body:hover .w-checkbox__svg{border-color:var(--c-primary)}@media (max-width: 991.9px){.w-checkbox__body{width:100%;margin-bottom:4px;display:inline-block}}.w-checkbox__input{display:none}.w-checkbox__input:checked+.w-checkbox__body .w-checkbox__svg{background:var(--c-primary);border-color:var(--c-primary);animation:wave .4s ease}.w-checkbox__input:checked+.w-checkbox__body .w-checkbox__svg svg{stroke-dashoffset:0}.w-checkbox__svg{position:relative;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:.3s all ease-in-out;box-shadow:0 1px 1px var(--c-shadow)}.w-checkbox__svg svg{position:absolute;top:3px;left:2px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-checkbox__text{padding-left:8px;line-height:18px}.w-checkbox__svg-icon{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}.w-radio{position:relative;display:flex;align-items:center;cursor:pointer;line-height:20px;font-size:16px;margin:5px 0}.w-radio:hover .w-radio__label:after{transform:scale(3.6)}.w-radio__label{position:relative;display:block;float:left;margin-right:10px;width:20px;height:20px;border:2px solid var(--c-border);border-radius:100%;min-width:20px}.w-radio__label:after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;border-radius:100%;background:var(--c-primary);transform:scale(0);transition:.3s all ease-in-out;opacity:.08;pointer-events:none}.w-radio__input{display:none}.w-radio__input:checked+.w-radio__label{border-color:var(--c-primary)}.w-radio__input:checked+.w-radio__label:after{transform:scale(1);transition:all .2s cubic-bezier(.35,.9,.4,.9);opacity:1}.user__icons{display:flex;flex-flow:row wrap;justify-content:right}.user__icons wbutton{margin-left:10px}@media screen and (max-width: 599px){.user__icons wbutton{margin-left:5px}}.users__header{padding:10px}.edit-header{height:45px}@media screen and (max-width: 599px){.edit-header{height:38px}}.edit-header .edit,.edit-header .playlist{width:45px;height:45px}@media screen and (max-width: 599px){.edit-header{width:38px}.edit-header .material-icons{font-size:21px}.edit-header .playlist,.edit-header .edit{width:38px;height:38px;padding:10px}}.wtable{background:var(--c-bg-secondary);box-shadow:var(--c-shadow);border-radius:10px;padding-bottom:70px;max-width:100%;height:auto;margin:0 auto;position:relative}@media (max-width: 991px){.wtable{padding-left:10px;padding-right:10px}}@media screen and (max-width: 599px){.wtable{padding-bottom:50px}}.wtable .table{border-collapse:collapse;margin:0;padding:0;width:100%;table-layout:auto}.wtable .table-plus-btn{cursor:pointer;font-size:16px;font-weight:500;border:0;display:flex;justify-content:center;align-items:center;min-width:140px;height:45px;border-radius:4px;padding:5px 12px;background-color:var(--c-primary);color:var(--c-white);border:1px solid var(--c-primary)}.wtable .table-plus-btn button{width:unset!important}@media screen and (max-width: 599px){.wtable .table-plus-btn button{width:38px!important}}.wtable .table-plus-btn .playlist,.wtable .table-plus-btn .edit{width:45px;min-width:45px}.wtable .table-plus-btn:hover{box-shadow:0 0 3px 0 var(--c-primary);background-color:var(--c-primary)}.wtable .table-plus-btn span{margin-left:5px}@media screen and (max-width: 599px){.wtable .table-plus-btn span{display:none}}@media screen and (max-width: 599px){.wtable .table-plus-btn{right:0;min-width:auto;font-size:24px;width:38px!important;height:38px}}.wtable .table-search{position:relative;display:flex;flex-grow:1;margin:0 30px}.wtable .table-search--active .table-search__input{opacity:1}.wtable .table-search__input{width:100%;height:45px;border-radius:4px;padding:0 10px;color:inherit;background:var(--c-bg-secondary);border:1px solid var(--c-primary)}.wtable .table-search__input:focus{border:2px solid var(--c-primary)}.wtable .table-search__icon{width:40px;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:4;cursor:pointer}.wtable .table-search__icon-mobile{display:none;margin-left:auto;margin-right:130px}@media (max-width: 599px){.wtable .table-search{display:none}.wtable .table-search.table-search--active{display:block;position:absolute;margin:0;width:100%;z-index:2}.wtable .table-search.table-search--active+.table-plus-btn{display:none}.wtable .table-search.table-search--active+.w-forms__title{display:none}.wtable .table-search__icon-mobile{display:none}}.wtable .table .table-header__sort{position:relative;cursor:pointer}.wtable .table .table-header__sort .icon-arrow{transform:rotate(90deg);font-size:var(--fs);position:absolute;top:3px;cursor:pointer}.wtable .table th{position:relative;padding:0 16px;height:48px;text-align:left;font-weight:500;font-size:calc(var(--fs) - 2px);font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);border-bottom:1px solid var(--c-border);overflow:hidden;text-overflow:ellipsis}.wtable .table th .icon-arrow{opacity:0;transition:.3s all ease-in-out}.wtable .table th:hover .icon-arrow{opacity:1;transition:.3s all ease-in-out}.wtable .table th .table-header__sort._sortActiveDown .icon-arrow{transform:rotate(-90deg);opacity:1}.wtable .table th .table-header__sort._sortActiveUp .icon-arrow{opacity:1}@media all and (max-width: 991.9px){.wtable .table th{display:none;text-align:left}}.wtable .table th:last-child{width:140px}.wtable .table td{cursor:pointer;padding:5px 16px;height:60px;text-align:left;vertical-align:middle;font-size:calc(var(--fs) - 2px);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);color:var(--c-text-primary);word-break:break-word;display:table-cell;border-bottom:1px solid var(--c-border)}@media all and (max-width: 991.9px){.wtable .table td{display:flex;align-items:center;justify-content:space-between;column-gap:5px;border-bottom:0;border:2px solid var(--c-border);height:auto;min-height:60px}}.wtable .table td:before{content:attr(data-label);word-break:keep-all;display:inline-block;font-weight:500;font-size:var(--fs);line-height:calc(var(--fs) + 8px);letter-spacing:var(--letter-spacing);text-transform:capitalize;color:var(--c-text-primary);text-overflow:ellipsis}@media (min-width: 992px){.wtable .table td:before{display:none}}.wtable .table tr:last-child td{border-bottom:none}@media (max-width: 991.9px){.wtable .table tr:last-child td{border-bottom:2px solid var(--c-border)}}.wtable .table tr td:last-child{border-right:none}@media (max-width: 992px){.wtable .table tr td:last-child{border-right:2px solid var(--c-border)}}@media (max-width: 992px){.wtable .table tr td:first-child{margin-top:20px}}.wtable .table tr th:last-child{border-right:none}.wtable .table .table__actions{display:flex;gap:6px}.wtable .table .table__actions a i{color:var(--c-text-primary)}@media (max-width: 991.9px){.wtable .table .table-body__last-td{margin-bottom:20px;border-bottom:3px solid var(--c-border)}}.wtable .table .table-body__last-td i{font-size:22px;width:22px}.wtable .table .table-body__last-td i:hover{color:var(--c-primary)}.wtable .table-footer{height:65px;display:flex;gap:120px;position:absolute;width:100%;left:0;bottom:0;padding:0 8px 0 15px;align-items:center;justify-content:space-between}@media screen and (max-width: 599px){.wtable .table-footer{height:90px;padding:10px 20px;flex-direction:column;position:static;gap:20px}}.wtable .table-footer__pagination{display:flex;align-items:center;position:relative;bottom:15px}@media (max-width: 599px){.wtable .table-footer__pagination{bottom:0;left:5px}}.wtable .table-footer__arrow{border:0;background:none;width:30px;height:30px;margin-right:30px;cursor:pointer}.wtable .table-footer__arrow .chevron{position:relative;display:block;min-width:22px;min-height:22px;border:2px solid transparent;border-radius:100px}.wtable .table-footer__arrow .chevron:before{position:absolute;width:2px;height:90%;background-color:var(--c-grey);mix-blend-mode:overlay;top:8%}.wtable .table-footer__arrow .chevron:after{content:"";display:block;box-sizing:border-box;position:absolute;width:10px;height:10px;border-bottom:2px solid var(--c-grey);border-right:2px solid var(--c-grey);mix-blend-mode:overlay;transform:rotate(135deg);left:2px;top:2px}.wtable .table-footer__arrow:disabled i:after{border-color:#9f9f9f}.wtable .table-footer__arrow:disabled i:before{background:#9f9f9f}.wtable .table-footer__arrow._start .chevron{position:relative;left:1px}.wtable .table-footer__arrow._start .chevron:after{left:8px;top:4px}.wtable .table-footer__arrow._start .chevron:before{display:block;left:2px;content:""}.wtable .table-footer__arrow._left .chevron{position:relative;left:4px}.wtable .table-footer__arrow._left .chevron:after{top:4px}.wtable .table-footer__arrow._right .chevron:after{transform:rotate(315deg);top:4px}.wtable .table-footer__arrow._end .chevron{position:relative;left:2px}.wtable .table-footer__arrow._end .chevron:after{left:-3px;top:4px;transform:rotate(315deg)}.wtable .table-footer__arrow._end .chevron:before{display:block;left:11px;content:""}.wtable .table-footer .item-page{font-size:12px;color:#9f9f9f;letter-spacing:1px;display:flex;align-items:center}.wtable .table-footer .item-page__dropdown{position:relative;margin:0 10px;font-weight:700}.wtable .table-footer .item-page__dropdown .caption{background-color:transparent;padding:11px 24px;border-radius:4px;border:1px solid var(--c-border);cursor:pointer}.wtable .table-footer .item-page__dropdown .caption:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable .table-footer .item-page__dropdown .list{position:absolute;background-color:var(--c-bg-secondary);width:100%;bottom:100%;flex-direction:column;border-radius:4px 4px 0 0;display:none;z-index:999}.wtable .table-footer .item-page__dropdown .list .item>div{padding:11px 20px;cursor:pointer;text-align:center}.wtable .table-footer .item-page__dropdown .list .item:hover{background-color:var(--c-primary);color:var(--c-bg-secondary)}.wtable .table-footer .item-page__dropdown .list .item.selected{font-weight:700}.wtable .table-footer .item-page__dropdown.open .caption{border-radius:0 0 4px 4px}.wtable .table-footer .item-page__dropdown.open .list{display:flex;flex-direction:column-reverse;border:1px solid var(--c-border);border-bottom:0}:host{display:block}.w-select{width:100%}.w-select__label{margin-bottom:5px}.w-select__body{position:relative;cursor:pointer;display:flex;min-height:50px;height:50px;align-items:center;border:2px solid var(--c-text-primary);border-radius:12px;transition:var(--transition)}.w-select__body._active{border-color:var(--c-primary)}.w-select__header{display:flex;align-items:center;width:100%;overflow:hidden;white-space:nowrap;padding:14px 10px 14px 40px;position:relative}.w-select__header svg{position:absolute;left:10px;top:50%;transform:translateY(-50%)}.w-select__header svg path{fill:var(--c-primary)}.w-select__text{margin-right:10px;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.w-select__text .text-overflow{overflow:hidden;text-overflow:ellipsis;word-break:keep-all;color:var(--c-text-primary)}.w-select__arrow{margin-right:15px;transition:var(--transition);display:flex;align-items:center;justify-content:center;border-radius:50%}.w-select__arrow svg{width:12px;height:12px}.w-select__arrow svg path{fill:var(--c-text-primary)}.w-select__arrow._active{transform:rotate(180deg)}.w-select .item{padding:10px;transition:var(--transition);border-bottom:1px solid var(--c-text-primary)}.w-select .item:hover{background:var(--c-shadow);border-bottom:1px solid var(--c-primary);color:var(--c-primary)}.w-select__popup{z-index:9;width:100%;left:0;position:absolute;top:calc(100% + 10px);background:var(--c-white);box-shadow:0 0 4px var(--c-border);border-radius:10px;border:2px solid var(--c-primary);background:var(--c-bg-secondary);color:var(--c-text-primary);padding-bottom:15px;padding-top:15px}.w-select__popup._search{padding-top:60px}.w-select__popup .popup-block{max-height:180px;overflow-y:auto;padding:0 15px;margin-right:10px}.w-select__popup .popup-block__empty-search{padding:15px;text-align:center;color:var(--c-text-primary)}.w-select__search{top:10px;position:absolute;display:flex;justify-content:center;align-items:center;width:100%;left:0;padding:0 15px}.w-select__search .search-input{outline:none;width:100%;cursor:pointer;display:flex;padding:10px 30px 10px 10px;align-items:center;border:1px solid var(--c-border);border-radius:10px;transition:var(--transition)}.w-select__search .search-icon{position:absolute;top:50%;right:25px;transform:translateY(-50%)}.w-select *::-webkit-scrollbar{width:5px;height:5px;background-color:var(--c-white)}.w-select * ::-webkit-scrollbar-thumb{border-radius:0;background-color:var(--c-border)}.w-select .checkbox__body{display:inline-flex;-webkit-user-select:none;user-select:none;cursor:pointer;padding:6px 8px;color:var(--c-text);border-radius:6px;overflow:hidden;transition:var(--transition)}.w-select .checkbox__body:not(:last-child){margin-right:6px}.w-select .checkbox__body:hover{background:rgba(var(--c-sky),.09)}.w-select .checkbox__body:hover .checkbox__svg{border-color:var(--c-sky)}.w-select .checkbox__input{display:none}.w-select .checkbox__input:checked+.checkbox__body .checkbox__svg{background:var(--c-sky);border-color:var(--c-sky);animation:wave .4s ease}.w-select .checkbox__input:checked+.checkbox__body .checkbox__svg svg{stroke-dashoffset:0}.w-select .checkbox__svg{position:relative;min-width:18px;min-height:18px;width:18px;height:18px;display:inline-block;border-radius:4px;transform:scale(1);border:1px solid var(--c-border);transition:var(--transition);box-shadow:0 1px 1px var(--c-shadow)}.w-select .checkbox__svg svg{position:absolute;top:3px;left:2px;fill:none;stroke:var(--c-white);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all .3s ease;transition-delay:.1s;transform:translateZ(0)}.w-select .checkbox__text{padding-left:8px;line-height:18px;text-overflow:ellipsis;overflow:hidden}.w-select .checkbox__svg-icon{position:absolute;width:0;height:0;pointer-events:none;-webkit-user-select:none;user-select:none}@keyframes wave{50%{transform:scale(.9)}}.selected{font-weight:700}#html .modal{padding:20px}#html .modal-content{background:var(--c-bg-secondary);border-radius:8px;border:1px solid var(--c-border);max-width:700px;padding-top:45px}#html .modal .close{top:-2px;right:5px;font-size:50px}#html .modal .close:hover{color:var(--c-text-secondary)}#html body._modal-small .modal-content,#html .forms_modal .modal-content{max-width:500px;width:100%}.modal{position:fixed;z-index:9999;left:0;top:0;width:100%;height:100%;overflow-y:auto;background-color:#000;background-color:#00000080}.modal-content{position:relative;background-color:#fff;margin:15% auto;padding:40px 20px 20px;border:1px solid #888;min-width:20%;max-width:80%}@media screen and (max-width: 767px){.modal-content{max-width:100%!important}}.close{color:#aaa;position:absolute;right:10px;top:10px;font-size:32px;line-height:1}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer}.big .modal-content{margin-top:5%!important;margin-bottom:0!important;max-width:100%!important}.d-b{display:block!important}.d-ib{display:inline-block!important}.d-f{display:flex!important}.fd-c{flex-direction:column!important}.jc-sb{justify-content:space-between!important}.jc-fs{justify-content:flex-start!important}.jc-c{justify-content:center!important}.jc-fe{justify-content:flex-end!important}.ai-c{align-items:center!important}.ai-fe{align-items:flex-end!important}.ai-fs{align-items:flex-start!important}.ai-sb{align-items:space-between!important}.fg-1{flex-grow:1!important}.m0{margin:0!important}.mx0{margin-left:0!important;margin-right:0!important}.my0{margin-top:0!important;margin-bottom:0!important}.mt0{margin-top:0!important}.mt10{margin-top:10px!important}.mb0{margin-bottom:0!important}.mb15{margin-bottom:15px!important}.ml0{margin-left:0!important}.mr0{margin-right:0!important}