@sheetxl/studio-vanilla 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{CM3yfM011uVsmI7-.cjs → B0L2HuliuW9aTvJM.cjs} +1 -1
- package/browser/cjs/{Cjqw7vUOTsQngxQ0.cjs → BC1EuCQ2stuFE3uE.cjs} +2 -2
- package/browser/cjs/{DV-xVh1YLIb5Q8Hj.cjs → BDVO5vEdK7Wah9u6.cjs} +2 -2
- package/browser/cjs/{C-sdlHOX3xk7wUuX.cjs → BEJCfS2GnnCHB_Mm.cjs} +2 -2
- package/browser/cjs/{CTpcHHp3a6vBqbuX.cjs → C0AMVPCvA-TujT5K.cjs} +4 -4
- package/browser/cjs/{B1lEnbCfJ6v74Rf_.cjs → CO2670BoVR60TAIO.cjs} +1 -1
- package/browser/cjs/{ybsZMfxWZkcztjOZ.cjs → CRbLTUE75pKqxTAE.cjs} +2 -2
- package/browser/cjs/{CN3LCiT_VkBH8Lj-.cjs → CcvjqZjjmoPDS0vK.cjs} +1 -1
- package/browser/cjs/{DXSj78n8AohvwjC8.cjs → Cf2_qMNBs2gVwbh1.cjs} +1 -1
- package/browser/cjs/{QhOTqQvHL21c3HEy.cjs → Cg56Q7yFUDqoNyPz.cjs} +1 -1
- package/browser/cjs/{CCXpRFZBFJFz6Lgj.cjs → Ch1N2RfTkexbaLQZ.cjs} +1 -1
- package/browser/cjs/{0kHhn6Cm5hF230Xe.cjs → CiQE7e1h2nORtvH-.cjs} +2 -2
- package/browser/cjs/{BsdcW8_xMePqTsQX.cjs → Ckn4M7Qh3E3gxz2w.cjs} +2 -2
- package/browser/cjs/{B1zOZpqCTNxjobfb.cjs → ClnAKZeWBp1OEjmi.cjs} +2 -2
- package/browser/cjs/{B6gAUglt5G86WreY.cjs → CndX6WxBX5l14erU.cjs} +8 -8
- package/browser/cjs/{DlvTPS4JY9WxxQTI.cjs → CyL3JLfSqByl6NJK.cjs} +2 -2
- package/browser/cjs/{BokB9pc9mxZJ-OfH.cjs → D4J2MWfhcQh5QfIS.cjs} +2 -2
- package/browser/cjs/{aTxyX6TTxhCnG2uf.cjs → D52XNI-phrNzLrWS.cjs} +1 -1
- package/browser/cjs/{uu5NnyYWVPuO3n8E.cjs → D8mduMF3arHBud5b.cjs} +2 -2
- package/browser/cjs/{Dy4PtfoLCJ7pos1x.cjs → DAoqhWARDCCMxYfu.cjs} +3 -3
- package/browser/cjs/{CPx-BlldThKlWXAk.cjs → DJ3lRRtgGNfZ_GK7.cjs} +2 -2
- package/browser/cjs/{D2ILkhBQH2eCBX_v.cjs → D_BIUeiHuQDwD6QN.cjs} +3 -3
- package/browser/cjs/{zvEw5lAwZwPXiEvy.cjs → VWWxZ8TRgMDlwBgU.cjs} +2 -2
- package/browser/cjs/{C6_bJu-k-iFiMxlA.cjs → hlMzhbyi3yXzEax6.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{C9MZ5tOXy0TaryoI.cjs → mzGAr1pI91e1sd2y.cjs} +1 -1
- package/browser/cjs/{BwTs_vkDXnVUFvYG.cjs → rf4-78JGGhtQMtw3.cjs} +1 -1
- package/{cdn/assets/CY3ThzdXlC5KqipX.js → browser/esm/AWcFdkqHbjuM31T8.mjs} +1 -1
- package/browser/esm/{BH4yKAYKkYAXKV-N.mjs → B10LhnZcMt1ayTsN.mjs} +1 -1
- package/browser/esm/{DGN8rRG_JJCho7ZU.mjs → BEb33qzyvFCELL-3.mjs} +2 -2
- package/browser/esm/{BCSGDgEa1qJcoQKE.mjs → BcNJxq2cuxPkAW4q.mjs} +3 -3
- package/browser/esm/{D1smB-8NEBrtTnpz.mjs → BefI9PT_BgRNGb7_.mjs} +2 -2
- package/browser/esm/{Dlfq54WMAZj5Ntt_.mjs → Bhv6QhNtkfdin_7u.mjs} +3 -3
- package/browser/esm/{Dz14l4efxM4TKgP7.mjs → C3Oq5rZbPE2to2eI.mjs} +5 -5
- package/{cdn/assets/DzL0_3gEyr0JZsUl.js → browser/esm/C_kr_6FpZ17pfLXi.mjs} +1 -1
- package/browser/esm/{DqxZxIZL62OjnE7A.mjs → Cj2uX_OMjmaU3fNR.mjs} +4 -4
- package/browser/esm/{CrIS8kFOLyWEDTVd.mjs → Cy4td5Lr__p7Rygx.mjs} +3 -3
- package/browser/esm/{DVLPsjOYeF5A7xOK.mjs → CyTYBSnJvDp00EQS.mjs} +2 -2
- package/browser/esm/{Ch8qHk7NreHs-lDH.mjs → D0GrOZjFUR2HlnMz.mjs} +6 -6
- package/browser/esm/{fUXfNPH_HKcQeqkL.mjs → DB6PulwZ7VZjKPA8.mjs} +1 -1
- package/browser/esm/{CxNhMTxkvCyKTtFW.mjs → DfNICWSvz9QDZQhb.mjs} +2 -2
- package/browser/esm/{2Hbvtf-igp32fy0r.mjs → DmlVS3gIBTC4kUV7.mjs} +2 -2
- package/browser/esm/{DG_c1q5-icyn6FR7.mjs → DpJ6rBC_S3qKpTTz.mjs} +9 -9
- package/{cdn/assets/BRBC9GaEZprBjqWv.js → browser/esm/DtxnQukkOL0CjEuQ.mjs} +1 -1
- package/{cdn/assets/DEixxqIr7jWR4Jcw.js → browser/esm/DzTywDe5V3E28PWl.mjs} +1 -1
- package/browser/esm/{Bx8IRtPE76RM73v4.mjs → Ka_EOSR_2pEe_9bW.mjs} +2 -2
- package/browser/esm/{B_IP3LTF7USFMwkc.mjs → Mf5PGnpvo2ab2ron.mjs} +1 -1
- package/browser/esm/{B-3xJmkhMb4tfQYl.mjs → anzhTAYYl_AYExOH.mjs} +2 -2
- package/browser/esm/{C5V0SvBIdJDHhUzx.mjs → ar5lDYhxFfJDlI4q.mjs} +2 -2
- package/browser/esm/{BulDeZIvq856t8eM.mjs → bnNlX3wyLfzCzkPl.mjs} +2 -2
- package/browser/esm/index.mjs +2 -2
- package/{cdn/assets/BIaIMczdgmeuXUwx.js → browser/esm/nPC0QB7Y32vNdKJ6.mjs} +1 -1
- package/{cdn/assets/BUMP_6_b9qtueoSD.js → browser/esm/pQgC_MfgVvqv6lyK.mjs} +1 -1
- package/browser/esm/{CN1bczUWoLDFUnzb.mjs → yULhUqAUufR5kUwn.mjs} +2 -2
- package/cdn/assets/{92QLDomNWpPHOl-R.js → A8kiDhrng-S3d7bC.js} +3 -3
- package/{browser/esm/CY3ThzdXlC5KqipX.mjs → cdn/assets/AWcFdkqHbjuM31T8.js} +1 -1
- package/cdn/assets/{BH4yKAYKkYAXKV-N.js → B10LhnZcMt1ayTsN.js} +1 -1
- package/cdn/assets/{K0B-hpi7mWC7ZKDV.js → BH2PfED5elf6o2V9.js} +2 -2
- package/cdn/assets/{BJXT7kCiObXQ9bh8.js → BSywdRZwPRE8kvep.js} +2 -2
- package/cdn/assets/{D-kf6zENGXRBp5lD.js → BWgkRW6hv3jQZREe.js} +3 -3
- package/cdn/assets/{DTDpqxjlHHAFX06s.js → Bg1gxl7R7pEDQJ_e.js} +2 -2
- package/cdn/assets/{BV09oKWYWU55ykNs.js → BiXCdxCfyppsYKdi.js} +2 -2
- package/cdn/assets/{BiiCVMXQLSq7w90R.js → CGRxpUrPJQySyydG.js} +2 -2
- package/{browser/esm/DzL0_3gEyr0JZsUl.mjs → cdn/assets/C_kr_6FpZ17pfLXi.js} +1 -1
- package/cdn/assets/{CNbT_jOvyiKgYK2A.js → D6ibgkGY0zdJZVdP.js} +2 -2
- package/cdn/assets/{BYexFtlCMAX9LScd.js → D7VphVLqKl6argvu.js} +2 -2
- package/cdn/assets/{fUXfNPH_HKcQeqkL.js → DB6PulwZ7VZjKPA8.js} +1 -1
- package/cdn/assets/{CsKjVi8Hf1es2PCi.js → DOZC168cRHRH_MNy.js} +2 -2
- package/cdn/assets/{tCMEdSMGHzUVn5D7.js → DYHqPNPZiXqt-4Ux.js} +6 -6
- package/cdn/assets/{BxalB1k2xhoY4rP8.js → DgLqE4amKIfxfXZt.js} +2 -2
- package/{browser/esm/BRBC9GaEZprBjqWv.mjs → cdn/assets/DtxnQukkOL0CjEuQ.js} +1 -1
- package/{browser/esm/DEixxqIr7jWR4Jcw.mjs → cdn/assets/DzTywDe5V3E28PWl.js} +1 -1
- package/cdn/assets/{B_IP3LTF7USFMwkc.js → Mf5PGnpvo2ab2ron.js} +1 -1
- package/cdn/assets/{SBZ0NQzlDKRHgeEH.js → YtJ5y2-cVhR5MGYz.js} +5 -5
- package/cdn/assets/{DL664BPST6VWAMqM.js → jzOOsUtK1t6fHp7l.js} +2 -2
- package/cdn/assets/{uE4Iw1udHDDZy5tr.js → mJrwxSI9ER8tcfM5.js} +8 -8
- package/{browser/esm/BIaIMczdgmeuXUwx.mjs → cdn/assets/nPC0QB7Y32vNdKJ6.js} +1 -1
- package/{browser/esm/BUMP_6_b9qtueoSD.mjs → cdn/assets/pQgC_MfgVvqv6lyK.js} +1 -1
- package/cdn/assets/{CS0gW_BCQJ1v280_.js → yNhs_10ijt0MpP-T.js} +4 -4
- package/cdn/assets/{BwxkqZNL5rdId8hD.js → zdC5k0nNqnRyMFF0.js} +3 -3
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@sheetxl/sdk"),Ke=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@sheetxl/sdk"),Ke=require("./CndX6WxBX5l14erU.cjs"),Ye=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",bs=new RegExp(`^[${Ye}][-${Ye}.0-9·̀-ͯ‿-⁀]*$`,"u");function rs(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const ts="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",xs=new RegExp(`^[${ts}][-${ts}.0-9·̀-ͯ‿-⁀]*$`,"u");function ns(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const U=function(i){return i===32||i===10||i===13||i===9},ws=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},re=rs,es=function(i){return rs(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},as=[32,10,13,9],vs=bs,Ss=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Cs=ns,ks=function(i){return ns(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},As=xs,ge="http://www.w3.org/XML/1998/namespace",Zt="http://www.w3.org/2000/xmlns/",Es={__proto__:null,xml:ge,xmlns:Zt},Ds={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},O=-1,lt=-2,q=13,jt=33,ot=10,St=60,Gt=61,M=62,X=63,Jt=93,pe=i=>i===34||i===39,ls=[34,39],Ps=[...ls,91,M],Is=[...ls,St,Jt],Os=[Gt,X,...as],Vs=[...as,M,38,St];function ke(i,t,s){switch(t){case"xml":s!==ge&&i.fail(`xml prefix must be bound to ${ge}.`);break;case"xmlns":s!==Zt&&i.fail(`xmlns prefix must be bound to ${Zt}.`)}switch(s){case Zt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Zt}.`);break;case ge:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Ns=i=>As.test(i),Ls=i=>vs.test(i),ss={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Rs{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Cs,this.nameCheck=ks,this.isName=Ns,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...Es};const o=this.opt.additionalNamespaces;o!=null&&(function(n,a){for(const c of Object.keys(a))ke(n,c,a[c])}(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=re,this.nameCheck=es,this.isName=Ls,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?q:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ds),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[ss[t]]=s}off(t){this[ss[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return O;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:return t.charCodeAt(s+1)===ot&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return O;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:{const a=t.charCodeAt(s+1);a!==ot&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===lt?ot:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===lt,c=a?ot:n;if(c===O||t.includes(c))return this.text+=o.slice(s,this.prevI),c;a&&(this.text+=`${o.slice(s,this.prevI)}
|
|
7
7
|
`,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case lt:this.text+=`${o.slice(s,this.prevI)}
|
|
8
8
|
`,s=this.i,n=ot;break;case O:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===O)return this.name+=t.slice(s),O;if(!es(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===O||!U(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=ws,this.getCode=this.getCode10):(this.isChar=Ss,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case O:break;default:this.unget(),this.state=q,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Ps);switch(t){case M:this.doctypeHandler?.(this.text),this.text="",this.state=q,this.doctype=!0;break;case O:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:pe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Is);t!==O&&(this.text+=String.fromCodePoint(t),t===Jt?this.state=2:t===St?this.state=6:pe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case X:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===M?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===M&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case lt:this.entity+=`${s.slice(t,this.prevI)}
|
|
9
9
|
`,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===q&&this.textHandler===void 0||(this.text+=a);break t}case O:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(re(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case X:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=q,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==M?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=q}sCData(){this.captureToChar(Jt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Jt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case M:this.cdataHandler?.(this.text),this.text="",this.state=q;break;case Jt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===X||U(t)?(this.fail("processing instruction without a target."),this.state=t===X?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===O)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||U(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?jt:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===X?this.state=26:U(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===M){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=q}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==O&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=jt}sXMLDeclName(){const t=this.captureTo(Os);if(t===X)return this.state=jt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(U(t)||t===Gt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===X)return this.state=jt,void this.fail("XML declaration is incomplete.");U(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=jt,void this.fail("XML declaration is incomplete.");U(t)||(pe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,X]);if(t===X)return this.state=jt,this.text="",void this.fail("XML declaration is incomplete.");if(t===O)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==X?(U(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=jt}sXMLDeclEnding(){this.getCodeNorm()===M?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=q):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===O)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case M:this.openTag();break;case 47:this.state=35;break;default:U(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===M?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==O&&(re(t)?(this.unget(),this.state=37):t===M?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:U(t)?this.state=38:t===M?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==O&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case O:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===M?this.openTag():re(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();pe(t)?(this.q=t,this.state=40):U(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case ot:case lt:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case St:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case O:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();U(t)?this.state=36:t===M?this.openTag():t===47?this.state=35:re(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Vs);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case O:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===M?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===M?this.closeTag():U(t)?this.state=44:t!==O&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case M:this.closeTag();break;case O:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case St:if(this.state=15,n!==void 0){const{text:a}=this,c=o.slice(t,this.prevI);a.length!==0?(n(a+c),this.text=""):c.length!==0&&n(c)}s=0;break t;case 38:this.state=14,this.entityReturnState=q,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Jt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case M:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case lt:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
|
|
10
10
|
`),t=this.i,s=0;break;case O:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case St:if(this.state=15,o!==void 0){const{text:c}=this,T=s.slice(t,this.prevI);c.length!==0?(o(c+T),this.text=""):T.length!==0&&o(T)}break t;case 38:this.state=14,this.entityReturnState=q,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case lt:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
|
|
11
|
-
`),t=this.i;break;case O:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==q&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Zt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=q,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=q,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=q,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Rs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class $s{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],D={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let H=0;H<m.length;H++)if(V==null||(V=m[H](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,H)=>{const W=P(H??m,V);W!==void 0&&(y[m]=W)},copyTo:(y,m,V)=>{const H=P(V??y,m);H!==void 0&&(b.source[y]=H)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const H=n.get(m);if(c={local:m,visitor:H,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,H&&(b=a.length===0?D:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const H=a.pop()??null;c=a[a.length-1]??null;const W=H?.destination;if(W){w.pop(),b=w[w.length-1]??D;const ht=H.visitor;ht&&ht.to&&W.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(W.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):W.key?b.source[W.key]=W.source:typeof ht.to=="string"&&(b.source[ht.to]=W.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const is=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},Ee=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),D=o.convert(w,i,n);return n?.parsedRefs?.set(i,D),D}catch(x){console.warn(x)}return null},zt=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const D=Ee(w,b=>t.files[b],s,o,n);a.set(w,D)}return a},Fs=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],De=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=Fs[c]);let T=i("tint");if(T&&(s+=` ${u.IColor.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},cs=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),hs=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ms=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},os={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,constructorOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./aTxyX6TTxhCnG2uf.cjs")),T=Promise.resolve().then(()=>require("./Cjqw7vUOTsQngxQ0.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./BwTs_vkDXnVUFvYG.cjs")).then(d=>d.i));let w=null,D=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],D=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new D.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.ResourceCollection,m=y.beginPersist(),V={},H=new Set,W=new Map;W.set("richTypes",[]);const ht=new Map,Pe=[],ne=I=>d.files[I],fe=(I,z)=>{const Y=I.lastIndexOf("/"),ut=I.substring(0,Y+1)+"_rels/"+I.substring(Y+1,I.length)+".rels";let dt=z.get(ut);return dt||(dt=(($,be,xe,we,Xt=null)=>{if(!$)return null;const tt=Ee($,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const qt=bt[xt],kt=tt[qt];et.set(qt,kt)}return et})(ut,ne,f,P,yt),z.set(ut,dt)),dt},ae=(I,z,Y,ut=ht)=>{let dt=fe(z,ut).get(I),$=dt?.target;if(!$)return null;if(dt.targetMode==="External")return dt.target;const be=z.lastIndexOf("/"),xe=z.substring(0,be+1);$.startsWith("/")||($=xe+$),$=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})($);const we=P?.getVisitorParamsState().get("dxfs");let Xt=ut.get($);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((N,G,Qt,_,J,Z,wt)=>{const h=new $s,Q=new u.Tuple.TransposedBuilder;let j=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",E);if(l!==null){let p=_?.get(l);p||(Z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=De(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",E,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.AddressUtils.fastStringToRange(p,os).colStart,pt=u.AddressUtils.fastStringToRange(r.ref,os),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{j=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=hs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!j)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(j&&e.getAttribute("state")==="frozen"){const r={};j.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=j.topLeft?u.AddressUtils.fastStringToCell(j.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",E,"xSplit"),e.copyToObject(p,"rowIndex",E,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.AddressUtils.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=De(l=>e.getAttribute(l));r&&(N.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?G(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",E),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(N,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(N,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(N,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(N,"outlineLevelRow",E,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Kt=null;const Ts={onOpenTag:e=>{Kt===null&&(Kt="")},onText:e=>{Kt+=e},onEnd:()=>{const e=Qt(Kt);return Kt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,Wt=[],_t=!1,Et=null,Yt=null,de=null,nt=null,$e=null,Fe=null;const ys=pt?.get("richData")??[],Me=u.AddressUtils.normalizeA1ToR1C1,je=u.CoordUtils.createConflatingRanges(),He=new Map,ve=[];let te=null;const Xe=u.CoordUtils.createConflatingRanges();let ee,Dt=!1,B=-1,K=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,Ut="",Pt="",It="",Ot="",Vt="",Nt="",Lt="",qe="",We="",_e="",Ue="",ze="",Ge="",Je="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=je.done(Ms);const k=g.length;if(k>0){const F=new Array(k);for(let L=0;L<k;L++){const at=g[L],$t=u.AddressUtils.rangeToString(at),Ft=at.value[1],ie=u.AddressUtils.resolveRelativeToA1(Ft,at.rowStart,at.colStart);F[L]=[$t,ie]}r.formulas=F}const st=Xe.done(!0),R=st.length;if(R>0){const F=new Array(R);for(let L=0;L<R;L++){const at=st[L],$t=u.AddressUtils.rangeToString(at);F[L]=$t}r.volatile=F}if(ve.length>0&&(r.dynamicArray=[...ve]),Wt.length>0){Wt.sort(u.CoordUtils.createRangeComparator(u.IRange.Orientation.Column));const F=[];let L=null,at=-1,$t=-1,Ft=-1,ie=-1,vt=null;const Ze=Wt.length;Ze>0&&(L=Wt[0],at=L.colStart,$t=L.colEnd,Ft=L.rowEnd,ie=L.value,F.push(L));for(let Mt=1;Mt<Ze;Mt++)vt=Wt[Mt],ie!==vt.value||at!==vt.colStart||$t!==vt.colEnd||Ft+1!==vt.rowEnd?(F.push(vt),L=vt,at=L.colStart,$t=L.colEnd,Ft=L.rowEnd,ie=L.value):(Ft=vt.rowEnd,L.rowEnd=Ft);let Qe=[];for(let Mt=0;Mt<F.length;Mt++){const oe=F[Mt];Qe.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Qe}const it=e.build();if(it){const F=it.tuples;r.data=F}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Et=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,K);break;case"is":return void(Dt=!0)}return void(Dt&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;K=u.AddressUtils.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Dt=!0));let F=g.attributes.s;F!==void 0&&(F=parseInt(F),Rt&&Rt.value===F&&Rt.colEnd+1===K?Rt.colEnd=K:(Rt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:F},Wt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Pt=g.attributes.customHeight,Pt!==void 0&&(ft|=Ht.CustomHeight),Pt!==We&&(mt=!0,We=Pt),Ut=g.attributes.ht,Ut!==void 0&&(ft|=Ht.Ht),Ut!==qe&&(mt=!0,qe=Ut),It=g.attributes.hidden,It!==void 0&&(ft|=Ht.Hidden),It!==_e&&(mt=!0,_e=It),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ht.S),Vt!==ze&&(mt=!0,ze=Vt),Ot=g.attributes.customFormat,Ot!==void 0&&(ft|=Ht.CustomFormat),Ot!==Ue&&(mt=!0,Ue=Ot),Nt=g.attributes.outlineLevel,Nt!==void 0&&(ft|=Ht.OutlineLevel),Nt!==Ge&&(mt=!0,Ge=Nt),Lt=g.attributes.collapsed,Lt!==void 0&&(ft|=Ht.Collapsed),Lt!==Je&&(mt=!0,Je=Lt),ft!==0)if(Be+1!==B||mt){const it=Pt!==void 0&&(Pt==="1"||Pt==="true"),F=Ot!==void 0&&(Ot==="1"||Ot==="true");Ce={min:B,max:B,sz:it&&Ut!==void 0?parseFloat(Ut):-1,csz:it,h:It!==void 0&&(It==="1"||It==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:F,l:Nt===void 0||Nt==="0"?0:parseInt(Nt),cl:Lt!==void 0&&(Lt==="1"||Lt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Dt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Dt=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=ys[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.ScalarType.Error,v:R.getCode()};break}}}const k=u.FormulaError.getBuiltInByLabel(g);k?gt={t:u.ScalarType.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.AddressUtils.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Dt=!0}gt!==null&&e.addValue(B,K,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Et)if($e===Et)nt=Fe;else{if(nt=He.get(Et),!nt){const k=[];de=Me(g,B,K,k),nt=[de,k,g],He.set(Et,nt)}$e=Et,Fe=nt}if(_t){const k=[];de=Me(g,B,K,k),nt=[de,k,g]}if(nt)return je.append(B,K,nt),nt=null,_t=!1,Et=null,void(Yt=null);Dt?C?.onText(g):rt||l?.onText(g)}}})(Q,N,h.createEventHandler(N,()=>{},Z),Z,Ts,wt)})(tt,(N,G=!1)=>ae(N,$,G)??null,ds,we,0,N=>{o&&(N=$+": "+N,o?.(N))},W),Bt=is($,ne),xt=await(async(N,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Z}=await Promise.resolve().then(()=>require("./CM3yfM011uVsmI7-.cjs"));globalThis.ReadableStream=Z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Qt=new TextDecoder("utf-8");let _=0;const J=N instanceof Uint8Array?N:new Uint8Array(N);return new ReadableStream({pull(Z){if(_>=J.byteLength)return void Z.close();const wt=J.subarray(_,Math.min(_+G,J.byteLength)),h=Qt.decode(wt,{stream:_+G<J.byteLength});Z.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(N){throw console.warn(`Error parsing sheet: '${$}'`,N),new Error(`Error parsing sheet: '${$}'`,{cause:N})}const qt=fe($,ut);let kt,Re=new Map;if(qt){const N="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;qt.forEach((_,J)=>{_.type===N&&(kt=ae(J,$,!1,ut)?.comments,kt&&kt.forEach(Z=>{Re.set(Z.id,Z)}))});const Qt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(qt.forEach((_,J)=>{_.type===Qt&&(G=ae(J,$,!1,ut))}),G||kt){const _=kt??[],J=G?.comments;if(J){const Z=G?.authors;for(let wt=0;wt<J.length;wt++){const h=J[wt];let Q=h.authorId!==void 0?Z[h.authorId]:void 0;if((!Q||Q.startsWith("tc="))&&(Q=cs(Q.substring(3)),Re.has(Q)))continue;let j=ce.get(Q);j||(j=Ve.get(Q)),j||(j={id:u.CommonUtils.uuidV4(),displayName:Q},Ve.set(j.displayName,j),ce.set(j.id,j)),Q=j?.id??null;const ue={id:u.CommonUtils.uuidV4(),personId:Q,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Pe.push(et())}else Xt=Y?is($,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),H.add(et),m.toResourceId(et)},yt):Ee($,ne,f,P,yt);return Xt},yt={paramMap:W,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:I=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const us=d.Strings??[];for(let I=0;I<me;I++)le.push(us[I]?.t??"");const Ie=new Map;let Oe=me;const ds=I=>{const z=Ie.get(I);if(z!==void 0)return z;const Y=Oe;return Ie.set(I,Oe++),le.push(I),Y},ce=(zt("richstructure",d,f,P,yt),zt("richdata",d,f,P,yt),new Map),Ve=new Map,Ne=zt("people",d,f,P);let Ct=null;if(Ne.size>0&&(Ct=Ne.entries().next()?.value?.[1]?.persons,Ct)){const I=Ct.length;for(let z=0;z<I;z++){const Y=Ct[z];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=zt("themes",d,f,P,yt);let Le=null;if(Te&&Te.entries){let I=Te.entries().next();I?.value?.[1]&&(Le=I.value[1])}const ps=new u.Theme(Le);let he=zt("styles",d,f,P,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.JSONStableStringify(he)));const gs=zt("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...gs.entries().next().value[1],styles:he,theme:ps.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const fs={...n,resources:y,json:ye},ms=new u.Workbook(fs);return H.forEach(I=>{I.deleteReference(V)}),m.endPersist(),ms}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.OutOfBoundsError&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./aTxyX6TTxhCnG2uf.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((D,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.NumberFormat.Type.General&&(f===u.NumberFormat.Type.ShortDate?f="m/d/yyyy":f===u.NumberFormat.Type.MediumDate?f="d-mmm-yy":f===u.NumberFormat.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.NumberFormat.Type.ShortTime?f="h:mm":f===u.NumberFormat.Type.MediumTime?f="h:mm AM/PM":f===u.NumberFormat.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(D!==null)switch(b.getType()){case u.ScalarType.Number:d.t="n",d.v=D;break;case u.ScalarType.String:d.t="s",d.v=D;break;case u.ScalarType.Boolean:d.t="b",d.v=D;break;case u.ScalarType.Error:d.t="e",d.v=D.toString();case u.ScalarType.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const D=[];T["!merges"]=D;for(let b=0;b<S.merges.length;b++)D.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const D=[];T["!cols"]=D;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=D.length;m<=f.min-1;m++)D.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)D.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=hs,exports.c=i=>i?Ke.Jt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=De,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=cs,exports.t=i=>i?Ke.Jt.roundAccurately(parseFloat(i)/12700,4):null;
|
|
11
|
+
`),t=this.i;break;case O:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==q&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Zt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=q,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=q,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=q,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Rs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class $s{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],D={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let H=0;H<m.length;H++)if(V==null||(V=m[H](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,H)=>{const W=P(H??m,V);W!==void 0&&(y[m]=W)},copyTo:(y,m,V)=>{const H=P(V??y,m);H!==void 0&&(b.source[y]=H)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const H=n.get(m);if(c={local:m,visitor:H,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,H&&(b=a.length===0?D:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const H=a.pop()??null;c=a[a.length-1]??null;const W=H?.destination;if(W){w.pop(),b=w[w.length-1]??D;const ht=H.visitor;ht&&ht.to&&W.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(W.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):W.key?b.source[W.key]=W.source:typeof ht.to=="string"&&(b.source[ht.to]=W.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const is=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},Ee=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),D=o.convert(w,i,n);return n?.parsedRefs?.set(i,D),D}catch(x){console.warn(x)}return null},zt=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const D=Ee(w,b=>t.files[b],s,o,n);a.set(w,D)}return a},Fs=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],De=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=Fs[c]);let T=i("tint");if(T&&(s+=` ${u.IColor.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},cs=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),hs=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ms=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},os={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,constructorOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./D52XNI-phrNzLrWS.cjs")),T=Promise.resolve().then(()=>require("./BC1EuCQ2stuFE3uE.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./rf4-78JGGhtQMtw3.cjs")).then(d=>d.i));let w=null,D=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],D=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new D.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.ResourceCollection,m=y.beginPersist(),V={},H=new Set,W=new Map;W.set("richTypes",[]);const ht=new Map,Pe=[],ne=I=>d.files[I],fe=(I,z)=>{const Y=I.lastIndexOf("/"),ut=I.substring(0,Y+1)+"_rels/"+I.substring(Y+1,I.length)+".rels";let dt=z.get(ut);return dt||(dt=(($,be,xe,we,Xt=null)=>{if(!$)return null;const tt=Ee($,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const qt=bt[xt],kt=tt[qt];et.set(qt,kt)}return et})(ut,ne,f,P,yt),z.set(ut,dt)),dt},ae=(I,z,Y,ut=ht)=>{let dt=fe(z,ut).get(I),$=dt?.target;if(!$)return null;if(dt.targetMode==="External")return dt.target;const be=z.lastIndexOf("/"),xe=z.substring(0,be+1);$.startsWith("/")||($=xe+$),$=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})($);const we=P?.getVisitorParamsState().get("dxfs");let Xt=ut.get($);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((N,G,Qt,_,J,Z,wt)=>{const h=new $s,Q=new u.Tuple.TransposedBuilder;let j=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",E);if(l!==null){let p=_?.get(l);p||(Z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=De(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",E,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.AddressUtils.fastStringToRange(p,os).colStart,pt=u.AddressUtils.fastStringToRange(r.ref,os),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{j=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=hs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!j)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(j&&e.getAttribute("state")==="frozen"){const r={};j.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=j.topLeft?u.AddressUtils.fastStringToCell(j.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",E,"xSplit"),e.copyToObject(p,"rowIndex",E,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.AddressUtils.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=De(l=>e.getAttribute(l));r&&(N.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?G(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",E),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(N,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(N,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(N,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(N,"outlineLevelRow",E,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Kt=null;const Ts={onOpenTag:e=>{Kt===null&&(Kt="")},onText:e=>{Kt+=e},onEnd:()=>{const e=Qt(Kt);return Kt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,Wt=[],_t=!1,Et=null,Yt=null,de=null,nt=null,$e=null,Fe=null;const ys=pt?.get("richData")??[],Me=u.AddressUtils.normalizeA1ToR1C1,je=u.CoordUtils.createConflatingRanges(),He=new Map,ve=[];let te=null;const Xe=u.CoordUtils.createConflatingRanges();let ee,Dt=!1,B=-1,K=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,Ut="",Pt="",It="",Ot="",Vt="",Nt="",Lt="",qe="",We="",_e="",Ue="",ze="",Ge="",Je="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=je.done(Ms);const k=g.length;if(k>0){const F=new Array(k);for(let L=0;L<k;L++){const at=g[L],$t=u.AddressUtils.rangeToString(at),Ft=at.value[1],ie=u.AddressUtils.resolveRelativeToA1(Ft,at.rowStart,at.colStart);F[L]=[$t,ie]}r.formulas=F}const st=Xe.done(!0),R=st.length;if(R>0){const F=new Array(R);for(let L=0;L<R;L++){const at=st[L],$t=u.AddressUtils.rangeToString(at);F[L]=$t}r.volatile=F}if(ve.length>0&&(r.dynamicArray=[...ve]),Wt.length>0){Wt.sort(u.CoordUtils.createRangeComparator(u.IRange.Orientation.Column));const F=[];let L=null,at=-1,$t=-1,Ft=-1,ie=-1,vt=null;const Ze=Wt.length;Ze>0&&(L=Wt[0],at=L.colStart,$t=L.colEnd,Ft=L.rowEnd,ie=L.value,F.push(L));for(let Mt=1;Mt<Ze;Mt++)vt=Wt[Mt],ie!==vt.value||at!==vt.colStart||$t!==vt.colEnd||Ft+1!==vt.rowEnd?(F.push(vt),L=vt,at=L.colStart,$t=L.colEnd,Ft=L.rowEnd,ie=L.value):(Ft=vt.rowEnd,L.rowEnd=Ft);let Qe=[];for(let Mt=0;Mt<F.length;Mt++){const oe=F[Mt];Qe.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Qe}const it=e.build();if(it){const F=it.tuples;r.data=F}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Et=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,K);break;case"is":return void(Dt=!0)}return void(Dt&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;K=u.AddressUtils.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Dt=!0));let F=g.attributes.s;F!==void 0&&(F=parseInt(F),Rt&&Rt.value===F&&Rt.colEnd+1===K?Rt.colEnd=K:(Rt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:F},Wt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Pt=g.attributes.customHeight,Pt!==void 0&&(ft|=Ht.CustomHeight),Pt!==We&&(mt=!0,We=Pt),Ut=g.attributes.ht,Ut!==void 0&&(ft|=Ht.Ht),Ut!==qe&&(mt=!0,qe=Ut),It=g.attributes.hidden,It!==void 0&&(ft|=Ht.Hidden),It!==_e&&(mt=!0,_e=It),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ht.S),Vt!==ze&&(mt=!0,ze=Vt),Ot=g.attributes.customFormat,Ot!==void 0&&(ft|=Ht.CustomFormat),Ot!==Ue&&(mt=!0,Ue=Ot),Nt=g.attributes.outlineLevel,Nt!==void 0&&(ft|=Ht.OutlineLevel),Nt!==Ge&&(mt=!0,Ge=Nt),Lt=g.attributes.collapsed,Lt!==void 0&&(ft|=Ht.Collapsed),Lt!==Je&&(mt=!0,Je=Lt),ft!==0)if(Be+1!==B||mt){const it=Pt!==void 0&&(Pt==="1"||Pt==="true"),F=Ot!==void 0&&(Ot==="1"||Ot==="true");Ce={min:B,max:B,sz:it&&Ut!==void 0?parseFloat(Ut):-1,csz:it,h:It!==void 0&&(It==="1"||It==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:F,l:Nt===void 0||Nt==="0"?0:parseInt(Nt),cl:Lt!==void 0&&(Lt==="1"||Lt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Dt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Dt=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=ys[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.ScalarType.Error,v:R.getCode()};break}}}const k=u.FormulaError.getBuiltInByLabel(g);k?gt={t:u.ScalarType.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.AddressUtils.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Dt=!0}gt!==null&&e.addValue(B,K,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Et)if($e===Et)nt=Fe;else{if(nt=He.get(Et),!nt){const k=[];de=Me(g,B,K,k),nt=[de,k,g],He.set(Et,nt)}$e=Et,Fe=nt}if(_t){const k=[];de=Me(g,B,K,k),nt=[de,k,g]}if(nt)return je.append(B,K,nt),nt=null,_t=!1,Et=null,void(Yt=null);Dt?C?.onText(g):rt||l?.onText(g)}}})(Q,N,h.createEventHandler(N,()=>{},Z),Z,Ts,wt)})(tt,(N,G=!1)=>ae(N,$,G)??null,ds,we,0,N=>{o&&(N=$+": "+N,o?.(N))},W),Bt=is($,ne),xt=await(async(N,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Z}=await Promise.resolve().then(()=>require("./B0L2HuliuW9aTvJM.cjs"));globalThis.ReadableStream=Z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Qt=new TextDecoder("utf-8");let _=0;const J=N instanceof Uint8Array?N:new Uint8Array(N);return new ReadableStream({pull(Z){if(_>=J.byteLength)return void Z.close();const wt=J.subarray(_,Math.min(_+G,J.byteLength)),h=Qt.decode(wt,{stream:_+G<J.byteLength});Z.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(N){throw console.warn(`Error parsing sheet: '${$}'`,N),new Error(`Error parsing sheet: '${$}'`,{cause:N})}const qt=fe($,ut);let kt,Re=new Map;if(qt){const N="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;qt.forEach((_,J)=>{_.type===N&&(kt=ae(J,$,!1,ut)?.comments,kt&&kt.forEach(Z=>{Re.set(Z.id,Z)}))});const Qt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(qt.forEach((_,J)=>{_.type===Qt&&(G=ae(J,$,!1,ut))}),G||kt){const _=kt??[],J=G?.comments;if(J){const Z=G?.authors;for(let wt=0;wt<J.length;wt++){const h=J[wt];let Q=h.authorId!==void 0?Z[h.authorId]:void 0;if((!Q||Q.startsWith("tc="))&&(Q=cs(Q.substring(3)),Re.has(Q)))continue;let j=ce.get(Q);j||(j=Ve.get(Q)),j||(j={id:u.CommonUtils.uuidV4(),displayName:Q},Ve.set(j.displayName,j),ce.set(j.id,j)),Q=j?.id??null;const ue={id:u.CommonUtils.uuidV4(),personId:Q,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Pe.push(et())}else Xt=Y?is($,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),H.add(et),m.toResourceId(et)},yt):Ee($,ne,f,P,yt);return Xt},yt={paramMap:W,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:I=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const us=d.Strings??[];for(let I=0;I<me;I++)le.push(us[I]?.t??"");const Ie=new Map;let Oe=me;const ds=I=>{const z=Ie.get(I);if(z!==void 0)return z;const Y=Oe;return Ie.set(I,Oe++),le.push(I),Y},ce=(zt("richstructure",d,f,P,yt),zt("richdata",d,f,P,yt),new Map),Ve=new Map,Ne=zt("people",d,f,P);let Ct=null;if(Ne.size>0&&(Ct=Ne.entries().next()?.value?.[1]?.persons,Ct)){const I=Ct.length;for(let z=0;z<I;z++){const Y=Ct[z];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=zt("themes",d,f,P,yt);let Le=null;if(Te&&Te.entries){let I=Te.entries().next();I?.value?.[1]&&(Le=I.value[1])}const ps=new u.Theme(Le);let he=zt("styles",d,f,P,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.JSONStableStringify(he)));const gs=zt("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...gs.entries().next().value[1],styles:he,theme:ps.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const fs={...n,resources:y,json:ye},ms=new u.Workbook(fs);return H.forEach(I=>{I.deleteReference(V)}),m.endPersist(),ms}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.OutOfBoundsError&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./D52XNI-phrNzLrWS.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((D,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.NumberFormat.Type.General&&(f===u.NumberFormat.Type.ShortDate?f="m/d/yyyy":f===u.NumberFormat.Type.MediumDate?f="d-mmm-yy":f===u.NumberFormat.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.NumberFormat.Type.ShortTime?f="h:mm":f===u.NumberFormat.Type.MediumTime?f="h:mm AM/PM":f===u.NumberFormat.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(D!==null)switch(b.getType()){case u.ScalarType.Number:d.t="n",d.v=D;break;case u.ScalarType.String:d.t="s",d.v=D;break;case u.ScalarType.Boolean:d.t="b",d.v=D;break;case u.ScalarType.Error:d.t="e",d.v=D.toString();case u.ScalarType.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const D=[];T["!merges"]=D;for(let b=0;b<S.merges.length;b++)D.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const D=[];T["!cols"]=D;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=D.length;m<=f.min-1;m++)D.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)D.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=hs,exports.c=i=>i?Ke.Jt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=De,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=cs,exports.t=i=>i?Ke.Jt.roundAccurately(parseFloat(i)/12700,4):null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),j=require("react"),I=require("./B6gAUglt5G86WreY.cjs"),_t=I.PR(I.Tc());function qt(e){return(qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(e)}var Gu=/^\s+/,Ju=/\s+$/;function O(e,r){if(r=r||{},(e=e||"")instanceof O)return e;if(!(this instanceof O))return new O(e,r);var t,n,o,f,i,u,a,l,h,b,p,g=(i={r:0,g:0,b:0},u=1,a=null,l=null,h=null,b=!1,p=!1,typeof(t=e)=="string"&&(t=function(c){c=c.replace(Gu,"").replace(Ju,"").toLowerCase();var s,d=!1;if(It[c])c=It[c],d=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(s=N.rgb.exec(c))?{r:s[1],g:s[2],b:s[3]}:(s=N.rgba.exec(c))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=N.hsl.exec(c))?{h:s[1],s:s[2],l:s[3]}:(s=N.hsla.exec(c))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=N.hsv.exec(c))?{h:s[1],s:s[2],v:s[3]}:(s=N.hsva.exec(c))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=N.hex8.exec(c))?{r:$(s[1]),g:$(s[2]),b:$(s[3]),a:ve(s[4]),format:d?"name":"hex8"}:(s=N.hex6.exec(c))?{r:$(s[1]),g:$(s[2]),b:$(s[3]),format:d?"name":"hex"}:(s=N.hex4.exec(c))?{r:$(s[1]+""+s[1]),g:$(s[2]+""+s[2]),b:$(s[3]+""+s[3]),a:ve(s[4]+""+s[4]),format:d?"name":"hex8"}:!!(s=N.hex3.exec(c))&&{r:$(s[1]+""+s[1]),g:$(s[2]+""+s[2]),b:$(s[3]+""+s[3]),format:d?"name":"hex"}}(t)),qt(t)=="object"&&(Q(t.r)&&Q(t.g)&&Q(t.b)?(n=t.r,o=t.g,f=t.b,i={r:255*D(n,255),g:255*D(o,255),b:255*D(f,255)},b=!0,p=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Q(t.h)&&Q(t.s)&&Q(t.v)?(a=vt(t.s),l=vt(t.v),i=function(c,s,d){c=6*D(c,360),s=D(s,100),d=D(d,100);var v=Math.floor(c),y=c-v,_=d*(1-s),m=d*(1-y*s),w=d*(1-(1-y)*s),C=v%6;return{r:255*[d,m,_,_,w,d][C],g:255*[w,d,d,m,_,_][C],b:255*[_,_,w,d,d,m][C]}}(t.h,a,l),b=!0,p="hsv"):Q(t.h)&&Q(t.s)&&Q(t.l)&&(a=vt(t.s),h=vt(t.l),i=function(c,s,d){var v,y,_;function m(A,P,M){return M<0&&(M+=1),M>1&&(M-=1),M<1/6?A+6*(P-A)*M:M<.5?P:M<2/3?A+(P-A)*(2/3-M)*6:A}if(c=D(c,360),s=D(s,100),d=D(d,100),s===0)v=y=_=d;else{var w=d<.5?d*(1+s):d+s-d*s,C=2*d-w;v=m(C,w,c+1/3),y=m(C,w,c),_=m(C,w,c-1/3)}return{r:255*v,g:255*y,b:255*_}}(t.h,a,h),b=!0,p="hsl"),t.hasOwnProperty("a")&&(u=t.a)),u=xu(u),{ok:b,format:t.format||p,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:u});this._originalInput=e,this._r=g.r,this._g=g.g,this._b=g.b,this._a=g.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||g.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=g.ok}function le(e,r,t){e=D(e,255),r=D(r,255),t=D(t,255);var n,o,f=Math.max(e,r,t),i=Math.min(e,r,t),u=(f+i)/2;if(f==i)n=o=0;else{var a=f-i;switch(o=u>.5?a/(2-f-i):a/(f+i),f){case e:n=(r-t)/a+(r<t?6:0);break;case r:n=(t-e)/a+2;break;case t:n=(e-r)/a+4}n/=6}return{h:n,s:o,l:u}}function he(e,r,t){e=D(e,255),r=D(r,255),t=D(t,255);var n,o,f=Math.max(e,r,t),i=Math.min(e,r,t),u=f,a=f-i;if(o=f===0?0:a/f,f==i)n=0;else{switch(f){case e:n=(r-t)/a+(r<t?6:0);break;case r:n=(t-e)/a+2;break;case t:n=(e-r)/a+4}n/=6}return{h:n,s:o,v:u}}function pe(e,r,t,n){var o=[V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(t).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function de(e,r,t,n){return[V(ju(n)),V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(t).toString(16))].join("")}function Qu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s-=r/100,t.s=Tt(t.s),O(t)}function Zu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s+=r/100,t.s=Tt(t.s),O(t)}function ts(e){return O(e).desaturate(100)}function es(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l+=r/100,t.l=Tt(t.l),O(t)}function rs(e,r){r=r===0?0:r||10;var t=O(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-r/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-r/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-r/100*255))),O(t)}function ns(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l-=r/100,t.l=Tt(t.l),O(t)}function os(e,r){var t=O(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,O(t)}function as(e){var r=O(e).toHsl();return r.h=(r.h+180)%360,O(r)}function be(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=O(e).toHsl(),n=[O(e)],o=360/r,f=1;f<r;f++)n.push(O({h:(t.h+f*o)%360,s:t.s,l:t.l}));return n}function is(e){var r=O(e).toHsl(),t=r.h;return[O(e),O({h:(t+72)%360,s:r.s,l:r.l}),O({h:(t+216)%360,s:r.s,l:r.l})]}function us(e,r,t){r=r||6,t=t||30;var n=O(e).toHsl(),o=360/t,f=[O(e)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,f.push(O(n));return f}function ss(e,r){r=r||6;for(var t=O(e).toHsv(),n=t.h,o=t.s,f=t.v,i=[],u=1/r;r--;)i.push(O({h:n,s:o,v:f})),f=(f+u)%1;return i}O.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,t,n=this.toRgb();return e=n.r/255,r=n.g/255,t=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},setAlpha:function(e){return this._a=xu(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=he(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=he(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.v);return this._a==1?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=le(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=le(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.l);return this._a==1?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return pe(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return r=this._r,t=this._g,n=this._b,o=this._a,f=e,i=[V(Math.round(r).toString(16)),V(Math.round(t).toString(16)),V(Math.round(n).toString(16)),V(ju(o))],f&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("");var r,t,n,o,f,i},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*D(this._r,255))+"%",g:Math.round(100*D(this._g,255))+"%",b:Math.round(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*D(this._r,255))+"%, "+Math.round(100*D(this._g,255))+"%, "+Math.round(100*D(this._b,255))+"%)":"rgba("+Math.round(100*D(this._r,255))+"%, "+Math.round(100*D(this._g,255))+"%, "+Math.round(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(cs[pe(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+de(this._r,this._g,this._b,this._a),t=r,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=O(e);t="#"+de(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+t+")"},toString:function(e){var r=!!e;e=e||this._format;var t=!1,n=this._a<1&&this._a>=0;return r||!n||e!=="hex"&&e!=="hex6"&&e!=="hex3"&&e!=="hex4"&&e!=="hex8"&&e!=="name"?(e==="rgb"&&(t=this.toRgbString()),e==="prgb"&&(t=this.toPercentageRgbString()),e!=="hex"&&e!=="hex6"||(t=this.toHexString()),e==="hex3"&&(t=this.toHexString(!0)),e==="hex4"&&(t=this.toHex8String(!0)),e==="hex8"&&(t=this.toHex8String()),e==="name"&&(t=this.toName()),e==="hsl"&&(t=this.toHslString()),e==="hsv"&&(t=this.toHsvString()),t||this.toHexString()):e==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return O(this.toString())},_applyModification:function(e,r){var t=e.apply(null,[this].concat([].slice.call(r)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(es,arguments)},brighten:function(){return this._applyModification(rs,arguments)},darken:function(){return this._applyModification(ns,arguments)},desaturate:function(){return this._applyModification(Qu,arguments)},saturate:function(){return this._applyModification(Zu,arguments)},greyscale:function(){return this._applyModification(ts,arguments)},spin:function(){return this._applyModification(os,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(us,arguments)},complement:function(){return this._applyCombination(as,arguments)},monochromatic:function(){return this._applyCombination(ss,arguments)},splitcomplement:function(){return this._applyCombination(is,arguments)},triad:function(){return this._applyCombination(be,[3])},tetrad:function(){return this._applyCombination(be,[4])}},O.fromRatio=function(e,r){if(qt(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=n==="a"?e[n]:vt(e[n]));e=t}return O(e,r)},O.equals=function(e,r){return!(!e||!r)&&O(e).toRgbString()==O(r).toRgbString()},O.random=function(){return O.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},O.mix=function(e,r,t){t=t===0?0:t||50;var n=O(e).toRgb(),o=O(r).toRgb(),f=t/100;return O({r:(o.r-n.r)*f+n.r,g:(o.g-n.g)*f+n.g,b:(o.b-n.b)*f+n.b,a:(o.a-n.a)*f+n.a})},O.readability=function(e,r){var t=O(e),n=O(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},O.isReadable=function(e,r,t){var n,o,f,i,u,a=O.readability(e,r);switch(o=!1,(f=t,(i=((f=f||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&i!=="AAA"&&(i="AA"),(u=(f.size||"small").toLowerCase())!=="small"&&u!=="large"&&(u="small"),n={level:i,size:u}).level+n.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},O.mostReadable=function(e,r,t){var n,o,f,i,u=null,a=0;o=(t=t||{}).includeFallbackColors,f=t.level,i=t.size;for(var l=0;l<r.length;l++)(n=O.readability(e,r[l]))>a&&(a=n,u=O(r[l]));return O.isReadable(e,u,{level:f,size:i})||!o?u:(t.includeFallbackColors=!1,O.mostReadable(e,["#fff","#000"],t))};var It=O.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},cs=O.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(It);function xu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,r){var t;typeof(t=e)=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1&&(e="100%");var n=function(o){return typeof o=="string"&&o.indexOf("%")!=-1}(e);return e=Math.min(r,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function Tt(e){return Math.min(1,Math.max(0,e))}function $(e){return parseInt(e,16)}function V(e){return e.length==1?"0"+e:""+e}function vt(e){return e<=1&&(e=100*e+"%"),e}function ju(e){return Math.round(255*parseFloat(e)).toString(16)}function ve(e){return $(e)/255}var et,wt,xt,N=(wt="[\\s|\\(]+("+(et="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?",xt="[\\s|\\(]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?",{CSS_UNIT:new RegExp(et),rgb:new RegExp("rgb"+wt),rgba:new RegExp("rgba"+xt),hsl:new RegExp("hsl"+wt),hsla:new RegExp("hsla"+xt),hsv:new RegExp("hsv"+wt),hsva:new RegExp("hsva"+xt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(e){return!!N.CSS_UNIT.exec(e)}var ge,ye,me,_e,we,xe,je,Oe,Me,Se,ke,Ae,Ce,Ee,Re,Pe,Te,Le,Ue,Fe,De,Be,ze,He,We,$e,Ne,Ie,W={},ut={};function Ou(){if(ye)return ge;ye=1;var e=typeof I.Sa=="object"&&I.Sa&&I.Sa.Object===Object&&I.Sa;return ge=e}function K(){if(_e)return me;_e=1;var e=Ou(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return me=t}function gt(){if(xe)return we;xe=1;var e=K().Symbol;return we=e}function nt(){if(Ae)return ke;Ae=1;var e=gt(),r=function(){if(Oe)return je;Oe=1;var o=gt(),f=Object.prototype,i=f.hasOwnProperty,u=f.toString,a=o?o.toStringTag:void 0;return je=function(l){var h=i.call(l,a),b=l[a];try{l[a]=void 0;var p=!0}catch{}var g=u.call(l);return p&&(h?l[a]=b:delete l[a]),g}}(),t=function(){if(Se)return Me;Se=1;var o=Object.prototype.toString;return Me=function(f){return o.call(f)}}(),n=e?e.toStringTag:void 0;return ke=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":n&&n in Object(o)?r(o):t(o)}}function X(){if(Ee)return Ce;Ee=1;var e=Array.isArray;return Ce=e}function Z(){return Pe?Re:(Pe=1,Re=function(e){return e!=null&&typeof e=="object"})}function Mu(){if(Ie)return Ne;Ie=1;var e=function(){if($e)return We;$e=1;var i=nt(),u=Z();return We=function(a){return u(a)&&i(a)=="[object Arguments]"}}(),r=Z(),t=Object.prototype,n=t.hasOwnProperty,o=t.propertyIsEnumerable,f=e(function(){return arguments}())?e:function(i){return r(i)&&n.call(i,"callee")&&!o.call(i,"callee")};return Ne=f}var Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,tr,er,Lt={exports:{}};function Kt(){return Ye||(Ye=1,e=Lt,r=Lt.exports,t=K(),n=Xe?Ve:(Xe=1,Ve=function(){return!1}),o=r&&!r.nodeType&&r,f=o&&e&&!e.nodeType&&e,i=f&&f.exports===o?t.Buffer:void 0,u=(i?i.isBuffer:void 0)||n,e.exports=u),Lt.exports;var e,r,t,n,o,f,i,u}function Su(){if(Ke)return qe;Ke=1;var e=/^(?:0|[1-9]\d*)$/;return qe=function(r,t){var n=typeof r;return!!(t=t??9007199254740991)&&(n=="number"||n!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<t}}function Gt(){return Je?Ge:(Je=1,Ge=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991})}function Vt(){return er?tr:(er=1,tr=function(e){return function(r){return e(r)}})}var rr,nr,or,ar,ir,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,_r,wr,xr,jr,Or,Mr,Sr,kr,Ar,Cr,Er,Rr,Pr,Tr,Lr,Ur,Fr,Dr,Br,zr,Hr,Wr,$r,Nr,Ir,Vr,Xr,Yr,qr,Kr,Gr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,_n,wn,xn,jn,On,Mn,Sn,kn,An,Cn,En,Rn,Pn,Tn,Ln,Un,Fn,Dn,Bn,zn,Hn,Wn,$n,Nn,In,Vn,Xn,Yn,qn,Kn,Gn,Jn,Qn,Zn,to,eo,ro,no,oo,ao,io,uo,so,co,fo,lo,ho,po,bo,vo,go,yo,mo,_o,wo,xo,jo,Oo,Mo,So,ko,Ao,Co,Eo,Ro,Po,To,Lo,Uo,Fo,Do,Bo,zo,Ho,Wo,$o,No,Io,Vo,Xo,Yo,qo,Ko,Go,Jo,Qo,Zo,ta,ea,ra,na,oa,aa,ia,ua,sa,ca,fa,la,ha,pa,da,ba,va,ga,ya,ma,_a,wa,xa,ja,Oa,Ma,Sa,ka,Aa,Ca,Ea,Ra,Pa,Ta,La,Ua,Fa,Da,Ba,za,Ha,Wa,$a,Na,Ia,Va,Xa,Ya,qa,Ka,Ga,Ja,Qa,Za,Ut={exports:{}};function Xt(){return rr||(rr=1,e=Ut,r=Ut.exports,t=Ou(),n=r&&!r.nodeType&&r,o=n&&e&&!e.nodeType&&e,f=o&&o.exports===n&&t.process,i=function(){try{return o&&o.require&&o.require("util").types||f&&f.binding&&f.binding("util")}catch{}}(),e.exports=i),Ut.exports;var e,r,t,n,o,f,i}function ku(){if(or)return nr;or=1;var e=function(){if(Ze)return Qe;Ze=1;var f=nt(),i=Gt(),u=Z(),a={};return a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,Qe=function(l){return u(l)&&i(l.length)&&!!a[f(l)]}}(),r=Vt(),t=Xt(),n=t&&t.isTypedArray,o=n?r(n):e;return nr=o}function Au(){if(ir)return ar;ir=1;var e=He?ze:(He=1,ze=function(u,a){for(var l=-1,h=Array(u);++l<u;)h[l]=a(l);return h}),r=Mu(),t=X(),n=Kt(),o=Su(),f=ku(),i=Object.prototype.hasOwnProperty;return ar=function(u,a){var l=t(u),h=!l&&r(u),b=!l&&!h&&n(u),p=!l&&!h&&!b&&f(u),g=l||h||b||p,c=g?e(u.length,String):[],s=c.length;for(var d in u)!a&&!i.call(u,d)||g&&(d=="length"||b&&(d=="offset"||d=="parent")||p&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||o(d,s))||c.push(d);return c}}function Jt(){if(sr)return ur;sr=1;var e=Object.prototype;return ur=function(r){var t=r&&r.constructor;return r===(typeof t=="function"&&t.prototype||e)}}function Cu(){return fr?cr:(fr=1,cr=function(e,r){return function(t){return e(r(t))}})}function ht(){return vr?br:(vr=1,br=function(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")})}function Eu(){if(yr)return gr;yr=1;var e=nt(),r=ht();return gr=function(t){if(!r(t))return!1;var n=e(t);return n=="[object Function]"||n=="[object GeneratorFunction]"||n=="[object AsyncFunction]"||n=="[object Proxy]"}}function Ct(){if(_r)return mr;_r=1;var e=Eu(),r=Gt();return mr=function(t){return t!=null&&r(t.length)&&!e(t)}}function yt(){if(xr)return wr;xr=1;var e=Au(),r=function(){if(dr)return pr;dr=1;var n=Jt(),o=function(){if(hr)return lr;hr=1;var i=Cu()(Object.keys,Object);return lr=i}(),f=Object.prototype.hasOwnProperty;return pr=function(i){if(!n(i))return o(i);var u=[];for(var a in Object(i))f.call(i,a)&&a!="constructor"&&u.push(a);return u}}(),t=Ct();return wr=function(n){return t(n)?e(n):r(n)}}function Ru(){if(Or)return jr;Or=1;var e=function(){if(Be)return De;Be=1;var t=(Fe?Ue:(Fe=1,Ue=function(n){return function(o,f,i){for(var u=-1,a=Object(o),l=i(o),h=l.length;h--;){var b=l[n?h:++u];if(f(a[b],b,a)===!1)break}return o}}))();return De=t}(),r=yt();return jr=function(t,n){return t&&e(t,n,r)}}function Pu(){return Sr?Mr:(Sr=1,Mr=function(e){return e})}function Ft(){if(Er)return Cr;Er=1;var e=Ru(),r=function(){if(Ar)return kr;Ar=1;var t=Pu();return kr=function(n){return typeof n=="function"?n:t}}();return Cr=function(t,n){return t&&e(t,r(n))}}function Qt(){if(Pr)return Rr;Pr=1;var e=Cu()(Object.getPrototypeOf,Object);return Rr=e}function Tu(){return Fr?Ur:(Fr=1,Ur=function(e,r){for(var t=-1,n=e==null?0:e.length,o=Array(n);++t<n;)o[t]=r(e[t],t,e);return o})}function Zt(){return Hr?zr:(Hr=1,zr=function(e,r){return e===r||e!=e&&r!=r})}function jt(){if($r)return Wr;$r=1;var e=Zt();return Wr=function(r,t){for(var n=r.length;n--;)if(e(r[n][0],t))return n;return-1}}function kt(){if(Qr)return Jr;Qr=1;var e=Br?Dr:(Br=1,Dr=function(){this.__data__=[],this.size=0}),r=function(){if(Ir)return Nr;Ir=1;var i=jt(),u=Array.prototype.splice;return Nr=function(a){var l=this.__data__,h=i(l,a);return!(h<0||(h==l.length-1?l.pop():u.call(l,h,1),--this.size,0))}}(),t=function(){if(Xr)return Vr;Xr=1;var i=jt();return Vr=function(u){var a=this.__data__,l=i(a,u);return l<0?void 0:a[l][1]}}(),n=function(){if(qr)return Yr;qr=1;var i=jt();return Yr=function(u){return i(this.__data__,u)>-1}}(),o=function(){if(Gr)return Kr;Gr=1;var i=jt();return Kr=function(u,a){var l=this.__data__,h=i(l,u);return h<0?(++this.size,l.push([u,a])):l[h][1]=a,this}}();function f(i){var u=-1,a=i==null?0:i.length;for(this.clear();++u<a;){var l=i[u];this.set(l[0],l[1])}}return f.prototype.clear=e,f.prototype.delete=r,f.prototype.get=t,f.prototype.has=n,f.prototype.set=o,Jr=f}function Lu(){if(pn)return hn;pn=1;var e=Function.prototype.toString;return hn=function(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}}function rt(){if(mn)return yn;mn=1;var e=function(){if(bn)return dn;bn=1;var t=Eu(),n=function(){if(ln)return fn;ln=1;var p,g=function(){if(cn)return sn;cn=1;var s=K()["__core-js_shared__"];return sn=s}(),c=(p=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"";return fn=function(s){return!!c&&c in s}}(),o=ht(),f=Lu(),i=/^\[object .+?Constructor\]$/,u=Function.prototype,a=Object.prototype,l=u.toString,h=a.hasOwnProperty,b=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return dn=function(p){return!(!o(p)||n(p))&&(t(p)?b:i).test(f(p))}}(),r=gn?vn:(gn=1,vn=function(t,n){return t?.[n]});return yn=function(t,n){var o=r(t,n);return e(o)?o:void 0}}function te(){if(wn)return _n;wn=1;var e=rt()(K(),"Map");return _n=e}function Ot(){if(jn)return xn;jn=1;var e=rt()(Object,"create");return xn=e}function Mt(){if(Wn)return Hn;Wn=1;var e=zn?Bn:(zn=1,Bn=function(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null});return Hn=function(r,t){var n=r.__data__;return e(t)?n[typeof t=="string"?"string":"hash"]:n.map}}function ee(){if(Jn)return Gn;Jn=1;var e=function(){if(Dn)return Fn;Dn=1;var i=function(){if(Un)return Ln;Un=1;var l=function(){if(Mn)return On;Mn=1;var s=Ot();return On=function(){this.__data__=s?s(null):{},this.size=0}}(),h=kn?Sn:(kn=1,Sn=function(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}),b=function(){if(Cn)return An;Cn=1;var s=Ot(),d=Object.prototype.hasOwnProperty;return An=function(v){var y=this.__data__;if(s){var _=y[v];return _==="__lodash_hash_undefined__"?void 0:_}return d.call(y,v)?y[v]:void 0}}(),p=function(){if(Rn)return En;Rn=1;var s=Ot(),d=Object.prototype.hasOwnProperty;return En=function(v){var y=this.__data__;return s?y[v]!==void 0:d.call(y,v)}}(),g=function(){if(Tn)return Pn;Tn=1;var s=Ot();return Pn=function(d,v){var y=this.__data__;return this.size+=this.has(d)?0:1,y[d]=s&&v===void 0?"__lodash_hash_undefined__":v,this}}();function c(s){var d=-1,v=s==null?0:s.length;for(this.clear();++d<v;){var y=s[d];this.set(y[0],y[1])}}return c.prototype.clear=l,c.prototype.delete=h,c.prototype.get=b,c.prototype.has=p,c.prototype.set=g,Ln=c}(),u=kt(),a=te();return Fn=function(){this.size=0,this.__data__={hash:new i,map:new(a||u),string:new i}}}(),r=function(){if(Nn)return $n;Nn=1;var i=Mt();return $n=function(u){var a=i(this,u).delete(u);return this.size-=a?1:0,a}}(),t=function(){if(Vn)return In;Vn=1;var i=Mt();return In=function(u){return i(this,u).get(u)}}(),n=function(){if(Yn)return Xn;Yn=1;var i=Mt();return Xn=function(u){return i(this,u).has(u)}}(),o=function(){if(Kn)return qn;Kn=1;var i=Mt();return qn=function(u,a){var l=i(this,u),h=l.size;return l.set(u,a),this.size+=l.size==h?0:1,this}}();function f(i){var u=-1,a=i==null?0:i.length;for(this.clear();++u<a;){var l=i[u];this.set(l[0],l[1])}}return f.prototype.clear=e,f.prototype.delete=r,f.prototype.get=t,f.prototype.has=n,f.prototype.set=o,Gn=f}function re(){if(eo)return to;eo=1;var e=kt(),r=function(){if(tn)return Zr;tn=1;var u=kt();return Zr=function(){this.__data__=new u,this.size=0}}(),t=rn?en:(rn=1,en=function(u){var a=this.__data__,l=a.delete(u);return this.size=a.size,l}),n=on?nn:(on=1,nn=function(u){return this.__data__.get(u)}),o=un?an:(un=1,an=function(u){return this.__data__.has(u)}),f=function(){if(Zn)return Qn;Zn=1;var u=kt(),a=te(),l=ee();return Qn=function(h,b){var p=this.__data__;if(p instanceof u){var g=p.__data__;if(!a||g.length<199)return g.push([h,b]),this.size=++p.size,this;p=this.__data__=new l(g)}return p.set(h,b),this.size=p.size,this}}();function i(u){var a=this.__data__=new e(u);this.size=a.size}return i.prototype.clear=r,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=o,i.prototype.set=f,to=i}function ti(){if(po)return ho;po=1;var e=function(){if(uo)return io;uo=1;var n=ee(),o=no?ro:(no=1,ro=function(u){return this.__data__.set(u,"__lodash_hash_undefined__"),this}),f=ao?oo:(ao=1,oo=function(u){return this.__data__.has(u)});function i(u){var a=-1,l=u==null?0:u.length;for(this.__data__=new n;++a<l;)this.add(u[a])}return i.prototype.add=i.prototype.push=o,i.prototype.has=f,io=i}(),r=co?so:(co=1,so=function(n,o){for(var f=-1,i=n==null?0:n.length;++f<i;)if(o(n[f],f,n))return!0;return!1}),t=lo?fo:(lo=1,fo=function(n,o){return n.has(o)});return ho=function(n,o,f,i,u,a){var l=1&f,h=n.length,b=o.length;if(h!=b&&!(l&&b>h))return!1;var p=a.get(n),g=a.get(o);if(p&&g)return p==o&&g==n;var c=-1,s=!0,d=2&f?new e:void 0;for(a.set(n,o),a.set(o,n);++c<h;){var v=n[c],y=o[c];if(i)var _=l?i(y,v,c,o,n,a):i(v,y,c,n,o,a);if(_!==void 0){if(_)continue;s=!1;break}if(d){if(!r(o,function(m,w){if(!t(d,w)&&(v===m||u(v,m,f,i,a)))return d.push(w)})){s=!1;break}}else if(v!==y&&!u(v,y,f,i,a)){s=!1;break}}return a.delete(n),a.delete(o),s}}function Uu(){if(vo)return bo;vo=1;var e=K().Uint8Array;return bo=e}function Fu(){return Oo?jo:(Oo=1,jo=function(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e})}function Du(){if(So)return Mo;So=1;var e=Fu(),r=X();return Mo=function(t,n,o){var f=n(t);return r(t)?f:e(f,o(t))}}function Bu(){return Eo?Co:(Eo=1,Co=function(){return[]})}function ne(){if(Po)return Ro;Po=1;var e=Ao?ko:(Ao=1,ko=function(o,f){for(var i=-1,u=o==null?0:o.length,a=0,l=[];++i<u;){var h=o[i];f(h,i,o)&&(l[a++]=h)}return l}),r=Bu(),t=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return Ro=n?function(o){return o==null?[]:(o=Object(o),e(n(o),function(f){return t.call(o,f)}))}:r}function zu(){if(Lo)return To;Lo=1;var e=Du(),r=ne(),t=yt();return To=function(n){return e(n,t,r)}}function At(){if(Xo)return Vo;Xo=1;var e=function(){if(Bo)return Do;Bo=1;var y=rt()(K(),"DataView");return Do=y}(),r=te(),t=function(){if(Ho)return zo;Ho=1;var y=rt()(K(),"Promise");return zo=y}(),n=function(){if($o)return Wo;$o=1;var y=rt()(K(),"Set");return Wo=y}(),o=function(){if(Io)return No;Io=1;var y=rt()(K(),"WeakMap");return No=y}(),f=nt(),i=Lu(),u="[object Map]",a="[object Promise]",l="[object Set]",h="[object WeakMap]",b="[object DataView]",p=i(e),g=i(r),c=i(t),s=i(n),d=i(o),v=f;return(e&&v(new e(new ArrayBuffer(1)))!=b||r&&v(new r)!=u||t&&v(t.resolve())!=a||n&&v(new n)!=l||o&&v(new o)!=h)&&(v=function(y){var _=f(y),m=_=="[object Object]"?y.constructor:void 0,w=m?i(m):"";if(w)switch(w){case p:return b;case g:return u;case c:return a;case s:return l;case d:return h}return _}),Vo=v}function fs(){if(qo)return Yo;qo=1;var e=re(),r=ti(),t=function(){if(xo)return wo;xo=1;var p=gt(),g=Uu(),c=Zt(),s=ti(),d=yo?go:(yo=1,go=function(m){var w=-1,C=Array(m.size);return m.forEach(function(A,P){C[++w]=[P,A]}),C}),v=_o?mo:(_o=1,mo=function(m){var w=-1,C=Array(m.size);return m.forEach(function(A){C[++w]=A}),C}),y=p?p.prototype:void 0,_=y?y.valueOf:void 0;return wo=function(m,w,C,A,P,M,F){switch(C){case"[object DataView]":if(m.byteLength!=w.byteLength||m.byteOffset!=w.byteOffset)return!1;m=m.buffer,w=w.buffer;case"[object ArrayBuffer]":return!(m.byteLength!=w.byteLength||!M(new g(m),new g(w)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+m,+w);case"[object Error]":return m.name==w.name&&m.message==w.message;case"[object RegExp]":case"[object String]":return m==w+"";case"[object Map]":var B=d;case"[object Set]":var G=1&A;if(B||(B=v),m.size!=w.size&&!G)return!1;var Y=F.get(m);if(Y)return Y==w;A|=2,F.set(m,w);var J=s(B(m),B(w),A,P,M,F);return F.delete(m),J;case"[object Symbol]":if(_)return _.call(m)==_.call(w)}return!1}}(),n=function(){if(Fo)return Uo;Fo=1;var p=zu(),g=Object.prototype.hasOwnProperty;return Uo=function(c,s,d,v,y,_){var m=1&d,w=p(c),C=w.length;if(C!=p(s).length&&!m)return!1;for(var A=C;A--;){var P=w[A];if(!(m?P in s:g.call(s,P)))return!1}var M=_.get(c),F=_.get(s);if(M&&F)return M==s&&F==c;var B=!0;_.set(c,s),_.set(s,c);for(var G=m;++A<C;){var Y=c[P=w[A]],J=s[P];if(v)var pt=m?v(J,Y,P,s,c,_):v(Y,J,P,c,s,_);if(!(pt===void 0?Y===J||y(Y,J,d,v,_):pt)){B=!1;break}G||(G=P=="constructor")}if(B&&!G){var L=c.constructor,E=s.constructor;L==E||!("constructor"in c)||!("constructor"in s)||typeof L=="function"&&L instanceof L&&typeof E=="function"&&E instanceof E||(B=!1)}return _.delete(c),_.delete(s),B}}(),o=At(),f=X(),i=Kt(),u=ku(),a="[object Arguments]",l="[object Array]",h="[object Object]",b=Object.prototype.hasOwnProperty;return Yo=function(p,g,c,s,d,v){var y=f(p),_=f(g),m=y?l:o(p),w=_?l:o(g),C=(m=m==a?h:m)==h,A=(w=w==a?h:w)==h,P=m==w;if(P&&i(p)){if(!i(g))return!1;y=!0,C=!1}if(P&&!C)return v||(v=new e),y||u(p)?r(p,g,c,s,d,v):t(p,g,m,c,s,d,v);if(!(1&c)){var M=C&&b.call(p,"__wrapped__"),F=A&&b.call(g,"__wrapped__");if(M||F){var B=M?p.value():p,G=F?g.value():g;return v||(v=new e),d(B,G,c,s,v)}}return!!P&&(v||(v=new e),n(p,g,c,s,d,v))}}function Hu(){if(Go)return Ko;Go=1;var e=fs(),r=Z();return Ko=function t(n,o,f,i,u){return n===o||(n==null||o==null||!r(n)&&!r(o)?n!=n&&o!=o:e(n,o,f,i,t,u))}}function Wu(){if(ta)return Zo;ta=1;var e=ht();return Zo=function(r){return r==r&&!e(r)}}function $u(){return oa?na:(oa=1,na=function(e,r){return function(t){return t!=null&&t[e]===r&&(r!==void 0||e in Object(t))}})}function oe(){if(sa)return ua;sa=1;var e=nt(),r=Z();return ua=function(t){return typeof t=="symbol"||r(t)&&e(t)=="[object Symbol]"}}function ae(){if(fa)return ca;fa=1;var e=X(),r=oe(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return ca=function(o,f){if(e(o))return!1;var i=typeof o;return!(i!="number"&&i!="symbol"&&i!="boolean"&&o!=null&&!r(o))||n.test(o)||!t.test(o)||f!=null&&o in Object(f)}}function Nu(){if(xa)return wa;xa=1;var e=X(),r=ae(),t=function(){if(va)return ba;va=1;var o=function(){if(da)return pa;da=1;var a=function(){if(ha)return la;ha=1;var l=ee();function h(b,p){if(typeof b!="function"||p!=null&&typeof p!="function")throw new TypeError("Expected a function");var g=function(){var c=arguments,s=p?p.apply(this,c):c[0],d=g.cache;if(d.has(s))return d.get(s);var v=b.apply(this,c);return g.cache=d.set(s,v)||d,v};return g.cache=new(h.Cache||l),g}return h.Cache=l,la=h}();return pa=function(l){var h=a(l,function(p){return b.size===500&&b.clear(),p}),b=h.cache;return h}}(),f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=o(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(f,function(h,b,p,g){l.push(p?g.replace(i,"$1"):b||h)}),l});return ba=u}(),n=function(){if(_a)return ma;_a=1;var o=function(){if(ya)return ga;ya=1;var f=gt(),i=Tu(),u=X(),a=oe(),l=f?f.prototype:void 0,h=l?l.toString:void 0;return ga=function b(p){if(typeof p=="string")return p;if(u(p))return i(p,b)+"";if(a(p))return h?h.call(p):"";var g=p+"";return g=="0"&&1/p==-1/0?"-0":g}}();return ma=function(f){return f==null?"":o(f)}}();return wa=function(o,f){return e(o)?o:r(o,f)?[o]:t(n(o))}}function Et(){if(Oa)return ja;Oa=1;var e=oe();return ja=function(r){if(typeof r=="string"||e(r))return r;var t=r+"";return t=="0"&&1/r==-1/0?"-0":t}}function Iu(){if(Sa)return Ma;Sa=1;var e=Nu(),r=Et();return Ma=function(t,n){for(var o=0,f=(n=e(n,t)).length;t!=null&&o<f;)t=t[r(n[o++])];return o&&o==f?t:void 0}}function ls(){if(Fa)return Ua;Fa=1;var e=Hu(),r=function(){if(Aa)return ka;Aa=1;var u=Iu();return ka=function(a,l,h){var b=a==null?void 0:u(a,l);return b===void 0?h:b}}(),t=function(){if(La)return Ta;La=1;var u=Ea?Ca:(Ea=1,Ca=function(l,h){return l!=null&&h in Object(l)}),a=function(){if(Pa)return Ra;Pa=1;var l=Nu(),h=Mu(),b=X(),p=Su(),g=Gt(),c=Et();return Ra=function(s,d,v){for(var y=-1,_=(d=l(d,s)).length,m=!1;++y<_;){var w=c(d[y]);if(!(m=s!=null&&v(s,w)))break;s=s[w]}return m||++y!=_?m:!!(_=s==null?0:s.length)&&g(_)&&p(w,_)&&(b(s)||h(s))}}();return Ta=function(l,h){return l!=null&&a(l,h,u)}}(),n=ae(),o=Wu(),f=$u(),i=Et();return Ua=function(u,a){return n(u)&&o(a)?f(i(u),a):function(l){var h=r(l,u);return h===void 0&&h===a?t(l,u):e(a,h,3)}}}function hs(){if(Qa)return Ja;Qa=1;var e=Tu(),r=function(){if(Ia)return Na;Ia=1;var o=function(){if(ia)return aa;ia=1;var l=function(){if(Qo)return Jo;Qo=1;var p=re(),g=Hu();return Jo=function(c,s,d,v){var y=d.length,_=y,m=!v;if(c==null)return!_;for(c=Object(c);y--;){var w=d[y];if(m&&w[2]?w[1]!==c[w[0]]:!(w[0]in c))return!1}for(;++y<_;){var C=(w=d[y])[0],A=c[C],P=w[1];if(m&&w[2]){if(A===void 0&&!(C in c))return!1}else{var M=new p;if(v)var F=v(A,P,C,c,s,M);if(!(F===void 0?g(P,A,3,v,M):F))return!1}}return!0}}(),h=function(){if(ra)return ea;ra=1;var p=Wu(),g=yt();return ea=function(c){for(var s=g(c),d=s.length;d--;){var v=s[d],y=c[v];s[d]=[v,y,p(y)]}return s}}(),b=$u();return aa=function(p){var g=h(p);return g.length==1&&g[0][2]?b(g[0][0],g[0][1]):function(c){return c===p||l(c,p,g)}}}(),f=ls(),i=Pu(),u=X(),a=function(){if($a)return Wa;$a=1;var l=Ba?Da:(Ba=1,Da=function(g){return function(c){return c?.[g]}}),h=function(){if(Ha)return za;Ha=1;var g=Iu();return za=function(c){return function(s){return g(s,c)}}}(),b=ae(),p=Et();return Wa=function(g){return b(g)?l(p(g)):h(g)}}();return Na=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?u(l)?f(l[0],l[1]):o(l):a(l)}}(),t=function(){if(Ga)return Ka;Ga=1;var o=function(){if(qa)return Ya;qa=1;var i=Ru(),u=function(){if(Xa)return Va;Xa=1;var a=Ct();return Va=function(l,h){return function(b,p){if(b==null)return b;if(!a(b))return l(b,p);for(var g=b.length,c=h?g:-1,s=Object(b);(h?c--:++c<g)&&p(s[c],c,s)!==!1;);return b}}}()(i);return Ya=u}(),f=Ct();return Ka=function(i,u){var a=-1,l=f(i)?Array(i.length):[];return o(i,function(h,b,p){l[++a]=u(h,b,p)}),l}}(),n=X();return Ja=function(o,f){return(n(o)?e:t)(o,r(f,3))}}var ei,ri,ni,oi,ai,ii,ui,si,ci,fi,li,hi,pi,di,bi,vi,gi,yi,mi,_i,st={};function Vu(){if(ii)return ai;ii=1;var e=function(){if(oi)return ni;oi=1;var r=rt(),t=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}}();return ni=t}();return ai=function(r,t,n){t=="__proto__"&&e?e(r,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[t]=n}}function Xu(){if(si)return ui;si=1;var e=Vu(),r=Zt(),t=Object.prototype.hasOwnProperty;return ui=function(n,o,f){var i=n[o];t.call(n,o)&&r(i,f)&&(f!==void 0||o in n)||e(n,o,f)}}function St(){if(fi)return ci;fi=1;var e=Xu(),r=Vu();return ci=function(t,n,o,f){var i=!o;o||(o={});for(var u=-1,a=n.length;++u<a;){var l=n[u],h=f?f(o[l],t[l],l,o,t):void 0;h===void 0&&(h=t[l]),i?r(o,l,h):e(o,l,h)}return o}}function Dt(){if(yi)return gi;yi=1;var e=Au(),r=function(){if(vi)return bi;vi=1;var n=ht(),o=Jt(),f=di?pi:(di=1,pi=function(u){var a=[];if(u!=null)for(var l in Object(u))a.push(l);return a}),i=Object.prototype.hasOwnProperty;return bi=function(u){if(!n(u))return f(u);var a=o(u),l=[];for(var h in u)(h!="constructor"||!a&&i.call(u,h))&&l.push(h);return l}}(),t=Ct();return gi=function(n){return t(n)?e(n,!0):r(n)}}var wi,xi,ji,Oi,Mi,Si,ki,Ai,Ci,Ei,Ri,Pi,Ti,Li,Ui,Fi,Di,Bi,zi,Hi,Wi,$i,Ni,Ii,Vi,Xi,Yi,qi,Ki,Gi,Ji,Qi,Zi,tu,eu,ru,nu,Bt,ou,au,iu,uu,zt={exports:{}};function su(){if(ki)return Si;ki=1;var e=Fu(),r=Qt(),t=ne(),n=Bu(),o=Object.getOwnPropertySymbols;return Si=o?function(f){for(var i=[];f;)e(i,t(f)),f=r(f);return i}:n}function Ht(){if(Ui)return Li;Ui=1;var e=Uu();return Li=function(r){var t=new r.constructor(r.byteLength);return new e(t).set(new e(r)),t}}function ps(){if(ou)return Bt;ou=1;var e,r,t,n,o,f,i,u=re(),a=ri?ei:(ri=1,ei=function(E,x){for(var S=-1,k=E==null?0:E.length;++S<k&&x(E[S],S,E)!==!1;);return E}),l=Xu(),h=function(){if(hi)return li;hi=1;var E=St(),x=yt();return li=function(S,k){return S&&E(k,x(k),S)}}(),b=function(){if(_i)return mi;_i=1;var E=St(),x=Dt();return mi=function(S,k){return S&&E(k,x(k),S)}}(),p=(wi||(wi=1,e=zt,r=zt.exports,t=K(),n=r&&!r.nodeType&&r,o=n&&e&&!e.nodeType&&e,f=o&&o.exports===n?t.Buffer:void 0,i=f?f.allocUnsafe:void 0,e.exports=function(E,x){if(x)return E.slice();var S=E.length,k=i?i(S):new E.constructor(S);return E.copy(k),k}),zt.exports),g=ji?xi:(ji=1,xi=function(E,x){var S=-1,k=E.length;for(x||(x=Array(k));++S<k;)x[S]=E[S];return x}),c=function(){if(Mi)return Oi;Mi=1;var E=St(),x=ne();return Oi=function(S,k){return E(S,x(S),k)}}(),s=function(){if(Ci)return Ai;Ci=1;var E=St(),x=su();return Ai=function(S,k){return E(S,x(S),k)}}(),d=zu(),v=function(){if(Ri)return Ei;Ri=1;var E=Du(),x=su(),S=Dt();return Ei=function(k){return E(k,S,x)}}(),y=At(),_=function(){if(Ti)return Pi;Ti=1;var E=Object.prototype.hasOwnProperty;return Pi=function(x){var S=x.length,k=new x.constructor(S);return S&&typeof x[0]=="string"&&E.call(x,"index")&&(k.index=x.index,k.input=x.input),k}}(),m=function(){if(Vi)return Ii;Vi=1;var E=Ht(),x=function(){if(Di)return Fi;Di=1;var U=Ht();return Fi=function(R,T){var H=T?U(R.buffer):R.buffer;return new R.constructor(H,R.byteOffset,R.byteLength)}}(),S=function(){if(zi)return Bi;zi=1;var U=/\w*$/;return Bi=function(R){var T=new R.constructor(R.source,U.exec(R));return T.lastIndex=R.lastIndex,T}}(),k=function(){if(Wi)return Hi;Wi=1;var U=gt(),R=U?U.prototype:void 0,T=R?R.valueOf:void 0;return Hi=function(H){return T?Object(T.call(H)):{}}}(),q=function(){if(Ni)return $i;Ni=1;var U=Ht();return $i=function(R,T){var H=T?U(R.buffer):R.buffer;return new R.constructor(H,R.byteOffset,R.length)}}();return Ii=function(U,R,T){var H=U.constructor;switch(R){case"[object ArrayBuffer]":return E(U);case"[object Boolean]":case"[object Date]":return new H(+U);case"[object DataView]":return x(U,T);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return q(U,T);case"[object Map]":case"[object Set]":return new H;case"[object Number]":case"[object String]":return new H(U);case"[object RegExp]":return S(U);case"[object Symbol]":return k(U)}}}(),w=function(){if(Ki)return qi;Ki=1;var E=function(){if(Yi)return Xi;Yi=1;var k=ht(),q=Object.create;return Xi=function(){function U(){}return function(R){if(!k(R))return{};if(q)return q(R);U.prototype=R;var T=new U;return U.prototype=void 0,T}}()}(),x=Qt(),S=Jt();return qi=function(k){return typeof k.constructor!="function"||S(k)?{}:E(x(k))}}(),C=X(),A=Kt(),P=function(){if(Zi)return Qi;Zi=1;var E=function(){if(Ji)return Gi;Ji=1;var U=At(),R=Z();return Gi=function(T){return R(T)&&U(T)=="[object Map]"}}(),x=Vt(),S=Xt(),k=S&&S.isMap,q=k?x(k):E;return Qi=q}(),M=ht(),F=function(){if(nu)return ru;nu=1;var E=function(){if(eu)return tu;eu=1;var U=At(),R=Z();return tu=function(T){return R(T)&&U(T)=="[object Set]"}}(),x=Vt(),S=Xt(),k=S&&S.isSet,q=k?x(k):E;return ru=q}(),B=yt(),G=Dt(),Y="[object Arguments]",J="[object Function]",pt="[object Object]",L={};return L[Y]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object DataView]"]=L["[object Boolean]"]=L["[object Date]"]=L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Map]"]=L["[object Number]"]=L[pt]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object Symbol]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Error]"]=L[J]=L["[object WeakMap]"]=!1,Bt=function E(x,S,k,q,U,R){var T,H=1&S,mt=2&S,Ku=4&S;if(k&&(T=U?k(x,q,U,R):k(x)),T!==void 0)return T;if(!M(x))return x;var ue=C(x);if(ue){if(T=_(x),!H)return g(x,T)}else{var at=y(x),se=at==J||at=="[object GeneratorFunction]";if(A(x))return p(x,H);if(at==pt||at==Y||se&&!U){if(T=mt||se?{}:w(x),!H)return mt?s(x,b(T,x)):c(x,h(T,x))}else{if(!L[at])return U?x:{};T=m(x,at,H)}}R||(R=new u);var ce=R.get(x);if(ce)return ce;R.set(x,T),F(x)?x.forEach(function(tt){T.add(E(tt,S,k,tt,x,R))}):P(x)&&x.forEach(function(tt,it){T.set(it,E(tt,S,k,it,x,R))});var fe=ue?void 0:(Ku?mt?v:d:mt?G:B)(x);return a(fe||x,function(tt,it){fe&&(tt=x[it=tt]),l(T,it,E(tt,S,k,it,x,R))}),T},Bt}var cu,fu,ct={},ft={},lu,lt={},hu,pu,Wt={},ds=function(){if(pu)return W;pu=1,Object.defineProperty(W,"__esModule",{value:!0}),W.ReactCSS=W.loop=W.handleActive=W.handleHover=W.hover=void 0;var e=u(function(){if(Za)return ut;Za=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.flattenNames=void 0;var l=g(function(){if(Le)return Te;Le=1;var s=nt(),d=X(),v=Z();return Te=function(y){return typeof y=="string"||!d(y)&&v(y)&&s(y)=="[object String]"}}()),h=g(Ft()),b=g(function(){if(Lr)return Tr;Lr=1;var s=nt(),d=Qt(),v=Z(),y=Function.prototype,_=Object.prototype,m=y.toString,w=_.hasOwnProperty,C=m.call(Object);return Tr=function(A){if(!v(A)||s(A)!="[object Object]")return!1;var P=d(A);if(P===null)return!0;var M=w.call(P,"constructor")&&P.constructor;return typeof M=="function"&&M instanceof M&&m.call(M)==C}}()),p=g(hs());function g(s){return s&&s.__esModule?s:{default:s}}var c=ut.flattenNames=function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=[];return(0,p.default)(d,function(y){Array.isArray(y)?s(y).map(function(_){return v.push(_)}):(0,b.default)(y)?(0,h.default)(y,function(_,m){_===!0&&v.push(m),v.push(m+"-"+_)}):(0,l.default)(y)&&v.push(y)}),v};return ut.default=c,ut}()),r=u(function(){if(uu)return st;uu=1,Object.defineProperty(st,"__esModule",{value:!0}),st.mergeClasses=void 0;var l=p(Ft()),h=p(function(){if(iu)return au;iu=1;var c=ps();return au=function(s){return c(s,5)}}()),b=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c};function p(c){return c&&c.__esModule?c:{default:c}}var g=st.mergeClasses=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=c.default&&(0,h.default)(c.default)||{};return s.map(function(v){var y=c[v];return y&&(0,l.default)(y,function(_,m){d[m]||(d[m]={}),d[m]=b({},d[m],y[m])}),v}),d};return st.default=g,st}()),t=function(){if(cu)return ct;cu=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.autoprefix=void 0;var l,h=(l=Ft())&&l.__esModule?l:{default:l},b=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},p={borderRadius:function(c){return{msBorderRadius:c,MozBorderRadius:c,OBorderRadius:c,WebkitBorderRadius:c,borderRadius:c}},boxShadow:function(c){return{msBoxShadow:c,MozBoxShadow:c,OBoxShadow:c,WebkitBoxShadow:c,boxShadow:c}},userSelect:function(c){return{WebkitTouchCallout:c,KhtmlUserSelect:c,MozUserSelect:c,msUserSelect:c,WebkitUserSelect:c,userSelect:c}},flex:function(c){return{WebkitBoxFlex:c,MozBoxFlex:c,WebkitFlex:c,msFlex:c,flex:c}},flexBasis:function(c){return{WebkitFlexBasis:c,flexBasis:c}},justifyContent:function(c){return{WebkitJustifyContent:c,justifyContent:c}},transition:function(c){return{msTransition:c,MozTransition:c,OTransition:c,WebkitTransition:c,transition:c}},transform:function(c){return{msTransform:c,MozTransform:c,OTransform:c,WebkitTransform:c,transform:c}},absolute:function(c){var s=c&&c.split(" ");return{position:"absolute",top:s&&s[0],right:s&&s[1],bottom:s&&s[2],left:s&&s[3]}},extend:function(c,s){return s[c]||{extend:c}}},g=ct.autoprefix=function(c){var s={};return(0,h.default)(c,function(d,v){var y={};(0,h.default)(d,function(_,m){var w=p[m];w?y=b({},y,w(_)):y[m]=_}),s[v]=y}),s};return ct.default=g,ct}(),n=u(t),o=u(function(){if(fu)return ft;fu=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.hover=void 0;var l,h=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},b=(l=j)&&l.__esModule?l:{default:l};function p(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||typeof s!="object"&&typeof s!="function"?c:s}var g=ft.hover=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,_,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var w=arguments.length,C=Array(w),A=0;A<w;A++)C[A]=arguments[A];return _=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(C))),m.state={hover:!1},m.handleMouseOver=function(){return m.setState({hover:!0})},m.handleMouseOut=function(){return m.setState({hover:!1})},m.render=function(){return b.default.createElement(s,{onMouseOver:m.handleMouseOver,onMouseOut:m.handleMouseOut},b.default.createElement(c,h({},m.props,m.state)))},p(m,_)}return function(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}(v,d),v}(b.default.Component)};return ft.default=g,ft}()),f=u(function(){if(lu)return lt;lu=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.active=void 0;var l,h=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},b=(l=j)&&l.__esModule?l:{default:l};function p(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||typeof s!="object"&&typeof s!="function"?c:s}var g=lt.active=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,_,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var w=arguments.length,C=Array(w),A=0;A<w;A++)C[A]=arguments[A];return _=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(C))),m.state={active:!1},m.handleMouseDown=function(){return m.setState({active:!0})},m.handleMouseUp=function(){return m.setState({active:!1})},m.render=function(){return b.default.createElement(s,{onMouseDown:m.handleMouseDown,onMouseUp:m.handleMouseUp},b.default.createElement(c,h({},m.props,m.state)))},p(m,_)}return function(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}(v,d),v}(b.default.Component)};return lt.default=g,lt}()),i=u((hu||(hu=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.default=function(l,h){var b={},p=function(g){var c=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];b[g]=c};return l===0&&p("first-child"),l===h-1&&p("last-child"),(l===0||l%2==0)&&p("even"),Math.abs(l%2)===1&&p("odd"),p("nth-child",l),b}),Wt));function u(l){return l&&l.__esModule?l:{default:l}}W.hover=o.default,W.handleHover=o.default,W.handleActive=f.default,W.loop=i.default;var a=W.ReactCSS=function(l){for(var h=arguments.length,b=Array(h>1?h-1:0),p=1;p<h;p++)b[p-1]=arguments[p];var g=(0,e.default)(b),c=(0,r.default)(l,g);return(0,n.default)(c)};return W.default=a,W}();const ot=I.PR(ds);var $t={},bs=function(e,r,t,n){var o=e+"-"+r+"-"+t+(n?"-server":"");if($t[o])return $t[o];var f=function(i,u,a,l){if(typeof document>"u"&&!l)return null;var h=l?new l:document.createElement("canvas");h.width=2*a,h.height=2*a;var b=h.getContext("2d");return b?(b.fillStyle=i,b.fillRect(0,0,h.width,h.height),b.fillStyle=u,b.fillRect(0,0,a,a),b.translate(a,a),b.fillRect(0,0,a,a),h.toDataURL()):null}(e,r,t,n);return $t[o]=f,f},du=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ie=function(e){var r=e.white,t=e.grey,n=e.size,o=e.renderers,f=e.borderRadius,i=e.boxShadow,u=e.children,a=ot({default:{grid:{borderRadius:f,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+bs(r,t,n,o.canvas)+") center left"}}});return j.isValidElement(u)?j.cloneElement(u,du({},u.props,{style:du({},u.props.style,a.grid)})):j.createElement("div",{style:a.grid})};ie.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var vs=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},gs=function(){function e(r,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function bu(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?e:r}var ys=function(){function e(){var r,t,n;(function(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e);for(var o=arguments.length,f=Array(o),i=0;i<o;i++)f[i]=arguments[i];return t=n=bu(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(f))),n.handleChange=function(u){var a=function(l,h,b,p,g){var c=g.clientWidth,s=g.clientHeight,d=typeof l.pageX=="number"?l.pageX:l.touches[0].pageX,v=typeof l.pageY=="number"?l.pageY:l.touches[0].pageY,y=d-(g.getBoundingClientRect().left+window.pageXOffset),_=v-(g.getBoundingClientRect().top+window.pageYOffset);if(b==="vertical"){var m;if(m=_<0?0:_>s?1:Math.round(100*_/s)/100,h.a!==m)return{h:h.h,s:h.s,l:h.l,a:m,source:"rgb"}}else{var w;if(p!==(w=y<0?0:y>c?1:Math.round(100*y/c)/100))return{h:h.h,s:h.s,l:h.l,a:w,source:"rgb"}}return null}(u,n.props.hsl,n.props.direction,n.props.a,n.container);a&&typeof n.props.onChange=="function"&&n.props.onChange(a,u)},n.handleMouseDown=function(u){n.handleChange(u),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},bu(n,t)}return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}(e,j.PureComponent||j.Component),gs(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,t=this.props.rgb,n=ot({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+`, 0) 0%,
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("react/jsx-runtime"),j=require("react"),I=require("./CndX6WxBX5l14erU.cjs"),_t=I.PR(I.Tc());function qt(e){return(qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(e)}var Gu=/^\s+/,Ju=/\s+$/;function O(e,r){if(r=r||{},(e=e||"")instanceof O)return e;if(!(this instanceof O))return new O(e,r);var t,n,o,f,i,u,a,l,h,b,p,g=(i={r:0,g:0,b:0},u=1,a=null,l=null,h=null,b=!1,p=!1,typeof(t=e)=="string"&&(t=function(c){c=c.replace(Gu,"").replace(Ju,"").toLowerCase();var s,d=!1;if(It[c])c=It[c],d=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(s=N.rgb.exec(c))?{r:s[1],g:s[2],b:s[3]}:(s=N.rgba.exec(c))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=N.hsl.exec(c))?{h:s[1],s:s[2],l:s[3]}:(s=N.hsla.exec(c))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=N.hsv.exec(c))?{h:s[1],s:s[2],v:s[3]}:(s=N.hsva.exec(c))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=N.hex8.exec(c))?{r:$(s[1]),g:$(s[2]),b:$(s[3]),a:ve(s[4]),format:d?"name":"hex8"}:(s=N.hex6.exec(c))?{r:$(s[1]),g:$(s[2]),b:$(s[3]),format:d?"name":"hex"}:(s=N.hex4.exec(c))?{r:$(s[1]+""+s[1]),g:$(s[2]+""+s[2]),b:$(s[3]+""+s[3]),a:ve(s[4]+""+s[4]),format:d?"name":"hex8"}:!!(s=N.hex3.exec(c))&&{r:$(s[1]+""+s[1]),g:$(s[2]+""+s[2]),b:$(s[3]+""+s[3]),format:d?"name":"hex"}}(t)),qt(t)=="object"&&(Q(t.r)&&Q(t.g)&&Q(t.b)?(n=t.r,o=t.g,f=t.b,i={r:255*D(n,255),g:255*D(o,255),b:255*D(f,255)},b=!0,p=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Q(t.h)&&Q(t.s)&&Q(t.v)?(a=vt(t.s),l=vt(t.v),i=function(c,s,d){c=6*D(c,360),s=D(s,100),d=D(d,100);var v=Math.floor(c),y=c-v,_=d*(1-s),m=d*(1-y*s),w=d*(1-(1-y)*s),C=v%6;return{r:255*[d,m,_,_,w,d][C],g:255*[w,d,d,m,_,_][C],b:255*[_,_,w,d,d,m][C]}}(t.h,a,l),b=!0,p="hsv"):Q(t.h)&&Q(t.s)&&Q(t.l)&&(a=vt(t.s),h=vt(t.l),i=function(c,s,d){var v,y,_;function m(A,P,M){return M<0&&(M+=1),M>1&&(M-=1),M<1/6?A+6*(P-A)*M:M<.5?P:M<2/3?A+(P-A)*(2/3-M)*6:A}if(c=D(c,360),s=D(s,100),d=D(d,100),s===0)v=y=_=d;else{var w=d<.5?d*(1+s):d+s-d*s,C=2*d-w;v=m(C,w,c+1/3),y=m(C,w,c),_=m(C,w,c-1/3)}return{r:255*v,g:255*y,b:255*_}}(t.h,a,h),b=!0,p="hsl"),t.hasOwnProperty("a")&&(u=t.a)),u=xu(u),{ok:b,format:t.format||p,r:Math.min(255,Math.max(i.r,0)),g:Math.min(255,Math.max(i.g,0)),b:Math.min(255,Math.max(i.b,0)),a:u});this._originalInput=e,this._r=g.r,this._g=g.g,this._b=g.b,this._a=g.a,this._roundA=Math.round(100*this._a)/100,this._format=r.format||g.format,this._gradientType=r.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=g.ok}function le(e,r,t){e=D(e,255),r=D(r,255),t=D(t,255);var n,o,f=Math.max(e,r,t),i=Math.min(e,r,t),u=(f+i)/2;if(f==i)n=o=0;else{var a=f-i;switch(o=u>.5?a/(2-f-i):a/(f+i),f){case e:n=(r-t)/a+(r<t?6:0);break;case r:n=(t-e)/a+2;break;case t:n=(e-r)/a+4}n/=6}return{h:n,s:o,l:u}}function he(e,r,t){e=D(e,255),r=D(r,255),t=D(t,255);var n,o,f=Math.max(e,r,t),i=Math.min(e,r,t),u=f,a=f-i;if(o=f===0?0:a/f,f==i)n=0;else{switch(f){case e:n=(r-t)/a+(r<t?6:0);break;case r:n=(t-e)/a+2;break;case t:n=(e-r)/a+4}n/=6}return{h:n,s:o,v:u}}function pe(e,r,t,n){var o=[V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(t).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function de(e,r,t,n){return[V(ju(n)),V(Math.round(e).toString(16)),V(Math.round(r).toString(16)),V(Math.round(t).toString(16))].join("")}function Qu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s-=r/100,t.s=Tt(t.s),O(t)}function Zu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s+=r/100,t.s=Tt(t.s),O(t)}function ts(e){return O(e).desaturate(100)}function es(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l+=r/100,t.l=Tt(t.l),O(t)}function rs(e,r){r=r===0?0:r||10;var t=O(e).toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(-r/100*255))),t.g=Math.max(0,Math.min(255,t.g-Math.round(-r/100*255))),t.b=Math.max(0,Math.min(255,t.b-Math.round(-r/100*255))),O(t)}function ns(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l-=r/100,t.l=Tt(t.l),O(t)}function os(e,r){var t=O(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,O(t)}function as(e){var r=O(e).toHsl();return r.h=(r.h+180)%360,O(r)}function be(e,r){if(isNaN(r)||r<=0)throw new Error("Argument to polyad must be a positive number");for(var t=O(e).toHsl(),n=[O(e)],o=360/r,f=1;f<r;f++)n.push(O({h:(t.h+f*o)%360,s:t.s,l:t.l}));return n}function is(e){var r=O(e).toHsl(),t=r.h;return[O(e),O({h:(t+72)%360,s:r.s,l:r.l}),O({h:(t+216)%360,s:r.s,l:r.l})]}function us(e,r,t){r=r||6,t=t||30;var n=O(e).toHsl(),o=360/t,f=[O(e)];for(n.h=(n.h-(o*r>>1)+720)%360;--r;)n.h=(n.h+o)%360,f.push(O(n));return f}function ss(e,r){r=r||6;for(var t=O(e).toHsv(),n=t.h,o=t.s,f=t.v,i=[],u=1/r;r--;)i.push(O({h:n,s:o,v:f})),f=(f+u)%1;return i}O.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,r,t,n=this.toRgb();return e=n.r/255,r=n.g/255,t=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))},setAlpha:function(e){return this._a=xu(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=he(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=he(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.v);return this._a==1?"hsv("+r+", "+t+"%, "+n+"%)":"hsva("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=le(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=le(this._r,this._g,this._b),r=Math.round(360*e.h),t=Math.round(100*e.s),n=Math.round(100*e.l);return this._a==1?"hsl("+r+", "+t+"%, "+n+"%)":"hsla("+r+", "+t+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return pe(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return r=this._r,t=this._g,n=this._b,o=this._a,f=e,i=[V(Math.round(r).toString(16)),V(Math.round(t).toString(16)),V(Math.round(n).toString(16)),V(ju(o))],f&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("");var r,t,n,o,f,i},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*D(this._r,255))+"%",g:Math.round(100*D(this._g,255))+"%",b:Math.round(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*D(this._r,255))+"%, "+Math.round(100*D(this._g,255))+"%, "+Math.round(100*D(this._b,255))+"%)":"rgba("+Math.round(100*D(this._r,255))+"%, "+Math.round(100*D(this._g,255))+"%, "+Math.round(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(cs[pe(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+de(this._r,this._g,this._b,this._a),t=r,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=O(e);t="#"+de(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+r+",endColorstr="+t+")"},toString:function(e){var r=!!e;e=e||this._format;var t=!1,n=this._a<1&&this._a>=0;return r||!n||e!=="hex"&&e!=="hex6"&&e!=="hex3"&&e!=="hex4"&&e!=="hex8"&&e!=="name"?(e==="rgb"&&(t=this.toRgbString()),e==="prgb"&&(t=this.toPercentageRgbString()),e!=="hex"&&e!=="hex6"||(t=this.toHexString()),e==="hex3"&&(t=this.toHexString(!0)),e==="hex4"&&(t=this.toHex8String(!0)),e==="hex8"&&(t=this.toHex8String()),e==="name"&&(t=this.toName()),e==="hsl"&&(t=this.toHslString()),e==="hsv"&&(t=this.toHsvString()),t||this.toHexString()):e==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return O(this.toString())},_applyModification:function(e,r){var t=e.apply(null,[this].concat([].slice.call(r)));return this._r=t._r,this._g=t._g,this._b=t._b,this.setAlpha(t._a),this},lighten:function(){return this._applyModification(es,arguments)},brighten:function(){return this._applyModification(rs,arguments)},darken:function(){return this._applyModification(ns,arguments)},desaturate:function(){return this._applyModification(Qu,arguments)},saturate:function(){return this._applyModification(Zu,arguments)},greyscale:function(){return this._applyModification(ts,arguments)},spin:function(){return this._applyModification(os,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(us,arguments)},complement:function(){return this._applyCombination(as,arguments)},monochromatic:function(){return this._applyCombination(ss,arguments)},splitcomplement:function(){return this._applyCombination(is,arguments)},triad:function(){return this._applyCombination(be,[3])},tetrad:function(){return this._applyCombination(be,[4])}},O.fromRatio=function(e,r){if(qt(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=n==="a"?e[n]:vt(e[n]));e=t}return O(e,r)},O.equals=function(e,r){return!(!e||!r)&&O(e).toRgbString()==O(r).toRgbString()},O.random=function(){return O.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},O.mix=function(e,r,t){t=t===0?0:t||50;var n=O(e).toRgb(),o=O(r).toRgb(),f=t/100;return O({r:(o.r-n.r)*f+n.r,g:(o.g-n.g)*f+n.g,b:(o.b-n.b)*f+n.b,a:(o.a-n.a)*f+n.a})},O.readability=function(e,r){var t=O(e),n=O(r);return(Math.max(t.getLuminance(),n.getLuminance())+.05)/(Math.min(t.getLuminance(),n.getLuminance())+.05)},O.isReadable=function(e,r,t){var n,o,f,i,u,a=O.readability(e,r);switch(o=!1,(f=t,(i=((f=f||{level:"AA",size:"small"}).level||"AA").toUpperCase())!=="AA"&&i!=="AAA"&&(i="AA"),(u=(f.size||"small").toLowerCase())!=="small"&&u!=="large"&&(u="small"),n={level:i,size:u}).level+n.size){case"AAsmall":case"AAAlarge":o=a>=4.5;break;case"AAlarge":o=a>=3;break;case"AAAsmall":o=a>=7}return o},O.mostReadable=function(e,r,t){var n,o,f,i,u=null,a=0;o=(t=t||{}).includeFallbackColors,f=t.level,i=t.size;for(var l=0;l<r.length;l++)(n=O.readability(e,r[l]))>a&&(a=n,u=O(r[l]));return O.isReadable(e,u,{level:f,size:i})||!o?u:(t.includeFallbackColors=!1,O.mostReadable(e,["#fff","#000"],t))};var It=O.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},cs=O.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}(It);function xu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,r){var t;typeof(t=e)=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1&&(e="100%");var n=function(o){return typeof o=="string"&&o.indexOf("%")!=-1}(e);return e=Math.min(r,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*r,10)/100),Math.abs(e-r)<1e-6?1:e%r/parseFloat(r)}function Tt(e){return Math.min(1,Math.max(0,e))}function $(e){return parseInt(e,16)}function V(e){return e.length==1?"0"+e:""+e}function vt(e){return e<=1&&(e=100*e+"%"),e}function ju(e){return Math.round(255*parseFloat(e)).toString(16)}function ve(e){return $(e)/255}var et,wt,xt,N=(wt="[\\s|\\(]+("+(et="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?",xt="[\\s|\\(]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")[,|\\s]+("+et+")\\s*\\)?",{CSS_UNIT:new RegExp(et),rgb:new RegExp("rgb"+wt),rgba:new RegExp("rgba"+xt),hsl:new RegExp("hsl"+wt),hsla:new RegExp("hsla"+xt),hsv:new RegExp("hsv"+wt),hsva:new RegExp("hsva"+xt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Q(e){return!!N.CSS_UNIT.exec(e)}var ge,ye,me,_e,we,xe,je,Oe,Me,Se,ke,Ae,Ce,Ee,Re,Pe,Te,Le,Ue,Fe,De,Be,ze,He,We,$e,Ne,Ie,W={},ut={};function Ou(){if(ye)return ge;ye=1;var e=typeof I.Sa=="object"&&I.Sa&&I.Sa.Object===Object&&I.Sa;return ge=e}function K(){if(_e)return me;_e=1;var e=Ou(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return me=t}function gt(){if(xe)return we;xe=1;var e=K().Symbol;return we=e}function nt(){if(Ae)return ke;Ae=1;var e=gt(),r=function(){if(Oe)return je;Oe=1;var o=gt(),f=Object.prototype,i=f.hasOwnProperty,u=f.toString,a=o?o.toStringTag:void 0;return je=function(l){var h=i.call(l,a),b=l[a];try{l[a]=void 0;var p=!0}catch{}var g=u.call(l);return p&&(h?l[a]=b:delete l[a]),g}}(),t=function(){if(Se)return Me;Se=1;var o=Object.prototype.toString;return Me=function(f){return o.call(f)}}(),n=e?e.toStringTag:void 0;return ke=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":n&&n in Object(o)?r(o):t(o)}}function X(){if(Ee)return Ce;Ee=1;var e=Array.isArray;return Ce=e}function Z(){return Pe?Re:(Pe=1,Re=function(e){return e!=null&&typeof e=="object"})}function Mu(){if(Ie)return Ne;Ie=1;var e=function(){if($e)return We;$e=1;var i=nt(),u=Z();return We=function(a){return u(a)&&i(a)=="[object Arguments]"}}(),r=Z(),t=Object.prototype,n=t.hasOwnProperty,o=t.propertyIsEnumerable,f=e(function(){return arguments}())?e:function(i){return r(i)&&n.call(i,"callee")&&!o.call(i,"callee")};return Ne=f}var Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,tr,er,Lt={exports:{}};function Kt(){return Ye||(Ye=1,e=Lt,r=Lt.exports,t=K(),n=Xe?Ve:(Xe=1,Ve=function(){return!1}),o=r&&!r.nodeType&&r,f=o&&e&&!e.nodeType&&e,i=f&&f.exports===o?t.Buffer:void 0,u=(i?i.isBuffer:void 0)||n,e.exports=u),Lt.exports;var e,r,t,n,o,f,i,u}function Su(){if(Ke)return qe;Ke=1;var e=/^(?:0|[1-9]\d*)$/;return qe=function(r,t){var n=typeof r;return!!(t=t??9007199254740991)&&(n=="number"||n!="symbol"&&e.test(r))&&r>-1&&r%1==0&&r<t}}function Gt(){return Je?Ge:(Je=1,Ge=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991})}function Vt(){return er?tr:(er=1,tr=function(e){return function(r){return e(r)}})}var rr,nr,or,ar,ir,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,_r,wr,xr,jr,Or,Mr,Sr,kr,Ar,Cr,Er,Rr,Pr,Tr,Lr,Ur,Fr,Dr,Br,zr,Hr,Wr,$r,Nr,Ir,Vr,Xr,Yr,qr,Kr,Gr,Jr,Qr,Zr,tn,en,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,_n,wn,xn,jn,On,Mn,Sn,kn,An,Cn,En,Rn,Pn,Tn,Ln,Un,Fn,Dn,Bn,zn,Hn,Wn,$n,Nn,In,Vn,Xn,Yn,qn,Kn,Gn,Jn,Qn,Zn,to,eo,ro,no,oo,ao,io,uo,so,co,fo,lo,ho,po,bo,vo,go,yo,mo,_o,wo,xo,jo,Oo,Mo,So,ko,Ao,Co,Eo,Ro,Po,To,Lo,Uo,Fo,Do,Bo,zo,Ho,Wo,$o,No,Io,Vo,Xo,Yo,qo,Ko,Go,Jo,Qo,Zo,ta,ea,ra,na,oa,aa,ia,ua,sa,ca,fa,la,ha,pa,da,ba,va,ga,ya,ma,_a,wa,xa,ja,Oa,Ma,Sa,ka,Aa,Ca,Ea,Ra,Pa,Ta,La,Ua,Fa,Da,Ba,za,Ha,Wa,$a,Na,Ia,Va,Xa,Ya,qa,Ka,Ga,Ja,Qa,Za,Ut={exports:{}};function Xt(){return rr||(rr=1,e=Ut,r=Ut.exports,t=Ou(),n=r&&!r.nodeType&&r,o=n&&e&&!e.nodeType&&e,f=o&&o.exports===n&&t.process,i=function(){try{return o&&o.require&&o.require("util").types||f&&f.binding&&f.binding("util")}catch{}}(),e.exports=i),Ut.exports;var e,r,t,n,o,f,i}function ku(){if(or)return nr;or=1;var e=function(){if(Ze)return Qe;Ze=1;var f=nt(),i=Gt(),u=Z(),a={};return a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,Qe=function(l){return u(l)&&i(l.length)&&!!a[f(l)]}}(),r=Vt(),t=Xt(),n=t&&t.isTypedArray,o=n?r(n):e;return nr=o}function Au(){if(ir)return ar;ir=1;var e=He?ze:(He=1,ze=function(u,a){for(var l=-1,h=Array(u);++l<u;)h[l]=a(l);return h}),r=Mu(),t=X(),n=Kt(),o=Su(),f=ku(),i=Object.prototype.hasOwnProperty;return ar=function(u,a){var l=t(u),h=!l&&r(u),b=!l&&!h&&n(u),p=!l&&!h&&!b&&f(u),g=l||h||b||p,c=g?e(u.length,String):[],s=c.length;for(var d in u)!a&&!i.call(u,d)||g&&(d=="length"||b&&(d=="offset"||d=="parent")||p&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||o(d,s))||c.push(d);return c}}function Jt(){if(sr)return ur;sr=1;var e=Object.prototype;return ur=function(r){var t=r&&r.constructor;return r===(typeof t=="function"&&t.prototype||e)}}function Cu(){return fr?cr:(fr=1,cr=function(e,r){return function(t){return e(r(t))}})}function ht(){return vr?br:(vr=1,br=function(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")})}function Eu(){if(yr)return gr;yr=1;var e=nt(),r=ht();return gr=function(t){if(!r(t))return!1;var n=e(t);return n=="[object Function]"||n=="[object GeneratorFunction]"||n=="[object AsyncFunction]"||n=="[object Proxy]"}}function Ct(){if(_r)return mr;_r=1;var e=Eu(),r=Gt();return mr=function(t){return t!=null&&r(t.length)&&!e(t)}}function yt(){if(xr)return wr;xr=1;var e=Au(),r=function(){if(dr)return pr;dr=1;var n=Jt(),o=function(){if(hr)return lr;hr=1;var i=Cu()(Object.keys,Object);return lr=i}(),f=Object.prototype.hasOwnProperty;return pr=function(i){if(!n(i))return o(i);var u=[];for(var a in Object(i))f.call(i,a)&&a!="constructor"&&u.push(a);return u}}(),t=Ct();return wr=function(n){return t(n)?e(n):r(n)}}function Ru(){if(Or)return jr;Or=1;var e=function(){if(Be)return De;Be=1;var t=(Fe?Ue:(Fe=1,Ue=function(n){return function(o,f,i){for(var u=-1,a=Object(o),l=i(o),h=l.length;h--;){var b=l[n?h:++u];if(f(a[b],b,a)===!1)break}return o}}))();return De=t}(),r=yt();return jr=function(t,n){return t&&e(t,n,r)}}function Pu(){return Sr?Mr:(Sr=1,Mr=function(e){return e})}function Ft(){if(Er)return Cr;Er=1;var e=Ru(),r=function(){if(Ar)return kr;Ar=1;var t=Pu();return kr=function(n){return typeof n=="function"?n:t}}();return Cr=function(t,n){return t&&e(t,r(n))}}function Qt(){if(Pr)return Rr;Pr=1;var e=Cu()(Object.getPrototypeOf,Object);return Rr=e}function Tu(){return Fr?Ur:(Fr=1,Ur=function(e,r){for(var t=-1,n=e==null?0:e.length,o=Array(n);++t<n;)o[t]=r(e[t],t,e);return o})}function Zt(){return Hr?zr:(Hr=1,zr=function(e,r){return e===r||e!=e&&r!=r})}function jt(){if($r)return Wr;$r=1;var e=Zt();return Wr=function(r,t){for(var n=r.length;n--;)if(e(r[n][0],t))return n;return-1}}function kt(){if(Qr)return Jr;Qr=1;var e=Br?Dr:(Br=1,Dr=function(){this.__data__=[],this.size=0}),r=function(){if(Ir)return Nr;Ir=1;var i=jt(),u=Array.prototype.splice;return Nr=function(a){var l=this.__data__,h=i(l,a);return!(h<0||(h==l.length-1?l.pop():u.call(l,h,1),--this.size,0))}}(),t=function(){if(Xr)return Vr;Xr=1;var i=jt();return Vr=function(u){var a=this.__data__,l=i(a,u);return l<0?void 0:a[l][1]}}(),n=function(){if(qr)return Yr;qr=1;var i=jt();return Yr=function(u){return i(this.__data__,u)>-1}}(),o=function(){if(Gr)return Kr;Gr=1;var i=jt();return Kr=function(u,a){var l=this.__data__,h=i(l,u);return h<0?(++this.size,l.push([u,a])):l[h][1]=a,this}}();function f(i){var u=-1,a=i==null?0:i.length;for(this.clear();++u<a;){var l=i[u];this.set(l[0],l[1])}}return f.prototype.clear=e,f.prototype.delete=r,f.prototype.get=t,f.prototype.has=n,f.prototype.set=o,Jr=f}function Lu(){if(pn)return hn;pn=1;var e=Function.prototype.toString;return hn=function(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}}function rt(){if(mn)return yn;mn=1;var e=function(){if(bn)return dn;bn=1;var t=Eu(),n=function(){if(ln)return fn;ln=1;var p,g=function(){if(cn)return sn;cn=1;var s=K()["__core-js_shared__"];return sn=s}(),c=(p=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"";return fn=function(s){return!!c&&c in s}}(),o=ht(),f=Lu(),i=/^\[object .+?Constructor\]$/,u=Function.prototype,a=Object.prototype,l=u.toString,h=a.hasOwnProperty,b=RegExp("^"+l.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return dn=function(p){return!(!o(p)||n(p))&&(t(p)?b:i).test(f(p))}}(),r=gn?vn:(gn=1,vn=function(t,n){return t?.[n]});return yn=function(t,n){var o=r(t,n);return e(o)?o:void 0}}function te(){if(wn)return _n;wn=1;var e=rt()(K(),"Map");return _n=e}function Ot(){if(jn)return xn;jn=1;var e=rt()(Object,"create");return xn=e}function Mt(){if(Wn)return Hn;Wn=1;var e=zn?Bn:(zn=1,Bn=function(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null});return Hn=function(r,t){var n=r.__data__;return e(t)?n[typeof t=="string"?"string":"hash"]:n.map}}function ee(){if(Jn)return Gn;Jn=1;var e=function(){if(Dn)return Fn;Dn=1;var i=function(){if(Un)return Ln;Un=1;var l=function(){if(Mn)return On;Mn=1;var s=Ot();return On=function(){this.__data__=s?s(null):{},this.size=0}}(),h=kn?Sn:(kn=1,Sn=function(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}),b=function(){if(Cn)return An;Cn=1;var s=Ot(),d=Object.prototype.hasOwnProperty;return An=function(v){var y=this.__data__;if(s){var _=y[v];return _==="__lodash_hash_undefined__"?void 0:_}return d.call(y,v)?y[v]:void 0}}(),p=function(){if(Rn)return En;Rn=1;var s=Ot(),d=Object.prototype.hasOwnProperty;return En=function(v){var y=this.__data__;return s?y[v]!==void 0:d.call(y,v)}}(),g=function(){if(Tn)return Pn;Tn=1;var s=Ot();return Pn=function(d,v){var y=this.__data__;return this.size+=this.has(d)?0:1,y[d]=s&&v===void 0?"__lodash_hash_undefined__":v,this}}();function c(s){var d=-1,v=s==null?0:s.length;for(this.clear();++d<v;){var y=s[d];this.set(y[0],y[1])}}return c.prototype.clear=l,c.prototype.delete=h,c.prototype.get=b,c.prototype.has=p,c.prototype.set=g,Ln=c}(),u=kt(),a=te();return Fn=function(){this.size=0,this.__data__={hash:new i,map:new(a||u),string:new i}}}(),r=function(){if(Nn)return $n;Nn=1;var i=Mt();return $n=function(u){var a=i(this,u).delete(u);return this.size-=a?1:0,a}}(),t=function(){if(Vn)return In;Vn=1;var i=Mt();return In=function(u){return i(this,u).get(u)}}(),n=function(){if(Yn)return Xn;Yn=1;var i=Mt();return Xn=function(u){return i(this,u).has(u)}}(),o=function(){if(Kn)return qn;Kn=1;var i=Mt();return qn=function(u,a){var l=i(this,u),h=l.size;return l.set(u,a),this.size+=l.size==h?0:1,this}}();function f(i){var u=-1,a=i==null?0:i.length;for(this.clear();++u<a;){var l=i[u];this.set(l[0],l[1])}}return f.prototype.clear=e,f.prototype.delete=r,f.prototype.get=t,f.prototype.has=n,f.prototype.set=o,Gn=f}function re(){if(eo)return to;eo=1;var e=kt(),r=function(){if(tn)return Zr;tn=1;var u=kt();return Zr=function(){this.__data__=new u,this.size=0}}(),t=rn?en:(rn=1,en=function(u){var a=this.__data__,l=a.delete(u);return this.size=a.size,l}),n=on?nn:(on=1,nn=function(u){return this.__data__.get(u)}),o=un?an:(un=1,an=function(u){return this.__data__.has(u)}),f=function(){if(Zn)return Qn;Zn=1;var u=kt(),a=te(),l=ee();return Qn=function(h,b){var p=this.__data__;if(p instanceof u){var g=p.__data__;if(!a||g.length<199)return g.push([h,b]),this.size=++p.size,this;p=this.__data__=new l(g)}return p.set(h,b),this.size=p.size,this}}();function i(u){var a=this.__data__=new e(u);this.size=a.size}return i.prototype.clear=r,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=o,i.prototype.set=f,to=i}function ti(){if(po)return ho;po=1;var e=function(){if(uo)return io;uo=1;var n=ee(),o=no?ro:(no=1,ro=function(u){return this.__data__.set(u,"__lodash_hash_undefined__"),this}),f=ao?oo:(ao=1,oo=function(u){return this.__data__.has(u)});function i(u){var a=-1,l=u==null?0:u.length;for(this.__data__=new n;++a<l;)this.add(u[a])}return i.prototype.add=i.prototype.push=o,i.prototype.has=f,io=i}(),r=co?so:(co=1,so=function(n,o){for(var f=-1,i=n==null?0:n.length;++f<i;)if(o(n[f],f,n))return!0;return!1}),t=lo?fo:(lo=1,fo=function(n,o){return n.has(o)});return ho=function(n,o,f,i,u,a){var l=1&f,h=n.length,b=o.length;if(h!=b&&!(l&&b>h))return!1;var p=a.get(n),g=a.get(o);if(p&&g)return p==o&&g==n;var c=-1,s=!0,d=2&f?new e:void 0;for(a.set(n,o),a.set(o,n);++c<h;){var v=n[c],y=o[c];if(i)var _=l?i(y,v,c,o,n,a):i(v,y,c,n,o,a);if(_!==void 0){if(_)continue;s=!1;break}if(d){if(!r(o,function(m,w){if(!t(d,w)&&(v===m||u(v,m,f,i,a)))return d.push(w)})){s=!1;break}}else if(v!==y&&!u(v,y,f,i,a)){s=!1;break}}return a.delete(n),a.delete(o),s}}function Uu(){if(vo)return bo;vo=1;var e=K().Uint8Array;return bo=e}function Fu(){return Oo?jo:(Oo=1,jo=function(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e})}function Du(){if(So)return Mo;So=1;var e=Fu(),r=X();return Mo=function(t,n,o){var f=n(t);return r(t)?f:e(f,o(t))}}function Bu(){return Eo?Co:(Eo=1,Co=function(){return[]})}function ne(){if(Po)return Ro;Po=1;var e=Ao?ko:(Ao=1,ko=function(o,f){for(var i=-1,u=o==null?0:o.length,a=0,l=[];++i<u;){var h=o[i];f(h,i,o)&&(l[a++]=h)}return l}),r=Bu(),t=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return Ro=n?function(o){return o==null?[]:(o=Object(o),e(n(o),function(f){return t.call(o,f)}))}:r}function zu(){if(Lo)return To;Lo=1;var e=Du(),r=ne(),t=yt();return To=function(n){return e(n,t,r)}}function At(){if(Xo)return Vo;Xo=1;var e=function(){if(Bo)return Do;Bo=1;var y=rt()(K(),"DataView");return Do=y}(),r=te(),t=function(){if(Ho)return zo;Ho=1;var y=rt()(K(),"Promise");return zo=y}(),n=function(){if($o)return Wo;$o=1;var y=rt()(K(),"Set");return Wo=y}(),o=function(){if(Io)return No;Io=1;var y=rt()(K(),"WeakMap");return No=y}(),f=nt(),i=Lu(),u="[object Map]",a="[object Promise]",l="[object Set]",h="[object WeakMap]",b="[object DataView]",p=i(e),g=i(r),c=i(t),s=i(n),d=i(o),v=f;return(e&&v(new e(new ArrayBuffer(1)))!=b||r&&v(new r)!=u||t&&v(t.resolve())!=a||n&&v(new n)!=l||o&&v(new o)!=h)&&(v=function(y){var _=f(y),m=_=="[object Object]"?y.constructor:void 0,w=m?i(m):"";if(w)switch(w){case p:return b;case g:return u;case c:return a;case s:return l;case d:return h}return _}),Vo=v}function fs(){if(qo)return Yo;qo=1;var e=re(),r=ti(),t=function(){if(xo)return wo;xo=1;var p=gt(),g=Uu(),c=Zt(),s=ti(),d=yo?go:(yo=1,go=function(m){var w=-1,C=Array(m.size);return m.forEach(function(A,P){C[++w]=[P,A]}),C}),v=_o?mo:(_o=1,mo=function(m){var w=-1,C=Array(m.size);return m.forEach(function(A){C[++w]=A}),C}),y=p?p.prototype:void 0,_=y?y.valueOf:void 0;return wo=function(m,w,C,A,P,M,F){switch(C){case"[object DataView]":if(m.byteLength!=w.byteLength||m.byteOffset!=w.byteOffset)return!1;m=m.buffer,w=w.buffer;case"[object ArrayBuffer]":return!(m.byteLength!=w.byteLength||!M(new g(m),new g(w)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+m,+w);case"[object Error]":return m.name==w.name&&m.message==w.message;case"[object RegExp]":case"[object String]":return m==w+"";case"[object Map]":var B=d;case"[object Set]":var G=1&A;if(B||(B=v),m.size!=w.size&&!G)return!1;var Y=F.get(m);if(Y)return Y==w;A|=2,F.set(m,w);var J=s(B(m),B(w),A,P,M,F);return F.delete(m),J;case"[object Symbol]":if(_)return _.call(m)==_.call(w)}return!1}}(),n=function(){if(Fo)return Uo;Fo=1;var p=zu(),g=Object.prototype.hasOwnProperty;return Uo=function(c,s,d,v,y,_){var m=1&d,w=p(c),C=w.length;if(C!=p(s).length&&!m)return!1;for(var A=C;A--;){var P=w[A];if(!(m?P in s:g.call(s,P)))return!1}var M=_.get(c),F=_.get(s);if(M&&F)return M==s&&F==c;var B=!0;_.set(c,s),_.set(s,c);for(var G=m;++A<C;){var Y=c[P=w[A]],J=s[P];if(v)var pt=m?v(J,Y,P,s,c,_):v(Y,J,P,c,s,_);if(!(pt===void 0?Y===J||y(Y,J,d,v,_):pt)){B=!1;break}G||(G=P=="constructor")}if(B&&!G){var L=c.constructor,E=s.constructor;L==E||!("constructor"in c)||!("constructor"in s)||typeof L=="function"&&L instanceof L&&typeof E=="function"&&E instanceof E||(B=!1)}return _.delete(c),_.delete(s),B}}(),o=At(),f=X(),i=Kt(),u=ku(),a="[object Arguments]",l="[object Array]",h="[object Object]",b=Object.prototype.hasOwnProperty;return Yo=function(p,g,c,s,d,v){var y=f(p),_=f(g),m=y?l:o(p),w=_?l:o(g),C=(m=m==a?h:m)==h,A=(w=w==a?h:w)==h,P=m==w;if(P&&i(p)){if(!i(g))return!1;y=!0,C=!1}if(P&&!C)return v||(v=new e),y||u(p)?r(p,g,c,s,d,v):t(p,g,m,c,s,d,v);if(!(1&c)){var M=C&&b.call(p,"__wrapped__"),F=A&&b.call(g,"__wrapped__");if(M||F){var B=M?p.value():p,G=F?g.value():g;return v||(v=new e),d(B,G,c,s,v)}}return!!P&&(v||(v=new e),n(p,g,c,s,d,v))}}function Hu(){if(Go)return Ko;Go=1;var e=fs(),r=Z();return Ko=function t(n,o,f,i,u){return n===o||(n==null||o==null||!r(n)&&!r(o)?n!=n&&o!=o:e(n,o,f,i,t,u))}}function Wu(){if(ta)return Zo;ta=1;var e=ht();return Zo=function(r){return r==r&&!e(r)}}function $u(){return oa?na:(oa=1,na=function(e,r){return function(t){return t!=null&&t[e]===r&&(r!==void 0||e in Object(t))}})}function oe(){if(sa)return ua;sa=1;var e=nt(),r=Z();return ua=function(t){return typeof t=="symbol"||r(t)&&e(t)=="[object Symbol]"}}function ae(){if(fa)return ca;fa=1;var e=X(),r=oe(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return ca=function(o,f){if(e(o))return!1;var i=typeof o;return!(i!="number"&&i!="symbol"&&i!="boolean"&&o!=null&&!r(o))||n.test(o)||!t.test(o)||f!=null&&o in Object(f)}}function Nu(){if(xa)return wa;xa=1;var e=X(),r=ae(),t=function(){if(va)return ba;va=1;var o=function(){if(da)return pa;da=1;var a=function(){if(ha)return la;ha=1;var l=ee();function h(b,p){if(typeof b!="function"||p!=null&&typeof p!="function")throw new TypeError("Expected a function");var g=function(){var c=arguments,s=p?p.apply(this,c):c[0],d=g.cache;if(d.has(s))return d.get(s);var v=b.apply(this,c);return g.cache=d.set(s,v)||d,v};return g.cache=new(h.Cache||l),g}return h.Cache=l,la=h}();return pa=function(l){var h=a(l,function(p){return b.size===500&&b.clear(),p}),b=h.cache;return h}}(),f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=o(function(a){var l=[];return a.charCodeAt(0)===46&&l.push(""),a.replace(f,function(h,b,p,g){l.push(p?g.replace(i,"$1"):b||h)}),l});return ba=u}(),n=function(){if(_a)return ma;_a=1;var o=function(){if(ya)return ga;ya=1;var f=gt(),i=Tu(),u=X(),a=oe(),l=f?f.prototype:void 0,h=l?l.toString:void 0;return ga=function b(p){if(typeof p=="string")return p;if(u(p))return i(p,b)+"";if(a(p))return h?h.call(p):"";var g=p+"";return g=="0"&&1/p==-1/0?"-0":g}}();return ma=function(f){return f==null?"":o(f)}}();return wa=function(o,f){return e(o)?o:r(o,f)?[o]:t(n(o))}}function Et(){if(Oa)return ja;Oa=1;var e=oe();return ja=function(r){if(typeof r=="string"||e(r))return r;var t=r+"";return t=="0"&&1/r==-1/0?"-0":t}}function Iu(){if(Sa)return Ma;Sa=1;var e=Nu(),r=Et();return Ma=function(t,n){for(var o=0,f=(n=e(n,t)).length;t!=null&&o<f;)t=t[r(n[o++])];return o&&o==f?t:void 0}}function ls(){if(Fa)return Ua;Fa=1;var e=Hu(),r=function(){if(Aa)return ka;Aa=1;var u=Iu();return ka=function(a,l,h){var b=a==null?void 0:u(a,l);return b===void 0?h:b}}(),t=function(){if(La)return Ta;La=1;var u=Ea?Ca:(Ea=1,Ca=function(l,h){return l!=null&&h in Object(l)}),a=function(){if(Pa)return Ra;Pa=1;var l=Nu(),h=Mu(),b=X(),p=Su(),g=Gt(),c=Et();return Ra=function(s,d,v){for(var y=-1,_=(d=l(d,s)).length,m=!1;++y<_;){var w=c(d[y]);if(!(m=s!=null&&v(s,w)))break;s=s[w]}return m||++y!=_?m:!!(_=s==null?0:s.length)&&g(_)&&p(w,_)&&(b(s)||h(s))}}();return Ta=function(l,h){return l!=null&&a(l,h,u)}}(),n=ae(),o=Wu(),f=$u(),i=Et();return Ua=function(u,a){return n(u)&&o(a)?f(i(u),a):function(l){var h=r(l,u);return h===void 0&&h===a?t(l,u):e(a,h,3)}}}function hs(){if(Qa)return Ja;Qa=1;var e=Tu(),r=function(){if(Ia)return Na;Ia=1;var o=function(){if(ia)return aa;ia=1;var l=function(){if(Qo)return Jo;Qo=1;var p=re(),g=Hu();return Jo=function(c,s,d,v){var y=d.length,_=y,m=!v;if(c==null)return!_;for(c=Object(c);y--;){var w=d[y];if(m&&w[2]?w[1]!==c[w[0]]:!(w[0]in c))return!1}for(;++y<_;){var C=(w=d[y])[0],A=c[C],P=w[1];if(m&&w[2]){if(A===void 0&&!(C in c))return!1}else{var M=new p;if(v)var F=v(A,P,C,c,s,M);if(!(F===void 0?g(P,A,3,v,M):F))return!1}}return!0}}(),h=function(){if(ra)return ea;ra=1;var p=Wu(),g=yt();return ea=function(c){for(var s=g(c),d=s.length;d--;){var v=s[d],y=c[v];s[d]=[v,y,p(y)]}return s}}(),b=$u();return aa=function(p){var g=h(p);return g.length==1&&g[0][2]?b(g[0][0],g[0][1]):function(c){return c===p||l(c,p,g)}}}(),f=ls(),i=Pu(),u=X(),a=function(){if($a)return Wa;$a=1;var l=Ba?Da:(Ba=1,Da=function(g){return function(c){return c?.[g]}}),h=function(){if(Ha)return za;Ha=1;var g=Iu();return za=function(c){return function(s){return g(s,c)}}}(),b=ae(),p=Et();return Wa=function(g){return b(g)?l(p(g)):h(g)}}();return Na=function(l){return typeof l=="function"?l:l==null?i:typeof l=="object"?u(l)?f(l[0],l[1]):o(l):a(l)}}(),t=function(){if(Ga)return Ka;Ga=1;var o=function(){if(qa)return Ya;qa=1;var i=Ru(),u=function(){if(Xa)return Va;Xa=1;var a=Ct();return Va=function(l,h){return function(b,p){if(b==null)return b;if(!a(b))return l(b,p);for(var g=b.length,c=h?g:-1,s=Object(b);(h?c--:++c<g)&&p(s[c],c,s)!==!1;);return b}}}()(i);return Ya=u}(),f=Ct();return Ka=function(i,u){var a=-1,l=f(i)?Array(i.length):[];return o(i,function(h,b,p){l[++a]=u(h,b,p)}),l}}(),n=X();return Ja=function(o,f){return(n(o)?e:t)(o,r(f,3))}}var ei,ri,ni,oi,ai,ii,ui,si,ci,fi,li,hi,pi,di,bi,vi,gi,yi,mi,_i,st={};function Vu(){if(ii)return ai;ii=1;var e=function(){if(oi)return ni;oi=1;var r=rt(),t=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}}();return ni=t}();return ai=function(r,t,n){t=="__proto__"&&e?e(r,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[t]=n}}function Xu(){if(si)return ui;si=1;var e=Vu(),r=Zt(),t=Object.prototype.hasOwnProperty;return ui=function(n,o,f){var i=n[o];t.call(n,o)&&r(i,f)&&(f!==void 0||o in n)||e(n,o,f)}}function St(){if(fi)return ci;fi=1;var e=Xu(),r=Vu();return ci=function(t,n,o,f){var i=!o;o||(o={});for(var u=-1,a=n.length;++u<a;){var l=n[u],h=f?f(o[l],t[l],l,o,t):void 0;h===void 0&&(h=t[l]),i?r(o,l,h):e(o,l,h)}return o}}function Dt(){if(yi)return gi;yi=1;var e=Au(),r=function(){if(vi)return bi;vi=1;var n=ht(),o=Jt(),f=di?pi:(di=1,pi=function(u){var a=[];if(u!=null)for(var l in Object(u))a.push(l);return a}),i=Object.prototype.hasOwnProperty;return bi=function(u){if(!n(u))return f(u);var a=o(u),l=[];for(var h in u)(h!="constructor"||!a&&i.call(u,h))&&l.push(h);return l}}(),t=Ct();return gi=function(n){return t(n)?e(n,!0):r(n)}}var wi,xi,ji,Oi,Mi,Si,ki,Ai,Ci,Ei,Ri,Pi,Ti,Li,Ui,Fi,Di,Bi,zi,Hi,Wi,$i,Ni,Ii,Vi,Xi,Yi,qi,Ki,Gi,Ji,Qi,Zi,tu,eu,ru,nu,Bt,ou,au,iu,uu,zt={exports:{}};function su(){if(ki)return Si;ki=1;var e=Fu(),r=Qt(),t=ne(),n=Bu(),o=Object.getOwnPropertySymbols;return Si=o?function(f){for(var i=[];f;)e(i,t(f)),f=r(f);return i}:n}function Ht(){if(Ui)return Li;Ui=1;var e=Uu();return Li=function(r){var t=new r.constructor(r.byteLength);return new e(t).set(new e(r)),t}}function ps(){if(ou)return Bt;ou=1;var e,r,t,n,o,f,i,u=re(),a=ri?ei:(ri=1,ei=function(E,x){for(var S=-1,k=E==null?0:E.length;++S<k&&x(E[S],S,E)!==!1;);return E}),l=Xu(),h=function(){if(hi)return li;hi=1;var E=St(),x=yt();return li=function(S,k){return S&&E(k,x(k),S)}}(),b=function(){if(_i)return mi;_i=1;var E=St(),x=Dt();return mi=function(S,k){return S&&E(k,x(k),S)}}(),p=(wi||(wi=1,e=zt,r=zt.exports,t=K(),n=r&&!r.nodeType&&r,o=n&&e&&!e.nodeType&&e,f=o&&o.exports===n?t.Buffer:void 0,i=f?f.allocUnsafe:void 0,e.exports=function(E,x){if(x)return E.slice();var S=E.length,k=i?i(S):new E.constructor(S);return E.copy(k),k}),zt.exports),g=ji?xi:(ji=1,xi=function(E,x){var S=-1,k=E.length;for(x||(x=Array(k));++S<k;)x[S]=E[S];return x}),c=function(){if(Mi)return Oi;Mi=1;var E=St(),x=ne();return Oi=function(S,k){return E(S,x(S),k)}}(),s=function(){if(Ci)return Ai;Ci=1;var E=St(),x=su();return Ai=function(S,k){return E(S,x(S),k)}}(),d=zu(),v=function(){if(Ri)return Ei;Ri=1;var E=Du(),x=su(),S=Dt();return Ei=function(k){return E(k,S,x)}}(),y=At(),_=function(){if(Ti)return Pi;Ti=1;var E=Object.prototype.hasOwnProperty;return Pi=function(x){var S=x.length,k=new x.constructor(S);return S&&typeof x[0]=="string"&&E.call(x,"index")&&(k.index=x.index,k.input=x.input),k}}(),m=function(){if(Vi)return Ii;Vi=1;var E=Ht(),x=function(){if(Di)return Fi;Di=1;var U=Ht();return Fi=function(R,T){var H=T?U(R.buffer):R.buffer;return new R.constructor(H,R.byteOffset,R.byteLength)}}(),S=function(){if(zi)return Bi;zi=1;var U=/\w*$/;return Bi=function(R){var T=new R.constructor(R.source,U.exec(R));return T.lastIndex=R.lastIndex,T}}(),k=function(){if(Wi)return Hi;Wi=1;var U=gt(),R=U?U.prototype:void 0,T=R?R.valueOf:void 0;return Hi=function(H){return T?Object(T.call(H)):{}}}(),q=function(){if(Ni)return $i;Ni=1;var U=Ht();return $i=function(R,T){var H=T?U(R.buffer):R.buffer;return new R.constructor(H,R.byteOffset,R.length)}}();return Ii=function(U,R,T){var H=U.constructor;switch(R){case"[object ArrayBuffer]":return E(U);case"[object Boolean]":case"[object Date]":return new H(+U);case"[object DataView]":return x(U,T);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return q(U,T);case"[object Map]":case"[object Set]":return new H;case"[object Number]":case"[object String]":return new H(U);case"[object RegExp]":return S(U);case"[object Symbol]":return k(U)}}}(),w=function(){if(Ki)return qi;Ki=1;var E=function(){if(Yi)return Xi;Yi=1;var k=ht(),q=Object.create;return Xi=function(){function U(){}return function(R){if(!k(R))return{};if(q)return q(R);U.prototype=R;var T=new U;return U.prototype=void 0,T}}()}(),x=Qt(),S=Jt();return qi=function(k){return typeof k.constructor!="function"||S(k)?{}:E(x(k))}}(),C=X(),A=Kt(),P=function(){if(Zi)return Qi;Zi=1;var E=function(){if(Ji)return Gi;Ji=1;var U=At(),R=Z();return Gi=function(T){return R(T)&&U(T)=="[object Map]"}}(),x=Vt(),S=Xt(),k=S&&S.isMap,q=k?x(k):E;return Qi=q}(),M=ht(),F=function(){if(nu)return ru;nu=1;var E=function(){if(eu)return tu;eu=1;var U=At(),R=Z();return tu=function(T){return R(T)&&U(T)=="[object Set]"}}(),x=Vt(),S=Xt(),k=S&&S.isSet,q=k?x(k):E;return ru=q}(),B=yt(),G=Dt(),Y="[object Arguments]",J="[object Function]",pt="[object Object]",L={};return L[Y]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object DataView]"]=L["[object Boolean]"]=L["[object Date]"]=L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Map]"]=L["[object Number]"]=L[pt]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object Symbol]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Error]"]=L[J]=L["[object WeakMap]"]=!1,Bt=function E(x,S,k,q,U,R){var T,H=1&S,mt=2&S,Ku=4&S;if(k&&(T=U?k(x,q,U,R):k(x)),T!==void 0)return T;if(!M(x))return x;var ue=C(x);if(ue){if(T=_(x),!H)return g(x,T)}else{var at=y(x),se=at==J||at=="[object GeneratorFunction]";if(A(x))return p(x,H);if(at==pt||at==Y||se&&!U){if(T=mt||se?{}:w(x),!H)return mt?s(x,b(T,x)):c(x,h(T,x))}else{if(!L[at])return U?x:{};T=m(x,at,H)}}R||(R=new u);var ce=R.get(x);if(ce)return ce;R.set(x,T),F(x)?x.forEach(function(tt){T.add(E(tt,S,k,tt,x,R))}):P(x)&&x.forEach(function(tt,it){T.set(it,E(tt,S,k,it,x,R))});var fe=ue?void 0:(Ku?mt?v:d:mt?G:B)(x);return a(fe||x,function(tt,it){fe&&(tt=x[it=tt]),l(T,it,E(tt,S,k,it,x,R))}),T},Bt}var cu,fu,ct={},ft={},lu,lt={},hu,pu,Wt={},ds=function(){if(pu)return W;pu=1,Object.defineProperty(W,"__esModule",{value:!0}),W.ReactCSS=W.loop=W.handleActive=W.handleHover=W.hover=void 0;var e=u(function(){if(Za)return ut;Za=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.flattenNames=void 0;var l=g(function(){if(Le)return Te;Le=1;var s=nt(),d=X(),v=Z();return Te=function(y){return typeof y=="string"||!d(y)&&v(y)&&s(y)=="[object String]"}}()),h=g(Ft()),b=g(function(){if(Lr)return Tr;Lr=1;var s=nt(),d=Qt(),v=Z(),y=Function.prototype,_=Object.prototype,m=y.toString,w=_.hasOwnProperty,C=m.call(Object);return Tr=function(A){if(!v(A)||s(A)!="[object Object]")return!1;var P=d(A);if(P===null)return!0;var M=w.call(P,"constructor")&&P.constructor;return typeof M=="function"&&M instanceof M&&m.call(M)==C}}()),p=g(hs());function g(s){return s&&s.__esModule?s:{default:s}}var c=ut.flattenNames=function s(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=[];return(0,p.default)(d,function(y){Array.isArray(y)?s(y).map(function(_){return v.push(_)}):(0,b.default)(y)?(0,h.default)(y,function(_,m){_===!0&&v.push(m),v.push(m+"-"+_)}):(0,l.default)(y)&&v.push(y)}),v};return ut.default=c,ut}()),r=u(function(){if(uu)return st;uu=1,Object.defineProperty(st,"__esModule",{value:!0}),st.mergeClasses=void 0;var l=p(Ft()),h=p(function(){if(iu)return au;iu=1;var c=ps();return au=function(s){return c(s,5)}}()),b=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c};function p(c){return c&&c.__esModule?c:{default:c}}var g=st.mergeClasses=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=c.default&&(0,h.default)(c.default)||{};return s.map(function(v){var y=c[v];return y&&(0,l.default)(y,function(_,m){d[m]||(d[m]={}),d[m]=b({},d[m],y[m])}),v}),d};return st.default=g,st}()),t=function(){if(cu)return ct;cu=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.autoprefix=void 0;var l,h=(l=Ft())&&l.__esModule?l:{default:l},b=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},p={borderRadius:function(c){return{msBorderRadius:c,MozBorderRadius:c,OBorderRadius:c,WebkitBorderRadius:c,borderRadius:c}},boxShadow:function(c){return{msBoxShadow:c,MozBoxShadow:c,OBoxShadow:c,WebkitBoxShadow:c,boxShadow:c}},userSelect:function(c){return{WebkitTouchCallout:c,KhtmlUserSelect:c,MozUserSelect:c,msUserSelect:c,WebkitUserSelect:c,userSelect:c}},flex:function(c){return{WebkitBoxFlex:c,MozBoxFlex:c,WebkitFlex:c,msFlex:c,flex:c}},flexBasis:function(c){return{WebkitFlexBasis:c,flexBasis:c}},justifyContent:function(c){return{WebkitJustifyContent:c,justifyContent:c}},transition:function(c){return{msTransition:c,MozTransition:c,OTransition:c,WebkitTransition:c,transition:c}},transform:function(c){return{msTransform:c,MozTransform:c,OTransform:c,WebkitTransform:c,transform:c}},absolute:function(c){var s=c&&c.split(" ");return{position:"absolute",top:s&&s[0],right:s&&s[1],bottom:s&&s[2],left:s&&s[3]}},extend:function(c,s){return s[c]||{extend:c}}},g=ct.autoprefix=function(c){var s={};return(0,h.default)(c,function(d,v){var y={};(0,h.default)(d,function(_,m){var w=p[m];w?y=b({},y,w(_)):y[m]=_}),s[v]=y}),s};return ct.default=g,ct}(),n=u(t),o=u(function(){if(fu)return ft;fu=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.hover=void 0;var l,h=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},b=(l=j)&&l.__esModule?l:{default:l};function p(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||typeof s!="object"&&typeof s!="function"?c:s}var g=ft.hover=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,_,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var w=arguments.length,C=Array(w),A=0;A<w;A++)C[A]=arguments[A];return _=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(C))),m.state={hover:!1},m.handleMouseOver=function(){return m.setState({hover:!0})},m.handleMouseOut=function(){return m.setState({hover:!1})},m.render=function(){return b.default.createElement(s,{onMouseOver:m.handleMouseOver,onMouseOut:m.handleMouseOut},b.default.createElement(c,h({},m.props,m.state)))},p(m,_)}return function(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}(v,d),v}(b.default.Component)};return ft.default=g,ft}()),f=u(function(){if(lu)return lt;lu=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.active=void 0;var l,h=Object.assign||function(c){for(var s=1;s<arguments.length;s++){var d=arguments[s];for(var v in d)Object.prototype.hasOwnProperty.call(d,v)&&(c[v]=d[v])}return c},b=(l=j)&&l.__esModule?l:{default:l};function p(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||typeof s!="object"&&typeof s!="function"?c:s}var g=lt.active=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,_,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var w=arguments.length,C=Array(w),A=0;A<w;A++)C[A]=arguments[A];return _=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(C))),m.state={active:!1},m.handleMouseDown=function(){return m.setState({active:!0})},m.handleMouseUp=function(){return m.setState({active:!1})},m.render=function(){return b.default.createElement(s,{onMouseDown:m.handleMouseDown,onMouseUp:m.handleMouseUp},b.default.createElement(c,h({},m.props,m.state)))},p(m,_)}return function(y,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);y.prototype=Object.create(_&&_.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(y,_):y.__proto__=_)}(v,d),v}(b.default.Component)};return lt.default=g,lt}()),i=u((hu||(hu=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.default=function(l,h){var b={},p=function(g){var c=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];b[g]=c};return l===0&&p("first-child"),l===h-1&&p("last-child"),(l===0||l%2==0)&&p("even"),Math.abs(l%2)===1&&p("odd"),p("nth-child",l),b}),Wt));function u(l){return l&&l.__esModule?l:{default:l}}W.hover=o.default,W.handleHover=o.default,W.handleActive=f.default,W.loop=i.default;var a=W.ReactCSS=function(l){for(var h=arguments.length,b=Array(h>1?h-1:0),p=1;p<h;p++)b[p-1]=arguments[p];var g=(0,e.default)(b),c=(0,r.default)(l,g);return(0,n.default)(c)};return W.default=a,W}();const ot=I.PR(ds);var $t={},bs=function(e,r,t,n){var o=e+"-"+r+"-"+t+(n?"-server":"");if($t[o])return $t[o];var f=function(i,u,a,l){if(typeof document>"u"&&!l)return null;var h=l?new l:document.createElement("canvas");h.width=2*a,h.height=2*a;var b=h.getContext("2d");return b?(b.fillStyle=i,b.fillRect(0,0,h.width,h.height),b.fillStyle=u,b.fillRect(0,0,a,a),b.translate(a,a),b.fillRect(0,0,a,a),h.toDataURL()):null}(e,r,t,n);return $t[o]=f,f},du=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ie=function(e){var r=e.white,t=e.grey,n=e.size,o=e.renderers,f=e.borderRadius,i=e.boxShadow,u=e.children,a=ot({default:{grid:{borderRadius:f,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+bs(r,t,n,o.canvas)+") center left"}}});return j.isValidElement(u)?j.cloneElement(u,du({},u.props,{style:du({},u.props.style,a.grid)})):j.createElement("div",{style:a.grid})};ie.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var vs=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},gs=function(){function e(r,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function bu(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?e:r}var ys=function(){function e(){var r,t,n;(function(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e);for(var o=arguments.length,f=Array(o),i=0;i<o;i++)f[i]=arguments[i];return t=n=bu(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(f))),n.handleChange=function(u){var a=function(l,h,b,p,g){var c=g.clientWidth,s=g.clientHeight,d=typeof l.pageX=="number"?l.pageX:l.touches[0].pageX,v=typeof l.pageY=="number"?l.pageY:l.touches[0].pageY,y=d-(g.getBoundingClientRect().left+window.pageXOffset),_=v-(g.getBoundingClientRect().top+window.pageYOffset);if(b==="vertical"){var m;if(m=_<0?0:_>s?1:Math.round(100*_/s)/100,h.a!==m)return{h:h.h,s:h.s,l:h.l,a:m,source:"rgb"}}else{var w;if(p!==(w=y<0?0:y>c?1:Math.round(100*y/c)/100))return{h:h.h,s:h.s,l:h.l,a:w,source:"rgb"}}return null}(u,n.props.hsl,n.props.direction,n.props.a,n.container);a&&typeof n.props.onChange=="function"&&n.props.onChange(a,u)},n.handleMouseDown=function(u){n.handleChange(u),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleChange),window.removeEventListener("mouseup",n.handleMouseUp)},bu(n,t)}return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}(e,j.PureComponent||j.Component),gs(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,t=this.props.rgb,n=ot({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+`, 0) 0%,
|
|
7
7
|
rgba(`+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+`, 0) 0%,
|
|
8
8
|
rgba(`+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:vs({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return j.createElement("div",{style:n.alpha},j.createElement("div",{style:n.checkboard},j.createElement(ie,{renderers:this.props.renderers})),j.createElement("div",{style:n.gradient}),j.createElement("div",{style:n.container,ref:function(o){return r.container=o},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},j.createElement("div",{style:n.pointer},this.props.pointer?j.createElement(this.props.pointer,this.props):j.createElement("div",{style:n.slider}))))}}]),e}(),ms=function(){function e(r,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),_s=[38,40],ws=1,dt=function(){function e(r){(function(n,o){if(!(n instanceof o))throw new TypeError("Cannot call a class as a function")})(this,e);var t=function(n,o){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?n:o}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.handleBlur=function(){t.state.blurValue&&t.setState({value:t.state.blurValue,blurValue:null})},t.handleChange=function(n){t.setUpdatedValue(n.target.value,n)},t.handleKeyDown=function(n){var o,f,i=(f=n.target.value,Number(String(f).replace(/%/g,"")));if(!isNaN(i)&&(o=n.keyCode,_s.indexOf(o)>-1)){var u=t.getArrowOffset(),a=n.keyCode===38?i+u:i-u;t.setUpdatedValue(a,n)}},t.handleDrag=function(n){if(t.props.dragLabel){var o=Math.round(t.props.value+n.movementX);o>=0&&o<=t.props.dragMax&&t.props.onChange&&t.props.onChange(t.getValueObjectWithLabel(o),n)}},t.handleMouseDown=function(n){t.props.dragLabel&&(n.preventDefault(),t.handleDrag(n),window.addEventListener("mousemove",t.handleDrag),window.addEventListener("mouseup",t.handleMouseUp))},t.handleMouseUp=function(){t.unbindEventListeners()},t.unbindEventListeners=function(){window.removeEventListener("mousemove",t.handleDrag),window.removeEventListener("mouseup",t.handleMouseUp)},t.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},t.inputId="rc-editable-input-"+ws++,t}return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}(e,j.PureComponent||j.Component),ms(e,[{key:"componentDidUpdate",value:function(r,t){this.props.value===this.state.value||r.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(r){return t={},n=this.props.label,o=r,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t;var t,n,o}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(r,t){var n=this.props.label?this.getValueObjectWithLabel(r):r;this.props.onChange&&this.props.onChange(n,t),this.setState({value:r})}},{key:"render",value:function(){var r=this,t=ot({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return j.createElement("div",{style:t.wrap},j.createElement("input",{id:this.inputId,style:t.input,ref:function(n){return r.input=n},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?j.createElement("label",{htmlFor:this.inputId,style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),e}(),xs=function(){function e(r,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,o.key,o)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}();function vu(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?e:r}var js=function(){function e(){var r,t,n;(function(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e);for(var o=arguments.length,f=Array(o),i=0;i<o;i++)f[i]=arguments[i];return t=n=vu(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(f))),n.handleChange=function(u){var a=function(l,h,b,p){var g=p.clientWidth,c=p.clientHeight,s=typeof l.pageX=="number"?l.pageX:l.touches[0].pageX,d=typeof l.pageY=="number"?l.pageY:l.touches[0].pageY,v=s-(p.getBoundingClientRect().left+window.pageXOffset),y=d-(p.getBoundingClientRect().top+window.pageYOffset);if(h==="vertical"){var _;if(_=y<0?359:y>c?0:360*(-100*y/c+100)/100,b.h!==_)return{h:_,s:b.s,l:b.l,a:b.a,source:"hsl"}}else{var m;if(m=v<0?0:v>g?359:100*v/g*360/100,b.h!==m)return{h:m,s:b.s,l:b.l,a:b.a,source:"hsl"}}return null}(u,n.props.direction,n.props.hsl,n.container);a&&typeof n.props.onChange=="function"&&n.props.onChange(a,u)},n.handleMouseDown=function(u){n.handleChange(u),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},vu(n,t)}return function(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}(e,j.PureComponent||j.Component),xs(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,t=this.props.direction,n=t===void 0?"horizontal":t,o=ot({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:n==="vertical"});return j.createElement("div",{style:o.hue},j.createElement("div",{className:"hue-"+n,style:o.container,ref:function(f){return r.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},j.createElement("style",null,`
|
|
9
9
|
.hue-horizontal {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.6
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("react"),t=require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("react"),t=require("./CndX6WxBX5l14erU.cjs"),D=["Ok","Cancel"],h=i.memo(C=>{const{initialComments:O=null,onUpdateComments:m,context:b,onOption:d,onValidateOption:c,onDone:p,options:g=D,defaultOption:u=g?.[0],cancelOption:l="Cancel",sx:y,...F}=C,x=i.useMemo(()=>{const e=O??b?.()?.getComments();let n="";if(e&&e.content&&e.content.runs){const s=e.content.runs;for(let o=0;o<s.length;o++){const S=s[o];n+=S?.text}}return n},[]),[a,T]=i.useState(x),[j,P]=i.useState(!1),f=i.useCallback(async(e,n)=>null,[]),k=t.me(async e=>{const n=a===""?[]:a.split(`
|
|
7
7
|
`);if(e!==l){const s=[];for(let o=0;o<n.length;o++)s.push({text:n[o]});m?.({content:{runs:s}})}d?.(e,e===l,e===u),p?.()},[a,m,p,d,u,l]),v=t.me(e=>{T(e.target.value),f(e.target.value,null)},[c]),w=t.me(async e=>{let n=await Promise.resolve(c?.(e));try{n!==!1&&(n=await f(a,e))}catch{}return n??!0},[c,a]);return r.jsx(t.b4,{title:(x?"Edit":"Insert")+" Comments",options:g,onDone:p,onOption:e=>k(e),onValidateOption:w,defaultOption:u,cancelOption:l,autoFocusSel:".autoFocus",sx:{width:"480px",...y},...F,children:r.jsx(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:r.jsx(t.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:r.jsx(t.TextField,{label:"Comments",placeholder:"Enter a comment.",onFocus:e=>{j||e.target?.select(),P(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.$n(5))}, ${t.alpha("#fff",t.$n(5))})`}}},value:a,onChange:v,onContextMenu:e=>{e.stopPropagation()}})})})})});exports.CommentsDialog=h,exports.default=h;
|