@jsongrid/json-grid-editor
Version:
JSONGrid Editor is high performance Grid data editor. It converts complex JSON data into beautiful tabular grid-view allowing users to edit and filter the data.
1 lines • 1.06 MB
JavaScript
(()=>{var __webpack_modules__={8573:(z,t,x)=>{"use strict";x.d(t,{r:()=>L});var m=x(1571),y=x(6895),H=x(3608);function $(F,V){if(1&F&&m._UZ(0,"i"),2&F){const P=m.oxw();m.Tol(P.icon)}}function D(F,V){if(1&F&&(m.TgZ(0,"span",3),m._uU(1),m.qZA()),2&F){const P=m.oxw();m.xp6(1),m.Oqu(P.label)}}const N=function(F,V){return{"icon-only":F,disabled:V}};let L=(()=>{class F{constructor(){this.icon=null,this.label=null,this.tooltipText=null,this.tooltip=!0,this.bgColor="black",this.color="white",this.iconOnly=!1,this.disabled=!1,this.btnClick=new m.vpe}handleClick(P){this.btnClick.emit(P)}static#e=this.\u0275fac=function(B){return new(B||F)};static#t=this.\u0275cmp=m.Xpm({type:F,selectors:[["app-icon-button"]],inputs:{icon:"icon",label:"label",tooltipText:"tooltipText",tooltip:"tooltip",bgColor:"bgColor",color:"color",iconOnly:"iconOnly",disabled:"disabled"},outputs:{btnClick:"btnClick"},decls:3,vars:12,consts:[["tooltipPosition","bottom",1,"icon-button",3,"ngClass","pTooltip","showDelay","click"],[3,"class",4,"ngIf"],["class","btn-label",4,"ngIf"],[1,"btn-label"]],template:function(B,U){1&B&&(m.TgZ(0,"div",0),m.NdJ("click",function(W){return U.handleClick(W)}),m.YNc(1,$,1,2,"i",1),m.YNc(2,D,2,1,"span",2),m.qZA()),2&B&&(m.Udp("background-color",U.bgColor)("color",U.color),m.s9C("pTooltip",U.tooltip?U.tooltipText||U.label:""),m.Q6J("ngClass",m.WLB(9,N,U.iconOnly,U.disabled))("showDelay",100),m.xp6(1),m.Q6J("ngIf",U.icon),m.xp6(1),m.Q6J("ngIf",!U.iconOnly&&U.label))},dependencies:[y.mk,y.O5,H.u],styles:['.icon-button[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:3px 6px 4px;border-radius:2px;color:#fff}.icon-button.icon-only[_ngcontent-%COMP%]{padding:7px;border-radius:50%;margin-left:2px}.icon-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:13px;font-weight:500}.icon-button.disabled[_ngcontent-%COMP%]{cursor:not-allowed;opacity:.6;pointer-events:none}.icon-button[_ngcontent-%COMP%] .btn-label[_ngcontent-%COMP%]{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol;margin-left:6px;color:inherit;font-weight:400;font-size:13.5px}.icon-button[_ngcontent-%COMP%]:not(.disabled):hover{box-shadow:inset 0 0 10px #00000080}']})}return F})()},5383:(z,t,x)=>{"use strict";x.d(t,{$U:()=>K,G7:()=>H,L0:()=>U,Q2:()=>y,Ru:()=>F,Ts:()=>P,Z:()=>B,_W:()=>V,at:()=>N,d5:()=>D,pZ:()=>m,wT:()=>L});var m=(()=>{return(W=m||(m={}))[W.Object=0]="Object",W[W.Array=1]="Array",W[W.ObjectArray=2]="ObjectArray",W[W.String=3]="String",W[W.Number=4]="Number",W[W.Boolean=5]="Boolean",m;var W})(),y=(()=>{return(W=y||(y={})).Dark="Dark",W.Light="Light",y;var W})(),H=(()=>{return(W=H||(H={})).Split="Split",W.Full="Full",H;var W})(),D=(()=>{return(W=D||(D={})).String="String",W.Number="Number",W.Boolean="Boolean",W.Unknown="Unknown",D;var W})(),N=(()=>{return(W=N||(N={})).IsNull="Is Null",W.NotNull="Not Null",W.IsMissingOrUndefined="Is Missing Or Undefined",W.NotMissingOrUndefined="Not Missing Or Undefined",N;var W})(),L=(()=>{return(W=L||(L={})).Contains="Contains",W.DoesNotContain="Does Not Contain",W.Equals="Equals ",W.NotEqual="Not Equal ",W.StartsWith="Starts With",W.EndsWith="Ends With",W.IsEmpty="Is Empty",W.NotEmpty="Not Empty",L;var W})(),F=(()=>{return(W=F||(F={})).Equals="Equals",W.NotEqual="Not Equal",W.GreaterThan="Greater Than",W.GreaterThanOrEqualTo="Greater Than Or Equal To",W.LessThan="Less Than",W.LessThanOrEqualTo="Less Than Or Equal To",F;var W})(),V=(()=>{return(W=V||(V={})).IsTrue="Is True",W.IsFalse="Is False",V;var W})(),P=(()=>{return(W=P||(P={})).Success="Success",W.Empty="Empty",W.Error="Error",P;var W})(),B=(()=>{return(W=B||(B={})).Web="Web",W.LibNoLicense="LibNoLicense",W.LibBasic="LibBasic",W.LibPro="LibPro",W.DesktopFree="DesktopFree",W.DesktopBasic="DesktopBasic",W.DesktopPro="DesktopPro",B;var W})(),U=(()=>{return(W=U||(U={})).GridIt="GridIt",W.InlineEdit="InlineEdit",W.ObjArrColMove="ObjArrColMove",W.ObjArrColFilter="ObjArrColFilter",W.ObjArrColSort="ObjArrColSort",W.ObjArrFocusGrid="ObjArrFocusGrid",W.AdvancedFilter="AdvancedFilter",U;var W})(),K=(()=>((K||(K={})).Ctrl_Enter="Ctrl_Enter",K))()},6519:(z,t,x)=>{"use strict";x.d(t,{Gz:()=>H,WP:()=>y,_k:()=>m,gT:()=>L,mq:()=>D,sL:()=>$});class m{constructor(V="",P,B){this.address=V,this.baseIndex=P,this.length=B}}class y{constructor(V,P,B,U,K=""){this.field=V,this.type=P,this.operator=B,this.value=U,this.conditionText=K}}class H{constructor(V,P=null){this.action=V,this.condition=P}}class ${constructor(V,P=!1,B=!1,U=null){this.title=V,this.hasFilter=P,this.expandColumn=B,this.sortDirection=U}}class D{constructor(V,P=null){this.field=V,this.direction=P}}let L=(()=>{class F{static#e=this.ORIGINAL_INDEX_COL_NAME="$$$originalIndex"}return F})()},1465:(z,t,x)=>{"use strict";x.d(t,{P:()=>y});var m=x(1571);let y=(()=>{class H{constructor(){this.tokens=[],this.currentTokenIndex=0}parseQuery(D){this.tokens=this.tokenize(D),this.currentTokenIndex=0;const N=this.parseExpression();return F=>this.evaluateNode(N,F)}tokenize(D){const L=D.match(/\s*(=>|<=|>=|[()=<>]|\bcontains\b|\bis\b|\band\b|\bor\b|\bnot\b|\w+\b|'[^']*'|"[^"]*")\s*/gi);if(null===L)throw new Error("Invalid query string");return L.map(F=>F.trim())}parseExpression(){let D=this.parseTerm();for(;this.peek()&&"or"===this.peek().toLowerCase();)this.next(),D={type:"or",left:D,right:this.parseTerm()};return D}parseTerm(){let D=this.parseFactor();for(;this.peek()&&"and"===this.peek().toLowerCase();)this.next(),D={type:"and",left:D,right:this.parseFactor()};return D}parseFactor(){if("("===this.peek()){this.next();const D=this.parseExpression();if(")"!==this.peek())throw new Error("Expected closing parenthesis");return this.next(),D}return this.parseCondition()}parseCondition(){const N=this.next();if(!N.match(new RegExp("^[\\w.\\[\\]]+$")))throw new Error(`Invalid field: ${N}`);let L=this.next();if("is"===L.toLowerCase()){let P=this.peek();P&&["not","null","empty","true","false"].includes(P.toLowerCase())&&(L+=" "+this.next(),"is not"===L.toLowerCase()&&(P=this.peek(),P&&["null","empty","true","false"].includes(P.toLowerCase())&&(L+=" "+this.next())))}if(L=L.toLowerCase(),!["=",">","<",">=","<=","contains","is","is null","is not null","is empty","is not empty","is true","is false","is not true","is not false","is not"].includes(L))throw new Error(`Invalid operator: ${L}`);let V=null;if(!["is null","is not null","is empty","is not empty","is true","is false","is not true","is not false"].includes(L)){if(V=this.next(),void 0===V)throw new Error("Value expected");V=this.parseValue(V)}return{type:"condition",field:N,operator:L,value:V}}peek(){return this.tokens[this.currentTokenIndex]||null}next(){return this.tokens[this.currentTokenIndex++]||""}parseValue(D){return(D=D.trim()).startsWith("'")&&D.endsWith("'")||D.startsWith('"')&&D.endsWith('"')?D.substring(1,D.length-1):isNaN(Number(D))?"true"===D.toLowerCase()||"false"!==D.toLowerCase()&&D:Number(D)}evaluateNode(D,N){if("and"===D.type)return this.evaluateNode(D.left,N)&&this.evaluateNode(D.right,N);if("or"===D.type)return this.evaluateNode(D.left,N)||this.evaluateNode(D.right,N);if("condition"===D.type)return this.evaluateCondition(N,D);throw new Error("Invalid AST node")}evaluateCondition(D,N){const{field:L,operator:F,value:V}=N,P=this.getNestedValue(D,L);switch(F){case"=":return P==V;case">":return P>V;case"<":return P<V;case">=":return P>=V;case"<=":return P<=V;case"contains":return"string"==typeof P&&"string"==typeof V&&P.includes(V);case"is null":return null==P;case"is not null":return null!=P;case"is empty":return""===P;case"is not empty":return""!==P;case"is true":return!0===P;case"is false":return!1===P;case"is not true":return!0!==P;case"is not false":return!1!==P;default:return!1}}getNestedValue(D,N){return N.replace(/\[(\w+)\]/g,".$1").split(".").reduce((F,V)=>F&&void 0!==F[V]?F[V]:void 0,D)}static#e=this.\u0275fac=function(N){return new(N||H)};static#t=this.\u0275prov=m.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"})}return H})()},8520:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{$0:()=>animateWidths,DZ:()=>extractLineNosFromObject,Dq:()=>removeAllClass,ED:()=>filterAndSortData,MU:()=>getValueByPath,RS:()=>jsonToCSVDownload,Sv:()=>downloadFile,on:()=>findElementsContainingText,pe:()=>decrypt,qX:()=>scrollToElm,t1:()=>removeLeadingDot,u1:()=>highlightTableCell,uo:()=>moveItem,xO:()=>highlightTableColumn,z:()=>highlightTableRow});var _model__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6519),lodash_es__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(7984),lodash_es__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5717),_enums__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5383),crypto_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7206),crypto_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(crypto_js__WEBPACK_IMPORTED_MODULE_0__);function sortNumbers(z){return z.sort((t,x)=>t-x)}function extractLineNosFromObject(z){let t=0,x=0,m=!1;const y=H=>{if(H instanceof Object&&!(H instanceof Array)){x++;for(let $ in H)y(H[$]);0!==Object.keys(H).length&&x++}else if(H instanceof Object&&H instanceof Array){x++;for(let $=0;$<H.length;$++)y(H[$]);0!==H.length&&x++}else m?x++:(m=!0,t=H-x,x=H)};return y(z),{first:t,last:x}}function highlightTableCell(z,t="td"){findClosestParentByTagName(z,t)?.classList.add("highlighted-cell")}function highlightTableRow(z){Array.from(z.parentElement.children).forEach(x=>{x.classList.add("highlighted-cell")})}function highlightTableColumn(z,t){highlightTableCell(z,"th"),Array.from(z.parentElement.parentElement.children[1].children).forEach(y=>{y.children[t]?.classList.add("highlighted-cell")})}function removeAllClass(z,t){Array.from(z.getElementsByClassName(t)).forEach(m=>m.classList.remove(t))}function findElementsContainingText(z,t){const x=y=>{const H=y.childNodes.length;for(let $=0;$<H;$++){const D=y.childNodes[$];if(3===D.nodeType&&-1!==D.data.toLowerCase().indexOf(t.toLowerCase())){m.push(y);break}}for(let $=0;$<H;$++){let D=y.childNodes[$];1===D.nodeType&&x(D)}},m=[];return x(z),m}function scrollToElm(z,t,x=0,m=0){let y=getRelativePos(z,t);scrollTo(z,y.top-x,y.left-m)}function getRelativePos(z,t){let x=z.getBoundingClientRect(),m=t.getBoundingClientRect(),y={};return y.top=m.top-x.top+z.scrollTop,y.right=m.right-x.right,y.bottom=m.bottom-x.bottom,y.left=m.left-x.left+z.scrollLeft,y}function scrollTo(z,t,x){const m=z.scrollTop,H=z.scrollLeft,$=x-H;z.scrollTop=m+(t-m),z.scrollLeft=H+$}function dotNotationToBracketNotationJsonPath(z){return z.split(/\.|\[|\]/).filter(m=>""!==m).map(m=>isNaN(parseInt(m))?`?.["${m}"]`:`?.[${m}]`).join("")}function getValueByPath(z,t){let x=t.replace(/\[(\d+)\]/g,".$1");x=x.replace(/^\./,"");const m=x.split(".");let y=z;for(const H of m){if(null==y)return;y=y[H]}return y}function evalAddress(data,address){const p=dotNotationToBracketNotationJsonPath(address);return eval(`data${p}`)}function filterAndSortData(z,t,x,m,y){return!z||0===z.length||(t?.forEach(H=>{switch(H.operator){case _enums__WEBPACK_IMPORTED_MODULE_1__.at.IsNull:z=z.filter($=>null===$[H.field]);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.at.NotNull:z=z.filter($=>null!==$[H.field]);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.at.IsMissingOrUndefined:z=z.filter($=>void 0===$[H.field]);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.at.NotMissingOrUndefined:z=z.filter($=>void 0!==$[H.field]);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.wT.Equals:z=z.filter($=>$[H.field]===H.value);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.wT.NotEqual:z=z.filter($=>$[H.field]!==H.value);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.wT.Contains:z=z.filter($=>$[H.field]?.includes(H.value));break;case _enums__WEBPACK_IMPORTED_MODULE_1__.wT.DoesNotContain:z=z.filter($=>!$[H.field]?.includes(H.value));break;case _enums__WEBPACK_IMPORTED_MODULE_1__.wT.StartsWith:z=z.filter($=>$[H.field]?.startsWith(H.value));break;case _enums__WEBPACK_IMPORTED_MODULE_1__.wT.EndsWith:z=z.filter($=>$[H.field]?.endsWith(H.value));break;case _enums__WEBPACK_IMPORTED_MODULE_1__.wT.IsEmpty:z=z.filter($=>""===$[H.field]);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.wT.NotEmpty:z=z.filter($=>""!==$[H.field]);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.Ru.Equals:z=z.filter($=>$[H.field]===H.value);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.Ru.NotEqual:z=z.filter($=>$[H.field]!==H.value);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.Ru.GreaterThan:z=z.filter($=>$[H.field]>H.value);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.Ru.GreaterThanOrEqualTo:z=z.filter($=>$[H.field]>=H.value);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.Ru.LessThan:z=z.filter($=>$[H.field]<H.value);break;case _enums__WEBPACK_IMPORTED_MODULE_1__.Ru.LessThanOrEqualTo:z=z.filter($=>$[H.field]<=H.value);break;case _enums__WEBPACK_IMPORTED_MODULE_1__._W.IsTrue:z=z.filter($=>!0===$[H.field]);break;case _enums__WEBPACK_IMPORTED_MODULE_1__._W.IsFalse:z=z.filter($=>!1===$[H.field])}}),x&&(z=(0,lodash_es__WEBPACK_IMPORTED_MODULE_2__.Z)(z,[x.field],[x.direction])),m&&m.length>0&&(z=z.map(H=>{if(y){const $={};return m.map(D=>{$[D]=getValueByPath(H,D)}),$}return(0,lodash_es__WEBPACK_IMPORTED_MODULE_3__.Z)(H,m)}))),z}function findInJson(z,t,x=""){let m=[];const y=new RegExp(t,"i");if(Array.isArray(z))z.forEach((H,$)=>{const D=`${x}[${$}]`;"object"==typeof H?m=m.concat(findInJson(H,t,D)):"string"==typeof H&&y.test(H)&&m.push({path:D,type:"value"})});else if("object"==typeof z&&null!==z){for(const H in z)if(z.hasOwnProperty(H)){const $=z[H],D=x?`${x}.${H}`:H;y.test(H)&&m.push({path:D,type:"key"}),"string"==typeof $&&y.test($)&&m.push({path:D,type:"value"}),"object"==typeof $&&(m=m.concat(findInJson($,t,D)))}}else"string"==typeof z&&y.test(z)&&m.push({path:x,type:"value"});return m}function downloadFile(z,t,x,m){try{const y=new Blob([z],{type:x}),H=document.createElement("a"),$=URL.createObjectURL(y);H.setAttribute("href",$),H.setAttribute("download",t),H.style.visibility="hidden",document.body.appendChild(H),H.click(),document.body.removeChild(H),URL.revokeObjectURL($),m(_enums__WEBPACK_IMPORTED_MODULE_1__.Ts.Success)}catch(y){console.error("downloadFile: ",y),m(_enums__WEBPACK_IMPORTED_MODULE_1__.Ts.Error)}}function jsonToCSVDownload(z,t,x){try{if(0===z.length)return void x(_enums__WEBPACK_IMPORTED_MODULE_1__.Ts.Empty);const m=Object.keys(z[0]).filter(D=>D!==_model__WEBPACK_IMPORTED_MODULE_4__.gT.ORIGINAL_INDEX_COL_NAME),y=m.map(D=>`"${D}"`).join(",");downloadFile(`${y}\r\n${z.map(D=>m.map(N=>{let L=D[N];return void 0===L||"object"==typeof L&&null!==L?'""':`"${L?.toString().replace(/"/g,'""')}"`}).join(",")).join("\r\n")}`,t+".csv","text/csv;charset=utf-8;",x)}catch(m){console.error("jsonToCSVDownload: ",m),x(_enums__WEBPACK_IMPORTED_MODULE_1__.Ts.Error)}}function logv(...z){const t=[];z.forEach(x=>{for(const[m,y]of Object.entries(x))if(y&&"object"==typeof y){const H=[];for(const[$,D]of Object.entries(y))H.push(`${$}:${D}`);t.push(`${m}: ${H.join(", ")}`)}else t.push(`${m}: ${y}`)}),console.log(t.join(" | "))}function removeLeadingDot(z){return z.startsWith(".")?z.substring(1):z}function findClosestParentByTagName(z,t){t=t.toUpperCase();let x=z;for(;x;){if(x.tagName===t)return x;x=x.parentElement}return null}function moveItem(z,t,x){if(t<0||t>=z.length||x<0||x>=z.length)return console.error("Indexes out of bounds"),[];const[m]=z.splice(t,1);return z.splice(x,0,m),z}function animateWidths(z,t,x,m,y=400){z.style.transition=`width ${y}ms ease`,x.style.transition=`width ${y}ms ease`,setTimeout(()=>{z.style.width=t,x.style.width=m},10)}function encrypt(z,t){return CryptoJS.AES.encrypt(z,t).toString()}function decrypt(z,t){return crypto_js__WEBPACK_IMPORTED_MODULE_0__.AES.decrypt(z,t).toString(crypto_js__WEBPACK_IMPORTED_MODULE_0__.enc.Utf8)}},9910:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{W:()=>AdvancedFilterComponent});var _common_enums__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5383),lodash__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7489),lodash__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_0__),lodash_es__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2795),_angular_core__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(1571),_common_services_query_parser_service__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1465),primeng_checkbox__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(1989),_angular_forms__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(433),primeng_tooltip__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3608),_monaco_editor_monaco_editor_component__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5761),_common_components_icon_button_icon_button_component__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8573);const _c0=["monacoEditor"];let AdvancedFilterComponent=(()=>{class _AdvancedFilterComponent{constructor(z,t){this.ngZone=z,this.queryParser=t,this.filterDataCallback=null,this.continuousExecution=!1,this.plainQuery="age > 22 and gender contains 'fe' and isActive is false",this.gridContainerMsg="",this.codeExecutionStatusMsg="",this.initialCodeToShowInMonacoEditor="function filter(rootData) {\n return rootData;\n}",this.debouncedRunCode=(0,lodash_es__WEBPACK_IMPORTED_MODULE_1__.Z)(()=>{this.ngZone.run(()=>{this.runCode()})},500)}setInitialData(z){this.data=z}codeChanged(){this.continuousExecution&&this.debouncedRunCode()}runCode(){try{this.codeExecutionStatusMsg="";const code=this.monacoEditor.getValue(),evalFunc=eval(`(${code})`),filteredData=evalFunc(this.data,lodash__WEBPACK_IMPORTED_MODULE_0__);this.filterDataCallback&&this.filterDataCallback(filteredData,null),this.gridContainerMsg="",(!filteredData||0===filteredData?.length)&&(this.gridContainerMsg="No records found with filter criteria")}catch(z){this.codeExecutionStatusMsg=z instanceof Error?`Error: ${z.name}, ${z.message}`:"Error occurred"}}monacoShortCutUsd(z){z===_common_enums__WEBPACK_IMPORTED_MODULE_2__.$U.Ctrl_Enter&&this.runCode()}static#_=this.\u0275fac=function z(t){return new(t||_AdvancedFilterComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__.Y36(_angular_core__WEBPACK_IMPORTED_MODULE_3__.R0b),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Y36(_common_services_query_parser_service__WEBPACK_IMPORTED_MODULE_4__.P))};static#_2=this.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_3__.Xpm({type:_AdvancedFilterComponent,selectors:[["app-advanced-filter"]],viewQuery:function z(t,x){if(1&t&&_angular_core__WEBPACK_IMPORTED_MODULE_3__.Gf(_c0,5),2&t){let m;_angular_core__WEBPACK_IMPORTED_MODULE_3__.iGM(m=_angular_core__WEBPACK_IMPORTED_MODULE_3__.CRH())&&(x.monacoEditor=m.first)}},inputs:{theme:"theme",filterDataCallback:"filterDataCallback"},decls:19,vars:14,consts:[[1,"advanced-filter"],[1,"left-column"],[1,"code-editor"],[3,"theme","data","valueForEditor","generateIntellisense","language","contentChanged","shortCutUsed"],["monacoEditor",""],[1,"right-column"],[1,"help-note"],["href","https://lodash.com/docs","target","_blank"],[1,"code-stats"],[1,"truncate-text",3,"title"],[1,"right-elements"],["label","Continuous Execution",3,"ngModel","binary","pTooltip","ngModelChange"],["tooltipText","Apply Filter Or Press Ctrl + Enter to Apply",3,"icon","label","bgColor","disabled","btnClick"]],template:function z(t,x){1&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"app-monaco-editor",3,4),_angular_core__WEBPACK_IMPORTED_MODULE_3__.NdJ("contentChanged",function(){return x.codeChanged()})("shortCutUsed",function(y){return x.monacoShortCutUsd(y)}),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA()()(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(5,"div",5)(6,"div",6),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(7," Use JavaScript function(s) to filter or select data. Lodash functions are also supported like _.filter, _.map, _.pick, _sortBy etc. Learn more about Lodash functions "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(8,"a",7),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(9,"here"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(10,". "),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(11,"div",8)(12,"span",9),_angular_core__WEBPACK_IMPORTED_MODULE_3__._uU(13),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(14,"div",10)(15,"div")(16,"p-checkbox",11),_angular_core__WEBPACK_IMPORTED_MODULE_3__.NdJ("ngModelChange",function(y){return x.continuousExecution=y}),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_3__.TgZ(17,"div")(18,"app-icon-button",12),_angular_core__WEBPACK_IMPORTED_MODULE_3__.NdJ("btnClick",function(){return x.runCode()}),_angular_core__WEBPACK_IMPORTED_MODULE_3__.qZA()()()()()()),2&t&&(_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("theme",x.theme)("data",x.data)("valueForEditor",x.initialCodeToShowInMonacoEditor)("generateIntellisense",!0)("language","javascript"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(9),_angular_core__WEBPACK_IMPORTED_MODULE_3__.s9C("title",x.codeExecutionStatusMsg),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Oqu(x.codeExecutionStatusMsg),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("ngModel",x.continuousExecution)("binary",!0)("pTooltip","Code will be executed continuously while you are typing filter function"),_angular_core__WEBPACK_IMPORTED_MODULE_3__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_3__.Q6J("icon","pi pi-caret-right")("label","Apply")("bgColor","#2196F3")("disabled",x.continuousExecution))},dependencies:[primeng_checkbox__WEBPACK_IMPORTED_MODULE_5__.XZ,_angular_forms__WEBPACK_IMPORTED_MODULE_6__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_6__.On,primeng_tooltip__WEBPACK_IMPORTED_MODULE_7__.u,_monaco_editor_monaco_editor_component__WEBPACK_IMPORTED_MODULE_8__.T,_common_components_icon_button_icon_button_component__WEBPACK_IMPORTED_MODULE_9__.r],styles:[".advanced-filter[_ngcontent-%COMP%]{display:flex;background-color:var(--body-bg);color:var(--body-color);height:100%}.advanced-filter[_ngcontent-%COMP%] .left-column[_ngcontent-%COMP%]{width:67%;display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%] .left-column[_ngcontent-%COMP%] .code-editor[_ngcontent-%COMP%]{height:100%}.advanced-filter[_ngcontent-%COMP%] .right-column[_ngcontent-%COMP%]{width:33%;display:flex;flex-direction:column}.advanced-filter[_ngcontent-%COMP%] .right-column[_ngcontent-%COMP%] .help-note[_ngcontent-%COMP%]{margin-bottom:auto;padding:10px;font-family:Arial,sans-serif;font-size:13.5px}.advanced-filter[_ngcontent-%COMP%] .right-column[_ngcontent-%COMP%] .help-note[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:var(--primary-color)}.advanced-filter[_ngcontent-%COMP%] .right-column[_ngcontent-%COMP%] .code-stats[_ngcontent-%COMP%]{margin-top:auto;display:flex;align-items:center;padding:10px;flex-direction:column}.advanced-filter[_ngcontent-%COMP%] .right-column[_ngcontent-%COMP%] .code-stats[_ngcontent-%COMP%] .right-elements[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-around;width:100%}.advanced-filter[_ngcontent-%COMP%] .right-column[_ngcontent-%COMP%] .code-stats[_ngcontent-%COMP%] .truncate-text[_ngcontent-%COMP%]{margin-bottom:10px;display:inline-block;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;color:red;font-weight:500;font-size:14px}.advanced-filter-panel[_ngcontent-%COMP%]{width:100%;height:100%}"]})}return _AdvancedFilterComponent})()},5761:(z,t,x)=>{"use strict";x.d(t,{T:()=>$});var m=x(1571),y=x(5383);const H=["editor"];let $=(()=>{class D{set theme(L){this._theme=L,this.switchTheme(L)}set data(L){L&&(this._data=L)}constructor(L){this.ngZone=L,this.contentChanged=new m.vpe,this.shortCutUsed=new m.vpe,this.generateIntellisense=!1,this.valueForEditor="",this.showJSTSErrors=!0,this.language="json",this.currentDecorationIds=[]}ngOnInit(){this.loadMonacoEditor()}loadMonacoEditor(){window.require(["vs/editor/editor.main"],()=>{if(this.editor=monaco.editor.create(this.editorContent.nativeElement,{value:this.valueForEditor||this._data,language:this.language,automaticLayout:!0,scrollBeyondLastLine:!1,links:!1,minimap:{enabled:!1},stickyScroll:{enabled:!0}}),monaco.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!1,schemas:[],allowComments:!1,trailingCommas:"ignore"}),this.generateIntellisense){const F=this.createCompletionItemsFromJson(this._data);this.completionProvider=monaco.languages.registerCompletionItemProvider("javascript",{provideCompletionItems:(V,P)=>{const B=V.getWordUntilPosition(P),U={startLineNumber:P.lineNumber,endLineNumber:P.lineNumber,startColumn:B.startColumn,endColumn:B.endColumn};return{suggestions:F.map(K=>({...K,range:U}))}}})}this.editor.onDidChangeModelContent(()=>{const F=this.editor.getValue();this.contentChanged.emit(F)}),this.editor.addCommand(monaco.KeyMod.CtrlCmd|monaco.KeyCode.Enter,()=>{this.ngZone.run(()=>{this.shortCutUsed.emit(y.$U.Ctrl_Enter)})}),this.switchTheme(this._theme)})}ngAfterViewInit(){}ngOnDestroy(){this.editor&&(this.editor.dispose(),this.editor=void 0),this.completionProvider&&(this.completionProvider.dispose(),this.completionProvider=void 0)}goToLine(L){if(L<=0)throw new Error("Line number must be greater than 0.");const F=this.editor.getModel();if(!F)throw new Error("Editor model is not available.");const V=F.getLineCount();if(L>V)throw new Error(`Line number exceeds total number of lines (${V}).`);this.editor.revealLineInCenter(L)}highlightLinesInBulk(L){if(!Array.isArray(L)||L.some(({startLineNumber:V,endLineNumber:P})=>V<=0||P<=0||V>P))throw new Error("Invalid line ranges. Ensure startLineNumber and endLineNumber are positive, and startLineNumber <= endLineNumber.");const F=L.map(({startLineNumber:V,endLineNumber:P})=>({range:new monaco.Range(V,1,P,1),options:{isWholeLine:!0,className:"monaco-editor-highlight-line"}}));this.currentDecorationIds=this.editor.deltaDecorations(this.currentDecorationIds,F),L.length>0&&setTimeout(()=>{this.editor.revealLineInCenter(L[0].startLineNumber)},10)}clearHighlightedLines(){this.currentDecorationIds=this.editor.deltaDecorations(this.currentDecorationIds,[])}getJSONErrors(){const L=this.editor.getModel();if(!L)throw new Error("Editor model is not available.");return monaco.editor.getModelMarkers({owner:"json"}).filter(P=>P.resource.toString()===L.uri.toString()).map(P=>({row:P.startLineNumber,text:P.message}))}openSearchBox(){const L=this.editor.getAction("actions.find");L?L.run():console.error("Find action is not available.")}handleEditorResize(){new ResizeObserver(()=>{const F=this.editorContent.nativeElement;F.style.display="none",setTimeout(()=>{F.style.display="block",this.editor?.layout()},10)}).observe(this.editorContent.nativeElement)}switchTheme(L){const V=window;V.monaco&&V.monaco.editor&&monaco.editor.setTheme(L===y.Q2.Dark?"vs-dark":"vs-light")}getValue(){return this.editor.getValue()}setValue(L){this.editor.setValue(L)}getKeys(L){const F=new Set;return function V(P,B){Array.isArray(P)?P.forEach(U=>{V(U,"")}):null!==P&&"object"==typeof P&&Object.keys(P).forEach(U=>{const K=B?`${B}.${U}`:U;F.add(K),F.add(U),null!==P[U]&&"object"==typeof P[U]&&(Array.isArray(P[U])?V(P[U],""):V(P[U],K))})}(L,""),Array.from(F)}createCompletionItemsFromJson(L){const F=[];return this.getKeys(L).forEach(P=>{F.push({label:P,kind:monaco.languages.CompletionItemKind.Property,documentation:`Path: ${P}`,insertText:P,range:void 0})}),F}static#e=this.\u0275fac=function(F){return new(F||D)(m.Y36(m.R0b))};static#t=this.\u0275cmp=m.Xpm({type:D,selectors:[["app-monaco-editor"]],viewQuery:function(F,V){if(1&F&&m.Gf(H,7),2&F){let P;m.iGM(P=m.CRH())&&(V.editorContent=P.first)}},inputs:{generateIntellisense:"generateIntellisense",valueForEditor:"valueForEditor",showJSTSErrors:"showJSTSErrors",language:"language",theme:"theme",data:"data"},outputs:{contentChanged:"contentChanged",shortCutUsed:"shortCutUsed"},decls:2,vars:0,consts:[[1,"monaco-editor-container"],["editor",""]],template:function(F,V){1&F&&m._UZ(0,"div",0,1)},styles:[".monaco-editor-container[_ngcontent-%COMP%]{height:100%}"]})}return D})()},7466:function(z,t,x){var m;z.exports=(m=x(7585),x(8319),x(9493),x(7865),x(3057),function(){var y=m,$=y.lib.BlockCipher,D=y.algo,N=[],L=[],F=[],V=[],P=[],B=[],U=[],K=[],W=[],Y=[];!function(){for(var ee=[],se=0;se<256;se++)ee[se]=se<128?se<<1:se<<1^283;var be=0,oe=0;for(se=0;se<256;se++){var X=oe^oe<<1^oe<<2^oe<<3^oe<<4;N[be]=X=X>>>8^255&X^99,L[X]=be;var pe,ce=ee[be],ae=ee[ce],de=ee[ae];F[be]=(pe=257*ee[X]^16843008*X)<<24|pe>>>8,V[be]=pe<<16|pe>>>16,P[be]=pe<<8|pe>>>24,B[be]=pe,U[X]=(pe=16843009*de^65537*ae^257*ce^16843008*be)<<24|pe>>>8,K[X]=pe<<16|pe>>>16,W[X]=pe<<8|pe>>>24,Y[X]=pe,be?(be=ce^ee[ee[ee[de^ce]]],oe^=ee[ee[oe]]):be=oe=1}}();var Q=[0,1,2,4,8,16,32,64,128,27,54],ue=D.AES=$.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var se=this._keyPriorReset=this._key,be=se.words,oe=se.sigBytes/4,ce=4*((this._nRounds=oe+6)+1),ae=this._keySchedule=[],de=0;de<ce;de++)de<oe?ae[de]=be[de]:(ee=ae[de-1],de%oe?oe>6&&de%oe==4&&(ee=N[ee>>>24]<<24|N[ee>>>16&255]<<16|N[ee>>>8&255]<<8|N[255&ee]):(ee=N[(ee=ee<<8|ee>>>24)>>>24]<<24|N[ee>>>16&255]<<16|N[ee>>>8&255]<<8|N[255&ee],ee^=Q[de/oe|0]<<24),ae[de]=ae[de-oe]^ee);for(var pe=this._invKeySchedule=[],Le=0;Le<ce;Le++){if(de=ce-Le,Le%4)var ee=ae[de];else ee=ae[de-4];pe[Le]=Le<4||de<=4?ee:U[N[ee>>>24]]^K[N[ee>>>16&255]]^W[N[ee>>>8&255]]^Y[N[255&ee]]}}},encryptBlock:function(ee,se){this._doCryptBlock(ee,se,this._keySchedule,F,V,P,B,N)},decryptBlock:function(ee,se){var be=ee[se+1];ee[se+1]=ee[se+3],ee[se+3]=be,this._doCryptBlock(ee,se,this._invKeySchedule,U,K,W,Y,L),be=ee[se+1],ee[se+1]=ee[se+3],ee[se+3]=be},_doCryptBlock:function(ee,se,be,oe,X,ce,ae,de){for(var pe=this._nRounds,Le=ee[se]^be[0],Ie=ee[se+1]^be[1],Se=ee[se+2]^be[2],We=ee[se+3]^be[3],Fe=4,vt=1;vt<pe;vt++){var ot=oe[Le>>>24]^X[Ie>>>16&255]^ce[Se>>>8&255]^ae[255&We]^be[Fe++],Ot=oe[Ie>>>24]^X[Se>>>16&255]^ce[We>>>8&255]^ae[255&Le]^be[Fe++],nn=oe[Se>>>24]^X[We>>>16&255]^ce[Le>>>8&255]^ae[255&Ie]^be[Fe++],he=oe[We>>>24]^X[Le>>>16&255]^ce[Ie>>>8&255]^ae[255&Se]^be[Fe++];Le=ot,Ie=Ot,Se=nn,We=he}ot=(de[Le>>>24]<<24|de[Ie>>>16&255]<<16|de[Se>>>8&255]<<8|de[255&We])^be[Fe++],Ot=(de[Ie>>>24]<<24|de[Se>>>16&255]<<16|de[We>>>8&255]<<8|de[255&Le])^be[Fe++],nn=(de[Se>>>24]<<24|de[We>>>16&255]<<16|de[Le>>>8&255]<<8|de[255&Ie])^be[Fe++],he=(de[We>>>24]<<24|de[Le>>>16&255]<<16|de[Ie>>>8&255]<<8|de[255&Se])^be[Fe++],ee[se]=ot,ee[se+1]=Ot,ee[se+2]=nn,ee[se+3]=he},keySize:8});y.AES=$._createHelper(ue)}(),m.AES)},1302:function(z,t,x){var m;z.exports=(m=x(7585),x(8319),x(9493),x(7865),x(3057),function(){var y=m,$=y.lib.BlockCipher;const N=16,L=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],F=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var V={pbox:[],sbox:[]};function P(Y,Q){let oe=Y.sbox[0][Q>>24&255]+Y.sbox[1][Q>>16&255];return oe^=Y.sbox[2][Q>>8&255],oe+=Y.sbox[3][255&Q],oe}function B(Y,Q,ue){let be,ee=Q,se=ue;for(let oe=0;oe<N;++oe)ee^=Y.pbox[oe],se=P(Y,ee)^se,be=ee,ee=se,se=be;return be=ee,ee=se,se=be,se^=Y.pbox[N],ee^=Y.pbox[N+1],{left:ee,right:se}}var W=y.algo.Blowfish=$.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var Y=this._keyPriorReset=this._key;!function K(Y,Q,ue){for(let X=0;X<4;X++){Y.sbox[X]=[];for(let ce=0;ce<256;ce++)Y.sbox[X][ce]=F[X][ce]}let ee=0;for(let X=0;X<N+2;X++)Y.pbox[X]=L[X]^Q[ee],ee++,ee>=ue&&(ee=0);let se=0,be=0,oe=0;for(let X=0;X<N+2;X+=2)oe=B(Y,se,be),se=oe.left,be=oe.right,Y.pbox[X]=se,Y.pbox[X+1]=be;for(let X=0;X<4;X++)for(let ce=0;ce<256;ce+=2)oe=B(Y,se,be),se=oe.left,be=oe.right,Y.sbox[X][ce]=se,Y.sbox[X][ce+1]=be;return!0}(V,Y.words,Y.sigBytes/4)}},encryptBlock:function(Y,Q){var ue=B(V,Y[Q],Y[Q+1]);Y[Q]=ue.left,Y[Q+1]=ue.right},decryptBlock:function(Y,Q){var ue=function U(Y,Q,ue){let be,ee=Q,se=ue;for(let oe=N+1;oe>1;--oe)ee^=Y.pbox[oe],se=P(Y,ee)^se,be=ee,ee=se,se=be;return be=ee,ee=se,se=be,se^=Y.pbox[1],ee^=Y.pbox[0],{left:ee,right:se}}(V,Y[Q],Y[Q+1]);Y[Q]=ue.left,Y[Q+1]=ue.right},blockSize:2,keySize:4,ivSize:2});y.Blowfish=$._createHelper(W)}(),m.Blowfish)},3057:function(z,t,x){var y,H,$,D,N,L,F,P,U,K,Y,Q,ue,se,oe,ce,ae,pe,Le,m;z.exports=(m=x(7585),x(7865),void(m.lib.Cipher||(H=m,$=H.lib,D=$.Base,N=$.WordArray,L=$.BufferedBlockAlgorithm,F=H.enc,P=F.Base64,U=H.algo.EvpKDF,K=$.Cipher=L.extend({cfg:D.extend(),createEncryptor:function(Ie,Se){return this.create(this._ENC_XFORM_MODE,Ie,Se)},createDecryptor:function(Ie,Se){return this.create(this._DEC_XFORM_MODE,Ie,Se)},init:function(Ie,Se,We){this.cfg=this.cfg.extend(We),this._xformMode=Ie,this._key=Se,this.reset()},reset:function(){L.reset.call(this),this._doReset()},process:function(Ie){return this._append(Ie),this._process()},finalize:function(Ie){return Ie&&this._append(Ie),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function Ie(Se){return"string"==typeof Se?Le:ae}return function(Se){return{encrypt:function(We,Fe,vt){return Ie(Fe).encrypt(Se,We,Fe,vt)},decrypt:function(We,Fe,vt){return Ie(Fe).decrypt(Se,We,Fe,vt)}}}}()}),$.StreamCipher=K.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),Y=H.mode={},Q=$.BlockCipherMode=D.extend({createEncryptor:function(Ie,Se){return this.Encryptor.create(Ie,Se)},createDecryptor:function(Ie,Se){return this.Decryptor.create(Ie,Se)},init:function(Ie,Se){this._cipher=Ie,this._iv=Se}}),ue=Y.CBC=function(){var Ie=Q.extend();function Se(We,Fe,vt){var ot,Ot=this._iv;Ot?(ot=Ot,this._iv=y):ot=this._prevBlock;for(var nn=0;nn<vt;nn++)We[Fe+nn]^=ot[nn]}return Ie.Encryptor=Ie.extend({processBlock:function(We,Fe){var vt=this._cipher,ot=vt.blockSize;Se.call(this,We,Fe,ot),vt.encryptBlock(We,Fe),this._prevBlock=We.slice(Fe,Fe+ot)}}),Ie.Decryptor=Ie.extend({processBlock:function(We,Fe){var vt=this._cipher,ot=vt.blockSize,Ot=We.slice(Fe,Fe+ot);vt.decryptBlock(We,Fe),Se.call(this,We,Fe,ot),this._prevBlock=Ot}}),Ie}(),se=(H.pad={}).Pkcs7={pad:function(Ie,Se){for(var We=4*Se,Fe=We-Ie.sigBytes%We,vt=Fe<<24|Fe<<16|Fe<<8|Fe,ot=[],Ot=0;Ot<Fe;Ot+=4)ot.push(vt);var nn=N.create(ot,Fe);Ie.concat(nn)},unpad:function(Ie){Ie.sigBytes-=255&Ie.words[Ie.sigBytes-1>>>2]}},$.BlockCipher=K.extend({cfg:K.cfg.extend({mode:ue,padding:se}),reset:function(){var Ie;K.reset.call(this);var Se=this.cfg,We=Se.iv,Fe=Se.mode;this._xformMode==this._ENC_XFORM_MODE?Ie=Fe.createEncryptor:(Ie=Fe.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==Ie?this._mode.init(this,We&&We.words):(this._mode=Ie.call(Fe,this,We&&We.words),this._mode.__creator=Ie)},_doProcessBlock:function(Ie,Se){this._mode.processBlock(Ie,Se)},_doFinalize:function(){var Ie,Se=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(Se.pad(this._data,this.blockSize),Ie=this._process(!0)):(Ie=this._process(!0),Se.unpad(Ie)),Ie},blockSize:4}),oe=$.CipherParams=D.extend({init:function(Ie){this.mixIn(Ie)},toString:function(Ie){return(Ie||this.formatter).stringify(this)}}),ce=(H.format={}).OpenSSL={stringify:function(Ie){var We=Ie.ciphertext,Fe=Ie.salt;return(Fe?N.create([1398893684,1701076831]).concat(Fe).concat(We):We).toString(P)},parse:function(Ie){var Se,We=P.parse(Ie),Fe=We.words;return 1398893684==Fe[0]&&1701076831==Fe[1]&&(Se=N.create(Fe.slice(2,4)),Fe.splice(0,4),We.sigBytes-=16),oe.create({ciphertext:We,salt:Se})}},ae=$.SerializableCipher=D.extend({cfg:D.extend({format:ce}),encrypt:function(Ie,Se,We,Fe){Fe=this.cfg.extend(Fe);var vt=Ie.createEncryptor(We,Fe),ot=vt.finalize(Se),Ot=vt.cfg;return oe.create({ciphertext:ot,key:We,iv:Ot.iv,algorithm:Ie,mode:Ot.mode,padding:Ot.padding,blockSize:Ie.blockSize,formatter:Fe.format})},decrypt:function(Ie,Se,We,Fe){return Fe=this.cfg.extend(Fe),Se=this._parse(Se,Fe.format),Ie.createDecryptor(We,Fe).finalize(Se.ciphertext)},_parse:function(Ie,Se){return"string"==typeof Ie?Se.parse(Ie,this):Ie}}),pe=(H.kdf={}).OpenSSL={execute:function(Ie,Se,We,Fe,vt){if(Fe||(Fe=N.random(8)),vt)var ot=U.create({keySize:Se+We,hasher:vt}).compute(Ie,Fe);else ot=U.create({keySize:Se+We}).compute(Ie,Fe);var Ot=N.create(ot.words.slice(Se),4*We);return ot.sigBytes=4*Se,oe.create({key:ot,iv:Ot,salt:Fe})}},Le=$.PasswordBasedCipher=ae.extend({cfg:ae.cfg.extend({kdf:pe}),encrypt:function(Ie,Se,We,Fe){var vt=(Fe=this.cfg.extend(Fe)).kdf.execute(We,Ie.keySize,Ie.ivSize,Fe.salt,Fe.hasher);Fe.iv=vt.iv;var ot=ae.encrypt.call(this,Ie,Se,vt.key,Fe);return ot.mixIn(vt),ot},decrypt:function(Ie,Se,We,Fe){Fe=this.cfg.extend(Fe),Se=this._parse(Se,Fe.format);var vt=Fe.kdf.execute(We,Ie.keySize,Ie.ivSize,Se.salt,Fe.hasher);return Fe.iv=vt.iv,ae.decrypt.call(this,Ie,Se,vt.key,Fe)}}))))},7585:function(z,t,x){var m;z.exports=(m=m||function(y,H){var $;if(typeof window<"u"&&window.crypto&&($=window.crypto),typeof self<"u"&&self.crypto&&($=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&($=globalThis.crypto),!$&&typeof window<"u"&&window.msCrypto&&($=window.msCrypto),!$&&typeof global<"u"&&global.crypto&&($=global.crypto),!$)try{$=x(2480)}catch{}var D=function(){if($){if("function"==typeof $.getRandomValues)try{return $.getRandomValues(new Uint32Array(1))[0]}catch{}if("function"==typeof $.randomBytes)try{return $.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},N=Object.create||function(){function ee(){}return function(se){var be;return ee.prototype=se,be=new ee,ee.prototype=null,be}}(),L={},F=L.lib={},V=F.Base={extend:function(ee){var se=N(this);return ee&&se.mixIn(ee),(!se.hasOwnProperty("init")||this.init===se.init)&&(se.init=function(){se.$super.init.apply(this,arguments)}),se.init.prototype=se,se.$super=this,se},create:function(){var ee=this.extend();return ee.init.apply(ee,arguments),ee},init:function(){},mixIn:function(ee){for(var se in ee)ee.hasOwnProperty(se)&&(this[se]=ee[se]);ee.hasOwnProperty("toString")&&(this.toString=ee.toString)},clone:function(){return this.init.prototype.extend(this)}},P=F.WordArray=V.extend({init:function(ee,se){ee=this.words=ee||[],this.sigBytes=null!=se?se:4*ee.length},toString:function(ee){return(ee||U).stringify(this)},concat:function(ee){var se=this.words,be=ee.words,oe=this.sigBytes,X=ee.sigBytes;if(this.clamp(),oe%4)for(var ce=0;ce<X;ce++)se[oe+ce>>>2]|=(be[ce>>>2]>>>24-ce%4*8&255)<<24-(oe+ce)%4*8;else for(var de=0;de<X;de+=4)se[oe+de>>>2]=be[de>>>2];return this.sigBytes+=X,this},clamp:function(){var ee=this.words,se=this.sigBytes;ee[se>>>2]&=4294967295<<32-se%4*8,ee.length=y.ceil(se/4