@sheetxl/studio-vanilla 0.4.20 → 0.4.21
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/index.cjs +80 -2
- package/browser/cjs/{DlL3FUzHZ4HVF-yg.cjs → n6CXzSocLW_BCO8w.cjs} +6 -6
- package/browser/esm/{BFUWwMA9uskwVkew.mjs → NBuS53B7u8hItiXf.mjs} +933 -937
- package/browser/esm/index.mjs +176 -4
- package/cdn/assets/CY8njwo06MWkoPz2.js +21 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/browser/cjs/B3IrGavp2xDl72qi.cjs +0 -15
- package/browser/cjs/B4ScrvWBCXLzvNBz.cjs +0 -145
- package/browser/cjs/BBNggAKHDP4QyhrD.cjs +0 -6
- package/browser/cjs/BC_a9wiziJZdu6Au.cjs +0 -6
- package/browser/cjs/BDxykI6GcXpGGGMz.cjs +0 -42
- package/browser/cjs/BK6DsykAfJG4V-cJ.cjs +0 -6
- package/browser/cjs/BKow6xaj0GHFH5-V.cjs +0 -6
- package/browser/cjs/BOAxaoihJZZzZXhd.cjs +0 -6
- package/browser/cjs/BSlU398ba-ACAG1g.cjs +0 -11
- package/browser/cjs/BSoRD8INLnGqOd24.cjs +0 -7
- package/browser/cjs/BTxfWiE-FbVvlbXz.cjs +0 -11
- package/browser/cjs/BdltTXLt7iZT8sku.cjs +0 -6
- package/browser/cjs/Bf-D_AYDbEeRcsvz.cjs +0 -6
- package/browser/cjs/Bhlan81dumwgyb0S.cjs +0 -6
- package/browser/cjs/BlJixWFmG-z3n7dN.cjs +0 -6
- package/browser/cjs/BndDL5HS4RNIfwOd.cjs +0 -15
- package/browser/cjs/Buw8XeqL6XQwxqnQ.cjs +0 -32
- package/browser/cjs/C04_CccTUmfnv-ln.cjs +0 -6
- package/browser/cjs/C4AWzM1Uh9cuE1A9.cjs +0 -6
- package/browser/cjs/C5TLXtw93fBnRGm7.cjs +0 -378
- package/browser/cjs/CKa-Z1SfYc0pkIX2.cjs +0 -6
- package/browser/cjs/CLiSJrUNaSxa5Mn7.cjs +0 -16
- package/browser/cjs/CODi1uYlZ35lFLh9.cjs +0 -6
- package/browser/cjs/CSM5H5PTjrTaUgKK.cjs +0 -6
- package/browser/cjs/CTPgM-UqKCo4_hd1.cjs +0 -6
- package/browser/cjs/CW5RuE4isKBlwHmQ.cjs +0 -6
- package/browser/cjs/CX82d7xySIGMF7yM.cjs +0 -6
- package/browser/cjs/CXik9BghKbVW93T0.cjs +0 -124
- package/browser/cjs/Ccv5NHm99sYZnKE6.cjs +0 -7
- package/browser/cjs/CeH0O9zPmIGKjuT9.cjs +0 -19
- package/browser/cjs/CeLG8vmgbEkx4oD1.cjs +0 -6
- package/browser/cjs/CvYl4W2vXnvHHHoI.cjs +0 -6
- package/browser/cjs/D2J4RLkySRIXFbsa.cjs +0 -6
- package/browser/cjs/D2bZuhwA7aCEA0It.cjs +0 -6
- package/browser/cjs/D3hV1-QRPKCq0om8.cjs +0 -6
- package/browser/cjs/D6WxWENDWFXA_esX.cjs +0 -6
- package/browser/cjs/DEiPHs81OFnGI_GL.cjs +0 -6
- package/browser/cjs/DHiQ_sK8f-95Ft4X.cjs +0 -12
- package/browser/cjs/DMpqQkdCfg2AjXjR.cjs +0 -6
- package/browser/cjs/DUjgS2e8jjyhZF41.cjs +0 -6
- package/browser/cjs/DWIR1gQMiYyoUVpN.cjs +0 -7
- package/browser/cjs/DawJBg8LyIArkwdU.cjs +0 -6
- package/browser/cjs/Dn5IBCKPuNI0ypyZ.cjs +0 -6
- package/browser/cjs/Dp6UwWmFehNr8oln.cjs +0 -6
- package/browser/cjs/Dr95ZpJD5KpADFgL.cjs +0 -6
- package/browser/cjs/IxfGyvVPF27qqDF3.cjs +0 -6
- package/browser/cjs/P7jR9JAKpf5me2pK.cjs +0 -6
- package/browser/cjs/QonkTPcCkOm4Mvas.cjs +0 -6
- package/browser/cjs/T4zy652TD1RHF35F.cjs +0 -6
- package/browser/cjs/d6ywgaNww4eYXcem.cjs +0 -1501
- package/browser/cjs/dQ_t_glP-41DsAl-.cjs +0 -6
- package/browser/cjs/iIOyWIrlq0JiZyZX.cjs +0 -6
- package/browser/cjs/jX_tynzFoHAGPZOz.cjs +0 -6
- package/browser/cjs/nlzloz3gqSXQwTl5.cjs +0 -13
- package/browser/cjs/xPUjEhL251Mb-kyD.cjs +0 -161
- package/browser/cjs/zreCxaXU5L2iHQ99.cjs +0 -6
- package/browser/esm/2vIB3gG-Ct-P7aHY.mjs +0 -24
- package/browser/esm/B1qmfUH_Mmjtp3JU.mjs +0 -56
- package/browser/esm/B4ABRWtE31zu8-wJ.mjs +0 -21
- package/browser/esm/B6c_mMwG96t6MlCE.mjs +0 -10
- package/browser/esm/B7ohU_quBXWjiBEw.mjs +0 -3934
- package/browser/esm/BGJaDv3Ih-M1lFCD.mjs +0 -10
- package/browser/esm/BJkeQi-0GTlyPsTT.mjs +0 -52369
- package/browser/esm/BR2yOGMlFrbNy1I_.mjs +0 -472
- package/browser/esm/BRzxK84abQUinUUx.mjs +0 -10
- package/browser/esm/BS_-p_4yMCoR9FTp.mjs +0 -10
- package/browser/esm/BTbBL2qySirAIMIH.mjs +0 -1346
- package/browser/esm/Be9tvHxvnxnHNRa4.mjs +0 -12
- package/browser/esm/BfiejFYnvgVrrJPI.mjs +0 -10
- package/browser/esm/Bj4d7nd4XMugBsBg.mjs +0 -39
- package/browser/esm/Bmfu8IUFzu9KyCkA.mjs +0 -10
- package/browser/esm/BqgjdQ15LFcefVOZ.mjs +0 -425
- package/browser/esm/BuX3I7e8lbon25vL.mjs +0 -1702
- package/browser/esm/Bz0TojPavQ5NTjyD.mjs +0 -633
- package/browser/esm/CA33PnXmPNl09v6w.mjs +0 -84
- package/browser/esm/CPchasanZLQiASse.mjs +0 -10
- package/browser/esm/CSDiL3gZro2_BYTj.mjs +0 -10
- package/browser/esm/CT_g1GDC8_vSGR0o.mjs +0 -48
- package/browser/esm/CVvfga1mKyvzrvCr.mjs +0 -20
- package/browser/esm/CXSiJ-t5xz78GMwK.mjs +0 -10
- package/browser/esm/CYrbG4T_bwbc4Un4.mjs +0 -390
- package/browser/esm/CeSDjV2b8w7KibJw.mjs +0 -1466
- package/browser/esm/Cjp7NabZ26PaBnIT.mjs +0 -46
- package/browser/esm/CmLCIveZbsUFrSOH.mjs +0 -1665
- package/browser/esm/CpDyqZXpstRo2buW.mjs +0 -10
- package/browser/esm/CpQM3xIeariuqfsN.mjs +0 -47
- package/browser/esm/D2L4EVLdv-YwKGoi.mjs +0 -2344
- package/browser/esm/D7bqIxhqlHgc3Fih.mjs +0 -10
- package/browser/esm/DJx6S7TOhQyWdjS5.mjs +0 -10
- package/browser/esm/DR85glElKOQxCdEw.mjs +0 -820
- package/browser/esm/DWnopZ6R26qNLVyV.mjs +0 -10
- package/browser/esm/DaoqFa2lhVoZvd16.mjs +0 -421
- package/browser/esm/DgxaqoqInkc26SCt.mjs +0 -13208
- package/browser/esm/Dkf0_o7D9GkUfOZy.mjs +0 -147
- package/browser/esm/DlASr70UXrIpKZQO.mjs +0 -2174
- package/browser/esm/DmXkRZFP-WnV2YT9.mjs +0 -10
- package/browser/esm/DsabS3TdXZB45_O2.mjs +0 -1575
- package/browser/esm/Dvo7tXJcgnIXR-H7.mjs +0 -5582
- package/browser/esm/JdOvTKCcf5acl7vA.mjs +0 -10
- package/browser/esm/KUyPDaQO4D8lwO7O.mjs +0 -21
- package/browser/esm/KWZAe-e6U7Po4gCx.mjs +0 -44
- package/browser/esm/Qjkn8L0WuEQToAqm.mjs +0 -41
- package/browser/esm/RvEM-YtFLw3OMG0V.mjs +0 -29
- package/browser/esm/S2TZ7C9tQtDNeeGo.mjs +0 -10
- package/browser/esm/VYFESZA0Jc8C13ZT.mjs +0 -10
- package/browser/esm/_sUvLBCLSPhV2gF6.mjs +0 -10
- package/browser/esm/dWGGn8a_Ez8kVjgZ.mjs +0 -10
- package/browser/esm/dwY5oHtoGa_ktt9_.mjs +0 -1365
- package/browser/esm/giu63J2gO2p8JJIf.mjs +0 -10
- package/browser/esm/glJJyP0v0nlhAzqM.mjs +0 -10
- package/browser/esm/q5jyS6wUD9X8N3dI.mjs +0 -3755
- package/browser/esm/xbsV0YR05atX96kb.mjs +0 -10
- package/cdn/assets/2vIB3gG-Ct-P7aHY.js +0 -24
- package/cdn/assets/9GNkN_zTAHpnP-uq.js +0 -1575
- package/cdn/assets/B6c_mMwG96t6MlCE.js +0 -10
- package/cdn/assets/BBGivbkBG9VS_rL9.js +0 -3756
- package/cdn/assets/BCfZ9L4sqA1AhATQ.js +0 -46
- package/cdn/assets/BF0szY6Cs6OTiu4J.js +0 -22
- package/cdn/assets/BFvB3zk5mbav2VDI.js +0 -52200
- package/cdn/assets/BGJaDv3Ih-M1lFCD.js +0 -10
- package/cdn/assets/BGQ19MuEoWb0IGOg.js +0 -425
- package/cdn/assets/BKAFXvz5L4pnwrYW.js +0 -41
- package/cdn/assets/BRzxK84abQUinUUx.js +0 -10
- package/cdn/assets/BS_-p_4yMCoR9FTp.js +0 -10
- package/cdn/assets/BTbBL2qySirAIMIH.js +0 -1346
- package/cdn/assets/Be9tvHxvnxnHNRa4.js +0 -12
- package/cdn/assets/BfiejFYnvgVrrJPI.js +0 -10
- package/cdn/assets/Bj6XCGohW0EagXDQ.js +0 -1702
- package/cdn/assets/Bmfu8IUFzu9KyCkA.js +0 -10
- package/cdn/assets/Bnpwlyv8i_gnevRF.js +0 -3934
- package/cdn/assets/BnrLDtUMM23rGXOR.js +0 -390
- package/cdn/assets/Bz0TojPavQ5NTjyD.js +0 -633
- package/cdn/assets/C-saEYaoPI4gaVAh.js +0 -820
- package/cdn/assets/CBG91FlGgFb_NSW3.js +0 -1466
- package/cdn/assets/CO9eLmNMi1heLPMx.js +0 -2177
- package/cdn/assets/CPchasanZLQiASse.js +0 -10
- package/cdn/assets/CSDiL3gZro2_BYTj.js +0 -10
- package/cdn/assets/CXSiJ-t5xz78GMwK.js +0 -10
- package/cdn/assets/Cc_7h2P328hlBcqK.js +0 -472
- package/cdn/assets/CmLCIveZbsUFrSOH.js +0 -1665
- package/cdn/assets/CpDyqZXpstRo2buW.js +0 -10
- package/cdn/assets/Cv2EzXYuphY8Hlz2.js +0 -23
- package/cdn/assets/Cz1EUITrDS2M-lu2.js +0 -2346
- package/cdn/assets/D7bqIxhqlHgc3Fih.js +0 -10
- package/cdn/assets/DDWoPuN8AcPJHNxL.js +0 -58
- package/cdn/assets/DJx6S7TOhQyWdjS5.js +0 -10
- package/cdn/assets/DU8_1yjWbaEkXcbL.js +0 -12
- package/cdn/assets/DWnopZ6R26qNLVyV.js +0 -10
- package/cdn/assets/DYE-hWYAUd_f6MX8.js +0 -46
- package/cdn/assets/DaoqFa2lhVoZvd16.js +0 -421
- package/cdn/assets/DfpCefkqWIezzC8Z.js +0 -49
- package/cdn/assets/DgxaqoqInkc26SCt.js +0 -13208
- package/cdn/assets/DmXkRZFP-WnV2YT9.js +0 -10
- package/cdn/assets/EN4PLLABu5llaV3T.js +0 -21
- package/cdn/assets/JdOvTKCcf5acl7vA.js +0 -10
- package/cdn/assets/KUyPDaQO4D8lwO7O.js +0 -21
- package/cdn/assets/LbFq2oCowUDgCX8L.js +0 -43
- package/cdn/assets/S2TZ7C9tQtDNeeGo.js +0 -10
- package/cdn/assets/SPvRfEBpgC5rbgPz.js +0 -29
- package/cdn/assets/SsQFeDXfmfXHyy1R.js +0 -5582
- package/cdn/assets/TP7wJaHcKRz3uH_W.js +0 -50
- package/cdn/assets/UhBzX4vQryCjy6ce.js +0 -84
- package/cdn/assets/VYFESZA0Jc8C13ZT.js +0 -10
- package/cdn/assets/_sUvLBCLSPhV2gF6.js +0 -10
- package/cdn/assets/dWGGn8a_Ez8kVjgZ.js +0 -10
- package/cdn/assets/dwY5oHtoGa_ktt9_.js +0 -1365
- package/cdn/assets/giu63J2gO2p8JJIf.js +0 -10
- package/cdn/assets/glJJyP0v0nlhAzqM.js +0 -10
- package/cdn/assets/nsmFGDjpeUcAO4is.js +0 -149
- package/cdn/assets/xbsV0YR05atX96kb.js +0 -10
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./C5TLXtw93fBnRGm7.cjs"),w=["Ok","Cancel"],T=t.reactExports.memo(E=>{const{value:a=null,context:s,onOption:u,onValidateOption:D,onDone:c,onUpdate:d,options:x=w,defaultOption:g=x?.[0],cancelOption:m="Cancel",sx:R,...O}=E,f=t.reactExports.useMemo(()=>s?.getNames().findValidName("Range1"),[]),i=t.reactExports.useMemo(()=>{if(!a)return!0},[]),[n,j]=t.reactExports.useState({displayText:a?.getName()??f,errorText:null}),[o,V]=t.reactExports.useState({displayValue:a?.getRanges()??s?.selection()??null,errorText:null}),[y,N]=t.reactExports.useState(!1),C=t.reactExports.useCallback(async e=>!n.errorText&&!o.errorText,[s]),h=t.st((e,l,p)=>{if(!l){let r=null;i?r=s?.getNames().addReference(n?.displayText,o?.displayValue,!1):(a.getType()==="reference"&&a.doBatch(()=>{a.setName(n?.displayText),a.setReference(o?.displayValue)},`Edit Named '${n?.displayText}'`),r=a),r&&(r.select(),d(r,i))}u?.(e,l,p),c?.()},[s,n,o,c,u,g,m,d]),v=t.st(e=>{let l=null;try{s?.getNames().validateName(e)}catch(p){l=p.message}j({displayText:e,errorText:l})},[]),S=t.st(e=>{a&&a.getName().toLowerCase()===e.toLowerCase()||s?.getNames().validateName(e)},[s,a]),b=t.reactExports.useCallback(e=>{V({displayValue:e??null,errorText:null})},[]);return t.jsxRuntimeExports.jsx(t.$4,{title:(i?"Define":"Edit")+" Range",options:x,onOption:h,onValidateOption:C,defaultOption:g,cancelOption:m,autoFocusSel:".autoFocus",sx:{width:"460px",...R},...O,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),range:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.gA,{formName:"name",defaultInput:f,value:n.displayText,onChangeInput:v,onValidate:S,onFocus:e=>{y||e.target?.select(),N(!0)}}),t.jsxRuntimeExports.jsx(t.yA,{formName:"range",value:o.displayValue,onChangeInput:b,resolvedAddress:s.getNames().getRanges.bind(s.getNames()),onFocus:e=>{y||e.target?.select(),N(!0)}})]})})});exports.NamedReferenceDialog=T,exports.default=T;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={ERF:{s:"Returns the error function",p:{lowerLimit:{d:"is the lower bound for integrating ERF"},upperLimit:{d:"is the upper bound for integrating ERF",v:0}}},"ERF.PRECISE":{s:"Returns the error function",p:{x:{d:"is the lower bound for integrating ERF.PRECISE"}}},ERFC:{s:"Returns the complementary error function",p:{x:{d:"is the lower bound for integrating ERF"}}}};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("./C5TLXtw93fBnRGm7.cjs"),yt=w.vz(w.au());function Xt(e){return(Xt=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 qu=/^\s+/,Ku=/\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(qu,"").replace(Ku,"").toLowerCase();var s,d=!1;if($t[c])c=$t[c],d=!0;else if(c=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(s=$.rgb.exec(c))?{r:s[1],g:s[2],b:s[3]}:(s=$.rgba.exec(c))?{r:s[1],g:s[2],b:s[3],a:s[4]}:(s=$.hsl.exec(c))?{h:s[1],s:s[2],l:s[3]}:(s=$.hsla.exec(c))?{h:s[1],s:s[2],l:s[3],a:s[4]}:(s=$.hsv.exec(c))?{h:s[1],s:s[2],v:s[3]}:(s=$.hsva.exec(c))?{h:s[1],s:s[2],v:s[3],a:s[4]}:(s=$.hex8.exec(c))?{r:W(s[1]),g:W(s[2]),b:W(s[3]),a:de(s[4]),format:d?"name":"hex8"}:(s=$.hex6.exec(c))?{r:W(s[1]),g:W(s[2]),b:W(s[3]),format:d?"name":"hex"}:(s=$.hex4.exec(c))?{r:W(s[1]+""+s[1]),g:W(s[2]+""+s[2]),b:W(s[3]+""+s[3]),a:de(s[4]+""+s[4]),format:d?"name":"hex8"}:!!(s=$.hex3.exec(c))&&{r:W(s[1]+""+s[1]),g:W(s[2]+""+s[2]),b:W(s[3]+""+s[3]),format:d?"name":"hex"}}(t)),Xt(t)=="object"&&(G(t.r)&&G(t.g)&&G(t.b)?(n=t.r,o=t.g,f=t.b,i={r:255*z(n,255),g:255*z(o,255),b:255*z(f,255)},b=!0,p=String(t.r).substr(-1)==="%"?"prgb":"rgb"):G(t.h)&&G(t.s)&&G(t.v)?(a=dt(t.s),l=dt(t.v),i=function(c,s,d){c=6*z(c,360),s=z(s,100),d=z(d,100);var v=Math.floor(c),y=c-v,x=d*(1-s),m=d*(1-y*s),_=d*(1-(1-y)*s),A=v%6;return{r:255*[d,m,x,x,_,d][A],g:255*[_,d,d,m,x,x][A],b:255*[x,x,_,d,d,m][A]}}(t.h,a,l),b=!0,p="hsv"):G(t.h)&&G(t.s)&&G(t.l)&&(a=dt(t.s),h=dt(t.l),i=function(c,s,d){var v,y,x;function m(k,P,M){return M<0&&(M+=1),M>1&&(M-=1),M<1/6?k+6*(P-k)*M:M<.5?P:M<2/3?k+(P-k)*(2/3-M)*6:k}if(c=z(c,360),s=z(s,100),d=z(d,100),s===0)v=y=x=d;else{var _=d<.5?d*(1+s):d+s-d*s,A=2*d-_;v=m(A,_,c+1/3),y=m(A,_,c),x=m(A,_,c-1/3)}return{r:255*v,g:255*y,b:255*x}}(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 ce(e,r,t){e=z(e,255),r=z(r,255),t=z(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 fe(e,r,t){e=z(e,255),r=z(r,255),t=z(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 le(e,r,t,n){var o=[N(Math.round(e).toString(16)),N(Math.round(r).toString(16)),N(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 he(e,r,t,n){return[N(wu(n)),N(Math.round(e).toString(16)),N(Math.round(r).toString(16)),N(Math.round(t).toString(16))].join("")}function Gu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s-=r/100,t.s=Rt(t.s),O(t)}function Ju(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.s+=r/100,t.s=Rt(t.s),O(t)}function Qu(e){return O(e).desaturate(100)}function Zu(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l+=r/100,t.l=Rt(t.l),O(t)}function ts(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 es(e,r){r=r===0?0:r||10;var t=O(e).toHsl();return t.l-=r/100,t.l=Rt(t.l),O(t)}function rs(e,r){var t=O(e).toHsl(),n=(t.h+r)%360;return t.h=n<0?360+n:n,O(t)}function ns(e){var r=O(e).toHsl();return r.h=(r.h+180)%360,O(r)}function pe(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 os(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 as(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 is(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=fe(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=fe(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=ce(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=ce(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 le(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=[N(Math.round(r).toString(16)),N(Math.round(t).toString(16)),N(Math.round(n).toString(16)),N(wu(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*z(this._r,255))+"%",g:Math.round(100*z(this._g,255))+"%",b:Math.round(100*z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*z(this._r,255))+"%, "+Math.round(100*z(this._g,255))+"%, "+Math.round(100*z(this._b,255))+"%)":"rgba("+Math.round(100*z(this._r,255))+"%, "+Math.round(100*z(this._g,255))+"%, "+Math.round(100*z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(us[le(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var r="#"+he(this._r,this._g,this._b,this._a),t=r,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=O(e);t="#"+he(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(Zu,arguments)},brighten:function(){return this._applyModification(ts,arguments)},darken:function(){return this._applyModification(es,arguments)},desaturate:function(){return this._applyModification(Gu,arguments)},saturate:function(){return this._applyModification(Ju,arguments)},greyscale:function(){return this._applyModification(Qu,arguments)},spin:function(){return this._applyModification(rs,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(as,arguments)},complement:function(){return this._applyCombination(ns,arguments)},monochromatic:function(){return this._applyCombination(is,arguments)},splitcomplement:function(){return this._applyCombination(os,arguments)},triad:function(){return this._applyCombination(pe,[3])},tetrad:function(){return this._applyCombination(pe,[4])}},O.fromRatio=function(e,r){if(Xt(e)=="object"){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=n==="a"?e[n]:dt(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 $t=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"},us=O.hexNames=function(e){var r={};for(var t in e)e.hasOwnProperty(t)&&(r[e[t]]=t);return r}($t);function xu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function z(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 Rt(e){return Math.min(1,Math.max(0,e))}function W(e){return parseInt(e,16)}function N(e){return e.length==1?"0"+e:""+e}function dt(e){return e<=1&&(e=100*e+"%"),e}function wu(e){return Math.round(255*parseFloat(e)).toString(16)}function de(e){return W(e)/255}var Z,mt,xt,$=(mt="[\\s|\\(]+("+(Z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",xt="[\\s|\\(]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")[,|\\s]+("+Z+")\\s*\\)?",{CSS_UNIT:new RegExp(Z),rgb:new RegExp("rgb"+mt),rgba:new RegExp("rgba"+xt),hsl:new RegExp("hsl"+mt),hsla:new RegExp("hsla"+xt),hsv:new RegExp("hsv"+mt),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 G(e){return!!$.CSS_UNIT.exec(e)}var be,ve,ge,ye,me,xe,we,_e,je,Oe,Me,Ee,Se,ke,Ae,Ce,Re,Pe,Te,Le,Ue,Fe,ze,Be,De,He,We,$e,H={},at={};function _u(){if(ve)return be;ve=1;var e=typeof w.Ss=="object"&&w.Ss&&w.Ss.Object===Object&&w.Ss;return be=e}function Y(){if(ye)return ge;ye=1;var e=_u(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return ge=t}function bt(){if(xe)return me;xe=1;var e=Y().Symbol;return me=e}function et(){if(Ee)return Me;Ee=1;var e=bt(),r=function(){if(_e)return we;_e=1;var o=bt(),f=Object.prototype,i=f.hasOwnProperty,u=f.toString,a=o?o.toStringTag:void 0;return we=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(Oe)return je;Oe=1;var o=Object.prototype.toString;return je=function(f){return o.call(f)}}(),n=e?e.toStringTag:void 0;return Me=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":n&&n in Object(o)?r(o):t(o)}}function I(){if(ke)return Se;ke=1;var e=Array.isArray;return Se=e}function J(){return Ce?Ae:(Ce=1,Ae=function(e){return e!=null&&typeof e=="object"})}function ju(){if($e)return We;$e=1;var e=function(){if(He)return De;He=1;var i=et(),u=J();return De=function(a){return u(a)&&i(a)=="[object Arguments]"}}(),r=J(),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 We=f}var Ne,Ie,Ve,Xe,Ye,qe,Ke,Ge,Je,Qe,Ze,Pt={exports:{}};function Yt(){return Ve||(Ve=1,e=Pt,r=Pt.exports,t=Y(),n=Ie?Ne:(Ie=1,Ne=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),Pt.exports;var e,r,t,n,o,f,i,u}function Ou(){if(Ye)return Xe;Ye=1;var e=/^(?:0|[1-9]\d*)$/;return Xe=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 qt(){return Ke?qe:(Ke=1,qe=function(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=9007199254740991})}function Nt(){return Ze?Qe:(Ze=1,Qe=function(e){return function(r){return e(r)}})}var tr,er,rr,nr,or,ar,ir,ur,sr,cr,fr,lr,hr,pr,dr,br,vr,gr,yr,mr,xr,wr,_r,jr,Or,Mr,Er,Sr,kr,Ar,Cr,Rr,Pr,Tr,Lr,Ur,Fr,zr,Br,Dr,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,xn,wn,_n,jn,On,Mn,En,Sn,kn,An,Cn,Rn,Pn,Tn,Ln,Un,Fn,zn,Bn,Dn,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,xo,wo,_o,jo,Oo,Mo,Eo,So,ko,Ao,Co,Ro,Po,To,Lo,Uo,Fo,zo,Bo,Do,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,xa,wa,_a,ja,Oa,Ma,Ea,Sa,ka,Aa,Ca,Ra,Pa,Ta,La,Ua,Fa,za,Ba,Da,Ha,Wa,$a,Na,Ia,Va,Xa,Ya,qa,Ka,Ga,Ja,Tt={exports:{}};function It(){return tr||(tr=1,e=Tt,r=Tt.exports,t=_u(),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),Tt.exports;var e,r,t,n,o,f,i}function Mu(){if(rr)return er;rr=1;var e=function(){if(Je)return Ge;Je=1;var f=et(),i=qt(),u=J(),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,Ge=function(l){return u(l)&&i(l.length)&&!!a[f(l)]}}(),r=Nt(),t=It(),n=t&&t.isTypedArray,o=n?r(n):e;return er=o}function Eu(){if(or)return nr;or=1;var e=Be?ze:(Be=1,ze=function(u,a){for(var l=-1,h=Array(u);++l<u;)h[l]=a(l);return h}),r=ju(),t=I(),n=Yt(),o=Ou(),f=Mu(),i=Object.prototype.hasOwnProperty;return nr=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 Kt(){if(ir)return ar;ir=1;var e=Object.prototype;return ar=function(r){var t=r&&r.constructor;return r===(typeof t=="function"&&t.prototype||e)}}function Su(){return sr?ur:(sr=1,ur=function(e,r){return function(t){return e(r(t))}})}function ft(){return dr?pr:(dr=1,pr=function(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")})}function ku(){if(vr)return br;vr=1;var e=et(),r=ft();return br=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 St(){if(yr)return gr;yr=1;var e=ku(),r=qt();return gr=function(t){return t!=null&&r(t.length)&&!e(t)}}function vt(){if(xr)return mr;xr=1;var e=Eu(),r=function(){if(hr)return lr;hr=1;var n=Kt(),o=function(){if(fr)return cr;fr=1;var i=Su()(Object.keys,Object);return cr=i}(),f=Object.prototype.hasOwnProperty;return lr=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=St();return mr=function(n){return t(n)?e(n):r(n)}}function Au(){if(_r)return wr;_r=1;var e=function(){if(Fe)return Ue;Fe=1;var t=(Le?Te:(Le=1,Te=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 Ue=t}(),r=vt();return wr=function(t,n){return t&&e(t,n,r)}}function Cu(){return Or?jr:(Or=1,jr=function(e){return e})}function Lt(){if(kr)return Sr;kr=1;var e=Au(),r=function(){if(Er)return Mr;Er=1;var t=Cu();return Mr=function(n){return typeof n=="function"?n:t}}();return Sr=function(t,n){return t&&e(t,r(n))}}function Gt(){if(Cr)return Ar;Cr=1;var e=Su()(Object.getPrototypeOf,Object);return Ar=e}function Ru(){return Lr?Tr:(Lr=1,Tr=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 Jt(){return Br?zr:(Br=1,zr=function(e,r){return e===r||e!=e&&r!=r})}function wt(){if(Hr)return Dr;Hr=1;var e=Jt();return Dr=function(r,t){for(var n=r.length;n--;)if(e(r[n][0],t))return n;return-1}}function Mt(){if(Gr)return Kr;Gr=1;var e=Fr?Ur:(Fr=1,Ur=function(){this.__data__=[],this.size=0}),r=function(){if($r)return Wr;$r=1;var i=wt(),u=Array.prototype.splice;return Wr=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(Ir)return Nr;Ir=1;var i=wt();return Nr=function(u){var a=this.__data__,l=i(a,u);return l<0?void 0:a[l][1]}}(),n=function(){if(Xr)return Vr;Xr=1;var i=wt();return Vr=function(u){return i(this.__data__,u)>-1}}(),o=function(){if(qr)return Yr;qr=1;var i=wt();return Yr=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,Kr=f}function Pu(){if(ln)return fn;ln=1;var e=Function.prototype.toString;return fn=function(r){if(r!=null){try{return e.call(r)}catch{}try{return r+""}catch{}}return""}}function tt(){if(gn)return vn;gn=1;var e=function(){if(pn)return hn;pn=1;var t=ku(),n=function(){if(cn)return sn;cn=1;var p,g=function(){if(un)return an;un=1;var s=Y()["__core-js_shared__"];return an=s}(),c=(p=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"";return sn=function(s){return!!c&&c in s}}(),o=ft(),f=Pu(),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 hn=function(p){return!(!o(p)||n(p))&&(t(p)?b:i).test(f(p))}}(),r=bn?dn:(bn=1,dn=function(t,n){return t?.[n]});return vn=function(t,n){var o=r(t,n);return e(o)?o:void 0}}function Qt(){if(mn)return yn;mn=1;var e=tt()(Y(),"Map");return yn=e}function _t(){if(wn)return xn;wn=1;var e=tt()(Object,"create");return xn=e}function jt(){if(Dn)return Bn;Dn=1;var e=zn?Fn:(zn=1,Fn=function(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null});return Bn=function(r,t){var n=r.__data__;return e(t)?n[typeof t=="string"?"string":"hash"]:n.map}}function Zt(){if(Kn)return qn;Kn=1;var e=function(){if(Un)return Ln;Un=1;var i=function(){if(Tn)return Pn;Tn=1;var l=function(){if(jn)return _n;jn=1;var s=_t();return _n=function(){this.__data__=s?s(null):{},this.size=0}}(),h=Mn?On:(Mn=1,On=function(s){var d=this.has(s)&&delete this.__data__[s];return this.size-=d?1:0,d}),b=function(){if(Sn)return En;Sn=1;var s=_t(),d=Object.prototype.hasOwnProperty;return En=function(v){var y=this.__data__;if(s){var x=y[v];return x==="__lodash_hash_undefined__"?void 0:x}return d.call(y,v)?y[v]:void 0}}(),p=function(){if(An)return kn;An=1;var s=_t(),d=Object.prototype.hasOwnProperty;return kn=function(v){var y=this.__data__;return s?y[v]!==void 0:d.call(y,v)}}(),g=function(){if(Rn)return Cn;Rn=1;var s=_t();return Cn=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,Pn=c}(),u=Mt(),a=Qt();return Ln=function(){this.size=0,this.__data__={hash:new i,map:new(a||u),string:new i}}}(),r=function(){if(Wn)return Hn;Wn=1;var i=jt();return Hn=function(u){var a=i(this,u).delete(u);return this.size-=a?1:0,a}}(),t=function(){if(Nn)return $n;Nn=1;var i=jt();return $n=function(u){return i(this,u).get(u)}}(),n=function(){if(Vn)return In;Vn=1;var i=jt();return In=function(u){return i(this,u).has(u)}}(),o=function(){if(Yn)return Xn;Yn=1;var i=jt();return Xn=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,qn=f}function te(){if(Zn)return Qn;Zn=1;var e=Mt(),r=function(){if(Qr)return Jr;Qr=1;var u=Mt();return Jr=function(){this.__data__=new u,this.size=0}}(),t=tn?Zr:(tn=1,Zr=function(u){var a=this.__data__,l=a.delete(u);return this.size=a.size,l}),n=rn?en:(rn=1,en=function(u){return this.__data__.get(u)}),o=on?nn:(on=1,nn=function(u){return this.__data__.has(u)}),f=function(){if(Jn)return Gn;Jn=1;var u=Mt(),a=Qt(),l=Zt();return Gn=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,Qn=i}function Qa(){if(lo)return fo;lo=1;var e=function(){if(ao)return oo;ao=1;var n=Zt(),o=eo?to:(eo=1,to=function(u){return this.__data__.set(u,"__lodash_hash_undefined__"),this}),f=no?ro:(no=1,ro=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,oo=i}(),r=uo?io:(uo=1,io=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=co?so:(co=1,so=function(n,o){return n.has(o)});return fo=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 x=l?i(y,v,c,o,n,a):i(v,y,c,n,o,a);if(x!==void 0){if(x)continue;s=!1;break}if(d){if(!r(o,function(m,_){if(!t(d,_)&&(v===m||u(v,m,f,i,a)))return d.push(_)})){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 Tu(){if(po)return ho;po=1;var e=Y().Uint8Array;return ho=e}function Lu(){return _o?wo:(_o=1,wo=function(e,r){for(var t=-1,n=r.length,o=e.length;++t<n;)e[o+t]=r[t];return e})}function Uu(){if(Oo)return jo;Oo=1;var e=Lu(),r=I();return jo=function(t,n,o){var f=n(t);return r(t)?f:e(f,o(t))}}function Fu(){return ko?So:(ko=1,So=function(){return[]})}function ee(){if(Co)return Ao;Co=1;var e=Eo?Mo:(Eo=1,Mo=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=Fu(),t=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return Ao=n?function(o){return o==null?[]:(o=Object(o),e(n(o),function(f){return t.call(o,f)}))}:r}function zu(){if(Po)return Ro;Po=1;var e=Uu(),r=ee(),t=vt();return Ro=function(n){return e(n,t,r)}}function Et(){if(Io)return No;Io=1;var e=function(){if(Fo)return Uo;Fo=1;var y=tt()(Y(),"DataView");return Uo=y}(),r=Qt(),t=function(){if(Bo)return zo;Bo=1;var y=tt()(Y(),"Promise");return zo=y}(),n=function(){if(Ho)return Do;Ho=1;var y=tt()(Y(),"Set");return Do=y}(),o=function(){if($o)return Wo;$o=1;var y=tt()(Y(),"WeakMap");return Wo=y}(),f=et(),i=Pu(),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 x=f(y),m=x=="[object Object]"?y.constructor:void 0,_=m?i(m):"";if(_)switch(_){case p:return b;case g:return u;case c:return a;case s:return l;case d:return h}return x}),No=v}function ss(){if(Xo)return Vo;Xo=1;var e=te(),r=Qa(),t=function(){if(xo)return mo;xo=1;var p=bt(),g=Tu(),c=Jt(),s=Qa(),d=vo?bo:(vo=1,bo=function(m){var _=-1,A=Array(m.size);return m.forEach(function(k,P){A[++_]=[P,k]}),A}),v=yo?go:(yo=1,go=function(m){var _=-1,A=Array(m.size);return m.forEach(function(k){A[++_]=k}),A}),y=p?p.prototype:void 0,x=y?y.valueOf:void 0;return mo=function(m,_,A,k,P,M,F){switch(A){case"[object DataView]":if(m.byteLength!=_.byteLength||m.byteOffset!=_.byteOffset)return!1;m=m.buffer,_=_.buffer;case"[object ArrayBuffer]":return!(m.byteLength!=_.byteLength||!M(new g(m),new g(_)));case"[object Boolean]":case"[object Date]":case"[object Number]":return c(+m,+_);case"[object Error]":return m.name==_.name&&m.message==_.message;case"[object RegExp]":case"[object String]":return m==_+"";case"[object Map]":var B=d;case"[object Set]":var q=1&k;if(B||(B=v),m.size!=_.size&&!q)return!1;var V=F.get(m);if(V)return V==_;k|=2,F.set(m,_);var K=s(B(m),B(_),k,P,M,F);return F.delete(m),K;case"[object Symbol]":if(x)return x.call(m)==x.call(_)}return!1}}(),n=function(){if(Lo)return To;Lo=1;var p=zu(),g=Object.prototype.hasOwnProperty;return To=function(c,s,d,v,y,x){var m=1&d,_=p(c),A=_.length;if(A!=p(s).length&&!m)return!1;for(var k=A;k--;){var P=_[k];if(!(m?P in s:g.call(s,P)))return!1}var M=x.get(c),F=x.get(s);if(M&&F)return M==s&&F==c;var B=!0;x.set(c,s),x.set(s,c);for(var q=m;++k<A;){var V=c[P=_[k]],K=s[P];if(v)var lt=m?v(K,V,P,s,c,x):v(V,K,P,c,s,x);if(!(lt===void 0?V===K||y(V,K,d,v,x):lt)){B=!1;break}q||(q=P=="constructor")}if(B&&!q){var L=c.constructor,C=s.constructor;L==C||!("constructor"in c)||!("constructor"in s)||typeof L=="function"&&L instanceof L&&typeof C=="function"&&C instanceof C||(B=!1)}return x.delete(c),x.delete(s),B}}(),o=Et(),f=I(),i=Yt(),u=Mu(),a="[object Arguments]",l="[object Array]",h="[object Object]",b=Object.prototype.hasOwnProperty;return Vo=function(p,g,c,s,d,v){var y=f(p),x=f(g),m=y?l:o(p),_=x?l:o(g),A=(m=m==a?h:m)==h,k=(_=_==a?h:_)==h,P=m==_;if(P&&i(p)){if(!i(g))return!1;y=!0,A=!1}if(P&&!A)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=A&&b.call(p,"__wrapped__"),F=k&&b.call(g,"__wrapped__");if(M||F){var B=M?p.value():p,q=F?g.value():g;return v||(v=new e),d(B,q,c,s,v)}}return!!P&&(v||(v=new e),n(p,g,c,s,d,v))}}function Bu(){if(qo)return Yo;qo=1;var e=ss(),r=J();return Yo=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 Du(){if(Qo)return Jo;Qo=1;var e=ft();return Jo=function(r){return r==r&&!e(r)}}function Hu(){return ra?ea:(ra=1,ea=function(e,r){return function(t){return t!=null&&t[e]===r&&(r!==void 0||e in Object(t))}})}function re(){if(ia)return aa;ia=1;var e=et(),r=J();return aa=function(t){return typeof t=="symbol"||r(t)&&e(t)=="[object Symbol]"}}function ne(){if(sa)return ua;sa=1;var e=I(),r=re(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;return ua=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 Wu(){if(xa)return ma;xa=1;var e=I(),r=ne(),t=function(){if(da)return pa;da=1;var o=function(){if(ha)return la;ha=1;var a=function(){if(fa)return ca;fa=1;var l=Zt();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,ca=h}();return la=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 pa=u}(),n=function(){if(ya)return ga;ya=1;var o=function(){if(va)return ba;va=1;var f=bt(),i=Ru(),u=I(),a=re(),l=f?f.prototype:void 0,h=l?l.toString:void 0;return ba=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 ga=function(f){return f==null?"":o(f)}}();return ma=function(o,f){return e(o)?o:r(o,f)?[o]:t(n(o))}}function kt(){if(_a)return wa;_a=1;var e=re();return wa=function(r){if(typeof r=="string"||e(r))return r;var t=r+"";return t=="0"&&1/r==-1/0?"-0":t}}function $u(){if(Oa)return ja;Oa=1;var e=Wu(),r=kt();return ja=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 cs(){if(La)return Ta;La=1;var e=Bu(),r=function(){if(Ea)return Ma;Ea=1;var u=$u();return Ma=function(a,l,h){var b=a==null?void 0:u(a,l);return b===void 0?h:b}}(),t=function(){if(Pa)return Ra;Pa=1;var u=ka?Sa:(ka=1,Sa=function(l,h){return l!=null&&h in Object(l)}),a=function(){if(Ca)return Aa;Ca=1;var l=Wu(),h=ju(),b=I(),p=Ou(),g=qt(),c=kt();return Aa=function(s,d,v){for(var y=-1,x=(d=l(d,s)).length,m=!1;++y<x;){var _=c(d[y]);if(!(m=s!=null&&v(s,_)))break;s=s[_]}return m||++y!=x?m:!!(x=s==null?0:s.length)&&g(x)&&p(_,x)&&(b(s)||h(s))}}();return Ra=function(l,h){return l!=null&&a(l,h,u)}}(),n=ne(),o=Du(),f=Hu(),i=kt();return Ta=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 fs(){if(Ga)return Ka;Ga=1;var e=Ru(),r=function(){if($a)return Wa;$a=1;var o=function(){if(oa)return na;oa=1;var l=function(){if(Go)return Ko;Go=1;var p=te(),g=Bu();return Ko=function(c,s,d,v){var y=d.length,x=y,m=!v;if(c==null)return!x;for(c=Object(c);y--;){var _=d[y];if(m&&_[2]?_[1]!==c[_[0]]:!(_[0]in c))return!1}for(;++y<x;){var A=(_=d[y])[0],k=c[A],P=_[1];if(m&&_[2]){if(k===void 0&&!(A in c))return!1}else{var M=new p;if(v)var F=v(k,P,A,c,s,M);if(!(F===void 0?g(P,k,3,v,M):F))return!1}}return!0}}(),h=function(){if(ta)return Zo;ta=1;var p=Du(),g=vt();return Zo=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=Hu();return na=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=cs(),i=Cu(),u=I(),a=function(){if(Ha)return Da;Ha=1;var l=Fa?Ua:(Fa=1,Ua=function(g){return function(c){return c?.[g]}}),h=function(){if(Ba)return za;Ba=1;var g=$u();return za=function(c){return function(s){return g(s,c)}}}(),b=ne(),p=kt();return Da=function(g){return b(g)?l(p(g)):h(g)}}();return Wa=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(qa)return Ya;qa=1;var o=function(){if(Xa)return Va;Xa=1;var i=Au(),u=function(){if(Ia)return Na;Ia=1;var a=St();return Na=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 Va=u}(),f=St();return Ya=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=I();return Ka=function(o,f){return(n(o)?e:t)(o,r(f,3))}}var Za,ti,ei,ri,ni,oi,ai,ii,ui,si,ci,fi,li,hi,pi,di,bi,vi,gi,yi,it={};function Nu(){if(oi)return ni;oi=1;var e=function(){if(ri)return ei;ri=1;var r=tt(),t=function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}}();return ei=t}();return ni=function(r,t,n){t=="__proto__"&&e?e(r,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):r[t]=n}}function Iu(){if(ii)return ai;ii=1;var e=Nu(),r=Jt(),t=Object.prototype.hasOwnProperty;return ai=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 Ot(){if(si)return ui;si=1;var e=Iu(),r=Nu();return ui=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 Ut(){if(vi)return bi;vi=1;var e=Eu(),r=function(){if(di)return pi;di=1;var n=ft(),o=Kt(),f=hi?li:(hi=1,li=function(u){var a=[];if(u!=null)for(var l in Object(u))a.push(l);return a}),i=Object.prototype.hasOwnProperty;return pi=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=St();return bi=function(n){return t(n)?e(n,!0):r(n)}}var mi,xi,wi,_i,ji,Oi,Mi,Ei,Si,ki,Ai,Ci,Ri,Pi,Ti,Li,Ui,Fi,zi,Bi,Di,Hi,Wi,$i,Ni,Ii,Vi,Xi,Yi,qi,Ki,Gi,Ji,Qi,Zi,tu,eu,Ft,ru,nu,ou,au,zt={exports:{}};function iu(){if(Mi)return Oi;Mi=1;var e=Lu(),r=Gt(),t=ee(),n=Fu(),o=Object.getOwnPropertySymbols;return Oi=o?function(f){for(var i=[];f;)e(i,t(f)),f=r(f);return i}:n}function Bt(){if(Ti)return Pi;Ti=1;var e=Tu();return Pi=function(r){var t=new r.constructor(r.byteLength);return new e(t).set(new e(r)),t}}function ls(){if(ru)return Ft;ru=1;var e,r,t,n,o,f,i,u=te(),a=ti?Za:(ti=1,Za=function(C,j){for(var E=-1,S=C==null?0:C.length;++E<S&&j(C[E],E,C)!==!1;);return C}),l=Iu(),h=function(){if(fi)return ci;fi=1;var C=Ot(),j=vt();return ci=function(E,S){return E&&C(S,j(S),E)}}(),b=function(){if(yi)return gi;yi=1;var C=Ot(),j=Ut();return gi=function(E,S){return E&&C(S,j(S),E)}}(),p=(mi||(mi=1,e=zt,r=zt.exports,t=Y(),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(C,j){if(j)return C.slice();var E=C.length,S=i?i(E):new C.constructor(E);return C.copy(S),S}),zt.exports),g=wi?xi:(wi=1,xi=function(C,j){var E=-1,S=C.length;for(j||(j=Array(S));++E<S;)j[E]=C[E];return j}),c=function(){if(ji)return _i;ji=1;var C=Ot(),j=ee();return _i=function(E,S){return C(E,j(E),S)}}(),s=function(){if(Si)return Ei;Si=1;var C=Ot(),j=iu();return Ei=function(E,S){return C(E,j(E),S)}}(),d=zu(),v=function(){if(Ai)return ki;Ai=1;var C=Uu(),j=iu(),E=Ut();return ki=function(S){return C(S,E,j)}}(),y=Et(),x=function(){if(Ri)return Ci;Ri=1;var C=Object.prototype.hasOwnProperty;return Ci=function(j){var E=j.length,S=new j.constructor(E);return E&&typeof j[0]=="string"&&C.call(j,"index")&&(S.index=j.index,S.input=j.input),S}}(),m=function(){if(Ni)return $i;Ni=1;var C=Bt(),j=function(){if(Ui)return Li;Ui=1;var U=Bt();return Li=function(R,T){var D=T?U(R.buffer):R.buffer;return new R.constructor(D,R.byteOffset,R.byteLength)}}(),E=function(){if(zi)return Fi;zi=1;var U=/\w*$/;return Fi=function(R){var T=new R.constructor(R.source,U.exec(R));return T.lastIndex=R.lastIndex,T}}(),S=function(){if(Di)return Bi;Di=1;var U=bt(),R=U?U.prototype:void 0,T=R?R.valueOf:void 0;return Bi=function(D){return T?Object(T.call(D)):{}}}(),X=function(){if(Wi)return Hi;Wi=1;var U=Bt();return Hi=function(R,T){var D=T?U(R.buffer):R.buffer;return new R.constructor(D,R.byteOffset,R.length)}}();return $i=function(U,R,T){var D=U.constructor;switch(R){case"[object ArrayBuffer]":return C(U);case"[object Boolean]":case"[object Date]":return new D(+U);case"[object DataView]":return j(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 X(U,T);case"[object Map]":case"[object Set]":return new D;case"[object Number]":case"[object String]":return new D(U);case"[object RegExp]":return E(U);case"[object Symbol]":return S(U)}}}(),_=function(){if(Yi)return Xi;Yi=1;var C=function(){if(Vi)return Ii;Vi=1;var S=ft(),X=Object.create;return Ii=function(){function U(){}return function(R){if(!S(R))return{};if(X)return X(R);U.prototype=R;var T=new U;return U.prototype=void 0,T}}()}(),j=Gt(),E=Kt();return Xi=function(S){return typeof S.constructor!="function"||E(S)?{}:C(j(S))}}(),A=I(),k=Yt(),P=function(){if(Ji)return Gi;Ji=1;var C=function(){if(Ki)return qi;Ki=1;var U=Et(),R=J();return qi=function(T){return R(T)&&U(T)=="[object Map]"}}(),j=Nt(),E=It(),S=E&&E.isMap,X=S?j(S):C;return Gi=X}(),M=ft(),F=function(){if(eu)return tu;eu=1;var C=function(){if(Zi)return Qi;Zi=1;var U=Et(),R=J();return Qi=function(T){return R(T)&&U(T)=="[object Set]"}}(),j=Nt(),E=It(),S=E&&E.isSet,X=S?j(S):C;return tu=X}(),B=vt(),q=Ut(),V="[object Arguments]",K="[object Function]",lt="[object Object]",L={};return L[V]=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[lt]=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[K]=L["[object WeakMap]"]=!1,Ft=function C(j,E,S,X,U,R){var T,D=1&E,gt=2&E,Yu=4&E;if(S&&(T=U?S(j,X,U,R):S(j)),T!==void 0)return T;if(!M(j))return j;var ae=A(j);if(ae){if(T=x(j),!D)return g(j,T)}else{var nt=y(j),ie=nt==K||nt=="[object GeneratorFunction]";if(k(j))return p(j,D);if(nt==lt||nt==V||ie&&!U){if(T=gt||ie?{}:_(j),!D)return gt?s(j,b(T,j)):c(j,h(T,j))}else{if(!L[nt])return U?j:{};T=m(j,nt,D)}}R||(R=new u);var ue=R.get(j);if(ue)return ue;R.set(j,T),F(j)?j.forEach(function(Q){T.add(C(Q,E,S,Q,j,R))}):P(j)&&j.forEach(function(Q,ot){T.set(ot,C(Q,E,S,ot,j,R))});var se=ae?void 0:(Yu?gt?v:d:gt?q:B)(j);return a(se||j,function(Q,ot){se&&(Q=j[ot=Q]),l(T,ot,C(Q,E,S,ot,j,R))}),T},Ft}var uu,su,ut={},st={},cu,ct={},fu,lu,Dt={},hs=function(){if(lu)return H;lu=1,Object.defineProperty(H,"__esModule",{value:!0}),H.ReactCSS=H.loop=H.handleActive=H.handleHover=H.hover=void 0;var e=u(function(){if(Ja)return at;Ja=1,Object.defineProperty(at,"__esModule",{value:!0}),at.flattenNames=void 0;var l=g(function(){if(Pe)return Re;Pe=1;var s=et(),d=I(),v=J();return Re=function(y){return typeof y=="string"||!d(y)&&v(y)&&s(y)=="[object String]"}}()),h=g(Lt()),b=g(function(){if(Pr)return Rr;Pr=1;var s=et(),d=Gt(),v=J(),y=Function.prototype,x=Object.prototype,m=y.toString,_=x.hasOwnProperty,A=m.call(Object);return Rr=function(k){if(!v(k)||s(k)!="[object Object]")return!1;var P=d(k);if(P===null)return!0;var M=_.call(P,"constructor")&&P.constructor;return typeof M=="function"&&M instanceof M&&m.call(M)==A}}()),p=g(fs());function g(s){return s&&s.__esModule?s:{default:s}}var c=at.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(x){return v.push(x)}):(0,b.default)(y)?(0,h.default)(y,function(x,m){x===!0&&v.push(m),v.push(m+"-"+x)}):(0,l.default)(y)&&v.push(y)}),v};return at.default=c,at}()),r=u(function(){if(au)return it;au=1,Object.defineProperty(it,"__esModule",{value:!0}),it.mergeClasses=void 0;var l=p(Lt()),h=p(function(){if(ou)return nu;ou=1;var c=ls();return nu=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=it.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(x,m){d[m]||(d[m]={}),d[m]=b({},d[m],y[m])}),v}),d};return it.default=g,it}()),t=function(){if(uu)return ut;uu=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.autoprefix=void 0;var l,h=(l=Lt())&&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=ut.autoprefix=function(c){var s={};return(0,h.default)(c,function(d,v){var y={};(0,h.default)(d,function(x,m){var _=p[m];_?y=b({},y,_(x)):y[m]=x}),s[v]=y}),s};return ut.default=g,ut}(),n=u(t),o=u(function(){if(su)return st;su=1,Object.defineProperty(st,"__esModule",{value:!0}),st.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=w.yt)&&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=st.hover=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,x,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var _=arguments.length,A=Array(_),k=0;k<_;k++)A[k]=arguments[k];return x=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(A))),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,x)}return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}(v,d),v}(b.default.Component)};return st.default=g,st}()),f=u(function(){if(cu)return ct;cu=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.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=w.yt)&&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=ct.active=function(c){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(d){function v(){var y,x,m;(function(P,M){if(!(P instanceof M))throw new TypeError("Cannot call a class as a function")})(this,v);for(var _=arguments.length,A=Array(_),k=0;k<_;k++)A[k]=arguments[k];return x=m=p(this,(y=v.__proto__||Object.getPrototypeOf(v)).call.apply(y,[this].concat(A))),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,x)}return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);y.prototype=Object.create(x&&x.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(y,x):y.__proto__=x)}(v,d),v}(b.default.Component)};return ct.default=g,ct}()),i=u((fu||(fu=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.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}),Dt));function u(l){return l&&l.__esModule?l:{default:l}}H.hover=o.default,H.handleHover=o.default,H.handleActive=f.default,H.loop=i.default;var a=H.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 H.default=a,H}();const rt=w.vz(hs);var Ht={},ps=function(e,r,t,n){var o=e+"-"+r+"-"+t+(n?"-server":"");if(Ht[o])return Ht[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 Ht[o]=f,f},hu=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},oe=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=rt({default:{grid:{borderRadius:f,boxShadow:i,absolute:"0px 0px 0px 0px",background:"url("+ps(r,t,n,o.canvas)+") center left"}}});return w.reactExports.isValidElement(u)?w.yt.cloneElement(u,hu({},u.props,{style:hu({},u.props.style,a.grid)})):w.yt.createElement("div",{style:a.grid})};oe.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var ds=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},bs=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 pu(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 vs=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=pu(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),x=v-(g.getBoundingClientRect().top+window.pageYOffset);if(b==="vertical"){var m;if(m=x<0?0:x>s?1:Math.round(100*x/s)/100,h.a!==m)return{h:h.h,s:h.s,l:h.l,a:m,source:"rgb"}}else{var _;if(p!==(_=y<0?0:y>c?1:Math.round(100*y/c)/100))return{h:h.h,s:h.s,l:h.l,a:_,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)},pu(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,w.reactExports.PureComponent||w.reactExports.Component),bs(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,t=this.props.rgb,n=rt({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
|
-
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
|
-
rgba(`+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:ds({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return w.yt.createElement("div",{style:n.alpha},w.yt.createElement("div",{style:n.checkboard},w.yt.createElement(oe,{renderers:this.props.renderers})),w.yt.createElement("div",{style:n.gradient}),w.yt.createElement("div",{style:n.container,ref:function(o){return r.container=o},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.yt.createElement("div",{style:n.pointer},this.props.pointer?w.yt.createElement(this.props.pointer,this.props):w.yt.createElement("div",{style:n.slider}))))}}]),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}}(),ys=[38,40],ms=1,ht=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,ys.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-"+ms++,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,w.reactExports.PureComponent||w.reactExports.Component),gs(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=rt({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 w.yt.createElement("div",{style:t.wrap},w.yt.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?w.yt.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 du(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 ws=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=du(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 x;if(x=y<0?359:y>c?0:360*(-100*y/c+100)/100,b.h!==x)return{h:x,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()},du(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,w.reactExports.PureComponent||w.reactExports.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=rt({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 w.yt.createElement("div",{style:o.hue},w.yt.createElement("div",{className:"hue-"+n,style:o.container,ref:function(f){return r.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.yt.createElement("style",null,`
|
|
9
|
-
.hue-horizontal {
|
|
10
|
-
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
|
11
|
-
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
12
|
-
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
|
|
13
|
-
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.hue-vertical {
|
|
17
|
-
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
|
18
|
-
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
19
|
-
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
|
20
|
-
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
21
|
-
}
|
|
22
|
-
`),w.yt.createElement("div",{style:o.pointer},this.props.pointer?w.yt.createElement(this.props.pointer,this.props):w.yt.createElement("div",{style:o.slider}))))}}]),e}(),_s=typeof global=="object"&&global&&global.Object===Object&&global,js=typeof self=="object"&&self&&self.Object===Object&&self,Vu=_s||js||Function("return this")(),At=Vu.Symbol,Xu=Object.prototype,Os=Xu.hasOwnProperty,Ms=Xu.toString,pt=At?At.toStringTag:void 0,Es=Object.prototype.toString,bu=At?At.toStringTag:void 0;function Ct(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}yt.string,yt.oneOf([0,1,2,3,4,5]),yt.number,yt.object;var Wt=function(){return Vu.Date.now()},Ss=/\s/,ks=/^\s+/,As=/^[-+]0x[0-9a-f]+$/i,Cs=/^0b[01]+$/i,Rs=/^0o[0-7]+$/i,Ps=parseInt;function vu(e){if(typeof e=="number")return e;if(typeof(r=e)=="symbol"||(t=r)!=null&&typeof t=="object"&&function(f){return f==null?f===void 0?"[object Undefined]":"[object Null]":bu&&bu in Object(f)?function(u){var a=Os.call(u,pt),l=u[pt];try{u[pt]=void 0;var h=!0}catch{}var b=Ms.call(u);return h&&(a?u[pt]=l:delete u[pt]),b}(f):(i=f,Es.call(i));var i}(r)=="[object Symbol]")return NaN;var r,t;if(Ct(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=Ct(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=function(f){return f&&f.slice(0,function(i){for(var u=i.length;u--&&Ss.test(i.charAt(u)););return u}(f)+1).replace(ks,"")}(e);var o=Cs.test(e);return o||Rs.test(e)?Ps(e.slice(2),o?2:8):As.test(e)?NaN:+e}var Ts=Math.max,Ls=Math.min,Us=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(){function e(r){(function(u,a){if(!(u instanceof a))throw new TypeError("Cannot call a class as a function")})(this,e);var t,n,o,f,i=function(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||typeof a!="object"&&typeof a!="function"?u:a}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,r));return i.handleChange=function(u){typeof i.props.onChange=="function"&&i.throttle(i.props.onChange,function(a,l,h){var b=h.getBoundingClientRect(),p=b.width,g=b.height,c=typeof a.pageX=="number"?a.pageX:a.touches[0].pageX,s=typeof a.pageY=="number"?a.pageY:a.touches[0].pageY,d=c-(h.getBoundingClientRect().left+window.pageXOffset),v=s-(h.getBoundingClientRect().top+window.pageYOffset);d<0?d=0:d>p&&(d=p),v<0?v=0:v>g&&(v=g);var y=d/p,x=1-v/g;return{h:l.h,s:y,v:x,a:l.a,source:"hsv"}}(u,i.props.hsl,i.container),u)},i.handleMouseDown=function(u){i.handleChange(u);var a=i.getContainerRenderWindow();a.addEventListener("mousemove",i.handleChange),a.addEventListener("mouseup",i.handleMouseUp)},i.handleMouseUp=function(){i.unbindEventListeners()},i.throttle=(t=function(u,a,l){u(a,l)},o=!0,f=!0,Ct(n)&&(o="leading"in n?!!n.leading:o,f="trailing"in n?!!n.trailing:f),function(u,a,l){var h,b,p,g,c,s,d=0,v=!1,y=!1,x=!0;if(typeof u!="function")throw new TypeError("Expected a function");function m(M){var F=h,B=b;return h=b=void 0,d=M,g=u.apply(B,F)}function _(M){var F=M-s;return s===void 0||F>=a||F<0||y&&M-d>=p}function A(){var M,F,B=Wt();if(_(B))return k(B);c=setTimeout(A,(F=a-((M=B)-s),y?Ls(F,p-(M-d)):F))}function k(M){return c=void 0,x&&h?m(M):(h=b=void 0,g)}function P(){var M,F=Wt(),B=_(F);if(h=arguments,b=this,s=F,B){if(c===void 0)return d=M=s,c=setTimeout(A,a),v?m(M):g;if(y)return clearTimeout(c),c=setTimeout(A,a),m(s)}return c===void 0&&(c=setTimeout(A,a)),g}return a=vu(a)||0,Ct(l)&&(v=!!l.leading,p=(y="maxWait"in l)?Ts(vu(l.maxWait)||0,a):p,x="trailing"in l?!!l.trailing:x),P.cancel=function(){c!==void 0&&clearTimeout(c),d=0,h=s=b=c=void 0},P.flush=function(){return c===void 0?g:k(Wt())},P}(t,50,{leading:o,maxWait:50,trailing:f})),i}(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,w.reactExports.PureComponent||w.reactExports.Component),Us(e,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var r=this.container,t=window;!t.document.contains(r)&&t.parent!==t;)t=t.parent;return t}},{key:"unbindEventListeners",value:function(){var r=this.getContainerRenderWindow();r.removeEventListener("mousemove",this.handleChange),r.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,t=this.props.style||{},n=t.color,o=t.white,f=t.black,i=t.pointer,u=t.circle,a=rt({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
23
|
-
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:o,black:f,pointer:i,circle:u}},{custom:!!this.props.style});return w.yt.createElement("div",{style:a.color,ref:function(l){return r.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.yt.createElement("style",null,`
|
|
24
|
-
.saturation-white {
|
|
25
|
-
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
26
|
-
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
27
|
-
}
|
|
28
|
-
.saturation-black {
|
|
29
|
-
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
30
|
-
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
31
|
-
}
|
|
32
|
-
`),w.yt.createElement("div",{style:a.white,className:"saturation-white"},w.yt.createElement("div",{style:a.black,className:"saturation-black"}),w.yt.createElement("div",{style:a.pointer},this.props.pointer?w.yt.createElement(this.props.pointer,this.props):w.yt.createElement("div",{style:a.circle}))))}}])})();var Fs=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},zs=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 gu(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 yu=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};(function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";(function(){function t(){var n,o,f;(function(l,h){if(!(l instanceof h))throw new TypeError("Cannot call a class as a function")})(this,t);for(var i=arguments.length,u=Array(i),a=0;a<i;a++)u[a]=arguments[a];return o=f=gu(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),f.state={focus:!1},f.handleFocus=function(){return f.setState({focus:!0})},f.handleBlur=function(){return f.setState({focus:!1})},gu(f,o)}(function(n,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);n.prototype=Object.create(o&&o.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(n,o):n.__proto__=o)})(t,w.yt.Component),zs(t,[{key:"render",value:function(){return w.yt.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},w.yt.createElement(e,Fs({},this.props,this.state)))}}])})()})(function(e){var r=e.color,t=e.style,n=e.onClick,o=n===void 0?function(){}:n,f=e.onHover,i=e.title,u=i===void 0?r:i,a=e.children,l=e.focus,h=e.focusStyle,b=r==="transparent",p=rt({default:{swatch:yu({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},t,l?h===void 0?{}:h:{})}}),g={};return f&&(g.onMouseOver=function(c){return f(r,c)}),w.yt.createElement("div",yu({style:p.swatch,onClick:function(c){return o(r,c)},title:u,tabIndex:0,onKeyDown:function(c){return c.keyCode===13&&o(r,c)}},g),a,b&&w.yt.createElement(oe,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var Bs=function(e){var r=e.onChange,t=e.rgb,n=e.hsl,o=e.hex,f=e.disableAlpha,i=rt({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:f}),u=function(a,l){a.hex?function(h){if(h==="transparent")return!0;var b=String(h).charAt(0)==="#"?1:0;return h.length!==4+b&&h.length<7+b&&O(h).isValid()}(a.hex)&&r({hex:a.hex,source:"hex"},l):a.r||a.g||a.b?r({r:a.r||t.r,g:a.g||t.g,b:a.b||t.b,a:t.a,source:"rgb"},l):a.a&&(a.a<0?a.a=0:a.a>100&&(a.a=100),a.a/=100,r({h:n.h,s:n.s,l:n.l,a:a.a,source:"rgb"},l))};return w.yt.createElement("div",{style:i.fields,className:"flexbox-fix"},w.yt.createElement("div",{style:i.double},w.yt.createElement(ht,{style:{input:i.input,label:i.label},label:"hex",value:o.replace("#",""),onChange:u})),w.yt.createElement("div",{style:i.single},w.yt.createElement(ht,{style:{input:i.input,label:i.label},label:"r",value:t.r,onChange:u,dragLabel:"true",dragMax:"255"})),w.yt.createElement("div",{style:i.single},w.yt.createElement(ht,{style:{input:i.input,label:i.label},label:"g",value:t.g,onChange:u,dragLabel:"true",dragMax:"255"})),w.yt.createElement("div",{style:i.single},w.yt.createElement(ht,{style:{input:i.input,label:i.label},label:"b",value:t.b,onChange:u,dragLabel:"true",dragMax:"255"})),w.yt.createElement("div",{style:i.alpha},w.yt.createElement(ht,{style:{input:i.input,label:i.label},label:"a",value:Math.round(100*t.a),onChange:u,dragLabel:"true",dragMax:"100"})))};class Ds extends(w.reactExports.PureComponent||w.reactExports.Component){constructor(r){super(r),this.handleChange=t=>{typeof this.props.onChange=="function"&&this.throttle(this.props.onChange,((n,o,f)=>{var i=f.getBoundingClientRect(),u=i.width,a=i.height,l=typeof n.pageX=="number"?n.pageX:n.touches[0].pageX,h=typeof n.pageY=="number"?n.pageY:n.touches[0].pageY,b=l-(f.getBoundingClientRect().left+window.pageXOffset),p=h-(f.getBoundingClientRect().top+window.pageYOffset);b<0?b=0:b>u&&(b=u),p<0?p=0:p>a&&(p=a);var g=b/u,c=1-p/a;return{h:o.h,s:g,v:c,a:o.a,source:"hsv"}})(t,this.props.hsl,this.container),t),t.preventDefault()},this.handleMouseDown=t=>{this.handleChange(t);const n=this.getContainerRenderWindow();n.addEventListener("mousemove",this.handleChange),n.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=t=>{t.preventDefault(),this.unbindEventListeners()},this.throttle=function(t,n,o){let f,i,u,a;var l=0;o||(o={});let h=function(){l=o.leading===!1?0:Date.now(),f=null,a=t.apply(i,u),f||(i=u=null)},b=function(){var p=Date.now();l||o.leading!==!1||(l=p);var g=50-(p-l);return i=this,u=arguments,g<=0||g>50?(f&&(clearTimeout(f),f=null),l=p,a=t.apply(i,u),f||(i=u=null)):f||o.trailing===!1||(f=setTimeout(h,g)),a};return b.cancel=function(){clearTimeout(f),l=0,f=i=u=null},b}((t,n,o)=>{t(n,o)})}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:r}=this;let t=window;for(;!t.document.contains(r)&&t.parent!==t;)t=t.parent;return t}unbindEventListeners(){const r=this.getContainerRenderWindow();r.removeEventListener("mousemove",this.handleChange),r.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:r,white:t,black:n,pointer:o,circle:f}=this.props||{},i={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},u={color:{...i,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...i,borderRadius:this.props.style?.borderRadius},black:{...i,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...i,top:-100*this.props.hsv?.v+100+"%",left:100*this.props.hsv?.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
33
|
-
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return w.jsxRuntimeExports.jsxs("div",{style:u.color,ref:a=>this.container=a,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[w.jsxRuntimeExports.jsx("style",{children:`
|
|
34
|
-
.saturation-white {
|
|
35
|
-
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
36
|
-
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
37
|
-
}
|
|
38
|
-
.saturation-black {
|
|
39
|
-
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
40
|
-
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
41
|
-
}
|
|
42
|
-
`}),w.jsxRuntimeExports.jsxs("div",{style:u.white,className:"saturation-white",children:[w.jsxRuntimeExports.jsx("div",{style:u.black,className:"saturation-black"}),w.jsxRuntimeExports.jsx("div",{style:u.pointer,children:this.props.pointer?w.jsxRuntimeExports.jsx(this.props.pointer,{...this.props}):w.jsxRuntimeExports.jsx("div",{style:u.circle})})]})]})}}const Vt=(e,r=null)=>{const t=e.hex?O(e.hex):O(e||"transparent"),n=t.toHsl(),o=t.toHsv(),f=t.toRgb(),i=t.toHex();return n.s===0&&(n.h=r??0,o.h=r??0),{hsl:n,hex:"#"+i,rgb:f,hsv:o,source:e.source}},mu=w.reactExports.memo(e=>{const{selectedColor:r,onColorChange:t,renderers:n,disableAlpha:o=!1,style:f=w.Yd.EmptyCssProperties,...i}=e,u=w.Ti(),[a,l]=w.reactExports.useState(()=>Vt(r)),[h,b]=w.reactExports.useState(a.hsl.h??0),p=w.reactExports.useCallback(s=>{let d=Vt(s,h);return b(d.hsl.h??0),l(d),d},[h]),g=w.reactExports.useCallback(s=>{const d=p(s),v=`rgba(${d.rgb.r},${d.rgb.g},${d.rgb.b},${o?1:d.rgb.a})`;t?.(v)},[t,p,o]);w.reactExports.useLayoutEffect(()=>{p(r)},[r,p]);const c=w.jsxRuntimeExports.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:w.jsxRuntimeExports.jsx(vs,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:a.rgb,hsl:a.hsl,renderers:n,onChange:g})});return w.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",...f},...i,children:[w.jsxRuntimeExports.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:w.jsxRuntimeExports.jsx(Ds,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:a.hsl,hsv:a.hsv,onChange:g})}),w.jsxRuntimeExports.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[w.jsxRuntimeExports.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:o?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[w.jsxRuntimeExports.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:w.jsxRuntimeExports.jsx(ws,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:a.hsl,onChange:g})}),o?null:c]}),w.jsxRuntimeExports.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[w.jsxRuntimeExports.jsx(w.FI,{grey:u.palette.text.icon??u.palette.action.active}),w.jsxRuntimeExports.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${a.rgb.r},${a.rgb.g},${a.rgb.b},${o?1:a.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),w.jsxRuntimeExports.jsx(w.Box,{sx:{marginBottom:"4px","& label":{fontFamily:s=>`${s.typography.fontFamily} !important`,color:s=>`${s.palette.text.secondary} !important`},"& *":{fontFamily:s=>`${s.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:s=>`${s.spacing(.5)} !important`,paddingRight:s=>`${s.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:w.jsxRuntimeExports.jsx(Bs,{rgb:a.rgb,hsl:a.hsl,hex:a.hex,disableAlpha:o,onChange:g})})]})});exports.CustomColorPanel=mu,exports.default=mu,exports.toState=Vt;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/function v(t){return Array.isArray?Array.isArray(t):Me(t)==="[object Array]"}function L(t){return typeof t=="string"}function Ce(t){return typeof t=="number"}function me(t){return typeof t=="object"}function M(t){return t!=null}function te(t){return!t.trim().length}function Me(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const le=Object.prototype.hasOwnProperty;class Ie{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(i=>{let n=Fe(i);this._keys.push(n),this._keyMap[n.id]=n,s+=n.weight}),this._keys.forEach(i=>{i.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Fe(t){let e=null,s=null,i=null,n=1,r=null;if(L(t)||v(t))i=t,e=de(t),s=ie(t);else{if(!le.call(t,"name"))throw new Error("Missing name property in key");const u=t.name;if(i=u,le.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(`Property 'weight' in key '${u}' must be a positive integer`);e=de(u),s=ie(u),r=t.getFn}return{path:e,id:s,weight:n,src:i,getFn:r}}function de(t){return v(t)?t:t.split(".")}function ie(t){return v(t)?t.join("."):t}var l={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,e){let s=[],i=!1;const n=(r,u,h)=>{if(M(r))if(u[h]){const a=r[u[h]];if(!M(a))return;if(h===u.length-1&&(L(a)||Ce(a)||function(o){return o===!0||o===!1||me(d=o)&&d!==null&&Me(o)=="[object Boolean]";var d}(a)))s.push((c=a)==null?"":function(o){if(typeof o=="string")return o;let d=o+"";return d=="0"&&1/o==-1/0?"-0":d}(c));else if(v(a)){i=!0;for(let o=0,d=a.length;o<d;o+=1)n(a[o],u,h+1)}else u.length&&n(a,u,h+1)}else s.push(r);var c};return n(t,L(e)?e.split("."):e,0),i?s:s[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const we=/[^ ]+/g;class ce{constructor({getFn:e=l.getFn,fieldNormWeight:s=l.fieldNormWeight}={}){this.norm=function(i=1,n=3){const r=new Map,u=Math.pow(10,n);return{get(h){const c=h.match(we).length;if(r.has(c))return r.get(c);const a=1/Math.pow(c,.5*i),o=parseFloat(Math.round(a*u)/u);return r.set(c,o),o},clear(){r.clear()}}}(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,i)=>{this._keysMap[s.id]=i})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,L(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();L(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,i=this.size();s<i;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!M(e)||te(e))return;let i={v:e,i:s,n:this.norm.get(e)};this.records.push(i)}_addObject(e,s){let i={i:s,$:{}};this.keys.forEach((n,r)=>{let u=n.getFn?n.getFn(e):this.getFn(e,n.path);if(M(u)){if(v(u)){let h=[];const c=[{nestedArrIndex:-1,value:u}];for(;c.length;){const{nestedArrIndex:a,value:o}=c.pop();if(M(o))if(L(o)&&!te(o)){let d={v:o,i:a,n:this.norm.get(o)};h.push(d)}else v(o)&&o.forEach((d,f)=>{c.push({nestedArrIndex:f,value:d})})}i.$[r]=h}else if(L(u)&&!te(u)){let h={v:u,n:this.norm.get(u)};i.$[r]=h}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function Ee(t,e,{getFn:s=l.getFn,fieldNormWeight:i=l.fieldNormWeight}={}){const n=new ce({getFn:s,fieldNormWeight:i});return n.setKeys(t.map(Fe)),n.setSources(e),n.create(),n}function X(t,{errors:e=0,currentLocation:s=0,expectedLocation:i=0,distance:n=l.distance,ignoreLocation:r=l.ignoreLocation}={}){const u=e/t.length;if(r)return u;const h=Math.abs(i-s);return n?u+h/n:h?1:u}const z=32;function $e(t){let e={};for(let s=0,i=t.length;s<i;s+=1){const n=t.charAt(s);e[n]=(e[n]||0)|1<<i-s-1}return e}const Y=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class ye{constructor(e,{location:s=l.location,threshold:i=l.threshold,distance:n=l.distance,includeMatches:r=l.includeMatches,findAllMatches:u=l.findAllMatches,minMatchCharLength:h=l.minMatchCharLength,isCaseSensitive:c=l.isCaseSensitive,ignoreDiacritics:a=l.ignoreDiacritics,ignoreLocation:o=l.ignoreLocation}={}){if(this.options={location:s,threshold:i,distance:n,includeMatches:r,findAllMatches:u,minMatchCharLength:h,isCaseSensitive:c,ignoreDiacritics:a,ignoreLocation:o},e=c?e:e.toLowerCase(),e=a?Y(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const d=(g,p)=>{this.chunks.push({pattern:g,alphabet:$e(g),startIndex:p})},f=this.pattern.length;if(f>z){let g=0;const p=f%z,A=f-p;for(;g<A;)d(this.pattern.substr(g,z),g),g+=z;if(p){const m=f-z;d(this.pattern.substr(m),m)}}else d(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,ignoreDiacritics:i,includeMatches:n}=this.options;if(e=s?e:e.toLowerCase(),e=i?Y(e):e,this.pattern===e){let A={isMatch:!0,score:0};return n&&(A.indices=[[0,e.length-1]]),A}const{location:r,distance:u,threshold:h,findAllMatches:c,minMatchCharLength:a,ignoreLocation:o}=this.options;let d=[],f=0,g=!1;this.chunks.forEach(({pattern:A,alphabet:m,startIndex:_})=>{const{isMatch:N,score:w,indices:S}=function(k,$,Le,{location:ke=l.location,distance:J=l.distance,threshold:ve=l.threshold,findAllMatches:_e=l.findAllMatches,minMatchCharLength:he=l.minMatchCharLength,includeMatches:ae=l.includeMatches,ignoreLocation:V=l.ignoreLocation}={}){if($.length>z)throw new Error("Pattern length exceeds max of 32.");const R=$.length,P=k.length,D=Math.max(0,Math.min(ke,P));let O=ve,b=D;const Q=he>1||ae,Z=Q?Array(P):[];let T;for(;(T=k.indexOf($,b))>-1;){let F=X($,{currentLocation:T,expectedLocation:D,distance:J,ignoreLocation:V});if(O=Math.min(F,O),b=T+R,Q){let E=0;for(;E<R;)Z[T+E]=1,E+=1}}b=-1;let U=[],G=1,H=R+P;const Se=1<<R-1;for(let F=0;F<R;F+=1){let E=0,B=H;for(;E<B;)X($,{errors:F,currentLocation:D+B,expectedLocation:D,distance:J,ignoreLocation:V})<=O?E=B:H=B,B=Math.floor((H-E)/2+E);H=B;let j=Math.max(1,D-B+1),y=_e?P:Math.min(D+B,P)+R,x=Array(y+2);x[y+1]=(1<<F)-1;for(let C=y;C>=j;C-=1){let W=C-1,q=Le[k.charAt(W)];if(Q&&(Z[W]=+!!q),x[C]=(x[C+1]<<1|1)&q,F&&(x[C]|=(U[C+1]|U[C])<<1|1|U[C+1]),x[C]&Se&&(G=X($,{errors:F,currentLocation:W,expectedLocation:D,distance:J,ignoreLocation:V}),G<=O)){if(O=G,b=W,b<=D)break;j=Math.max(1,2*D-b)}}if(X($,{errors:F+1,currentLocation:D,expectedLocation:D,distance:J,ignoreLocation:V})>O)break;U=x}const ee={isMatch:b>=0,score:Math.max(.001,G)};if(Q){const F=function(E=[],B=l.minMatchCharLength){let j=[],y=-1,x=-1,C=0;for(let W=E.length;C<W;C+=1){let q=E[C];q&&y===-1?y=C:q||y===-1||(x=C-1,x-y+1>=B&&j.push([y,x]),y=-1)}return E[C-1]&&C-y>=B&&j.push([y,C-1]),j}(Z,he);F.length?ae&&(ee.indices=F):ee.isMatch=!1}return ee}(e,A,m,{location:r+_,distance:u,threshold:h,findAllMatches:c,minMatchCharLength:a,includeMatches:n,ignoreLocation:o});N&&(g=!0),f+=w,N&&S&&(d=[...d,...S])});let p={isMatch:g,score:g?f/this.chunks.length:1};return g&&n&&(p.indices=d),p}}class I{constructor(e){this.pattern=e}static isMultiMatch(e){return ge(e,this.multiRegex)}static isSingleMatch(e){return ge(e,this.singleRegex)}search(){}}function ge(t,e){const s=t.match(e);return s?s[1]:null}class De extends I{constructor(e,{location:s=l.location,threshold:i=l.threshold,distance:n=l.distance,includeMatches:r=l.includeMatches,findAllMatches:u=l.findAllMatches,minMatchCharLength:h=l.minMatchCharLength,isCaseSensitive:c=l.isCaseSensitive,ignoreDiacritics:a=l.ignoreDiacritics,ignoreLocation:o=l.ignoreLocation}={}){super(e),this._bitapSearch=new ye(e,{location:s,threshold:i,distance:n,includeMatches:r,findAllMatches:u,minMatchCharLength:h,isCaseSensitive:c,ignoreDiacritics:a,ignoreLocation:o})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class Be extends I{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s,i=0;const n=[],r=this.pattern.length;for(;(s=e.indexOf(this.pattern,i))>-1;)i=s+r,n.push([s,i-1]);const u=!!n.length;return{isMatch:u,score:u?0:1,indices:n}}}const ne=[class extends I{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},Be,class extends I{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends I{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends I{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends I{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends I{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=t.indexOf(this.pattern)===-1;return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},De],fe=ne.length,be=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Ne=new Set([De.type,Be.type]),re=[];function ue(t,e){for(let s=0,i=re.length;s<i;s+=1){let n=re[s];if(n.condition(t,e))return new n(t,e)}return new ye(t,e)}const oe="$and",Ae="$path",se=t=>!(!t[oe]&&!t.$or),pe=t=>({[oe]:Object.keys(t).map(e=>({[e]:t[e]}))});function xe(t,e,{auto:s=!0}={}){const i=n=>{let r=Object.keys(n);const u=!!n[Ae];if(!u&&r.length>1&&!se(n))return i(pe(n));if((c=>!v(c)&&me(c)&&!se(c))(n)){const c=u?n[Ae]:r[0],a=u?n.$val:n[c];if(!L(a))throw new Error(`Invalid value for key ${c}`);const o={keyId:ie(c),pattern:a};return s&&(o.searcher=ue(a,e)),o}let h={children:[],operator:r[0]};return r.forEach(c=>{const a=n[c];v(a)&&a.forEach(o=>{h.children.push(i(o))})}),h};return se(t)||(t=pe(t)),i(t)}function Re(t,e){const s=t.matches;e.matches=[],M(s)&&s.forEach(i=>{if(!M(i.indices)||!i.indices.length)return;const{indices:n,value:r}=i;let u={indices:n,value:r};i.key&&(u.key=i.key.src),i.idx>-1&&(u.refIndex=i.idx),e.matches.push(u)})}function Oe(t,e){e.score=t.score}class K{constructor(e,s={},i){this.options={...l,...s},this.options.useExtendedSearch,this._keyStore=new Ie(this.options.keys),this.setCollection(e,i)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof ce))throw new Error("Incorrect 'index' type");this._myIndex=s||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){M(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let i=0,n=this._docs.length;i<n;i+=1){const r=this._docs[i];e(r,i)&&(this.removeAt(i),i-=1,n-=1,s.push(r))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:i,includeScore:n,shouldSort:r,sortFn:u,ignoreFieldNorm:h}=this.options;let c=L(e)?L(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(a,{ignoreFieldNorm:o=l.ignoreFieldNorm}){a.forEach(d=>{let f=1;d.matches.forEach(({key:g,norm:p,score:A})=>{const m=g?g.weight:null;f*=Math.pow(A===0&&m?Number.EPSILON:A,(m||1)*(o?1:p))}),d.score=f})}(c,{ignoreFieldNorm:h}),r&&c.sort(u),Ce(s)&&s>-1&&(c=c.slice(0,s)),function(a,o,{includeMatches:d=l.includeMatches,includeScore:f=l.includeScore}={}){const g=[];return d&&g.push(Re),f&&g.push(Oe),a.map(p=>{const{idx:A}=p,m={item:o[A],refIndex:A};return g.length&&g.forEach(_=>{_(p,m)}),m})}(c,this._docs,{includeMatches:i,includeScore:n})}_searchStringList(e){const s=ue(e,this.options),{records:i}=this._myIndex,n=[];return i.forEach(({v:r,i:u,n:h})=>{if(!M(r))return;const{isMatch:c,score:a,indices:o}=s.searchIn(r);c&&n.push({item:r,idx:u,matches:[{score:a,value:r,norm:h,indices:o}]})}),n}_searchLogical(e){const s=xe(e,this.options),i=(h,c,a)=>{if(!h.children){const{keyId:d,searcher:f}=h,g=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(c,d),searcher:f});return g&&g.length?[{idx:a,item:c,matches:g}]:[]}const o=[];for(let d=0,f=h.children.length;d<f;d+=1){const g=h.children[d],p=i(g,c,a);if(p.length)o.push(...p);else if(h.operator===oe)return[]}return o},n=this._myIndex.records,r={},u=[];return n.forEach(({$:h,i:c})=>{if(M(h)){let a=i(s,h,c);a.length&&(r[c]||(r[c]={idx:c,item:h,matches:[]},u.push(r[c])),a.forEach(({matches:o})=>{r[c].matches.push(...o)}))}}),u}_searchObjectList(e){const s=ue(e,this.options),{keys:i,records:n}=this._myIndex,r=[];return n.forEach(({$:u,i:h})=>{if(!M(u))return;let c=[];i.forEach((a,o)=>{c.push(...this._findMatches({key:a,value:u[o],searcher:s}))}),c.length&&r.push({idx:h,item:u,matches:c})}),r}_findMatches({key:e,value:s,searcher:i}){if(!M(s))return[];let n=[];if(v(s))s.forEach(({v:r,i:u,n:h})=>{if(!M(r))return;const{isMatch:c,score:a,indices:o}=i.searchIn(r);c&&n.push({score:a,key:e,value:r,idx:u,norm:h,indices:o})});else{const{v:r,n:u}=s,{isMatch:h,score:c,indices:a}=i.searchIn(r);h&&n.push({score:c,key:e,value:r,norm:u,indices:a})}return n}}K.version="7.1.0",K.createIndex=Ee,K.parseIndex=function(t,{getFn:e=l.getFn,fieldNormWeight:s=l.fieldNormWeight}={}){const{keys:i,records:n}=t,r=new ce({getFn:e,fieldNormWeight:s});return r.setKeys(i),r.setIndexRecords(n),r},K.config=l,K.parseQuery=xe,function(...t){re.push(...t)}(class{constructor(t,{isCaseSensitive:e=l.isCaseSensitive,ignoreDiacritics:s=l.ignoreDiacritics,includeMatches:i=l.includeMatches,minMatchCharLength:n=l.minMatchCharLength,ignoreLocation:r=l.ignoreLocation,findAllMatches:u=l.findAllMatches,location:h=l.location,threshold:c=l.threshold,distance:a=l.distance}={}){this.query=null,this.options={isCaseSensitive:e,ignoreDiacritics:s,includeMatches:i,minMatchCharLength:n,findAllMatches:u,ignoreLocation:r,location:h,threshold:c,distance:a},t=e?t:t.toLowerCase(),t=s?Y(t):t,this.pattern=t,this.query=function(o,d={}){return o.split("|").map(f=>{let g=f.trim().split(be).filter(A=>A&&!!A.trim()),p=[];for(let A=0,m=g.length;A<m;A+=1){const _=g[A];let N=!1,w=-1;for(;!N&&++w<fe;){const S=ne[w];let k=S.isMultiMatch(_);k&&(p.push(new S(k,d)),N=!0)}if(!N)for(w=-1;++w<fe;){const S=ne[w];let k=S.isSingleMatch(_);if(k){p.push(new S(k,d));break}}}return p})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:i,ignoreDiacritics:n}=this.options;t=i?t:t.toLowerCase(),t=n?Y(t):t;let r=0,u=[],h=0;for(let c=0,a=e.length;c<a;c+=1){const o=e[c];u.length=0,r=0;for(let d=0,f=o.length;d<f;d+=1){const g=o[d],{isMatch:p,indices:A,score:m}=g.search(t);if(!p){h=0,r=0,u.length=0;break}if(r+=1,h+=m,s){const _=g.constructor.type;Ne.has(_)?u=[...u,...A]:u.push(A)}}if(r){let d={isMatch:!0,score:h/r};return s&&(d.indices=u),d}}return{isMatch:!1,score:1}}}),exports.default=K;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={AVEDEV:{s:"Returns the average of the absolute deviations of data points from their mean. Arguments can be numbers or names, arrays, or references that contain numbers",p:{number:{d:"number1,number2,... are 1 to 255 arguments for which you want the average of the absolute deviations"}}},AVERAGE:{s:"Returns the average (arithmetic mean) of its arguments, which can be numbers or names, arrays, or references that contain numbers",p:{number:{d:"number1,number2,... are 1 to 255 numeric arguments for which you want the average"}}},AVERAGEA:{s:"Returns the average (arithmetic mean) of its arguments, evaluating text and FALSE in arguments as 0; TRUE evaluates as 1. Arguments can be numbers, names, arrays, or references",p:{value:{d:"value1,value2,... are 1 to 255 arguments for which you want the average"}}},AVERAGEIF:{s:"Finds average(arithmetic mean) for the cells specified by a given condition or criteria",p:{range:{d:"is the range of cells you want evaluated"},criteria:{d:"is the condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average"},averageRange:{d:"are the actual cells to be used to find the average. If omitted, the cells in range are used"}},h:"Unimplemented"},AVERAGEIFS:{s:"Finds average(arithmetic mean) for the cells specified by a given set of conditions or criteria",p:{averageRange:{d:"are the actual cells to be used to find the average."},criteriaRange:{d:"criteria_range1,criteria_range2,... is the range of cells you want evaluated for the particular condition"},criteria:{d:"criteria1,criteria2,... is the condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average"}},h:"Unimplemented"},COUNT:{s:"Counts the number of cells in a range that contain numbers",p:{number:{d:"value1,value2,... are 1 to 255 arguments that can contain or refer to a variety of different types of data, but only numbers are counted"}}},COUNTA:{s:"Counts the number of cells in a range that are not empty",p:{value:{d:"value1,value2,... are 1 to 255 arguments representing the values and cells you want to count. Values can be any type of information"}}},COUNTBLANK:{s:"Counts the number of empty cells in a specified range of cells",p:{range:{d:"is the range from which you want to count the empty cells"}},h:"Unimplemented"},COUNTIF:{s:"Counts the number of cells within a range that meet the given condition",p:{range:{d:"is the range of cells from which you want to count nonblank cells"},criteria:{d:"is the condition in the form of a number, expression, or text that defines which cells will be counted"}},h:"Unimplemented"},COUNTIFS:{s:"Counts the number of cells specified by a given set of conditions or criteria",p:{criteriaRange:{d:"criteria_range1,criteria_range2,... is the range of cells you want evaluated for the particular condition"},criteria:{d:"criteria1,criteria2,... is the condition in the form of a number, expression, or text that defines which cells will be counted"}},h:"Unimplemented"},LARGE:{s:"Returns the k-th largest value in a data set. For example, the fifth largest number.",p:{array:{d:"is the array or range of data for which you want to determine the k-th largest value."},k:{d:"is the position (from the largest) in the array or cell range of the value to return."}}},MAX:{s:"Returns the largest value in a set of values. Ignores logical values and text",p:{number:{d:"number1,number2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the maximum"}}},MAXA:{s:"Returns the largest value in a set of values. Does not ignore logical values and text",p:{value:{d:"value1,value2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the maximum"}}},MAXIFS:{s:"Returns the maximum value among cells specified by a given set of conditions or criteria",p:{maxRange:{d:"the cells in which to determine the maximum value"},criteriaRange:{d:"criteria_range1,criteria_range2,... is the range of cells you want to evaluate for the particular condition"},criteria:{d:"criteria1,criteria2,... is the condition or criteria in the form of a number, expression, or text that defines which cells will be included when determining the maximum value"}},h:"Unimplemented"},MEDIAN:{s:"Returns the median, or the number in the middle of the set of given numbers",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the median"}}},MIN:{s:"Returns the smallest number in a set of values. Ignores logical values and text",p:{number:{d:"number1,number2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the minimum"}}},MINA:{s:"Returns the smallest value in a set of values. Does not ignore logical values and text",p:{value:{d:"value1,value2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the minimum"}}},MINIFS:{s:"Returns the minimum value among cells specified by a given set of conditions or criteria",p:{maxRange:{d:"is the range of cells to evaluate for the minimum value"},criteriaRange:{d:"is the range of cells to evaluate against the criteria"},criteria:{d:"is the criteria to evaluate against the criteria range"}},h:"Unimplemented"},PERMUT:{s:"Returns the number of permutations for a given number of objects that can be selected from the total objects",p:{number:{d:"is the total number of objects"},numberChoosen:{d:"is the number of objects in each permutation"}},h:"Unimplemented"},PERMUTATIONA:{s:"Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects",p:{number:{d:"is the total number of objects"},numberChoosen:{d:"is the number of objects in each permutation"}},h:"Unimplemented"},SMALL:{s:"Returns the k-th smallest value in a data set. For example, the fifth smallest number",p:{array:{d:"is an array or range of numerical data for which you want to determine the k-th smallest value"},k:{d:"is the position (from the smallest) in the array or range of the value to return"}}}};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={DELTA:{s:"Tests whether two numbers are equal",p:{number1:{d:"is the first number"},number2:{d:"is the second number",v:0}}},GESTEP:{s:"Tests whether a number is greater than a threshold value",p:{number:{d:"is the value to test against step"},step:{d:"is the threshold value",v:0}}}};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";/**
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./C5TLXtw93fBnRGm7.cjs"),Je=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",ys=new RegExp(`^[${Je}][-${Je}.0-9·̀-ͯ‿-⁀]*$`,"u");function os(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 Ye="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�𐀀-",bs=new RegExp(`^[${Ye}][-${Ye}.0-9·̀-ͯ‿-⁀]*$`,"u");function rs(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 z=function(i){return i===32||i===10||i===13||i===9},xs=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},re=os,ts=function(i){return os(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ns=[32,10,13,9],ws=ys,vs=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Ss=rs,Cs=function(i){return rs(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},ks=bs,ge="http://www.w3.org/XML/1998/namespace",Zt="http://www.w3.org/2000/xmlns/",As={__proto__:null,xml:ge,xmlns:Zt},Ds={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},I=-1,lt=-2,B=13,Ht=33,ot=10,St=60,Gt=61,j=62,X=63,Kt=93,pe=i=>i===34||i===39,as=[34,39],Es=[...as,91,j],Ps=[...as,St,Kt],Os=[Gt,X,...ns],Is=[...ns,j,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 Vs=i=>ks.test(i),Ls=i=>ws.test(i),es={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 Ns{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=Ss,this.nameCheck=Cs,this.isName=Vs,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...As};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=ts,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?B: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[es[t]]=s}off(t){this[es[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 I;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 I;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===I||t.includes(c))return this.text+=o.slice(s,this.prevI),c;a&&(this.text+=`${o.slice(s,this.prevI)}
|
|
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
|
-
`,s=this.i,n=ot;break;case I: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===I)return this.name+=t.slice(s),I;if(!ts(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===I||!z(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=xs,this.getCode=this.getCode10):(this.isChar=vs,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 I:break;default:this.unget(),this.state=B,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Es);switch(t){case j:this.doctypeHandler?.(this.text),this.text="",this.state=B,this.doctype=!0;break;case I: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(Ps);t!==I&&(this.text+=String.fromCodePoint(t),t===Kt?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===j?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===j&&(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
|
-
`,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===B&&this.textHandler===void 0||(this.text+=a);break t}case I: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=B,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!==j?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=B}sCData(){this.captureToChar(Kt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Kt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case j:this.cdataHandler?.(this.text),this.text="",this.state=B;break;case Kt: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||z(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===I)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||z(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?Ht: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:z(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===j){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=B}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==I&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=Ht}sXMLDeclName(){const t=this.captureTo(Os);if(t===X)return this.state=Ht,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(z(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=Ht,void this.fail("XML declaration is incomplete.");z(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=Ht,void this.fail("XML declaration is incomplete.");z(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=Ht,this.text="",void this.fail("XML declaration is incomplete.");if(t===I)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?(z(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=Ht}sXMLDeclEnding(){this.getCodeNorm()===j?(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=B):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===I)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 j:this.openTag();break;case 47:this.state=35;break;default:z(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===j?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==I&&(re(t)?(this.unget(),this.state=37):t===j?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:z(t)?this.state=38:t===j?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==I&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case I:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===j?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):z(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 I:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();z(t)?this.state=36:t===j?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(Is);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case I: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===j?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===j?this.closeTag():z(t)?this.state=44:t!==I&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case j:this.closeTag();break;case I: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=B,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Kt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case j: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
|
-
`),t=this.i,s=0;break;case I: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=B,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 I:o!==void 0&&(this.text+=s.slice(t));break t;default:z(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!==B&&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=B,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=B,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=B,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 Ns({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,D=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class Rs{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=[],E={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 F=0;F<m.length;F++)if(V==null||(V=m[F](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,F)=>{const q=P(F??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const F=P(V??y,m);F!==void 0&&(b.source[y]=F)},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 F=n.get(m);if(c={local:m,visitor:F,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,F&&(b=a.length===0?E: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 F=a.pop()??null;c=a[a.length-1]??null;const q=F?.destination;if(q){w.pop(),b=w[w.length-1]??E;const ht=F.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.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 ss=(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},De=(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"),E=o.convert(w,i,n);return n?.parsedRefs?.set(i,E),E}catch(x){console.warn(x)}return null},Ut=(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 E=De(w,b=>t.files[b],s,o,n);a.set(w,E)}return a},$s=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],Ee=(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=$s[c]);let T=i("tint");if(T&&(s+=` ${u.N.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},ls=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),cs=i=>i==="true"||i==="1";class Ft{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},is={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./B4ScrvWBCXLzvNBz.cjs")),T=Promise.resolve().then(()=>require("./C04_CccTUmfnv-ln.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./BTxfWiE-FbVvlbXz.cjs")).then(d=>d.i));let w=null,E=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],E=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 E.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.Lf,m=y.beginPersist(),V={},F=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Pe=[],ne=O=>d.files[O],fe=(O,U)=>{const Y=O.lastIndexOf("/"),ut=O.substring(0,Y+1)+"_rels/"+O.substring(Y+1,O.length)+".rels";let dt=U.get(ut);return dt||(dt=(($,be,xe,we,Xt=null)=>{if(!$)return null;const tt=De($,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Wt=bt.length;for(let xt=0;xt<Wt;xt++){const Bt=bt[xt],kt=tt[Bt];et.set(Bt,kt)}return et})(ut,ne,f,P,yt),U.set(ut,dt)),dt},ae=(O,U,Y,ut=ht)=>{let dt=fe(U,ut).get(O),$=dt?.target;if(!$)return null;if(dt.targetMode==="External")return dt.target;const be=U.lastIndexOf("/"),xe=U.substring(0,be+1);$.startsWith("/")||($=xe+$),$=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Wt,xt)=>(Wt==="."?bt.splice(xt,1):Wt===".."&&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=((L,G,Qt,_,K,Z,wt)=>{const h=new Rs,Q=new u.ze.TransposedBuilder;let H=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",D),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",D);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",D),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",D),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",D),e.copyTo("minLength",D),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=Ee(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",D,"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.sg.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",D,"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.sg.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.sg.Type.Icon,e.copyTo("iconId",D),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.sg.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.sg.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",D),e.copyTo("hour",D),e.copyTo("minute",D),e.copyTo("month",D),e.copyTo("second",D),e.copyTo("year",D)}}),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.sg.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.lo.fastStringToRange(p,is).colStart,pt=u.lo.fastStringToRange(r.ref,is),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=>{H=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=cs(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",D),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:()=>{H=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{H=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!H)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",D,"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(H&&e.getAttribute("state")==="frozen"){const r={};H.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=H.topLeft?u.lo.fastStringToCell(H.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",D,"xSplit"),e.copyToObject(p,"rowIndex",D,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.lo.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=Ee(l=>e.getAttribute(l));r&&(L.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",D),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",D),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(L,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(L,"outlineLevelCol",D,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(L,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(L,"outlineLevelRow",D,"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",D,"outlineLevel"),e.copyTo("s",D,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Jt=null;const ms={onOpenTag:e=>{Jt===null&&(Jt="")},onText:e=>{Jt+=e},onEnd:()=>{const e=Qt(Jt);return Jt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,qt=[],_t=!1,Dt=null,Yt=null,de=null,nt=null,$e=null,Me=null;const Ts=pt?.get("richData")??[],je=u.lo.normalizeA1ToR1C1,He=u.D.createConflatingRanges(),Fe=new Map,ve=[];let te=null;const Xe=u.D.createConflatingRanges();let ee,Et=!1,W=-1,J=-1,gt=null,se=null;const Se=[];let Ce=null,We=-2,ft=0,zt="",Pt="",Ot="",It="",Vt="",Lt="",Nt="",Be="",qe="",_e="",ze="",Ue="",Ge="",Ke="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=He.done(Ms);const k=g.length;if(k>0){const M=new Array(k);for(let N=0;N<k;N++){const at=g[N],$t=u.lo.rangeToString(at),Mt=at.value[1],ie=u.lo.resolveRelativeToA1(Mt,at.rowStart,at.colStart);M[N]=[$t,ie]}r.formulas=M}const st=Xe.done(!0),R=st.length;if(R>0){const M=new Array(R);for(let N=0;N<R;N++){const at=st[N],$t=u.lo.rangeToString(at);M[N]=$t}r.volatile=M}if(ve.length>0&&(r.dynamicArray=[...ve]),qt.length>0){qt.sort(u.D.createRangeComparator(u.F.Orientation.Column));const M=[];let N=null,at=-1,$t=-1,Mt=-1,ie=-1,vt=null;const Ze=qt.length;Ze>0&&(N=qt[0],at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value,M.push(N));for(let jt=1;jt<Ze;jt++)vt=qt[jt],ie!==vt.value||at!==vt.colStart||$t!==vt.colEnd||Mt+1!==vt.rowEnd?(M.push(vt),N=vt,at=N.colStart,$t=N.colEnd,Mt=N.rowEnd,ie=N.value):(Mt=vt.rowEnd,N.rowEnd=Mt);let Qe=[];for(let jt=0;jt<M.length;jt++){const oe=M[jt];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 M=it.tuples;r.data=M}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,Dt=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(W,J);break;case"is":return void(Et=!0)}return void(Et&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;J=u.lo.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Et=!0));let M=g.attributes.s;M!==void 0&&(M=parseInt(M),Rt&&Rt.value===M&&Rt.colEnd+1===J?Rt.colEnd=J:(Rt={colStart:J,rowStart:W,colEnd:J,rowEnd:W,value:M},qt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(W=parseInt(R)-1,ft=0,Pt=g.attributes.customHeight,Pt!==void 0&&(ft|=Ft.CustomHeight),Pt!==qe&&(mt=!0,qe=Pt),zt=g.attributes.ht,zt!==void 0&&(ft|=Ft.Ht),zt!==Be&&(mt=!0,Be=zt),Ot=g.attributes.hidden,Ot!==void 0&&(ft|=Ft.Hidden),Ot!==_e&&(mt=!0,_e=Ot),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ft.S),Vt!==Ue&&(mt=!0,Ue=Vt),It=g.attributes.customFormat,It!==void 0&&(ft|=Ft.CustomFormat),It!==ze&&(mt=!0,ze=It),Lt=g.attributes.outlineLevel,Lt!==void 0&&(ft|=Ft.OutlineLevel),Lt!==Ge&&(mt=!0,Ge=Lt),Nt=g.attributes.collapsed,Nt!==void 0&&(ft|=Ft.Collapsed),Nt!==Ke&&(mt=!0,Ke=Nt),ft!==0)if(We+1!==W||mt){const it=Pt!==void 0&&(Pt==="1"||Pt==="true"),M=It!==void 0&&(It==="1"||It==="true");Ce={min:W,max:W,sz:it&&zt!==void 0?parseFloat(zt):-1,csz:it,h:Ot!==void 0&&(Ot==="1"||Ot==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:M,l:Lt===void 0||Lt==="0"?0:parseInt(Lt),cl:Nt!==void 0&&(Nt==="1"||Nt==="true")},Se.push(Ce)}else Ce.max=W;return We=W,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)),Et)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(W,J,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Et=!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=Ts[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.K.Error,v:R.getCode()};break}}}const k=u.Y.getBuiltInByLabel(g);k?gt={t:u.K.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.lo.cellToString({colIndex:J,rowIndex:W})}`));break;case"str":case"inlineStr":Et=!0}gt!==null&&e.addValue(W,J,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Dt)if($e===Dt)nt=Me;else{if(nt=Fe.get(Dt),!nt){const k=[];de=je(g,W,J,k),nt=[de,k,g],Fe.set(Dt,nt)}$e=Dt,Me=nt}if(_t){const k=[];de=je(g,W,J,k),nt=[de,k,g]}if(nt)return He.append(W,J,nt),nt=null,_t=!1,Dt=null,void(Yt=null);Et?C?.onText(g):rt||l?.onText(g)}}})(Q,L,h.createEventHandler(L,()=>{},Z),Z,ms,wt)})(tt,(L,G=!1)=>ae(L,$,G)??null,us,we,0,L=>{o&&(L=$+": "+L,o?.(L))},q),Wt=ss($,ne),xt=await(async(L,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Z}=await Promise.resolve().then(()=>require("./P7jR9JAKpf5me2pK.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 K=L instanceof Uint8Array?L:new Uint8Array(L);return new ReadableStream({pull(Z){if(_>=K.byteLength)return void Z.close();const wt=K.subarray(_,Math.min(_+G,K.byteLength)),h=Qt.decode(wt,{stream:_+G<K.byteLength});Z.enqueue(h),_+=wt.length}}).getReader()})(Wt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(L){throw console.warn(`Error parsing sheet: '${$}'`,L),new Error(`Error parsing sheet: '${$}'`,{cause:L})}const Bt=fe($,ut);let kt,Re=new Map;if(Bt){const L="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;Bt.forEach((_,K)=>{_.type===L&&(kt=ae(K,$,!1,ut)?.comments,kt&&kt.forEach(Z=>{Re.set(Z.id,Z)}))});const Qt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Bt.forEach((_,K)=>{_.type===Qt&&(G=ae(K,$,!1,ut))}),G||kt){const _=kt??[],K=G?.comments;if(K){const Z=G?.authors;for(let wt=0;wt<K.length;wt++){const h=K[wt];let Q=h.authorId!==void 0?Z[h.authorId]:void 0;if((!Q||Q.startsWith("tc="))&&(Q=ls(Q.substring(3)),Re.has(Q)))continue;let H=ce.get(Q);H||(H=Ve.get(Q)),H||(H={id:u.k.uuidV4(),displayName:Q},Ve.set(H.displayName,H),ce.set(H.id,H)),Q=H?.id??null;const ue={id:u.k.uuidV4(),personId:Q,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Pe.push(et())}else Xt=Y?ss($,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),F.add(et),m.toResourceId(et)},yt):De($,ne,f,P,yt);return Xt},yt={paramMap:q,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:O=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const hs=d.Strings??[];for(let O=0;O<me;O++)le.push(hs[O]?.t??"");const Oe=new Map;let Ie=me;const us=O=>{const U=Oe.get(O);if(U!==void 0)return U;const Y=Ie;return Oe.set(O,Ie++),le.push(O),Y},ce=(Ut("richstructure",d,f,P,yt),Ut("richdata",d,f,P,yt),new Map),Ve=new Map,Le=Ut("people",d,f,P);let Ct=null;if(Le.size>0&&(Ct=Le.entries().next()?.value?.[1]?.persons,Ct)){const O=Ct.length;for(let U=0;U<O;U++){const Y=Ct[U];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=Ut("themes",d,f,P,yt);let Ne=null;if(Te&&Te.entries){let O=Te.entries().next();O?.value?.[1]&&(Ne=O.value[1])}const ds=new u.ac(Ne);let he=Ut("styles",d,f,P,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.Ia(he)));const ps=Ut("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...ps.entries().next().value[1],styles:he,theme:ds.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const gs={...n,resources:y,json:ye},fs=new u.j1(gs);return F.forEach(O=>{O.deleteReference(V)}),m.endPersist(),fs}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.Ge&&(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("./B4ScrvWBCXLzvNBz.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((E,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.Wt.Type.General&&(f===u.Wt.Type.ShortDate?f="m/d/yyyy":f===u.Wt.Type.MediumDate?f="d-mmm-yy":f===u.Wt.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.Wt.Type.ShortTime?f="h:mm":f===u.Wt.Type.MediumTime?f="h:mm AM/PM":f===u.Wt.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(E!==null)switch(b.getType()){case u.K.Number:d.t="n",d.v=E;break;case u.K.String:d.t="s",d.v=E;break;case u.K.Boolean:d.t="b",d.v=E;break;case u.K.Error:d.t="e",d.v=E.toString();case u.K.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const E=[];T["!merges"]=E;for(let b=0;b<S.merges.length;b++)E.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const E=[];T["!cols"]=E;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=E.length;m<=f.min-1;m++)E.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++)E.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=cs,exports.c=i=>i?u.Tz.roundAccurately(parseFloat(i)/9525,1):null,exports.d=Ee,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=ls,exports.t=i=>i?u.Tz.roundAccurately(parseFloat(i)/12700,4):null;
|