school-erp-ui-shared 1.0.5 → 1.0.7

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.
@@ -0,0 +1,444 @@
1
+ "use strict";const V=require("react"),Cj=require("@tanstack/react-query"),S=require("react/jsx-runtime"),Ye=require("lucide-react"),Hs=require("react-router-dom");function jj(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const ns=jj(V);function uO(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=uO(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function jt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=uO(e))&&(n&&(n+=" "),n+=t);return n}const $x="-",kj=e=>{const t=Ij(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split($x);return s[0]===""&&s.length!==1&&s.shift(),cO(s,t)||Lj(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},cO=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?cO(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join($x);return(o=t.validators.find(({validator:s})=>s(a)))==null?void 0:o.classGroupId},H5=/^\[(.+)\]$/,Lj=e=>{if(H5.test(e)){const t=H5.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Ij=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return Rj(Object.entries(e.classGroups),r).forEach(([a,o])=>{e2(o,n,a,t)}),n},e2=(e,t,r,n)=>{e.forEach(i=>{if(typeof i=="string"){const a=i===""?t:G5(t,i);a.classGroupId=r;return}if(typeof i=="function"){if(Fj(i)){e2(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{e2(o,G5(t,a),r,n)})})},G5=(e,t)=>{let r=e;return t.split($x).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Fj=e=>e.isThemeGetter,Rj=(e,t)=>t?e.map(([r,n])=>{const i=n.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([o,s])=>[t+o,s])):a);return[r,i]}):e,Mj=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const i=(a,o)=>{r.set(a,o),t++,t>e&&(t=0,n=r,r=new Map)};return{get(a){let o=r.get(a);if(o!==void 0)return o;if((o=n.get(a))!==void 0)return i(a,o),o},set(a,o){r.has(a)?r.set(a,o):i(a,o)}}},fO="!",Dj=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let u=0,c=0,f;for(let m=0;m<s.length;m++){let y=s[m];if(u===0){if(y===i&&(n||s.slice(m,m+a)===t)){l.push(s.slice(c,m)),c=m+a;continue}if(y==="/"){f=m;continue}}y==="["?u++:y==="]"&&u--}const d=l.length===0?s:s.substring(c),h=d.startsWith(fO),g=h?d.substring(1):d,p=f&&f>c?f-c:void 0;return{modifiers:l,hasImportantModifier:h,baseClassName:g,maybePostfixModifierPosition:p}};return r?s=>r({className:s,parseClassName:o}):o},Bj=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach(n=>{n[0]==="["?(t.push(...r.sort(),n),r=[]):r.push(n)}),t.push(...r.sort()),t},$j=e=>({cache:Mj(e.cacheSize),parseClassName:Dj(e),...kj(e)}),qj=/\s+/,Uj=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i}=t,a=[],o=e.trim().split(qj);let s="";for(let l=o.length-1;l>=0;l-=1){const u=o[l],{modifiers:c,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(u);let g=!!h,p=n(g?d.substring(0,h):d);if(!p){if(!g){s=u+(s.length>0?" "+s:s);continue}if(p=n(d),!p){s=u+(s.length>0?" "+s:s);continue}g=!1}const m=Bj(c).join(":"),y=f?m+fO:m,x=y+p;if(a.includes(x))continue;a.push(x);const w=i(p,g);for(let T=0;T<w.length;++T){const _=w[T];a.push(y+_)}s=u+(s.length>0?" "+s:s)}return s};function zj(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=hO(t))&&(n&&(n+=" "),n+=r);return n}const hO=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=hO(e[n]))&&(r&&(r+=" "),r+=t);return r};function Wj(e,...t){let r,n,i,a=o;function o(l){const u=t.reduce((c,f)=>f(c),e());return r=$j(u),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const u=n(l);if(u)return u;const c=Uj(l,r);return i(l,c),c}return function(){return a(zj.apply(null,arguments))}}const Er=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},dO=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hj=/^\d+\/\d+$/,Gj=new Set(["px","full","screen"]),Vj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kj=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yj=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Xj=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jj=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ro=e=>Jl(e)||Gj.has(e)||Hj.test(e),Uo=e=>Mu(e,"length",ak),Jl=e=>!!e&&!Number.isNaN(Number(e)),O1=e=>Mu(e,"number",Jl),Ac=e=>!!e&&Number.isInteger(Number(e)),Zj=e=>e.endsWith("%")&&Jl(e.slice(0,-1)),It=e=>dO.test(e),zo=e=>Vj.test(e),Qj=new Set(["length","size","percentage"]),ek=e=>Mu(e,Qj,pO),tk=e=>Mu(e,"position",pO),rk=new Set(["image","url"]),nk=e=>Mu(e,rk,sk),ik=e=>Mu(e,"",ok),Tc=()=>!0,Mu=(e,t,r)=>{const n=dO.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},ak=e=>Kj.test(e)&&!Yj.test(e),pO=()=>!1,ok=e=>Xj.test(e),sk=e=>Jj.test(e),lk=()=>{const e=Er("colors"),t=Er("spacing"),r=Er("blur"),n=Er("brightness"),i=Er("borderColor"),a=Er("borderRadius"),o=Er("borderSpacing"),s=Er("borderWidth"),l=Er("contrast"),u=Er("grayscale"),c=Er("hueRotate"),f=Er("invert"),d=Er("gap"),h=Er("gradientColorStops"),g=Er("gradientColorStopPositions"),p=Er("inset"),m=Er("margin"),y=Er("opacity"),x=Er("padding"),w=Er("saturate"),T=Er("scale"),_=Er("sepia"),O=Er("skew"),A=Er("space"),k=Er("translate"),L=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",It,t],P=()=>[It,t],M=()=>["",ro,Uo],q=()=>["auto",Jl,It],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],U=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>["start","end","center","between","around","evenly","stretch"],Z=()=>["","0",It],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],le=()=>[Jl,It];return{cacheSize:500,separator:":",theme:{colors:[Tc],spacing:[ro,Uo],blur:["none","",zo,It],brightness:le(),borderColor:[e],borderRadius:["none","","full",zo,It],borderSpacing:P(),borderWidth:M(),contrast:le(),grayscale:Z(),hueRotate:le(),invert:Z(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Zj,Uo],inset:C(),margin:C(),opacity:le(),padding:P(),saturate:le(),scale:le(),sepia:Z(),skew:le(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",It]}],container:["container"],columns:[{columns:[zo]}],"break-after":[{"break-after":Q()}],"break-before":[{"break-before":Q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),It]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ac,It]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",It]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Ac,It]}],"grid-cols":[{"grid-cols":[Tc]}],"col-start-end":[{col:["auto",{span:["full",Ac,It]},It]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[Tc]}],"row-start-end":[{row:["auto",{span:[Ac,It]},It]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",It]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",It]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...ee()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...ee(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...ee(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",It,t]}],"min-w":[{"min-w":[It,t,"min","max","fit"]}],"max-w":[{"max-w":[It,t,"none","full","min","max","fit","prose",{screen:[zo]},zo]}],h:[{h:[It,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[It,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[It,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[It,t,"auto","min","max","fit"]}],"font-size":[{text:["base",zo,Uo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",O1]}],"font-family":[{font:[Tc]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",It]}],"line-clamp":[{"line-clamp":["none",Jl,O1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ro,It]}],"list-image":[{"list-image":["none",It]}],"list-style-type":[{list:["none","disc","decimal",It]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...U(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ro,Uo]}],"underline-offset":[{"underline-offset":["auto",ro,It]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",It]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",It]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),tk]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",ek]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},nk]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[g]}],"gradient-via-pos":[{via:[g]}],"gradient-to-pos":[{to:[g]}],"gradient-from":[{from:[h]}],"gradient-via":[{via:[h]}],"gradient-to":[{to:[h]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...U(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:U()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...U()]}],"outline-offset":[{"outline-offset":[ro,It]}],"outline-w":[{outline:[ro,Uo]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ro,Uo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",zo,ik]}],"shadow-color":[{shadow:[Tc]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",zo,It]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[f]}],saturate:[{saturate:[w]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",It]}],duration:[{duration:le()}],ease:[{ease:["linear","in","out","in-out",It]}],delay:[{delay:le()}],animate:[{animate:["none","spin","ping","pulse","bounce",It]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Ac,It]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[O]}],"skew-y":[{"skew-y":[O]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",It]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",It]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",It]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ro,Uo,O1]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},uk=Wj(lk);function Lt(...e){return uk(jt(e))}function ck(e,t,r){const n=[t.join(","),...r.map(s=>s.map(l=>`"${String(l||"").replace(/"/g,'""')}"`).join(","))].join(`
2
+ `),i=new Blob([n],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(i),o=document.createElement("a");o.href=a,o.download=`${e}.csv`,o.click(),URL.revokeObjectURL(a)}function ir(e){"@babel/helpers - typeof";return ir=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ir(e)}var Dn=Uint8Array,Pi=Uint16Array,qx=Int32Array,ep=new Dn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),tp=new Dn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),t2=new Dn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),vO=function(e,t){for(var r=new Pi(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new qx(r[30]),n=1;n<30;++n)for(var a=r[n];a<r[n+1];++a)i[a]=a-r[n]<<5|n;return{b:r,r:i}},mO=vO(ep,2),gO=mO.b,r2=mO.r;gO[28]=258,r2[258]=28;var yO=vO(tp,0),fk=yO.b,V5=yO.r,n2=new Pi(32768);for(var Pr=0;Pr<32768;++Pr){var Wo=(Pr&43690)>>1|(Pr&21845)<<1;Wo=(Wo&52428)>>2|(Wo&13107)<<2,Wo=(Wo&61680)>>4|(Wo&3855)<<4,n2[Pr]=((Wo&65280)>>8|(Wo&255)<<8)>>1}var Ra=(function(e,t,r){for(var n=e.length,i=0,a=new Pi(t);i<n;++i)e[i]&&++a[e[i]-1];var o=new Pi(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(r){s=new Pi(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],f=o[e[i]-1]++<<c,d=f|(1<<c)-1;f<=d;++f)s[n2[f]>>l]=u}else for(s=new Pi(n),i=0;i<n;++i)e[i]&&(s[i]=n2[o[e[i]-1]++]>>15-e[i]);return s}),is=new Dn(288);for(var Pr=0;Pr<144;++Pr)is[Pr]=8;for(var Pr=144;Pr<256;++Pr)is[Pr]=9;for(var Pr=256;Pr<280;++Pr)is[Pr]=7;for(var Pr=280;Pr<288;++Pr)is[Pr]=8;var sf=new Dn(32);for(var Pr=0;Pr<32;++Pr)sf[Pr]=5;var hk=Ra(is,9,0),dk=Ra(is,9,1),pk=Ra(sf,5,0),vk=Ra(sf,5,1),P1=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},oa=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},N1=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Ux=function(e){return(e+7)/8|0},xO=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new Dn(e.subarray(t,r))},mk=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],fa=function(e,t,r){var n=new Error(t||mk[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,fa),!r)throw n;return n},gk=function(e,t,r,n){var i=e.length,a=0;if(!i||t.f&&!t.l)return r||new Dn(0);var o=!r,s=o||t.i!=2,l=t.i;o&&(r=new Dn(i*3));var u=function(Se){var ue=r.length;if(Se>ue){var Ie=new Dn(Math.max(ue*2,Se));Ie.set(r),r=Ie}},c=t.f||0,f=t.p||0,d=t.b||0,h=t.l,g=t.d,p=t.m,m=t.n,y=i*8;do{if(!h){c=oa(e,f,1);var x=oa(e,f+1,3);if(f+=3,x)if(x==1)h=dk,g=vk,p=9,m=5;else if(x==2){var O=oa(e,f,31)+257,A=oa(e,f+10,15)+4,k=O+oa(e,f+5,31)+1;f+=14;for(var L=new Dn(k),B=new Dn(19),C=0;C<A;++C)B[t2[C]]=oa(e,f+C*3,7);f+=A*3;for(var P=P1(B),M=(1<<P)-1,q=Ra(B,P,1),C=0;C<k;){var J=q[oa(e,f,M)];f+=J&15;var w=J>>4;if(w<16)L[C++]=w;else{var U=0,H=0;for(w==16?(H=3+oa(e,f,3),f+=2,U=L[C-1]):w==17?(H=3+oa(e,f,7),f+=3):w==18&&(H=11+oa(e,f,127),f+=7);H--;)L[C++]=U}}var ee=L.subarray(0,O),Z=L.subarray(O);p=P1(ee),m=P1(Z),h=Ra(ee,p,1),g=Ra(Z,m,1)}else fa(1);else{var w=Ux(f)+4,T=e[w-4]|e[w-3]<<8,_=w+T;if(_>i){l&&fa(0);break}s&&u(d+T),r.set(e.subarray(w,_),d),t.b=d+=T,t.p=f=_*8,t.f=c;continue}if(f>y){l&&fa(0);break}}s&&u(d+131072);for(var Q=(1<<p)-1,le=(1<<m)-1,N=f;;N=f){var U=h[N1(e,f)&Q],I=U>>4;if(f+=U&15,f>y){l&&fa(0);break}if(U||fa(2),I<256)r[d++]=I;else if(I==256){N=f,h=null;break}else{var R=I-254;if(I>264){var C=I-257,D=ep[C];R=oa(e,f,(1<<D)-1)+gO[C],f+=D}var G=g[N1(e,f)&le],ce=G>>4;G||fa(3),f+=G&15;var Z=fk[ce];if(ce>3){var D=tp[ce];Z+=N1(e,f)&(1<<D)-1,f+=D}if(f>y){l&&fa(0);break}s&&u(d+131072);var he=d+R;if(d<Z){var ne=a-Z,me=Math.min(Z,he);for(ne+d<0&&fa(3);d<me;++d)r[d]=n[ne+d]}for(;d<he;++d)r[d]=r[d-Z]}}t.l=h,t.p=N,t.b=d,t.f=c,h&&(c=1,t.m=p,t.d=g,t.n=m)}while(!c);return d!=r.length&&o?xO(r,0,d):r.subarray(0,d)},no=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},Ec=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},C1=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var i=r.length,a=r.slice();if(!i)return{t:wO,l:0};if(i==1){var o=new Dn(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(_,O){return _.f-O.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],u=0,c=1,f=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};c!=i-1;)s=r[r[u].f<r[f].f?u++:f++],l=r[u!=c&&r[u].f<r[f].f?u++:f++],r[c++]={s:-1,f:s.f+l.f,l:s,r:l};for(var d=a[0].s,n=1;n<i;++n)a[n].s>d&&(d=a[n].s);var h=new Pi(d+1),g=i2(r[c-1],h,0);if(g>t){var n=0,p=0,m=g-t,y=1<<m;for(a.sort(function(O,A){return h[A.s]-h[O.s]||O.f-A.f});n<i;++n){var x=a[n].s;if(h[x]>t)p+=y-(1<<g-h[x]),h[x]=t;else break}for(p>>=m;p>0;){var w=a[n].s;h[w]<t?p-=1<<t-h[w]++-1:++n}for(;n>=0&&p;--n){var T=a[n].s;h[T]==t&&(--h[T],++p)}g=t}return{t:new Dn(h),l:g}},i2=function(e,t,r){return e.s==-1?Math.max(i2(e.l,t,r+1),i2(e.r,t,r+1)):t[e.s]=r},K5=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new Pi(++t),n=0,i=e[0],a=1,o=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:r.subarray(0,n),n:t}},Oc=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},bO=function(e,t,r){var n=r.length,i=Ux(t+2);e[i]=n&255,e[i+1]=n>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a<n;++a)e[i+a+4]=r[a];return(i+4+n)*8},Y5=function(e,t,r,n,i,a,o,s,l,u,c){no(t,c++,r),++i[256];for(var f=C1(i,15),d=f.t,h=f.l,g=C1(a,15),p=g.t,m=g.l,y=K5(d),x=y.c,w=y.n,T=K5(p),_=T.c,O=T.n,A=new Pi(19),k=0;k<x.length;++k)++A[x[k]&31];for(var k=0;k<_.length;++k)++A[_[k]&31];for(var L=C1(A,7),B=L.t,C=L.l,P=19;P>4&&!B[t2[P-1]];--P);var M=u+5<<3,q=Oc(i,is)+Oc(a,sf)+o,J=Oc(i,d)+Oc(a,p)+o+14+3*P+Oc(A,B)+2*A[16]+3*A[17]+7*A[18];if(l>=0&&M<=q&&M<=J)return bO(t,c,e.subarray(l,l+u));var U,H,ee,Z;if(no(t,c,1+(J<q)),c+=2,J<q){U=Ra(d,h,0),H=d,ee=Ra(p,m,0),Z=p;var Q=Ra(B,C,0);no(t,c,w-257),no(t,c+5,O-1),no(t,c+10,P-4),c+=14;for(var k=0;k<P;++k)no(t,c+3*k,B[t2[k]]);c+=3*P;for(var le=[x,_],N=0;N<2;++N)for(var I=le[N],k=0;k<I.length;++k){var R=I[k]&31;no(t,c,Q[R]),c+=B[R],R>15&&(no(t,c,I[k]>>5&127),c+=I[k]>>12)}}else U=hk,H=is,ee=pk,Z=sf;for(var k=0;k<s;++k){var D=n[k];if(D>255){var R=D>>18&31;Ec(t,c,U[R+257]),c+=H[R+257],R>7&&(no(t,c,D>>23&31),c+=ep[R]);var G=D&31;Ec(t,c,ee[G]),c+=Z[G],G>3&&(Ec(t,c,D>>5&8191),c+=tp[G])}else Ec(t,c,U[D]),c+=H[D]}return Ec(t,c,U[256]),c+H[256]},yk=new qx([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),wO=new Dn(0),xk=function(e,t,r,n,i,a){var o=a.z||e.length,s=new Dn(n+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(n,s.length-i),u=a.l,c=(a.r||0)&7;if(t){c&&(l[0]=a.r>>3);for(var f=yk[t-1],d=f>>13,h=f&8191,g=(1<<r)-1,p=a.p||new Pi(32768),m=a.h||new Pi(g+1),y=Math.ceil(r/3),x=2*y,w=function(ge){return(e[ge]^e[ge+1]<<y^e[ge+2]<<x)&g},T=new qx(25e3),_=new Pi(288),O=new Pi(32),A=0,k=0,L=a.i||0,B=0,C=a.w||0,P=0;L+2<o;++L){var M=w(L),q=L&32767,J=m[M];if(p[q]=J,m[M]=q,C<=L){var U=o-L;if((A>7e3||B>24576)&&(U>423||!u)){c=Y5(e,l,0,T,_,O,k,B,P,L-P,c),B=A=k=0,P=L;for(var H=0;H<286;++H)_[H]=0;for(var H=0;H<30;++H)O[H]=0}var ee=2,Z=0,Q=h,le=q-J&32767;if(U>2&&M==w(L-le))for(var N=Math.min(d,U)-1,I=Math.min(32767,L),R=Math.min(258,U);le<=I&&--Q&&q!=J;){if(e[L+ee]==e[L+ee-le]){for(var D=0;D<R&&e[L+D]==e[L+D-le];++D);if(D>ee){if(ee=D,Z=le,D>N)break;for(var G=Math.min(le,D-2),ce=0,H=0;H<G;++H){var he=L-le+H&32767,ne=p[he],me=he-ne&32767;me>ce&&(ce=me,J=he)}}}q=J,J=p[q],le+=q-J&32767}if(Z){T[B++]=268435456|r2[ee]<<18|V5[Z];var Se=r2[ee]&31,ue=V5[Z]&31;k+=ep[Se]+tp[ue],++_[257+Se],++O[ue],C=L+ee,++A}else T[B++]=e[L],++_[e[L]]}}for(L=Math.max(L,C);L<o;++L)T[B++]=e[L],++_[e[L]];c=Y5(e,l,u,T,_,O,k,B,P,L-P,c),u||(a.r=c&7|l[c/8|0]<<3,c-=7,a.h=m,a.p=p,a.i=L,a.w=C)}else{for(var L=a.w||0;L<o+u;L+=65535){var Ie=L+65535;Ie>=o&&(l[c/8|0]=u,Ie=o),c=bO(l,c+1,e.subarray(L,Ie))}a.i=o}return xO(s,0,n+Ux(c)+i)},_O=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,a=r.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o<s;++o)i+=n+=r[o];n=(n&65535)+15*(n>>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},bk=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new Dn(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return xk(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},SO=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},wk=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=_O();i.p(t.dictionary),SO(e,2,i.d())}},_k=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&fa(6,"invalid zlib data"),(e[1]>>5&1)==1&&fa(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function a2(e,t){t||(t={});var r=_O();r.p(e);var n=bk(e,t,t.dictionary?6:2,4);return wk(n,t),SO(n,n.length-4,r.d()),n}function Sk(e,t){return gk(e.subarray(_k(e),-4),{i:2},t,t)}var Ak=typeof TextDecoder<"u"&&new TextDecoder,Tk=0;try{Ak.decode(wO,{stream:!0}),Tk=1}catch{}/** @license
3
+ *
4
+ * jsPDF - PDF Document creation from JavaScript
5
+ * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
6
+ * CommitID 00000000
7
+ *
8
+ * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
9
+ * 2015-2021 yWorks GmbH, http://www.yworks.com
10
+ * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
11
+ * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
12
+ * 2010 Aaron Spike, https://github.com/acspike
13
+ * 2012 Willow Systems Corporation, https://github.com/willowsystems
14
+ * 2012 Pablo Hess, https://github.com/pablohess
15
+ * 2012 Florian Jenett, https://github.com/fjenett
16
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
17
+ * 2013 Youssef Beddad, https://github.com/lifof
18
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
19
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
20
+ * 2013 Jeremy Morel, https://github.com/jmorel
21
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
22
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
23
+ * 2014 James Makes, https://github.com/dollaruw
24
+ * 2014 Diego Casorran, https://github.com/diegocr
25
+ * 2014 Steven Spungin, https://github.com/Flamenco
26
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
27
+ *
28
+ * Permission is hereby granted, free of charge, to any person obtaining
29
+ * a copy of this software and associated documentation files (the
30
+ * "Software"), to deal in the Software without restriction, including
31
+ * without limitation the rights to use, copy, modify, merge, publish,
32
+ * distribute, sublicense, and/or sell copies of the Software, and to
33
+ * permit persons to whom the Software is furnished to do so, subject to
34
+ * the following conditions:
35
+ *
36
+ * The above copyright notice and this permission notice shall be
37
+ * included in all copies or substantial portions of the Software.
38
+ *
39
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
43
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
44
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
45
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
46
+ *
47
+ * Contributor(s):
48
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
49
+ * kim3er, mfo, alnorth, Flamenco
50
+ */var _t=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function j1(){_t.console&&typeof _t.console.log=="function"&&_t.console.log.apply(_t.console,arguments)}var xr={log:j1,warn:function(e){_t.console&&(typeof _t.console.warn=="function"?_t.console.warn.apply(_t.console,arguments):j1.call(null,arguments))},error:function(e){_t.console&&(typeof _t.console.error=="function"?_t.console.error.apply(_t.console,arguments):j1(e))}};function k1(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Os(n.response,t,r)},n.onerror=function(){xr.error("could not download file")},n.send()}function X5(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function a0(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Uc,o2,Os=_t.saveAs||((typeof window>"u"?"undefined":ir(window))!=="object"||window!==_t?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=_t.URL||_t.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?X5(i.href)?k1(e,t,r):a0(i,i.target="_blank"):a0(i)):(i.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){a0(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(X5(e))k1(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){a0(n)}))}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:ir(a)!=="object"&&(xr.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i})(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return k1(e,t,r);var i=e.type==="application/octet-stream",a=/constructor/i.test(_t.HTMLElement)||_t.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":ir(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var c=s.result;c=o?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=c:location=c,n=null},s.readAsDataURL(e)}else{var l=_t.URL||_t.webkitURL,u=l.createObjectURL(e);n?n.location=u:location.href=u,n=null,setTimeout((function(){l.revokeObjectURL(u)}),4e4)}});/**
51
+ * A class to parse color values
52
+ * @author Stoyan Stefanov <sstoo@gmail.com>
53
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
54
+ * @license Use it if you like it
55
+ */function AO(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",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",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<r.length;n++){var i=r[n].re,a=r[n].process,o=i.exec(e);o&&(t=a(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),u=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),"#"+s+l+u}}/**
56
+ * @license
57
+ * Joseph Myers does not specify a particular license for his work.
58
+ *
59
+ * Author: Joseph Myers
60
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
61
+ *
62
+ * Modified by: Owen Leong
63
+ */function L1(e,t){var r=e[0],n=e[1],i=e[2],a=e[3];r=kn(r,n,i,a,t[0],7,-680876936),a=kn(a,r,n,i,t[1],12,-389564586),i=kn(i,a,r,n,t[2],17,606105819),n=kn(n,i,a,r,t[3],22,-1044525330),r=kn(r,n,i,a,t[4],7,-176418897),a=kn(a,r,n,i,t[5],12,1200080426),i=kn(i,a,r,n,t[6],17,-1473231341),n=kn(n,i,a,r,t[7],22,-45705983),r=kn(r,n,i,a,t[8],7,1770035416),a=kn(a,r,n,i,t[9],12,-1958414417),i=kn(i,a,r,n,t[10],17,-42063),n=kn(n,i,a,r,t[11],22,-1990404162),r=kn(r,n,i,a,t[12],7,1804603682),a=kn(a,r,n,i,t[13],12,-40341101),i=kn(i,a,r,n,t[14],17,-1502002290),r=Ln(r,n=kn(n,i,a,r,t[15],22,1236535329),i,a,t[1],5,-165796510),a=Ln(a,r,n,i,t[6],9,-1069501632),i=Ln(i,a,r,n,t[11],14,643717713),n=Ln(n,i,a,r,t[0],20,-373897302),r=Ln(r,n,i,a,t[5],5,-701558691),a=Ln(a,r,n,i,t[10],9,38016083),i=Ln(i,a,r,n,t[15],14,-660478335),n=Ln(n,i,a,r,t[4],20,-405537848),r=Ln(r,n,i,a,t[9],5,568446438),a=Ln(a,r,n,i,t[14],9,-1019803690),i=Ln(i,a,r,n,t[3],14,-187363961),n=Ln(n,i,a,r,t[8],20,1163531501),r=Ln(r,n,i,a,t[13],5,-1444681467),a=Ln(a,r,n,i,t[2],9,-51403784),i=Ln(i,a,r,n,t[7],14,1735328473),r=In(r,n=Ln(n,i,a,r,t[12],20,-1926607734),i,a,t[5],4,-378558),a=In(a,r,n,i,t[8],11,-2022574463),i=In(i,a,r,n,t[11],16,1839030562),n=In(n,i,a,r,t[14],23,-35309556),r=In(r,n,i,a,t[1],4,-1530992060),a=In(a,r,n,i,t[4],11,1272893353),i=In(i,a,r,n,t[7],16,-155497632),n=In(n,i,a,r,t[10],23,-1094730640),r=In(r,n,i,a,t[13],4,681279174),a=In(a,r,n,i,t[0],11,-358537222),i=In(i,a,r,n,t[3],16,-722521979),n=In(n,i,a,r,t[6],23,76029189),r=In(r,n,i,a,t[9],4,-640364487),a=In(a,r,n,i,t[12],11,-421815835),i=In(i,a,r,n,t[15],16,530742520),r=Fn(r,n=In(n,i,a,r,t[2],23,-995338651),i,a,t[0],6,-198630844),a=Fn(a,r,n,i,t[7],10,1126891415),i=Fn(i,a,r,n,t[14],15,-1416354905),n=Fn(n,i,a,r,t[5],21,-57434055),r=Fn(r,n,i,a,t[12],6,1700485571),a=Fn(a,r,n,i,t[3],10,-1894986606),i=Fn(i,a,r,n,t[10],15,-1051523),n=Fn(n,i,a,r,t[1],21,-2054922799),r=Fn(r,n,i,a,t[8],6,1873313359),a=Fn(a,r,n,i,t[15],10,-30611744),i=Fn(i,a,r,n,t[6],15,-1560198380),n=Fn(n,i,a,r,t[13],21,1309151649),r=Fn(r,n,i,a,t[4],6,-145523070),a=Fn(a,r,n,i,t[11],10,-1120210379),i=Fn(i,a,r,n,t[2],15,718787259),n=Fn(n,i,a,r,t[9],21,-343485551),e[0]=Xo(r,e[0]),e[1]=Xo(n,e[1]),e[2]=Xo(i,e[2]),e[3]=Xo(a,e[3])}function rp(e,t,r,n,i,a){return t=Xo(Xo(t,e),Xo(n,a)),Xo(t<<i|t>>>32-i,r)}function kn(e,t,r,n,i,a,o){return rp(t&r|~t&n,e,t,i,a,o)}function Ln(e,t,r,n,i,a,o){return rp(t&n|r&~n,e,t,i,a,o)}function In(e,t,r,n,i,a,o){return rp(t^r^n,e,t,i,a,o)}function Fn(e,t,r,n,i,a,o){return rp(r^(t|~n),e,t,i,a,o)}function TO(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)L1(n,Ek(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(L1(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,L1(n,i),n}function Ek(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}Uc=_t.atob.bind(_t),o2=_t.btoa.bind(_t);var J5="0123456789abcdef".split("");function Ok(e){for(var t="",r=0;r<4;r++)t+=J5[e>>8*r+4&15]+J5[e>>8*r&15];return t}function Pk(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function s2(e){return TO(e).map(Pk).join("")}var Nk=(function(e){for(var t=0;t<e.length;t++)e[t]=Ok(e[t]);return e.join("")})(TO("hello"))!="5d41402abc4b2a76b9719d911017c592";function Xo(e,t){if(Nk){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/**
64
+ * @license
65
+ * FPDF is released under a permissive license: there is no usage restriction.
66
+ * You may embed it freely in your application (commercial or not), with or
67
+ * without modifications.
68
+ *
69
+ * Reference: http://www.fpdf.org/en/script/script37.php
70
+ */function l2(e,t){var r,n,i,a;if(e!==r){for(var o=(i=e,a=1+(256/e.length>>0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var c=s[l];u=(u+c+o.charCodeAt(l))%256,s[l]=s[u],s[u]=c}r=e,n=s}else s=n;var f=t.length,d=0,h=0,g="";for(l=0;l<f;l++)h=(h+(c=s[d=(d+1)%256]))%256,s[d]=s[h],s[h]=c,o=s[(s[d]+s[h])%256],g+=String.fromCharCode(t.charCodeAt(l)^o);return g}/**
71
+ * @license
72
+ * Licensed under the MIT License.
73
+ * http://opensource.org/licenses/mit-license
74
+ * Author: Owen Leong (@owenl131)
75
+ * Date: 15 Oct 2020
76
+ * References:
77
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
78
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
79
+ * http://www.fpdf.org/en/script/script37.php
80
+ */var Z5={print:4,modify:8,copy:16,"annot-forms":32};function Ul(e,t,r,n){this.v=1,this.r=2;var i=192;e.forEach((function(s){if(Z5.perm!==void 0)throw new Error("Invalid permission: "+s);i+=Z5[s]})),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var a=(t+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=s2(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=l2(this.encryptionKey,this.padding)}function zl(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var i=e.charCodeAt(n);i<33||i===35||i===37||i===40||i===41||i===47||i===60||i===62||i===91||i===93||i===123||i===125||i>126?t+="#"+("0"+i.toString(16)).slice(-2):t+=e[n]}return t}function Q5(e){if(ir(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var a=Math.random().toString(35);return t[r][a]=[n,!!i],a},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[r]){var o=t[r][a];try{o[0].apply(e,n)}catch(s){_t.console&&xr.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function lf(e){if(!(this instanceof lf))return new lf(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function EO(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Ko(e,t,r,n,i){if(!(this instanceof Ko))return new Ko(e,t,r,n,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,EO.call(this,n,i)}function ks(e,t,r,n,i){if(!(this instanceof ks))return new ks(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,EO.call(this,n,i)}function vt(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,l=16,u="S",c=null;ir(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,a=e.compress||e.compressPdf||a,(c=e.encryption||null)!==null&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),u=e.defaultPathOperation||"S"),o=e.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var f=e.putOnlyUsedFonts||!1,d={},h={internal:{},__private__:{}};h.__private__.PubSub=Q5;var g="1.3",p=h.__private__.getPdfVersion=function(){return g};h.__private__.setPdfVersion=function(E){g=E};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return m};var y=h.__private__.getPageFormat=function(E){return m[E]};i=i||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},w=x.COMPAT;function T(){this.saveGraphicsState(),oe(new gt(at,0,0,-at,0,Co()*at).toString()+" cm"),this.setFontSize(this.getFontSize()/at),u="n",w=x.ADVANCED}function _(){this.restoreGraphicsState(),u="S",w=x.COMPAT}var O=h.__private__.combineFontStyleAndFontWeight=function(E,W){if(E=="bold"&&W=="normal"||E=="bold"&&W==400||E=="normal"&&W=="italic"||E=="bold"&&W=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return W&&(E=W==400||W==="normal"?E==="italic"?"italic":"normal":W!=700&&W!=="bold"||E!=="normal"?(W==700?"bold":W)+""+E:"bold"),E};h.advancedAPI=function(E){var W=w===x.COMPAT;return W&&T.call(this),typeof E!="function"||(E(this),W&&_.call(this)),this},h.compatAPI=function(E){var W=w===x.ADVANCED;return W&&_.call(this),typeof E!="function"||(E(this),W&&T.call(this)),this},h.isAdvancedAPI=function(){return w===x.ADVANCED};var A,k=function(E){if(w!==x.ADVANCED)throw new Error(E+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},L=h.roundToPrecision=h.__private__.roundToPrecision=function(E,W){var ve=t||W;if(isNaN(E)||isNaN(ve))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return E.toFixed(ve).replace(/0+$/,"")};A=h.hpf=h.__private__.hpf=typeof l=="number"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return L(E,l)}:l==="smart"?function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return L(E,E>-1&&E<1?16:5)}:function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.hpf");return L(E,16)};var B=h.f2=h.__private__.f2=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f2");return L(E,2)},C=h.__private__.f3=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.f3");return L(E,3)},P=h.scale=h.__private__.scale=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.scale");return w===x.COMPAT?E*at:w===x.ADVANCED?E:void 0},M=function(E){return w===x.COMPAT?Co()-E:w===x.ADVANCED?E:void 0},q=function(E){return P(M(E))};h.__private__.setPrecision=h.setPrecision=function(E){typeof parseInt(E,10)=="number"&&(t=parseInt(E,10))};var J,U="00000000000000000000000000000000",H=h.__private__.getFileId=function(){return U},ee=h.__private__.setFileId=function(E){return U=E!==void 0&&/^[a-fA-F0-9]{32}$/.test(E)?E.toUpperCase():U.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),c!==null&&(Cn=new Ul(c.userPermissions,c.userPassword,c.ownerPassword,U)),U};h.setFileId=function(E){return ee(E),this},h.getFileId=function(){return H()};var Z=h.__private__.convertDateToPDFDate=function(E){var W=E.getTimezoneOffset(),ve=W<0?"+":"-",ye=Math.floor(Math.abs(W/60)),Te=Math.abs(W%60),Fe=[ve,R(ye),"'",R(Te),"'"].join("");return["D:",E.getFullYear(),R(E.getMonth()+1),R(E.getDate()),R(E.getHours()),R(E.getMinutes()),R(E.getSeconds()),Fe].join("")},Q=h.__private__.convertPDFDateToDate=function(E){var W=parseInt(E.substr(2,4),10),ve=parseInt(E.substr(6,2),10)-1,ye=parseInt(E.substr(8,2),10),Te=parseInt(E.substr(10,2),10),Fe=parseInt(E.substr(12,2),10),He=parseInt(E.substr(14,2),10);return new Date(W,ve,ye,Te,Fe,He,0)},le=h.__private__.setCreationDate=function(E){var W;if(E===void 0&&(E=new Date),E instanceof Date)W=Z(E);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(E))throw new Error("Invalid argument passed to jsPDF.setCreationDate");W=E}return J=W},N=h.__private__.getCreationDate=function(E){var W=J;return E==="jsDate"&&(W=Q(J)),W};h.setCreationDate=function(E){return le(E),this},h.getCreationDate=function(E){return N(E)};var I,R=h.__private__.padd2=function(E){return("0"+parseInt(E)).slice(-2)},D=h.__private__.padd2Hex=function(E){return("00"+(E=E.toString())).substr(E.length)},G=0,ce=[],he=[],ne=0,me=[],Se=[],ue=!1,Ie=he,ge=function(){G=0,ne=0,he=[],ce=[],me=[],ie=kr(),ae=kr()};h.__private__.setCustomOutputDestination=function(E){ue=!0,Ie=E};var _e=function(E){ue||(Ie=E)};h.__private__.resetCustomOutputDestination=function(){ue=!1,Ie=he};var oe=h.__private__.out=function(E){return E=E.toString(),ne+=E.length+1,Ie.push(E),Ie},Re=h.__private__.write=function(E){return oe(arguments.length===1?E.toString():Array.prototype.join.call(arguments," "))},et=h.__private__.getArrayBuffer=function(E){for(var W=E.length,ve=new ArrayBuffer(W),ye=new Uint8Array(ve);W--;)ye[W]=E.charCodeAt(W);return ve},Be=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return Be};var Ve=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(E){return Ve=w===x.ADVANCED?E/at:E,this};var Je,Xe=h.__private__.getFontSize=h.getFontSize=function(){return w===x.COMPAT?Ve:Ve*at},ht=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(E){return ht=E,this},h.__private__.getR2L=h.getR2L=function(){return ht};var dt,xt=h.__private__.setZoomMode=function(E){var W=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(E))Je=E;else if(isNaN(E)){if(W.indexOf(E)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+E+'" is not recognized.');Je=E}else Je=parseInt(E,10)};h.__private__.getZoomMode=function(){return Je};var Et,Ft=h.__private__.setPageMode=function(E){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(E)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+E+'" is not recognized.');dt=E};h.__private__.getPageMode=function(){return dt};var Bt=h.__private__.setLayoutMode=function(E){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(E)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+E+'" is not recognized.');Et=E};h.__private__.getLayoutMode=function(){return Et},h.__private__.setDisplayMode=h.setDisplayMode=function(E,W,ve){return xt(E),Bt(W),Ft(ve),this};var wt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(E){if(Object.keys(wt).indexOf(E)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return wt[E]},h.__private__.getDocumentProperties=function(){return wt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(E){for(var W in wt)wt.hasOwnProperty(W)&&E[W]&&(wt[W]=E[W]);return this},h.__private__.setDocumentProperty=function(E,W){if(Object.keys(wt).indexOf(E)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return wt[E]=W};var Rt,at,tn,qt,Qn,Xt={},wr={},Ci=[],zt={},Aa={},Tr={},di={},Zi=null,gr=0,At=[],Ht=new Q5(h),Ha=e.hotfixes||[],rn={},ji={},ki=[],gt=function E(W,ve,ye,Te,Fe,He){if(!(this instanceof E))return new E(W,ve,ye,Te,Fe,He);isNaN(W)&&(W=1),isNaN(ve)&&(ve=0),isNaN(ye)&&(ye=0),isNaN(Te)&&(Te=1),isNaN(Fe)&&(Fe=0),isNaN(He)&&(He=0),this._matrix=[W,ve,ye,Te,Fe,He]};Object.defineProperty(gt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(gt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(gt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(gt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(gt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(gt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(gt.prototype,"a",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(gt.prototype,"b",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(gt.prototype,"c",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(gt.prototype,"d",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(gt.prototype,"e",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(gt.prototype,"f",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(gt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(gt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(gt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(gt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),gt.prototype.join=function(E){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(A).join(E)},gt.prototype.multiply=function(E){var W=E.sx*this.sx+E.shy*this.shx,ve=E.sx*this.shy+E.shy*this.sy,ye=E.shx*this.sx+E.sy*this.shx,Te=E.shx*this.shy+E.sy*this.sy,Fe=E.tx*this.sx+E.ty*this.shx+this.tx,He=E.tx*this.shy+E.ty*this.sy+this.ty;return new gt(W,ve,ye,Te,Fe,He)},gt.prototype.decompose=function(){var E=this.sx,W=this.shy,ve=this.shx,ye=this.sy,Te=this.tx,Fe=this.ty,He=Math.sqrt(E*E+W*W),lt=(E/=He)*ve+(W/=He)*ye;ve-=E*lt,ye-=W*lt;var pt=Math.sqrt(ve*ve+ye*ye);return lt/=pt,E*(ye/=pt)<W*(ve/=pt)&&(E=-E,W=-W,lt=-lt,He=-He),{scale:new gt(He,0,0,pt,0,0),translate:new gt(1,0,0,1,Te,Fe),rotate:new gt(E,W,-W,E,0,0),skew:new gt(1,0,lt,1,0,0)}},gt.prototype.toString=function(E){return this.join(" ")},gt.prototype.inversed=function(){var E=this.sx,W=this.shy,ve=this.shx,ye=this.sy,Te=this.tx,Fe=this.ty,He=1/(E*ye-W*ve),lt=ye*He,pt=-W*He,Ct=-ve*He,Pt=E*He;return new gt(lt,pt,Ct,Pt,-lt*Te-Ct*Fe,-pt*Te-Pt*Fe)},gt.prototype.applyToPoint=function(E){var W=E.x*this.sx+E.y*this.shx+this.tx,ve=E.x*this.shy+E.y*this.sy+this.ty;return new ml(W,ve)},gt.prototype.applyToRectangle=function(E){var W=this.applyToPoint(E),ve=this.applyToPoint(new ml(E.x+E.w,E.y+E.h));return new ic(W.x,W.y,ve.x-W.x,ve.y-W.y)},gt.prototype.clone=function(){var E=this.sx,W=this.shy,ve=this.shx,ye=this.sy,Te=this.tx,Fe=this.ty;return new gt(E,W,ve,ye,Te,Fe)},h.Matrix=gt;var pi=h.matrixMult=function(E,W){return W.multiply(E)},ei=new gt(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=ei;var Nn=function(E,W){if(!Aa[E]){var ve=(W instanceof Ko?"Sh":"P")+(Object.keys(zt).length+1).toString(10);W.id=ve,Aa[E]=ve,zt[ve]=W,Ht.publish("addPattern",W)}};h.ShadingPattern=Ko,h.TilingPattern=ks,h.addShadingPattern=function(E,W){return k("addShadingPattern()"),Nn(E,W),this},h.beginTilingPattern=function(E){k("beginTilingPattern()"),Lh(E.boundingBox[0],E.boundingBox[1],E.boundingBox[2]-E.boundingBox[0],E.boundingBox[3]-E.boundingBox[1],E.matrix)},h.endTilingPattern=function(E,W){k("endTilingPattern()"),W.stream=Se[I].join(`
81
+ `),Nn(E,W),Ht.publish("endTilingPattern",W),ki.pop().restore()};var Br=h.__private__.newObject=function(){var E=kr();return Y(E,!0),E},kr=h.__private__.newObjectDeferred=function(){return G++,ce[G]=function(){return ne},G},Y=function(E,W){return W=typeof W=="boolean"&&W,ce[E]=ne,W&&oe(E+" 0 obj"),E},de=h.__private__.newAdditionalObject=function(){var E={objId:kr(),content:""};return me.push(E),E},ie=kr(),ae=kr(),fe=h.__private__.decodeColorString=function(E){var W=E.split(" ");if(W.length!==2||W[1]!=="g"&&W[1]!=="G")W.length===5&&(W[4]==="k"||W[4]==="K")&&(W=[(1-W[0])*(1-W[3]),(1-W[1])*(1-W[3]),(1-W[2])*(1-W[3]),"r"]);else{var ve=parseFloat(W[0]);W=[ve,ve,ve,"r"]}for(var ye="#",Te=0;Te<3;Te++)ye+=("0"+Math.floor(255*parseFloat(W[Te])).toString(16)).slice(-2);return ye},pe=h.__private__.encodeColorString=function(E){var W;typeof E=="string"&&(E={ch1:E});var ve=E.ch1,ye=E.ch2,Te=E.ch3,Fe=E.ch4,He=E.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof ve=="string"&&ve.charAt(0)!=="#"){var lt=new AO(ve);if(lt.ok)ve=lt.toHex();else if(!/^\d*\.?\d*$/.test(ve))throw new Error('Invalid color "'+ve+'" passed to jsPDF.encodeColorString.')}if(typeof ve=="string"&&/^#[0-9A-Fa-f]{3}$/.test(ve)&&(ve="#"+ve[1]+ve[1]+ve[2]+ve[2]+ve[3]+ve[3]),typeof ve=="string"&&/^#[0-9A-Fa-f]{6}$/.test(ve)){var pt=parseInt(ve.substr(1),16);ve=pt>>16&255,ye=pt>>8&255,Te=255&pt}if(ye===void 0||Fe===void 0&&ve===ye&&ye===Te)if(typeof ve=="string")W=ve+" "+He[0];else switch(E.precision){case 2:W=B(ve/255)+" "+He[0];break;case 3:default:W=C(ve/255)+" "+He[0]}else if(Fe===void 0||ir(Fe)==="object"){if(Fe&&!isNaN(Fe.a)&&Fe.a===0)return W=["1.","1.","1.",He[1]].join(" ");if(typeof ve=="string")W=[ve,ye,Te,He[1]].join(" ");else switch(E.precision){case 2:W=[B(ve/255),B(ye/255),B(Te/255),He[1]].join(" ");break;default:case 3:W=[C(ve/255),C(ye/255),C(Te/255),He[1]].join(" ")}}else if(typeof ve=="string")W=[ve,ye,Te,Fe,He[2]].join(" ");else switch(E.precision){case 2:W=[B(ve),B(ye),B(Te),B(Fe),He[2]].join(" ");break;case 3:default:W=[C(ve),C(ye),C(Te),C(Fe),He[2]].join(" ")}return W},Oe=h.__private__.getFilters=function(){return o},ke=h.__private__.putStream=function(E){var W=(E=E||{}).data||"",ve=E.filters||Oe(),ye=E.alreadyAppliedFilters||[],Te=E.addLength1||!1,Fe=W.length,He=E.objectId,lt=function(jn){return jn};if(c!==null&&He===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");c!==null&&(lt=Cn.encryptor(He,0));var pt={};ve===!0&&(ve=["FlateEncode"]);var Ct=E.additionalKeyValues||[],Pt=(pt=vt.API.processDataByFilters!==void 0?vt.API.processDataByFilters(W,ve):{data:W,reverseChain:[]}).reverseChain+(Array.isArray(ye)?ye.join(" "):ye.toString());if(pt.data.length!==0&&(Ct.push({key:"Length",value:pt.data.length}),Te===!0&&Ct.push({key:"Length1",value:Fe})),Pt.length!=0)if(Pt.split("/").length-1==1)Ct.push({key:"Filter",value:Pt});else{Ct.push({key:"Filter",value:"["+Pt+"]"});for(var Ut=0;Ut<Ct.length;Ut+=1)if(Ct[Ut].key==="DecodeParms"){for(var jr=[],Lr=0;Lr<pt.reverseChain.split("/").length-1;Lr+=1)jr.push("null");jr.push(Ct[Ut].value),Ct[Ut].value="["+jr.join(" ")+"]"}}oe("<<");for(var Vr=0;Vr<Ct.length;Vr++)oe("/"+Ct[Vr].key+" "+Ct[Vr].value);oe(">>"),pt.data.length!==0&&(oe("stream"),oe(lt(pt.data)),oe("endstream"))},Ee=h.__private__.putPage=function(E){var W=E.number,ve=E.data,ye=E.objId,Te=E.contentsObjId;Y(ye,!0),oe("<</Type /Page"),oe("/Parent "+E.rootDictionaryObjId+" 0 R"),oe("/Resources "+E.resourceDictionaryObjId+" 0 R"),oe("/MediaBox ["+parseFloat(A(E.mediaBox.bottomLeftX))+" "+parseFloat(A(E.mediaBox.bottomLeftY))+" "+A(E.mediaBox.topRightX)+" "+A(E.mediaBox.topRightY)+"]"),E.cropBox!==null&&oe("/CropBox ["+A(E.cropBox.bottomLeftX)+" "+A(E.cropBox.bottomLeftY)+" "+A(E.cropBox.topRightX)+" "+A(E.cropBox.topRightY)+"]"),E.bleedBox!==null&&oe("/BleedBox ["+A(E.bleedBox.bottomLeftX)+" "+A(E.bleedBox.bottomLeftY)+" "+A(E.bleedBox.topRightX)+" "+A(E.bleedBox.topRightY)+"]"),E.trimBox!==null&&oe("/TrimBox ["+A(E.trimBox.bottomLeftX)+" "+A(E.trimBox.bottomLeftY)+" "+A(E.trimBox.topRightX)+" "+A(E.trimBox.topRightY)+"]"),E.artBox!==null&&oe("/ArtBox ["+A(E.artBox.bottomLeftX)+" "+A(E.artBox.bottomLeftY)+" "+A(E.artBox.topRightX)+" "+A(E.artBox.topRightY)+"]"),typeof E.userUnit=="number"&&E.userUnit!==1&&oe("/UserUnit "+E.userUnit),Ht.publish("putPage",{objId:ye,pageContext:At[W],pageNumber:W,page:ve}),oe("/Contents "+Te+" 0 R"),oe(">>"),oe("endobj");var Fe=ve.join(`
82
+ `);return w===x.ADVANCED&&(Fe+=`
83
+ Q`),Y(Te,!0),ke({data:Fe,filters:Oe(),objectId:Te}),oe("endobj"),ye},Ce=h.__private__.putPages=function(){var E,W,ve=[];for(E=1;E<=gr;E++)At[E].objId=kr(),At[E].contentsObjId=kr();for(E=1;E<=gr;E++)ve.push(Ee({number:E,data:Se[E],objId:At[E].objId,contentsObjId:At[E].contentsObjId,mediaBox:At[E].mediaBox,cropBox:At[E].cropBox,bleedBox:At[E].bleedBox,trimBox:At[E].trimBox,artBox:At[E].artBox,userUnit:At[E].userUnit,rootDictionaryObjId:ie,resourceDictionaryObjId:ae}));Y(ie,!0),oe("<</Type /Pages");var ye="/Kids [";for(W=0;W<gr;W++)ye+=ve[W]+" 0 R ";oe(ye+"]"),oe("/Count "+gr),oe(">>"),oe("endobj"),Ht.publish("postPutPages")},je=function(E){Ht.publish("putFont",{font:E,out:oe,newObject:Br,putStream:ke}),E.isAlreadyPutted!==!0&&(E.objectNumber=Br(),oe("<<"),oe("/Type /Font"),oe("/BaseFont /"+zl(E.postScriptName)),oe("/Subtype /Type1"),typeof E.encoding=="string"&&oe("/Encoding /"+E.encoding),oe("/FirstChar 32"),oe("/LastChar 255"),oe(">>"),oe("endobj"))},Ge=function(){for(var E in Xt)Xt.hasOwnProperty(E)&&(f===!1||f===!0&&d.hasOwnProperty(E))&&je(Xt[E])},Ze=function(E){E.objectNumber=Br();var W=[];W.push({key:"Type",value:"/XObject"}),W.push({key:"Subtype",value:"/Form"}),W.push({key:"BBox",value:"["+[A(E.x),A(E.y),A(E.x+E.width),A(E.y+E.height)].join(" ")+"]"}),W.push({key:"Matrix",value:"["+E.matrix.toString()+"]"});var ve=E.pages[1].join(`
84
+ `);ke({data:ve,additionalKeyValues:W,objectId:E.objectNumber}),oe("endobj")},st=function(){for(var E in rn)rn.hasOwnProperty(E)&&Ze(rn[E])},Ke=function(E,W){var ve,ye=[],Te=1/(W-1);for(ve=0;ve<1;ve+=Te)ye.push(ve);if(ye.push(1),E[0].offset!=0){var Fe={offset:0,color:E[0].color};E.unshift(Fe)}if(E[E.length-1].offset!=1){var He={offset:1,color:E[E.length-1].color};E.push(He)}for(var lt="",pt=0,Ct=0;Ct<ye.length;Ct++){for(ve=ye[Ct];ve>E[pt+1].offset;)pt++;var Pt=E[pt].offset,Ut=(ve-Pt)/(E[pt+1].offset-Pt),jr=E[pt].color,Lr=E[pt+1].color;lt+=D(Math.round((1-Ut)*jr[0]+Ut*Lr[0]).toString(16))+D(Math.round((1-Ut)*jr[1]+Ut*Lr[1]).toString(16))+D(Math.round((1-Ut)*jr[2]+Ut*Lr[2]).toString(16))}return lt.trim()},ot=function(E,W){W||(W=21);var ve=Br(),ye=Ke(E.colors,W),Te=[];Te.push({key:"FunctionType",value:"0"}),Te.push({key:"Domain",value:"[0.0 1.0]"}),Te.push({key:"Size",value:"["+W+"]"}),Te.push({key:"BitsPerSample",value:"8"}),Te.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Te.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ke({data:ye,additionalKeyValues:Te,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:ve}),oe("endobj"),E.objectNumber=Br(),oe("<< /ShadingType "+E.type),oe("/ColorSpace /DeviceRGB");var Fe="/Coords ["+A(parseFloat(E.coords[0]))+" "+A(parseFloat(E.coords[1]))+" ";E.type===2?Fe+=A(parseFloat(E.coords[2]))+" "+A(parseFloat(E.coords[3])):Fe+=A(parseFloat(E.coords[2]))+" "+A(parseFloat(E.coords[3]))+" "+A(parseFloat(E.coords[4]))+" "+A(parseFloat(E.coords[5])),oe(Fe+="]"),E.matrix&&oe("/Matrix ["+E.matrix.toString()+"]"),oe("/Function "+ve+" 0 R"),oe("/Extend [true true]"),oe(">>"),oe("endobj")},St=function(E,W){var ve=kr(),ye=Br();W.push({resourcesOid:ve,objectOid:ye}),E.objectNumber=ye;var Te=[];Te.push({key:"Type",value:"/Pattern"}),Te.push({key:"PatternType",value:"1"}),Te.push({key:"PaintType",value:"1"}),Te.push({key:"TilingType",value:"1"}),Te.push({key:"BBox",value:"["+E.boundingBox.map(A).join(" ")+"]"}),Te.push({key:"XStep",value:A(E.xStep)}),Te.push({key:"YStep",value:A(E.yStep)}),Te.push({key:"Resources",value:ve+" 0 R"}),E.matrix&&Te.push({key:"Matrix",value:"["+E.matrix.toString()+"]"}),ke({data:E.stream,additionalKeyValues:Te,objectId:E.objectNumber}),oe("endobj")},Jt=function(E){var W;for(W in zt)zt.hasOwnProperty(W)&&(zt[W]instanceof Ko?ot(zt[W]):zt[W]instanceof ks&&St(zt[W],E))},hr=function(E){for(var W in E.objectNumber=Br(),oe("<<"),E)switch(W){case"opacity":oe("/ca "+B(E[W]));break;case"stroke-opacity":oe("/CA "+B(E[W]))}oe(">>"),oe("endobj")},Gr=function(){var E;for(E in Tr)Tr.hasOwnProperty(E)&&hr(Tr[E])},Qi=function(){for(var E in oe("/XObject <<"),rn)rn.hasOwnProperty(E)&&rn[E].objectNumber>=0&&oe("/"+E+" "+rn[E].objectNumber+" 0 R");Ht.publish("putXobjectDict"),oe(">>")},Ga=function(){Cn.oid=Br(),oe("<<"),oe("/Filter /Standard"),oe("/V "+Cn.v),oe("/R "+Cn.r),oe("/U <"+Cn.toHexString(Cn.U)+">"),oe("/O <"+Cn.toHexString(Cn.O)+">"),oe("/P "+Cn.P),oe(">>"),oe("endobj")},Ta=function(){for(var E in oe("/Font <<"),Xt)Xt.hasOwnProperty(E)&&(f===!1||f===!0&&d.hasOwnProperty(E))&&oe("/"+E+" "+Xt[E].objectNumber+" 0 R");oe(">>")},ea=function(){if(Object.keys(zt).length>0){for(var E in oe("/Shading <<"),zt)zt.hasOwnProperty(E)&&zt[E]instanceof Ko&&zt[E].objectNumber>=0&&oe("/"+E+" "+zt[E].objectNumber+" 0 R");Ht.publish("putShadingPatternDict"),oe(">>")}},Ea=function(E){if(Object.keys(zt).length>0){for(var W in oe("/Pattern <<"),zt)zt.hasOwnProperty(W)&&zt[W]instanceof h.TilingPattern&&zt[W].objectNumber>=0&&zt[W].objectNumber<E&&oe("/"+W+" "+zt[W].objectNumber+" 0 R");Ht.publish("putTilingPatternDict"),oe(">>")}},vi=function(){if(Object.keys(Tr).length>0){var E;for(E in oe("/ExtGState <<"),Tr)Tr.hasOwnProperty(E)&&Tr[E].objectNumber>=0&&oe("/"+E+" "+Tr[E].objectNumber+" 0 R");Ht.publish("putGStateDict"),oe(">>")}},$r=function(E){Y(E.resourcesOid,!0),oe("<<"),oe("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ta(),ea(),Ea(E.objectOid),vi(),Qi(),oe(">>"),oe("endobj")},yh=function(){var E=[];Ge(),Gr(),st(),Jt(E),Ht.publish("putResources"),E.forEach($r),$r({resourcesOid:ae,objectOid:Number.MAX_SAFE_INTEGER}),Ht.publish("postPutResources")},xh=function(){Ht.publish("putAdditionalObjects");for(var E=0;E<me.length;E++){var W=me[E];Y(W.objId,!0),oe(W.content),oe("endobj")}Ht.publish("postPutAdditionalObjects")},bh=function(E){wr[E.fontName]=wr[E.fontName]||{},wr[E.fontName][E.fontStyle]=E.id},Yu=function(E,W,ve,ye,Te){var Fe={id:"F"+(Object.keys(Xt).length+1).toString(10),postScriptName:E,fontName:W,fontStyle:ve,encoding:ye,isStandardFont:Te||!1,metadata:{}};return Ht.publish("addFont",{font:Fe,instance:this}),Xt[Fe.id]=Fe,bh(Fe),Fe.id},Hp=function(E){for(var W=0,ve=Be.length;W<ve;W++){var ye=Yu.call(this,E[W][0],E[W][1],E[W][2],Be[W][3],!0);f===!1&&(d[ye]=!0);var Te=E[W][0].split("-");bh({id:ye,fontName:Te[0],fontStyle:Te[1]||""})}Ht.publish("addFonts",{fonts:Xt,dictionary:wr})},ta=function(E){return E.foo=function(){try{return E.apply(this,arguments)}catch(ye){var W=ye.stack||"";~W.indexOf(" at ")&&(W=W.split(" at ")[1]);var ve="Error in function "+W.split(`
85
+ `)[0].split("<")[0]+": "+ye.message;if(!_t.console)throw new Error(ve);_t.console.error(ve,ye),_t.alert&&alert(ve)}},E.foo.bar=E,E.foo},cl=function(E,W){var ve,ye,Te,Fe,He,lt,pt,Ct,Pt;if(Te=(W=W||{}).sourceEncoding||"Unicode",He=W.outputEncoding,(W.autoencode||He)&&Xt[Rt].metadata&&Xt[Rt].metadata[Te]&&Xt[Rt].metadata[Te].encoding&&(Fe=Xt[Rt].metadata[Te].encoding,!He&&Xt[Rt].encoding&&(He=Xt[Rt].encoding),!He&&Fe.codePages&&(He=Fe.codePages[0]),typeof He=="string"&&(He=Fe[He]),He)){for(pt=!1,lt=[],ve=0,ye=E.length;ve<ye;ve++)(Ct=He[E.charCodeAt(ve)])?lt.push(String.fromCharCode(Ct)):lt.push(E[ve]),lt[ve].charCodeAt(0)>>8&&(pt=!0);E=lt.join("")}for(ve=E.length;pt===void 0&&ve!==0;)E.charCodeAt(ve-1)>>8&&(pt=!0),ve--;if(!pt)return E;for(lt=W.noBOM?[]:[254,255],ve=0,ye=E.length;ve<ye;ve++){if((Pt=(Ct=E.charCodeAt(ve))>>8)>>8)throw new Error("Character at position "+ve+" of string '"+E+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");lt.push(Pt),lt.push(Ct-(Pt<<8))}return String.fromCharCode.apply(void 0,lt)},ti=h.__private__.pdfEscape=h.pdfEscape=function(E,W){return cl(E,W).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Xu=h.__private__.beginPage=function(E){Se[++gr]=[],At[gr]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(E[0]),topRightY:Number(E[1])}},_h(gr),_e(Se[I])},wh=function(E,W){var ve,ye,Te;switch(r=W||r,typeof E=="string"&&(ve=y(E.toLowerCase()),Array.isArray(ve)&&(ye=ve[0],Te=ve[1])),Array.isArray(E)&&(ye=E[0]*at,Te=E[1]*at),isNaN(ye)&&(ye=i[0],Te=i[1]),(ye>14400||Te>14400)&&(xr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ye=Math.min(14400,ye),Te=Math.min(14400,Te)),i=[ye,Te],r.substr(0,1)){case"l":Te>ye&&(i=[Te,ye]);break;case"p":ye>Te&&(i=[Te,ye])}Xu(i),Ph(ec),oe(ra),rc!==0&&oe(rc+" J"),nc!==0&&oe(nc+" j"),Ht.publish("addPage",{pageNumber:gr})},Gp=function(E){E>0&&E<=gr&&(Se.splice(E,1),At.splice(E,1),gr--,I>gr&&(I=gr),this.setPage(I))},_h=function(E){E>0&&E<=gr&&(I=E)},Vp=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return Se.length-1},Sh=function(E,W,ve){var ye,Te=void 0;return ve=ve||{},E=E!==void 0?E:Xt[Rt].fontName,W=W!==void 0?W:Xt[Rt].fontStyle,ye=E.toLowerCase(),wr[ye]!==void 0&&wr[ye][W]!==void 0?Te=wr[ye][W]:wr[E]!==void 0&&wr[E][W]!==void 0?Te=wr[E][W]:ve.disableWarning===!1&&xr.warn("Unable to look up font label for font '"+E+"', '"+W+"'. Refer to getFontList() for available fonts."),Te||ve.noFallback||(Te=wr.times[W])==null&&(Te=wr.times.normal),Te},Kp=h.__private__.putInfo=function(){var E=Br(),W=function(ye){return ye};for(var ve in c!==null&&(W=Cn.encryptor(E,0)),oe("<<"),oe("/Producer ("+ti(W("jsPDF "+vt.version))+")"),wt)wt.hasOwnProperty(ve)&&wt[ve]&&oe("/"+ve.substr(0,1).toUpperCase()+ve.substr(1)+" ("+ti(W(wt[ve]))+")");oe("/CreationDate ("+ti(W(J))+")"),oe(">>"),oe("endobj")},Ju=h.__private__.putCatalog=function(E){var W=(E=E||{}).rootDictionaryObjId||ie;switch(Br(),oe("<<"),oe("/Type /Catalog"),oe("/Pages "+W+" 0 R"),Je||(Je="fullwidth"),Je){case"fullwidth":oe("/OpenAction [3 0 R /FitH null]");break;case"fullheight":oe("/OpenAction [3 0 R /FitV null]");break;case"fullpage":oe("/OpenAction [3 0 R /Fit]");break;case"original":oe("/OpenAction [3 0 R /XYZ null null 1]");break;default:var ve=""+Je;ve.substr(ve.length-1)==="%"&&(Je=parseInt(Je)/100),typeof Je=="number"&&oe("/OpenAction [3 0 R /XYZ null null "+B(Je)+"]")}switch(Et||(Et="continuous"),Et){case"continuous":oe("/PageLayout /OneColumn");break;case"single":oe("/PageLayout /SinglePage");break;case"two":case"twoleft":oe("/PageLayout /TwoColumnLeft");break;case"tworight":oe("/PageLayout /TwoColumnRight")}dt&&oe("/PageMode /"+dt),Ht.publish("putCatalog"),oe(">>"),oe("endobj")},Yp=h.__private__.putTrailer=function(){oe("trailer"),oe("<<"),oe("/Size "+(G+1)),oe("/Root "+G+" 0 R"),oe("/Info "+(G-1)+" 0 R"),c!==null&&oe("/Encrypt "+Cn.oid+" 0 R"),oe("/ID [ <"+U+"> <"+U+"> ]"),oe(">>")},Xp=h.__private__.putHeader=function(){oe("%PDF-"+g),oe("%ºß¬à")},Jp=h.__private__.putXRef=function(){var E="0000000000";oe("xref"),oe("0 "+(G+1)),oe("0000000000 65535 f ");for(var W=1;W<=G;W++)typeof ce[W]=="function"?oe((E+ce[W]()).slice(-10)+" 00000 n "):ce[W]!==void 0?oe((E+ce[W]).slice(-10)+" 00000 n "):oe("0000000000 00000 n ")},Va=h.__private__.buildDocument=function(){ge(),_e(he),Ht.publish("buildDocument"),Xp(),Ce(),xh(),yh(),c!==null&&Ga(),Kp(),Ju();var E=ne;return Jp(),Yp(),oe("startxref"),oe(""+E),oe("%%EOF"),_e(Se[I]),he.join(`
86
+ `)},fl=h.__private__.getBlob=function(E){return new Blob([et(E)],{type:"application/pdf"})},hl=h.output=h.__private__.output=ta((function(E,W){switch(typeof(W=W||{})=="string"?W={filename:W}:W.filename=W.filename||"generated.pdf",E){case void 0:return Va();case"save":h.save(W.filename);break;case"arraybuffer":return et(Va());case"blob":return fl(Va());case"bloburi":case"bloburl":if(_t.URL!==void 0&&typeof _t.URL.createObjectURL=="function")return _t.URL&&_t.URL.createObjectURL(fl(Va()))||void 0;xr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var ve="",ye=Va();try{ve=o2(ye)}catch{ve=o2(unescape(encodeURIComponent(ye)))}return"data:application/pdf;filename="+W.filename+";base64,"+ve;case"pdfobjectnewwindow":if(Object.prototype.toString.call(_t)==="[object Window]"){var Te="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Fe=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';W.pdfObjectUrl&&(Te=W.pdfObjectUrl,Fe="");var He='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Te+'"'+Fe+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(W)+");<\/script></body></html>",lt=_t.open();return lt!==null&&lt.document.write(He),lt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(_t)==="[object Window]"){var pt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(W.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+W.filename+'" width="500px" height="400px" /></body></html>',Ct=_t.open();if(Ct!==null){Ct.document.write(pt);var Pt=this;Ct.document.documentElement.querySelector("#pdfViewer").onload=function(){Ct.document.title=W.filename,Ct.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Pt.output("bloburl"))}}return Ct}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(_t)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ut='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",W)+'"></iframe></body></html>',jr=_t.open();if(jr!==null&&(jr.document.write(Ut),jr.document.title=W.filename),jr||typeof safari>"u")return jr;break;case"datauri":case"dataurl":return _t.document.location.href=this.output("datauristring",W);default:return null}})),Ah=function(E){return Array.isArray(Ha)===!0&&Ha.indexOf(E)>-1};switch(n){case"pt":at=1;break;case"mm":at=72/25.4;break;case"cm":at=72/2.54;break;case"in":at=72;break;case"px":at=Ah("px_scaling")==1?.75:96/72;break;case"pc":case"em":at=12;break;case"ex":at=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);at=n}var Cn=null;le(),ee();var Zp=function(E){return c!==null?Cn.encryptor(E,0):function(W){return W}},Th=h.__private__.getPageInfo=h.getPageInfo=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:At[E].objId,pageNumber:E,pageContext:At[E]}},Ot=h.__private__.getPageInfoByObjId=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var W in At)if(At[W].objId===E)break;return Th(W)},Qp=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:At[I].objId,pageNumber:I,pageContext:At[I]}};h.addPage=function(){return wh.apply(this,arguments),this},h.setPage=function(){return _h.apply(this,arguments),_e.call(this,Se[I]),this},h.insertPage=function(E){return this.addPage(),this.movePage(I,E),this},h.movePage=function(E,W){var ve,ye;if(E>W){ve=Se[E],ye=At[E];for(var Te=E;Te>W;Te--)Se[Te]=Se[Te-1],At[Te]=At[Te-1];Se[W]=ve,At[W]=ye,this.setPage(W)}else if(E<W){ve=Se[E],ye=At[E];for(var Fe=E;Fe<W;Fe++)Se[Fe]=Se[Fe+1],At[Fe]=At[Fe+1];Se[W]=ve,At[W]=ye,this.setPage(W)}return this},h.deletePage=function(){return Gp.apply(this,arguments),this},h.__private__.text=h.text=function(E,W,ve,ye,Te){var Fe,He,lt,pt,Ct,Pt,Ut,jr,Lr,Vr=(ye=ye||{}).scope||this;if(typeof E=="number"&&typeof W=="number"&&(typeof ve=="string"||Array.isArray(ve))){var jn=ve;ve=W,W=E,E=jn}if(arguments[3]instanceof gt?(k("The transform parameter of text() with a Matrix value"),Lr=Te):(lt=arguments[4],pt=arguments[5],ir(Ut=arguments[3])==="object"&&Ut!==null||(typeof lt=="string"&&(pt=lt,lt=null),typeof Ut=="string"&&(pt=Ut,Ut=null),typeof Ut=="number"&&(lt=Ut,Ut=null),ye={flags:Ut,angle:lt,align:pt})),isNaN(W)||isNaN(ve)||E==null)throw new Error("Invalid arguments passed to jsPDF.text");if(E.length===0)return Vr;var fn="",na=!1,mi=typeof ye.lineHeightFactor=="number"?ye.lineHeightFactor:vs,Na=Vr.internal.scaleFactor;function Ih(_r){return _r=_r.split(" ").join(Array(ye.TabLen||9).join(" ")),ti(_r,Ut)}function lc(_r){for(var Sr,Ur=_r.concat(),nn=[],Za=Ur.length;Za--;)typeof(Sr=Ur.shift())=="string"?nn.push(Sr):Array.isArray(_r)&&(Sr.length===1||Sr[1]===void 0&&Sr[2]===void 0)?nn.push(Sr[0]):nn.push([Sr[0],Sr[1],Sr[2]]);return nn}function uc(_r,Sr){var Ur;if(typeof _r=="string")Ur=Sr(_r)[0];else if(Array.isArray(_r)){for(var nn,Za,gc=_r.concat(),Ol=[],Bh=gc.length;Bh--;)typeof(nn=gc.shift())=="string"?Ol.push(Sr(nn)[0]):Array.isArray(nn)&&typeof nn[0]=="string"&&(Za=Sr(nn[0],nn[1],nn[2]),Ol.push([Za[0],Za[1],Za[2]]));Ur=Ol}return Ur}var yl=!1,cc=!0;if(typeof E=="string")yl=!0;else if(Array.isArray(E)){var fc=E.concat();He=[];for(var xl,xn=fc.length;xn--;)(typeof(xl=fc.shift())!="string"||Array.isArray(xl)&&typeof xl[0]!="string")&&(cc=!1);yl=cc}if(yl===!1)throw new Error('Type of text must be string or Array. "'+E+'" is not recognized.');typeof E=="string"&&(E=E.match(/[\r?\n]/)?E.split(/\r\n|\r|\n/g):[E]);var bl=Ve/Vr.internal.scaleFactor,wl=bl*(mi-1);switch(ye.baseline){case"bottom":ve-=wl;break;case"top":ve+=bl-wl;break;case"hanging":ve+=bl-2*wl;break;case"middle":ve+=bl/2-wl}if((Pt=ye.maxWidth||0)>0&&(typeof E=="string"?E=Vr.splitTextToSize(E,Pt):Object.prototype.toString.call(E)==="[object Array]"&&(E=E.reduce((function(_r,Sr){return _r.concat(Vr.splitTextToSize(Sr,Pt))}),[]))),Fe={text:E,x:W,y:ve,options:ye,mutex:{pdfEscape:ti,activeFontKey:Rt,fonts:Xt,activeFontSize:Ve}},Ht.publish("preProcessText",Fe),E=Fe.text,lt=(ye=Fe.options).angle,!(Lr instanceof gt)&&lt&&typeof lt=="number"){lt*=Math.PI/180,ye.rotationDirection===0&&(lt=-lt),w===x.ADVANCED&&(lt=-lt);var _l=Math.cos(lt),hc=Math.sin(lt);Lr=new gt(_l,hc,-hc,_l,0,0)}else lt&&lt instanceof gt&&(Lr=lt);w!==x.ADVANCED||Lr||(Lr=ei),(Ct=ye.charSpace||vl)!==void 0&&(fn+=A(P(Ct))+` Tc
87
+ `,this.setCharSpace(this.getCharSpace()||0)),(jr=ye.horizontalScale)!==void 0&&(fn+=A(100*jr)+` Tz
88
+ `),ye.lang;var ri=-1,u1=ye.renderingMode!==void 0?ye.renderingMode:ye.stroke,dc=Vr.internal.getCurrentPageInfo().pageContext;switch(u1){case 0:case!1:case"fill":ri=0;break;case 1:case!0:case"stroke":ri=1;break;case 2:case"fillThenStroke":ri=2;break;case 3:case"invisible":ri=3;break;case 4:case"fillAndAddForClipping":ri=4;break;case 5:case"strokeAndAddPathForClipping":ri=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":ri=6;break;case 7:case"addToPathForClipping":ri=7}var Fh=dc.usedRenderingMode!==void 0?dc.usedRenderingMode:-1;ri!==-1?fn+=ri+` Tr
89
+ `:Fh!==-1&&(fn+=`0 Tr
90
+ `),ri!==-1&&(dc.usedRenderingMode=ri),pt=ye.align||"left";var Li,Sl=Ve*mi,Rh=Vr.internal.pageSize.getWidth(),Mh=Xt[Rt];Ct=ye.charSpace||vl,Pt=ye.maxWidth||0,Ut=Object.assign({autoencode:!0,noBOM:!0},ye.flags);var jo=[],ys=function(_r){return Vr.getStringUnitWidth(_r,{font:Mh,charSpace:Ct,fontSize:Ve,doKerning:!1})*Ve/Na};if(Object.prototype.toString.call(E)==="[object Array]"){var ni;He=lc(E),pt!=="left"&&(Li=He.map(ys));var qn,ko=0;if(pt==="right"){W-=Li[0],E=[],xn=He.length;for(var Ya=0;Ya<xn;Ya++)Ya===0?(qn=Pa(W),ni=Ka(ve)):(qn=P(ko-Li[Ya]),ni=-Sl),E.push([He[Ya],qn,ni]),ko=Li[Ya]}else if(pt==="center"){W-=Li[0]/2,E=[],xn=He.length;for(var Xa=0;Xa<xn;Xa++)Xa===0?(qn=Pa(W),ni=Ka(ve)):(qn=P((ko-Li[Xa])/2),ni=-Sl),E.push([He[Xa],qn,ni]),ko=Li[Xa]}else if(pt==="left"){E=[],xn=He.length;for(var Al=0;Al<xn;Al++)E.push(He[Al])}else if(pt==="justify"&&Mh.encoding==="Identity-H"){E=[],xn=He.length,Pt=Pt!==0?Pt:Rh;for(var Ja=0,qr=0;qr<xn;qr++)if(ni=qr===0?Ka(ve):-Sl,qn=qr===0?Pa(W):Ja,qr<xn-1){var pc=P((Pt-Li[qr])/(He[qr].split(" ").length-1)),Un=He[qr].split(" ");E.push([Un[0]+" ",qn,ni]),Ja=0;for(var Ii=1;Ii<Un.length;Ii++){var Tl=(ys(Un[Ii-1]+" "+Un[Ii])-ys(Un[Ii]))*Na+pc;Ii==Un.length-1?E.push([Un[Ii],Tl,0]):E.push([Un[Ii]+" ",Tl,0]),Ja-=Tl}}else E.push([He[qr],qn,ni]);E.push(["",Ja,0])}else{if(pt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(E=[],xn=He.length,Pt=Pt!==0?Pt:Rh,qr=0;qr<xn;qr++)ni=qr===0?Ka(ve):-Sl,qn=qr===0?Pa(W):0,qr<xn-1?jo.push(A(P((Pt-Li[qr])/(He[qr].split(" ").length-1)))):jo.push(0),E.push([He[qr],qn,ni])}}var Dh=typeof ye.R2L=="boolean"?ye.R2L:ht;Dh===!0&&(E=uc(E,(function(_r,Sr,Ur){return[_r.split("").reverse().join(""),Sr,Ur]}))),Fe={text:E,x:W,y:ve,options:ye,mutex:{pdfEscape:ti,activeFontKey:Rt,fonts:Xt,activeFontSize:Ve}},Ht.publish("postProcessText",Fe),E=Fe.text,na=Fe.mutex.isHex||!1;var vc=Xt[Rt].encoding;vc!=="WinAnsiEncoding"&&vc!=="StandardEncoding"||(E=uc(E,(function(_r,Sr,Ur){return[Ih(_r),Sr,Ur]}))),He=lc(E),E=[];for(var xs,bs,Lo,ws=0,El=1,_s=Array.isArray(He[0])?El:ws,Io="",mc=function(_r,Sr,Ur){var nn="";return Ur instanceof gt?(Ur=typeof ye.angle=="number"?pi(Ur,new gt(1,0,0,1,_r,Sr)):pi(new gt(1,0,0,1,_r,Sr),Ur),w===x.ADVANCED&&(Ur=pi(new gt(1,0,0,-1,0,0),Ur)),nn=Ur.join(" ")+` Tm
91
+ `):nn=A(_r)+" "+A(Sr)+` Td
92
+ `,nn},Fi=0;Fi<He.length;Fi++){switch(Io="",_s){case El:Lo=(na?"<":"(")+He[Fi][0]+(na?">":")"),xs=parseFloat(He[Fi][1]),bs=parseFloat(He[Fi][2]);break;case ws:Lo=(na?"<":"(")+He[Fi]+(na?">":")"),xs=Pa(W),bs=Ka(ve)}jo!==void 0&&jo[Fi]!==void 0&&(Io=jo[Fi]+` Tw
93
+ `),Fi===0?E.push(Io+mc(xs,bs,Lr)+Lo):_s===ws?E.push(Io+Lo):_s===El&&E.push(Io+mc(xs,bs,Lr)+Lo)}E=_s===ws?E.join(` Tj
94
+ T* `):E.join(` Tj
95
+ `),E+=` Tj
96
+ `;var Ri=`BT
97
+ /`;return Ri+=Rt+" "+Ve+` Tf
98
+ `,Ri+=A(Ve*mi)+` TL
99
+ `,Ri+=ms+`
100
+ `,Ri+=fn,Ri+=E,oe(Ri+="ET"),d[Rt]=!0,Vr};var e1=h.__private__.clip=h.clip=function(E){return oe(E==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return e1("evenodd")},h.__private__.discardPath=h.discardPath=function(){return oe("n"),this};var Oa=h.__private__.isValidStyle=function(E){var W=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(E)!==-1&&(W=!0),W};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(E){return Oa(E)&&(u=E),this};var Eh=h.__private__.getStyle=h.getStyle=function(E){var W=u;switch(E){case"D":case"S":W="S";break;case"F":W="f";break;case"FD":case"DF":W="B";break;case"f":case"f*":case"B":case"B*":W=E}return W},Oh=h.close=function(){return oe("h"),this};h.stroke=function(){return oe("S"),this},h.fill=function(E){return dl("f",E),this},h.fillEvenOdd=function(E){return dl("f*",E),this},h.fillStroke=function(E){return dl("B",E),this},h.fillStrokeEvenOdd=function(E){return dl("B*",E),this};var dl=function(E,W){ir(W)==="object"?r1(W,E):oe(E)},Zu=function(E){E===null||w===x.ADVANCED&&E===void 0||(E=Eh(E),oe(E))};function t1(E,W,ve,ye,Te){var Fe=new ks(W||this.boundingBox,ve||this.xStep,ye||this.yStep,this.gState,Te||this.matrix);Fe.stream=this.stream;var He=E+"$$"+this.cloneIndex+++"$$";return Nn(He,Fe),Fe}var r1=function(E,W){var ve=Aa[E.key],ye=zt[ve];if(ye instanceof Ko)oe("q"),oe(n1(W)),ye.gState&&h.setGState(ye.gState),oe(E.matrix.toString()+" cm"),oe("/"+ve+" sh"),oe("Q");else if(ye instanceof ks){var Te=new gt(1,0,0,-1,0,Co());E.matrix&&(Te=Te.multiply(E.matrix||ei),ve=t1.call(ye,E.key,E.boundingBox,E.xStep,E.yStep,Te).id),oe("q"),oe("/Pattern cs"),oe("/"+ve+" scn"),ye.gState&&h.setGState(ye.gState),oe(W),oe("Q")}},n1=function(E){switch(E){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Qu=h.moveTo=function(E,W){return oe(A(P(E))+" "+A(q(W))+" m"),this},ps=h.lineTo=function(E,W){return oe(A(P(E))+" "+A(q(W))+" l"),this},Po=h.curveTo=function(E,W,ve,ye,Te,Fe){return oe([A(P(E)),A(q(W)),A(P(ve)),A(q(ye)),A(P(Te)),A(q(Fe)),"c"].join(" ")),this};h.__private__.line=h.line=function(E,W,ve,ye,Te){if(isNaN(E)||isNaN(W)||isNaN(ve)||isNaN(ye)||!Oa(Te))throw new Error("Invalid arguments passed to jsPDF.line");return w===x.COMPAT?this.lines([[ve-E,ye-W]],E,W,[1,1],Te||"S"):this.lines([[ve-E,ye-W]],E,W,[1,1]).stroke()},h.__private__.lines=h.lines=function(E,W,ve,ye,Te,Fe){var He,lt,pt,Ct,Pt,Ut,jr,Lr,Vr,jn,fn,na;if(typeof E=="number"&&(na=ve,ve=W,W=E,E=na),ye=ye||[1,1],Fe=Fe||!1,isNaN(W)||isNaN(ve)||!Array.isArray(E)||!Array.isArray(ye)||!Oa(Te)||typeof Fe!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Qu(W,ve),He=ye[0],lt=ye[1],Ct=E.length,jn=W,fn=ve,pt=0;pt<Ct;pt++)(Pt=E[pt]).length===2?(jn=Pt[0]*He+jn,fn=Pt[1]*lt+fn,ps(jn,fn)):(Ut=Pt[0]*He+jn,jr=Pt[1]*lt+fn,Lr=Pt[2]*He+jn,Vr=Pt[3]*lt+fn,jn=Pt[4]*He+jn,fn=Pt[5]*lt+fn,Po(Ut,jr,Lr,Vr,jn,fn));return Fe&&Oh(),Zu(Te),this},h.path=function(E){for(var W=0;W<E.length;W++){var ve=E[W],ye=ve.c;switch(ve.op){case"m":Qu(ye[0],ye[1]);break;case"l":ps(ye[0],ye[1]);break;case"c":Po.apply(this,ye);break;case"h":Oh()}}return this},h.__private__.rect=h.rect=function(E,W,ve,ye,Te){if(isNaN(E)||isNaN(W)||isNaN(ve)||isNaN(ye)||!Oa(Te))throw new Error("Invalid arguments passed to jsPDF.rect");return w===x.COMPAT&&(ye=-ye),oe([A(P(E)),A(q(W)),A(P(ve)),A(P(ye)),"re"].join(" ")),Zu(Te),this},h.__private__.triangle=h.triangle=function(E,W,ve,ye,Te,Fe,He){if(isNaN(E)||isNaN(W)||isNaN(ve)||isNaN(ye)||isNaN(Te)||isNaN(Fe)||!Oa(He))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[ve-E,ye-W],[Te-ve,Fe-ye],[E-Te,W-Fe]],E,W,[1,1],He,!0),this},h.__private__.roundedRect=h.roundedRect=function(E,W,ve,ye,Te,Fe,He){if(isNaN(E)||isNaN(W)||isNaN(ve)||isNaN(ye)||isNaN(Te)||isNaN(Fe)||!Oa(He))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var lt=4/3*(Math.SQRT2-1);return Te=Math.min(Te,.5*ve),Fe=Math.min(Fe,.5*ye),this.lines([[ve-2*Te,0],[Te*lt,0,Te,Fe-Fe*lt,Te,Fe],[0,ye-2*Fe],[0,Fe*lt,-Te*lt,Fe,-Te,Fe],[2*Te-ve,0],[-Te*lt,0,-Te,-Fe*lt,-Te,-Fe],[0,2*Fe-ye],[0,-Fe*lt,Te*lt,-Fe,Te,-Fe]],E+Te,W,[1,1],He,!0),this},h.__private__.ellipse=h.ellipse=function(E,W,ve,ye,Te){if(isNaN(E)||isNaN(W)||isNaN(ve)||isNaN(ye)||!Oa(Te))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Fe=4/3*(Math.SQRT2-1)*ve,He=4/3*(Math.SQRT2-1)*ye;return Qu(E+ve,W),Po(E+ve,W-He,E+Fe,W-ye,E,W-ye),Po(E-Fe,W-ye,E-ve,W-He,E-ve,W),Po(E-ve,W+He,E-Fe,W+ye,E,W+ye),Po(E+Fe,W+ye,E+ve,W+He,E+ve,W),Zu(Te),this},h.__private__.circle=h.circle=function(E,W,ve,ye){if(isNaN(E)||isNaN(W)||isNaN(ve)||!Oa(ye))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(E,W,ve,ve,ye)},h.setFont=function(E,W,ve){return ve&&(W=O(W,ve)),Rt=Sh(E,W,{disableWarning:!1}),this};var i1=h.__private__.getFont=h.getFont=function(){return Xt[Sh.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var E,W,ve={};for(E in wr)if(wr.hasOwnProperty(E))for(W in ve[E]=[],wr[E])wr[E].hasOwnProperty(W)&&ve[E].push(W);return ve},h.addFont=function(E,W,ve,ye,Te){var Fe=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Fe.indexOf(arguments[3])!==-1?Te=arguments[3]:arguments[3]&&Fe.indexOf(arguments[3])==-1&&(ve=O(ve,ye)),Te=Te||"Identity-H",Yu.call(this,E,W,ve,Te)};var vs,ec=e.lineWidth||.200025,pl=h.__private__.getLineWidth=h.getLineWidth=function(){return ec},Ph=h.__private__.setLineWidth=h.setLineWidth=function(E){return ec=E,oe(A(P(E))+" w"),this};h.__private__.setLineDash=vt.API.setLineDash=vt.API.setLineDashPattern=function(E,W){if(E=E||[],W=W||0,isNaN(W)||!Array.isArray(E))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return E=E.map((function(ve){return A(P(ve))})).join(" "),W=A(P(W)),oe("["+E+"] "+W+" d"),this};var Nh=h.__private__.getLineHeight=h.getLineHeight=function(){return Ve*vs};h.__private__.getLineHeight=h.getLineHeight=function(){return Ve*vs};var Ch=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(E){return typeof(E=E||1.15)=="number"&&(vs=E),this},jh=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return vs};Ch(e.lineHeight);var Pa=h.__private__.getHorizontalCoordinate=function(E){return P(E)},Ka=h.__private__.getVerticalCoordinate=function(E){return w===x.ADVANCED?E:At[I].mediaBox.topRightY-At[I].mediaBox.bottomLeftY-P(E)},a1=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(E){return A(Pa(E))},No=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(E){return A(Ka(E))},ra=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return fe(ra)},h.__private__.setStrokeColor=h.setDrawColor=function(E,W,ve,ye){return ra=pe({ch1:E,ch2:W,ch3:ve,ch4:ye,pdfColorType:"draw",precision:2}),oe(ra),this};var tc=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return fe(tc)},h.__private__.setFillColor=h.setFillColor=function(E,W,ve,ye){return tc=pe({ch1:E,ch2:W,ch3:ve,ch4:ye,pdfColorType:"fill",precision:2}),oe(tc),this};var ms=e.textColor||"0 g",o1=h.__private__.getTextColor=h.getTextColor=function(){return fe(ms)};h.__private__.setTextColor=h.setTextColor=function(E,W,ve,ye){return ms=pe({ch1:E,ch2:W,ch3:ve,ch4:ye,pdfColorType:"text",precision:3}),this};var vl=e.charSpace,s1=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(vl||0)};h.__private__.setCharSpace=h.setCharSpace=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return vl=E,this};var rc=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(E){var W=h.CapJoinStyles[E];if(W===void 0)throw new Error("Line cap style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return rc=W,oe(W+" J"),this};var nc=0;h.__private__.setLineJoin=h.setLineJoin=function(E){var W=h.CapJoinStyles[E];if(W===void 0)throw new Error("Line join style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return nc=W,oe(W+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(E){if(E=E||0,isNaN(E))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return oe(A(P(E))+" M"),this},h.GState=lf,h.setGState=function(E){(E=typeof E=="string"?Tr[di[E]]:kh(null,E)).equals(Zi)||(oe("/"+E.id+" gs"),Zi=E)};var kh=function(E,W){if(!E||!di[E]){var ve=!1;for(var ye in Tr)if(Tr.hasOwnProperty(ye)&&Tr[ye].equals(W)){ve=!0;break}if(ve)W=Tr[ye];else{var Te="GS"+(Object.keys(Tr).length+1).toString(10);Tr[Te]=W,W.id=Te}return E&&(di[E]=W.id),Ht.publish("addGState",W),W}};h.addGState=function(E,W){return kh(E,W),this},h.saveGraphicsState=function(){return oe("q"),Ci.push({key:Rt,size:Ve,color:ms}),this},h.restoreGraphicsState=function(){oe("Q");var E=Ci.pop();return Rt=E.key,Ve=E.size,ms=E.color,Zi=null,this},h.setCurrentTransformationMatrix=function(E){return oe(E.toString()+" cm"),this},h.comment=function(E){return oe("#"+E),this};var ml=function(E,W){var ve=E||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return ve},set:function(Fe){isNaN(Fe)||(ve=parseFloat(Fe))}});var ye=W||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ye},set:function(Fe){isNaN(Fe)||(ye=parseFloat(Fe))}});var Te="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Te},set:function(Fe){Te=Fe.toString()}}),this},ic=function(E,W,ve,ye){ml.call(this,E,W),this.type="rect";var Te=ve||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Te},set:function(He){isNaN(He)||(Te=parseFloat(He))}});var Fe=ye||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Fe},set:function(He){isNaN(He)||(Fe=parseFloat(He))}}),this},ac=function(){this.page=gr,this.currentPage=I,this.pages=Se.slice(0),this.pagesContext=At.slice(0),this.x=tn,this.y=qt,this.matrix=Qn,this.width=gs(I),this.height=Co(I),this.outputDestination=Ie,this.id="",this.objectNumber=-1};ac.prototype.restore=function(){gr=this.page,I=this.currentPage,At=this.pagesContext,Se=this.pages,tn=this.x,qt=this.y,Qn=this.matrix,oc(I,this.width),sc(I,this.height),Ie=this.outputDestination};var Lh=function(E,W,ve,ye,Te){ki.push(new ac),gr=I=0,Se=[],tn=E,qt=W,Qn=Te,Xu([ve,ye])},l1=function(E){if(ji[E])ki.pop().restore();else{var W=new ac,ve="Xo"+(Object.keys(rn).length+1).toString(10);W.id=ve,ji[E]=ve,rn[ve]=W,Ht.publish("addFormObject",W),ki.pop().restore()}};for(var gl in h.beginFormObject=function(E,W,ve,ye,Te){return Lh(E,W,ve,ye,Te),this},h.endFormObject=function(E){return l1(E),this},h.doFormObject=function(E,W){var ve=rn[ji[E]];return oe("q"),oe(W.toString()+" cm"),oe("/"+ve.id+" Do"),oe("Q"),this},h.getFormObject=function(E){var W=rn[ji[E]];return{x:W.x,y:W.y,width:W.width,height:W.height,matrix:W.matrix}},h.save=function(E,W){return E=E||"generated.pdf",(W=W||{}).returnPromise=W.returnPromise||!1,W.returnPromise===!1?(Os(fl(Va()),E),typeof Os.unload=="function"&&_t.setTimeout&&setTimeout(Os.unload,911),this):new Promise((function(ve,ye){try{var Te=Os(fl(Va()),E);typeof Os.unload=="function"&&_t.setTimeout&&setTimeout(Os.unload,911),ve(Te)}catch(Fe){ye(Fe.message)}}))},vt.API)vt.API.hasOwnProperty(gl)&&(gl==="events"&&vt.API.events.length?(function(E,W){var ve,ye,Te;for(Te=W.length-1;Te!==-1;Te--)ve=W[Te][0],ye=W[Te][1],E.subscribe.apply(E,[ve].concat(typeof ye=="function"?[ye]:ye))})(Ht,vt.API.events):h[gl]=vt.API[gl]);var gs=h.getPageWidth=function(E){return(At[E=E||I].mediaBox.topRightX-At[E].mediaBox.bottomLeftX)/at},oc=h.setPageWidth=function(E,W){At[E].mediaBox.topRightX=W*at+At[E].mediaBox.bottomLeftX},Co=h.getPageHeight=function(E){return(At[E=E||I].mediaBox.topRightY-At[E].mediaBox.bottomLeftY)/at},sc=h.setPageHeight=function(E,W){At[E].mediaBox.topRightY=W*at+At[E].mediaBox.bottomLeftY};return h.internal={pdfEscape:ti,getStyle:Eh,getFont:i1,getFontSize:Xe,getCharSpace:s1,getTextColor:o1,getLineHeight:Nh,getLineHeightFactor:jh,getLineWidth:pl,write:Re,getHorizontalCoordinate:Pa,getVerticalCoordinate:Ka,getCoordinateString:a1,getVerticalCoordinateString:No,collections:{},newObject:Br,newAdditionalObject:de,newObjectDeferred:kr,newObjectDeferredBegin:Y,getFilters:Oe,putStream:ke,events:Ht,scaleFactor:at,pageSize:{getWidth:function(){return gs(I)},setWidth:function(E){oc(I,E)},getHeight:function(){return Co(I)},setHeight:function(E){sc(I,E)}},encryptionOptions:c,encryption:Cn,getEncryptor:Zp,output:hl,getNumberOfPages:Vp,pages:Se,out:oe,f2:B,f3:C,getPageInfo:Th,getPageInfoByObjId:Ot,getCurrentPageInfo:Qp,getPDFVersion:p,Point:ml,Rectangle:ic,Matrix:gt,hasHotfix:Ah},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return gs(I)},set:function(E){oc(I,E)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Co(I)},set:function(E){sc(I,E)},enumerable:!0,configurable:!0}),Hp.call(h,Be),Rt="F1",wh(i,r),Ht.publish("initialized"),h}Ul.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Ul.prototype.toHexString=function(e){return e.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},Ul.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},Ul.prototype.processOwnerPassword=function(e,t){return l2(s2(t).substr(0,5),e)},Ul.prototype.encryptor=function(e,t){var r=s2(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return l2(r,n)}},lf.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||ir(e)!==ir(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},vt.API={events:[]},vt.version="2.5.2";var Fr=vt.API,zx=1,Zs=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},kl=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Nt=function(e){return e.toFixed(2)},Ho=function(e){return e.toFixed(5)};Fr.__acroform__={};var fi=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},ew=function(e){return e*zx},ja=function(e){var t=new PO,r=ft.internal.getHeight(e)||0,n=ft.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Nt(n)),Number(Nt(r))],t},Ck=Fr.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<t},jk=Fr.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<t)},kk=Fr.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(e&1<<t)==0?0:1},zr=Fr.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return kk(e,t-1)},Wr=Fr.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Ck(e,t-1)},Hr=Fr.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return jk(e,t-1)},Lk=Fr.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,i=e[0],a=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=r(i)||0,l.lowerLeft_Y=n(a+s)||0,l.upperRight_X=r(i+o)||0,l.upperRight_Y=n(a)||0,[Number(Nt(l.lowerLeft_X)),Number(Nt(l.lowerLeft_Y)),Number(Nt(l.upperRight_X)),Number(Nt(l.upperRight_Y))]},Ik=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=u2(e,r),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+Nt(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var a=ja(e);return a.scope=e.scope,a.stream=t.join(`
101
+ `),a}},u2=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},i=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map((function(C){return C.split(`
102
+ `)})):i.map((function(C){return[C]}));var a=r,o=ft.internal.getHeight(e)||0;o=o<0?-o:o;var s=ft.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(C,P,M){if(C+1<i.length){var q=P+" "+i[C+1][0];return o0(q,e,M).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var u,c,f=o0("3",e,a).height,d=e.multiline?o-a:(o-f)/2,h=d+=2,g=0,p=0,m=0;if(a<=0){t=`(...) Tj
103
+ `,t+="% Width of Text: "+o0(t,e,a=12).width+", FieldWidth:"+s+`
104
+ `;break}for(var y="",x=0,w=0;w<i.length;w++)if(i.hasOwnProperty(w)){var T=!1;if(i[w].length!==1&&m!==i[w].length-1){if((f+2)*(x+2)+2>o)continue e;y+=i[w][m],T=!0,p=w,w--}else{y=(y+=i[w][m]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var _=parseInt(w),O=l(_,y,a),A=w>=i.length-1;if(O&&!A){y+=" ",m=0;continue}if(O||A){if(A)p=_;else if(e.multiline&&(f+2)*(x+2)+2>o)continue e}else{if(!e.multiline||(f+2)*(x+2)+2>o)continue e;p=_}}for(var k="",L=g;L<=p;L++){var B=i[L];if(e.multiline){if(L===p){k+=B[m]+" ",m=(m+1)%B.length;continue}if(L===g){k+=B[B.length-1]+" ";continue}}k+=B[0]+" "}switch(k=k.substr(k.length-1)==" "?k.substr(0,k.length-1):k,c=o0(k,e,a).width,e.textAlign){case"right":u=s-c-2;break;case"center":u=(s-c)/2;break;case"left":default:u=2}t+=Nt(u)+" "+Nt(h)+` Td
105
+ `,t+="("+Zs(k)+`) Tj
106
+ `,t+=-Nt(u)+` 0 Td
107
+ `,h=-(a+2),c=0,g=T?p:p+1,x++,y=""}break}return n.text=t,n.fontSize=a,n},o0=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:i}},Fk={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Rk=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find((function(n){return n.type===r.type&&n.object===r.object}))===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},Mk=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=r,i=e[r];t.internal.newObjectDeferredBegin(i.objId,!0),ir(i)==="object"&&typeof i.putStream=="function"&&i.putStream(),delete e[n]}},Dk=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(wa.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Fk)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");zx=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new NO,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)})),e.internal.events.subscribe("buildDocument",(function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];a.objId=void 0,a.hasAnnotation&&Rk(a,r)}})(e)})),e.internal.events.subscribe("putCatalog",(function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)})),e.internal.events.subscribe("postPutPages",(function(r){(function(n,i){var a=!n;for(var o in n||(i.internal.newObjectDeferredBegin(i.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),i.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||i.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],l=[],u=s.Rect;if(s.Rect&&(s.Rect=Lk(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=ft.createDefaultAppearanceStream(s),ir(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=u,s.hasAppearanceStream&&!s.appearanceStreamContent){var c=Ik(s);l.push({key:"AP",value:"<</N "+c+">>"}),i.internal.acroformPlugin.xForms.push(c)}if(s.appearanceStreamContent){var f="";for(var d in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(d)){var h=s.appearanceStreamContent[d];if(f+="/"+d+" ",f+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var o in h)if(h.hasOwnProperty(o)){var g=h[o];typeof g=="function"&&(g=g.call(i,s)),f+="/"+o+" "+g+" ",i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g)}}else typeof(g=h)=="function"&&(g=g.call(i,s)),f+="/"+o+" "+g,i.internal.acroformPlugin.xForms.indexOf(g)>=0||i.internal.acroformPlugin.xForms.push(g);f+=">>"}l.push({key:"AP",value:`<<
108
+ `+f+">>"})}i.internal.putStream({additionalKeyValues:l,objectId:s.objId}),i.internal.out("endobj")}a&&Mk(i.internal.acroformPlugin.xForms,i)})(r,e)})),e.internal.acroformPlugin.isInitialized=!0}},OO=Fr.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(o){return o};if(Array.isArray(e)){for(var i="[",a=0;a<e.length;a++)switch(a!==0&&(i+=" "),ir(e[a])){case"boolean":case"number":case"object":i+=e[a].toString();break;case"string":e[a].substr(0,1)!=="/"?(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),i+="("+Zs(n(e[a].toString()))+")"):i+=e[a].toString()}return i+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},I1=function(e,t,r){var n=function(i){return i};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),e="("+Zs(n(e))+")"},Ia=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Ia.prototype.toString=function(){return this.objId+" 0 R"},Ia.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Ia.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(a){return a!="content"&&a!="appearanceStreamContent"&&a!="scope"&&a!="objId"&&a.substring(0,1)!="_"}));for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],i=this[n];i&&(Array.isArray(i)?e.push({key:n,value:OO(i,this.objId,this.scope)}):i instanceof Ia?(i.scope=this.scope,e.push({key:n,value:i.objId+" 0 R"})):typeof i!="function"&&e.push({key:n,value:i}))}return e};var PO=function(){Ia.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};fi(PO,Ia);var NO=function(){Ia.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+Zs(r(e))+")"}},set:function(r){e=r}})};fi(NO,Ia);var wa=function e(){Ia.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!zr(t,3)},set:function(y){y?this.F=Wr(t,3):this.F=Hr(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');r=y}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(y){n=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(y){n[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(y){n[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(y){n[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(y){n[3]=y}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var a=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!a||a.length<1){if(this instanceof R0)return;a="FieldObject"+e.FieldNum++}var y=function(x){return x};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+Zs(y(a))+")"},set:function(y){a=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return a},set:function(y){a=y}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(y){o=y}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(y){s=y}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var u=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return u===void 0?50/zx:u},set:function(y){u=y}});var c="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return c},set:function(y){c=y}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof R0||this instanceof ts))return I1(f,this.objId,this.scope)},set:function(y){y=y.toString(),f=y}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof ln?d:I1(d,this.objId,this.scope)},set:function(y){y=y.toString(),d=this instanceof ln?y:y.substr(0,1)==="("?kl(y.substr(1,y.length-2)):kl(y)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ln?kl(d.substr(1,d.length-1)):d},set:function(y){y=y.toString(),d=this instanceof ln?"/"+y:y}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof ln?h:I1(h,this.objId,this.scope)},set:function(y){y=y.toString(),h=this instanceof ln?y:y.substr(0,1)==="("?kl(y.substr(1,y.length-2)):kl(y)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ln?kl(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof ln?"/"+y:y}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var g,p=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return p},set:function(y){y=!!y,p=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(g)return g},set:function(y){g=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,1)},set:function(y){y?this.Ff=Wr(this.Ff,1):this.Ff=Hr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,2)},set:function(y){y?this.Ff=Wr(this.Ff,2):this.Ff=Hr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,3)},set:function(y){y?this.Ff=Wr(this.Ff,3):this.Ff=Hr(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(m!==null)return m},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');m=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(m){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:m=2;break;case"center":case 1:m=1;break;case"left":case 0:default:m=0}}})};fi(wa,Ia);var Ms=function(){wa.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return OO(t,this.objId,this.scope)},set:function(r){var n,i;i=[],typeof(n=r)=="string"&&(i=(function(a,o,s){s||(s=1);for(var l,u=[];l=o.exec(a);)u.push(l[s]);return u})(n,/\((.*?)\)/g)),t=i}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,18)},set:function(r){r?this.Ff=Wr(this.Ff,18):this.Ff=Hr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Wr(this.Ff,19):this.Ff=Hr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,20)},set:function(r){r?(this.Ff=Wr(this.Ff,20),t.sort()):this.Ff=Hr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,22)},set:function(r){r?this.Ff=Wr(this.Ff,22):this.Ff=Hr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,23)},set:function(r){r?this.Ff=Wr(this.Ff,23):this.Ff=Hr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,27)},set:function(r){r?this.Ff=Wr(this.Ff,27):this.Ff=Hr(this.Ff,27)}}),this.hasAppearanceStream=!1};fi(Ms,wa);var Ds=function(){Ms.call(this),this.fontName="helvetica",this.combo=!1};fi(Ds,Ms);var Bs=function(){Ds.call(this),this.combo=!0};fi(Bs,Ds);var zc=function(){Bs.call(this),this.edit=!0};fi(zc,Bs);var ln=function(){wa.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,15)},set:function(r){r?this.Ff=Wr(this.Ff,15):this.Ff=Hr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,16)},set:function(r){r?this.Ff=Wr(this.Ff,16):this.Ff=Hr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,17)},set:function(r){r?this.Ff=Wr(this.Ff,17):this.Ff=Hr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,26)},set:function(r){r?this.Ff=Wr(this.Ff,26):this.Ff=Hr(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(a){return a};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,i=[];for(n in i.push("<<"),t)i.push("/"+n+" ("+Zs(r(t[n]))+")");return i.push(">>"),i.join(`
109
+ `)}},set:function(r){ir(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+r}})};fi(ln,wa);var Wc=function(){ln.call(this),this.pushButton=!0};fi(Wc,ln);var $s=function(){ln.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};fi($s,ln);var R0=function(){var e,t;wa.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(i){e=i}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(i){t=i}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var i=function(s){return s};this.scope&&(i=this.scope.internal.getEncryptor(this.objId));var a,o=[];for(a in o.push("<<"),n)o.push("/"+a+" ("+Zs(i(n[a]))+")");return o.push(">>"),o.join(`
110
+ `)},set:function(i){ir(i)==="object"&&(n=i)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(i){typeof i=="string"&&(n.CA=i)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(i){r=i}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(i){r="/"+i}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ft.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};fi(R0,wa),$s.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},$s.prototype.createOption=function(e){var t=new R0;return t.Parent=this,t.optionName=e,this.Kids.push(t),Bk.call(this.scope,t),t};var Hc=function(){ln.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ft.CheckBox.createAppearanceStream()};fi(Hc,ln);var ts=function(){wa.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,13)},set:function(t){t?this.Ff=Wr(this.Ff,13):this.Ff=Hr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,21)},set:function(t){t?this.Ff=Wr(this.Ff,21):this.Ff=Hr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,23)},set:function(t){t?this.Ff=Wr(this.Ff,23):this.Ff=Hr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,24)},set:function(t){t?this.Ff=Wr(this.Ff,24):this.Ff=Hr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,25)},set:function(t){t?this.Ff=Wr(this.Ff,25):this.Ff=Hr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,26)},set:function(t){t?this.Ff=Wr(this.Ff,26):this.Ff=Hr(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};fi(ts,wa);var Gc=function(){ts.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!zr(this.Ff,14)},set:function(e){e?this.Ff=Wr(this.Ff,14):this.Ff=Hr(this.Ff,14)}}),this.password=!0};fi(Gc,ts);var ft={CheckBox:{createAppearanceStream:function(){return{N:{On:ft.CheckBox.YesNormal},D:{On:ft.CheckBox.YesPushDown,Off:ft.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=ja(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),a=u2(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+Nt(ft.internal.getWidth(e))+" "+Nt(ft.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+Nt(a.fontSize)+" Tf "+i),r.push("BT"),r.push(a.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(`
111
+ `),t},YesNormal:function(e){var t=ja(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=[],a=ft.internal.getHeight(e),o=ft.internal.getWidth(e),s=u2(e,e.caption);return i.push("1 g"),i.push("0 0 "+Nt(o)+" "+Nt(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Nt(o-1)+" "+Nt(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+Nt(s.fontSize)+" Tf "+n),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join(`
112
+ `),t},OffPushDown:function(e){var t=ja(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Nt(ft.internal.getWidth(e))+" "+Nt(ft.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
113
+ `),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ft.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ft.RadioButton.Circle.YesNormal,t.D[e]=ft.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ja(e);t.scope=e.scope;var r=[],n=ft.internal.getWidth(e)<=ft.internal.getHeight(e)?ft.internal.getWidth(e)/4:ft.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=ft.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Ho(ft.internal.getWidth(e)/2)+" "+Ho(ft.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+a+" "+a+" "+n+" 0 "+n+" c"),r.push("-"+a+" "+n+" -"+n+" "+a+" -"+n+" 0 c"),r.push("-"+n+" -"+a+" -"+a+" -"+n+" 0 -"+n+" c"),r.push(a+" -"+n+" "+n+" -"+a+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
114
+ `),t},YesPushDown:function(e){var t=ja(e);t.scope=e.scope;var r=[],n=ft.internal.getWidth(e)<=ft.internal.getHeight(e)?ft.internal.getWidth(e)/4:ft.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ft.internal.Bezier_C).toFixed(5)),o=Number((n*ft.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ho(ft.internal.getWidth(e)/2)+" "+Ho(ft.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Ho(ft.internal.getWidth(e)/2)+" "+Ho(ft.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
115
+ `),t},OffPushDown:function(e){var t=ja(e);t.scope=e.scope;var r=[],n=ft.internal.getWidth(e)<=ft.internal.getHeight(e)?ft.internal.getWidth(e)/4:ft.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*ft.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Ho(ft.internal.getWidth(e)/2)+" "+Ho(ft.internal.getHeight(e)/2)+" cm"),r.push(i+" 0 m"),r.push(i+" "+a+" "+a+" "+i+" 0 "+i+" c"),r.push("-"+a+" "+i+" -"+i+" "+a+" -"+i+" 0 c"),r.push("-"+i+" -"+a+" -"+a+" -"+i+" 0 -"+i+" c"),r.push(a+" -"+i+" "+i+" -"+a+" "+i+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
116
+ `),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ft.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ft.RadioButton.Cross.YesNormal,t.D[e]=ft.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ja(e);t.scope=e.scope;var r=[],n=ft.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+Nt(ft.internal.getWidth(e)-2)+" "+Nt(ft.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Nt(n.x1.x)+" "+Nt(n.x1.y)+" m"),r.push(Nt(n.x2.x)+" "+Nt(n.x2.y)+" l"),r.push(Nt(n.x4.x)+" "+Nt(n.x4.y)+" m"),r.push(Nt(n.x3.x)+" "+Nt(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
117
+ `),t},YesPushDown:function(e){var t=ja(e);t.scope=e.scope;var r=ft.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+Nt(ft.internal.getWidth(e))+" "+Nt(ft.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Nt(ft.internal.getWidth(e)-2)+" "+Nt(ft.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(Nt(r.x1.x)+" "+Nt(r.x1.y)+" m"),n.push(Nt(r.x2.x)+" "+Nt(r.x2.y)+" l"),n.push(Nt(r.x4.x)+" "+Nt(r.x4.y)+" m"),n.push(Nt(r.x3.x)+" "+Nt(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
118
+ `),t},OffPushDown:function(e){var t=ja(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Nt(ft.internal.getWidth(e))+" "+Nt(ft.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
119
+ `),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};ft.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ft.internal.getWidth(e),r=ft.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},ft.internal.getWidth=function(e){var t=0;return ir(e)==="object"&&(t=ew(e.Rect[2])),t},ft.internal.getHeight=function(e){var t=0;return ir(e)==="object"&&(t=ew(e.Rect[3])),t};var Bk=Fr.addField=function(e){if(Dk(this,e),!(e instanceof wa))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Fr.AcroFormChoiceField=Ms,Fr.AcroFormListBox=Ds,Fr.AcroFormComboBox=Bs,Fr.AcroFormEditBox=zc,Fr.AcroFormButton=ln,Fr.AcroFormPushButton=Wc,Fr.AcroFormRadioButton=$s,Fr.AcroFormCheckBox=Hc,Fr.AcroFormTextField=ts,Fr.AcroFormPasswordField=Gc,Fr.AcroFormAppearance=ft,Fr.AcroForm={ChoiceField:Ms,ListBox:Ds,ComboBox:Bs,EditBox:zc,Button:ln,PushButton:Wc,RadioButton:$s,CheckBox:Hc,TextField:ts,PasswordField:Gc,Appearance:ft},vt.AcroForm={ChoiceField:Ms,ListBox:Ds,ComboBox:Bs,EditBox:zc,Button:ln,PushButton:Wc,RadioButton:$s,CheckBox:Hc,TextField:ts,PasswordField:Gc,Appearance:ft};var $k=vt.AcroForm;function CO(e){return e.reduce((function(t,r,n){return t[r]=n,t}),{})}(function(e){e.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.__addimage__.getImageFileTypeByImageData=function(C,P){var M,q,J,U,H,ee=t;if((P=P||t)==="RGBA"||C.data!==void 0&&C.data instanceof Uint8ClampedArray&&"height"in C&&"width"in C)return"RGBA";if(O(C))for(H in r)for(J=r[H],M=0;M<J.length;M+=1){for(U=!0,q=0;q<J[M].length;q+=1)if(J[M][q]!==void 0&&J[M][q]!==C[q]){U=!1;break}if(U===!0){ee=H;break}}else for(H in r)for(J=r[H],M=0;M<J.length;M+=1){for(U=!0,q=0;q<J[M].length;q+=1)if(J[M][q]!==void 0&&J[M][q]!==C.charCodeAt(q)){U=!1;break}if(U===!0){ee=H;break}}return ee===t&&P!==t&&(ee=P),ee},i=function C(P){for(var M=this.internal.write,q=this.internal.putStream,J=(0,this.internal.getFilters)();J.indexOf("FlateEncode")!==-1;)J.splice(J.indexOf("FlateEncode"),1);P.objectId=this.internal.newObject();var U=[];if(U.push({key:"Type",value:"/XObject"}),U.push({key:"Subtype",value:"/Image"}),U.push({key:"Width",value:P.width}),U.push({key:"Height",value:P.height}),P.colorSpace===m.INDEXED?U.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(P.palette.length/3-1)+" "+("sMask"in P&&P.sMask!==void 0?P.objectId+2:P.objectId+1)+" 0 R]"}):(U.push({key:"ColorSpace",value:"/"+P.colorSpace}),P.colorSpace===m.DEVICE_CMYK&&U.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),U.push({key:"BitsPerComponent",value:P.bitsPerComponent}),"decodeParameters"in P&&P.decodeParameters!==void 0&&U.push({key:"DecodeParms",value:"<<"+P.decodeParameters+">>"}),"transparency"in P&&Array.isArray(P.transparency)){for(var H="",ee=0,Z=P.transparency.length;ee<Z;ee++)H+=P.transparency[ee]+" "+P.transparency[ee]+" ";U.push({key:"Mask",value:"["+H+"]"})}P.sMask!==void 0&&U.push({key:"SMask",value:P.objectId+1+" 0 R"});var Q=P.filter!==void 0?["/"+P.filter]:void 0;if(q({data:P.data,additionalKeyValues:U,alreadyAppliedFilters:Q,objectId:P.objectId}),M("endobj"),"sMask"in P&&P.sMask!==void 0){var le="/Predictor "+P.predictor+" /Colors 1 /BitsPerComponent "+P.bitsPerComponent+" /Columns "+P.width,N={width:P.width,height:P.height,colorSpace:"DeviceGray",bitsPerComponent:P.bitsPerComponent,decodeParameters:le,data:P.sMask};"filter"in P&&(N.filter=P.filter),C.call(this,N)}if(P.colorSpace===m.INDEXED){var I=this.internal.newObject();q({data:k(new Uint8Array(P.palette)),objectId:I}),M("endobj")}},a=function(){var C=this.internal.collections.addImage_images;for(var P in C)i.call(this,C[P])},o=function(){var C,P=this.internal.collections.addImage_images,M=this.internal.write;for(var q in P)M("/I"+(C=P[q]).index,C.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",a),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var C=this.internal.collections.addImage_images;return s.call(this),C},u=function(){return Object.keys(this.internal.collections.addImage_images).length},c=function(C){return typeof e["process"+C.toUpperCase()]=="function"},f=function(C){return ir(C)==="object"&&C.nodeType===1},d=function(C,P){if(C.nodeName==="IMG"&&C.hasAttribute("src")){var M=""+C.getAttribute("src");if(M.indexOf("data:image/")===0)return Uc(unescape(M).split("base64,").pop());var q=e.loadFile(M,!0);if(q!==void 0)return q}if(C.nodeName==="CANVAS"){if(C.width===0||C.height===0)throw new Error("Given canvas must have data. Canvas width: "+C.width+", height: "+C.height);var J;switch(P){case"PNG":J="image/png";break;case"WEBP":J="image/webp";break;case"JPEG":case"JPG":default:J="image/jpeg"}return Uc(C.toDataURL(J,1).split("base64,").pop())}},h=function(C){var P=this.internal.collections.addImage_images;if(P){for(var M in P)if(C===P[M].alias)return P[M]}},g=function(C,P,M){return C||P||(C=-96,P=-96),C<0&&(C=-1*M.width*72/C/this.internal.scaleFactor),P<0&&(P=-1*M.height*72/P/this.internal.scaleFactor),C===0&&(C=P*M.width/M.height),P===0&&(P=C*M.height/M.width),[C,P]},p=function(C,P,M,q,J,U){var H=g.call(this,M,q,J),ee=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString,Q=l.call(this);if(M=H[0],q=H[1],Q[J.index]=J,U){U*=Math.PI/180;var le=Math.cos(U),N=Math.sin(U),I=function(D){return D.toFixed(4)},R=[I(le),I(N),I(-1*N),I(le),0,0,"cm"]}this.internal.write("q"),U?(this.internal.write([1,"0","0",1,ee(C),Z(P+q),"cm"].join(" ")),this.internal.write(R.join(" ")),this.internal.write([ee(M),"0","0",ee(q),"0","0","cm"].join(" "))):this.internal.write([ee(M),"0","0",ee(q),ee(C),Z(P+q),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+J.index+" Do"),this.internal.write("Q")},m=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var y=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},x=e.__addimage__.sHashCode=function(C){var P,M,q=0;if(typeof C=="string")for(M=C.length,P=0;P<M;P++)q=(q<<5)-q+C.charCodeAt(P),q|=0;else if(O(C))for(M=C.byteLength/2,P=0;P<M;P++)q=(q<<5)-q+C[P],q|=0;return q},w=e.__addimage__.validateStringAsBase64=function(C){(C=C||"").toString().trim();var P=!0;return C.length===0&&(P=!1),C.length%4!=0&&(P=!1),/^[A-Za-z0-9+/]+$/.test(C.substr(0,C.length-2))===!1&&(P=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(C.substr(-2))===!1&&(P=!1),P},T=e.__addimage__.extractImageFromDataUrl=function(C){var P=(C=C||"").split("base64,"),M=null;if(P.length===2){var q=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(P[0]);Array.isArray(q)&&(M={mimeType:q[1],charset:q[2],data:P[1]})}return M},_=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(C){return _()&&C instanceof ArrayBuffer};var O=e.__addimage__.isArrayBufferView=function(C){return _()&&typeof Uint32Array<"u"&&(C instanceof Int8Array||C instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&C instanceof Uint8ClampedArray||C instanceof Int16Array||C instanceof Uint16Array||C instanceof Int32Array||C instanceof Uint32Array||C instanceof Float32Array||C instanceof Float64Array)},A=e.__addimage__.binaryStringToUint8Array=function(C){for(var P=C.length,M=new Uint8Array(P),q=0;q<P;q++)M[q]=C.charCodeAt(q);return M},k=e.__addimage__.arrayBufferToBinaryString=function(C){for(var P="",M=O(C)?C:new Uint8Array(C),q=0;q<M.length;q+=8192)P+=String.fromCharCode.apply(null,M.subarray(q,q+8192));return P};e.addImage=function(){var C,P,M,q,J,U,H,ee,Z;if(typeof arguments[1]=="number"?(P=t,M=arguments[1],q=arguments[2],J=arguments[3],U=arguments[4],H=arguments[5],ee=arguments[6],Z=arguments[7]):(P=arguments[1],M=arguments[2],q=arguments[3],J=arguments[4],U=arguments[5],H=arguments[6],ee=arguments[7],Z=arguments[8]),ir(C=arguments[0])==="object"&&!f(C)&&"imageData"in C){var Q=C;C=Q.imageData,P=Q.format||P||t,M=Q.x||M||0,q=Q.y||q||0,J=Q.w||Q.width||J,U=Q.h||Q.height||U,H=Q.alias||H,ee=Q.compression||ee,Z=Q.rotation||Q.angle||Z}var le=this.internal.getFilters();if(ee===void 0&&le.indexOf("FlateEncode")!==-1&&(ee="SLOW"),isNaN(M)||isNaN(q))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var N=L.call(this,C,P,H,ee);return p.call(this,M,q,J,U,N,Z),this};var L=function(C,P,M,q){var J,U,H;if(typeof C=="string"&&n(C)===t){C=unescape(C);var ee=B(C,!1);(ee!==""||(ee=e.loadFile(C,!0))!==void 0)&&(C=ee)}if(f(C)&&(C=d(C,P)),P=n(C,P),!c(P))throw new Error("addImage does not support files of type '"+P+"', please ensure that a plugin for '"+P+"' support is added.");if(((H=M)==null||H.length===0)&&(M=(function(Z){return typeof Z=="string"||O(Z)?x(Z):O(Z.data)?x(Z.data):null})(C)),(J=h.call(this,M))||(_()&&(C instanceof Uint8Array||P==="RGBA"||(U=C,C=A(C))),J=this["process"+P.toUpperCase()](C,u.call(this),M,(function(Z){return Z&&typeof Z=="string"&&(Z=Z.toUpperCase()),Z in e.image_compression?Z:y.NONE})(q),U)),!J)throw new Error("An unknown error occurred whilst processing the image.");return J},B=e.__addimage__.convertBase64ToBinaryString=function(C,P){var M;P=typeof P!="boolean"||P;var q,J="";if(typeof C=="string"){q=(M=T(C))!==null?M.data:C;try{J=Uc(q)}catch(U){if(P)throw w(q)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+U.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return J};e.getImageProperties=function(C){var P,M,q="";if(f(C)&&(C=d(C)),typeof C=="string"&&n(C)===t&&((q=B(C,!1))===""&&(q=e.loadFile(C)||""),C=q),M=n(C),!c(M))throw new Error("addImage does not support files of type '"+M+"', please ensure that a plugin for '"+M+"' support is added.");if(!_()||C instanceof Uint8Array||(C=A(C)),!(P=this["process"+M.toUpperCase()](C)))throw new Error("An unknown error occurred whilst processing the image");return P.fileType=M,P}})(vt.API),(function(e){var t=function(r){if(r!==void 0&&r!="")return!0};vt.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,i,a,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),u=r.pageContext.annotations,c=!1,f=0;f<u.length&&!c;f++)switch((n=u[f]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(c!=0){this.internal.write("/Annots [");for(var d=0;d<u.length;d++){n=u[d];var h=this.internal.pdfEscape,g=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var p=this.internal.newAdditionalObject(),m=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(p.objId),x=n.title||"Note";a="<</Type /Annot /Subtype /Text "+(i="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+h(y(n.contents))+")",a+=" /Popup "+m.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+h(y(x))+") >>",p.content=a;var w=p.objId+" 0 R";a="<</Type /Annot /Subtype /Popup "+(i="/Rect ["+o(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+w,n.open&&(a+=" /Open true"),a+=" >>",m.content=a,this.internal.write(p.objId,"0 R",m.objId,"0 R");break;case"freetext":i="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var T=n.color||"#000000";a="<</Type /Annot /Subtype /FreeText "+i+"/Contents ("+h(g(n.contents))+")",a+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+T+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var _=this.annotations._nameMap[n.options.name];n.options.pageNumber=_.page,n.options.top=_.y}else n.options.top||(n.options.top=0);if(i="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",a="",n.options.url)a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /A <</S /URI /URI ("+h(g(n.options.url))+") >>";else if(n.options.pageNumber)switch(a="<</Type /Annot /Subtype /Link "+i+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":a+=" /Fit]";break;case"FitH":a+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,a+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var O=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),a+=" /XYZ "+n.options.left+" "+O+" "+n.options.zoom+"]"}a!=""&&(a+=" >>",this.internal.write(a))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,i,a,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:u(n),w:l(r+i),h:u(n+a)},options:o,type:"link"})},e.textWithLink=function(r,n,i,a){var o,s,l=this.getTextWidth(r),u=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var c=this.splitTextToSize(r,s).length;o=Math.ceil(u*c)}else s=l,o=u;return this.text(r,n,i,a),i+=.2*u,a.align==="center"&&(n-=l/2),a.align==="right"&&(n-=l),this.link(n,i-u,s,o,a),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}})(vt.API),(function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var a=e.__arabicParser__.isInArabicSubstitutionA=function(p){return t[p.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(p){return typeof p=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(p)},s=e.__arabicParser__.isArabicEndLetter=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(p){return o(p)&&i.indexOf(p.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=1};var u=e.__arabicParser__.arabicLetterHasFinalForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length>=3};var c=e.__arabicParser__.arabicLetterHasMedialForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length==4},f=e.__arabicParser__.resolveLigatures=function(p){var m=0,y=r,x="",w=0;for(m=0;m<p.length;m+=1)y[p.charCodeAt(m)]!==void 0?(w++,typeof(y=y[p.charCodeAt(m)])=="number"&&(x+=String.fromCharCode(y),y=r,w=0),m===p.length-1&&(y=r,x+=p.charAt(m-(w-1)),m-=w-1,w=0)):(y=r,x+=p.charAt(m-w),m-=w,w=0);return x};e.__arabicParser__.isArabicDiacritic=function(p){return p!==void 0&&n[p.charCodeAt(0)]!==void 0};var d=e.__arabicParser__.getCorrectForm=function(p,m,y){return o(p)?a(p)===!1?-1:!u(p)||!o(m)&&!o(y)||!o(y)&&s(m)||s(p)&&!o(m)||s(p)&&l(m)||s(p)&&s(m)?0:c(p)&&o(m)&&!s(m)&&o(y)&&u(y)?3:s(p)||!o(y)?1:2:-1},h=function(p){var m=0,y=0,x=0,w="",T="",_="",O=(p=p||"").split("\\s+"),A=[];for(m=0;m<O.length;m+=1){for(A.push(""),y=0;y<O[m].length;y+=1)w=O[m][y],T=O[m][y-1],_=O[m][y+1],o(w)?(x=d(w,T,_),A[m]+=x!==-1?String.fromCharCode(t[w.charCodeAt(0)][x]):w):A[m]+=w;A[m]=f(A[m])}return A.join(" ")},g=e.__arabicParser__.processArabic=e.processArabic=function(){var p,m=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(m)){var x=0;for(y=[],x=0;x<m.length;x+=1)Array.isArray(m[x])?y.push([h(m[x][0]),m[x][1],m[x][2]]):y.push([h(m[x])]);p=y}else p=h(m);return typeof arguments[0]=="string"?p:(arguments[0].text=p,arguments[0])};e.events.push(["preProcessText",g])})(vt.API),vt.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},(function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var i=300;Object.defineProperty(this,"height",{get:function(){return i},set:function(s){i=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=i+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(s){a=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var i;if((r=r||"2d")!=="2d")return null;for(i in n)this.pdf.context2d.hasOwnProperty(i)&&(this.pdf.context2d[i]=n[i]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(vt.API),(function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new a,this.internal.__cell__.pages=1},a=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(p){l=p}});var u=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return u},set:function(p){u=p}});var c=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return c},set:function(p){c=p}});var f=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return f},set:function(p){f=p}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(p){d=p}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(p){h=p}});var g=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return g},set:function(p){g=p}}),this};a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},a.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,u){n.call(this);var c=(u=u||{}).fontSize||this.getFontSize(),f=u.font||this.getFont(),d=u.scaleFactor||this.internal.scaleFactor,h=0,g=0,p=0,m=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var y=u.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce((function(w,T){return w.concat(m.splitTextToSize(T,y))}),[])):l=Array.isArray(l)?l:[l];for(var x=0;x<l.length;x++)h<(p=this.getStringUnitWidth(l[x],{font:f})*c)&&(h=p);return h!==0&&(g=l.length),{w:h/=d,h:Math.max((g*c*this.getLineHeightFactor()-c*(this.getLineHeightFactor()-1))/d,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new a(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof a?arguments[0]:new a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var u=this.internal.__cell__.lastCell,c=this.internal.__cell__.padding,f=this.internal.__cell__.margins||t,d=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return u.lineNumber!==void 0&&(u.lineNumber===l.lineNumber?(l.x=(u.x||0)+(u.width||0),l.y=u.y||0):u.y+u.height+l.height+f.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=f.top,h&&d&&(this.printHeaderRow(l.lineNumber,!0),l.y+=d[0].height)):l.y=u.y+u.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-c,l.y+c,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+c,{align:"center",baseline:"top",maxWidth:l.width-c-c}):this.text(l.text,l.x+c,l.y+c,{align:"left",baseline:"top",maxWidth:l.width-c-c})),this.internal.__cell__.lastCell=l,this};e.table=function(l,u,c,f,d){if(n.call(this),!c)throw new Error("No data for PDF table.");var h,g,p,m,y=[],x=[],w=[],T={},_={},O=[],A=[],k=(d=d||{}).autoSize||!1,L=d.printHeaders!==!1,B=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,C=d.margins||Object.assign({width:this.getPageWidth()},t),P=typeof d.padding=="number"?d.padding:3,M=d.headerBackgroundColor||"#c8c8c8",q=d.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=L,this.internal.__cell__.margins=C,this.internal.__cell__.table_font_size=B,this.internal.__cell__.padding=P,this.internal.__cell__.headerBackgroundColor=M,this.internal.__cell__.headerTextColor=q,this.setFontSize(B),f==null)x=y=Object.keys(c[0]),w=y.map((function(){return"left"}));else if(Array.isArray(f)&&ir(f[0])==="object")for(y=f.map((function(Q){return Q.name})),x=f.map((function(Q){return Q.prompt||Q.name||""})),w=f.map((function(Q){return Q.align||"left"})),h=0;h<f.length;h+=1)_[f[h].name]=f[h].width*(19.049976/25.4);else Array.isArray(f)&&typeof f[0]=="string"&&(x=y=f,w=y.map((function(){return"left"})));if(k||Array.isArray(f)&&typeof f[0]=="string")for(h=0;h<y.length;h+=1){for(T[m=y[h]]=c.map((function(Q){return Q[m]})),this.setFont(void 0,"bold"),O.push(this.getTextDimensions(x[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),g=T[m],this.setFont(void 0,"normal"),p=0;p<g.length;p+=1)O.push(this.getTextDimensions(g[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);_[m]=Math.max.apply(null,O)+P+P,O=[]}if(L){var J={};for(h=0;h<y.length;h+=1)J[y[h]]={},J[y[h]].text=x[h],J[y[h]].align=w[h];var U=s.call(this,J,_);A=y.map((function(Q){return new a(l,u,_[Q],U,J[Q].text,void 0,J[Q].align)})),this.setTableHeaderRow(A),this.printHeaderRow(1,!1)}var H=f.reduce((function(Q,le){return Q[le.name]=le.align,Q}),{});for(h=0;h<c.length;h+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:h,data:c[h]},this);var ee=s.call(this,c[h],_);for(p=0;p<y.length;p+=1){var Z=c[h][y[p]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:h,col:p,data:Z},this),o.call(this,new a(l,u,_[y[p]],ee,Z,h+2,H[y[p]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=u,this};var s=function(l,u){var c=this.internal.__cell__.padding,f=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(l).map((function(h){var g=l[h];return this.splitTextToSize(g.hasOwnProperty("text")?g.text:g,u[h]-c-c)}),this).map((function(h){return this.getLineHeightFactor()*h.length*f/d+c+c}),this).reduce((function(h,g){return Math.max(h,g)}),0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,u){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var c;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var f=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new a(f[0],f[1],f[2],f[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){c=this.internal.__cell__.tableHeaderRow[h].clone(),u&&(c.y=this.internal.__cell__.margins.top||0,d.push(c)),c.lineNumber=l;var g=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,c),this.setTextColor(g)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),r=!1}})(vt.API);var jO={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},kO=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],c2=CO(kO),LO=[100,200,300,400,500,600,700,800,900],qk=CO(LO);function f2(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=(function(a){return jO[a=a||"normal"]?a:"normal"})(e.style),n=(function(a){if(!a)return 400;if(typeof a=="number")return a>=100&&a<=900&&a%100==0?a:400;if(/^\d00$/.test(a))return parseInt(a);switch(a){case"bold":return 700;case"normal":default:return 400}})(e.weight),i=(function(a){return typeof c2[a=a||"normal"]=="number"?a:"normal"})(e.stretch);return{family:t,style:r,weight:n,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,r,n].join(" ")}}}function tw(e,t,r,n){var i;for(i=r;i>=0&&i<t.length;i+=n)if(e[t[i]])return e[t[i]];for(i=r;i>=0&&i<t.length;i-=n)if(e[t[i]])return e[t[i]]}var Uk={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},rw={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function nw(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function zk(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",i=Object.assign({},Uk,r.genericFontFamilies||{}),a=null,o=null,s=0;s<t.length;++s)if(i[(a=f2(t[s])).family]&&(a.family=i[a.family]),e.hasOwnProperty(a.family)){o=e[a.family];break}if(!(o=o||e[n]))throw new Error("Could not find a font-family for the rule '"+nw(a)+"' and default family '"+n+"'.");if(o=(function(l,u){if(u[l])return u[l];var c=c2[l],f=c<=c2.normal?-1:1,d=tw(u,kO,c,f);if(!d)throw new Error("Could not find a matching font-stretch value for "+l);return d})(a.stretch,o),o=(function(l,u){if(u[l])return u[l];for(var c=jO[l],f=0;f<c.length;++f)if(u[c[f]])return u[c[f]];throw new Error("Could not find a matching font-style for "+l)})(a.style,o),!(o=(function(l,u){if(u[l])return u[l];if(l===400&&u[500])return u[500];if(l===500&&u[400])return u[400];var c=qk[l],f=tw(u,LO,c,l<400?-1:1);if(!f)throw new Error("Could not find a matching font-weight for value "+l);return f})(a.weight,o)))throw new Error("Failed to resolve a font for the rule '"+nw(a)+"'.");return o}function iw(e){return e.trimLeft()}function Wk(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function Hk(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var s0,aw,ow,F1=["times"];(function(e){var t,r,n,i,a,o,s,l,u,c=function(N){return N=N||{},this.isStrokeTransparent=N.isStrokeTransparent||!1,this.strokeOpacity=N.strokeOpacity||1,this.strokeStyle=N.strokeStyle||"#000000",this.fillStyle=N.fillStyle||"#000000",this.isFillTransparent=N.isFillTransparent||!1,this.fillOpacity=N.fillOpacity||1,this.font=N.font||"10px sans-serif",this.textBaseline=N.textBaseline||"alphabetic",this.textAlign=N.textAlign||"left",this.lineWidth=N.lineWidth||1,this.lineJoin=N.lineJoin||"miter",this.lineCap=N.lineCap||"butt",this.path=N.path||[],this.transform=N.transform!==void 0?N.transform.clone():new l,this.globalCompositeOperation=N.globalCompositeOperation||"normal",this.globalAlpha=N.globalAlpha||1,this.clip_path=N.clip_path||[],this.currentPoint=N.currentPoint||new o,this.miterLimit=N.miterLimit||10,this.lastPoint=N.lastPoint||new o,this.lineDashOffset=N.lineDashOffset||0,this.lineDash=N.lineDash||[],this.margin=N.margin||[0,0,0,0],this.prevPageLastElemOffset=N.prevPageLastElemOffset||0,this.ignoreClearRect=typeof N.ignoreClearRect!="boolean"||N.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new f(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,a=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,u=new c}]);var f=function(N){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var I=N;Object.defineProperty(this,"pdf",{get:function(){return I}});var R=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return R},set:function(_e){R=!!_e}});var D=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return D},set:function(_e){D=!!_e}});var G=0;Object.defineProperty(this,"posX",{get:function(){return G},set:function(_e){isNaN(_e)||(G=_e)}});var ce=0;Object.defineProperty(this,"posY",{get:function(){return ce},set:function(_e){isNaN(_e)||(ce=_e)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(_e){var oe;typeof _e=="number"?oe=[_e,_e,_e,_e]:((oe=new Array(4))[0]=_e[0],oe[1]=_e.length>=2?_e[1]:oe[0],oe[2]=_e.length>=3?_e[2]:oe[0],oe[3]=_e.length>=4?_e[3]:oe[1]),u.margin=oe}});var he=!1;Object.defineProperty(this,"autoPaging",{get:function(){return he},set:function(_e){he=_e}});var ne=0;Object.defineProperty(this,"lastBreak",{get:function(){return ne},set:function(_e){ne=_e}});var me=[];Object.defineProperty(this,"pageBreaks",{get:function(){return me},set:function(_e){me=_e}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(_e){_e instanceof c&&(u=_e)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(_e){u.path=_e}});var Se=[];Object.defineProperty(this,"ctxStack",{get:function(){return Se},set:function(_e){Se=_e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(_e){var oe;oe=d(_e),this.ctx.fillStyle=oe.style,this.ctx.isFillTransparent=oe.a===0,this.ctx.fillOpacity=oe.a,this.pdf.setFillColor(oe.r,oe.g,oe.b,{a:oe.a}),this.pdf.setTextColor(oe.r,oe.g,oe.b,{a:oe.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(_e){var oe=d(_e);this.ctx.strokeStyle=oe.style,this.ctx.isStrokeTransparent=oe.a===0,this.ctx.strokeOpacity=oe.a,oe.a===0?this.pdf.setDrawColor(255,255,255):(oe.a,this.pdf.setDrawColor(oe.r,oe.g,oe.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(_e){["butt","round","square"].indexOf(_e)!==-1&&(this.ctx.lineCap=_e,this.pdf.setLineCap(_e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(_e){isNaN(_e)||(this.ctx.lineWidth=_e,this.pdf.setLineWidth(_e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(_e){["bevel","round","miter"].indexOf(_e)!==-1&&(this.ctx.lineJoin=_e,this.pdf.setLineJoin(_e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(_e){isNaN(_e)||(this.ctx.miterLimit=_e,this.pdf.setMiterLimit(_e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(_e){this.ctx.textBaseline=_e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(_e){["right","end","center","left","start"].indexOf(_e)!==-1&&(this.ctx.textAlign=_e)}});var ue=null;function Ie(_e,oe){if(ue===null){var Re=(function(et){var Be=[];return Object.keys(et).forEach((function(Ve){et[Ve].forEach((function(Je){var Xe=null;switch(Je){case"bold":Xe={family:Ve,weight:"bold"};break;case"italic":Xe={family:Ve,style:"italic"};break;case"bolditalic":Xe={family:Ve,weight:"bold",style:"italic"};break;case"":case"normal":Xe={family:Ve}}Xe!==null&&(Xe.ref={name:Ve,style:Je},Be.push(Xe))}))})),Be})(_e.getFontList());ue=(function(et){for(var Be={},Ve=0;Ve<et.length;++Ve){var Je=f2(et[Ve]),Xe=Je.family,ht=Je.stretch,dt=Je.style,xt=Je.weight;Be[Xe]=Be[Xe]||{},Be[Xe][ht]=Be[Xe][ht]||{},Be[Xe][ht][dt]=Be[Xe][ht][dt]||{},Be[Xe][ht][dt][xt]=Je}return Be})(Re.concat(oe))}return ue}var ge=null;Object.defineProperty(this,"fontFaces",{get:function(){return ge},set:function(_e){ue=null,ge=_e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(_e){var oe;if(this.ctx.font=_e,(oe=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(_e))!==null){var Re=oe[1],et=(oe[2],oe[3]),Be=oe[4],Ve=(oe[5],oe[6]),Je=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Be)[2];Be=Math.floor(Je==="px"?parseFloat(Be)*this.pdf.internal.scaleFactor:Je==="em"?parseFloat(Be)*this.pdf.getFontSize():parseFloat(Be)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Be);var Xe=(function(wt){var Rt,at,tn=[],qt=wt.trim();if(qt==="")return F1;if(qt in rw)return[rw[qt]];for(;qt!=="";){switch(at=null,Rt=(qt=iw(qt)).charAt(0)){case'"':case"'":at=Wk(qt.substring(1),Rt);break;default:at=Hk(qt)}if(at===null||(tn.push(at[0]),(qt=iw(at[1]))!==""&&qt.charAt(0)!==","))return F1;qt=qt.replace(/^,/,"")}return tn})(Ve);if(this.fontFaces){var ht=zk(Ie(this.pdf,this.fontFaces),Xe.map((function(wt){return{family:wt,stretch:"normal",weight:et,style:Re}})));this.pdf.setFont(ht.ref.name,ht.ref.style)}else{var dt="";(et==="bold"||parseInt(et,10)>=700||Re==="bold")&&(dt="bold"),Re==="italic"&&(dt+="italic"),dt.length===0&&(dt="normal");for(var xt="",Et={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Ft=0;Ft<Xe.length;Ft++){if(this.pdf.internal.getFont(Xe[Ft],dt,{noFallback:!0,disableWarning:!0})!==void 0){xt=Xe[Ft];break}if(dt==="bolditalic"&&this.pdf.internal.getFont(Xe[Ft],"bold",{noFallback:!0,disableWarning:!0})!==void 0)xt=Xe[Ft],dt="bold";else if(this.pdf.internal.getFont(Xe[Ft],"normal",{noFallback:!0,disableWarning:!0})!==void 0){xt=Xe[Ft],dt="normal";break}}if(xt===""){for(var Bt=0;Bt<Xe.length;Bt++)if(Et[Xe[Bt]]){xt=Et[Xe[Bt]];break}}xt=xt===""?"Times":xt,this.pdf.setFont(xt,dt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(_e){this.ctx.globalCompositeOperation=_e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(_e){this.ctx.globalAlpha=_e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(_e){this.ctx.lineDashOffset=_e,le.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(_e){this.ctx.lineDash=_e,le.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(_e){this.ctx.ignoreClearRect=!!_e}})};f.prototype.setLineDash=function(N){this.lineDash=N},f.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},f.prototype.fill=function(){T.call(this,"fill",!1)},f.prototype.stroke=function(){T.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(N,I){if(isNaN(N)||isNaN(I))throw xr.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var R=this.ctx.transform.applyToPoint(new o(N,I));this.path.push({type:"mt",x:R.x,y:R.y}),this.ctx.lastPoint=new o(N,I)},f.prototype.closePath=function(){var N=new o(0,0),I=0;for(I=this.path.length-1;I!==-1;I--)if(this.path[I].type==="begin"&&ir(this.path[I+1])==="object"&&typeof this.path[I+1].x=="number"){N=new o(this.path[I+1].x,this.path[I+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(N.x,N.y)},f.prototype.lineTo=function(N,I){if(isNaN(N)||isNaN(I))throw xr.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var R=this.ctx.transform.applyToPoint(new o(N,I));this.path.push({type:"lt",x:R.x,y:R.y}),this.ctx.lastPoint=new o(R.x,R.y)},f.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),T.call(this,null,!0)},f.prototype.quadraticCurveTo=function(N,I,R,D){if(isNaN(R)||isNaN(D)||isNaN(N)||isNaN(I))throw xr.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var G=this.ctx.transform.applyToPoint(new o(R,D)),ce=this.ctx.transform.applyToPoint(new o(N,I));this.path.push({type:"qct",x1:ce.x,y1:ce.y,x:G.x,y:G.y}),this.ctx.lastPoint=new o(G.x,G.y)},f.prototype.bezierCurveTo=function(N,I,R,D,G,ce){if(isNaN(G)||isNaN(ce)||isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D))throw xr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var he=this.ctx.transform.applyToPoint(new o(G,ce)),ne=this.ctx.transform.applyToPoint(new o(N,I)),me=this.ctx.transform.applyToPoint(new o(R,D));this.path.push({type:"bct",x1:ne.x,y1:ne.y,x2:me.x,y2:me.y,x:he.x,y:he.y}),this.ctx.lastPoint=new o(he.x,he.y)},f.prototype.arc=function(N,I,R,D,G,ce){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D)||isNaN(G))throw xr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ce=!!ce,!this.ctx.transform.isIdentity){var he=this.ctx.transform.applyToPoint(new o(N,I));N=he.x,I=he.y;var ne=this.ctx.transform.applyToPoint(new o(0,R)),me=this.ctx.transform.applyToPoint(new o(0,0));R=Math.sqrt(Math.pow(ne.x-me.x,2)+Math.pow(ne.y-me.y,2))}Math.abs(G-D)>=2*Math.PI&&(D=0,G=2*Math.PI),this.path.push({type:"arc",x:N,y:I,radius:R,startAngle:D,endAngle:G,counterclockwise:ce})},f.prototype.arcTo=function(N,I,R,D,G){throw new Error("arcTo not implemented.")},f.prototype.rect=function(N,I,R,D){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D))throw xr.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(N,I),this.lineTo(N+R,I),this.lineTo(N+R,I+D),this.lineTo(N,I+D),this.lineTo(N,I),this.lineTo(N+R,I),this.lineTo(N,I)},f.prototype.fillRect=function(N,I,R,D){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D))throw xr.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var G={};this.lineCap!=="butt"&&(G.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(G.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(N,I,R,D),this.fill(),G.hasOwnProperty("lineCap")&&(this.lineCap=G.lineCap),G.hasOwnProperty("lineJoin")&&(this.lineJoin=G.lineJoin)}},f.prototype.strokeRect=function(N,I,R,D){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D))throw xr.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");g.call(this)||(this.beginPath(),this.rect(N,I,R,D),this.stroke())},f.prototype.clearRect=function(N,I,R,D){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D))throw xr.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(N,I,R,D))},f.prototype.save=function(N){N=typeof N!="boolean"||N;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("q");if(this.pdf.setPage(I),N){this.ctx.fontSize=this.pdf.internal.getFontSize();var D=new c(this.ctx);this.ctxStack.push(this.ctx),this.ctx=D}},f.prototype.restore=function(N){N=typeof N!="boolean"||N;for(var I=this.pdf.internal.getCurrentPageInfo().pageNumber,R=0;R<this.pdf.internal.getNumberOfPages();R++)this.pdf.setPage(R+1),this.pdf.internal.out("Q");this.pdf.setPage(I),N&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},f.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(N){var I,R,D,G;if(N.isCanvasGradient===!0&&(N=N.getColor()),!N)return{r:0,g:0,b:0,a:0,style:N};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(N))I=0,R=0,D=0,G=0;else{var ce=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(N);if(ce!==null)I=parseInt(ce[1]),R=parseInt(ce[2]),D=parseInt(ce[3]),G=1;else if((ce=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(N))!==null)I=parseInt(ce[1]),R=parseInt(ce[2]),D=parseInt(ce[3]),G=parseFloat(ce[4]);else{if(G=1,typeof N=="string"&&N.charAt(0)!=="#"){var he=new AO(N);N=he.ok?he.toHex():"#000000"}N.length===4?(I=N.substring(1,2),I+=I,R=N.substring(2,3),R+=R,D=N.substring(3,4),D+=D):(I=N.substring(1,3),R=N.substring(3,5),D=N.substring(5,7)),I=parseInt(I,16),R=parseInt(R,16),D=parseInt(D,16)}}return{r:I,g:R,b:D,a:G,style:N}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},g=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};f.prototype.fillText=function(N,I,R,D){if(isNaN(I)||isNaN(R)||typeof N!="string")throw xr.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(D=isNaN(D)?void 0:D,!h.call(this)){var G=ee(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;P.call(this,{text:N,x:I,y:R,scale:ce,angle:G,align:this.textAlign,maxWidth:D})}},f.prototype.strokeText=function(N,I,R,D){if(isNaN(I)||isNaN(R)||typeof N!="string")throw xr.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!g.call(this)){D=isNaN(D)?void 0:D;var G=ee(this.ctx.transform.rotation),ce=this.ctx.transform.scaleX;P.call(this,{text:N,x:I,y:R,scale:ce,renderingMode:"stroke",angle:G,align:this.textAlign,maxWidth:D})}},f.prototype.measureText=function(N){if(typeof N!="string")throw xr.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var I=this.pdf,R=this.pdf.internal.scaleFactor,D=I.internal.getFontSize(),G=I.getStringUnitWidth(N)*D/I.internal.scaleFactor,ce=function(he){var ne=(he=he||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ne}}),this};return new ce({width:G*=Math.round(96*R/72*1e4)/1e4})},f.prototype.scale=function(N,I){if(isNaN(N)||isNaN(I))throw xr.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var R=new l(N,0,0,I,0,0);this.ctx.transform=this.ctx.transform.multiply(R)},f.prototype.rotate=function(N){if(isNaN(N))throw xr.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var I=new l(Math.cos(N),Math.sin(N),-Math.sin(N),Math.cos(N),0,0);this.ctx.transform=this.ctx.transform.multiply(I)},f.prototype.translate=function(N,I){if(isNaN(N)||isNaN(I))throw xr.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var R=new l(1,0,0,1,N,I);this.ctx.transform=this.ctx.transform.multiply(R)},f.prototype.transform=function(N,I,R,D,G,ce){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D)||isNaN(G)||isNaN(ce))throw xr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var he=new l(N,I,R,D,G,ce);this.ctx.transform=this.ctx.transform.multiply(he)},f.prototype.setTransform=function(N,I,R,D,G,ce){N=isNaN(N)?1:N,I=isNaN(I)?0:I,R=isNaN(R)?0:R,D=isNaN(D)?1:D,G=isNaN(G)?0:G,ce=isNaN(ce)?0:ce,this.ctx.transform=new l(N,I,R,D,G,ce)};var p=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};f.prototype.drawImage=function(N,I,R,D,G,ce,he,ne,me){var Se=this.pdf.getImageProperties(N),ue=1,Ie=1,ge=1,_e=1;D!==void 0&&ne!==void 0&&(ge=ne/D,_e=me/G,ue=Se.width/D*ne/D,Ie=Se.height/G*me/G),ce===void 0&&(ce=I,he=R,I=0,R=0),D!==void 0&&ne===void 0&&(ne=D,me=G),D===void 0&&ne===void 0&&(ne=Se.width,me=Se.height);for(var oe,Re=this.ctx.transform.decompose(),et=ee(Re.rotate.shx),Be=new l,Ve=(Be=(Be=(Be=Be.multiply(Re.translate)).multiply(Re.skew)).multiply(Re.scale)).applyToRectangle(new s(ce-I*ge,he-R*_e,D*ue,G*Ie)),Je=m.call(this,Ve),Xe=[],ht=0;ht<Je.length;ht+=1)Xe.indexOf(Je[ht])===-1&&Xe.push(Je[ht]);if(w(Xe),this.autoPaging)for(var dt=Xe[0],xt=Xe[Xe.length-1],Et=dt;Et<xt+1;Et++){this.pdf.setPage(Et);var Ft=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Bt=Et===1?this.posY+this.margin[0]:this.margin[0],wt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Rt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],at=Et===1?0:wt+(Et-2)*Rt;if(this.ctx.clip_path.length!==0){var tn=this.path;oe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(oe,this.posX+this.margin[3],-at+Bt+this.ctx.prevPageLastElemOffset),_.call(this,"fill",!0),this.path=tn}var qt=JSON.parse(JSON.stringify(Ve));qt=x([qt],this.posX+this.margin[3],-at+Bt+this.ctx.prevPageLastElemOffset)[0];var Qn=(Et>dt||Et<xt)&&p.call(this);Qn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ft,Rt,null).clip().discardPath()),this.pdf.addImage(N,"JPEG",qt.x,qt.y,qt.w,qt.h,null,null,et),Qn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(N,"JPEG",Ve.x,Ve.y,Ve.w,Ve.h,null,null,et)};var m=function(N,I,R){var D=[];I=I||this.pdf.internal.pageSize.width,R=R||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var G=this.posY+this.ctx.prevPageLastElemOffset;switch(N.type){default:case"mt":case"lt":D.push(Math.floor((N.y+G)/R)+1);break;case"arc":D.push(Math.floor((N.y+G-N.radius)/R)+1),D.push(Math.floor((N.y+G+N.radius)/R)+1);break;case"qct":var ce=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x,N.y);D.push(Math.floor((ce.y+G)/R)+1),D.push(Math.floor((ce.y+ce.h+G)/R)+1);break;case"bct":var he=Q(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x2,N.y2,N.x,N.y);D.push(Math.floor((he.y+G)/R)+1),D.push(Math.floor((he.y+he.h+G)/R)+1);break;case"rect":D.push(Math.floor((N.y+G)/R)+1),D.push(Math.floor((N.y+N.h+G)/R)+1)}for(var ne=0;ne<D.length;ne+=1)for(;this.pdf.internal.getNumberOfPages()<D[ne];)y.call(this);return D},y=function(){var N=this.fillStyle,I=this.strokeStyle,R=this.font,D=this.lineCap,G=this.lineWidth,ce=this.lineJoin;this.pdf.addPage(),this.fillStyle=N,this.strokeStyle=I,this.font=R,this.lineCap=D,this.lineWidth=G,this.lineJoin=ce},x=function(N,I,R){for(var D=0;D<N.length;D++)switch(N[D].type){case"bct":N[D].x2+=I,N[D].y2+=R;case"qct":N[D].x1+=I,N[D].y1+=R;case"mt":case"lt":case"arc":default:N[D].x+=I,N[D].y+=R}return N},w=function(N){return N.sort((function(I,R){return I-R}))},T=function(N,I){for(var R,D,G=this.fillStyle,ce=this.strokeStyle,he=this.lineCap,ne=this.lineWidth,me=Math.abs(ne*this.ctx.transform.scaleX),Se=this.lineJoin,ue=JSON.parse(JSON.stringify(this.path)),Ie=JSON.parse(JSON.stringify(this.path)),ge=[],_e=0;_e<Ie.length;_e++)if(Ie[_e].x!==void 0)for(var oe=m.call(this,Ie[_e]),Re=0;Re<oe.length;Re+=1)ge.indexOf(oe[Re])===-1&&ge.push(oe[Re]);for(var et=0;et<ge.length;et++)for(;this.pdf.internal.getNumberOfPages()<ge[et];)y.call(this);if(w(ge),this.autoPaging)for(var Be=ge[0],Ve=ge[ge.length-1],Je=Be;Je<Ve+1;Je++){this.pdf.setPage(Je),this.fillStyle=G,this.strokeStyle=ce,this.lineCap=he,this.lineWidth=me,this.lineJoin=Se;var Xe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ht=Je===1?this.posY+this.margin[0]:this.margin[0],dt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],xt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Et=Je===1?0:dt+(Je-2)*xt;if(this.ctx.clip_path.length!==0){var Ft=this.path;R=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(R,this.posX+this.margin[3],-Et+ht+this.ctx.prevPageLastElemOffset),_.call(this,N,!0),this.path=Ft}if(D=JSON.parse(JSON.stringify(ue)),this.path=x(D,this.posX+this.margin[3],-Et+ht+this.ctx.prevPageLastElemOffset),I===!1||Je===0){var Bt=(Je>Be||Je<Ve)&&p.call(this);Bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xe,xt,null).clip().discardPath()),_.call(this,N,I),Bt&&this.pdf.restoreGraphicsState()}this.lineWidth=ne}else this.lineWidth=me,_.call(this,N,I),this.lineWidth=ne;this.path=ue},_=function(N,I){if((N!=="stroke"||I||!g.call(this))&&(N==="stroke"||I||!h.call(this))){for(var R,D,G=[],ce=this.path,he=0;he<ce.length;he++){var ne=ce[he];switch(ne.type){case"begin":G.push({begin:!0});break;case"close":G.push({close:!0});break;case"mt":G.push({start:ne,deltas:[],abs:[]});break;case"lt":var me=G.length;if(ce[he-1]&&!isNaN(ce[he-1].x)&&(R=[ne.x-ce[he-1].x,ne.y-ce[he-1].y],me>0)){for(;me>=0;me--)if(G[me-1].close!==!0&&G[me-1].begin!==!0){G[me-1].deltas.push(R),G[me-1].abs.push(ne);break}}break;case"bct":R=[ne.x1-ce[he-1].x,ne.y1-ce[he-1].y,ne.x2-ce[he-1].x,ne.y2-ce[he-1].y,ne.x-ce[he-1].x,ne.y-ce[he-1].y],G[G.length-1].deltas.push(R);break;case"qct":var Se=ce[he-1].x+2/3*(ne.x1-ce[he-1].x),ue=ce[he-1].y+2/3*(ne.y1-ce[he-1].y),Ie=ne.x+2/3*(ne.x1-ne.x),ge=ne.y+2/3*(ne.y1-ne.y),_e=ne.x,oe=ne.y;R=[Se-ce[he-1].x,ue-ce[he-1].y,Ie-ce[he-1].x,ge-ce[he-1].y,_e-ce[he-1].x,oe-ce[he-1].y],G[G.length-1].deltas.push(R);break;case"arc":G.push({deltas:[],abs:[],arc:!0}),Array.isArray(G[G.length-1].abs)&&G[G.length-1].abs.push(ne)}}D=I?null:N==="stroke"?"stroke":"fill";for(var Re=!1,et=0;et<G.length;et++)if(G[et].arc)for(var Be=G[et].abs,Ve=0;Ve<Be.length;Ve++){var Je=Be[Ve];Je.type==="arc"?k.call(this,Je.x,Je.y,Je.radius,Je.startAngle,Je.endAngle,Je.counterclockwise,void 0,I,!Re):M.call(this,Je.x,Je.y),Re=!0}else if(G[et].close===!0)this.pdf.internal.out("h"),Re=!1;else if(G[et].begin!==!0){var Xe=G[et].start.x,ht=G[et].start.y;q.call(this,G[et].deltas,Xe,ht),Re=!0}D&&L.call(this,D),I&&B.call(this)}},O=function(N){var I=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,R=I*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return N-R;case"top":return N+I-R;case"hanging":return N+I-2*R;case"middle":return N+I/2-R;case"ideographic":return N;case"alphabetic":default:return N}},A=function(N){return N+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};f.prototype.createLinearGradient=function(){var N=function(){};return N.colorStops=[],N.addColorStop=function(I,R){this.colorStops.push([I,R])},N.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},N.isCanvasGradient=!0,N},f.prototype.createPattern=function(){return this.createLinearGradient()},f.prototype.createRadialGradient=function(){return this.createLinearGradient()};var k=function(N,I,R,D,G,ce,he,ne,me){for(var Se=U.call(this,R,D,G,ce),ue=0;ue<Se.length;ue++){var Ie=Se[ue];ue===0&&(me?C.call(this,Ie.x1+N,Ie.y1+I):M.call(this,Ie.x1+N,Ie.y1+I)),J.call(this,N,I,Ie.x2,Ie.y2,Ie.x3,Ie.y3,Ie.x4,Ie.y4)}ne?B.call(this):L.call(this,he)},L=function(N){switch(N){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},B=function(){this.pdf.clip(),this.pdf.discardPath()},C=function(N,I){this.pdf.internal.out(r(N)+" "+n(I)+" m")},P=function(N){var I;switch(N.align){case"right":case"end":I="right";break;case"center":I="center";break;case"left":case"start":default:I="left"}var R=this.pdf.getTextDimensions(N.text),D=O.call(this,N.y),G=A.call(this,D)-R.h,ce=this.ctx.transform.applyToPoint(new o(N.x,D)),he=this.ctx.transform.decompose(),ne=new l;ne=(ne=(ne=ne.multiply(he.translate)).multiply(he.skew)).multiply(he.scale);for(var me,Se,ue,Ie=this.ctx.transform.applyToRectangle(new s(N.x,D,R.w,R.h)),ge=ne.applyToRectangle(new s(N.x,G,R.w,R.h)),_e=m.call(this,ge),oe=[],Re=0;Re<_e.length;Re+=1)oe.indexOf(_e[Re])===-1&&oe.push(_e[Re]);if(w(oe),this.autoPaging)for(var et=oe[0],Be=oe[oe.length-1],Ve=et;Ve<Be+1;Ve++){this.pdf.setPage(Ve);var Je=Ve===1?this.posY+this.margin[0]:this.margin[0],Xe=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ht=this.pdf.internal.pageSize.height-this.margin[2],dt=ht-this.margin[0],xt=this.pdf.internal.pageSize.width-this.margin[1],Et=xt-this.margin[3],Ft=Ve===1?0:Xe+(Ve-2)*dt;if(this.ctx.clip_path.length!==0){var Bt=this.path;me=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(me,this.posX+this.margin[3],-1*Ft+Je),_.call(this,"fill",!0),this.path=Bt}var wt=x([JSON.parse(JSON.stringify(ge))],this.posX+this.margin[3],-Ft+Je+this.ctx.prevPageLastElemOffset)[0];N.scale>=.01&&(Se=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Se*N.scale),ue=this.lineWidth,this.lineWidth=ue*N.scale);var Rt=this.autoPaging!=="text";if(Rt||wt.y+wt.h<=ht){if(Rt||wt.y>=Je&&wt.x<=xt){var at=Rt?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||xt-wt.x)[0],tn=x([JSON.parse(JSON.stringify(Ie))],this.posX+this.margin[3],-Ft+Je+this.ctx.prevPageLastElemOffset)[0],qt=Rt&&(Ve>et||Ve<Be)&&p.call(this);qt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Et,dt,null).clip().discardPath()),this.pdf.text(at,tn.x,tn.y,{angle:N.angle,align:I,renderingMode:N.renderingMode}),qt&&this.pdf.restoreGraphicsState()}}else wt.y<ht&&(this.ctx.prevPageLastElemOffset+=ht-wt.y);N.scale>=.01&&(this.pdf.setFontSize(Se),this.lineWidth=ue)}else N.scale>=.01&&(Se=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Se*N.scale),ue=this.lineWidth,this.lineWidth=ue*N.scale),this.pdf.text(N.text,ce.x+this.posX,ce.y+this.posY,{angle:N.angle,align:I,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(Se),this.lineWidth=ue)},M=function(N,I,R,D){R=R||0,D=D||0,this.pdf.internal.out(r(N+R)+" "+n(I+D)+" l")},q=function(N,I,R){return this.pdf.lines(N,I,R,null,null)},J=function(N,I,R,D,G,ce,he,ne){this.pdf.internal.out([t(i(R+N)),t(a(D+I)),t(i(G+N)),t(a(ce+I)),t(i(he+N)),t(a(ne+I)),"c"].join(" "))},U=function(N,I,R,D){for(var G=2*Math.PI,ce=Math.PI/2;I>R;)I-=G;var he=Math.abs(R-I);he<G&&D&&(he=G-he);for(var ne=[],me=D?-1:1,Se=I;he>1e-5;){var ue=Se+me*Math.min(he,ce);ne.push(H.call(this,N,Se,ue)),he-=Math.abs(ue-Se),Se=ue}return ne},H=function(N,I,R){var D=(R-I)/2,G=N*Math.cos(D),ce=N*Math.sin(D),he=G,ne=-ce,me=he*he+ne*ne,Se=me+he*G+ne*ce,ue=4/3*(Math.sqrt(2*me*Se)-Se)/(he*ce-ne*G),Ie=he-ue*ne,ge=ne+ue*he,_e=Ie,oe=-ge,Re=D+I,et=Math.cos(Re),Be=Math.sin(Re);return{x1:N*Math.cos(I),y1:N*Math.sin(I),x2:Ie*et-ge*Be,y2:Ie*Be+ge*et,x3:_e*et-oe*Be,y3:_e*Be+oe*et,x4:N*Math.cos(R),y4:N*Math.sin(R)}},ee=function(N){return 180*N/Math.PI},Z=function(N,I,R,D,G,ce){var he=N+.5*(R-N),ne=I+.5*(D-I),me=G+.5*(R-G),Se=ce+.5*(D-ce),ue=Math.min(N,G,he,me),Ie=Math.max(N,G,he,me),ge=Math.min(I,ce,ne,Se),_e=Math.max(I,ce,ne,Se);return new s(ue,ge,Ie-ue,_e-ge)},Q=function(N,I,R,D,G,ce,he,ne){var me,Se,ue,Ie,ge,_e,oe,Re,et,Be,Ve,Je,Xe,ht,dt=R-N,xt=D-I,Et=G-R,Ft=ce-D,Bt=he-G,wt=ne-ce;for(Se=0;Se<41;Se++)et=(oe=(ue=N+(me=Se/40)*dt)+me*((ge=R+me*Et)-ue))+me*(ge+me*(G+me*Bt-ge)-oe),Be=(Re=(Ie=I+me*xt)+me*((_e=D+me*Ft)-Ie))+me*(_e+me*(ce+me*wt-_e)-Re),Se==0?(Ve=et,Je=Be,Xe=et,ht=Be):(Ve=Math.min(Ve,et),Je=Math.min(Je,Be),Xe=Math.max(Xe,et),ht=Math.max(ht,Be));return new s(Math.round(Ve),Math.round(Je),Math.round(Xe-Ve),Math.round(ht-Je))},le=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var N,I,R=(N=this.ctx.lineDash,I=this.ctx.lineDashOffset,JSON.stringify({lineDash:N,lineDashOffset:I}));this.prevLineDash!==R&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=R)}}})(vt.API),(function(e){var t=function(a){var o,s,l,u,c,f,d,h,g,p;for(s=[],l=0,u=(a+=o="\0\0\0\0".slice(a.length%4||4)).length;u>l;l+=4)(c=(a.charCodeAt(l)<<24)+(a.charCodeAt(l+1)<<16)+(a.charCodeAt(l+2)<<8)+a.charCodeAt(l+3))!==0?(f=(c=((c=((c=((c=(c-(p=c%85))/85)-(g=c%85))/85)-(h=c%85))/85)-(d=c%85))/85)%85,s.push(f+33,d+33,h+33,g+33,p+33)):s.push(122);return(function(m,y){for(var x=y;x>0;x--)m.pop()})(s,o.length),String.fromCharCode.apply(String,s)+"~>"},r=function(a){var o,s,l,u,c,f=String,d="length",h=255,g="charCodeAt",p="slice",m="replace";for(a[p](-2),a=a[p](0,-2)[m](/\s/g,"")[m]("z","!!!!!"),l=[],u=0,c=(a+=o="uuuuu"[p](a[d]%5||5))[d];c>u;u+=5)s=52200625*(a[g](u)-33)+614125*(a[g](u+1)-33)+7225*(a[g](u+2)-33)+85*(a[g](u+3)-33)+(a[g](u+4)-33),l.push(h&s>>24,h&s>>16,h&s>>8,h&s);return(function(y,x){for(var w=x;w>0;w--)y.pop()})(l,o[d]),f.fromCharCode.apply(f,l)},n=function(a){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((a=a.replace(/\s/g,"")).indexOf(">")!==-1&&(a=a.substr(0,a.indexOf(">"))),a.length%2&&(a+="0"),o.test(a)===!1)return"";for(var s="",l=0;l<a.length;l+=2)s+=String.fromCharCode("0x"+(a[l]+a[l+1]));return s},i=function(a){for(var o=new Uint8Array(a.length),s=a.length;s--;)o[s]=a.charCodeAt(s);return a=(o=a2(o)).reduce((function(l,u){return l+String.fromCharCode(u)}),"")};e.processDataByFilters=function(a,o){var s=0,l=a||"",u=[];for(typeof(o=o||[])=="string"&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),u.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),u.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),u.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(c){return("0"+c.charCodeAt().toString(16)).slice(-2)})).join("")+">",u.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),u.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:u.reverse().join(" ")}}})(vt.API),(function(e){e.loadFile=function(t,r,n){return(function(i,a,o){a=a!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=(function(l,u,c){var f=new XMLHttpRequest,d=0,h=function(g){var p=g.length,m=[],y=String.fromCharCode;for(d=0;d<p;d+=1)m.push(y(255&g.charCodeAt(d)));return m.join("")};if(f.open("GET",l,!u),f.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(f.onload=function(){f.status===200?c(h(this.responseText)):c(void 0)}),f.send(null),u&&f.status===200)return h(f.responseText)})(i,a,o)}catch{}return s})(t,r,n)},e.loadImageFile=e.loadFile})(vt.API),(function(e){function t(){return(_t.html2canvas?Promise.resolve(_t.html2canvas):Promise.resolve().then(()=>require("./html2canvas.esm-C4Mnoizn.js"))).catch((function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))})).then((function(o){return o.default?o.default:o}))}function r(){return(_t.DOMPurify?Promise.resolve(_t.DOMPurify):Promise.resolve().then(()=>require("./purify.es-B0uier8o.js"))).catch((function(o){return Promise.reject(new Error("Could not load dompurify: "+o))})).then((function(o){return o.default?o.default:o}))}var n=function(o){var s=ir(o);return s==="undefined"?"undefined":s==="string"||o instanceof String?"string":s==="number"||o instanceof Number?"number":s==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":s==="object"?"object":"unknown"},i=function(o,s){var l=document.createElement(o);for(var u in s.className&&(l.className=s.className),s.innerHTML&&s.dompurify&&(l.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)l.style[u]=s.style[u];return l},a=function o(s){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),u=o.convert(Promise.resolve(),l);return u=(u=u.setProgress(1,o,1,[o])).set(s)};(a.prototype=Object.create(Promise.prototype)).constructor=a,a.convert=function(o,s){return o.__proto__=s||a.prototype,o},a.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},a.prototype.from=function(o,s){return this.then((function(){switch(s=s||(function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(o)){case"string":return this.then(r).then((function(l){return this.set({src:i("div",{innerHTML:o,dompurify:l})})}));case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}}))},a.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},a.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=(function l(u,c){for(var f=u.nodeType===3?document.createTextNode(u.nodeValue):u.cloneNode(!1),d=u.firstChild;d;d=d.nextSibling)c!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||f.appendChild(l(d,c));return u.nodeType===1&&(u.nodeName==="CANVAS"?(f.width=u.width,f.height=u.height,f.getContext("2d").drawImage(u,0,0)):u.nodeName!=="TEXTAREA"&&u.nodeName!=="SELECT"||(f.value=u.value),f.addEventListener("load",(function(){f.scrollTop=u.scrollTop,f.scrollLeft=u.scrollLeft}),!0)),f})(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=i("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=i("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(i("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},a.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then((function(s){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,s(this.prop.container,l)})).then((function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)}))},a.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then((function(s){var l=this.opt.jsPDF,u=this.opt.fontFaces,c=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,f=Object.assign({async:!0,allowTaint:!0,scale:c,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete f.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=u,u)for(var d=0;d<u.length;++d){var h=u[d],g=h.src.find((function(p){return p.format==="truetype"}));g&&l.addFont(g.url,h.ref.name,h.ref.style)}return f.windowHeight=f.windowHeight||0,f.windowHeight=f.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):f.windowHeight,l.context2d.save(!0),s(this.prop.container,f)})).then((function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)}))},a.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o}))},a.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},a.prototype.output=function(o,s,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,s):this.outputPdf(o,s)},a.prototype.outputPdf=function(o,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(o,s)}))},a.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}}))},a.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},a.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},a.prototype.set=function(o){if(n(o)!=="object")return this;var s=Object.keys(o||{}).map((function(l){if(l in a.template.prop)return function(){this.prop[l]=o[l]};switch(l){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[l]=o[l]}}}),this);return this.then((function(){return this.thenList(s)}))},a.prototype.get=function(o,s){return this.then((function(){var l=o in a.template.prop?this.prop[o]:this.opt[o];return s?s(l):l}))},a.prototype.setMargin=function(o){return this.then((function(){switch(n(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o})).then(this.setPageSize)},a.prototype.setPageSize=function(o){function s(l,u){return Math.floor(l*u/72*96)}return this.then((function(){(o=o||vt.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:s(o.inner.width,o.k),height:s(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o}))},a.prototype.setProgress=function(o,s,l,u){return o!=null&&(this.progress.val=o),s!=null&&(this.progress.state=s),l!=null&&(this.progress.n=l),u!=null&&(this.progress.stack=u),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(o,s,l,u){return this.setProgress(o?this.progress.val+o:null,s||null,l?this.progress.n+l:null,u?this.progress.stack.concat(u):null)},a.prototype.then=function(o,s){var l=this;return this.thenCore(o,s,(function(u,c){return l.updateProgress(null,null,1,[u]),Promise.prototype.then.call(this,(function(f){return l.updateProgress(null,u),f})).then(u,c).then((function(f){return l.updateProgress(1),f}))}))},a.prototype.thenCore=function(o,s,l){l=l||Promise.prototype.then,o&&(o=o.bind(this)),s&&(s=s.bind(this));var u=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:a.convert(Object.assign({},this),Promise.prototype),c=l.call(u,o,s);return a.convert(c,this.__proto__)},a.prototype.thenExternal=function(o,s){return Promise.prototype.then.call(this,o,s)},a.prototype.thenList=function(o){var s=this;return o.forEach((function(l){s=s.thenCore(l)})),s},a.prototype.catch=function(o){o&&(o=o.bind(this));var s=Promise.prototype.catch.call(this,o);return a.convert(s,this)},a.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},a.prototype.error=function(o){return this.then((function(){throw new Error(o)}))},a.prototype.using=a.prototype.set,a.prototype.saveAs=a.prototype.save,a.prototype.export=a.prototype.output,a.prototype.run=a.prototype.then,vt.getPageSize=function(o,s,l){if(ir(o)==="object"){var u=o;o=u.orientation,s=u.unit||s,l=u.format||l}s=s||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var c,f=(""+l).toLowerCase(),d={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(s){case"pt":c=1;break;case"mm":c=72/25.4;break;case"cm":c=72/2.54;break;case"in":c=72;break;case"px":c=.75;break;case"pc":case"em":c=12;break;case"ex":c=6;break;default:throw"Invalid unit: "+s}var h,g=0,p=0;if(d.hasOwnProperty(f))g=d[f][1]/c,p=d[f][0]/c;else try{g=l[1],p=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",p>g&&(h=p,p=g,g=h);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",g>p&&(h=p,p=g,g=h)}return{width:p,height:g,unit:s,k:c,orientation:o}},e.html=function(o,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(f2):null;var l=new a(s);return s.worker?l:l.from(o).doCallback()}})(vt.API),vt.API.addJS=function(e){return ow=e,this.internal.events.subscribe("postPutResources",(function(){s0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(s0+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),aw=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+ow+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){s0!==void 0&&aw!==void 0&&this.internal.out("/Names <</JavaScript "+s0+" 0 R>>")})),this},(function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var i=r.outline.render().split(/\r\n/),a=0;a<i.length;a++){var o=i[a],s=n.exec(o);if(s!=null){var l=s[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(o)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,c=[];for(a=0;a<u;a++){var f=r.internal.newObject();c.push(f);var d=r.internal.getPageInfo(a+1);r.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var h=r.internal.newObject();for(r.internal.write("<< /Names [ "),a=0;a<c.length;a++)r.internal.write("(page_"+(a+1)+")"+c[a]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+h+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,i,a){var o={title:i,options:a,children:[]};return n==null&&(n=this.root),n.children.push(o),o},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var i=0;i<n.children.length;i++)this.genIds_r(n.children[i])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var i=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<n.children.length;a++){var o=n.children[a];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(n)),a>0&&this.line("/Prev "+this.makeRef(n.children[a-1])),a<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[a+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var l=r.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+i(0)+" 0]")}this.objEnd()}for(var u=0;u<n.children.length;u++)this.renderItems(n.children[u])},r.outline.line=function(n){this.ctx.val+=n+`\r
120
+ `},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
121
+ `+n.id+` 0 obj\r
122
+ <<\r
123
+ `},r.outline.objEnd=function(){this.ctx.val+=`>> \r
124
+ endobj\r
125
+ `},r.outline.count_r=function(n,i){for(var a=0;a<i.children.length;a++)n.count++,this.count_r(n,i.children[a]);return n.count}}])})(vt.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,i,a,o,s){var l,u=this.decode.DCT_DECODE,c=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=o||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,(l=(function(f){for(var d,h=256*f.charCodeAt(4)+f.charCodeAt(5),g=f.length,p={width:0,height:0,numcomponents:1},m=4;m<g;m+=2){if(m+=h,t.indexOf(f.charCodeAt(m+1))!==-1){d=256*f.charCodeAt(m+5)+f.charCodeAt(m+6),p={width:256*f.charCodeAt(m+7)+f.charCodeAt(m+8),height:d,numcomponents:f.charCodeAt(m+9)};break}h=256*f.charCodeAt(m+2)+f.charCodeAt(m+3)}return p})(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}c={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:u,index:n,alias:i}}return c}})(vt.API);var Ll,l0,sw,lw,uw,Gk=(function(){var e,t,r;function n(a){var o,s,l,u,c,f,d,h,g,p,m,y,x,w;for(this.data=a,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},f=null;;){switch(o=this.readUInt32(),g=(function(){var T,_;for(_=[],T=0;T<4;++T)_.push(String.fromCharCode(this.data[this.pos++]));return _}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":f&&this.animation.frames.push(f),this.pos+=4,f={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},c=this.readUInt16(),u=this.readUInt16()||100,f.delay=1e3*c/u,f.disposeOp=this.data[this.pos++],f.blendOp=this.data[this.pos++],f.data=[];break;case"IDAT":case"fdAT":for(g==="fdAT"&&(this.pos+=4,o-=4),a=(f!=null?f.data:void 0)||this.imgData,y=0;0<=o?y<o:y>o;0<=o?++y:--y)a.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((p=l-this.transparency.indexed.length)>0)for(x=0;0<=p?x<p:x>p;0<=p?++x:--x)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":d=(m=this.read(o)).indexOf(0),h=String.fromCharCode.apply(String,m.slice(0,d)),this.text[h]=String.fromCharCode.apply(String,m.slice(d+1));break;case"IEND":return f&&this.animation.frames.push(f),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(w=this.colorType)===4||w===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(a){var o,s;for(s=[],o=0;0<=a?o<a:o>a;0<=a?++o:--o)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(a){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),l=0,u=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function c(f,d,h,g){var p,m,y,x,w,T,_,O,A,k,L,B,C,P,M,q,J,U,H,ee,Z,Q=Math.ceil((u.width-f)/h),le=Math.ceil((u.height-d)/g),N=u.width==Q&&u.height==le;for(P=o*Q,B=N?s:new Uint8Array(P*le),T=a.length,C=0,m=0;C<le&&l<T;){switch(a[l++]){case 0:for(x=J=0;J<P;x=J+=1)B[m++]=a[l++];break;case 1:for(x=U=0;U<P;x=U+=1)p=a[l++],w=x<o?0:B[m-o],B[m++]=(p+w)%256;break;case 2:for(x=H=0;H<P;x=H+=1)p=a[l++],y=(x-x%o)/o,M=C&&B[(C-1)*P+y*o+x%o],B[m++]=(M+p)%256;break;case 3:for(x=ee=0;ee<P;x=ee+=1)p=a[l++],y=(x-x%o)/o,w=x<o?0:B[m-o],M=C&&B[(C-1)*P+y*o+x%o],B[m++]=(p+Math.floor((w+M)/2))%256;break;case 4:for(x=Z=0;Z<P;x=Z+=1)p=a[l++],y=(x-x%o)/o,w=x<o?0:B[m-o],C===0?M=q=0:(M=B[(C-1)*P+y*o+x%o],q=y&&B[(C-1)*P+(y-1)*o+x%o]),_=w+M-q,O=Math.abs(_-w),k=Math.abs(_-M),L=Math.abs(_-q),A=O<=k&&O<=L?w:k<=L?M:q,B[m++]=(p+A)%256;break;default:throw new Error("Invalid filter algorithm: "+a[l-1])}if(!N){var I=((d+C*g)*u.width+f)*o,R=C*P;for(x=0;x<Q;x+=1){for(var D=0;D<o;D+=1)s[I++]=B[R++];I+=(h-1)*o}}C++}}return a=Sk(a),u.interlaceMethod==1?(c(0,0,8,8),c(4,0,8,8),c(0,4,4,8),c(2,0,4,4),c(0,2,2,4),c(1,0,2,2),c(0,1,1,2)):c(0,0,1,1),s},n.prototype.decodePalette=function(){var a,o,s,l,u,c,f,d,h;for(s=this.palette,c=this.transparency.indexed||[],u=new Uint8Array((c.length||0)+s.length),l=0,a=0,o=f=0,d=s.length;f<d;o=f+=3)u[l++]=s[o],u[l++]=s[o+1],u[l++]=s[o+2],u[l++]=(h=c[a++])!=null?h:255;return u},n.prototype.copyToImageData=function(a,o){var s,l,u,c,f,d,h,g,p,m,y;if(l=this.colors,p=null,s=this.hasAlphaChannel,this.palette.length&&(p=(y=this._decodedPalette)!=null?y:this._decodedPalette=this.decodePalette(),l=4,s=!0),g=(u=a.data||a).length,f=p||o,c=d=0,l===1)for(;c<g;)h=p?4*o[c/4]:d,m=f[h++],u[c++]=m,u[c++]=m,u[c++]=m,u[c++]=s?f[h++]:255,d=h;else for(;c<g;)h=p?4*o[c/4]:d,u[c++]=f[h++],u[c++]=f[h++],u[c++]=f[h++],u[c++]=s?f[h++]:255,d=h},n.prototype.decode=function(){var a;return a=new Uint8Array(this.width*this.height*4),this.copyToImageData(a,this.decodePixels()),a};var i=function(){if(Object.prototype.toString.call(_t)==="[object Window]"){try{t=_t.document.createElement("canvas"),r=t.getContext("2d")}catch{return!1}return!0}return!1};return i(),e=function(a){var o;if(i()===!0)return r.width=a.width,r.height=a.height,r.clearRect(0,0,a.width,a.height),r.putImageData(a,0,0),(o=new Image).src=t.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(a){var o,s,l,u,c,f,d,h;if(this.animation){for(h=[],s=c=0,f=(d=this.animation.frames).length;c<f;s=++c)o=d[s],l=a.createImageData(o.width,o.height),u=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(l,u),o.imageData=l,h.push(o.image=e(l));return h}},n.prototype.renderFrame=function(a,o){var s,l,u;return s=(l=this.animation.frames)[o],u=l[o-1],o===0&&a.clearRect(0,0,this.width,this.height),(u!=null?u.disposeOp:void 0)===1?a.clearRect(u.xOffset,u.yOffset,u.width,u.height):(u!=null?u.disposeOp:void 0)===2&&a.putImageData(u.imageData,u.xOffset,u.yOffset),s.blendOp===0&&a.clearRect(s.xOffset,s.yOffset,s.width,s.height),a.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(a){var o,s,l,u,c,f,d=this;return s=0,f=this.animation,u=f.numFrames,l=f.frames,c=f.numPlays,(o=function(){var h,g;if(h=s++%u,g=l[h],d.renderFrame(a,h),u>1&&s/u<c)return d.animation._timeout=setTimeout(o,g.delay)})()},n.prototype.stopAnimation=function(){var a;return clearTimeout((a=this.animation)!=null?a._timeout:void 0)},n.prototype.render=function(a){var o,s;return a._png&&a._png.stopAnimation(),a._png=this,a.width=this.width,a.height=this.height,o=a.getContext("2d"),this.animation?(this.decodeFrames(o),this.animate(o)):(s=o.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),o.putImageData(s,0,0))},n})();/**
126
+ * @license
127
+ *
128
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
129
+ *
130
+ * Permission is hereby granted, free of charge, to any person obtaining
131
+ * a copy of this software and associated documentation files (the
132
+ * "Software"), to deal in the Software without restriction, including
133
+ * without limitation the rights to use, copy, modify, merge, publish,
134
+ * distribute, sublicense, and/or sell copies of the Software, and to
135
+ * permit persons to whom the Software is furnished to do so, subject to
136
+ * the following conditions:
137
+ *
138
+ * The above copyright notice and this permission notice shall be
139
+ * included in all copies or substantial portions of the Software.
140
+ *
141
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
142
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
143
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
144
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
145
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
146
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
147
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
148
+ * ====================================================================
149
+ *//**
150
+ * @license
151
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
152
+ *
153
+ * https://github.com/deanm/omggif
154
+ *
155
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
156
+ * of this software and associated documentation files (the "Software"), to
157
+ * deal in the Software without restriction, including without limitation the
158
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
159
+ * sell copies of the Software, and to permit persons to whom the Software is
160
+ * furnished to do so, subject to the following conditions:
161
+ *
162
+ * The above copyright notice and this permission notice shall be included in
163
+ * all copies or substantial portions of the Software.
164
+ *
165
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
166
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
167
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
168
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
169
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
170
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
171
+ * IN THE SOFTWARE.
172
+ *
173
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
174
+ * including animation and compression. It does not rely on any specific
175
+ * underlying system, so should run in the browser, Node, or Plask.
176
+ */function Vk(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,i=e[t++],a=i>>7,o=1<<(7&i)+1;e[t++],e[t++];var s=null,l=null;a&&(s=t,l=o,t+=3*o);var u=!0,c=[],f=0,d=null,h=0,g=null;for(this.width=r,this.height=n;u&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,g=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((C=e[t++])>=0))throw Error("Invalid block size");if(C===0)break;t+=C}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var p=e[t++];f=e[t++]|e[t++]<<8,d=e[t++],(1&p)==0&&(d=null),h=p>>2&7,t++;break;case 254:for(;;){if(!((C=e[t++])>=0))throw Error("Invalid block size");if(C===0)break;t+=C}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,x=e[t++]|e[t++]<<8,w=e[t++]|e[t++]<<8,T=e[t++],_=T>>6&1,O=1<<(7&T)+1,A=s,k=l,L=!1;T>>7&&(L=!0,A=t,k=O,t+=3*O);var B=t;for(t++;;){var C;if(!((C=e[t++])>=0))throw Error("Invalid block size");if(C===0)break;t+=C}c.push({x:m,y,width:x,height:w,has_local_palette:L,palette_offset:A,palette_size:k,data_offset:B,data_length:t-B,transparent_index:d,interlaced:!!_,delay:f,disposal:h});break;case 59:u=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return c.length},this.loopCount=function(){return g},this.frameInfo=function(P){if(P<0||P>=c.length)throw new Error("Frame index out of range.");return c[P]},this.decodeAndBlitFrameBGRA=function(P,M){var q=this.frameInfo(P),J=q.width*q.height,U=new Uint8Array(J);cw(e,q.data_offset,U,J);var H=q.palette_offset,ee=q.transparent_index;ee===null&&(ee=256);var Z=q.width,Q=r-Z,le=Z,N=4*(q.y*r+q.x),I=4*((q.y+q.height)*r+q.x),R=N,D=4*Q;q.interlaced===!0&&(D+=4*r*7);for(var G=8,ce=0,he=U.length;ce<he;++ce){var ne=U[ce];if(le===0&&(le=Z,(R+=D)>=I&&(D=4*Q+4*r*(G-1),R=N+(Z+Q)*(G<<1),G>>=1)),ne===ee)R+=4;else{var me=e[H+3*ne],Se=e[H+3*ne+1],ue=e[H+3*ne+2];M[R++]=ue,M[R++]=Se,M[R++]=me,M[R++]=255}--le}},this.decodeAndBlitFrameRGBA=function(P,M){var q=this.frameInfo(P),J=q.width*q.height,U=new Uint8Array(J);cw(e,q.data_offset,U,J);var H=q.palette_offset,ee=q.transparent_index;ee===null&&(ee=256);var Z=q.width,Q=r-Z,le=Z,N=4*(q.y*r+q.x),I=4*((q.y+q.height)*r+q.x),R=N,D=4*Q;q.interlaced===!0&&(D+=4*r*7);for(var G=8,ce=0,he=U.length;ce<he;++ce){var ne=U[ce];if(le===0&&(le=Z,(R+=D)>=I&&(D=4*Q+4*r*(G-1),R=N+(Z+Q)*(G<<1),G>>=1)),ne===ee)R+=4;else{var me=e[H+3*ne],Se=e[H+3*ne+1],ue=e[H+3*ne+2];M[R++]=me,M[R++]=Se,M[R++]=ue,M[R++]=255}--le}}}function cw(e,t,r,n){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,l=i+1,u=(1<<l)-1,c=0,f=0,d=0,h=e[t++],g=new Int32Array(4096),p=null;;){for(;c<16&&h!==0;)f|=e[t++]<<c,c+=8,h===1?h=e[t++]:--h;if(c<l)break;var m=f&u;if(f>>=l,c-=l,m!==a){if(m===o)break;for(var y=m<s?m:p,x=0,w=y;w>a;)w=g[w]>>8,++x;var T=w;if(d+x+(y!==m?1:0)>n)return void xr.log("Warning, gif stream longer than expected.");r[d++]=T;var _=d+=x;for(y!==m&&(r[d++]=T),w=y;x--;)w=g[w],r[--_]=255&w,w>>=8;p!==null&&s<4096&&(g[s++]=p<<8|T,s>=u+1&&l<12&&(++l,u=u<<1|1)),p=m}else s=o+1,u=(1<<(l=i+1))-1,p=null}return d!==n&&xr.log("Warning, gif stream shorter than expected."),r}/**
177
+ * @license
178
+ Copyright (c) 2008, Adobe Systems Incorporated
179
+ All rights reserved.
180
+
181
+ Redistribution and use in source and binary forms, with or without
182
+ modification, are permitted provided that the following conditions are
183
+ met:
184
+
185
+ * Redistributions of source code must retain the above copyright notice,
186
+ this list of conditions and the following disclaimer.
187
+
188
+ * Redistributions in binary form must reproduce the above copyright
189
+ notice, this list of conditions and the following disclaimer in the
190
+ documentation and/or other materials provided with the distribution.
191
+
192
+ * Neither the name of Adobe Systems Incorporated nor the names of its
193
+ contributors may be used to endorse or promote products derived from
194
+ this software without specific prior written permission.
195
+
196
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
197
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
198
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
199
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
200
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
201
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
202
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
203
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
204
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
205
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
206
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
207
+ */function R1(e){var t,r,n,i,a,o=Math.floor,s=new Array(64),l=new Array(64),u=new Array(64),c=new Array(64),f=new Array(65535),d=new Array(65535),h=new Array(64),g=new Array(64),p=[],m=0,y=7,x=new Array(64),w=new Array(64),T=new Array(64),_=new Array(256),O=new Array(2048),A=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],k=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],L=[0,1,2,3,4,5,6,7,8,9,10,11],B=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],C=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],P=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],M=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],J=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function U(N,I){for(var R=0,D=0,G=new Array,ce=1;ce<=16;ce++){for(var he=1;he<=N[ce];he++)G[I[D]]=[],G[I[D]][0]=R,G[I[D]][1]=ce,D++,R++;R*=2}return G}function H(N){for(var I=N[0],R=N[1]-1;R>=0;)I&1<<R&&(m|=1<<y),R--,--y<0&&(m==255?(ee(255),ee(0)):ee(m),y=7,m=0)}function ee(N){p.push(N)}function Z(N){ee(N>>8&255),ee(255&N)}function Q(N,I,R,D,G){for(var ce,he=G[0],ne=G[240],me=(function(Be,Ve){var Je,Xe,ht,dt,xt,Et,Ft,Bt,wt,Rt,at=0;for(wt=0;wt<8;++wt){Je=Be[at],Xe=Be[at+1],ht=Be[at+2],dt=Be[at+3],xt=Be[at+4],Et=Be[at+5],Ft=Be[at+6];var tn=Je+(Bt=Be[at+7]),qt=Je-Bt,Qn=Xe+Ft,Xt=Xe-Ft,wr=ht+Et,Ci=ht-Et,zt=dt+xt,Aa=dt-xt,Tr=tn+zt,di=tn-zt,Zi=Qn+wr,gr=Qn-wr;Be[at]=Tr+Zi,Be[at+4]=Tr-Zi;var At=.707106781*(gr+di);Be[at+2]=di+At,Be[at+6]=di-At;var Ht=.382683433*((Tr=Aa+Ci)-(gr=Xt+qt)),Ha=.5411961*Tr+Ht,rn=1.306562965*gr+Ht,ji=.707106781*(Zi=Ci+Xt),ki=qt+ji,gt=qt-ji;Be[at+5]=gt+Ha,Be[at+3]=gt-Ha,Be[at+1]=ki+rn,Be[at+7]=ki-rn,at+=8}for(at=0,wt=0;wt<8;++wt){Je=Be[at],Xe=Be[at+8],ht=Be[at+16],dt=Be[at+24],xt=Be[at+32],Et=Be[at+40],Ft=Be[at+48];var pi=Je+(Bt=Be[at+56]),ei=Je-Bt,Nn=Xe+Ft,Br=Xe-Ft,kr=ht+Et,Y=ht-Et,de=dt+xt,ie=dt-xt,ae=pi+de,fe=pi-de,pe=Nn+kr,Oe=Nn-kr;Be[at]=ae+pe,Be[at+32]=ae-pe;var ke=.707106781*(Oe+fe);Be[at+16]=fe+ke,Be[at+48]=fe-ke;var Ee=.382683433*((ae=ie+Y)-(Oe=Br+ei)),Ce=.5411961*ae+Ee,je=1.306562965*Oe+Ee,Ge=.707106781*(pe=Y+Br),Ze=ei+Ge,st=ei-Ge;Be[at+40]=st+Ce,Be[at+24]=st-Ce,Be[at+8]=Ze+je,Be[at+56]=Ze-je,at++}for(wt=0;wt<64;++wt)Rt=Be[wt]*Ve[wt],h[wt]=Rt>0?Rt+.5|0:Rt-.5|0;return h})(N,I),Se=0;Se<64;++Se)g[A[Se]]=me[Se];var ue=g[0]-R;R=g[0],ue==0?H(D[0]):(H(D[d[ce=32767+ue]]),H(f[ce]));for(var Ie=63;Ie>0&&g[Ie]==0;)Ie--;if(Ie==0)return H(he),R;for(var ge,_e=1;_e<=Ie;){for(var oe=_e;g[_e]==0&&_e<=Ie;)++_e;var Re=_e-oe;if(Re>=16){ge=Re>>4;for(var et=1;et<=ge;++et)H(ne);Re&=15}ce=32767+g[_e],H(G[(Re<<4)+d[ce]]),H(f[ce]),_e++}return Ie!=63&&H(he),R}function le(N){N=Math.min(Math.max(N,1),100),a!=N&&((function(I){for(var R=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],D=0;D<64;D++){var G=o((R[D]*I+50)/100);G=Math.min(Math.max(G,1),255),s[A[D]]=G}for(var ce=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],he=0;he<64;he++){var ne=o((ce[he]*I+50)/100);ne=Math.min(Math.max(ne,1),255),l[A[he]]=ne}for(var me=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Se=0,ue=0;ue<8;ue++)for(var Ie=0;Ie<8;Ie++)u[Se]=1/(s[A[Se]]*me[ue]*me[Ie]*8),c[Se]=1/(l[A[Se]]*me[ue]*me[Ie]*8),Se++})(N<50?Math.floor(5e3/N):Math.floor(200-2*N)),a=N)}this.encode=function(N,I){I&&le(I),p=new Array,m=0,y=7,Z(65496),Z(65504),Z(16),ee(74),ee(70),ee(73),ee(70),ee(0),ee(1),ee(1),ee(0),Z(1),Z(1),ee(0),ee(0),(function(){Z(65499),Z(132),ee(0);for(var Xe=0;Xe<64;Xe++)ee(s[Xe]);ee(1);for(var ht=0;ht<64;ht++)ee(l[ht])})(),(function(Xe,ht){Z(65472),Z(17),ee(8),Z(ht),Z(Xe),ee(3),ee(1),ee(17),ee(0),ee(2),ee(17),ee(1),ee(3),ee(17),ee(1)})(N.width,N.height),(function(){Z(65476),Z(418),ee(0);for(var Xe=0;Xe<16;Xe++)ee(k[Xe+1]);for(var ht=0;ht<=11;ht++)ee(L[ht]);ee(16);for(var dt=0;dt<16;dt++)ee(B[dt+1]);for(var xt=0;xt<=161;xt++)ee(C[xt]);ee(1);for(var Et=0;Et<16;Et++)ee(P[Et+1]);for(var Ft=0;Ft<=11;Ft++)ee(M[Ft]);ee(17);for(var Bt=0;Bt<16;Bt++)ee(q[Bt+1]);for(var wt=0;wt<=161;wt++)ee(J[wt])})(),Z(65498),Z(12),ee(3),ee(1),ee(0),ee(2),ee(17),ee(3),ee(17),ee(0),ee(63),ee(0);var R=0,D=0,G=0;m=0,y=7,this.encode.displayName="_encode_";for(var ce,he,ne,me,Se,ue,Ie,ge,_e,oe=N.data,Re=N.width,et=N.height,Be=4*Re,Ve=0;Ve<et;){for(ce=0;ce<Be;){for(Se=Be*Ve+ce,Ie=-1,ge=0,_e=0;_e<64;_e++)ue=Se+(ge=_e>>3)*Be+(Ie=4*(7&_e)),Ve+ge>=et&&(ue-=Be*(Ve+1+ge-et)),ce+Ie>=Be&&(ue-=ce+Ie-Be+4),he=oe[ue++],ne=oe[ue++],me=oe[ue++],x[_e]=(O[he]+O[ne+256>>0]+O[me+512>>0]>>16)-128,w[_e]=(O[he+768>>0]+O[ne+1024>>0]+O[me+1280>>0]>>16)-128,T[_e]=(O[he+1280>>0]+O[ne+1536>>0]+O[me+1792>>0]>>16)-128;R=Q(x,u,R,t,n),D=Q(w,c,D,r,i),G=Q(T,c,G,r,i),ce+=32}Ve+=8}if(y>=0){var Je=[];Je[1]=y+1,Je[0]=(1<<y+1)-1,H(Je)}return Z(65497),new Uint8Array(p)},e=e||50,(function(){for(var N=String.fromCharCode,I=0;I<256;I++)_[I]=N(I)})(),t=U(k,L),r=U(P,M),n=U(B,C),i=U(q,J),(function(){for(var N=1,I=2,R=1;R<=15;R++){for(var D=N;D<I;D++)d[32767+D]=R,f[32767+D]=[],f[32767+D][1]=R,f[32767+D][0]=D;for(var G=-(I-1);G<=-N;G++)d[32767+G]=R,f[32767+G]=[],f[32767+G][1]=R,f[32767+G][0]=I-1+G;N<<=1,I<<=1}})(),(function(){for(var N=0;N<256;N++)O[N]=19595*N,O[N+256>>0]=38470*N,O[N+512>>0]=7471*N+32768,O[N+768>>0]=-11059*N,O[N+1024>>0]=-21709*N,O[N+1280>>0]=32768*N+8421375,O[N+1536>>0]=-27439*N,O[N+1792>>0]=-5329*N})(),le(e)}/**
208
+ * @license
209
+ * Copyright (c) 2017 Aras Abbasi
210
+ *
211
+ * Licensed under the MIT License.
212
+ * http://opensource.org/licenses/mit-license
213
+ */function sa(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function fw(e){function t(k){if(!k)throw Error("assert :P")}function r(k,L,B){for(var C=0;4>C;C++)if(k[L+C]!=B.charCodeAt(C))return!0;return!1}function n(k,L,B,C,P){for(var M=0;M<P;M++)k[L+M]=B[C+M]}function i(k,L,B,C){for(var P=0;P<C;P++)k[L+P]=B}function a(k){return new Int32Array(k)}function o(k,L){for(var B=[],C=0;C<k;C++)B.push(new L);return B}function s(k,L){var B=[];return(function C(P,M,q){for(var J=q[M],U=0;U<J&&(P.push(q.length>M+1?[]:new L),!(q.length<M+1));U++)C(P[U],M+1,q)})(B,0,k),B}var l=function(){var k=this;function L(v,b){for(var j=1<<b-1>>>0;v&j;)j>>>=1;return j?(v&j-1)+j:v}function B(v,b,j,F,z){t(!(F%j));do v[b+(F-=j)]=z;while(0<F)}function C(v,b,j,F,z){if(t(2328>=z),512>=z)var K=a(512);else if((K=a(z))==null)return 0;return(function(X,te,re,se,xe,Pe){var Ne,Ae,Ue=te,Le=1<<re,be=a(16),we=a(16);for(t(xe!=0),t(se!=null),t(X!=null),t(0<re),Ae=0;Ae<xe;++Ae){if(15<se[Ae])return 0;++be[se[Ae]]}if(be[0]==xe)return 0;for(we[1]=0,Ne=1;15>Ne;++Ne){if(be[Ne]>1<<Ne)return 0;we[Ne+1]=we[Ne]+be[Ne]}for(Ae=0;Ae<xe;++Ae)Ne=se[Ae],0<se[Ae]&&(Pe[we[Ne]++]=Ae);if(we[15]==1)return(se=new P).g=0,se.value=Pe[0],B(X,Ue,1,Le,se),Le;var $e,We=-1,qe=Le-1,ut=0,nt=1,yt=1,it=1<<re;for(Ae=0,Ne=1,xe=2;Ne<=re;++Ne,xe<<=1){if(nt+=yt<<=1,0>(yt-=be[Ne]))return 0;for(;0<be[Ne];--be[Ne])(se=new P).g=Ne,se.value=Pe[Ae++],B(X,Ue+ut,xe,it,se),ut=L(ut,Ne)}for(Ne=re+1,xe=2;15>=Ne;++Ne,xe<<=1){if(nt+=yt<<=1,0>(yt-=be[Ne]))return 0;for(;0<be[Ne];--be[Ne]){if(se=new P,(ut&qe)!=We){for(Ue+=it,$e=1<<(We=Ne)-re;15>We&&!(0>=($e-=be[We]));)++We,$e<<=1;Le+=it=1<<($e=We-re),X[te+(We=ut&qe)].g=$e+re,X[te+We].value=Ue-te-We}se.g=Ne-re,se.value=Pe[Ae++],B(X,Ue+(ut>>re),xe,it,se),ut=L(ut,Ne)}}return nt!=2*we[15]-1?0:Le})(v,b,j,F,z,K)}function P(){this.value=this.g=0}function M(){this.value=this.g=0}function q(){this.G=o(5,P),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(xn,M)}function J(v,b,j,F){t(v!=null),t(b!=null),t(2147483648>F),v.Ca=254,v.I=0,v.b=-8,v.Ka=0,v.oa=b,v.pa=j,v.Jd=b,v.Yc=j+F,v.Zc=4<=F?j+F-4+1:j,ce(v)}function U(v,b){for(var j=0;0<b--;)j|=ne(v,128)<<b;return j}function H(v,b){var j=U(v,b);return he(v)?-j:j}function ee(v,b,j,F){var z,K=0;for(t(v!=null),t(b!=null),t(4294967288>F),v.Sb=F,v.Ra=0,v.u=0,v.h=0,4<F&&(F=4),z=0;z<F;++z)K+=b[j+z]<<8*z;v.Ra=K,v.bb=F,v.oa=b,v.pa=j}function Z(v){for(;8<=v.u&&v.bb<v.Sb;)v.Ra>>>=8,v.Ra+=v.oa[v.pa+v.bb]<<_l-8>>>0,++v.bb,v.u-=8;R(v)&&(v.h=1,v.u=0)}function Q(v,b){if(t(0<=b),!v.h&&b<=wl){var j=I(v)&bl[b];return v.u+=b,Z(v),j}return v.h=1,v.u=0}function le(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function I(v){return v.Ra>>>(v.u&_l-1)>>>0}function R(v){return t(v.bb<=v.Sb),v.h||v.bb==v.Sb&&v.u>_l}function D(v,b){v.u=b,v.h=R(v)}function G(v){v.u>=hc&&(t(v.u>=hc),Z(v))}function ce(v){t(v!=null&&v.oa!=null),v.pa<v.Zc?(v.I=(v.oa[v.pa++]|v.I<<8)>>>0,v.b+=8):(t(v!=null&&v.oa!=null),v.pa<v.Yc?(v.b+=8,v.I=v.oa[v.pa++]|v.I<<8):v.Ka?v.b=0:(v.I<<=8,v.b+=8,v.Ka=1))}function he(v){return U(v,1)}function ne(v,b){var j=v.Ca;0>v.b&&ce(v);var F=v.b,z=j*b>>>8,K=(v.I>>>F>z)+0;for(K?(j-=z,v.I-=z+1<<F>>>0):j=z+1,F=j,z=0;256<=F;)z+=8,F>>=8;return F=7^z+ri[F],v.b-=F,v.Ca=(j<<F)-1,K}function me(v,b,j){v[b+0]=j>>24&255,v[b+1]=j>>16&255,v[b+2]=j>>8&255,v[b+3]=j>>0&255}function Se(v,b){return v[b+0]<<0|v[b+1]<<8}function ue(v,b){return Se(v,b)|v[b+2]<<16}function Ie(v,b){return Se(v,b)|Se(v,b+2)<<16}function ge(v,b){var j=1<<b;return t(v!=null),t(0<b),v.X=a(j),v.X==null?0:(v.Mb=32-b,v.Xa=b,1)}function _e(v,b){t(v!=null),t(b!=null),t(v.Xa==b.Xa),n(b.X,0,v.X,0,1<<b.Xa)}function oe(){this.X=[],this.Xa=this.Mb=0}function Re(v,b,j,F){t(j!=null),t(F!=null);var z=j[0],K=F[0];return z==0&&(z=(v*K+b/2)/b),K==0&&(K=(b*z+v/2)/v),0>=z||0>=K?0:(j[0]=z,F[0]=K,1)}function et(v,b){return v+(1<<b)-1>>>b}function Be(v,b){return((4278255360&v)+(4278255360&b)>>>0&4278255360)+((16711935&v)+(16711935&b)>>>0&16711935)>>>0}function Ve(v,b){k[b]=function(j,F,z,K,X,te,re){var se;for(se=0;se<X;++se){var xe=k[v](te[re+se-1],z,K+se);te[re+se]=Be(j[F+se],xe)}}}function Je(){this.ud=this.hd=this.jd=0}function Xe(v,b){return((4278124286&(v^b))>>>1)+(v&b)>>>0}function ht(v){return 0<=v&&256>v?v:0>v?0:255<v?255:void 0}function dt(v,b){return ht(v+(v-b+.5>>1))}function xt(v,b,j){return Math.abs(b-j)-Math.abs(v-j)}function Et(v,b,j,F,z,K,X){for(F=K[X-1],j=0;j<z;++j)K[X+j]=F=Be(v[b+j],F)}function Ft(v,b,j,F,z){var K;for(K=0;K<j;++K){var X=v[b+K],te=X>>8&255,re=16711935&(re=(re=16711935&X)+((te<<16)+te));F[z+K]=(4278255360&X)+re>>>0}}function Bt(v,b){b.jd=v>>0&255,b.hd=v>>8&255,b.ud=v>>16&255}function wt(v,b,j,F,z,K){var X;for(X=0;X<F;++X){var te=b[j+X],re=te>>>8,se=te,xe=255&(xe=(xe=te>>>16)+((v.jd<<24>>24)*(re<<24>>24)>>>5));se=255&(se=(se=se+((v.hd<<24>>24)*(re<<24>>24)>>>5))+((v.ud<<24>>24)*(xe<<24>>24)>>>5)),z[K+X]=(4278255360&te)+(xe<<16)+se}}function Rt(v,b,j,F,z){k[b]=function(K,X,te,re,se,xe,Pe,Ne,Ae){for(re=Pe;re<Ne;++re)for(Pe=0;Pe<Ae;++Pe)se[xe++]=z(te[F(K[X++])])},k[v]=function(K,X,te,re,se,xe,Pe){var Ne=8>>K.b,Ae=K.Ea,Ue=K.K[0],Le=K.w;if(8>Ne)for(K=(1<<K.b)-1,Le=(1<<Ne)-1;X<te;++X){var be,we=0;for(be=0;be<Ae;++be)be&K||(we=F(re[se++])),xe[Pe++]=z(Ue[we&Le]),we>>=Ne}else k["VP8LMapColor"+j](re,se,Ue,Le,xe,Pe,X,te,Ae)}}function at(v,b,j,F,z){for(j=b+j;b<j;){var K=v[b++];F[z++]=K>>16&255,F[z++]=K>>8&255,F[z++]=K>>0&255}}function tn(v,b,j,F,z){for(j=b+j;b<j;){var K=v[b++];F[z++]=K>>16&255,F[z++]=K>>8&255,F[z++]=K>>0&255,F[z++]=K>>24&255}}function qt(v,b,j,F,z){for(j=b+j;b<j;){var K=(X=v[b++])>>16&240|X>>12&15,X=X>>0&240|X>>28&15;F[z++]=K,F[z++]=X}}function Qn(v,b,j,F,z){for(j=b+j;b<j;){var K=(X=v[b++])>>16&248|X>>13&7,X=X>>5&224|X>>3&31;F[z++]=K,F[z++]=X}}function Xt(v,b,j,F,z){for(j=b+j;b<j;){var K=v[b++];F[z++]=K>>0&255,F[z++]=K>>8&255,F[z++]=K>>16&255}}function wr(v,b,j,F,z,K){if(K==0)for(j=b+j;b<j;)me(F,((K=v[b++])[0]>>24|K[1]>>8&65280|K[2]<<8&16711680|K[3]<<24)>>>0),z+=32;else n(F,z,v,b,j)}function Ci(v,b){k[b][0]=k[v+"0"],k[b][1]=k[v+"1"],k[b][2]=k[v+"2"],k[b][3]=k[v+"3"],k[b][4]=k[v+"4"],k[b][5]=k[v+"5"],k[b][6]=k[v+"6"],k[b][7]=k[v+"7"],k[b][8]=k[v+"8"],k[b][9]=k[v+"9"],k[b][10]=k[v+"10"],k[b][11]=k[v+"11"],k[b][12]=k[v+"12"],k[b][13]=k[v+"13"],k[b][14]=k[v+"0"],k[b][15]=k[v+"0"]}function zt(v){return v==h1||v==d1||v==Hh||v==p1}function Aa(){this.eb=[],this.size=this.A=this.fb=0}function Tr(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function di(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Aa,this.f.kb=new Tr,this.sd=null}function Zi(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function gr(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function At(v){return alert("todo:WebPSamplerProcessPlane"),v.T}function Ht(v,b){var j=v.T,F=b.ba.f.RGBA,z=F.eb,K=F.fb+v.ka*F.A,X=Di[b.ba.S],te=v.y,re=v.O,se=v.f,xe=v.N,Pe=v.ea,Ne=v.W,Ae=b.cc,Ue=b.dc,Le=b.Mc,be=b.Nc,we=v.ka,$e=v.ka+v.T,We=v.U,qe=We+1>>1;for(we==0?X(te,re,null,null,se,xe,Pe,Ne,se,xe,Pe,Ne,z,K,null,null,We):(X(b.ec,b.fc,te,re,Ae,Ue,Le,be,se,xe,Pe,Ne,z,K-F.A,z,K,We),++j);we+2<$e;we+=2)Ae=se,Ue=xe,Le=Pe,be=Ne,xe+=v.Rc,Ne+=v.Rc,K+=2*F.A,X(te,(re+=2*v.fa)-v.fa,te,re,Ae,Ue,Le,be,se,xe,Pe,Ne,z,K-F.A,z,K,We);return re+=v.fa,v.j+$e<v.o?(n(b.ec,b.fc,te,re,We),n(b.cc,b.dc,se,xe,qe),n(b.Mc,b.Nc,Pe,Ne,qe),j--):1&$e||X(te,re,null,null,se,xe,Pe,Ne,se,xe,Pe,Ne,z,K+F.A,null,null,We),j}function Ha(v,b,j){var F=v.F,z=[v.J];if(F!=null){var K=v.U,X=b.ba.S,te=X==Wh||X==Hh;b=b.ba.f.RGBA;var re=[0],se=v.ka;re[0]=v.T,v.Kb&&(se==0?--re[0]:(--se,z[0]-=v.width),v.j+v.ka+v.T==v.o&&(re[0]=v.o-v.j-se));var xe=b.eb;se=b.fb+se*b.A,v=Sr(F,z[0],v.width,K,re,xe,se+(te?0:3),b.A),t(j==re),v&&zt(X)&&Ri(xe,se,te,K,re,b.A)}return 0}function rn(v){var b=v.ma,j=b.ba.S,F=11>j,z=j==Uh||j==zh||j==Wh||j==f1||j==12||zt(j);if(b.memory=null,b.Ib=null,b.Jb=null,b.Nd=null,!cc(b.Oa,v,z?11:12))return 0;if(z&&zt(j)&&He(),v.da)alert("todo:use_scaling");else{if(F){if(b.Ib=At,v.Kb){if(j=v.U+1>>1,b.memory=a(v.U+2*j),b.memory==null)return 0;b.ec=b.memory,b.fc=0,b.cc=b.ec,b.dc=b.fc+v.U,b.Mc=b.cc,b.Nc=b.dc+j,b.Ib=Ht,He()}}else alert("todo:EmitYUV");z&&(b.Jb=Ha,F&&Te())}if(F&&!O5){for(v=0;256>v;++v)fj[v]=89858*(v-128)+Vh>>Gh,pj[v]=-22014*(v-128)+Vh,dj[v]=-45773*(v-128),hj[v]=113618*(v-128)+Vh>>Gh;for(v=xc;v<g1;++v)b=76283*(v-16)+Vh>>Gh,vj[v-xc]=mi(b,255),mj[v-xc]=mi(b+8>>4,15);O5=1}return 1}function ji(v){var b=v.ma,j=v.U,F=v.T;return t(!(1&v.ka)),0>=j||0>=F?0:(j=b.Ib(v,b),b.Jb!=null&&b.Jb(v,b,j),b.Dc+=j,1)}function ki(v){v.ma.memory=null}function gt(v,b,j,F){return Q(v,8)!=47?0:(b[0]=Q(v,14)+1,j[0]=Q(v,14)+1,F[0]=Q(v,1),Q(v,3)!=0?0:!v.h)}function pi(v,b){if(4>v)return v+1;var j=v-2>>1;return(2+(1&v)<<j)+Q(b,j)+1}function ei(v,b){return 120<b?b-120:1<=(j=((j=JC[b-1])>>4)*v+(8-(15&j)))?j:1;var j}function Nn(v,b,j){var F=I(j),z=v[b+=255&F].g-8;return 0<z&&(D(j,j.u+8),F=I(j),b+=v[b].value,b+=F&(1<<z)-1),D(j,j.u+v[b].g),v[b].value}function Br(v,b,j){return j.g+=v.g,j.value+=v.value<<b>>>0,t(8>=j.g),v.g}function kr(v,b,j){var F=v.xc;return t((b=F==0?0:v.vc[v.md*(j>>F)+(b>>F)])<v.Wb),v.Ya[b]}function Y(v,b,j,F){var z=v.ab,K=v.c*b,X=v.C;b=X+b;var te=j,re=F;for(F=v.Ta,j=v.Ua;0<z--;){var se=v.gc[z],xe=X,Pe=b,Ne=te,Ae=re,Ue=(re=F,te=j,se.Ea);switch(t(xe<Pe),t(Pe<=se.nc),se.hc){case 2:Fh(Ne,Ae,(Pe-xe)*Ue,re,te);break;case 0:var Le=xe,be=Pe,we=re,$e=te,We=(it=se).Ea;Le==0&&(u1(Ne,Ae,null,null,1,we,$e),Et(Ne,Ae+1,0,0,We-1,we,$e+1),Ae+=We,$e+=We,++Le);for(var qe=1<<it.b,ut=qe-1,nt=et(We,it.b),yt=it.K,it=it.w+(Le>>it.b)*nt;Le<be;){var Kt=yt,or=it,Wt=1;for(dc(Ne,Ae,we,$e-We,1,we,$e);Wt<We;){var $t=(Wt&~ut)+qe;$t>We&&($t=We),(0,jo[Kt[or++]>>8&15])(Ne,Ae+ +Wt,we,$e+Wt-We,$t-Wt,we,$e+Wt),Wt=$t}Ae+=We,$e+=We,++Le&ut||(it+=nt)}Pe!=se.nc&&n(re,te-Ue,re,te+(Pe-xe-1)*Ue,Ue);break;case 1:for(Ue=Ne,be=Ae,We=(Ne=se.Ea)-($e=Ne&~(we=(Ae=1<<se.b)-1)),Le=et(Ne,se.b),qe=se.K,se=se.w+(xe>>se.b)*Le;xe<Pe;){for(ut=qe,nt=se,yt=new Je,it=be+$e,Kt=be+Ne;be<it;)Bt(ut[nt++],yt),ys(yt,Ue,be,Ae,re,te),be+=Ae,te+=Ae;be<Kt&&(Bt(ut[nt++],yt),ys(yt,Ue,be,We,re,te),be+=We,te+=We),++xe&we||(se+=Le)}break;case 3:if(Ne==re&&Ae==te&&0<se.b){for(be=re,Ne=Ue=te+(Pe-xe)*Ue-($e=(Pe-xe)*et(se.Ea,se.b)),Ae=re,we=te,Le=[],$e=(We=$e)-1;0<=$e;--$e)Le[$e]=Ae[we+$e];for($e=We-1;0<=$e;--$e)be[Ne+$e]=Le[$e];Li(se,xe,Pe,re,Ue,re,te)}else Li(se,xe,Pe,Ne,Ae,re,te)}te=F,re=j}re!=j&&n(F,j,te,re,K)}function de(v,b){var j=v.V,F=v.Ba+v.c*v.C,z=b-v.C;if(t(b<=v.l.o),t(16>=z),0<z){var K=v.l,X=v.Ta,te=v.Ua,re=K.width;if(Y(v,z,j,F),z=te=[te],t((j=v.C)<(F=b)),t(K.v<K.va),F>K.o&&(F=K.o),j<K.j){var se=K.j-j;j=K.j,z[0]+=se*re}if(j>=F?j=0:(z[0]+=4*K.v,K.ka=j-K.j,K.U=K.va-K.v,K.T=F-j,j=1),j){if(te=te[0],11>(j=v.ca).S){var xe=j.f.RGBA,Pe=(F=j.S,z=K.U,K=K.T,se=xe.eb,xe.A),Ne=K;for(xe=xe.fb+v.Ma*xe.A;0<Ne--;){var Ae=X,Ue=te,Le=z,be=se,we=xe;switch(F){case qh:ni(Ae,Ue,Le,be,we);break;case Uh:qn(Ae,Ue,Le,be,we);break;case h1:qn(Ae,Ue,Le,be,we),Ri(be,we,0,Le,1,0);break;case y5:Xa(Ae,Ue,Le,be,we);break;case zh:wr(Ae,Ue,Le,be,we,1);break;case d1:wr(Ae,Ue,Le,be,we,1),Ri(be,we,0,Le,1,0);break;case Wh:wr(Ae,Ue,Le,be,we,0);break;case Hh:wr(Ae,Ue,Le,be,we,0),Ri(be,we,1,Le,1,0);break;case f1:ko(Ae,Ue,Le,be,we);break;case p1:ko(Ae,Ue,Le,be,we),_r(be,we,Le,1,0);break;case x5:Ya(Ae,Ue,Le,be,we);break;default:t(0)}te+=re,xe+=Pe}v.Ma+=K}else alert("todo:EmitRescaledRowsYUVA");t(v.Ma<=j.height)}}v.C=b,t(v.C<=v.i)}function ie(v){var b;if(0<v.ua)return 0;for(b=0;b<v.Wb;++b){var j=v.Ya[b].G,F=v.Ya[b].H;if(0<j[1][F[1]+0].g||0<j[2][F[2]+0].g||0<j[3][F[3]+0].g)return 0}return 1}function ae(v,b,j,F,z,K){if(v.Z!=0){var X=v.qd,te=v.rd;for(t(Ro[v.Z]!=null);b<j;++b)Ro[v.Z](X,te,F,z,F,z,K),X=F,te=z,z+=K;v.qd=X,v.rd=te}}function fe(v,b){var j=v.l.ma,F=j.Z==0||j.Z==1?v.l.j:v.C;if(F=v.C<F?F:v.C,t(b<=v.l.o),b>F){var z=v.l.width,K=j.ca,X=j.tb+z*F,te=v.V,re=v.Ba+v.c*F,se=v.gc;t(v.ab==1),t(se[0].hc==3),Rh(se[0],F,b,te,re,K,X),ae(j,F,b,K,X,z)}v.C=v.Ma=b}function pe(v,b,j,F,z,K,X){var te=v.$/F,re=v.$%F,se=v.m,xe=v.s,Pe=j+v.$,Ne=Pe;z=j+F*z;var Ae=j+F*K,Ue=280+xe.ua,Le=v.Pb?te:16777216,be=0<xe.ua?xe.Wa:null,we=xe.wc,$e=Pe<Ae?kr(xe,re,te):null;t(v.C<K),t(Ae<=z);var We=!1;e:for(;;){for(;We||Pe<Ae;){var qe=0;if(te>=Le){var ut=Pe-j;t((Le=v).Pb),Le.wd=Le.m,Le.xd=ut,0<Le.s.ua&&_e(Le.s.Wa,Le.s.vb),Le=te+QC}if(re&we||($e=kr(xe,re,te)),t($e!=null),$e.Qb&&(b[Pe]=$e.qb,We=!0),!We)if(G(se),$e.jc){qe=se,ut=b;var nt=Pe,yt=$e.pd[I(qe)&xn-1];t($e.jc),256>yt.g?(D(qe,qe.u+yt.g),ut[nt]=yt.value,qe=0):(D(qe,qe.u+yt.g-256),t(256<=yt.value),qe=yt.value),qe==0&&(We=!0)}else qe=Nn($e.G[0],$e.H[0],se);if(se.h)break;if(We||256>qe){if(!We)if($e.nd)b[Pe]=($e.qb|qe<<8)>>>0;else{if(G(se),We=Nn($e.G[1],$e.H[1],se),G(se),ut=Nn($e.G[2],$e.H[2],se),nt=Nn($e.G[3],$e.H[3],se),se.h)break;b[Pe]=(nt<<24|We<<16|qe<<8|ut)>>>0}if(We=!1,++Pe,++re>=F&&(re=0,++te,X!=null&&te<=K&&!(te%16)&&X(v,te),be!=null))for(;Ne<Pe;)qe=b[Ne++],be.X[(506832829*qe&4294967295)>>>be.Mb]=qe}else if(280>qe){if(qe=pi(qe-256,se),ut=Nn($e.G[4],$e.H[4],se),G(se),ut=ei(F,ut=pi(ut,se)),se.h)break;if(Pe-j<ut||z-Pe<qe)break e;for(nt=0;nt<qe;++nt)b[Pe+nt]=b[Pe+nt-ut];for(Pe+=qe,re+=qe;re>=F;)re-=F,++te,X!=null&&te<=K&&!(te%16)&&X(v,te);if(t(Pe<=z),re&we&&($e=kr(xe,re,te)),be!=null)for(;Ne<Pe;)qe=b[Ne++],be.X[(506832829*qe&4294967295)>>>be.Mb]=qe}else{if(!(qe<Ue))break e;for(We=qe-280,t(be!=null);Ne<Pe;)qe=b[Ne++],be.X[(506832829*qe&4294967295)>>>be.Mb]=qe;qe=Pe,t(!(We>>>(ut=be).Xa)),b[qe]=ut.X[We],We=!0}We||t(se.h==R(se))}if(v.Pb&&se.h&&Pe<z)t(v.m.h),v.a=5,v.m=v.wd,v.$=v.xd,0<v.s.ua&&_e(v.s.vb,v.s.Wa);else{if(se.h)break e;X!=null&&X(v,te>K?K:te),v.a=0,v.$=Pe-j}return 1}return v.a=3,0}function Oe(v){t(v!=null),v.vc=null,v.yc=null,v.Ya=null;var b=v.Wa;b!=null&&(b.X=null),v.vb=null,t(v!=null)}function ke(){var v=new l1;return v==null?null:(v.a=0,v.xb=_5,Ci("Predictor","VP8LPredictors"),Ci("Predictor","VP8LPredictors_C"),Ci("PredictorAdd","VP8LPredictorsAdd"),Ci("PredictorAdd","VP8LPredictorsAdd_C"),Fh=Ft,ys=wt,ni=at,qn=tn,ko=qt,Ya=Qn,Xa=Xt,k.VP8LMapColor32b=Sl,k.VP8LMapColor8b=Mh,v)}function Ee(v,b,j,F,z){var K=1,X=[v],te=[b],re=F.m,se=F.s,xe=null,Pe=0;e:for(;;){if(j)for(;K&&Q(re,1);){var Ne=X,Ae=te,Ue=F,Le=1,be=Ue.m,we=Ue.gc[Ue.ab],$e=Q(be,2);if(Ue.Oc&1<<$e)K=0;else{switch(Ue.Oc|=1<<$e,we.hc=$e,we.Ea=Ne[0],we.nc=Ae[0],we.K=[null],++Ue.ab,t(4>=Ue.ab),$e){case 0:case 1:we.b=Q(be,3)+2,Le=Ee(et(we.Ea,we.b),et(we.nc,we.b),0,Ue,we.K),we.K=we.K[0];break;case 3:var We,qe=Q(be,8)+1,ut=16<qe?0:4<qe?1:2<qe?2:3;if(Ne[0]=et(we.Ea,ut),we.b=ut,We=Le=Ee(qe,1,0,Ue,we.K)){var nt,yt=qe,it=we,Kt=1<<(8>>it.b),or=a(Kt);if(or==null)We=0;else{var Wt=it.K[0],$t=it.w;for(or[0]=it.K[0][0],nt=1;nt<1*yt;++nt)or[nt]=Be(Wt[$t+nt],or[nt-1]);for(;nt<4*Kt;++nt)or[nt]=0;it.K[0]=null,it.K[0]=or,We=1}}Le=We;break;case 2:break;default:t(0)}K=Le}}if(X=X[0],te=te[0],K&&Q(re,1)&&!(K=1<=(Pe=Q(re,4))&&11>=Pe)){F.a=3;break e}var yr;if(yr=K)t:{var dr,kt,Kr,ii=F,Yr=X,ai=te,sr=Pe,yi=j,xi=ii.m,hn=ii.s,bn=[null],zn=1,Bi=0,Ca=ZC[sr];r:for(;;){if(yi&&Q(xi,1)){var dn=Q(xi,3)+2,eo=et(Yr,dn),Ss=et(ai,dn),Pl=eo*Ss;if(!Ee(eo,Ss,0,ii,bn))break r;for(bn=bn[0],hn.xc=dn,dr=0;dr<Pl;++dr){var Mo=bn[dr]>>8&65535;bn[dr]=Mo,Mo>=zn&&(zn=Mo+1)}}if(xi.h)break r;for(kt=0;5>kt;++kt){var Ir=b5[kt];!kt&&0<sr&&(Ir+=1<<sr),Bi<Ir&&(Bi=Ir)}var y1=o(zn*Ca,P),C5=zn,j5=o(C5,q);if(j5==null)var Yh=null;else t(65536>=C5),Yh=j5;var bc=a(Bi);if(Yh==null||bc==null||y1==null){ii.a=1;break r}var Xh=y1;for(dr=Kr=0;dr<zn;++dr){var aa=Yh[dr],Nl=aa.G,Cl=aa.H,k5=0,Jh=1,L5=0;for(kt=0;5>kt;++kt){Ir=b5[kt],Nl[kt]=Xh,Cl[kt]=Kr,!kt&&0<sr&&(Ir+=1<<sr);i:{var Zh,x1=Ir,Qh=ii,wc=bc,xj=Xh,bj=Kr,b1=0,Do=Qh.m,wj=Q(Do,1);if(i(wc,0,0,x1),wj){var _j=Q(Do,1)+1,Sj=Q(Do,1),I5=Q(Do,Sj==0?1:8);wc[I5]=1,_j==2&&(wc[I5=Q(Do,8)]=1);var e0=1}else{var F5=a(19),R5=Q(Do,4)+4;if(19<R5){Qh.a=3;var t0=0;break i}for(Zh=0;Zh<R5;++Zh)F5[XC[Zh]]=Q(Do,3);var w1=void 0,_c=void 0,M5=Qh,Aj=F5,r0=x1,D5=wc,_1=0,Bo=M5.m,B5=8,$5=o(128,P);n:for(;C($5,0,7,Aj,19);){if(Q(Bo,1)){var Tj=2+2*Q(Bo,3);if((w1=2+Q(Bo,Tj))>r0)break n}else w1=r0;for(_c=0;_c<r0&&w1--;){G(Bo);var q5=$5[0+(127&I(Bo))];D(Bo,Bo.u+q5.g);var jl=q5.value;if(16>jl)D5[_c++]=jl,jl!=0&&(B5=jl);else{var Ej=jl==16,U5=jl-16,Oj=KC[U5],z5=Q(Bo,VC[U5])+Oj;if(_c+z5>r0)break n;for(var Pj=Ej?B5:0;0<z5--;)D5[_c++]=Pj}}_1=1;break n}_1||(M5.a=3),e0=_1}(e0=e0&&!Do.h)&&(b1=C(xj,bj,8,wc,x1)),e0&&b1!=0?t0=b1:(Qh.a=3,t0=0)}if(t0==0)break r;if(Jh&&YC[kt]==1&&(Jh=Xh[Kr].g==0),k5+=Xh[Kr].g,Kr+=t0,3>=kt){var Sc,S1=bc[0];for(Sc=1;Sc<Ir;++Sc)bc[Sc]>S1&&(S1=bc[Sc]);L5+=S1}}if(aa.nd=Jh,aa.Qb=0,Jh&&(aa.qb=(Nl[3][Cl[3]+0].value<<24|Nl[1][Cl[1]+0].value<<16|Nl[2][Cl[2]+0].value)>>>0,k5==0&&256>Nl[0][Cl[0]+0].value&&(aa.Qb=1,aa.qb+=Nl[0][Cl[0]+0].value<<8)),aa.jc=!aa.Qb&&6>L5,aa.jc){var n0,to=aa;for(n0=0;n0<xn;++n0){var $o=n0,qo=to.pd[$o],i0=to.G[0][to.H[0]+$o];256<=i0.value?(qo.g=i0.g+256,qo.value=i0.value):(qo.g=0,qo.value=0,$o>>=Br(i0,8,qo),$o>>=Br(to.G[1][to.H[1]+$o],16,qo),$o>>=Br(to.G[2][to.H[2]+$o],0,qo),Br(to.G[3][to.H[3]+$o],24,qo))}}}hn.vc=bn,hn.Wb=zn,hn.Ya=Yh,hn.yc=y1,yr=1;break t}yr=0}if(!(K=yr)){F.a=3;break e}if(0<Pe){if(se.ua=1<<Pe,!ge(se.Wa,Pe)){F.a=1,K=0;break e}}else se.ua=0;var A1=F,W5=X,Nj=te,T1=A1.s,E1=T1.xc;if(A1.c=W5,A1.i=Nj,T1.md=et(W5,E1),T1.wc=E1==0?-1:(1<<E1)-1,j){F.xb=oj;break e}if((xe=a(X*te))==null){F.a=1,K=0;break e}K=(K=pe(F,xe,0,X,te,te,null))&&!re.h;break e}return K?(z!=null?z[0]=xe:(t(xe==null),t(j)),F.$=0,j||Oe(se)):Oe(se),K}function Ce(v,b){var j=v.c*v.i,F=j+b+16*b;return t(v.c<=b),v.V=a(F),v.V==null?(v.Ta=null,v.Ua=0,v.a=1,0):(v.Ta=v.V,v.Ua=v.Ba+j+b,1)}function je(v,b){var j=v.C,F=b-j,z=v.V,K=v.Ba+v.c*j;for(t(b<=v.l.o);0<F;){var X=16<F?16:F,te=v.l.ma,re=v.l.width,se=re*X,xe=te.ca,Pe=te.tb+re*j,Ne=v.Ta,Ae=v.Ua;Y(v,X,z,K),Ur(Ne,Ae,xe,Pe,se),ae(te,j,j+X,xe,Pe,re),F-=X,z+=X*v.c,j+=X}t(j==b),v.C=v.Ma=b}function Ge(){this.ub=this.yd=this.td=this.Rb=0}function Ze(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function st(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Ke(){this.Yb=(function(){var v=[];return(function b(j,F,z){for(var K=z[F],X=0;X<K&&(j.push(z.length>F+1?[]:0),!(z.length<F+1));X++)b(j[X],F+1,z)})(v,0,[3,11]),v})()}function ot(){this.jb=a(3),this.Wc=s([4,8],Ke),this.Xc=s([4,17],Ke)}function St(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Jt(){this.ld=this.La=this.dd=this.tc=0}function hr(){this.Na=this.la=0}function Gr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Qi(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ga(){this.uc=this.M=this.Nb=0,this.wa=Array(new Jt),this.Y=0,this.ya=Array(new Qi),this.aa=0,this.l=new Ea}function Ta(){this.y=a(16),this.f=a(8),this.ea=a(8)}function ea(){this.cb=this.a=0,this.sc="",this.m=new le,this.Od=new Ge,this.Kc=new Ze,this.ed=new St,this.Qa=new st,this.Ic=this.$c=this.Aa=0,this.D=new Ga,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,le),this.ia=0,this.pb=o(4,Gr),this.Pa=new ot,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ta),this.Hd=0,this.rb=Array(new hr),this.sb=0,this.wa=Array(new Jt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Qi),this.L=this.aa=0,this.gd=s([4,2],Jt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ea(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function vi(){var v=new ea;return v!=null&&(v.a=0,v.sc="OK",v.cb=0,v.Xb=0,yc||(yc=bh)),v}function $r(v,b,j){return v.a==0&&(v.a=b,v.sc=j,v.cb=0),0}function yh(v,b,j){return 3<=j&&v[b+0]==157&&v[b+1]==1&&v[b+2]==42}function xh(v,b){if(v==null)return 0;if(v.a=0,v.sc="OK",b==null)return $r(v,2,"null VP8Io passed to VP8GetHeaders()");var j=b.data,F=b.w,z=b.ha;if(4>z)return $r(v,7,"Truncated header.");var K=j[F+0]|j[F+1]<<8|j[F+2]<<16,X=v.Od;if(X.Rb=!(1&K),X.td=K>>1&7,X.yd=K>>4&1,X.ub=K>>5,3<X.td)return $r(v,3,"Incorrect keyframe parameters.");if(!X.yd)return $r(v,4,"Frame not displayable.");F+=3,z-=3;var te=v.Kc;if(X.Rb){if(7>z)return $r(v,7,"cannot parse picture header");if(!yh(j,F,z))return $r(v,3,"Bad code word");te.c=16383&(j[F+4]<<8|j[F+3]),te.Td=j[F+4]>>6,te.i=16383&(j[F+6]<<8|j[F+5]),te.Ud=j[F+6]>>6,F+=7,z-=7,v.za=te.c+15>>4,v.Ub=te.i+15>>4,b.width=te.c,b.height=te.i,b.Da=0,b.j=0,b.v=0,b.va=b.width,b.o=b.height,b.da=0,b.ib=b.width,b.hb=b.height,b.U=b.width,b.T=b.height,i((K=v.Pa).jb,0,255,K.jb.length),t((K=v.Qa)!=null),K.Cb=0,K.Bb=0,K.Fb=1,i(K.Zb,0,0,K.Zb.length),i(K.Lb,0,0,K.Lb)}if(X.ub>z)return $r(v,7,"bad partition length");J(K=v.m,j,F,X.ub),F+=X.ub,z-=X.ub,X.Rb&&(te.Ld=he(K),te.Kd=he(K)),te=v.Qa;var re,se=v.Pa;if(t(K!=null),t(te!=null),te.Cb=he(K),te.Cb){if(te.Bb=he(K),he(K)){for(te.Fb=he(K),re=0;4>re;++re)te.Zb[re]=he(K)?H(K,7):0;for(re=0;4>re;++re)te.Lb[re]=he(K)?H(K,6):0}if(te.Bb)for(re=0;3>re;++re)se.jb[re]=he(K)?U(K,8):255}else te.Bb=0;if(K.Ka)return $r(v,3,"cannot parse segment header");if((te=v.ed).zd=he(K),te.Tb=U(K,6),te.wb=U(K,3),te.Pc=he(K),te.Pc&&he(K)){for(se=0;4>se;++se)he(K)&&(te.vd[se]=H(K,6));for(se=0;4>se;++se)he(K)&&(te.od[se]=H(K,6))}if(v.L=te.Tb==0?0:te.zd?1:2,K.Ka)return $r(v,3,"cannot parse filter header");var xe=z;if(z=re=F,F=re+xe,te=xe,v.Xb=(1<<U(v.m,2))-1,xe<3*(se=v.Xb))j=7;else{for(re+=3*se,te-=3*se,xe=0;xe<se;++xe){var Pe=j[z+0]|j[z+1]<<8|j[z+2]<<16;Pe>te&&(Pe=te),J(v.Jc[+xe],j,re,Pe),re+=Pe,te-=Pe,z+=3}J(v.Jc[+se],j,re,te),j=re<F?0:5}if(j!=0)return $r(v,j,"cannot parse partitions");for(j=U(re=v.m,7),z=he(re)?H(re,4):0,F=he(re)?H(re,4):0,te=he(re)?H(re,4):0,se=he(re)?H(re,4):0,re=he(re)?H(re,4):0,xe=v.Qa,Pe=0;4>Pe;++Pe){if(xe.Cb){var Ne=xe.Zb[Pe];xe.Fb||(Ne+=j)}else{if(0<Pe){v.pb[Pe]=v.pb[0];continue}Ne=j}var Ae=v.pb[Pe];Ae.Sc[0]=v1[mi(Ne+z,127)],Ae.Sc[1]=m1[mi(Ne+0,127)],Ae.Eb[0]=2*v1[mi(Ne+F,127)],Ae.Eb[1]=101581*m1[mi(Ne+te,127)]>>16,8>Ae.Eb[1]&&(Ae.Eb[1]=8),Ae.Qc[0]=v1[mi(Ne+se,117)],Ae.Qc[1]=m1[mi(Ne+re,127)],Ae.lc=Ne+re}if(!X.Rb)return $r(v,4,"Not a key frame.");for(he(K),X=v.Pa,j=0;4>j;++j){for(z=0;8>z;++z)for(F=0;3>F;++F)for(te=0;11>te;++te)se=ne(K,ij[j][z][F][te])?U(K,8):rj[j][z][F][te],X.Wc[j][z].Yb[F][te]=se;for(z=0;17>z;++z)X.Xc[j][z]=X.Wc[j][aj[z]]}return v.kc=he(K),v.kc&&(v.Bd=U(K,8)),v.cb=1}function bh(v,b,j,F,z,K,X){var te=b[z].Yb[j];for(j=0;16>z;++z){if(!ne(v,te[j+0]))return z;for(;!ne(v,te[j+1]);)if(te=b[++z].Yb[0],j=0,z==16)return 16;var re=b[z+1].Yb;if(ne(v,te[j+2])){var se=v,xe=0;if(ne(se,(Ne=te)[(Pe=j)+3]))if(ne(se,Ne[Pe+6])){for(te=0,Pe=2*(xe=ne(se,Ne[Pe+8]))+(Ne=ne(se,Ne[Pe+9+xe])),xe=0,Ne=ej[Pe];Ne[te];++te)xe+=xe+ne(se,Ne[te]);xe+=3+(8<<Pe)}else ne(se,Ne[Pe+7])?(xe=7+2*ne(se,165),xe+=ne(se,145)):xe=5+ne(se,159);else xe=ne(se,Ne[Pe+4])?3+ne(se,Ne[Pe+5]):2;te=re[2]}else xe=1,te=re[1];re=X+tj[z],0>(se=v).b&&ce(se);var Pe,Ne=se.b,Ae=(Pe=se.Ca>>1)-(se.I>>Ne)>>31;--se.b,se.Ca+=Ae,se.Ca|=1,se.I-=(Pe+1&Ae)<<Ne,K[re]=((xe^Ae)-Ae)*F[(0<z)+0]}return 16}function Yu(v){var b=v.rb[v.sb-1];b.la=0,b.Na=0,i(v.zc,0,0,v.zc.length),v.ja=0}function Hp(v,b){if(v==null)return 0;if(b==null)return $r(v,2,"NULL VP8Io parameter in VP8Decode().");if(!v.cb&&!xh(v,b))return 0;if(t(v.cb),b.ac==null||b.ac(b)){b.ob&&(v.L=0);var j=Kh[v.L];if(v.L==2?(v.yb=0,v.zb=0):(v.yb=b.v-j>>4,v.zb=b.j-j>>4,0>v.yb&&(v.yb=0),0>v.zb&&(v.zb=0)),v.Va=b.o+15+j>>4,v.Hb=b.va+15+j>>4,v.Hb>v.za&&(v.Hb=v.za),v.Va>v.Ub&&(v.Va=v.Ub),0<v.L){var F=v.ed;for(j=0;4>j;++j){var z;if(v.Qa.Cb){var K=v.Qa.Lb[j];v.Qa.Fb||(K+=F.Tb)}else K=F.Tb;for(z=0;1>=z;++z){var X=v.gd[j][z],te=K;if(F.Pc&&(te+=F.vd[0],z&&(te+=F.od[0])),0<(te=0>te?0:63<te?63:te)){var re=te;0<F.wb&&(re=4<F.wb?re>>2:re>>1)>9-F.wb&&(re=9-F.wb),1>re&&(re=1),X.dd=re,X.tc=2*te+re,X.ld=40<=te?2:15<=te?1:0}else X.tc=0;X.La=z}}}j=0}else $r(v,6,"Frame setup failed"),j=v.a;if(j=j==0){if(j){v.$c=0,0<v.Aa||(v.Ic=yj);e:{j=v.Ic,F=4*(re=v.za);var se=32*re,xe=re+1,Pe=0<v.L?re*(0<v.Aa?2:1):0,Ne=(v.Aa==2?2:1)*re;if((X=F+832+(z=3*(16*j+Kh[v.L])/2*se)+(K=v.Fa!=null&&0<v.Fa.length?v.Kc.c*v.Kc.i:0))!=X)j=0;else{if(X>v.Vb){if(v.Vb=0,v.Ec=a(X),v.Fc=0,v.Ec==null){j=$r(v,1,"no memory during frame initialization.");break e}v.Vb=X}X=v.Ec,te=v.Fc,v.Ac=X,v.Bc=te,te+=F,v.Gd=o(se,Ta),v.Hd=0,v.rb=o(xe+1,hr),v.sb=1,v.wa=Pe?o(Pe,Jt):null,v.Y=0,v.D.Nb=0,v.D.wa=v.wa,v.D.Y=v.Y,0<v.Aa&&(v.D.Y+=re),t(!0),v.oc=X,v.pc=te,te+=832,v.ya=o(Ne,Qi),v.aa=0,v.D.ya=v.ya,v.D.aa=v.aa,v.Aa==2&&(v.D.aa+=re),v.R=16*re,v.B=8*re,re=(se=Kh[v.L])*v.R,se=se/2*v.B,v.sa=X,v.ta=te+re,v.qa=v.sa,v.ra=v.ta+16*j*v.R+se,v.Ha=v.qa,v.Ia=v.ra+8*j*v.B+se,v.$c=0,te+=z,v.mb=K?X:null,v.nb=K?te:null,t(te+K<=v.Fc+v.Vb),Yu(v),i(v.Ac,v.Bc,0,F),j=1}}if(j){if(b.ka=0,b.y=v.sa,b.O=v.ta,b.f=v.qa,b.N=v.ra,b.ea=v.Ha,b.Vd=v.Ia,b.fa=v.R,b.Rc=v.B,b.F=null,b.J=0,!Bh){for(j=-255;255>=j;++j)nn[255+j]=0>j?-j:j;for(j=-1020;1020>=j;++j)Za[1020+j]=-128>j?-128:127<j?127:j;for(j=-112;112>=j;++j)gc[112+j]=-16>j?-16:15<j?15:j;for(j=-255;510>=j;++j)Ol[255+j]=0>j?0:255<j?255:j;Bh=1}Al=Kp,Ja=Gp,pc=_h,Un=Vp,Ii=Sh,qr=wh,Tl=tc,Dh=ms,vc=s1,xs=rc,bs=o1,Lo=vl,ws=nc,El=kh,_s=jh,Io=Pa,mc=Ka,Fi=a1,ia[0]=Oa,ia[1]=Yp,ia[2]=Qp,ia[3]=e1,ia[4]=Eh,ia[5]=dl,ia[6]=Oh,ia[7]=Zu,ia[8]=r1,ia[9]=t1,Fo[0]=Ah,Fo[1]=Jp,Fo[2]=Va,Fo[3]=fl,Fo[4]=Cn,Fo[5]=Zp,Fo[6]=Th,Qa[0]=Po,Qa[1]=Xp,Qa[2]=n1,Qa[3]=Qu,Qa[4]=vs,Qa[5]=i1,Qa[6]=ec,j=1}else j=0}j&&(j=(function(Ae,Ue){for(Ae.M=0;Ae.M<Ae.Va;++Ae.M){var Le,be=Ae.Jc[Ae.M&Ae.Xb],we=Ae.m,$e=Ae;for(Le=0;Le<$e.za;++Le){var We=we,qe=$e,ut=qe.Ac,nt=qe.Bc+4*Le,yt=qe.zc,it=qe.ya[qe.aa+Le];if(qe.Qa.Bb?it.$b=ne(We,qe.Pa.jb[0])?2+ne(We,qe.Pa.jb[2]):ne(We,qe.Pa.jb[1]):it.$b=0,qe.kc&&(it.Ad=ne(We,qe.Bd)),it.Za=!ne(We,145)+0,it.Za){var Kt=it.Ob,or=0;for(qe=0;4>qe;++qe){var Wt,$t=yt[0+qe];for(Wt=0;4>Wt;++Wt){$t=nj[ut[nt+Wt]][$t];for(var yr=w5[ne(We,$t[0])];0<yr;)yr=w5[2*yr+ne(We,$t[yr])];$t=-yr,ut[nt+Wt]=$t}n(Kt,or,ut,nt,4),or+=4,yt[0+qe]=$t}}else $t=ne(We,156)?ne(We,128)?1:3:ne(We,163)?2:0,it.Ob[0]=$t,i(ut,nt,$t,4),i(yt,0,$t,4);it.Dd=ne(We,142)?ne(We,114)?ne(We,183)?1:3:2:0}if($e.m.Ka)return $r(Ae,7,"Premature end-of-partition0 encountered.");for(;Ae.ja<Ae.za;++Ae.ja){if($e=be,We=(we=Ae).rb[we.sb-1],ut=we.rb[we.sb+we.ja],Le=we.ya[we.aa+we.ja],nt=we.kc?Le.Ad:0)We.la=ut.la=0,Le.Za||(We.Na=ut.Na=0),Le.Hc=0,Le.Gc=0,Le.ia=0;else{var dr,kt;if(We=ut,ut=$e,nt=we.Pa.Xc,yt=we.ya[we.aa+we.ja],it=we.pb[yt.$b],qe=yt.ad,Kt=0,or=we.rb[we.sb-1],$t=Wt=0,i(qe,Kt,0,384),yt.Za)var Kr=0,ii=nt[3];else{yr=a(16);var Yr=We.Na+or.Na;if(Yr=yc(ut,nt[1],Yr,it.Eb,0,yr,0),We.Na=or.Na=(0<Yr)+0,1<Yr)Al(yr,0,qe,Kt);else{var ai=yr[0]+3>>3;for(yr=0;256>yr;yr+=16)qe[Kt+yr]=ai}Kr=1,ii=nt[0]}var sr=15&We.la,yi=15&or.la;for(yr=0;4>yr;++yr){var xi=1&yi;for(ai=kt=0;4>ai;++ai)sr=sr>>1|(xi=(Yr=yc(ut,ii,Yr=xi+(1&sr),it.Sc,Kr,qe,Kt))>Kr)<<7,kt=kt<<2|(3<Yr?3:1<Yr?2:qe[Kt+0]!=0),Kt+=16;sr>>=4,yi=yi>>1|xi<<7,Wt=(Wt<<8|kt)>>>0}for(ii=sr,Kr=yi>>4,dr=0;4>dr;dr+=2){for(kt=0,sr=We.la>>4+dr,yi=or.la>>4+dr,yr=0;2>yr;++yr){for(xi=1&yi,ai=0;2>ai;++ai)Yr=xi+(1&sr),sr=sr>>1|(xi=0<(Yr=yc(ut,nt[2],Yr,it.Qc,0,qe,Kt)))<<3,kt=kt<<2|(3<Yr?3:1<Yr?2:qe[Kt+0]!=0),Kt+=16;sr>>=2,yi=yi>>1|xi<<5}$t|=kt<<4*dr,ii|=sr<<4<<dr,Kr|=(240&yi)<<dr}We.la=ii,or.la=Kr,yt.Hc=Wt,yt.Gc=$t,yt.ia=43690&$t?0:it.ia,nt=!(Wt|$t)}if(0<we.L&&(we.wa[we.Y+we.ja]=we.gd[Le.$b][Le.Za],we.wa[we.Y+we.ja].La|=!nt),$e.Ka)return $r(Ae,7,"Premature end-of-file encountered.")}if(Yu(Ae),we=Ue,$e=1,Le=(be=Ae).D,We=0<be.L&&be.M>=be.zb&&be.M<=be.Va,be.Aa==0)e:{if(Le.M=be.M,Le.uc=We,uc(be,Le),$e=1,Le=(kt=be.D).Nb,We=($t=Kh[be.L])*be.R,ut=$t/2*be.B,yr=16*Le*be.R,ai=8*Le*be.B,nt=be.sa,yt=be.ta-We+yr,it=be.qa,qe=be.ra-ut+ai,Kt=be.Ha,or=be.Ia-ut+ai,yi=(sr=kt.M)==0,Wt=sr>=be.Va-1,be.Aa==2&&uc(be,kt),kt.uc)for(xi=(Yr=be).D.M,t(Yr.D.uc),kt=Yr.yb;kt<Yr.Hb;++kt){Kr=kt,ii=xi;var hn=(bn=(Ir=Yr).D).Nb;dr=Ir.R;var bn=bn.wa[bn.Y+Kr],zn=Ir.sa,Bi=Ir.ta+16*hn*dr+16*Kr,Ca=bn.dd,dn=bn.tc;if(dn!=0)if(t(3<=dn),Ir.L==1)0<Kr&&Io(zn,Bi,dr,dn+4),bn.La&&Fi(zn,Bi,dr,dn),0<ii&&_s(zn,Bi,dr,dn+4),bn.La&&mc(zn,Bi,dr,dn);else{var eo=Ir.B,Ss=Ir.qa,Pl=Ir.ra+8*hn*eo+8*Kr,Mo=Ir.Ha,Ir=Ir.Ia+8*hn*eo+8*Kr;hn=bn.ld,0<Kr&&(Dh(zn,Bi,dr,dn+4,Ca,hn),xs(Ss,Pl,Mo,Ir,eo,dn+4,Ca,hn)),bn.La&&(Lo(zn,Bi,dr,dn,Ca,hn),El(Ss,Pl,Mo,Ir,eo,dn,Ca,hn)),0<ii&&(Tl(zn,Bi,dr,dn+4,Ca,hn),vc(Ss,Pl,Mo,Ir,eo,dn+4,Ca,hn)),bn.La&&(bs(zn,Bi,dr,dn,Ca,hn),ws(Ss,Pl,Mo,Ir,eo,dn,Ca,hn))}}if(be.ia&&alert("todo:DitherRow"),we.put!=null){if(kt=16*sr,sr=16*(sr+1),yi?(we.y=be.sa,we.O=be.ta+yr,we.f=be.qa,we.N=be.ra+ai,we.ea=be.Ha,we.W=be.Ia+ai):(kt-=$t,we.y=nt,we.O=yt,we.f=it,we.N=qe,we.ea=Kt,we.W=or),Wt||(sr-=$t),sr>we.o&&(sr=we.o),we.F=null,we.J=null,be.Fa!=null&&0<be.Fa.length&&kt<sr&&(we.J=sc(be,we,kt,sr-kt),we.F=be.mb,we.F==null&&we.F.length==0)){$e=$r(be,3,"Could not decode alpha data.");break e}kt<we.j&&($t=we.j-kt,kt=we.j,t(!(1&$t)),we.O+=be.R*$t,we.N+=be.B*($t>>1),we.W+=be.B*($t>>1),we.F!=null&&(we.J+=we.width*$t)),kt<sr&&(we.O+=we.v,we.N+=we.v>>1,we.W+=we.v>>1,we.F!=null&&(we.J+=we.v),we.ka=kt-we.j,we.U=we.va-we.v,we.T=sr-kt,$e=we.put(we))}Le+1!=be.Ic||Wt||(n(be.sa,be.ta-We,nt,yt+16*be.R,We),n(be.qa,be.ra-ut,it,qe+8*be.B,ut),n(be.Ha,be.Ia-ut,Kt,or+8*be.B,ut))}if(!$e)return $r(Ae,6,"Output aborted.")}return 1})(v,b)),b.bc!=null&&b.bc(b),j&=1}return j?(v.cb=0,j):0}function ta(v,b,j,F,z){z=v[b+j+32*F]+(z>>3),v[b+j+32*F]=-256&z?0>z?0:255:z}function cl(v,b,j,F,z,K){ta(v,b,0,j,F+z),ta(v,b,1,j,F+K),ta(v,b,2,j,F-K),ta(v,b,3,j,F-z)}function ti(v){return(20091*v>>16)+v}function Xu(v,b,j,F){var z,K=0,X=a(16);for(z=0;4>z;++z){var te=v[b+0]+v[b+8],re=v[b+0]-v[b+8],se=(35468*v[b+4]>>16)-ti(v[b+12]),xe=ti(v[b+4])+(35468*v[b+12]>>16);X[K+0]=te+xe,X[K+1]=re+se,X[K+2]=re-se,X[K+3]=te-xe,K+=4,b++}for(z=K=0;4>z;++z)te=(v=X[K+0]+4)+X[K+8],re=v-X[K+8],se=(35468*X[K+4]>>16)-ti(X[K+12]),ta(j,F,0,0,te+(xe=ti(X[K+4])+(35468*X[K+12]>>16))),ta(j,F,1,0,re+se),ta(j,F,2,0,re-se),ta(j,F,3,0,te-xe),K++,F+=32}function wh(v,b,j,F){var z=v[b+0]+4,K=35468*v[b+4]>>16,X=ti(v[b+4]),te=35468*v[b+1]>>16;cl(j,F,0,z+X,v=ti(v[b+1]),te),cl(j,F,1,z+K,v,te),cl(j,F,2,z-K,v,te),cl(j,F,3,z-X,v,te)}function Gp(v,b,j,F,z){Xu(v,b,j,F),z&&Xu(v,b+16,j,F+4)}function _h(v,b,j,F){Ja(v,b+0,j,F,1),Ja(v,b+32,j,F+128,1)}function Vp(v,b,j,F){var z;for(v=v[b+0]+4,z=0;4>z;++z)for(b=0;4>b;++b)ta(j,F,b,z,v)}function Sh(v,b,j,F){v[b+0]&&Un(v,b+0,j,F),v[b+16]&&Un(v,b+16,j,F+4),v[b+32]&&Un(v,b+32,j,F+128),v[b+48]&&Un(v,b+48,j,F+128+4)}function Kp(v,b,j,F){var z,K=a(16);for(z=0;4>z;++z){var X=v[b+0+z]+v[b+12+z],te=v[b+4+z]+v[b+8+z],re=v[b+4+z]-v[b+8+z],se=v[b+0+z]-v[b+12+z];K[0+z]=X+te,K[8+z]=X-te,K[4+z]=se+re,K[12+z]=se-re}for(z=0;4>z;++z)X=(v=K[0+4*z]+3)+K[3+4*z],te=K[1+4*z]+K[2+4*z],re=K[1+4*z]-K[2+4*z],se=v-K[3+4*z],j[F+0]=X+te>>3,j[F+16]=se+re>>3,j[F+32]=X-te>>3,j[F+48]=se-re>>3,F+=64}function Ju(v,b,j){var F,z=b-32,K=gi,X=255-v[z-1];for(F=0;F<j;++F){var te,re=K,se=X+v[b-1];for(te=0;te<j;++te)v[b+te]=re[se+v[z+te]];b+=32}}function Yp(v,b){Ju(v,b,4)}function Xp(v,b){Ju(v,b,8)}function Jp(v,b){Ju(v,b,16)}function Va(v,b){var j;for(j=0;16>j;++j)n(v,b+32*j,v,b-32,16)}function fl(v,b){var j;for(j=16;0<j;--j)i(v,b,v[b-1],16),b+=32}function hl(v,b,j){var F;for(F=0;16>F;++F)i(b,j+32*F,v,16)}function Ah(v,b){var j,F=16;for(j=0;16>j;++j)F+=v[b-1+32*j]+v[b+j-32];hl(F>>5,v,b)}function Cn(v,b){var j,F=8;for(j=0;16>j;++j)F+=v[b-1+32*j];hl(F>>4,v,b)}function Zp(v,b){var j,F=8;for(j=0;16>j;++j)F+=v[b+j-32];hl(F>>4,v,b)}function Th(v,b){hl(128,v,b)}function Ot(v,b,j){return v+2*b+j+2>>2}function Qp(v,b){var j,F=b-32;for(F=new Uint8Array([Ot(v[F-1],v[F+0],v[F+1]),Ot(v[F+0],v[F+1],v[F+2]),Ot(v[F+1],v[F+2],v[F+3]),Ot(v[F+2],v[F+3],v[F+4])]),j=0;4>j;++j)n(v,b+32*j,F,0,F.length)}function e1(v,b){var j=v[b-1],F=v[b-1+32],z=v[b-1+64],K=v[b-1+96];me(v,b+0,16843009*Ot(v[b-1-32],j,F)),me(v,b+32,16843009*Ot(j,F,z)),me(v,b+64,16843009*Ot(F,z,K)),me(v,b+96,16843009*Ot(z,K,K))}function Oa(v,b){var j,F=4;for(j=0;4>j;++j)F+=v[b+j-32]+v[b-1+32*j];for(F>>=3,j=0;4>j;++j)i(v,b+32*j,F,4)}function Eh(v,b){var j=v[b-1+0],F=v[b-1+32],z=v[b-1+64],K=v[b-1-32],X=v[b+0-32],te=v[b+1-32],re=v[b+2-32],se=v[b+3-32];v[b+0+96]=Ot(F,z,v[b-1+96]),v[b+1+96]=v[b+0+64]=Ot(j,F,z),v[b+2+96]=v[b+1+64]=v[b+0+32]=Ot(K,j,F),v[b+3+96]=v[b+2+64]=v[b+1+32]=v[b+0+0]=Ot(X,K,j),v[b+3+64]=v[b+2+32]=v[b+1+0]=Ot(te,X,K),v[b+3+32]=v[b+2+0]=Ot(re,te,X),v[b+3+0]=Ot(se,re,te)}function Oh(v,b){var j=v[b+1-32],F=v[b+2-32],z=v[b+3-32],K=v[b+4-32],X=v[b+5-32],te=v[b+6-32],re=v[b+7-32];v[b+0+0]=Ot(v[b+0-32],j,F),v[b+1+0]=v[b+0+32]=Ot(j,F,z),v[b+2+0]=v[b+1+32]=v[b+0+64]=Ot(F,z,K),v[b+3+0]=v[b+2+32]=v[b+1+64]=v[b+0+96]=Ot(z,K,X),v[b+3+32]=v[b+2+64]=v[b+1+96]=Ot(K,X,te),v[b+3+64]=v[b+2+96]=Ot(X,te,re),v[b+3+96]=Ot(te,re,re)}function dl(v,b){var j=v[b-1+0],F=v[b-1+32],z=v[b-1+64],K=v[b-1-32],X=v[b+0-32],te=v[b+1-32],re=v[b+2-32],se=v[b+3-32];v[b+0+0]=v[b+1+64]=K+X+1>>1,v[b+1+0]=v[b+2+64]=X+te+1>>1,v[b+2+0]=v[b+3+64]=te+re+1>>1,v[b+3+0]=re+se+1>>1,v[b+0+96]=Ot(z,F,j),v[b+0+64]=Ot(F,j,K),v[b+0+32]=v[b+1+96]=Ot(j,K,X),v[b+1+32]=v[b+2+96]=Ot(K,X,te),v[b+2+32]=v[b+3+96]=Ot(X,te,re),v[b+3+32]=Ot(te,re,se)}function Zu(v,b){var j=v[b+0-32],F=v[b+1-32],z=v[b+2-32],K=v[b+3-32],X=v[b+4-32],te=v[b+5-32],re=v[b+6-32],se=v[b+7-32];v[b+0+0]=j+F+1>>1,v[b+1+0]=v[b+0+64]=F+z+1>>1,v[b+2+0]=v[b+1+64]=z+K+1>>1,v[b+3+0]=v[b+2+64]=K+X+1>>1,v[b+0+32]=Ot(j,F,z),v[b+1+32]=v[b+0+96]=Ot(F,z,K),v[b+2+32]=v[b+1+96]=Ot(z,K,X),v[b+3+32]=v[b+2+96]=Ot(K,X,te),v[b+3+64]=Ot(X,te,re),v[b+3+96]=Ot(te,re,se)}function t1(v,b){var j=v[b-1+0],F=v[b-1+32],z=v[b-1+64],K=v[b-1+96];v[b+0+0]=j+F+1>>1,v[b+2+0]=v[b+0+32]=F+z+1>>1,v[b+2+32]=v[b+0+64]=z+K+1>>1,v[b+1+0]=Ot(j,F,z),v[b+3+0]=v[b+1+32]=Ot(F,z,K),v[b+3+32]=v[b+1+64]=Ot(z,K,K),v[b+3+64]=v[b+2+64]=v[b+0+96]=v[b+1+96]=v[b+2+96]=v[b+3+96]=K}function r1(v,b){var j=v[b-1+0],F=v[b-1+32],z=v[b-1+64],K=v[b-1+96],X=v[b-1-32],te=v[b+0-32],re=v[b+1-32],se=v[b+2-32];v[b+0+0]=v[b+2+32]=j+X+1>>1,v[b+0+32]=v[b+2+64]=F+j+1>>1,v[b+0+64]=v[b+2+96]=z+F+1>>1,v[b+0+96]=K+z+1>>1,v[b+3+0]=Ot(te,re,se),v[b+2+0]=Ot(X,te,re),v[b+1+0]=v[b+3+32]=Ot(j,X,te),v[b+1+32]=v[b+3+64]=Ot(F,j,X),v[b+1+64]=v[b+3+96]=Ot(z,F,j),v[b+1+96]=Ot(K,z,F)}function n1(v,b){var j;for(j=0;8>j;++j)n(v,b+32*j,v,b-32,8)}function Qu(v,b){var j;for(j=0;8>j;++j)i(v,b,v[b-1],8),b+=32}function ps(v,b,j){var F;for(F=0;8>F;++F)i(b,j+32*F,v,8)}function Po(v,b){var j,F=8;for(j=0;8>j;++j)F+=v[b+j-32]+v[b-1+32*j];ps(F>>4,v,b)}function i1(v,b){var j,F=4;for(j=0;8>j;++j)F+=v[b+j-32];ps(F>>3,v,b)}function vs(v,b){var j,F=4;for(j=0;8>j;++j)F+=v[b-1+32*j];ps(F>>3,v,b)}function ec(v,b){ps(128,v,b)}function pl(v,b,j){var F=v[b-j],z=v[b+0],K=3*(z-F)+c1[1020+v[b-2*j]-v[b+j]],X=$h[112+(K+4>>3)];v[b-j]=gi[255+F+$h[112+(K+3>>3)]],v[b+0]=gi[255+z-X]}function Ph(v,b,j,F){var z=v[b+0],K=v[b+j];return Mi[255+v[b-2*j]-v[b-j]]>F||Mi[255+K-z]>F}function Nh(v,b,j,F){return 4*Mi[255+v[b-j]-v[b+0]]+Mi[255+v[b-2*j]-v[b+j]]<=F}function Ch(v,b,j,F,z){var K=v[b-3*j],X=v[b-2*j],te=v[b-j],re=v[b+0],se=v[b+j],xe=v[b+2*j],Pe=v[b+3*j];return 4*Mi[255+te-re]+Mi[255+X-se]>F?0:Mi[255+v[b-4*j]-K]<=z&&Mi[255+K-X]<=z&&Mi[255+X-te]<=z&&Mi[255+Pe-xe]<=z&&Mi[255+xe-se]<=z&&Mi[255+se-re]<=z}function jh(v,b,j,F){var z=2*F+1;for(F=0;16>F;++F)Nh(v,b+F,j,z)&&pl(v,b+F,j)}function Pa(v,b,j,F){var z=2*F+1;for(F=0;16>F;++F)Nh(v,b+F*j,1,z)&&pl(v,b+F*j,1)}function Ka(v,b,j,F){var z;for(z=3;0<z;--z)jh(v,b+=4*j,j,F)}function a1(v,b,j,F){var z;for(z=3;0<z;--z)Pa(v,b+=4,j,F)}function No(v,b,j,F,z,K,X,te){for(K=2*K+1;0<z--;){if(Ch(v,b,j,K,X))if(Ph(v,b,j,te))pl(v,b,j);else{var re=v,se=b,xe=j,Pe=re[se-2*xe],Ne=re[se-xe],Ae=re[se+0],Ue=re[se+xe],Le=re[se+2*xe],be=27*($e=c1[1020+3*(Ae-Ne)+c1[1020+Pe-Ue]])+63>>7,we=18*$e+63>>7,$e=9*$e+63>>7;re[se-3*xe]=gi[255+re[se-3*xe]+$e],re[se-2*xe]=gi[255+Pe+we],re[se-xe]=gi[255+Ne+be],re[se+0]=gi[255+Ae-be],re[se+xe]=gi[255+Ue-we],re[se+2*xe]=gi[255+Le-$e]}b+=F}}function ra(v,b,j,F,z,K,X,te){for(K=2*K+1;0<z--;){if(Ch(v,b,j,K,X))if(Ph(v,b,j,te))pl(v,b,j);else{var re=v,se=b,xe=j,Pe=re[se-xe],Ne=re[se+0],Ae=re[se+xe],Ue=$h[112+((Le=3*(Ne-Pe))+4>>3)],Le=$h[112+(Le+3>>3)],be=Ue+1>>1;re[se-2*xe]=gi[255+re[se-2*xe]+be],re[se-xe]=gi[255+Pe+Le],re[se+0]=gi[255+Ne-Ue],re[se+xe]=gi[255+Ae-be]}b+=F}}function tc(v,b,j,F,z,K){No(v,b,j,1,16,F,z,K)}function ms(v,b,j,F,z,K){No(v,b,1,j,16,F,z,K)}function o1(v,b,j,F,z,K){var X;for(X=3;0<X;--X)ra(v,b+=4*j,j,1,16,F,z,K)}function vl(v,b,j,F,z,K){var X;for(X=3;0<X;--X)ra(v,b+=4,1,j,16,F,z,K)}function s1(v,b,j,F,z,K,X,te){No(v,b,z,1,8,K,X,te),No(j,F,z,1,8,K,X,te)}function rc(v,b,j,F,z,K,X,te){No(v,b,1,z,8,K,X,te),No(j,F,1,z,8,K,X,te)}function nc(v,b,j,F,z,K,X,te){ra(v,b+4*z,z,1,8,K,X,te),ra(j,F+4*z,z,1,8,K,X,te)}function kh(v,b,j,F,z,K,X,te){ra(v,b+4,1,z,8,K,X,te),ra(j,F+4,1,z,8,K,X,te)}function ml(){this.ba=new di,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new gr,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ic(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ac(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Lh(){this.ua=0,this.Wa=new oe,this.vb=new oe,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new q,this.yc=new P}function l1(){this.xb=this.a=0,this.l=new Ea,this.ca=new di,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Lh,this.ab=0,this.gc=o(4,ac),this.Oc=0}function gl(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ea,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function gs(v,b,j,F,z,K,X){for(v=v==null?0:v[b+0],b=0;b<X;++b)z[K+b]=v+j[F+b]&255,v=z[K+b]}function oc(v,b,j,F,z,K,X){var te;if(v==null)gs(null,null,j,F,z,K,X);else for(te=0;te<X;++te)z[K+te]=v[b+te]+j[F+te]&255}function Co(v,b,j,F,z,K,X){if(v==null)gs(null,null,j,F,z,K,X);else{var te,re=v[b+0],se=re,xe=re;for(te=0;te<X;++te)se=xe+(re=v[b+te])-se,xe=j[F+te]+(-256&se?0>se?0:255:se)&255,se=re,z[K+te]=xe}}function sc(v,b,j,F){var z=b.width,K=b.o;if(t(v!=null&&b!=null),0>j||0>=F||j+F>K)return null;if(!v.Cc){if(v.ga==null){var X;if(v.ga=new gl,(X=v.ga==null)||(X=b.width*b.o,t(v.Gb.length==0),v.Gb=a(X),v.Uc=0,v.Gb==null?X=0:(v.mb=v.Gb,v.nb=v.Uc,v.rc=null,X=1),X=!X),!X){X=v.ga;var te=v.Fa,re=v.P,se=v.qc,xe=v.mb,Pe=v.nb,Ne=re+1,Ae=se-1,Ue=X.l;if(t(te!=null&&xe!=null&&b!=null),Ro[0]=null,Ro[1]=gs,Ro[2]=oc,Ro[3]=Co,X.ca=xe,X.tb=Pe,X.c=b.width,X.i=b.height,t(0<X.c&&0<X.i),1>=se)b=0;else if(X.$a=te[re+0]>>0&3,X.Z=te[re+0]>>2&3,X.Lc=te[re+0]>>4&3,re=te[re+0]>>6&3,0>X.$a||1<X.$a||4<=X.Z||1<X.Lc||re)b=0;else if(Ue.put=ji,Ue.ac=rn,Ue.bc=ki,Ue.ma=X,Ue.width=b.width,Ue.height=b.height,Ue.Da=b.Da,Ue.v=b.v,Ue.va=b.va,Ue.j=b.j,Ue.o=b.o,X.$a)e:{t(X.$a==1),b=ke();t:for(;;){if(b==null){b=0;break e}if(t(X!=null),X.mc=b,b.c=X.c,b.i=X.i,b.l=X.l,b.l.ma=X,b.l.width=X.c,b.l.height=X.i,b.a=0,ee(b.m,te,Ne,Ae),!Ee(X.c,X.i,1,b,null)||(b.ab==1&&b.gc[0].hc==3&&ie(b.s)?(X.ic=1,te=b.c*b.i,b.Ta=null,b.Ua=0,b.V=a(te),b.Ba=0,b.V==null?(b.a=1,b=0):b=1):(X.ic=0,b=Ce(b,X.c)),!b))break t;b=1;break e}X.mc=null,b=0}else b=Ae>=X.c*X.i;X=!b}if(X)return null;v.ga.Lc!=1?v.Ga=0:F=K-j}t(v.ga!=null),t(j+F<=K);e:{if(b=(te=v.ga).c,K=te.l.o,te.$a==0){if(Ne=v.rc,Ae=v.Vc,Ue=v.Fa,re=v.P+1+j*b,se=v.mb,xe=v.nb+j*b,t(re<=v.P+v.qc),te.Z!=0)for(t(Ro[te.Z]!=null),X=0;X<F;++X)Ro[te.Z](Ne,Ae,Ue,re,se,xe,b),Ne=se,Ae=xe,xe+=b,re+=b;else for(X=0;X<F;++X)n(se,xe,Ue,re,b),Ne=se,Ae=xe,xe+=b,re+=b;v.rc=Ne,v.Vc=Ae}else{if(t(te.mc!=null),b=j+F,t((X=te.mc)!=null),t(b<=X.i),X.C>=b)b=1;else if(te.ic||Te(),te.ic){te=X.V,Ne=X.Ba,Ae=X.c;var Le=X.i,be=(Ue=1,re=X.$/Ae,se=X.$%Ae,xe=X.m,Pe=X.s,X.$),we=Ae*Le,$e=Ae*b,We=Pe.wc,qe=be<$e?kr(Pe,se,re):null;t(be<=we),t(b<=Le),t(ie(Pe));t:for(;;){for(;!xe.h&&be<$e;){if(se&We||(qe=kr(Pe,se,re)),t(qe!=null),G(xe),256>(Le=Nn(qe.G[0],qe.H[0],xe)))te[Ne+be]=Le,++be,++se>=Ae&&(se=0,++re<=b&&!(re%16)&&fe(X,re));else{if(!(280>Le)){Ue=0;break t}Le=pi(Le-256,xe);var ut,nt=Nn(qe.G[4],qe.H[4],xe);if(G(xe),!(be>=(nt=ei(Ae,nt=pi(nt,xe)))&&we-be>=Le)){Ue=0;break t}for(ut=0;ut<Le;++ut)te[Ne+be+ut]=te[Ne+be+ut-nt];for(be+=Le,se+=Le;se>=Ae;)se-=Ae,++re<=b&&!(re%16)&&fe(X,re);be<$e&&se&We&&(qe=kr(Pe,se,re))}t(xe.h==R(xe))}fe(X,re>b?b:re);break t}!Ue||xe.h&&be<we?(Ue=0,X.a=xe.h?5:3):X.$=be,b=Ue}else b=pe(X,X.V,X.Ba,X.c,X.i,b,je);if(!b){F=0;break e}}j+F>=K&&(v.Cc=1),F=1}if(!F)return null;if(v.Cc&&((F=v.ga)!=null&&(F.mc=null),v.ga=null,0<v.Ga))return alert("todo:WebPDequantizeLevels"),null}return v.nb+j*z}function E(v,b,j,F,z,K){for(;0<z--;){var X,te=v,re=b+(j?1:0),se=v,xe=b+(j?0:3);for(X=0;X<F;++X){var Pe=se[xe+4*X];Pe!=255&&(Pe*=32897,te[re+4*X+0]=te[re+4*X+0]*Pe>>23,te[re+4*X+1]=te[re+4*X+1]*Pe>>23,te[re+4*X+2]=te[re+4*X+2]*Pe>>23)}b+=K}}function W(v,b,j,F,z){for(;0<F--;){var K;for(K=0;K<j;++K){var X=v[b+2*K+0],te=15&(se=v[b+2*K+1]),re=4369*te,se=(240&se|se>>4)*re>>16;v[b+2*K+0]=(240&X|X>>4)*re>>16&240|(15&X|X<<4)*re>>16>>4&15,v[b+2*K+1]=240&se|te}b+=z}}function ve(v,b,j,F,z,K,X,te){var re,se,xe=255;for(se=0;se<z;++se){for(re=0;re<F;++re){var Pe=v[b+re];K[X+4*re]=Pe,xe&=Pe}b+=j,X+=te}return xe!=255}function ye(v,b,j,F,z){var K;for(K=0;K<z;++K)j[F+K]=v[b+K]>>8}function Te(){Ri=E,_r=W,Sr=ve,Ur=ye}function Fe(v,b,j){k[v]=function(F,z,K,X,te,re,se,xe,Pe,Ne,Ae,Ue,Le,be,we,$e,We){var qe,ut=We-1>>1,nt=te[re+0]|se[xe+0]<<16,yt=Pe[Ne+0]|Ae[Ue+0]<<16;t(F!=null);var it=3*nt+yt+131074>>2;for(b(F[z+0],255&it,it>>16,Le,be),K!=null&&(it=3*yt+nt+131074>>2,b(K[X+0],255&it,it>>16,we,$e)),qe=1;qe<=ut;++qe){var Kt=te[re+qe]|se[xe+qe]<<16,or=Pe[Ne+qe]|Ae[Ue+qe]<<16,Wt=nt+Kt+yt+or+524296,$t=Wt+2*(Kt+yt)>>3;it=$t+nt>>1,nt=(Wt=Wt+2*(nt+or)>>3)+Kt>>1,b(F[z+2*qe-1],255&it,it>>16,Le,be+(2*qe-1)*j),b(F[z+2*qe-0],255&nt,nt>>16,Le,be+(2*qe-0)*j),K!=null&&(it=Wt+yt>>1,nt=$t+or>>1,b(K[X+2*qe-1],255&it,it>>16,we,$e+(2*qe-1)*j),b(K[X+2*qe+0],255&nt,nt>>16,we,$e+(2*qe+0)*j)),nt=Kt,yt=or}1&We||(it=3*nt+yt+131074>>2,b(F[z+We-1],255&it,it>>16,Le,be+(We-1)*j),K!=null&&(it=3*yt+nt+131074>>2,b(K[X+We-1],255&it,it>>16,we,$e+(We-1)*j)))}}function He(){Di[qh]=sj,Di[Uh]=S5,Di[y5]=lj,Di[zh]=A5,Di[Wh]=T5,Di[f1]=E5,Di[x5]=uj,Di[h1]=S5,Di[d1]=A5,Di[Hh]=T5,Di[p1]=E5}function lt(v){return v&-16384?0>v?0:255:v>>cj}function pt(v,b){return lt((19077*v>>8)+(26149*b>>8)-14234)}function Ct(v,b,j){return lt((19077*v>>8)-(6419*b>>8)-(13320*j>>8)+8708)}function Pt(v,b){return lt((19077*v>>8)+(33050*b>>8)-17685)}function Ut(v,b,j,F,z){F[z+0]=pt(v,j),F[z+1]=Ct(v,b,j),F[z+2]=Pt(v,b)}function jr(v,b,j,F,z){F[z+0]=Pt(v,b),F[z+1]=Ct(v,b,j),F[z+2]=pt(v,j)}function Lr(v,b,j,F,z){var K=Ct(v,b,j);b=K<<3&224|Pt(v,b)>>3,F[z+0]=248&pt(v,j)|K>>5,F[z+1]=b}function Vr(v,b,j,F,z){var K=240&Pt(v,b)|15;F[z+0]=240&pt(v,j)|Ct(v,b,j)>>4,F[z+1]=K}function jn(v,b,j,F,z){F[z+0]=255,Ut(v,b,j,F,z+1)}function fn(v,b,j,F,z){jr(v,b,j,F,z),F[z+3]=255}function na(v,b,j,F,z){Ut(v,b,j,F,z),F[z+3]=255}function mi(v,b){return 0>v?0:v>b?b:v}function Na(v,b,j){k[v]=function(F,z,K,X,te,re,se,xe,Pe){for(var Ne=xe+(-2&Pe)*j;xe!=Ne;)b(F[z+0],K[X+0],te[re+0],se,xe),b(F[z+1],K[X+0],te[re+0],se,xe+j),z+=2,++X,++re,xe+=2*j;1&Pe&&b(F[z+0],K[X+0],te[re+0],se,xe)}}function Ih(v,b,j){return j==0?v==0?b==0?6:5:b==0?4:0:j}function lc(v,b,j,F,z){switch(v>>>30){case 3:Ja(b,j,F,z,0);break;case 2:qr(b,j,F,z);break;case 1:Un(b,j,F,z)}}function uc(v,b){var j,F,z=b.M,K=b.Nb,X=v.oc,te=v.pc+40,re=v.oc,se=v.pc+584,xe=v.oc,Pe=v.pc+600;for(j=0;16>j;++j)X[te+32*j-1]=129;for(j=0;8>j;++j)re[se+32*j-1]=129,xe[Pe+32*j-1]=129;for(0<z?X[te-1-32]=re[se-1-32]=xe[Pe-1-32]=129:(i(X,te-32-1,127,21),i(re,se-32-1,127,9),i(xe,Pe-32-1,127,9)),F=0;F<v.za;++F){var Ne=b.ya[b.aa+F];if(0<F){for(j=-1;16>j;++j)n(X,te+32*j-4,X,te+32*j+12,4);for(j=-1;8>j;++j)n(re,se+32*j-4,re,se+32*j+4,4),n(xe,Pe+32*j-4,xe,Pe+32*j+4,4)}var Ae=v.Gd,Ue=v.Hd+F,Le=Ne.ad,be=Ne.Hc;if(0<z&&(n(X,te-32,Ae[Ue].y,0,16),n(re,se-32,Ae[Ue].f,0,8),n(xe,Pe-32,Ae[Ue].ea,0,8)),Ne.Za){var we=X,$e=te-32+16;for(0<z&&(F>=v.za-1?i(we,$e,Ae[Ue].y[15],4):n(we,$e,Ae[Ue+1].y,0,4)),j=0;4>j;j++)we[$e+128+j]=we[$e+256+j]=we[$e+384+j]=we[$e+0+j];for(j=0;16>j;++j,be<<=2)we=X,$e=te+P5[j],ia[Ne.Ob[j]](we,$e),lc(be,Le,16*+j,we,$e)}else if(we=Ih(F,z,Ne.Ob[0]),Fo[we](X,te),be!=0)for(j=0;16>j;++j,be<<=2)lc(be,Le,16*+j,X,te+P5[j]);for(j=Ne.Gc,we=Ih(F,z,Ne.Dd),Qa[we](re,se),Qa[we](xe,Pe),be=Le,we=re,$e=se,255&(Ne=j>>0)&&(170&Ne?pc(be,256,we,$e):Ii(be,256,we,$e)),Ne=xe,be=Pe,255&(j>>=8)&&(170&j?pc(Le,320,Ne,be):Ii(Le,320,Ne,be)),z<v.Ub-1&&(n(Ae[Ue].y,0,X,te+480,16),n(Ae[Ue].f,0,re,se+224,8),n(Ae[Ue].ea,0,xe,Pe+224,8)),j=8*K*v.B,Ae=v.sa,Ue=v.ta+16*F+16*K*v.R,Le=v.qa,Ne=v.ra+8*F+j,be=v.Ha,we=v.Ia+8*F+j,j=0;16>j;++j)n(Ae,Ue+j*v.R,X,te+32*j,16);for(j=0;8>j;++j)n(Le,Ne+j*v.B,re,se+32*j,8),n(be,we+j*v.B,xe,Pe+32*j,8)}}function yl(v,b,j,F,z,K,X,te,re){var se=[0],xe=[0],Pe=0,Ne=re!=null?re.kd:0,Ae=re??new ic;if(v==null||12>j)return 7;Ae.data=v,Ae.w=b,Ae.ha=j,b=[b],j=[j],Ae.gb=[Ae.gb];e:{var Ue=b,Le=j,be=Ae.gb;if(t(v!=null),t(Le!=null),t(be!=null),be[0]=0,12<=Le[0]&&!r(v,Ue[0],"RIFF")){if(r(v,Ue[0]+8,"WEBP")){be=3;break e}var we=Ie(v,Ue[0]+4);if(12>we||4294967286<we){be=3;break e}if(Ne&&we>Le[0]-8){be=7;break e}be[0]=we,Ue[0]+=12,Le[0]-=12}be=0}if(be!=0)return be;for(we=0<Ae.gb[0],j=j[0];;){e:{var $e=v;Le=b,be=j;var We=se,qe=xe,ut=Ue=[0];if((it=Pe=[Pe])[0]=0,8>be[0])be=7;else{if(!r($e,Le[0],"VP8X")){if(Ie($e,Le[0]+4)!=10){be=3;break e}if(18>be[0]){be=7;break e}var nt=Ie($e,Le[0]+8),yt=1+ue($e,Le[0]+12);if(2147483648<=yt*($e=1+ue($e,Le[0]+15))){be=3;break e}ut!=null&&(ut[0]=nt),We!=null&&(We[0]=yt),qe!=null&&(qe[0]=$e),Le[0]+=18,be[0]-=18,it[0]=1}be=0}}if(Pe=Pe[0],Ue=Ue[0],be!=0)return be;if(Le=!!(2&Ue),!we&&Pe)return 3;if(K!=null&&(K[0]=!!(16&Ue)),X!=null&&(X[0]=Le),te!=null&&(te[0]=0),X=se[0],Ue=xe[0],Pe&&Le&&re==null){be=0;break}if(4>j){be=7;break}if(we&&Pe||!we&&!Pe&&!r(v,b[0],"ALPH")){j=[j],Ae.na=[Ae.na],Ae.P=[Ae.P],Ae.Sa=[Ae.Sa];e:{nt=v,be=b,we=j;var it=Ae.gb;We=Ae.na,qe=Ae.P,ut=Ae.Sa,yt=22,t(nt!=null),t(we!=null),$e=be[0];var Kt=we[0];for(t(We!=null),t(ut!=null),We[0]=null,qe[0]=null,ut[0]=0;;){if(be[0]=$e,we[0]=Kt,8>Kt){be=7;break e}var or=Ie(nt,$e+4);if(4294967286<or){be=3;break e}var Wt=8+or+1&-2;if(yt+=Wt,0<it&&yt>it){be=3;break e}if(!r(nt,$e,"VP8 ")||!r(nt,$e,"VP8L")){be=0;break e}if(Kt[0]<Wt){be=7;break e}r(nt,$e,"ALPH")||(We[0]=nt,qe[0]=$e+8,ut[0]=or),$e+=Wt,Kt-=Wt}}if(j=j[0],Ae.na=Ae.na[0],Ae.P=Ae.P[0],Ae.Sa=Ae.Sa[0],be!=0)break}j=[j],Ae.Ja=[Ae.Ja],Ae.xa=[Ae.xa];e:if(it=v,be=b,we=j,We=Ae.gb[0],qe=Ae.Ja,ut=Ae.xa,nt=be[0],$e=!r(it,nt,"VP8 "),yt=!r(it,nt,"VP8L"),t(it!=null),t(we!=null),t(qe!=null),t(ut!=null),8>we[0])be=7;else{if($e||yt){if(it=Ie(it,nt+4),12<=We&&it>We-12){be=3;break e}if(Ne&&it>we[0]-8){be=7;break e}qe[0]=it,be[0]+=8,we[0]-=8,ut[0]=yt}else ut[0]=5<=we[0]&&it[nt+0]==47&&!(it[nt+4]>>5),qe[0]=we[0];be=0}if(j=j[0],Ae.Ja=Ae.Ja[0],Ae.xa=Ae.xa[0],b=b[0],be!=0)break;if(4294967286<Ae.Ja)return 3;if(te==null||Le||(te[0]=Ae.xa?2:1),X=[X],Ue=[Ue],Ae.xa){if(5>j){be=7;break}te=X,Ne=Ue,Le=K,v==null||5>j?v=0:5<=j&&v[b+0]==47&&!(v[b+4]>>5)?(we=[0],it=[0],We=[0],ee(qe=new N,v,b,j),gt(qe,we,it,We)?(te!=null&&(te[0]=we[0]),Ne!=null&&(Ne[0]=it[0]),Le!=null&&(Le[0]=We[0]),v=1):v=0):v=0}else{if(10>j){be=7;break}te=Ue,v==null||10>j||!yh(v,b+3,j-3)?v=0:(Ne=v[b+0]|v[b+1]<<8|v[b+2]<<16,Le=16383&(v[b+7]<<8|v[b+6]),v=16383&(v[b+9]<<8|v[b+8]),1&Ne||3<(Ne>>1&7)||!(Ne>>4&1)||Ne>>5>=Ae.Ja||!Le||!v?v=0:(X&&(X[0]=Le),te&&(te[0]=v),v=1))}if(!v||(X=X[0],Ue=Ue[0],Pe&&(se[0]!=X||xe[0]!=Ue)))return 3;re!=null&&(re[0]=Ae,re.offset=b-re.w,t(4294967286>b-re.w),t(re.offset==re.ha-j));break}return be==0||be==7&&Pe&&re==null?(K!=null&&(K[0]|=Ae.na!=null&&0<Ae.na.length),F!=null&&(F[0]=X),z!=null&&(z[0]=Ue),0):be}function cc(v,b,j){var F=b.width,z=b.height,K=0,X=0,te=F,re=z;if(b.Da=v!=null&&0<v.Da,b.Da&&(te=v.cd,re=v.bd,K=v.v,X=v.j,11>j||(K&=-2,X&=-2),0>K||0>X||0>=te||0>=re||K+te>F||X+re>z))return 0;if(b.v=K,b.j=X,b.va=K+te,b.o=X+re,b.U=te,b.T=re,b.da=v!=null&&0<v.da,b.da){if(!Re(te,re,j=[v.ib],K=[v.hb]))return 0;b.ib=j[0],b.hb=K[0]}return b.ob=v!=null&&v.ob,b.Kb=v==null||!v.Sd,b.da&&(b.ob=b.ib<3*F/4&&b.hb<3*z/4,b.Kb=0),1}function fc(v){if(v==null)return 2;if(11>v.S){var b=v.f.RGBA;b.fb+=(v.height-1)*b.A,b.A=-b.A}else b=v.f.kb,v=v.height,b.O+=(v-1)*b.fa,b.fa=-b.fa,b.N+=(v-1>>1)*b.Ab,b.Ab=-b.Ab,b.W+=(v-1>>1)*b.Db,b.Db=-b.Db,b.F!=null&&(b.J+=(v-1)*b.lb,b.lb=-b.lb);return 0}function xl(v,b,j,F){if(F==null||0>=v||0>=b)return 2;if(j!=null){if(j.Da){var z=j.cd,K=j.bd,X=-2&j.v,te=-2&j.j;if(0>X||0>te||0>=z||0>=K||X+z>v||te+K>b)return 2;v=z,b=K}if(j.da){if(!Re(v,b,z=[j.ib],K=[j.hb]))return 2;v=z[0],b=K[0]}}F.width=v,F.height=b;e:{var re=F.width,se=F.height;if(v=F.S,0>=re||0>=se||!(v>=qh&&13>v))v=2;else{if(0>=F.Rd&&F.sd==null){X=K=z=b=0;var xe=(te=re*N5[v])*se;if(11>v||(K=(se+1)/2*(b=(re+1)/2),v==12&&(X=(z=re)*se)),(se=a(xe+2*K+X))==null){v=1;break e}F.sd=se,11>v?((re=F.f.RGBA).eb=se,re.fb=0,re.A=te,re.size=xe):((re=F.f.kb).y=se,re.O=0,re.fa=te,re.Fd=xe,re.f=se,re.N=0+xe,re.Ab=b,re.Cd=K,re.ea=se,re.W=0+xe+K,re.Db=b,re.Ed=K,v==12&&(re.F=se,re.J=0+xe+2*K),re.Tc=X,re.lb=z)}if(b=1,z=F.S,K=F.width,X=F.height,z>=qh&&13>z)if(11>z)v=F.f.RGBA,b&=(te=Math.abs(v.A))*(X-1)+K<=v.size,b&=te>=K*N5[z],b&=v.eb!=null;else{v=F.f.kb,te=(K+1)/2,xe=(X+1)/2,re=Math.abs(v.fa),se=Math.abs(v.Ab);var Pe=Math.abs(v.Db),Ne=Math.abs(v.lb),Ae=Ne*(X-1)+K;b&=re*(X-1)+K<=v.Fd,b&=se*(xe-1)+te<=v.Cd,b=(b&=Pe*(xe-1)+te<=v.Ed)&re>=K&se>=te&Pe>=te,b&=v.y!=null,b&=v.f!=null,b&=v.ea!=null,z==12&&(b&=Ne>=K,b&=Ae<=v.Tc,b&=v.F!=null)}else b=0;v=b?0:2}}return v!=0||j!=null&&j.fd&&(v=fc(F)),v}var xn=64,bl=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],wl=24,_l=32,hc=8,ri=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ve("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(v){return v},k.Predictor2=function(v,b,j){return b[j+0]},k.Predictor3=function(v,b,j){return b[j+1]},k.Predictor4=function(v,b,j){return b[j-1]},k.Predictor5=function(v,b,j){return Xe(Xe(v,b[j+1]),b[j+0])},k.Predictor6=function(v,b,j){return Xe(v,b[j-1])},k.Predictor7=function(v,b,j){return Xe(v,b[j+0])},k.Predictor8=function(v,b,j){return Xe(b[j-1],b[j+0])},k.Predictor9=function(v,b,j){return Xe(b[j+0],b[j+1])},k.Predictor10=function(v,b,j){return Xe(Xe(v,b[j-1]),Xe(b[j+0],b[j+1]))},k.Predictor11=function(v,b,j){var F=b[j+0];return 0>=xt(F>>24&255,v>>24&255,(b=b[j-1])>>24&255)+xt(F>>16&255,v>>16&255,b>>16&255)+xt(F>>8&255,v>>8&255,b>>8&255)+xt(255&F,255&v,255&b)?F:v},k.Predictor12=function(v,b,j){var F=b[j+0];return(ht((v>>24&255)+(F>>24&255)-((b=b[j-1])>>24&255))<<24|ht((v>>16&255)+(F>>16&255)-(b>>16&255))<<16|ht((v>>8&255)+(F>>8&255)-(b>>8&255))<<8|ht((255&v)+(255&F)-(255&b)))>>>0},k.Predictor13=function(v,b,j){var F=b[j-1];return(dt((v=Xe(v,b[j+0]))>>24&255,F>>24&255)<<24|dt(v>>16&255,F>>16&255)<<16|dt(v>>8&255,F>>8&255)<<8|dt(v>>0&255,F>>0&255))>>>0};var u1=k.PredictorAdd0;k.PredictorAdd1=Et,Ve("Predictor2","PredictorAdd2"),Ve("Predictor3","PredictorAdd3"),Ve("Predictor4","PredictorAdd4"),Ve("Predictor5","PredictorAdd5"),Ve("Predictor6","PredictorAdd6"),Ve("Predictor7","PredictorAdd7"),Ve("Predictor8","PredictorAdd8"),Ve("Predictor9","PredictorAdd9"),Ve("Predictor10","PredictorAdd10"),Ve("Predictor11","PredictorAdd11"),Ve("Predictor12","PredictorAdd12"),Ve("Predictor13","PredictorAdd13");var dc=k.PredictorAdd2;Rt("ColorIndexInverseTransform","MapARGB","32b",(function(v){return v>>8&255}),(function(v){return v})),Rt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(v){return v}),(function(v){return v>>8&255}));var Fh,Li=k.ColorIndexInverseTransform,Sl=k.MapARGB,Rh=k.VP8LColorIndexInverseTransformAlpha,Mh=k.MapAlpha,jo=k.VP8LPredictorsAdd=[];jo.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var ys,ni,qn,ko,Ya,Xa,Al,Ja,qr,pc,Un,Ii,Tl,Dh,vc,xs,bs,Lo,ws,El,_s,Io,mc,Fi,Ri,_r,Sr,Ur,nn=a(511),Za=a(2041),gc=a(225),Ol=a(767),Bh=0,c1=Za,$h=gc,gi=Ol,Mi=nn,qh=0,Uh=1,y5=2,zh=3,Wh=4,f1=5,x5=6,h1=7,d1=8,Hh=9,p1=10,VC=[2,3,7],KC=[3,3,11],b5=[280,256,256,256,40],YC=[0,1,1,1,0],XC=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],JC=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],ZC=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],QC=8,v1=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],m1=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],yc=null,ej=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],tj=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],w5=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],rj=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],nj=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ij=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],aj=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Fo=[],ia=[],Qa=[],oj=1,_5=2,Ro=[],Di=[];Fe("UpsampleRgbLinePair",Ut,3),Fe("UpsampleBgrLinePair",jr,3),Fe("UpsampleRgbaLinePair",na,4),Fe("UpsampleBgraLinePair",fn,4),Fe("UpsampleArgbLinePair",jn,4),Fe("UpsampleRgba4444LinePair",Vr,2),Fe("UpsampleRgb565LinePair",Lr,2);var sj=k.UpsampleRgbLinePair,lj=k.UpsampleBgrLinePair,S5=k.UpsampleRgbaLinePair,A5=k.UpsampleBgraLinePair,T5=k.UpsampleArgbLinePair,E5=k.UpsampleRgba4444LinePair,uj=k.UpsampleRgb565LinePair,Gh=16,Vh=1<<Gh-1,xc=-227,g1=482,cj=6,O5=0,fj=a(256),hj=a(256),dj=a(256),pj=a(256),vj=a(g1-xc),mj=a(g1-xc);Na("YuvToRgbRow",Ut,3),Na("YuvToBgrRow",jr,3),Na("YuvToRgbaRow",na,4),Na("YuvToBgraRow",fn,4),Na("YuvToArgbRow",jn,4),Na("YuvToRgba4444Row",Vr,2),Na("YuvToRgb565Row",Lr,2);var P5=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Kh=[0,2,8],gj=[8,7,6,4,4,2,2,2,1,1,1,1],yj=1;this.WebPDecodeRGBA=function(v,b,j,F,z){var K=Uh,X=new ml,te=new di;X.ba=te,te.S=K,te.width=[te.width],te.height=[te.height];var re=te.width,se=te.height,xe=new Zi;if(xe==null||v==null)var Pe=2;else t(xe!=null),Pe=yl(v,b,j,xe.width,xe.height,xe.Pd,xe.Qd,xe.format,null);if(Pe!=0?re=0:(re!=null&&(re[0]=xe.width[0]),se!=null&&(se[0]=xe.height[0]),re=1),re){te.width=te.width[0],te.height=te.height[0],F!=null&&(F[0]=te.width),z!=null&&(z[0]=te.height);e:{if(F=new Ea,(z=new ic).data=v,z.w=b,z.ha=j,z.kd=1,b=[0],t(z!=null),((v=yl(z.data,z.w,z.ha,null,null,null,b,null,z))==0||v==7)&&b[0]&&(v=4),(b=v)==0){if(t(X!=null),F.data=z.data,F.w=z.w+z.offset,F.ha=z.ha-z.offset,F.put=ji,F.ac=rn,F.bc=ki,F.ma=X,z.xa){if((v=ke())==null){X=1;break e}if((function(Ne,Ae){var Ue=[0],Le=[0],be=[0];t:for(;;){if(Ne==null)return 0;if(Ae==null)return Ne.a=2,0;if(Ne.l=Ae,Ne.a=0,ee(Ne.m,Ae.data,Ae.w,Ae.ha),!gt(Ne.m,Ue,Le,be)){Ne.a=3;break t}if(Ne.xb=_5,Ae.width=Ue[0],Ae.height=Le[0],!Ee(Ue[0],Le[0],1,Ne,null))break t;return 1}return t(Ne.a!=0),0})(v,F)){if(F=(b=xl(F.width,F.height,X.Oa,X.ba))==0){t:{F=v;r:for(;;){if(F==null){F=0;break t}if(t(F.s.yc!=null),t(F.s.Ya!=null),t(0<F.s.Wb),t((j=F.l)!=null),t((z=j.ma)!=null),F.xb!=0){if(F.ca=z.ba,F.tb=z.tb,t(F.ca!=null),!cc(z.Oa,j,zh)){F.a=2;break r}if(!Ce(F,j.width)||j.da)break r;if((j.da||zt(F.ca.S))&&Te(),11>F.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),F.ca.f.kb.F!=null&&Te()),F.Pb&&0<F.s.ua&&F.s.vb.X==null&&!ge(F.s.vb,F.s.Wa.Xa)){F.a=1;break r}F.xb=0}if(!pe(F,F.V,F.Ba,F.c,F.i,j.o,de))break r;z.Dc=F.Ma,F=1;break t}t(F.a!=0),F=0}F=!F}F&&(b=v.a)}else b=v.a}else{if((v=new vi)==null){X=1;break e}if(v.Fa=z.na,v.P=z.P,v.qc=z.Sa,xh(v,F)){if((b=xl(F.width,F.height,X.Oa,X.ba))==0){if(v.Aa=0,j=X.Oa,t((z=v)!=null),j!=null){if(0<(re=0>(re=j.Md)?0:100<re?255:255*re/100)){for(se=xe=0;4>se;++se)12>(Pe=z.pb[se]).lc&&(Pe.ia=re*gj[0>Pe.lc?0:Pe.lc]>>3),xe|=Pe.ia;xe&&(alert("todo:VP8InitRandom"),z.ia=1)}z.Ga=j.Id,100<z.Ga?z.Ga=100:0>z.Ga&&(z.Ga=0)}Hp(v,F)||(b=v.a)}}else b=v.a}b==0&&X.Oa!=null&&X.Oa.fd&&(b=fc(X.ba))}X=b}K=X!=0?null:11>K?te.f.RGBA.eb:te.f.kb.y}else K=null;return K};var N5=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function u(k,L){for(var B="",C=0;C<4;C++)B+=String.fromCharCode(k[L++]);return B}function c(k,L){return(k[L+0]<<0|k[L+1]<<8|k[L+2]<<16)>>>0}function f(k,L){return(k[L+0]<<0|k[L+1]<<8|k[L+2]<<16|k[L+3]<<24)>>>0}new l;var d=[0],h=[0],g=[],p=new l,m=e,y=(function(k,L){var B={},C=0,P=!1,M=0,q=0;if(B.frames=[],!(function(I,R,D,G){for(var ce=0;ce<G;ce++)if(I[R+ce]!=D.charCodeAt(ce))return!0;return!1})(k,L,"RIFF",4)){var J,U;for(f(k,L+=4),L+=8;L<k.length;){var H=u(k,L),ee=f(k,L+=4);L+=4;var Z=ee+(1&ee);switch(H){case"VP8 ":case"VP8L":B.frames[C]===void 0&&(B.frames[C]={}),(N=B.frames[C]).src_off=P?q:L-8,N.src_size=M+ee+8,C++,P&&(P=!1,M=0,q=0);break;case"VP8X":(N=B.header={}).feature_flags=k[L];var Q=L+4;N.canvas_width=1+c(k,Q),Q+=3,N.canvas_height=1+c(k,Q),Q+=3;break;case"ALPH":P=!0,M=Z+8,q=L-8;break;case"ANIM":(N=B.header).bgcolor=f(k,L),Q=L+4,N.loop_count=(J=k)[(U=Q)+0]<<0|J[U+1]<<8,Q+=2;break;case"ANMF":var le,N;(N=B.frames[C]={}).offset_x=2*c(k,L),L+=3,N.offset_y=2*c(k,L),L+=3,N.width=1+c(k,L),L+=3,N.height=1+c(k,L),L+=3,N.duration=c(k,L),L+=3,le=k[L++],N.dispose=1&le,N.blend=le>>1&1}H!="ANMF"&&(L+=Z)}return B}})(m,0);y.response=m,y.rgbaoutput=!0,y.dataurl=!1;var x=y.header?y.header:null,w=y.frames?y.frames:null;if(x){x.loop_counter=x.loop_count,d=[x.canvas_height],h=[x.canvas_width];for(var T=0;T<w.length&&w[T].blend!=0;T++);}var _=w[0],O=p.WebPDecodeRGBA(m,_.src_off,_.src_size,h,d);_.rgba=O,_.imgwidth=h[0],_.imgheight=d[0];for(var A=0;A<h[0]*d[0]*4;A++)g[A]=O[A];return this.width=h,this.height=d,this.data=g,this}(function(e){var t=function(){return typeof a2=="function"},r=function(d,h,g,p){var m=4,y=o;switch(p){case e.image_compression.FAST:m=1,y=a;break;case e.image_compression.MEDIUM:m=6,y=s;break;case e.image_compression.SLOW:m=9,y=l}d=n(d,h,g,y);var x=a2(d,{level:m});return e.__addimage__.arrayBufferToBinaryString(x)},n=function(d,h,g,p){for(var m,y,x,w=d.length/h,T=new Uint8Array(d.length+w),_=c(),O=0;O<w;O+=1){if(x=O*h,m=d.subarray(x,x+h),p)T.set(p(m,g,y),x+O);else{for(var A,k=_.length,L=[];A<k;A+=1)L[A]=_[A](m,g,y);var B=f(L.concat());T.set(L[B],x+O)}y=m}return T},i=function(d){var h=Array.apply([],d);return h.unshift(0),h},a=function(d,h){var g,p=[],m=d.length;p[0]=1;for(var y=0;y<m;y+=1)g=d[y-h]||0,p[y+1]=d[y]-g+256&255;return p},o=function(d,h,g){var p,m=[],y=d.length;m[0]=2;for(var x=0;x<y;x+=1)p=g&&g[x]||0,m[x+1]=d[x]-p+256&255;return m},s=function(d,h,g){var p,m,y=[],x=d.length;y[0]=3;for(var w=0;w<x;w+=1)p=d[w-h]||0,m=g&&g[w]||0,y[w+1]=d[w]+256-(p+m>>>1)&255;return y},l=function(d,h,g){var p,m,y,x,w=[],T=d.length;w[0]=4;for(var _=0;_<T;_+=1)p=d[_-h]||0,m=g&&g[_]||0,y=g&&g[_-h]||0,x=u(p,m,y),w[_+1]=d[_]-x+256&255;return w},u=function(d,h,g){if(d===h&&h===g)return d;var p=Math.abs(h-g),m=Math.abs(d-g),y=Math.abs(d+h-g-g);return p<=m&&p<=y?d:m<=y?h:g},c=function(){return[i,a,o,s,l]},f=function(d){var h=d.map((function(g){return g.reduce((function(p,m){return p+Math.abs(m)}),0)}));return h.indexOf(Math.min.apply(null,h))};e.processPNG=function(d,h,g,p){var m,y,x,w,T,_,O,A,k,L,B,C,P,M,q,J=this.decode.FLATE_DECODE,U="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(x=new Gk(d)).imgData,y=x.bits,m=x.colorSpace,T=x.colors,[4,6].indexOf(x.colorType)!==-1){if(x.bits===8){k=(A=x.pixelBitlength==32?new Uint32Array(x.decodePixels().buffer):x.pixelBitlength==16?new Uint16Array(x.decodePixels().buffer):new Uint8Array(x.decodePixels().buffer)).length,B=new Uint8Array(k*x.colors),L=new Uint8Array(k);var H,ee=x.pixelBitlength-x.bits;for(M=0,q=0;M<k;M++){for(P=A[M],H=0;H<ee;)B[q++]=P>>>H&255,H+=x.bits;L[M]=P>>>H&255}}if(x.bits===16){k=(A=new Uint32Array(x.decodePixels().buffer)).length,B=new Uint8Array(k*(32/x.pixelBitlength)*x.colors),L=new Uint8Array(k*(32/x.pixelBitlength)),C=x.colors>1,M=0,q=0;for(var Z=0;M<k;)P=A[M++],B[q++]=P>>>0&255,C&&(B[q++]=P>>>16&255,P=A[M++],B[q++]=P>>>0&255),L[Z++]=P>>>16&255;y=8}p!==e.image_compression.NONE&&t()?(d=r(B,x.width*x.colors,x.colors,p),O=r(L,x.width,1,p)):(d=B,O=L,J=void 0)}if(x.colorType===3&&(m=this.color_spaces.INDEXED,_=x.palette,x.transparency.indexed)){var Q=x.transparency.indexed,le=0;for(M=0,k=Q.length;M<k;++M)le+=Q[M];if((le/=255)===k-1&&Q.indexOf(0)!==-1)w=[Q.indexOf(0)];else if(le!==k){for(A=x.decodePixels(),L=new Uint8Array(A.length),M=0,k=A.length;M<k;M++)L[M]=Q[A[M]];O=r(L,x.width,1)}}var N=(function(I){var R;switch(I){case e.image_compression.FAST:R=11;break;case e.image_compression.MEDIUM:R=13;break;case e.image_compression.SLOW:R=14;break;default:R=12}return R})(p);return J===this.decode.FLATE_DECODE&&(U="/Predictor "+N+" "),U+="/Colors "+T+" /BitsPerComponent "+y+" /Columns "+x.width,(this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),(O&&this.__addimage__.isArrayBuffer(O)||this.__addimage__.isArrayBufferView(O))&&(O=this.__addimage__.arrayBufferToBinaryString(O)),{alias:g,data:d,index:h,filter:J,decodeParameters:U,transparency:w,palette:_,sMask:O,predictor:N,width:x.width,height:x.height,bitsPerComponent:y,colorSpace:m}}}})(vt.API),(function(e){e.processGIF89A=function(t,r,n,i){var a=new Vk(t),o=a.width,s=a.height,l=[];a.decodeAndBlitFrameRGBA(0,l);var u={data:l,width:o,height:s},c=new R1(100).encode(u,100);return e.processJPEG.call(this,c,r,n,i)},e.processGIF87A=e.processGIF89A})(vt.API),sa.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:n,blue:r,quad:a}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},sa.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(r){xr.log("bit decode error:"+r)}},sa.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[a>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}r!==0&&(this.pos+=4-r)}},sa.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<e;i++){var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*i*4,s=a>>4,l=15&a,u=this.palette[s];if(this.data[o]=u.blue,this.data[o+1]=u.green,this.data[o+2]=u.red,this.data[o+3]=255,2*i+1>=this.width)break;u=this.palette[l],this.data[o+4]=u.blue,this.data[o+4+1]=u.green,this.data[o+4+2]=u.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},sa.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+4*n;if(i<this.palette.length){var o=this.palette[i];this.data[a]=o.red,this.data[a+1]=o.green,this.data[a+2]=o.blue,this.data[a+3]=255}else this.data[a]=255,this.data[a+1]=255,this.data[a+2]=255,this.data[a+3]=255}e!==0&&(this.pos+=4-e)}},sa.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&t)/t*255|0,s=(a>>5&t)/t*255|0,l=(a>>10&t)/t*255|0,u=a>>15?255:0,c=n*this.width*4+4*i;this.data[c]=l,this.data[c+1]=s,this.data[c+2]=o,this.data[c+3]=u}this.pos+=e}},sa.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var i=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&r)/r*255|0,u=(o>>11)/t*255|0,c=i*this.width*4+4*a;this.data[c]=u,this.data[c+1]=l,this.data[c+2]=s,this.data[c+3]=255}this.pos+=e}},sa.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=a,this.data[o+1]=i,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},sa.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=a,this.data[s+1]=i,this.data[s+2]=n,this.data[s+3]=o}},sa.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,r,n,i){var a=new sa(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new R1(100).encode(l,100);return e.processJPEG.call(this,u,r,n,i)}})(vt.API),fw.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,r,n,i){var a=new fw(t),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},u=new R1(100).encode(l,100);return e.processJPEG.call(this,u,r,n,i)}})(vt.API),vt.API.processRGBA=function(e,t,r){for(var n=e.data,i=n.length,a=new Uint8Array(i/4*3),o=new Uint8Array(i/4),s=0,l=0,u=0;u<i;u+=4){var c=n[u],f=n[u+1],d=n[u+2],h=n[u+3];a[s++]=c,a[s++]=f,a[s++]=d,o[l++]=h}var g=this.__addimage__.arrayBufferToBinaryString(a);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:g,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},vt.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},Ll=vt.API,l0=Ll.getCharWidthsArray=function(e,t){var r,n,i=(t=t||{}).font||this.internal.getFont(),a=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,u=t.kerning?t.kerning:i.metadata.Unicode.kerning,c=u.fof?u.fof:1,f=t.doKerning!==!1,d=0,h=e.length,g=0,p=s[0]||l,m=[];for(r=0;r<h;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?m.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+o*(1e3/a)||0)/1e3):(d=f&&ir(u[n])==="object"&&!isNaN(parseInt(u[n][g],10))?u[n][g]/c:0,m.push((s[n]||p)/l+d)),g=n;return m},sw=Ll.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Ll.processArabic&&(e=Ll.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,i)/r:l0.apply(this,arguments).reduce((function(a,o){return a+o}),0)},lw=function(e,t,r,n){for(var i=[],a=0,o=e.length,s=0;a!==o&&s+t[a]<r;)s+=t[a],a++;i.push(e.slice(0,a));var l=a;for(s=0;a!==o;)s+t[a]>n&&(i.push(e.slice(l,a)),s=0,l=a),s+=t[a],a++;return l!==a&&i.push(e.slice(l,a)),i},uw=function(e,t,r){r||(r={});var n,i,a,o,s,l,u,c=[],f=[c],d=r.textIndent||0,h=0,g=0,p=e.split(" "),m=l0.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?p[0].length+2:r.lineIndent||0){var y=Array(l).join(" "),x=[];p.map((function(T){(T=T.split(/\s*\n/)).length>1?x=x.concat(T.map((function(_,O){return(O&&_.length?`
214
+ `:"")+_}))):x.push(T[0])})),p=x,l=sw.apply(this,[y,r])}for(a=0,o=p.length;a<o;a++){var w=0;if(n=p[a],l&&n[0]==`
215
+ `&&(n=n.substr(1),w=1),d+h+(g=(i=l0.apply(this,[n,r])).reduce((function(T,_){return T+_}),0))>t||w){if(g>t){for(s=lw.apply(this,[n,i,t-(d+h),t]),c.push(s.shift()),c=[s.pop()];s.length;)f.push([s.shift()]);g=i.slice(n.length-(c[0]?c[0].length:0)).reduce((function(T,_){return T+_}),0)}else c=[n];f.push(c),d=g+l,h=m}else c.push(n),d+=h+g,h=m}return u=l?function(T,_){return(_?y:"")+T.join(" ")}:function(T){return T.join(" ")},f.map(u)},Ll.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=(function(c){if(c.widths&&c.kerning)return{widths:c.widths,kerning:c.kerning};var f=this.internal.getFont(c.fontName,c.fontStyle);return f.metadata.Unicode?{widths:f.metadata.Unicode.widths||{0:1},kerning:f.metadata.Unicode.kerning||{}}:{font:f.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/i;a.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/i:0,a.lineIndent=r.lineIndent;var s,l,u=[];for(s=0,l=n.length;s<l;s++)u=u.concat(uw.apply(this,[n[s],o,a]));return u},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",r={},n={},i=0;i<t.length;i++)r[t[i]]="0123456789abcdef"[i],n["0123456789abcdef"[i]]=t[i];var a=function(f){return"0x"+parseInt(f,10).toString(16)},o=e.__fontmetrics__.compress=function(f){var d,h,g,p,m=["{"];for(var y in f){if(d=f[y],isNaN(parseInt(y,10))?h="'"+y+"'":(y=parseInt(y,10),h=(h=a(y).slice(2)).slice(0,-1)+n[h.slice(-1)]),typeof d=="number")d<0?(g=a(d).slice(3),p="-"):(g=a(d).slice(2),p=""),g=p+g.slice(0,-1)+n[g.slice(-1)];else{if(ir(d)!=="object")throw new Error("Don't know what to do with value type "+ir(d)+".");g=o(d)}m.push(h+g)}return m.push("}"),m.join("")},s=e.__fontmetrics__.uncompress=function(f){if(typeof f!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,h,g,p,m={},y=1,x=m,w=[],T="",_="",O=f.length-1,A=1;A<O;A+=1)(p=f[A])=="'"?d?(g=d.join(""),d=void 0):d=[]:d?d.push(p):p=="{"?(w.push([x,g]),x={},g=void 0):p=="}"?((h=w.pop())[0][h[1]]=x,g=void 0,x=h[0]):p=="-"?y=-1:g===void 0?r.hasOwnProperty(p)?(T+=r[p],g=parseInt(T,16)*y,y=1,T=""):T+=p:r.hasOwnProperty(p)?(_+=r[p],x[g]=parseInt(_,16)*y,y=1,g=void 0,_=""):_+=p;return m},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},u={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},c={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(f){var d=f.font,h=c.Unicode[d.postScriptName];h&&(d.metadata.Unicode={},d.metadata.Unicode.widths=h.widths,d.metadata.Unicode.kerning=h.kerning);var g=u.Unicode[d.postScriptName];g&&(d.metadata.Unicode.encoding=g,d.encoding=g.codePages[0])}])})(vt.API),(function(e){var t=function(r){for(var n=r.length,i=new Uint8Array(n),a=0;a<n;a++)i[a]=r.charCodeAt(a);return i};e.API.events.push(["addFont",function(r){var n=void 0,i=r.font,a=r.instance;if(!i.isStandardFont){if(a===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if(typeof(n=a.existsFileInVFS(i.postScriptName)===!1?a.loadFile(i.postScriptName):a.getFileFromVFS(i.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(Uc(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,n)}}])})(vt),(function(e){function t(){return(_t.canvg?Promise.resolve(_t.canvg):Promise.resolve().then(()=>require("./index.es-C8xf58cD.js"))).catch((function(r){return Promise.reject(new Error("Could not load canvg: "+r))})).then((function(r){return r.default?r.default:r}))}vt.API.addSvgAsImage=function(r,n,i,a,o,s,l,u){if(isNaN(n)||isNaN(i))throw xr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(o))throw xr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=a,c.height=o;var f=c.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return t().then((function(g){return g.fromString(f,r,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(g){return g.render(d)})).then((function(){h.addImage(c.toDataURL("image/jpeg",1),n,i,a,o,l,u)}))}})(),vt.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var i=0;i<this.internal.pages[n].length;i++)this.internal.pages[n][i]=this.internal.pages[n][i].replace(t,r);return this},vt.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,i,a,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],u=0,c=0,f=0;function d(g,p){var m,y=!1;for(m=0;m<g.length;m+=1)g[m]===p&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var h=s.length;for(f=0;f<h;f+=1)r[s[f]].value=r[s[f]].defaultValue,r[s[f]].explicitSet=!1}if(ir(e)==="object"){for(i in e)if(a=e[i],d(s,i)&&a!==void 0){if(r[i].type==="boolean"&&typeof a=="boolean")r[i].value=a;else if(r[i].type==="name"&&d(r[i].valueSet,a))r[i].value=a;else if(r[i].type==="integer"&&Number.isInteger(a))r[i].value=a;else if(r[i].type==="array"){for(u=0;u<a.length;u+=1)if(n=!0,a[u].length===1&&typeof a[u][0]=="number")l.push(String(a[u]-1));else if(a[u].length>1){for(c=0;c<a[u].length;c+=1)typeof a[u][c]!="number"&&(n=!1);n===!0&&l.push([a[u][0]-1,a[u][1]-1].join(" "))}r[i].value="["+l.join(" ")+"]"}else r[i].value=r[i].defaultValue;r[i].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var g,p=[];for(g in r)r[g].explicitSet===!0&&(r[g].type==="name"?p.push("/"+g+" /"+r[g].value):p.push("/"+g+" "+r[g].value));p.length!==0&&this.internal.write(`/ViewerPreferences
216
+ <<
217
+ `+p.join(`
218
+ `)+`
219
+ >>`)})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},(function(e){var t=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',i=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),a=unescape(encodeURIComponent(n)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),u=a.length+o.length+s.length+i.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+u+" >>"),this.internal.write("stream"),this.internal.write(i+a+o+s+l),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(n,i){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:i||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}})(vt.API),(function(e){var t=e.API,r=t.pdfEscape16=function(a,o){for(var s,l=o.metadata.Unicode.widths,u=["","0","00","000","0000"],c=[""],f=0,d=a.length;f<d;++f){if(s=o.metadata.characterToGlyph(a.charCodeAt(f)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=a.charCodeAt(f),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return c.join("");s=s.toString(16),c.push(u[4-s.length],s)}return c.join("")},n=function(a){var o,s,l,u,c,f,d;for(c=`/CIDInit /ProcSet findresource begin
220
+ 12 dict begin
221
+ begincmap
222
+ /CIDSystemInfo <<
223
+ /Registry (Adobe)
224
+ /Ordering (UCS)
225
+ /Supplement 0
226
+ >> def
227
+ /CMapName /Adobe-Identity-UCS def
228
+ /CMapType 2 def
229
+ 1 begincodespacerange
230
+ <0000><ffff>
231
+ endcodespacerange`,l=[],f=0,d=(s=Object.keys(a).sort((function(h,g){return h-g}))).length;f<d;f++)o=s[f],l.length>=100&&(c+=`
232
+ `+l.length+` beginbfchar
233
+ `+l.join(`
234
+ `)+`
235
+ endbfchar`,l=[]),a[o]!==void 0&&a[o]!==null&&typeof a[o].toString=="function"&&(u=("0000"+a[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+u+">"));return l.length&&(c+=`
236
+ `+l.length+` beginbfchar
237
+ `+l.join(`
238
+ `)+`
239
+ endbfchar
240
+ `),c+=`endcmap
241
+ CMapName currentdict /CMap defineresource pop
242
+ end
243
+ end`};t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,u=o.newObject,c=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var f=s.metadata.Unicode.widths,d=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),h="",g=0;g<d.length;g++)h+=String.fromCharCode(d[g]);var p=u();c({data:h,addLength1:!0,objectId:p}),l("endobj");var m=u();c({data:n(s.metadata.toUnicode),addLength1:!0,objectId:m}),l("endobj");var y=u();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+zl(s.fontName)),l("/FontFile2 "+p+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var x=u();l("<<"),l("/Type /Font"),l("/BaseFont /"+zl(s.fontName)),l("/FontDescriptor "+y+" 0 R"),l("/W "+e.API.PDFObject.convert(f)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=u(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+m+" 0 R"),l("/BaseFont /"+zl(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+x+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,u=o.newObject,c=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var f=s.metadata.rawData,d="",h=0;h<f.length;h++)d+=String.fromCharCode(f[h]);var g=u();c({data:d,addLength1:!0,objectId:g}),l("endobj");var p=u();c({data:n(s.metadata.toUnicode),addLength1:!0,objectId:p}),l("endobj");var m=u();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+g+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+zl(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=u();for(var y=0;y<s.metadata.hmtx.widths.length;y++)s.metadata.hmtx.widths[y]=parseInt(s.metadata.hmtx.widths[y]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+p+" 0 R/BaseFont/"+zl(s.fontName)+"/FontDescriptor "+m+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]);var i=function(a){var o,s=a.text||"",l=a.x,u=a.y,c=a.options||{},f=a.mutex||{},d=f.pdfEscape,h=f.activeFontKey,g=f.fonts,p=h,m="",y=0,x="",w=g[p].encoding;if(g[p].encoding!=="Identity-H")return{text:s,x:l,y:u,options:c,mutex:f};for(x=s,p=h,Array.isArray(s)&&(x=s[0]),y=0;y<x.length;y+=1)g[p].metadata.hasOwnProperty("cmap")&&(o=g[p].metadata.cmap.unicode.codeMap[x[y].charCodeAt(0)]),o||x[y].charCodeAt(0)<256&&g[p].metadata.hasOwnProperty("Unicode")?m+=x[y]:m+="";var T="";return parseInt(p.slice(1))<14||w==="WinAnsiEncoding"?T=d(m,p).split("").map((function(_){return _.charCodeAt(0).toString(16)})).join(""):w==="Identity-H"&&(T=r(m,g[p])),f.isHex=!0,{text:T,x:l,y:u,options:c,mutex:f}};t.events.push(["postProcessText",function(a){var o=a.text||"",s=[],l={text:o,x:a.x,y:a.y,options:a.options,mutex:a.mutex};if(Array.isArray(o)){var u=0;for(u=0;u<o.length;u+=1)Array.isArray(o[u])&&o[u].length===3?s.push([i(Object.assign({},l,{text:o[u][0]})).text,o[u][1],o[u][2]]):s.push(i(Object.assign({},l,{text:o[u]})).text);a.text=s}else a.text=i(Object.assign({},l,{text:o})).text}])})(vt),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}})(vt.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,a,o,s,l,u,c,f=t,d=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],g={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},m=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],y=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),x=!1,w=0;this.__bidiEngine__={};var T=function(C){var P=C.charCodeAt(),M=P>>8,q=p[M];return q!==void 0?f[256*q+(255&P)]:M===252||M===253?"AL":y.test(M)?"L":M===8?"R":"N"},_=function(C){for(var P,M=0;M<C.length;M++){if((P=T(C.charAt(M)))==="L")return!1;if(P==="R")return!0}return!1},O=function(C,P,M,q){var J,U,H,ee,Z=P[q];switch(Z){case"L":case"R":x=!1;break;case"N":case"AN":break;case"EN":x&&(Z="AN");break;case"AL":x=!0,Z="R";break;case"WS":Z="N";break;case"CS":q<1||q+1>=P.length||(J=M[q-1])!=="EN"&&J!=="AN"||(U=P[q+1])!=="EN"&&U!=="AN"?Z="N":x&&(U="AN"),Z=U===J?U:"N";break;case"ES":Z=(J=q>0?M[q-1]:"B")==="EN"&&q+1<P.length&&P[q+1]==="EN"?"EN":"N";break;case"ET":if(q>0&&M[q-1]==="EN"){Z="EN";break}if(x){Z="N";break}for(H=q+1,ee=P.length;H<ee&&P[H]==="ET";)H++;Z=H<ee&&P[H]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(ee=P.length,H=q+1;H<ee&&P[H]==="NSM";)H++;if(H<ee){var Q=C[q],le=Q>=1425&&Q<=2303||Q===64286;if(J=P[H],le&&(J==="R"||J==="AL")){Z="R";break}}}Z=q<1||(J=P[q-1])==="B"?"N":M[q-1];break;case"B":x=!1,i=!0,Z=w;break;case"S":a=!0,Z="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":x=!1;break;case"BN":Z="N"}return Z},A=function(C,P,M){var q=C.split("");return M&&k(q,M,{hiLevel:w}),q.reverse(),P&&P.reverse(),q.join("")},k=function(C,P,M){var q,J,U,H,ee,Z=-1,Q=C.length,le=0,N=[],I=w?h:d,R=[];for(x=!1,i=!1,a=!1,J=0;J<Q;J++)R[J]=T(C[J]);for(U=0;U<Q;U++){if(ee=le,N[U]=O(C,R,N,U),q=240&(le=I[ee][g[N[U]]]),le&=15,P[U]=H=I[le][5],q>0)if(q===16){for(J=Z;J<U;J++)P[J]=1;Z=-1}else Z=-1;if(I[le][6])Z===-1&&(Z=U);else if(Z>-1){for(J=Z;J<U;J++)P[J]=H;Z=-1}R[U]==="B"&&(P[U]=0),M.hiLevel|=H}a&&(function(D,G,ce){for(var he=0;he<ce;he++)if(D[he]==="S"){G[he]=w;for(var ne=he-1;ne>=0&&D[ne]==="WS";ne--)G[ne]=w}})(R,P,Q)},L=function(C,P,M,q,J){if(!(J.hiLevel<C)){if(C===1&&w===1&&!i)return P.reverse(),void(M&&M.reverse());for(var U,H,ee,Z,Q=P.length,le=0;le<Q;){if(q[le]>=C){for(ee=le+1;ee<Q&&q[ee]>=C;)ee++;for(Z=le,H=ee-1;Z<H;Z++,H--)U=P[Z],P[Z]=P[H],P[H]=U,M&&(U=M[Z],M[Z]=M[H],M[H]=U);le=ee}le++}}},B=function(C,P,M){var q=C.split(""),J={hiLevel:w};return M||(M=[]),k(q,M,J),(function(U,H,ee){if(ee.hiLevel!==0&&c)for(var Z,Q=0;Q<U.length;Q++)H[Q]===1&&(Z=m.indexOf(U[Q]))>=0&&(U[Q]=m[Z+1])})(q,M,J),L(2,q,P,M,J),L(1,q,P,M,J),q.join("")};return this.__bidiEngine__.doBidiReorder=function(C,P,M){if((function(J,U){if(U)for(var H=0;H<J.length;H++)U[H]=H;s===void 0&&(s=_(J)),u===void 0&&(u=_(J))})(C,P),o||!l||u)if(o&&l&&s^u)w=s?1:0,C=A(C,P,M);else if(!o&&l&&u)w=s?1:0,C=B(C,P,M),C=A(C,P);else if(!o||s||l||u){if(o&&!l&&s^u)C=A(C,P),s?(w=0,C=B(C,P,M)):(w=1,C=B(C,P,M),C=A(C,P));else if(o&&s&&!l&&u)w=1,C=B(C,P,M),C=A(C,P);else if(!o&&!l&&s^u){var q=c;s?(w=1,C=B(C,P,M),w=0,c=!1,C=B(C,P,M),c=q):(w=0,C=B(C,P,M),C=A(C,P),w=1,c=!1,C=B(C,P,M),c=q,C=A(C,P))}}else w=0,C=B(C,P,M);else w=s?1:0,C=B(C,P,M);return C},this.__bidiEngine__.setOptions=function(C){C&&(o=C.isInputVisual,l=C.isOutputVisual,s=C.isInputRtl,u=C.isOutputRtl,c=C.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var i=n.text,a=(n.x,n.y,n.options||{}),o=(n.mutex,a.lang,[]);if(a.isInputVisual=typeof a.isInputVisual!="boolean"||a.isInputVisual,r.setOptions(a),Object.prototype.toString.call(i)==="[object Array]"){var s=0;for(o=[],s=0;s<i.length;s+=1)Object.prototype.toString.call(i[s])==="[object Array]"?o.push([r.doBidiReorder(i[s][0]),i[s][1],i[s][2]]):o.push([r.doBidiReorder(i[s])]);n.text=o}else n.text=r.doBidiReorder(i);r.setOptions({isInputVisual:!0})}])})(vt),vt.API.TTFFont=(function(){function e(t){var r;if(this.rawData=t,r=this.contents=new as(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new lL(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Kk(this.contents),this.head=new Xk(this),this.name=new tL(this),this.cmap=new IO(this),this.toUnicode={},this.hhea=new Jk(this),this.maxp=new rL(this),this.hmtx=new nL(this),this.post=new Qk(this),this.os2=new Zk(this),this.loca=new sL(this),this.glyf=new iL(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,r,n,i,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,s,l,u;for(u=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],u.push(Math.round(t*this.scaleFactor));return u}).call(this),this.stemV=0,this.post.exists?(n=255&(i=this.post.italic_angle),(32768&(r=i>>16))!=0&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(a=this.familyClass)===1||a===2||a===3||a===4||a===5||a===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var i,a,o,s;for(o=0,a=0,s=(t=""+t).length;0<=s?a<s:a>s;a=0<=s?++a:--a)i=t.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(i))+n*(1e3/r)||0;return o*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e})();var _a,as=(function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,i;for(i=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)i.push(this.writeByte(t.charCodeAt(r)));return i},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,i,a,o,s,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^i)+16777216*(255^a)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*i+16777216*a+65536*o+256*s+l},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,i,a;for(a=[],n=0,i=t.length;n<i;n++)r=t[n],a.push(this.writeByte(r));return a},e})(),Kk=(function(){var e;function t(r){var n,i,a;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},i=0,a=this.tableCount;0<=a?i<a:i>a;i=0<=a?++i:--i)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,i,a,o,s,l,u,c,f,d,h,g,p;for(p in h=Object.keys(r).length,l=Math.log(2),f=16*Math.floor(Math.log(h)/l),o=Math.floor(f/l),c=16*h-f,(i=new as).writeInt(this.scalarType),i.writeShort(h),i.writeShort(f),i.writeShort(o),i.writeShort(c),a=16*h,u=i.pos+a,s=null,g=[],r)for(d=r[p],i.writeString(p),i.writeInt(e(d)),i.writeInt(u),i.writeInt(d.length),g=g.concat(d),p==="head"&&(s=u),u+=d.length;u%4;)g.push(0),u++;return i.write(g),n=2981146554-e(i.data),i.pos=s+8,i.writeUInt32(n),i.data},e=function(r){var n,i,a,o;for(r=FO.call(r);r.length%4;)r.push(0);for(a=new as(r),i=0,n=0,o=r.length;n<o;n=n+=4)i+=a.readUInt32();return 4294967295&i},t})(),Yk={}.hasOwnProperty,Ua=function(e,t){for(var r in t)Yk.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};_a=(function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var Xk=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="head",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.revision=r.readInt(),this.checkSumAdjustment=r.readInt(),this.magicNumber=r.readInt(),this.flags=r.readShort(),this.unitsPerEm=r.readShort(),this.created=r.readLongLong(),this.modified=r.readLongLong(),this.xMin=r.readShort(),this.yMin=r.readShort(),this.xMax=r.readShort(),this.yMax=r.readShort(),this.macStyle=r.readShort(),this.lowestRecPPEM=r.readShort(),this.fontDirectionHint=r.readShort(),this.indexToLocFormat=r.readShort(),this.glyphDataFormat=r.readShort()},t.prototype.encode=function(r){var n;return(n=new as).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(r),n.writeShort(this.glyphDataFormat),n.data},t})(),hw=(function(){function e(t,r){var n,i,a,o,s,l,u,c,f,d,h,g,p,m,y,x,w;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),f=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(h=t.readUInt16(),d=h/2,t.pos+=6,a=(function(){var T,_;for(_=[],l=T=0;0<=d?T<d:T>d;l=0<=d?++T:--T)_.push(t.readUInt16());return _})(),t.pos+=2,p=(function(){var T,_;for(_=[],l=T=0;0<=d?T<d:T>d;l=0<=d?++T:--T)_.push(t.readUInt16());return _})(),u=(function(){var T,_;for(_=[],l=T=0;0<=d?T<d:T>d;l=0<=d?++T:--T)_.push(t.readUInt16());return _})(),c=(function(){var T,_;for(_=[],l=T=0;0<=d?T<d:T>d;l=0<=d?++T:--T)_.push(t.readUInt16());return _})(),i=(this.length-t.pos+this.offset)/2,s=(function(){var T,_;for(_=[],l=T=0;0<=i?T<i:T>i;l=0<=i?++T:--T)_.push(t.readUInt16());return _})(),l=y=0,w=a.length;y<w;l=++y)for(m=a[l],n=x=g=p[l];g<=m?x<=m:x>=m;n=g<=m?++x:--x)c[l]===0?o=n+u[l]:(o=s[c[l]/2+(n-g)-(d-l)]||0)!==0&&(o+=u[l]),this.codeMap[n]=65535&o}t.pos=f}return e.encode=function(t,r){var n,i,a,o,s,l,u,c,f,d,h,g,p,m,y,x,w,T,_,O,A,k,L,B,C,P,M,q,J,U,H,ee,Z,Q,le,N,I,R,D,G,ce,he,ne,me,Se,ue;switch(q=new as,o=Object.keys(t).sort((function(Ie,ge){return Ie-ge})),r){case"macroman":for(p=0,m=(function(){var Ie=[];for(g=0;g<256;++g)Ie.push(0);return Ie})(),x={0:0},a={},J=0,Z=o.length;J<Z;J++)x[ne=t[i=o[J]]]==null&&(x[ne]=++p),a[i]={old:t[i],new:x[t[i]]},m[i]=x[t[i]];return q.writeUInt16(1),q.writeUInt16(0),q.writeUInt32(12),q.writeUInt16(0),q.writeUInt16(262),q.writeUInt16(0),q.write(m),{charMap:a,subtable:q.data,maxGlyphID:p+1};case"unicode":for(P=[],f=[],w=0,x={},n={},y=u=null,U=0,Q=o.length;U<Q;U++)x[_=t[i=o[U]]]==null&&(x[_]=++w),n[i]={old:_,new:x[_]},s=x[_]-i,y!=null&&s===u||(y&&f.push(y),P.push(i),u=s),y=i;for(y&&f.push(y),f.push(65535),P.push(65535),B=2*(L=P.length),k=2*Math.pow(Math.log(L)/Math.LN2,2),d=Math.log(k/2)/Math.LN2,A=2*L-k,l=[],O=[],h=[],g=H=0,le=P.length;H<le;g=++H){if(C=P[g],c=f[g],C===65535){l.push(0),O.push(0);break}if(C-(M=n[C].new)>=32768)for(l.push(0),O.push(2*(h.length+L-g)),i=ee=C;C<=c?ee<=c:ee>=c;i=C<=c?++ee:--ee)h.push(n[i].new);else l.push(M-C),O.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*L+2*h.length),q.writeUInt16(0),q.writeUInt16(B),q.writeUInt16(k),q.writeUInt16(d),q.writeUInt16(A),ce=0,N=f.length;ce<N;ce++)i=f[ce],q.writeUInt16(i);for(q.writeUInt16(0),he=0,I=P.length;he<I;he++)i=P[he],q.writeUInt16(i);for(me=0,R=l.length;me<R;me++)s=l[me],q.writeUInt16(s);for(Se=0,D=O.length;Se<D;Se++)T=O[Se],q.writeUInt16(T);for(ue=0,G=h.length;ue<G;ue++)p=h[ue],q.writeUInt16(p);return{charMap:n,subtable:q.data,maxGlyphID:w+1}}},e})(),IO=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="cmap",t.prototype.parse=function(r){var n,i,a;for(r.pos=this.offset,this.version=r.readUInt16(),a=r.readUInt16(),this.tables=[],this.unicode=null,i=0;0<=a?i<a:i>a;i=0<=a?++i:--i)n=new hw(r,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},t.encode=function(r,n){var i,a;return n==null&&(n="macroman"),i=hw.encode(r,n),(a=new as).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},t})(),Jk=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="hhea",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.ascender=r.readShort(),this.decender=r.readShort(),this.lineGap=r.readShort(),this.advanceWidthMax=r.readShort(),this.minLeftSideBearing=r.readShort(),this.minRightSideBearing=r.readShort(),this.xMaxExtent=r.readShort(),this.caretSlopeRise=r.readShort(),this.caretSlopeRun=r.readShort(),this.caretOffset=r.readShort(),r.pos+=8,this.metricDataFormat=r.readShort(),this.numberOfMetrics=r.readUInt16()},t})(),Zk=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="OS/2",t.prototype.parse=function(r){if(r.pos=this.offset,this.version=r.readUInt16(),this.averageCharWidth=r.readShort(),this.weightClass=r.readUInt16(),this.widthClass=r.readUInt16(),this.type=r.readShort(),this.ySubscriptXSize=r.readShort(),this.ySubscriptYSize=r.readShort(),this.ySubscriptXOffset=r.readShort(),this.ySubscriptYOffset=r.readShort(),this.ySuperscriptXSize=r.readShort(),this.ySuperscriptYSize=r.readShort(),this.ySuperscriptXOffset=r.readShort(),this.ySuperscriptYOffset=r.readShort(),this.yStrikeoutSize=r.readShort(),this.yStrikeoutPosition=r.readShort(),this.familyClass=r.readShort(),this.panose=(function(){var n,i;for(i=[],n=0;n<10;++n)i.push(r.readByte());return i})(),this.charRange=(function(){var n,i;for(i=[],n=0;n<4;++n)i.push(r.readInt());return i})(),this.vendorID=r.readString(4),this.selection=r.readShort(),this.firstCharIndex=r.readShort(),this.lastCharIndex=r.readShort(),this.version>0&&(this.ascent=r.readShort(),this.descent=r.readShort(),this.lineGap=r.readShort(),this.winAscent=r.readShort(),this.winDescent=r.readShort(),this.codePageRange=(function(){var n,i;for(i=[],n=0;n<2;n=++n)i.push(r.readInt());return i})(),this.version>1))return this.xHeight=r.readShort(),this.capHeight=r.readShort(),this.defaultChar=r.readShort(),this.breakChar=r.readShort(),this.maxContext=r.readShort()},t})(),Qk=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="post",t.prototype.parse=function(r){var n,i,a;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:var o;for(i=r.readUInt16(),this.glyphNameIndex=[],o=0;0<=i?o<i:o>i;o=0<=i?++o:--o)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],a=[];r.pos<this.offset+this.length;)n=r.readByte(),a.push(this.names.push(r.readString(n)));return a;case 151552:return i=r.readUInt16(),this.offsets=r.read(i);case 196608:break;case 262144:return this.map=(function(){var s,l,u;for(u=[],o=s=0,l=this.file.maxp.numGlyphs;0<=l?s<l:s>l;o=0<=l?++s:--s)u.push(r.readUInt32());return u}).call(this)}},t})(),eL=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},tL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="name",t.prototype.parse=function(r){var n,i,a,o,s,l,u,c,f,d,h;for(r.pos=this.offset,r.readShort(),n=r.readShort(),l=r.readShort(),i=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)i.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+l+r.readShort()});for(u={},o=f=0,d=i.length;f<d;o=++f)a=i[o],r.pos=a.offset,c=r.readString(a.length),s=new eL(c,a),u[h=a.nameID]==null&&(u[h]=[]),u[a.nameID].push(s);this.strings=u,this.copyright=u[0],this.fontFamily=u[1],this.fontSubfamily=u[2],this.uniqueSubfamily=u[3],this.fontName=u[4],this.version=u[5];try{this.postscriptName=u[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=u[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=u[7],this.manufacturer=u[8],this.designer=u[9],this.description=u[10],this.vendorUrl=u[11],this.designerUrl=u[12],this.license=u[13],this.licenseUrl=u[14],this.preferredFamily=u[15],this.preferredSubfamily=u[17],this.compatibleFull=u[18],this.sampleText=u[19]},t})(),rL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="maxp",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.numGlyphs=r.readUInt16(),this.maxPoints=r.readUInt16(),this.maxContours=r.readUInt16(),this.maxCompositePoints=r.readUInt16(),this.maxComponentContours=r.readUInt16(),this.maxZones=r.readUInt16(),this.maxTwilightPoints=r.readUInt16(),this.maxStorage=r.readUInt16(),this.maxFunctionDefs=r.readUInt16(),this.maxInstructionDefs=r.readUInt16(),this.maxStackElements=r.readUInt16(),this.maxSizeOfInstructions=r.readUInt16(),this.maxComponentElements=r.readUInt16(),this.maxComponentDepth=r.readUInt16()},t})(),nL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="hmtx",t.prototype.parse=function(r){var n,i,a,o,s,l,u;for(r.pos=this.offset,this.metrics=[],n=0,l=this.file.hhea.numberOfMetrics;0<=l?n<l:n>l;n=0<=l?++n:--n)this.metrics.push({advance:r.readUInt16(),lsb:r.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var c,f;for(f=[],n=c=0;0<=a?c<a:c>a;n=0<=a?++c:--c)f.push(r.readInt16());return f})(),this.widths=(function(){var c,f,d,h;for(h=[],c=0,f=(d=this.metrics).length;c<f;c++)o=d[c],h.push(o.advance);return h}).call(this),i=this.widths[this.widths.length-1],u=[],n=s=0;0<=a?s<a:s>a;n=0<=a?++s:--s)u.push(this.widths.push(i));return u},t.prototype.forGlyph=function(r){return r in this.metrics?this.metrics[r]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[r-this.metrics.length]}},t})(),FO=[].slice,iL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(r){var n,i,a,o,s,l,u,c,f,d;return r in this.cache?this.cache[r]:(o=this.file.loca,n=this.file.contents,i=o.indexOf(r),(a=o.lengthOf(r))===0?this.cache[r]=null:(n.pos=this.offset+i,s=(l=new as(n.read(a))).readShort(),c=l.readShort(),d=l.readShort(),u=l.readShort(),f=l.readShort(),this.cache[r]=s===-1?new oL(l,c,d,u,f):new aL(l,s,c,d,u,f),this.cache[r]))},t.prototype.encode=function(r,n,i){var a,o,s,l,u;for(s=[],o=[],l=0,u=n.length;l<u;l++)a=r[n[l]],o.push(s.length),a&&(s=s.concat(a.encode(i)));return o.push(s.length),{table:s,offsets:o}},t})(),aL=(function(){function e(t,r,n,i,a,o){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=i,this.xMax=a,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),oL=(function(){function e(t,r,n,i,a){var o,s;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new as(FO.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e})(),sL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,_a),t.prototype.tag="loca",t.prototype.parse=function(r){var n,i;return r.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=2)o.push(2*r.readUInt16());return o}).call(this):(function(){var a,o;for(o=[],i=0,a=this.length;i<a;i+=4)o.push(r.readUInt32());return o}).call(this)},t.prototype.indexOf=function(r){return this.offsets[r]},t.prototype.lengthOf=function(r){return this.offsets[r+1]-this.offsets[r]},t.prototype.encode=function(r,n){for(var i=new Uint32Array(this.offsets.length),a=0,o=0,s=0;s<i.length;++s)if(i[s]=a,o<n.length&&n[o]==s){++o,i[s]=a;var l=this.offsets[s],u=this.offsets[s+1]-l;u>0&&(a+=u)}for(var c=new Array(4*i.length),f=0;f<i.length;++f)c[4*f+3]=255&i[f],c[4*f+2]=(65280&i[f])>>8,c[4*f+1]=(16711680&i[f])>>16,c[4*f]=(4278190080&i[f])>>24;return c},t})(),lL=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,i,a;for(r in i=this.font.cmap.tables[0].codeMap,t={},a=this.subset)n=a[r],t[r]=i[n];return t},e.prototype.glyphsFor=function(t){var r,n,i,a,o,s,l;for(i={},o=0,s=t.length;o<s;o++)i[a=t[o]]=this.font.glyf.glyphFor(a);for(a in r=[],i)(n=i[a])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(a in l=this.glyphsFor(r))n=l[a],i[a]=n;return i},e.prototype.encode=function(t,r){var n,i,a,o,s,l,u,c,f,d,h,g,p,m,y;for(i in n=IO.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),h={0:0},y=n.charMap)h[(l=y[i]).old]=l.new;for(g in d=n.maxGlyphID,o)g in h||(h[g]=d++);return c=(function(x){var w,T;for(w in T={},x)T[x[w]]=w;return T})(h),f=Object.keys(c).sort((function(x,w){return x-w})),p=(function(){var x,w,T;for(T=[],x=0,w=f.length;x<w;x++)s=f[x],T.push(c[s]);return T})(),a=this.font.glyf.encode(o,p,h),u=this.font.loca.encode(a.offsets,p),m={cmap:this.font.cmap.raw(),glyf:a.table,loca:u,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(m["OS/2"]=this.font.os2.raw()),this.font.directory.encode(m)},e})();vt.API.PDFObject=(function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,i,a,o;if(Array.isArray(r))return"["+(function(){var s,l,u;for(u=[],s=0,l=r.length;s<l;s++)n=r[s],u.push(t.convert(n));return u})().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r!=null&&r.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(i in a=["<<"],r)o=r[i],a.push("/"+i+" "+t.convert(o));return a.push(">>"),a.join(`
244
+ `)}return""+r},t})();const uL=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:$k,AcroFormAppearance:ft,AcroFormButton:ln,AcroFormCheckBox:Hc,AcroFormChoiceField:Ms,AcroFormComboBox:Bs,AcroFormEditBox:zc,AcroFormListBox:Ds,AcroFormPasswordField:Gc,AcroFormPushButton:Wc,AcroFormRadioButton:$s,AcroFormTextField:ts,GState:lf,ShadingPattern:Ko,TilingPattern:ks,default:vt,jsPDF:vt},Symbol.toStringTag,{value:"Module"}));var Hl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cL(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var I0={exports:{}};const fL=cL(uL);/*!
245
+ *
246
+ * jsPDF AutoTable plugin v3.8.4
247
+ *
248
+ * Copyright (c) 2024 Simon Bengtsson, https://github.com/simonbengtsson/jsPDF-AutoTable
249
+ * Licensed under the MIT License.
250
+ * http://opensource.org/licenses/mit-license
251
+ *
252
+ */var dw=I0.exports,pw;function hL(){return pw||(pw=1,(function(e,t){(function(n,i){e.exports=i((function(){try{return fL}catch{}})())})(typeof globalThis<"u"?globalThis:typeof dw<"u"?dw:typeof window<"u"?window:typeof self<"u"?self:Hl,function(r){return(function(){var n={172:(function(s,l){var u=this&&this.__extends||(function(){var d=function(h,g){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&(p[y]=m[y])},d(h,g)};return function(h,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");d(h,g);function p(){this.constructor=h}h.prototype=g===null?Object.create(g):(p.prototype=g.prototype,new p)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.CellHookData=l.HookData=void 0;var c=(function(){function d(h,g,p){this.table=g,this.pageNumber=g.pageNumber,this.pageCount=this.pageNumber,this.settings=g.settings,this.cursor=p,this.doc=h.getDocument()}return d})();l.HookData=c;var f=(function(d){u(h,d);function h(g,p,m,y,x,w){var T=d.call(this,g,p,w)||this;return T.cell=m,T.row=y,T.column=x,T.section=y.section,T}return h})(c);l.CellHookData=f}),340:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0});var c=u(4),f=u(136),d=u(744),h=u(776),g=u(664),p=u(972);function m(y){y.API.autoTable=function(){for(var x=[],w=0;w<arguments.length;w++)x[w]=arguments[w];var T;x.length===1?T=x[0]:(console.error("Use of deprecated autoTable initiation"),T=x[2]||{},T.columns=x[0],T.body=x[1]);var _=(0,h.parseInput)(this,T),O=(0,p.createTable)(this,_);return(0,g.drawTable)(this,O),this},y.API.lastAutoTable=!1,y.API.previousAutoTable=!1,y.API.autoTable.previous=!1,y.API.autoTableText=function(x,w,T,_){(0,f.default)(x,w,T,_,this)},y.API.autoTableSetDefaults=function(x){return d.DocHandler.setDefaults(x,this),this},y.autoTableSetDefaults=function(x,w){d.DocHandler.setDefaults(x,w)},y.API.autoTableHtmlToJson=function(x,w){var T;if(w===void 0&&(w=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var _=new d.DocHandler(this),O=(0,c.parseHtml)(_,x,window,w,!1),A=O.head,k=O.body,L=((T=A[0])===null||T===void 0?void 0:T.map(function(B){return B.content}))||[];return{columns:L,rows:k,data:k}},y.API.autoTableEndPosY=function(){console.error("Use of deprecated function: autoTableEndPosY. Use doc.lastAutoTable.finalY instead.");var x=this.lastAutoTable;return x&&x.finalY?x.finalY:0},y.API.autoTableAddPageContent=function(x){return console.error("Use of deprecated function: autoTableAddPageContent. Use jsPDF.autoTableSetDefaults({didDrawPage: () => {}}) instead."),y.API.autoTable.globalDefaults||(y.API.autoTable.globalDefaults={}),y.API.autoTable.globalDefaults.addPageContent=x,this},y.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}l.default=m}),136:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function u(c,f,d,h,g){h=h||{};var p=1.15,m=g.internal.scaleFactor,y=g.internal.getFontSize()/m,x=g.getLineHeightFactor?g.getLineHeightFactor():p,w=y*x,T=/\r\n|\r|\n/g,_="",O=1;if((h.valign==="middle"||h.valign==="bottom"||h.halign==="center"||h.halign==="right")&&(_=typeof c=="string"?c.split(T):c,O=_.length||1),d+=y*(2-p),h.valign==="middle"?d-=O/2*w:h.valign==="bottom"&&(d-=O*w),h.halign==="center"||h.halign==="right"){var A=y;if(h.halign==="center"&&(A*=.5),_&&O>=1){for(var k=0;k<_.length;k++)g.text(_[k],f-g.getStringUnitWidth(_[k])*A,d),d+=w;return g}f-=g.getStringUnitWidth(c)*A}return h.halign==="justify"?g.text(c,f,d,{maxWidth:h.maxWidth||100,align:"justify"}):g.text(c,f,d),g}l.default=u}),420:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getPageAvailableWidth=l.parseSpacing=l.getFillStyle=l.addTableBorder=l.getStringWidth=void 0;function u(g,p,m){m.applyStyles(p,!0);var y=Array.isArray(g)?g:[g],x=y.map(function(w){return m.getTextWidth(w)}).reduce(function(w,T){return Math.max(w,T)},0);return x}l.getStringWidth=u;function c(g,p,m,y){var x=p.settings.tableLineWidth,w=p.settings.tableLineColor;g.applyStyles({lineWidth:x,lineColor:w});var T=f(x,!1);T&&g.rect(m.x,m.y,p.getWidth(g.pageSize().width),y.y-m.y,T)}l.addTableBorder=c;function f(g,p){var m=g>0,y=p||p===0;return m&&y?"DF":m?"S":y?"F":null}l.getFillStyle=f;function d(g,p){var m,y,x,w;if(g=g||p,Array.isArray(g)){if(g.length>=4)return{top:g[0],right:g[1],bottom:g[2],left:g[3]};if(g.length===3)return{top:g[0],right:g[1],bottom:g[2],left:g[1]};if(g.length===2)return{top:g[0],right:g[1],bottom:g[0],left:g[1]};g.length===1?g=g[0]:g=p}return typeof g=="object"?(typeof g.vertical=="number"&&(g.top=g.vertical,g.bottom=g.vertical),typeof g.horizontal=="number"&&(g.right=g.horizontal,g.left=g.horizontal),{left:(m=g.left)!==null&&m!==void 0?m:p,top:(y=g.top)!==null&&y!==void 0?y:p,right:(x=g.right)!==null&&x!==void 0?x:p,bottom:(w=g.bottom)!==null&&w!==void 0?w:p}):(typeof g!="number"&&(g=p),{top:g,right:g,bottom:g,left:g})}l.parseSpacing=d;function h(g,p){var m=d(p.settings.margin,0);return g.pageSize().width-(m.left+m.right)}l.getPageAvailableWidth=h}),796:(function(s,l){var u=this&&this.__extends||(function(){var h=function(g,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(m[x]=y[x])},h(g,p)};return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");h(g,p);function m(){this.constructor=g}g.prototype=p===null?Object.create(p):(m.prototype=p.prototype,new m)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.getTheme=l.defaultStyles=l.HtmlRowInput=void 0;var c=(function(h){u(g,h);function g(p){var m=h.call(this)||this;return m._element=p,m}return g})(Array);l.HtmlRowInput=c;function f(h){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/h,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}l.defaultStyles=f;function d(h){var g={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return g[h]}l.getTheme=d}),903:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.parseCss=void 0;var c=u(420);function f(m,y,x,w,T){var _={},O=1.3333333333333333,A=h(y,function(Z){return T.getComputedStyle(Z).backgroundColor});A!=null&&(_.fillColor=A);var k=h(y,function(Z){return T.getComputedStyle(Z).color});k!=null&&(_.textColor=k);var L=p(w,x);L&&(_.cellPadding=L);var B="borderTopColor",C=O*x,P=w.borderTopWidth;if(w.borderBottomWidth===P&&w.borderRightWidth===P&&w.borderLeftWidth===P){var M=(parseFloat(P)||0)/C;M&&(_.lineWidth=M)}else _.lineWidth={top:(parseFloat(w.borderTopWidth)||0)/C,right:(parseFloat(w.borderRightWidth)||0)/C,bottom:(parseFloat(w.borderBottomWidth)||0)/C,left:(parseFloat(w.borderLeftWidth)||0)/C},_.lineWidth.top||(_.lineWidth.right?B="borderRightColor":_.lineWidth.bottom?B="borderBottomColor":_.lineWidth.left&&(B="borderLeftColor"));var q=h(y,function(Z){return T.getComputedStyle(Z)[B]});q!=null&&(_.lineColor=q);var J=["left","right","center","justify"];J.indexOf(w.textAlign)!==-1&&(_.halign=w.textAlign),J=["middle","bottom","top"],J.indexOf(w.verticalAlign)!==-1&&(_.valign=w.verticalAlign);var U=parseInt(w.fontSize||"");isNaN(U)||(_.fontSize=U/O);var H=d(w);H&&(_.fontStyle=H);var ee=(w.fontFamily||"").toLowerCase();return m.indexOf(ee)!==-1&&(_.font=ee),_}l.parseCss=f;function d(m){var y="";return(m.fontWeight==="bold"||m.fontWeight==="bolder"||parseInt(m.fontWeight)>=700)&&(y="bold"),(m.fontStyle==="italic"||m.fontStyle==="oblique")&&(y+="italic"),y}function h(m,y){var x=g(m,y);if(!x)return null;var w=x.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!w||!Array.isArray(w))return null;var T=[parseInt(w[1]),parseInt(w[2]),parseInt(w[3])],_=parseInt(w[4]);return _===0||isNaN(T[0])||isNaN(T[1])||isNaN(T[2])?null:T}function g(m,y){var x=y(m);return x==="rgba(0, 0, 0, 0)"||x==="transparent"||x==="initial"||x==="inherit"?m.parentElement==null?null:g(m.parentElement,y):x}function p(m,y){var x=[m.paddingTop,m.paddingRight,m.paddingBottom,m.paddingLeft],w=96/(72/y),T=(parseInt(m.lineHeight)-parseInt(m.fontSize))/y/2,_=x.map(function(A){return parseInt(A||"0")/w}),O=(0,c.parseSpacing)(_,0);return T>O.top&&(O.top=T),T>O.bottom&&(O.bottom=T),O}}),744:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.DocHandler=void 0;var u={},c=(function(){function f(d){this.jsPDFDocument=d,this.userStyles={textColor:d.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:d.internal.getFontSize(),fontStyle:d.internal.getFont().fontStyle,font:d.internal.getFont().fontName,lineWidth:d.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:d.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return f.setDefaults=function(d,h){h===void 0&&(h=null),h?h.__autoTableDocumentDefaults=d:u=d},f.unifyColor=function(d){return Array.isArray(d)?d:typeof d=="number"?[d,d,d]:typeof d=="string"?[d]:null},f.prototype.applyStyles=function(d,h){var g,p,m;h===void 0&&(h=!1),d.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(d.fontStyle);var y=this.jsPDFDocument.internal.getFont(),x=y.fontStyle,w=y.fontName;if(d.font&&(w=d.font),d.fontStyle){x=d.fontStyle;var T=this.getFontList()[w];T&&T.indexOf(x)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(T[0]),x=T[0])}if(this.jsPDFDocument.setFont(w,x),d.fontSize&&this.jsPDFDocument.setFontSize(d.fontSize),!h){var _=f.unifyColor(d.fillColor);_&&(g=this.jsPDFDocument).setFillColor.apply(g,_),_=f.unifyColor(d.textColor),_&&(p=this.jsPDFDocument).setTextColor.apply(p,_),_=f.unifyColor(d.lineColor),_&&(m=this.jsPDFDocument).setDrawColor.apply(m,_),typeof d.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(d.lineWidth)}},f.prototype.splitTextToSize=function(d,h,g){return this.jsPDFDocument.splitTextToSize(d,h,g)},f.prototype.rect=function(d,h,g,p,m){return this.jsPDFDocument.rect(d,h,g,p,m)},f.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},f.prototype.getTextWidth=function(d){return this.jsPDFDocument.getTextWidth(d)},f.prototype.getDocument=function(){return this.jsPDFDocument},f.prototype.setPage=function(d){this.jsPDFDocument.setPage(d)},f.prototype.addPage=function(){return this.jsPDFDocument.addPage()},f.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},f.prototype.getGlobalOptions=function(){return u||{}},f.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},f.prototype.pageSize=function(){var d=this.jsPDFDocument.internal.pageSize;return d.width==null&&(d={width:d.getWidth(),height:d.getHeight()}),d},f.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},f.prototype.getLineHeightFactor=function(){var d=this.jsPDFDocument;return d.getLineHeightFactor?d.getLineHeightFactor():1.15},f.prototype.getLineHeight=function(d){return d/this.scaleFactor()*this.getLineHeightFactor()},f.prototype.pageNumber=function(){var d=this.jsPDFDocument.internal.getCurrentPageInfo();return d?d.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},f})();l.DocHandler=c}),4:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.parseHtml=void 0;var c=u(903),f=u(796);function d(p,m,y,x,w){var T,_;x===void 0&&(x=!1),w===void 0&&(w=!1);var O;typeof m=="string"?O=y.document.querySelector(m):O=m;var A=Object.keys(p.getFontList()),k=p.scaleFactor(),L=[],B=[],C=[];if(!O)return console.error("Html table could not be found with input: ",m),{head:L,body:B,foot:C};for(var P=0;P<O.rows.length;P++){var M=O.rows[P],q=(_=(T=M==null?void 0:M.parentElement)===null||T===void 0?void 0:T.tagName)===null||_===void 0?void 0:_.toLowerCase(),J=h(A,k,y,M,x,w);J&&(q==="thead"?L.push(J):q==="tfoot"?C.push(J):B.push(J))}return{head:L,body:B,foot:C}}l.parseHtml=d;function h(p,m,y,x,w,T){for(var _=new f.HtmlRowInput(x),O=0;O<x.cells.length;O++){var A=x.cells[O],k=y.getComputedStyle(A);if(w||k.display!=="none"){var L=void 0;T&&(L=(0,c.parseCss)(p,A,m,k,y)),_.push({rowSpan:A.rowSpan,colSpan:A.colSpan,styles:L,_element:A,content:g(A)})}}var B=y.getComputedStyle(x);if(_.length>0&&(w||B.display!=="none"))return _}function g(p){var m=p.cloneNode(!0);return m.innerHTML=m.innerHTML.replace(/\n/g,"").replace(/ +/g," "),m.innerHTML=m.innerHTML.split(/<br.*?>/).map(function(y){return y.trim()}).join(`
253
+ `),m.innerText||m.textContent||""}}),776:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.parseInput=void 0;var c=u(4),f=u(356),d=u(420),h=u(744),g=u(792);function p(O,A){var k=new h.DocHandler(O),L=k.getDocumentOptions(),B=k.getGlobalOptions();(0,g.default)(k,B,L,A);var C=(0,f.assign)({},B,L,A),P;typeof window<"u"&&(P=window);var M=m(B,L,A),q=y(B,L,A),J=x(k,C),U=T(k,C,P);return{id:A.tableId,content:U,hooks:q,styles:M,settings:J}}l.parseInput=p;function m(O,A,k){for(var L={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},B=function(q){if(q==="columnStyles"){var J=O[q],U=A[q],H=k[q];L.columnStyles=(0,f.assign)({},J,U,H)}else{var ee=[O,A,k],Z=ee.map(function(Q){return Q[q]||{}});L[q]=(0,f.assign)({},Z[0],Z[1],Z[2])}},C=0,P=Object.keys(L);C<P.length;C++){var M=P[C];B(M)}return L}function y(O,A,k){for(var L=[O,A,k],B={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},C=0,P=L;C<P.length;C++){var M=P[C];M.didParseCell&&B.didParseCell.push(M.didParseCell),M.willDrawCell&&B.willDrawCell.push(M.willDrawCell),M.didDrawCell&&B.didDrawCell.push(M.didDrawCell),M.willDrawPage&&B.willDrawPage.push(M.willDrawPage),M.didDrawPage&&B.didDrawPage.push(M.didDrawPage)}return B}function x(O,A){var k,L,B,C,P,M,q,J,U,H,ee,Z,Q=(0,d.parseSpacing)(A.margin,40/O.scaleFactor()),le=(k=w(O,A.startY))!==null&&k!==void 0?k:Q.top,N;A.showFoot===!0?N="everyPage":A.showFoot===!1?N="never":N=(L=A.showFoot)!==null&&L!==void 0?L:"everyPage";var I;A.showHead===!0?I="everyPage":A.showHead===!1?I="never":I=(B=A.showHead)!==null&&B!==void 0?B:"everyPage";var R=(C=A.useCss)!==null&&C!==void 0?C:!1,D=A.theme||(R?"plain":"striped"),G=!!A.horizontalPageBreak,ce=(P=A.horizontalPageBreakRepeat)!==null&&P!==void 0?P:null;return{includeHiddenHtml:(M=A.includeHiddenHtml)!==null&&M!==void 0?M:!1,useCss:R,theme:D,startY:le,margin:Q,pageBreak:(q=A.pageBreak)!==null&&q!==void 0?q:"auto",rowPageBreak:(J=A.rowPageBreak)!==null&&J!==void 0?J:"auto",tableWidth:(U=A.tableWidth)!==null&&U!==void 0?U:"auto",showHead:I,showFoot:N,tableLineWidth:(H=A.tableLineWidth)!==null&&H!==void 0?H:0,tableLineColor:(ee=A.tableLineColor)!==null&&ee!==void 0?ee:200,horizontalPageBreak:G,horizontalPageBreakRepeat:ce,horizontalPageBreakBehaviour:(Z=A.horizontalPageBreakBehaviour)!==null&&Z!==void 0?Z:"afterAllRows"}}function w(O,A){var k=O.getLastAutoTable(),L=O.scaleFactor(),B=O.pageNumber(),C=!1;if(k&&k.startPageNumber){var P=k.startPageNumber+k.pageNumber-1;C=P===B}return typeof A=="number"?A:(A==null||A===!1)&&C&&(k==null?void 0:k.finalY)!=null?k.finalY+20/L:null}function T(O,A,k){var L=A.head||[],B=A.body||[],C=A.foot||[];if(A.html){var P=A.includeHiddenHtml;if(k){var M=(0,c.parseHtml)(O,A.html,k,P,A.useCss)||{};L=M.head||L,B=M.body||L,C=M.foot||L}else console.error("Cannot parse html in non browser environment")}var q=A.columns||_(L,B,C);return{columns:q,head:L,body:B,foot:C}}function _(O,A,k){var L=O[0]||A[0]||k[0]||[],B=[];return Object.keys(L).filter(function(C){return C!=="_element"}).forEach(function(C){var P=1,M;Array.isArray(L)?M=L[parseInt(C)]:M=L[C],typeof M=="object"&&!Array.isArray(M)&&(P=(M==null?void 0:M.colSpan)||1);for(var q=0;q<P;q++){var J=void 0;Array.isArray(L)?J=B.length:J=C+(q>0?"_".concat(q):"");var U={dataKey:J};B.push(U)}}),B}}),792:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function u(f,d,h,g){for(var p=function(w){w&&typeof w!="object"&&console.error("The options parameter should be of type object, is: "+typeof w),typeof w.extendWidth<"u"&&(w.tableWidth=w.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof w.margins<"u"&&(typeof w.margin>"u"&&(w.margin=w.margins),console.error("Use of deprecated option: margins, use margin instead.")),w.startY&&typeof w.startY!="number"&&(console.error("Invalid value for startY option",w.startY),delete w.startY),!w.didDrawPage&&(w.afterPageContent||w.beforePageContent||w.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),w.didDrawPage=function(C){f.applyStyles(f.userStyles),w.beforePageContent&&w.beforePageContent(C),f.applyStyles(f.userStyles),w.afterPageContent&&w.afterPageContent(C),f.applyStyles(f.userStyles),w.afterPageAdd&&C.pageNumber>1&&C.afterPageAdd(C),f.applyStyles(f.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(C){w[C]&&console.error('The "'.concat(C,'" hook has changed in version 3.0, check the changelog for how to migrate.'))}),[["showFoot","showFooter"],["showHead","showHeader"],["didDrawPage","addPageContent"],["didParseCell","createdCell"],["headStyles","headerStyles"]].forEach(function(C){var P=C[0],M=C[1];w[M]&&(console.error("Use of deprecated option ".concat(M,". Use ").concat(P," instead")),w[P]=w[M])}),[["padding","cellPadding"],["lineHeight","rowHeight"],"fontSize","overflow"].forEach(function(C){var P=typeof C=="string"?C:C[0],M=typeof C=="string"?C:C[1];typeof w[P]<"u"&&(typeof w.styles[M]>"u"&&(w.styles[M]=w[P]),console.error("Use of deprecated option: "+P+", use the style "+M+" instead."))});for(var T=0,_=["styles","bodyStyles","headStyles","footStyles"];T<_.length;T++){var O=_[T];c(w[O]||{})}for(var A=w.columnStyles||{},k=0,L=Object.keys(A);k<L.length;k++){var B=L[k];c(A[B]||{})}},m=0,y=[d,h,g];m<y.length;m++){var x=y[m];p(x)}}l.default=u;function c(f){f.rowHeight?(console.error("Use of deprecated style rowHeight. It is renamed to minCellHeight."),f.minCellHeight||(f.minCellHeight=f.rowHeight)):f.columnWidth&&(console.error("Use of deprecated style columnWidth. It is renamed to cellWidth."),f.cellWidth||(f.cellWidth=f.columnWidth))}}),260:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.Column=l.Cell=l.Row=l.Table=void 0;var c=u(796),f=u(172),d=u(420),h=(function(){function y(x,w){this.pageNumber=1,this.pageCount=1,this.id=x.id,this.settings=x.settings,this.styles=x.styles,this.hooks=x.hooks,this.columns=w.columns,this.head=w.head,this.body=w.body,this.foot=w.foot}return y.prototype.getHeadHeight=function(x){return this.head.reduce(function(w,T){return w+T.getMaxCellHeight(x)},0)},y.prototype.getFootHeight=function(x){return this.foot.reduce(function(w,T){return w+T.getMaxCellHeight(x)},0)},y.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},y.prototype.callCellHooks=function(x,w,T,_,O,A){for(var k=0,L=w;k<L.length;k++){var B=L[k],C=new f.CellHookData(x,this,T,_,O,A),P=B(C)===!1;if(T.text=Array.isArray(T.text)?T.text:[T.text],P)return!1}return!0},y.prototype.callEndPageHooks=function(x,w){x.applyStyles(x.userStyles);for(var T=0,_=this.hooks.didDrawPage;T<_.length;T++){var O=_[T];O(new f.HookData(x,this,w))}},y.prototype.callWillDrawPageHooks=function(x,w){for(var T=0,_=this.hooks.willDrawPage;T<_.length;T++){var O=_[T];O(new f.HookData(x,this,w))}},y.prototype.getWidth=function(x){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var w=this.columns.reduce(function(_,O){return _+O.wrappedWidth},0);return w}else{var T=this.settings.margin;return x-T.left-T.right}},y})();l.Table=h;var g=(function(){function y(x,w,T,_,O){O===void 0&&(O=!1),this.height=0,this.raw=x,x instanceof c.HtmlRowInput&&(this.raw=x._element,this.element=x._element),this.index=w,this.section=T,this.cells=_,this.spansMultiplePages=O}return y.prototype.getMaxCellHeight=function(x){var w=this;return x.reduce(function(T,_){var O;return Math.max(T,((O=w.cells[_.index])===null||O===void 0?void 0:O.height)||0)},0)},y.prototype.hasRowSpan=function(x){var w=this;return x.filter(function(T){var _=w.cells[T.index];return _?_.rowSpan>1:!1}).length>0},y.prototype.canEntireRowFit=function(x,w){return this.getMaxCellHeight(w)<=x},y.prototype.getMinimumRowHeight=function(x,w){var T=this;return x.reduce(function(_,O){var A=T.cells[O.index];if(!A)return 0;var k=w.getLineHeight(A.styles.fontSize),L=A.padding("vertical"),B=L+k;return B>_?B:_},0)},y})();l.Row=g;var p=(function(){function y(x,w,T){var _,O;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=w,this.section=T,this.raw=x;var A=x;x!=null&&typeof x=="object"&&!Array.isArray(x)?(this.rowSpan=x.rowSpan||1,this.colSpan=x.colSpan||1,A=(O=(_=x.content)!==null&&_!==void 0?_:x.title)!==null&&O!==void 0?O:x,x._element&&(this.raw=x._element)):(this.rowSpan=1,this.colSpan=1);var k=A!=null?""+A:"",L=/\r\n|\r|\n/g;this.text=k.split(L)}return y.prototype.getTextPos=function(){var x;if(this.styles.valign==="top")x=this.y+this.padding("top");else if(this.styles.valign==="bottom")x=this.y+this.height-this.padding("bottom");else{var w=this.height-this.padding("vertical");x=this.y+w/2+this.padding("top")}var T;if(this.styles.halign==="right")T=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var _=this.width-this.padding("horizontal");T=this.x+_/2+this.padding("left")}else T=this.x+this.padding("left");return{x:T,y:x}},y.prototype.getContentHeight=function(x,w){w===void 0&&(w=1.15);var T=Array.isArray(this.text)?this.text.length:1,_=this.styles.fontSize/x*w,O=T*_+this.padding("vertical");return Math.max(O,this.styles.minCellHeight)},y.prototype.padding=function(x){var w=(0,d.parseSpacing)(this.styles.cellPadding,0);return x==="vertical"?w.top+w.bottom:x==="horizontal"?w.left+w.right:w[x]},y})();l.Cell=p;var m=(function(){function y(x,w,T){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=x,this.raw=w,this.index=T}return y.prototype.getMaxCustomCellWidth=function(x){for(var w=0,T=0,_=x.allRows();T<_.length;T++){var O=_[T],A=O.cells[this.index];A&&typeof A.styles.cellWidth=="number"&&(w=Math.max(w,A.styles.cellWidth))}return w},y})();l.Column=m}),356:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.assign=void 0;function u(c,f,d,h,g){if(c==null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(c),m=1;m<arguments.length;m++){var y=arguments[m];if(y!=null)for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(p[x]=y[x])}return p}l.assign=u}),972:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.createTable=void 0;var c=u(744),f=u(260),d=u(324),h=u(796),g=u(356);function p(O,A){var k=new c.DocHandler(O),L=m(A,k.scaleFactor()),B=new f.Table(A,L);return(0,d.calculateWidths)(k,B),k.applyStyles(k.userStyles),B}l.createTable=p;function m(O,A){var k=O.content,L=T(k.columns);if(k.head.length===0){var B=x(L,"head");B&&k.head.push(B)}if(k.foot.length===0){var B=x(L,"foot");B&&k.foot.push(B)}var C=O.settings.theme,P=O.styles;return{columns:L,head:y("head",k.head,L,P,C,A),body:y("body",k.body,L,P,C,A),foot:y("foot",k.foot,L,P,C,A)}}function y(O,A,k,L,B,C){var P={},M=A.map(function(q,J){for(var U=0,H={},ee=0,Z=0,Q=0,le=k;Q<le.length;Q++){var N=le[Q];if(P[N.index]==null||P[N.index].left===0)if(Z===0){var I=void 0;Array.isArray(q)?I=q[N.index-ee-U]:I=q[N.dataKey];var R={};typeof I=="object"&&!Array.isArray(I)&&(R=(I==null?void 0:I.styles)||{});var D=_(O,N,J,B,L,C,R),G=new f.Cell(I,D,O);H[N.dataKey]=G,H[N.index]=G,Z=G.colSpan-1,P[N.index]={left:G.rowSpan-1,times:Z}}else Z--,ee++;else P[N.index].left--,Z=P[N.index].times,U++}return new f.Row(q,J,O,H)});return M}function x(O,A){var k={};return O.forEach(function(L){if(L.raw!=null){var B=w(A,L.raw);B!=null&&(k[L.dataKey]=B)}}),Object.keys(k).length>0?k:null}function w(O,A){if(O==="head"){if(typeof A=="object")return A.header||A.title||null;if(typeof A=="string"||typeof A=="number")return A}else if(O==="foot"&&typeof A=="object")return A.footer;return null}function T(O){return O.map(function(A,k){var L,B,C;return typeof A=="object"?C=(B=(L=A.dataKey)!==null&&L!==void 0?L:A.key)!==null&&B!==void 0?B:k:C=k,new f.Column(C,A,k)})}function _(O,A,k,L,B,C,P){var M=(0,h.getTheme)(L),q;O==="head"?q=B.headStyles:O==="body"?q=B.bodyStyles:O==="foot"&&(q=B.footStyles);var J=(0,g.assign)({},M.table,M[O],B.styles,q),U=B.columnStyles[A.dataKey]||B.columnStyles[A.index]||{},H=O==="body"?U:{},ee=O==="body"&&k%2===0?(0,g.assign)({},M.alternateRow,B.alternateRowStyles):{},Z=(0,h.defaultStyles)(C),Q=(0,g.assign)({},Z,J,ee,H);return(0,g.assign)(Q,P)}}),664:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.addPage=l.drawTable=void 0;var c=u(420),f=u(260),d=u(744),h=u(356),g=u(136),p=u(224);function m(U,H){var ee=H.settings,Z=ee.startY,Q=ee.margin,le={x:Q.left,y:Z},N=H.getHeadHeight(H.columns)+H.getFootHeight(H.columns),I=Z+Q.bottom+N;if(ee.pageBreak==="avoid"){var R=H.body,D=R.reduce(function(he,ne){return he+ne.height},0);I+=D}var G=new d.DocHandler(U);(ee.pageBreak==="always"||ee.startY!=null&&I>G.pageSize().height)&&(J(G),le.y=Q.top),H.callWillDrawPageHooks(G,le);var ce=(0,h.assign)({},le);H.startPageNumber=G.pageNumber(),ee.horizontalPageBreak?y(G,H,ce,le):(G.applyStyles(G.userStyles),(ee.showHead==="firstPage"||ee.showHead==="everyPage")&&H.head.forEach(function(he){return B(G,H,he,le,H.columns)}),G.applyStyles(G.userStyles),H.body.forEach(function(he,ne){var me=ne===H.body.length-1;L(G,H,he,me,ce,le,H.columns)}),G.applyStyles(G.userStyles),(ee.showFoot==="lastPage"||ee.showFoot==="everyPage")&&H.foot.forEach(function(he){return B(G,H,he,le,H.columns)})),(0,c.addTableBorder)(G,H,ce,le),H.callEndPageHooks(G,le),H.finalY=le.y,U.lastAutoTable=H,U.previousAutoTable=H,U.autoTable&&(U.autoTable.previous=H),G.applyStyles(G.userStyles)}l.drawTable=m;function y(U,H,ee,Z){var Q=(0,p.calculateAllColumnsCanFitInPage)(U,H),le=H.settings;if(le.horizontalPageBreakBehaviour==="afterAllRows")Q.forEach(function(D,G){U.applyStyles(U.userStyles),G>0?q(U,H,ee,Z,D.columns,!0):x(U,H,Z,D.columns),w(U,H,ee,Z,D.columns),_(U,H,Z,D.columns)});else for(var N=-1,I=Q[0],R=function(){var D=N;if(I){U.applyStyles(U.userStyles);var G=I.columns;N>=0?q(U,H,ee,Z,G,!0):x(U,H,Z,G),D=T(U,H,N+1,Z,G),_(U,H,Z,G)}var ce=D-N;Q.slice(1).forEach(function(he){U.applyStyles(U.userStyles),q(U,H,ee,Z,he.columns,!0),T(U,H,N+1,Z,he.columns,ce),_(U,H,Z,he.columns)}),N=D};N<H.body.length-1;)R()}function x(U,H,ee,Z){var Q=H.settings;U.applyStyles(U.userStyles),(Q.showHead==="firstPage"||Q.showHead==="everyPage")&&H.head.forEach(function(le){return B(U,H,le,ee,Z)})}function w(U,H,ee,Z,Q){U.applyStyles(U.userStyles),H.body.forEach(function(le,N){var I=N===H.body.length-1;L(U,H,le,I,ee,Z,Q)})}function T(U,H,ee,Z,Q,le){U.applyStyles(U.userStyles),le=le??H.body.length;var N=Math.min(ee+le,H.body.length),I=-1;return H.body.slice(ee,N).forEach(function(R,D){var G=ee+D===H.body.length-1,ce=M(U,H,G,Z);R.canEntireRowFit(ce,Q)&&(B(U,H,R,Z,Q),I=ee+D)}),I}function _(U,H,ee,Z){var Q=H.settings;U.applyStyles(U.userStyles),(Q.showFoot==="lastPage"||Q.showFoot==="everyPage")&&H.foot.forEach(function(le){return B(U,H,le,ee,Z)})}function O(U,H,ee){var Z=ee.getLineHeight(U.styles.fontSize),Q=U.padding("vertical"),le=Math.floor((H-Q)/Z);return Math.max(0,le)}function A(U,H,ee,Z){var Q={};U.spansMultiplePages=!0,U.height=0;for(var le=0,N=0,I=ee.columns;N<I.length;N++){var R=I[N],D=U.cells[R.index];if(D){Array.isArray(D.text)||(D.text=[D.text]);var G=new f.Cell(D.raw,D.styles,D.section);G=(0,h.assign)(G,D),G.text=[];var ce=O(D,H,Z);D.text.length>ce&&(G.text=D.text.splice(ce,D.text.length));var he=Z.scaleFactor(),ne=Z.getLineHeightFactor();D.contentHeight=D.getContentHeight(he,ne),D.contentHeight>=H&&(D.contentHeight=H,G.styles.minCellHeight-=H),D.contentHeight>U.height&&(U.height=D.contentHeight),G.contentHeight=G.getContentHeight(he,ne),G.contentHeight>le&&(le=G.contentHeight),Q[R.index]=G}}var me=new f.Row(U.raw,-1,U.section,Q,!0);me.height=le;for(var Se=0,ue=ee.columns;Se<ue.length;Se++){var R=ue[Se],G=me.cells[R.index];G&&(G.height=me.height);var D=U.cells[R.index];D&&(D.height=U.height)}return me}function k(U,H,ee,Z){var Q=U.pageSize().height,le=Z.settings.margin,N=le.top+le.bottom,I=Q-N;H.section==="body"&&(I-=Z.getHeadHeight(Z.columns)+Z.getFootHeight(Z.columns));var R=H.getMinimumRowHeight(Z.columns,U),D=R<ee;if(R>I)return console.error("Will not be able to print row ".concat(H.index," correctly since it's minimum height is larger than page height")),!0;if(!D)return!1;var G=H.hasRowSpan(Z.columns),ce=H.getMaxCellHeight(Z.columns)>I;return ce?(G&&console.error("The content of row ".concat(H.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(G||Z.settings.rowPageBreak==="avoid")}function L(U,H,ee,Z,Q,le,N){var I=M(U,H,Z,le);if(ee.canEntireRowFit(I,N))B(U,H,ee,le,N);else if(k(U,ee,I,H)){var R=A(ee,I,H,U);B(U,H,ee,le,N),q(U,H,Q,le,N),L(U,H,R,Z,Q,le,N)}else q(U,H,Q,le,N),L(U,H,ee,Z,Q,le,N)}function B(U,H,ee,Z,Q){Z.x=H.settings.margin.left;for(var le=0,N=Q;le<N.length;le++){var I=N[le],R=ee.cells[I.index];if(!R){Z.x+=I.width;continue}U.applyStyles(R.styles),R.x=Z.x,R.y=Z.y;var D=H.callCellHooks(U,H.hooks.willDrawCell,R,ee,I,Z);if(D===!1){Z.x+=I.width;continue}C(U,R,Z);var G=R.getTextPos();(0,g.default)(R.text,G.x,G.y,{halign:R.styles.halign,valign:R.styles.valign,maxWidth:Math.ceil(R.width-R.padding("left")-R.padding("right"))},U.getDocument()),H.callCellHooks(U,H.hooks.didDrawCell,R,ee,I,Z),Z.x+=I.width}Z.y+=ee.height}function C(U,H,ee){var Z=H.styles;if(U.getDocument().setFillColor(U.getDocument().getFillColor()),typeof Z.lineWidth=="number"){var Q=(0,c.getFillStyle)(Z.lineWidth,Z.fillColor);Q&&U.rect(H.x,ee.y,H.width,H.height,Q)}else typeof Z.lineWidth=="object"&&(Z.fillColor&&U.rect(H.x,ee.y,H.width,H.height,"F"),P(U,H,ee,Z.lineWidth))}function P(U,H,ee,Z){var Q,le,N,I;Z.top&&(Q=ee.x,le=ee.y,N=ee.x+H.width,I=ee.y,Z.right&&(N+=.5*Z.right),Z.left&&(Q-=.5*Z.left),R(Z.top,Q,le,N,I)),Z.bottom&&(Q=ee.x,le=ee.y+H.height,N=ee.x+H.width,I=ee.y+H.height,Z.right&&(N+=.5*Z.right),Z.left&&(Q-=.5*Z.left),R(Z.bottom,Q,le,N,I)),Z.left&&(Q=ee.x,le=ee.y,N=ee.x,I=ee.y+H.height,Z.top&&(le-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),R(Z.left,Q,le,N,I)),Z.right&&(Q=ee.x+H.width,le=ee.y,N=ee.x+H.width,I=ee.y+H.height,Z.top&&(le-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),R(Z.right,Q,le,N,I));function R(D,G,ce,he,ne){U.getDocument().setLineWidth(D),U.getDocument().line(G,ce,he,ne,"S")}}function M(U,H,ee,Z){var Q=H.settings.margin.bottom,le=H.settings.showFoot;return(le==="everyPage"||le==="lastPage"&&ee)&&(Q+=H.getFootHeight(H.columns)),U.pageSize().height-Z.y-Q}function q(U,H,ee,Z,Q,le){Q===void 0&&(Q=[]),le===void 0&&(le=!1),U.applyStyles(U.userStyles),H.settings.showFoot==="everyPage"&&!le&&H.foot.forEach(function(I){return B(U,H,I,Z,Q)}),H.callEndPageHooks(U,Z);var N=H.settings.margin;(0,c.addTableBorder)(U,H,ee,Z),J(U),H.pageNumber++,H.pageCount++,Z.x=N.left,Z.y=N.top,ee.y=N.top,H.callWillDrawPageHooks(U,Z),H.settings.showHead==="everyPage"&&(H.head.forEach(function(I){return B(U,H,I,Z,Q)}),U.applyStyles(U.userStyles))}l.addPage=q;function J(U){var H=U.pageNumber();U.setPage(H+1);var ee=U.pageNumber();return ee===H?(U.addPage(),!0):!1}}),224:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.calculateAllColumnsCanFitInPage=void 0;var c=u(420);function f(h,g,p){var m;p===void 0&&(p={});var y=(0,c.getPageAvailableWidth)(h,g),x=new Map,w=[],T=[],_=[];g.settings.horizontalPageBreakRepeat,Array.isArray(g.settings.horizontalPageBreakRepeat)?_=g.settings.horizontalPageBreakRepeat:(typeof g.settings.horizontalPageBreakRepeat=="string"||typeof g.settings.horizontalPageBreakRepeat=="number")&&(_=[g.settings.horizontalPageBreakRepeat]),_.forEach(function(L){var B=g.columns.find(function(C){return C.dataKey===L||C.index===L});B&&!x.has(B.index)&&(x.set(B.index,!0),w.push(B.index),T.push(g.columns[B.index]),y-=B.wrappedWidth)});for(var O=!0,A=(m=p==null?void 0:p.start)!==null&&m!==void 0?m:0;A<g.columns.length;){if(x.has(A)){A++;continue}var k=g.columns[A].wrappedWidth;if(O||y>=k)O=!1,w.push(A),T.push(g.columns[A]),y-=k;else break;A++}return{colIndexes:w,columns:T,lastIndex:A-1}}function d(h,g){for(var p=[],m=0;m<g.columns.length;m++){var y=f(h,g,{start:m});y.columns.length&&(p.push(y),m=y.lastIndex)}return p}l.calculateAllColumnsCanFitInPage=d}),324:(function(s,l,u){Object.defineProperty(l,"__esModule",{value:!0}),l.ellipsize=l.resizeColumns=l.calculateWidths=void 0;var c=u(420);function f(w,T){d(w,T);var _=[],O=0;T.columns.forEach(function(k){var L=k.getMaxCustomCellWidth(T);L?k.width=L:(k.width=k.wrappedWidth,_.push(k)),O+=k.width});var A=T.getWidth(w.pageSize().width)-O;A&&(A=h(_,A,function(k){return Math.max(k.minReadableWidth,k.minWidth)})),A&&(A=h(_,A,function(k){return k.minWidth})),A=Math.abs(A),!T.settings.horizontalPageBreak&&A>.1/w.scaleFactor()&&(A=A<1?A:Math.round(A),console.warn("Of the table content, ".concat(A," units width could not fit page"))),p(T),m(T,w),g(T)}l.calculateWidths=f;function d(w,T){var _=w.scaleFactor(),O=T.settings.horizontalPageBreak,A=(0,c.getPageAvailableWidth)(w,T);T.allRows().forEach(function(k){for(var L=0,B=T.columns;L<B.length;L++){var C=B[L],P=k.cells[C.index];if(P){var M=T.hooks.didParseCell;T.callCellHooks(w,M,P,k,C,null);var q=P.padding("horizontal");P.contentWidth=(0,c.getStringWidth)(P.text,P.styles,w)+q;var J=(0,c.getStringWidth)(P.text.join(" ").split(/[^\S\u00A0]+/),P.styles,w);if(P.minReadableWidth=J+P.padding("horizontal"),typeof P.styles.cellWidth=="number")P.minWidth=P.styles.cellWidth,P.wrappedWidth=P.styles.cellWidth;else if(P.styles.cellWidth==="wrap"||O===!0)P.contentWidth>A?(P.minWidth=A,P.wrappedWidth=A):(P.minWidth=P.contentWidth,P.wrappedWidth=P.contentWidth);else{var U=10/_;P.minWidth=P.styles.minCellWidth||U,P.wrappedWidth=P.contentWidth,P.minWidth>P.wrappedWidth&&(P.wrappedWidth=P.minWidth)}}}}),T.allRows().forEach(function(k){for(var L=0,B=T.columns;L<B.length;L++){var C=B[L],P=k.cells[C.index];if(P&&P.colSpan===1)C.wrappedWidth=Math.max(C.wrappedWidth,P.wrappedWidth),C.minWidth=Math.max(C.minWidth,P.minWidth),C.minReadableWidth=Math.max(C.minReadableWidth,P.minReadableWidth);else{var M=T.styles.columnStyles[C.dataKey]||T.styles.columnStyles[C.index]||{},q=M.cellWidth||M.minCellWidth;q&&typeof q=="number"&&(C.minWidth=q,C.wrappedWidth=q)}P&&(P.colSpan>1&&!C.minWidth&&(C.minWidth=P.minWidth),P.colSpan>1&&!C.wrappedWidth&&(C.wrappedWidth=P.minWidth))}})}function h(w,T,_){for(var O=T,A=w.reduce(function(U,H){return U+H.wrappedWidth},0),k=0;k<w.length;k++){var L=w[k],B=L.wrappedWidth/A,C=O*B,P=L.width+C,M=_(L),q=P<M?M:P;T-=q-L.width,L.width=q}if(T=Math.round(T*1e10)/1e10,T){var J=w.filter(function(U){return T<0?U.width>_(U):!0});J.length&&(T=h(J,T,_))}return T}l.resizeColumns=h;function g(w){for(var T={},_=1,O=w.allRows(),A=0;A<O.length;A++)for(var k=O[A],L=0,B=w.columns;L<B.length;L++){var C=B[L],P=T[C.index];if(_>1)_--,delete k.cells[C.index];else if(P)P.cell.height+=k.height,_=P.cell.colSpan,delete k.cells[C.index],P.left--,P.left<=1&&delete T[C.index];else{var M=k.cells[C.index];if(!M)continue;if(M.height=k.height,M.rowSpan>1){var q=O.length-A,J=M.rowSpan>q?q:M.rowSpan;T[C.index]={cell:M,left:J,row:k}}}}}function p(w){for(var T=w.allRows(),_=0;_<T.length;_++)for(var O=T[_],A=null,k=0,L=0,B=0;B<w.columns.length;B++){var C=w.columns[B];if(L-=1,L>1&&w.columns[B+1])k+=C.width,delete O.cells[C.index];else if(A){var P=A;delete O.cells[C.index],A=null,P.width=C.width+k}else{var P=O.cells[C.index];if(!P)continue;if(L=P.colSpan,k=0,P.colSpan>1){A=P,k+=C.width;continue}P.width=C.width+k}}}function m(w,T){for(var _={count:0,height:0},O=0,A=w.allRows();O<A.length;O++){for(var k=A[O],L=0,B=w.columns;L<B.length;L++){var C=B[L],P=k.cells[C.index];if(P){T.applyStyles(P.styles,!0);var M=P.width-P.padding("horizontal");if(P.styles.overflow==="linebreak")P.text=T.splitTextToSize(P.text,M+1/T.scaleFactor(),{fontSize:P.styles.fontSize});else if(P.styles.overflow==="ellipsize")P.text=y(P.text,M,P.styles,T,"...");else if(P.styles.overflow==="hidden")P.text=y(P.text,M,P.styles,T,"");else if(typeof P.styles.overflow=="function"){var q=P.styles.overflow(P.text,M);typeof q=="string"?P.text=[q]:P.text=q}P.contentHeight=P.getContentHeight(T.scaleFactor(),T.getLineHeightFactor());var J=P.contentHeight/P.rowSpan;P.rowSpan>1&&_.count*_.height<J*P.rowSpan?_={height:J,count:P.rowSpan}:_&&_.count>0&&_.height>J&&(J=_.height),J>k.height&&(k.height=J)}}_.count--}}function y(w,T,_,O,A){return w.map(function(k){return x(k,T,_,O,A)})}l.ellipsize=y;function x(w,T,_,O,A){var k=1e4*O.scaleFactor();if(T=Math.ceil(T*k)/k,T>=(0,c.getStringWidth)(w,_,O))return w;for(;T<(0,c.getStringWidth)(w+A,_,O)&&!(w.length<=1);)w=w.substring(0,w.length-1);return w.trim()+A}}),964:(function(s){if(typeof r>"u"){var l=new Error("Cannot find module 'undefined'");throw l.code="MODULE_NOT_FOUND",l}s.exports=r})},i={};function a(s){var l=i[s];if(l!==void 0)return l.exports;var u=i[s]={exports:{}};return n[s].call(u.exports,u,u.exports,a),u.exports}var o={};return(function(){var s=o;Object.defineProperty(s,"__esModule",{value:!0}),s.Cell=s.Column=s.Row=s.Table=s.CellHookData=s.__drawTable=s.__createTable=s.applyPlugin=void 0;var l=a(340),u=a(776),c=a(664),f=a(972),d=a(260);Object.defineProperty(s,"Table",{enumerable:!0,get:function(){return d.Table}});var h=a(172);Object.defineProperty(s,"CellHookData",{enumerable:!0,get:function(){return h.CellHookData}});var g=a(260);Object.defineProperty(s,"Cell",{enumerable:!0,get:function(){return g.Cell}}),Object.defineProperty(s,"Column",{enumerable:!0,get:function(){return g.Column}}),Object.defineProperty(s,"Row",{enumerable:!0,get:function(){return g.Row}});function p(T){(0,l.default)(T)}s.applyPlugin=p;function m(T,_){var O=(0,u.parseInput)(T,_),A=(0,f.createTable)(T,O);(0,c.drawTable)(T,A)}function y(T,_){var O=(0,u.parseInput)(T,_);return(0,f.createTable)(T,O)}s.__createTable=y;function x(T,_){(0,c.drawTable)(T,_)}s.__drawTable=x;try{var w=a(964);w.jsPDF&&(w=w.jsPDF),p(w)}catch{}s.default=m})(),o})()})})(I0)),I0.exports}hL();function dL({title:e,subtitle:t,headers:r,rows:n,filename:i,orientation:a="portrait"}){const o=new vt(a);o.setFontSize(18),o.setTextColor(30,41,59),o.text(e,14,22),t&&(o.setFontSize(10),o.setTextColor(100,116,139),o.text(t,14,30)),o.autoTable({startY:t?36:30,head:[r],body:n,styles:{fontSize:9,cellPadding:3},headStyles:{fillColor:[14,165,233],textColor:255,fontStyle:"bold"},alternateRowStyles:{fillColor:[248,250,252]},margin:{left:14,right:14}});const s=o.internal.getNumberOfPages();for(let l=1;l<=s;l++)o.setPage(l),o.setFontSize(8),o.setTextColor(148,163,184),o.text(`Generated on ${new Date().toLocaleDateString()} | Page ${l} of ${s}`,14,o.internal.pageSize.height-10);o.save(`${i}.pdf`)}function pL({student:e,exams:t,schoolName:r}){var a;const n=new vt;n.setFontSize(16),n.setTextColor(30,41,59),n.text(r||"School ERP",105,20,{align:"center"}),n.setFontSize(12),n.text("Student Report Card",105,28,{align:"center"}),n.setFontSize(10),n.setTextColor(71,85,105),n.text(`Name: ${e.full_name}`,14,42),n.text(`Roll No: ${e.roll_number||e.admission_number||""}`,14,48),n.text(`Class: ${e.class_section||e.class_name+"-"+e.section}`,120,42),n.text("Academic Year: 2025-2026",120,48);let i=58;(t||[]).forEach(o=>{n.setFontSize(11),n.setTextColor(30,41,59),n.text(o.name,14,i),i+=4,o.subjects&&o.subjects.length>0&&(n.autoTable({startY:i,head:[["Subject","Marks","Total","Grade"]],body:o.subjects.map(s=>[s.name,s.marks,s.total,s.grade||""]),styles:{fontSize:9},headStyles:{fillColor:[99,102,241]},margin:{left:14,right:14}}),i=n.lastAutoTable.finalY+8)}),n.save(`report-card-${(a=e.full_name)==null?void 0:a.replace(/\s+/g,"-")}.pdf`)}function vL({student:e,payment:t,schoolName:r}){const n=new vt;n.setFontSize(16),n.text(r||"School ERP",105,20,{align:"center"}),n.setFontSize(12),n.text("Fee Payment Receipt",105,28,{align:"center"}),n.setFontSize(10),n.setTextColor(71,85,105);const i=[["Student Name",e.name||e.full_name||""],["Class",e.class_name||""],["Receipt No",t.ref||t.reference||`RCP-${Date.now()}`],["Date",t.date||new Date().toLocaleDateString()],["Amount Paid",`Rs. ${(t.amount||0).toLocaleString()}`],["Payment Method",t.method||"Online"],["Status",t.status||"Paid"]];n.autoTable({startY:38,body:i,styles:{fontSize:10},columnStyles:{0:{fontStyle:"bold",cellWidth:50}},margin:{left:14,right:14}}),n.setFontSize(8),n.setTextColor(148,163,184),n.text("This is a computer-generated receipt.",105,n.internal.pageSize.height-15,{align:"center"}),n.save(`fee-receipt-${e.name||"student"}.pdf`)}function mL({className:e,date:t,records:r,summary:n}){const i=new vt;i.setFontSize(16),i.text("Attendance Report",14,20),i.setFontSize(10),i.setTextColor(71,85,105),i.text(`Class: ${e} | Date: ${t}`,14,28),i.text(`Present: ${(n==null?void 0:n.present)||0} | Absent: ${(n==null?void 0:n.absent)||0} | Late: ${(n==null?void 0:n.late)||0} | Total: ${(r==null?void 0:r.length)||0}`,14,34),i.autoTable({startY:42,head:[["Roll No","Student Name","Status"]],body:(r||[]).map(a=>[a.roll_number||"",a.full_name||"",a.status||""]),styles:{fontSize:9},headStyles:{fillColor:[14,165,233]}}),i.save(`attendance-${e}-${t}.pdf`)}/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var M0={};M0.version="0.18.5";var RO=1252,gL=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],MO=function(e){gL.indexOf(e)!=-1&&(RO=e)};function yL(){MO(1252)}var uf=function(e){MO(e)};function xL(){uf(1200),yL()}var u0=function(t){return String.fromCharCode(t)},vw=function(t){return String.fromCharCode(t)},D0,Jo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function cf(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0,u=0;u<e.length;)r=e.charCodeAt(u++),a=r>>2,n=e.charCodeAt(u++),o=(r&3)<<4|n>>4,i=e.charCodeAt(u++),s=(n&15)<<2|i>>6,l=i&63,isNaN(n)?s=l=64:isNaN(i)&&(l=64),t+=Jo.charAt(a)+Jo.charAt(o)+Jo.charAt(s)+Jo.charAt(l);return t}function yo(e){var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var u=0;u<e.length;)a=Jo.indexOf(e.charAt(u++)),o=Jo.indexOf(e.charAt(u++)),r=a<<2|o>>4,t+=String.fromCharCode(r),s=Jo.indexOf(e.charAt(u++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=Jo.indexOf(e.charAt(u++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var Yt=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),Ao=(function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}})();function Gs(e){return Yt?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function mw(e){return Yt?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var va=function(t){return Yt?Ao(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function np(e){if(typeof ArrayBuffer>"u")return va(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Zf(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function bL(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Tn=Yt?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Ao(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),i=0;for(t=0,r=0;t<e.length;r+=i,++t)if(i=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function wL(e){for(var t=[],r=0,n=e.length+250,i=Gs(e.length+255),a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o<128)i[r++]=o;else if(o<2048)i[r++]=192|o>>6&31,i[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=e.charCodeAt(++a)&1023;i[r++]=240|o>>8&7,i[r++]=128|o>>2&63,i[r++]=128|s>>6&15|(o&3)<<4,i[r++]=128|s&63}else i[r++]=224|o>>12&15,i[r++]=128|o>>6&63,i[r++]=128|o&63;r>n&&(t.push(i.slice(0,r)),r=0,i=Gs(65535),n=65530)}return t.push(i.slice(0,r)),Tn(t)}var Vc=/\u0000/g,c0=/[\u0001-\u0006]/g;function Zl(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function ga(e,t){var r=""+e;return r.length>=t?r:Rr("0",t-r.length)+r}function Wx(e,t){var r=""+e;return r.length>=t?r:Rr(" ",t-r.length)+r}function B0(e,t){var r=""+e;return r.length>=t?r:r+Rr(" ",t-r.length)}function _L(e,t){var r=""+Math.round(e);return r.length>=t?r:Rr("0",t-r.length)+r}function SL(e,t){var r=""+e;return r.length>=t?r:Rr("0",t-r.length)+r}var gw=Math.pow(2,32);function Il(e,t){if(e>gw||e<-gw)return _L(e,t);var r=Math.round(e);return SL(r,t)}function $0(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var yw=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],M1=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function AL(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Dr={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},xw={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},TL={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function q0(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,o=1,s=0,l=1,u=0,c=0,f=Math.floor(i);u<t&&(f=Math.floor(i),s=f*o+a,c=f*u+l,!(i-f<5e-8));)i=1/(i-f),a=o,o=s,l=u,u=c;if(c>t&&(u>t?(c=l,s=a):(c=u,s=o)),!r)return[0,n*s,c];var d=Math.floor(n*s/c);return[d,n*s-d*c,c]}function f0(e,t,r){if(e>2958465||e<0)return null;var n=e|0,i=Math.floor(86400*(e-n)),a=0,o=[],s={D:n,T:i,u:86400*(e-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++i==86400&&(s.T=i=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],a=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),n<60&&(a=(a+6)%7),r&&(a=kL(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=i%60,i=Math.floor(i/60),s.M=i%60,i=Math.floor(i/60),s.H=i,s.q=a,s}var DO=new Date(1899,11,31,0,0,0),EL=DO.getTime(),OL=new Date(1900,2,1,0,0,0);function BO(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=OL&&(r+=1440*60*1e3),(r-(EL+(e.getTimezoneOffset()-DO.getTimezoneOffset())*6e4))/(1440*60*1e3)}function Hx(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function PL(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function NL(e){var t=e<0?12:11,r=Hx(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function CL(e){var t=Hx(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function jL(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=NL(e):t===10?r=e.toFixed(10).substr(0,12):r=CL(e),Hx(PL(r.toUpperCase()))}function h2(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):jL(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return os(14,BO(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function kL(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function LL(e,t,r,n){var i="",a=0,o=0,s=r.y,l,u=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,u=2;break;default:l=s%1e4,u=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,u=t.length;break;case 3:return M1[r.m-1][1];case 5:return M1[r.m-1][0];default:return M1[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,u=t.length;break;case 3:return yw[r.q][0];default:return yw[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,u=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,u=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,u=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?ga(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,a=Math.round(o*(r.S+r.u)),a>=60*o&&(a=0),t==="s"?a===0?"0":""+a/o:(i=ga(a,2+n),t==="ss"?i.substr(0,2):"."+i.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}u=t.length===3?1:2;break;case 101:l=s,u=1;break}var c=u>0?ga(l,u):"";return c}function Zo(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var $O=/%/g;function IL(e,t,r){var n=t.replace($O,""),i=t.length-n.length;return co(e,n,r*Math.pow(10,2*i))+Rr("%",i)}function FL(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return co(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function qO(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+qO(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),r.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+a):r+="E+"+(o-a);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,i)+"."+r.substr(2+i),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+a)%i)+"."+c.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var UO=/# (\?+)( ?)\/( ?)(\d+)/;function RL(e,t,r){var n=parseInt(e[4],10),i=Math.round(t*n),a=Math.floor(i/n),o=i-a*n,s=n;return r+(a===0?"":""+a)+" "+(o===0?Rr(" ",e[1].length+1+e[4].length):Wx(o,e[1].length)+e[2]+"/"+e[3]+ga(s,e[4].length))}function ML(e,t,r){return r+(t===0?"":""+t)+Rr(" ",e[1].length+2+e[4].length)}var zO=/^#*0*\.([0#]+)/,WO=/\).*[0#]/,HO=/\(###\) ###\\?-####/;function Gn(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function bw(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function ww(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function DL(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function BL(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Wi(e,t,r){if(e.charCodeAt(0)===40&&!t.match(WO)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Wi("n",n,r):"("+Wi("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return FL(e,t,r);if(t.indexOf("%")!==-1)return IL(e,t,r);if(t.indexOf("E")!==-1)return qO(t,r);if(t.charCodeAt(0)===36)return"$"+Wi(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+Il(l,t.length);if(t.match(/^[#?]+$/))return i=Il(r,0),i==="0"&&(i=""),i.length>t.length?i:Gn(t.substr(0,t.length-i.length))+i;if(a=t.match(UO))return RL(a,l,u);if(t.match(/^#+0+$/))return u+Il(l,t.length-t.indexOf("0"));if(a=t.match(zO))return i=bw(r,a[1].length).replace(/^([^\.]+)$/,"$1."+Gn(a[1])).replace(/\.$/,"."+Gn(a[1])).replace(/\.(\d*)$/,function(g,p){return"."+p+Rr("0",Gn(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+bw(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+Zo(Il(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Wi(e,t,-r):Zo(""+(Math.floor(r)+DL(r,a[1].length)))+"."+ga(ww(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return Wi(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Zl(Wi(e,t.replace(/[\\-]/g,""),r)),o=0,Zl(Zl(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(HO))return i=Wi(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=q0(l,Math.pow(10,o)-1,!1),i=""+u,c=co("n",a[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=B0(s[2],o),c.length<a[4].length&&(c=Gn(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=q0(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Wx(s[1],o)+a[2]+"/"+a[3]+B0(s[2],o):Rr(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=Il(r,0),t.length<=i.length?i:Gn(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0?]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var f=t.indexOf(".")-o,d=t.length-i.length-f;return Gn(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return o=ww(r,a[1].length),r<0?"-"+Wi(e,t,-r):Zo(BL(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?ga(0,3-g.length):"")+g})+"."+ga(o,a[1].length);switch(t){case"###,##0.00":return Wi(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var h=Zo(Il(l,0));return h!=="0"?u+h:"";case"###,###.00":return Wi(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Wi(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function $L(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return co(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function qL(e,t,r){var n=t.replace($O,""),i=t.length-n.length;return co(e,n,r*Math.pow(10,2*i))+Rr("%",i)}function GO(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+GO(e,-t);var i=e.indexOf(".");i===-1&&(i=e.indexOf("E"));var a=Math.floor(Math.log(t)*Math.LOG10E)%i;if(a<0&&(a+=i),r=(t/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!r.match(/[Ee]/)){var o=Math.floor(Math.log(t)*Math.LOG10E);r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+a):r+="E+"+(o-a),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,u,c){return l+u+c.substr(0,(i+a)%i)+"."+c.substr(a)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function ka(e,t,r){if(e.charCodeAt(0)===40&&!t.match(WO)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?ka("n",n,r):"("+ka("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return $L(e,t,r);if(t.indexOf("%")!==-1)return qL(e,t,r);if(t.indexOf("E")!==-1)return GO(t,r);if(t.charCodeAt(0)===36)return"$"+ka(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),u=r<0?"-":"";if(t.match(/^00+$/))return u+ga(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:Gn(t.substr(0,t.length-i.length))+i;if(a=t.match(UO))return ML(a,l,u);if(t.match(/^#+0+$/))return u+ga(l,t.length-t.indexOf("0"));if(a=t.match(zO))return i=(""+r).replace(/^([^\.]+)$/,"$1."+Gn(a[1])).replace(/\.$/,"."+Gn(a[1])),i=i.replace(/\.(\d*)$/,function(g,p){return"."+p+Rr("0",Gn(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return u+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return u+Zo(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ka(e,t,-r):Zo(""+r)+"."+Rr("0",a[1].length);if(a=t.match(/^#,#*,#0/))return ka(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Zl(ka(e,t.replace(/[\\-]/g,""),r)),o=0,Zl(Zl(t.replace(/\\/g,"")).replace(/[0#]/g,function(g){return o<i.length?i.charAt(o++):g==="0"?"0":""}));if(t.match(HO))return i=ka(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var c="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=q0(l,Math.pow(10,o)-1,!1),i=""+u,c=co("n",a[1],s[1]),c.charAt(c.length-1)==" "&&(c=c.substr(0,c.length-1)+"0"),i+=c+a[2]+"/"+a[3],c=B0(s[2],o),c.length<a[4].length&&(c=Gn(a[4].substr(a[4].length-c.length))+c),i+=c,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=q0(l,Math.pow(10,o)-1,!0),u+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Wx(s[1],o)+a[2]+"/"+a[3]+B0(s[2],o):Rr(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:Gn(t.substr(0,t.length-i.length))+i;if(a=t.match(/^([#0]+)\.([#0]+)$/)){i=""+r.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),o=i.indexOf(".");var f=t.indexOf(".")-o,d=t.length-i.length-f;return Gn(t.substr(0,f)+i+t.substr(t.length-d))}if(a=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+ka(e,t,-r):Zo(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?ga(0,3-g.length):"")+g})+"."+ga(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=Zo(""+l);return h!=="0"?u+h:"";default:if(t.match(/\.[0#?]*$/))return ka(e,t.slice(0,t.lastIndexOf(".")),r)+Gn(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function co(e,t,r){return(r|0)===r?ka(e,t,r):Wi(e,t,r)}function UL(e){for(var t=[],r=!1,n=0,i=0;n<e.length;++n)switch(e.charCodeAt(n)){case 34:r=!r;break;case 95:case 42:case 92:++n;break;case 59:t[t.length]=e.substr(i,n-i),i=n+1}if(t[t.length]=e.substr(i),r===!0)throw new Error("Format |"+e+"| unterminated string ");return t}var VO=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function KO(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":$0(e,t)&&(t+=6),t++;break;case'"':for(;e.charCodeAt(++t)!==34&&t<e.length;);++t;break;case"\\":t+=2;break;case"_":t+=2;break;case"@":++t;break;case"B":case"b":if(e.charAt(t+1)==="1"||e.charAt(t+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if(e.substr(t,3).toUpperCase()==="A/P"||e.substr(t,5).toUpperCase()==="AM/PM"||e.substr(t,5).toUpperCase()==="上午/下午")return!0;++t;break;case"[":for(n=r;e.charAt(t++)!=="]"&&t<e.length;)n+=e.charAt(t);if(n.match(VO))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;case" ":++t;break;default:++t;break}return!1}function zL(e,t,r,n){for(var i=[],a="",o=0,s="",l="t",u,c,f,d="H";o<e.length;)switch(s=e.charAt(o)){case"G":if(!$0(e,o))throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"G",v:"General"},o+=7;break;case'"':for(a="";(f=e.charCodeAt(++o))!==34&&o<e.length;)a+=String.fromCharCode(f);i[i.length]={t:"t",v:a},++o;break;case"\\":var h=e.charAt(++o),g=h==="("||h===")"?h:"t";i[i.length]={t:g,v:h},++o;break;case"_":i[i.length]={t:"t",v:" "},o+=2;break;case"@":i[i.length]={t:"T",v:t},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(u==null&&(u=f0(t,r,e.charAt(o+1)==="2"),u==null))return"";i[i.length]={t:"X",v:e.substr(o,2)},l=s,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0||u==null&&(u=f0(t,r),u==null))return"";for(a=s;++o<e.length&&e.charAt(o).toLowerCase()===s;)a+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=d),i[i.length]={t:s,v:a},l=s;break;case"A":case"a":case"上":var p={t:s,v:s};if(u==null&&(u=f0(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(u!=null&&(p.v=u.H>=12?"P":"A"),p.t="T",d="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(u!=null&&(p.v=u.H>=12?"PM":"AM"),p.t="T",o+=5,d="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(u!=null&&(p.v=u.H>=12?"下午":"上午"),p.t="T",o+=5,d="h"):(p.t="t",++o),u==null&&p.t==="T")return"";i[i.length]=p,l=s;break;case"[":for(a=s;e.charAt(o++)!=="]"&&o<e.length;)a+=e.charAt(o);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(VO)){if(u==null&&(u=f0(t,r),u==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",KO(e)||(i[i.length]={t:"t",v:a}));break;case".":if(u!=null){for(a=s;++o<e.length&&(s=e.charAt(o))==="0";)a+=s;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=s;++o<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(o))>-1;)a+=s;i[i.length]={t:"n",v:a};break;case"?":for(a=s;e.charAt(++o)===s;)a+=s;i[i.length]={t:s,v:a},l=s;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":i[i.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=s;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)a+=e.charAt(o);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:s,v:s},++o;break;case"$":i[i.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);i[i.length]={t:"t",v:s},++o;break}var m=0,y=0,x;for(o=i.length-1,l="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=d,l="h",m<1&&(m=1);break;case"s":(x=i[o].v.match(/\.0+$/))&&(y=Math.max(y,x[0].length-1)),m<3&&(m=3);case"d":case"y":case"M":case"e":l=i[o].t;break;case"m":l==="s"&&(i[o].t="M",m<2&&(m=2));break;case"X":break;case"Z":m<1&&i[o].v.match(/[Hh]/)&&(m=1),m<2&&i[o].v.match(/[Mm]/)&&(m=2),m<3&&i[o].v.match(/[Ss]/)&&(m=3)}switch(m){case 0:break;case 1:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M),u.M>=60&&(u.M=0,++u.H);break;case 2:u.u>=.5&&(u.u=0,++u.S),u.S>=60&&(u.S=0,++u.M);break}var w="",T;for(o=0;o<i.length;++o)switch(i[o].t){case"t":case"T":case" ":case"D":break;case"X":i[o].v="",i[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[o].v=LL(i[o].t.charCodeAt(0),i[o].v,u,y),i[o].t="t";break;case"n":case"?":for(T=o+1;i[T]!=null&&((s=i[T].t)==="?"||s==="D"||(s===" "||s==="t")&&i[T+1]!=null&&(i[T+1].t==="?"||i[T+1].t==="t"&&i[T+1].v==="/")||i[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(i[T].v==="/"||i[T].v===" "&&i[T+1]!=null&&i[T+1].t=="?"));)i[o].v+=i[T].v,i[T]={v:"",t:";"},++T;w+=i[o].v,o=T-1;break;case"G":i[o].t="t",i[o].v=h2(t,r);break}var _="",O,A;if(w.length>0){w.charCodeAt(0)==40?(O=t<0&&w.charCodeAt(0)===45?-t:t,A=co("n",w,O)):(O=t<0&&n>1?-t:t,A=co("n",w,O),O<0&&i[0]&&i[0].t=="t"&&(A=A.substr(1),i[0].v="-"+i[0].v)),T=A.length-1;var k=i.length;for(o=0;o<i.length;++o)if(i[o]!=null&&i[o].t!="t"&&i[o].v.indexOf(".")>-1){k=o;break}var L=i.length;if(k===i.length&&A.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(T>=i[o].v.length-1?(T-=i[o].v.length,i[o].v=A.substr(T+1,i[o].v.length)):T<0?i[o].v="":(i[o].v=A.substr(0,T+1),T=-1),i[o].t="t",L=o);T>=0&&L<i.length&&(i[L].v=A.substr(0,T+1)+i[L].v)}else if(k!==i.length&&A.indexOf("E")===-1){for(T=A.indexOf(".")-1,o=k;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(c=i[o].v.indexOf(".")>-1&&o===k?i[o].v.indexOf(".")-1:i[o].v.length-1,_=i[o].v.substr(c+1);c>=0;--c)T>=0&&(i[o].v.charAt(c)==="0"||i[o].v.charAt(c)==="#")&&(_=A.charAt(T--)+_);i[o].v=_,i[o].t="t",L=o}for(T>=0&&L<i.length&&(i[L].v=A.substr(0,T+1)+i[L].v),T=A.indexOf(".")+1,o=k;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==k)){for(c=i[o].v.indexOf(".")>-1&&o===k?i[o].v.indexOf(".")+1:0,_=i[o].v.substr(0,c);c<i[o].v.length;++c)T<A.length&&(_+=A.charAt(T++));i[o].v=_,i[o].t="t",L=o}}}for(o=0;o<i.length;++o)i[o]!=null&&"n?".indexOf(i[o].t)>-1&&(O=n>1&&t<0&&o>0&&i[o-1].v==="-"?-t:t,i[o].v=co(i[o].t,i[o].v,O),i[o].t="t");var B="";for(o=0;o!==i.length;++o)i[o]!=null&&(B+=i[o].v);return B}var _w=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Sw(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function WL(e,t){var r=UL(e),n=r.length,i=r[n-1].indexOf("@");if(n<4&&i>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||i>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=i>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=i>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=i>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var a=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,a];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(_w),s=r[1].match(_w);return Sw(t,o)?[n,r[0]]:Sw(t,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,a]}function os(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Dr)[e],n==null&&(n=r.table&&r.table[xw[e]]||Dr[xw[e]]),n==null&&(n=TL[e]||"General");break}if($0(n,0))return h2(t,r);t instanceof Date&&(t=BO(t,r.date1904));var i=WL(n,t);if($0(i[1]))return h2(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return zL(i[1],t,r,i[0])}function YO(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Dr[r]==null){t<0&&(t=r);continue}if(Dr[r]==e){t=r;break}}t<0&&(t=391)}return Dr[t]=e,t}function ip(e){for(var t=0;t!=392;++t)e[t]!==void 0&&YO(e[t],t)}function ap(){Dr=AL()}var XO=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function HL(e){var t=typeof e=="number"?Dr[e]:e;return t=t.replace(XO,"(\\d+)"),new RegExp("^"+t+"$")}function GL(e,t,r){var n=-1,i=-1,a=-1,o=-1,s=-1,l=-1;(t.match(XO)||[]).forEach(function(f,d){var h=parseInt(r[d+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=h;break;case"d":a=h;break;case"h":o=h;break;case"s":l=h;break;case"m":o>=0?s=h:i=h;break}}),l>=0&&s==-1&&i>=0&&(s=i,i=-1);var u=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);u.length==7&&(u="0"+u),u.length==8&&(u="20"+u);var c=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?u:n==-1&&i==-1&&a==-1?c:u+"T"+c}var VL=(function(){var e={};e.version="1.2.0";function t(){for(var A=0,k=new Array(256),L=0;L!=256;++L)A=L,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,A=A&1?-306674912^A>>>1:A>>>1,k[L]=A;return typeof Int32Array<"u"?new Int32Array(k):k}var r=t();function n(A){var k=0,L=0,B=0,C=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(B=0;B!=256;++B)C[B]=A[B];for(B=0;B!=256;++B)for(L=A[B],k=256+B;k<4096;k+=256)L=C[k]=L>>>8^A[L&255];var P=[];for(B=1;B!=16;++B)P[B-1]=typeof Int32Array<"u"?C.subarray(B*256,B*256+256):C.slice(B*256,B*256+256);return P}var i=n(r),a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],c=i[5],f=i[6],d=i[7],h=i[8],g=i[9],p=i[10],m=i[11],y=i[12],x=i[13],w=i[14];function T(A,k){for(var L=k^-1,B=0,C=A.length;B<C;)L=L>>>8^r[(L^A.charCodeAt(B++))&255];return~L}function _(A,k){for(var L=k^-1,B=A.length-15,C=0;C<B;)L=w[A[C++]^L&255]^x[A[C++]^L>>8&255]^y[A[C++]^L>>16&255]^m[A[C++]^L>>>24]^p[A[C++]]^g[A[C++]]^h[A[C++]]^d[A[C++]]^f[A[C++]]^c[A[C++]]^u[A[C++]]^l[A[C++]]^s[A[C++]]^o[A[C++]]^a[A[C++]]^r[A[C++]];for(B+=15;C<B;)L=L>>>8^r[(L^A[C++])&255];return~L}function O(A,k){for(var L=k^-1,B=0,C=A.length,P=0,M=0;B<C;)P=A.charCodeAt(B++),P<128?L=L>>>8^r[(L^P)&255]:P<2048?(L=L>>>8^r[(L^(192|P>>6&31))&255],L=L>>>8^r[(L^(128|P&63))&255]):P>=55296&&P<57344?(P=(P&1023)+64,M=A.charCodeAt(B++)&1023,L=L>>>8^r[(L^(240|P>>8&7))&255],L=L>>>8^r[(L^(128|P>>2&63))&255],L=L>>>8^r[(L^(128|M>>6&15|(P&3)<<4))&255],L=L>>>8^r[(L^(128|M&63))&255]):(L=L>>>8^r[(L^(224|P>>12&15))&255],L=L>>>8^r[(L^(128|P>>6&63))&255],L=L>>>8^r[(L^(128|P&63))&255]);return~L}return e.table=r,e.bstr=T,e.buf=_,e.str=O,e})(),pr=(function(){var t={};t.version="1.2.1";function r(Y,de){for(var ie=Y.split("/"),ae=de.split("/"),fe=0,pe=0,Oe=Math.min(ie.length,ae.length);fe<Oe;++fe){if(pe=ie[fe].length-ae[fe].length)return pe;if(ie[fe]!=ae[fe])return ie[fe]<ae[fe]?-1:1}return ie.length-ae.length}function n(Y){if(Y.charAt(Y.length-1)=="/")return Y.slice(0,-1).indexOf("/")===-1?Y:n(Y.slice(0,-1));var de=Y.lastIndexOf("/");return de===-1?Y:Y.slice(0,de+1)}function i(Y){if(Y.charAt(Y.length-1)=="/")return i(Y.slice(0,-1));var de=Y.lastIndexOf("/");return de===-1?Y:Y.slice(de+1)}function a(Y,de){typeof de=="string"&&(de=new Date(de));var ie=de.getHours();ie=ie<<6|de.getMinutes(),ie=ie<<5|de.getSeconds()>>>1,Y.write_shift(2,ie);var ae=de.getFullYear()-1980;ae=ae<<4|de.getMonth()+1,ae=ae<<5|de.getDate(),Y.write_shift(2,ae)}function o(Y){var de=Y.read_shift(2)&65535,ie=Y.read_shift(2)&65535,ae=new Date,fe=ie&31;ie>>>=5;var pe=ie&15;ie>>>=4,ae.setMilliseconds(0),ae.setFullYear(ie+1980),ae.setMonth(pe-1),ae.setDate(fe);var Oe=de&31;de>>>=5;var ke=de&63;return de>>>=6,ae.setHours(de),ae.setMinutes(ke),ae.setSeconds(Oe<<1),ae}function s(Y){Ai(Y,0);for(var de={},ie=0;Y.l<=Y.length-4;){var ae=Y.read_shift(2),fe=Y.read_shift(2),pe=Y.l+fe,Oe={};switch(ae){case 21589:ie=Y.read_shift(1),ie&1&&(Oe.mtime=Y.read_shift(4)),fe>5&&(ie&2&&(Oe.atime=Y.read_shift(4)),ie&4&&(Oe.ctime=Y.read_shift(4))),Oe.mtime&&(Oe.mt=new Date(Oe.mtime*1e3));break}Y.l=pe,de[ae]=Oe}return de}var l;function u(){return l||(l={})}function c(Y,de){if(Y[0]==80&&Y[1]==75)return Tr(Y,de);if((Y[0]|32)==109&&(Y[1]|32)==105)return ki(Y,de);if(Y.length<512)throw new Error("CFB file size "+Y.length+" < 512");var ie=3,ae=512,fe=0,pe=0,Oe=0,ke=0,Ee=0,Ce=[],je=Y.slice(0,512);Ai(je,0);var Ge=f(je);switch(ie=Ge[0],ie){case 3:ae=512;break;case 4:ae=4096;break;case 0:if(Ge[1]==0)return Tr(Y,de);default:throw new Error("Major Version: Expected 3 or 4 saw "+ie)}ae!==512&&(je=Y.slice(0,ae),Ai(je,28));var Ze=Y.slice(0,ae);d(je,ie);var st=je.read_shift(4,"i");if(ie===3&&st!==0)throw new Error("# Directory Sectors: Expected 0 saw "+st);je.l+=4,Oe=je.read_shift(4,"i"),je.l+=4,je.chk("00100000","Mini Stream Cutoff Size: "),ke=je.read_shift(4,"i"),fe=je.read_shift(4,"i"),Ee=je.read_shift(4,"i"),pe=je.read_shift(4,"i");for(var Ke=-1,ot=0;ot<109&&(Ke=je.read_shift(4,"i"),!(Ke<0));++ot)Ce[ot]=Ke;var St=h(Y,ae);m(Ee,pe,St,ae,Ce);var Jt=x(St,Oe,Ce,ae);Jt[Oe].name="!Directory",fe>0&&ke!==M&&(Jt[ke].name="!MiniFAT"),Jt[Ce[0]].name="!FAT",Jt.fat_addrs=Ce,Jt.ssz=ae;var hr={},Gr=[],Qi=[],Ga=[];w(Oe,Jt,St,Gr,fe,hr,Qi,ke),g(Qi,Ga,Gr),Gr.shift();var Ta={FileIndex:Qi,FullPaths:Ga};return de&&de.raw&&(Ta.raw={header:Ze,sectors:St}),Ta}function f(Y){if(Y[Y.l]==80&&Y[Y.l+1]==75)return[0,0];Y.chk(q,"Header Signature: "),Y.l+=16;var de=Y.read_shift(2,"u");return[Y.read_shift(2,"u"),de]}function d(Y,de){var ie=9;switch(Y.l+=2,ie=Y.read_shift(2)){case 9:if(de!=3)throw new Error("Sector Shift: Expected 9 saw "+ie);break;case 12:if(de!=4)throw new Error("Sector Shift: Expected 12 saw "+ie);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+ie)}Y.chk("0600","Mini Sector Shift: "),Y.chk("000000000000","Reserved: ")}function h(Y,de){for(var ie=Math.ceil(Y.length/de)-1,ae=[],fe=1;fe<ie;++fe)ae[fe-1]=Y.slice(fe*de,(fe+1)*de);return ae[ie-1]=Y.slice(ie*de),ae}function g(Y,de,ie){for(var ae=0,fe=0,pe=0,Oe=0,ke=0,Ee=ie.length,Ce=[],je=[];ae<Ee;++ae)Ce[ae]=je[ae]=ae,de[ae]=ie[ae];for(;ke<je.length;++ke)ae=je[ke],fe=Y[ae].L,pe=Y[ae].R,Oe=Y[ae].C,Ce[ae]===ae&&(fe!==-1&&Ce[fe]!==fe&&(Ce[ae]=Ce[fe]),pe!==-1&&Ce[pe]!==pe&&(Ce[ae]=Ce[pe])),Oe!==-1&&(Ce[Oe]=ae),fe!==-1&&ae!=Ce[ae]&&(Ce[fe]=Ce[ae],je.lastIndexOf(fe)<ke&&je.push(fe)),pe!==-1&&ae!=Ce[ae]&&(Ce[pe]=Ce[ae],je.lastIndexOf(pe)<ke&&je.push(pe));for(ae=1;ae<Ee;++ae)Ce[ae]===ae&&(pe!==-1&&Ce[pe]!==pe?Ce[ae]=Ce[pe]:fe!==-1&&Ce[fe]!==fe&&(Ce[ae]=Ce[fe]));for(ae=1;ae<Ee;++ae)if(Y[ae].type!==0){if(ke=ae,ke!=Ce[ke])do ke=Ce[ke],de[ae]=de[ke]+"/"+de[ae];while(ke!==0&&Ce[ke]!==-1&&ke!=Ce[ke]);Ce[ae]=-1}for(de[0]+="/",ae=1;ae<Ee;++ae)Y[ae].type!==2&&(de[ae]+="/")}function p(Y,de,ie){for(var ae=Y.start,fe=Y.size,pe=[],Oe=ae;ie&&fe>0&&Oe>=0;)pe.push(de.slice(Oe*P,Oe*P+P)),fe-=P,Oe=Cs(ie,Oe*4);return pe.length===0?Me(0):Tn(pe).slice(0,Y.size)}function m(Y,de,ie,ae,fe){var pe=M;if(Y===M){if(de!==0)throw new Error("DIFAT chain shorter than expected")}else if(Y!==-1){var Oe=ie[Y],ke=(ae>>>2)-1;if(!Oe)return;for(var Ee=0;Ee<ke&&(pe=Cs(Oe,Ee*4))!==M;++Ee)fe.push(pe);m(Cs(Oe,ae-4),de-1,ie,ae,fe)}}function y(Y,de,ie,ae,fe){var pe=[],Oe=[];fe||(fe=[]);var ke=ae-1,Ee=0,Ce=0;for(Ee=de;Ee>=0;){fe[Ee]=!0,pe[pe.length]=Ee,Oe.push(Y[Ee]);var je=ie[Math.floor(Ee*4/ae)];if(Ce=Ee*4&ke,ae<4+Ce)throw new Error("FAT boundary crossed: "+Ee+" 4 "+ae);if(!Y[je])break;Ee=Cs(Y[je],Ce)}return{nodes:pe,data:jw([Oe])}}function x(Y,de,ie,ae){var fe=Y.length,pe=[],Oe=[],ke=[],Ee=[],Ce=ae-1,je=0,Ge=0,Ze=0,st=0;for(je=0;je<fe;++je)if(ke=[],Ze=je+de,Ze>=fe&&(Ze-=fe),!Oe[Ze]){Ee=[];var Ke=[];for(Ge=Ze;Ge>=0;){Ke[Ge]=!0,Oe[Ge]=!0,ke[ke.length]=Ge,Ee.push(Y[Ge]);var ot=ie[Math.floor(Ge*4/ae)];if(st=Ge*4&Ce,ae<4+st)throw new Error("FAT boundary crossed: "+Ge+" 4 "+ae);if(!Y[ot]||(Ge=Cs(Y[ot],st),Ke[Ge]))break}pe[Ze]={nodes:ke,data:jw([Ee])}}return pe}function w(Y,de,ie,ae,fe,pe,Oe,ke){for(var Ee=0,Ce=ae.length?2:0,je=de[Y].data,Ge=0,Ze=0,st;Ge<je.length;Ge+=128){var Ke=je.slice(Ge,Ge+128);Ai(Ke,64),Ze=Ke.read_shift(2),st=Xx(Ke,0,Ze-Ce),ae.push(st);var ot={name:st,type:Ke.read_shift(1),color:Ke.read_shift(1),L:Ke.read_shift(4,"i"),R:Ke.read_shift(4,"i"),C:Ke.read_shift(4,"i"),clsid:Ke.read_shift(16),state:Ke.read_shift(4,"i"),start:0,size:0},St=Ke.read_shift(2)+Ke.read_shift(2)+Ke.read_shift(2)+Ke.read_shift(2);St!==0&&(ot.ct=T(Ke,Ke.l-8));var Jt=Ke.read_shift(2)+Ke.read_shift(2)+Ke.read_shift(2)+Ke.read_shift(2);Jt!==0&&(ot.mt=T(Ke,Ke.l-8)),ot.start=Ke.read_shift(4,"i"),ot.size=Ke.read_shift(4,"i"),ot.size<0&&ot.start<0&&(ot.size=ot.type=0,ot.start=M,ot.name=""),ot.type===5?(Ee=ot.start,fe>0&&Ee!==M&&(de[Ee].name="!StreamData")):ot.size>=4096?(ot.storage="fat",de[ot.start]===void 0&&(de[ot.start]=y(ie,ot.start,de.fat_addrs,de.ssz)),de[ot.start].name=ot.name,ot.content=de[ot.start].data.slice(0,ot.size)):(ot.storage="minifat",ot.size<0?ot.size=0:Ee!==M&&ot.start!==M&&de[Ee]&&(ot.content=p(ot,de[Ee].data,(de[ke]||{}).data))),ot.content&&Ai(ot.content,0),pe[st]=ot,Oe.push(ot)}}function T(Y,de){return new Date((Ei(Y,de+4)/1e7*Math.pow(2,32)+Ei(Y,de)/1e7-11644473600)*1e3)}function _(Y,de){return u(),c(l.readFileSync(Y),de)}function O(Y,de){var ie=de&&de.type;switch(ie||Yt&&Buffer.isBuffer(Y)&&(ie="buffer"),ie||"base64"){case"file":return _(Y,de);case"base64":return c(va(yo(Y)),de);case"binary":return c(va(Y),de)}return c(Y,de)}function A(Y,de){var ie=de||{},ae=ie.root||"Root Entry";if(Y.FullPaths||(Y.FullPaths=[]),Y.FileIndex||(Y.FileIndex=[]),Y.FullPaths.length!==Y.FileIndex.length)throw new Error("inconsistent CFB structure");Y.FullPaths.length===0&&(Y.FullPaths[0]=ae+"/",Y.FileIndex[0]={name:ae,type:5}),ie.CLSID&&(Y.FileIndex[0].clsid=ie.CLSID),k(Y)}function k(Y){var de="Sh33tJ5";if(!pr.find(Y,"/"+de)){var ie=Me(4);ie[0]=55,ie[1]=ie[3]=50,ie[2]=54,Y.FileIndex.push({name:de,type:2,content:ie,size:4,L:69,R:69,C:69}),Y.FullPaths.push(Y.FullPaths[0]+de),L(Y)}}function L(Y,de){A(Y);for(var ie=!1,ae=!1,fe=Y.FullPaths.length-1;fe>=0;--fe){var pe=Y.FileIndex[fe];switch(pe.type){case 0:ae?ie=!0:(Y.FileIndex.pop(),Y.FullPaths.pop());break;case 1:case 2:case 5:ae=!0,isNaN(pe.R*pe.L*pe.C)&&(ie=!0),pe.R>-1&&pe.L>-1&&pe.R==pe.L&&(ie=!0);break;default:ie=!0;break}}if(!(!ie&&!de)){var Oe=new Date(1987,1,19),ke=0,Ee=Object.create?Object.create(null):{},Ce=[];for(fe=0;fe<Y.FullPaths.length;++fe)Ee[Y.FullPaths[fe]]=!0,Y.FileIndex[fe].type!==0&&Ce.push([Y.FullPaths[fe],Y.FileIndex[fe]]);for(fe=0;fe<Ce.length;++fe){var je=n(Ce[fe][0]);ae=Ee[je],ae||(Ce.push([je,{name:i(je).replace("/",""),type:1,clsid:U,ct:Oe,mt:Oe,content:null}]),Ee[je]=!0)}for(Ce.sort(function(st,Ke){return r(st[0],Ke[0])}),Y.FullPaths=[],Y.FileIndex=[],fe=0;fe<Ce.length;++fe)Y.FullPaths[fe]=Ce[fe][0],Y.FileIndex[fe]=Ce[fe][1];for(fe=0;fe<Ce.length;++fe){var Ge=Y.FileIndex[fe],Ze=Y.FullPaths[fe];if(Ge.name=i(Ze).replace("/",""),Ge.L=Ge.R=Ge.C=-(Ge.color=1),Ge.size=Ge.content?Ge.content.length:0,Ge.start=0,Ge.clsid=Ge.clsid||U,fe===0)Ge.C=Ce.length>1?1:-1,Ge.size=0,Ge.type=5;else if(Ze.slice(-1)=="/"){for(ke=fe+1;ke<Ce.length&&n(Y.FullPaths[ke])!=Ze;++ke);for(Ge.C=ke>=Ce.length?-1:ke,ke=fe+1;ke<Ce.length&&n(Y.FullPaths[ke])!=n(Ze);++ke);Ge.R=ke>=Ce.length?-1:ke,Ge.type=1}else n(Y.FullPaths[fe+1]||"")==n(Ze)&&(Ge.R=fe+1),Ge.type=2}}}function B(Y,de){var ie=de||{};if(ie.fileType=="mad")return gt(Y,ie);switch(L(Y),ie.fileType){case"zip":return Zi(Y,ie)}var ae=(function(st){for(var Ke=0,ot=0,St=0;St<st.FileIndex.length;++St){var Jt=st.FileIndex[St];if(Jt.content){var hr=Jt.content.length;hr>0&&(hr<4096?Ke+=hr+63>>6:ot+=hr+511>>9)}}for(var Gr=st.FullPaths.length+3>>2,Qi=Ke+7>>3,Ga=Ke+127>>7,Ta=Qi+ot+Gr+Ga,ea=Ta+127>>7,Ea=ea<=109?0:Math.ceil((ea-109)/127);Ta+ea+Ea+127>>7>ea;)Ea=++ea<=109?0:Math.ceil((ea-109)/127);var vi=[1,Ea,ea,Ga,Gr,ot,Ke,0];return st.FileIndex[0].size=Ke<<6,vi[7]=(st.FileIndex[0].start=vi[0]+vi[1]+vi[2]+vi[3]+vi[4]+vi[5])+(vi[6]+7>>3),vi})(Y),fe=Me(ae[7]<<9),pe=0,Oe=0;{for(pe=0;pe<8;++pe)fe.write_shift(1,J[pe]);for(pe=0;pe<8;++pe)fe.write_shift(2,0);for(fe.write_shift(2,62),fe.write_shift(2,3),fe.write_shift(2,65534),fe.write_shift(2,9),fe.write_shift(2,6),pe=0;pe<3;++pe)fe.write_shift(2,0);for(fe.write_shift(4,0),fe.write_shift(4,ae[2]),fe.write_shift(4,ae[0]+ae[1]+ae[2]+ae[3]-1),fe.write_shift(4,0),fe.write_shift(4,4096),fe.write_shift(4,ae[3]?ae[0]+ae[1]+ae[2]-1:M),fe.write_shift(4,ae[3]),fe.write_shift(-4,ae[1]?ae[0]-1:M),fe.write_shift(4,ae[1]),pe=0;pe<109;++pe)fe.write_shift(-4,pe<ae[2]?ae[1]+pe:-1)}if(ae[1])for(Oe=0;Oe<ae[1];++Oe){for(;pe<236+Oe*127;++pe)fe.write_shift(-4,pe<ae[2]?ae[1]+pe:-1);fe.write_shift(-4,Oe===ae[1]-1?M:Oe+1)}var ke=function(st){for(Oe+=st;pe<Oe-1;++pe)fe.write_shift(-4,pe+1);st&&(++pe,fe.write_shift(-4,M))};for(Oe=pe=0,Oe+=ae[1];pe<Oe;++pe)fe.write_shift(-4,H.DIFSECT);for(Oe+=ae[2];pe<Oe;++pe)fe.write_shift(-4,H.FATSECT);ke(ae[3]),ke(ae[4]);for(var Ee=0,Ce=0,je=Y.FileIndex[0];Ee<Y.FileIndex.length;++Ee)je=Y.FileIndex[Ee],je.content&&(Ce=je.content.length,!(Ce<4096)&&(je.start=Oe,ke(Ce+511>>9)));for(ke(ae[6]+7>>3);fe.l&511;)fe.write_shift(-4,H.ENDOFCHAIN);for(Oe=pe=0,Ee=0;Ee<Y.FileIndex.length;++Ee)je=Y.FileIndex[Ee],je.content&&(Ce=je.content.length,!(!Ce||Ce>=4096)&&(je.start=Oe,ke(Ce+63>>6)));for(;fe.l&511;)fe.write_shift(-4,H.ENDOFCHAIN);for(pe=0;pe<ae[4]<<2;++pe){var Ge=Y.FullPaths[pe];if(!Ge||Ge.length===0){for(Ee=0;Ee<17;++Ee)fe.write_shift(4,0);for(Ee=0;Ee<3;++Ee)fe.write_shift(4,-1);for(Ee=0;Ee<12;++Ee)fe.write_shift(4,0);continue}je=Y.FileIndex[pe],pe===0&&(je.start=je.size?je.start-1:M);var Ze=pe===0&&ie.root||je.name;if(Ce=2*(Ze.length+1),fe.write_shift(64,Ze,"utf16le"),fe.write_shift(2,Ce),fe.write_shift(1,je.type),fe.write_shift(1,je.color),fe.write_shift(-4,je.L),fe.write_shift(-4,je.R),fe.write_shift(-4,je.C),je.clsid)fe.write_shift(16,je.clsid,"hex");else for(Ee=0;Ee<4;++Ee)fe.write_shift(4,0);fe.write_shift(4,je.state||0),fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(4,0),fe.write_shift(4,je.start),fe.write_shift(4,je.size),fe.write_shift(4,0)}for(pe=1;pe<Y.FileIndex.length;++pe)if(je=Y.FileIndex[pe],je.size>=4096)if(fe.l=je.start+1<<9,Yt&&Buffer.isBuffer(je.content))je.content.copy(fe,fe.l,0,je.size),fe.l+=je.size+511&-512;else{for(Ee=0;Ee<je.size;++Ee)fe.write_shift(1,je.content[Ee]);for(;Ee&511;++Ee)fe.write_shift(1,0)}for(pe=1;pe<Y.FileIndex.length;++pe)if(je=Y.FileIndex[pe],je.size>0&&je.size<4096)if(Yt&&Buffer.isBuffer(je.content))je.content.copy(fe,fe.l,0,je.size),fe.l+=je.size+63&-64;else{for(Ee=0;Ee<je.size;++Ee)fe.write_shift(1,je.content[Ee]);for(;Ee&63;++Ee)fe.write_shift(1,0)}if(Yt)fe.l=fe.length;else for(;fe.l<fe.length;)fe.write_shift(1,0);return fe}function C(Y,de){var ie=Y.FullPaths.map(function(Ee){return Ee.toUpperCase()}),ae=ie.map(function(Ee){var Ce=Ee.split("/");return Ce[Ce.length-(Ee.slice(-1)=="/"?2:1)]}),fe=!1;de.charCodeAt(0)===47?(fe=!0,de=ie[0].slice(0,-1)+de):fe=de.indexOf("/")!==-1;var pe=de.toUpperCase(),Oe=fe===!0?ie.indexOf(pe):ae.indexOf(pe);if(Oe!==-1)return Y.FileIndex[Oe];var ke=!pe.match(c0);for(pe=pe.replace(Vc,""),ke&&(pe=pe.replace(c0,"!")),Oe=0;Oe<ie.length;++Oe)if((ke?ie[Oe].replace(c0,"!"):ie[Oe]).replace(Vc,"")==pe||(ke?ae[Oe].replace(c0,"!"):ae[Oe]).replace(Vc,"")==pe)return Y.FileIndex[Oe];return null}var P=64,M=-2,q="d0cf11e0a1b11ae1",J=[208,207,17,224,161,177,26,225],U="00000000000000000000000000000000",H={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:M,FREESECT:-1,HEADER_SIGNATURE:q,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:U,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ee(Y,de,ie){u();var ae=B(Y,ie);l.writeFileSync(de,ae)}function Z(Y){for(var de=new Array(Y.length),ie=0;ie<Y.length;++ie)de[ie]=String.fromCharCode(Y[ie]);return de.join("")}function Q(Y,de){var ie=B(Y,de);switch(de&&de.type||"buffer"){case"file":return u(),l.writeFileSync(de.filename,ie),ie;case"binary":return typeof ie=="string"?ie:Z(ie);case"base64":return cf(typeof ie=="string"?ie:Z(ie));case"buffer":if(Yt)return Buffer.isBuffer(ie)?ie:Ao(ie);case"array":return typeof ie=="string"?va(ie):ie}return ie}var le;function N(Y){try{var de=Y.InflateRaw,ie=new de;if(ie._processChunk(new Uint8Array([3,0]),ie._finishFlushFlag),ie.bytesRead)le=Y;else throw new Error("zlib does not expose bytesRead")}catch(ae){console.error("cannot use native zlib: "+(ae.message||ae))}}function I(Y,de){if(!le)return zt(Y,de);var ie=le.InflateRaw,ae=new ie,fe=ae._processChunk(Y.slice(Y.l),ae._finishFlushFlag);return Y.l+=ae.bytesRead,fe}function R(Y){return le?le.deflateRawSync(Y):Rt(Y)}var D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],G=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ce=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function he(Y){var de=(Y<<1|Y<<11)&139536|(Y<<5|Y<<15)&558144;return(de>>16|de>>8|de)&255}for(var ne=typeof Uint8Array<"u",me=ne?new Uint8Array(256):[],Se=0;Se<256;++Se)me[Se]=he(Se);function ue(Y,de){var ie=me[Y&255];return de<=8?ie>>>8-de:(ie=ie<<8|me[Y>>8&255],de<=16?ie>>>16-de:(ie=ie<<8|me[Y>>16&255],ie>>>24-de))}function Ie(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=6?0:Y[ae+1]<<8))>>>ie&3}function ge(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=5?0:Y[ae+1]<<8))>>>ie&7}function _e(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=4?0:Y[ae+1]<<8))>>>ie&15}function oe(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=3?0:Y[ae+1]<<8))>>>ie&31}function Re(Y,de){var ie=de&7,ae=de>>>3;return(Y[ae]|(ie<=1?0:Y[ae+1]<<8))>>>ie&127}function et(Y,de,ie){var ae=de&7,fe=de>>>3,pe=(1<<ie)-1,Oe=Y[fe]>>>ae;return ie<8-ae||(Oe|=Y[fe+1]<<8-ae,ie<16-ae)||(Oe|=Y[fe+2]<<16-ae,ie<24-ae)||(Oe|=Y[fe+3]<<24-ae),Oe&pe}function Be(Y,de,ie){var ae=de&7,fe=de>>>3;return ae<=5?Y[fe]|=(ie&7)<<ae:(Y[fe]|=ie<<ae&255,Y[fe+1]=(ie&7)>>8-ae),de+3}function Ve(Y,de,ie){var ae=de&7,fe=de>>>3;return ie=(ie&1)<<ae,Y[fe]|=ie,de+1}function Je(Y,de,ie){var ae=de&7,fe=de>>>3;return ie<<=ae,Y[fe]|=ie&255,ie>>>=8,Y[fe+1]=ie,de+8}function Xe(Y,de,ie){var ae=de&7,fe=de>>>3;return ie<<=ae,Y[fe]|=ie&255,ie>>>=8,Y[fe+1]=ie&255,Y[fe+2]=ie>>>8,de+16}function ht(Y,de){var ie=Y.length,ae=2*ie>de?2*ie:de+5,fe=0;if(ie>=de)return Y;if(Yt){var pe=mw(ae);if(Y.copy)Y.copy(pe);else for(;fe<Y.length;++fe)pe[fe]=Y[fe];return pe}else if(ne){var Oe=new Uint8Array(ae);if(Oe.set)Oe.set(Y);else for(;fe<ie;++fe)Oe[fe]=Y[fe];return Oe}return Y.length=ae,Y}function dt(Y){for(var de=new Array(Y),ie=0;ie<Y;++ie)de[ie]=0;return de}function xt(Y,de,ie){var ae=1,fe=0,pe=0,Oe=0,ke=0,Ee=Y.length,Ce=ne?new Uint16Array(32):dt(32);for(pe=0;pe<32;++pe)Ce[pe]=0;for(pe=Ee;pe<ie;++pe)Y[pe]=0;Ee=Y.length;var je=ne?new Uint16Array(Ee):dt(Ee);for(pe=0;pe<Ee;++pe)Ce[fe=Y[pe]]++,ae<fe&&(ae=fe),je[pe]=0;for(Ce[0]=0,pe=1;pe<=ae;++pe)Ce[pe+16]=ke=ke+Ce[pe-1]<<1;for(pe=0;pe<Ee;++pe)ke=Y[pe],ke!=0&&(je[pe]=Ce[ke+16]++);var Ge=0;for(pe=0;pe<Ee;++pe)if(Ge=Y[pe],Ge!=0)for(ke=ue(je[pe],ae)>>ae-Ge,Oe=(1<<ae+4-Ge)-1;Oe>=0;--Oe)de[ke|Oe<<Ge]=Ge&15|pe<<4;return ae}var Et=ne?new Uint16Array(512):dt(512),Ft=ne?new Uint16Array(32):dt(32);if(!ne){for(var Bt=0;Bt<512;++Bt)Et[Bt]=0;for(Bt=0;Bt<32;++Bt)Ft[Bt]=0}(function(){for(var Y=[],de=0;de<32;de++)Y.push(5);xt(Y,Ft,32);var ie=[];for(de=0;de<=143;de++)ie.push(8);for(;de<=255;de++)ie.push(9);for(;de<=279;de++)ie.push(7);for(;de<=287;de++)ie.push(8);xt(ie,Et,288)})();var wt=(function(){for(var de=ne?new Uint8Array(32768):[],ie=0,ae=0;ie<ce.length-1;++ie)for(;ae<ce[ie+1];++ae)de[ae]=ie;for(;ae<32768;++ae)de[ae]=29;var fe=ne?new Uint8Array(259):[];for(ie=0,ae=0;ie<G.length-1;++ie)for(;ae<G[ie+1];++ae)fe[ae]=ie;function pe(ke,Ee){for(var Ce=0;Ce<ke.length;){var je=Math.min(65535,ke.length-Ce),Ge=Ce+je==ke.length;for(Ee.write_shift(1,+Ge),Ee.write_shift(2,je),Ee.write_shift(2,~je&65535);je-- >0;)Ee[Ee.l++]=ke[Ce++]}return Ee.l}function Oe(ke,Ee){for(var Ce=0,je=0,Ge=ne?new Uint16Array(32768):[];je<ke.length;){var Ze=Math.min(65535,ke.length-je);if(Ze<10){for(Ce=Be(Ee,Ce,+(je+Ze==ke.length)),Ce&7&&(Ce+=8-(Ce&7)),Ee.l=Ce/8|0,Ee.write_shift(2,Ze),Ee.write_shift(2,~Ze&65535);Ze-- >0;)Ee[Ee.l++]=ke[je++];Ce=Ee.l*8;continue}Ce=Be(Ee,Ce,+(je+Ze==ke.length)+2);for(var st=0;Ze-- >0;){var Ke=ke[je];st=(st<<5^Ke)&32767;var ot=-1,St=0;if((ot=Ge[st])&&(ot|=je&-32768,ot>je&&(ot-=32768),ot<je))for(;ke[ot+St]==ke[je+St]&&St<250;)++St;if(St>2){Ke=fe[St],Ke<=22?Ce=Je(Ee,Ce,me[Ke+1]>>1)-1:(Je(Ee,Ce,3),Ce+=5,Je(Ee,Ce,me[Ke-23]>>5),Ce+=3);var Jt=Ke<8?0:Ke-4>>2;Jt>0&&(Xe(Ee,Ce,St-G[Ke]),Ce+=Jt),Ke=de[je-ot],Ce=Je(Ee,Ce,me[Ke]>>3),Ce-=3;var hr=Ke<4?0:Ke-2>>1;hr>0&&(Xe(Ee,Ce,je-ot-ce[Ke]),Ce+=hr);for(var Gr=0;Gr<St;++Gr)Ge[st]=je&32767,st=(st<<5^ke[je])&32767,++je;Ze-=St-1}else Ke<=143?Ke=Ke+48:Ce=Ve(Ee,Ce,1),Ce=Je(Ee,Ce,me[Ke]),Ge[st]=je&32767,++je}Ce=Je(Ee,Ce,0)-1}return Ee.l=(Ce+7)/8|0,Ee.l}return function(Ee,Ce){return Ee.length<8?pe(Ee,Ce):Oe(Ee,Ce)}})();function Rt(Y){var de=Me(50+Math.floor(Y.length*1.1)),ie=wt(Y,de);return de.slice(0,ie)}var at=ne?new Uint16Array(32768):dt(32768),tn=ne?new Uint16Array(32768):dt(32768),qt=ne?new Uint16Array(128):dt(128),Qn=1,Xt=1;function wr(Y,de){var ie=oe(Y,de)+257;de+=5;var ae=oe(Y,de)+1;de+=5;var fe=_e(Y,de)+4;de+=4;for(var pe=0,Oe=ne?new Uint8Array(19):dt(19),ke=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ee=1,Ce=ne?new Uint8Array(8):dt(8),je=ne?new Uint8Array(8):dt(8),Ge=Oe.length,Ze=0;Ze<fe;++Ze)Oe[D[Ze]]=pe=ge(Y,de),Ee<pe&&(Ee=pe),Ce[pe]++,de+=3;var st=0;for(Ce[0]=0,Ze=1;Ze<=Ee;++Ze)je[Ze]=st=st+Ce[Ze-1]<<1;for(Ze=0;Ze<Ge;++Ze)(st=Oe[Ze])!=0&&(ke[Ze]=je[st]++);var Ke=0;for(Ze=0;Ze<Ge;++Ze)if(Ke=Oe[Ze],Ke!=0){st=me[ke[Ze]]>>8-Ke;for(var ot=(1<<7-Ke)-1;ot>=0;--ot)qt[st|ot<<Ke]=Ke&7|Ze<<3}var St=[];for(Ee=1;St.length<ie+ae;)switch(st=qt[Re(Y,de)],de+=st&7,st>>>=3){case 16:for(pe=3+Ie(Y,de),de+=2,st=St[St.length-1];pe-- >0;)St.push(st);break;case 17:for(pe=3+ge(Y,de),de+=3;pe-- >0;)St.push(0);break;case 18:for(pe=11+Re(Y,de),de+=7;pe-- >0;)St.push(0);break;default:St.push(st),Ee<st&&(Ee=st);break}var Jt=St.slice(0,ie),hr=St.slice(ie);for(Ze=ie;Ze<286;++Ze)Jt[Ze]=0;for(Ze=ae;Ze<30;++Ze)hr[Ze]=0;return Qn=xt(Jt,at,286),Xt=xt(hr,tn,30),de}function Ci(Y,de){if(Y[0]==3&&!(Y[1]&3))return[Gs(de),2];for(var ie=0,ae=0,fe=mw(de||1<<18),pe=0,Oe=fe.length>>>0,ke=0,Ee=0;(ae&1)==0;){if(ae=ge(Y,ie),ie+=3,ae>>>1)ae>>1==1?(ke=9,Ee=5):(ie=wr(Y,ie),ke=Qn,Ee=Xt);else{ie&7&&(ie+=8-(ie&7));var Ce=Y[ie>>>3]|Y[(ie>>>3)+1]<<8;if(ie+=32,Ce>0)for(!de&&Oe<pe+Ce&&(fe=ht(fe,pe+Ce),Oe=fe.length);Ce-- >0;)fe[pe++]=Y[ie>>>3],ie+=8;continue}for(;;){!de&&Oe<pe+32767&&(fe=ht(fe,pe+32767),Oe=fe.length);var je=et(Y,ie,ke),Ge=ae>>>1==1?Et[je]:at[je];if(ie+=Ge&15,Ge>>>=4,(Ge>>>8&255)===0)fe[pe++]=Ge;else{if(Ge==256)break;Ge-=257;var Ze=Ge<8?0:Ge-4>>2;Ze>5&&(Ze=0);var st=pe+G[Ge];Ze>0&&(st+=et(Y,ie,Ze),ie+=Ze),je=et(Y,ie,Ee),Ge=ae>>>1==1?Ft[je]:tn[je],ie+=Ge&15,Ge>>>=4;var Ke=Ge<4?0:Ge-2>>1,ot=ce[Ge];for(Ke>0&&(ot+=et(Y,ie,Ke),ie+=Ke),!de&&Oe<st&&(fe=ht(fe,st+100),Oe=fe.length);pe<st;)fe[pe]=fe[pe-ot],++pe}}}return de?[fe,ie+7>>>3]:[fe.slice(0,pe),ie+7>>>3]}function zt(Y,de){var ie=Y.slice(Y.l||0),ae=Ci(ie,de);return Y.l+=ae[1],ae[0]}function Aa(Y,de){if(Y)typeof console<"u"&&console.error(de);else throw new Error(de)}function Tr(Y,de){var ie=Y;Ai(ie,0);var ae=[],fe=[],pe={FileIndex:ae,FullPaths:fe};A(pe,{root:de.root});for(var Oe=ie.length-4;(ie[Oe]!=80||ie[Oe+1]!=75||ie[Oe+2]!=5||ie[Oe+3]!=6)&&Oe>=0;)--Oe;ie.l=Oe+4,ie.l+=4;var ke=ie.read_shift(2);ie.l+=6;var Ee=ie.read_shift(4);for(ie.l=Ee,Oe=0;Oe<ke;++Oe){ie.l+=20;var Ce=ie.read_shift(4),je=ie.read_shift(4),Ge=ie.read_shift(2),Ze=ie.read_shift(2),st=ie.read_shift(2);ie.l+=8;var Ke=ie.read_shift(4),ot=s(ie.slice(ie.l+Ge,ie.l+Ge+Ze));ie.l+=Ge+Ze+st;var St=ie.l;ie.l=Ke+4,di(ie,Ce,je,pe,ot),ie.l=St}return pe}function di(Y,de,ie,ae,fe){Y.l+=2;var pe=Y.read_shift(2),Oe=Y.read_shift(2),ke=o(Y);if(pe&8257)throw new Error("Unsupported ZIP encryption");for(var Ee=Y.read_shift(4),Ce=Y.read_shift(4),je=Y.read_shift(4),Ge=Y.read_shift(2),Ze=Y.read_shift(2),st="",Ke=0;Ke<Ge;++Ke)st+=String.fromCharCode(Y[Y.l++]);if(Ze){var ot=s(Y.slice(Y.l,Y.l+Ze));(ot[21589]||{}).mt&&(ke=ot[21589].mt),((fe||{})[21589]||{}).mt&&(ke=fe[21589].mt)}Y.l+=Ze;var St=Y.slice(Y.l,Y.l+Ce);switch(Oe){case 8:St=I(Y,je);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Oe)}var Jt=!1;pe&8&&(Ee=Y.read_shift(4),Ee==134695760&&(Ee=Y.read_shift(4),Jt=!0),Ce=Y.read_shift(4),je=Y.read_shift(4)),Ce!=de&&Aa(Jt,"Bad compressed size: "+de+" != "+Ce),je!=ie&&Aa(Jt,"Bad uncompressed size: "+ie+" != "+je),ei(ae,st,St,{unsafe:!0,mt:ke})}function Zi(Y,de){var ie=de||{},ae=[],fe=[],pe=Me(1),Oe=ie.compression?8:0,ke=0,Ee=0,Ce=0,je=0,Ge=0,Ze=Y.FullPaths[0],st=Ze,Ke=Y.FileIndex[0],ot=[],St=0;for(Ee=1;Ee<Y.FullPaths.length;++Ee)if(st=Y.FullPaths[Ee].slice(Ze.length),Ke=Y.FileIndex[Ee],!(!Ke.size||!Ke.content||st=="Sh33tJ5")){var Jt=je,hr=Me(st.length);for(Ce=0;Ce<st.length;++Ce)hr.write_shift(1,st.charCodeAt(Ce)&127);hr=hr.slice(0,hr.l),ot[Ge]=VL.buf(Ke.content,0);var Gr=Ke.content;Oe==8&&(Gr=R(Gr)),pe=Me(30),pe.write_shift(4,67324752),pe.write_shift(2,20),pe.write_shift(2,ke),pe.write_shift(2,Oe),Ke.mt?a(pe,Ke.mt):pe.write_shift(4,0),pe.write_shift(-4,ot[Ge]),pe.write_shift(4,Gr.length),pe.write_shift(4,Ke.content.length),pe.write_shift(2,hr.length),pe.write_shift(2,0),je+=pe.length,ae.push(pe),je+=hr.length,ae.push(hr),je+=Gr.length,ae.push(Gr),pe=Me(46),pe.write_shift(4,33639248),pe.write_shift(2,0),pe.write_shift(2,20),pe.write_shift(2,ke),pe.write_shift(2,Oe),pe.write_shift(4,0),pe.write_shift(-4,ot[Ge]),pe.write_shift(4,Gr.length),pe.write_shift(4,Ke.content.length),pe.write_shift(2,hr.length),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(4,0),pe.write_shift(4,Jt),St+=pe.l,fe.push(pe),St+=hr.length,fe.push(hr),++Ge}return pe=Me(22),pe.write_shift(4,101010256),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,Ge),pe.write_shift(2,Ge),pe.write_shift(4,St),pe.write_shift(4,je),pe.write_shift(2,0),Tn([Tn(ae),Tn(fe),pe])}var gr={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function At(Y,de){if(Y.ctype)return Y.ctype;var ie=Y.name||"",ae=ie.match(/\.([^\.]+)$/);return ae&&gr[ae[1]]||de&&(ae=(ie=de).match(/[\.\\]([^\.\\])+$/),ae&&gr[ae[1]])?gr[ae[1]]:"application/octet-stream"}function Ht(Y){for(var de=cf(Y),ie=[],ae=0;ae<de.length;ae+=76)ie.push(de.slice(ae,ae+76));return ie.join(`\r
254
+ `)+`\r
255
+ `}function Ha(Y){var de=Y.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Ce){var je=Ce.charCodeAt(0).toString(16).toUpperCase();return"="+(je.length==1?"0"+je:je)});de=de.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),de.charAt(0)==`
256
+ `&&(de="=0D"+de.slice(1)),de=de.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
257
+ =0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var ie=[],ae=de.split(`\r
258
+ `),fe=0;fe<ae.length;++fe){var pe=ae[fe];if(pe.length==0){ie.push("");continue}for(var Oe=0;Oe<pe.length;){var ke=76,Ee=pe.slice(Oe,Oe+ke);Ee.charAt(ke-1)=="="?ke--:Ee.charAt(ke-2)=="="?ke-=2:Ee.charAt(ke-3)=="="&&(ke-=3),Ee=pe.slice(Oe,Oe+ke),Oe+=ke,Oe<pe.length&&(Ee+="="),ie.push(Ee)}}return ie.join(`\r
259
+ `)}function rn(Y){for(var de=[],ie=0;ie<Y.length;++ie){for(var ae=Y[ie];ie<=Y.length&&ae.charAt(ae.length-1)=="=";)ae=ae.slice(0,ae.length-1)+Y[++ie];de.push(ae)}for(var fe=0;fe<de.length;++fe)de[fe]=de[fe].replace(/[=][0-9A-Fa-f]{2}/g,function(pe){return String.fromCharCode(parseInt(pe.slice(1),16))});return va(de.join(`\r
260
+ `))}function ji(Y,de,ie){for(var ae="",fe="",pe="",Oe,ke=0;ke<10;++ke){var Ee=de[ke];if(!Ee||Ee.match(/^\s*$/))break;var Ce=Ee.match(/^(.*?):\s*([^\s].*)$/);if(Ce)switch(Ce[1].toLowerCase()){case"content-location":ae=Ce[2].trim();break;case"content-type":pe=Ce[2].trim();break;case"content-transfer-encoding":fe=Ce[2].trim();break}}switch(++ke,fe.toLowerCase()){case"base64":Oe=va(yo(de.slice(ke).join("")));break;case"quoted-printable":Oe=rn(de.slice(ke));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+fe)}var je=ei(Y,ae.slice(ie.length),Oe,{unsafe:!0});pe&&(je.ctype=pe)}function ki(Y,de){if(Z(Y.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var ie=de&&de.root||"",ae=(Yt&&Buffer.isBuffer(Y)?Y.toString("binary"):Z(Y)).split(`\r
261
+ `),fe=0,pe="";for(fe=0;fe<ae.length;++fe)if(pe=ae[fe],!!/^Content-Location:/i.test(pe)&&(pe=pe.slice(pe.indexOf("file")),ie||(ie=pe.slice(0,pe.lastIndexOf("/")+1)),pe.slice(0,ie.length)!=ie))for(;ie.length>0&&(ie=ie.slice(0,ie.length-1),ie=ie.slice(0,ie.lastIndexOf("/")+1),pe.slice(0,ie.length)!=ie););var Oe=(ae[1]||"").match(/boundary="(.*?)"/);if(!Oe)throw new Error("MAD cannot find boundary");var ke="--"+(Oe[1]||""),Ee=[],Ce=[],je={FileIndex:Ee,FullPaths:Ce};A(je);var Ge,Ze=0;for(fe=0;fe<ae.length;++fe){var st=ae[fe];st!==ke&&st!==ke+"--"||(Ze++&&ji(je,ae.slice(Ge,fe),ie),Ge=fe)}return je}function gt(Y,de){var ie=de||{},ae=ie.boundary||"SheetJS";ae="------="+ae;for(var fe=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+ae.slice(2)+'"',"","",""],pe=Y.FullPaths[0],Oe=pe,ke=Y.FileIndex[0],Ee=1;Ee<Y.FullPaths.length;++Ee)if(Oe=Y.FullPaths[Ee].slice(pe.length),ke=Y.FileIndex[Ee],!(!ke.size||!ke.content||Oe=="Sh33tJ5")){Oe=Oe.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(St){return"_x"+St.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(St){return"_u"+St.charCodeAt(0).toString(16)+"_"});for(var Ce=ke.content,je=Yt&&Buffer.isBuffer(Ce)?Ce.toString("binary"):Z(Ce),Ge=0,Ze=Math.min(1024,je.length),st=0,Ke=0;Ke<=Ze;++Ke)(st=je.charCodeAt(Ke))>=32&&st<128&&++Ge;var ot=Ge>=Ze*4/5;fe.push(ae),fe.push("Content-Location: "+(ie.root||"file:///C:/SheetJS/")+Oe),fe.push("Content-Transfer-Encoding: "+(ot?"quoted-printable":"base64")),fe.push("Content-Type: "+At(ke,Oe)),fe.push(""),fe.push(ot?Ha(je):Ht(je))}return fe.push(ae+`--\r
262
+ `),fe.join(`\r
263
+ `)}function pi(Y){var de={};return A(de,Y),de}function ei(Y,de,ie,ae){var fe=ae&&ae.unsafe;fe||A(Y);var pe=!fe&&pr.find(Y,de);if(!pe){var Oe=Y.FullPaths[0];de.slice(0,Oe.length)==Oe?Oe=de:(Oe.slice(-1)!="/"&&(Oe+="/"),Oe=(Oe+de).replace("//","/")),pe={name:i(de),type:2},Y.FileIndex.push(pe),Y.FullPaths.push(Oe),fe||pr.utils.cfb_gc(Y)}return pe.content=ie,pe.size=ie?ie.length:0,ae&&(ae.CLSID&&(pe.clsid=ae.CLSID),ae.mt&&(pe.mt=ae.mt),ae.ct&&(pe.ct=ae.ct)),pe}function Nn(Y,de){A(Y);var ie=pr.find(Y,de);if(ie){for(var ae=0;ae<Y.FileIndex.length;++ae)if(Y.FileIndex[ae]==ie)return Y.FileIndex.splice(ae,1),Y.FullPaths.splice(ae,1),!0}return!1}function Br(Y,de,ie){A(Y);var ae=pr.find(Y,de);if(ae){for(var fe=0;fe<Y.FileIndex.length;++fe)if(Y.FileIndex[fe]==ae)return Y.FileIndex[fe].name=i(ie),Y.FullPaths[fe]=ie,!0}return!1}function kr(Y){L(Y,!0)}return t.find=C,t.read=O,t.parse=c,t.write=Q,t.writeFile=ee,t.utils={cfb_new:pi,cfb_add:ei,cfb_del:Nn,cfb_mov:Br,cfb_gc:kr,ReadShift:Yc,CheckField:pP,prep_blob:Ai,bconcat:Tn,use_zlib:N,_deflateRaw:Rt,_inflateRaw:zt,consts:H},t})();function KL(e){return typeof e=="string"?np(e):Array.isArray(e)?bL(e):e}function Qf(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=np(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?hf(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([KL(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var o=document.createElement("a");if(o.download!=null)return o.download=e,o.href=a,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(t)&&(t=Zf(t)),s.write(t),s.close(),t}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Pn(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function Aw(e,t){for(var r=[],n=Pn(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function Gx(e){for(var t=[],r=Pn(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function op(e){for(var t=[],r=Pn(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function YL(e){for(var t=[],r=Pn(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var U0=new Date(1899,11,30,0,0,0);function ui(e,t){var r=e.getTime(),n=U0.getTime()+(e.getTimezoneOffset()-U0.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var JO=new Date,XL=U0.getTime()+(JO.getTimezoneOffset()-U0.getTimezoneOffset())*6e4,Tw=JO.getTimezoneOffset();function ZO(e){var t=new Date;return t.setTime(e*24*60*60*1e3+XL),t.getTimezoneOffset()!==Tw&&t.setTime(t.getTime()+(t.getTimezoneOffset()-Tw)*6e4),t}var Ew=new Date("2017-02-19T19:06:09.000Z"),QO=isNaN(Ew.getFullYear())?new Date("2/19/17"):Ew,JL=QO.getFullYear()==2017;function Jn(e,t){var r=new Date(e);if(JL)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(QO.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function sp(e,t){if(Yt&&Buffer.isBuffer(e))return e.toString("binary");if(typeof TextDecoder<"u")try{var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(a){return r[a]||a})}catch{}for(var n=[],i=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));return n.join("")}function ci(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=ci(e[r]));return t}function Rr(e,t){for(var r="";r.length<t;)r+=e;return r}function fo(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,n=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return r*=100,""});return!isNaN(t=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return r=-r,a}),!isNaN(t=Number(n)))?t/r:t}var ZL=["january","february","march","april","may","june","july","august","september","october","november","december"];function ff(e){var t=new Date(e),r=new Date(NaN),n=t.getYear(),i=t.getMonth(),a=t.getDate();if(isNaN(a))return r;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&ZL.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(i>0||a>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}function Mt(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return Yt?n=Ao(r):n=wL(r),pr.utils.cfb_add(e,t,n)}pr.utils.cfb_add(e,t,r)}else e.file(t,r)}function Vx(){return pr.utils.cfb_new()}var en=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
264
+ `,QL={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},Kx=Gx(QL),Yx=/[&<>'"]/g,eI=/[\u0000-\u0008\u000b-\u001f]/g;function cr(e){var t=e+"";return t.replace(Yx,function(r){return Kx[r]}).replace(eI,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Ow(e){return cr(e).replace(/ /g,"_x0020_")}var eP=/[\u0000-\u001f]/g;function tI(e){var t=e+"";return t.replace(Yx,function(r){return Kx[r]}).replace(/\n/g,"<br/>").replace(eP,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function rI(e){var t=e+"";return t.replace(Yx,function(r){return Kx[r]}).replace(eP,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function nI(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function iI(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function D1(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(i=e.charCodeAt(r++),n>191&&n<224){o=(n&31)<<6,o|=i&63,t+=String.fromCharCode(o);continue}if(a=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}o=e.charCodeAt(r++),s=((n&7)<<18|(i&63)<<12|(a&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function Pw(e){var t=Gs(2*e.length),r,n,i=1,a=0,o=0,s;for(n=0;n<e.length;n+=i)i=1,(s=e.charCodeAt(n))<128?r=s:s<224?(r=(s&31)*64+(e.charCodeAt(n+1)&63),i=2):s<240?(r=(s&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,r=(s&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,o=55296+(r>>>10&1023),r=56320+(r&1023)),o!==0&&(t[a++]=o&255,t[a++]=o>>>8,o=0),t[a++]=r%256,t[a++]=r>>>8;return t.slice(0,a).toString("ucs2")}function Nw(e){return Ao(e,"binary").toString("utf8")}var h0="foo bar baz☃🍣",Kc=Yt&&(Nw(h0)==D1(h0)&&Nw||Pw(h0)==D1(h0)&&Pw)||D1,hf=Yt?function(e){return Ao(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,i=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(i>>18&7))),t.push(String.fromCharCode(144+(i>>12&63))),t.push(String.fromCharCode(128+(i>>6&63))),t.push(String.fromCharCode(128+(i&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},aI=(function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
265
+ `).replace(/<[^>]*>/g,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}})(),tP=/(^\s|\s$|\n)/;function En(e,t){return"<"+e+(t.match(tP)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function df(e){return Pn(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Qe(e,t,r){return"<"+e+(r!=null?df(r):"")+(t!=null?(t.match(tP)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function d2(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function oI(e,t){switch(typeof e){case"string":var r=Qe("vt:lpwstr",cr(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return Qe((e|0)==e?"vt:i4":"vt:r8",cr(String(e)));case"boolean":return Qe("vt:bool",e?"true":"false")}if(e instanceof Date)return Qe("vt:filetime",d2(e));throw new Error("Unable to serialize "+e)}var vn={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Du=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Ti={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function sI(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),i=e[t+6]&15,a=5;a>=0;--a)i=i*256+e[t+a];return n==2047?i==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),r*Math.pow(2,n-52)*i)}function lI(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,i=0,a=0,o=n?-t:t;isFinite(o)?o==0?i=a=0:(i=Math.floor(Math.log(o)/Math.LN2),a=o*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(t)?26985:0);for(var s=0;s<=5;++s,a/=256)e[r+s]=a&255;e[r+6]=(i&15)<<4|a&15,e[r+7]=i>>4|n}var Cw=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=r)t.push.apply(t,e[0][n].slice(i,i+r));return t},jw=Yt?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Ao(t)})):Cw(e)}:Cw,kw=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(Dc(e,i)));return n.join("").replace(Vc,"")},Xx=Yt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Vc,""):kw(e,t,r)}:kw,Lw=function(e,t,r){for(var n=[],i=t;i<t+r;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},rP=Yt?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):Lw(e,t,r)}:Lw,Iw=function(e,t,r){for(var n=[],i=t;i<r;i++)n.push(String.fromCharCode(Wl(e,i)));return n.join("")},eh=Yt?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):Iw(t,r,n)}:Iw,nP=function(e,t){var r=Ei(e,t);return r>0?eh(e,t+4,t+4+r-1):""},iP=nP,aP=function(e,t){var r=Ei(e,t);return r>0?eh(e,t+4,t+4+r-1):""},oP=aP,sP=function(e,t){var r=2*Ei(e,t);return r>0?eh(e,t+4,t+4+r-1):""},lP=sP,uP=function(t,r){var n=Ei(t,r);return n>0?Xx(t,r+4,r+4+n):""},cP=uP,fP=function(e,t){var r=Ei(e,t);return r>0?eh(e,t+4,t+4+r):""},hP=fP,dP=function(e,t){return sI(e,t)},z0=dP,Jx=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};Yt&&(iP=function(t,r){if(!Buffer.isBuffer(t))return nP(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},oP=function(t,r){if(!Buffer.isBuffer(t))return aP(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},lP=function(t,r){if(!Buffer.isBuffer(t))return sP(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},cP=function(t,r){if(!Buffer.isBuffer(t))return uP(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},hP=function(t,r){if(!Buffer.isBuffer(t))return fP(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},z0=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):dP(t,r)},Jx=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Wl=function(e,t){return e[t]},Dc=function(e,t){return e[t+1]*256+e[t]},uI=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Ei=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Cs=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},cI=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Yc(e,t){var r="",n,i,a=[],o,s,l,u;switch(t){case"dbcs":if(u=this.l,Yt&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(Dc(this,u)),u+=2;e*=2;break;case"utf8":r=eh(this,this.l,this.l+e);break;case"utf16le":e*=2,r=Xx(this,this.l,this.l+e);break;case"wstr":return Yc.call(this,e,"dbcs");case"lpstr-ansi":r=iP(this,this.l),e=4+Ei(this,this.l);break;case"lpstr-cp":r=oP(this,this.l),e=4+Ei(this,this.l);break;case"lpwstr":r=lP(this,this.l),e=4+2*Ei(this,this.l);break;case"lpp4":e=4+Ei(this,this.l),r=cP(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Ei(this,this.l),r=hP(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,r="";(o=Wl(this,this.l+e++))!==0;)a.push(u0(o));r=a.join("");break;case"_wstr":for(e=0,r="";(o=Dc(this,this.l+e))!==0;)a.push(u0(o)),e+=2;e+=2,r=a.join("");break;case"dbcs-cont":for(r="",u=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=Wl(this,u),this.l=u+1,s=Yc.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(u0(Dc(this,u))),u+=2}r=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",u=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(u)!==-1)return o=Wl(this,u),this.l=u+1,s=Yc.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(u0(Wl(this,u))),u+=1}r=a.join("");break;default:switch(e){case 1:return n=Wl(this,this.l),this.l++,n;case 2:return n=(t==="i"?uI:Dc)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(n=(e>0?Cs:cI)(this,this.l),this.l+=4,n):(i=Ei(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=z0(this,this.l):i=z0([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;e=8;case 16:r=rP(this,this.l,e);break}}return this.l+=e,r}var fI=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},hI=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},dI=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function pI(e,t,r){var n=0,i=0;if(r==="dbcs"){for(i=0;i!=t.length;++i)dI(this,t.charCodeAt(i),this.l+2*i);n=2*t.length}else if(r==="sbcs"){for(t=t.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=t.length;++i)this[this.l+i]=t.charCodeAt(i)&255;n=t.length}else if(r==="hex"){for(;i<e;++i)this[this.l++]=parseInt(t.slice(2*i,2*i+2),16)||0;return this}else if(r==="utf16le"){var a=Math.min(this.l+e,this.length);for(i=0;i<Math.min(t.length,e);++i){var o=t.charCodeAt(i);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<a;)this[this.l++]=0;return this}else switch(e){case 1:n=1,this[this.l]=t&255;break;case 2:n=2,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,fI(this,t,this.l);break;case 8:if(n=8,r==="f"){lI(this,t,this.l);break}case 16:break;case-4:n=4,hI(this,t,this.l);break}return this.l+=n,this}function pP(e,t){var r=rP(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Ai(e,t){e.l=t,e.read_shift=Yc,e.chk=pP,e.write_shift=pI}function Ba(e,t){e.l+=t}function Me(e){var t=Gs(e);return Ai(t,0),t}function li(){var e=[],t=Yt?256:2048,r=function(u){var c=Me(u);return Ai(c,0),c},n=r(t),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},a=function(u){return n&&u<n.length-n.l?n:(i(),n=r(Math.max(u+1,t)))},o=function(){return i(),Tn(e)},s=function(u){i(),n=u,n.l==null&&(n.l=n.length),a(t)};return{next:a,push:s,end:o,_bufs:e}}function ze(e,t,r,n){var i=+t,a;if(!isNaN(i)){n||(n=s9[i].p||(r||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var o=e.next(a);i<=127?o.write_shift(1,i):(o.write_shift(1,(i&127)+128),o.write_shift(1,i>>7));for(var s=0;s!=4;++s)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&Jx(r)&&e.push(r)}}function Xc(e,t,r){var n=ci(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Fw(e,t,r){var n=ci(e);return n.s=Xc(n.s,t.s,r),n.e=Xc(n.e,t.s,r),n}function Jc(e,t){if(e.cRel&&e.c<0)for(e=ci(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=ci(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=fr(e);return!e.cRel&&e.cRel!=null&&(r=gI(r)),!e.rRel&&e.rRel!=null&&(r=vI(r)),r}function B1(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Bn(e.s.c)+":"+(e.e.cRel?"":"$")+Bn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+On(e.s.r)+":"+(e.e.rRel?"":"$")+On(e.e.r):Jc(e.s,t.biff)+":"+Jc(e.e,t.biff)}function Zx(e){return parseInt(mI(e),10)-1}function On(e){return""+(e+1)}function vI(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function mI(e){return e.replace(/\$(\d+)$/,"$1")}function Qx(e){for(var t=yI(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function Bn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function gI(e){return e.replace(/^([A-Z])/,"$$$1")}function yI(e){return e.replace(/^\$([A-Z])/,"$1")}function xI(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function mn(e){for(var t=0,r=0,n=0;n<e.length;++n){var i=e.charCodeAt(n);i>=48&&i<=57?t=10*t+(i-48):i>=65&&i<=90&&(r=26*r+(i-64))}return{c:r-1,r:t-1}}function fr(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function Ni(e){var t=e.indexOf(":");return t==-1?{s:mn(e),e:mn(e)}:{s:mn(e.slice(0,t)),e:mn(e.slice(t+1))}}function Zr(e,t){return typeof t>"u"||typeof t=="number"?Zr(e.s,e.e):(typeof e!="string"&&(e=fr(e)),typeof t!="string"&&(t=fr(t)),e==t?e:e+":"+t)}function Nr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,i=0,a=e.length;for(r=0;n<a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.s.c=--r,r=0;n<a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;if(t.s.r=--r,n===a||i!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=a&&!((i=e.charCodeAt(n)-64)<1||i>26);++n)r=26*r+i;for(t.e.c=--r,r=0;n!=a&&!((i=e.charCodeAt(n)-48)<0||i>9);++n)r=10*r+i;return t.e.r=--r,t}function Rw(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=os(e.z,r?ui(t):t)}catch{}try{return e.w=os((e.XF||{}).numFmtId||(r?14:0),r?ui(t):t)}catch{return""+t}}function xo(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?th[e.v]||e.v:t==null?Rw(e,e.v):Rw(e,t))}function Qs(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function vP(e,t,r){var n=r||{},i=e?Array.isArray(e):n.dense,a=e||(i?[]:{}),o=0,s=0;if(a&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?mn(n.origin):n.origin;o=l.r,s=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var u={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var c=Nr(a["!ref"]);u.s.c=c.s.c,u.s.r=c.s.r,u.e.c=Math.max(u.e.c,c.e.c),u.e.r=Math.max(u.e.r,c.e.r),o==-1&&(u.e.r=o=c.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=t[f].length;++d)if(!(typeof t[f][d]>"u")){var h={v:t[f][d]},g=o+f,p=s+d;if(u.s.r>g&&(u.s.r=g),u.s.c>p&&(u.s.c=p),u.e.r<g&&(u.e.r=g),u.e.c<p&&(u.e.c=p),t[f][d]&&typeof t[f][d]=="object"&&!Array.isArray(t[f][d])&&!(t[f][d]instanceof Date))h=t[f][d];else if(Array.isArray(h.v)&&(h.f=t[f][d][1],h.v=h.v[0]),h.v===null)if(h.f)h.t="n";else if(n.nullError)h.t="e",h.v=0;else if(n.sheetStubs)h.t="z";else continue;else typeof h.v=="number"?h.t="n":typeof h.v=="boolean"?h.t="b":h.v instanceof Date?(h.z=n.dateNF||Dr[14],n.cellDates?(h.t="d",h.w=os(h.z,ui(h.v))):(h.t="n",h.v=ui(h.v),h.w=os(h.z,h.v))):h.t="s";if(i)a[g]||(a[g]=[]),a[g][p]&&a[g][p].z&&(h.z=a[g][p].z),a[g][p]=h;else{var m=fr({c:p,r:g});a[m]&&a[m].z&&(h.z=a[m].z),a[m]=h}}}return u.s.c<1e7&&(a["!ref"]=Zr(u)),a}function Bu(e,t){return vP(null,e,t)}function bI(e){return e.read_shift(4,"i")}function ba(e,t){return t||(t=Me(4)),t.write_shift(4,e),t}function $n(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function gn(e,t){var r=!1;return t==null&&(r=!0,t=Me(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function wI(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function _I(e,t){return t||(t=Me(4)),t.write_shift(2,0),t.write_shift(2,0),t}function eb(e,t){var r=e.l,n=e.read_shift(1),i=$n(e),a=[],o={t:i,h:i};if((n&1)!==0){for(var s=e.read_shift(4),l=0;l!=s;++l)a.push(wI(e));o.r=a}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}function SI(e,t){var r=!1;return t==null&&(r=!0,t=Me(15+4*e.t.length)),t.write_shift(1,0),gn(e.t,t),r?t.slice(0,t.l):t}var AI=eb;function TI(e,t){var r=!1;return t==null&&(r=!0,t=Me(23+4*e.t.length)),t.write_shift(1,1),gn(e.t,t),t.write_shift(4,1),_I({},t),r?t.slice(0,t.l):t}function Xi(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function el(e,t){return t==null&&(t=Me(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function tl(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function rl(e,t){return t==null&&(t=Me(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var EI=$n,mP=gn;function tb(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function W0(e,t){var r=!1;return t==null&&(r=!0,t=Me(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var OI=$n,p2=tb,rb=W0;function gP(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var i=n===0?z0([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Cs(t,0)>>2;return r?i/100:i}function yP(e,t){t==null&&(t=Me(4));var r=0,n=0,i=e*100;if(e==(e|0)&&e>=-536870912&&e<1<<29?n=1:i==(i|0)&&i>=-536870912&&i<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?i:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function xP(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function PI(e,t){return t||(t=Me(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var nl=xP,$u=PI;function qu(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Vs(e,t){return(t||Me(8)).write_shift(8,e,"f")}function NI(e){var t={},r=e.read_shift(1),n=r>>>1,i=e.read_shift(1),a=e.read_shift(2,"i"),o=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=i;var u=DI[i];u&&(t.rgb=Vw(u));break;case 2:t.rgb=Vw([o,s,l]);break;case 3:t.theme=i;break}return a!=0&&(t.tint=a>0?a/32767:a/32768),t}function H0(e,t){if(t||(t=Me(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function CI(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function jI(e,t){t||(t=Me(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}var bP=2,_i=3,d0=11,G0=19,p0=64,kI=65,LI=71,II=4108,FI=4126,Sn=80,Mw={1:{n:"CodePage",t:bP},2:{n:"Category",t:Sn},3:{n:"PresentationFormat",t:Sn},4:{n:"ByteCount",t:_i},5:{n:"LineCount",t:_i},6:{n:"ParagraphCount",t:_i},7:{n:"SlideCount",t:_i},8:{n:"NoteCount",t:_i},9:{n:"HiddenCount",t:_i},10:{n:"MultimediaClipCount",t:_i},11:{n:"ScaleCrop",t:d0},12:{n:"HeadingPairs",t:II},13:{n:"TitlesOfParts",t:FI},14:{n:"Manager",t:Sn},15:{n:"Company",t:Sn},16:{n:"LinksUpToDate",t:d0},17:{n:"CharacterCount",t:_i},19:{n:"SharedDoc",t:d0},22:{n:"HyperlinksChanged",t:d0},23:{n:"AppVersion",t:_i,p:"version"},24:{n:"DigSig",t:kI},26:{n:"ContentType",t:Sn},27:{n:"ContentStatus",t:Sn},28:{n:"Language",t:Sn},29:{n:"Version",t:Sn},255:{},2147483648:{n:"Locale",t:G0},2147483651:{n:"Behavior",t:G0},1919054434:{}},Dw={1:{n:"CodePage",t:bP},2:{n:"Title",t:Sn},3:{n:"Subject",t:Sn},4:{n:"Author",t:Sn},5:{n:"Keywords",t:Sn},6:{n:"Comments",t:Sn},7:{n:"Template",t:Sn},8:{n:"LastAuthor",t:Sn},9:{n:"RevNumber",t:Sn},10:{n:"EditTime",t:p0},11:{n:"LastPrinted",t:p0},12:{n:"CreatedDate",t:p0},13:{n:"ModifiedDate",t:p0},14:{n:"PageCount",t:_i},15:{n:"WordCount",t:_i},16:{n:"CharCount",t:_i},17:{n:"Thumbnail",t:LI},18:{n:"Application",t:Sn},19:{n:"DocSecurity",t:_i},255:{},2147483648:{n:"Locale",t:G0},2147483651:{n:"Behavior",t:G0},1919054434:{}};function RI(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var MI=RI([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),DI=ci(MI),th={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},BI={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},v0={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function wP(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function _P(e,t){var r=YL(BI),n=[],i;n[n.length]=en,n[n.length]=Qe("Types",null,{xmlns:vn.CT,"xmlns:xsd":vn.xsd,"xmlns:xsi":vn.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Qe("Default",null,{Extension:l[0],ContentType:l[1]})}));var a=function(l){e[l]&&e[l].length>0&&(i=e[l][0],n[n.length]=Qe("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:v0[l][t.bookType]||v0[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(u){n[n.length]=Qe("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:v0[l][t.bookType]||v0[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(u){n[n.length]=Qe("Override",null,{PartName:(u[0]=="/"?"":"/")+u,ContentType:r[l][0]})})};return a("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Gt={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function SP(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Ql(e){var t=[en,Qe("Relationships",null,{xmlns:vn.RELS})];return Pn(e["!id"]).forEach(function(r){t[t.length]=Qe("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function ur(e,t,r,n,i,a){if(i||(i={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,i.Id="rId"+t,i.Type=n,i.Target=r,[Gt.HLINK,Gt.XPATH,Gt.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),e["!id"][i.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][i.Id]=i,e[("/"+i.Target).replace("//","/")]=i,t}function $I(e){var t=[en];t.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
266
+ `),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
267
+ `);for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
268
+ `);return t.push("</manifest:manifest>"),t.join("")}function Bw(e,t,r){return[' <rdf:Description rdf:about="'+e+`">
269
+ `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
270
+ `,` </rdf:Description>
271
+ `].join("")}function qI(e,t){return[' <rdf:Description rdf:about="'+e+`">
272
+ `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
273
+ `,` </rdf:Description>
274
+ `].join("")}function UI(e){var t=[en];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
275
+ `);for(var r=0;r!=e.length;++r)t.push(Bw(e[r][0],e[r][1])),t.push(qI("",e[r][0]));return t.push(Bw("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function AP(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+M0.version+"</meta:generator></office:meta></office:document-meta>"}var qs=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function $1(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=cr(t),n[n.length]=r?Qe(e,t,r):En(e,t))}function TP(e,t){var r=t||{},n=[en,Qe("cp:coreProperties",null,{"xmlns:cp":vn.CORE_PROPS,"xmlns:dc":vn.dc,"xmlns:dcterms":vn.dcterms,"xmlns:dcmitype":vn.dcmitype,"xmlns:xsi":vn.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&$1("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:d2(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&$1("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:d2(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=qs.length;++a){var o=qs[a],s=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:e?e[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&$1(o[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var eu=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],EP=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function OP(e){var t=[],r=Qe;return e||(e={}),e.Application="SheetJS",t[t.length]=en,t[t.length]=Qe("Properties",null,{xmlns:vn.EXT_PROPS,"xmlns:vt":vn.vt}),eu.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=cr(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(t[t.length]=r(n[0],i))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+cr(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function PP(e){var t=[en,Qe("Properties",null,{xmlns:vn.CUST_PROPS,"xmlns:vt":vn.vt})];if(!e)return t.join("");var r=1;return Pn(e).forEach(function(i){++r,t[t.length]=Qe("property",oI(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:cr(i)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var $w={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function zI(e,t){var r=[];return Pn($w).map(function(n){for(var i=0;i<qs.length;++i)if(qs[i][1]==n)return qs[i];for(i=0;i<eu.length;++i)if(eu[i][1]==n)return eu[i];throw n}).forEach(function(n){if(e[n[1]]!=null){var i=t&&t.Props&&t.Props[n[1]]!=null?t.Props[n[1]]:e[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),r.push(En($w[n[1]]||n[1],i))}}),Qe("DocumentProperties",r.join(""),{xmlns:Ti.o})}function WI(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&Pn(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var o=0;o<qs.length;++o)if(a==qs[o][1])return;for(o=0;o<eu.length;++o)if(a==eu[o][1])return;for(o=0;o<r.length;++o)if(a==r[o])return;var s=e[a],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),i.push(Qe(Ow(a),s,{"dt:dt":l}))}}),t&&Pn(t).forEach(function(a){if(Object.prototype.hasOwnProperty.call(t,a)&&!(e&&Object.prototype.hasOwnProperty.call(e,a))){var o=t[a],s="string";typeof o=="number"?(s="float",o=String(o)):o===!0||o===!1?(s="boolean",o=o?"1":"0"):o instanceof Date?(s="dateTime.tz",o=o.toISOString()):o=String(o),i.push(Qe(Ow(a),o,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Ti.o+'">'+i.join("")+"</"+n+">"}function HI(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),i=(r-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var o=Me(8);return o.write_shift(4,n),o.write_shift(4,i),o}function qw(e,t){var r=Me(4),n=Me(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Me(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=HI(t);break;case 31:case 80:for(n=Me(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return Tn([r,n])}var NP=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function GI(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Uw(e,t,r){var n=Me(8),i=[],a=[],o=8,s=0,l=Me(8),u=Me(8);if(l.write_shift(4,2),l.write_shift(4,1200),u.write_shift(4,1),a.push(l),i.push(u),o+=8+l.length,!t){u=Me(8),u.write_shift(4,0),i.unshift(u);var c=[Me(4)];for(c[0].write_shift(4,e.length),s=0;s<e.length;++s){var f=e[s][0];for(l=Me(8+2*(f.length+1)+(f.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,f.length+1),l.write_shift(0,f,"dbcs");l.l!=l.length;)l.write_shift(1,0);c.push(l)}l=Tn(c),a.unshift(l),o+=8+l.length}for(s=0;s<e.length;++s)if(!(t&&!t[e[s][0]])&&!(NP.indexOf(e[s][0])>-1||EP.indexOf(e[s][0])>-1)&&e[s][1]!=null){var d=e[s][1],h=0;if(t){h=+t[e[s][0]];var g=r[h];if(g.p=="version"&&typeof d=="string"){var p=d.split(".");d=(+p[0]<<16)+(+p[1]||0)}l=qw(g.t,d)}else{var m=GI(d);m==-1&&(m=31,d=String(d)),l=qw(m,d)}a.push(l),u=Me(8),u.write_shift(4,t?h:2+s),i.push(u),o+=8+l.length}var y=8*(a.length+1);for(s=0;s<a.length;++s)i[s].write_shift(4,y),y+=a[s].length;return n.write_shift(4,o),n.write_shift(4,a.length),Tn([n].concat(i).concat(a))}function zw(e,t,r,n,i,a){var o=Me(i?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,pr.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,i?2:1),o.write_shift(16,t,"hex"),o.write_shift(4,i?68:48);var l=Uw(e,r,n);if(s.push(l),i){var u=Uw(i,null,null);o.write_shift(16,a,"hex"),o.write_shift(4,68+l.length),s.push(u)}return Tn(s)}function VI(e,t){t||(t=Me(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function KI(e,t){return e.read_shift(t)===1}function Vn(e,t){return t||(t=Me(2)),t.write_shift(2,+!!e),t}function CP(e){return e.read_shift(2,"u")}function Hi(e,t){return t||(t=Me(2)),t.write_shift(2,e),t}function jP(e,t,r){return r||(r=Me(2)),r.write_shift(1,t=="e"?+e:+!!e),r.write_shift(1,t=="e"?1:0),r}function kP(e,t,r){var n=e.read_shift(r&&r.biff>=12?2:1),i="sbcs-cont";if(r&&r.biff>=8,!r||r.biff==8){var a=e.read_shift(1);a&&(i="dbcs-cont")}else r.biff==12&&(i="wstr");r.biff>=2&&r.biff<=5&&(i="cpstr");var o=n?e.read_shift(n,i):"";return o}function YI(e){var t=e.t||"",r=Me(3);r.write_shift(2,t.length),r.write_shift(1,1);var n=Me(2*t.length);n.write_shift(2*t.length,t,"utf16le");var i=[r,n];return Tn(i)}function XI(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var i=e.read_shift(1);return i===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function JI(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):XI(e,n,r)}function ZI(e,t,r){if(r.biff>5)return JI(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function LP(e,t,r){return r||(r=Me(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function Ww(e,t){t||(t=Me(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function QI(e){var t=Me(512),r=0,n=e.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}t.write_shift(4,2),t.write_shift(4,a);var o=[8,6815827,6619237,4849780,83];for(r=0;r<o.length;++r)t.write_shift(4,o[r]);if(a==28)n=n.slice(1),Ww(n,t);else if(a&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));var s=i>-1?n.slice(0,i):n;for(t.write_shift(4,2*(s.length+1)),r=0;r<s.length;++r)t.write_shift(2,s.charCodeAt(r));t.write_shift(2,0),a&8&&Ww(i>-1?n.slice(i+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<o.length;++r)t.write_shift(1,parseInt(o[r],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(t.write_shift(2,l),t.write_shift(4,n.length-3*l+1),r=0;r<n.length-3*l;++r)t.write_shift(1,n.charCodeAt(r+3*l)&255);for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function Ks(e,t,r,n){return n||(n=Me(6)),n.write_shift(2,e),n.write_shift(2,t),n.write_shift(2,r||0),n}function e7(e,t,r){var n=r.biff>8?4:2,i=e.read_shift(n),a=e.read_shift(n,"i"),o=e.read_shift(n,"i");return[i,a,o]}function t7(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);return{s:{c:n,r:t},e:{c:i,r}}}function IP(e,t){return t||(t=Me(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function nb(e,t,r){var n=1536,i=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=Me(i);return a.write_shift(2,n),a.write_shift(2,t),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function r7(e,t){var r=!t||t.biff==8,n=Me(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l<n.length;)n.write_shift(1,r?0:32);return n}function n7(e,t){var r=!t||t.biff>=8?2:1,n=Me(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function i7(e,t){var r=Me(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var n=[],i=0;i<e.length;++i)n[i]=YI(e[i]);var a=Tn([r].concat(n));return a.parts=[r.length].concat(n.map(function(o){return o.length})),a}function a7(){var e=Me(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function o7(e){var t=Me(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function s7(e,t){var r=e.name||"Arial",n=t&&t.biff==5,i=n?15+r.length:16+2*r.length,a=Me(i);return a.write_shift(2,e.sz*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),a}function l7(e,t,r,n){var i=Me(10);return Ks(e,t,n,i),i.write_shift(4,r),i}function u7(e,t,r,n,i){var a=!i||i.biff==8,o=Me(8+ +a+(1+a)*r.length);return Ks(e,t,n,o),o.write_shift(2,r.length),a&&o.write_shift(1,1),o.write_shift((1+a)*r.length,r,a?"utf16le":"sbcs"),o}function c7(e,t,r,n){var i=r&&r.biff==5;n||(n=Me(i?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(i?1:2,t.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*t.length,t,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}function f7(e,t){var r=t.biff==8||!t.biff?4:2,n=Me(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function Hw(e,t,r,n){var i=r&&r.biff==5;n||(n=Me(i?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var a=0;return e.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function h7(e){var t=Me(8);return t.write_shift(4,0),t.write_shift(2,0),t.write_shift(2,0),t}function d7(e,t,r,n,i,a){var o=Me(8);return Ks(e,t,n,o),jP(r,a,o),o}function p7(e,t,r,n){var i=Me(14);return Ks(e,t,n,i),Vs(r,i),i}function v7(e,t,r){if(r.biff<8)return m7(e,t,r);for(var n=[],i=e.l+t,a=e.read_shift(r.biff>8?4:2);a--!==0;)n.push(e7(e,r.biff>8?12:6,r));if(e.l!=i)throw new Error("Bad ExternSheet: "+e.l+" != "+i);return n}function m7(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=kP(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function g7(e){var t=Me(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)IP(e[r],t);return t}function y7(e){var t=Me(24),r=mn(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)t.write_shift(1,parseInt(n[i],16));return Tn([t,QI(e[1])])}function x7(e){var t=e[1].Tooltip,r=Me(10+2*(t.length+1));r.write_shift(2,2048);var n=mn(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var i=0;i<t.length;++i)r.write_shift(2,t.charCodeAt(i));return r.write_shift(2,0),r}function b7(e){return e||(e=Me(4)),e.write_shift(2,1),e.write_shift(2,1),e}function w7(e,t,r){if(!r.cellStyles)return Ba(e,t);var n=r&&r.biff>=12?4:2,i=e.read_shift(n),a=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var u={s:i,e:a,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(u.level=l>>8&7),u}function _7(e,t){var r=Me(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function S7(e){for(var t=Me(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}function A7(e,t,r){var n=Me(15);return nh(n,e,t),n.write_shift(8,r,"f"),n}function T7(e,t,r){var n=Me(9);return nh(n,e,t),n.write_shift(2,r),n}var E7=(function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Gx({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function r(s,l){var u=[],c=Gs(1);switch(l.type){case"base64":c=va(yo(s));break;case"binary":c=va(s);break;case"buffer":case"array":c=s;break}Ai(c,0);var f=c.read_shift(1),d=!!(f&136),h=!1,g=!1;switch(f){case 2:break;case 3:break;case 48:h=!0,d=!0;break;case 49:h=!0,d=!0;break;case 131:break;case 139:break;case 140:g=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+f.toString(16))}var p=0,m=521;f==2&&(p=c.read_shift(2)),c.l+=3,f!=2&&(p=c.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(m=c.read_shift(2));var y=c.read_shift(2),x=l.codepage||1252;f!=2&&(c.l+=16,c.read_shift(1),c[c.l]!==0&&(x=e[c[c.l]]),c.l+=1,c.l+=2),g&&(c.l+=36);for(var w=[],T={},_=Math.min(c.length,f==2?521:m-10-(h?264:0)),O=g?32:11;c.l<_&&c[c.l]!=13;)switch(T={},T.name=D0.utils.decode(x,c.slice(c.l,c.l+O)).replace(/[\u0000\r\n].*$/g,""),c.l+=O,T.type=String.fromCharCode(c.read_shift(1)),f!=2&&!g&&(T.offset=c.read_shift(4)),T.len=c.read_shift(1),f==2&&(T.offset=c.read_shift(2)),T.dec=c.read_shift(1),T.name.length&&w.push(T),f!=2&&(c.l+=g?13:14),T.type){case"B":(!h||T.len!=8)&&l.WTF&&console.log("Skipping "+T.name+":"+T.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+T.name+":"+T.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+T.type)}if(c[c.l]!==13&&(c.l=m-1),c.read_shift(1)!==13)throw new Error("DBF Terminator not found "+c.l+" "+c[c.l]);c.l=m;var A=0,k=0;for(u[0]=[],k=0;k!=w.length;++k)u[0][k]=w[k].name;for(;p-- >0;){if(c[c.l]===42){c.l+=y;continue}for(++c.l,u[++A]=[],k=0,k=0;k!=w.length;++k){var L=c.slice(c.l,c.l+w[k].len);c.l+=w[k].len,Ai(L,0);var B=D0.utils.decode(x,L);switch(w[k].type){case"C":B.trim().length&&(u[A][k]=B.replace(/\s+$/,""));break;case"D":B.length===8?u[A][k]=new Date(+B.slice(0,4),+B.slice(4,6)-1,+B.slice(6,8)):u[A][k]=B;break;case"F":u[A][k]=parseFloat(B.trim());break;case"+":case"I":u[A][k]=g?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(B.trim().toUpperCase()){case"Y":case"T":u[A][k]=!0;break;case"N":case"F":u[A][k]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+B+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));u[A][k]="##MEMO##"+(g?parseInt(B.trim(),10):L.read_shift(4));break;case"N":B=B.replace(/\u0000/g,"").trim(),B&&B!="."&&(u[A][k]=+B||0);break;case"@":u[A][k]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":u[A][k]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":u[A][k]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":u[A][k]=-L.read_shift(-8,"f");break;case"B":if(h&&w[k].len==8){u[A][k]=L.read_shift(8,"f");break}case"G":case"P":L.l+=w[k].len;break;case"0":if(w[k].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+w[k].type)}}}if(f!=2&&c.l<c.length&&c[c.l++]!=26)throw new Error("DBF EOF Marker missing "+(c.l-1)+" of "+c.length+" "+c[c.l-1].toString(16));return l&&l.sheetRows&&(u=u.slice(0,l.sheetRows)),l.DBF=w,u}function n(s,l){var u=l||{};u.dateNF||(u.dateNF="yyyymmdd");var c=Bu(r(s,u),u);return c["!cols"]=u.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete u.DBF,c}function i(s,l){try{return Qs(n(s,l),l)}catch(u){if(l&&l.WTF)throw u}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var u=l||{};if(+u.codepage>=0&&uf(+u.codepage),u.type=="string")throw new Error("Cannot write DBF to JS string");var c=li(),f=J0(s,{header:1,raw:!0,cellDates:!0}),d=f[0],h=f.slice(1),g=s["!cols"]||[],p=0,m=0,y=0,x=1;for(p=0;p<d.length;++p){if(((g[p]||{}).DBF||{}).name){d[p]=g[p].DBF.name,++y;continue}if(d[p]!=null){if(++y,typeof d[p]=="number"&&(d[p]=d[p].toString(10)),typeof d[p]!="string")throw new Error("DBF Invalid column name "+d[p]+" |"+typeof d[p]+"|");if(d.indexOf(d[p])!==p){for(m=0;m<1024;++m)if(d.indexOf(d[p]+"_"+m)==-1){d[p]+="_"+m;break}}}}var w=Nr(s["!ref"]),T=[],_=[],O=[];for(p=0;p<=w.e.c-w.s.c;++p){var A="",k="",L=0,B=[];for(m=0;m<h.length;++m)h[m][p]!=null&&B.push(h[m][p]);if(B.length==0||d[p]==null){T[p]="?";continue}for(m=0;m<B.length;++m){switch(typeof B[m]){case"number":k="B";break;case"string":k="C";break;case"boolean":k="L";break;case"object":k=B[m]instanceof Date?"D":"C";break;default:k="C"}L=Math.max(L,String(B[m]).length),A=A&&A!=k?"C":k}L>250&&(L=250),k=((g[p]||{}).DBF||{}).type,k=="C"&&g[p].DBF.len>L&&(L=g[p].DBF.len),A=="B"&&k=="N"&&(A="N",O[p]=g[p].DBF.dec,L=g[p].DBF.len),_[p]=A=="C"||k=="N"?L:a[A]||0,x+=_[p],T[p]=A}var C=c.next(32);for(C.write_shift(4,318902576),C.write_shift(4,h.length),C.write_shift(2,296+32*y),C.write_shift(2,x),p=0;p<4;++p)C.write_shift(4,0);for(C.write_shift(4,0|(+t[RO]||3)<<8),p=0,m=0;p<d.length;++p)if(d[p]!=null){var P=c.next(32),M=(d[p].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);P.write_shift(1,M,"sbcs"),P.write_shift(1,T[p]=="?"?"C":T[p],"sbcs"),P.write_shift(4,m),P.write_shift(1,_[p]||a[T[p]]||0),P.write_shift(1,O[p]||0),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(1,0),P.write_shift(4,0),P.write_shift(4,0),m+=_[p]||a[T[p]]||0}var q=c.next(264);for(q.write_shift(4,13),p=0;p<65;++p)q.write_shift(4,0);for(p=0;p<h.length;++p){var J=c.next(x);for(J.write_shift(1,0),m=0;m<d.length;++m)if(d[m]!=null)switch(T[m]){case"L":J.write_shift(1,h[p][m]==null?63:h[p][m]?84:70);break;case"B":J.write_shift(8,h[p][m]||0,"f");break;case"N":var U="0";for(typeof h[p][m]=="number"&&(U=h[p][m].toFixed(O[m]||0)),y=0;y<_[m]-U.length;++y)J.write_shift(1,32);J.write_shift(1,U,"sbcs");break;case"D":h[p][m]?(J.write_shift(4,("0000"+h[p][m].getFullYear()).slice(-4),"sbcs"),J.write_shift(2,("00"+(h[p][m].getMonth()+1)).slice(-2),"sbcs"),J.write_shift(2,("00"+h[p][m].getDate()).slice(-2),"sbcs")):J.write_shift(8,"00000000","sbcs");break;case"C":var H=String(h[p][m]!=null?h[p][m]:"").slice(0,_[m]);for(J.write_shift(1,H,"sbcs"),y=0;y<_[m]-H.length;++y)J.write_shift(1,32);break}}return c.next(1).write_shift(1,26),c.end()}return{to_workbook:i,to_sheet:n,from_sheet:o}})(),O7=(function(){var e={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("\x1BN("+Pn(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,h){var g=e[h];return typeof g=="number"?vw(g):g},n=function(d,h,g){var p=h.charCodeAt(0)-32<<4|g.charCodeAt(0)-48;return p==59?d:vw(p)};e["|"]=254;function i(d,h){switch(h.type){case"base64":return a(yo(d),h);case"binary":return a(d,h);case"buffer":return a(Yt&&Buffer.isBuffer(d)?d.toString("binary"):Zf(d),h);case"array":return a(sp(d),h)}throw new Error("Unrecognized type "+h.type)}function a(d,h){var g=d.split(/[\n\r]+/),p=-1,m=-1,y=0,x=0,w=[],T=[],_=null,O={},A=[],k=[],L=[],B=0,C;for(+h.codepage>=0&&uf(+h.codepage);y!==g.length;++y){B=0;var P=g[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),M=P.replace(/;;/g,"\0").split(";").map(function(D){return D.replace(/\u0000/g,";")}),q=M[0],J;if(P.length>0)switch(q){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":M[1].charAt(0)=="P"&&T.push(P.slice(3).replace(/;;/g,";"));break;case"C":var U=!1,H=!1,ee=!1,Z=!1,Q=-1,le=-1;for(x=1;x<M.length;++x)switch(M[x].charAt(0)){case"A":break;case"X":m=parseInt(M[x].slice(1))-1,H=!0;break;case"Y":for(p=parseInt(M[x].slice(1))-1,H||(m=0),C=w.length;C<=p;++C)w[C]=[];break;case"K":J=M[x].slice(1),J.charAt(0)==='"'?J=J.slice(1,J.length-1):J==="TRUE"?J=!0:J==="FALSE"?J=!1:isNaN(fo(J))?isNaN(ff(J).getDate())||(J=Jn(J)):(J=fo(J),_!==null&&KO(_)&&(J=ZO(J))),U=!0;break;case"E":Z=!0;var N=TF(M[x].slice(1),{r:p,c:m});w[p][m]=[w[p][m],N];break;case"S":ee=!0,w[p][m]=[w[p][m],"S5S"];break;case"G":break;case"R":Q=parseInt(M[x].slice(1))-1;break;case"C":le=parseInt(M[x].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+P)}if(U&&(w[p][m]&&w[p][m].length==2?w[p][m][0]=J:w[p][m]=J,_=null),ee){if(Z)throw new Error("SYLK shared formula cannot have own formula");var I=Q>-1&&w[Q][le];if(!I||!I[1])throw new Error("SYLK shared formula cannot find base");w[p][m][1]=EF(I[1],{r:p-Q,c:m-le})}break;case"F":var R=0;for(x=1;x<M.length;++x)switch(M[x].charAt(0)){case"X":m=parseInt(M[x].slice(1))-1,++R;break;case"Y":for(p=parseInt(M[x].slice(1))-1,C=w.length;C<=p;++C)w[C]=[];break;case"M":B=parseInt(M[x].slice(1))/20;break;case"F":break;case"G":break;case"P":_=T[parseInt(M[x].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(L=M[x].slice(1).split(" "),C=parseInt(L[0],10);C<=parseInt(L[1],10);++C)B=parseInt(L[2],10),k[C-1]=B===0?{hidden:!0}:{wch:B},ib(k[C-1]);break;case"C":m=parseInt(M[x].slice(1))-1,k[m]||(k[m]={});break;case"R":p=parseInt(M[x].slice(1))-1,A[p]||(A[p]={}),B>0?(A[p].hpt=B,A[p].hpx=BP(B)):B===0&&(A[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+P)}R<1&&(_=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+P)}}return A.length>0&&(O["!rows"]=A),k.length>0&&(O["!cols"]=k),h&&h.sheetRows&&(w=w.slice(0,h.sheetRows)),[w,O]}function o(d,h){var g=i(d,h),p=g[0],m=g[1],y=Bu(p,h);return Pn(m).forEach(function(x){y[x]=m[x]}),y}function s(d,h){return Qs(o(d,h),h)}function l(d,h,g,p){var m="C;Y"+(g+1)+";X"+(p+1)+";K";switch(d.t){case"n":m+=d.v||0,d.f&&!d.F&&(m+=";E"+ob(d.f,{r:g,c:p}));break;case"b":m+=d.v?"TRUE":"FALSE";break;case"e":m+=d.w||d.v;break;case"d":m+='"'+(d.w||d.v)+'"';break;case"s":m+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return m}function u(d,h){h.forEach(function(g,p){var m="F;W"+(p+1)+" "+(p+1)+" ";g.hidden?m+="0":(typeof g.width=="number"&&!g.wpx&&(g.wpx=V0(g.width)),typeof g.wpx=="number"&&!g.wch&&(g.wch=K0(g.wpx)),typeof g.wch=="number"&&(m+=Math.round(g.wch))),m.charAt(m.length-1)!=" "&&d.push(m)})}function c(d,h){h.forEach(function(g,p){var m="F;";g.hidden?m+="M0;":g.hpt?m+="M"+20*g.hpt+";":g.hpx&&(m+="M"+20*Y0(g.hpx)+";"),m.length>2&&d.push(m+"R"+(p+1))})}function f(d,h){var g=["ID;PWXL;N;E"],p=[],m=Nr(d["!ref"]),y,x=Array.isArray(d),w=`\r
276
+ `;g.push("P;PGeneral"),g.push("F;P0;DG0G8;M255"),d["!cols"]&&u(g,d["!cols"]),d["!rows"]&&c(g,d["!rows"]),g.push("B;Y"+(m.e.r-m.s.r+1)+";X"+(m.e.c-m.s.c+1)+";D"+[m.s.c,m.s.r,m.e.c,m.e.r].join(" "));for(var T=m.s.r;T<=m.e.r;++T)for(var _=m.s.c;_<=m.e.c;++_){var O=fr({r:T,c:_});y=x?(d[T]||[])[_]:d[O],!(!y||y.v==null&&(!y.f||y.F))&&p.push(l(y,d,T,_))}return g.join(w)+w+p.join(w)+w+"E"+w}return{to_workbook:s,to_sheet:o,from_sheet:f}})(),P7=(function(){function e(a,o){switch(o.type){case"base64":return t(yo(a),o);case"binary":return t(a,o);case"buffer":return t(Yt&&Buffer.isBuffer(a)?a.toString("binary"):Zf(a),o);case"array":return t(sp(a),o)}throw new Error("Unrecognized type "+o.type)}function t(a,o){for(var s=a.split(`
277
+ `),l=-1,u=-1,c=0,f=[];c!==s.length;++c){if(s[c].trim()==="BOT"){f[++l]=[],u=0;continue}if(!(l<0)){var d=s[c].trim().split(","),h=d[0],g=d[1];++c;for(var p=s[c]||"";(p.match(/["]/g)||[]).length&1&&c<s.length-1;)p+=`
278
+ `+s[++c];switch(p=p.trim(),+h){case-1:if(p==="BOT"){f[++l]=[],u=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?f[l][u]=!0:p==="FALSE"?f[l][u]=!1:isNaN(fo(g))?isNaN(ff(g).getDate())?f[l][u]=g:f[l][u]=Jn(g):f[l][u]=fo(g),++u;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),f[l][u++]=p!==""?p:null;break}if(p==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(a,o){return Bu(e(a,o),o)}function n(a,o){return Qs(r(a,o),o)}var i=(function(){var a=function(l,u,c,f,d){l.push(u),l.push(c+","+f),l.push('"'+d.replace(/"/g,'""')+'"')},o=function(l,u,c,f){l.push(u+","+c),l.push(u==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var u=[],c=Nr(l["!ref"]),f,d=Array.isArray(l);a(u,"TABLE",0,1,"sheetjs"),a(u,"VECTORS",0,c.e.r-c.s.r+1,""),a(u,"TUPLES",0,c.e.c-c.s.c+1,""),a(u,"DATA",0,0,"");for(var h=c.s.r;h<=c.e.r;++h){o(u,-1,0,"BOT");for(var g=c.s.c;g<=c.e.c;++g){var p=fr({r:h,c:g});if(f=d?(l[h]||[])[g]:l[p],!f){o(u,1,0,"");continue}switch(f.t){case"n":var m=f.w;!m&&f.v!=null&&(m=f.v),m==null?f.f&&!f.F?o(u,1,0,"="+f.f):o(u,1,0,""):o(u,0,m,"V");break;case"b":o(u,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(u,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=os(f.z||Dr[14],ui(Jn(f.v)))),o(u,0,f.w,"V");break;default:o(u,1,0,"")}}}o(u,-1,0,"EOD");var y=`\r
279
+ `,x=u.join(y);return x}})();return{to_workbook:n,to_sheet:r,from_sheet:i}})(),FP=(function(){function e(f){return f.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
280
+ `)}function t(f){return f.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(f,d){for(var h=f.split(`
281
+ `),g=-1,p=-1,m=0,y=[];m!==h.length;++m){var x=h[m].trim().split(":");if(x[0]==="cell"){var w=mn(x[1]);if(y.length<=w.r)for(g=y.length;g<=w.r;++g)y[g]||(y[g]=[]);switch(g=w.r,p=w.c,x[2]){case"t":y[g][p]=e(x[3]);break;case"v":y[g][p]=+x[3];break;case"vtf":var T=x[x.length-1];case"vtc":switch(x[3]){case"nl":y[g][p]=!!+x[4];break;default:y[g][p]=+x[4];break}x[2]=="vtf"&&(y[g][p]=[y[g][p],T])}}}return d&&d.sheetRows&&(y=y.slice(0,d.sheetRows)),y}function n(f,d){return Bu(r(f,d),d)}function i(f,d){return Qs(n(f,d),d)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
282
+ `),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
283
+ `)+`
284
+ `,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
285
+ `),l="--SocialCalcSpreadsheetControlSave--";function u(f){if(!f||!f["!ref"])return"";for(var d=[],h=[],g,p="",m=Ni(f["!ref"]),y=Array.isArray(f),x=m.s.r;x<=m.e.r;++x)for(var w=m.s.c;w<=m.e.c;++w)if(p=fr({r:x,c:w}),g=y?(f[x]||[])[w]:f[p],!(!g||g.v==null||g.t==="z")){switch(h=["cell",p,"t"],g.t){case"s":case"str":h.push(t(g.v));break;case"n":g.f?(h[2]="vtf",h[3]="n",h[4]=g.v,h[5]=t(g.f)):(h[2]="v",h[3]=g.v);break;case"b":h[2]="vt"+(g.f?"f":"c"),h[3]="nl",h[4]=g.v?"1":"0",h[5]=t(g.f||(g.v?"TRUE":"FALSE"));break;case"d":var T=ui(Jn(g.v));h[2]="vtc",h[3]="nd",h[4]=""+T,h[5]=g.w||os(g.z||Dr[14],T);break;case"e":continue}d.push(h.join(":"))}return d.push("sheet:c:"+(m.e.c-m.s.c+1)+":r:"+(m.e.r-m.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
286
+ `)}function c(f){return[a,o,s,o,u(f),l].join(`
287
+ `)}return{to_workbook:i,to_sheet:n,from_sheet:c}})(),N7=(function(){function e(c,f,d,h,g){g.raw?f[d][h]=c:c===""||(c==="TRUE"?f[d][h]=!0:c==="FALSE"?f[d][h]=!1:isNaN(fo(c))?isNaN(ff(c).getDate())?f[d][h]=c:f[d][h]=Jn(c):f[d][h]=fo(c))}function t(c,f){var d=f||{},h=[];if(!c||c.length===0)return h;for(var g=c.split(/[\r\n]/),p=g.length-1;p>=0&&g[p].length===0;)--p;for(var m=10,y=0,x=0;x<=p;++x)y=g[x].indexOf(" "),y==-1?y=g[x].length:y++,m=Math.max(m,y);for(x=0;x<=p;++x){h[x]=[];var w=0;for(e(g[x].slice(0,m).trim(),h,x,w,d),w=1;w<=(g[x].length-m)/10+1;++w)e(g[x].slice(m+(w-1)*10,m+w*10).trim(),h,x,w,d)}return d.sheetRows&&(h=h.slice(0,d.sheetRows)),h}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var f={},d=!1,h=0,g=0;h<c.length;++h)(g=c.charCodeAt(h))==34?d=!d:!d&&g in r&&(f[g]=(f[g]||0)+1);g=[];for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&g.push([f[h],h]);if(!g.length){f=n;for(h in f)Object.prototype.hasOwnProperty.call(f,h)&&g.push([f[h],h])}return g.sort(function(p,m){return p[0]-m[0]||n[p[1]]-n[m[1]]}),r[g.pop()[1]]||44}function a(c,f){var d=f||{},h="",g=d.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(h=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(h=c.charAt(4),c=c.slice(6)):h=i(c.slice(0,1024)):d&&d.FS?h=d.FS:h=i(c.slice(0,1024));var m=0,y=0,x=0,w=0,T=0,_=h.charCodeAt(0),O=!1,A=0,k=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
288
+ `);var L=d.dateNF!=null?HL(d.dateNF):null;function B(){var C=c.slice(w,T),P={};if(C.charAt(0)=='"'&&C.charAt(C.length-1)=='"'&&(C=C.slice(1,-1).replace(/""/g,'"')),C.length===0)P.t="z";else if(d.raw)P.t="s",P.v=C;else if(C.trim().length===0)P.t="s",P.v=C;else if(C.charCodeAt(0)==61)C.charCodeAt(1)==34&&C.charCodeAt(C.length-1)==34?(P.t="s",P.v=C.slice(2,-1).replace(/""/g,'"')):OF(C)?(P.t="n",P.f=C.slice(1)):(P.t="s",P.v=C);else if(C=="TRUE")P.t="b",P.v=!0;else if(C=="FALSE")P.t="b",P.v=!1;else if(!isNaN(x=fo(C)))P.t="n",d.cellText!==!1&&(P.w=C),P.v=x;else if(!isNaN(ff(C).getDate())||L&&C.match(L)){P.z=d.dateNF||Dr[14];var M=0;L&&C.match(L)&&(C=GL(C,d.dateNF,C.match(L)||[]),M=1),d.cellDates?(P.t="d",P.v=Jn(C,M)):(P.t="n",P.v=ui(Jn(C,M))),d.cellText!==!1&&(P.w=os(P.z,P.v instanceof Date?ui(P.v):P.v)),d.cellNF||delete P.z}else P.t="s",P.v=C;if(P.t=="z"||(d.dense?(g[m]||(g[m]=[]),g[m][y]=P):g[fr({c:y,r:m})]=P),w=T+1,k=c.charCodeAt(w),p.e.c<y&&(p.e.c=y),p.e.r<m&&(p.e.r=m),A==_)++y;else if(y=0,++m,d.sheetRows&&d.sheetRows<=m)return!0}e:for(;T<c.length;++T)switch(A=c.charCodeAt(T)){case 34:k===34&&(O=!O);break;case _:case 10:case 13:if(!O&&B())break e;break}return T-w>0&&B(),g["!ref"]=Zr(p),g}function o(c,f){return!(f&&f.PRN)||f.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?a(c,f):Bu(t(c,f),f)}function s(c,f){var d="",h=f.type=="string"?[0,0,0,0]:q9(c,f);switch(f.type){case"base64":d=yo(c);break;case"binary":d=c;break;case"buffer":f.codepage==65001?d=c.toString("utf8"):f.codepage&&typeof D0<"u"||(d=Yt&&Buffer.isBuffer(c)?c.toString("binary"):Zf(c));break;case"array":d=sp(c);break;case"string":d=c;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?d=Kc(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=Kc(d):f.type=="binary"&&typeof D0<"u",d.slice(0,19)=="socialcalc:version:"?FP.to_sheet(f.type=="string"?d:Kc(d),f):o(d,f)}function l(c,f){return Qs(s(c,f),f)}function u(c){for(var f=[],d=Nr(c["!ref"]),h,g=Array.isArray(c),p=d.s.r;p<=d.e.r;++p){for(var m=[],y=d.s.c;y<=d.e.c;++y){var x=fr({r:p,c:y});if(h=g?(c[p]||[])[y]:c[x],!h||h.v==null){m.push(" ");continue}for(var w=(h.w||(xo(h),h.w)||"").slice(0,10);w.length<10;)w+=" ";m.push(w+(y===0?" ":""))}f.push(m.join(""))}return f.join(`
289
+ `)}return{to_workbook:l,to_sheet:s,from_sheet:u}})(),Gw=(function(){function e(N,I,R){if(N){Ai(N,N.l||0);for(var D=R.Enum||Q;N.l<N.length;){var G=N.read_shift(2),ce=D[G]||D[65535],he=N.read_shift(2),ne=N.l+he,me=ce.f&&ce.f(N,he,R);if(N.l=ne,I(me,ce,G))return}}}function t(N,I){switch(I.type){case"base64":return r(va(yo(N)),I);case"binary":return r(va(N),I);case"buffer":case"array":return r(N,I)}throw"Unsupported type "+I.type}function r(N,I){if(!N)return N;var R=I||{},D=R.dense?[]:{},G="Sheet1",ce="",he=0,ne={},me=[],Se=[],ue={s:{r:0,c:0},e:{r:0,c:0}},Ie=R.sheetRows||0;if(N[2]==0&&(N[3]==8||N[3]==9)&&N.length>=16&&N[14]==5&&N[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(N[2]==2)R.Enum=Q,e(N,function(Re,et,Be){switch(Be){case 0:R.vers=Re,Re>=4096&&(R.qpro=!0);break;case 6:ue=Re;break;case 204:Re&&(ce=Re);break;case 222:ce=Re;break;case 15:case 51:R.qpro||(Re[1].v=Re[1].v.slice(1));case 13:case 14:case 16:Be==14&&(Re[2]&112)==112&&(Re[2]&15)>1&&(Re[2]&15)<15&&(Re[1].z=R.dateNF||Dr[14],R.cellDates&&(Re[1].t="d",Re[1].v=ZO(Re[1].v))),R.qpro&&Re[3]>he&&(D["!ref"]=Zr(ue),ne[G]=D,me.push(G),D=R.dense?[]:{},ue={s:{r:0,c:0},e:{r:0,c:0}},he=Re[3],G=ce||"Sheet"+(he+1),ce="");var Ve=R.dense?(D[Re[0].r]||[])[Re[0].c]:D[fr(Re[0])];if(Ve){Ve.t=Re[1].t,Ve.v=Re[1].v,Re[1].z!=null&&(Ve.z=Re[1].z),Re[1].f!=null&&(Ve.f=Re[1].f);break}R.dense?(D[Re[0].r]||(D[Re[0].r]=[]),D[Re[0].r][Re[0].c]=Re[1]):D[fr(Re[0])]=Re[1];break}},R);else if(N[2]==26||N[2]==14)R.Enum=le,N[2]==14&&(R.qpro=!0,N.l=0),e(N,function(Re,et,Be){switch(Be){case 204:G=Re;break;case 22:Re[1].v=Re[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(Re[3]>he&&(D["!ref"]=Zr(ue),ne[G]=D,me.push(G),D=R.dense?[]:{},ue={s:{r:0,c:0},e:{r:0,c:0}},he=Re[3],G="Sheet"+(he+1)),Ie>0&&Re[0].r>=Ie)break;R.dense?(D[Re[0].r]||(D[Re[0].r]=[]),D[Re[0].r][Re[0].c]=Re[1]):D[fr(Re[0])]=Re[1],ue.e.c<Re[0].c&&(ue.e.c=Re[0].c),ue.e.r<Re[0].r&&(ue.e.r=Re[0].r);break;case 27:Re[14e3]&&(Se[Re[14e3][0]]=Re[14e3][1]);break;case 1537:Se[Re[0]]=Re[1],Re[0]==he&&(G=Re[1]);break}},R);else throw new Error("Unrecognized LOTUS BOF "+N[2]);if(D["!ref"]=Zr(ue),ne[ce||G]=D,me.push(ce||G),!Se.length)return{SheetNames:me,Sheets:ne};for(var ge={},_e=[],oe=0;oe<Se.length;++oe)ne[me[oe]]?(_e.push(Se[oe]||me[oe]),ge[Se[oe]]=ne[Se[oe]]||ne[me[oe]]):(_e.push(Se[oe]),ge[Se[oe]]={"!ref":"A1"});return{SheetNames:_e,Sheets:ge}}function n(N,I){var R=I||{};if(+R.codepage>=0&&uf(+R.codepage),R.type=="string")throw new Error("Cannot write WK1 to JS string");var D=li(),G=Nr(N["!ref"]),ce=Array.isArray(N),he=[];tt(D,0,a(1030)),tt(D,6,l(G));for(var ne=Math.min(G.e.r,8191),me=G.s.r;me<=ne;++me)for(var Se=On(me),ue=G.s.c;ue<=G.e.c;++ue){me===G.s.r&&(he[ue]=Bn(ue));var Ie=he[ue]+Se,ge=ce?(N[me]||[])[ue]:N[Ie];if(!(!ge||ge.t=="z"))if(ge.t=="n")(ge.v|0)==ge.v&&ge.v>=-32768&&ge.v<=32767?tt(D,13,h(me,ue,ge.v)):tt(D,14,p(me,ue,ge.v));else{var _e=xo(ge);tt(D,15,f(me,ue,_e.slice(0,239)))}}return tt(D,1),D.end()}function i(N,I){var R=I||{};if(+R.codepage>=0&&uf(+R.codepage),R.type=="string")throw new Error("Cannot write WK3 to JS string");var D=li();tt(D,0,o(N));for(var G=0,ce=0;G<N.SheetNames.length;++G)(N.Sheets[N.SheetNames[G]]||{})["!ref"]&&tt(D,27,Z(N.SheetNames[G],ce++));var he=0;for(G=0;G<N.SheetNames.length;++G){var ne=N.Sheets[N.SheetNames[G]];if(!(!ne||!ne["!ref"])){for(var me=Nr(ne["!ref"]),Se=Array.isArray(ne),ue=[],Ie=Math.min(me.e.r,8191),ge=me.s.r;ge<=Ie;++ge)for(var _e=On(ge),oe=me.s.c;oe<=me.e.c;++oe){ge===me.s.r&&(ue[oe]=Bn(oe));var Re=ue[oe]+_e,et=Se?(ne[ge]||[])[oe]:ne[Re];if(!(!et||et.t=="z"))if(et.t=="n")tt(D,23,B(ge,oe,he,et.v));else{var Be=xo(et);tt(D,22,A(ge,oe,he,Be.slice(0,239)))}}++he}}return tt(D,1),D.end()}function a(N){var I=Me(2);return I.write_shift(2,N),I}function o(N){var I=Me(26);I.write_shift(2,4096),I.write_shift(2,4),I.write_shift(4,0);for(var R=0,D=0,G=0,ce=0;ce<N.SheetNames.length;++ce){var he=N.SheetNames[ce],ne=N.Sheets[he];if(!(!ne||!ne["!ref"])){++G;var me=Ni(ne["!ref"]);R<me.e.r&&(R=me.e.r),D<me.e.c&&(D=me.e.c)}}return R>8191&&(R=8191),I.write_shift(2,R),I.write_shift(1,G),I.write_shift(1,D),I.write_shift(2,0),I.write_shift(2,0),I.write_shift(1,1),I.write_shift(1,2),I.write_shift(4,0),I.write_shift(4,0),I}function s(N,I,R){var D={s:{c:0,r:0},e:{c:0,r:0}};return I==8&&R.qpro?(D.s.c=N.read_shift(1),N.l++,D.s.r=N.read_shift(2),D.e.c=N.read_shift(1),N.l++,D.e.r=N.read_shift(2),D):(D.s.c=N.read_shift(2),D.s.r=N.read_shift(2),I==12&&R.qpro&&(N.l+=2),D.e.c=N.read_shift(2),D.e.r=N.read_shift(2),I==12&&R.qpro&&(N.l+=2),D.s.c==65535&&(D.s.c=D.e.c=D.s.r=D.e.r=0),D)}function l(N){var I=Me(8);return I.write_shift(2,N.s.c),I.write_shift(2,N.s.r),I.write_shift(2,N.e.c),I.write_shift(2,N.e.r),I}function u(N,I,R){var D=[{c:0,r:0},{t:"n",v:0},0,0];return R.qpro&&R.vers!=20768?(D[0].c=N.read_shift(1),D[3]=N.read_shift(1),D[0].r=N.read_shift(2),N.l+=2):(D[2]=N.read_shift(1),D[0].c=N.read_shift(2),D[0].r=N.read_shift(2)),D}function c(N,I,R){var D=N.l+I,G=u(N,I,R);if(G[1].t="s",R.vers==20768){N.l++;var ce=N.read_shift(1);return G[1].v=N.read_shift(ce,"utf8"),G}return R.qpro&&N.l++,G[1].v=N.read_shift(D-N.l,"cstr"),G}function f(N,I,R){var D=Me(7+R.length);D.write_shift(1,255),D.write_shift(2,I),D.write_shift(2,N),D.write_shift(1,39);for(var G=0;G<D.length;++G){var ce=R.charCodeAt(G);D.write_shift(1,ce>=128?95:ce)}return D.write_shift(1,0),D}function d(N,I,R){var D=u(N,I,R);return D[1].v=N.read_shift(2,"i"),D}function h(N,I,R){var D=Me(7);return D.write_shift(1,255),D.write_shift(2,I),D.write_shift(2,N),D.write_shift(2,R,"i"),D}function g(N,I,R){var D=u(N,I,R);return D[1].v=N.read_shift(8,"f"),D}function p(N,I,R){var D=Me(13);return D.write_shift(1,255),D.write_shift(2,I),D.write_shift(2,N),D.write_shift(8,R,"f"),D}function m(N,I,R){var D=N.l+I,G=u(N,I,R);if(G[1].v=N.read_shift(8,"f"),R.qpro)N.l=D;else{var ce=N.read_shift(2);T(N.slice(N.l,N.l+ce),G),N.l+=ce}return G}function y(N,I,R){var D=I&32768;return I&=-32769,I=(D?N:0)+(I>=8192?I-16384:I),(D?"":"$")+(R?Bn(I):On(I))}var x={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},w=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function T(N,I){Ai(N,0);for(var R=[],D=0,G="",ce="",he="",ne="";N.l<N.length;){var me=N[N.l++];switch(me){case 0:R.push(N.read_shift(8,"f"));break;case 1:ce=y(I[0].c,N.read_shift(2),!0),G=y(I[0].r,N.read_shift(2),!1),R.push(ce+G);break;case 2:{var Se=y(I[0].c,N.read_shift(2),!0),ue=y(I[0].r,N.read_shift(2),!1);ce=y(I[0].c,N.read_shift(2),!0),G=y(I[0].r,N.read_shift(2),!1),R.push(Se+ue+":"+ce+G)}break;case 3:if(N.l<N.length){console.error("WK1 premature formula end");return}break;case 4:R.push("("+R.pop()+")");break;case 5:R.push(N.read_shift(2));break;case 6:{for(var Ie="";me=N[N.l++];)Ie+=String.fromCharCode(me);R.push('"'+Ie.replace(/"/g,'""')+'"')}break;case 8:R.push("-"+R.pop());break;case 23:R.push("+"+R.pop());break;case 22:R.push("NOT("+R.pop()+")");break;case 20:case 21:ne=R.pop(),he=R.pop(),R.push(["AND","OR"][me-20]+"("+he+","+ne+")");break;default:if(me<32&&w[me])ne=R.pop(),he=R.pop(),R.push(he+w[me]+ne);else if(x[me]){if(D=x[me][1],D==69&&(D=N[N.l++]),D>R.length){console.error("WK1 bad formula parse 0x"+me.toString(16)+":|"+R.join("|")+"|");return}var ge=R.slice(-D);R.length-=D,R.push(x[me][0]+"("+ge.join(",")+")")}else return me<=7?console.error("WK1 invalid opcode "+me.toString(16)):me<=24?console.error("WK1 unsupported op "+me.toString(16)):me<=30?console.error("WK1 invalid opcode "+me.toString(16)):me<=115?console.error("WK1 unsupported function opcode "+me.toString(16)):console.error("WK1 unrecognized opcode "+me.toString(16))}}R.length==1?I[1].f=""+R[0]:console.error("WK1 bad formula parse |"+R.join("|")+"|")}function _(N){var I=[{c:0,r:0},{t:"n",v:0},0];return I[0].r=N.read_shift(2),I[3]=N[N.l++],I[0].c=N[N.l++],I}function O(N,I){var R=_(N);return R[1].t="s",R[1].v=N.read_shift(I-4,"cstr"),R}function A(N,I,R,D){var G=Me(6+D.length);G.write_shift(2,N),G.write_shift(1,R),G.write_shift(1,I),G.write_shift(1,39);for(var ce=0;ce<D.length;++ce){var he=D.charCodeAt(ce);G.write_shift(1,he>=128?95:he)}return G.write_shift(1,0),G}function k(N,I){var R=_(N);R[1].v=N.read_shift(2);var D=R[1].v>>1;if(R[1].v&1)switch(D&7){case 0:D=(D>>3)*5e3;break;case 1:D=(D>>3)*500;break;case 2:D=(D>>3)/20;break;case 3:D=(D>>3)/200;break;case 4:D=(D>>3)/2e3;break;case 5:D=(D>>3)/2e4;break;case 6:D=(D>>3)/16;break;case 7:D=(D>>3)/64;break}return R[1].v=D,R}function L(N,I){var R=_(N),D=N.read_shift(4),G=N.read_shift(4),ce=N.read_shift(2);if(ce==65535)return D===0&&G===3221225472?(R[1].t="e",R[1].v=15):D===0&&G===3489660928?(R[1].t="e",R[1].v=42):R[1].v=0,R;var he=ce&32768;return ce=(ce&32767)-16446,R[1].v=(1-he*2)*(G*Math.pow(2,ce+32)+D*Math.pow(2,ce)),R}function B(N,I,R,D){var G=Me(14);if(G.write_shift(2,N),G.write_shift(1,R),G.write_shift(1,I),D==0)return G.write_shift(4,0),G.write_shift(4,0),G.write_shift(2,65535),G;var ce=0,he=0,ne=0,me=0;return D<0&&(ce=1,D=-D),he=Math.log2(D)|0,D/=Math.pow(2,he-31),me=D>>>0,(me&2147483648)==0&&(D/=2,++he,me=D>>>0),D-=me,me|=2147483648,me>>>=0,D*=Math.pow(2,32),ne=D>>>0,G.write_shift(4,ne),G.write_shift(4,me),he+=16383+(ce?32768:0),G.write_shift(2,he),G}function C(N,I){var R=L(N);return N.l+=I-14,R}function P(N,I){var R=_(N),D=N.read_shift(4);return R[1].v=D>>6,R}function M(N,I){var R=_(N),D=N.read_shift(8,"f");return R[1].v=D,R}function q(N,I){var R=M(N);return N.l+=I-10,R}function J(N,I){return N[N.l+I-1]==0?N.read_shift(I,"cstr"):""}function U(N,I){var R=N[N.l++];R>I-1&&(R=I-1);for(var D="";D.length<R;)D+=String.fromCharCode(N[N.l++]);return D}function H(N,I,R){if(!(!R.qpro||I<21)){var D=N.read_shift(1);N.l+=17,N.l+=1,N.l+=2;var G=N.read_shift(I-21,"cstr");return[D,G]}}function ee(N,I){for(var R={},D=N.l+I;N.l<D;){var G=N.read_shift(2);if(G==14e3){for(R[G]=[0,""],R[G][0]=N.read_shift(2);N[N.l];)R[G][1]+=String.fromCharCode(N[N.l]),N.l++;N.l++}}return R}function Z(N,I){var R=Me(5+N.length);R.write_shift(2,14e3),R.write_shift(2,I);for(var D=0;D<N.length;++D){var G=N.charCodeAt(D);R[R.l++]=G>127?95:G}return R[R.l++]=0,R}var Q={0:{n:"BOF",f:CP},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:g},15:{n:"LABEL",f:c},16:{n:"FORMULA",f:m},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:c},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:J},222:{n:"SHEETNAMELP",f:U},65535:{n:""}},le={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:O},23:{n:"NUMBER17",f:L},24:{n:"NUMBER18",f:k},25:{n:"FORMULA19",f:C},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:ee},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:P},38:{n:"??"},39:{n:"NUMBER27",f:M},40:{n:"FORMULA28",f:q},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:J},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:H},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:t}})(),C7=/^\s|\s$|[\t\n\r]/;function RP(e,t){if(!t.bookSST)return"";var r=[en];r[r.length]=Qe("sst",null,{xmlns:Du[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var i=e[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(C7)&&(a+=' xml:space="preserve"'),a+=">"+cr(i.t)+"</t>"),a+="</si>",r[r.length]=a}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}function j7(e){return[e.read_shift(4),e.read_shift(4)]}function k7(e,t){return t||(t=Me(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var L7=SI;function I7(e){var t=li();ze(t,159,k7(e));for(var r=0;r<e.length;++r)ze(t,19,L7(e[r]));return ze(t,160),t.end()}function F7(e){for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function MP(e){var t=0,r,n=F7(e),i=n.length+1,a,o,s,l,u;for(r=Gs(i),r[0]=n.length,a=1;a!=i;++a)r[a]=n[a-1];for(a=i-1;a>=0;--a)o=r[a],s=(t&16384)===0?0:1,l=t<<1&32767,u=s|l,t=u^o;return t^52811}var R7=(function(){function e(i,a){switch(a.type){case"base64":return t(yo(i),a);case"binary":return t(i,a);case"buffer":return t(Yt&&Buffer.isBuffer(i)?i.toString("binary"):Zf(i),a);case"array":return t(sp(i),a)}throw new Error("Unrecognized type "+a.type)}function t(i,a){var o=a||{},s=o.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var u={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(c,f){Array.isArray(s)&&(s[f]=[]);for(var d=/\\\w+\b/g,h=0,g,p=-1;g=d.exec(c);){switch(g[0]){case"\\cell":var m=c.slice(h,d.lastIndex-g[0].length);if(m[0]==" "&&(m=m.slice(1)),++p,m.length){var y={v:m,t:"s"};Array.isArray(s)?s[f][p]=y:s[fr({r:f,c:p})]=y}break}h=d.lastIndex}p>u.e.c&&(u.e.c=p)}),s["!ref"]=Zr(u),s}function r(i,a){return Qs(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],o=Nr(i["!ref"]),s,l=Array.isArray(i),u=o.s.r;u<=o.e.r;++u){a.push("\\trowd\\trautofit1");for(var c=o.s.c;c<=o.e.c;++c)a.push("\\cellx"+(c+1));for(a.push("\\pard\\intbl"),c=o.s.c;c<=o.e.c;++c){var f=fr({r:u,c});s=l?(i[u]||[])[c]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(a.push(" "+(s.w||(xo(s),s.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}})();function Vw(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}var M7=6,ho=M7;function V0(e){return Math.floor((e+Math.round(128/ho)/256)*ho)}function K0(e){return Math.floor((e-5)/ho*100+.5)/100}function v2(e){return Math.round((e*ho+5)/ho*256)/256}function ib(e){e.width?(e.wpx=V0(e.width),e.wch=K0(e.wpx),e.MDW=ho):e.wpx?(e.wch=K0(e.wpx),e.width=v2(e.wch),e.MDW=ho):typeof e.wch=="number"&&(e.width=v2(e.wch),e.wpx=V0(e.width),e.MDW=ho),e.customWidth&&delete e.customWidth}var D7=96,DP=D7;function Y0(e){return e*96/DP}function BP(e){return e*DP/96}function B7(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=Qe("numFmt",null,{numFmtId:n,formatCode:cr(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=Qe("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function $7(e){var t=[];return t[t.length]=Qe("cellXfs",null),e.forEach(function(r){t[t.length]=Qe("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=Qe("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function $P(e,t){var r=[en,Qe("styleSheet",null,{xmlns:Du[0],"xmlns:vt":vn.vt})],n;return e.SSF&&(n=B7(e.SSF))!=null&&(r[r.length]=n),r[r.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',r[r.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',r[r.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',r[r.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=$7(t.cellXfs))&&(r[r.length]=n),r[r.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',r[r.length]='<dxfs count="0"/>',r[r.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',r.length>2&&(r[r.length]="</styleSheet>",r[1]=r[1].replace("/>",">")),r.join("")}function q7(e,t){var r=e.read_shift(2),n=$n(e);return[r,n]}function U7(e,t,r){r||(r=Me(6+4*t.length)),r.write_shift(2,e),gn(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function z7(e,t,r){var n={};n.sz=e.read_shift(2)/20;var i=CI(e);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=e.read_shift(2);switch(a===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(n.underline=o);var s=e.read_shift(1);s>0&&(n.family=s);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=NI(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=$n(e),n}function W7(e,t){t||(t=Me(153)),t.write_shift(2,e.sz*20),jI(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),H0(e.color,t);var n=0;return n=2,t.write_shift(1,n),gn(e.name,t),t.length>t.l?t.slice(0,t.l):t}var H7=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],q1,G7=Ba;function Kw(e,t){t||(t=Me(84)),q1||(q1=Gx(H7));var r=q1[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(H0({auto:1},t),H0({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function V7(e,t){var r=e.l+t,n=e.read_shift(2),i=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:i}}function qP(e,t,r){r||(r=Me(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Pc(e,t){return t||(t=Me(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var K7=Ba;function Y7(e,t){return t||(t=Me(51)),t.write_shift(1,0),Pc(null,t),Pc(null,t),Pc(null,t),Pc(null,t),Pc(null,t),t.length>t.l?t.slice(0,t.l):t}function X7(e,t){return t||(t=Me(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,0),t.write_shift(1,0),W0(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function J7(e,t,r){var n=Me(2052);return n.write_shift(4,e),W0(t,n),W0(r,n),n.length>n.l?n.slice(0,n.l):n}function Z7(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&++r}),r!=0&&(ze(e,615,ba(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&ze(e,44,U7(i,t[i]))}),ze(e,616))}}function Q7(e){var t=1;ze(e,611,ba(t)),ze(e,43,W7({sz:12,color:{theme:1},name:"Calibri",family:2})),ze(e,612)}function eF(e){var t=2;ze(e,603,ba(t)),ze(e,45,Kw({patternType:"none"})),ze(e,45,Kw({patternType:"gray125"})),ze(e,604)}function tF(e){var t=1;ze(e,613,ba(t)),ze(e,46,Y7()),ze(e,614)}function rF(e){var t=1;ze(e,626,ba(t)),ze(e,47,qP({numFmtId:0},65535)),ze(e,627)}function nF(e,t){ze(e,617,ba(t.length)),t.forEach(function(r){ze(e,47,qP(r,0))}),ze(e,618)}function iF(e){var t=1;ze(e,619,ba(t)),ze(e,48,X7({xfId:0,name:"Normal"})),ze(e,620)}function aF(e){var t=0;ze(e,505,ba(t)),ze(e,506)}function oF(e){var t=0;ze(e,508,J7(t,"TableStyleMedium9","PivotStyleMedium4")),ze(e,509)}function sF(e,t){var r=li();return ze(r,278),Z7(r,e.SSF),Q7(r),eF(r),tF(r),rF(r),nF(r,t.cellXfs),iF(r),aF(r),oF(r),ze(r,279),r.end()}function UP(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[en];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function lF(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:$n(e)}}function uF(e){var t=Me(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),gn(e.name,t),t.slice(0,t.l)}function cF(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function fF(e){var t=Me(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}function hF(e,t){var r=Me(8+2*t.length);return r.write_shift(4,e),gn(t,r),r.slice(0,r.l)}function dF(e){return e.l+=4,e.read_shift(4)!=0}function pF(e,t){var r=Me(8);return r.write_shift(4,e),r.write_shift(4,1),r}function vF(){var e=li();return ze(e,332),ze(e,334,ba(1)),ze(e,335,uF({name:"XLDAPR",version:12e4,flags:3496657072})),ze(e,336),ze(e,339,hF(1,"XLDAPR")),ze(e,52),ze(e,35,ba(514)),ze(e,4096,ba(0)),ze(e,4097,Hi(1)),ze(e,36),ze(e,53),ze(e,340),ze(e,337,pF(1)),ze(e,51,fF([[1,0]])),ze(e,338),ze(e,333),e.end()}function zP(){var e=[en];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
290
+ <metadataTypes count="1">
291
+ <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
292
+ </metadataTypes>
293
+ <futureMetadata name="XLDAPR" count="1">
294
+ <bk>
295
+ <extLst>
296
+ <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
297
+ <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
298
+ </ext>
299
+ </extLst>
300
+ </bk>
301
+ </futureMetadata>
302
+ <cellMetadata count="1">
303
+ <bk>
304
+ <rc t="1" v="0"/>
305
+ </bk>
306
+ </cellMetadata>
307
+ </metadata>`),e.join("")}function mF(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=fr(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Gl=1024;function WP(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[Qe("xml",null,{"xmlns:v":Ti.v,"xmlns:o":Ti.o,"xmlns:x":Ti.x,"xmlns:mv":Ti.mv}).replace(/\/>/,">"),Qe("o:shapelayout",Qe("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Qe("v:shapetype",[Qe("v:stroke",null,{joinstyle:"miter"}),Qe("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Gl<e*1e3;)Gl+=1e3;return t.forEach(function(a){var o=mn(a[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?Qe("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,u=Qe("v:fill",l,s),c={on:"t",obscured:"t"};++Gl,i=i.concat(["<v:shape"+df({id:"_x0000_s"+Gl,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",u,Qe("v:shadow",null,c),Qe("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",En("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),En("x:AutoFill","False"),En("x:Row",String(o.r)),En("x:Column",String(o.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function HP(e){var t=[en,Qe("comments",null,{xmlns:Du[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=cr(i.a);r.indexOf(a)==-1&&(r.push(a),t.push("<author>"+a+"</author>")),i.T&&i.ID&&r.indexOf("tc="+i.ID)==-1&&(r.push("tc="+i.ID),t.push("<author>tc="+i.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=r.indexOf(cr(l.a))),a.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)t.push(En("t",cr(a[0]||"")));else{for(var o=`Comment:
308
+ `+a[0]+`
309
+ `,s=1;s<a.length;++s)o+=`Reply:
310
+ `+a[s]+`
311
+ `;t.push(En("t",cr(o)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function gF(e,t,r){var n=[en,Qe("ThreadedComments",null,{xmlns:vn.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&t.indexOf(o.a)==-1&&t.push(o.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?a=l.id:l.parentId=a,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),n.push(Qe("threadedComment",En("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function yF(e){var t=[en,Qe("personList",null,{xmlns:vn.TCMNT,"xmlns:x":Du[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(Qe("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function xF(e){var t={};t.iauthor=e.read_shift(4);var r=nl(e);return t.rfx=r.s,t.ref=fr(r.s),e.l+=16,t}function bF(e,t){return t==null&&(t=Me(36)),t.write_shift(4,e[1].iauthor),$u(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var wF=$n;function _F(e){return gn(e.slice(0,54))}function SF(e){var t=li(),r=[];return ze(t,628),ze(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),ze(t,632,_F(i.a)))})}),ze(t,631),ze(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:mn(n[0]),e:mn(n[0])};ze(t,635,bF([a,i])),i.t&&i.t.length>0&&ze(t,637,TI(i)),ze(t,636),delete i.iauthor})}),ze(t,634),ze(t,629),t.end()}function AF(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var i=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&pr.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var GP=["xlsb","xlsm","xlam","biff8","xla"],TF=(function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,i,a,o){var s=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var u=a.length>0?parseInt(a,10)|0:0,c=o.length>0?parseInt(o,10)|0:0;return s?c+=t.c:--c,l?u+=t.r:--u,i+(s?"":"$")+Bn(c)+(l?"":"$")+On(u)}return function(i,a){return t=a,i.replace(e,r)}})(),ab=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,ob=(function(){return function(t,r){return t.replace(ab,function(n,i,a,o,s,l){var u=Qx(o)-(a?0:r.c),c=Zx(l)-(s?0:r.r),f=c==0?"":s?c+1:"["+c+"]",d=u==0?"":a?u+1:"["+u+"]";return i+"R"+f+"C"+d})}})();function EF(e,t){return e.replace(ab,function(r,n,i,a,o,s){return n+(i=="$"?i+a:Bn(Qx(a)+t.c))+(o=="$"?o+s:On(Zx(s)+t.r))})}function OF(e){return e.length!=1}function Xr(e){e.l+=1}function ss(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function VP(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return KP(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),o=ss(e),s=ss(e);return{s:{r:i,c:o[0],cRel:o[1],rRel:o[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function KP(e){var t=ss(e),r=ss(e),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:i,cRel:r[1],rRel:r[2]}}}function PF(e,t,r){if(r.biff<8)return KP(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=ss(e),o=ss(e);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:o[0],cRel:o[1],rRel:o[2]}}}function YP(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return NF(e);var n=e.read_shift(r&&r.biff==12?4:2),i=ss(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function NF(e){var t=ss(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function CF(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function jF(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return kF(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),o=(a&16384)>>14,s=(a&32768)>>15;if(a&=16383,s==1)for(;i>524287;)i-=1048576;if(o==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:o,rRel:s}}function kF(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,i=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),i==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:i,rRel:n}}function LF(e,t,r){var n=(e[e.l++]&96)>>5,i=VP(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,i]}function IF(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2,"i"),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}var o=VP(e,a,r);return[n,i,o]}function FF(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function RF(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=8;if(r)switch(r.biff){case 5:e.l+=12,a=6;break;case 12:a=12;break}return e.l+=a,[n,i]}function MF(e,t,r){var n=(e[e.l++]&96)>>5,i=PF(e,t-1,r);return[n,i]}function DF(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function Yw(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function BF(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(e.read_shift(r&&r.biff==2?1:2));return i}function $F(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function qF(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function UF(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function zF(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function XP(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function WF(e){return e.read_shift(2),XP(e)}function HF(e){return e.read_shift(2),XP(e)}function GF(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=YP(e,0,r);return[n,i]}function VF(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=jF(e,0,r);return[n,i]}function KF(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var a=YP(e,0,r);return[n,i,a]}function YF(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=e.read_shift(r&&r.biff<=3?1:2);return[YR[i],QP[i],n]}function XF(e,t,r){var n=e[e.l++],i=e.read_shift(1),a=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:JF(e);return[i,(a[0]===0?QP:KR)[a[1]]]}function JF(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function ZF(e,t,r){e.l+=r&&r.biff==2?3:4}function QF(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function eR(e){return e.l++,th[e.read_shift(1)]}function tR(e){return e.l++,e.read_shift(2)}function rR(e){return e.l++,e.read_shift(1)!==0}function nR(e){return e.l++,qu(e)}function iR(e,t,r){return e.l++,kP(e,t-1,r)}function aR(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=KI(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=th[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=qu(e);break;case 2:r[1]=ZI(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function oR(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((r.biff==12?nl:t7)(e));return i}function sR(e,t,r){var n=0,i=0;r.biff==12?(n=e.read_shift(4),i=e.read_shift(4)):(i=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--i==0&&(i=256));for(var a=0,o=[];a!=n&&(o[a]=[]);++a)for(var s=0;s!=i;++s)o[a][s]=aR(e,r.biff);return o}function lR(e,t,r){var n=e.read_shift(1)>>>5&3,i=!r||r.biff>=8?4:2,a=e.read_shift(i);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,a]}function uR(e,t,r){if(r.biff==5)return cR(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function cR(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function fR(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function hR(e,t,r){var n=e.read_shift(1)>>>5&3,i=e.read_shift(r&&r.biff==2?1:2);return[n,i]}function dR(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function pR(e,t,r){var n=(e[e.l++]&96)>>5,i=e.read_shift(2),a=4;if(r)switch(r.biff){case 5:a=15;break;case 12:a=6;break}return e.l+=a,[n,i]}var vR=Ba,mR=Ba,gR=Ba;function rh(e,t,r){return e.l+=2,[CF(e)]}function sb(e){return e.l+=6,[]}var yR=rh,xR=sb,bR=sb,wR=rh;function JP(e){return e.l+=2,[CP(e),e.read_shift(2)&1]}var _R=rh,SR=JP,AR=sb,TR=rh,ER=rh,OR=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function PR(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),i=e.read_shift(2),a=e.read_shift(2),o=OR[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:i,C:a}}function NR(e){return e.l+=2,[e.read_shift(4)]}function CR(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function jR(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function kR(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function LR(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function IR(e){return e.l+=4,[0,0]}var Xw={1:{n:"PtgExp",f:QF},2:{n:"PtgTbl",f:gR},3:{n:"PtgAdd",f:Xr},4:{n:"PtgSub",f:Xr},5:{n:"PtgMul",f:Xr},6:{n:"PtgDiv",f:Xr},7:{n:"PtgPower",f:Xr},8:{n:"PtgConcat",f:Xr},9:{n:"PtgLt",f:Xr},10:{n:"PtgLe",f:Xr},11:{n:"PtgEq",f:Xr},12:{n:"PtgGe",f:Xr},13:{n:"PtgGt",f:Xr},14:{n:"PtgNe",f:Xr},15:{n:"PtgIsect",f:Xr},16:{n:"PtgUnion",f:Xr},17:{n:"PtgRange",f:Xr},18:{n:"PtgUplus",f:Xr},19:{n:"PtgUminus",f:Xr},20:{n:"PtgPercent",f:Xr},21:{n:"PtgParen",f:Xr},22:{n:"PtgMissArg",f:Xr},23:{n:"PtgStr",f:iR},26:{n:"PtgSheet",f:CR},27:{n:"PtgEndSheet",f:jR},28:{n:"PtgErr",f:eR},29:{n:"PtgBool",f:rR},30:{n:"PtgInt",f:tR},31:{n:"PtgNum",f:nR},32:{n:"PtgArray",f:DF},33:{n:"PtgFunc",f:YF},34:{n:"PtgFuncVar",f:XF},35:{n:"PtgName",f:lR},36:{n:"PtgRef",f:GF},37:{n:"PtgArea",f:LF},38:{n:"PtgMemArea",f:fR},39:{n:"PtgMemErr",f:vR},40:{n:"PtgMemNoMem",f:mR},41:{n:"PtgMemFunc",f:hR},42:{n:"PtgRefErr",f:dR},43:{n:"PtgAreaErr",f:FF},44:{n:"PtgRefN",f:VF},45:{n:"PtgAreaN",f:MF},46:{n:"PtgMemAreaN",f:kR},47:{n:"PtgMemNoMemN",f:LR},57:{n:"PtgNameX",f:uR},58:{n:"PtgRef3d",f:KF},59:{n:"PtgArea3d",f:IF},60:{n:"PtgRefErr3d",f:pR},61:{n:"PtgAreaErr3d",f:RF},255:{}},FR={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},RR={1:{n:"PtgElfLel",f:JP},2:{n:"PtgElfRw",f:TR},3:{n:"PtgElfCol",f:yR},6:{n:"PtgElfRwV",f:ER},7:{n:"PtgElfColV",f:wR},10:{n:"PtgElfRadical",f:_R},11:{n:"PtgElfRadicalS",f:AR},13:{n:"PtgElfColS",f:xR},15:{n:"PtgElfColSV",f:bR},16:{n:"PtgElfRadicalLel",f:SR},25:{n:"PtgList",f:PR},29:{n:"PtgSxName",f:NR},255:{}},MR={0:{n:"PtgAttrNoop",f:IR},1:{n:"PtgAttrSemi",f:zF},2:{n:"PtgAttrIf",f:qF},4:{n:"PtgAttrChoose",f:BF},8:{n:"PtgAttrGoto",f:$F},16:{n:"PtgAttrSum",f:ZF},32:{n:"PtgAttrBaxcel",f:Yw},33:{n:"PtgAttrBaxcel",f:Yw},64:{n:"PtgAttrSpace",f:WF},65:{n:"PtgAttrSpaceSemi",f:HF},128:{n:"PtgAttrIfError",f:UF},255:{}};function DR(e,t,r,n){if(n.biff<8)return Ba(e,t);for(var i=e.l+t,a=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=sR(e,0,n),a.push(r[o][1]);break;case"PtgMemArea":r[o][2]=oR(e,r[o][1],n),a.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=e.read_shift(4),a.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return t=i-e.l,t!==0&&a.push(Ba(e,t)),a}function BR(e,t,r){for(var n=e.l+t,i,a,o=[];n!=e.l;)t=n-e.l,a=e[e.l],i=Xw[a]||Xw[FR[a]],(a===24||a===25)&&(i=(a===24?RR:MR)[e[e.l+1]]),!i||!i.f?Ba(e,t):o.push([i.n,i.f(e,t,r)]);return o}function $R(e){for(var t=[],r=0;r<e.length;++r){for(var n=e[r],i=[],a=0;a<n.length;++a){var o=n[a];if(o)switch(o[0]){case 2:i.push('"'+o[1].replace(/"/g,'""')+'"');break;default:i.push(o[1])}else i.push("")}t.push(i.join(","))}return t.join(";")}var qR={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function UR(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function ZP(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var i="";if(r.biff>8)switch(e[n[0]][0]){case 357:return i=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return e[n[0]][0][3]?(i=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function Jw(e,t,r){var n=ZP(e,t,r);return n=="#REF"?n:UR(n,r)}function ou(e,t,r,n,i){var a=i&&i.biff||8,o={s:{c:0,r:0}},s=[],l,u,c,f=0,d=0,h,g="";if(!e[0]||!e[0][0])return"";for(var p=-1,m="",y=0,x=e[0].length;y<x;++y){var w=e[0][y];switch(w[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=s.pop(),u=s.pop(),p>=0){switch(e[0][p][1][0]){case 0:m=Rr(" ",e[0][p][1][1]);break;case 1:m=Rr("\r",e[0][p][1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}u=u+m,p=-1}s.push(u+qR[w[0]]+l);break;case"PtgIsect":l=s.pop(),u=s.pop(),s.push(u+" "+l);break;case"PtgUnion":l=s.pop(),u=s.pop(),s.push(u+","+l);break;case"PtgRange":l=s.pop(),u=s.pop(),s.push(u+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":c=Xc(w[1][1],o,i),s.push(Jc(c,a));break;case"PtgRefN":c=r?Xc(w[1][1],r,i):w[1][1],s.push(Jc(c,a));break;case"PtgRef3d":f=w[1][1],c=Xc(w[1][2],o,i),g=Jw(n,f,i),s.push(g+"!"+Jc(c,a));break;case"PtgFunc":case"PtgFuncVar":var T=w[1][0],_=w[1][1];T||(T=0),T&=127;var O=T==0?[]:s.slice(-T);s.length-=T,_==="User"&&(_=O.shift()),s.push(_+"("+O.join(",")+")");break;case"PtgBool":s.push(w[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(w[1]);break;case"PtgNum":s.push(String(w[1]));break;case"PtgStr":s.push('"'+w[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(w[1]);break;case"PtgAreaN":h=Fw(w[1][1],r?{s:r}:o,i),s.push(B1(h,i));break;case"PtgArea":h=Fw(w[1][1],o,i),s.push(B1(h,i));break;case"PtgArea3d":f=w[1][1],h=w[1][2],g=Jw(n,f,i),s.push(g+"!"+B1(h,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=w[1][2];var A=(n.names||[])[d-1]||(n[0]||[])[d],k=A?A.Name:"SH33TJSNAME"+String(d);k&&k.slice(0,6)=="_xlfn."&&!i.xlfn&&(k=k.slice(6)),s.push(k);break;case"PtgNameX":var L=w[1][1];d=w[1][2];var B;if(i.biff<=5)L<0&&(L=-L),n[L]&&(B=n[L][d]);else{var C="";if(((n[L]||[])[0]||[])[0]==14849||(((n[L]||[])[0]||[])[0]==1025?n[L][d]&&n[L][d].itab>0&&(C=n.SheetNames[n[L][d].itab-1]+"!"):C=n.SheetNames[d-1]+"!"),n[L]&&n[L][d])C+=n[L][d].Name;else if(n[0]&&n[0][d])C+=n[0][d].Name;else{var P=(ZP(n,L,i)||"").split(";;");P[d-1]?C=P[d-1]:C+="SH33TJSERRX"}s.push(C);break}B||(B={Name:"SH33TJSERRY"}),s.push(B.Name);break;case"PtgParen":var M="(",q=")";if(p>=0){switch(m="",e[0][p][1][0]){case 2:M=Rr(" ",e[0][p][1][1])+M;break;case 3:M=Rr("\r",e[0][p][1][1])+M;break;case 4:q=Rr(" ",e[0][p][1][1])+q;break;case 5:q=Rr("\r",e[0][p][1][1])+q;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(M+s.pop()+q);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":c={c:w[1][1],r:w[1][0]};var J={c:r.c,r:r.r};if(n.sharedf[fr(c)]){var U=n.sharedf[fr(c)];s.push(ou(U,o,J,n,i))}else{var H=!1;for(l=0;l!=n.arrayf.length;++l)if(u=n.arrayf[l],!(c.c<u[0].s.c||c.c>u[0].e.c)&&!(c.r<u[0].s.r||c.r>u[0].e.r)){s.push(ou(u[1],o,J,n,i)),H=!0;break}H||s.push(w[1])}break;case"PtgArray":s.push("{"+$R(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+w[1].idx+"[#"+w[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(w));default:throw new Error("Unrecognized Formula Token: "+String(w))}var ee=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&ee.indexOf(e[0][y][0])==-1){w=e[0][p];var Z=!0;switch(w[1][0]){case 4:Z=!1;case 0:m=Rr(" ",w[1][1]);break;case 5:Z=!1;case 1:m=Rr("\r",w[1][1]);break;default:if(m="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+w[1][0])}s.push((Z?m:"")+s.pop()+(Z?"":m)),p=-1}}if(s.length>1&&i.WTF)throw new Error("bad formula stack");return s[0]}function zR(e){if(e==null){var t=Me(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Vs(e);return Vs(0)}function WR(e,t,r,n,i){var a=Ks(t,r,i),o=zR(e.v),s=Me(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var u=Me(e.bf.length),c=0;c<e.bf.length;++c)u[c]=e.bf[c];var f=Tn([a,o,s,u]);return f}function lp(e,t,r){var n=e.read_shift(4),i=BR(e,n,r),a=e.read_shift(4),o=a>0?DR(e,a,i,r):null;return[i,o]}var HR=lp,up=lp,GR=lp,VR=lp,KR={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},QP={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},YR={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function XR(e){var t="of:="+e.replace(ab,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function JR(e){return e.replace(/\./,"!")}var Zc=typeof Map<"u";function lb(e,t,r){var n=0,i=e.length;if(r){if(Zc?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=Zc?r.get(t):r[t];n<a.length;++n)if(e[a[n]].t===t)return e.Count++,a[n]}}else for(;n<i;++n)if(e[n].t===t)return e.Count++,n;return e[i]={t},e.Count++,e.Unique++,r&&(Zc?(r.has(t)||r.set(t,[]),r.get(t).push(i)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(i))),i}function cp(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(ho=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=K0(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=v2(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function eN(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function us(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],i=60,a=e.length;if(n==null&&r.ssf){for(;i<392;++i)if(r.ssf[i]==null){YO(t.z,i),r.ssf[i]=t.z,r.revssf[t.z]=n=i;break}}for(i=0;i!=a;++i)if(e[i].numFmtId===n)return i;return e[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function ZR(e,t,r){if(e&&e["!ref"]){var n=Nr(e["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}function QR(e){if(e.length===0)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+Zr(e[r])+'"/>';return t+"</mergeCells>"}function eM(e,t,r,n,i){var a=!1,o={},s=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}a=!0,o.codeName=hf(cr(l))}if(e&&e["!outline"]){var u={summaryBelow:1,summaryRight:1};e["!outline"].above&&(u.summaryBelow=0),e["!outline"].left&&(u.summaryRight=0),s=(s||"")+Qe("outlinePr",null,u)}!a&&!s||(i[i.length]=Qe("sheetPr",s,o))}var tM=["objects","scenarios","selectLockedCells","selectUnlockedCells"],rM=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function nM(e){var t={sheet:1};return tM.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),rM.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=MP(e.password).toString(16).toUpperCase()),Qe("sheetProtection",null,t)}function iM(e){return eN(e),Qe("pageMargins",null,e)}function aM(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=Qe("col",null,cp(i,n)));return r[r.length]="</cols>",r.join("")}function oM(e,t,r,n){var i=typeof e.ref=="string"?e.ref:Zr(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,o=Ni(i);o.s.r==o.e.r&&(o.e.r=Ni(t["!ref"]).e.r,i=Zr(o));for(var s=0;s<a.length;++s){var l=a[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+r.SheetNames[n]+"'!"+i;break}}return s==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+i}),Qe("autoFilter",null,{ref:i})}function sM(e,t,r,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Qe("sheetViews",Qe("sheetView",null,i),{})}function lM(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var i="",a=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":i=e.v?"1":"0";break;case"n":i=""+e.v;break;case"e":i=th[e.v];break;case"d":n&&n.cellDates?i=Jn(e.v,-1).toISOString():(e=ci(e),e.t="n",i=""+(e.v=ui(Jn(e.v)))),typeof e.z>"u"&&(e.z=Dr[14]);break;default:i=e.v;break}var s=En("v",cr(i)),l={r:t},u=us(n.cellXfs,e,n);switch(u!==0&&(l.s=u),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=En("v",""+lb(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=a&&(e.t=a,e.v=o),typeof e.f=="string"&&e.f){var c=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=Qe("f",cr(e.f),c)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),Qe("c",s,l)}function uM(e,t,r,n){var i=[],a=[],o=Nr(e["!ref"]),s="",l,u="",c=[],f=0,d=0,h=e["!rows"],g=Array.isArray(e),p={r:u},m,y=-1;for(d=o.s.c;d<=o.e.c;++d)c[d]=Bn(d);for(f=o.s.r;f<=o.e.r;++f){for(a=[],u=On(f),d=o.s.c;d<=o.e.c;++d){l=c[d]+u;var x=g?(e[f]||[])[d]:e[l];x!==void 0&&(s=lM(x,l,e,t))!=null&&a.push(s)}(a.length>0||h&&h[f])&&(p={r:u},h&&h[f]&&(m=h[f],m.hidden&&(p.hidden=1),y=-1,m.hpx?y=Y0(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level)),i[i.length]=Qe("row",a.join(""),p))}if(h)for(;f<h.length;++f)h&&h[f]&&(p={r:f+1},m=h[f],m.hidden&&(p.hidden=1),y=-1,m.hpx?y=Y0(m.hpx):m.hpt&&(y=m.hpt),y>-1&&(p.ht=y,p.customHeight=1),m.level&&(p.outlineLevel=m.level),i[i.length]=Qe("row","",p));return i.join("")}function tN(e,t,r,n){var i=[en,Qe("worksheet",null,{xmlns:Du[0],"xmlns:r":vn.r})],a=r.SheetNames[e],o=0,s="",l=r.Sheets[a];l==null&&(l={});var u=l["!ref"]||"A1",c=Nr(u);if(c.e.c>16383||c.e.r>1048575){if(t.WTF)throw new Error("Range "+u+" exceeds format limit A1:XFD1048576");c.e.c=Math.min(c.e.c,16383),c.e.r=Math.min(c.e.c,1048575),u=Zr(c)}n||(n={}),l["!comments"]=[];var f=[];eM(l,r,e,t,i),i[i.length]=Qe("dimension",null,{ref:u}),i[i.length]=sM(l,t,e,r),t.sheetFormat&&(i[i.length]=Qe("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=aM(l,l["!cols"])),i[o=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=uM(l,t),s.length>0&&(i[i.length]=s)),i.length>o+1&&(i[i.length]="</sheetData>",i[o]=i[o].replace("/>",">")),l["!protect"]&&(i[i.length]=nM(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=oM(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=QR(l["!merges"]));var d=-1,h,g=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(p){p[1].Target&&(h={ref:p[0]},p[1].Target.charAt(0)!="#"&&(g=ur(n,-1,cr(p[1].Target).replace(/#.*$/,""),Gt.HLINK),h["r:id"]="rId"+g),(d=p[1].Target.indexOf("#"))>-1&&(h.location=cr(p[1].Target.slice(d+1))),p[1].Tooltip&&(h.tooltip=cr(p[1].Tooltip)),i[i.length]=Qe("hyperlink",null,h))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=iM(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(i[i.length]=En("ignoredErrors",Qe("ignoredError",null,{numberStoredAsText:1,sqref:u}))),f.length>0&&(g=ur(n,-1,"../drawings/drawing"+(e+1)+".xml",Gt.DRAW),i[i.length]=Qe("drawing",null,{"r:id":"rId"+g}),l["!drawing"]=f),l["!comments"].length>0&&(g=ur(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Gt.VML),i[i.length]=Qe("legacyDrawing",null,{"r:id":"rId"+g}),l["!legacy"]=g),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function cM(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var i=e.read_shift(2);e.l+=1;var a=e.read_shift(1);return e.l=n,a&7&&(r.level=a&7),a&16&&(r.hidden=!0),a&32&&(r.hpt=i/20),r}function fM(e,t,r){var n=Me(145),i=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var a=320;i.hpx?a=Y0(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var o=0;i.level&&(o|=i.level),i.hidden&&(o|=16),(i.hpx||i.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var u={r:e,c:0},c=0;c<16;++c)if(!(t.s.c>c+1<<10||t.e.c<c<<10)){for(var f=-1,d=-1,h=c<<10;h<c+1<<10;++h){u.c=h;var g=Array.isArray(r)?(r[u.r]||[])[u.c]:r[fr(u)];g&&(f<0&&(f=h),d=h)}f<0||(++s,n.write_shift(4,f),n.write_shift(4,d))}var p=n.l;return n.l=l,n.write_shift(4,s),n.l=p,n.length>n.l?n.slice(0,n.l):n}function hM(e,t,r,n){var i=fM(n,r,t);(i.length>17||(t["!rows"]||[])[n])&&ze(e,0,i)}var dM=nl,pM=$u;function vM(){}function mM(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=EI(e),r}function gM(e,t,r){r==null&&(r=Me(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var i=1;i<3;++i)r.write_shift(1,0);return H0({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),mP(e,r),r.slice(0,r.l)}function yM(e){var t=Xi(e);return[t]}function xM(e,t,r){return r==null&&(r=Me(8)),el(t,r)}function bM(e){var t=tl(e);return[t]}function wM(e,t,r){return r==null&&(r=Me(4)),rl(t,r)}function _M(e){var t=Xi(e),r=e.read_shift(1);return[t,r,"b"]}function SM(e,t,r){return r==null&&(r=Me(9)),el(t,r),r.write_shift(1,e.v?1:0),r}function AM(e){var t=tl(e),r=e.read_shift(1);return[t,r,"b"]}function TM(e,t,r){return r==null&&(r=Me(5)),rl(t,r),r.write_shift(1,e.v?1:0),r}function EM(e){var t=Xi(e),r=e.read_shift(1);return[t,r,"e"]}function OM(e,t,r){return r==null&&(r=Me(9)),el(t,r),r.write_shift(1,e.v),r}function PM(e){var t=tl(e),r=e.read_shift(1);return[t,r,"e"]}function NM(e,t,r){return r==null&&(r=Me(8)),rl(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function CM(e){var t=Xi(e),r=e.read_shift(4);return[t,r,"s"]}function jM(e,t,r){return r==null&&(r=Me(12)),el(t,r),r.write_shift(4,t.v),r}function kM(e){var t=tl(e),r=e.read_shift(4);return[t,r,"s"]}function LM(e,t,r){return r==null&&(r=Me(8)),rl(t,r),r.write_shift(4,t.v),r}function IM(e){var t=Xi(e),r=qu(e);return[t,r,"n"]}function FM(e,t,r){return r==null&&(r=Me(16)),el(t,r),Vs(e.v,r),r}function RM(e){var t=tl(e),r=qu(e);return[t,r,"n"]}function MM(e,t,r){return r==null&&(r=Me(12)),rl(t,r),Vs(e.v,r),r}function DM(e){var t=Xi(e),r=gP(e);return[t,r,"n"]}function BM(e,t,r){return r==null&&(r=Me(12)),el(t,r),yP(e.v,r),r}function $M(e){var t=tl(e),r=gP(e);return[t,r,"n"]}function qM(e,t,r){return r==null&&(r=Me(8)),rl(t,r),yP(e.v,r),r}function UM(e){var t=Xi(e),r=eb(e);return[t,r,"is"]}function zM(e){var t=Xi(e),r=$n(e);return[t,r,"str"]}function WM(e,t,r){return r==null&&(r=Me(12+4*e.v.length)),el(t,r),gn(e.v,r),r.length>r.l?r.slice(0,r.l):r}function HM(e){var t=tl(e),r=$n(e);return[t,r,"str"]}function GM(e,t,r){return r==null&&(r=Me(8+4*e.v.length)),rl(t,r),gn(e.v,r),r.length>r.l?r.slice(0,r.l):r}function VM(e,t,r){var n=e.l+t,i=Xi(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"b"];if(r.cellFormula){e.l+=2;var s=up(e,n-e.l,r);o[3]=ou(s,null,i,r.supbooks,r)}else e.l=n;return o}function KM(e,t,r){var n=e.l+t,i=Xi(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"e"];if(r.cellFormula){e.l+=2;var s=up(e,n-e.l,r);o[3]=ou(s,null,i,r.supbooks,r)}else e.l=n;return o}function YM(e,t,r){var n=e.l+t,i=Xi(e);i.r=r["!row"];var a=qu(e),o=[i,a,"n"];if(r.cellFormula){e.l+=2;var s=up(e,n-e.l,r);o[3]=ou(s,null,i,r.supbooks,r)}else e.l=n;return o}function XM(e,t,r){var n=e.l+t,i=Xi(e);i.r=r["!row"];var a=$n(e),o=[i,a,"str"];if(r.cellFormula){e.l+=2;var s=up(e,n-e.l,r);o[3]=ou(s,null,i,r.supbooks,r)}else e.l=n;return o}var JM=nl,ZM=$u;function QM(e,t){return t==null&&(t=Me(4)),t.write_shift(4,e),t}function eD(e,t){var r=e.l+t,n=nl(e),i=tb(e),a=$n(e),o=$n(e),s=$n(e);e.l=r;var l={rfx:n,relId:i,loc:a,display:s};return o&&(l.Tooltip=o),l}function tD(e,t){var r=Me(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));$u({s:mn(e[0]),e:mn(e[0])},r),rb("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return gn(i||"",r),gn(e[1].Tooltip||"",r),gn("",r),r.slice(0,r.l)}function rD(){}function nD(e,t,r){var n=e.l+t,i=xP(e),a=e.read_shift(1),o=[i];if(o[2]=a,r.cellFormula){var s=HR(e,n-e.l,r);o[1]=s}else e.l=n;return o}function iD(e,t,r){var n=e.l+t,i=nl(e),a=[i];if(r.cellFormula){var o=VR(e,n-e.l,r);a[1]=o,e.l=n}else e.l=n;return a}function aD(e,t,r){r==null&&(r=Me(18));var n=cp(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var i=0;return t.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),t.level&&(i|=t.level<<8),r.write_shift(2,i),r}var rN=["left","right","top","bottom","header","footer"];function oD(e){var t={};return rN.forEach(function(r){t[r]=qu(e)}),t}function sD(e,t){return t==null&&(t=Me(48)),eN(e),rN.forEach(function(r){Vs(e[r],t)}),t}function lD(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function uD(e,t,r){r==null&&(r=Me(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function cD(e){var t=Me(24);return t.write_shift(4,4),t.write_shift(4,1),$u(e,t),t}function fD(e,t){return t==null&&(t=Me(66)),t.write_shift(2,e.password?MP(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function hD(){}function dD(){}function pD(e,t,r,n,i,a,o){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=ci(t),t.z=t.z||Dr[14],t.v=ui(Jn(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r,c:n};switch(l.s=us(i.cellXfs,t,i),t.l&&a["!links"].push([fr(l),t.l]),t.c&&a["!comments"].push([fr(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=lb(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,o?ze(e,18,LM(t,l)):ze(e,7,jM(t,l))):(l.t="str",o?ze(e,17,GM(t,l)):ze(e,6,WM(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?ze(e,13,qM(t,l)):ze(e,2,BM(t,l)):o?ze(e,16,MM(t,l)):ze(e,5,FM(t,l)),!0;case"b":return l.t="b",o?ze(e,15,TM(t,l)):ze(e,4,SM(t,l)),!0;case"e":return l.t="e",o?ze(e,14,NM(t,l)):ze(e,3,OM(t,l)),!0}return o?ze(e,12,wM(t,l)):ze(e,1,xM(t,l)),!0}function vD(e,t,r,n){var i=Nr(t["!ref"]||"A1"),a,o="",s=[];ze(e,145);var l=Array.isArray(t),u=i.e.r;t["!rows"]&&(u=Math.max(i.e.r,t["!rows"].length-1));for(var c=i.s.r;c<=u;++c){o=On(c),hM(e,t,i,c);var f=!1;if(c<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){c===i.s.r&&(s[d]=Bn(d)),a=s[d]+o;var h=l?(t[c]||[])[d]:t[a];if(!h){f=!1;continue}f=pD(e,h,c,d,n,t,f)}}ze(e,146)}function mD(e,t){!t||!t["!merges"]||(ze(e,177,QM(t["!merges"].length)),t["!merges"].forEach(function(r){ze(e,176,ZM(r))}),ze(e,178))}function gD(e,t){!t||!t["!cols"]||(ze(e,390),t["!cols"].forEach(function(r,n){r&&ze(e,60,aD(n,r))}),ze(e,391))}function yD(e,t){!t||!t["!ref"]||(ze(e,648),ze(e,649,cD(Nr(t["!ref"]))),ze(e,650))}function xD(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=ur(r,-1,n[1].Target.replace(/#.*$/,""),Gt.HLINK);ze(e,494,tD(n,i))}}),delete t["!links"]}function bD(e,t,r,n){if(t["!comments"].length>0){var i=ur(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Gt.VML);ze(e,551,rb("rId"+i)),t["!legacy"]=i}}function wD(e,t,r,n){if(t["!autofilter"]){var i=t["!autofilter"],a=typeof i.ref=="string"?i.ref:Zr(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=Ni(a);s.s.r==s.e.r&&(s.e.r=Ni(t["!ref"]).e.r,a=Zr(s));for(var l=0;l<o.length;++l){var u=o[l];if(u.Name=="_xlnm._FilterDatabase"&&u.Sheet==n){u.Ref="'"+r.SheetNames[n]+"'!"+a;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),ze(e,161,$u(Nr(a))),ze(e,162)}}function _D(e,t,r){ze(e,133),ze(e,137,uD(t,r)),ze(e,138),ze(e,134)}function SD(e,t){t["!protect"]&&ze(e,535,fD(t["!protect"]))}function AD(e,t,r,n){var i=li(),a=r.SheetNames[e],o=r.Sheets[a]||{},s=a;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch{}var l=Nr(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],ze(i,129),(r.vbaraw||o["!outline"])&&ze(i,147,gM(s,o["!outline"])),ze(i,148,pM(l)),_D(i,o,r.Workbook),gD(i,o),vD(i,o,e,t),SD(i,o),wD(i,o,r,e),mD(i,o),xD(i,o,n),o["!margins"]&&ze(i,476,sD(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&yD(i,o),bD(i,o,e,n),ze(i,130),i.end()}function TD(e,t){e.l+=10;var r=$n(e);return{name:r}}var ED=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]];function OD(e){return!e.Workbook||!e.Workbook.WBProps?"false":iI(e.Workbook.WBProps.date1904)?"true":"false"}var PD="][*?/\\".split("");function nN(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return PD.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function ND(e,t,r){e.forEach(function(n,i){nN(n);for(var a=0;a<i;++a)if(n==e[a])throw new Error("Duplicate Sheet Name: "+n);if(r){var o=t&&t[i]&&t[i].CodeName||n;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function CD(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];ND(e.SheetNames,t,!!e.vbaraw);for(var r=0;r<e.SheetNames.length;++r)ZR(e.Sheets[e.SheetNames[r]],e.SheetNames[r],r)}function iN(e){var t=[en];t[t.length]=Qe("workbook",null,{xmlns:Du[0],"xmlns:r":vn.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(ED.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=Qe("workbookPr",null,n);var i=e.Workbook&&e.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(t[t.length]="<bookViews>",a=0;a!=e.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==e.SheetNames.length&&(a=0),t[t.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",a=0;a!=e.SheetNames.length;++a){var o={name:cr(e.SheetNames[a].slice(0,31))};if(o.sheetId=""+(a+1),o["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=Qe("sheet",null,o)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(t[t.length]=Qe("definedName",cr(s.Ref),l))}),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}function jD(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=p2(e),r.name=$n(e),r}function kD(e,t){return t||(t=Me(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),rb(e.strRelID,t),gn(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function LD(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var i=t>8?$n(e):"";return i.length>0&&(r.CodeName=i),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function ID(e,t){t||(t=Me(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),mP(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function FD(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var i=e.read_shift(4),a=OI(e),o=GR(e,0,r),s=tb(e);e.l=n;var l={Name:a,Ptg:o};return i<268435455&&(l.Sheet=i),s&&(l.Comment=s),l}function RD(e,t){ze(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,i={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};ze(e,156,kD(i))}ze(e,144)}function MD(e,t){t||(t=Me(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return gn("SheetJS",t),gn(M0.version,t),gn(M0.version,t),gn("7262",t),t.length>t.l?t.slice(0,t.l):t}function DD(e,t){t||(t=Me(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function BD(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,i=-1,a=-1;n<r.length;++n)!r[n]||!r[n].Hidden&&i==-1?i=n:r[n].Hidden==1&&a==-1&&(a=n);a>i||(ze(e,135),ze(e,158,DD(i)),ze(e,136))}}function $D(e,t){var r=li();return ze(r,131),ze(r,128,MD()),ze(r,153,ID(e.Workbook&&e.Workbook.WBProps||null)),BD(r,e),RD(r,e),ze(r,132),r.end()}function qD(e,t,r){return(t.slice(-4)===".bin"?$D:iN)(e)}function UD(e,t,r,n,i){return(t.slice(-4)===".bin"?AD:tN)(e,r,n,i)}function zD(e,t,r){return(t.slice(-4)===".bin"?sF:$P)(e,r)}function WD(e,t,r){return(t.slice(-4)===".bin"?I7:RP)(e,r)}function HD(e,t,r){return(t.slice(-4)===".bin"?SF:HP)(e)}function GD(e){return(e.slice(-4)===".bin"?vF:zP)()}function VD(e,t){var r=[];return e.Props&&r.push(zI(e.Props,t)),e.Custprops&&r.push(WI(e.Props,e.Custprops)),r.join("")}function KD(){return""}function YD(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var a=[];a.push(Qe("NumberFormat",null,{"ss:Format":cr(Dr[n.numFmtId])}));var o={"ss:ID":"s"+(21+i)};r.push(Qe("Style",a.join(""),o))}),Qe("Styles",r.join(""))}function aN(e){return Qe("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+ob(e.Ref,{r:0,c:0})})}function XD(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n<t.length;++n){var i=t[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||r.push(aN(i)))}return Qe("Names",r.join(""))}function JD(e,t,r,n){if(!e||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],o=0;o<i.length;++o){var s=i[o];s.Sheet==r&&(s.Name.match(/^_xlfn\./)||a.push(aN(s)))}return a.join("")}function ZD(e,t,r,n){if(!e)return"";var i=[];if(e["!margins"]&&(i.push("<PageSetup>"),e["!margins"].header&&i.push(Qe("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(Qe("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(Qe("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)i.push(Qe("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<r&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==r&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),e["!protect"]&&(i.push(En("ProtectContents","True")),e["!protect"].objects&&i.push(En("ProtectObjects","True")),e["!protect"].scenarios&&i.push(En("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(En("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(En("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){e["!protect"][o[0]]&&i.push("<"+o[1]+"/>")})),i.length==0?"":Qe("WorksheetOptions",i.join(""),{xmlns:Ti.x})}function QD(e){return e.map(function(t){var r=nI(t.t||""),n=Qe("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Qe("Comment",n,{"ss:Author":t.a})}).join("")}function e9(e,t,r,n,i,a,o){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+cr(ob(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=mn(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=cr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=cr(e.l.Tooltip))),r["!merges"])for(var u=r["!merges"],c=0;c!=u.length;++c)u[c].s.c!=o.c||u[c].s.r!=o.r||(u[c].e.c>u[c].s.c&&(s["ss:MergeAcross"]=u[c].e.c-u[c].s.c),u[c].e.r>u[c].s.r&&(s["ss:MergeDown"]=u[c].e.r-u[c].s.r));var f="",d="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",d=String(e.v);break;case"b":f="Boolean",d=e.v?"1":"0";break;case"e":f="Error",d=th[e.v];break;case"d":f="DateTime",d=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Dr[14]);break;case"s":f="String",d=rI(e.v||"");break}var h=us(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=o.c+1;var g=e.v!=null?d:"",p=e.t=="z"?"":'<Data ss:Type="'+f+'">'+g+"</Data>";return(e.c||[]).length>0&&(p+=QD(e.c)),Qe("Cell",p,s)}function t9(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=BP(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function r9(e,t,r,n){if(!e["!ref"])return"";var i=Nr(e["!ref"]),a=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach(function(m,y){ib(m);var x=!!m.width,w=cp(y,m),T={"ss:Index":y+1};x&&(T["ss:Width"]=V0(w.width)),m.hidden&&(T["ss:Hidden"]="1"),s.push(Qe("Column",null,T))});for(var l=Array.isArray(e),u=i.s.r;u<=i.e.r;++u){for(var c=[t9(u,(e["!rows"]||[])[u])],f=i.s.c;f<=i.e.c;++f){var d=!1;for(o=0;o!=a.length;++o)if(!(a[o].s.c>f)&&!(a[o].s.r>u)&&!(a[o].e.c<f)&&!(a[o].e.r<u)){(a[o].s.c!=f||a[o].s.r!=u)&&(d=!0);break}if(!d){var h={r:u,c:f},g=fr(h),p=l?(e[u]||[])[f]:e[g];c.push(e9(p,g,e,t,r,n,h))}}c.push("</Row>"),c.length>2&&s.push(c.join(""))}return s.join("")}function n9(e,t,r){var n=[],i=r.SheetNames[e],a=r.Sheets[i],o=a?JD(a,t,e,r):"";return o.length>0&&n.push("<Names>"+o+"</Names>"),o=a?r9(a,t,e,r):"",o.length>0&&n.push("<Table>"+o+"</Table>"),n.push(ZD(a,t,e,r)),n.join("")}function i9(e,t){t||(t={}),e.SSF||(e.SSF=ci(Dr)),e.SSF&&(ap(),ip(e.SSF),t.revssf=op(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(VD(e,t)),r.push(KD()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(Qe("Worksheet",n9(n,t,e),{"ss:Name":cr(e.SheetNames[n])}));return r[2]=YD(e,t),r[3]=XD(e),en+Qe("Workbook",r.join(""),{xmlns:Ti.ss,"xmlns:o":Ti.o,"xmlns:x":Ti.x,"xmlns:ss":Ti.ss,"xmlns:dt":Ti.dt,"xmlns:html":Ti.html})}var U1={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function a9(e,t){var r=[],n=[],i=[],a=0,o,s=Aw(Mw,"n"),l=Aw(Dw,"n");if(e.Props)for(o=Pn(e.Props),a=0;a<o.length;++a)(Object.prototype.hasOwnProperty.call(s,o[a])?r:Object.prototype.hasOwnProperty.call(l,o[a])?n:i).push([o[a],e.Props[o[a]]]);if(e.Custprops)for(o=Pn(e.Custprops),a=0;a<o.length;++a)Object.prototype.hasOwnProperty.call(e.Props||{},o[a])||(Object.prototype.hasOwnProperty.call(s,o[a])?r:Object.prototype.hasOwnProperty.call(l,o[a])?n:i).push([o[a],e.Custprops[o[a]]]);var u=[];for(a=0;a<i.length;++a)NP.indexOf(i[a][0])>-1||EP.indexOf(i[a][0])>-1||i[a][1]!=null&&u.push(i[a]);n.length&&pr.utils.cfb_add(t,"/SummaryInformation",zw(n,U1.SI,l,Dw)),(r.length||u.length)&&pr.utils.cfb_add(t,"/DocumentSummaryInformation",zw(r,U1.DSI,s,Mw,u.length?u:null,U1.UDI))}function o9(e,t){var r=t||{},n=pr.utils.cfb_new({root:"R"}),i="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":i="/Workbook",r.biff=8;break;case"biff5":i="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return pr.utils.cfb_add(n,i,oN(e,r)),r.biff==8&&(e.Props||e.Custprops)&&a9(e,n),r.biff==8&&e.vbaraw&&AF(n,pr.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var s9={0:{f:cM},1:{f:yM},2:{f:DM},3:{f:EM},4:{f:_M},5:{f:IM},6:{f:zM},7:{f:CM},8:{f:XM},9:{f:YM},10:{f:VM},11:{f:KM},12:{f:bM},13:{f:$M},14:{f:PM},15:{f:AM},16:{f:RM},17:{f:HM},18:{f:kM},19:{f:eb},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:FD},40:{},42:{},43:{f:z7},44:{f:q7},45:{f:G7},46:{f:K7},47:{f:V7},48:{},49:{f:bI},50:{},51:{f:cF},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:w7},62:{f:UM},63:{f:mF},64:{f:hD},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:Ba,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:lD},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:mM},148:{f:dM,p:16},151:{f:rD},152:{},153:{f:LD},154:{},155:{},156:{f:jD},157:{},158:{},159:{T:1,f:j7},160:{T:-1},161:{T:1,f:nl},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:JM},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:lF},336:{T:-1},337:{f:dF,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:p2},357:{},358:{},359:{},360:{T:1},361:{},362:{f:v7},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:nD},427:{f:iD},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:oD},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:vM},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:eD},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:p2},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:wF},633:{T:1},634:{T:-1},635:{T:1,f:xF},636:{T:-1},637:{f:AI},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:TD},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:dD},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}};function tt(e,t,r,n){var i=t;if(!isNaN(i)){var a=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,i),o.write_shift(2,a),a>0&&Jx(r)&&e.push(r)}}function l9(e,t,r,n){var i=(r||[]).length||0;if(i<=8224)return tt(e,t,r,i);var a=t;if(!isNaN(a)){for(var o=r.parts||[],s=0,l=0,u=0;u+(o[s]||8224)<=8224;)u+=o[s]||8224,s++;var c=e.next(4);for(c.write_shift(2,a),c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u;l<i;){for(c=e.next(4),c.write_shift(2,60),u=0;u+(o[s]||8224)<=8224;)u+=o[s]||8224,s++;c.write_shift(2,u),e.push(r.slice(l,l+u)),l+=u}}}function nh(e,t,r){return e||(e=Me(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(2,0),e.write_shift(1,0),e}function u9(e,t,r,n){var i=Me(9);return nh(i,e,t),jP(r,n||"b",i),i}function c9(e,t,r){var n=Me(8+2*r.length);return nh(n,e,t),n.write_shift(1,r.length),n.write_shift(r.length,r,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function f9(e,t,r,n){if(t.v!=null)switch(t.t){case"d":case"n":var i=t.t=="d"?ui(Jn(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?tt(e,2,T7(r,n,i)):tt(e,3,A7(r,n,i));return;case"b":case"e":tt(e,5,u9(r,n,t.v,t.t));return;case"s":case"str":tt(e,4,c9(r,n,(t.v||"").slice(0,255)));return}tt(e,1,nh(null,r,n))}function h9(e,t,r,n){var i=Array.isArray(t),a=Nr(t["!ref"]||"A1"),o,s="",l=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),o=Zr(a)}for(var u=a.s.r;u<=a.e.r;++u){s=On(u);for(var c=a.s.c;c<=a.e.c;++c){u===a.s.r&&(l[c]=Bn(c)),o=l[c]+s;var f=i?(t[u]||[])[c]:t[o];f&&f9(e,f,u,c)}}}function d9(e,t){for(var r=t||{},n=li(),i=0,a=0;a<e.SheetNames.length;++a)e.SheetNames[a]==r.sheet&&(i=a);if(i==0&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);return tt(n,r.biff==4?1033:r.biff==3?521:9,nb(e,16,r)),h9(n,e.Sheets[e.SheetNames[i]],i,r),tt(n,10),n.end()}function p9(e,t,r){tt(e,49,s7({sz:12,name:"Arial"},r))}function v9(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&tt(e,1054,c7(i,t[i],r))})}function m9(e,t){var r=Me(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),tt(e,2151,r),r=Me(39),r.write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),IP(Nr(t["!ref"]||"A1"),r),r.write_shift(4,4),tt(e,2152,r)}function g9(e,t){for(var r=0;r<16;++r)tt(e,224,Hw({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){tt(e,224,Hw(n,0,t))})}function y9(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];tt(e,440,y7(n)),n[1].Tooltip&&tt(e,2048,x7(n))}delete t["!links"]}function x9(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&tt(e,125,_7(cp(i,n),i))})}}function b9(e,t,r,n,i){var a=16+us(i.cellXfs,t,i);if(t.v==null&&!t.bf){tt(e,513,Ks(r,n,a));return}if(t.bf)tt(e,6,WR(t,r,n,i,a));else switch(t.t){case"d":case"n":var o=t.t=="d"?ui(Jn(t.v)):t.v;tt(e,515,p7(r,n,o,a));break;case"b":case"e":tt(e,517,d7(r,n,t.v,a,i,t.t));break;case"s":case"str":if(i.bookSST){var s=lb(i.Strings,t.v,i.revStrings);tt(e,253,l7(r,n,s,a))}else tt(e,516,u7(r,n,(t.v||"").slice(0,255),a,i));break;default:tt(e,513,Ks(r,n,a))}}function w9(e,t,r){var n=li(),i=r.SheetNames[e],a=r.Sheets[i]||{},o=(r||{}).Workbook||{},s=(o.Sheets||[])[e]||{},l=Array.isArray(a),u=t.biff==8,c,f="",d=[],h=Nr(a["!ref"]||"A1"),g=u?65536:16384;if(h.e.c>255||h.e.r>=g){if(t.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,g-1)}tt(n,2057,nb(r,16,t)),tt(n,13,Hi(1)),tt(n,12,Hi(100)),tt(n,15,Vn(!0)),tt(n,17,Vn(!1)),tt(n,16,Vs(.001)),tt(n,95,Vn(!0)),tt(n,42,Vn(!1)),tt(n,43,Vn(!1)),tt(n,130,Hi(1)),tt(n,128,h7()),tt(n,131,Vn(!1)),tt(n,132,Vn(!1)),u&&x9(n,a["!cols"]),tt(n,512,f7(h,t)),u&&(a["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=On(p);for(var m=h.s.c;m<=h.e.c;++m){p===h.s.r&&(d[m]=Bn(m)),c=d[m]+f;var y=l?(a[p]||[])[m]:a[c];y&&(b9(n,y,p,m,t),u&&y.l&&a["!links"].push([c,y.l]))}}var x=s.CodeName||s.name||i;return u&&tt(n,574,o7((o.Views||[])[0])),u&&(a["!merges"]||[]).length&&tt(n,229,g7(a["!merges"])),u&&y9(n,a),tt(n,442,LP(x)),u&&m9(n,a),tt(n,10),n.end()}function _9(e,t,r){var n=li(),i=(e||{}).Workbook||{},a=i.Sheets||[],o=i.WBProps||{},s=r.biff==8,l=r.biff==5;if(tt(n,2057,nb(e,5,r)),r.bookType=="xla"&&tt(n,135),tt(n,225,s?Hi(1200):null),tt(n,193,VI(2)),l&&tt(n,191),l&&tt(n,192),tt(n,226),tt(n,92,r7("SheetJS",r)),tt(n,66,Hi(s?1200:1252)),s&&tt(n,353,Hi(0)),s&&tt(n,448),tt(n,317,S7(e.SheetNames.length)),s&&e.vbaraw&&tt(n,211),s&&e.vbaraw){var u=o.CodeName||"ThisWorkbook";tt(n,442,LP(u))}tt(n,156,Hi(17)),tt(n,25,Vn(!1)),tt(n,18,Vn(!1)),tt(n,19,Hi(0)),s&&tt(n,431,Vn(!1)),s&&tt(n,444,Hi(0)),tt(n,61,a7()),tt(n,64,Vn(!1)),tt(n,141,Hi(0)),tt(n,34,Vn(OD(e)=="true")),tt(n,14,Vn(!0)),s&&tt(n,439,Vn(!1)),tt(n,218,Hi(0)),p9(n,e,r),v9(n,e.SSF,r),g9(n,r),s&&tt(n,352,Vn(!1));var c=n.end(),f=li();s&&tt(f,140,b7()),s&&r.Strings&&l9(f,252,i7(r.Strings)),tt(f,10);var d=f.end(),h=li(),g=0,p=0;for(p=0;p<e.SheetNames.length;++p)g+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var m=c.length+g+d.length;for(p=0;p<e.SheetNames.length;++p){var y=a[p]||{};tt(h,133,n7({pos:m,hs:y.Hidden||0,dt:0,name:e.SheetNames[p]},r)),m+=t[p].length}var x=h.end();if(g!=x.length)throw new Error("BS8 "+g+" != "+x.length);var w=[];return c.length&&w.push(c),x.length&&w.push(x),d.length&&w.push(d),Tn(w)}function S9(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=ci(Dr)),e&&e.SSF&&(ap(),ip(e.SSF),r.revssf=op(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,ub(r),r.cellXfs=[],us(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var i=0;i<e.SheetNames.length;++i)n[n.length]=w9(i,r,e);return n.unshift(_9(e,n,r)),Tn(n)}function oN(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=Ni(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var a=t||{};switch(a.biff||2){case 8:case 5:return S9(e,t);case 4:case 3:case 2:return d9(e,t)}throw new Error("invalid type "+a.bookType+" for BIFF")}function A9(e,t,r,n){for(var i=e["!merges"]||[],a=[],o=t.s.c;o<=t.e.c;++o){for(var s=0,l=0,u=0;u<i.length;++u)if(!(i[u].s.r>r||i[u].s.c>o)&&!(i[u].e.r<r||i[u].e.c<o)){if(i[u].s.r<r||i[u].s.c<o){s=-1;break}s=i[u].e.r-i[u].s.r+1,l=i[u].e.c-i[u].s.c+1;break}if(!(s<0)){var c=fr({r,c:o}),f=n.dense?(e[r]||[])[o]:e[c],d=f&&f.v!=null&&(f.h||tI(f.w||(xo(f),f.w)||""))||"",h={};s>1&&(h.rowspan=s),l>1&&(h.colspan=l),n.editable?d='<span contenteditable="true">'+d+"</span>":f&&(h["data-t"]=f&&f.t||"z",f.v!=null&&(h["data-v"]=f.v),f.z!=null&&(h["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+f.l.Target+'">'+d+"</a>")),h.id=(n.id||"sjs")+"-"+c,a.push(Qe("td",d,h))}}var g="<tr>";return g+a.join("")+"</tr>"}var T9='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',E9="</body></html>";function O9(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function sN(e,t){var r=t||{},n=r.header!=null?r.header:T9,i=r.footer!=null?r.footer:E9,a=[n],o=Ni(e["!ref"]);r.dense=Array.isArray(e),a.push(O9(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)a.push(A9(e,o,s,r));return a.push("</table>"+i),a.join("")}function lN(e,t,r){var n=r||{},i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var o=typeof n.origin=="string"?mn(n.origin):n.origin;i=o.r,a=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),u={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var c=Ni(e["!ref"]);u.s.r=Math.min(u.s.r,c.s.r),u.s.c=Math.min(u.s.c,c.s.c),u.e.r=Math.max(u.e.r,c.e.r),u.e.c=Math.max(u.e.c,c.e.c),i==-1&&(u.e.r=i=c.e.r+1)}var f=[],d=0,h=e["!rows"]||(e["!rows"]=[]),g=0,p=0,m=0,y=0,x=0,w=0;for(e["!cols"]||(e["!cols"]=[]);g<s.length&&p<l;++g){var T=s[g];if(Zw(T)){if(n.display)continue;h[p]={hidden:!0}}var _=T.children;for(m=y=0;m<_.length;++m){var O=_[m];if(!(n.display&&Zw(O))){var A=O.hasAttribute("data-v")?O.getAttribute("data-v"):O.hasAttribute("v")?O.getAttribute("v"):aI(O.innerHTML),k=O.getAttribute("data-z")||O.getAttribute("z");for(d=0;d<f.length;++d){var L=f[d];L.s.c==y+a&&L.s.r<p+i&&p+i<=L.e.r&&(y=L.e.c+1-a,d=-1)}w=+O.getAttribute("colspan")||1,((x=+O.getAttribute("rowspan")||1)>1||w>1)&&f.push({s:{r:p+i,c:y+a},e:{r:p+i+(x||1)-1,c:y+a+(w||1)-1}});var B={t:"s",v:A},C=O.getAttribute("data-t")||O.getAttribute("t")||"";A!=null&&(A.length==0?B.t=C||"z":n.raw||A.trim().length==0||C=="s"||(A==="TRUE"?B={t:"b",v:!0}:A==="FALSE"?B={t:"b",v:!1}:isNaN(fo(A))?isNaN(ff(A).getDate())||(B={t:"d",v:Jn(A)},n.cellDates||(B={t:"n",v:ui(B.v)}),B.z=n.dateNF||Dr[14]):B={t:"n",v:fo(A)})),B.z===void 0&&k!=null&&(B.z=k);var P="",M=O.getElementsByTagName("A");if(M&&M.length)for(var q=0;q<M.length&&!(M[q].hasAttribute("href")&&(P=M[q].getAttribute("href"),P.charAt(0)!="#"));++q);P&&P.charAt(0)!="#"&&(B.l={Target:P}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][y+a]=B):e[fr({c:y+a,r:p+i})]=B,u.e.c<y+a&&(u.e.c=y+a),y+=w}}++p}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),u.e.r=Math.max(u.e.r,p-1+i),e["!ref"]=Zr(u),p>=l&&(e["!fullref"]=Zr((u.e.r=s.length-g+p-1+i,u))),e}function uN(e,t){var r=t||{},n=r.dense?[]:{};return lN(n,e,t)}function P9(e,t){return Qs(uN(e,t),t)}function Zw(e){var t="",r=N9(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function N9(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}var C9=(function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+df({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return en+t}})(),Qw=(function(){var e=function(a){return cr(a).replace(/ +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=` <table:table-cell />
312
+ `,r=` <table:covered-table-cell/>
313
+ `,n=function(a,o,s){var l=[];l.push(' <table:table table:name="'+cr(o.SheetNames[s])+`" table:style-name="ta1">
314
+ `);var u=0,c=0,f=Ni(a["!ref"]||"A1"),d=a["!merges"]||[],h=0,g=Array.isArray(a);if(a["!cols"])for(c=0;c<=f.e.c;++c)l.push(" <table:table-column"+(a["!cols"][c]?' table:style-name="co'+a["!cols"][c].ods+'"':"")+`></table:table-column>
315
+ `);var p="",m=a["!rows"]||[];for(u=0;u<f.s.r;++u)p=m[u]?' table:style-name="ro'+m[u].ods+'"':"",l.push(" <table:table-row"+p+`></table:table-row>
316
+ `);for(;u<=f.e.r;++u){for(p=m[u]?' table:style-name="ro'+m[u].ods+'"':"",l.push(" <table:table-row"+p+`>
317
+ `),c=0;c<f.s.c;++c)l.push(t);for(;c<=f.e.c;++c){var y=!1,x={},w="";for(h=0;h!=d.length;++h)if(!(d[h].s.c>c)&&!(d[h].s.r>u)&&!(d[h].e.c<c)&&!(d[h].e.r<u)){(d[h].s.c!=c||d[h].s.r!=u)&&(y=!0),x["table:number-columns-spanned"]=d[h].e.c-d[h].s.c+1,x["table:number-rows-spanned"]=d[h].e.r-d[h].s.r+1;break}if(y){l.push(r);continue}var T=fr({r:u,c}),_=g?(a[u]||[])[c]:a[T];if(_&&_.f&&(x["table:formula"]=cr(XR(_.f)),_.F&&_.F.slice(0,T.length)==T)){var O=Ni(_.F);x["table:number-matrix-columns-spanned"]=O.e.c-O.s.c+1,x["table:number-matrix-rows-spanned"]=O.e.r-O.s.r+1}if(!_){l.push(t);continue}switch(_.t){case"b":w=_.v?"TRUE":"FALSE",x["office:value-type"]="boolean",x["office:boolean-value"]=_.v?"true":"false";break;case"n":w=_.w||String(_.v||0),x["office:value-type"]="float",x["office:value"]=_.v||0;break;case"s":case"str":w=_.v==null?"":_.v,x["office:value-type"]="string";break;case"d":w=_.w||Jn(_.v).toISOString(),x["office:value-type"]="date",x["office:date-value"]=Jn(_.v).toISOString(),x["table:style-name"]="ce1";break;default:l.push(t);continue}var A=e(w);if(_.l&&_.l.Target){var k=_.l.Target;k=k.charAt(0)=="#"?"#"+JR(k.slice(1)):k,k.charAt(0)!="#"&&!k.match(/^\w+:/)&&(k="../"+k),A=Qe("text:a",A,{"xlink:href":k.replace(/&/g,"&amp;")})}l.push(" "+Qe("table:table-cell",Qe("text:p",A,{}),x)+`
318
+ `)}l.push(` </table:table-row>
319
+ `)}return l.push(` </table:table>
320
+ `),l.join("")},i=function(a,o){a.push(` <office:automatic-styles>
321
+ `),a.push(` <number:date-style style:name="N37" number:automatic-order="true">
322
+ `),a.push(` <number:month number:style="long"/>
323
+ `),a.push(` <number:text>/</number:text>
324
+ `),a.push(` <number:day number:style="long"/>
325
+ `),a.push(` <number:text>/</number:text>
326
+ `),a.push(` <number:year/>
327
+ `),a.push(` </number:date-style>
328
+ `);var s=0;o.SheetNames.map(function(u){return o.Sheets[u]}).forEach(function(u){if(u&&u["!cols"]){for(var c=0;c<u["!cols"].length;++c)if(u["!cols"][c]){var f=u["!cols"][c];if(f.width==null&&f.wpx==null&&f.wch==null)continue;ib(f),f.ods=s;var d=u["!cols"][c].wpx+"px";a.push(' <style:style style:name="co'+s+`" style:family="table-column">
329
+ `),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+d+`"/>
330
+ `),a.push(` </style:style>
331
+ `),++s}}});var l=0;o.SheetNames.map(function(u){return o.Sheets[u]}).forEach(function(u){if(u&&u["!rows"]){for(var c=0;c<u["!rows"].length;++c)if(u["!rows"][c]){u["!rows"][c].ods=l;var f=u["!rows"][c].hpx+"px";a.push(' <style:style style:name="ro'+l+`" style:family="table-row">
332
+ `),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+f+`"/>
333
+ `),a.push(` </style:style>
334
+ `),++l}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
335
+ `),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
336
+ `),a.push(` </style:style>
337
+ `),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
338
+ `),a.push(` </office:automatic-styles>
339
+ `)};return function(o,s){var l=[en],u=df({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=df({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push("<office:document"+u+c+`>
340
+ `),l.push(AP().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+u+`>
341
+ `),i(l,o),l.push(` <office:body>
342
+ `),l.push(` <office:spreadsheet>
343
+ `);for(var f=0;f!=o.SheetNames.length;++f)l.push(n(o.Sheets[o.SheetNames[f]],o,f));return l.push(` </office:spreadsheet>
344
+ `),l.push(` </office:body>
345
+ `),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}})();function cN(e,t){if(t.bookType=="fods")return Qw(e,t);var r=Vx(),n="",i=[],a=[];return n="mimetype",Mt(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Mt(r,n,Qw(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",Mt(r,n,C9(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",Mt(r,n,en+AP()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",Mt(r,n,UI(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Mt(r,n,$I(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function X0(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function j9(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):va(hf(e))}function k9(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function ls(e){var t=e.reduce(function(i,a){return i+a.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(i){r.set(i,n),n+=i.length}),r}function L9(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,i=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[t+a]=i&255;e[t+15]|=r>=0?0:128}function pf(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function lr(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function tu(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function sn(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],i=pf(e,r),a=i&7;i=Math.floor(i/8);var o=0,s;if(i==0)break;switch(a){case 0:{for(var l=r[0];e[r[0]++]>=128;);s=e.slice(l,r[0])}break;case 5:o=4,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=pf(e,r),s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var u={data:s,type:a};t[i]==null?t[i]=[u]:t[i].push(u)}return t}function wn(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(lr(n*8+i.type)),i.type==2&&t.push(lr(i.data.length)),t.push(i.data))})}),ls(t)}function la(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=pf(e,n),a=sn(e.slice(n[0],n[0]+i));n[0]+=i;var o={id:tu(a[1][0].data),messages:[]};a[2].forEach(function(s){var l=sn(s.data),u=tu(l[3][0].data);o.messages.push({meta:l,data:e.slice(n[0],n[0]+u)}),n[0]+=u}),(t=a[3])!=null&&t[0]&&(o.merge=tu(a[3][0].data)>>>0>0),r.push(o)}return r}function Fl(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:lr(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:lr(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(o){i.push(o.data),o.meta[3]=[{type:0,data:lr(o.data.length)}],n[2].push({data:wn(o.meta),type:2})});var a=wn(n);t.push(lr(a.length)),t.push(a),i.forEach(function(o){return t.push(o)})}),ls(t)}function I9(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=pf(t,r),i=[];r[0]<t.length;){var a=t[r[0]]&3;if(a==0){var o=t[r[0]++]>>2;if(o<60)++o;else{var s=o-59;o=t[r[0]],s>1&&(o|=t[r[0]+1]<<8),s>2&&(o|=t[r[0]+2]<<16),s>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}i.push(t.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,u=0;if(a==1?(u=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(u=(t[r[0]++]>>2)+1,a==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),i=[ls(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(u>=l)for(i.push(i[0].slice(-l)),u-=l;u>=i[i.length-1].length;)i.push(i[i.length-1]),u-=i[i.length-1].length;i.push(i[0].slice(-l,-l+u))}}var c=ls(i);if(c.length!=n)throw new Error("Unexpected length: ".concat(c.length," != ").concat(n));return c}function ua(e){for(var t=[],r=0;r<e.length;){var n=e[r++],i=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push(I9(n,e.slice(r,r+i))),r+=i}if(r!==e.length)throw new Error("data is not a valid framed stream!");return ls(t)}function Rl(e){for(var t=[],r=0;r<e.length;){var n=Math.min(e.length-r,268435455),i=new Uint8Array(4);t.push(i);var a=lr(n),o=a.length;t.push(a),n<=60?(o++,t.push(new Uint8Array([n-1<<2]))):n<=256?(o+=2,t.push(new Uint8Array([240,n-1&255]))):n<=65536?(o+=3,t.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(o+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),o+=n,i[0]=0,i[1]=o&255,i[2]=o>>8&255,i[3]=o>>16&255,r+=n}return ls(t)}function z1(e,t){var r=new Uint8Array(32),n=X0(r),i=12,a=0;switch(r[0]=5,e.t){case"n":r[1]=2,L9(r,i,e.v),a|=1,i+=16;break;case"b":r[1]=6,n.setFloat64(i,e.v?1:0,!0),a|=2,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,a,!0),r.slice(0,i)}function W1(e,t){var r=new Uint8Array(32),n=X0(r),i=12,a=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(i,e.v,!0),a|=32,i+=8;break;case"b":r[2]=6,n.setFloat64(i,e.v?1:0,!0),a|=32,i+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(i,t.indexOf(e.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,a,!0),r.slice(0,i)}function Go(e){var t=sn(e);return pf(t[1][0].data)}function F9(e,t,r){var n,i,a,o;if(!((n=e[6])!=null&&n[0])||!((i=e[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(a=e[8])==null?void 0:a[0])==null?void 0:o.data)&&tu(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,u=X0(e[7][0].data),c=0,f=[],d=X0(e[4][0].data),h=0,g=[],p=0;p<t.length;++p){if(t[p]==null){u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535);continue}u.setUint16(p*2,c,!0),d.setUint16(p*2,h,!0);var m,y;switch(typeof t[p]){case"string":m=z1({t:"s",v:t[p]},r),y=W1({t:"s",v:t[p]},r);break;case"number":m=z1({t:"n",v:t[p]},r),y=W1({t:"n",v:t[p]},r);break;case"boolean":m=z1({t:"b",v:t[p]},r),y=W1({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(m),c+=m.length,g.push(y),h+=y.length,++l}for(e[2][0].data=lr(l);p<e[7][0].data.length/2;++p)u.setUint16(p*2,65535,!0),d.setUint16(p*2,65535,!0);return e[6][0].data=ls(f),e[3][0].data=ls(g),l}function R9(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Ni(r["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(Zr(n)));var a=J0(r,{range:n,header:1}),o=["~Sh33tJ5~"];a.forEach(function(I){return I.forEach(function(R){typeof R=="string"&&o.push(R)})});var s={},l=[],u=pr.read(t.numbers,{type:"base64"});u.FileIndex.map(function(I,R){return[I,u.FullPaths[R]]}).forEach(function(I){var R=I[0],D=I[1];if(R.type==2&&R.name.match(/\.iwa/)){var G=R.content,ce=ua(G),he=la(ce);he.forEach(function(ne){l.push(ne.id),s[ne.id]={deps:[],location:D,type:tu(ne.messages[0].meta[1][0].data)}})}}),l.sort(function(I,R){return I-R});var c=l.filter(function(I){return I>1}).map(function(I){return[I,lr(I)]});u.FileIndex.map(function(I,R){return[I,u.FullPaths[R]]}).forEach(function(I){var R=I[0];if(I[1],!!R.name.match(/\.iwa/)){var D=la(ua(R.content));D.forEach(function(G){G.messages.forEach(function(ce){c.forEach(function(he){G.messages.some(function(ne){return tu(ne.meta[1][0].data)!=11006&&k9(ne.data,he[1])})&&s[he[0]].deps.push(G.id)})})})}});for(var f=pr.find(u,s[1].location),d=la(ua(f.content)),h,g=0;g<d.length;++g){var p=d[g];p.id==1&&(h=p)}var m=Go(sn(h.messages[0].data)[1][0].data);for(f=pr.find(u,s[m].location),d=la(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(h=p);for(m=Go(sn(h.messages[0].data)[2][0].data),f=pr.find(u,s[m].location),d=la(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(h=p);for(m=Go(sn(h.messages[0].data)[2][0].data),f=pr.find(u,s[m].location),d=la(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==m&&(h=p);var y=sn(h.messages[0].data);{y[6][0].data=lr(n.e.r+1),y[7][0].data=lr(n.e.c+1);var x=Go(y[46][0].data),w=pr.find(u,s[x].location),T=la(ua(w.content));{for(var _=0;_<T.length&&T[_].id!=x;++_);if(T[_].id!=x)throw"Bad ColumnRowUIDMapArchive";var O=sn(T[_].messages[0].data);O[1]=[],O[2]=[],O[3]=[];for(var A=0;A<=n.e.c;++A){var k=[];k[1]=k[2]=[{type:0,data:lr(A+420690)}],O[1].push({type:2,data:wn(k)}),O[2].push({type:0,data:lr(A)}),O[3].push({type:0,data:lr(A)})}O[4]=[],O[5]=[],O[6]=[];for(var L=0;L<=n.e.r;++L)k=[],k[1]=k[2]=[{type:0,data:lr(L+726270)}],O[4].push({type:2,data:wn(k)}),O[5].push({type:0,data:lr(L)}),O[6].push({type:0,data:lr(L)});T[_].messages[0].data=wn(O)}w.content=Rl(Fl(T)),w.size=w.content.length,delete y[46];var B=sn(y[4][0].data);{B[7][0].data=lr(n.e.r+1);var C=sn(B[1][0].data),P=Go(C[2][0].data);w=pr.find(u,s[P].location),T=la(ua(w.content));{if(T[0].id!=P)throw"Bad HeaderStorageBucket";var M=sn(T[0].messages[0].data);for(L=0;L<a.length;++L){var q=sn(M[2][0].data);q[1][0].data=lr(L),q[4][0].data=lr(a[L].length),M[2][L]={type:M[2][0].type,data:wn(q)}}T[0].messages[0].data=wn(M)}w.content=Rl(Fl(T)),w.size=w.content.length;var J=Go(B[2][0].data);w=pr.find(u,s[J].location),T=la(ua(w.content));{if(T[0].id!=J)throw"Bad HeaderStorageBucket";for(M=sn(T[0].messages[0].data),A=0;A<=n.e.c;++A)q=sn(M[2][0].data),q[1][0].data=lr(A),q[4][0].data=lr(n.e.r+1),M[2][A]={type:M[2][0].type,data:wn(q)};T[0].messages[0].data=wn(M)}w.content=Rl(Fl(T)),w.size=w.content.length;var U=Go(B[4][0].data);(function(){for(var I=pr.find(u,s[U].location),R=la(ua(I.content)),D,G=0;G<R.length;++G){var ce=R[G];ce.id==U&&(D=ce)}var he=sn(D.messages[0].data);{he[3]=[];var ne=[];o.forEach(function(ue,Ie){ne[1]=[{type:0,data:lr(Ie)}],ne[2]=[{type:0,data:lr(1)}],ne[3]=[{type:2,data:j9(ue)}],he[3].push({type:2,data:wn(ne)})})}D.messages[0].data=wn(he);var me=Fl(R),Se=Rl(me);I.content=Se,I.size=I.content.length})();var H=sn(B[3][0].data);{var ee=H[1][0];delete H[2];var Z=sn(ee.data);{var Q=Go(Z[2][0].data);(function(){for(var I=pr.find(u,s[Q].location),R=la(ua(I.content)),D,G=0;G<R.length;++G){var ce=R[G];ce.id==Q&&(D=ce)}var he=sn(D.messages[0].data);{delete he[6],delete H[7];var ne=new Uint8Array(he[5][0].data);he[5]=[];for(var me=0,Se=0;Se<=n.e.r;++Se){var ue=sn(ne);me+=F9(ue,a[Se],o),ue[1][0].data=lr(Se),he[5].push({data:wn(ue),type:2})}he[1]=[{type:0,data:lr(n.e.c+1)}],he[2]=[{type:0,data:lr(n.e.r+1)}],he[3]=[{type:0,data:lr(me)}],he[4]=[{type:0,data:lr(n.e.r+1)}]}D.messages[0].data=wn(he);var Ie=Fl(R),ge=Rl(Ie);I.content=ge,I.size=I.content.length})()}ee.data=wn(Z)}B[3][0].data=wn(H)}y[4][0].data=wn(B)}h.messages[0].data=wn(y);var le=Fl(d),N=Rl(le);return f.content=N,f.size=f.content.length,u}function M9(e){return function(r){for(var n=0;n!=e.length;++n){var i=e[n];r[i[0]]===void 0&&(r[i[0]]=i[1]),i[2]==="n"&&(r[i[0]]=Number(r[i[0]]))}}}function ub(e){M9([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function D9(e,t){return t.bookType=="ods"?cN(e,t):t.bookType=="numbers"?R9(e,t):t.bookType=="xlsb"?B9(e,t):$9(e,t)}function B9(e,t){Gl=1024,e&&!e.SSF&&(e.SSF=ci(Dr)),e&&e.SSF&&(ap(),ip(e.SSF),t.revssf=op(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Zc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=GP.indexOf(t.bookType)>-1,i=wP();ub(t=t||{});var a=Vx(),o="",s=0;if(t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Mt(a,o,TP(e.Props,t)),i.coreprops.push(o),ur(t.rels,2,o,Gt.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,Mt(a,o,OP(e.Props)),i.extprops.push(o),ur(t.rels,3,o,Gt.EXT_PROPS),e.Custprops!==e.Props&&Pn(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Mt(a,o,PP(e.Custprops)),i.custprops.push(o),ur(t.rels,4,o,Gt.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var c={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],d=(f||{})["!type"]||"sheet";switch(d){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Mt(a,o,UD(s-1,o,t,e,c)),i.sheets.push(o),ur(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Gt.WS[0])}if(f){var h=f["!comments"],g=!1,p="";h&&h.length>0&&(p="xl/comments"+s+"."+r,Mt(a,p,HD(h,p)),i.comments.push(p),ur(c,-1,"../comments"+s+"."+r,Gt.CMNT),g=!0),f["!legacy"]&&g&&Mt(a,"xl/drawings/vmlDrawing"+s+".vml",WP(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}c["!id"].rId1&&Mt(a,SP(o),Ql(c))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,Mt(a,o,WD(t.Strings,o,t)),i.strs.push(o),ur(t.wbrels,-1,"sharedStrings."+r,Gt.SST)),o="xl/workbook."+r,Mt(a,o,qD(e,o)),i.workbooks.push(o),ur(t.rels,1,o,Gt.WB),o="xl/theme/theme1.xml",Mt(a,o,UP(e.Themes,t)),i.themes.push(o),ur(t.wbrels,-1,"theme/theme1.xml",Gt.THEME),o="xl/styles."+r,Mt(a,o,zD(e,o,t)),i.styles.push(o),ur(t.wbrels,-1,"styles."+r,Gt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",Mt(a,o,e.vbaraw),i.vba.push(o),ur(t.wbrels,-1,"vbaProject.bin",Gt.VBA)),o="xl/metadata."+r,Mt(a,o,GD(o)),i.metadata.push(o),ur(t.wbrels,-1,"metadata."+r,Gt.XLMETA),Mt(a,"[Content_Types].xml",_P(i,t)),Mt(a,"_rels/.rels",Ql(t.rels)),Mt(a,"xl/_rels/workbook."+r+".rels",Ql(t.wbrels)),delete t.revssf,delete t.ssf,a}function $9(e,t){Gl=1024,e&&!e.SSF&&(e.SSF=ci(Dr)),e&&e.SSF&&(ap(),ip(e.SSF),t.revssf=op(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Zc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=GP.indexOf(t.bookType)>-1,i=wP();ub(t=t||{});var a=Vx(),o="",s=0;if(t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",Mt(a,o,TP(e.Props,t)),i.coreprops.push(o),ur(t.rels,2,o,Gt.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],u=0;u<e.SheetNames.length;++u)(e.Workbook.Sheets[u]||{}).Hidden!=2&&l.push(e.SheetNames[u]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,Mt(a,o,OP(e.Props)),i.extprops.push(o),ur(t.rels,3,o,Gt.EXT_PROPS),e.Custprops!==e.Props&&Pn(e.Custprops||{}).length>0&&(o="docProps/custom.xml",Mt(a,o,PP(e.Custprops)),i.custprops.push(o),ur(t.rels,4,o,Gt.CUST_PROPS));var c=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},d=e.Sheets[e.SheetNames[s-1]],h=(d||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,Mt(a,o,tN(s-1,t,e,f)),i.sheets.push(o),ur(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Gt.WS[0])}if(d){var g=d["!comments"],p=!1,m="";if(g&&g.length>0){var y=!1;g.forEach(function(x){x[1].forEach(function(w){w.T==!0&&(y=!0)})}),y&&(m="xl/threadedComments/threadedComment"+s+"."+r,Mt(a,m,gF(g,c,t)),i.threadedcomments.push(m),ur(f,-1,"../threadedComments/threadedComment"+s+"."+r,Gt.TCMNT)),m="xl/comments"+s+"."+r,Mt(a,m,HP(g)),i.comments.push(m),ur(f,-1,"../comments"+s+"."+r,Gt.CMNT),p=!0}d["!legacy"]&&p&&Mt(a,"xl/drawings/vmlDrawing"+s+".vml",WP(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&Mt(a,SP(o),Ql(f))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,Mt(a,o,RP(t.Strings,t)),i.strs.push(o),ur(t.wbrels,-1,"sharedStrings."+r,Gt.SST)),o="xl/workbook."+r,Mt(a,o,iN(e)),i.workbooks.push(o),ur(t.rels,1,o,Gt.WB),o="xl/theme/theme1.xml",Mt(a,o,UP(e.Themes,t)),i.themes.push(o),ur(t.wbrels,-1,"theme/theme1.xml",Gt.THEME),o="xl/styles."+r,Mt(a,o,$P(e,t)),i.styles.push(o),ur(t.wbrels,-1,"styles."+r,Gt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",Mt(a,o,e.vbaraw),i.vba.push(o),ur(t.wbrels,-1,"vbaProject.bin",Gt.VBA)),o="xl/metadata."+r,Mt(a,o,zP()),i.metadata.push(o),ur(t.wbrels,-1,"metadata."+r,Gt.XLMETA),c.length>1&&(o="xl/persons/person.xml",Mt(a,o,yF(c)),i.people.push(o),ur(t.wbrels,-1,"persons/person.xml",Gt.PEOPLE)),Mt(a,"[Content_Types].xml",_P(i,t)),Mt(a,"_rels/.rels",Ql(t.rels)),Mt(a,"xl/_rels/workbook."+r+".rels",Ql(t.wbrels)),delete t.revssf,delete t.ssf,a}function q9(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=yo(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function fN(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Qf(t.file,pr.write(e,{type:Yt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return pr.write(e,t)}function U9(e,t){var r=ci(t||{}),n=D9(e,r);return z9(n,r)}function z9(e,t){var r={},n=Yt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var i=e.FullPaths?pr.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof i=="string"){if(t.type=="binary"||t.type=="base64")return i;i=new Uint8Array(np(i))}return t.password&&typeof encrypt_agile<"u"?fN(encrypt_agile(i,t.password),t):t.type==="file"?Qf(t.file,i):t.type=="string"?Kc(i):i}function W9(e,t){var r=t||{},n=o9(e,r);return fN(n,r)}function La(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return cf(hf(n));case"binary":return hf(n);case"string":return e;case"file":return Qf(t.file,n,"utf8");case"buffer":return Yt?Ao(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):La(n,{type:"binary"}).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function H9(e,t){switch(t.type){case"base64":return cf(e);case"binary":return e;case"string":return e;case"file":return Qf(t.file,e,"binary");case"buffer":return Yt?Ao(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function m0(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n<e.length;++n)r+=String.fromCharCode(e[n]);return t.type=="base64"?cf(r):t.type=="string"?Kc(r):r;case"file":return Qf(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function hN(e,t){xL(),CD(e);var r=ci(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=hN(e,r);return r.type="array",np(n)}var i=0;if(r.sheet&&(typeof r.sheet=="number"?i=r.sheet:i=e.SheetNames.indexOf(r.sheet),!e.SheetNames[i]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return La(i9(e,r),r);case"slk":case"sylk":return La(O7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return La(sN(e.Sheets[e.SheetNames[i]],r),r);case"txt":return H9(pN(e.Sheets[e.SheetNames[i]],r),r);case"csv":return La(cb(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return La(P7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return m0(E7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return La(N7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"rtf":return La(R7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"eth":return La(FP.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return La(cN(e,r),r);case"wk1":return m0(Gw.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return m0(Gw.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),m0(oN(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),W9(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return U9(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function G9(e){if(!e.bookType){var t={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},r=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();r.match(/^\.[a-z]+$/)&&(e.bookType=r.slice(1)),e.bookType=t[e.bookType]||e.bookType}}function dN(e,t,r){var n={};return n.type="file",n.file=t,G9(n),hN(e,n)}function V9(e,t,r,n,i,a,o,s){var l=On(r),u=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),f=!0,d=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:r,enumerable:!1})}catch{d.__rowNum__=r}else d.__rowNum__=r;if(!o||e[r])for(var h=t.s.c;h<=t.e.c;++h){var g=o?e[r][h]:e[n[h]+l];if(g===void 0||g.t===void 0){if(u===void 0)continue;a[h]!=null&&(d[a[h]]=u);continue}var p=g.v;switch(g.t){case"z":if(p==null)break;continue;case"e":p=p==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+g.t)}if(a[h]!=null){if(p==null)if(g.t=="e"&&p===null)d[a[h]]=null;else if(u!==void 0)d[a[h]]=u;else if(c&&p===null)d[a[h]]=null;else continue;else d[a[h]]=c&&(g.t!=="n"||g.t==="n"&&s.rawNumbers!==!1)?p:xo(g,p,s);p!=null&&(f=!1)}}return{row:d,isempty:f}}function J0(e,t){if(e==null||e["!ref"]==null)return[];var r={t:"n",v:0},n=0,i=1,a=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},c=u.range!=null?u.range:e["!ref"];switch(u.header===1?n=1:u.header==="A"?n=2:Array.isArray(u.header)?n=3:u.header==null&&(n=0),typeof c){case"string":l=Nr(c);break;case"number":l=Nr(e["!ref"]),l.s.r=c;break;default:l=c}n>0&&(i=0);var f=On(l.s.r),d=[],h=[],g=0,p=0,m=Array.isArray(e),y=l.s.r,x=0,w={};m&&!e[y]&&(e[y]=[]);var T=u.skipHidden&&e["!cols"]||[],_=u.skipHidden&&e["!rows"]||[];for(x=l.s.c;x<=l.e.c;++x)if(!(T[x]||{}).hidden)switch(d[x]=Bn(x),r=m?e[y][x]:e[d[x]+f],n){case 1:a[x]=x-l.s.c;break;case 2:a[x]=d[x];break;case 3:a[x]=u.header[x-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=xo(r,null,u),p=w[o]||0,!p)w[o]=1;else{do s=o+"_"+p++;while(w[s]);w[o]=p,w[s]=1}a[x]=s}for(y=l.s.r+i;y<=l.e.r;++y)if(!(_[y]||{}).hidden){var O=V9(e,l,y,d,n,a,m,u);(O.isempty===!1||(n===1?u.blankrows!==!1:u.blankrows))&&(h[g++]=O.row)}return h.length=g,h}var e_=/"/g;function K9(e,t,r,n,i,a,o,s){for(var l=!0,u=[],c="",f=On(r),d=t.s.c;d<=t.e.c;++d)if(n[d]){var h=s.dense?(e[r]||[])[d]:e[n[d]+f];if(h==null)c="";else if(h.v!=null){l=!1,c=""+(s.rawNumbers&&h.t=="n"?h.v:xo(h,null,s));for(var g=0,p=0;g!==c.length;++g)if((p=c.charCodeAt(g))===i||p===a||p===34||s.forceQuotes){c='"'+c.replace(e_,'""')+'"';break}c=="ID"&&(c='"ID"')}else h.f!=null&&!h.F?(l=!1,c="="+h.f,c.indexOf(",")>=0&&(c='"'+c.replace(e_,'""')+'"')):c="";u.push(c)}return s.blankrows===!1&&l?null:u.join(o)}function cb(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Nr(e["!ref"]),a=n.FS!==void 0?n.FS:",",o=a.charCodeAt(0),s=n.RS!==void 0?n.RS:`
346
+ `,l=s.charCodeAt(0),u=new RegExp((a=="|"?"\\|":a)+"+$"),c="",f=[];n.dense=Array.isArray(e);for(var d=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],g=i.s.c;g<=i.e.c;++g)(d[g]||{}).hidden||(f[g]=Bn(g));for(var p=0,m=i.s.r;m<=i.e.r;++m)(h[m]||{}).hidden||(c=K9(e,i,m,f,o,l,a,n),c!=null&&(n.strip&&(c=c.replace(u,"")),(c||n.blankrows!==!1)&&r.push((p++?s:"")+c)));return delete n.dense,r.join("")}function pN(e,t){t||(t={}),t.FS=" ",t.RS=`
347
+ `;var r=cb(e,t);return r}function Y9(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Nr(e["!ref"]),a="",o=[],s,l=[],u=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)o[s]=Bn(s);for(var c=i.s.r;c<=i.e.r;++c)for(a=On(c),s=i.s.c;s<=i.e.c;++s)if(t=o[s]+a,r=u?(e[c]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function vN(e,t,r){var n=r||{},i=+!n.skipHeader,a=e||{},o=0,s=0;if(a&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?mn(n.origin):n.origin;o=l.r,s=l.c}var u,c={s:{c:0,r:0},e:{c:s,r:o+t.length-1+i}};if(a["!ref"]){var f=Nr(a["!ref"]);c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),o==-1&&(o=f.e.r+1,c.e.r=o+t.length-1+i)}else o==-1&&(o=0,c.e.r=t.length-1+i);var d=n.header||[],h=0;t.forEach(function(p,m){Pn(p).forEach(function(y){(h=d.indexOf(y))==-1&&(d[h=d.length]=y);var x=p[y],w="z",T="",_=fr({c:s+h,r:o+m+i});u=vf(a,_),x&&typeof x=="object"&&!(x instanceof Date)?a[_]=x:(typeof x=="number"?w="n":typeof x=="boolean"?w="b":typeof x=="string"?w="s":x instanceof Date?(w="d",n.cellDates||(w="n",x=ui(x)),T=n.dateNF||Dr[14]):x===null&&n.nullError&&(w="e",x=0),u?(u.t=w,u.v=x,delete u.w,delete u.R,T&&(u.z=T)):a[_]=u={t:w,v:x},T&&(u.z=T))})}),c.e.c=Math.max(c.e.c,s+d.length-1);var g=On(o);if(i)for(h=0;h<d.length;++h)a[Bn(h+s)+g]={t:"s",v:d[h]};return a["!ref"]=Zr(c),a}function X9(e,t){return vN(null,e,t)}function vf(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=mn(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?vf(e,fr(t)):vf(e,fr({r:t,c:r||0}))}function J9(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function Z9(){return{SheetNames:[],Sheets:{}}}function Q9(e,t,r,n){var i=1;if(!r)for(;i<=65535&&e.SheetNames.indexOf(r="Sheet"+i)!=-1;++i,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var o=a&&a[1]||r;for(++i;i<=65535&&e.SheetNames.indexOf(r=o+i)!=-1;++i);}if(nN(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function eB(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=J9(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function tB(e,t){return e.z=t,e}function mN(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function rB(e,t,r){return mN(e,"#"+t,r)}function nB(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function iB(e,t,r,n){for(var i=typeof t!="string"?t:Nr(t),a=typeof t=="string"?t:Zr(t),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var l=vf(e,o,s);l.t="n",l.F=a,delete l.v,o==i.s.r&&s==i.s.c&&(l.f=r,n&&(l.D=!0))}return e}var ru={encode_col:Bn,encode_row:On,encode_cell:fr,encode_range:Zr,decode_col:Qx,decode_row:Zx,split_cell:xI,decode_cell:mn,decode_range:Ni,format_cell:xo,sheet_add_aoa:vP,sheet_add_json:vN,sheet_add_dom:lN,aoa_to_sheet:Bu,json_to_sheet:X9,table_to_sheet:uN,table_to_book:P9,sheet_to_csv:cb,sheet_to_txt:pN,sheet_to_json:J0,sheet_to_html:sN,sheet_to_formulae:Y9,sheet_to_row_object_array:J0,sheet_get_cell:vf,book_new:Z9,book_append_sheet:Q9,book_set_sheet_visibility:eB,cell_set_number_format:tB,cell_set_hyperlink:mN,cell_set_internal_link:rB,cell_add_comment:nB,sheet_set_array_formula:iB,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function aB(e,t,r,n="Sheet1"){const i=[t,...r],a=ru.aoa_to_sheet(i),o=ru.book_new();ru.book_append_sheet(o,a,n),dN(o,`${e}.xlsx`)}function oB(e,t){const r=ru.book_new();t.forEach(({name:n,headers:i,rows:a})=>{const o=[i,...a],s=ru.aoa_to_sheet(o);ru.book_append_sheet(r,s,n)}),dN(r,`${e}.xlsx`)}function sB(e,t){const[r,n]=V.useState(()=>{try{const a=window.localStorage.getItem(e);return a?JSON.parse(a):t}catch{return t}}),i=V.useCallback(a=>{const o=a instanceof Function?a(r):a;n(o);try{window.localStorage.setItem(e,JSON.stringify(o))}catch{}},[e,r]);return[r,i]}function lB(e){V.useEffect(()=>{const t=r=>{e.forEach(({key:n,ctrl:i,meta:a,shift:o,handler:s})=>{const l=r.key.toLowerCase()===n.toLowerCase(),u=i?r.ctrlKey||r.metaKey:!0,c=o?r.shiftKey:!0;l&&u&&c&&(r.preventDefault(),s())})};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function uB(e,t={}){const r=`form-draft-${e}`,[n,i]=V.useState(()=>{try{return!!localStorage.getItem(r)}catch{return!1}}),a=V.useCallback(l=>{try{localStorage.setItem(r,JSON.stringify({data:l,savedAt:Date.now()})),i(!0)}catch{}},[r]),o=V.useCallback(()=>{try{const l=localStorage.getItem(r);if(!l)return null;const u=JSON.parse(l);return Date.now()-u.savedAt>1440*60*1e3?(localStorage.removeItem(r),i(!1),null):u.data}catch{return null}},[r]),s=V.useCallback(()=>{try{localStorage.removeItem(r)}catch{}i(!1)},[r]);return{hasDraft:n,saveDraft:a,loadDraft:o,clearDraft:s}}const H1="recently-viewed",cB=8;function fB(){const[e,t]=V.useState(()=>{try{return JSON.parse(localStorage.getItem(H1))||[]}catch{return[]}}),r=V.useCallback(i=>{t(a=>{const o=a.filter(l=>l.id!==i.id||l.type!==i.type),s=[{...i,viewedAt:Date.now()},...o].slice(0,cB);try{localStorage.setItem(H1,JSON.stringify(s))}catch{}return s})},[]),n=V.useCallback(()=>{t([]);try{localStorage.removeItem(H1)}catch{}},[]);return{items:e,addItem:r,clearAll:n}}function hB(e=[],{paramName:t="tab"}={}){const r=V.useMemo(()=>e.map(s=>s.id||dB(s.label||"")),[e]),n=()=>{try{const l=new URLSearchParams(window.location.search).get(t);if(l!=null){const u=r.indexOf(l);if(u!==-1)return u}}catch{}return 0},[i,a]=V.useState(n),o=V.useCallback(s=>{a(s);try{const l=new URL(window.location.href),u=r[s];s===0?l.searchParams.delete(t):u&&l.searchParams.set(t,u),window.history.replaceState({},"",l.toString())}catch{}},[r,t]);return[i,o]}function dB(e){return e.toLowerCase().replace(/&/g,"and").replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}function pB(e,t=null){const[r,n]=V.useState(t);return{sortedData:V.useMemo(()=>{if(!r||!e)return e||[];const{key:o,direction:s}=r;return[...e].sort((l,u)=>{const c=l[o]??"",f=u[o]??"";return c<f?s==="asc"?-1:1:c>f?s==="asc"?1:-1:0})},[e,r]),sortConfig:r,requestSort:o=>{n(s=>{if((s==null?void 0:s.key)===o){if(s.direction==="asc")return{key:o,direction:"desc"};if(s.direction==="desc")return null}return{key:o,direction:"asc"}})}}}const gN=[20,50,100,1e3],m2="table-page-sizes";function vB(e,t){if(!e)return t;try{const n=JSON.parse(localStorage.getItem(m2)||"{}")[e];if(n&&gN.includes(n))return n}catch{}return t}function mB(e,t){if(e)try{const r=JSON.parse(localStorage.getItem(m2)||"{}");r[e]=t,localStorage.setItem(m2,JSON.stringify(r))}catch{}}function gB(e=20,t){const[r,n]=V.useState(0),[i,a]=V.useState(()=>vB(t,e)),o=V.useCallback(u=>{a(u),n(0),mB(t,u)},[t]),s=V.useCallback(()=>n(0),[]),l={page:r+1,page_size:i};return{page:r,pageSize:i,setPage:n,setPageSize:o,params:l,reset:s,pageSizeOptions:gN}}const t_=1440*60*1e3;function yB(e,{allClassesLabel:t="All Classes",allSectionsLabel:r="All Sections"}={}){const[n,i]=V.useState(""),[a,o]=V.useState(""),{data:s,isLoading:l}=Cj.useQuery({queryKey:["class-sections-lookup"],queryFn:e,staleTime:t_,gcTime:t_,enabled:!!e}),u=(s==null?void 0:s.classes)||[],c=V.useMemo(()=>[{value:"",label:t},...u.map(g=>({value:g.name,label:g.display_name}))],[u,t]),f=l&&!!n,d=V.useMemo(()=>{if(!n)return[{value:"",label:r}];const g=u.find(p=>p.name===n);return!g||!g.sections.length?[{value:"",label:r}]:[{value:"",label:r},...g.sections.map(p=>({value:p.section_name,label:p.section_name}))]},[n,u,r]);return{selectedClass:n,selectedSection:a,setSelectedClass:g=>{i(g),o("")},setSelectedSection:o,classOptions:c,sectionOptions:d,sectionsLoading:f,classes:u,isLoading:l}}const xB={primary:"bg-primary-500 text-white hover:bg-primary-700 hover:shadow-glow-primary focus:ring-primary-500",secondary:"bg-slate-100 text-slate-700 hover:bg-slate-200 focus:ring-slate-400",danger:"bg-danger-500 text-white hover:bg-danger-600 hover:shadow-glow-danger focus:ring-danger-500",ghost:"text-slate-600 hover:bg-slate-100 focus:ring-slate-400"},bB={sm:"px-3 py-1.5 text-xs gap-1.5",md:"px-4 py-2 text-sm gap-2",lg:"px-5 py-2.5 text-base gap-2"};function Yn({children:e,variant:t="primary",size:r="md",icon:n,loading:i,disabled:a,className:o,...s}){return S.jsxs("button",{disabled:a||i,className:Lt("inline-flex items-center justify-center font-medium rounded-lg transition-all duration-150 focus:outline-none focus:ring-2 focus:ring-offset-1 active:scale-[0.97]","disabled:opacity-50 disabled:cursor-not-allowed disabled:active:scale-100",xB[t],bB[r],o),...s,children:[i?S.jsx(Ye.Loader2,{size:16,className:"animate-spin"}):n&&S.jsx(n,{size:16}),e]})}function wB({children:e,className:t,hover:r=!1,interactive:n=!1,...i}){return S.jsx("div",{className:Lt("bg-white rounded-xl shadow-soft border border-slate-100 p-6 transition-all duration-200",r&&"hover:shadow-soft-lg hover:-translate-y-0.5",n&&"cursor-pointer hover:shadow-soft-lg hover:-translate-y-1 hover:border-slate-200 active:translate-y-0 active:shadow-soft",t),...i,children:e})}function _B({children:e,className:t}){return S.jsx("div",{className:Lt("pb-4 mb-4 border-b border-slate-200",t),children:e})}function SB({children:e,className:t}){return S.jsx("div",{className:Lt(t),children:e})}function AB({children:e,className:t}){return S.jsx("h3",{className:Lt("text-lg font-semibold text-slate-900",t),children:e})}const TB={primary:"bg-primary-100 text-primary-700",success:"bg-success-100 text-success-600",warning:"bg-warning-100 text-warning-600",danger:"bg-danger-100 text-danger-600",neutral:"bg-slate-100 text-slate-600"},EB={Active:"success",Approved:"success",Paid:"success",Present:"success",Completed:"success",Published:"primary",Operational:"success",Pending:"warning",Late:"warning",Maintenance:"warning",Draft:"neutral",Rejected:"danger",Absent:"danger",Overdue:"danger",Cancelled:"danger",Inactive:"neutral"};function F0({children:e,variant:t,status:r,className:n}){const i=t||EB[r||e]||"neutral";return S.jsx("span",{className:Lt("inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium transition-colors",TB[i],n),children:e||r})}function fb({items:e,className:t}){return S.jsx("nav",{className:Lt("flex items-center gap-1 text-xs text-slate-500 mb-2",t),children:e.map((r,n)=>S.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&S.jsx(Ye.ChevronRight,{size:12,className:"text-slate-400"}),r.href?S.jsx("a",{href:r.href,className:"hover:text-primary-600 transition-colors duration-150",children:r.label}):S.jsx("span",{className:"text-slate-800 font-medium",children:r.label})]},n))})}function yN({label:e,error:t,icon:r,className:n,...i}){return S.jsxs("div",{className:"space-y-1.5",children:[e&&S.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),S.jsxs("div",{className:"relative",children:[r&&S.jsx(r,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),S.jsx("input",{className:Lt("w-full px-3 py-2 text-sm border border-slate-300 rounded-lg bg-white","placeholder:text-slate-400","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent","transition-all duration-150","hover:border-slate-400",r&&"pl-9",t&&"border-danger-500 focus:ring-danger-500",n),...i})]}),t&&S.jsx("p",{className:"text-xs text-danger-500",children:t})]})}function xN({value:e,onChange:t,placeholder:r="Search...",className:n}){return S.jsx(yN,{icon:Ye.Search,value:e,onChange:i=>t(i.target.value),placeholder:r,className:n})}function OB({label:e,options:t=[],value:r,onChange:n,placeholder:i="Select...",error:a,className:o,...s}){return S.jsxs("div",{className:"space-y-1.5",children:[e&&S.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),S.jsxs("div",{className:"relative",children:[S.jsxs("select",{value:r,onChange:l=>n(l.target.value),className:Lt("w-full px-3 py-2 text-sm border border-slate-300 rounded-lg bg-white appearance-none","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent","transition-all duration-150 hover:border-slate-400",a&&"border-danger-500 focus:ring-danger-500",o),...s,children:[S.jsx("option",{value:"",children:i}),t.map(l=>S.jsx("option",{value:l.value??l,children:l.label??l},l.value??l))]}),S.jsx(Ye.ChevronDown,{size:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),a&&S.jsx("p",{className:"text-xs text-danger-500",children:a})]})}const PB={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl","3xl":"max-w-3xl","4xl":"max-w-4xl",full:"max-w-[90vw]"};function fp({open:e,onClose:t,title:r,children:n,footer:i,size:a="md"}){const o=V.useRef(null),s=V.useRef(null),l=V.useCallback(c=>{var f,d,h;if(c.key==="Escape"&&(c.stopPropagation(),t()),c.key==="Enter"&&i&&o.current){const p=((d=(f=document.activeElement)==null?void 0:f.tagName)==null?void 0:d.toLowerCase())==="textarea",m=((h=document.activeElement)==null?void 0:h.getAttribute("contenteditable"))==="true";if(!p&&!m){const y=o.current.querySelectorAll('.flex.items-center.justify-end button, [class*="justify-end"] button'),x=y.length>0?y[y.length-1]:null;x&&!x.disabled&&(c.preventDefault(),x.click())}}if(c.key==="Tab"&&o.current){const g=o.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');if(g.length===0)return;const p=g[0],m=g[g.length-1];c.shiftKey&&document.activeElement===p?(c.preventDefault(),m.focus()):!c.shiftKey&&document.activeElement===m&&(c.preventDefault(),p.focus())}},[t,i]),u=V.useRef(!1);return V.useEffect(()=>{if(!e){u.current=!1;return}return document.body.style.overflow="hidden",document.addEventListener("keydown",l),()=>{document.body.style.overflow="",document.removeEventListener("keydown",l)}},[e,l]),V.useEffect(()=>{if(!(!e||u.current))return u.current=!0,s.current=document.activeElement,setTimeout(()=>{var f;const c=(f=o.current)==null?void 0:f.querySelectorAll('input, textarea, select, [tabindex]:not([tabindex="-1"])');c!=null&&c.length&&c[0].focus()},50),()=>{var c;(c=s.current)==null||c.focus()}},[e]),e?S.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"presentation",children:[S.jsx("div",{className:"fixed inset-0 bg-black/50 backdrop-blur-[2px] animate-fade-in-up",style:{animationDuration:"0.15s"},onClick:t,"aria-hidden":"true"}),S.jsxs("div",{ref:o,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",className:Lt("relative bg-white rounded-xl shadow-2xl w-full animate-fade-in-up",PB[a]),children:[S.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-200",children:[S.jsx("h2",{id:"modal-title",className:"text-lg font-semibold text-slate-900",children:r}),S.jsx("button",{onClick:t,"aria-label":"Close dialog",className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors duration-150 focus:outline-none focus:ring-2 focus:ring-primary-500",children:S.jsx(Ye.X,{size:16,className:"text-slate-500"})})]}),S.jsx("div",{className:"px-6 py-4",children:n}),i&&S.jsx("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-slate-200",children:i})]})]}):null}function hb({value:e,onChange:t,options:r=[],onSearch:n,placeholder:i="Search...",labelKey:a="label",valueKey:o="value",renderOption:s,loading:l=!1,showSearch:u}){const[c,f]=V.useState(!1),[d,h]=V.useState(""),g=V.useRef(null),p=V.useRef(null),m=u===!0||u!==!1&&r.length>5,y=r.find(O=>O[o]===e);V.useEffect(()=>{const O=A=>{g.current&&!g.current.contains(A.target)&&f(!1)};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[]);const x=O=>{h(O),n&&(clearTimeout(p.current),p.current=setTimeout(()=>n(O),300))},w=O=>{t(O[o]),f(!1),h("")},T=O=>{O.stopPropagation(),t(""),h("")},_=d&&!n?r.filter(O=>(O[a]||"").toLowerCase().includes(d.toLowerCase())):r;return S.jsxs("div",{ref:g,className:"relative",children:[S.jsxs("div",{role:"combobox","aria-expanded":c,"aria-haspopup":"listbox",tabIndex:0,onClick:()=>f(!c),onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),f(!c)),O.key==="Escape"&&f(!1)},className:"w-full min-w-[160px] border border-slate-300 rounded-lg px-3.5 py-2.5 text-sm flex items-center justify-between cursor-pointer hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150",children:[S.jsx("span",{className:y?"text-slate-800":"text-slate-400",children:y?s?s(y):y[a]:i}),S.jsxs("div",{className:"flex items-center gap-1",children:[e&&S.jsx("button",{onClick:T,"aria-label":"Clear selection",className:"p-0.5 hover:bg-slate-100 rounded transition-colors duration-150",children:S.jsx(Ye.X,{size:12,className:"text-slate-400"})}),S.jsx(Ye.ChevronDown,{size:16,className:`text-slate-400 transition-transform duration-150 ${c?"rotate-180":""}`})]})]}),c&&S.jsxs("div",{className:"absolute z-50 mt-1 w-full bg-white border border-slate-200 rounded-xl shadow-soft-lg max-h-60 overflow-hidden animate-fade-in-up",style:{animationDuration:"0.15s"},children:[m&&S.jsx("div",{className:"p-2 border-b border-slate-100",children:S.jsxs("div",{className:"flex items-center gap-2 border border-slate-200 rounded-lg px-2 py-1.5 focus-within:ring-2 focus-within:ring-primary-500 focus-within:border-transparent transition-all duration-150",children:[S.jsx(Ye.Search,{size:14,className:"text-slate-400"}),S.jsx("input",{autoFocus:!0,value:d,onChange:O=>x(O.target.value),onKeyDown:O=>{O.key==="Escape"&&f(!1)},placeholder:"Type to search...",className:"w-full text-sm outline-none","aria-label":"Search options"})]})}),S.jsxs("div",{className:"overflow-y-auto max-h-44",role:"listbox",children:[l&&S.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"Loading..."}),!l&&_.length===0&&S.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"No results found"}),_.map(O=>S.jsx("div",{role:"option","aria-selected":O[o]===e,onClick:()=>w(O),className:`px-3 py-2 text-sm cursor-pointer transition-colors duration-150 ${O[o]===e?"bg-primary-50 text-primary-700 font-medium":"text-slate-700 hover:bg-slate-50"}`,children:s?s(O):O[a]},O[o]))]})]})]})}function NB({columns:e=[],data:t=[],loading:r=!1,emptyMessage:n="No data found",emptyIcon:i,page:a,totalPages:o,totalCount:s,pageSize:l=20,onPageChange:u,onPageSizeChange:c,pageSizeOptions:f=[20,50,100,1e3],filters:d,search:h,onExport:g,exportLabel:p="Export",headerTitle:m,headerCount:y,headerExtra:x,sortConfig:w,onSort:T,onRowClick:_,rowClassName:O,className:A}){const k=u&&o>1,L=d&&d.length>0||h,B=m||g||x;return S.jsxs("div",{className:Lt("bg-white border border-slate-200 rounded-xl transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",A),children:[B&&S.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 border-b border-slate-100",children:[S.jsx("div",{className:"flex items-center gap-2",children:m&&S.jsxs("h3",{className:"text-base font-semibold text-slate-900",children:[m,y!=null&&S.jsxs("span",{className:"ml-1.5 text-sm font-normal text-slate-400",children:["(",y,")"]})]})}),S.jsxs("div",{className:"flex items-center gap-2",children:[g&&S.jsxs("button",{onClick:g,className:"flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-xs font-medium text-slate-600 hover:bg-slate-100 border border-slate-200 transition-colors",children:[S.jsx(Ye.Download,{size:13}),p]}),x]})]}),L&&S.jsx("div",{className:"px-5 pt-4 pb-5 border-b border-slate-100",children:S.jsxs("div",{className:"bg-slate-50 border border-slate-200 rounded-xl px-4 py-4 space-y-3",children:[S.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[S.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500",children:[S.jsx(Ye.Filter,{size:14}),S.jsx("span",{className:"text-xs font-semibold",children:"Filters"})]}),d&&d.map(C=>{var P;return S.jsx("div",{className:"min-w-[170px]",children:S.jsx(hb,{value:C.value,onChange:C.onChange,options:C.options,placeholder:C.placeholder||((P=C.options[0])==null?void 0:P.label)||"Select...",loading:C.loading})},C.key)})]}),h&&S.jsx("div",{className:"w-full",children:S.jsx(xN,{value:h.value,onChange:h.onChange,placeholder:h.placeholder||"Search..."})})]})}),k&&S.jsx("div",{className:"border-b border-slate-100",children:S.jsx(CB,{page:a,totalPages:o,totalCount:s,pageSize:l,onPageChange:u,onPageSizeChange:c,pageSizeOptions:f})}),t.length===0&&!r?S.jsxs("div",{className:"text-center py-12 px-5",children:[i&&S.jsx("div",{className:"w-12 h-12 rounded-full bg-slate-100 flex items-center justify-center mx-auto mb-3",children:S.jsx(i,{size:20,className:"text-slate-400"})}),S.jsx("p",{className:"text-sm text-slate-400",children:n})]}):S.jsxs("div",{className:Lt("overflow-x-auto relative",r&&"min-h-[200px]"),children:[r&&S.jsx("div",{className:"absolute inset-0 bg-white/60 backdrop-blur-[1px] z-10 flex items-center justify-center",children:S.jsxs("div",{className:"flex flex-col items-center gap-3 px-6 py-5 rounded-2xl bg-white/90 shadow-lg border border-slate-100",children:[S.jsxs("div",{className:"relative w-10 h-10",children:[S.jsx("div",{className:"absolute inset-0 border-[3px] border-slate-100 rounded-full"}),S.jsx("div",{className:"absolute inset-0 border-[3px] border-primary-500 border-t-transparent rounded-full animate-spin"})]}),S.jsx("span",{className:"text-xs font-medium text-slate-500 tracking-wide",children:"Fetching data..."})]})}),S.jsxs("table",{className:"w-full text-sm",children:[S.jsx("thead",{children:S.jsx("tr",{className:"bg-slate-50 border-b border-slate-200 text-left",children:e.map(C=>S.jsx("th",{className:Lt("py-2.5 px-4 text-xs font-semibold text-slate-500 uppercase tracking-wider",C.align==="center"&&"text-center",C.align==="right"&&"text-right",C.sortable&&T&&"cursor-pointer select-none hover:text-slate-700",C.width),onClick:C.sortable&&T?()=>T(C.key):void 0,children:S.jsxs("span",{className:"inline-flex items-center gap-1",children:[C.label,C.sortable&&T&&(w==null?void 0:w.key)===C.key&&(w.direction==="asc"?S.jsx(Ye.ChevronUp,{size:12,className:"text-slate-700"}):S.jsx(Ye.ChevronDown,{size:12,className:"text-slate-700"}))]})},C.key))})}),S.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((C,P)=>S.jsx("tr",{className:Lt("hover:bg-primary-50/40 transition-colors duration-150",_&&"cursor-pointer",O&&O(C)),onClick:_?()=>_(C):void 0,children:e.map(M=>S.jsx("td",{className:Lt("py-2.5 px-4",M.align==="center"&&"text-center",M.align==="right"&&"text-right"),children:M.render?M.render(C,P):C[M.key]??""},M.key))},C.id||P))})]})]})]})}function CB({page:e=0,totalPages:t=1,totalCount:r,pageSize:n=20,onPageChange:i,onPageSizeChange:a,pageSizeOptions:o=[20,50,100,1e3]}){const s=e*n+1,l=Math.min((e+1)*n,r||(e+1)*n),u=()=>{const c=[];if(t<=5)for(let f=0;f<t;f++)c.push(f);else{c.push(0),e>2&&c.push("...");const f=Math.max(1,e-1),d=Math.min(t-2,e+1);for(let h=f;h<=d;h++)c.push(h);e<t-3&&c.push("..."),c.push(t-1)}return c};return S.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-t border-slate-100",children:[S.jsxs("div",{className:"flex items-center gap-5",children:[S.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?S.jsxs(S.Fragment,{children:[S.jsxs("span",{className:"text-slate-600 font-semibold",children:[s,"–",l]})," of ",S.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):S.jsxs(S.Fragment,{children:["Page ",S.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",S.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),a&&S.jsx("div",{className:"flex items-center gap-1 bg-slate-50 rounded-lg border border-slate-200 p-0.5",children:o.map(c=>S.jsx("button",{onClick:()=>a(c),className:Lt("px-2.5 py-1 rounded-md text-[11px] font-semibold transition-all duration-150",c===n?"bg-white text-slate-900 shadow-sm border border-slate-200":"text-slate-400 hover:text-slate-600"),children:c},c))})]}),S.jsxs("div",{className:"flex items-center",children:[S.jsx("button",{onClick:()=>i(e-1),disabled:e<=0,className:"w-8 h-8 rounded-l-lg border border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:S.jsx(Ye.ChevronLeft,{size:14,className:"text-slate-500"})}),u().map((c,f)=>c==="..."?S.jsx("span",{className:"w-8 h-8 border-y border-slate-200 flex items-center justify-center text-[10px] text-slate-300",children:"•••"},`e-${f}`):S.jsx("button",{onClick:()=>i(c),className:`w-8 h-8 border-y border-r border-slate-200 flex items-center justify-center text-xs font-semibold transition-all duration-150 ${c===e?"bg-slate-900 text-white border-slate-900 relative z-10 shadow-sm":"text-slate-500 hover:bg-slate-50 hover:text-slate-900"}`,children:c+1},c)),S.jsx("button",{onClick:()=>i(e+1),disabled:e>=t-1,className:"w-8 h-8 rounded-r-lg border border-l-0 border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:S.jsx(Ye.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function jB({items:e,brand:t,user:r,collapsed:n,onToggle:i,onLogout:a,onSettings:o}){const s=Hs.useLocation();e.findIndex(g=>s.pathname.startsWith(g.path)),V.useEffect(()=>{const g=s.pathname,p=e.find(m=>g.startsWith(m.path));if(p)try{const m=JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]"),y=[p.path,...m.filter(x=>x!==p.path)].slice(0,5);sessionStorage.setItem("sidebar-recent",JSON.stringify(y))}catch{}},[s.pathname,e]);const[l,u]=V.useState(!1);V.useEffect(()=>{const g=setTimeout(()=>u(!0),50);return()=>clearTimeout(g)},[]);const c=e.some(g=>g.group),f=c?e.reduce((g,p)=>{const m=p.group||"Other";return g[m]||(g[m]=[]),g[m].push(p),g},{}):null,d=(g,p)=>{const m=g.icon;return S.jsxs(Hs.NavLink,{to:g.path,onClick:()=>navigate(g.path),style:{animationDelay:`${p*50}ms`,animationFillMode:"forwards"},className:({isActive:y})=>Lt("group relative flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors duration-150",n&&"justify-center px-2",y?"text-white bg-primary-500 shadow-lg shadow-primary-500/20 font-semibold":"text-slate-300 hover:bg-white/10 hover:text-white hover:shadow-[0_2px_12px_-2px_rgba(255,255,255,0.1)] hover:translate-x-0.5"),children:[m&&S.jsx(m,{size:20,className:Lt("flex-shrink-0 transition-all duration-200",s.pathname.startsWith(g.path)&&"drop-shadow-[0_0_6px_rgba(255,255,255,0.5)]")}),S.jsx("span",{className:Lt("truncate transition-all duration-200 overflow-hidden whitespace-nowrap",n?"w-0 opacity-0":"w-auto opacity-100"),style:{transitionDelay:n?"0ms":"100ms"},children:g.label}),n&&S.jsx("span",{className:"absolute left-full ml-3 px-2.5 py-1.5 rounded-md bg-slate-900 text-white text-xs font-medium whitespace-nowrap opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 shadow-lg z-50 pointer-events-none",children:g.label})]},g.path)},h=()=>{if(c&&f){let g=0;return Object.entries(f).map(([p,m])=>S.jsxs("div",{children:[!n&&S.jsx("p",{className:"text-[10px] uppercase tracking-wider text-slate-500 px-3 pt-4 pb-1 font-semibold",children:p}),m.map(y=>{const x=g;return g++,d(y,x)})]},p))}return e.map((g,p)=>d(g,p))};return S.jsxs(S.Fragment,{children:[S.jsxs("aside",{className:Lt("fixed left-0 top-0 h-screen bg-gradient-to-b from-slate-900 via-slate-800 to-slate-900 text-white flex flex-col transition-[width] duration-200 z-40 hidden md:flex border-r border-slate-700/30",n?"w-[68px]":"w-60"),children:[S.jsxs("div",{className:"flex items-center justify-between px-4 h-[72px]",children:[!n&&S.jsxs("div",{className:"flex flex-col",children:[S.jsx("span",{className:"text-lg font-bold tracking-tight",children:t}),S.jsx("span",{className:"text-[10px] text-slate-400 font-medium tracking-wide uppercase",children:"Admin Portal"})]}),S.jsx("button",{onClick:i,className:"p-1.5 rounded-lg hover:bg-white/10 transition-all duration-200",children:S.jsx("span",{className:Lt("block transition-transform duration-200",n&&"rotate-180"),children:n?S.jsx(Ye.PanelLeft,{size:18}):S.jsx(Ye.PanelLeftClose,{size:18})})})]}),S.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),r&&S.jsx("div",{className:Lt("px-4 py-4 cursor-pointer hover:bg-white/5 transition-colors duration-150 rounded-lg mx-2",n&&"px-2 py-4 flex justify-center mx-0"),onClick:()=>{o&&o()},children:S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsxs("div",{className:"relative flex-shrink-0",children:[S.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-primary-400 to-primary-600 flex items-center justify-center text-xs font-bold",children:(r.name||"").slice(0,2).toUpperCase()}),S.jsx("span",{className:"absolute bottom-0 right-0 w-3 h-3 bg-emerald-400 border-2 border-slate-900 rounded-full"})]}),!n&&S.jsxs("div",{className:"overflow-hidden",children:[S.jsx("p",{className:"text-sm font-semibold truncate",children:r.name}),S.jsx("p",{className:"text-xs text-slate-400 truncate",children:r.email}),r.role&&S.jsx("span",{className:"inline-block mt-1 px-2 py-0.5 text-[10px] font-medium bg-primary-500/20 text-primary-300 rounded-full",children:r.role})]})]})}),S.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),S.jsx("nav",{className:"relative flex-1 overflow-y-auto py-4 px-2 space-y-1.5",children:h()}),a&&S.jsx("div",{className:"px-2 py-4 mt-2 border-t border-slate-700/30",children:S.jsxs("button",{onClick:a,className:Lt("group relative flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-slate-300 hover:bg-red-500/10 hover:text-red-400 w-full transition-all duration-200",n&&"justify-center px-2"),children:[S.jsx(Ye.LogOut,{size:20}),!n&&S.jsx("span",{children:"Logout"}),n&&S.jsx("span",{className:"absolute left-full ml-3 px-2.5 py-1.5 rounded-md bg-slate-900 text-white text-xs font-medium whitespace-nowrap opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 shadow-lg z-50 pointer-events-none",children:"Logout"})]})})]}),S.jsx(kB,{items:e,onLogout:a})]})}function kB({items:e,onLogout:t}){const[r,n]=V.useState(!1),i=e.slice(0,4),a=e.slice(4);return S.jsxs(S.Fragment,{children:[S.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-40 bg-white border-t border-slate-200 md:hidden",children:S.jsxs("div",{className:"flex items-center justify-around px-2 py-1.5",children:[i.map(o=>{const s=o.icon;return S.jsxs(Hs.NavLink,{to:o.path,className:({isActive:l})=>Lt("flex flex-col items-center gap-0.5 px-2 py-1.5 rounded-lg text-[10px] font-medium transition-colors duration-150 min-w-[48px]",l?"text-primary-600 bg-primary-50":"text-slate-500 hover:text-slate-700"),children:[s&&S.jsx(s,{size:20}),S.jsx("span",{className:"truncate",children:o.label.split(" ")[0]})]},o.path)}),a.length>0&&S.jsxs("button",{onClick:()=>n(!0),className:"flex flex-col items-center gap-0.5 px-2 py-1.5 rounded-lg text-[10px] font-medium text-slate-500 hover:text-slate-700 transition-colors duration-150 min-w-[48px]",children:[S.jsx(Ye.MoreHorizontal,{size:20}),S.jsx("span",{children:"More"})]})]})}),r&&S.jsxs("div",{className:"fixed inset-0 z-50 md:hidden",onClick:()=>n(!1),children:[S.jsx("div",{className:"fixed inset-0 bg-black/40"}),S.jsxs("div",{className:"fixed bottom-0 left-0 right-0 bg-white rounded-t-2xl p-4 animate-fade-in-up",children:[S.jsxs("div",{className:"flex items-center justify-between mb-4",children:[S.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"More Options"}),S.jsx("button",{onClick:()=>n(!1),className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors",children:S.jsx(Ye.X,{size:16,className:"text-slate-500"})})]}),S.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[a.map(o=>{const s=o.icon;return S.jsxs(Hs.NavLink,{to:o.path,onClick:()=>n(!1),className:({isActive:l})=>Lt("flex flex-col items-center gap-1.5 p-3 rounded-xl text-[11px] font-medium transition-all duration-150",l?"text-primary-600 bg-primary-50":"text-slate-600 hover:bg-slate-50"),children:[s&&S.jsx(s,{size:22}),S.jsx("span",{className:"text-center leading-tight",children:o.label})]},o.path)}),t&&S.jsxs("button",{onClick:()=>{n(!1),t()},className:"flex flex-col items-center gap-1.5 p-3 rounded-xl text-[11px] font-medium text-danger-600 hover:bg-danger-50 transition-all duration-150",children:[S.jsx(Ye.LogOut,{size:22}),S.jsx("span",{children:"Logout"})]})]})]})]})]})}function LB({title:e,subtitle:t,school:r,user:n,notificationCount:i=0,onLogout:a,onProfile:o,onSettings:s,onChangePassword:l,navItems:u=[]}){const[c,f]=V.useState(!1),d=V.useRef(null),h=Hs.useNavigate(),g=(()=>{try{return JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]").slice(0,5)}catch{return[]}})();return V.useEffect(()=>{const p=m=>{d.current&&!d.current.contains(m.target)&&f(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),S.jsxs("header",{className:"sticky top-0 z-30 bg-white/95 backdrop-blur-sm border-b border-slate-200 px-4 md:px-6 h-16 flex items-center justify-between",children:[S.jsx("div",{className:"flex-1"}),S.jsxs("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center gap-3",children:[(r==null?void 0:r.logo)&&S.jsx("img",{src:r.logo,alt:r.name||"School",className:"w-9 h-9 rounded-lg object-cover border border-slate-200"}),r!=null&&r.name?S.jsx("h1",{className:"text-lg font-bold text-slate-900",children:r.name}):!r&&e?S.jsxs("div",{children:[S.jsx("h1",{className:"text-lg font-bold text-slate-900",children:e}),t&&S.jsx("p",{className:"text-xs text-slate-500",children:t})]}):null]}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsxs("button",{className:"hidden md:flex items-center gap-2 px-3 py-1.5 text-xs text-slate-400 bg-slate-50 border border-slate-200 rounded-lg hover:border-slate-300 hover:bg-slate-100 transition-all duration-150",children:[S.jsx(Ye.Search,{size:14}),S.jsx("span",{children:"Search..."}),S.jsx("kbd",{className:"ml-4 text-[10px] bg-white border border-slate-200 px-1.5 py-0.5 rounded text-slate-400",children:"⌘K"})]}),S.jsxs("button",{className:"relative p-2 rounded-lg hover:bg-slate-100 transition-colors duration-150",children:[S.jsx(Ye.Bell,{size:20,className:"text-slate-600"}),i>0&&S.jsx("span",{className:"absolute top-1 right-1 w-4 h-4 bg-danger-500 text-white text-[10px] font-bold rounded-full flex items-center justify-center",children:i})]}),n&&S.jsxs("div",{ref:d,className:"relative",children:[S.jsxs("button",{onClick:()=>f(!c),className:"flex items-center gap-2.5 pl-3 border-l border-slate-200 hover:bg-slate-50 rounded-lg py-1.5 pr-2 transition-colors duration-150",children:[S.jsx("div",{className:"w-8 h-8 rounded-full bg-gradient-to-br from-primary-400 to-primary-600 flex items-center justify-center text-xs font-bold text-white",children:(n.name||"").slice(0,2).toUpperCase()}),S.jsxs("div",{className:"hidden sm:block text-left",children:[S.jsx("p",{className:"text-xs font-medium text-slate-900",children:n.name}),S.jsx("p",{className:"text-[10px] text-slate-500 capitalize",children:n.role})]}),S.jsx(Ye.ChevronDown,{size:14,className:`text-slate-400 transition-transform duration-150 ${c?"rotate-180":""}`})]}),c&&S.jsxs("div",{className:"absolute right-0 top-full mt-2 w-56 bg-white border border-slate-200 rounded-xl shadow-soft-lg overflow-hidden animate-fade-in-up",style:{animationDuration:"0.15s"},children:[S.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 bg-slate-50/50",children:[S.jsx("p",{className:"text-sm font-semibold text-slate-900",children:n.name}),S.jsx("p",{className:"text-xs text-slate-500 capitalize",children:n.role})]}),S.jsxs("div",{className:"py-1.5",children:[o&&S.jsxs("button",{onClick:()=>{f(!1),o()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[S.jsx(Ye.User,{size:16,className:"text-slate-400"}),"My Profile"]}),s&&S.jsxs("button",{onClick:()=>{f(!1),s()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[S.jsx(Ye.Settings,{size:16,className:"text-slate-400"}),"Settings"]}),l&&S.jsxs("button",{onClick:()=>{f(!1),l()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-slate-700 hover:bg-slate-50 transition-colors duration-150",children:[S.jsx(Ye.KeyRound,{size:16,className:"text-slate-400"}),"Change Password"]}),g.length>0&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"border-t border-slate-100 my-1"}),S.jsxs("div",{className:"px-4 py-2",children:[S.jsxs("p",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-semibold flex items-center gap-1 mb-1.5",children:[S.jsx(Ye.Clock,{size:10})," Recents"]}),g.map(p=>{const m=u.find(x=>x.path===p);if(!m)return null;const y=m.icon;return S.jsxs("button",{onClick:()=>{f(!1),h(p)},className:"flex items-center gap-2.5 w-full px-2 py-1.5 rounded-lg text-xs text-slate-600 hover:bg-slate-50 hover:text-slate-900 transition-colors duration-150",children:[y&&S.jsx(y,{size:14,className:"text-slate-400"}),m.label]},p)})]})]}),a&&S.jsxs(S.Fragment,{children:[S.jsx("div",{className:"border-t border-slate-100 my-1"}),S.jsxs("button",{onClick:()=>{f(!1),a()},className:"flex items-center gap-3 w-full px-4 py-2.5 text-sm text-red-600 hover:bg-red-50 transition-colors duration-150",children:[S.jsx(Ye.LogOut,{size:16,className:"text-red-400"}),"Logout"]})]})]})]})]})]})]})}function Hn({className:e}){return S.jsx("div",{className:Lt("rounded-lg bg-gradient-to-r from-slate-200 via-slate-100 to-slate-200 bg-[length:200%_100%] animate-shimmer",e)})}function IB(){return S.jsxs("div",{className:"bg-white rounded-xl shadow-soft border border-slate-100 p-6 space-y-3",children:[S.jsx(Hn,{className:"h-4 w-1/3"}),S.jsx(Hn,{className:"h-8 w-1/2"}),S.jsx(Hn,{className:"h-3 w-2/3"})]})}function bN(){return S.jsxs("div",{className:"space-y-6",children:[S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((e,t)=>S.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5 flex items-center gap-4",children:[S.jsx(Hn,{className:"w-11 h-11 rounded-xl"}),S.jsxs("div",{className:"space-y-2 flex-1",children:[S.jsx(Hn,{className:"h-3 w-2/3"}),S.jsx(Hn,{className:"h-6 w-1/2"})]})]},t))}),S.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5",children:[S.jsx(Hn,{className:"h-4 w-1/4 mb-4"}),S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Array.from({length:4}).map((e,t)=>S.jsx(Hn,{className:"h-20 rounded-xl"},t))})]}),S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4",children:[S.jsxs("div",{className:"md:col-span-7 bg-white rounded-xl border border-slate-100 p-5",children:[S.jsx(Hn,{className:"h-4 w-1/4 mb-4"}),S.jsx(Hn,{className:"h-48 w-full"})]}),S.jsxs("div",{className:"md:col-span-5 bg-white rounded-xl border border-slate-100 p-5",children:[S.jsx(Hn,{className:"h-4 w-1/3 mb-4"}),S.jsx(Hn,{className:"h-48 w-full"})]})]})]})}function FB({rows:e=5,cols:t=4}){return S.jsxs("div",{className:"rounded-xl border border-slate-200 overflow-hidden",children:[S.jsx("div",{className:"flex gap-4 px-4 py-3 bg-slate-50 border-b border-slate-200",children:Array.from({length:t}).map((r,n)=>S.jsx(Hn,{className:"h-3 flex-1"},n))}),Array.from({length:e}).map((r,n)=>S.jsx("div",{className:"flex gap-4 px-4 py-3 border-b border-slate-100 last:border-0",children:Array.from({length:t}).map((i,a)=>S.jsx(Hn,{className:"h-3 flex-1"},a))},n))]})}function RB({children:e,user:t,allowedRoles:r,redirectTo:n="/login"}){return t?r&&!r.includes(t.role)?S.jsx(Hs.Navigate,{to:n,replace:!0}):e:S.jsx(Hs.Navigate,{to:n,replace:!0})}function MB({activities:e=[],className:t}){return e.length===0?null:S.jsx("div",{className:Lt("space-y-1",t),children:e.map((r,n)=>S.jsxs("div",{className:"flex items-start gap-3 py-3 border-b border-surface-50 last:border-0",children:[S.jsx("div",{className:Lt("w-8 h-8 rounded flex items-center justify-center flex-shrink-0",r.bgColor||"bg-info-100"),children:r.icon||S.jsx(Ye.Activity,{className:"w-3.5 h-3.5 text-info-600"})}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("p",{className:"text-sm font-medium text-surface-800 truncate",children:r.title}),S.jsx("p",{className:"text-xs text-surface-500",children:r.description})]}),S.jsxs("div",{className:"text-right flex-shrink-0",children:[S.jsx("p",{className:"text-2xs text-surface-400",children:r.time}),r.tag&&S.jsx("span",{className:"inline-block mt-0.5 px-1.5 py-0.5 text-2xs border border-surface-200 text-surface-500 rounded",children:r.tag})]})]},n))})}const wN=V.createContext(null),DB={success:Ye.CheckCircle,error:Ye.AlertCircle,warning:Ye.AlertTriangle,info:Ye.Info},BB={success:"bg-emerald-100 text-emerald-600",error:"bg-red-100 text-red-600",warning:"bg-amber-100 text-amber-600",info:"bg-blue-100 text-blue-600"},$B={success:"border-l-emerald-500",error:"border-l-red-500",warning:"border-l-amber-500",info:"border-l-blue-500"};function qB({id:e,type:t="info",message:r,onRemove:n}){const i=DB[t]||Ye.Info,[a,o]=V.useState(!1),[s,l]=V.useState(100);V.useEffect(()=>{const f=setInterval(()=>{l(h=>h<=0?(clearInterval(f),0):h-1)},50),d=setTimeout(()=>{o(!0),setTimeout(()=>n(e),300)},5e3);return()=>{clearInterval(f),clearTimeout(d)}},[e,n]);const u=()=>{o(!0),setTimeout(()=>n(e),300)};return S.jsxs("div",{className:`flex items-start gap-3 px-4 py-3.5 bg-white border border-slate-200 border-l-4 ${$B[t]} rounded-xl shadow-soft-lg max-w-sm transition-all duration-300 ${a?"opacity-0 translate-x-4":"opacity-100 translate-x-0 animate-slide-in-right"}`,children:[S.jsx("div",{className:`w-8 h-8 rounded-lg ${BB[t]} flex items-center justify-center flex-shrink-0`,children:S.jsx(i,{size:16})}),S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("p",{className:"text-sm font-medium text-slate-900",children:r}),S.jsx("div",{className:"w-full h-0.5 bg-slate-100 rounded-full mt-2 overflow-hidden",children:S.jsx("div",{className:`h-full rounded-full transition-all duration-100 ${t==="success"?"bg-emerald-400":t==="error"?"bg-red-400":t==="warning"?"bg-amber-400":"bg-blue-400"}`,style:{width:`${s}%`}})})]}),S.jsx("button",{onClick:u,className:"shrink-0 p-1 rounded-lg hover:bg-slate-100 transition-colors duration-150 mt-0.5",children:S.jsx(Ye.X,{size:14,className:"text-slate-400"})})]})}function UB({id:e,message:t,onConfirm:r,onUndo:n,timeout:i=5e3,onRemove:a}){const[o,s]=V.useState(i),[l,u]=V.useState(!1),c=V.useRef(!1);V.useEffect(()=>{const d=setInterval(()=>{s(h=>h<=100?(clearInterval(d),c.current||(r(),u(!0),setTimeout(()=>a(e),300)),0):h-100)},100);return()=>clearInterval(d)},[e,r,a,i]);const f=()=>{c.current=!0,n(),u(!0),setTimeout(()=>a(e),300)};return S.jsxs("div",{className:`flex items-center gap-3 px-4 py-3.5 rounded-xl shadow-soft-lg max-w-sm bg-slate-900 text-white transition-all duration-300 ${l?"opacity-0 translate-x-4":"opacity-100 translate-x-0 animate-slide-in-right"}`,children:[S.jsxs("div",{className:"flex-1 min-w-0",children:[S.jsx("p",{className:"text-sm font-medium",children:t}),S.jsx("div",{className:"w-full h-1 bg-slate-700 rounded-full mt-2 overflow-hidden",children:S.jsx("div",{className:"h-full bg-primary-400 rounded-full transition-all duration-100",style:{width:`${o/i*100}%`}})})]}),S.jsx("button",{onClick:f,className:"text-sm font-bold text-primary-400 hover:text-primary-300 transition-colors whitespace-nowrap px-3 py-1.5 bg-slate-800 rounded-lg hover:bg-slate-700",children:"Undo"})]})}function zB({children:e}){const[t,r]=V.useState([]),[n,i]=V.useState([]),a=V.useCallback((c,f="info")=>{const d=Date.now()+Math.random();r(h=>[...h,{id:d,message:c,type:f}])},[]),o=V.useCallback(c=>{r(f=>f.filter(d=>d.id!==c))},[]),s=V.useCallback((c,f,d,h=5e3)=>{const g=Date.now()+Math.random();i(p=>[...p,{id:g,message:c,onConfirm:f,onUndo:d,timeout:h}])},[]),l=V.useCallback(c=>{i(f=>f.filter(d=>d.id!==c))},[]),u=V.useMemo(()=>({success:c=>a(c,"success"),error:c=>a(c,"error"),warning:c=>a(c,"warning"),info:c=>a(c,"info"),undoable:(c,f,d,h)=>s(c,f,d,h)}),[a,s]);return S.jsxs(wN.Provider,{value:u,children:[e,S.jsxs("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-3",children:[t.map(c=>S.jsx(qB,{...c,onRemove:o},c.id)),n.map(c=>S.jsx(UB,{...c,onRemove:l},c.id))]})]})}function WB(){const e=V.useContext(wN);if(!e)throw new Error("useToast must be used within ToastProvider");return e}function HB({open:e,onClose:t,onConfirm:r,title:n="Confirm Delete",message:i="Are you sure you want to delete this? This action cannot be undone.",confirmText:a="Delete",loading:o=!1}){return S.jsxs(fp,{open:e,onClose:t,title:n,size:"sm",children:[S.jsxs("div",{className:"flex flex-col items-center text-center py-2",children:[S.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:S.jsx(Ye.AlertTriangle,{className:"w-6 h-6 text-red-600"})}),S.jsx("p",{className:"text-sm text-slate-600",children:i})]}),S.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[S.jsx(Yn,{variant:"ghost",onClick:t,children:"Cancel"}),S.jsx(Yn,{variant:"primary",onClick:r,disabled:o,className:"!bg-red-600 hover:!bg-red-700",children:o?"Deleting...":a})]})]})}function GB({tabs:e,active:t,onChange:r,className:n}){return S.jsx("div",{className:Lt("flex gap-1 bg-slate-100/80 rounded-xl p-1.5 w-fit overflow-x-auto",n),children:e.map((i,a)=>{const o=t===a,s=typeof i=="string"?i:i.label,l=typeof i=="object"?i.icon:null;return S.jsxs("button",{onClick:()=>r(a),className:Lt("flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium transition-all duration-200 whitespace-nowrap",o?"bg-white text-primary-700 shadow-sm ring-1 ring-slate-200/60 font-semibold":"text-slate-500 hover:text-slate-700 hover:bg-white/50"),children:[l&&S.jsx(l,{size:15,className:o?"text-primary-600":"text-slate-400"}),s,typeof i=="object"&&i.count!=null&&S.jsx("span",{className:Lt("text-[10px] font-bold px-1.5 py-0.5 rounded-full min-w-[18px] text-center",o?"bg-primary-100 text-primary-700":"bg-slate-200 text-slate-500"),children:i.count})]},s)})})}function VB({checked:e,onChange:t,label:r,description:n,disabled:i,className:a}){return S.jsxs("label",{className:Lt("flex items-center gap-3 cursor-pointer group",i&&"opacity-50 cursor-not-allowed",a),children:[S.jsxs("div",{className:"relative",children:[S.jsx("input",{type:"checkbox",checked:e,onChange:t,disabled:i,className:"sr-only peer"}),S.jsx("div",{className:Lt("w-5 h-5 rounded-md border-2 flex items-center justify-center transition-all duration-200","peer-focus-visible:ring-2 peer-focus-visible:ring-primary-500 peer-focus-visible:ring-offset-2","group-hover:border-primary-400","group-active:scale-90",e?"bg-primary-500 border-primary-500 shadow-glow-primary":"border-slate-300 bg-white"),children:e&&S.jsx(Ye.Check,{size:13,className:"text-white",strokeWidth:3})})]}),(r||n)&&S.jsxs("div",{children:[r&&S.jsx("span",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900 transition-colors",children:r}),n&&S.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:n})]})]})}function _N({children:e,className:t}){return S.jsxs("div",{className:Lt("bg-white border border-slate-200 rounded-xl px-4 py-3 mb-6 flex flex-wrap items-center gap-3",t),children:[S.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 mr-1",children:[S.jsx(Ye.Filter,{size:15}),S.jsx("span",{className:"text-xs font-medium hidden sm:inline",children:"Filters"})]}),e]})}_N.Item=function({children:t,className:r}){return S.jsx("div",{className:Lt("min-w-[160px]",r),children:t})};function KB({value:e,onChange:t,label:r,placeholder:n,min:i,max:a,className:o,disabled:s}){return S.jsxs("div",{className:o,children:[r&&S.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:r}),S.jsxs("div",{className:"relative group",children:[S.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-8 h-8 rounded-lg bg-primary-50 flex items-center justify-center transition-all duration-200 group-hover:bg-primary-100 group-focus-within:bg-primary-100 pointer-events-none",children:S.jsx(Ye.Calendar,{size:15,className:"text-primary-500 transition-transform duration-200 group-hover:scale-110"})}),S.jsx("input",{type:"date",value:e||"",onChange:l=>t(l.target.value),min:i,max:a,disabled:s,placeholder:n,className:Lt("w-full min-w-[180px] pl-14 pr-3.5 py-2.5 text-sm font-medium text-slate-800 border border-slate-300 rounded-lg bg-white","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent focus:shadow-glow-primary","transition-all duration-200 hover:border-primary-300 hover:shadow-sm","disabled:opacity-50 disabled:cursor-not-allowed","[&::-webkit-calendar-picker-indicator]:opacity-0 [&::-webkit-calendar-picker-indicator]:absolute [&::-webkit-calendar-picker-indicator]:inset-0 [&::-webkit-calendar-picker-indicator]:w-full [&::-webkit-calendar-picker-indicator]:h-full [&::-webkit-calendar-picker-indicator]:cursor-pointer")})]})]})}function YB({value:e,onChange:t,label:r,className:n,disabled:i}){return S.jsxs("div",{className:n,children:[r&&S.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:r}),S.jsxs("div",{className:"relative",children:[S.jsx(Ye.Clock,{size:15,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"}),S.jsx("input",{type:"time",value:e||"",onChange:a=>t(a.target.value),disabled:i,className:Lt("w-full min-w-[160px] pl-10 pr-3.5 py-2.5 text-sm border border-slate-300 rounded-lg bg-white","focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent","transition-all duration-150 hover:border-slate-400","disabled:opacity-50 disabled:cursor-not-allowed","[&::-webkit-calendar-picker-indicator]:opacity-60 [&::-webkit-calendar-picker-indicator]:cursor-pointer")})]})]})}class XB extends V.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,r){console.error("ErrorBoundary caught:",t,r)}render(){return this.state.hasError?S.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] p-8",children:[S.jsx("div",{className:"w-16 h-16 rounded-full bg-red-50 flex items-center justify-center mb-4",children:S.jsx("svg",{className:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:S.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"})})}),S.jsx("h2",{className:"text-lg font-bold text-slate-900 mb-2",children:"Something went wrong"}),S.jsx("p",{className:"text-sm text-slate-500 text-center mb-4 max-w-md",children:"An unexpected error occurred. Please try refreshing the page."}),S.jsx("button",{onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},className:"px-4 py-2 bg-primary-500 text-white text-sm font-medium rounded-lg hover:bg-primary-700 transition-colors",children:"Retry"})]}):this.props.children}}function JB(){const[e,t]=V.useState(navigator.onLine),[r,n]=V.useState(!1);return V.useEffect(()=>{const i=()=>{t(!0),n(!0),setTimeout(()=>n(!1),3e3)},a=()=>t(!1);return window.addEventListener("online",i),window.addEventListener("offline",a),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}},[]),e&&!r?null:S.jsx("div",{className:`fixed top-0 left-0 right-0 z-[200] flex items-center justify-center py-2 px-4 text-sm font-medium transition-all duration-300 ${e?"bg-emerald-500 text-white":"bg-red-500 text-white"}`,children:e?S.jsxs(S.Fragment,{children:[S.jsx(Ye.Wifi,{size:16,className:"mr-2"})," Back online"]}):S.jsxs(S.Fragment,{children:[S.jsx(Ye.WifiOff,{size:16,className:"mr-2"})," You're offline. Some features may not work."]})})}function ZB({label:e,sortKey:t,sortConfig:r,onSort:n,className:i}){const a=(r==null?void 0:r.key)===t,o=a?r.direction:null;return S.jsxs("button",{onClick:()=>n(t),className:Lt("flex items-center gap-1 text-xs font-semibold text-slate-500 uppercase tracking-wider hover:text-slate-700 transition-colors",i),children:[e,S.jsxs("span",{className:"text-slate-300",children:[!a&&S.jsx(Ye.ChevronsUpDown,{size:12}),o==="asc"&&S.jsx(Ye.ChevronUp,{size:12,className:"text-primary-500"}),o==="desc"&&S.jsx(Ye.ChevronDown,{size:12,className:"text-primary-500"})]})]})}function QB({children:e,content:t,className:r}){const[n,i]=V.useState(!1),[a,o]=V.useState({top:0,left:0}),s=V.useRef(null),l=V.useRef(null),u=()=>{clearTimeout(l.current),l.current=setTimeout(()=>{if(s.current){const f=s.current.getBoundingClientRect();o({top:f.bottom+8,left:Math.min(f.left,window.innerWidth-320)})}i(!0)},400)},c=()=>{clearTimeout(l.current),l.current=setTimeout(()=>i(!1),200)};return S.jsxs(S.Fragment,{children:[S.jsx("span",{ref:s,onMouseEnter:u,onMouseLeave:c,className:Lt("inline-block",r),children:e}),n&&S.jsx("div",{className:"fixed z-[100] w-72 bg-white border border-slate-200 rounded-xl shadow-soft-lg p-4 animate-fade-in-up",style:{top:a.top,left:a.left,animationDuration:"0.15s"},onMouseEnter:()=>clearTimeout(l.current),onMouseLeave:c,children:t})]})}const r_={noData:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("rect",{x:"40",y:"30",width:"120",height:"90",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("rect",{x:"55",y:"50",width:"90",height:"8",rx:"4",fill:"#e2e8f0"}),S.jsx("rect",{x:"55",y:"65",width:"70",height:"8",rx:"4",fill:"#e2e8f0"}),S.jsx("rect",{x:"55",y:"80",width:"50",height:"8",rx:"4",fill:"#e2e8f0"}),S.jsx("circle",{cx:"100",cy:"105",r:"4",fill:"#cbd5e1"}),S.jsx("path",{d:"M85 100 L100 112 L115 100",stroke:"#cbd5e1",strokeWidth:"2",strokeLinecap:"round"})]}),noStudents:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("circle",{cx:"100",cy:"55",r:"25",fill:"#e0f2fe",stroke:"#bae6fd",strokeWidth:"2"}),S.jsx("circle",{cx:"100",cy:"48",r:"10",fill:"#7dd3fc"}),S.jsx("path",{d:"M80 72 Q100 85 120 72",stroke:"#7dd3fc",strokeWidth:"3",fill:"none"}),S.jsx("rect",{x:"60",y:"90",width:"80",height:"40",rx:"6",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("line",{x1:"75",y1:"102",x2:"125",y2:"102",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("line",{x1:"75",y1:"112",x2:"110",y2:"112",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("line",{x1:"75",y1:"122",x2:"95",y2:"122",stroke:"#e2e8f0",strokeWidth:"2"})]}),noResults:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("circle",{cx:"85",cy:"70",r:"30",stroke:"#e2e8f0",strokeWidth:"3",fill:"#f8fafc"}),S.jsx("line",{x1:"107",y1:"92",x2:"130",y2:"115",stroke:"#cbd5e1",strokeWidth:"4",strokeLinecap:"round"}),S.jsx("path",{d:"M75 65 L80 75 L95 60",stroke:"#94a3b8",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}),noSchedule:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("rect",{x:"50",y:"30",width:"100",height:"100",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),S.jsx("rect",{x:"50",y:"30",width:"100",height:"25",rx:"8",fill:"#e0f2fe"}),S.jsx("circle",{cx:"70",cy:"70",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"100",cy:"70",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"130",cy:"70",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"70",cy:"90",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"100",cy:"90",r:"4",fill:"#0ea5e9"}),S.jsx("circle",{cx:"130",cy:"90",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"70",cy:"110",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"100",cy:"110",r:"4",fill:"#cbd5e1"}),S.jsx("circle",{cx:"130",cy:"110",r:"4",fill:"#cbd5e1"})]}),success:S.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[S.jsx("circle",{cx:"100",cy:"75",r:"40",fill:"#dcfce7",stroke:"#86efac",strokeWidth:"2"}),S.jsx("path",{d:"M80 75 L95 90 L120 60",stroke:"#22c55e",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})]})};function e$({type:e="noData",title:t,message:r,action:n,className:i}){return S.jsxs("div",{className:Lt("flex flex-col items-center justify-center py-12 text-center",i),children:[r_[e]||r_.noData,t&&S.jsx("p",{className:"text-base font-semibold text-slate-700 mt-4",children:t}),r&&S.jsx("p",{className:"text-sm text-slate-400 mt-1 max-w-sm",children:r}),n&&S.jsx("div",{className:"mt-4",children:n})]})}function t$({title:e,children:t,className:r}){return S.jsxs("div",{className:Lt("bg-white border border-slate-200 rounded-xl p-5 transition-all duration-200 hover:shadow-sm",r),children:[S.jsxs("h3",{className:"text-sm font-bold text-slate-900 mb-4 flex items-center gap-2",children:[S.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary-500"}),e]}),t]})}function r$({tokenExpiresAt:e,onLogout:t,warningMinutes:r=5}){const[n,i]=V.useState(!1),[a,o]=V.useState(0),s=V.useRef(null);if(V.useEffect(()=>{if(!e)return;const c=()=>{const f=Date.now(),h=(typeof e=="number"?e:new Date(e).getTime())-f,g=r*60*1e3;h<=0?(i(!1),t==null||t()):h<=g?(i(!0),o(Math.ceil(h/1e3))):i(!1)};return c(),s.current=setInterval(c,1e3),()=>clearInterval(s.current)},[e,r,t]),!n)return null;const l=Math.floor(a/60),u=a%60;return S.jsx("div",{className:"fixed bottom-20 right-4 z-[150] bg-amber-50 border border-amber-200 rounded-xl shadow-soft-lg p-4 max-w-sm animate-slide-in-right",children:S.jsxs("div",{className:"flex items-start gap-3",children:[S.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center flex-shrink-0",children:S.jsx(Ye.Clock,{size:16,className:"text-amber-600"})}),S.jsxs("div",{className:"flex-1",children:[S.jsx("p",{className:"text-sm font-semibold text-amber-800",children:"Session Expiring Soon"}),S.jsxs("p",{className:"text-xs text-amber-600 mt-0.5",children:["Your session will expire in ",l,":",u.toString().padStart(2,"0")]}),S.jsxs("div",{className:"flex gap-2 mt-2",children:[S.jsx("button",{onClick:()=>{window.location.reload()},className:"px-3 py-1.5 text-xs font-medium bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors",children:"Stay Logged In"}),S.jsx("button",{onClick:t,className:"px-3 py-1.5 text-xs font-medium text-amber-700 hover:bg-amber-100 rounded-lg transition-colors",children:"Logout Now"})]})]})]})})}const n$=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function g0(e){if(!e)return"";const[t,r]=e.split(":"),n=parseInt(t);return`${n>12?n-12:n}:${r} ${n>=12?"PM":"AM"}`}function i$({periods:e=[],timetable:t={},days:r=n$,editable:n=!1,onSlotClick:i,onEmptyClick:a,onDrop:o}){e.filter(u=>!u.is_break);const s=[...e].sort((u,c)=>(u.start_time||"").localeCompare(c.start_time||"")),l=(u,c)=>{const f=t[c];return f&&f[u]||null};return s.length===0?S.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-8 text-center text-slate-400",children:"No timetable configured yet"}):S.jsx("div",{className:"bg-white border border-slate-200 rounded-xl overflow-auto shadow-soft",children:S.jsxs("div",{className:"grid min-w-[900px]",style:{gridTemplateColumns:`220px repeat(${r.length}, 1fr)`},children:[S.jsx("div",{className:"p-4 bg-gradient-to-br from-slate-50 to-slate-100/80 border-b border-slate-200 flex flex-col justify-center",children:S.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Time / Day"})}),r.map(u=>{const c=new Date().toLocaleDateString("en-US",{weekday:"long"})===u;return S.jsx("div",{className:"p-3 bg-gradient-to-br from-slate-50 to-slate-100/80 border-b border-l border-slate-200 flex items-center justify-center",children:S.jsx("div",{className:`px-4 py-2 rounded-lg text-center ${c?"bg-primary-500 shadow-glow-primary":"bg-white shadow-sm border border-slate-100"}`,children:S.jsx("p",{className:`text-sm font-semibold ${c?"text-white":"text-slate-800"}`,children:u})})},u)}),s.map((u,c)=>{const f=s.filter((d,h)=>h<c&&!d.is_break).length;return u.is_break?S.jsxs("div",{className:"bg-red-50 border-b border-red-100 p-4 flex items-center justify-center gap-3",style:{gridColumn:"1 / -1"},children:[S.jsxs("span",{className:"text-sm font-bold text-red-500",children:["☕ ",u.name||"Break"]}),S.jsxs("span",{className:"text-sm text-red-400",children:["(",g0(u.start_time)," – ",g0(u.end_time),")"]})]},u.id||`break-${c}`):S.jsxs(V.Fragment,{children:[S.jsxs("div",{className:"p-4 border-b border-slate-100 bg-slate-50/50 flex items-center gap-3",children:[S.jsx("span",{className:"w-8 h-8 rounded-lg bg-primary-100 text-primary-700 flex items-center justify-center text-xs font-bold flex-shrink-0",children:f+1}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-bold text-slate-900",children:u.name||`Period ${f+1}`}),S.jsxs("p",{className:"text-xs font-medium text-slate-600",children:[g0(u.start_time)," – ",g0(u.end_time)]})]})]}),r.map(d=>{const h=l(f,d);return S.jsx("div",{className:"p-1.5 border-b border-l border-slate-100 flex items-center justify-center min-h-[90px]",children:h?S.jsxs("div",{className:`w-full p-3 bg-blue-100 border border-blue-200 rounded-lg ${i?"cursor-pointer hover:shadow-md hover:border-blue-300":""} transition-all duration-200`,onClick:()=>i&&i(f,d,h),children:[S.jsx("p",{className:"text-sm font-bold text-slate-900",children:h.subject||""}),S.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:h.teacher_name||h.teacher||""}),(h.slot_type||h.type)&&(h.slot_type||h.type)!=="class"&&S.jsx("span",{className:"inline-block mt-1 text-[10px] px-1.5 py-0.5 rounded bg-slate-200 text-slate-600",children:h.slot_type||h.type})]}):n?S.jsx("div",{onClick:()=>a&&a(f,d),onDragOver:g=>{g.preventDefault(),g.currentTarget.classList.add("border-primary-400","bg-primary-50")},onDragLeave:g=>{g.currentTarget.classList.remove("border-primary-400","bg-primary-50")},onDrop:g=>{if(g.preventDefault(),g.currentTarget.classList.remove("border-primary-400","bg-primary-50"),o)try{const p=JSON.parse(g.dataTransfer.getData("application/json"));o(f,d,p)}catch{}},className:"w-full h-full min-h-[70px] border-2 border-dashed border-slate-200 rounded-lg flex items-center justify-center cursor-pointer hover:border-primary-400 hover:bg-blue-50/40 transition-all duration-200",children:S.jsx("span",{className:"text-xs text-slate-400 font-medium",children:"+ Add"})}):S.jsx("div",{className:"w-full h-full min-h-[70px] flex items-center justify-center",children:S.jsx("span",{className:"text-xs text-slate-300",children:"—"})})},`${u.id||c}-${d}`)})]},u.id||`period-${c}`)})]})})}function a$({page:e=0,totalPages:t=1,totalCount:r,pageSize:n=20,onPageChange:i}){if(t<=1)return null;const a=e*n+1,o=Math.min((e+1)*n,r||(e+1)*n),s=()=>{const l=[];if(t<=5)for(let u=0;u<t;u++)l.push(u);else{l.push(0),e>2&&l.push("...");const u=Math.max(1,e-1),c=Math.min(t-2,e+1);for(let f=u;f<=c;f++)l.push(f);e<t-3&&l.push("..."),l.push(t-1)}return l};return S.jsxs("div",{className:"flex items-center justify-between py-2.5",children:[S.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?S.jsxs(S.Fragment,{children:[S.jsxs("span",{className:"text-slate-600 font-semibold",children:[a,"–",o]})," of ",S.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):S.jsxs(S.Fragment,{children:["Page ",S.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",S.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),S.jsxs("div",{className:"flex items-center",children:[S.jsx("button",{onClick:()=>i(e-1),disabled:e<=0,className:"w-8 h-8 rounded-l-lg border border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:S.jsx(Ye.ChevronLeft,{size:14,className:"text-slate-500"})}),s().map((l,u)=>l==="..."?S.jsx("span",{className:"w-8 h-8 border-y border-slate-200 flex items-center justify-center text-[10px] text-slate-300",children:"•••"},`e-${u}`):S.jsx("button",{onClick:()=>i(l),className:`w-8 h-8 border-y border-r border-slate-200 flex items-center justify-center text-xs font-semibold transition-all duration-150 ${l===e?"bg-slate-900 text-white border-slate-900 relative z-10 shadow-sm":"text-slate-500 hover:bg-slate-50 hover:text-slate-900"} `,children:l+1},l)),S.jsx("button",{onClick:()=>i(e+1),disabled:e>=t-1,className:"w-8 h-8 rounded-r-lg border border-l-0 border-slate-200 flex items-center justify-center hover:bg-slate-50 disabled:opacity-30 disabled:hover:bg-transparent transition-colors",children:S.jsx(Ye.ChevronRight,{size:14,className:"text-slate-500"})})]})]})}function o$({title:e="Portal",subtitle:t="Sign in to your account",icon:r,gradientFrom:n="from-indigo-500",gradientTo:i="to-purple-700",accentColor:a="indigo",buttonColor:o="bg-teal-600 hover:bg-teal-700 shadow-teal-500/20 hover:shadow-teal-500/30",onSubmit:s,loading:l=!1,error:u=null,supportEmail:c="support@theinquisitive.in"}){const[f,d]=V.useState(""),[h,g]=V.useState(""),[p,m]=V.useState(!1),[y,x]=V.useState(""),[w,T]=V.useState(""),_=O=>{if(O.preventDefault(),x(""),T(""),!f){x("Email is required");return}if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f)){x("Invalid email");return}if(!h){T("Password is required");return}s({email:f,password:h})};return S.jsxs("div",{className:`min-h-screen flex items-center justify-center bg-gradient-to-br ${n} ${i} relative overflow-hidden`,children:[S.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[S.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 rounded-full bg-white/5"}),S.jsx("div",{className:"absolute -bottom-32 -left-32 w-64 h-64 rounded-full bg-white/5"})]}),S.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl p-8 w-full max-w-[420px] text-center mx-4",children:[r&&S.jsx("div",{className:`w-14 h-14 rounded-xl bg-gradient-to-br from-${a}-50 to-${a}-100 flex items-center justify-center mx-auto mb-5 shadow-sm`,children:S.jsx(r,{className:`w-7 h-7 text-${a}-600`})}),S.jsx("h1",{className:"text-xl font-bold text-slate-800 mb-0.5",children:e}),S.jsx("p",{className:"text-sm text-slate-400 mb-6",children:t}),u&&S.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 text-sm rounded-lg p-3 mb-4 text-left",children:u}),S.jsxs("form",{onSubmit:_,className:"space-y-4",children:[S.jsxs("div",{children:[S.jsxs("div",{className:"relative",children:[S.jsx(Ye.Mail,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),S.jsx("input",{type:"email",placeholder:"Email Address",value:f,onChange:O=>{d(O.target.value),x("")},className:`w-full pl-10 pr-4 py-2.5 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-${a}-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${y?"border-red-400":"border-slate-300"}`})]}),y&&S.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:y})]}),S.jsxs("div",{children:[S.jsxs("div",{className:"relative",children:[S.jsx(Ye.Lock,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),S.jsx("input",{type:p?"text":"password",placeholder:"Password",value:h,onChange:O=>{g(O.target.value),T("")},className:`w-full pl-10 pr-10 py-2.5 border rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-${a}-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${w?"border-red-400":"border-slate-300"}`}),S.jsx("button",{type:"button",onClick:()=>m(!p),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",children:p?S.jsx(Ye.EyeOff,{className:"w-4 h-4"}):S.jsx(Ye.Eye,{className:"w-4 h-4"})})]}),w&&S.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:w})]}),S.jsx("button",{type:"submit",disabled:l,className:`w-full py-3 ${o} text-white font-semibold rounded-xl disabled:opacity-50 transition-all duration-150 active:scale-[0.97] shadow-lg`,children:l?"Signing in...":"Sign In"})]}),S.jsx("div",{className:"mt-6 pt-5 border-t border-slate-100",children:S.jsxs("p",{className:"text-xs text-slate-400",children:["Having technical issues?"," ",S.jsx("a",{href:`mailto:${c}`,className:`text-${a}-500 hover:underline font-medium`,children:"Contact support"})]})})]})]})}function s$({open:e,onClose:t,onSubmit:r,loading:n,error:i}){const[a,o]=V.useState({current_password:"",new_password:"",confirm_password:""}),[s,l]=V.useState(!1),[u,c]=V.useState(!1),[f,d]=V.useState(!1),[h,g]=V.useState({}),p=()=>{const x={};return a.current_password||(x.current_password="Current password is required"),a.new_password?a.new_password.length<6&&(x.new_password="Password must be at least 6 characters"):x.new_password="New password is required",a.confirm_password?a.new_password!==a.confirm_password&&(x.confirm_password="Passwords do not match"):x.confirm_password="Please confirm your new password",x},m=()=>{const x=p();g(x),!(Object.keys(x).length>0)&&r(a)},y=()=>{o({current_password:"",new_password:"",confirm_password:""}),g({}),l(!1),c(!1),d(!1),t()};return S.jsxs(fp,{open:e,onClose:y,title:"Change Password",size:"sm",children:[S.jsxs("div",{className:"space-y-4",children:[i&&S.jsx("div",{className:"p-3 rounded-lg bg-red-50 border border-red-200",children:S.jsx("p",{className:"text-sm text-red-600",children:i})}),S.jsxs("div",{className:"space-y-1.5",children:[S.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Current Password"}),S.jsxs("div",{className:"relative",children:[S.jsx(Ye.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),S.jsx("input",{type:s?"text":"password",value:a.current_password,onChange:x=>o({...a,current_password:x.target.value}),placeholder:"Enter current password",className:`w-full pl-9 pr-10 py-2 text-sm border rounded-lg bg-white placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${h.current_password?"border-red-400":"border-slate-300"}`}),S.jsx("button",{type:"button",onClick:()=>l(!s),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:s?S.jsx(Ye.EyeOff,{size:16}):S.jsx(Ye.Eye,{size:16})})]}),h.current_password&&S.jsx("p",{className:"text-xs text-red-500",children:h.current_password})]}),S.jsxs("div",{className:"space-y-1.5",children:[S.jsx("label",{className:"text-sm font-medium text-slate-700",children:"New Password"}),S.jsxs("div",{className:"relative",children:[S.jsx(Ye.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),S.jsx("input",{type:u?"text":"password",value:a.new_password,onChange:x=>o({...a,new_password:x.target.value}),placeholder:"Enter new password (min 6 characters)",className:`w-full pl-9 pr-10 py-2 text-sm border rounded-lg bg-white placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${h.new_password?"border-red-400":"border-slate-300"}`}),S.jsx("button",{type:"button",onClick:()=>c(!u),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:u?S.jsx(Ye.EyeOff,{size:16}):S.jsx(Ye.Eye,{size:16})})]}),h.new_password&&S.jsx("p",{className:"text-xs text-red-500",children:h.new_password})]}),S.jsxs("div",{className:"space-y-1.5",children:[S.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Confirm New Password"}),S.jsxs("div",{className:"relative",children:[S.jsx(Ye.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),S.jsx("input",{type:f?"text":"password",value:a.confirm_password,onChange:x=>o({...a,confirm_password:x.target.value}),placeholder:"Confirm new password",className:`w-full pl-9 pr-10 py-2 text-sm border rounded-lg bg-white placeholder:text-slate-400 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400 ${h.confirm_password?"border-red-400":"border-slate-300"}`}),S.jsx("button",{type:"button",onClick:()=>d(!f),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:f?S.jsx(Ye.EyeOff,{size:16}):S.jsx(Ye.Eye,{size:16})})]}),h.confirm_password&&S.jsx("p",{className:"text-xs text-red-500",children:h.confirm_password})]})]}),S.jsxs("div",{className:"flex justify-end gap-2 mt-6 pt-4 border-t border-slate-100",children:[S.jsx(Yn,{variant:"ghost",onClick:y,disabled:n,children:"Cancel"}),S.jsx(Yn,{onClick:m,loading:n,icon:Ye.Lock,children:"Change Password"})]})]})}function l$({open:e,onClose:t,onSubmit:r,loading:n=!1,userName:i=""}){const[a,o]=V.useState(""),[s,l]=V.useState(!1),[u,c]=V.useState(!1),[f,d]=V.useState(""),h=()=>{if(!a||a.length<6){d("Password must be at least 6 characters");return}d(""),r(a)},g=()=>{navigator.clipboard.writeText(a),c(!0),setTimeout(()=>c(!1),2e3)},p=()=>{o(""),l(!1),c(!1),d(""),t()};return S.jsxs(fp,{open:e,onClose:p,title:"Reset Password",size:"sm",children:[S.jsxs("div",{className:"space-y-4",children:[S.jsxs("div",{className:"flex items-center gap-3 p-3 bg-amber-50 border border-amber-200 rounded-xl",children:[S.jsx("div",{className:"w-9 h-9 rounded-lg bg-amber-100 flex items-center justify-center shrink-0",children:S.jsx(Ye.Key,{size:16,className:"text-amber-600"})}),S.jsxs("div",{children:[S.jsxs("p",{className:"text-sm font-medium text-amber-900",children:["Reset password",i?` for ${i}`:""]}),S.jsx("p",{className:"text-xs text-amber-700 mt-0.5",children:"The user will need to use this new password to log in."})]})]}),S.jsxs("div",{children:[S.jsx("label",{className:"text-sm font-medium text-slate-700 mb-1.5 block",children:"New Password"}),S.jsxs("div",{className:"relative",children:[S.jsx("input",{type:s?"text":"password",value:a,onChange:m=>{o(m.target.value),d("")},placeholder:"Enter new password (min 6 chars)",className:"w-full border border-slate-300 rounded-lg px-3 py-2.5 pr-20 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent hover:border-slate-400 transition-colors"}),S.jsxs("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:[S.jsx("button",{onClick:()=>l(!s),className:"p-1.5 rounded-md text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",type:"button",children:s?S.jsx(Ye.EyeOff,{size:14}):S.jsx(Ye.Eye,{size:14})}),S.jsx("button",{onClick:g,className:"p-1.5 rounded-md text-slate-400 hover:text-slate-600 hover:bg-slate-100 transition-colors",type:"button",children:u?S.jsx(Ye.Check,{size:14,className:"text-emerald-500"}):S.jsx(Ye.Copy,{size:14})})]})]}),f&&S.jsx("p",{className:"text-xs text-red-500 mt-1",children:f}),S.jsx("p",{className:"text-[11px] text-slate-400 mt-1.5",children:"Minimum 6 characters. The user should change this after logging in."})]})]}),S.jsxs("div",{className:"flex justify-end gap-2 mt-5 pt-4 border-t border-slate-100",children:[S.jsx(Yn,{variant:"ghost",onClick:p,children:"Cancel"}),S.jsx(Yn,{onClick:h,loading:n,disabled:!a||a.length<6,children:"Reset Password"})]})]})}function u$({name:e,subtitle:t,avatarInitials:r,badges:n=[],extra:i}){const a={primary:"bg-indigo-50 text-indigo-600",success:"bg-green-100 text-green-600",warning:"bg-amber-100 text-amber-700",info:"bg-sky-100 text-sky-600"};return S.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:S.jsxs("div",{className:"flex justify-between items-start",children:[S.jsxs("div",{className:"flex gap-4 items-center",children:[S.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xl font-bold shadow-sm",children:r||(e||"").slice(0,2).toUpperCase()}),S.jsxs("div",{children:[S.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[S.jsx("h2",{className:"text-xl font-bold text-slate-900",children:e}),n.map((o,s)=>S.jsx("span",{className:`text-xs font-semibold px-2.5 py-0.5 rounded-full ${a[o.variant]||a.primary}`,children:o.label},s))]}),t&&S.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:t})]})]}),i&&S.jsx("div",{className:"flex-shrink-0",children:i})]})})}function c$({title:e,titleIcon:t,titleIconColor:r,titleIconBg:n,items:i=[],columns:a=2}){const o=a===3?"grid grid-cols-1 md:grid-cols-3 gap-4":"grid grid-cols-1 md:grid-cols-2 gap-4";return S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[e&&S.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t&&S.jsx("div",{className:`w-7 h-7 rounded-lg ${n||"bg-gradient-to-br from-slate-50 to-slate-100"} flex items-center justify-center`,children:S.jsx(t,{className:`w-3.5 h-3.5 ${r||"text-slate-600"}`})}),S.jsx("h3",{className:"text-sm font-bold text-slate-900",children:e})]}),S.jsx("div",{className:o,children:i.map((s,l)=>S.jsxs("div",{className:"flex items-center gap-3 p-3 bg-gradient-to-br from-slate-50 to-slate-100 rounded-xl transition-all duration-150 hover:bg-slate-100",children:[s.icon&&S.jsx("div",{className:"w-9 h-9 rounded-lg bg-white border border-slate-200 flex items-center justify-center flex-shrink-0",children:S.jsx(s.icon,{className:"w-4 h-4 text-slate-500"})}),S.jsxs("div",{children:[S.jsx("p",{className:"text-[11px] text-slate-400",children:s.label}),S.jsx("p",{className:"text-sm font-medium text-slate-900",children:s.value||"N/A"})]})]},l))})]})}var G1,n_;function hi(){if(n_)return G1;n_=1;var e=Array.isArray;return G1=e,G1}var V1,i_;function SN(){if(i_)return V1;i_=1;var e=typeof Hl=="object"&&Hl&&Hl.Object===Object&&Hl;return V1=e,V1}var K1,a_;function za(){if(a_)return K1;a_=1;var e=SN(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return K1=r,K1}var Y1,o_;function ih(){if(o_)return Y1;o_=1;var e=za(),t=e.Symbol;return Y1=t,Y1}var X1,s_;function f$(){if(s_)return X1;s_=1;var e=ih(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),l=o[i];try{o[i]=void 0;var u=!0}catch{}var c=n.call(o);return u&&(s?o[i]=l:delete o[i]),c}return X1=a,X1}var J1,l_;function h$(){if(l_)return J1;l_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return J1=r,J1}var Z1,u_;function To(){if(u_)return Z1;u_=1;var e=ih(),t=f$(),r=h$(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return Z1=o,Z1}var Q1,c_;function Eo(){if(c_)return Q1;c_=1;function e(t){return t!=null&&typeof t=="object"}return Q1=e,Q1}var ev,f_;function Uu(){if(f_)return ev;f_=1;var e=To(),t=Eo(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return ev=n,ev}var tv,h_;function db(){if(h_)return tv;h_=1;var e=hi(),t=Uu(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return tv=i,tv}var rv,d_;function cs(){if(d_)return rv;d_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return rv=e,rv}var nv,p_;function pb(){if(p_)return nv;p_=1;var e=To(),t=cs(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==i||l==r||l==a}return nv=o,nv}var iv,v_;function d$(){if(v_)return iv;v_=1;var e=za(),t=e["__core-js_shared__"];return iv=t,iv}var av,m_;function p$(){if(m_)return av;m_=1;var e=d$(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return av=r,av}var ov,g_;function AN(){if(g_)return ov;g_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return ov=r,ov}var sv,y_;function v$(){if(y_)return sv;y_=1;var e=pb(),t=p$(),r=cs(),n=AN(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,u=s.hasOwnProperty,c=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?c:a;return h.test(n(d))}return sv=f,sv}var lv,x_;function m$(){if(x_)return lv;x_=1;function e(t,r){return t==null?void 0:t[r]}return lv=e,lv}var uv,b_;function il(){if(b_)return uv;b_=1;var e=v$(),t=m$();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return uv=r,uv}var cv,w_;function hp(){if(w_)return cv;w_=1;var e=il(),t=e(Object,"create");return cv=t,cv}var fv,__;function g$(){if(__)return fv;__=1;var e=hp();function t(){this.__data__=e?e(null):{},this.size=0}return fv=t,fv}var hv,S_;function y$(){if(S_)return hv;S_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return hv=e,hv}var dv,A_;function x$(){if(A_)return dv;A_=1;var e=hp(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return dv=i,dv}var pv,T_;function b$(){if(T_)return pv;T_=1;var e=hp(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return pv=n,pv}var vv,E_;function w$(){if(E_)return vv;E_=1;var e=hp(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return vv=r,vv}var mv,O_;function _$(){if(O_)return mv;O_=1;var e=g$(),t=y$(),r=x$(),n=b$(),i=w$();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,mv=a,mv}var gv,P_;function S$(){if(P_)return gv;P_=1;function e(){this.__data__=[],this.size=0}return gv=e,gv}var yv,N_;function vb(){if(N_)return yv;N_=1;function e(t,r){return t===r||t!==t&&r!==r}return yv=e,yv}var xv,C_;function dp(){if(C_)return xv;C_=1;var e=vb();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return xv=t,xv}var bv,j_;function A$(){if(j_)return bv;j_=1;var e=dp(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return bv=n,bv}var wv,k_;function T$(){if(k_)return wv;k_=1;var e=dp();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return wv=t,wv}var _v,L_;function E$(){if(L_)return _v;L_=1;var e=dp();function t(r){return e(this.__data__,r)>-1}return _v=t,_v}var Sv,I_;function O$(){if(I_)return Sv;I_=1;var e=dp();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Sv=t,Sv}var Av,F_;function pp(){if(F_)return Av;F_=1;var e=S$(),t=A$(),r=T$(),n=E$(),i=O$();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Av=a,Av}var Tv,R_;function mb(){if(R_)return Tv;R_=1;var e=il(),t=za(),r=e(t,"Map");return Tv=r,Tv}var Ev,M_;function P$(){if(M_)return Ev;M_=1;var e=_$(),t=pp(),r=mb();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ev=n,Ev}var Ov,D_;function N$(){if(D_)return Ov;D_=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Ov=e,Ov}var Pv,B_;function vp(){if(B_)return Pv;B_=1;var e=N$();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Pv=t,Pv}var Nv,$_;function C$(){if($_)return Nv;$_=1;var e=vp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Nv=t,Nv}var Cv,q_;function j$(){if(q_)return Cv;q_=1;var e=vp();function t(r){return e(this,r).get(r)}return Cv=t,Cv}var jv,U_;function k$(){if(U_)return jv;U_=1;var e=vp();function t(r){return e(this,r).has(r)}return jv=t,jv}var kv,z_;function L$(){if(z_)return kv;z_=1;var e=vp();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return kv=t,kv}var Lv,W_;function gb(){if(W_)return Lv;W_=1;var e=P$(),t=C$(),r=j$(),n=k$(),i=L$();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Lv=a,Lv}var Iv,H_;function TN(){if(H_)return Iv;H_=1;var e=gb(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var u=n.apply(this,o);return a.cache=l.set(s,u)||l,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Iv=r,Iv}var Fv,G_;function I$(){if(G_)return Fv;G_=1;var e=TN(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Fv=r,Fv}var Rv,V_;function F$(){if(V_)return Rv;V_=1;var e=I$(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,u){a.push(l?u.replace(r,"$1"):s||o)}),a});return Rv=n,Rv}var Mv,K_;function yb(){if(K_)return Mv;K_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Mv=e,Mv}var Dv,Y_;function R$(){if(Y_)return Dv;Y_=1;var e=ih(),t=yb(),r=hi(),n=Uu(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return Dv=o,Dv}var Bv,X_;function EN(){if(X_)return Bv;X_=1;var e=R$();function t(r){return r==null?"":e(r)}return Bv=t,Bv}var $v,J_;function ON(){if(J_)return $v;J_=1;var e=hi(),t=db(),r=F$(),n=EN();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return $v=i,$v}var qv,Z_;function mp(){if(Z_)return qv;Z_=1;var e=Uu();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return qv=t,qv}var Uv,Q_;function xb(){if(Q_)return Uv;Q_=1;var e=ON(),t=mp();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Uv=r,Uv}var zv,e4;function PN(){if(e4)return zv;e4=1;var e=xb();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return zv=t,zv}var M$=PN();const Vi=ar(M$);var Wv,t4;function D$(){if(t4)return Wv;t4=1;function e(t){return t==null}return Wv=e,Wv}var B$=D$();const Dt=ar(B$);var Hv,r4;function $$(){if(r4)return Hv;r4=1;var e=To(),t=hi(),r=Eo(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Hv=i,Hv}var q$=$$();const Ys=ar(q$);var U$=pb();const Tt=ar(U$);var z$=cs();const zu=ar(z$);var y0={exports:{}},Zt={};/**
348
+ * @license React
349
+ * react-is.production.min.js
350
+ *
351
+ * Copyright (c) Facebook, Inc. and its affiliates.
352
+ *
353
+ * This source code is licensed under the MIT license found in the
354
+ * LICENSE file in the root directory of this source tree.
355
+ */var n4;function W$(){if(n4)return Zt;n4=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function p(m){if(typeof m=="object"&&m!==null){var y=m.$$typeof;switch(y){case e:switch(m=m.type,m){case r:case i:case n:case u:case c:return m;default:switch(m=m&&m.$$typeof,m){case s:case o:case l:case d:case f:case a:return m;default:return y}}case t:return y}}}return Zt.ContextConsumer=o,Zt.ContextProvider=a,Zt.Element=e,Zt.ForwardRef=l,Zt.Fragment=r,Zt.Lazy=d,Zt.Memo=f,Zt.Portal=t,Zt.Profiler=i,Zt.StrictMode=n,Zt.Suspense=u,Zt.SuspenseList=c,Zt.isAsyncMode=function(){return!1},Zt.isConcurrentMode=function(){return!1},Zt.isContextConsumer=function(m){return p(m)===o},Zt.isContextProvider=function(m){return p(m)===a},Zt.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Zt.isForwardRef=function(m){return p(m)===l},Zt.isFragment=function(m){return p(m)===r},Zt.isLazy=function(m){return p(m)===d},Zt.isMemo=function(m){return p(m)===f},Zt.isPortal=function(m){return p(m)===t},Zt.isProfiler=function(m){return p(m)===i},Zt.isStrictMode=function(m){return p(m)===n},Zt.isSuspense=function(m){return p(m)===u},Zt.isSuspenseList=function(m){return p(m)===c},Zt.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===i||m===n||m===u||m===c||m===h||typeof m=="object"&&m!==null&&(m.$$typeof===d||m.$$typeof===f||m.$$typeof===a||m.$$typeof===o||m.$$typeof===l||m.$$typeof===g||m.getModuleId!==void 0)},Zt.typeOf=p,Zt}var Qt={};/**
356
+ * @license React
357
+ * react-is.development.js
358
+ *
359
+ * Copyright (c) Facebook, Inc. and its affiliates.
360
+ *
361
+ * This source code is licensed under the MIT license found in the
362
+ * LICENSE file in the root directory of this source tree.
363
+ */var i4;function H$(){return i4||(i4=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,p=!1,m=!1,y=!1,x=!1,w;w=Symbol.for("react.module.reference");function T(ge){return!!(typeof ge=="string"||typeof ge=="function"||ge===r||ge===i||x||ge===n||ge===u||ge===c||y||ge===h||g||p||m||typeof ge=="object"&&ge!==null&&(ge.$$typeof===d||ge.$$typeof===f||ge.$$typeof===a||ge.$$typeof===o||ge.$$typeof===l||ge.$$typeof===w||ge.getModuleId!==void 0))}function _(ge){if(typeof ge=="object"&&ge!==null){var _e=ge.$$typeof;switch(_e){case e:var oe=ge.type;switch(oe){case r:case i:case n:case u:case c:return oe;default:var Re=oe&&oe.$$typeof;switch(Re){case s:case o:case l:case d:case f:case a:return Re;default:return _e}}case t:return _e}}}var O=o,A=a,k=e,L=l,B=r,C=d,P=f,M=t,q=i,J=n,U=u,H=c,ee=!1,Z=!1;function Q(ge){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function le(ge){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(ge){return _(ge)===o}function I(ge){return _(ge)===a}function R(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function D(ge){return _(ge)===l}function G(ge){return _(ge)===r}function ce(ge){return _(ge)===d}function he(ge){return _(ge)===f}function ne(ge){return _(ge)===t}function me(ge){return _(ge)===i}function Se(ge){return _(ge)===n}function ue(ge){return _(ge)===u}function Ie(ge){return _(ge)===c}Qt.ContextConsumer=O,Qt.ContextProvider=A,Qt.Element=k,Qt.ForwardRef=L,Qt.Fragment=B,Qt.Lazy=C,Qt.Memo=P,Qt.Portal=M,Qt.Profiler=q,Qt.StrictMode=J,Qt.Suspense=U,Qt.SuspenseList=H,Qt.isAsyncMode=Q,Qt.isConcurrentMode=le,Qt.isContextConsumer=N,Qt.isContextProvider=I,Qt.isElement=R,Qt.isForwardRef=D,Qt.isFragment=G,Qt.isLazy=ce,Qt.isMemo=he,Qt.isPortal=ne,Qt.isProfiler=me,Qt.isStrictMode=Se,Qt.isSuspense=ue,Qt.isSuspenseList=Ie,Qt.isValidElementType=T,Qt.typeOf=_})()),Qt}var a4;function G$(){return a4||(a4=1,process.env.NODE_ENV==="production"?y0.exports=W$():y0.exports=H$()),y0.exports}var V$=G$(),Gv,o4;function NN(){if(o4)return Gv;o4=1;var e=To(),t=Eo(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Gv=n,Gv}var Vv,s4;function K$(){if(s4)return Vv;s4=1;var e=NN();function t(r){return e(r)&&r!=+r}return Vv=t,Vv}var Y$=K$();const ah=ar(Y$);var X$=NN();const J$=ar(X$);var ya=function(t){return t===0?0:t>0?1:-1},Ls=function(t){return Ys(t)&&t.indexOf("%")===t.length-1},rt=function(t){return J$(t)&&!ah(t)},Z$=function(t){return Dt(t)},un=function(t){return rt(t)||Ys(t)},Q$=0,oh=function(t){var r=++Q$;return"".concat(t||"").concat(r)},xa=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!rt(t)&&!Ys(t))return n;var a;if(Ls(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return ah(a)&&(a=n),i&&a>r&&(a=r),a},Yo=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},eq=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Kn=function(t,r){return rt(t)&&rt(r)?function(n){return t+n*(r-t)}:function(){return r}};function Z0(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Vi(n,t))===r})}var tq=function(t,r){return rt(t)&&rt(r)?t-r:Ys(t)&&Ys(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function nu(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function g2(e){"@babel/helpers - typeof";return g2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g2(e)}var rq=["viewBox","children"],nq=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],l4=["points","pathLength"],Kv={svg:rq,polygon:l4,polyline:l4},bb=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Q0=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(V.isValidElement(t)&&(n=t.props),!zu(n))return null;var i={};return Object.keys(n).forEach(function(a){bb.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},iq=function(t,r,n){return function(i){return t(r,n,i),null}},su=function(t,r,n){if(!zu(t)||g2(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];bb.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=iq(o,r,n))}),i},aq=["children"],oq=["children"];function u4(e,t){if(e==null)return{};var r=sq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function sq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function y2(e){"@babel/helpers - typeof";return y2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},y2(e)}var c4={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},po=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},f4=null,Yv=null,wb=function e(t){if(t===f4&&Array.isArray(Yv))return Yv;var r=[];return V.Children.forEach(t,function(n){Dt(n)||(V$.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Yv=r,f4=t,r};function Ki(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return po(i)}):n=[po(t)],wb(e).forEach(function(i){var a=Vi(i,"type.displayName")||Vi(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Si(e,t){var r=Ki(e,t);return r&&r[0]}var h4=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!rt(n)||n<=0||!rt(i)||i<=0)},lq=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],uq=function(t){return t&&t.type&&Ys(t.type)&&lq.indexOf(t.type)>=0},cq=function(t){return t&&y2(t)==="object"&&"clipDot"in t},fq=function(t,r,n,i){var a,o=(a=Kv==null?void 0:Kv[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Tt(t)&&(i&&o.includes(r)||nq.includes(r))||n&&bb.includes(r)},mt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(V.isValidElement(t)&&(i=t.props),!zu(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;fq((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},x2=function e(t,r){if(t===r)return!0;var n=V.Children.count(t);if(n!==V.Children.count(r))return!1;if(n===0)return!0;if(n===1)return d4(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!d4(a,o))return!1}return!0},d4=function(t,r){if(Dt(t)&&Dt(r))return!0;if(!Dt(t)&&!Dt(r)){var n=t.props||{},i=n.children,a=u4(n,aq),o=r.props||{},s=o.children,l=u4(o,oq);return i&&s?nu(a,l)&&x2(i,s):!i&&!s?nu(a,l):!1}return!1},p4=function(t,r){var n=[],i={};return wb(t).forEach(function(a,o){if(uq(a))n.push(a);else if(a){var s=po(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},hq=function(t){var r=t&&t.type;return r&&c4[r]?c4[r]:null},dq=function(t,r){return wb(r).indexOf(t)},pq=["children","width","height","viewBox","className","style","title","desc"];function b2(){return b2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b2.apply(this,arguments)}function vq(e,t){if(e==null)return{};var r=mq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function w2(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=vq(e,pq),c=i||{width:r,height:n,x:0,y:0},f=jt("recharts-surface",a);return V.createElement("svg",b2({},mt(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),V.createElement("title",null,s),V.createElement("desc",null,l),t)}var gq=["children","className"];function _2(){return _2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_2.apply(this,arguments)}function yq(e,t){if(e==null)return{};var r=xq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var nr=V.forwardRef(function(e,t){var r=e.children,n=e.className,i=yq(e,gq),a=jt("recharts-layer",n);return V.createElement("g",_2({className:a},mt(i,!0),{ref:t}),r)}),bq=process.env.NODE_ENV!=="production",vo=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(bq&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Xv,v4;function wq(){if(v4)return Xv;v4=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Xv=e,Xv}var Jv,m4;function _q(){if(m4)return Jv;m4=1;var e=wq();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Jv=t,Jv}var Zv,g4;function CN(){if(g4)return Zv;g4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(u){return s.test(u)}return Zv=l,Zv}var Qv,y4;function Sq(){if(y4)return Qv;y4=1;function e(t){return t.split("")}return Qv=e,Qv}var em,x4;function Aq(){if(x4)return em;x4=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",g=u+"?",p="["+a+"]?",m="(?:"+h+"(?:"+[c,f,d].join("|")+")"+p+g+")*",y=p+g+m,x="(?:"+[c+s+"?",s,f,d,o].join("|")+")",w=RegExp(l+"(?="+l+")|"+x+y,"g");function T(_){return _.match(w)||[]}return em=T,em}var tm,b4;function Tq(){if(b4)return tm;b4=1;var e=Sq(),t=CN(),r=Aq();function n(i){return t(i)?r(i):e(i)}return tm=n,tm}var rm,w4;function Eq(){if(w4)return rm;w4=1;var e=_q(),t=CN(),r=Tq(),n=EN();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return l[a]()+u}}return rm=i,rm}var nm,_4;function Oq(){if(_4)return nm;_4=1;var e=Eq(),t=e("toUpperCase");return nm=t,nm}var Pq=Oq();const gp=ar(Pq);function Ar(e){return function(){return e}}const jN=Math.cos,ed=Math.sin,Sa=Math.sqrt,td=Math.PI,yp=2*td,S2=Math.PI,A2=2*S2,Ps=1e-6,Nq=A2-Ps;function kN(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function Cq(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return kN;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class jq{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?kN:Cq(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Ps)if(!(Math.abs(f*l-u*c)>Ps)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,g=i-s,p=l*l+u*u,m=h*h+g*g,y=Math.sqrt(p),x=Math.sqrt(d),w=a*Math.tan((S2-Math.acos((p+d-m)/(2*y*x)))/2),T=w/x,_=w/y;Math.abs(T-1)>Ps&&this._append`L${t+T*c},${r+T*f}`,this._append`A${a},${a},0,0,${+(f*h>c*g)},${this._x1=t+_*l},${this._y1=r+_*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Ps||Math.abs(this._y1-c)>Ps)&&this._append`L${u},${c}`,n&&(d<0&&(d=d%A2+A2),d>Nq?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:d>Ps&&this._append`A${n},${n},0,${+(d>=S2)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function _b(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new jq(t)}function Sb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function LN(e){this._context=e}LN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function xp(e){return new LN(e)}function IN(e){return e[0]}function FN(e){return e[1]}function RN(e,t){var r=Ar(!0),n=null,i=xp,a=null,o=_b(s);e=typeof e=="function"?e:e===void 0?IN:Ar(e),t=typeof t=="function"?t:t===void 0?FN:Ar(t);function s(l){var u,c=(l=Sb(l)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,u,l),+t(f,u,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ar(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ar(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Ar(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function x0(e,t,r){var n=null,i=Ar(!0),a=null,o=xp,s=null,l=_b(u);e=typeof e=="function"?e:e===void 0?IN:Ar(+e),t=typeof t=="function"?t:Ar(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?FN:Ar(+r);function u(f){var d,h,g,p=(f=Sb(f)).length,m,y=!1,x,w=new Array(p),T=new Array(p);for(a==null&&(s=o(x=l())),d=0;d<=p;++d){if(!(d<p&&i(m=f[d],d,f))===y)if(y=!y)h=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),g=d-1;g>=h;--g)s.point(w[g],T[g]);s.lineEnd(),s.areaEnd()}y&&(w[d]=+e(m,d,f),T[d]=+t(m,d,f),s.point(n?+n(m,d,f):w[d],r?+r(m,d,f):T[d]))}if(x)return s=null,x+""||null}function c(){return RN().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ar(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ar(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ar(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ar(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ar(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ar(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ar(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class MN{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function kq(e){return new MN(e,!0)}function Lq(e){return new MN(e,!1)}const Ab={draw(e,t){const r=Sa(t/td);e.moveTo(r,0),e.arc(0,0,r,0,yp)}},Iq={draw(e,t){const r=Sa(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},DN=Sa(1/3),Fq=DN*2,Rq={draw(e,t){const r=Sa(t/Fq),n=r*DN;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Mq={draw(e,t){const r=Sa(t),n=-r/2;e.rect(n,n,r,r)}},Dq=.8908130915292852,BN=ed(td/10)/ed(7*td/10),Bq=ed(yp/10)*BN,$q=-jN(yp/10)*BN,qq={draw(e,t){const r=Sa(t*Dq),n=Bq*r,i=$q*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=yp*a/5,s=jN(o),l=ed(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},im=Sa(3),Uq={draw(e,t){const r=-Sa(t/(im*3));e.moveTo(0,r*2),e.lineTo(-im*r,-r),e.lineTo(im*r,-r),e.closePath()}},$i=-.5,qi=Sa(3)/2,T2=1/Sa(12),zq=(T2/2+1)*3,Wq={draw(e,t){const r=Sa(t/zq),n=r/2,i=r*T2,a=n,o=r*T2+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo($i*n-qi*i,qi*n+$i*i),e.lineTo($i*a-qi*o,qi*a+$i*o),e.lineTo($i*s-qi*l,qi*s+$i*l),e.lineTo($i*n+qi*i,$i*i-qi*n),e.lineTo($i*a+qi*o,$i*o-qi*a),e.lineTo($i*s+qi*l,$i*l-qi*s),e.closePath()}};function Hq(e,t){let r=null,n=_b(i);e=typeof e=="function"?e:Ar(e||Ab),t=typeof t=="function"?t:Ar(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Ar(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Ar(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function rd(){}function nd(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function $N(e){this._context=e}$N.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:nd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:nd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gq(e){return new $N(e)}function qN(e){this._context=e}qN.prototype={areaStart:rd,areaEnd:rd,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:nd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vq(e){return new qN(e)}function UN(e){this._context=e}UN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:nd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Kq(e){return new UN(e)}function zN(e){this._context=e}zN.prototype={areaStart:rd,areaEnd:rd,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Yq(e){return new zN(e)}function S4(e){return e<0?-1:1}function A4(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(S4(a)+S4(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function T4(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function am(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function id(e){this._context=e}id.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:am(this,this._t0,T4(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,am(this,T4(this,r=A4(this,e,t)),r);break;default:am(this,this._t0,r=A4(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function WN(e){this._context=new HN(e)}(WN.prototype=Object.create(id.prototype)).point=function(e,t){id.prototype.point.call(this,t,e)};function HN(e){this._context=e}HN.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function Xq(e){return new id(e)}function Jq(e){return new WN(e)}function GN(e){this._context=e}GN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=E4(e),i=E4(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function E4(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Zq(e){return new GN(e)}function bp(e,t){this._context=e,this._t=t}bp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function Qq(e){return new bp(e,.5)}function eU(e){return new bp(e,0)}function tU(e){return new bp(e,1)}function lu(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function E2(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function rU(e,t){return e[t]}function nU(e){const t=[];return t.key=e,t}function iU(){var e=Ar([]),t=E2,r=lu,n=rU;function i(a){var o=Array.from(e.apply(this,arguments),nU),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=Sb(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Ar(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Ar(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?E2:typeof a=="function"?a:Ar(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??lu,i):r},i}function aU(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}lu(e,t)}}function oU(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}lu(e,t)}}function sU(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,d=c[n-1][1]||0,h=(f-d)/2,g=0;g<s;++g){var p=e[t[g]],m=p[n][1]||0,y=p[n-1][1]||0;h+=m-y}l+=f,u+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,lu(e,t)}}function mf(e){"@babel/helpers - typeof";return mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mf(e)}var lU=["type","size","sizeType"];function O2(){return O2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O2.apply(this,arguments)}function O4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function P4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O4(Object(r),!0).forEach(function(n){uU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uU(e,t,r){return t=cU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cU(e){var t=fU(e,"string");return mf(t)=="symbol"?t:t+""}function fU(e,t){if(mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hU(e,t){if(e==null)return{};var r=dU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var VN={symbolCircle:Ab,symbolCross:Iq,symbolDiamond:Rq,symbolSquare:Mq,symbolStar:qq,symbolTriangle:Uq,symbolWye:Wq},pU=Math.PI/180,vU=function(t){var r="symbol".concat(gp(t));return VN[r]||Ab},mU=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*pU;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},gU=function(t,r){VN["symbol".concat(gp(t))]=r},Tb=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=hU(t,lU),u=P4(P4({},l),{},{type:n,size:a,sizeType:s}),c=function(){var m=vU(n),y=Hq().type(m).size(mU(a,s,n));return y()},f=u.className,d=u.cx,h=u.cy,g=mt(u,!0);return d===+d&&h===+h&&a===+a?V.createElement("path",O2({},g,{className:jt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:c()})):null};Tb.registerSymbol=gU;function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function P2(){return P2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P2.apply(this,arguments)}function N4(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function yU(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?N4(Object(r),!0).forEach(function(n){gf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YN(n.key),n)}}function wU(e,t,r){return t&&bU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _U(e,t,r){return t=ad(t),SU(e,KN()?Reflect.construct(t,r||[],ad(e).constructor):t.apply(e,r))}function SU(e,t){if(t&&(uu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AU(e)}function AU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KN=function(){return!!e})()}function ad(e){return ad=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ad(e)}function TU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&N2(e,t)}function N2(e,t){return N2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},N2(e,t)}function gf(e,t,r){return t=YN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YN(e){var t=EU(e,"string");return uu(t)=="symbol"?t:t+""}function EU(e,t){if(uu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ui=32,Eb=(function(e){function t(){return xU(this,t),_U(this,t,arguments)}return TU(t,e),wU(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Ui/2,o=Ui/6,s=Ui/3,l=n.inactive?i:n.color;if(n.type==="plainline")return V.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Ui,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return V.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
364
+ A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
365
+ H`).concat(Ui,"M").concat(2*s,",").concat(a,`
366
+ A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return V.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Ui/8,"h").concat(Ui,"v").concat(Ui*3/4,"h").concat(-Ui,"z"),className:"recharts-legend-icon"});if(V.isValidElement(n.legendIcon)){var u=yU({},n);return delete u.legendIcon,V.cloneElement(n.legendIcon,u)}return V.createElement(Tb,{fill:l,cx:a,cy:a,size:Ui,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Ui,height:Ui},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,g){var p=h.formatter||l,m=jt(gf(gf({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=Tt(h.value)?null:h.value;vo(!Tt(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=h.inactive?u:h.color;return V.createElement("li",P2({className:m,style:f,key:"legend-item-".concat(g)},su(n.props,h,g)),V.createElement(w2,{width:o,height:o,viewBox:c,style:d},n.renderIcon(h)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},p?p(y,h,g):y))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return V.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(V.PureComponent);gf(Eb,"displayName","Legend");gf(Eb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var om,C4;function OU(){if(C4)return om;C4=1;var e=pp();function t(){this.__data__=new e,this.size=0}return om=t,om}var sm,j4;function PU(){if(j4)return sm;j4=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return sm=e,sm}var lm,k4;function NU(){if(k4)return lm;k4=1;function e(t){return this.__data__.get(t)}return lm=e,lm}var um,L4;function CU(){if(L4)return um;L4=1;function e(t){return this.__data__.has(t)}return um=e,um}var cm,I4;function jU(){if(I4)return cm;I4=1;var e=pp(),t=mb(),r=gb(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(a,o),this.size=s.size,this}return cm=i,cm}var fm,F4;function XN(){if(F4)return fm;F4=1;var e=pp(),t=OU(),r=PU(),n=NU(),i=CU(),a=jU();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,fm=o,fm}var hm,R4;function kU(){if(R4)return hm;R4=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return hm=t,hm}var dm,M4;function LU(){if(M4)return dm;M4=1;function e(t){return this.__data__.has(t)}return dm=e,dm}var pm,D4;function JN(){if(D4)return pm;D4=1;var e=gb(),t=kU(),r=LU();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,pm=n,pm}var vm,B4;function ZN(){if(B4)return vm;B4=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return vm=e,vm}var mm,$4;function QN(){if($4)return mm;$4=1;function e(t,r){return t.has(r)}return mm=e,mm}var gm,q4;function e6(){if(q4)return gm;q4=1;var e=JN(),t=ZN(),r=QN(),n=1,i=2;function a(o,s,l,u,c,f){var d=l&n,h=o.length,g=s.length;if(h!=g&&!(d&&g>h))return!1;var p=f.get(o),m=f.get(s);if(p&&m)return p==s&&m==o;var y=-1,x=!0,w=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++y<h;){var T=o[y],_=s[y];if(u)var O=d?u(_,T,y,s,o,f):u(T,_,y,o,s,f);if(O!==void 0){if(O)continue;x=!1;break}if(w){if(!t(s,function(A,k){if(!r(w,k)&&(T===A||c(T,A,l,u,f)))return w.push(k)})){x=!1;break}}else if(!(T===_||c(T,_,l,u,f))){x=!1;break}}return f.delete(o),f.delete(s),x}return gm=a,gm}var ym,U4;function IU(){if(U4)return ym;U4=1;var e=za(),t=e.Uint8Array;return ym=t,ym}var xm,z4;function FU(){if(z4)return xm;z4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return xm=e,xm}var bm,W4;function Ob(){if(W4)return bm;W4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return bm=e,bm}var wm,H4;function RU(){if(H4)return wm;H4=1;var e=ih(),t=IU(),r=vb(),n=e6(),i=FU(),a=Ob(),o=1,s=2,l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",g="[object Set]",p="[object String]",m="[object Symbol]",y="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,T=w?w.valueOf:void 0;function _(O,A,k,L,B,C,P){switch(k){case x:if(O.byteLength!=A.byteLength||O.byteOffset!=A.byteOffset)return!1;O=O.buffer,A=A.buffer;case y:return!(O.byteLength!=A.byteLength||!C(new t(O),new t(A)));case l:case u:case d:return r(+O,+A);case c:return O.name==A.name&&O.message==A.message;case h:case p:return O==A+"";case f:var M=i;case g:var q=L&o;if(M||(M=a),O.size!=A.size&&!q)return!1;var J=P.get(O);if(J)return J==A;L|=s,P.set(O,A);var U=n(M(O),M(A),L,B,C,P);return P.delete(O),U;case m:if(T)return T.call(O)==T.call(A)}return!1}return wm=_,wm}var _m,G4;function t6(){if(G4)return _m;G4=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return _m=e,_m}var Sm,V4;function MU(){if(V4)return Sm;V4=1;var e=t6(),t=hi();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Sm=r,Sm}var Am,K4;function DU(){if(K4)return Am;K4=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return Am=e,Am}var Tm,Y4;function BU(){if(Y4)return Tm;Y4=1;function e(){return[]}return Tm=e,Tm}var Em,X4;function $U(){if(X4)return Em;X4=1;var e=DU(),t=BU(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return Em=a,Em}var Om,J4;function qU(){if(J4)return Om;J4=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Om=e,Om}var Pm,Z4;function UU(){if(Z4)return Pm;Z4=1;var e=To(),t=Eo(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Pm=n,Pm}var Nm,Q4;function Pb(){if(Q4)return Nm;Q4=1;var e=UU(),t=Eo(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Nm=a,Nm}var Bc={exports:{}},Cm,eS;function zU(){if(eS)return Cm;eS=1;function e(){return!1}return Cm=e,Cm}Bc.exports;var tS;function r6(){return tS||(tS=1,(function(e,t){var r=za(),n=zU(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(Bc,Bc.exports)),Bc.exports}var jm,rS;function Nb(){if(rS)return jm;rS=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return jm=r,jm}var km,nS;function Cb(){if(nS)return km;nS=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return km=t,km}var Lm,iS;function WU(){if(iS)return Lm;iS=1;var e=To(),t=Cb(),r=Eo(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",g="[object String]",p="[object WeakMap]",m="[object ArrayBuffer]",y="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",T="[object Int8Array]",_="[object Int16Array]",O="[object Int32Array]",A="[object Uint8Array]",k="[object Uint8ClampedArray]",L="[object Uint16Array]",B="[object Uint32Array]",C={};C[x]=C[w]=C[T]=C[_]=C[O]=C[A]=C[k]=C[L]=C[B]=!0,C[n]=C[i]=C[m]=C[a]=C[y]=C[o]=C[s]=C[l]=C[u]=C[c]=C[f]=C[d]=C[h]=C[g]=C[p]=!1;function P(M){return r(M)&&t(M.length)&&!!C[e(M)]}return Lm=P,Lm}var Im,aS;function n6(){if(aS)return Im;aS=1;function e(t){return function(r){return t(r)}}return Im=e,Im}var $c={exports:{}};$c.exports;var oS;function HU(){return oS||(oS=1,(function(e,t){var r=SN(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})($c,$c.exports)),$c.exports}var Fm,sS;function i6(){if(sS)return Fm;sS=1;var e=WU(),t=n6(),r=HU(),n=r&&r.isTypedArray,i=n?t(n):e;return Fm=i,Fm}var Rm,lS;function GU(){if(lS)return Rm;lS=1;var e=qU(),t=Pb(),r=hi(),n=r6(),i=Nb(),a=i6(),o=Object.prototype,s=o.hasOwnProperty;function l(u,c){var f=r(u),d=!f&&t(u),h=!f&&!d&&n(u),g=!f&&!d&&!h&&a(u),p=f||d||h||g,m=p?e(u.length,String):[],y=m.length;for(var x in u)(c||s.call(u,x))&&!(p&&(x=="length"||h&&(x=="offset"||x=="parent")||g&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,y)))&&m.push(x);return m}return Rm=l,Rm}var Mm,uS;function VU(){if(uS)return Mm;uS=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Mm=t,Mm}var Dm,cS;function a6(){if(cS)return Dm;cS=1;function e(t,r){return function(n){return t(r(n))}}return Dm=e,Dm}var Bm,fS;function KU(){if(fS)return Bm;fS=1;var e=a6(),t=e(Object.keys,Object);return Bm=t,Bm}var $m,hS;function YU(){if(hS)return $m;hS=1;var e=VU(),t=KU(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return $m=i,$m}var qm,dS;function sh(){if(dS)return qm;dS=1;var e=pb(),t=Cb();function r(n){return n!=null&&t(n.length)&&!e(n)}return qm=r,qm}var Um,pS;function wp(){if(pS)return Um;pS=1;var e=GU(),t=YU(),r=sh();function n(i){return r(i)?e(i):t(i)}return Um=n,Um}var zm,vS;function XU(){if(vS)return zm;vS=1;var e=MU(),t=$U(),r=wp();function n(i){return e(i,r,t)}return zm=n,zm}var Wm,mS;function JU(){if(mS)return Wm;mS=1;var e=XU(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,u,c){var f=s&t,d=e(a),h=d.length,g=e(o),p=g.length;if(h!=p&&!f)return!1;for(var m=h;m--;){var y=d[m];if(!(f?y in o:n.call(o,y)))return!1}var x=c.get(a),w=c.get(o);if(x&&w)return x==o&&w==a;var T=!0;c.set(a,o),c.set(o,a);for(var _=f;++m<h;){y=d[m];var O=a[y],A=o[y];if(l)var k=f?l(A,O,y,o,a,c):l(O,A,y,a,o,c);if(!(k===void 0?O===A||u(O,A,s,l,c):k)){T=!1;break}_||(_=y=="constructor")}if(T&&!_){var L=a.constructor,B=o.constructor;L!=B&&"constructor"in a&&"constructor"in o&&!(typeof L=="function"&&L instanceof L&&typeof B=="function"&&B instanceof B)&&(T=!1)}return c.delete(a),c.delete(o),T}return Wm=i,Wm}var Hm,gS;function ZU(){if(gS)return Hm;gS=1;var e=il(),t=za(),r=e(t,"DataView");return Hm=r,Hm}var Gm,yS;function QU(){if(yS)return Gm;yS=1;var e=il(),t=za(),r=e(t,"Promise");return Gm=r,Gm}var Vm,xS;function o6(){if(xS)return Vm;xS=1;var e=il(),t=za(),r=e(t,"Set");return Vm=r,Vm}var Km,bS;function ez(){if(bS)return Km;bS=1;var e=il(),t=za(),r=e(t,"WeakMap");return Km=r,Km}var Ym,wS;function tz(){if(wS)return Ym;wS=1;var e=ZU(),t=mb(),r=QU(),n=o6(),i=ez(),a=To(),o=AN(),s="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),g=o(t),p=o(r),m=o(n),y=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=d||t&&x(new t)!=s||r&&x(r.resolve())!=u||n&&x(new n)!=c||i&&x(new i)!=f)&&(x=function(w){var T=a(w),_=T==l?w.constructor:void 0,O=_?o(_):"";if(O)switch(O){case h:return d;case g:return s;case p:return u;case m:return c;case y:return f}return T}),Ym=x,Ym}var Xm,_S;function rz(){if(_S)return Xm;_S=1;var e=XN(),t=e6(),r=RU(),n=JU(),i=tz(),a=hi(),o=r6(),s=i6(),l=1,u="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function g(p,m,y,x,w,T){var _=a(p),O=a(m),A=_?c:i(p),k=O?c:i(m);A=A==u?f:A,k=k==u?f:k;var L=A==f,B=k==f,C=A==k;if(C&&o(p)){if(!o(m))return!1;_=!0,L=!1}if(C&&!L)return T||(T=new e),_||s(p)?t(p,m,y,x,w,T):r(p,m,A,y,x,w,T);if(!(y&l)){var P=L&&h.call(p,"__wrapped__"),M=B&&h.call(m,"__wrapped__");if(P||M){var q=P?p.value():p,J=M?m.value():m;return T||(T=new e),w(q,J,y,x,T)}}return C?(T||(T=new e),n(p,m,y,x,w,T)):!1}return Xm=g,Xm}var Jm,SS;function jb(){if(SS)return Jm;SS=1;var e=rz(),t=Eo();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Jm=r,Jm}var Zm,AS;function nz(){if(AS)return Zm;AS=1;var e=XN(),t=jb(),r=1,n=2;function i(a,o,s,l){var u=s.length,c=u,f=!l;if(a==null)return!c;for(a=Object(a);u--;){var d=s[u];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++u<c;){d=s[u];var h=d[0],g=a[h],p=d[1];if(f&&d[2]){if(g===void 0&&!(h in a))return!1}else{var m=new e;if(l)var y=l(g,p,h,a,o,m);if(!(y===void 0?t(p,g,r|n,l,m):y))return!1}}return!0}return Zm=i,Zm}var Qm,TS;function s6(){if(TS)return Qm;TS=1;var e=cs();function t(r){return r===r&&!e(r)}return Qm=t,Qm}var eg,ES;function iz(){if(ES)return eg;ES=1;var e=s6(),t=wp();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return eg=r,eg}var tg,OS;function l6(){if(OS)return tg;OS=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return tg=e,tg}var rg,PS;function az(){if(PS)return rg;PS=1;var e=nz(),t=iz(),r=l6();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return rg=n,rg}var ng,NS;function oz(){if(NS)return ng;NS=1;function e(t,r){return t!=null&&r in Object(t)}return ng=e,ng}var ig,CS;function sz(){if(CS)return ig;CS=1;var e=ON(),t=Pb(),r=hi(),n=Nb(),i=Cb(),a=mp();function o(s,l,u){l=e(l,s);for(var c=-1,f=l.length,d=!1;++c<f;){var h=a(l[c]);if(!(d=s!=null&&u(s,h)))break;s=s[h]}return d||++c!=f?d:(f=s==null?0:s.length,!!f&&i(f)&&n(h,f)&&(r(s)||t(s)))}return ig=o,ig}var ag,jS;function lz(){if(jS)return ag;jS=1;var e=oz(),t=sz();function r(n,i){return n!=null&&t(n,i,e)}return ag=r,ag}var og,kS;function uz(){if(kS)return og;kS=1;var e=jb(),t=PN(),r=lz(),n=db(),i=s6(),a=l6(),o=mp(),s=1,l=2;function u(c,f){return n(c)&&i(f)?a(o(c),f):function(d){var h=t(d,c);return h===void 0&&h===f?r(d,c):e(f,h,s|l)}}return og=u,og}var sg,LS;function Wu(){if(LS)return sg;LS=1;function e(t){return t}return sg=e,sg}var lg,IS;function cz(){if(IS)return lg;IS=1;function e(t){return function(r){return r==null?void 0:r[t]}}return lg=e,lg}var ug,FS;function fz(){if(FS)return ug;FS=1;var e=xb();function t(r){return function(n){return e(n,r)}}return ug=t,ug}var cg,RS;function hz(){if(RS)return cg;RS=1;var e=cz(),t=fz(),r=db(),n=mp();function i(a){return r(a)?e(n(a)):t(a)}return cg=i,cg}var fg,MS;function Wa(){if(MS)return fg;MS=1;var e=az(),t=uz(),r=Wu(),n=hi(),i=hz();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return fg=a,fg}var hg,DS;function u6(){if(DS)return hg;DS=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return hg=e,hg}var dg,BS;function dz(){if(BS)return dg;BS=1;function e(t){return t!==t}return dg=e,dg}var pg,$S;function pz(){if($S)return pg;$S=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return pg=e,pg}var vg,qS;function vz(){if(qS)return vg;qS=1;var e=u6(),t=dz(),r=pz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return vg=n,vg}var mg,US;function mz(){if(US)return mg;US=1;var e=vz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return mg=t,mg}var gg,zS;function gz(){if(zS)return gg;zS=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return gg=e,gg}var yg,WS;function yz(){if(WS)return yg;WS=1;function e(){}return yg=e,yg}var xg,HS;function xz(){if(HS)return xg;HS=1;var e=o6(),t=yz(),r=Ob(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return xg=i,xg}var bg,GS;function bz(){if(GS)return bg;GS=1;var e=JN(),t=mz(),r=gz(),n=QN(),i=xz(),a=Ob(),o=200;function s(l,u,c){var f=-1,d=t,h=l.length,g=!0,p=[],m=p;if(c)g=!1,d=r;else if(h>=o){var y=u?null:i(l);if(y)return a(y);g=!1,d=n,m=new e}else m=u?[]:p;e:for(;++f<h;){var x=l[f],w=u?u(x):x;if(x=c||x!==0?x:0,g&&w===w){for(var T=m.length;T--;)if(m[T]===w)continue e;u&&m.push(w),p.push(x)}else d(m,w,c)||(m!==p&&m.push(w),p.push(x))}return p}return bg=s,bg}var wg,VS;function wz(){if(VS)return wg;VS=1;var e=Wa(),t=bz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return wg=r,wg}var _z=wz();const KS=ar(_z);function c6(e,t,r){return t===!0?KS(e,r):Tt(t)?KS(e,t):e}function cu(e){"@babel/helpers - typeof";return cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(e)}var Sz=["ref"];function YS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function io(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(r),!0).forEach(function(n){_p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Az(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,h6(n.key),n)}}function Tz(e,t,r){return t&&XS(e.prototype,t),r&&XS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ez(e,t,r){return t=od(t),Oz(e,f6()?Reflect.construct(t,r||[],od(e).constructor):t.apply(e,r))}function Oz(e,t){if(t&&(cu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pz(e)}function Pz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f6=function(){return!!e})()}function od(e){return od=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},od(e)}function Nz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C2(e,t)}function C2(e,t){return C2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},C2(e,t)}function _p(e,t,r){return t=h6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h6(e){var t=Cz(e,"string");return cu(t)=="symbol"?t:t+""}function Cz(e,t){if(cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jz(e,t){if(e==null)return{};var r=kz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Lz(e){return e.value}function Iz(e,t){if(V.isValidElement(e))return V.cloneElement(e,t);if(typeof e=="function")return V.createElement(e,t);t.ref;var r=jz(t,Sz);return V.createElement(Eb,r)}var JS=1,Us=(function(e){function t(){var r;Az(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Ez(this,t,[].concat(i)),_p(r,"lastBoundingBox",{width:-1,height:-1}),r}return Nz(t,e),Tz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>JS||Math.abs(i.height-this.lastBoundingBox.height)>JS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?io({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();f={left:((u||0)-h.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var g=this.getBBoxSnapshot();d={top:((c||0)-g.height)/2}}else d=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return io(io({},f),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=io(io({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return V.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(h){n.wrapperNode=h}},Iz(a,io(io({},this.props),{},{payload:c6(c,u,Lz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=io(io({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&rt(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(V.PureComponent);_p(Us,"displayName","Legend");_p(Us,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var _g,ZS;function Fz(){if(ZS)return _g;ZS=1;var e=ih(),t=Pb(),r=hi(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return _g=i,_g}var Sg,QS;function d6(){if(QS)return Sg;QS=1;var e=t6(),t=Fz();function r(n,i,a,o,s){var l=-1,u=n.length;for(a||(a=t),s||(s=[]);++l<u;){var c=n[l];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return Sg=r,Sg}var Ag,e3;function Rz(){if(e3)return Ag;e3=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),l=s.length;l--;){var u=s[t?l:++a];if(n(o[u],u,o)===!1)break}return r}}return Ag=e,Ag}var Tg,t3;function Mz(){if(t3)return Tg;t3=1;var e=Rz(),t=e();return Tg=t,Tg}var Eg,r3;function p6(){if(r3)return Eg;r3=1;var e=Mz(),t=wp();function r(n,i){return n&&e(n,i,t)}return Eg=r,Eg}var Og,n3;function Dz(){if(n3)return Og;n3=1;var e=sh();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,l=Object(i);(n?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return Og=t,Og}var Pg,i3;function kb(){if(i3)return Pg;i3=1;var e=p6(),t=Dz(),r=t(e);return Pg=r,Pg}var Ng,a3;function v6(){if(a3)return Ng;a3=1;var e=kb(),t=sh();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,u){o[++a]=i(s,l,u)}),o}return Ng=r,Ng}var Cg,o3;function Bz(){if(o3)return Cg;o3=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Cg=e,Cg}var jg,s3;function $z(){if(s3)return jg;s3=1;var e=Uu();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),l=n!==void 0,u=n===null,c=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&l&&c&&!u&&!f||a&&l&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!l&&o||!c)return-1}return 0}return jg=t,jg}var kg,l3;function qz(){if(l3)return kg;l3=1;var e=$z();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,u=i.length;++a<l;){var c=e(o[a],s[a]);if(c){if(a>=u)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return kg=t,kg}var Lg,u3;function Uz(){if(u3)return Lg;u3=1;var e=yb(),t=xb(),r=Wa(),n=v6(),i=Bz(),a=n6(),o=qz(),s=Wu(),l=hi();function u(c,f,d){f.length?f=e(f,function(p){return l(p)?function(m){return t(m,p.length===1?p[0]:p)}:p}):f=[s];var h=-1;f=e(f,a(r));var g=n(c,function(p,m,y){var x=e(f,function(w){return w(p)});return{criteria:x,index:++h,value:p}});return i(g,function(p,m){return o(p,m,d)})}return Lg=u,Lg}var Ig,c3;function zz(){if(c3)return Ig;c3=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ig=e,Ig}var Fg,f3;function Wz(){if(f3)return Fg;f3=1;var e=zz(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),u=Array(l);++s<l;)u[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(u),e(n,this,c)}}return Fg=r,Fg}var Rg,h3;function Hz(){if(h3)return Rg;h3=1;function e(t){return function(){return t}}return Rg=e,Rg}var Mg,d3;function m6(){if(d3)return Mg;d3=1;var e=il(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Mg=t,Mg}var Dg,p3;function Gz(){if(p3)return Dg;p3=1;var e=Hz(),t=m6(),r=Wu(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Dg=n,Dg}var Bg,v3;function Vz(){if(v3)return Bg;v3=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Bg=n,Bg}var $g,m3;function Kz(){if(m3)return $g;m3=1;var e=Gz(),t=Vz(),r=t(e);return $g=r,$g}var qg,g3;function Yz(){if(g3)return qg;g3=1;var e=Wu(),t=Wz(),r=Kz();function n(i,a){return r(t(i,a,e),i+"")}return qg=n,qg}var Ug,y3;function Sp(){if(y3)return Ug;y3=1;var e=vb(),t=sh(),r=Nb(),n=cs();function i(a,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return Ug=i,Ug}var zg,x3;function Xz(){if(x3)return zg;x3=1;var e=d6(),t=Uz(),r=Yz(),n=Sp(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return zg=i,zg}var Jz=Xz();const Lb=ar(Jz);function yf(e){"@babel/helpers - typeof";return yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yf(e)}function j2(){return j2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j2.apply(this,arguments)}function Zz(e,t){return rW(e)||tW(e,t)||eW(e,t)||Qz()}function Qz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
367
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eW(e,t){if(e){if(typeof e=="string")return b3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b3(e,t)}}function b3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function rW(e){if(Array.isArray(e))return e}function w3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w3(Object(r),!0).forEach(function(n){nW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nW(e,t,r){return t=iW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iW(e){var t=aW(e,"string");return yf(t)=="symbol"?t:t+""}function aW(e,t){if(yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oW(e){return Array.isArray(e)&&un(e[0])&&un(e[1])?e.join(" ~ "):e}var sW=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,g=t.labelClassName,p=t.label,m=t.labelFormatter,y=t.accessibilityLayer,x=y===void 0?!1:y,w=function(){if(c&&c.length){var P={padding:0,margin:0},M=(d?Lb(c,d):c).map(function(q,J){if(q.type==="none")return null;var U=Wg({display:"block",paddingTop:4,paddingBottom:4,color:q.color||"#000"},s),H=q.formatter||f||oW,ee=q.value,Z=q.name,Q=ee,le=Z;if(H&&Q!=null&&le!=null){var N=H(ee,Z,q,J,c);if(Array.isArray(N)){var I=Zz(N,2);Q=I[0],le=I[1]}else Q=N}return V.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(J),style:U},un(le)?V.createElement("span",{className:"recharts-tooltip-item-name"},le):null,un(le)?V.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,V.createElement("span",{className:"recharts-tooltip-item-value"},Q),V.createElement("span",{className:"recharts-tooltip-item-unit"},q.unit||""))});return V.createElement("ul",{className:"recharts-tooltip-item-list",style:P},M)}return null},T=Wg({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),_=Wg({margin:0},u),O=!Dt(p),A=O?p:"",k=jt("recharts-default-tooltip",h),L=jt("recharts-tooltip-label",g);O&&m&&c!==void 0&&c!==null&&(A=m(p,c));var B=x?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",j2({className:k,style:T},B),V.createElement("p",{className:L,style:_},V.isValidElement(A)?A:"".concat(A)),w())};function xf(e){"@babel/helpers - typeof";return xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xf(e)}function b0(e,t,r){return t=lW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function lW(e){var t=uW(e,"string");return xf(t)=="symbol"?t:t+""}function uW(e,t){if(xf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nc="recharts-tooltip-wrapper",cW={visibility:"hidden"};function fW(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return jt(Nc,b0(b0(b0(b0({},"".concat(Nc,"-right"),rt(r)&&t&&rt(t.x)&&r>=t.x),"".concat(Nc,"-left"),rt(r)&&t&&rt(t.x)&&r<t.x),"".concat(Nc,"-bottom"),rt(n)&&t&&rt(t.y)&&n>=t.y),"".concat(Nc,"-top"),rt(n)&&t&&rt(t.y)&&n<t.y))}function _3(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&rt(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var d=c,h=l[n];return d<h?Math.max(f,l[n]):Math.max(c,l[n])}var g=f+s,p=l[n]+u;return g>p?Math.max(c,l[n]):Math.max(f,l[n])}function hW(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function dW(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=_3({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=_3({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=hW({translateX:c,translateY:f,useTranslate3d:s})):u=cW,{cssProperties:u,cssClasses:fW({translateX:c,translateY:f,coordinate:r})}}function fu(e){"@babel/helpers - typeof";return fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fu(e)}function S3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function A3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?S3(Object(r),!0).forEach(function(n){L2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,y6(n.key),n)}}function mW(e,t,r){return t&&vW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gW(e,t,r){return t=sd(t),yW(e,g6()?Reflect.construct(t,r||[],sd(e).constructor):t.apply(e,r))}function yW(e,t){if(t&&(fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xW(e)}function xW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g6=function(){return!!e})()}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sd(e)}function bW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k2(e,t)}function k2(e,t){return k2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},k2(e,t)}function L2(e,t,r){return t=y6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y6(e){var t=wW(e,"string");return fu(t)=="symbol"?t:t+""}function wW(e,t){if(fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var T3=1,_W=(function(e){function t(){var r;pW(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=gW(this,t,[].concat(i)),L2(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),L2(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return bW(t,e),mW(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>T3||Math.abs(n.height-this.state.lastBoundingBox.height)>T3)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,g=i.position,p=i.reverseDirection,m=i.useTranslate3d,y=i.viewBox,x=i.wrapperStyle,w=dW({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:h,position:g,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:y}),T=w.cssClasses,_=w.cssProperties,O=A3(A3({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},_),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return V.createElement("div",{tabIndex:-1,className:T,style:O,ref:function(k){n.wrapperNode=k}},u)}}])})(V.PureComponent),SW=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},al={isSsr:SW()};function hu(e){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(e)}function E3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function O3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E3(Object(r),!0).forEach(function(n){Ib(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TW(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b6(n.key),n)}}function EW(e,t,r){return t&&TW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OW(e,t,r){return t=ld(t),PW(e,x6()?Reflect.construct(t,r||[],ld(e).constructor):t.apply(e,r))}function PW(e,t){if(t&&(hu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NW(e)}function NW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x6=function(){return!!e})()}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ld(e)}function CW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I2(e,t)}function I2(e,t){return I2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},I2(e,t)}function Ib(e,t,r){return t=b6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b6(e){var t=jW(e,"string");return hu(t)=="symbol"?t:t+""}function jW(e,t){if(hu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function kW(e){return e.dataKey}function LW(e,t){return V.isValidElement(e)?V.cloneElement(e,t):typeof e=="function"?V.createElement(e,t):V.createElement(sW,t)}var ha=(function(e){function t(){return AW(this,t),OW(this,t,arguments)}return CW(t,e),EW(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,g=i.payload,p=i.payloadUniqBy,m=i.position,y=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,T=i.wrapperStyle,_=g??[];f&&_.length&&(_=c6(g.filter(function(A){return A.value!=null&&(A.hide!==!0||n.props.includeHidden)}),p,kW));var O=_.length>0;return V.createElement(_W,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:c,hasPayload:O,offset:h,position:m,reverseDirection:y,useTranslate3d:x,viewBox:w,wrapperStyle:T},LW(u,O3(O3({},this.props),{},{payload:_})))}}])})(V.PureComponent);Ib(ha,"displayName","Tooltip");Ib(ha,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!al.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Hg,P3;function IW(){if(P3)return Hg;P3=1;var e=za(),t=function(){return e.Date.now()};return Hg=t,Hg}var Gg,N3;function FW(){if(N3)return Gg;N3=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Gg=t,Gg}var Vg,C3;function RW(){if(C3)return Vg;C3=1;var e=FW(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Vg=r,Vg}var Kg,j3;function w6(){if(j3)return Kg;j3=1;var e=RW(),t=cs(),r=Uu(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return Kg=l,Kg}var Yg,k3;function MW(){if(k3)return Yg;k3=1;var e=cs(),t=IW(),r=w6(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,u){var c,f,d,h,g,p,m=0,y=!1,x=!1,w=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(y=!!u.leading,x="maxWait"in u,d=x?i(r(u.maxWait)||0,l):d,w="trailing"in u?!!u.trailing:w);function T(M){var q=c,J=f;return c=f=void 0,m=M,h=s.apply(J,q),h}function _(M){return m=M,g=setTimeout(k,l),y?T(M):h}function O(M){var q=M-p,J=M-m,U=l-q;return x?a(U,d-J):U}function A(M){var q=M-p,J=M-m;return p===void 0||q>=l||q<0||x&&J>=d}function k(){var M=t();if(A(M))return L(M);g=setTimeout(k,O(M))}function L(M){return g=void 0,w&&c?T(M):(c=f=void 0,h)}function B(){g!==void 0&&clearTimeout(g),m=0,c=p=f=g=void 0}function C(){return g===void 0?h:L(t())}function P(){var M=t(),q=A(M);if(c=arguments,f=this,p=M,q){if(g===void 0)return _(p);if(x)return clearTimeout(g),g=setTimeout(k,l),T(p)}return g===void 0&&(g=setTimeout(k,l)),h}return P.cancel=B,P.flush=C,P}return Yg=o,Yg}var Xg,L3;function DW(){if(L3)return Xg;L3=1;var e=MW(),t=cs(),r="Expected a function";function n(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return Xg=n,Xg}var BW=DW();const _6=ar(BW);function bf(e){"@babel/helpers - typeof";return bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bf(e)}function I3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function w0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I3(Object(r),!0).forEach(function(n){$W(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $W(e,t,r){return t=qW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qW(e){var t=UW(e,"string");return bf(t)=="symbol"?t:t+""}function UW(e,t){if(bf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zW(e,t){return VW(e)||GW(e,t)||HW(e,t)||WW()}function WW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
368
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HW(e,t){if(e){if(typeof e=="string")return F3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return F3(e,t)}}function F3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GW(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function VW(e){if(Array.isArray(e))return e}var Jg=V.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,d=e.maxHeight,h=e.children,g=e.debounce,p=g===void 0?0:g,m=e.id,y=e.className,x=e.onResize,w=e.style,T=w===void 0?{}:w,_=V.useRef(null),O=V.useRef();O.current=x,V.useImperativeHandle(t,function(){return Object.defineProperty(_.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),_.current},configurable:!0})});var A=V.useState({containerWidth:i.width,containerHeight:i.height}),k=zW(A,2),L=k[0],B=k[1],C=V.useCallback(function(M,q){B(function(J){var U=Math.round(M),H=Math.round(q);return J.containerWidth===U&&J.containerHeight===H?J:{containerWidth:U,containerHeight:H}})},[]);V.useEffect(function(){var M=function(Z){var Q,le=Z[0].contentRect,N=le.width,I=le.height;C(N,I),(Q=O.current)===null||Q===void 0||Q.call(O,N,I)};p>0&&(M=_6(M,p,{trailing:!0,leading:!1}));var q=new ResizeObserver(M),J=_.current.getBoundingClientRect(),U=J.width,H=J.height;return C(U,H),q.observe(_.current),function(){q.disconnect()}},[C,p]);var P=V.useMemo(function(){var M=L.containerWidth,q=L.containerHeight;if(M<0||q<0)return null;vo(Ls(o)||Ls(l),`The width(%s) and height(%s) are both fixed numbers,
369
+ maybe you don't need to use a ResponsiveContainer.`,o,l),vo(!r||r>0,"The aspect(%s) must be greater than zero.",r);var J=Ls(o)?M:o,U=Ls(l)?q:l;r&&r>0&&(J?U=J/r:U&&(J=U*r),d&&U>d&&(U=d)),vo(J>0||U>0,`The width(%s) and height(%s) of chart should be greater than 0,
370
+ please check the style of container, or the props width(%s) and height(%s),
371
+ or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
372
+ height and width.`,J,U,o,l,c,f,r);var H=!Array.isArray(h)&&po(h.type).endsWith("Chart");return V.Children.map(h,function(ee){return V.isValidElement(ee)?V.cloneElement(ee,w0({width:J,height:U},H?{style:w0({height:"100%",width:"100%",maxHeight:U,maxWidth:J},ee.props.style)}:{})):ee})},[r,h,l,d,f,c,L,o]);return V.createElement("div",{id:m?"".concat(m):void 0,className:jt("recharts-responsive-container",y),style:w0(w0({},T),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:d}),ref:_},P)}),S6=function(t){return null};S6.displayName="Cell";function wf(e){"@babel/helpers - typeof";return wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wf(e)}function R3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function F2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R3(Object(r),!0).forEach(function(n){KW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KW(e,t,r){return t=YW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YW(e){var t=XW(e,"string");return wf(t)=="symbol"?t:t+""}function XW(e,t){if(wf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ml={widthCache:{},cacheCount:0},JW=2e3,ZW={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},M3="recharts_measurement_span";function QW(e){var t=F2({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Qc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||al.isSsr)return{width:0,height:0};var n=QW(r),i=JSON.stringify({text:t,copyStyle:n});if(Ml.widthCache[i])return Ml.widthCache[i];try{var a=document.getElementById(M3);a||(a=document.createElement("span"),a.setAttribute("id",M3),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=F2(F2({},ZW),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Ml.widthCache[i]=l,++Ml.cacheCount>JW&&(Ml.cacheCount=0,Ml.widthCache={}),l}catch{return{width:0,height:0}}},eH=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function _f(e){"@babel/helpers - typeof";return _f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_f(e)}function ud(e,t){return iH(e)||nH(e,t)||rH(e,t)||tH()}function tH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
373
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rH(e,t){if(e){if(typeof e=="string")return D3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D3(e,t)}}function D3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function nH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function iH(e){if(Array.isArray(e))return e}function aH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,sH(n.key),n)}}function oH(e,t,r){return t&&B3(e.prototype,t),r&&B3(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function sH(e){var t=lH(e,"string");return _f(t)=="symbol"?t:t+""}function lH(e,t){if(_f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,q3=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uH=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,cH=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,A6={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},fH=Object.keys(A6),Vl="NaN";function hH(e,t){return e*A6[t]}var _0=(function(){function e(t,r){aH(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!uH.test(r)&&(this.num=NaN,this.unit=""),fH.includes(r)&&(this.num=hH(t,r),this.unit="px")}return oH(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=cH.exec(r))!==null&&n!==void 0?n:[],a=ud(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function T6(e){if(e.includes(Vl))return Vl;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=$3.exec(t))!==null&&r!==void 0?r:[],i=ud(n,4),a=i[1],o=i[2],s=i[3],l=_0.parse(a??""),u=_0.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return Vl;t=t.replace($3,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=q3.exec(t))!==null&&f!==void 0?f:[],h=ud(d,4),g=h[1],p=h[2],m=h[3],y=_0.parse(g??""),x=_0.parse(m??""),w=p==="+"?y.add(x):y.subtract(x);if(w.isNaN())return Vl;t=t.replace(q3,w.toString())}return t}var U3=/\(([^()]*)\)/;function dH(e){for(var t=e;t.includes("(");){var r=U3.exec(t),n=ud(r,2),i=n[1];t=t.replace(U3,T6(i))}return t}function pH(e){var t=e.replace(/\s+/g,"");return t=dH(t),t=T6(t),t}function vH(e){try{return pH(e)}catch{return Vl}}function Zg(e){var t=vH(e.slice(5,-1));return t===Vl?"":t}var mH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],gH=["dx","dy","angle","className","breakAll"];function R2(){return R2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},R2.apply(this,arguments)}function z3(e,t){if(e==null)return{};var r=yH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function W3(e,t){return _H(e)||wH(e,t)||bH(e,t)||xH()}function xH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
374
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bH(e,t){if(e){if(typeof e=="string")return H3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return H3(e,t)}}function H3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function _H(e){if(Array.isArray(e))return e}var E6=/[ \f\n\r\t\v\u2028\u2029]+/,O6=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Dt(r)||(n?a=r.toString().split(""):a=r.toString().split(E6));var o=a.map(function(l){return{word:l,width:Qc(l,i).width}}),s=n?0:Qc(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},SH=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=rt(o),f=s,d=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce(function(U,H){var ee=H.word,Z=H.width,Q=U[U.length-1];if(Q&&(i==null||a||Q.width+Z+n<Number(i)))Q.words.push(ee),Q.width+=Z+n;else{var le={words:[ee],width:Z};U.push(le)}return U},[])},h=d(r),g=function(J){return J.reduce(function(U,H){return U.width>H.width?U:H})};if(!c)return h;for(var p="…",m=function(J){var U=f.slice(0,J),H=O6({breakAll:u,style:l,children:U+p}).wordsWithComputedWidth,ee=d(H),Z=ee.length>o||g(ee).width>Number(i);return[Z,ee]},y=0,x=f.length-1,w=0,T;y<=x&&w<=f.length-1;){var _=Math.floor((y+x)/2),O=_-1,A=m(O),k=W3(A,2),L=k[0],B=k[1],C=m(_),P=W3(C,1),M=P[0];if(!L&&!M&&(y=_+1),L&&M&&(x=_-1),!L&&M){T=B;break}w++}return T||h},G3=function(t){var r=Dt(t)?[]:t.toString().split(E6);return[{words:r}]},AH=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!al.isSsr){var l,u,c=O6({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,d=c.spaceWidth;l=f,u=d}else return G3(i);return SH({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return G3(i)},V3="#808080",du=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,d=t.textAnchor,h=d===void 0?"start":d,g=t.verticalAnchor,p=g===void 0?"end":g,m=t.fill,y=m===void 0?V3:m,x=z3(t,mH),w=V.useMemo(function(){return AH({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:f,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,f,x.style,x.width]),T=x.dx,_=x.dy,O=x.angle,A=x.className,k=x.breakAll,L=z3(x,gH);if(!un(n)||!un(a))return null;var B=n+(rt(T)?T:0),C=a+(rt(_)?_:0),P;switch(p){case"start":P=Zg("calc(".concat(u,")"));break;case"middle":P=Zg("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:P=Zg("calc(".concat(w.length-1," * -").concat(s,")"));break}var M=[];if(f){var q=w[0].width,J=x.width;M.push("scale(".concat((rt(J)?J/q:1)/q,")"))}return O&&M.push("rotate(".concat(O,", ").concat(B,", ").concat(C,")")),M.length&&(L.transform=M.join(" ")),V.createElement("text",R2({},mt(L,!0),{x:B,y:C,className:jt("recharts-text",A),textAnchor:h,fill:y.includes("url")?V3:y}),w.map(function(U,H){var ee=U.words.join(k?"":" ");return V.createElement("tspan",{x:B,dy:H===0?P:s,key:"".concat(ee,"-").concat(H)},ee)}))};function rs(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function TH(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Fb(e){let t,r,n;e.length!==2?(t=rs,r=(s,l)=>rs(e(s),l),n=(s,l)=>e(s)-l):(t=e===rs||e===TH?e:EH,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function EH(){return 0}function P6(e){return e===null?NaN:+e}function*OH(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const PH=Fb(rs),lh=PH.right;Fb(P6).center;class K3 extends Map{constructor(t,r=jH){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Y3(this,t))}has(t){return super.has(Y3(this,t))}set(t,r){return super.set(NH(this,t),r)}delete(t){return super.delete(CH(this,t))}}function Y3({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function NH({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function CH({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function jH(e){return e!==null&&typeof e=="object"?e.valueOf():e}function kH(e=rs){if(e===rs)return N6;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function N6(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const LH=Math.sqrt(50),IH=Math.sqrt(10),FH=Math.sqrt(2);function cd(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=LH?10:a>=IH?5:a>=FH?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?cd(e,t,r*2):[s,l,u]}function M2(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?cd(t,e,r):cd(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function D2(e,t,r){return t=+t,e=+e,r=+r,cd(e,t,r)[2]}function B2(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?D2(t,e,r):D2(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function X3(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function J3(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function C6(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?N6:kH(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),d=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(r,Math.floor(t-u*f/l+d)),g=Math.min(n,Math.floor(t+(l-u)*f/l+d));C6(e,t,h,g,i)}const a=e[t];let o=r,s=n;for(Cc(e,r,t),i(e[n],a)>0&&Cc(e,r,n);o<s;){for(Cc(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Cc(e,r,s):(++s,Cc(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Cc(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function RH(e,t,r){if(e=Float64Array.from(OH(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return J3(e);if(t>=1)return X3(e);var n,i=(n-1)*t,a=Math.floor(i),o=X3(C6(e,a).subarray(0,a+1)),s=J3(e.subarray(a+1));return o+(s-o)*(i-a)}}function MH(e,t,r=P6){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function DH(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Ji(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Oo(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const $2=Symbol("implicit");function Rb(){var e=new K3,t=[],r=[],n=$2;function i(a){let o=e.get(a);if(o===void 0){if(n!==$2)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new K3;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Rb(t,r).unknown(n)},Ji.apply(i,arguments),i}function Sf(){var e=Rb().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var d=t().length,h=i<n,g=h?i:n,p=h?n:i;a=(p-g)/Math.max(1,d-l+u*2),s&&(a=Math.floor(a)),g+=(p-g-a*(d-l))*c,o=a*(1-l),s&&(g=Math.round(g),o=Math.round(o));var m=DH(d).map(function(y){return g+a*y});return r(h?m.reverse():m)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(s=!!d,f()):s},e.padding=function(d){return arguments.length?(l=Math.min(1,u=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(u=+d,f()):u},e.align=function(d){return arguments.length?(c=Math.max(0,Math.min(1,d)),f()):c},e.copy=function(){return Sf(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},Ji.apply(f(),arguments)}function j6(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return j6(t())},e}function ef(){return j6(Sf.apply(null,arguments).paddingInner(1))}function Mb(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function k6(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function uh(){}var Af=.7,fd=1/Af,iu="\\s*([+-]?\\d+)\\s*",Tf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ma="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BH=/^#([0-9a-f]{3,8})$/,$H=new RegExp(`^rgb\\(${iu},${iu},${iu}\\)$`),qH=new RegExp(`^rgb\\(${Ma},${Ma},${Ma}\\)$`),UH=new RegExp(`^rgba\\(${iu},${iu},${iu},${Tf}\\)$`),zH=new RegExp(`^rgba\\(${Ma},${Ma},${Ma},${Tf}\\)$`),WH=new RegExp(`^hsl\\(${Tf},${Ma},${Ma}\\)$`),HH=new RegExp(`^hsla\\(${Tf},${Ma},${Ma},${Tf}\\)$`),Z3={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Mb(uh,Ef,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Q3,formatHex:Q3,formatHex8:GH,formatHsl:VH,formatRgb:eA,toString:eA});function Q3(){return this.rgb().formatHex()}function GH(){return this.rgb().formatHex8()}function VH(){return L6(this).formatHsl()}function eA(){return this.rgb().formatRgb()}function Ef(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=BH.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?tA(t):r===3?new oi(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?S0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?S0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=$H.exec(e))?new oi(t[1],t[2],t[3],1):(t=qH.exec(e))?new oi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=UH.exec(e))?S0(t[1],t[2],t[3],t[4]):(t=zH.exec(e))?S0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=WH.exec(e))?iA(t[1],t[2]/100,t[3]/100,1):(t=HH.exec(e))?iA(t[1],t[2]/100,t[3]/100,t[4]):Z3.hasOwnProperty(e)?tA(Z3[e]):e==="transparent"?new oi(NaN,NaN,NaN,0):null}function tA(e){return new oi(e>>16&255,e>>8&255,e&255,1)}function S0(e,t,r,n){return n<=0&&(e=t=r=NaN),new oi(e,t,r,n)}function KH(e){return e instanceof uh||(e=Ef(e)),e?(e=e.rgb(),new oi(e.r,e.g,e.b,e.opacity)):new oi}function q2(e,t,r,n){return arguments.length===1?KH(e):new oi(e,t,r,n??1)}function oi(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Mb(oi,q2,k6(uh,{brighter(e){return e=e==null?fd:Math.pow(fd,e),new oi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Af:Math.pow(Af,e),new oi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new oi(zs(this.r),zs(this.g),zs(this.b),hd(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rA,formatHex:rA,formatHex8:YH,formatRgb:nA,toString:nA}));function rA(){return`#${Is(this.r)}${Is(this.g)}${Is(this.b)}`}function YH(){return`#${Is(this.r)}${Is(this.g)}${Is(this.b)}${Is((isNaN(this.opacity)?1:this.opacity)*255)}`}function nA(){const e=hd(this.opacity);return`${e===1?"rgb(":"rgba("}${zs(this.r)}, ${zs(this.g)}, ${zs(this.b)}${e===1?")":`, ${e})`}`}function hd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Is(e){return e=zs(e),(e<16?"0":"")+e.toString(16)}function iA(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ma(e,t,r,n)}function L6(e){if(e instanceof ma)return new ma(e.h,e.s,e.l,e.opacity);if(e instanceof uh||(e=Ef(e)),!e)return new ma;if(e instanceof ma)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new ma(o,s,l,e.opacity)}function XH(e,t,r,n){return arguments.length===1?L6(e):new ma(e,t,r,n??1)}function ma(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Mb(ma,XH,k6(uh,{brighter(e){return e=e==null?fd:Math.pow(fd,e),new ma(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Af:Math.pow(Af,e),new ma(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new oi(Qg(e>=240?e-240:e+120,i,n),Qg(e,i,n),Qg(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ma(aA(this.h),A0(this.s),A0(this.l),hd(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=hd(this.opacity);return`${e===1?"hsl(":"hsla("}${aA(this.h)}, ${A0(this.s)*100}%, ${A0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function aA(e){return e=(e||0)%360,e<0?e+360:e}function A0(e){return Math.max(0,Math.min(1,e||0))}function Qg(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Db=e=>()=>e;function JH(e,t){return function(r){return e+r*t}}function ZH(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function QH(e){return(e=+e)==1?I6:function(t,r){return r-t?ZH(t,r,e):Db(isNaN(t)?r:t)}}function I6(e,t){var r=t-e;return r?JH(e,r):Db(isNaN(e)?t:e)}const oA=(function e(t){var r=QH(t);function n(i,a){var o=r((i=q2(i)).r,(a=q2(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=I6(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);function eG(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function tG(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function rG(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Hu(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function nG(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function dd(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function iG(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Hu(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var U2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ey=new RegExp(U2.source,"g");function aG(e){return function(){return e}}function oG(e){return function(t){return e(t)+""}}function sG(e,t){var r=U2.lastIndex=ey.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=U2.exec(e))&&(i=ey.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:dd(n,i)})),r=ey.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?oG(l[0].x):aG(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function Hu(e,t){var r=typeof t,n;return t==null||r==="boolean"?Db(t):(r==="number"?dd:r==="string"?(n=Ef(t))?(t=n,oA):sG:t instanceof Ef?oA:t instanceof Date?nG:tG(t)?eG:Array.isArray(t)?rG:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?iG:dd)(e,t)}function Bb(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function lG(e,t){t===void 0&&(t=e,e=Hu);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}function uG(e){return function(){return e}}function pd(e){return+e}var sA=[0,1];function Xn(e){return e}function z2(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:uG(isNaN(t)?NaN:.5)}function cG(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function fG(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=z2(i,n),a=r(o,a)):(n=z2(n,i),a=r(a,o)),function(s){return a(n(s))}}function hG(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=z2(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=lh(e,s,1,n)-1;return a[l](i[l](s))}}function ch(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ap(){var e=sA,t=sA,r=Hu,n,i,a,o=Xn,s,l,u;function c(){var d=Math.min(e.length,t.length);return o!==Xn&&(o=cG(e[0],e[d-1])),s=d>2?hG:fG,l=u=null,f}function f(d){return d==null||isNaN(d=+d)?a:(l||(l=s(e.map(n),t,r)))(n(o(d)))}return f.invert=function(d){return o(i((u||(u=s(t,e.map(n),dd)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,pd),c()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),c()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Bb,c()},f.clamp=function(d){return arguments.length?(o=d?!0:Xn,c()):o!==Xn},f.interpolate=function(d){return arguments.length?(r=d,c()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,c()}}function $b(){return Ap()(Xn,Xn)}function dG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function vd(e,t){if(!isFinite(e)||e===0)return null;var r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function pu(e){return e=vd(Math.abs(e)),e?e[1]:NaN}function pG(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function vG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var mG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Of(e){if(!(t=mG.exec(e)))throw new Error("invalid format: "+e);var t;return new qb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Of.prototype=qb.prototype;function qb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}qb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function gG(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var md;function yG(e,t){var r=vd(e,t);if(!r)return md=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(md=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+vd(e,Math.max(0,t+a-1))[0]}function lA(e,t){var r=vd(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const uA={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:dG,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>lA(e*100,t),r:lA,s:yG,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function cA(e){return e}var fA=Array.prototype.map,hA=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xG(e){var t=e.grouping===void 0||e.thousands===void 0?cA:pG(fA.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?cA:vG(fA.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f,d){f=Of(f);var h=f.fill,g=f.align,p=f.sign,m=f.symbol,y=f.zero,x=f.width,w=f.comma,T=f.precision,_=f.trim,O=f.type;O==="n"?(w=!0,O="g"):uA[O]||(T===void 0&&(T=12),_=!0,O="g"),(y||h==="0"&&g==="=")&&(y=!0,h="0",g="=");var A=(d&&d.prefix!==void 0?d.prefix:"")+(m==="$"?r:m==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),k=(m==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),L=uA[O],B=/[defgprs%]/.test(O);T=T===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function C(P){var M=A,q=k,J,U,H;if(O==="c")q=L(P)+q,P="";else{P=+P;var ee=P<0||1/P<0;if(P=isNaN(P)?l:L(Math.abs(P),T),_&&(P=gG(P)),ee&&+P==0&&p!=="+"&&(ee=!1),M=(ee?p==="("?p:s:p==="-"||p==="("?"":p)+M,q=(O==="s"&&!isNaN(P)&&md!==void 0?hA[8+md/3]:"")+q+(ee&&p==="("?")":""),B){for(J=-1,U=P.length;++J<U;)if(H=P.charCodeAt(J),48>H||H>57){q=(H===46?i+P.slice(J+1):P.slice(J))+q,P=P.slice(0,J);break}}}w&&!y&&(P=t(P,1/0));var Z=M.length+P.length+q.length,Q=Z<x?new Array(x-Z+1).join(h):"";switch(w&&y&&(P=t(Q+P,Q.length?x-q.length:1/0),Q=""),g){case"<":P=M+P+q+Q;break;case"=":P=M+Q+P+q;break;case"^":P=Q.slice(0,Z=Q.length>>1)+M+P+q+Q.slice(Z);break;default:P=Q+M+P+q;break}return a(P)}return C.toString=function(){return f+""},C}function c(f,d){var h=Math.max(-8,Math.min(8,Math.floor(pu(d)/3)))*3,g=Math.pow(10,-h),p=u((f=Of(f),f.type="f",f),{suffix:hA[8+h/3]});return function(m){return p(g*m)}}return{format:u,formatPrefix:c}}var T0,Ub,F6;bG({thousands:",",grouping:[3],currency:["$",""]});function bG(e){return T0=xG(e),Ub=T0.format,F6=T0.formatPrefix,T0}function wG(e){return Math.max(0,-pu(Math.abs(e)))}function _G(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pu(t)/3)))*3-pu(Math.abs(e)))}function SG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pu(t)-pu(e))+1}function R6(e,t,r,n){var i=B2(e,t,r),a;switch(n=Of(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=_G(i,o))&&(n.precision=a),F6(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=SG(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=wG(i))&&(n.precision=a-(n.type==="%")*2);break}}return Ub(n)}function fs(e){var t=e.domain;return e.ticks=function(r){var n=t();return M2(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return R6(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=D2(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function gd(){var e=$b();return e.copy=function(){return ch(e,gd())},Ji.apply(e,arguments),fs(e)}function M6(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,pd),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return M6(e).unknown(t)},e=arguments.length?Array.from(e,pd):[0,1],fs(r)}function D6(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function dA(e){return Math.log(e)}function pA(e){return Math.exp(e)}function AG(e){return-Math.log(-e)}function TG(e){return-Math.exp(-e)}function EG(e){return isFinite(e)?+("1e"+e):e<0?0:e}function OG(e){return e===10?EG:e===Math.E?Math.exp:t=>Math.pow(e,t)}function PG(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vA(e){return(t,r)=>-e(-t,r)}function zb(e){const t=e(dA,pA),r=t.domain;let n=10,i,a;function o(){return i=PG(n),a=OG(n),r()[0]<0?(i=vA(i),a=vA(a),e(AG,TG)):e(dA,pA),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let d=i(u),h=i(c),g,p;const m=s==null?10:+s;let y=[];if(!(n%1)&&h-d<m){if(d=Math.floor(d),h=Math.ceil(h),u>0){for(;d<=h;++d)for(g=1;g<n;++g)if(p=d<0?g/a(-d):g*a(d),!(p<u)){if(p>c)break;y.push(p)}}else for(;d<=h;++d)for(g=n-1;g>=1;--g)if(p=d>0?g/a(-d):g*a(d),!(p<u)){if(p>c)break;y.push(p)}y.length*2<m&&(y=M2(u,c,m))}else y=M2(d,h,Math.min(h-d,m)).map(a);return f?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Of(l)).precision==null&&(l.trim=!0),l=Ub(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(D6(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function B6(){const e=zb(Ap()).domain([1,10]);return e.copy=()=>ch(e,B6()).base(e.base()),Ji.apply(e,arguments),e}function mA(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gA(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Wb(e){var t=1,r=e(mA(t),gA(t));return r.constant=function(n){return arguments.length?e(mA(t=+n),gA(t)):t},fs(r)}function $6(){var e=Wb(Ap());return e.copy=function(){return ch(e,$6()).constant(e.constant())},Ji.apply(e,arguments)}function yA(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function NG(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function CG(e){return e<0?-e*e:e*e}function Hb(e){var t=e(Xn,Xn),r=1;function n(){return r===1?e(Xn,Xn):r===.5?e(NG,CG):e(yA(r),yA(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},fs(t)}function Gb(){var e=Hb(Ap());return e.copy=function(){return ch(e,Gb()).exponent(e.exponent())},Ji.apply(e,arguments),e}function jG(){return Gb.apply(null,arguments).exponent(.5)}function xA(e){return Math.sign(e)*e*e}function kG(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function q6(){var e=$b(),t=[0,1],r=!1,n;function i(a){var o=kG(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(xA(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,pd)).map(xA)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return q6(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Ji.apply(i,arguments),fs(i)}function U6(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=MH(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[lh(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(rs),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return U6().domain(e).range(t).unknown(n)},Ji.apply(a,arguments)}function z6(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[lh(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return z6().domain([e,t]).range(i).unknown(a)},Ji.apply(fs(o),arguments)}function W6(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[lh(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return W6().domain(e).range(t).unknown(r)},Ji.apply(i,arguments)}const ty=new Date,ry=new Date;function cn(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>cn(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(ty.setTime(+a),ry.setTime(+o),e(ty),e(ry),Math.floor(r(ty,ry))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const yd=cn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);yd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?cn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):yd);yd.range;const so=1e3,Gi=so*60,lo=Gi*60,bo=lo*24,Vb=bo*7,bA=bo*30,ny=bo*365,Fs=cn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*so)},(e,t)=>(t-e)/so,e=>e.getUTCSeconds());Fs.range;const Kb=cn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*so)},(e,t)=>{e.setTime(+e+t*Gi)},(e,t)=>(t-e)/Gi,e=>e.getMinutes());Kb.range;const Yb=cn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Gi)},(e,t)=>(t-e)/Gi,e=>e.getUTCMinutes());Yb.range;const Xb=cn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*so-e.getMinutes()*Gi)},(e,t)=>{e.setTime(+e+t*lo)},(e,t)=>(t-e)/lo,e=>e.getHours());Xb.range;const Jb=cn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*lo)},(e,t)=>(t-e)/lo,e=>e.getUTCHours());Jb.range;const fh=cn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Gi)/bo,e=>e.getDate()-1);fh.range;const Tp=cn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bo,e=>e.getUTCDate()-1);Tp.range;const H6=cn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/bo,e=>Math.floor(e/bo));H6.range;function ol(e){return cn(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Gi)/Vb)}const Ep=ol(0),xd=ol(1),LG=ol(2),IG=ol(3),vu=ol(4),FG=ol(5),RG=ol(6);Ep.range;xd.range;LG.range;IG.range;vu.range;FG.range;RG.range;function sl(e){return cn(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Vb)}const Op=sl(0),bd=sl(1),MG=sl(2),DG=sl(3),mu=sl(4),BG=sl(5),$G=sl(6);Op.range;bd.range;MG.range;DG.range;mu.range;BG.range;$G.range;const Zb=cn(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Zb.range;const Qb=cn(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Qb.range;const wo=cn(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wo.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:cn(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});wo.range;const _o=cn(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());_o.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:cn(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});_o.range;function G6(e,t,r,n,i,a){const o=[[Fs,1,so],[Fs,5,5*so],[Fs,15,15*so],[Fs,30,30*so],[a,1,Gi],[a,5,5*Gi],[a,15,15*Gi],[a,30,30*Gi],[i,1,lo],[i,3,3*lo],[i,6,6*lo],[i,12,12*lo],[n,1,bo],[n,2,2*bo],[r,1,Vb],[t,1,bA],[t,3,3*bA],[e,1,ny]];function s(u,c,f){const d=c<u;d&&([u,c]=[c,u]);const h=f&&typeof f.range=="function"?f:l(u,c,f),g=h?h.range(u,+c+1):[];return d?g.reverse():g}function l(u,c,f){const d=Math.abs(c-u)/f,h=Fb(([,,m])=>m).right(o,d);if(h===o.length)return e.every(B2(u/ny,c/ny,f));if(h===0)return yd.every(Math.max(B2(u,c,f),1));const[g,p]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return g.every(p)}return[s,l]}const[qG,UG]=G6(_o,Qb,Op,H6,Jb,Yb),[zG,WG]=G6(wo,Zb,Ep,fh,Xb,Kb);function iy(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ay(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function jc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function HG(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=kc(i),c=Lc(i),f=kc(a),d=Lc(a),h=kc(o),g=Lc(o),p=kc(s),m=Lc(s),y=kc(l),x=Lc(l),w={a:H,A:ee,b:Z,B:Q,c:null,d:EA,e:EA,f:pV,g:AV,G:EV,H:fV,I:hV,j:dV,L:V6,m:vV,M:mV,p:le,q:N,Q:NA,s:CA,S:gV,u:yV,U:xV,V:bV,w:wV,W:_V,x:null,X:null,y:SV,Y:TV,Z:OV,"%":PA},T={a:I,A:R,b:D,B:G,c:null,d:OA,e:OA,f:jV,g:qV,G:zV,H:PV,I:NV,j:CV,L:Y6,m:kV,M:LV,p:ce,q:he,Q:NA,s:CA,S:IV,u:FV,U:RV,V:MV,w:DV,W:BV,x:null,X:null,y:$V,Y:UV,Z:WV,"%":PA},_={a:B,A:C,b:P,B:M,c:q,d:AA,e:AA,f:sV,g:SA,G:_A,H:TA,I:TA,j:nV,L:oV,m:rV,M:iV,p:L,q:tV,Q:uV,s:cV,S:aV,u:XG,U:JG,V:ZG,w:YG,W:QG,x:J,X:U,y:SA,Y:_A,Z:eV,"%":lV};w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),T.x=O(r,T),T.X=O(n,T),T.c=O(t,T);function O(ne,me){return function(Se){var ue=[],Ie=-1,ge=0,_e=ne.length,oe,Re,et;for(Se instanceof Date||(Se=new Date(+Se));++Ie<_e;)ne.charCodeAt(Ie)===37&&(ue.push(ne.slice(ge,Ie)),(Re=wA[oe=ne.charAt(++Ie)])!=null?oe=ne.charAt(++Ie):Re=oe==="e"?" ":"0",(et=me[oe])&&(oe=et(Se,Re)),ue.push(oe),ge=Ie+1);return ue.push(ne.slice(ge,Ie)),ue.join("")}}function A(ne,me){return function(Se){var ue=jc(1900,void 0,1),Ie=k(ue,ne,Se+="",0),ge,_e;if(Ie!=Se.length)return null;if("Q"in ue)return new Date(ue.Q);if("s"in ue)return new Date(ue.s*1e3+("L"in ue?ue.L:0));if(me&&!("Z"in ue)&&(ue.Z=0),"p"in ue&&(ue.H=ue.H%12+ue.p*12),ue.m===void 0&&(ue.m="q"in ue?ue.q:0),"V"in ue){if(ue.V<1||ue.V>53)return null;"w"in ue||(ue.w=1),"Z"in ue?(ge=ay(jc(ue.y,0,1)),_e=ge.getUTCDay(),ge=_e>4||_e===0?bd.ceil(ge):bd(ge),ge=Tp.offset(ge,(ue.V-1)*7),ue.y=ge.getUTCFullYear(),ue.m=ge.getUTCMonth(),ue.d=ge.getUTCDate()+(ue.w+6)%7):(ge=iy(jc(ue.y,0,1)),_e=ge.getDay(),ge=_e>4||_e===0?xd.ceil(ge):xd(ge),ge=fh.offset(ge,(ue.V-1)*7),ue.y=ge.getFullYear(),ue.m=ge.getMonth(),ue.d=ge.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),_e="Z"in ue?ay(jc(ue.y,0,1)).getUTCDay():iy(jc(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+ue.W*7-(_e+5)%7:ue.w+ue.U*7-(_e+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,ay(ue)):iy(ue)}}function k(ne,me,Se,ue){for(var Ie=0,ge=me.length,_e=Se.length,oe,Re;Ie<ge;){if(ue>=_e)return-1;if(oe=me.charCodeAt(Ie++),oe===37){if(oe=me.charAt(Ie++),Re=_[oe in wA?me.charAt(Ie++):oe],!Re||(ue=Re(ne,Se,ue))<0)return-1}else if(oe!=Se.charCodeAt(ue++))return-1}return ue}function L(ne,me,Se){var ue=u.exec(me.slice(Se));return ue?(ne.p=c.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function B(ne,me,Se){var ue=h.exec(me.slice(Se));return ue?(ne.w=g.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function C(ne,me,Se){var ue=f.exec(me.slice(Se));return ue?(ne.w=d.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function P(ne,me,Se){var ue=y.exec(me.slice(Se));return ue?(ne.m=x.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function M(ne,me,Se){var ue=p.exec(me.slice(Se));return ue?(ne.m=m.get(ue[0].toLowerCase()),Se+ue[0].length):-1}function q(ne,me,Se){return k(ne,t,me,Se)}function J(ne,me,Se){return k(ne,r,me,Se)}function U(ne,me,Se){return k(ne,n,me,Se)}function H(ne){return o[ne.getDay()]}function ee(ne){return a[ne.getDay()]}function Z(ne){return l[ne.getMonth()]}function Q(ne){return s[ne.getMonth()]}function le(ne){return i[+(ne.getHours()>=12)]}function N(ne){return 1+~~(ne.getMonth()/3)}function I(ne){return o[ne.getUTCDay()]}function R(ne){return a[ne.getUTCDay()]}function D(ne){return l[ne.getUTCMonth()]}function G(ne){return s[ne.getUTCMonth()]}function ce(ne){return i[+(ne.getUTCHours()>=12)]}function he(ne){return 1+~~(ne.getUTCMonth()/3)}return{format:function(ne){var me=O(ne+="",w);return me.toString=function(){return ne},me},parse:function(ne){var me=A(ne+="",!1);return me.toString=function(){return ne},me},utcFormat:function(ne){var me=O(ne+="",T);return me.toString=function(){return ne},me},utcParse:function(ne){var me=A(ne+="",!0);return me.toString=function(){return ne},me}}}var wA={"-":"",_:" ",0:"0"},yn=/^\s*\d+/,GG=/^%/,VG=/[\\^$*+?|[\]().{}]/g;function Vt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function KG(e){return e.replace(VG,"\\$&")}function kc(e){return new RegExp("^(?:"+e.map(KG).join("|")+")","i")}function Lc(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function YG(e,t,r){var n=yn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function XG(e,t,r){var n=yn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function JG(e,t,r){var n=yn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ZG(e,t,r){var n=yn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function QG(e,t,r){var n=yn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function _A(e,t,r){var n=yn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function SA(e,t,r){var n=yn.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eV(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function tV(e,t,r){var n=yn.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function rV(e,t,r){var n=yn.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function AA(e,t,r){var n=yn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function nV(e,t,r){var n=yn.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function TA(e,t,r){var n=yn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function iV(e,t,r){var n=yn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function aV(e,t,r){var n=yn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function oV(e,t,r){var n=yn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function sV(e,t,r){var n=yn.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function lV(e,t,r){var n=GG.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function uV(e,t,r){var n=yn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function cV(e,t,r){var n=yn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function EA(e,t){return Vt(e.getDate(),t,2)}function fV(e,t){return Vt(e.getHours(),t,2)}function hV(e,t){return Vt(e.getHours()%12||12,t,2)}function dV(e,t){return Vt(1+fh.count(wo(e),e),t,3)}function V6(e,t){return Vt(e.getMilliseconds(),t,3)}function pV(e,t){return V6(e,t)+"000"}function vV(e,t){return Vt(e.getMonth()+1,t,2)}function mV(e,t){return Vt(e.getMinutes(),t,2)}function gV(e,t){return Vt(e.getSeconds(),t,2)}function yV(e){var t=e.getDay();return t===0?7:t}function xV(e,t){return Vt(Ep.count(wo(e)-1,e),t,2)}function K6(e){var t=e.getDay();return t>=4||t===0?vu(e):vu.ceil(e)}function bV(e,t){return e=K6(e),Vt(vu.count(wo(e),e)+(wo(e).getDay()===4),t,2)}function wV(e){return e.getDay()}function _V(e,t){return Vt(xd.count(wo(e)-1,e),t,2)}function SV(e,t){return Vt(e.getFullYear()%100,t,2)}function AV(e,t){return e=K6(e),Vt(e.getFullYear()%100,t,2)}function TV(e,t){return Vt(e.getFullYear()%1e4,t,4)}function EV(e,t){var r=e.getDay();return e=r>=4||r===0?vu(e):vu.ceil(e),Vt(e.getFullYear()%1e4,t,4)}function OV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Vt(t/60|0,"0",2)+Vt(t%60,"0",2)}function OA(e,t){return Vt(e.getUTCDate(),t,2)}function PV(e,t){return Vt(e.getUTCHours(),t,2)}function NV(e,t){return Vt(e.getUTCHours()%12||12,t,2)}function CV(e,t){return Vt(1+Tp.count(_o(e),e),t,3)}function Y6(e,t){return Vt(e.getUTCMilliseconds(),t,3)}function jV(e,t){return Y6(e,t)+"000"}function kV(e,t){return Vt(e.getUTCMonth()+1,t,2)}function LV(e,t){return Vt(e.getUTCMinutes(),t,2)}function IV(e,t){return Vt(e.getUTCSeconds(),t,2)}function FV(e){var t=e.getUTCDay();return t===0?7:t}function RV(e,t){return Vt(Op.count(_o(e)-1,e),t,2)}function X6(e){var t=e.getUTCDay();return t>=4||t===0?mu(e):mu.ceil(e)}function MV(e,t){return e=X6(e),Vt(mu.count(_o(e),e)+(_o(e).getUTCDay()===4),t,2)}function DV(e){return e.getUTCDay()}function BV(e,t){return Vt(bd.count(_o(e)-1,e),t,2)}function $V(e,t){return Vt(e.getUTCFullYear()%100,t,2)}function qV(e,t){return e=X6(e),Vt(e.getUTCFullYear()%100,t,2)}function UV(e,t){return Vt(e.getUTCFullYear()%1e4,t,4)}function zV(e,t){var r=e.getUTCDay();return e=r>=4||r===0?mu(e):mu.ceil(e),Vt(e.getUTCFullYear()%1e4,t,4)}function WV(){return"+0000"}function PA(){return"%"}function NA(e){return+e}function CA(e){return Math.floor(+e/1e3)}var Dl,J6,Z6;HV({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function HV(e){return Dl=HG(e),J6=Dl.format,Dl.parse,Z6=Dl.utcFormat,Dl.utcParse,Dl}function GV(e){return new Date(e)}function VV(e){return e instanceof Date?+e:+new Date(+e)}function e5(e,t,r,n,i,a,o,s,l,u){var c=$b(),f=c.invert,d=c.domain,h=u(".%L"),g=u(":%S"),p=u("%I:%M"),m=u("%I %p"),y=u("%a %d"),x=u("%b %d"),w=u("%B"),T=u("%Y");function _(O){return(l(O)<O?h:s(O)<O?g:o(O)<O?p:a(O)<O?m:n(O)<O?i(O)<O?y:x:r(O)<O?w:T)(O)}return c.invert=function(O){return new Date(f(O))},c.domain=function(O){return arguments.length?d(Array.from(O,VV)):d().map(GV)},c.ticks=function(O){var A=d();return e(A[0],A[A.length-1],O??10)},c.tickFormat=function(O,A){return A==null?_:u(A)},c.nice=function(O){var A=d();return(!O||typeof O.range!="function")&&(O=t(A[0],A[A.length-1],O??10)),O?d(D6(A,O)):c},c.copy=function(){return ch(c,e5(e,t,r,n,i,a,o,s,l,u))},c}function KV(){return Ji.apply(e5(zG,WG,wo,Zb,Ep,fh,Xb,Kb,Fs,J6).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function YV(){return Ji.apply(e5(qG,UG,_o,Qb,Op,Tp,Jb,Yb,Fs,Z6).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pp(){var e=0,t=1,r,n,i,a,o=Xn,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(d){var h,g;return arguments.length?([h,g]=d,o=f(h,g),u):[o(0),o(1)]}}return u.range=c(Hu),u.rangeRound=c(Bb),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function hs(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Q6(){var e=fs(Pp()(Xn));return e.copy=function(){return hs(e,Q6())},Oo.apply(e,arguments)}function e8(){var e=zb(Pp()).domain([1,10]);return e.copy=function(){return hs(e,e8()).base(e.base())},Oo.apply(e,arguments)}function t8(){var e=Wb(Pp());return e.copy=function(){return hs(e,t8()).constant(e.constant())},Oo.apply(e,arguments)}function t5(){var e=Hb(Pp());return e.copy=function(){return hs(e,t5()).exponent(e.exponent())},Oo.apply(e,arguments)}function XV(){return t5.apply(null,arguments).exponent(.5)}function r8(){var e=[],t=Xn;function r(n){if(n!=null&&!isNaN(n=+n))return t((lh(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(rs),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>RH(e,a/n))},r.copy=function(){return r8(t).domain(e)},Oo.apply(r,arguments)}function Np(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=Xn,c,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+c(p))-a)*(n*p<n*a?s:l),u(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(p){return arguments.length?(f=!!p,h):f},h.interpolator=function(p){return arguments.length?(u=p,h):u};function g(p){return function(m){var y,x,w;return arguments.length?([y,x,w]=m,u=lG(p,[y,x,w]),h):[u(0),u(.5),u(1)]}}return h.range=g(Hu),h.rangeRound=g(Bb),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return c=p,i=p(e),a=p(t),o=p(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function n8(){var e=fs(Np()(Xn));return e.copy=function(){return hs(e,n8())},Oo.apply(e,arguments)}function i8(){var e=zb(Np()).domain([.1,1,10]);return e.copy=function(){return hs(e,i8()).base(e.base())},Oo.apply(e,arguments)}function a8(){var e=Wb(Np());return e.copy=function(){return hs(e,a8()).constant(e.constant())},Oo.apply(e,arguments)}function r5(){var e=Hb(Np());return e.copy=function(){return hs(e,r5()).exponent(e.exponent())},Oo.apply(e,arguments)}function JV(){return r5.apply(null,arguments).exponent(.5)}const jA=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Sf,scaleDiverging:n8,scaleDivergingLog:i8,scaleDivergingPow:r5,scaleDivergingSqrt:JV,scaleDivergingSymlog:a8,scaleIdentity:M6,scaleImplicit:$2,scaleLinear:gd,scaleLog:B6,scaleOrdinal:Rb,scalePoint:ef,scalePow:Gb,scaleQuantile:U6,scaleQuantize:z6,scaleRadial:q6,scaleSequential:Q6,scaleSequentialLog:e8,scaleSequentialPow:t5,scaleSequentialQuantile:r8,scaleSequentialSqrt:XV,scaleSequentialSymlog:t8,scaleSqrt:jG,scaleSymlog:$6,scaleThreshold:W6,scaleTime:KV,scaleUtc:YV,tickFormat:R6},Symbol.toStringTag,{value:"Module"}));var oy,kA;function Cp(){if(kA)return oy;kA=1;var e=Uu();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(u===void 0?l===l&&!e(l):i(l,u)))var u=l,c=s}return c}return oy=t,oy}var sy,LA;function o8(){if(LA)return sy;LA=1;function e(t,r){return t>r}return sy=e,sy}var ly,IA;function ZV(){if(IA)return ly;IA=1;var e=Cp(),t=o8(),r=Wu();function n(i){return i&&i.length?e(i,r,t):void 0}return ly=n,ly}var QV=ZV();const jp=ar(QV);var uy,FA;function s8(){if(FA)return uy;FA=1;function e(t,r){return t<r}return uy=e,uy}var cy,RA;function eK(){if(RA)return cy;RA=1;var e=Cp(),t=s8(),r=Wu();function n(i){return i&&i.length?e(i,r,t):void 0}return cy=n,cy}var tK=eK();const kp=ar(tK);var fy,MA;function rK(){if(MA)return fy;MA=1;var e=yb(),t=Wa(),r=v6(),n=hi();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return fy=i,fy}var hy,DA;function nK(){if(DA)return hy;DA=1;var e=d6(),t=rK();function r(n,i){return e(t(n,i),1)}return hy=r,hy}var iK=nK();const aK=ar(iK);var dy,BA;function oK(){if(BA)return dy;BA=1;var e=jb();function t(r,n){return e(r,n)}return dy=t,dy}var sK=oK();const hh=ar(sK);var Gu=1e9,lK={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},i5,Cr=!0,Yi="[DecimalError] ",Ws=Yi+"Invalid argument: ",n5=Yi+"Exponent out of range: ",Vu=Math.floor,Ns=Math.pow,uK=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Oi,pn=1e7,Or=7,l8=9007199254740991,wd=Vu(l8/Or),ct={};ct.absoluteValue=ct.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ct.comparedTo=ct.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ct.decimalPlaces=ct.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Or;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ct.dividedBy=ct.div=function(e){return mo(this,new this.constructor(e))};ct.dividedToIntegerBy=ct.idiv=function(e){var t=this,r=t.constructor;return br(mo(t,new r(e),0,1),r.precision)};ct.equals=ct.eq=function(e){return!this.cmp(e)};ct.exponent=function(){return Qr(this)};ct.greaterThan=ct.gt=function(e){return this.cmp(e)>0};ct.greaterThanOrEqualTo=ct.gte=function(e){return this.cmp(e)>=0};ct.isInteger=ct.isint=function(){return this.e>this.d.length-2};ct.isNegative=ct.isneg=function(){return this.s<0};ct.isPositive=ct.ispos=function(){return this.s>0};ct.isZero=function(){return this.s===0};ct.lessThan=ct.lt=function(e){return this.cmp(e)<0};ct.lessThanOrEqualTo=ct.lte=function(e){return this.cmp(e)<1};ct.logarithm=ct.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Oi))throw Error(Yi+"NaN");if(r.s<1)throw Error(Yi+(r.s?"NaN":"-Infinity"));return r.eq(Oi)?new n(0):(Cr=!1,t=mo(Pf(r,a),Pf(e,a),a),Cr=!0,br(t,i))};ct.minus=ct.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?f8(t,e):u8(t,(e.s=-e.s,e))};ct.modulo=ct.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Yi+"NaN");return r.s?(Cr=!1,t=mo(r,e,0,1).times(e),Cr=!0,r.minus(t)):br(new n(r),i)};ct.naturalExponential=ct.exp=function(){return c8(this)};ct.naturalLogarithm=ct.ln=function(){return Pf(this)};ct.negated=ct.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ct.plus=ct.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?u8(t,e):f8(t,(e.s=-e.s,e))};ct.precision=ct.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Ws+e);if(t=Qr(i)+1,n=i.d.length-1,r=n*Or+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ct.squareRoot=ct.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Yi+"NaN")}for(e=Qr(s),Cr=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Fa(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Vu((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(mo(s,a,o+2)).times(.5),Fa(a.d).slice(0,o)===(t=Fa(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(br(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Cr=!0,br(n,r)};ct.times=ct.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,d=c.d,h=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=d.length,u=h.length,l<u&&(a=d,d=h,h=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%pn|0,t=s/pn|0;a[i]=(a[i]+t)%pn|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Cr?br(e,f.precision):e};ct.toDecimalPlaces=ct.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:($a(e,0,Gu),t===void 0?t=n.rounding:$a(t,0,8),br(r,e+Qr(r)+1,t))};ct.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Xs(n,!0):($a(e,0,Gu),t===void 0?t=i.rounding:$a(t,0,8),n=br(new i(n),e+1,t),r=Xs(n,!0,e+1)),r};ct.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Xs(i):($a(e,0,Gu),t===void 0?t=a.rounding:$a(t,0,8),n=br(new a(i),e+Qr(i)+1,t),r=Xs(n.abs(),!1,e+Qr(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ct.toInteger=ct.toint=function(){var e=this,t=e.constructor;return br(new t(e),Qr(e)+1,t.rounding)};ct.toNumber=function(){return+this};ct.toPower=ct.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Oi);if(s=new l(s),!s.s){if(e.s<1)throw Error(Yi+"Infinity");return s}if(s.eq(Oi))return s;if(n=l.precision,e.eq(Oi))return br(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=l8){for(i=new l(Oi),t=Math.ceil(n/Or+4),Cr=!1;r%2&&(i=i.times(s),qA(i.d,t)),r=Vu(r/2),r!==0;)s=s.times(s),qA(s.d,t);return Cr=!0,e.s<0?new l(Oi).div(i):br(i,n)}}else if(a<0)throw Error(Yi+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Cr=!1,i=e.times(Pf(s,n+u)),Cr=!0,i=c8(i),i.s=a,i};ct.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=Qr(i),n=Xs(i,r<=a.toExpNeg||r>=a.toExpPos)):($a(e,1,Gu),t===void 0?t=a.rounding:$a(t,0,8),i=br(new a(i),e,t),r=Qr(i),n=Xs(i,e<=r||r<=a.toExpNeg,e)),n};ct.toSignificantDigits=ct.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):($a(e,1,Gu),t===void 0?t=n.rounding:$a(t,0,8)),br(new n(r),e,t)};ct.toString=ct.valueOf=ct.val=ct.toJSON=ct[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Qr(e),r=e.constructor;return Xs(e,t<=r.toExpNeg||t>=r.toExpPos)};function u8(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),Cr?br(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/Or),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/pn|0,l[a]%=pn;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Cr?br(t,f):t}function $a(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Ws+e)}function Fa(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Or-n.length,r&&(a+=Vo(r)),a+=n;o=e[t],n=o+"",r=Or-n.length,r&&(a+=Vo(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var mo=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%pn|0,o=a/pn|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*pn+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,d,h,g,p,m,y,x,w,T,_,O,A,k,L=n.constructor,B=n.s==i.s?1:-1,C=n.d,P=i.d;if(!n.s)return new L(n);if(!i.s)throw Error(Yi+"Division by zero");for(l=n.e-i.e,A=P.length,_=C.length,h=new L(B),g=h.d=[],u=0;P[u]==(C[u]||0);)++u;if(P[u]>(C[u]||0)&&--l,a==null?x=a=L.precision:o?x=a+(Qr(n)-Qr(i))+1:x=a,x<0)return new L(0);if(x=x/Or+2|0,u=0,A==1)for(c=0,P=P[0],x++;(u<_||c)&&x--;u++)w=c*pn+(C[u]||0),g[u]=w/P|0,c=w%P|0;else{for(c=pn/(P[0]+1)|0,c>1&&(P=e(P,c),C=e(C,c),A=P.length,_=C.length),T=A,p=C.slice(0,A),m=p.length;m<A;)p[m++]=0;k=P.slice(),k.unshift(0),O=P[0],P[1]>=pn/2&&++O;do c=0,s=t(P,p,A,m),s<0?(y=p[0],A!=m&&(y=y*pn+(p[1]||0)),c=y/O|0,c>1?(c>=pn&&(c=pn-1),f=e(P,c),d=f.length,m=p.length,s=t(f,p,d,m),s==1&&(c--,r(f,A<d?k:P,d))):(c==0&&(s=c=1),f=P.slice()),d=f.length,d<m&&f.unshift(0),r(p,f,m),s==-1&&(m=p.length,s=t(P,p,A,m),s<1&&(c++,r(p,A<m?k:P,m))),m=p.length):s===0&&(c++,p=[0]),g[u++]=c,s&&p[0]?p[m++]=C[T]||0:(p=[C[T]],m=1);while((T++<_||p[0]!==void 0)&&x--)}return g[0]||g.shift(),h.e=l,br(h,o?a+Qr(h)+1:a)}})();function c8(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(Qr(e)>16)throw Error(n5+Qr(e));if(!e.s)return new c(Oi);for(Cr=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Ns(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c(Oi),c.precision=s;;){if(i=br(i.times(e),s),r=r.times(++l),o=a.plus(mo(i,r,s)),Fa(o.d).slice(0,s)===Fa(a.d).slice(0,s)){for(;u--;)a=br(a.times(a),s);return c.precision=f,t==null?(Cr=!0,br(a,f)):a}a=o}}function Qr(e){for(var t=e.e*Or,r=e.d[0];r>=10;r/=10)t++;return t}function py(e,t,r){if(t>e.LN10.sd())throw Cr=!0,r&&(e.precision=r),Error(Yi+"LN10 precision limit exceeded");return br(new e(e.LN10),t)}function Vo(e){for(var t="";e--;)t+="0";return t}function Pf(e,t){var r,n,i,a,o,s,l,u,c,f=1,d=10,h=e,g=h.d,p=h.constructor,m=p.precision;if(h.s<1)throw Error(Yi+(h.s?"NaN":"-Infinity"));if(h.eq(Oi))return new p(0);if(t==null?(Cr=!1,u=m):u=t,h.eq(10))return t==null&&(Cr=!0),py(p,u);if(u+=d,p.precision=u,r=Fa(g),n=r.charAt(0),a=Qr(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Fa(h.d),n=r.charAt(0),f++;a=Qr(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return l=py(p,u+2,m).times(a+""),h=Pf(new p(n+"."+r.slice(1)),u-d).plus(l),p.precision=m,t==null?(Cr=!0,br(h,m)):h;for(s=o=h=mo(h.minus(Oi),h.plus(Oi),u),c=br(h.times(h),u),i=3;;){if(o=br(o.times(c),u),l=s.plus(mo(o,new p(i),u)),Fa(l.d).slice(0,u)===Fa(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(py(p,u+2,m).times(a+""))),s=mo(s,new p(f),u),p.precision=m,t==null?(Cr=!0,br(s,m)):s;s=l,i+=2}}function $A(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Vu(r/Or),e.d=[],n=(r+1)%Or,r<0&&(n+=Or),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Or;n<i;)e.d.push(+t.slice(n,n+=Or));t=t.slice(n),n=Or-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Cr&&(e.e>wd||e.e<-wd))throw Error(n5+r)}else e.s=0,e.e=0,e.d=[0];return e}function br(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Or,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Or),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=Or,i=n-Or+o}if(r!==void 0&&(a=Ns(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Ns(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=Qr(e),f.length=1,t=t-a-1,f[0]=Ns(10,(Or-t%Or)%Or),e.e=Vu(-t/Or)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Ns(10,Or-n),f[c]=i>0?(u/Ns(10,o-i)%Ns(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==pn&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=pn)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Cr&&(e.e>wd||e.e<-wd))throw Error(n5+Qr(e));return e}function f8(e,t){var r,n,i,a,o,s,l,u,c,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Cr?br(t,h):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(h/Or),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=pn-1;--l[a],l[i]+=pn}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,Cr?br(t,h):t):new d(0)}function Xs(e,t,r){var n,i=Qr(e),a=Fa(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Vo(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Vo(-i-1)+a,r&&(n=r-o)>0&&(a+=Vo(n))):i>=o?(a+=Vo(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Vo(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Vo(n))),e.s<0?"-"+a:a}function qA(e,t){if(e.length>t)return e.length=t,!0}function h8(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Ws+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return $A(o,a.toString())}else if(typeof a!="string")throw Error(Ws+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,uK.test(a))$A(o,a);else throw Error(Ws+a)}if(i.prototype=ct,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=h8,i.config=i.set=cK,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function cK(e){if(!e||typeof e!="object")throw Error(Yi+"Object expected");var t,r,n,i=["precision",1,Gu,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Vu(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Ws+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Ws+r+": "+n);return this}var i5=h8(lK);Oi=new i5(1);const vr=i5;function fK(e){return vK(e)||pK(e)||dK(e)||hK()}function hK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
375
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dK(e,t){if(e){if(typeof e=="string")return W2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return W2(e,t)}}function pK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function vK(e){if(Array.isArray(e))return W2(e)}function W2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var mK=function(t){return t},d8={},p8=function(t){return t===d8},UA=function(t){return function r(){return arguments.length===0||arguments.length===1&&p8(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},gK=function e(t,r){return t===1?r:UA(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==d8}).length;return o>=t?r.apply(void 0,i):e(t-o,UA(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return p8(f)?l.shift():f});return r.apply(void 0,fK(c).concat(l))}))})},Lp=function(t){return gK(t.length,t)},H2=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},yK=Lp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),xK=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return mK;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},G2=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},v8=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function bK(e){var t;return e===0?t=1:t=Math.floor(new vr(e).abs().log(10).toNumber())+1,t}function wK(e,t,r){for(var n=new vr(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var _K=Lp(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),SK=Lp(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),AK=Lp(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Ip={rangeStep:wK,getDigitCount:bK,interpolateNumber:_K,uninterpolateNumber:SK,uninterpolateTruncation:AK};function V2(e){return OK(e)||EK(e)||m8(e)||TK()}function TK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
376
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EK(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function OK(e){if(Array.isArray(e))return K2(e)}function Nf(e,t){return CK(e)||NK(e,t)||m8(e,t)||PK()}function PK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
377
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m8(e,t){if(e){if(typeof e=="string")return K2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return K2(e,t)}}function K2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NK(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function CK(e){if(Array.isArray(e))return e}function g8(e){var t=Nf(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function y8(e,t,r){if(e.lte(0))return new vr(0);var n=Ip.getDigitCount(e.toNumber()),i=new vr(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new vr(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new vr(Math.ceil(l))}function jK(e,t,r){var n=1,i=new vr(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new vr(10).pow(Ip.getDigitCount(e)-1),i=new vr(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new vr(Math.floor(e)))}else e===0?i=new vr(Math.floor((t-1)/2)):r||(i=new vr(Math.floor(e)));var o=Math.floor((t-1)/2),s=xK(yK(function(l){return i.add(new vr(l-o).mul(n)).toNumber()}),H2);return s(0,t)}function x8(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new vr(0),tickMin:new vr(0),tickMax:new vr(0)};var a=y8(new vr(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new vr(0):(o=new vr(e).add(t).div(2),o=o.sub(new vr(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new vr(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?x8(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new vr(s).mul(a)),tickMax:o.add(new vr(l).mul(a))})}function kK(e){var t=Nf(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=g8([r,n]),l=Nf(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(V2(H2(0,i-1).map(function(){return 1/0}))):[].concat(V2(H2(0,i-1).map(function(){return-1/0})),[c]);return r>n?G2(f):f}if(u===c)return jK(u,i,a);var d=x8(u,c,o,a),h=d.step,g=d.tickMin,p=d.tickMax,m=Ip.rangeStep(g,p.add(new vr(.1).mul(h)),h);return r>n?G2(m):m}function LK(e,t){var r=Nf(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=g8([n,i]),s=Nf(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=y8(new vr(u).sub(l).div(c-1),a,0),d=[].concat(V2(Ip.rangeStep(new vr(l),new vr(u).sub(new vr(.99).mul(f)),f)),[u]);return n>i?G2(d):d}var IK=v8(kK),FK=v8(LK),RK=process.env.NODE_ENV==="production",vy="Invariant failed";function si(e,t){if(RK)throw new Error(vy);var r=typeof t=="function"?t():t,n=r?"".concat(vy,": ").concat(r):vy;throw new Error(n)}var MK=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function gu(e){"@babel/helpers - typeof";return gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gu(e)}function _d(){return _d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_d.apply(this,arguments)}function DK(e,t){return UK(e)||qK(e,t)||$K(e,t)||BK()}function BK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
378
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $K(e,t){if(e){if(typeof e=="string")return zA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zA(e,t)}}function zA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function UK(e){if(Array.isArray(e))return e}function zK(e,t){if(e==null)return{};var r=WK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function HK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_8(n.key),n)}}function VK(e,t,r){return t&&GK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function KK(e,t,r){return t=Sd(t),YK(e,b8()?Reflect.construct(t,r||[],Sd(e).constructor):t.apply(e,r))}function YK(e,t){if(t&&(gu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XK(e)}function XK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(b8=function(){return!!e})()}function Sd(e){return Sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sd(e)}function JK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y2(e,t)}function Y2(e,t){return Y2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Y2(e,t)}function w8(e,t,r){return t=_8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _8(e){var t=ZK(e,"string");return gu(t)=="symbol"?t:t+""}function ZK(e,t){if(gu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dh=(function(e){function t(){return HK(this,t),KK(this,t,arguments)}return JK(t,e),VK(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,d=zK(n,MK),h=mt(d,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?si(!1,'ErrorBar requires Axis type property to be "number".'):si());var g=l.map(function(p){var m=u(p,s),y=m.x,x=m.y,w=m.value,T=m.errorVal;if(!T)return null;var _=[],O,A;if(Array.isArray(T)){var k=DK(T,2);O=k[0],A=k[1]}else O=A=T;if(a==="vertical"){var L=c.scale,B=x+i,C=B+o,P=B-o,M=L(w-O),q=L(w+A);_.push({x1:q,y1:C,x2:q,y2:P}),_.push({x1:M,y1:B,x2:q,y2:B}),_.push({x1:M,y1:C,x2:M,y2:P})}else if(a==="horizontal"){var J=f.scale,U=y+i,H=U-o,ee=U+o,Z=J(w-O),Q=J(w+A);_.push({x1:H,y1:Q,x2:ee,y2:Q}),_.push({x1:U,y1:Z,x2:U,y2:Q}),_.push({x1:H,y1:Z,x2:ee,y2:Z})}return V.createElement(nr,_d({className:"recharts-errorBar",key:"bar-".concat(_.map(function(le){return"".concat(le.x1,"-").concat(le.x2,"-").concat(le.y1,"-").concat(le.y2)}))},h),_.map(function(le){return V.createElement("line",_d({},le,{key:"line-".concat(le.x1,"-").concat(le.x2,"-").concat(le.y1,"-").concat(le.y2)}))}))});return V.createElement(nr,{className:"recharts-errorBars"},g)}}])})(V.Component);w8(dh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});w8(dh,"displayName","ErrorBar");function Cf(e){"@babel/helpers - typeof";return Cf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cf(e)}function WA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function As(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(r),!0).forEach(function(n){QK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QK(e,t,r){return t=eY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eY(e){var t=tY(e,"string");return Cf(t)=="symbol"?t:t+""}function tY(e,t){if(Cf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S8=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Si(r,Us);if(!o)return null;var s=Us.defaultProps,l=s!==void 0?As(As({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var d=f.item,h=f.props,g=h.sectors||h.data||[];return c.concat(g.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):u=(n||[]).map(function(c){var f=c.item,d=f.type.defaultProps,h=d!==void 0?As(As({},d),f.props):{},g=h.dataKey,p=h.name,m=h.legendType,y=h.hide;return{inactive:y,dataKey:g,type:l.iconType||m||"square",color:a5(f),value:p||g,payload:h}}),As(As(As({},l),Us.getWithHeight(o,i)),{},{payload:u,item:o})};function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}function HA(e){return aY(e)||iY(e)||nY(e)||rY()}function rY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
379
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nY(e,t){if(e){if(typeof e=="string")return X2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return X2(e,t)}}function iY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aY(e){if(Array.isArray(e))return X2(e)}function X2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(r),!0).forEach(function(n){au(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function au(e,t,r){return t=oY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oY(e){var t=sY(e,"string");return jf(t)=="symbol"?t:t+""}function sY(e,t){if(jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zn(e,t,r){return Dt(e)||Dt(t)?r:un(t)?Vi(e,t,r):Tt(t)?t(e):r}function tf(e,t,r,n){var i=aK(e,function(s){return Zn(s,t)});if(r==="number"){var a=i.filter(function(s){return rt(s)||parseFloat(s)});return a.length?[kp(a),jp(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!Dt(s)}):i;return o.map(function(s){return un(s)||s instanceof Date?s:""})}var lY=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,d=u>=s-1?i[0].coordinate:i[u+1].coordinate,h=void 0;if(ya(f-c)!==ya(d-f)){var g=[];if(ya(d-f)===ya(l[1]-l[0])){h=d;var p=f+l[1]-l[0];g[0]=Math.min(p,(p+c)/2),g[1]=Math.max(p,(p+c)/2)}else{h=c;var m=d+l[1]-l[0];g[0]=Math.min(f,(m+f)/2),g[1]=Math.max(f,(m+f)/2)}var y=[Math.min(f,(h+f)/2),Math.max(f,(h+f)/2)];if(t>y[0]&&t<=y[1]||t>=g[0]&&t<=g[1]){o=i[u].index;break}}else{var x=Math.min(c,d),w=Math.max(c,d);if(t>(x+f)/2&&t<=(w+f)/2){o=i[u].index;break}}}else for(var T=0;T<s;T++)if(T===0&&t<=(n[T].coordinate+n[T+1].coordinate)/2||T>0&&T<s-1&&t>(n[T].coordinate+n[T-1].coordinate)/2&&t<=(n[T].coordinate+n[T+1].coordinate)/2||T===s-1&&t>(n[T].coordinate+n[T-1].coordinate)/2){o=n[T].index;break}return o},a5=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Mr(Mr({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},uY=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),d=0,h=f.length;d<h;d++){var g=c[f[d]],p=g.items,m=g.cateAxisId,y=p.filter(function(A){return po(A.type).indexOf("Bar")>=0});if(y&&y.length){var x=y[0].type.defaultProps,w=x!==void 0?Mr(Mr({},x),y[0].props):y[0].props,T=w.barSize,_=w[m];o[_]||(o[_]=[]);var O=Dt(T)?r:T;o[_].push({item:y[0],stackList:y.slice(1),barSize:Dt(O)?void 0:xa(O,n,0)})}}return o},cY=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=xa(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/l,g=o.reduce(function(T,_){return T+_.barSize||0},0);g+=(l-1)*u,g>=i&&(g-=(l-1)*u,u=0),g>=i&&h>0&&(d=!0,h*=.9,g=l*h);var p=(i-g)/2>>0,m={offset:p-u,size:0};c=o.reduce(function(T,_){var O={item:_.item,position:{offset:m.offset+m.size+u,size:d?h:_.barSize}},A=[].concat(HA(T),[O]);return m=A[A.length-1].position,_.stackList&&_.stackList.length&&_.stackList.forEach(function(k){A.push({item:k,position:m})}),A},f)}else{var y=xa(n,i,0,!0);i-2*y-(l-1)*u<=0&&(u=0);var x=(i-2*y-(l-1)*u)/l;x>1&&(x>>=0);var w=s===+s?Math.min(x,s):x;c=o.reduce(function(T,_,O){var A=[].concat(HA(T),[{item:_.item,position:{offset:y+(x+u)*O+(x-w)/2,size:w}}]);return _.stackList&&_.stackList.length&&_.stackList.forEach(function(k){A.push({item:k,position:A[A.length-1].position})}),A},f)}return c},fY=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=S8({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,d=c.height,h=u.align,g=u.verticalAlign,p=u.layout;if((p==="vertical"||p==="horizontal"&&g==="middle")&&h!=="center"&&rt(t[h]))return Mr(Mr({},t),{},au({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&g!=="middle"&&rt(t[g]))return Mr(Mr({},t),{},au({},g,t[g]+(d||0)))}return t},hY=function(t,r,n){return Dt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},A8=function(t,r,n,i,a){var o=r.props.children,s=Ki(o,dh).filter(function(u){return hY(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=Zn(c,n);if(Dt(f))return u;var d=Array.isArray(f)?[kp(f),jp(f)]:[f,f],h=l.reduce(function(g,p){var m=Zn(c,p,0),y=d[0]-Math.abs(Array.isArray(m)?m[0]:m),x=d[1]+Math.abs(Array.isArray(m)?m[1]:m);return[Math.min(y,g[0]),Math.max(x,g[1])]},[1/0,-1/0]);return[Math.min(h[0],u[0]),Math.max(h[1],u[1])]},[1/0,-1/0])}return null},dY=function(t,r,n,i,a){var o=r.map(function(s){return A8(t,s,n,a,i)}).filter(function(s){return!Dt(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},T8=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&A8(t,l,u,i)||tf(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},E8=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},O8=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},uo=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?ya(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+u,value:f,offset:u}});return c.filter(function(f){return!ah(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+u,value:f,index:d,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,d){return{coordinate:i(f)+u,value:a?a[f]:f,index:d,offset:u}})},my=new WeakMap,E0=function(t,r){if(typeof r!="function")return t;my.has(t)||my.set(t,new WeakMap);var n=my.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},P8=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Sf(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:gd(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:ef(),realScaleType:"point"}:a==="category"?{scale:Sf(),realScaleType:"band"}:{scale:gd(),realScaleType:"linear"};if(Ys(i)){var l="scale".concat(gp(i));return{scale:(jA[l]||ef)(),realScaleType:jA[l]?l:"point"}}return Tt(i)?{scale:i}:{scale:ef(),realScaleType:"point"}},VA=1e-4,N8=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-VA,o=Math.max(i[0],i[1])+VA,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},pY=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},vY=function(t,r){if(!r||r.length!==2||!rt(r[0])||!rt(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!rt(t[0])||t[0]<n)&&(a[0]=n),(!rt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},mY=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=ah(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},gY=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=ah(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},yY={sign:mY,expand:aU,none:lu,silhouette:oU,wiggle:sU,positive:gY},xY=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=yY[n],o=iU().keys(i).value(function(s,l){return+Zn(s,l,0)}).order(E2).offset(a);return o(t)},bY=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,d){var h,g=(h=d.type)!==null&&h!==void 0&&h.defaultProps?Mr(Mr({},d.type.defaultProps),d.props):d.props,p=g.stackId,m=g.hide;if(m)return f;var y=g[n],x=f[y]||{hasStack:!1,stackGroups:{}};if(un(p)){var w=x.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[p]=w}else x.stackGroups[oh("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return Mr(Mr({},f),{},au({},y,x))},l),c={};return Object.keys(u).reduce(function(f,d){var h=u[d];if(h.hasStack){var g={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,m){var y=h.stackGroups[m];return Mr(Mr({},p),{},au({},m,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:xY(t,y.items,a)}))},g)}return Mr(Mr({},f),{},au({},d,h))},c)},C8=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=IK(u,a,s);return t.domain([kp(c),jp(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),d=FK(f,a,s);return{niceTicks:d}}return null};function KA(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Dt(i[t.dataKey])){var s=Z0(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Zn(i,Dt(o)?t.dataKey:o);return Dt(l)?null:t.scale(l)}var YA=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=Zn(o,r.dataKey,r.domain[s]);return Dt(l)?null:r.scale(l)-a/2+i},wY=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},_Y=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Mr(Mr({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(un(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},SY=function(t){return t.reduce(function(r,n){return[kp(n.concat([r[0]]).filter(rt)),jp(n.concat([r[1]]).filter(rt))]},[1/0,-1/0])},j8=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=SY(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},XA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,JA=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,J2=function(t,r,n){if(Tt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(rt(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(XA.test(t[0])){var a=+XA.exec(t[0])[1];i[0]=r[0]-a}else Tt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(rt(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(JA.test(t[1])){var o=+JA.exec(t[1])[1];i[1]=r[1]+o}else Tt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Ad=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Lb(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},ZA=function(t,r,n){return!t||!t.length||hh(t,Vi(n,"type.defaultProps.domain"))?r:t},k8=function(t,r){var n=t.type.defaultProps?Mr(Mr({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return Mr(Mr({},mt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:a5(t),value:Zn(r,i),type:l,payload:r,chartType:u,hide:c})};function kf(e){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kf(e)}function QA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ao(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QA(Object(r),!0).forEach(function(n){L8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L8(e,t,r){return t=AY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AY(e){var t=TY(e,"string");return kf(t)=="symbol"?t:t+""}function TY(e,t){if(kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EY(e,t){return CY(e)||NY(e,t)||PY(e,t)||OY()}function OY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
380
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PY(e,t){if(e){if(typeof e=="string")return eT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eT(e,t)}}function eT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function CY(e){if(Array.isArray(e))return e}var Td=Math.PI/180,jY=function(t){return t*180/Math.PI},mr=function(t,r,n,i){return{x:t+Math.cos(-Td*i)*n,y:r+Math.sin(-Td*i)*n}},kY=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},LY=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,u=t.endAngle,c=xa(t.cx,o,o/2),f=xa(t.cy,s,s/2),d=kY(o,s,n),h=xa(t.innerRadius,d,0),g=xa(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(m,y){var x=r[y],w=x.domain,T=x.reversed,_;if(Dt(x.range))i==="angleAxis"?_=[l,u]:i==="radiusAxis"&&(_=[h,g]),T&&(_=[_[1],_[0]]);else{_=x.range;var O=_,A=EY(O,2);l=A[0],u=A[1]}var k=P8(x,a),L=k.realScaleType,B=k.scale;B.domain(w).range(_),N8(B);var C=C8(B,ao(ao({},x),{},{realScaleType:L})),P=ao(ao(ao({},x),C),{},{range:_,radius:g,realScaleType:L,scale:B,cx:c,cy:f,innerRadius:h,outerRadius:g,startAngle:l,endAngle:u});return ao(ao({},m),{},L8({},y,P))},{})},IY=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},FY=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=IY({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:jY(u),angleInRadian:u}},RY=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},MY=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},tT=function(t,r){var n=t.x,i=t.y,a=FY({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=RY(r),f=c.startAngle,d=c.endAngle,h=s,g;if(f<=d){for(;h>d;)h-=360;for(;h<f;)h+=360;g=h>=f&&h<=d}else{for(;h>f;)h-=360;for(;h<d;)h+=360;g=h>=d&&h<=f}return g?ao(ao({},r),{},{radius:o,angle:MY(h,r)}):null},I8=function(t){return!V.isValidElement(t)&&!Tt(t)&&typeof t!="boolean"?t.className:""};function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}var DY=["offset"];function BY(e){return zY(e)||UY(e)||qY(e)||$Y()}function $Y(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
381
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qY(e,t){if(e){if(typeof e=="string")return Z2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Z2(e,t)}}function UY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zY(e){if(Array.isArray(e))return Z2(e)}function Z2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WY(e,t){if(e==null)return{};var r=HY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function rT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function on(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rT(Object(r),!0).forEach(function(n){GY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GY(e,t,r){return t=VY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VY(e){var t=KY(e,"string");return Lf(t)=="symbol"?t:t+""}function KY(e,t){if(Lf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},If.apply(this,arguments)}var YY=function(t){var r=t.value,n=t.formatter,i=Dt(t.children)?r:t.children;return Tt(n)?n(i):i},XY=function(t,r){var n=ya(r-t),i=Math.min(Math.abs(r-t),360);return n*i},JY=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,d=l.outerRadius,h=l.startAngle,g=l.endAngle,p=l.clockWise,m=(f+d)/2,y=XY(h,g),x=y>=0?1:-1,w,T;i==="insideStart"?(w=h+x*o,T=p):i==="insideEnd"?(w=g-x*o,T=!p):i==="end"&&(w=g+x*o,T=p),T=y<=0?T:!T;var _=mr(u,c,m,w),O=mr(u,c,m,w+(T?1:-1)*359),A="M".concat(_.x,",").concat(_.y,`
382
+ A`).concat(m,",").concat(m,",0,1,").concat(T?0:1,`,
383
+ `).concat(O.x,",").concat(O.y),k=Dt(t.id)?oh("recharts-radial-line-"):t.id;return V.createElement("text",If({},n,{dominantBaseline:"central",className:jt("recharts-radial-bar-label",s)}),V.createElement("defs",null,V.createElement("path",{id:k,d:A})),V.createElement("textPath",{xlinkHref:"#".concat(k)},r))},ZY=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,d=(c+f)/2;if(i==="outside"){var h=mr(o,s,u+n,d),g=h.x,p=h.y;return{x:g,y:p,textAnchor:g>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var m=(l+u)/2,y=mr(o,s,m,d),x=y.x,w=y.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},QY=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,d=f*i,h=f>0?"end":"start",g=f>0?"start":"end",p=u>=0?1:-1,m=p*i,y=p>0?"end":"start",x=p>0?"start":"end";if(a==="top"){var w={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:h};return on(on({},w),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var T={x:s+u/2,y:l+c+d,textAnchor:"middle",verticalAnchor:g};return on(on({},T),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var _={x:s-m,y:l+c/2,textAnchor:y,verticalAnchor:"middle"};return on(on({},_),n?{width:Math.max(_.x-n.x,0),height:c}:{})}if(a==="right"){var O={x:s+u+m,y:l+c/2,textAnchor:x,verticalAnchor:"middle"};return on(on({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:c}:{})}var A=n?{width:u,height:c}:{};return a==="insideLeft"?on({x:s+m,y:l+c/2,textAnchor:x,verticalAnchor:"middle"},A):a==="insideRight"?on({x:s+u-m,y:l+c/2,textAnchor:y,verticalAnchor:"middle"},A):a==="insideTop"?on({x:s+u/2,y:l+d,textAnchor:"middle",verticalAnchor:g},A):a==="insideBottom"?on({x:s+u/2,y:l+c-d,textAnchor:"middle",verticalAnchor:h},A):a==="insideTopLeft"?on({x:s+m,y:l+d,textAnchor:x,verticalAnchor:g},A):a==="insideTopRight"?on({x:s+u-m,y:l+d,textAnchor:y,verticalAnchor:g},A):a==="insideBottomLeft"?on({x:s+m,y:l+c-d,textAnchor:x,verticalAnchor:h},A):a==="insideBottomRight"?on({x:s+u-m,y:l+c-d,textAnchor:y,verticalAnchor:h},A):zu(a)&&(rt(a.x)||Ls(a.x))&&(rt(a.y)||Ls(a.y))?on({x:s+xa(a.x,u),y:l+xa(a.y,c),textAnchor:"end",verticalAnchor:"end"},A):on({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},A)},eX=function(t){return"cx"in t&&rt(t.cx)};function An(e){var t=e.offset,r=t===void 0?5:t,n=WY(e,DY),i=on({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,d=i.textBreakAll;if(!a||Dt(s)&&Dt(l)&&!V.isValidElement(u)&&!Tt(u))return null;if(V.isValidElement(u))return V.cloneElement(u,i);var h;if(Tt(u)){if(h=V.createElement(u,i),V.isValidElement(h))return h}else h=YY(i);var g=eX(a),p=mt(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return JY(i,h,p);var m=g?ZY(i):QY(i);return V.createElement(du,If({className:jt("recharts-label",f)},p,m,{breakAll:d}),h)}An.displayName="Label";var F8=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,d=t.y,h=t.top,g=t.left,p=t.width,m=t.height,y=t.clockWise,x=t.labelViewBox;if(x)return x;if(rt(p)&&rt(m)){if(rt(f)&&rt(d))return{x:f,y:d,width:p,height:m};if(rt(h)&&rt(g))return{x:h,y:g,width:p,height:m}}return rt(f)&&rt(d)?{x:f,y:d,width:0,height:0}:rt(r)&&rt(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},tX=function(t,r){return t?t===!0?V.createElement(An,{key:"label-implicit",viewBox:r}):un(t)?V.createElement(An,{key:"label-implicit",viewBox:r,value:t}):V.isValidElement(t)?t.type===An?V.cloneElement(t,{key:"label-implicit",viewBox:r}):V.createElement(An,{key:"label-implicit",content:t,viewBox:r}):Tt(t)?V.createElement(An,{key:"label-implicit",content:t,viewBox:r}):zu(t)?V.createElement(An,If({viewBox:r},t,{key:"label-implicit"})):null:null},rX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=F8(t),o=Ki(i,An).map(function(l,u){return V.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=tX(t.label,r||a);return[s].concat(BY(o))};An.parseViewBox=F8;An.renderCallByParent=rX;var gy,nT;function nX(){if(nT)return gy;nT=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return gy=e,gy}var iX=nX();const R8=ar(iX);function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}var aX=["valueAccessor"],oX=["data","dataKey","clockWise","id","textBreakAll"];function sX(e){return fX(e)||cX(e)||uX(e)||lX()}function lX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
384
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uX(e,t){if(e){if(typeof e=="string")return Q2(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Q2(e,t)}}function cX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fX(e){if(Array.isArray(e))return Q2(e)}function Q2(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ed(){return Ed=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ed.apply(this,arguments)}function iT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function aT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iT(Object(r),!0).forEach(function(n){hX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hX(e,t,r){return t=dX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dX(e){var t=pX(e,"string");return Ff(t)=="symbol"?t:t+""}function pX(e,t){if(Ff(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ff(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oT(e,t){if(e==null)return{};var r=vX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var mX=function(t){return Array.isArray(t.value)?R8(t.value):t.value};function go(e){var t=e.valueAccessor,r=t===void 0?mX:t,n=oT(e,aX),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=oT(n,oX);return!i||!i.length?null:V.createElement(nr,{className:"recharts-label-list"},i.map(function(c,f){var d=Dt(a)?r(c,f):Zn(c&&c.payload,a),h=Dt(s)?{}:{id:"".concat(s,"-").concat(f)};return V.createElement(An,Ed({},mt(c,!0),u,h,{parentViewBox:c.parentViewBox,value:d,textBreakAll:l,viewBox:An.parseViewBox(Dt(o)?c:aT(aT({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}go.displayName="LabelList";function gX(e,t){return e?e===!0?V.createElement(go,{key:"labelList-implicit",data:t}):V.isValidElement(e)||Tt(e)?V.createElement(go,{key:"labelList-implicit",data:t,content:e}):zu(e)?V.createElement(go,Ed({data:t},e,{key:"labelList-implicit"})):null:null}function yX(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Ki(n,go).map(function(o,s){return V.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=gX(e.label,t);return[a].concat(sX(i))}go.renderCallByParent=yX;function Rf(e){"@babel/helpers - typeof";return Rf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rf(e)}function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ex.apply(this,arguments)}function sT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sT(Object(r),!0).forEach(function(n){xX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xX(e,t,r){return t=bX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bX(e){var t=wX(e,"string");return Rf(t)=="symbol"?t:t+""}function wX(e,t){if(Rf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Rf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _X=function(t,r){var n=ya(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},O0=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/Td,d=u?a:a+o*f,h=mr(r,n,c,d),g=mr(r,n,i,d),p=u?a-o*f:a,m=mr(r,n,c*Math.cos(f*Td),p);return{center:h,circleTangency:g,lineTangency:m,theta:f}},M8=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=_X(o,s),u=o+l,c=mr(r,n,a,o),f=mr(r,n,a,u),d="M ".concat(c.x,",").concat(c.y,`
385
+ A `).concat(a,",").concat(a,`,0,
386
+ `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
387
+ `).concat(f.x,",").concat(f.y,`
388
+ `);if(i>0){var h=mr(r,n,i,o),g=mr(r,n,i,u);d+="L ".concat(g.x,",").concat(g.y,`
389
+ A `).concat(i,",").concat(i,`,0,
390
+ `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
391
+ `).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},SX=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=ya(c-u),d=O0({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,g=d.lineTangency,p=d.theta,m=O0({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),y=m.circleTangency,x=m.lineTangency,w=m.theta,T=l?Math.abs(u-c):Math.abs(u-c)-p-w;if(T<0)return s?"M ".concat(g.x,",").concat(g.y,`
392
+ a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
393
+ a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
394
+ `):M8({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var _="M ".concat(g.x,",").concat(g.y,`
395
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(h.x,",").concat(h.y,`
396
+ A`).concat(a,",").concat(a,",0,").concat(+(T>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
397
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,`
398
+ `);if(i>0){var O=O0({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),A=O.circleTangency,k=O.lineTangency,L=O.theta,B=O0({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),C=B.circleTangency,P=B.lineTangency,M=B.theta,q=l?Math.abs(u-c):Math.abs(u-c)-L-M;if(q<0&&o===0)return"".concat(_,"L").concat(r,",").concat(n,"Z");_+="L".concat(P.x,",").concat(P.y,`
399
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(C.x,",").concat(C.y,`
400
+ A`).concat(i,",").concat(i,",0,").concat(+(q>180),",").concat(+(f>0),",").concat(A.x,",").concat(A.y,`
401
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else _+="L".concat(r,",").concat(n,"Z");return _},AX={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},D8=function(t){var r=lT(lT({},AX),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(o<a||c===f)return null;var h=jt("recharts-sector",d),g=o-a,p=xa(s,g,0,!0),m;return p>0&&Math.abs(c-f)<360?m=SX({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):m=M8({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),V.createElement("path",ex({},mt(r,!0),{className:h,d:m,role:"img"}))};function Mf(e){"@babel/helpers - typeof";return Mf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(e)}function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tx.apply(this,arguments)}function uT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uT(Object(r),!0).forEach(function(n){TX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TX(e,t,r){return t=EX(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EX(e){var t=OX(e,"string");return Mf(t)=="symbol"?t:t+""}function OX(e,t){if(Mf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fT={curveBasisClosed:Vq,curveBasisOpen:Kq,curveBasis:Gq,curveBumpX:kq,curveBumpY:Lq,curveLinearClosed:Yq,curveLinear:xp,curveMonotoneX:Xq,curveMonotoneY:Jq,curveNatural:Zq,curveStep:Qq,curveStepAfter:tU,curveStepBefore:eU},P0=function(t){return t.x===+t.x&&t.y===+t.y},Ic=function(t){return t.x},Fc=function(t){return t.y},PX=function(t,r){if(Tt(t))return t;var n="curve".concat(gp(t));return(n==="curveMonotone"||n==="curveBump")&&r?fT["".concat(n).concat(r==="vertical"?"Y":"X")]:fT[n]||xp},NX=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=PX(n,s),f=u?a.filter(function(p){return P0(p)}):a,d;if(Array.isArray(o)){var h=u?o.filter(function(p){return P0(p)}):o,g=f.map(function(p,m){return cT(cT({},p),{},{base:h[m]})});return s==="vertical"?d=x0().y(Fc).x1(Ic).x0(function(p){return p.base.x}):d=x0().x(Ic).y1(Fc).y0(function(p){return p.base.y}),d.defined(P0).curve(c),d(g)}return s==="vertical"&&rt(o)?d=x0().y(Fc).x1(Ic).x0(o):rt(o)?d=x0().x(Ic).y1(Fc).y0(o):d=RN().x(Ic).y(Fc),d.defined(P0).curve(c),d(f)},rx=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?NX(t):i;return ns.createElement("path",tx({},mt(t,!1),Q0(t),{className:jt("recharts-curve",r),d:o,ref:a}))},N0={exports:{}},C0={exports:{}},er={};/** @license React v16.13.1
402
+ * react-is.production.min.js
403
+ *
404
+ * Copyright (c) Facebook, Inc. and its affiliates.
405
+ *
406
+ * This source code is licensed under the MIT license found in the
407
+ * LICENSE file in the root directory of this source tree.
408
+ */var hT;function CX(){if(hT)return er;hT=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(_){if(typeof _=="object"&&_!==null){var O=_.$$typeof;switch(O){case t:switch(_=_.type,_){case l:case u:case n:case a:case i:case f:return _;default:switch(_=_&&_.$$typeof,_){case s:case c:case g:case h:case o:return _;default:return O}}case r:return O}}}function T(_){return w(_)===u}return er.AsyncMode=l,er.ConcurrentMode=u,er.ContextConsumer=s,er.ContextProvider=o,er.Element=t,er.ForwardRef=c,er.Fragment=n,er.Lazy=g,er.Memo=h,er.Portal=r,er.Profiler=a,er.StrictMode=i,er.Suspense=f,er.isAsyncMode=function(_){return T(_)||w(_)===l},er.isConcurrentMode=T,er.isContextConsumer=function(_){return w(_)===s},er.isContextProvider=function(_){return w(_)===o},er.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},er.isForwardRef=function(_){return w(_)===c},er.isFragment=function(_){return w(_)===n},er.isLazy=function(_){return w(_)===g},er.isMemo=function(_){return w(_)===h},er.isPortal=function(_){return w(_)===r},er.isProfiler=function(_){return w(_)===a},er.isStrictMode=function(_){return w(_)===i},er.isSuspense=function(_){return w(_)===f},er.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===u||_===a||_===i||_===f||_===d||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===h||_.$$typeof===o||_.$$typeof===s||_.$$typeof===c||_.$$typeof===m||_.$$typeof===y||_.$$typeof===x||_.$$typeof===p)},er.typeOf=w,er}var tr={};/** @license React v16.13.1
409
+ * react-is.development.js
410
+ *
411
+ * Copyright (c) Facebook, Inc. and its affiliates.
412
+ *
413
+ * This source code is licensed under the MIT license found in the
414
+ * LICENSE file in the root directory of this source tree.
415
+ */var dT;function jX(){return dT||(dT=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function w(ue){return typeof ue=="string"||typeof ue=="function"||ue===n||ue===u||ue===a||ue===i||ue===f||ue===d||typeof ue=="object"&&ue!==null&&(ue.$$typeof===g||ue.$$typeof===h||ue.$$typeof===o||ue.$$typeof===s||ue.$$typeof===c||ue.$$typeof===m||ue.$$typeof===y||ue.$$typeof===x||ue.$$typeof===p)}function T(ue){if(typeof ue=="object"&&ue!==null){var Ie=ue.$$typeof;switch(Ie){case t:var ge=ue.type;switch(ge){case l:case u:case n:case a:case i:case f:return ge;default:var _e=ge&&ge.$$typeof;switch(_e){case s:case c:case g:case h:case o:return _e;default:return Ie}}case r:return Ie}}}var _=l,O=u,A=s,k=o,L=t,B=c,C=n,P=g,M=h,q=r,J=a,U=i,H=f,ee=!1;function Z(ue){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),Q(ue)||T(ue)===l}function Q(ue){return T(ue)===u}function le(ue){return T(ue)===s}function N(ue){return T(ue)===o}function I(ue){return typeof ue=="object"&&ue!==null&&ue.$$typeof===t}function R(ue){return T(ue)===c}function D(ue){return T(ue)===n}function G(ue){return T(ue)===g}function ce(ue){return T(ue)===h}function he(ue){return T(ue)===r}function ne(ue){return T(ue)===a}function me(ue){return T(ue)===i}function Se(ue){return T(ue)===f}tr.AsyncMode=_,tr.ConcurrentMode=O,tr.ContextConsumer=A,tr.ContextProvider=k,tr.Element=L,tr.ForwardRef=B,tr.Fragment=C,tr.Lazy=P,tr.Memo=M,tr.Portal=q,tr.Profiler=J,tr.StrictMode=U,tr.Suspense=H,tr.isAsyncMode=Z,tr.isConcurrentMode=Q,tr.isContextConsumer=le,tr.isContextProvider=N,tr.isElement=I,tr.isForwardRef=R,tr.isFragment=D,tr.isLazy=G,tr.isMemo=ce,tr.isPortal=he,tr.isProfiler=ne,tr.isStrictMode=me,tr.isSuspense=Se,tr.isValidElementType=w,tr.typeOf=T})()),tr}var pT;function B8(){return pT||(pT=1,process.env.NODE_ENV==="production"?C0.exports=CX():C0.exports=jX()),C0.exports}/*
416
+ object-assign
417
+ (c) Sindre Sorhus
418
+ @license MIT
419
+ */var yy,vT;function kX(){if(vT)return yy;vT=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return yy=i()?Object.assign:function(a,o){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var d=0;d<u.length;d++)r.call(s,u[d])&&(l[u[d]]=s[u[d]])}}return l},yy}var xy,mT;function o5(){if(mT)return xy;mT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xy=e,xy}var by,gT;function $8(){return gT||(gT=1,by=Function.call.bind(Object.prototype.hasOwnProperty)),by}var wy,yT;function LX(){if(yT)return wy;yT=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=o5(),r={},n=$8();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var d=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[c](o,c,l,s,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},wy=i,wy}var _y,xT;function IX(){if(xT)return _y;xT=1;var e=B8(),t=kX(),r=o5(),n=$8(),i=LX(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return _y=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(Q){var le=Q&&(u&&Q[u]||Q[c]);if(typeof le=="function")return le}var d="<<anonymous>>",h={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:x(),arrayOf:w,element:T(),elementType:_(),instanceOf:O,node:B(),objectOf:k,oneOf:A,oneOfType:L,shape:P,exact:M};function g(Q,le){return Q===le?Q!==0||1/Q===1/le:Q!==Q&&le!==le}function p(Q,le){this.message=Q,this.data=le&&typeof le=="object"?le:{},this.stack=""}p.prototype=Error.prototype;function m(Q){if(process.env.NODE_ENV!=="production")var le={},N=0;function I(D,G,ce,he,ne,me,Se){if(he=he||d,me=me||ce,Se!==r){if(l){var ue=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ue.name="Invariant Violation",ue}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ie=he+":"+ce;!le[Ie]&&N<3&&(a("You are manually calling a React.PropTypes validation function for the `"+me+"` prop on `"+he+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),le[Ie]=!0,N++)}}return G[ce]==null?D?G[ce]===null?new p("The "+ne+" `"+me+"` is marked as required "+("in `"+he+"`, but its value is `null`.")):new p("The "+ne+" `"+me+"` is marked as required in "+("`"+he+"`, but its value is `undefined`.")):null:Q(G,ce,he,ne,me)}var R=I.bind(null,!1);return R.isRequired=I.bind(null,!0),R}function y(Q){function le(N,I,R,D,G,ce){var he=N[I],ne=U(he);if(ne!==Q){var me=H(he);return new p("Invalid "+D+" `"+G+"` of type "+("`"+me+"` supplied to `"+R+"`, expected ")+("`"+Q+"`."),{expectedType:Q})}return null}return m(le)}function x(){return m(o)}function w(Q){function le(N,I,R,D,G){if(typeof Q!="function")return new p("Property `"+G+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var ce=N[I];if(!Array.isArray(ce)){var he=U(ce);return new p("Invalid "+D+" `"+G+"` of type "+("`"+he+"` supplied to `"+R+"`, expected an array."))}for(var ne=0;ne<ce.length;ne++){var me=Q(ce,ne,R,D,G+"["+ne+"]",r);if(me instanceof Error)return me}return null}return m(le)}function T(){function Q(le,N,I,R,D){var G=le[N];if(!s(G)){var ce=U(G);return new p("Invalid "+R+" `"+D+"` of type "+("`"+ce+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return m(Q)}function _(){function Q(le,N,I,R,D){var G=le[N];if(!e.isValidElementType(G)){var ce=U(G);return new p("Invalid "+R+" `"+D+"` of type "+("`"+ce+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return m(Q)}function O(Q){function le(N,I,R,D,G){if(!(N[I]instanceof Q)){var ce=Q.name||d,he=Z(N[I]);return new p("Invalid "+D+" `"+G+"` of type "+("`"+he+"` supplied to `"+R+"`, expected ")+("instance of `"+ce+"`."))}return null}return m(le)}function A(Q){if(!Array.isArray(Q))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function le(N,I,R,D,G){for(var ce=N[I],he=0;he<Q.length;he++)if(g(ce,Q[he]))return null;var ne=JSON.stringify(Q,function(Se,ue){var Ie=H(ue);return Ie==="symbol"?String(ue):ue});return new p("Invalid "+D+" `"+G+"` of value `"+String(ce)+"` "+("supplied to `"+R+"`, expected one of "+ne+"."))}return m(le)}function k(Q){function le(N,I,R,D,G){if(typeof Q!="function")return new p("Property `"+G+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var ce=N[I],he=U(ce);if(he!=="object")return new p("Invalid "+D+" `"+G+"` of type "+("`"+he+"` supplied to `"+R+"`, expected an object."));for(var ne in ce)if(n(ce,ne)){var me=Q(ce,ne,R,D,G+"."+ne,r);if(me instanceof Error)return me}return null}return m(le)}function L(Q){if(!Array.isArray(Q))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var le=0;le<Q.length;le++){var N=Q[le];if(typeof N!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(N)+" at index "+le+"."),o}function I(R,D,G,ce,he){for(var ne=[],me=0;me<Q.length;me++){var Se=Q[me],ue=Se(R,D,G,ce,he,r);if(ue==null)return null;ue.data&&n(ue.data,"expectedType")&&ne.push(ue.data.expectedType)}var Ie=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new p("Invalid "+ce+" `"+he+"` supplied to "+("`"+G+"`"+Ie+"."))}return m(I)}function B(){function Q(le,N,I,R,D){return q(le[N])?null:new p("Invalid "+R+" `"+D+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return m(Q)}function C(Q,le,N,I,R){return new p((Q||"React class")+": "+le+" type `"+N+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function P(Q){function le(N,I,R,D,G){var ce=N[I],he=U(ce);if(he!=="object")return new p("Invalid "+D+" `"+G+"` of type `"+he+"` "+("supplied to `"+R+"`, expected `object`."));for(var ne in Q){var me=Q[ne];if(typeof me!="function")return C(R,D,G,ne,H(me));var Se=me(ce,ne,R,D,G+"."+ne,r);if(Se)return Se}return null}return m(le)}function M(Q){function le(N,I,R,D,G){var ce=N[I],he=U(ce);if(he!=="object")return new p("Invalid "+D+" `"+G+"` of type `"+he+"` "+("supplied to `"+R+"`, expected `object`."));var ne=t({},N[I],Q);for(var me in ne){var Se=Q[me];if(n(Q,me)&&typeof Se!="function")return C(R,D,G,me,H(Se));if(!Se)return new p("Invalid "+D+" `"+G+"` key `"+me+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(N[I],null," ")+`
420
+ Valid keys: `+JSON.stringify(Object.keys(Q),null," "));var ue=Se(ce,me,R,D,G+"."+me,r);if(ue)return ue}return null}return m(le)}function q(Q){switch(typeof Q){case"number":case"string":case"undefined":return!0;case"boolean":return!Q;case"object":if(Array.isArray(Q))return Q.every(q);if(Q===null||s(Q))return!0;var le=f(Q);if(le){var N=le.call(Q),I;if(le!==Q.entries){for(;!(I=N.next()).done;)if(!q(I.value))return!1}else for(;!(I=N.next()).done;){var R=I.value;if(R&&!q(R[1]))return!1}}else return!1;return!0;default:return!1}}function J(Q,le){return Q==="symbol"?!0:le?le["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&le instanceof Symbol:!1}function U(Q){var le=typeof Q;return Array.isArray(Q)?"array":Q instanceof RegExp?"object":J(le,Q)?"symbol":le}function H(Q){if(typeof Q>"u"||Q===null)return""+Q;var le=U(Q);if(le==="object"){if(Q instanceof Date)return"date";if(Q instanceof RegExp)return"regexp"}return le}function ee(Q){var le=H(Q);switch(le){case"array":case"object":return"an "+le;case"boolean":case"date":case"regexp":return"a "+le;default:return le}}function Z(Q){return!Q.constructor||!Q.constructor.name?d:Q.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},_y}var Sy,bT;function FX(){if(bT)return Sy;bT=1;var e=o5();function t(){}function r(){}return r.resetWarningCache=t,Sy=function(){function n(o,s,l,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Sy}var wT;function RX(){if(wT)return N0.exports;if(wT=1,process.env.NODE_ENV!=="production"){var e=B8(),t=!0;N0.exports=IX()(e.isElement,t)}else N0.exports=FX()();return N0.exports}var MX=RX();const rr=ar(MX),{getOwnPropertyNames:DX,getOwnPropertySymbols:BX}=Object,{hasOwnProperty:$X}=Object.prototype;function Ay(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function j0(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);const{cache:a}=i,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);const l=e(r,n,i);return a.delete(r),a.delete(n),l}}function qX(e){return e!=null?e[Symbol.toStringTag]:void 0}function _T(e){return DX(e).concat(BX(e))}const UX=Object.hasOwn||((e,t)=>$X.call(e,t));function ll(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const zX="__v",WX="__o",HX="_owner",{getOwnPropertyDescriptor:ST,keys:AT}=Object;function GX(e,t){return e.byteLength===t.byteLength&&Od(new Uint8Array(e),new Uint8Array(t))}function VX(e,t,r){let n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function KX(e,t){return e.byteLength===t.byteLength&&Od(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function YX(e,t){return ll(e.getTime(),t.getTime())}function XX(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function JX(e,t){return e===t}function TT(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.entries();let o,s,l=0;for(;(o=a.next())&&!o.done;){const u=t.entries();let c=!1,f=0;for(;(s=u.next())&&!s.done;){if(i[f]){f++;continue}const d=o.value,h=s.value;if(r.equals(d[0],h[0],l,f,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}const ZX=ll;function QX(e,t,r){const n=AT(e);let i=n.length;if(AT(t).length!==i)return!1;for(;i-- >0;)if(!q8(e,t,r,n[i]))return!1;return!0}function Rc(e,t,r){const n=_T(e);let i=n.length;if(_T(t).length!==i)return!1;let a,o,s;for(;i-- >0;)if(a=n[i],!q8(e,t,r,a)||(o=ST(e,a),s=ST(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function eJ(e,t){return ll(e.valueOf(),t.valueOf())}function tJ(e,t){return e.source===t.source&&e.flags===t.flags}function ET(e,t,r){const n=e.size;if(n!==t.size)return!1;if(!n)return!0;const i=new Array(n),a=e.values();let o,s;for(;(o=a.next())&&!o.done;){const l=t.values();let u=!1,c=0;for(;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function Od(e,t){let r=e.byteLength;if(t.byteLength!==r||e.byteOffset!==t.byteOffset)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function rJ(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function q8(e,t,r,n){return(n===HX||n===WX||n===zX)&&(e.$$typeof||t.$$typeof)?!0:UX(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}const nJ="[object ArrayBuffer]",iJ="[object Arguments]",aJ="[object Boolean]",oJ="[object DataView]",sJ="[object Date]",lJ="[object Error]",uJ="[object Map]",cJ="[object Number]",fJ="[object Object]",hJ="[object RegExp]",dJ="[object Set]",pJ="[object String]",vJ={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},mJ="[object URL]",gJ=Object.prototype.toString;function yJ({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:r,areDatesEqual:n,areErrorsEqual:i,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:u,areRegExpsEqual:c,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:g}){return function(m,y,x){if(m===y)return!0;if(m==null||y==null)return!1;const w=typeof m;if(w!==typeof y)return!1;if(w!=="object")return w==="number"?s(m,y,x):w==="function"?a(m,y,x):!1;const T=m.constructor;if(T!==y.constructor)return!1;if(T===Object)return l(m,y,x);if(Array.isArray(m))return t(m,y,x);if(T===Date)return n(m,y,x);if(T===RegExp)return c(m,y,x);if(T===Map)return o(m,y,x);if(T===Set)return f(m,y,x);const _=gJ.call(m);if(_===sJ)return n(m,y,x);if(_===hJ)return c(m,y,x);if(_===uJ)return o(m,y,x);if(_===dJ)return f(m,y,x);if(_===fJ)return typeof m.then!="function"&&typeof y.then!="function"&&l(m,y,x);if(_===mJ)return h(m,y,x);if(_===lJ)return i(m,y,x);if(_===iJ)return l(m,y,x);if(vJ[_])return d(m,y,x);if(_===nJ)return e(m,y,x);if(_===oJ)return r(m,y,x);if(_===aJ||_===cJ||_===pJ)return u(m,y,x);if(g){let O=g[_];if(!O){const A=qX(m);A&&(O=g[A])}if(O)return O(m,y,x)}return!1}}function xJ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:GX,areArraysEqual:r?Rc:VX,areDataViewsEqual:KX,areDatesEqual:YX,areErrorsEqual:XX,areFunctionsEqual:JX,areMapsEqual:r?Ay(TT,Rc):TT,areNumbersEqual:ZX,areObjectsEqual:r?Rc:QX,arePrimitiveWrappersEqual:eJ,areRegExpsEqual:tJ,areSetsEqual:r?Ay(ET,Rc):ET,areTypedArraysEqual:r?Ay(Od,Rc):Od,areUrlsEqual:rJ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=j0(n.areArraysEqual),a=j0(n.areMapsEqual),o=j0(n.areObjectsEqual),s=j0(n.areSetsEqual);n=Object.assign({},n,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:s})}return n}function bJ(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function wJ({circular:e,comparator:t,createState:r,equals:n,strict:i}){if(r)return function(s,l){const{cache:u=e?new WeakMap:void 0,meta:c}=r();return t(s,l,{cache:u,equals:n,meta:c,strict:i})};if(e)return function(s,l){return t(s,l,{cache:new WeakMap,equals:n,meta:void 0,strict:i})};const a={cache:void 0,equals:n,meta:void 0,strict:i};return function(s,l){return t(s,l,a)}}const _J=ds();ds({strict:!0});ds({circular:!0});ds({circular:!0,strict:!0});ds({createInternalComparator:()=>ll});ds({strict:!0,createInternalComparator:()=>ll});ds({circular:!0,createInternalComparator:()=>ll});ds({circular:!0,createInternalComparator:()=>ll,strict:!0});function ds(e={}){const{circular:t=!1,createInternalComparator:r,createState:n,strict:i=!1}=e,a=xJ(e),o=yJ(a),s=r?r(o):bJ(o);return wJ({circular:t,comparator:o,createState:n,equals:s,strict:i})}function SJ(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function OT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):SJ(i)};requestAnimationFrame(n)}function nx(e){"@babel/helpers - typeof";return nx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nx(e)}function AJ(e){return PJ(e)||OJ(e)||EJ(e)||TJ()}function TJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
421
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EJ(e,t){if(e){if(typeof e=="string")return PT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return PT(e,t)}}function PT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function OJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function PJ(e){if(Array.isArray(e))return e}function NJ(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=AJ(o),l=s[0],u=s.slice(1);if(typeof l=="number"){OT(i.bind(null,u),l);return}i(l),OT(i.bind(null,u));return}nx(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Df(e){"@babel/helpers - typeof";return Df=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Df(e)}function NT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function CT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NT(Object(r),!0).forEach(function(n){U8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function U8(e,t,r){return t=CJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CJ(e){var t=jJ(e,"string");return Df(t)==="symbol"?t:String(t)}function jJ(e,t){if(Df(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Df(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kJ=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},LJ=function(t){return t},IJ=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},rf=function(t,r){return Object.keys(r).reduce(function(n,i){return CT(CT({},n),{},U8({},i,t(i,r[i])))},{})},jT=function(t,r,n){return t.map(function(i){return"".concat(IJ(i)," ").concat(r,"ms ").concat(n)}).join(",")},FJ=process.env.NODE_ENV!=="production",Pd=function(t,r,n,i,a,o,s,l){if(FJ&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function RJ(e,t){return BJ(e)||DJ(e,t)||z8(e,t)||MJ()}function MJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
422
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function BJ(e){if(Array.isArray(e))return e}function $J(e){return zJ(e)||UJ(e)||z8(e)||qJ()}function qJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
423
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function z8(e,t){if(e){if(typeof e=="string")return ix(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ix(e,t)}}function UJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zJ(e){if(Array.isArray(e))return ix(e)}function ix(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Nd=1e-4,W8=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},H8=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},kT=function(t,r){return function(n){var i=W8(t,r);return H8(i,n)}},WJ=function(t,r){return function(n){var i=W8(t,r),a=[].concat($J(i.map(function(o,s){return o*s}).slice(1)),[0]);return H8(a,n)}},LT=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(m){return parseFloat(m)}),c=RJ(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}else Pd(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Pd([i,o,a,s].every(function(m){return typeof m=="number"&&m>=0&&m<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=kT(i,o),d=kT(a,s),h=WJ(i,o),g=function(y){return y>1?1:y<0?0:y},p=function(y){for(var x=y>1?1:y,w=x,T=0;T<8;++T){var _=f(w)-x,O=h(w);if(Math.abs(_-x)<Nd||O<Nd)return d(w);w=g(w-_/O)}return d(w)};return p.isStepper=!1,p},HJ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,d){var h=-(c-f)*n,g=d*a,p=d+(h-g)*s/1e3,m=d*s/1e3+c;return Math.abs(m-f)<Nd&&Math.abs(p)<Nd?[f,0]:[m,p]};return l.isStepper=!0,l.dt=s,l},GJ=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return LT(i);case"spring":return HJ();default:if(i.split("(")[0]==="cubic-bezier")return LT(i);Pd(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Pd(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function IT(e){return YJ(e)||KJ(e)||G8(e)||VJ()}function VJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
424
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YJ(e){if(Array.isArray(e))return ox(e)}function FT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FT(Object(r),!0).forEach(function(n){ax(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ax(e,t,r){return t=XJ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XJ(e){var t=JJ(e,"string");return Bf(t)==="symbol"?t:String(t)}function JJ(e,t){if(Bf(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bf(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZJ(e,t){return tZ(e)||eZ(e,t)||G8(e,t)||QJ()}function QJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
425
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G8(e,t){if(e){if(typeof e=="string")return ox(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ox(e,t)}}function ox(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function tZ(e){if(Array.isArray(e))return e}var Cd=function(t,r,n){return t+(r-t)*n},sx=function(t){var r=t.from,n=t.to;return r!==n},rZ=function e(t,r,n){var i=rf(function(a,o){if(sx(o)){var s=t(o.from,o.to,o.velocity),l=ZJ(s,2),u=l[0],c=l[1];return _n(_n({},o),{},{from:u,velocity:c})}return o},r);return n<1?rf(function(a,o){return sx(o)?_n(_n({},o),{},{velocity:Cd(o.velocity,i[a].velocity,n),from:Cd(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const nZ=(function(e,t,r,n,i){var a=kJ(e,t),o=a.reduce(function(m,y){return _n(_n({},m),{},ax({},y,[e[y],t[y]]))},{}),s=a.reduce(function(m,y){return _n(_n({},m),{},ax({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,u,c,f=function(){return null},d=function(){return rf(function(y,x){return x.from},s)},h=function(){return!Object.values(s).filter(sx).length},g=function(y){u||(u=y);var x=y-u,w=x/r.dt;s=rZ(r,s,w),i(_n(_n(_n({},e),t),d())),u=y,h()||(l=requestAnimationFrame(f))},p=function(y){c||(c=y);var x=(y-c)/n,w=rf(function(_,O){return Cd.apply(void 0,IT(O).concat([r(x)]))},o);if(i(_n(_n(_n({},e),t),w)),x<1)l=requestAnimationFrame(f);else{var T=rf(function(_,O){return Cd.apply(void 0,IT(O).concat([r(1)]))},o);i(_n(_n(_n({},e),t),T))}};return f=r.isStepper?g:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function yu(e){"@babel/helpers - typeof";return yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yu(e)}var iZ=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function aZ(e,t){if(e==null)return{};var r=oZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oZ(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Ty(e){return cZ(e)||uZ(e)||lZ(e)||sZ()}function sZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
426
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lZ(e,t){if(e){if(typeof e=="string")return lx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lx(e,t)}}function uZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cZ(e){if(Array.isArray(e))return lx(e)}function lx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ca(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RT(Object(r),!0).forEach(function(n){qc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qc(e,t,r){return t=V8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hZ(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,V8(n.key),n)}}function dZ(e,t,r){return t&&hZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function V8(e){var t=pZ(e,"string");return yu(t)==="symbol"?t:String(t)}function pZ(e,t){if(yu(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yu(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ux(e,t)}function ux(e,t){return ux=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ux(e,t)}function mZ(e){var t=gZ();return function(){var n=jd(e),i;if(t){var a=jd(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return cx(this,i)}}function cx(e,t){if(t&&(yu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fx(e)}function fx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jd(e){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jd(e)}var qa=(function(e){vZ(r,e);var t=mZ(r);function r(n,i){var a;fZ(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(fx(a)),a.changeStyle=a.changeStyle.bind(fx(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:c}),cx(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof d=="function")return a.state={style:u},cx(a);a.state={style:l?qc({},l,u):u}}else a.state={style:{}};return a}return dZ(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:l?qc({},l,c):c};this.state&&d&&(l&&d[l]!==c||!l&&d!==c)&&this.setState(h);return}if(!(_J(i.to,c)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||u?f:i.to;if(this.state&&d){var m={style:l?qc({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(m)}this.runAnimation(ca(ca({},this.props),{},{from:p,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=nZ(o,s,GJ(u),l,this.changeStyle),g=function(){a.stopJSAnimation=h()};this.manager.start([d,c,g,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,d=f===void 0?0:f,h=function(p,m,y){if(y===0)return p;var x=m.duration,w=m.easing,T=w===void 0?"ease":w,_=m.style,O=m.properties,A=m.onAnimationEnd,k=y>0?o[y-1]:m,L=O||Object.keys(_);if(typeof T=="function"||T==="spring")return[].concat(Ty(p),[a.runJSAnimation.bind(a,{from:k.style,to:_,duration:x,easing:T}),x]);var B=jT(L,x,T),C=ca(ca(ca({},k.style),_),{},{transition:B});return[].concat(Ty(p),[C,x,A]).filter(LJ)};return this.manager.start([l].concat(Ty(o.reduce(h,[c,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=NJ());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof u=="function"||typeof h=="function"||u==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?qc({},s,l):l,m=jT(Object.keys(p),o,u);g.start([c,a,ca(ca({},p),{},{transition:m}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=aZ(i,iZ),u=V.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(h){var g=h.props,p=g.style,m=p===void 0?{}:p,y=g.className,x=V.cloneElement(h,ca(ca({},l),{},{style:ca(ca({},m),c),className:y}));return x};return u===1?f(V.Children.only(a)):V.createElement("div",null,V.Children.map(a,function(d){return f(d)}))}}]),r})(V.PureComponent);qa.displayName="Animate";qa.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};qa.propTypes={from:rr.oneOfType([rr.object,rr.string]),to:rr.oneOfType([rr.object,rr.string]),attributeName:rr.string,duration:rr.number,begin:rr.number,easing:rr.oneOfType([rr.string,rr.func]),steps:rr.arrayOf(rr.shape({duration:rr.number.isRequired,style:rr.object.isRequired,easing:rr.oneOfType([rr.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),rr.func]),properties:rr.arrayOf("string"),onAnimationEnd:rr.func})),children:rr.oneOfType([rr.node,rr.func]),isActive:rr.bool,canBegin:rr.bool,onAnimationEnd:rr.func,shouldReAnimate:rr.bool,onAnimationStart:rr.func,onAnimationReStart:rr.func};function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}function kd(){return kd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kd.apply(this,arguments)}function yZ(e,t){return _Z(e)||wZ(e,t)||bZ(e,t)||xZ()}function xZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
427
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bZ(e,t){if(e){if(typeof e=="string")return MT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return MT(e,t)}}function MT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wZ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function _Z(e){if(Array.isArray(e))return e}function DT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function BT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DT(Object(r),!0).forEach(function(n){SZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SZ(e,t,r){return t=AZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AZ(e){var t=TZ(e,"string");return $f(t)=="symbol"?t:t+""}function TZ(e,t){if($f(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($f(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $T=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],d=0,h=4;d<h;d++)f[d]=a[d]>o?o:a[d];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
428
+ `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
429
+ `).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
430
+ `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);c="M ".concat(t,",").concat(r+s*g,`
431
+ A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+l*g,",").concat(r,`
432
+ L `).concat(t+n-l*g,",").concat(r,`
433
+ A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*g,`
434
+ L `).concat(t+n,",").concat(r+i-s*g,`
435
+ A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t+n-l*g,",").concat(r+i,`
436
+ L `).concat(t+l*g,",").concat(r+i,`
437
+ A `).concat(g,",").concat(g,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*g," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},EZ=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=d}return!1},OZ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},s5=function(t){var r=BT(BT({},OZ),t),n=V.useRef(),i=V.useState(-1),a=yZ(i,2),o=a[0],s=a[1];V.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var T=n.current.getTotalLength();T&&s(T)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,d=r.radius,h=r.className,g=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isAnimationActive,x=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var w=jt("recharts-rectangle",h);return x?V.createElement(qa,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:p,animationEasing:g,isActive:x},function(T){var _=T.width,O=T.height,A=T.x,k=T.y;return V.createElement(qa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,isActive:y,easing:g},V.createElement("path",kd({},mt(r,!0),{className:w,d:$T(A,k,_,O,d),ref:n})))}):V.createElement("path",kd({},mt(r,!0),{className:w,d:$T(l,u,c,f,d)}))},PZ=["points","className","baseLinePoints","connectNulls"];function Kl(){return Kl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kl.apply(this,arguments)}function NZ(e,t){if(e==null)return{};var r=CZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function qT(e){return IZ(e)||LZ(e)||kZ(e)||jZ()}function jZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
438
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kZ(e,t){if(e){if(typeof e=="string")return hx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hx(e,t)}}function LZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IZ(e){if(Array.isArray(e))return hx(e)}function hx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var UT=function(t){return t&&t.x===+t.x&&t.y===+t.y},FZ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){UT(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),UT(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},nf=function(t,r){var n=FZ(t);r&&(n=[n.reduce(function(a,o){return[].concat(qT(a),qT(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,s,l){return"".concat(o).concat(l===0?"M":"L").concat(s.x,",").concat(s.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},RZ=function(t,r,n){var i=nf(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(nf(r.reverse(),n).slice(1))},K8=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=NZ(t,PZ);if(!r||!r.length)return null;var s=jt("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",u=RZ(r,i,a);return V.createElement("g",{className:s},V.createElement("path",Kl({},mt(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),l?V.createElement("path",Kl({},mt(o,!0),{fill:"none",d:nf(r,a)})):null,l?V.createElement("path",Kl({},mt(o,!0),{fill:"none",d:nf(i,a)})):null)}var c=nf(r,a);return V.createElement("path",Kl({},mt(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",className:s,d:c}))};function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dx.apply(this,arguments)}var ph=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=jt("recharts-dot",a);return r===+r&&n===+n&&i===+i?ns.createElement("circle",dx({},mt(t,!1),Q0(t),{className:o,cx:r,cy:n,r:i})):null};function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}var MZ=["x","y","top","left","width","height","className"];function px(){return px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},px.apply(this,arguments)}function zT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function DZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zT(Object(r),!0).forEach(function(n){BZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BZ(e,t,r){return t=$Z(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $Z(e){var t=qZ(e,"string");return qf(t)=="symbol"?t:t+""}function qZ(e,t){if(qf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UZ(e,t){if(e==null)return{};var r=zZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var WZ=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},HZ=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,d=t.height,h=d===void 0?0:d,g=t.className,p=UZ(t,MZ),m=DZ({x:n,y:a,top:s,left:u,width:f,height:h},p);return!rt(n)||!rt(a)||!rt(f)||!rt(h)||!rt(s)||!rt(u)?null:V.createElement("path",px({},mt(m,!0),{className:jt("recharts-cross",g),d:WZ(n,a,f,h,s,u)}))},GZ=["cx","cy","innerRadius","outerRadius","gridType","radialLines"];function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function VZ(e,t){if(e==null)return{};var r=KZ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KZ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},So.apply(this,arguments)}function WT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WT(Object(r),!0).forEach(function(n){YZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YZ(e,t,r){return t=XZ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XZ(e){var t=JZ(e,"string");return Uf(t)=="symbol"?t:t+""}function JZ(e,t){if(Uf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Uf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZZ=function(t,r,n,i){var a="";return i.forEach(function(o,s){var l=mr(r,n,t,o);s?a+="L ".concat(l.x,",").concat(l.y):a+="M ".concat(l.x,",").concat(l.y)}),a+="Z",a},QZ=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.polarAngles,s=t.radialLines;if(!o||!o.length||!s)return null;var l=zf({stroke:"#ccc"},mt(t,!1));return V.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(u){var c=mr(r,n,i,u),f=mr(r,n,a,u);return V.createElement("line",So({},l,{key:"line-".concat(u),x1:c.x,y1:c.y,x2:f.x,y2:f.y}))}))},eQ=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.index,o=zf(zf({stroke:"#ccc"},mt(t,!1)),{},{fill:"none"});return V.createElement("circle",So({},o,{className:jt("recharts-polar-grid-concentric-circle",t.className),key:"circle-".concat(a),cx:r,cy:n,r:i}))},tQ=function(t){var r=t.radius,n=t.index,i=zf(zf({stroke:"#ccc"},mt(t,!1)),{},{fill:"none"});return V.createElement("path",So({},i,{className:jt("recharts-polar-grid-concentric-polygon",t.className),key:"path-".concat(n),d:ZZ(r,t.cx,t.cy,t.polarAngles)}))},rQ=function(t){var r=t.polarRadius,n=t.gridType;return!r||!r.length?null:V.createElement("g",{className:"recharts-polar-grid-concentric"},r.map(function(i,a){var o=a;return n==="circle"?V.createElement(eQ,So({key:o},t,{radius:i,index:a})):V.createElement(tQ,So({key:o},t,{radius:i,index:a}))}))},Y8=function(t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.innerRadius,s=o===void 0?0:o,l=t.outerRadius,u=l===void 0?0:l,c=t.gridType,f=c===void 0?"polygon":c,d=t.radialLines,h=d===void 0?!0:d,g=VZ(t,GZ);return u<=0?null:V.createElement("g",{className:"recharts-polar-grid"},V.createElement(QZ,So({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},g)),V.createElement(rQ,So({cx:n,cy:a,innerRadius:s,outerRadius:u,gridType:f,radialLines:h},g)))};Y8.displayName="PolarGrid";var Ey,HT;function nQ(){if(HT)return Ey;HT=1;var e=Cp(),t=o8(),r=Wa();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Ey=n,Ey}var iQ=nQ();const aQ=ar(iQ);var Oy,GT;function oQ(){if(GT)return Oy;GT=1;var e=Cp(),t=Wa(),r=s8();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Oy=n,Oy}var sQ=oQ();const lQ=ar(sQ);var uQ=["cx","cy","angle","ticks","axisLine"],cQ=["ticks","tick","angle","tickFormatter","stroke"];function xu(e){"@babel/helpers - typeof";return xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xu(e)}function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},af.apply(this,arguments)}function VT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ts(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VT(Object(r),!0).forEach(function(n){Fp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KT(e,t){if(e==null)return{};var r=fQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,J8(n.key),n)}}function dQ(e,t,r){return t&&YT(e.prototype,t),r&&YT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pQ(e,t,r){return t=Ld(t),vQ(e,X8()?Reflect.construct(t,r||[],Ld(e).constructor):t.apply(e,r))}function vQ(e,t){if(t&&(xu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mQ(e)}function mQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X8=function(){return!!e})()}function Ld(e){return Ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ld(e)}function gQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vx(e,t)}function vx(e,t){return vx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vx(e,t)}function Fp(e,t,r){return t=J8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J8(e){var t=yQ(e,"string");return xu(t)=="symbol"?t:t+""}function yQ(e,t){if(xu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vh=(function(e){function t(){return hQ(this,t),pQ(this,t,arguments)}return gQ(t,e),dQ(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,s=a.cx,l=a.cy;return mr(s,l,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=aQ(s,function(c){return c.coordinate||0}),u=lQ(s,function(c){return c.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,s=n.ticks,l=n.axisLine,u=KT(n,uQ),c=s.reduce(function(g,p){return[Math.min(g[0],p.coordinate),Math.max(g[1],p.coordinate)]},[1/0,-1/0]),f=mr(i,a,c[0],o),d=mr(i,a,c[1],o),h=Ts(Ts(Ts({},mt(u,!1)),{},{fill:"none"},mt(l,!1)),{},{x1:f.x,y1:f.y,x2:d.x,y2:d.y});return V.createElement("line",af({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.angle,l=i.tickFormatter,u=i.stroke,c=KT(i,cQ),f=this.getTickTextAnchor(),d=mt(c,!1),h=mt(o,!1),g=a.map(function(p,m){var y=n.getTickValueCoord(p),x=Ts(Ts(Ts(Ts({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:u},h),{},{index:m},y),{},{payload:p});return V.createElement(nr,af({className:jt("recharts-polar-radius-axis-tick",I8(o)),key:"tick-".concat(p.coordinate)},su(n.props,p,m)),t.renderTickItem(o,x,l?l(p.value,m):p.value))});return V.createElement(nr,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:V.createElement(nr,{className:jt("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),An.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return V.isValidElement(n)?o=V.cloneElement(n,i):Tt(n)?o=n(i):o=V.createElement(du,af({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(V.PureComponent);Fp(vh,"displayName","PolarRadiusAxis");Fp(vh,"axisType","radiusAxis");Fp(vh,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},js.apply(this,arguments)}function XT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Es(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XT(Object(r),!0).forEach(function(n){Rp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XT(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Q8(n.key),n)}}function bQ(e,t,r){return t&&JT(e.prototype,t),r&&JT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function wQ(e,t,r){return t=Id(t),_Q(e,Z8()?Reflect.construct(t,r||[],Id(e).constructor):t.apply(e,r))}function _Q(e,t){if(t&&(bu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SQ(e)}function SQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z8(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Z8=function(){return!!e})()}function Id(e){return Id=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Id(e)}function AQ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mx(e,t)}function mx(e,t){return mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mx(e,t)}function Rp(e,t,r){return t=Q8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q8(e){var t=TQ(e,"string");return bu(t)=="symbol"?t:t+""}function TQ(e,t){if(bu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var EQ=Math.PI/180,ZT=1e-5,mh=(function(e){function t(){return xQ(this,t),wQ(this,t,arguments)}return AQ(t,e),bQ(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,s=i.radius,l=i.orientation,u=i.tickSize,c=u||8,f=mr(a,o,s,n.coordinate),d=mr(a,o,s+(l==="inner"?-1:1)*c,n.coordinate);return{x1:f.x,y1:f.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*EQ),o;return a>ZT?o=i==="outer"?"start":"end":a<-ZT?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,s=n.axisLine,l=n.axisLineType,u=Es(Es({},mt(this.props,!1)),{},{fill:"none"},mt(s,!1));if(l==="circle")return V.createElement(ph,js({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var c=this.props.ticks,f=c.map(function(d){return mr(i,a,o,d.coordinate)});return V.createElement(K8,js({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,u=i.stroke,c=mt(this.props,!1),f=mt(o,!1),d=Es(Es({},c),{},{fill:"none"},mt(s,!1)),h=a.map(function(g,p){var m=n.getTickLineCoord(g),y=n.getTickTextAnchor(g),x=Es(Es(Es({textAnchor:y},c),{},{stroke:"none",fill:u},f),{},{index:p,payload:g,x:m.x2,y:m.y2});return V.createElement(nr,js({className:jt("recharts-polar-angle-axis-tick",I8(o)),key:"tick-".concat(g.coordinate)},su(n.props,g,p)),s&&V.createElement("line",js({className:"recharts-polar-angle-axis-tick-line"},d,m)),o&&t.renderTickItem(o,x,l?l(g.value,p):g.value))});return V.createElement(nr,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:V.createElement(nr,{className:jt("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return V.isValidElement(n)?o=V.cloneElement(n,i):Tt(n)?o=n(i):o=V.createElement(du,js({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(V.PureComponent);Rp(mh,"displayName","PolarAngleAxis");Rp(mh,"axisType","angleAxis");Rp(mh,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Py,QT;function OQ(){if(QT)return Py;QT=1;var e=a6(),t=e(Object.getPrototypeOf,Object);return Py=t,Py}var Ny,eE;function PQ(){if(eE)return Ny;eE=1;var e=To(),t=OQ(),r=Eo(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var d=s.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==l}return Ny=u,Ny}var NQ=PQ();const CQ=ar(NQ);var Cy,tE;function jQ(){if(tE)return Cy;tE=1;var e=To(),t=Eo(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Cy=n,Cy}var kQ=jQ();const LQ=ar(kQ);function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}function Fd(){return Fd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Fd.apply(this,arguments)}function IQ(e,t){return DQ(e)||MQ(e,t)||RQ(e,t)||FQ()}function FQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
439
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function RQ(e,t){if(e){if(typeof e=="string")return rE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rE(e,t)}}function rE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MQ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function DQ(e){if(Array.isArray(e))return e}function nE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nE(Object(r),!0).forEach(function(n){BQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function BQ(e,t,r){return t=$Q(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $Q(e){var t=qQ(e,"string");return Wf(t)=="symbol"?t:t+""}function qQ(e,t){if(Wf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aE=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},UQ={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},zQ=function(t){var r=iE(iE({},UQ),t),n=V.useRef(),i=V.useState(-1),a=IQ(i,2),o=a[0],s=a[1];V.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&s(w)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,g=r.animationEasing,p=r.animationDuration,m=r.animationBegin,y=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||d!==+d||c===0&&f===0||d===0)return null;var x=jt("recharts-trapezoid",h);return y?V.createElement(qa,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:d,x:l,y:u},duration:p,animationEasing:g,isActive:y},function(w){var T=w.upperWidth,_=w.lowerWidth,O=w.height,A=w.x,k=w.y;return V.createElement(qa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:m,duration:p,easing:g},V.createElement("path",Fd({},mt(r,!0),{className:x,d:aE(A,k,T,_,O),ref:n})))}):V.createElement("g",null,V.createElement("path",Fd({},mt(r,!0),{className:x,d:aE(l,u,c,f,d)})))},WQ=["option","shapeType","propTransformer","activeClassName","isActive"];function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function HQ(e,t){if(e==null)return{};var r=GQ(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GQ(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function oE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oE(Object(r),!0).forEach(function(n){VQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function VQ(e,t,r){return t=KQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KQ(e){var t=YQ(e,"string");return Hf(t)=="symbol"?t:t+""}function YQ(e,t){if(Hf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XQ(e,t){return Rd(Rd({},t),e)}function JQ(e,t){return e==="symbols"}function sE(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return V.createElement(s5,r);case"trapezoid":return V.createElement(zQ,r);case"sector":return V.createElement(D8,r);case"symbols":if(JQ(t))return V.createElement(Tb,r);break;default:return null}}function ZQ(e){return V.isValidElement(e)?e.props:e}function QQ(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?XQ:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=HQ(e,WQ),u;if(V.isValidElement(t))u=V.cloneElement(t,Rd(Rd({},l),ZQ(t)));else if(Tt(t))u=t(l);else if(CQ(t)&&!LQ(t)){var c=i(t,l);u=V.createElement(sE,{shapeType:r,elementProps:c})}else{var f=l;u=V.createElement(sE,{shapeType:r,elementProps:f})}return s?V.createElement(nr,{className:o},u):u}function Mp(e,t){return t!=null&&"trapezoids"in e.props}function Dp(e,t){return t!=null&&"sectors"in e.props}function Gf(e,t){return t!=null&&"points"in e.props}function eee(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function tee(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function ree(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function nee(e,t){var r;return Mp(e,t)?r=eee:Dp(e,t)?r=tee:Gf(e,t)&&(r=ree),r}function iee(e,t){var r;return Mp(e,t)?r="trapezoids":Dp(e,t)?r="sectors":Gf(e,t)&&(r="points"),r}function aee(e,t){if(Mp(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Dp(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Gf(e,t)?t.payload:{}}function oee(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=iee(r,t),a=aee(r,t),o=n.filter(function(l,u){var c=hh(a,l),f=r.props[i].filter(function(g){var p=nee(r,t);return p(g,t)}),d=r.props[i].indexOf(f[f.length-1]),h=u===d;return c&&h}),s=n.indexOf(o[o.length-1]);return s}var jy,lE;function see(){if(lE)return jy;lE=1;function e(t){return t&&t.length?t[0]:void 0}return jy=e,jy}var ky,uE;function lee(){return uE||(uE=1,ky=see()),ky}var uee=lee();const cee=ar(uee);var fee=["key"];function wu(e){"@babel/helpers - typeof";return wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wu(e)}function hee(e,t){if(e==null)return{};var r=dee(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dee(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Md(){return Md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Md.apply(this,arguments)}function cE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cE(Object(r),!0).forEach(function(n){oo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tC(n.key),n)}}function vee(e,t,r){return t&&fE(e.prototype,t),r&&fE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function mee(e,t,r){return t=Dd(t),gee(e,eC()?Reflect.construct(t,r||[],Dd(e).constructor):t.apply(e,r))}function gee(e,t){if(t&&(wu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yee(e)}function yee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eC=function(){return!!e})()}function Dd(e){return Dd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dd(e)}function xee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gx(e,t)}function gx(e,t){return gx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gx(e,t)}function oo(e,t,r){return t=tC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tC(e){var t=bee(e,"string");return wu(t)=="symbol"?t:t+""}function bee(e,t){if(wu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gh=(function(e){function t(){var r;pee(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=mee(this,t,[].concat(i)),oo(r,"state",{isAnimationFinished:!1}),oo(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Tt(o)&&o()}),oo(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Tt(o)&&o()}),oo(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),oo(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return xee(t,e),vee(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=mt(this.props,!1),l=mt(a,!0),u=n.map(function(c,f){var d=Wn(Wn(Wn({key:"dot-".concat(f),r:3},s),l),{},{dataKey:o,cx:c.x,cy:c.y,index:f,payload:c});return t.renderDotItem(a,d)});return V.createElement(nr,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,s=i.isRange,l=i.baseLinePoints,u=i.connectNulls,c;return V.isValidElement(a)?c=V.cloneElement(a,Wn(Wn({},this.props),{},{points:n})):Tt(a)?c=a(Wn(Wn({},this.props),{},{points:n})):c=V.createElement(K8,Md({},mt(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?l:null,connectNulls:u})),V.createElement(nr,{className:"recharts-radar-polygon"},c,o?this.renderDots(n):null)}},{key:"renderPolygonWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return V.createElement(qa,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,g=f&&f.length/a.length,p=a.map(function(m,y){var x=f&&f[Math.floor(y*g)];if(x){var w=Kn(x.x,m.x),T=Kn(x.y,m.y);return Wn(Wn({},m),{},{x:w(h),y:T(h)})}var _=Kn(m.cx,m.x),O=Kn(m.cy,m.y);return Wn(Wn({},m),{},{x:_(h),y:O(h)})});return n.renderPolygonStatically(p)})}},{key:"renderPolygon",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=n.isRange,s=this.state.prevPoints;return a&&i&&i.length&&!o&&(!s||!hh(s,i))?this.renderPolygonWithAnimation():this.renderPolygonStatically(i)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.className,o=n.points,s=n.isAnimationActive;if(i||!o||!o.length)return null;var l=this.state.isAnimationFinished,u=jt("recharts-radar",a);return V.createElement(nr,{className:u},this.renderPolygon(),(!s||l)&&go.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"renderDotItem",value:function(n,i){var a;if(V.isValidElement(n))a=V.cloneElement(n,i);else if(Tt(n))a=n(i);else{var o=i.key,s=hee(i,fee);a=V.createElement(ph,Md({},s,{key:o,className:jt("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(V.PureComponent);oo(gh,"displayName","Radar");oo(gh,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!al.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});oo(gh,"getComposedData",function(e){var t=e.radiusAxis,r=e.angleAxis,n=e.displayedData,i=e.dataKey,a=e.bandSize,o=r.cx,s=r.cy,l=!1,u=[],c=r.type!=="number"?a??0:0;n.forEach(function(d,h){var g=Zn(d,r.dataKey,h),p=Zn(d,i),m=r.scale(g)+c,y=Array.isArray(p)?R8(p):p,x=Dt(y)?void 0:t.scale(y);Array.isArray(p)&&p.length>=2&&(l=!0),u.push(Wn(Wn({},mr(o,s,x,m)),{},{name:g,value:p,cx:o,cy:s,radius:x,angle:m,payload:d}))});var f=[];return l&&u.forEach(function(d){if(Array.isArray(d.value)){var h=cee(d.value),g=Dt(h)?void 0:t.scale(h);f.push(Wn(Wn({},d),{},{radius:g},mr(o,s,g,d.angle)))}else f.push(d)}),{points:u,isRange:l,baseLinePoints:f}});var Ly,hE;function wee(){if(hE)return Ly;hE=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,l=t(e((i-n)/(a||1)),0),u=Array(l);l--;)u[o?l:++s]=n,n+=a;return u}return Ly=r,Ly}var Iy,dE;function rC(){if(dE)return Iy;dE=1;var e=w6(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Iy=n,Iy}var Fy,pE;function _ee(){if(pE)return Fy;pE=1;var e=wee(),t=Sp(),r=rC();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Fy=n,Fy}var Ry,vE;function See(){if(vE)return Ry;vE=1;var e=_ee(),t=e();return Ry=t,Ry}var Aee=See();const Bd=ar(Aee);function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function mE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mE(Object(r),!0).forEach(function(n){nC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nC(e,t,r){return t=Tee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tee(e){var t=Eee(e,"string");return Vf(t)=="symbol"?t:t+""}function Eee(e,t){if(Vf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Oee=["Webkit","Moz","O","ms"],Pee=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Oee.reduce(function(a,o){return gE(gE({},a),{},nC({},o+n,r))},{});return i[t]=r,i};function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$d.apply(this,arguments)}function yE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function My(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yE(Object(r),!0).forEach(function(n){wi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,aC(n.key),n)}}function Cee(e,t,r){return t&&xE(e.prototype,t),r&&xE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function jee(e,t,r){return t=qd(t),kee(e,iC()?Reflect.construct(t,r||[],qd(e).constructor):t.apply(e,r))}function kee(e,t){if(t&&(_u(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Lee(e)}function Lee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iC=function(){return!!e})()}function qd(e){return qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qd(e)}function Iee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yx(e,t)}function yx(e,t){return yx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yx(e,t)}function wi(e,t,r){return t=aC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aC(e){var t=Fee(e,"string");return _u(t)=="symbol"?t:t+""}function Fee(e,t){if(_u(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_u(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ree=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=ef().domain(Bd(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},bE=function(t){return t.changedTouches&&!!t.changedTouches.length},Su=(function(e){function t(r){var n;return Nee(this,t),n=jee(this,t,[r]),wi(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),wi(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),wi(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),wi(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),wi(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),wi(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),wi(n,"handleSlideDragStart",function(i){var a=bE(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return Iee(t,e),Cee(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,f),g=t.getIndexInRange(o,d);return{startIndex:h-h%l,endIndex:g===c?c:g-g%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=Zn(a[n],s,n);return Tt(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,g=l.onChange,p=n.pageX-a;p>0?p=Math.min(p,u+c-f-s,u+c-f-o):p<0&&(p=Math.max(p,u-o,u-s));var m=this.getIndex({startX:o+p,endX:s+p});(m.startIndex!==d||m.endIndex!==h)&&g&&g(m),this.setState({startX:o+p,endX:s+p,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=bE(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,d=c.width,h=c.travellerWidth,g=c.onChange,p=c.gap,m=c.data,y={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,f+d-h-u):x<0&&(x=Math.max(x,f-u)),y[o]=u+x;var w=this.getIndex(y),T=w.startIndex,_=w.endIndex,O=function(){var k=m.length-1;return o==="startX"&&(s>l?T%p===0:_%p===0)||s<l&&_===k||o==="endX"&&(s>l?_%p===0:T%p===0)||s>l&&_===k};this.setState(wi(wi({},o,u+x),"brushMoveStartX",n.pageX),function(){g&&O()&&g(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=u||i==="endX"&&h<=l||this.setState(wi({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return V.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=V.Children.only(u);return f?V.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,g=l.data,p=l.startIndex,m=l.endIndex,y=Math.max(n,this.props.x),x=My(My({},mt(this.props,!1)),{},{x:y,y:u,width:c,height:f}),w=h||"Min value: ".concat((a=g[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=g[m])===null||o===void 0?void 0:o.name);return V.createElement(nr,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(_){["ArrowLeft","ArrowRight"].includes(_.key)&&(_.preventDefault(),_.stopPropagation(),s.handleTravellerMoveKeyboard(_.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return V.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,d=c.endX,h=5,g={pointerEvents:"none",fill:u};return V.createElement(nr,{className:"recharts-brush-texts"},V.createElement(du,$d({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},g),this.getTextOfTick(i)),V.createElement(du,$d({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,d)+l+h,y:o+s/2},g),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,g=d.endX,p=d.isTextActive,m=d.isSlideMoving,y=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!rt(s)||!rt(l)||!rt(u)||!rt(c)||u<=0||c<=0)return null;var w=jt("recharts-brush",a),T=V.Children.count(o)===1,_=Pee("userSelect","none");return V.createElement(nr,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:_},this.renderBackground(),T&&this.renderPanorama(),this.renderSlide(h,g),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(g,"endX"),(p||m||y||x||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return V.createElement(V.Fragment,null,V.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),V.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return V.isValidElement(n)?a=V.cloneElement(n,i):Tt(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return My({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?Ree({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])})(V.PureComponent);wi(Su,"displayName","Brush");wi(Su,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Dy,wE;function Mee(){if(wE)return Dy;wE=1;var e=kb();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Dy=t,Dy}var By,_E;function Dee(){if(_E)return By;_E=1;var e=ZN(),t=Wa(),r=Mee(),n=hi(),i=Sp();function a(o,s,l){var u=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),u(o,t(s,3))}return By=a,By}var Bee=Dee();const $ee=ar(Bee);var Da=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},$y,SE;function qee(){if(SE)return $y;SE=1;var e=m6();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return $y=t,$y}var qy,AE;function Uee(){if(AE)return qy;AE=1;var e=qee(),t=p6(),r=Wa();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,u){e(o,l,a(s,l,u))}),o}return qy=n,qy}var zee=Uee();const Wee=ar(zee);var Uy,TE;function Hee(){if(TE)return Uy;TE=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Uy=e,Uy}var zy,EE;function Gee(){if(EE)return zy;EE=1;var e=kb();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return zy=t,zy}var Wy,OE;function Vee(){if(OE)return Wy;OE=1;var e=Hee(),t=Gee(),r=Wa(),n=hi(),i=Sp();function a(o,s,l){var u=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),u(o,r(s,3))}return Wy=a,Wy}var Kee=Vee();const oC=ar(Kee);var Yee=["x","y"];function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xx.apply(this,arguments)}function PE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PE(Object(r),!0).forEach(function(n){Xee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xee(e,t,r){return t=Jee(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Jee(e){var t=Zee(e,"string");return Au(t)=="symbol"?t:t+""}function Zee(e,t){if(Au(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Au(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qee(e,t){if(e==null)return{};var r=ete(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ete(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tte(e,t){var r=e.x,n=e.y,i=Qee(e,Yee),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),d=parseInt(f,10);return Mc(Mc(Mc(Mc(Mc({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function NE(e){return V.createElement(QQ,xx({shapeType:"rectangle",propTransformer:tte,activeClassName:"recharts-active-bar"},e))}var rte=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=rt(n)||Z$(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?si(!1,"minPointSize callback function received a value with type of ".concat(Au(n),". Currently only numbers or null/undefined are supported.")):si()),r)}},nte=["value","background"],sC;function Tu(e){"@babel/helpers - typeof";return Tu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tu(e)}function ite(e,t){if(e==null)return{};var r=ate(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ate(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ud.apply(this,arguments)}function CE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CE(Object(r),!0).forEach(function(n){Qo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ote(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uC(n.key),n)}}function ste(e,t,r){return t&&jE(e.prototype,t),r&&jE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function lte(e,t,r){return t=zd(t),ute(e,lC()?Reflect.construct(t,r||[],zd(e).constructor):t.apply(e,r))}function ute(e,t){if(t&&(Tu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cte(e)}function cte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lC=function(){return!!e})()}function zd(e){return zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zd(e)}function fte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bx(e,t)}function bx(e,t){return bx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},bx(e,t)}function Qo(e,t,r){return t=uC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uC(e){var t=hte(e,"string");return Tu(t)=="symbol"?t:t+""}function hte(e,t){if(Tu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ul=(function(e){function t(){var r;ote(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=lte(this,t,[].concat(i)),Qo(r,"state",{isAnimationFinished:!1}),Qo(r,"id",oh("recharts-bar-")),Qo(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Qo(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return fte(t,e),ste(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=mt(this.props,!1);return n&&n.map(function(f,d){var h=d===l,g=h?u:o,p=Jr(Jr(Jr({},c),f),{},{isActive:h,option:g,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return V.createElement(nr,Ud({className:"recharts-bar-rectangle"},su(i.props,f,d),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(d)}),V.createElement(NE,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,d=this.state.prevData;return V.createElement(qa,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var g=h.t,p=a.map(function(m,y){var x=d&&d[y];if(x){var w=Kn(x.x,m.x),T=Kn(x.y,m.y),_=Kn(x.width,m.width),O=Kn(x.height,m.height);return Jr(Jr({},m),{},{x:w(g),y:T(g),width:_(g),height:O(g)})}if(o==="horizontal"){var A=Kn(0,m.height),k=A(g);return Jr(Jr({},m),{},{y:m.y+m.height-k,height:k})}var L=Kn(0,m.width),B=L(g);return Jr(Jr({},m),{},{width:B})});return V.createElement(nr,null,n.renderRectanglesStatically(p))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!hh(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=mt(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,d=ite(u,nte);if(!f)return null;var h=Jr(Jr(Jr(Jr(Jr({},d),{},{fill:"#eee"},f),l),su(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return V.createElement(NE,Ud({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=Ki(c,dh);if(!f)return null;var d=u==="vertical"?o[0].height/2:o[0].width/2,h=function(m,y){var x=Array.isArray(m.value)?m.value[1]:m.value;return{x:m.x,y:m.y,value:x,errorVal:Zn(m,y)}},g={clipPath:n?"url(#clipPath-".concat(i,")"):null};return V.createElement(nr,g,f.map(function(p){return V.cloneElement(p,{key:"error-bar-".concat(i,"-").concat(p.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,d=n.height,h=n.isAnimationActive,g=n.background,p=n.id;if(i||!a||!a.length)return null;var m=this.state.isAnimationFinished,y=jt("recharts-bar",o),x=s&&s.allowDataOverflow,w=l&&l.allowDataOverflow,T=x||w,_=Dt(p)?this.id:p;return V.createElement(nr,{className:y},x||w?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(_)},V.createElement("rect",{x:x?u:u-f/2,y:w?c:c-d/2,width:x?f:f*2,height:w?d:d*2}))):null,V.createElement(nr,{className:"recharts-bar-rectangles",clipPath:T?"url(#clipPath-".concat(_,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(T,_),(!h||m)&&go.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(V.PureComponent);sC=ul;Qo(ul,"displayName","Bar");Qo(ul,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!al.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Qo(ul,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,d=e.offset,h=pY(n,r);if(!h)return null;var g=t.layout,p=r.type.defaultProps,m=p!==void 0?Jr(Jr({},p),r.props):r.props,y=m.dataKey,x=m.children,w=m.minPointSize,T=g==="horizontal"?o:a,_=u?T.scale.domain():null,O=wY({numericAxis:T}),A=Ki(x,S6),k=f.map(function(L,B){var C,P,M,q,J,U;u?C=vY(u[c+B],_):(C=Zn(L,y),Array.isArray(C)||(C=[O,C]));var H=rte(w,sC.defaultProps.minPointSize)(C[1],B);if(g==="horizontal"){var ee,Z=[o.scale(C[0]),o.scale(C[1])],Q=Z[0],le=Z[1];P=YA({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:L,index:B}),M=(ee=le??Q)!==null&&ee!==void 0?ee:void 0,q=h.size;var N=Q-le;if(J=Number.isNaN(N)?0:N,U={x:P,y:o.y,width:q,height:o.height},Math.abs(H)>0&&Math.abs(J)<Math.abs(H)){var I=ya(J||H)*(Math.abs(H)-Math.abs(J));M-=I,J+=I}}else{var R=[a.scale(C[0]),a.scale(C[1])],D=R[0],G=R[1];if(P=D,M=YA({axis:o,ticks:l,bandSize:i,offset:h.offset,entry:L,index:B}),q=G-D,J=h.size,U={x:a.x,y:M,width:a.width,height:J},Math.abs(H)>0&&Math.abs(q)<Math.abs(H)){var ce=ya(q||H)*(Math.abs(H)-Math.abs(q));q+=ce}}return Jr(Jr(Jr({},L),{},{x:P,y:M,width:q,height:J,value:u?C:C[1],payload:L,background:U},A&&A[B]&&A[B].props),{},{tooltipPayload:[k8(r,L)],tooltipPosition:{x:P+q/2,y:M+J/2}})});return Jr({data:k,layout:g},d)});function Kf(e){"@babel/helpers - typeof";return Kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kf(e)}function dte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,cC(n.key),n)}}function pte(e,t,r){return t&&kE(e.prototype,t),r&&kE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function da(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LE(Object(r),!0).forEach(function(n){Bp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bp(e,t,r){return t=cC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cC(e){var t=vte(e,"string");return Kf(t)=="symbol"?t:t+""}function vte(e,t){if(Kf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fC=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},d=!!Si(u,ul);return c.reduce(function(h,g){var p=r[g],m=p.orientation,y=p.domain,x=p.padding,w=x===void 0?{}:x,T=p.mirror,_=p.reversed,O="".concat(m).concat(T?"Mirror":""),A,k,L,B,C;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var P=y[1]-y[0],M=1/0,q=p.categoricalDomain.sort(tq);if(q.forEach(function(R,D){D>0&&(M=Math.min((R||0)-(q[D-1]||0),M))}),Number.isFinite(M)){var J=M/P,U=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(A=J*U/2),p.padding==="no-gap"){var H=xa(t.barCategoryGap,J*U),ee=J*U/2;A=ee-H-(ee-H)/U*H}}}i==="xAxis"?k=[n.left+(w.left||0)+(A||0),n.left+n.width-(w.right||0)-(A||0)]:i==="yAxis"?k=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(A||0),n.top+n.height-(w.bottom||0)-(A||0)]:k=p.range,_&&(k=[k[1],k[0]]);var Z=P8(p,a,d),Q=Z.scale,le=Z.realScaleType;Q.domain(y).range(k),N8(Q);var N=C8(Q,da(da({},p),{},{realScaleType:le}));i==="xAxis"?(C=m==="top"&&!T||m==="bottom"&&T,L=n.left,B=f[O]-C*p.height):i==="yAxis"&&(C=m==="left"&&!T||m==="right"&&T,L=f[O]-C*p.width,B=n.top);var I=da(da(da({},p),N),{},{realScaleType:le,x:L,y:B,scale:Q,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return I.bandSize=Ad(I,N),!p.hide&&i==="xAxis"?f[O]+=(C?-1:1)*I.height:p.hide||(f[O]+=(C?-1:1)*I.width),da(da({},h),{},Bp({},g,I))},{})},hC=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},mte=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return hC({x:r,y:n},{x:i,y:a})},dC=(function(){function e(t){dte(this,e),this.scale=t}return pte(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();Bp(dC,"EPS",1e-4);var l5=function(t){var r=Object.keys(t).reduce(function(n,i){return da(da({},n),{},Bp({},i,dC.create(t[i])))},{});return da(da({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return Wee(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return oC(i,function(a,o){return r[o].isInRange(a)})}})};function gte(e){return(e%180+180)%180}var yte=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=gte(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Hy,IE;function xte(){if(IE)return Hy;IE=1;var e=Wa(),t=sh(),r=wp();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(l[f],f,l)}}var c=i(a,o,s);return c>-1?l[u?a[c]:c]:void 0}}return Hy=n,Hy}var Gy,FE;function bte(){if(FE)return Gy;FE=1;var e=rC();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Gy=t,Gy}var Vy,RE;function wte(){if(RE)return Vy;RE=1;var e=u6(),t=Wa(),r=bte(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var u=s==null?0:r(s);return u<0&&(u=n(l+u,0)),e(a,t(o,3),u)}return Vy=i,Vy}var Ky,ME;function _te(){if(ME)return Ky;ME=1;var e=xte(),t=wte(),r=e(t);return Ky=r,Ky}var Ste=_te();const Ate=ar(Ste);var Tte=TN();const Ete=ar(Tte);var Ote=Ete(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function Wd(e){"@babel/helpers - typeof";return Wd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wd(e)}var u5=V.createContext(void 0),c5=V.createContext(void 0),pC=V.createContext(void 0),vC=V.createContext({}),mC=V.createContext(void 0),gC=V.createContext(0),yC=V.createContext(0),DE=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=Ote(a);return V.createElement(u5.Provider,{value:n},V.createElement(c5.Provider,{value:i},V.createElement(vC.Provider,{value:a},V.createElement(pC.Provider,{value:c},V.createElement(mC.Provider,{value:o},V.createElement(gC.Provider,{value:u},V.createElement(yC.Provider,{value:l},s)))))))},Pte=function(){return V.useContext(mC)};function xC(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var bC=function(t){var r=V.useContext(u5);r==null&&(process.env.NODE_ENV!=="production"?si(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):si());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?si(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Wd(t),"]. ").concat(xC(r))):si()),n},Nte=function(){var t=V.useContext(u5);return Yo(t)},Cte=function(){var t=V.useContext(c5),r=Ate(t,function(n){return oC(n.domain,Number.isFinite)});return r||Yo(t)},wC=function(t){var r=V.useContext(c5);r==null&&(process.env.NODE_ENV!=="production"?si(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):si());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?si(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Wd(t),"]. ").concat(xC(r))):si()),n},jte=function(){var t=V.useContext(pC);return t},kte=function(){return V.useContext(vC)},f5=function(){return V.useContext(yC)},h5=function(){return V.useContext(gC)};function Eu(e){"@babel/helpers - typeof";return Eu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eu(e)}function Lte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ite(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,SC(n.key),n)}}function Fte(e,t,r){return t&&Ite(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rte(e,t,r){return t=Hd(t),Mte(e,_C()?Reflect.construct(t,r||[],Hd(e).constructor):t.apply(e,r))}function Mte(e,t){if(t&&(Eu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dte(e)}function Dte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_C=function(){return!!e})()}function Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hd(e)}function Bte(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wx(e,t)}function wx(e,t){return wx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},wx(e,t)}function BE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $E(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BE(Object(r),!0).forEach(function(n){d5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d5(e,t,r){return t=SC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SC(e){var t=$te(e,"string");return Eu(t)=="symbol"?t:t+""}function $te(e,t){if(Eu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function qte(e,t){return Hte(e)||Wte(e,t)||zte(e,t)||Ute()}function Ute(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
440
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zte(e,t){if(e){if(typeof e=="string")return qE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qE(e,t)}}function qE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Wte(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Hte(e){if(Array.isArray(e))return e}function _x(){return _x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_x.apply(this,arguments)}var Gte=function(t,r){var n;return V.isValidElement(t)?n=V.cloneElement(t,r):Tt(t)?n=t(r):n=V.createElement("line",_x({},r,{className:"recharts-reference-line-line"})),n},Vte=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,d=a.width,h=a.height;if(n){var g=u.y,p=t.y.apply(g,{position:o});if(Da(u,"discard")&&!t.y.isInRange(p))return null;var m=[{x:c+d,y:p},{x:c,y:p}];return l==="left"?m.reverse():m}if(r){var y=u.x,x=t.x.apply(y,{position:o});if(Da(u,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:f+h},{x,y:f}];return s==="top"?w.reverse():w}if(i){var T=u.segment,_=T.map(function(O){return t.apply(O,{position:o})});return Da(u,"discard")&&$ee(_,function(O){return!t.isInRange(O)})?null:_}return null};function Kte(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=Pte(),c=bC(i),f=wC(a),d=jte();if(!u||!d)return null;vo(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=l5({x:c.scale,y:f.scale}),g=un(t),p=un(r),m=n&&n.length===2,y=Vte(h,g,p,m,d,e.position,c.orientation,f.orientation,e);if(!y)return null;var x=qte(y,2),w=x[0],T=w.x,_=w.y,O=x[1],A=O.x,k=O.y,L=Da(e,"hidden")?"url(#".concat(u,")"):void 0,B=$E($E({clipPath:L},mt(e,!0)),{},{x1:T,y1:_,x2:A,y2:k});return V.createElement(nr,{className:jt("recharts-reference-line",s)},Gte(o,B),An.renderCallByParent(e,mte({x1:T,y1:_,x2:A,y2:k})))}var p5=(function(e){function t(){return Lte(this,t),Rte(this,t,arguments)}return Bte(t,e),Fte(t,[{key:"render",value:function(){return V.createElement(Kte,this.props)}}])})(V.Component);d5(p5,"displayName","ReferenceLine");d5(p5,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Sx(){return Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sx.apply(this,arguments)}function Ou(e){"@babel/helpers - typeof";return Ou=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ou(e)}function UE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UE(Object(r),!0).forEach(function(n){$p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xte(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TC(n.key),n)}}function Jte(e,t,r){return t&&Xte(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zte(e,t,r){return t=Gd(t),Qte(e,AC()?Reflect.construct(t,r||[],Gd(e).constructor):t.apply(e,r))}function Qte(e,t){if(t&&(Ou(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ere(e)}function ere(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AC=function(){return!!e})()}function Gd(e){return Gd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gd(e)}function tre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ax(e,t)}function Ax(e,t){return Ax=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ax(e,t)}function $p(e,t,r){return t=TC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TC(e){var t=rre(e,"string");return Ou(t)=="symbol"?t:t+""}function rre(e,t){if(Ou(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ou(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nre=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=l5({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return Da(t,"discard")&&!o.isInRange(s)?null:s},qp=(function(e){function t(){return Yte(this,t),Zte(this,t,arguments)}return tre(t,e),Jte(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=un(i),c=un(a);if(vo(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=nre(this.props);if(!f)return null;var d=f.x,h=f.y,g=this.props,p=g.shape,m=g.className,y=Da(this.props,"hidden")?"url(#".concat(l,")"):void 0,x=zE(zE({clipPath:y},mt(this.props,!0)),{},{cx:d,cy:h});return V.createElement(nr,{className:jt("recharts-reference-dot",m)},t.renderDot(p,x),An.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(V.Component);$p(qp,"displayName","ReferenceDot");$p(qp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});$p(qp,"renderDot",function(e,t){var r;return V.isValidElement(e)?r=V.cloneElement(e,t):Tt(e)?r=e(t):r=V.createElement(ph,Sx({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Tx(){return Tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tx.apply(this,arguments)}function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}function WE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WE(Object(r),!0).forEach(function(n){Up(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ire(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function are(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OC(n.key),n)}}function ore(e,t,r){return t&&are(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sre(e,t,r){return t=Vd(t),lre(e,EC()?Reflect.construct(t,r||[],Vd(e).constructor):t.apply(e,r))}function lre(e,t){if(t&&(Pu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ure(e)}function ure(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EC=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vd(e)}function cre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ex(e,t)}function Ex(e,t){return Ex=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ex(e,t)}function Up(e,t,r){return t=OC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OC(e){var t=fre(e,"string");return Pu(t)=="symbol"?t:t+""}function fre(e,t){if(Pu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hre=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var d=l5({x:c.scale,y:f.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(l,{position:"start"}):d.y.rangeMin},g={x:r?d.x.apply(s,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(u,{position:"end"}):d.y.rangeMax};return Da(a,"discard")&&(!d.isInRange(h)||!d.isInRange(g))?null:hC(h,g)},zp=(function(e){function t(){return ire(this,t),sre(this,t,arguments)}return cre(t,e),ore(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;vo(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=un(i),d=un(a),h=un(o),g=un(s),p=this.props.shape;if(!f&&!d&&!h&&!g&&!p)return null;var m=hre(f,d,h,g,this.props);if(!m&&!p)return null;var y=Da(this.props,"hidden")?"url(#".concat(c,")"):void 0;return V.createElement(nr,{className:jt("recharts-reference-area",l)},t.renderRect(p,HE(HE({clipPath:y},mt(this.props,!0)),m)),An.renderCallByParent(this.props,m))}}])})(V.Component);Up(zp,"displayName","ReferenceArea");Up(zp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Up(zp,"renderRect",function(e,t){var r;return V.isValidElement(e)?r=V.cloneElement(e,t):Tt(e)?r=e(t):r=V.createElement(s5,Tx({},t,{className:"recharts-reference-area-rect"})),r});function PC(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function dre(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return yte(n,r)}function pre(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Kd(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function vre(e,t){return PC(e,t+1)}function mre(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var g=n==null?void 0:n[l];if(g===void 0)return{v:PC(n,u)};var p=l,m,y=function(){return m===void 0&&(m=r(g,p)),m},x=g.coordinate,w=l===0||Kd(e,x,y,c,s);w||(l=0,c=o,u+=1),w&&(c=x+e*(y()/2+i),l+=u)},d;u<=a.length;)if(d=f(),d)return d.v;return[]}function Yf(e){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}function GE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GE(Object(r),!0).forEach(function(n){gre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gre(e,t,r){return t=yre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yre(e){var t=xre(e,"string");return Yf(t)=="symbol"?t:t+""}function xre(e,t){if(Yf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Yf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bre(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(d){var h=a[d],g,p=function(){return g===void 0&&(g=r(h,d)),g};if(d===o-1){var m=e*(h.coordinate+e*p()/2-l);a[d]=h=Rn(Rn({},h),{},{tickCoord:m>0?h.coordinate-m*e:h.coordinate})}else a[d]=h=Rn(Rn({},h),{},{tickCoord:h.coordinate});var y=Kd(e,h.tickCoord,p,s,l);y&&(l=h.tickCoord-e*(p()/2+i),a[d]=Rn(Rn({},h),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function wre(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),d=e*(c.coordinate+e*f/2-u);o[s-1]=c=Rn(Rn({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate});var h=Kd(e,c.tickCoord,function(){return f},l,u);h&&(u=c.tickCoord-e*(f/2+i),o[s-1]=Rn(Rn({},c),{},{isShow:!0}))}for(var g=a?s-1:s,p=function(x){var w=o[x],T,_=function(){return T===void 0&&(T=r(w,x)),T};if(x===0){var O=e*(w.coordinate-e*_()/2-l);o[x]=w=Rn(Rn({},w),{},{tickCoord:O<0?w.coordinate-O*e:w.coordinate})}else o[x]=w=Rn(Rn({},w),{},{tickCoord:w.coordinate});var A=Kd(e,w.tickCoord,_,l,u);A&&(l=w.tickCoord+e*(_()/2+i),o[x]=Rn(Rn({},w),{},{isShow:!0}))},m=0;m<g;m++)p(m);return o}function v5(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(rt(l)||al.isSsr)return vre(i,typeof l=="number"&&rt(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",g=c&&h==="width"?Qc(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(w,T){var _=Tt(u)?u(w.value,T):w.value;return h==="width"?dre(Qc(_,{fontSize:t,letterSpacing:r}),g,f):Qc(_,{fontSize:t,letterSpacing:r})[h]},m=i.length>=2?ya(i[1].coordinate-i[0].coordinate):1,y=pre(a,m,h);return l==="equidistantPreserveStart"?mre(m,y,p,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=wre(m,y,p,i,o,l==="preserveStartEnd"):d=bre(m,y,p,i,o),d.filter(function(x){return x.isShow}))}var _re=["viewBox"],Sre=["viewBox"],Are=["ticks"];function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function Yl(){return Yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yl.apply(this,arguments)}function VE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function an(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VE(Object(r),!0).forEach(function(n){m5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yy(e,t){if(e==null)return{};var r=Tre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Tre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ere(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CC(n.key),n)}}function Ore(e,t,r){return t&&KE(e.prototype,t),r&&KE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pre(e,t,r){return t=Yd(t),Nre(e,NC()?Reflect.construct(t,r||[],Yd(e).constructor):t.apply(e,r))}function Nre(e,t){if(t&&(Nu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cre(e)}function Cre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NC=function(){return!!e})()}function Yd(e){return Yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yd(e)}function jre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ox(e,t)}function Ox(e,t){return Ox=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ox(e,t)}function m5(e,t,r){return t=CC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CC(e){var t=kre(e,"string");return Nu(t)=="symbol"?t:t+""}function kre(e,t){if(Nu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ku=(function(e){function t(r){var n;return Ere(this,t),n=Pre(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return jre(t,e),Ore(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Yy(n,_re),s=this.props,l=s.viewBox,u=Yy(s,Sre);return!nu(a,l)||!nu(o,u)||!nu(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,d=i.tickMargin,h,g,p,m,y,x,w=f?-1:1,T=n.tickSize||c,_=rt(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":h=g=n.coordinate,m=o+ +!f*l,p=m-w*T,x=p-w*d,y=_;break;case"left":p=m=n.coordinate,g=a+ +!f*s,h=g-w*T,y=h-w*d,x=_;break;case"right":p=m=n.coordinate,g=a+ +f*s,h=g+w*T,y=h+w*d,x=_;break;default:h=g=n.coordinate,m=o+ +f*l,p=m+w*T,x=p+w*d,y=_;break}return{line:{x1:h,y1:p,x2:g,y2:m},tick:{x:y,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=an(an(an({},mt(this.props,!1)),mt(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!u||l==="bottom"&&u);f=an(an({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(l==="left"&&!u||l==="right"&&u);f=an(an({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return V.createElement("line",Yl({},f,{className:jt("recharts-cartesian-axis-line",Vi(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,d=s.unit,h=v5(an(an({},this.props),{},{ticks:n}),i,a),g=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),m=mt(this.props,!1),y=mt(c,!1),x=an(an({},m),{},{fill:"none"},mt(l,!1)),w=h.map(function(T,_){var O=o.getTickLineCoord(T),A=O.line,k=O.tick,L=an(an(an(an({textAnchor:g,verticalAnchor:p},m),{},{stroke:"none",fill:u},y),k),{},{index:_,payload:T,visibleTicksCount:h.length,tickFormatter:f});return V.createElement(nr,Yl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(T.value,"-").concat(T.coordinate,"-").concat(T.tickCoord)},su(o.props,T,_)),l&&V.createElement("line",Yl({},x,A,{className:jt("recharts-cartesian-axis-tick-line",Vi(l,"className"))})),c&&t.renderTickItem(c,L,"".concat(Tt(f)?f(T.value,_):T.value).concat(d||"")))});return V.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,d=f.ticks,h=Yy(f,Are),g=d;return Tt(l)&&(g=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!g||!g.length?null:V.createElement(nr,{className:jt("recharts-cartesian-axis",u),ref:function(m){n.layerReference=m}},a&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),An.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=jt(i.className,"recharts-cartesian-axis-tick-value");return V.isValidElement(n)?o=V.cloneElement(n,an(an({},i),{},{className:s})):Tt(n)?o=n(an(an({},i),{},{className:s})):o=V.createElement(du,Yl({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(V.Component);m5(Ku,"displayName","CartesianAxis");m5(Ku,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Lre=["x1","y1","x2","y2","key"],Ire=["offset"];function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function YE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Mn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YE(Object(r),!0).forEach(function(n){Fre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fre(e,t,r){return t=Rre(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rre(e){var t=Mre(e,"string");return Js(t)=="symbol"?t:t+""}function Mre(e,t){if(Js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rs.apply(this,arguments)}function XE(e,t){if(e==null)return{};var r=Dre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Dre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Bre=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return V.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function jC(e,t){var r;if(V.isValidElement(e))r=V.cloneElement(e,t);else if(Tt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=XE(t,Lre),u=mt(l,!1);u.offset;var c=XE(u,Ire);r=V.createElement("line",Rs({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function $re(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Mn(Mn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return jC(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function qre(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Mn(Mn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return jC(i,u)});return V.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Ure(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var g=!c[h+1],p=g?i+o-d:c[h+1]-d;if(p<=0)return null;var m=h%t.length;return V.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[m],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function zre(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==c[0]&&c.unshift(0);var f=c.map(function(d,h){var g=!c[h+1],p=g?a+s-d:c[h+1]-d;if(p<=0)return null;var m=h%n.length;return V.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:l,stroke:"none",fill:n[m],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return V.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Wre=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return O8(v5(Mn(Mn(Mn({},Ku.defaultProps),n),{},{ticks:uo(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Hre=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return O8(v5(Mn(Mn(Mn({},Ku.defaultProps),n),{},{ticks:uo(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Bl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Px(e){var t,r,n,i,a,o,s=f5(),l=h5(),u=kte(),c=Mn(Mn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Bl.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Bl.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Bl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Bl.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Bl.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Bl.verticalFill,x:rt(e.x)?e.x:u.left,y:rt(e.y)?e.y:u.top,width:rt(e.width)?e.width:u.width,height:rt(e.height)?e.height:u.height}),f=c.x,d=c.y,h=c.width,g=c.height,p=c.syncWithTicks,m=c.horizontalValues,y=c.verticalValues,x=Nte(),w=Cte();if(!rt(h)||h<=0||!rt(g)||g<=0||!rt(f)||f!==+f||!rt(d)||d!==+d)return null;var T=c.verticalCoordinatesGenerator||Wre,_=c.horizontalCoordinatesGenerator||Hre,O=c.horizontalPoints,A=c.verticalPoints;if((!O||!O.length)&&Tt(_)){var k=m&&m.length,L=_({yAxis:w?Mn(Mn({},w),{},{ticks:k?m:w.ticks}):void 0,width:s,height:l,offset:u},k?!0:p);vo(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Js(L),"]")),Array.isArray(L)&&(O=L)}if((!A||!A.length)&&Tt(T)){var B=y&&y.length,C=T({xAxis:x?Mn(Mn({},x),{},{ticks:B?y:x.ticks}):void 0,width:s,height:l,offset:u},B?!0:p);vo(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Js(C),"]")),Array.isArray(C)&&(A=C)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(Bre,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),V.createElement($re,Rs({},c,{offset:u,horizontalPoints:O,xAxis:x,yAxis:w})),V.createElement(qre,Rs({},c,{offset:u,verticalPoints:A,xAxis:x,yAxis:w})),V.createElement(Ure,Rs({},c,{horizontalPoints:O})),V.createElement(zre,Rs({},c,{verticalPoints:A})))}Px.displayName="CartesianGrid";var Gre=["type","layout","connectNulls","ref"],Vre=["key"];function Cu(e){"@babel/helpers - typeof";return Cu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cu(e)}function JE(e,t){if(e==null)return{};var r=Kre(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kre(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},of.apply(this,arguments)}function ZE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZE(Object(r),!0).forEach(function(n){pa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $l(e){return Zre(e)||Jre(e)||Xre(e)||Yre()}function Yre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
441
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xre(e,t){if(e){if(typeof e=="string")return Nx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Nx(e,t)}}function Jre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zre(e){if(Array.isArray(e))return Nx(e)}function Nx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LC(n.key),n)}}function ene(e,t,r){return t&&QE(e.prototype,t),r&&QE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tne(e,t,r){return t=Xd(t),rne(e,kC()?Reflect.construct(t,r||[],Xd(e).constructor):t.apply(e,r))}function rne(e,t){if(t&&(Cu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nne(e)}function nne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kC=function(){return!!e})()}function Xd(e){return Xd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xd(e)}function ine(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cx(e,t)}function Cx(e,t){return Cx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cx(e,t)}function pa(e,t,r){return t=LC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LC(e){var t=ane(e,"string");return Cu(t)=="symbol"?t:t+""}function ane(e,t){if(Cu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var es=(function(e){function t(){var r;Qre(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=tne(this,t,[].concat(i)),pa(r,"state",{isAnimationFinished:!0,totalLength:0}),pa(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),pa(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(y,x){return y+x});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,d=s-o,h=[],g=0,p=0;g<l.length;p+=l[g],++g)if(p+l[g]>f){h=[].concat($l(l.slice(0,g)),[f-p]);break}var m=h.length%2===0?[0,d]:[d];return[].concat($l(t.repeat(l,c)),$l(h),m).map(function(y){return"".concat(y,"px")}).join(", ")}),pa(r,"id",oh("recharts-line-")),pa(r,"pathRef",function(o){r.mainCurve=o}),pa(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),pa(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return ine(t,e),ene(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=Ki(c,dh);if(!f)return null;var d=function(p,m){return{x:p.x,y:p.y,value:p.value,errorVal:Zn(p.payload,m)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return V.createElement(nr,h,f.map(function(g){return V.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:d})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=mt(this.props,!1),d=mt(l,!0),h=u.map(function(p,m){var y=bi(bi(bi({key:"dot-".concat(m),r:3},f),d),{},{index:m,cx:p.x,cy:p.y,value:p.value,dataKey:c,payload:p.payload,points:u});return t.renderDotItem(l,y)}),g={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return V.createElement(nr,of({className:"recharts-line-dots",key:"dots"},g),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=JE(s,Gre),d=bi(bi(bi({},mt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return V.createElement(rx,of({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,g=o.animateNewValues,p=o.width,m=o.height,y=this.state,x=y.prevPoints,w=y.totalLength;return V.createElement(qa,{begin:c,duration:f,isActive:u,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(T){var _=T.t;if(x){var O=x.length/s.length,A=s.map(function(P,M){var q=Math.floor(M*O);if(x[q]){var J=x[q],U=Kn(J.x,P.x),H=Kn(J.y,P.y);return bi(bi({},P),{},{x:U(_),y:H(_)})}if(g){var ee=Kn(p*2,P.x),Z=Kn(m/2,P.y);return bi(bi({},P),{},{x:ee(_),y:Z(_)})}return bi(bi({},P),{},{x:P.x,y:P.y})});return a.renderCurveStatically(A,n,i)}var k=Kn(0,w),L=k(_),B;if(l){var C="".concat(l).split(/[,\s]+/gim).map(function(P){return parseFloat(P)});B=a.getStrokeDasharray(L,w,C)}else B=a.generateSimpleStrokeDasharray(w,L);return a.renderCurveStatically(s,n,i,{strokeDasharray:B})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!hh(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,d=i.left,h=i.width,g=i.height,p=i.isAnimationActive,m=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,x=s.length===1,w=jt("recharts-line",l),T=u&&u.allowDataOverflow,_=c&&c.allowDataOverflow,O=T||_,A=Dt(m)?this.id:m,k=(n=mt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},L=k.r,B=L===void 0?3:L,C=k.strokeWidth,P=C===void 0?2:C,M=cq(o)?o:{},q=M.clipDot,J=q===void 0?!0:q,U=B*2+P;return V.createElement(nr,{className:w},T||_?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(A)},V.createElement("rect",{x:T?d:d-h/2,y:_?f:f-g/2,width:T?h:h*2,height:_?g:g*2})),!J&&V.createElement("clipPath",{id:"clipPath-dots-".concat(A)},V.createElement("rect",{x:d-U/2,y:f-U/2,width:h+U,height:g+U}))):null,!x&&this.renderCurve(O,A),this.renderErrorBar(O,A),(x||o)&&this.renderDots(O,J,A),(!p||y)&&go.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat($l(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat($l(o),$l(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(V.isValidElement(n))a=V.cloneElement(n,i);else if(Tt(n))a=n(i);else{var o=i.key,s=JE(i,Vre),l=jt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=V.createElement(ph,of({key:o},s,{className:l}))}return a}}])})(V.PureComponent);pa(es,"displayName","Line");pa(es,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!al.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});pa(es,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(d,h){var g=Zn(d,o);return c==="horizontal"?{x:KA({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:Dt(g)?null:n.scale(g),value:g,payload:d}:{x:Dt(g)?null:r.scale(g),y:KA({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:g,payload:d}});return bi({points:f,layout:c},u)});function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function one(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RC(n.key),n)}}function lne(e,t,r){return t&&sne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function une(e,t,r){return t=Jd(t),cne(e,IC()?Reflect.construct(t,r||[],Jd(e).constructor):t.apply(e,r))}function cne(e,t){if(t&&(ju(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fne(e)}function fne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IC=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jd(e)}function hne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jx(e,t)}function jx(e,t){return jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},jx(e,t)}function FC(e,t,r){return t=RC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RC(e){var t=dne(e,"string");return ju(t)=="symbol"?t:t+""}function dne(e,t){if(ju(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ju(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function kx(){return kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kx.apply(this,arguments)}function pne(e){var t=e.xAxisId,r=f5(),n=h5(),i=bC(t);return i==null?null:ns.createElement(Ku,kx({},i,{className:jt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return uo(o,!0)}}))}var ku=(function(e){function t(){return one(this,t),une(this,t,arguments)}return hne(t,e),lne(t,[{key:"render",value:function(){return ns.createElement(pne,this.props)}}])})(ns.Component);FC(ku,"displayName","XAxis");FC(ku,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Lu(e){"@babel/helpers - typeof";return Lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lu(e)}function vne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BC(n.key),n)}}function gne(e,t,r){return t&&mne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yne(e,t,r){return t=Zd(t),xne(e,MC()?Reflect.construct(t,r||[],Zd(e).constructor):t.apply(e,r))}function xne(e,t){if(t&&(Lu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bne(e)}function bne(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MC=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zd(e)}function wne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lx(e,t)}function Lx(e,t){return Lx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lx(e,t)}function DC(e,t,r){return t=BC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BC(e){var t=_ne(e,"string");return Lu(t)=="symbol"?t:t+""}function _ne(e,t){if(Lu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Ix(){return Ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ix.apply(this,arguments)}var Sne=function(t){var r=t.yAxisId,n=f5(),i=h5(),a=wC(r);return a==null?null:ns.createElement(Ku,Ix({},a,{className:jt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return uo(s,!0)}}))},Iu=(function(e){function t(){return vne(this,t),yne(this,t,arguments)}return wne(t,e),gne(t,[{key:"render",value:function(){return ns.createElement(Sne,this.props)}}])})(ns.Component);DC(Iu,"displayName","YAxis");DC(Iu,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function eO(e){return One(e)||Ene(e)||Tne(e)||Ane()}function Ane(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
442
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tne(e,t){if(e){if(typeof e=="string")return Fx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Fx(e,t)}}function Ene(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function One(e){if(Array.isArray(e))return Fx(e)}function Fx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Rx=function(t,r,n,i,a){var o=Ki(t,p5),s=Ki(t,qp),l=[].concat(eO(o),eO(s)),u=Ki(t,zp),c="".concat(i,"Id"),f=i[0],d=r;if(l.length&&(d=l.reduce(function(p,m){if(m.props[c]===n&&Da(m.props,"extendDomain")&&rt(m.props[f])){var y=m.props[f];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},d)),u.length){var h="".concat(f,"1"),g="".concat(f,"2");d=u.reduce(function(p,m){if(m.props[c]===n&&Da(m.props,"extendDomain")&&rt(m.props[h])&&rt(m.props[g])){var y=m.props[h],x=m.props[g];return[Math.min(p[0],y,x),Math.max(p[1],y,x)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,m){return rt(m)?[Math.min(p[0],m),Math.max(p[1],m)]:p},d)),d},Xy={exports:{}},tO;function Pne(){return tO||(tO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,d){if(typeof c!="function")throw new TypeError("The listener must be a function");var h=new i(c,f||l,d),g=r?r+u:u;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],h]:l._events[g].push(h):(l._events[g]=h,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,g=new Array(h);d<h;d++)g[d]=f[d].fn;return g},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,d,h,g){var p=r?r+u:u;if(!this._events[p])return!1;var m=this._events[p],y=arguments.length,x,w;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),y){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,c),!0;case 3:return m.fn.call(m.context,c,f),!0;case 4:return m.fn.call(m.context,c,f,d),!0;case 5:return m.fn.call(m.context,c,f,d,h),!0;case 6:return m.fn.call(m.context,c,f,d,h,g),!0}for(w=1,x=new Array(y-1);w<y;w++)x[w-1]=arguments[w];m.fn.apply(m.context,x)}else{var T=m.length,_;for(w=0;w<T;w++)switch(m[w].once&&this.removeListener(u,m[w].fn,void 0,!0),y){case 1:m[w].fn.call(m[w].context);break;case 2:m[w].fn.call(m[w].context,c);break;case 3:m[w].fn.call(m[w].context,c,f);break;case 4:m[w].fn.call(m[w].context,c,f,d);break;default:if(!x)for(_=1,x=new Array(y-1);_<y;_++)x[_-1]=arguments[_];m[w].fn.apply(m[w].context,x)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,d){var h=r?r+u:u;if(!this._events[h])return this;if(!c)return o(this,h),this;var g=this._events[h];if(g.fn)g.fn===c&&(!d||g.once)&&(!f||g.context===f)&&o(this,h);else{for(var p=0,m=[],y=g.length;p<y;p++)(g[p].fn!==c||d&&!g[p].once||f&&g[p].context!==f)&&m.push(g[p]);m.length?this._events[h]=m.length===1?m[0]:m:o(this,h)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Xy)),Xy.exports}var Nne=Pne();const Cne=ar(Nne);var Jy=new Cne,Zy="recharts.syncMouseEvents";function Xf(e){"@babel/helpers - typeof";return Xf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xf(e)}function jne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$C(n.key),n)}}function Lne(e,t,r){return t&&kne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qy(e,t,r){return t=$C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $C(e){var t=Ine(e,"string");return Xf(t)=="symbol"?t:t+""}function Ine(e,t){if(Xf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fne=(function(){function e(){jne(this,e),Qy(this,"activeIndex",0),Qy(this,"coordinateList",[]),Qy(this,"layout","horizontal")}return Lne(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,d=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:d})}}}])})();function Rne(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&rt(n)&&rt(i))return!0}return!1}function Mne(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function qC(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=mr(t,r,n,i),s=mr(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Dne(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,d=mr(s,l,u,f),h=mr(s,l,c,f);n=d.x,i=d.y,a=h.x,o=h.y}else return qC(t);return[{x:n,y:i},{x:a,y:o}]}function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function k0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rO(Object(r),!0).forEach(function(n){Bne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bne(e,t,r){return t=$ne(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $ne(e){var t=qne(e,"string");return Jf(t)=="symbol"?t:t+""}function qne(e,t){if(Jf(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jf(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Une(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var g,p=rx;if(d==="ScatterChart")g=o,p=HZ;else if(d==="BarChart")g=Mne(f,o,l,c),p=s5;else if(f==="radial"){var m=qC(o),y=m.cx,x=m.cy,w=m.radius,T=m.startAngle,_=m.endAngle;g={cx:y,cy:x,startAngle:T,endAngle:_,innerRadius:w,outerRadius:w},p=D8}else g={points:Dne(f,o,l)},p=rx;var O=k0(k0(k0(k0({stroke:"#ccc",pointerEvents:"none"},l),g),mt(h,!1)),{},{payload:s,payloadIndex:u,className:jt("recharts-tooltip-cursor",h.className)});return V.isValidElement(h)?V.cloneElement(h,O):V.createElement(p,O)}var zne=["item"],Wne=["children","className","width","height","style","compact","title","desc"];function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xl.apply(this,arguments)}function nO(e,t){return Vne(e)||Gne(e,t)||zC(e,t)||Hne()}function Hne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
443
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gne(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Vne(e){if(Array.isArray(e))return e}function iO(e,t){if(e==null)return{};var r=Kne(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kne(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Yne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xne(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WC(n.key),n)}}function Jne(e,t,r){return t&&Xne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zne(e,t,r){return t=Qd(t),Qne(e,UC()?Reflect.construct(t,r||[],Qd(e).constructor):t.apply(e,r))}function Qne(e,t){if(t&&(Fu(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eie(e)}function eie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UC=function(){return!!e})()}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qd(e)}function tie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mx(e,t)}function Mx(e,t){return Mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Mx(e,t)}function Ru(e){return iie(e)||nie(e)||zC(e)||rie()}function rie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
444
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zC(e,t){if(e){if(typeof e=="string")return Dx(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Dx(e,t)}}function nie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iie(e){if(Array.isArray(e))return Dx(e)}function Dx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aO(Object(r),!0).forEach(function(n){bt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bt(e,t,r){return t=WC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WC(e){var t=aie(e,"string");return Fu(t)=="symbol"?t:t+""}function aie(e,t){if(Fu(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oie={xAxis:["bottom","top"],yAxis:["left","right"]},sie={width:"100%",height:"100%"},HC={x:0,y:0};function L0(e){return e}var lie=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},uie=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return De(De(De({},i),mr(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return De(De(De({},i),mr(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return HC},Wp=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Ru(s),Ru(u)):s},[]);return o.length>0?o:t&&t.length&&rt(i)&&rt(a)?t.slice(i,a+1):[]};function GC(e){return e==="number"?[0,"auto"]:void 0}var Bx=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Wp(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=f===void 0?s:f;d=Z0(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(Ru(l),[k8(u,d)]):l},[])},oO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=lie(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=lY(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,d=Bx(t,r,c,f),h=uie(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},cie=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=t.stackOffset,h=E8(c,a);return n.reduce(function(g,p){var m,y=p.type.defaultProps!==void 0?De(De({},p.type.defaultProps),p.props):p.props,x=y.type,w=y.dataKey,T=y.allowDataOverflow,_=y.allowDuplicatedCategory,O=y.scale,A=y.ticks,k=y.includeHidden,L=y[o];if(g[L])return g;var B=Wp(t.data,{graphicalItems:i.filter(function(N){var I,R=o in N.props?N.props[o]:(I=N.type.defaultProps)===null||I===void 0?void 0:I[o];return R===L}),dataStartIndex:l,dataEndIndex:u}),C=B.length,P,M,q;Rne(y.domain,T,x)&&(P=J2(y.domain,null,T),h&&(x==="number"||O!=="auto")&&(q=tf(B,w,"category")));var J=GC(x);if(!P||P.length===0){var U,H=(U=y.domain)!==null&&U!==void 0?U:J;if(w){if(P=tf(B,w,x),x==="category"&&h){var ee=eq(P);_&&ee?(M=P,P=Bd(0,C)):_||(P=ZA(H,P,p).reduce(function(N,I){return N.indexOf(I)>=0?N:[].concat(Ru(N),[I])},[]))}else if(x==="category")_?P=P.filter(function(N){return N!==""&&!Dt(N)}):P=ZA(H,P,p).reduce(function(N,I){return N.indexOf(I)>=0||I===""||Dt(I)?N:[].concat(Ru(N),[I])},[]);else if(x==="number"){var Z=dY(B,i.filter(function(N){var I,R,D=o in N.props?N.props[o]:(I=N.type.defaultProps)===null||I===void 0?void 0:I[o],G="hide"in N.props?N.props.hide:(R=N.type.defaultProps)===null||R===void 0?void 0:R.hide;return D===L&&(k||!G)}),w,a,c);Z&&(P=Z)}h&&(x==="number"||O!=="auto")&&(q=tf(B,w,"category"))}else h?P=Bd(0,C):s&&s[L]&&s[L].hasStack&&x==="number"?P=d==="expand"?[0,1]:j8(s[L].stackGroups,l,u):P=T8(B,i.filter(function(N){var I=o in N.props?N.props[o]:N.type.defaultProps[o],R="hide"in N.props?N.props.hide:N.type.defaultProps.hide;return I===L&&(k||!R)}),x,c,!0);if(x==="number")P=Rx(f,P,L,a,A),H&&(P=J2(H,P,T));else if(x==="category"&&H){var Q=H,le=P.every(function(N){return Q.indexOf(N)>=0});le&&(P=Q)}}return De(De({},g),{},bt({},L,De(De({},y),{},{axisType:a,domain:P,categoricalDomain:q,duplicateDomain:M,originalDomain:(m=y.domain)!==null&&m!==void 0?m:J,isCategorical:h,layout:c})))},{})},fie=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,d=Wp(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),h=d.length,g=E8(c,a),p=-1;return n.reduce(function(m,y){var x=y.type.defaultProps!==void 0?De(De({},y.type.defaultProps),y.props):y.props,w=x[o],T=GC("number");if(!m[w]){p++;var _;return g?_=Bd(0,h):s&&s[w]&&s[w].hasStack?(_=j8(s[w].stackGroups,l,u),_=Rx(f,_,w,a)):(_=J2(T,T8(d,n.filter(function(O){var A,k,L=o in O.props?O.props[o]:(A=O.type.defaultProps)===null||A===void 0?void 0:A[o],B="hide"in O.props?O.props.hide:(k=O.type.defaultProps)===null||k===void 0?void 0:k.hide;return L===w&&!B}),"number",c),i.defaultProps.allowDataOverflow),_=Rx(f,_,w,a)),De(De({},m),{},bt({},w,De(De({axisType:a},i.defaultProps),{},{hide:!0,orientation:Vi(oie,"".concat(a,".").concat(p%2),null),domain:_,originalDomain:T,isCategorical:g,layout:c})))}return m},{})},hie=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),d=Ki(c,a),h={};return d&&d.length?h=cie(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(h=fie(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),h},die=function(t){var r=Yo(t),n=uo(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Lb(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ad(r,n)}},sO=function(t){var r=t.children,n=t.defaultShowTooltip,i=Si(r,Su),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},pie=function(t){return!t||!t.length?!1:t.some(function(r){var n=po(r&&r.type);return n&&n.indexOf("Bar")>=0})},lO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},vie=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,d=n.margin||{},h=Si(f,Su),g=Si(f,Us),p=Object.keys(l).reduce(function(_,O){var A=l[O],k=A.orientation;return!A.mirror&&!A.hide?De(De({},_),{},bt({},k,_[k]+A.width)):_},{left:d.left||0,right:d.right||0}),m=Object.keys(o).reduce(function(_,O){var A=o[O],k=A.orientation;return!A.mirror&&!A.hide?De(De({},_),{},bt({},k,Vi(_,"".concat(k))+A.height)):_},{top:d.top||0,bottom:d.bottom||0}),y=De(De({},m),p),x=y.bottom;h&&(y.bottom+=h.props.height||Su.defaultProps.height),g&&r&&(y=fY(y,i,n,r));var w=u-y.left-y.right,T=c-y.top-y.bottom;return De(De({brushBottom:x},y),{},{width:Math.max(w,0),height:Math.max(T,0)})},mie=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},g5=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,d=function(y,x){var w=x.graphicalItems,T=x.stackGroups,_=x.offset,O=x.updateId,A=x.dataStartIndex,k=x.dataEndIndex,L=y.barSize,B=y.layout,C=y.barGap,P=y.barCategoryGap,M=y.maxBarSize,q=lO(B),J=q.numericAxisName,U=q.cateAxisName,H=pie(w),ee=[];return w.forEach(function(Z,Q){var le=Wp(y.data,{graphicalItems:[Z],dataStartIndex:A,dataEndIndex:k}),N=Z.type.defaultProps!==void 0?De(De({},Z.type.defaultProps),Z.props):Z.props,I=N.dataKey,R=N.maxBarSize,D=N["".concat(J,"Id")],G=N["".concat(U,"Id")],ce={},he=l.reduce(function(Je,Xe){var ht,dt,xt=x["".concat(Xe.axisType,"Map")],Et=N["".concat(Xe.axisType,"Id")];xt&&xt[Et]||Xe.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?si(!1,"Specifying a(n) ".concat(Xe.axisType,"Id requires a corresponding ").concat(Xe.axisType,"Id on the targeted graphical component ").concat((ht=Z==null||(dt=Z.type)===null||dt===void 0?void 0:dt.displayName)!==null&&ht!==void 0?ht:"")):si());var Ft=xt[Et];return De(De({},Je),{},bt(bt({},Xe.axisType,Ft),"".concat(Xe.axisType,"Ticks"),uo(Ft)))},ce),ne=he[U],me=he["".concat(U,"Ticks")],Se=T&&T[D]&&T[D].hasStack&&_Y(Z,T[D].stackGroups),ue=po(Z.type).indexOf("Bar")>=0,Ie=Ad(ne,me),ge=[],_e=H&&uY({barSize:L,stackGroups:T,totalSize:mie(he,U)});if(ue){var oe,Re,et=Dt(R)?M:R,Be=(oe=(Re=Ad(ne,me,!0))!==null&&Re!==void 0?Re:et)!==null&&oe!==void 0?oe:0;ge=cY({barGap:C,barCategoryGap:P,bandSize:Be!==Ie?Be:Ie,sizeList:_e[G],maxBarSize:et}),Be!==Ie&&(ge=ge.map(function(Je){return De(De({},Je),{},{position:De(De({},Je.position),{},{offset:Je.position.offset-Be/2})})}))}var Ve=Z&&Z.type&&Z.type.getComposedData;Ve&&ee.push({props:De(De({},Ve(De(De({},he),{},{displayedData:le,props:y,dataKey:I,item:Z,bandSize:Ie,barPosition:ge,offset:_,stackedData:Se,layout:B,dataStartIndex:A,dataEndIndex:k}))),{},bt(bt(bt({key:Z.key||"item-".concat(Q)},J,he[J]),U,he[U]),"animationId",O)),childIndex:dq(Z,y.children),item:Z})}),ee},h=function(y,x){var w=y.props,T=y.dataStartIndex,_=y.dataEndIndex,O=y.updateId;if(!h4({props:w}))return null;var A=w.children,k=w.layout,L=w.stackOffset,B=w.data,C=w.reverseStackOrder,P=lO(k),M=P.numericAxisName,q=P.cateAxisName,J=Ki(A,n),U=bY(B,J,"".concat(M,"Id"),"".concat(q,"Id"),L,C),H=l.reduce(function(N,I){var R="".concat(I.axisType,"Map");return De(De({},N),{},bt({},R,hie(w,De(De({},I),{},{graphicalItems:J,stackGroups:I.axisType===M&&U,dataStartIndex:T,dataEndIndex:_}))))},{}),ee=vie(De(De({},H),{},{props:w,graphicalItems:J}),x==null?void 0:x.legendBBox);Object.keys(H).forEach(function(N){H[N]=c(w,H[N],ee,N.replace("Map",""),r)});var Z=H["".concat(q,"Map")],Q=die(Z),le=d(w,De(De({},H),{},{dataStartIndex:T,dataEndIndex:_,updateId:O,graphicalItems:J,stackGroups:U,offset:ee}));return De(De({formattedGraphicalItems:le,graphicalItems:J,offset:ee,stackGroups:U},Q),H)},g=(function(m){function y(x){var w,T,_;return Yne(this,y),_=Zne(this,y,[x]),bt(_,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),bt(_,"accessibilityManager",new Fne),bt(_,"handleLegendBBoxUpdate",function(O){if(O){var A=_.state,k=A.dataStartIndex,L=A.dataEndIndex,B=A.updateId;_.setState(De({legendBBox:O},h({props:_.props,dataStartIndex:k,dataEndIndex:L,updateId:B},De(De({},_.state),{},{legendBBox:O}))))}}),bt(_,"handleReceiveSyncEvent",function(O,A,k){if(_.props.syncId===O){if(k===_.eventEmitterSymbol&&typeof _.props.syncMethod!="function")return;_.applySyncEvent(A)}}),bt(_,"handleBrushChange",function(O){var A=O.startIndex,k=O.endIndex;if(A!==_.state.dataStartIndex||k!==_.state.dataEndIndex){var L=_.state.updateId;_.setState(function(){return De({dataStartIndex:A,dataEndIndex:k},h({props:_.props,dataStartIndex:A,dataEndIndex:k,updateId:L},_.state))}),_.triggerSyncEvent({dataStartIndex:A,dataEndIndex:k})}}),bt(_,"handleMouseEnter",function(O){var A=_.getMouseInfo(O);if(A){var k=De(De({},A),{},{isTooltipActive:!0});_.setState(k),_.triggerSyncEvent(k);var L=_.props.onMouseEnter;Tt(L)&&L(k,O)}}),bt(_,"triggeredAfterMouseMove",function(O){var A=_.getMouseInfo(O),k=A?De(De({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};_.setState(k),_.triggerSyncEvent(k);var L=_.props.onMouseMove;Tt(L)&&L(k,O)}),bt(_,"handleItemMouseEnter",function(O){_.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),bt(_,"handleItemMouseLeave",function(){_.setState(function(){return{isTooltipActive:!1}})}),bt(_,"handleMouseMove",function(O){O.persist(),_.throttleTriggeredAfterMouseMove(O)}),bt(_,"handleMouseLeave",function(O){_.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};_.setState(A),_.triggerSyncEvent(A);var k=_.props.onMouseLeave;Tt(k)&&k(A,O)}),bt(_,"handleOuterEvent",function(O){var A=hq(O),k=Vi(_.props,"".concat(A));if(A&&Tt(k)){var L,B;/.*touch.*/i.test(A)?B=_.getMouseInfo(O.changedTouches[0]):B=_.getMouseInfo(O),k((L=B)!==null&&L!==void 0?L:{},O)}}),bt(_,"handleClick",function(O){var A=_.getMouseInfo(O);if(A){var k=De(De({},A),{},{isTooltipActive:!0});_.setState(k),_.triggerSyncEvent(k);var L=_.props.onClick;Tt(L)&&L(k,O)}}),bt(_,"handleMouseDown",function(O){var A=_.props.onMouseDown;if(Tt(A)){var k=_.getMouseInfo(O);A(k,O)}}),bt(_,"handleMouseUp",function(O){var A=_.props.onMouseUp;if(Tt(A)){var k=_.getMouseInfo(O);A(k,O)}}),bt(_,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&_.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),bt(_,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&_.handleMouseDown(O.changedTouches[0])}),bt(_,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&_.handleMouseUp(O.changedTouches[0])}),bt(_,"handleDoubleClick",function(O){var A=_.props.onDoubleClick;if(Tt(A)){var k=_.getMouseInfo(O);A(k,O)}}),bt(_,"handleContextMenu",function(O){var A=_.props.onContextMenu;if(Tt(A)){var k=_.getMouseInfo(O);A(k,O)}}),bt(_,"triggerSyncEvent",function(O){_.props.syncId!==void 0&&Jy.emit(Zy,_.props.syncId,O,_.eventEmitterSymbol)}),bt(_,"applySyncEvent",function(O){var A=_.props,k=A.layout,L=A.syncMethod,B=_.state.updateId,C=O.dataStartIndex,P=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)_.setState(De({dataStartIndex:C,dataEndIndex:P},h({props:_.props,dataStartIndex:C,dataEndIndex:P,updateId:B},_.state)));else if(O.activeTooltipIndex!==void 0){var M=O.chartX,q=O.chartY,J=O.activeTooltipIndex,U=_.state,H=U.offset,ee=U.tooltipTicks;if(!H)return;if(typeof L=="function")J=L(ee,O);else if(L==="value"){J=-1;for(var Z=0;Z<ee.length;Z++)if(ee[Z].value===O.activeLabel){J=Z;break}}var Q=De(De({},H),{},{x:H.left,y:H.top}),le=Math.min(M,Q.x+Q.width),N=Math.min(q,Q.y+Q.height),I=ee[J]&&ee[J].value,R=Bx(_.state,_.props.data,J),D=ee[J]?{x:k==="horizontal"?ee[J].coordinate:le,y:k==="horizontal"?N:ee[J].coordinate}:HC;_.setState(De(De({},O),{},{activeLabel:I,activeCoordinate:D,activePayload:R,activeTooltipIndex:J}))}else _.setState(O)}),bt(_,"renderCursor",function(O){var A,k=_.state,L=k.isTooltipActive,B=k.activeCoordinate,C=k.activePayload,P=k.offset,M=k.activeTooltipIndex,q=k.tooltipAxisBandSize,J=_.getTooltipEventType(),U=(A=O.props.active)!==null&&A!==void 0?A:L,H=_.props.layout,ee=O.key||"_recharts-cursor";return V.createElement(Une,{key:ee,activeCoordinate:B,activePayload:C,activeTooltipIndex:M,chartName:r,element:O,isActive:U,layout:H,offset:P,tooltipAxisBandSize:q,tooltipEventType:J})}),bt(_,"renderPolarAxis",function(O,A,k){var L=Vi(O,"type.axisType"),B=Vi(_.state,"".concat(L,"Map")),C=O.type.defaultProps,P=C!==void 0?De(De({},C),O.props):O.props,M=B&&B[P["".concat(L,"Id")]];return V.cloneElement(O,De(De({},M),{},{className:jt(L,M.className),key:O.key||"".concat(A,"-").concat(k),ticks:uo(M,!0)}))}),bt(_,"renderPolarGrid",function(O){var A=O.props,k=A.radialLines,L=A.polarAngles,B=A.polarRadius,C=_.state,P=C.radiusAxisMap,M=C.angleAxisMap,q=Yo(P),J=Yo(M),U=J.cx,H=J.cy,ee=J.innerRadius,Z=J.outerRadius;return V.cloneElement(O,{polarAngles:Array.isArray(L)?L:uo(J,!0).map(function(Q){return Q.coordinate}),polarRadius:Array.isArray(B)?B:uo(q,!0).map(function(Q){return Q.coordinate}),cx:U,cy:H,innerRadius:ee,outerRadius:Z,key:O.key||"polar-grid",radialLines:k})}),bt(_,"renderLegend",function(){var O=_.state.formattedGraphicalItems,A=_.props,k=A.children,L=A.width,B=A.height,C=_.props.margin||{},P=L-(C.left||0)-(C.right||0),M=S8({children:k,formattedGraphicalItems:O,legendWidth:P,legendContent:u});if(!M)return null;var q=M.item,J=iO(M,zne);return V.cloneElement(q,De(De({},J),{},{chartWidth:L,chartHeight:B,margin:C,onBBoxUpdate:_.handleLegendBBoxUpdate}))}),bt(_,"renderTooltip",function(){var O,A=_.props,k=A.children,L=A.accessibilityLayer,B=Si(k,ha);if(!B)return null;var C=_.state,P=C.isTooltipActive,M=C.activeCoordinate,q=C.activePayload,J=C.activeLabel,U=C.offset,H=(O=B.props.active)!==null&&O!==void 0?O:P;return V.cloneElement(B,{viewBox:De(De({},U),{},{x:U.left,y:U.top}),active:H,label:J,payload:H?q:[],coordinate:M,accessibilityLayer:L})}),bt(_,"renderBrush",function(O){var A=_.props,k=A.margin,L=A.data,B=_.state,C=B.offset,P=B.dataStartIndex,M=B.dataEndIndex,q=B.updateId;return V.cloneElement(O,{key:O.key||"_recharts-brush",onChange:E0(_.handleBrushChange,O.props.onChange),data:L,x:rt(O.props.x)?O.props.x:C.left,y:rt(O.props.y)?O.props.y:C.top+C.height+C.brushBottom-(k.bottom||0),width:rt(O.props.width)?O.props.width:C.width,startIndex:P,endIndex:M,updateId:"brush-".concat(q)})}),bt(_,"renderReferenceElement",function(O,A,k){if(!O)return null;var L=_,B=L.clipPathId,C=_.state,P=C.xAxisMap,M=C.yAxisMap,q=C.offset,J=O.type.defaultProps||{},U=O.props,H=U.xAxisId,ee=H===void 0?J.xAxisId:H,Z=U.yAxisId,Q=Z===void 0?J.yAxisId:Z;return V.cloneElement(O,{key:O.key||"".concat(A,"-").concat(k),xAxis:P[ee],yAxis:M[Q],viewBox:{x:q.left,y:q.top,width:q.width,height:q.height},clipPathId:B})}),bt(_,"renderActivePoints",function(O){var A=O.item,k=O.activePoint,L=O.basePoint,B=O.childIndex,C=O.isRange,P=[],M=A.props.key,q=A.item.type.defaultProps!==void 0?De(De({},A.item.type.defaultProps),A.item.props):A.item.props,J=q.activeDot,U=q.dataKey,H=De(De({index:B,dataKey:U,cx:k.x,cy:k.y,r:4,fill:a5(A.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},mt(J,!1)),Q0(J));return P.push(y.renderActiveDot(J,H,"".concat(M,"-activePoint-").concat(B))),L?P.push(y.renderActiveDot(J,De(De({},H),{},{cx:L.x,cy:L.y}),"".concat(M,"-basePoint-").concat(B))):C&&P.push(null),P}),bt(_,"renderGraphicChild",function(O,A,k){var L=_.filterFormatItem(O,A,k);if(!L)return null;var B=_.getTooltipEventType(),C=_.state,P=C.isTooltipActive,M=C.tooltipAxis,q=C.activeTooltipIndex,J=C.activeLabel,U=_.props.children,H=Si(U,ha),ee=L.props,Z=ee.points,Q=ee.isRange,le=ee.baseLine,N=L.item.type.defaultProps!==void 0?De(De({},L.item.type.defaultProps),L.item.props):L.item.props,I=N.activeDot,R=N.hide,D=N.activeBar,G=N.activeShape,ce=!!(!R&&P&&H&&(I||D||G)),he={};B!=="axis"&&H&&H.props.trigger==="click"?he={onClick:E0(_.handleItemMouseEnter,O.props.onClick)}:B!=="axis"&&(he={onMouseLeave:E0(_.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:E0(_.handleItemMouseEnter,O.props.onMouseEnter)});var ne=V.cloneElement(O,De(De({},L.props),he));function me(Xe){return typeof M.dataKey=="function"?M.dataKey(Xe.payload):null}if(ce)if(q>=0){var Se,ue;if(M.dataKey&&!M.allowDuplicatedCategory){var Ie=typeof M.dataKey=="function"?me:"payload.".concat(M.dataKey.toString());Se=Z0(Z,Ie,J),ue=Q&&le&&Z0(le,Ie,J)}else Se=Z==null?void 0:Z[q],ue=Q&&le&&le[q];if(G||D){var ge=O.props.activeIndex!==void 0?O.props.activeIndex:q;return[V.cloneElement(O,De(De(De({},L.props),he),{},{activeIndex:ge})),null,null]}if(!Dt(Se))return[ne].concat(Ru(_.renderActivePoints({item:L,activePoint:Se,basePoint:ue,childIndex:q,isRange:Q})))}else{var _e,oe=(_e=_.getItemByXY(_.state.activeCoordinate))!==null&&_e!==void 0?_e:{graphicalItem:ne},Re=oe.graphicalItem,et=Re.item,Be=et===void 0?O:et,Ve=Re.childIndex,Je=De(De(De({},L.props),he),{},{activeIndex:Ve});return[V.cloneElement(Be,Je),null,null]}return Q?[ne,null,null]:[ne,null]}),bt(_,"renderCustomized",function(O,A,k){return V.cloneElement(O,De(De({key:"recharts-customized-".concat(k)},_.props),_.state))}),bt(_,"renderMap",{CartesianGrid:{handler:L0,once:!0},ReferenceArea:{handler:_.renderReferenceElement},ReferenceLine:{handler:L0},ReferenceDot:{handler:_.renderReferenceElement},XAxis:{handler:L0},YAxis:{handler:L0},Brush:{handler:_.renderBrush,once:!0},Bar:{handler:_.renderGraphicChild},Line:{handler:_.renderGraphicChild},Area:{handler:_.renderGraphicChild},Radar:{handler:_.renderGraphicChild},RadialBar:{handler:_.renderGraphicChild},Scatter:{handler:_.renderGraphicChild},Pie:{handler:_.renderGraphicChild},Funnel:{handler:_.renderGraphicChild},Tooltip:{handler:_.renderCursor,once:!0},PolarGrid:{handler:_.renderPolarGrid,once:!0},PolarAngleAxis:{handler:_.renderPolarAxis},PolarRadiusAxis:{handler:_.renderPolarAxis},Customized:{handler:_.renderCustomized}}),_.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:oh("recharts"),"-clip"),_.throttleTriggeredAfterMouseMove=_6(_.triggeredAfterMouseMove,(T=x.throttleDelay)!==null&&T!==void 0?T:1e3/60),_.state={},_}return tie(y,m),Jne(y,[{key:"componentDidMount",value:function(){var w,T;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(T=this.props.margin.top)!==null&&T!==void 0?T:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,T=w.children,_=w.data,O=w.height,A=w.layout,k=Si(T,ha);if(k){var L=k.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,C=Bx(this.state,_,L,B),P=this.state.tooltipTicks[L].coordinate,M=(this.state.offset.top+O)/2,q=A==="horizontal",J=q?{x:P,y:M}:{y:P,x:M},U=this.state.formattedGraphicalItems.find(function(ee){var Z=ee.item;return Z.type.name==="Scatter"});U&&(J=De(De({},J),U.props.points[L].tooltipPosition),C=U.props.points[L].tooltipPayload);var H={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:B,activePayload:C,activeCoordinate:J};this.setState(H),this.renderCursor(k),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,T){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==T.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var _,O;this.accessibilityManager.setDetails({offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(w){x2([Si(w.children,ha)],[Si(this.props.children,ha)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Si(this.props.children,ha);if(w&&typeof w.props.shared=="boolean"){var T=w.props.shared?"axis":"item";return s.indexOf(T)>=0?T:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var T=this.container,_=T.getBoundingClientRect(),O=eH(_),A={chartX:Math.round(w.pageX-O.left),chartY:Math.round(w.pageY-O.top)},k=_.width/T.offsetWidth||1,L=this.inRange(A.chartX,A.chartY,k);if(!L)return null;var B=this.state,C=B.xAxisMap,P=B.yAxisMap,M=this.getTooltipEventType(),q=oO(this.state,this.props.data,this.props.layout,L);if(M!=="axis"&&C&&P){var J=Yo(C).scale,U=Yo(P).scale,H=J&&J.invert?J.invert(A.chartX):null,ee=U&&U.invert?U.invert(A.chartY):null;return De(De({},A),{},{xValue:H,yValue:ee},q)}return q?De(De({},A),q):null}},{key:"inRange",value:function(w,T){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,A=w/_,k=T/_;if(O==="horizontal"||O==="vertical"){var L=this.state.offset,B=A>=L.left&&A<=L.left+L.width&&k>=L.top&&k<=L.top+L.height;return B?{x:A,y:k}:null}var C=this.state,P=C.angleAxisMap,M=C.radiusAxisMap;if(P&&M){var q=Yo(P);return tT({x:A,y:k},q)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,T=this.getTooltipEventType(),_=Si(w,ha),O={};_&&T==="axis"&&(_.props.trigger==="click"?O={onClick:this.handleClick}:O={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var A=Q0(this.props,this.handleOuterEvent);return De(De({},A),O)}},{key:"addListener",value:function(){Jy.on(Zy,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Jy.removeListener(Zy,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,T,_){for(var O=this.state.formattedGraphicalItems,A=0,k=O.length;A<k;A++){var L=O[A];if(L.item===w||L.props.key===w.key||T===po(L.item.type)&&_===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,T=this.state.offset,_=T.left,O=T.top,A=T.height,k=T.width;return V.createElement("defs",null,V.createElement("clipPath",{id:w},V.createElement("rect",{x:_,y:O,height:A,width:k})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(T,_){var O=nO(_,2),A=O[0],k=O[1];return De(De({},T),{},bt({},A,k.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(T,_){var O=nO(_,2),A=O[0],k=O[1];return De(De({},T),{},bt({},A,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var T;return(T=this.state.xAxisMap)===null||T===void 0||(T=T[w])===null||T===void 0?void 0:T.scale}},{key:"getYScaleByAxisId",value:function(w){var T;return(T=this.state.yAxisMap)===null||T===void 0||(T=T[w])===null||T===void 0?void 0:T.scale}},{key:"getItemByXY",value:function(w){var T=this.state,_=T.formattedGraphicalItems,O=T.activeItem;if(_&&_.length)for(var A=0,k=_.length;A<k;A++){var L=_[A],B=L.props,C=L.item,P=C.type.defaultProps!==void 0?De(De({},C.type.defaultProps),C.props):C.props,M=po(C.type);if(M==="Bar"){var q=(B.data||[]).find(function(ee){return EZ(w,ee)});if(q)return{graphicalItem:L,payload:q}}else if(M==="RadialBar"){var J=(B.data||[]).find(function(ee){return tT(w,ee)});if(J)return{graphicalItem:L,payload:J}}else if(Mp(L,O)||Dp(L,O)||Gf(L,O)){var U=oee({graphicalItem:L,activeTooltipItem:O,itemData:P.data}),H=P.activeIndex===void 0?U:P.activeIndex;return{graphicalItem:De(De({},L),{},{childIndex:H}),payload:Gf(L,O)?P.data[U]:L.props.data[U]}}}return null}},{key:"render",value:function(){var w=this;if(!h4(this))return null;var T=this.props,_=T.children,O=T.className,A=T.width,k=T.height,L=T.style,B=T.compact,C=T.title,P=T.desc,M=iO(T,Wne),q=mt(M,!1);if(B)return V.createElement(DE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(w2,Xl({},q,{width:A,height:k,title:C,desc:P}),this.renderClipPath(),p4(_,this.renderMap)));if(this.props.accessibilityLayer){var J,U;q.tabIndex=(J=this.props.tabIndex)!==null&&J!==void 0?J:0,q.role=(U=this.props.role)!==null&&U!==void 0?U:"application",q.onKeyDown=function(ee){w.accessibilityManager.keyboardEvent(ee)},q.onFocus=function(){w.accessibilityManager.focus()}}var H=this.parseEventsOfWrapper();return V.createElement(DE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement("div",Xl({className:jt("recharts-wrapper",O),style:De({position:"relative",cursor:"default",width:A,height:k},L)},H,{ref:function(Z){w.container=Z}}),V.createElement(w2,Xl({},q,{width:A,height:k,title:C,desc:P,style:sie}),this.renderClipPath(),p4(_,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(V.Component);bt(g,"displayName",r),bt(g,"defaultProps",De({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),bt(g,"getDerivedStateFromProps",function(m,y){var x=m.dataKey,w=m.data,T=m.children,_=m.width,O=m.height,A=m.layout,k=m.stackOffset,L=m.margin,B=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var P=sO(m);return De(De(De({},P),{},{updateId:0},h(De(De({props:m},P),{},{updateId:0}),y)),{},{prevDataKey:x,prevData:w,prevWidth:_,prevHeight:O,prevLayout:A,prevStackOffset:k,prevMargin:L,prevChildren:T})}if(x!==y.prevDataKey||w!==y.prevData||_!==y.prevWidth||O!==y.prevHeight||A!==y.prevLayout||k!==y.prevStackOffset||!nu(L,y.prevMargin)){var M=sO(m),q={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},J=De(De({},oO(y,w,A)),{},{updateId:y.updateId+1}),U=De(De(De({},M),q),J);return De(De(De({},U),h(De({props:m},U),y)),{},{prevDataKey:x,prevData:w,prevWidth:_,prevHeight:O,prevLayout:A,prevStackOffset:k,prevMargin:L,prevChildren:T})}if(!x2(T,y.prevChildren)){var H,ee,Z,Q,le=Si(T,Su),N=le&&(H=(ee=le.props)===null||ee===void 0?void 0:ee.startIndex)!==null&&H!==void 0?H:B,I=le&&(Z=(Q=le.props)===null||Q===void 0?void 0:Q.endIndex)!==null&&Z!==void 0?Z:C,R=N!==B||I!==C,D=!Dt(w),G=D&&!R?y.updateId:y.updateId+1;return De(De({updateId:G},h(De(De({props:m},y),{},{updateId:G,dataStartIndex:N,dataEndIndex:I}),y)),{},{prevChildren:T,dataStartIndex:N,dataEndIndex:I})}return null}),bt(g,"renderActiveDot",function(m,y,x){var w;return V.isValidElement(m)?w=V.cloneElement(m,y):Tt(m)?w=m(y):w=V.createElement(ph,y),V.createElement(nr,{className:"recharts-active-dot",key:x},w)});var p=V.forwardRef(function(y,x){return V.createElement(g,Xl({},y,{ref:x}))});return p.displayName=g.displayName,p},gie=g5({chartName:"LineChart",GraphicalChild:es,axisComponents:[{axisType:"xAxis",AxisComp:ku},{axisType:"yAxis",AxisComp:Iu}],formatAxisMap:fC}),yie=g5({chartName:"BarChart",GraphicalChild:ul,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ku},{axisType:"yAxis",AxisComp:Iu}],formatAxisMap:fC}),xie=g5({chartName:"RadarChart",GraphicalChild:gh,axisComponents:[{axisType:"angleAxis",AxisComp:mh},{axisType:"radiusAxis",AxisComp:vh}],formatAxisMap:LY,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function bie({student:e,examResults:t=[],meetings:r=[],activities:n={activities:[],awards:[]},feeHistory:i={structure:[],payments:[]},disciplinaryRecords:a=[],students:o=[],selectedStudentId:s,onSelectStudent:l,classFilter:u,setClassFilter:c,classOptions:f=[],searchName:d,setSearchName:h,onEdit:g,onResetPassword:p,onPrint:m,onExportPdf:y,breadcrumbItems:x,children:w}){var H,ee,Z,Q,le,N,I,R,D,G,ce,he,ne,me,Se,ue,Ie;const[T,_]=V.useState({}),O=e||{name:"",roll:"",class:"",email:"",phone:"",personal:{},parent:{},medical:{},mentor:{}},A=t,k=Array.isArray(n==null?void 0:n.activities)?n.activities:[],L=Array.isArray(n==null?void 0:n.awards)?n.awards:[],B=Array.isArray(i==null?void 0:i.structure)?i.structure:[],C=Array.isArray(i==null?void 0:i.payments)?i.payments:[],P=ge=>_(_e=>({..._e,[ge]:!_e[ge]})),M=A.length>0?A[0].subjects.map(ge=>({subject:ge.name.slice(0,7),marks:ge.marks})):[],q=A.length>0?A[0].subjects.map(ge=>({subject:ge.name.slice(0,7),score:ge.marks})):[],J=A.map(ge=>{const _e={exam:ge.name.split(" ")[0]};return ge.subjects.forEach(oe=>{_e[oe.name.slice(0,7)]=oe.marks}),_e}),U=o.filter(ge=>(!u||ge.class.split("-")[0]===u)&&(!d||ge.name.toLowerCase().includes(d.toLowerCase())));return S.jsxs("div",{className:"flex gap-4 h-[calc(100vh-80px)] overflow-hidden",children:[S.jsxs("div",{className:"w-80 min-w-[320px] overflow-y-auto pr-2",children:[S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-3 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("div",{className:"mb-2",children:S.jsx(hb,{value:u,onChange:c,options:f,placeholder:"All Classes"})}),S.jsxs("div",{className:"relative",children:[S.jsx(Ye.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),S.jsx("input",{value:d,onChange:ge=>h(ge.target.value),placeholder:"Search Student Name",className:"w-full pl-9 pr-3 py-1.5 border border-slate-300 rounded-lg text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]})]}),S.jsxs("p",{className:"text-xs text-slate-500 mb-2",children:[U.length," Students"]}),U.map(ge=>S.jsx("div",{onClick:()=>l(ge.id),className:`border rounded-xl p-2.5 mb-1.5 cursor-pointer transition-all duration-200 hover:-translate-y-0.5 active:translate-y-0 ${s===ge.id?"border-indigo-500 bg-indigo-50 shadow-sm":"bg-white border-slate-200 hover:border-indigo-400 hover:shadow-soft-lg"}`,children:S.jsxs("div",{className:"flex items-center gap-2.5",children:[S.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xs font-semibold shadow-sm",children:ge.avatar}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.name}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.roll," • ",ge.class]})]})]})},ge.id))]}),S.jsxs("div",{className:"flex-1 overflow-y-auto",children:[S.jsxs("div",{className:"flex gap-2 mb-3",children:[S.jsx(Yn,{variant:"secondary",size:"sm",icon:Ye.Printer,onClick:m,children:"Print Profile"}),S.jsx(Yn,{variant:"secondary",size:"sm",icon:Ye.FileText,onClick:y,children:"Export PDF"}),S.jsx(Yn,{variant:"primary",size:"sm",icon:Ye.Pencil,onClick:g,children:"Edit Details"}),S.jsx(Yn,{variant:"secondary",size:"sm",icon:Ye.Key,onClick:p,children:"Reset Password"})]}),S.jsx(fb,{items:x}),S.jsxs("div",{id:"student-profile-content",className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-3 mt-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[S.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-xl font-bold shadow-sm",children:"AS"}),S.jsxs("div",{className:"flex-1",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("h2",{className:"text-lg font-bold text-slate-900",children:O.name}),S.jsx("span",{className:"text-xs font-semibold bg-indigo-50 text-indigo-600 px-2.5 py-0.5 rounded-full",children:"Day Scholar"})]}),S.jsxs("div",{className:"grid grid-cols-4 gap-4 mt-2",children:[S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:"Roll No"}),S.jsx("p",{className:"text-sm text-slate-800",children:O.roll})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:"Email"}),S.jsx("p",{className:"text-sm text-slate-800",children:O.email})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:"Class"}),S.jsx("p",{className:"text-sm text-slate-800",children:O.class})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:"Phone"}),S.jsx("p",{className:"text-sm text-slate-800",children:O.phone})]})]})]})]}),S.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Attendance",value:"67%",color:"text-amber-500"},{label:"Avg Grade",value:"83.5%",color:"text-green-500"},{label:"Assignments",value:"0",color:"text-indigo-500"},{label:"Fee Due",value:"₹0",color:"text-green-500"}].map(ge=>S.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2 text-center transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[S.jsx("p",{className:"text-xs text-slate-500",children:ge.label}),S.jsx("p",{className:`text-lg font-bold ${ge.color}`,children:ge.value})]},ge.label))})]}),[{title:"Personal Information",fields:[["Date of Birth",(H=O.personal)==null?void 0:H.dob],["Admission Date",(ee=O.personal)==null?void 0:ee.admissionDate],["Address",(Z=O.personal)==null?void 0:Z.address]]},{title:"Parent/Guardian Information",fields:[["Parent Name",(Q=O.parent)==null?void 0:Q.name],["Phone",(le=O.parent)==null?void 0:le.phone],["Email",(N=O.parent)==null?void 0:N.email],["Emergency Contact",(I=O.parent)==null?void 0:I.emergency],["Relationship",(R=O.parent)==null?void 0:R.relationship]]},{title:"Medical & Additional Information",fields:[["Blood Group",(D=O.medical)==null?void 0:D.bloodGroup],["Gender",(G=O.medical)==null?void 0:G.gender],["Religion",(ce=O.medical)==null?void 0:ce.religion],["Medical Conditions",(he=O.medical)==null?void 0:he.conditions]]}].map(ge=>S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:ge.title}),S.jsx("div",{className:"grid grid-cols-3 gap-3",children:ge.fields.map(([_e,oe])=>S.jsxs("div",{children:[S.jsx("p",{className:"text-[10px] text-slate-400",children:_e}),S.jsx("p",{className:"text-sm text-slate-800",children:oe||"N/A"})]},_e))})]},ge.title)),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Assigned Mentor"}),S.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3 flex items-center gap-3",children:[S.jsx("div",{className:"w-12 h-12 rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center font-semibold shadow-sm",children:"AD"}),S.jsxs("div",{className:"flex-1",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:(ne=O.mentor)==null?void 0:ne.name}),S.jsx("span",{className:"text-[10px] bg-indigo-50 text-indigo-600 px-2 py-0.5 rounded-full font-semibold",children:"Mentor"})]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[(me=O.mentor)==null?void 0:me.subject," • ",(Se=O.mentor)==null?void 0:Se.qualification]}),S.jsxs("div",{className:"flex gap-3 mt-1",children:[S.jsxs("span",{className:"text-[10px] text-slate-500 flex items-center gap-1",children:[S.jsx(Ye.Mail,{className:"w-3 h-3"}),(ue=O.mentor)==null?void 0:ue.email]}),S.jsxs("span",{className:"text-[10px] text-slate-500 flex items-center gap-1",children:[S.jsx(Ye.Phone,{className:"w-3 h-3"}),(Ie=O.mentor)==null?void 0:Ie.phone]})]})]})]})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsxs("div",{className:"flex justify-between items-center mb-3",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Examination Results"}),S.jsx("button",{onClick:()=>{const ge={};A.forEach((_e,oe)=>{ge[oe]=!0}),_(ge)},className:"text-xs text-indigo-600 transition-all duration-150 active:scale-[0.97]",children:"Expand All"})]}),A.map((ge,_e)=>{const oe=ge.subjects.reduce((Be,Ve)=>Be+Ve.marks,0),Re=ge.subjects.reduce((Be,Ve)=>Be+Ve.total,0),et=(oe/Re*100).toFixed(1);return S.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3 mb-2 transition-all duration-200 hover:shadow-sm",children:[S.jsxs("div",{className:"flex justify-between items-center cursor-pointer",onClick:()=>P(_e),children:[S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.name}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.subjects.length," subjects • ",oe,"/",Re," • ",et,"%"]})]}),T[_e]?S.jsx(Ye.ChevronUp,{className:"w-4 h-4 text-slate-400"}):S.jsx(Ye.ChevronDown,{className:"w-4 h-4 text-slate-400"})]}),T[_e]&&S.jsx("div",{className:"overflow-x-auto rounded-lg border border-slate-200 mt-2",children:S.jsxs("table",{className:"w-full text-sm",children:[S.jsx("thead",{children:S.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[S.jsx("th",{className:"text-left py-1.5 px-2",children:"Subject"}),S.jsx("th",{className:"text-left py-1.5 px-2",children:"Marks"}),S.jsx("th",{className:"text-left py-1.5 px-2",children:"Percentage"}),S.jsx("th",{className:"text-left py-1.5 px-2",children:"Grade"})]})}),S.jsx("tbody",{children:ge.subjects.map(Be=>S.jsxs("tr",{className:"border-t border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[S.jsx("td",{className:"py-1.5 px-2 text-slate-800",children:Be.name}),S.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[Be.marks,"/",Be.total]}),S.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[Be.marks,"%"]}),S.jsx("td",{className:"py-1.5 px-2",children:S.jsx("span",{className:`text-xs px-2.5 py-0.5 rounded-full font-semibold ${Be.marks>=80?"bg-green-100 text-green-700":"bg-amber-100 text-amber-700"}`,children:Be.grade})})]},Be.name))})]})})]},_e)})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-3",children:"Performance Analysis"}),S.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[S.jsxs("div",{children:[S.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Subject-wise Marks"}),S.jsx(Jg,{width:"100%",height:200,children:S.jsxs(yie,{data:M,children:[S.jsx(Px,{strokeDasharray:"3 3"}),S.jsx(ku,{dataKey:"subject",fontSize:11}),S.jsx(Iu,{}),S.jsx(ha,{contentStyle:{borderRadius:"12px",border:"1px solid #e2e8f0",boxShadow:"0 4px 20px -4px rgba(0,0,0,0.1)"}}),S.jsx(ul,{dataKey:"marks",fill:"#6366f1",radius:[4,4,0,0]})]})})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Subject Strength"}),S.jsx(Jg,{width:"100%",height:200,children:S.jsxs(xie,{data:q,children:[S.jsx(Y8,{}),S.jsx(mh,{dataKey:"subject",fontSize:11}),S.jsx(vh,{}),S.jsx(gh,{dataKey:"score",stroke:"#6366f1",fill:"#6366f1",fillOpacity:.3})]})})]}),S.jsxs("div",{children:[S.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Performance Trend"}),S.jsx(Jg,{width:"100%",height:200,children:S.jsxs(gie,{data:J,children:[S.jsx(Px,{strokeDasharray:"3 3"}),S.jsx(ku,{dataKey:"exam",fontSize:11}),S.jsx(Iu,{}),S.jsx(ha,{contentStyle:{borderRadius:"12px",border:"1px solid #e2e8f0",boxShadow:"0 4px 20px -4px rgba(0,0,0,0.1)"}}),S.jsx(Us,{}),S.jsx(es,{type:"monotone",dataKey:"Math",stroke:"#6366f1",strokeWidth:2}),S.jsx(es,{type:"monotone",dataKey:"Science",stroke:"#10b981",strokeWidth:2}),S.jsx(es,{type:"monotone",dataKey:"English",stroke:"#f59e0b",strokeWidth:2}),S.jsx(es,{type:"monotone",dataKey:"Hindi",stroke:"#ef4444",strokeWidth:2})]})})]})]})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsxs("div",{className:"flex justify-between items-center mb-2",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Parent Meeting History"}),S.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-green-100 text-green-600",children:"3/4 Attended"})]}),r.map((ge,_e)=>S.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2.5 mb-1.5 flex justify-between items-center transition-colors duration-150 hover:bg-slate-50",children:[S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.type}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.date," • Conductor: ",ge.conductor]}),S.jsxs("p",{className:"text-xs text-slate-500",children:["Attendee: ",ge.attendee," • ",ge.notes]})]}),S.jsx(F0,{status:ge.status})]},_e))]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Extra-Curricular Activities"}),k.map((ge,_e)=>S.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2.5 mb-1.5 flex justify-between items-center transition-colors duration-150 hover:bg-slate-50",children:[S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.name}),S.jsxs("p",{className:"text-xs text-slate-500",children:["Member since ",ge.since," • ",ge.role]})]}),S.jsx(F0,{status:ge.status})]},_e))]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Awards & Achievements"}),L.map((ge,_e)=>S.jsxs("div",{className:"bg-amber-50 border border-amber-200 rounded-xl p-2.5 mb-1.5 transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsx(Ye.Trophy,{className:"w-4 h-4 text-amber-500"}),S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ge.name})]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.category," • ",ge.year]}),S.jsx("p",{className:"text-xs text-slate-500",children:ge.description})]},_e))]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Disciplinary Records"}),S.jsxs("div",{className:"bg-gradient-to-br from-green-50 to-green-100 border border-green-200 rounded-xl p-3 flex items-center gap-2",children:[S.jsx(Ye.CheckCircle,{className:"w-5 h-5 text-green-500"}),S.jsx("p",{className:"text-sm text-slate-800",children:"Clean Record - No disciplinary issues reported"})]})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsxs("div",{className:"flex justify-between items-center mb-2",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Fee Structure"}),S.jsxs("div",{className:"flex gap-1",children:[S.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-indigo-100 text-indigo-600",children:"Day Scholar"}),S.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-sky-100 text-sky-600",children:"AY 2025-2026"})]})]}),S.jsx("div",{className:"overflow-x-auto rounded-xl border border-slate-200",children:S.jsxs("table",{className:"w-full text-sm",children:[S.jsx("thead",{children:S.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[S.jsx("th",{className:"text-left py-2 px-3",children:"Fee Component"}),S.jsx("th",{className:"text-left py-2 px-3",children:"Amount (₹)"}),S.jsx("th",{className:"text-left py-2 px-3",children:"Frequency"})]})}),S.jsxs("tbody",{children:[B.map(ge=>S.jsxs("tr",{className:"border-b border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[S.jsx("td",{className:"py-2 px-3 text-slate-800",children:ge.component}),S.jsxs("td",{className:"py-2 px-3 text-slate-800",children:["₹",ge.amount.toLocaleString()]}),S.jsx("td",{className:"py-2 px-3 text-slate-800",children:ge.frequency})]},ge.component)),S.jsxs("tr",{className:"bg-slate-50",children:[S.jsx("td",{className:"py-2 px-3 font-bold text-slate-800",children:"Total Annual Fee"}),S.jsxs("td",{className:"py-2 px-3 font-bold text-slate-800",children:["₹",B.reduce((ge,_e)=>ge+_e.amount,0).toLocaleString()]}),S.jsx("td",{})]})]})]})})]}),S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-2",children:"Fee Payment History"}),S.jsx("div",{className:"grid grid-cols-3 gap-3 mb-3",children:[{label:"Total Fees",value:"₹60,000",color:"text-slate-800"},{label:"Paid",value:"₹60,000",color:"text-green-500"},{label:"Due",value:"₹0",color:"text-red-500"}].map(ge=>S.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2 text-center transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[S.jsx("p",{className:"text-xs text-slate-500",children:ge.label}),S.jsx("p",{className:`text-lg font-bold ${ge.color}`,children:ge.value})]},ge.label))}),C.map((ge,_e)=>S.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2.5 mb-1.5 flex justify-between items-center transition-colors duration-150 hover:bg-slate-50",children:[S.jsxs("div",{children:[S.jsxs("p",{className:"text-sm font-semibold text-slate-800",children:["₹",ge.amount.toLocaleString()," - ",ge.method]}),S.jsxs("p",{className:"text-xs text-slate-500",children:[ge.date," • Ref: ",ge.ref]})]}),S.jsx(F0,{status:ge.status})]},_e))]})]}),w]})}function wie({teacher:e,assignments:t=[],onEdit:r,onResetPassword:n,onPrint:i,onExportPdf:a,onBack:o,breadcrumbItems:s,isLoading:l,children:u}){var m,y,x,w,T,_;if(l||!e)return S.jsx(bN,{});const c=e,f=((m=c.user)==null?void 0:m.full_name)||c.full_name||"",d=((y=c.user)==null?void 0:y.email)||c.email||"",h=((x=c.user)==null?void 0:x.phone)||c.phone||"",g=f.split(" ").map(O=>O[0]).join("").slice(0,2).toUpperCase(),p=[{label:"Total Classes",value:t.length||c.classes_count||0,icon:Ye.GraduationCap,color:"text-blue-600",bg:"bg-gradient-to-br from-blue-50 to-blue-100",glow:"hover:shadow-[0_4px_20px_-4px_rgba(59,130,246,0.3)]"},{label:"Periods/Week",value:c.total_periods_per_week||0,icon:Ye.ClipboardList,color:"text-amber-600",bg:"bg-gradient-to-br from-amber-50 to-amber-100",glow:"hover:shadow-[0_4px_20px_-4px_rgba(245,158,11,0.3)]"},{label:"Max Workload",value:c.max_workload_hours?`${c.max_workload_hours}h`:"-",icon:Ye.TrendingUp,color:"text-purple-600",bg:"bg-gradient-to-br from-purple-50 to-purple-100",glow:"hover:shadow-[0_4px_20px_-4px_rgba(147,51,234,0.3)]"}];return S.jsxs("div",{children:[S.jsx(fb,{items:s}),S.jsxs("div",{className:"flex justify-between items-center mb-4 mt-2",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx("button",{onClick:o,className:"p-1.5 hover:bg-slate-100 rounded-lg transition-all duration-150 active:scale-[0.97]",children:S.jsx(Ye.ArrowLeft,{className:"w-5 h-5"})}),S.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-slate-900",children:"Teacher Profile"})]}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx(Yn,{variant:"secondary",size:"sm",icon:Ye.Printer,onClick:i,children:"Print"}),S.jsx(Yn,{variant:"secondary",size:"sm",icon:Ye.FileText,onClick:a,children:"Export PDF"}),S.jsx(Yn,{variant:"primary",size:"sm",icon:Ye.Pencil,onClick:r,children:"Edit Profile"}),S.jsx(Yn,{variant:"secondary",size:"sm",icon:Ye.Key,onClick:n,children:"Reset Password"})]})]}),S.jsx("div",{id:"teacher-profile",className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:S.jsxs("div",{className:"flex justify-between items-start",children:[S.jsxs("div",{className:"flex gap-4 items-center",children:[S.jsx("div",{className:"w-[72px] h-[72px] rounded-full bg-gradient-to-br from-indigo-500 to-indigo-700 text-white flex items-center justify-center text-2xl font-bold shadow-sm",children:g}),S.jsxs("div",{children:[S.jsx("h2",{className:"text-xl font-bold text-slate-900",children:f}),S.jsxs("p",{className:"text-sm text-slate-500 mb-2",children:[c.primary_subject||((w=c.subjects)==null?void 0:w[0])||c.department||""," Teacher"]}),S.jsxs("div",{className:"flex gap-4 text-xs text-slate-600",children:[S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx("span",{className:"text-slate-400",children:"ID:"})," ",c.employee_id]}),S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx(Ye.Mail,{className:"w-3 h-3 text-slate-400"}),d]}),S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx(Ye.Phone,{className:"w-3 h-3 text-slate-400"}),h||"N/A"]}),S.jsxs("span",{className:"flex items-center gap-1",children:[S.jsx(Ye.Calendar,{className:"w-3 h-3 text-slate-400"}),"Joined: ",c.joining_date||"N/A"]})]})]})]}),S.jsxs("span",{className:"text-sm font-medium px-2.5 py-0.5 rounded-full bg-green-100 text-green-600 border border-green-200",children:[c.max_workload_hours||24," hours/week"]})]})}),S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mb-4",children:p.map(O=>S.jsxs("div",{className:`bg-white border border-slate-200 rounded-xl p-4 md:p-5 flex items-center gap-3 md:gap-4 transition-all duration-200 hover:-translate-y-1 ${O.glow} cursor-default group`,children:[S.jsx("div",{className:`${O.bg} p-2.5 md:p-3 rounded-xl transition-transform duration-200 group-hover:scale-110`,children:S.jsx(O.icon,{className:`w-5 h-5 ${O.color}`})}),S.jsxs("div",{children:[S.jsx("p",{className:"text-xs text-slate-500 font-medium",children:O.label}),S.jsx("p",{className:"text-xl md:text-2xl font-bold text-slate-900 mt-0.5",children:O.value})]})]},O.label))}),S.jsx(ql,{title:"Professional Information",children:S.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[S.jsx(zi,{label:"Qualification",value:c.qualification||"Ph.D. in Mathematics"}),S.jsx(zi,{label:"Subject Specialization",value:((_=(T=c.subjects)==null?void 0:T[0])==null?void 0:_.name)||"Mathematics"}),S.jsx(zi,{label:"Years of Experience",value:c.experience_years?`${c.experience_years} years`:"5 years"}),S.jsx(zi,{label:"Teaching Load",value:`${c.max_workload_hours||24} hours per week`}),S.jsx(zi,{label:"Department",value:c.department||"Science & Mathematics"}),S.jsx(zi,{label:"Employment Type",value:c.employment_type||"Full-time"})]})}),S.jsx(ql,{title:"Personal Information",children:S.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[S.jsx(zi,{label:"Date of Birth",value:c.date_of_birth||"March 15, 1985"}),S.jsx(zi,{label:"Date of Joining",value:c.joining_date||"August 15, 2020"}),S.jsx(zi,{label:"Gender",value:c.gender||"Female"}),S.jsx(zi,{label:"Years of Service",value:c.experience_years?`${c.experience_years} years`:"5 years"}),S.jsx(zi,{label:"Address",value:[c.address_line1,c.city,c.state,c.pincode].filter(Boolean).join(", ")||"123 Education Lane, City, State 12345"}),S.jsx(zi,{label:"Emergency Contact",value:c.emergency_contact_phone||"+1-555-1011"})]})}),S.jsx(ql,{title:"Leave Summary",children:S.jsx("div",{className:"grid grid-cols-3 gap-3 mb-4",children:[{type:"Casual Leave",used:8,total:12,color:"bg-blue-500"},{type:"Sick Leave",used:13,total:15,color:"bg-red-500"},{type:"Earned Leave",used:12,total:20,color:"bg-green-500"}].map(O=>S.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 rounded-xl p-3 transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[S.jsx("p",{className:"text-xs text-slate-500",children:O.type}),S.jsxs("div",{className:"flex items-baseline gap-1 mt-1",children:[S.jsx("span",{className:"text-2xl font-bold text-slate-800",children:O.used}),S.jsxs("span",{className:"text-sm text-slate-400",children:["/ ",O.total," available"]})]}),S.jsx("div",{className:"w-full h-1.5 bg-slate-200 rounded-full mt-2",children:S.jsx("div",{className:`h-full ${O.color} rounded-full transition-all duration-300`,style:{width:`${O.used/O.total*100}%`}})})]},O.type))})}),S.jsx(ql,{title:"Current Teaching Schedule",children:(t.length>0?t:[{class_name:"10",section:"A",subject:"Mathematics",schedule:"Monday, Wednesday, Friday • 8:00 AM - 8:45 AM",students:45},{class_name:"10",section:"B",subject:"Mathematics",schedule:"Tuesday, Thursday • 9:00 AM - 9:45 AM",students:48}]).map((O,A)=>S.jsxs("div",{className:`flex justify-between items-center py-3 transition-colors duration-150 hover:bg-slate-50 rounded-lg px-2 -mx-2 ${A<1?"border-b border-slate-100":""}`,children:[S.jsxs("div",{children:[S.jsxs("p",{className:"text-sm font-semibold text-slate-800",children:["Class ",O.class_name,"-",O.section," • ",O.subject]}),S.jsx("p",{className:"text-xs text-slate-500",children:O.schedule||`${O.periods_per_week||3} periods/week`})]}),S.jsxs("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-blue-100 text-blue-600",children:[O.students||40," students"]})]},A))}),S.jsx(ql,{title:"Awards & Recognition",children:[{title:"Best Teacher Award",org:"Academic Excellence - 2025",desc:"Recognized for outstanding teaching methodology"},{title:"Innovation in Teaching",org:"State Education Board - 2024",desc:"Innovative use of technology in classroom"}].map((O,A)=>S.jsxs("div",{className:"flex gap-3 p-3 mb-2 bg-amber-50 border border-amber-200 rounded-xl transition-all duration-200 hover:-translate-y-0.5 hover:shadow-sm",children:[S.jsx(Ye.Trophy,{className:"w-5 h-5 text-amber-600 mt-0.5"}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:O.title}),S.jsx("p",{className:"text-xs text-slate-500",children:O.org}),S.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:O.desc})]})]},A))}),S.jsx(ql,{title:"Recent Activity",children:[{action:"Created new assignment",detail:"Class 10-A • 2 hours ago"},{action:"Marked attendance",detail:"Class 10-B • 5 hours ago"},{action:"Graded assignments",detail:"Class 11-A • Yesterday"}].map((O,A)=>S.jsxs("div",{className:`flex items-center gap-3 py-3 transition-colors duration-150 hover:bg-slate-50 rounded-lg px-2 -mx-2 ${A<2?"border-b border-slate-100":""}`,children:[S.jsx(Ye.Zap,{className:"w-4 h-4 text-amber-500"}),S.jsxs("div",{children:[S.jsx("p",{className:"text-sm font-semibold text-slate-800",children:O.action}),S.jsx("p",{className:"text-xs text-slate-500",children:O.detail})]})]},A))}),u]})}function ql({title:e,badge:t,children:r}){return S.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-4 md:p-5 mb-4 transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",children:[S.jsxs("div",{className:"flex justify-between items-center mb-3",children:[S.jsx("h3",{className:"text-base font-semibold text-slate-900",children:e}),t]}),r]})}function zi({label:e,value:t}){return S.jsxs("div",{className:"mb-2",children:[S.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:e}),S.jsx("p",{className:"text-sm font-medium text-slate-800",children:t||"N/A"})]})}exports.Badge=F0;exports.Breadcrumb=fb;exports.Button=Yn;exports.Card=wB;exports.CardContent=SB;exports.CardHeader=_B;exports.CardTitle=AB;exports.ChangePasswordModal=s$;exports.Checkbox=VB;exports.ConfirmDialog=HB;exports.DataTable=NB;exports.DateInput=KB;exports.EmptyState=e$;exports.ErrorBoundary=XB;exports.FilterBar=_N;exports.HoverCard=QB;exports.Input=yN;exports.LoginPage=o$;exports.Modal=fp;exports.NetworkStatus=JB;exports.Pagination=a$;exports.ProfileHeader=u$;exports.ProfileInfoGrid=c$;exports.ProtectedRoute=RB;exports.RecentActivities=MB;exports.ResetPasswordModal=l$;exports.SearchInput=xN;exports.SearchableSelect=hb;exports.SectionCard=t$;exports.Select=OB;exports.SessionTimeout=r$;exports.Sidebar=jB;exports.Skeleton=Hn;exports.SkeletonCard=IB;exports.SkeletonDashboard=bN;exports.SkeletonTable=FB;exports.SortableHeader=ZB;exports.StudentDetailView=bie;exports.Tabs=GB;exports.TeacherDetailView=wie;exports.TimeInput=YB;exports.TimetableGrid=i$;exports.ToastProvider=zB;exports.Topbar=LB;exports._typeof=ir;exports.cn=Lt;exports.commonjsGlobal=Hl;exports.exportMultiSheetExcel=oB;exports.exportToCsv=ck;exports.exportToExcel=aB;exports.generateAttendanceReport=mL;exports.generateFeeReceipt=vL;exports.generatePdf=dL;exports.generateStudentReportCard=pL;exports.getDefaultExportFromCjs=ar;exports.useClassSectionFilter=yB;exports.useFormDraft=uB;exports.useKeyboardShortcuts=lB;exports.useLocalStorage=sB;exports.usePagination=gB;exports.useRecentlyViewed=fB;exports.useSortableData=pB;exports.useTabState=hB;exports.useToast=WB;