ag-grid-enterprise
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
4 lines • 927 kB
JavaScript
import{BeanStub as oh,_getDocument as nh}from"ag-grid-community";var lh=class{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(e,t){let s=e[0],i=e[1],r=e[2],a=e[3];s=this.ff(s,i,r,a,t[0],7,-680876936),a=this.ff(a,s,i,r,t[1],12,-389564586),r=this.ff(r,a,s,i,t[2],17,606105819),i=this.ff(i,r,a,s,t[3],22,-1044525330),s=this.ff(s,i,r,a,t[4],7,-176418897),a=this.ff(a,s,i,r,t[5],12,1200080426),r=this.ff(r,a,s,i,t[6],17,-1473231341),i=this.ff(i,r,a,s,t[7],22,-45705983),s=this.ff(s,i,r,a,t[8],7,1770035416),a=this.ff(a,s,i,r,t[9],12,-1958414417),r=this.ff(r,a,s,i,t[10],17,-42063),i=this.ff(i,r,a,s,t[11],22,-1990404162),s=this.ff(s,i,r,a,t[12],7,1804603682),a=this.ff(a,s,i,r,t[13],12,-40341101),r=this.ff(r,a,s,i,t[14],17,-1502002290),i=this.ff(i,r,a,s,t[15],22,1236535329),s=this.gg(s,i,r,a,t[1],5,-165796510),a=this.gg(a,s,i,r,t[6],9,-1069501632),r=this.gg(r,a,s,i,t[11],14,643717713),i=this.gg(i,r,a,s,t[0],20,-373897302),s=this.gg(s,i,r,a,t[5],5,-701558691),a=this.gg(a,s,i,r,t[10],9,38016083),r=this.gg(r,a,s,i,t[15],14,-660478335),i=this.gg(i,r,a,s,t[4],20,-405537848),s=this.gg(s,i,r,a,t[9],5,568446438),a=this.gg(a,s,i,r,t[14],9,-1019803690),r=this.gg(r,a,s,i,t[3],14,-187363961),i=this.gg(i,r,a,s,t[8],20,1163531501),s=this.gg(s,i,r,a,t[13],5,-1444681467),a=this.gg(a,s,i,r,t[2],9,-51403784),r=this.gg(r,a,s,i,t[7],14,1735328473),i=this.gg(i,r,a,s,t[12],20,-1926607734),s=this.hh(s,i,r,a,t[5],4,-378558),a=this.hh(a,s,i,r,t[8],11,-2022574463),r=this.hh(r,a,s,i,t[11],16,1839030562),i=this.hh(i,r,a,s,t[14],23,-35309556),s=this.hh(s,i,r,a,t[1],4,-1530992060),a=this.hh(a,s,i,r,t[4],11,1272893353),r=this.hh(r,a,s,i,t[7],16,-155497632),i=this.hh(i,r,a,s,t[10],23,-1094730640),s=this.hh(s,i,r,a,t[13],4,681279174),a=this.hh(a,s,i,r,t[0],11,-358537222),r=this.hh(r,a,s,i,t[3],16,-722521979),i=this.hh(i,r,a,s,t[6],23,76029189),s=this.hh(s,i,r,a,t[9],4,-640364487),a=this.hh(a,s,i,r,t[12],11,-421815835),r=this.hh(r,a,s,i,t[15],16,530742520),i=this.hh(i,r,a,s,t[2],23,-995338651),s=this.ii(s,i,r,a,t[0],6,-198630844),a=this.ii(a,s,i,r,t[7],10,1126891415),r=this.ii(r,a,s,i,t[14],15,-1416354905),i=this.ii(i,r,a,s,t[5],21,-57434055),s=this.ii(s,i,r,a,t[12],6,1700485571),a=this.ii(a,s,i,r,t[3],10,-1894986606),r=this.ii(r,a,s,i,t[10],15,-1051523),i=this.ii(i,r,a,s,t[1],21,-2054922799),s=this.ii(s,i,r,a,t[8],6,1873313359),a=this.ii(a,s,i,r,t[15],10,-30611744),r=this.ii(r,a,s,i,t[6],15,-1560198380),i=this.ii(i,r,a,s,t[13],21,1309151649),s=this.ii(s,i,r,a,t[4],6,-145523070),a=this.ii(a,s,i,r,t[11],10,-1120210379),r=this.ii(r,a,s,i,t[2],15,718787259),i=this.ii(i,r,a,s,t[9],21,-343485551),e[0]=this.add32(s,e[0]),e[1]=this.add32(i,e[1]),e[2]=this.add32(r,e[2]),e[3]=this.add32(a,e[3])}cmn(e,t,s,i,r,a){return t=this.add32(this.add32(t,e),this.add32(i,a)),this.add32(t<<r|t>>>32-r,s)}ff(e,t,s,i,r,a,o){return this.cmn(t&s|~t&i,e,t,r,a,o)}gg(e,t,s,i,r,a,o){return this.cmn(t&i|s&~i,e,t,r,a,o)}hh(e,t,s,i,r,a,o){return this.cmn(t^s^i,e,t,r,a,o)}ii(e,t,s,i,r,a,o){return this.cmn(s^(t|~i),e,t,r,a,o)}md51(e){const t=e.length,s=[1732584193,-271733879,-1732584194,271733878];let i;for(i=64;i<=e.length;i+=64)this.md5cycle(s,this.md5blk(e.substring(i-64,i)));e=e.substring(i-64);const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<e.length;i++)r[i>>2]|=e.charCodeAt(i)<<(i%4<<3);if(r[i>>2]|=128<<(i%4<<3),i>55)for(this.md5cycle(s,r),i=0;i<16;i++)r[i]=0;return r[14]=t*8,this.md5cycle(s,r),s}md5blk(e){const t=[];for(let s=0;s<64;s+=4)t[s>>2]=e.charCodeAt(s)+(e.charCodeAt(s+1)<<8)+(e.charCodeAt(s+2)<<16)+(e.charCodeAt(s+3)<<24);return t}rhex(e){const t="0123456789abcdef".split("");let s="",i=0;for(;i<4;i++)s+=t[e>>i*8+4&15]+t[e>>i*8&15];return s}hex(e){for(let t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")}md5(e){return this.hex(this.md51(e))}add32(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)}add32Std(e,t){return e+t&4294967295}add32Compat(e,t){const s=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(s>>16)<<16|s&65535}},ns={"01":"GRID","02":"CHARTS","0102":"BOTH"},ma="https://ag-grid.com/licensing/",fa=class Q{constructor(t){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=t,this.md5=new lh,this.md5.init()}validateLicense(){const t=this.getLicenseDetails(Q.licenseKey),s=`AG Grid ${t.currentLicenseType==="BOTH"?"and AG Charts ":""}Enterprise`,i=t.suppliedLicenseType===void 0?"":`AG ${t.suppliedLicenseType==="BOTH"?"Grid and AG Charts":t.suppliedLicenseType==="GRID"?"Grid":"Charts"} Enterprise`;if(t.missing)(!this.isWebsiteUrl()||this.isForceWatermark())&&this.outputMissingLicenseKey(s);else if(t.expired){const r=Q.getGridReleaseDate(),a=Q.formatDate(r);this.outputExpiredKey(t.expiry,a,s,i)}else t.valid?t.isTrial&&t.trialExpired&&this.outputExpiredTrialKey(t.expiry,s,i):this.outputInvalidLicenseKey(!!t.incorrectLicenseType,s,i)}static extractExpiry(t){const s=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(Q.decode(s),10))}static extractLicenseComponents(t){let s=t.replace(/[\u200B-\u200D\uFEFF]/g,"");if(s=s.replace(/\r?\n|\r/g,""),t.length<=32)return{md5:null,license:t,version:null,isTrial:null};const i=s.length-32,r=s.substring(i),a=s.substring(0,i),[o,n,l]=Q.extractBracketedInformation(s);return{md5:r,license:a,version:o,isTrial:n,type:l}}getLicenseDetails(t){const s=Q.chartsLicenseManager?"BOTH":"GRID";if(!t?.length)return{licenseKey:t,valid:!1,missing:!0,currentLicenseType:s};const i=Q.getGridReleaseDate(),{md5:r,license:a,version:o,isTrial:n,type:l}=Q.extractLicenseComponents(t);let c=r===this.md5.md5(a)&&t.indexOf("For_Trialing_ag-Grid_Only")===-1,d,h,p=null,u=!1,g;function m(){d=p<new Date,h=void 0}if(c&&(p=Q.extractExpiry(a),c=!isNaN(p.getTime()),c))switch(h=i>p,o){case"legacy":case"2":{n&&m();break}case"3":l?.length?(g=l,l!==ns["01"]&&l!==ns["0102"]||s==="BOTH"&&g!=="BOTH"?(c=!1,u=!0):n&&m()):c=!1}return c?{licenseKey:t,valid:c,expiry:Q.formatDate(p),expired:h,version:o,isTrial:n,trialExpired:d,incorrectLicenseType:u,currentLicenseType:s,suppliedLicenseType:g}:{licenseKey:t,valid:c,incorrectLicenseType:u,currentLicenseType:s,suppliedLicenseType:g}}isDisplayWatermark(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!!this.watermarkMessage?.length}getWatermarkMessage(){return this.watermarkMessage||""}getHostname(){const s=(this.document.defaultView||window).location,{hostname:i=""}=s;return i}isForceWatermark(){const s=(this.document.defaultView||window).location,{pathname:i}=s;return i?i.indexOf("forceWatermark")!==-1:!1}isWebsiteUrl(){return this.getHostname().match(/^((?:[\w-]+\.)?ag-grid\.com)$/)!==null}isLocalhost(){return this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)!==null}static formatDate(t){const s=["January","February","March","April","May","June","July","August","September","October","November","December"],i=t.getDate(),r=t.getMonth(),a=t.getFullYear();return i+" "+s[r]+" "+a}static getGridReleaseDate(){return new Date(parseInt(Q.decode(Q.RELEASE_INFORMATION),10))}static decode(t){const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let i="",r,a,o,n,l,c,d,h=0;const p=t.replace(/[^A-Za-z0-9+/=]/g,"");for(;h<p.length;)n=s.indexOf(p.charAt(h++)),l=s.indexOf(p.charAt(h++)),c=s.indexOf(p.charAt(h++)),d=s.indexOf(p.charAt(h++)),r=n<<2|l>>4,a=(l&15)<<4|c>>2,o=(c&3)<<6|d,i=i+String.fromCharCode(r),c!=64&&(i=i+String.fromCharCode(a)),d!=64&&(i=i+String.fromCharCode(o));return i=Q.utf8_decode(i),i}static utf8_decode(t){t=t.replace(/rn/g,"n");let s="";for(let i=0;i<t.length;i++){const r=t.charCodeAt(i);r<128?s+=String.fromCharCode(r):r>127&&r<2048?(s+=String.fromCharCode(r>>6|192),s+=String.fromCharCode(r&63|128)):(s+=String.fromCharCode(r>>12|224),s+=String.fromCharCode(r>>6&63|128),s+=String.fromCharCode(r&63|128))}return s}static setChartsLicenseManager(t){this.chartsLicenseManager=t}static setLicenseKey(t){this.licenseKey=t,this.chartsLicenseManager?.setLicenseKey(t,!0)}static extractBracketedInformation(t){if(!t.includes("["))return["legacy",!1,void 0];const s=t.match(/\[(.*?)\]/g).map(n=>n.replace("[","").replace("]",""));if(!s||s.length===0)return["legacy",!1,void 0];const i=s.filter(n=>n==="TRIAL").length===1,r=s.filter(n=>n.indexOf("v")===0)[0],a=r?r.replace("v",""):"legacy",o=ns[s.filter(n=>ns[n])[0]];return[a,i,o]}centerPadAndOutput(t){const s=this.totalMessageLength-t.length;console.error(t.padStart(s/2+t.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(t,s="*",i=""){console.error(t.padEnd(this.totalMessageLength-i.length,s)+i)}outputInvalidLicenseKey(t,s,i){t?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${i} only and does not cover you for ${s}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${ma}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${ma}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(t,s,i){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${i} expired on ${t}.`," ","*"),this.padAndOutput("* Please email info@ag-grid.com to purchase a license."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="Trial Period Expired"}outputMissingLicenseKey(t){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${t} License `),this.centerPadAndOutput(" License Key Not Found "),this.padAndOutput(`* All ${t} features are unlocked for trial.`," ","*"),this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="For Trial Use Only"}outputExpiredKey(t,s,i,r){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${i} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions of ${r} released before ${t}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${s}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="License Expired"}};fa.RELEASE_INFORMATION="MTczNjc2MzczNzA3Mg==";var St=fa;import{Component as ch,RefPlaceholder as dh}from"ag-grid-community";var hh='.ag-watermark{bottom:20px;color:#9b9b9b;opacity:.7;position:absolute;transition:opacity 1s ease-out 3s;&:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMDkgMzYiPjxwYXRoIGZpbGw9IiM5QjlCOUIiIGQ9Ik0xOTIuOTkzIDIzLjY1OHYtNy45NDZoLTEzLjU0MWwtNy45NDcgNy45NDZ6TTIwOC4yNSAzLjk1aC0xNi45NzRsLTguMDEgNy45NDdoMjQuOTg0ek0xNjMuNjIyIDMxLjYwNWw0LjA2OS00LjA2OWgxMy43MzJ2Ny45NDdoLTE3LjgwMXoiLz48cGF0aCBmaWxsPSIjOUI5QjlCIiBkPSJNMTY2LjYxIDE5Ljc4aDguNzczbDguMDEtNy45NDZIMTY2LjYxek0xNTcuMDExIDMxLjYwNWg2LjYxMWw3Ljg4My03Ljk0N2gtMTQuNDk0ek0xOTEuMjc2IDMuOTVsLTQuMDY4IDQuMDdIMTYxLjI3Vi4wNzJoMzAuMDA2ek0yMC44NCAzMC4yMDZIOC4zNzhsLTIuMTYyIDUuMzRILjc1TDEyLjI1NyA4LjU5Mmg0Ljc2OEwyOC41MyAzNS41NDZoLTUuNTN6bS0xLjcxNy00LjI2TDE0LjYwOSAxNC45NWwtNC41MTQgMTAuOTk4ek0xMDQuNDM3IDE4LjUwOWMxLjU4OS0yLjM1MiA1LjU5NC0yLjYwNyA3LjI0Ny0yLjYwN3Y0LjU3OGMtMi4wMzQgMC00LjA2OS4wNjMtNS4yNzcuOTUzLTEuMjA3Ljg5LTEuODQzIDIuMDk4LTEuODQzIDMuNTZ2MTAuNTUzaC00Ljk1OVYxNS45MDJoNC43Njh6TTExOS4zNzYgMTUuOTAyaC00Ljk1OHYxOS42NDRoNC45NTh6TTExOS4zNzYgNy4xM2gtNC45NTh2NS44NDhoNC45NTh6TTE0My45NzkgNy4xM3YyOC40MTZoLTQuNzY4bC0uMTI3LTIuOTg4YTguMyA4LjMgMCAwIDEtMi42NyAyLjQ4Yy0xLjA4MS41NzItMi40MTYuODktMy45NDIuODktMS4zMzUgMC0yLjYwNi0uMjU1LTMuNjg3LS43LTEuMTQ0LS41MDgtMi4xNjItMS4xNDQtMi45ODgtMi4wMzRhOS42IDkuNiAwIDAgMS0xLjk3MS0zLjE3OWMtLjUwOC0xLjIwNy0uNjk5LTIuNjA2LS42OTktNC4xMzJzLjI1NC0yLjkyNC42OTktNC4xOTZjLjUwOS0xLjI3MSAxLjE0NS0yLjM1MiAxLjk3MS0zLjI0MnMxLjg0NC0xLjU4OSAyLjk4OC0yLjA5OCAyLjM1Mi0uNzYzIDMuNjg3LS43NjNjMS41MjYgMCAyLjc5Ny4yNTUgMy44NzguODI3czEuOTcxIDEuMzM1IDIuNjcgMi40MTZWNy4xOTNoNC45NTl6bS0xMC40MjYgMjQuNTM4YzEuNjUzIDAgMi45MjQtLjU3MiAzLjk0MS0xLjY1M3MxLjUyNi0yLjU0MyAxLjUyNi00LjMyMy0uNTA5LTMuMTc4LTEuNTI2LTQuMzIyYy0xLjAxNy0xLjA4MS0yLjI4OC0xLjY1My0zLjk0MS0xLjY1My0xLjU5IDAtMi45MjUuNTcyLTMuODc4IDEuNjUzLTEuMDE3IDEuMDgtMS41MjYgMi41NDMtMS41MjYgNC4zMjIgMCAxLjc4LjUwOSAzLjE4IDEuNTI2IDQuMjYgMS4wMTcgMS4xNDQgMi4yODggMS43MTYgMy44NzggMS43MTZNNTcuMjAyIDIwLjM1M0g0NC45MzN2NC4yNTloNi45OTNjLS4xOSAyLjE2MS0xLjAxNyAzLjgxNC0yLjQxNiA1LjE1LTEuMzk4IDEuMjctMy4xNzggMS45MDYtNS40NjcgMS45MDYtMS4yNzEgMC0yLjQ4LS4yNTQtMy40OTYtLjY5OWE3IDcgMCAwIDEtMi43MzQtMS45N2MtLjc2My0uODI3LTEuMzM1LTEuODQ0LTEuNzgtMy4wNTJzLS42MzYtMi40OC0uNjM2LTMuOTQyLjE5LTIuNzMzLjYzNi0zLjk0MWMuMzgxLTEuMjA4IDEuMDE3LTIuMTYyIDEuNzgtMy4wNTIuNzYzLS44MjYgMS42NTMtMS40NjIgMi43MzMtMS45N2E5LjEgOS4xIDAgMCAxIDMuNTYtLjdxNC4wMDUgMCA2LjEwMyAxLjkwN2wzLjMwNi0zLjMwNWMtMi40OC0xLjkwNy01LjY1OC0yLjkyNS05LjQwOS0yLjkyNS0yLjA5NyAwLTQuMDA0LjMxOC01LjcyMSAxLjAxOC0xLjcxNi42OTktMy4xNzkgMS41ODktNC4zODYgMi43OTdBMTIuMSAxMi4xIDAgMCAwIDMxLjIgMTYuMjJjLS42MzUgMS43MTctLjk1MyAzLjYyNC0uOTUzIDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1NyAxLjAxNyAyLjAzNSAwIDMuODc4LS4zMTggNS41MzEtMS4wMTcgMS42NTMtLjcgMy4wNTItMS41OSA0LjE5Ni0yLjc5N3ExLjcxNi0xLjgxMiAyLjY3LTQuMzg3Yy42MzYtMS43MTYuOTU0LTMuNjIzLjk1NC01LjY1OHYtLjgyNmMtLjE5MS0uMTI3LS4yNTUtLjQ0NS0uMjU1LS43TTk1Ljk4MiAyMC4zNTNoLTEyLjI3djQuMjU5aDYuOTkzYy0uMTkgMi4xNjEtMS4wMTcgMy44MTQtMi40MTYgNS4xNS0xLjM5OCAxLjI3LTMuMTc4IDEuOTA2LTUuNDY3IDEuOTA2LTEuMjcxIDAtMi40OC0uMjU0LTMuNDk2LS42OTlhNyA3IDAgMCAxLTIuNzM0LTEuOTdjLS43NjMtLjgyNy0xLjMzNS0xLjg0NC0xLjc4LTMuMDUycy0uNjM2LTIuNDgtLjYzNi0zLjk0Mi4xOS0yLjczMy42MzYtMy45NDFjLjM4MS0xLjIwOCAxLjAxNy0yLjE2MiAxLjc4LTMuMDUyLjc2My0uODI2IDEuNjUzLTEuNDYyIDIuNzM0LTEuOTdhOS4xIDkuMSAwIDAgMSAzLjU2LS43cTQuMDA1IDAgNi4xMDMgMS45MDdsMy4zMDUtMy4zMDVjLTIuNDc5LTEuOTA3LTUuNjU4LTIuOTI1LTkuNDA4LTIuOTI1LTIuMDk4IDAtNC4wMDUuMzE4LTUuNzIyIDEuMDE4LTEuNzE2LjY5OS0zLjE3OCAxLjU4OS00LjM4NiAyLjc5N2ExMi4xIDEyLjEgMCAwIDAtMi43OTcgNC4zODZjLS42MzYgMS43MTctLjk1NCAzLjYyNC0uOTU0IDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1OCAxLjAxNyAyLjAzNCAwIDMuODc4LS4zMTggNS41My0xLjAxNyAxLjY1My0uNyAzLjA1Mi0xLjU5IDQuMTk2LTIuNzk3cTEuNzE4LTEuODEyIDIuNjctNC4zODdjLjYzNi0xLjcxNi45NTQtMy42MjMuOTU0LTUuNjU4di0uODI2Yy0uMTktLjEyNy0uMjU1LS40NDUtLjI1NS0uNyIvPjwvc3ZnPg==");background-repeat:no-repeat;background-size:170px 40px;content:"";display:block;height:40px;width:170px}}:where(.ag-ltr) .ag-watermark{right:25px}:where(.ag-rtl) .ag-watermark{left:25px}.ag-watermark-text{font-family:Impact,sans-serif;font-size:19px;font-weight:700;opacity:.5}:where(.ag-ltr) .ag-watermark-text{padding-left:.7rem}:where(.ag-rtl) .ag-watermark-text{padding-right:.7rem}',uh=class extends ch{constructor(){super(`<div class="ag-watermark">
<div data-ref="eLicenseTextRef" class="ag-watermark-text"></div>
</div>`),this.eLicenseTextRef=dh,this.registerCSS(hh)}wireBeans(e){this.licenseManager=e.licenseManager}postConstruct(){const e=this.shouldDisplayWatermark();this.setDisplayed(e),e&&(this.eLicenseTextRef.innerText=this.licenseManager.getWatermarkMessage(),window.setTimeout(()=>this.addCssClass("ag-opacity-zero"),0),window.setTimeout(()=>this.setDisplayed(!1),5e3))}shouldDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}},ph={selector:"AG-WATERMARK",component:uh},Ca=class extends oh{constructor(){super(...arguments),this.beanName="licenseManager"}postConstruct(){this.validateLicense()}validateLicense(){this.licenseManager=new St(nh(this.beans)),this.licenseManager.validateLicense()}static getLicenseDetails(e){return new St(null).getLicenseDetails(e)}getWatermarkSelector(){return ph}isDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}getWatermarkMessage(){return this.licenseManager.getWatermarkMessage()}static setLicenseKey(e){St.setLicenseKey(e)}static setChartsLicenseManager(e){St.setChartsLicenseManager(e)}};import{BaseCreator as gh,_downloadFile as va,_getHeaderClassesFromColDef as mh,_warn as ya}from"ag-grid-community";import{BaseGridSerializingSession as fh,_last as Ch,_mergeDeep as vh,_warn as yh}from"ag-grid-community";import{_escapeString as Sh}from"ag-grid-community";var bh=9525,Sa={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49},ls=`\r
`;function ba(e,t,s){if(!t&&t!==""&&t!==0)return"";let i=t;return typeof t=="boolean"&&s&&(i=s(t)),` ${e}="${i}"`}function wh(e={}){const t="<?",s="?>",i=["version"];e.version||(e.version="1.0"),e.encoding&&i.push("encoding"),e.standalone&&i.push("standalone");const r=i.map(a=>`${a}="${e[a]}"`).join(" ");return`${t}xml ${r} ${s}`}function wa(e,t){let s="";e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(r=>{Object.keys(r.map).forEach(a=>{s+=ba(r.prefix+a,r.map[a],t)})}),e.properties.rawMap&&Object.keys(e.properties.rawMap).forEach(r=>{s+=ba(r,e.properties.rawMap[r],t)}));let i="<"+e.name+s;return!e.children&&e.textNode==null?i+"/>"+ls:e.textNode!=null?i+">"+e.textNode+"</"+e.name+">"+ls:(i+=">"+ls,e.children&&e.children.forEach(r=>{i+=wa(r,t)}),i+"</"+e.name+">"+ls)}var xh=e=>Math.round(e*96/72),it=e=>Math.ceil(e*bh),Th=e=>{if(e===void 0)return;const s=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(e||"Automatic");return Math.max(s,0)},cs=(e,t)=>{if(!t)return;let s;return typeof t=="number"?s=t:s=t({rowIndex:e}),s},Ph=(e,t)=>{const{colSpan:s,column:i}=e.position;if(e.width)if(s){const r=t.slice(i-1,i+s-1);let a=0;for(let o=0;o<r.length;o++){const n=r[o].getActualWidth();if(e.width<a+n){e.position.colSpan=o+1,e.totalWidth=e.width,e.width=e.totalWidth-a;break}a+=n}}else e.totalWidth=e.width},Mh=(e,t)=>{const{rowSpan:s,row:i}=e.position;if(e.height)if(s){let r=0,a=0;for(let o=i;o<i+s;o++){const n=xh(cs(o,t)||20);if(e.height<r+n){e.position.rowSpan=a+1,e.totalHeight=e.height,e.height=e.totalHeight-r;break}r+=n,a++}}else e.totalHeight=e.height},q=(e,t)=>{const s=wh({encoding:"UTF-8",standalone:"yes"}),i=wa(e);return t?i:`${s}${i}`},Ve=e=>{const i=String.fromCharCode,r=Math.floor(e/26),a=e%26;return!r||e===26?i(65+e-1):a?r<26?i(65+r-1)+i(65+a-1):Ve(r)+i(65+a-1):Ve(r-1)+"Z"},di=e=>{if(e==null)return null;let t="";for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);if(i>=0&&i<=31&&i!==10){const o=`_x${i.toString(16).toUpperCase().padStart(4,"0")}_`;t+=o}else t+=e[s]}return t},Fh=e=>{const t=[];for(const s of e.keys()){const i=s.toString(),r={name:"t",textNode:Sh(di(i),!1)};i.trim().length!==i.length&&(r.properties={rawMap:{"xml:space":"preserve"}}),t.push({name:"si",children:[r]})}return t};import{_escapeString as Ah,_getHeaderRowCount as Rh,_warn as hi}from"ag-grid-community";var Eh={getTemplate(e){const{name:t,ContentType:s,Extension:i,PartName:r}=e;return{name:t,properties:{rawMap:{Extension:i,PartName:r,ContentType:s}}}}},Ih=Eh,ds=e=>e==="jpg"?"jpeg":e,Dh={getTemplate(e){const t=new Array(e).fill(void 0).map((c,d)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:`/xl/worksheets/sheet${d+1}.xml`})),s=Ue.size,i=Re.size,r={};at.forEach(c=>{r[ds(c.type)]=!0});const a=new Array(s).fill(void 0).map((c,d)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml",PartName:`/xl/drawings/drawing${d+1}.xml`})),o=[];ye.forEach(({name:c})=>{o.push({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",PartName:`/xl/tables/${c}.xml`})});const n=Object.keys(r).map(c=>({name:"Default",ContentType:`image/${c}`,Extension:c}));i&&n.push({name:"Default",Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});const l=[...n,{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"},...t,{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"},...a,...o,{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}].map(c=>Ih.getTemplate(c));return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:l}}},Lh=Dh,kh={getTemplate(e){const s=new Date().toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:e},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:s},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:s}]}}},Gh=kh,xa=(e,t)=>({name:`xdr:${e}`,children:[{name:"xdr:col",textNode:t.col.toString()},{name:"xdr:colOff",textNode:t.offsetX.toString()},{name:"xdr:row",textNode:t.row.toString()},{name:"xdr:rowOff",textNode:t.offsetY.toString()}]}),Oh=e=>{const t=[{name:"a:ext",properties:{rawMap:{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}},children:[{name:"a16:creationId",properties:{rawMap:{id:"{822E6D20-D7BC-2841-A643-D49A6EF008A2}","xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main"}}}]}];switch(e.recolor&&e.recolor.toLowerCase()){case"grayscale":case"sepia":case"washout":t.push({name:"a:ext",properties:{rawMap:{uri:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[{name:"adec:decorative",properties:{rawMap:{val:"0","xmlns:adec":"http://schemas.microsoft.com/office/drawing/2017/decorative"}}}]})}return{name:"a:extLst",children:t}},Bh=(e,t)=>({name:"xdr:nvPicPr",children:[{name:"xdr:cNvPr",properties:{rawMap:{id:t,name:e.id,descr:e.altText!=null?e.altText:void 0}},children:[Oh(e)]},{name:"xdr:cNvPicPr",properties:{rawMap:{preferRelativeResize:"0"}},children:[{name:"a:picLocks"}]}]}),Ta=e=>{if(!e.saturation&&!e.tint)return;const t=[];return e.saturation&&t.push({name:"a:satMod",properties:{rawMap:{val:e.saturation*1e3}}}),e.tint&&t.push({name:"a:tint",properties:{rawMap:{val:e.tint*1e3}}}),t},Nh=(e,t)=>({name:"a:duotone",children:[{name:"a:prstClr",properties:{rawMap:{val:e.color}},children:Ta(e)},{name:"a:srgbClr",properties:{rawMap:{val:t.color}},children:Ta(t)}]}),_h=(e,t)=>{let s;if(e.transparency){const i=Math.min(Math.max(e.transparency,0),100);s=[{name:"a:alphaModFix",properties:{rawMap:{amt:1e5-Math.round(i*1e3)}}}]}if(e.recolor)switch(s||(s=[]),e.recolor.toLocaleLowerCase()){case"grayscale":s.push({name:"a:grayscl"});break;case"sepia":s.push(Nh({color:"black"},{color:"D9C3A5",tint:50,saturation:180}));break;case"washout":s.push({name:"a:lum",properties:{rawMap:{bright:"70000",contrast:"-70000"}}});break;default:}return{name:"xdr:blipFill",children:[{name:"a:blip",properties:{rawMap:{cstate:"print","r:embed":`rId${t}`,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}},children:s},{name:"a:stretch",children:[{name:"a:fillRect"}]}]}},Vh=(e,t)=>{const s={name:"a:xfrm",children:[{name:"a:off",properties:{rawMap:{x:0,y:0}}},{name:"a:ext",properties:{rawMap:{cx:t.width,cy:t.height}}}]};if(e.rotation){const a=e.rotation;s.properties={rawMap:{rot:Math.min(Math.max(a,0),360)*6e4}}}return{name:"xdr:spPr",children:[s,{name:"a:prstGeom",properties:{rawMap:{prst:"rect"}},children:[{name:"a:avLst"}]}]}},Hh=e=>{e.fitCell=!!e.fitCell||!e.width||!e.height;const{position:t={},fitCell:s,width:i=0,height:r=0,totalHeight:a,totalWidth:o}=e,{offsetX:n=0,offsetY:l=0,row:c=1,rowSpan:d=1,column:h=1,colSpan:p=1}=t;return{from:{row:c-1,col:h-1,offsetX:it(n),offsetY:it(l)},to:{row:c-1+(s?1:d-1),col:h-1+(s?1:p-1),offsetX:it(i+n),offsetY:it(r+l)},height:it(a||r),width:it(o||i)}},zh=(e,t,s,i)=>({name:"xdr:pic",children:[Bh(e,t+1),_h(e,s+1),Vh(e,i)]}),Uh={getTemplate(e){const{sheetIndex:t}=e,s=Ue.get(t),i=Mt.get(t),r=s.map((a,o)=>{const n=Hh(a);return{name:"xdr:twoCellAnchor",properties:{rawMap:{editAs:"absolute"}},children:[xa("from",n.from),xa("to",n.to),zh(a,o,i.get(a.id).index,n),{name:"xdr:clientData"}]}});return{name:"xdr:wsDr",properties:{rawMap:{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"}},children:r}}},Kh=Uh,Wh={getTemplate(e){const{Id:t,Type:s,Target:i}=e;return{name:"Relationship",properties:{rawMap:{Id:t,Type:s,Target:i}}}}},jh=Wh,$h={getTemplate(e){const t=e.map(s=>jh.getTemplate(s));return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:t}}},bt=$h,Yh={getTemplate(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.size,uniqueCount:e.size}},children:Fh(e)}}},qh=Yh,Xh=e=>{switch(e){case 1:return"thin";case 2:return"medium";case 3:return"thick";default:return"hair"}},Zh={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot",Continuous:"Continuous"},Jh=["Dashed","DashDot","DashDotDot"],Qh={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"},eu={Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"},tu={Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"},su=e=>e?Qh[e]||e:"none",Ae=e=>e==null?e:(e.charAt(0)==="#"&&(e=e.substring(1)),e.length===6?"FF"+e:e),hs=(e,t)=>{if(!e)return"thin";const s=Xh(t);if(e==="Continuous")return s;const i=Zh[e];return s==="medium"&&Jh.some(r=>r===i)?`medium${i}`:`${i.charAt(0).toLowerCase()}${i.substring(1)}`},iu=e=>eu[e]||"general",ru=e=>tu[e]||void 0,wt=e=>({name:"color",properties:{rawMap:{rgb:Ae(e||"#000000")}}}),au={getTemplate(e){const{left:t,right:s,top:i,bottom:r,diagonal:a}=e,o=t?[wt(t.color)]:void 0,n=s?[wt(s.color)]:void 0,l=i?[wt(i.color)]:void 0,c=r?[wt(r.color)]:void 0,d=a?[wt(a.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:t&&t.style}},children:o},{name:"right",properties:{rawMap:{style:s&&s.style}},children:n},{name:"top",properties:{rawMap:{style:i&&i.style}},children:l},{name:"bottom",properties:{rawMap:{style:r&&r.style}},children:c},{name:"diagonal",properties:{rawMap:{style:a&&a.style}},children:d}]}}},ou=au,nu={getTemplate(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:e.map(t=>ou.getTemplate(t))}}},lu=nu,cu=e=>{const s=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(s,0)},du={getTemplate(e){const{horizontal:t,indent:s,readingOrder:i,rotate:r,shrinkToFit:a,vertical:o,wrapText:n}=e;return{name:"alignment",properties:{rawMap:{horizontal:t&&iu(t),indent:s,readingOrder:i&&cu(i),textRotation:r,shrinkToFit:a,vertical:o&&ru(o),wrapText:n}}}}},hu=du,uu={getTemplate(e){const t=e.protected===!1?0:1;return{name:"protection",properties:{rawMap:{hidden:e.hideFormula===!0?1:0,locked:t}}}}},pu=uu,gu={getTemplate(e){const{alignment:t,borderId:s,fillId:i,fontId:r,numFmtId:a,protection:o,quotePrefix:n,xfId:l}=e,c=[];return t&&c.push(hu.getTemplate(t)),o&&c.push(pu.getTemplate(o)),{name:"xf",properties:{rawMap:{applyAlignment:t?1:void 0,applyProtection:o?1:void 0,applyBorder:s?1:void 0,applyFill:i?1:void 0,borderId:s,fillId:i,applyFont:r?1:void 0,fontId:r,applyNumberFormat:a?1:void 0,numFmtId:a,quotePrefix:n?1:void 0,xfId:l}},children:c.length?c:void 0}}},Pa=gu,mu={getTemplate(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>Pa.getTemplate(t))}}},fu=mu,Cu={getTemplate(e){const{builtinId:t,name:s,xfId:i}=e;return{name:"cellStyle",properties:{rawMap:{builtinId:t,name:s,xfId:i}}}}},vu=Cu,yu={getTemplate(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:e.map(t=>vu.getTemplate(t))}}},Su=yu,bu={getTemplate(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>Pa.getTemplate(t))}}},wu=bu,xu={getTemplate(e){const{patternType:t,fgTheme:s,fgTint:i,fgRgb:r,bgRgb:a,bgIndexed:o}=e,n={name:"patternFill",properties:{rawMap:{patternType:t}}};return(s||i||r)&&(n.children=[{name:"fgColor",properties:{rawMap:{theme:s,tint:i,rgb:r}}}]),(o||a)&&(n.children||(n.children=[]),n.children.push({name:"bgColor",properties:{rawMap:{indexed:o,rgb:a}}})),{name:"fill",children:[n]}}},Tu=xu,Pu={getTemplate(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:e.map(t=>Tu.getTemplate(t))}}},Mu=Pu,Fu={getTemplate(e){const{size:t,colorTheme:s,color:i="FF000000",fontName:r="Calibri",family:a,scheme:o,italic:n,bold:l,strikeThrough:c,outline:d,shadow:h,underline:p,verticalAlign:u}=e,g=[{name:"sz",properties:{rawMap:{val:t}}},{name:"color",properties:{rawMap:{theme:s,rgb:i}}},{name:"name",properties:{rawMap:{val:r}}}];return a&&g.push({name:"family",properties:{rawMap:{val:a}}}),o&&g.push({name:"scheme",properties:{rawMap:{val:o}}}),n&&g.push({name:"i"}),l&&g.push({name:"b"}),c&&g.push({name:"strike"}),d&&g.push({name:"outline"}),h&&g.push({name:"shadow"}),p&&g.push({name:"u",properties:{rawMap:{val:p}}}),u&&g.push({name:"vertAlign",properties:{rawMap:{val:u}}}),{name:"font",children:g}}},Au=Fu,Ru={getTemplate(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:e.map(t=>Au.getTemplate(t))}}},Eu=Ru;import{_escapeString as Iu}from"ag-grid-community";function Du(e){const t=e.split(/(\[[^\]]*\])/);for(let s=0;s<t.length;s++){let i=t[s];i.length&&(i.startsWith("[")||(i=i.replace(/\$/g,'"$"')),t[s]=Iu(i))}return t.join("")}var Lu={getTemplate(e){let{formatCode:t,numFmtId:s}=e;return t.length&&(t=Du(t)),{name:"numFmt",properties:{rawMap:{formatCode:t,numFmtId:s}}}}},ku=Lu,Gu={getTemplate(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:e.map(t=>ku.getTemplate(t))}}},Ou=Gu,us,rt,xt,Tt,Pt,Ma,ps,Fa,ui,Aa=(e,t)=>(e.indexOf("mixedStyle")!==-1&&t>1&&(e+=`_${t}`),e),Ra=()=>{us={base:0},rt=[],xt=[{fontName:"Calibri",colorTheme:"1",family:"2",scheme:"minor"}],Tt=[{patternType:"none"},{patternType:"gray125"}],Pt=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],Ma=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],ps=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],Fa=[{builtinId:0,name:"Normal",xfId:0}]},Bu=e=>{const t=su(e.pattern),s=Ae(e.color),i=Ae(e.patternColor);let r=Tt.findIndex(a=>{const{patternType:o,fgRgb:n,bgRgb:l}=a;return!(o!=t||n!=s||l!=i)});return r===-1&&(r=Tt.length,Tt.push({patternType:t,fgRgb:s,bgRgb:i})),r},Nu=e=>{if(Sa[e])return Sa[e];let t=rt.findIndex(s=>s.formatCode===e);return t===-1?(t=rt.length+164,rt.push({formatCode:e,numFmtId:t})):t=rt[t].numFmtId,t},_u=e=>{const{borderBottom:t,borderTop:s,borderLeft:i,borderRight:r}=e;let a,o,n,l,c,d,h,p;i&&(n=hs(i.lineStyle,i.weight),h=Ae(i.color)),r&&(l=hs(r.lineStyle,r.weight),p=Ae(r.color)),t&&(a=hs(t.lineStyle,t.weight),c=Ae(t.color)),s&&(o=hs(s.lineStyle,s.weight),d=Ae(s.color));let u=Pt.findIndex(g=>{const{left:m,right:f,top:C,bottom:v}=g;if(!m&&(n||h)||!f&&(l||p)||!C&&(o||d)||!v&&(a||c))return!1;const{style:S,color:b}=m||{},{style:y,color:T}=f||{},{style:w,color:F}=C||{},{style:M,color:A}=v||{};return!(S!=n||b!=h||y!=l||T!=p||w!=o||F!=d||M!=a||A!=c)});return u===-1&&(u=Pt.length,Pt.push({left:{style:n,color:h},right:{style:l,color:p},top:{style:o,color:d},bottom:{style:a,color:c},diagonal:{style:void 0,color:void 0}})),u},Vu=e=>{const{fontName:t="Calibri",color:s,size:i,bold:r,italic:a,outline:o,shadow:n,strikeThrough:l,underline:c,family:d,verticalAlign:h}=e,p=Ae(s),u=Th(d),g=c?c.toLocaleLowerCase():void 0,m=h?h.toLocaleLowerCase():void 0;let f=xt.findIndex(C=>!(C.fontName!=t||C.color!=p||C.size!=i||C.bold!=r||C.italic!=a||C.outline!=o||C.shadow!=n||C.strikeThrough!=l||C.underline!=g||C.verticalAlign!=m||C.family!=u));return f===-1&&(f=xt.length,xt.push({fontName:t,color:p,size:i,bold:r,italic:a,outline:o,shadow:n,strikeThrough:l,underline:g,verticalAlign:m,family:u?.toString()})),f},Hu=e=>{const{alignment:t,borders:s,font:i,interior:r,numberFormat:a,protection:o,quotePrefix:n}=e;let{id:l}=e,c=0,d=0,h=0,p=0;l&&(l=Aa(l,ui),us[l]==null&&(r&&(c=Bu(r)),s&&(d=_u(s)),i&&(h=Vu(i)),a&&(p=Nu(a.format)),us[l]=ps.length,ps.push({alignment:t,borderId:d||0,fillId:c||0,fontId:h||0,numFmtId:p||0,protection:o,quotePrefix:n,xfId:0})))},zu={getTemplate(e){const t=Ou.getTemplate(rt),s=Eu.getTemplate(xt.map(l=>({...l,size:l.size!=null?l.size:e}))),i=Mu.getTemplate(Tt),r=lu.getTemplate(Pt),a=fu.getTemplate(Ma),o=wu.getTemplate(ps),n=Su.getTemplate(Fa);return Ra(),{name:"styleSheet",properties:{rawMap:{"mc:Ignorable":"x14ac x16r2 xr",xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision"}},children:[t,s,i,r,a,o,n,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}},Uu=(e,t)=>us[Aa(e,t)]||0,Ku=(e,t)=>{ui=t,ui===1&&Ra(),e.forEach(Hu)},Wu=zu,ju={getTemplate(e,t){const{name:s,columns:i,rowRange:r,displayName:a,showRowStripes:o,showColumnStripes:n,showFilterButtons:l,highlightFirstColumn:c,highlightLastColumn:d}=e||{},h=!r||r[0]-r[1]===0;if(!e||!s||!Array.isArray(i)||!i.length||h)return{name:"table"};const p=i.map((v,S)=>({name:"filterColumn",properties:{rawMap:{colId:S.toString(),hiddenButton:l[S]?0:1}}})),u=`A${r[0]}`,g=`${Ve(i.length)}${r[1]}`,m=`${u}:${g}`,f=`${t+1}`,C=t?`${a}_${f}`:a;return{name:"table",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",name:s,displayName:C,ref:m,totalsRowShown:0,id:f}},children:[{name:"autoFilter",properties:{rawMap:{ref:m}},children:p},{name:"tableColumns",properties:{rawMap:{count:i.length}},children:i.map((v,S)=>({name:"tableColumn",properties:{rawMap:{id:(S+1).toString(),name:v,dataCellStyle:"Normal"}}}))},{name:"tableStyleInfo",properties:{rawMap:{name:"TableStyleLight1",showFirstColumn:c?1:0,showLastColumn:d?1:0,showRowStripes:o?1:0,showColumnStripes:n?1:0}}}]}}},$u=ju,ae=e=>{const[t,s,i,r]=e;return{name:`a:${t}`,children:[{name:`a:${s}`,properties:{rawMap:{val:i,lastClr:r}}}]}},Yu={getTemplate(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[ae(["dk1","sysClr","windowText","000000"]),ae(["lt1","sysClr","window","FFFFFF"]),ae(["dk2","srgbClr","44546A"]),ae(["lt2","srgbClr","E7E6E6"]),ae(["accent1","srgbClr","4472C4"]),ae(["accent2","srgbClr","ED7D31"]),ae(["accent3","srgbClr","A5A5A5"]),ae(["accent4","srgbClr","FFC000"]),ae(["accent5","srgbClr","5B9BD5"]),ae(["accent6","srgbClr","70AD47"]),ae(["hlink","srgbClr","0563C1"]),ae(["folHlink","srgbClr","954F72"])]}}},qu=Yu,x=e=>{const[t,s,i,r]=e;return{name:`a:${t}`,properties:{rawMap:{script:i,typeface:s,panose:r}}}},Xu={getTemplate(){return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[x(["latin","Calibri Light",void 0,"020F0302020204030204"]),x(["ea",""]),x(["cs",""]),x(["font","\u6E38\u30B4\u30B7\u30C3\u30AF Light","Jpan"]),x(["font","\uB9D1\uC740 \uACE0\uB515","Hang"]),x(["font","\u7B49\u7EBF Light","Hans"]),x(["font","\u65B0\u7D30\u660E\u9AD4","Hant"]),x(["font","Times New Roman","Arab"]),x(["font","Times New Roman","Hebr"]),x(["font","Tahoma","Thai"]),x(["font","Nyala","Ethi"]),x(["font","Vrinda","Beng"]),x(["font","Shruti","Gujr"]),x(["font","MoolBoran","Khmr"]),x(["font","Tunga","Knda"]),x(["font","Raavi","Guru"]),x(["font","Euphemia","Cans"]),x(["font","Plantagenet Cherokee","Cher"]),x(["font","Microsoft Yi Baiti","Yiii"]),x(["font","Microsoft Himalaya","Tibt"]),x(["font","MV Boli","Thaa"]),x(["font","Mangal","Deva"]),x(["font","Gautami","Telu"]),x(["font","Latha","Taml"]),x(["font","Estrangelo Edessa","Syrc"]),x(["font","Kalinga","Orya"]),x(["font","Kartika","Mlym"]),x(["font","DokChampa","Laoo"]),x(["font","Iskoola Pota","Sinh"]),x(["font","Mongolian Baiti","Mong"]),x(["font","Times New Roman","Viet"]),x(["font","Microsoft Uighur","Uigh"]),x(["font","Sylfaen","Geor"]),x(["font","Arial","Armn"]),x(["font","Leelawadee UI","Bugi"]),x(["font","Microsoft JhengHei","Bopo"]),x(["font","Javanese Text","Java"]),x(["font","Segoe UI","Lisu"]),x(["font","Myanmar Text","Mymr"]),x(["font","Ebrima","Nkoo"]),x(["font","Nirmala UI","Olck"]),x(["font","Ebrima","Osma"]),x(["font","Phagspa","Phag"]),x(["font","Estrangelo Edessa","Syrn"]),x(["font","Estrangelo Edessa","Syrj"]),x(["font","Estrangelo Edessa","Syre"]),x(["font","Nirmala UI","Sora"]),x(["font","Microsoft Tai Le","Tale"]),x(["font","Microsoft New Tai Lue","Talu"]),x(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[x(["latin","Calibri",void 0,"020F0502020204030204"]),x(["ea",""]),x(["cs",""]),x(["font","\u6E38\u30B4\u30B7\u30C3\u30AF","Jpan"]),x(["font","\uB9D1\uC740 \uACE0\uB515","Hang"]),x(["font","\u7B49\u7EBF","Hans"]),x(["font","\u65B0\u7D30\u660E\u9AD4","Hant"]),x(["font","Arial","Arab"]),x(["font","Arial","Hebr"]),x(["font","Tahoma","Thai"]),x(["font","Nyala","Ethi"]),x(["font","Vrinda","Beng"]),x(["font","Shruti","Gujr"]),x(["font","DaunPenh","Khmr"]),x(["font","Tunga","Knda"]),x(["font","Raavi","Guru"]),x(["font","Euphemia","Cans"]),x(["font","Plantagenet Cherokee","Cher"]),x(["font","Microsoft Yi Baiti","Yiii"]),x(["font","Microsoft Himalaya","Tibt"]),x(["font","MV Boli","Thaa"]),x(["font","Mangal","Deva"]),x(["font","Gautami","Telu"]),x(["font","Latha","Taml"]),x(["font","Estrangelo Edessa","Syrc"]),x(["font","Kalinga","Orya"]),x(["font","Kartika","Mlym"]),x(["font","DokChampa","Laoo"]),x(["font","Iskoola Pota","Sinh"]),x(["font","Mongolian Baiti","Mong"]),x(["font","Arial","Viet"]),x(["font","Microsoft Uighur","Uigh"]),x(["font","Sylfaen","Geor"]),x(["font","Arial","Armn"]),x(["font","Leelawadee UI","Bugi"]),x(["font","Microsoft JhengHei","Bopo"]),x(["font","Javanese Text","Java"]),x(["font","Segoe UI","Lisu"]),x(["font","Myanmar Text","Mymr"]),x(["font","Ebrima","Nkoo"]),x(["font","Nirmala UI","Olck"]),x(["font","Ebrima","Osma"]),x(["font","Phagspa","Phag"]),x(["font","Estrangelo Edessa","Syrn"]),x(["font","Estrangelo Edessa","Syrj"]),x(["font","Estrangelo Edessa","Syre"]),x(["font","Nirmala UI","Sora"]),x(["font","Microsoft Tai Le","Tale"]),x(["font","Microsoft New Tai Lue","Talu"]),x(["font","Ebrima","Tfng"])]}]}}},Zu=Xu,pe=(e,t,s)=>({name:`a:${e}`,properties:{rawMap:{val:t}},children:s}),pi=e=>{const[t,s,i,r,a,o]=e,n=[];return n.push(pe("satMod",i)),r&&n.push(pe("lumMod",r)),a&&n.push(pe("tint",a)),o&&n.push(pe("shade",o)),{name:"a:gs",properties:{rawMap:{pos:t}},children:[{name:"a:schemeClr",properties:{rawMap:{val:s}},children:n}]}},gs=(e,t)=>({name:"a:solidFill",children:[pe("schemeClr",e,t)]}),gi=e=>{const[t,s,i,r,a]=e,[o,n]=a;return{name:"a:gradFill",properties:{rawMap:{rotWithShape:t}},children:[{name:"a:gsLst",children:[pi(s),pi(i),pi(r)]},{name:"a:lin",properties:{rawMap:{ang:o,scaled:n}}}]}},mi=e=>{const[t,s,i,r]=e;return{name:"a:ln",properties:{rawMap:{w:t,cap:s,cmpd:i,algn:r}},children:[gs("phClr"),pe("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},fi=e=>{const t=[];if(e){const[s,i,r,a,o]=e;t.push({name:"a:outerShdw",properties:{rawMap:{blurRad:s,dist:i,dir:r,algn:a,rotWithShape:o}},children:[pe("srgbClr","000000",[pe("alpha","63000")])]})}return{name:"a:effectStyle",children:[Object.assign({},{name:"a:effectLst"},t.length?{children:t}:{})]}},Ju=()=>({name:"a:fillStyleLst",children:[gs("phClr"),gi(["1",["0","phClr","105000","110000","67000"],["50000","phClr","103000","105000","73000"],["100000","phClr","109000","105000","81000"],["5400000","0"]]),gi(["1",["0","phClr","103000","102000","94000"],["50000","phClr","110000","100000",void 0,"100000"],["100000","phClr","120000","99000",void 0,"78000"],["5400000","0"]])]}),Qu=()=>({name:"a:lnStyleLst",children:[mi(["6350","flat","sng","ctr"]),mi(["12700","flat","sng","ctr"]),mi(["19050","flat","sng","ctr"])]}),ep=()=>({name:"a:effectStyleLst",children:[fi(),fi(),fi(["57150","19050","5400000","ctr","0"])]}),tp=()=>({name:"a:bgFillStyleLst",children:[gs("phClr"),gs("phClr",[pe("tint","95000"),pe("satMod","170000")]),gi(["1",["0","phClr","150000","102000","93000","98000"],["50000","phClr","130000","103000","98000","90000"],["100000","phClr","120000",void 0,void 0,"63000"],["5400000","0"]])]}),sp={getTemplate(){return{name:"a:fmtScheme",properties:{rawMap:{name:"Office"}},children:[Ju(),Qu(),ep(),tp()]}}},ip=sp,rp={getTemplate(){return{name:"a:themeElements",children:[qu.getTemplate(),Zu.getTemplate(),ip.getTemplate()]}}},ap=rp,op={getTemplate(){return{name:"a:theme",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{a:"http://schemas.openxmlformats.org/drawingml/2006/main"}}],rawMap:{name:"Office Theme"}},children:[ap.getTemplate(),{name:"a:objectDefaults"},{name:"a:extraClrSchemeLst"}]}}},np=op,lp=()=>({name:"o:shapelayout",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}]},children:[{name:"o:idmap",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:{data:"1"}}}]}),cp=()=>({name:"v:stroke",properties:{rawMap:{joinstyle:"miter"}}}),dp=e=>({name:"v:formulas",children:e.map(t=>({name:"v:f",properties:{rawMap:{eqn:t}}}))}),hp=()=>({name:"v:path",properties:{prefixedAttributes:[{prefix:"o:",map:{connecttype:"rect",extrusionok:"f"}}],rawMap:{gradientshapeok:"t"}}}),Ea=e=>{const{aspectratio:t,rotation:s}=e||{},i={};return t&&(i.aspectratio="t"),s&&(i.rotation="t"),{name:"o:lock",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:i}}};function up(e,t,s,i,r){return(e-t)/(s-t)*(r-i)+i}var pp=(e,t)=>{let s;const{recolor:i,brightness:r,contrast:a,id:o}=e;if(i&&(s={},(i==="Washout"||i==="Grayscale")&&(s.gain="19661f",s.blacklevel="22938f"),(i==="Black & White"||i==="Grayscale")&&(s.grayscale="t",i==="Black & White"&&(s.bilevel="t"))),!i||i==="Grayscale"){if(s||(s={}),a!=null&&a!==50){let n="1";a>=0&&(a<50?n=String(a/50):a<100?n=String(50/(100-a)):a===100&&(n="2147483647f")),s.gain=n}r!=null&&r!==50&&(s.blacklevel=up(r,0,100,-.5,.5).toString())}return{name:"v:imagedata",properties:{prefixedAttributes:[{prefix:"o:",map:{relid:`rId${t}`,title:o}}],rawMap:s}}},gp=()=>{const e=["if lineDrawn pixelLineWidth 0","sum @0 1 0","sum 0 0 @1","prod @2 1 2","prod @3 21600 pixelWidth","prod @3 21600 pixelHeight","sum @0 0 1","prod @6 1 2","prod @7 21600 pixelWidth","sum @8 21600 0","prod @7 21600 pixelHeight","sum @10 21600 0"];return{name:"v:shapetype",properties:{prefixedAttributes:[{prefix:"o:",map:{spt:"75",preferrelative:"t"}}],rawMap:{coordsize:"21600,21600",filled:"f",id:"_x0000_t75",path:"m@4@5l@4@11@9@11@9@5xe",stroked:"f"}},children:[cp(),dp(e),hp(),Ea({aspectratio:!0})]}},Ia=e=>Math.floor((e??0)*.74999943307122),mp=(e,t)=>{const{width:s=0,height:i=0,altText:r}=e,a=Ia(s),o=Ia(i);return{name:"v:shape",properties:{rawMap:{id:e.headerFooterPosition,"o:spid":"_x0000_s1025",style:`position: absolute; margin-left: 0; margin-top: 10in; margin-bottom: 0; margin-right: 0; width: ${a}pt; height: ${o}pt; z-index: ${t+1}`,type:"#_x0000_t75",alt:r}},children:[pp(e,t+1),Ea({rotation:!0})]}},fp={getTemplate(e){const t=Re.get(e.sheetIndex)||[],s=[lp(),gp(),...t.map((i,r)=>mp(i,r))];return{name:"xml",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{v:"urn:schemas-microsoft-com:vml",o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel"}}]},children:s}}},Cp=fp,vp={getTemplate(e,t){const s=(t+1).toString();return{name:"sheet",properties:{rawMap:{name:e,sheetId:s,"r:id":`rId${s}`}}}}},yp=vp,Sp={getTemplate(e){return{name:"sheets",children:e.map((t,s)=>yp.getTemplate(t,s))}}},bp=Sp,wp={getTemplate(e,t){return{name:"workbook",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}}],rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[{name:"bookViews",children:[{name:"workbookView",properties:{rawMap:{activeTab:t}}}]},bp.getTemplate(e)]}}},xp=wp;import{_escapeString as Tp}from"ag-grid-community";var Pp=e=>Math.ceil((e-12)/7+1),Mp={getTemplate(e){const{min:t,max:s,outlineLevel:i,s:r,width:a,hidden:o,bestFit:n}=e;let l=1,c="0";return a>1&&(l=Pp(a),c="1"),{name:"col",properties:{rawMap:{min:t,max:s,outlineLevel:i??void 0,width:l,style:r,hidden:o?"1":"0",bestFit:n?"1":"0",customWidth:c}}}}},Fp=Mp,Ap={getTemplate(e){return{name:"mergeCell",properties:{rawMap:{ref:e}}}}},Rp=Ap;import{_escapeString as Da}from"ag-grid-community";var Ep=e=>{const t=e.charAt(0).toLowerCase();return t==="s"?"inlineStr":t},Ip={getTemplate(e,t,s){const{ref:i,data:r,styleId:a}=e,{type:o,value:n}=r||{type:"empty",value:null};let l=o;o==="f"?l="str":o.charAt(0)===o.charAt(0).toUpperCase()&&(l=Ep(o));const c={name:"c",properties:{rawMap:{r:i,t:l==="empty"?void 0:l,s:a?Uu(a,s):void 0}}};if(l==="empty")return c;let d;return l==="str"&&o==="f"?d=[{name:"f",textNode:Da(di(n),!1)}]:l==="inlineStr"?d=[{name:"is",children:[{name:"t",textNode:Da(di(n),!1)}]}]:d=[{name:"v",textNode:n}],Object.assign({},c,{children:d})}},Dp=Ip,Lp=(e,t)=>{const s=[];let i=0;for(let r=0;r<e.length;r++){const a=e[r];a.mergeAcross&&(s.push({pos:r,excelPos:i}),i+=a.mergeAcross),i++}if(s.length)for(let r=s.length-1;r>=0;r--){const a=[],o=e[s[r].pos];for(let n=1;n<=o.mergeAcross;n++)a.push({ref:`${Ve(s[r].excelPos+1+n)}${t+1}`,styleId:o.styleId,data:{type:"empty",value:null}});a.length&&e.splice(s[r].pos+1,0,...a)}},kp=e=>e.data?.value!==""||e.styleId!==void 0,Gp={getTemplate(e,t,s){const{collapsed:i,hidden:r,height:a,outlineLevel:o,cells:n=[]}=e;Lp(n,t);const l=n.filter(kp).map((c,d)=>Dp.getTemplate(c,d,s));return{name:"row",properties:{rawMap:{r:t+1,collapsed:i?"1":"0",hidden:r?"1":"0",ht:a,customHeight:a!=null?"1":"0",spans:"1:1",outlineLevel:o||void 0}},children:l}}},Op=Gp,Bp=(e,t,s)=>{const i=[],r=[];e.forEach((n,l)=>{const c=n.cells;let d=0,h;c.forEach((p,u)=>{const g=u+d+1,m=Ve(g),f=l+1;if(p.mergeAcross){d+=p.mergeAcross;const v=Ve(u+d+1);i.push(`${m}${f}:${v}${f}`)}t[g-1]||(t[g-1]={});const{collapsibleRanges:C}=p;C&&C.forEach(v=>{r.push([g+v[0],g+v[1]])}),h=t[g-1],h.min=g,h.max=g,p.ref=`${m}${f}`})}),r.sort((n,l)=>n[0]!==l[0]?n[0]-l[0]:l[1]-n[1]);const a=new Map,o=new Map;return r.filter(n=>{const l=n.toString();return a.get(l)?!1:(a.set(l,!0),!0)}).forEach(n=>{const l=t.find(d=>d.min==n[0]&&d.max==n[1]),c=o.get(n[0]);t.push({min:n[0],max:n[1],outlineLevel:s?void 0:c||1,width:(l||{width:100}).width}),o.set(n[0],(c||0)+1)}),i},Np=e=>!e||e!=="Portrait"&&e!=="Landscape"?"portrait":e.toLocaleLowerCase(),_p=e=>{if(e==null)return 1;const s=["Letter","Letter Small","Tabloid","Ledger","Legal","Statement","Executive","A3","A4","A4 Small","A5","A6","B4","B5","Folio","Envelope","Envelope DL","Envelope C5","Envelope B5","Envelope C3","Envelope C4","Envelope C6","Envelope Monarch","Japanese Postcard","Japanese Double Postcard"].indexOf(e);return s===-1?1:s+1},Vp=e=>(Object.entries({"&[Page]":"&P","&[Pages]":"&N","&[Date]":"&D","&[Time]":"&T","&[Tab]":"&A","&[Path]":"&Z","&[File]":"&F","&[Picture]":"&G"}).forEach(([s,i])=>{e=e.replace(s,i)}),e),Hp=e=>e==="Center"?"C":e==="Right"?"R":"L",zp=(e,t)=>(t&&(e+="&"",e+=t.fontName||"Calibri",t.bold!==t.italic?e+=t.bold?",Bold":",Italic":t.bold?e+=",Bold Italic":e+=",Regular",e+=""",t.size&&(e+=`&${t.size}`),t.strikeThrough&&(e+="&S"),t.underline&&(e+=`&${t.underline==="Double"?"E":"U"}`),t.color&&(e+=`&K${t.color.replace("#","").toUpperCase()}`)),e),Up=(e,t,s)=>e.reduce((i,r,a)=>{const o=Hp(r.position),n=zp(`${i}&${o}`,r.font),l=["Left","Center","Right"];r.position||(r.position=l[a]);const{image:c}=r;if(r.value==="&[Picture]"&&c){const d=`${o}${t}${s}`;pg(c,d)}return`${n}${Tp(Vp(r.value))}`},""),Kp=e=>{const t=["all","firs