window.framework={},window.__extends=this&&this.__extends||function(){vart=Object.setPrototypeOf||{__proto__:[]}instanceofArray&&function(t,e){t.__proto__=e}||function(t,e){for(variine)e.hasOwnProperty(i)&&(t[i]=e[i])};returnfunction(e,i){functionn(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(n.prototype=i.prototype,newn)}}();var__awaiter=this&&this.__awaiter||function(t,e,i,n){returnnew(i||(i=Promise))(function(o,r){functions(t){try{h(n.next(t))}catch(t){r(t)}}functiona(t){try{h(n.throw(t))}catch(t){r(t)}}functionh(t){t.done?o(t.value):newi(function(e){e(t.value)}).then(s,a)}h((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){vari,n,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(i)thrownewTypeError("Generator is already executing.");for(;s;)try{if(i=1,n&&(o=2&r[0]?n.return:r[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,r[1])).done)returno;switch(n=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++,n=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],n=0}finally{i=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(vari=0,n=t.length;i<n;i++)if(e.call(arguments[2],t[i],i,t))returni;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){vari=t.findIndex(e);return-1==i?null:t[i]}(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(i,n,o){returne.call(arguments[2],n,o,t)&&i.push(n),i},[]);for(vari=[],n=0,o=t.length;n<o;n++){varr=t[n];e.call(arguments[2],r,n,t)&&i.push(r)}returni}(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(vari=0,n=t.length;i<n;i++)if(t[i]==e)return!0;return!1}(this,t)},Array.prototype.removeAll=function(t){!function(t,e){vari;do{(i=t.findIndex(e))>=0&&t.splice(i,1)}while(i>=0)}(this,t)},Array.prototype.remove=function(t){returnfunction(t,e){vari=t.findIndex(function(t){returnt===e});returni>=0&&(t.splice(i,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,i){t.splice(e,i)}(this,t,e)},Array.prototype.select=function(t){returnfunction(t,e){if("function"==typeoft.reduce)returnt.reduce(function(i,n,o){returni.push(e.call(arguments[2],n,o,t)),i},[]);for(vari=[],n=0,o=t.length;n<o;n++)i.push(e.call(arguments[2],t[n],n,t));returni}(this,t)},Array.prototype.orderBy=function(t,e){returnfunction(t,e,i){returnt.sort(function(t,n){varo=e(t),r=e(n);returni?i(o,r):o>r?1:-1}),t}(this,t,e)},Array.prototype.orderByDescending=function(t,e){returnfunction(t,e,i){returnt.sort(function(t,n){varo=e(t),r=e(n);returni?-i(o,r):o<r?1:-1}),t}(this,t,e)},Array.prototype.groupBy=function(t){returnfunction(t,e){if("function"==typeoft.reduce){vari=[];returnt.reduce(function(n,o,r){vars=JSON.stringify(e.call(arguments[1],o,r,t)),a=i.findIndex(function(t){returnt===s});returna<0&&(a=i.push(s)-1),n[a]||(n[a]=[]),n[a].push(o),n},[])}for(varn=[],o=[],r=function(i,