window.framework={},window.__extends=this&&this.__extends||function(){vart=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(varnine)e.hasOwnProperty(n)&&(t[n]=e[n])};returnfunction(e,n){functioni(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,newi)}}();var__awaiter=this&&this.__awaiter||function(t,e,n,i){returnnew(n||(n=Promise))(function(o,r){functions(t){try{c(i.next(t))}catch(t){r(t)}}functiona(t){try{c(i.throw(t))}catch(t){r(t)}}functionc(t){t.done?o(t.value):newn(function(e){e(t.value)}).then(s,a)}c((i=i.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){varn,i,o,r,s={label:0,sent:function(){if(1&o[0])throwo[1];returno[1]},trys:[],ops:[]};returnr={next:a(0),throw:a(1),return:a(2)},"function"==typeofSymbol&&(r[Symbol.iterator]=function(){returnthis}),r;functiona(r){returnfunction(a){returnfunction(r){if(n)thrownewTypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)returno;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case0:case1:o=r;break;case4:returns.label++,{value:r[1],done:!1};case5:s.label++,i=r[1],r=[0];continue;case7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],i=0}finally{n=o=0}if(5&r[0])throwr[1];return{value:r[0]?r[1]:void0,done:!0}}([r,a])}}};Array.prototype.findIndex=function(t){returnfunction(t,e){for(varn=0,i=t.length;n<i;n++)if(e.call(arguments[2],t[n],n,t))returnn;return-1}(this,t)},Array.prototype.any=function(t){returnfunction(t,e){returnt.findIndex(e)>-1}(this,t)},Array.prototype.firstOrDefault=function(t){returnfunction(t,e){varn=t.findIndex(e);return-1==n?null:t[n]}(this,t)},Array.prototype.find=function(t){returnfunction(t,e){returnt.firstOrDefault(e)}(this,t)},Array.prototype.where=function(t){returnfunction(t,e){if("function"==typeoft.reduce)returnt.reduce(function(n,i,o){returne.call(arguments[2],i,o,t)&&n.push(i),n},[]);for(varn=[],i=0,o=t.length;i<o;i++){varr=t[i];e.call(arguments[2],r,i,t)&&n.push(r)}returnn}(this,t)},Array.prototype.count=function(t){returnfunction(t,e){returnt.where(e).length}(this,t)},Array.prototype.findAll=function(t){returnfunction(t,e){returnt.where(e)}(this,t)},Array.prototype.contains=function(t){returnfunction(t,e){for(varn=0,i=t.length;n<i;n++)if(t[n]==e)return!0;return!1}(this,t)},Array.prototype.removeAll=function(t){!function(t,e){varn;do{(n=t.findIndex(e))>=0&&t.splice(n,1)}while(n>=0)}(this,t)},Array.prototype.remove=function(t){returnfunction(t,e){varn=t.findIndex(function(t){returnt===e});returnn>=0&&(t.splice(n,1),!0)}(this,t)},Array.prototype.removeAt=function(t){returnfunction(t,e){t.splice(e,1)}(this,t)},Array.prototype.removeRange=function(t,e){returnfunction(t,e,n){t.splice(e,n)}(this,t,e)},Array.prototype.select=function(t){returnfunction(t,e){if("function"==typeoft.reduce)returnt.reduce(function(n,i,o){returnn.push(e.call(arguments[2],i,o,t)),n},[]);for(varn=[],i=0,o=t.length;i<o;i++)n.push(e.call(arguments[2],t[i],i,t));returnn}(this,t)},Array.prototype.orderBy=function(t,e){returnfunction(t,e,n){returnt.sort(function(t,i){varo=e(t),r=e(i);returnn?n(o,r):o>r?1:-1}),t}(this,t,e)},Array.prototype.orderByDescending=function(t,e){returnfunction(t,e,n){returnt.sort(function(t,i){varo=e(t),r=e(i);returnn?-n(o,r):o<r?1:-1}),t}(this,t,e)},Array.prototype.groupBy=function(t){returnfunction(t,e){if("function"==typeoft.reduce){varn=[];returnt.reduce(function(i,o,r){vars=JSON.stringify(e.call(arguments[1],o,r,t)),a=n.findIndex(function(t){returnt===s});returna<0&&(a=n.push(s)-1),i[a]||(i[a]=[]),i[a].push(o),i},[])}for(vari=[],o=[],r=function(n,