school-erp-ui-shared 1.0.28 → 1.0.30

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.
@@ -1,444 +0,0 @@
1
- "use strict";const V=require("react"),Cj=require("@tanstack/react-query"),x=require("react/jsx-runtime"),Ye=require("lucide-react"),ns=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 is=jj(V);function cP(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=cP(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Dt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=cP(e))&&(n&&(n+=" "),n+=t);return n}const q2="-",kj=e=>{const t=Ij(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{const s=o.split(q2);return s[0]===""&&s.length!==1&&s.shift(),uP(s,t)||Lj(o)},getConflictingClassGroupIds:(o,s)=>{const l=r[o]||[];return s&&n[o]?[...l,...n[o]]:l}}},uP=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?uP(e.slice(1),n):void 0;if(i)return i;if(t.validators.length===0)return;const a=e.join(q2);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])=>{tx(o,n,a,t)}),n},tx=(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)){tx(i(n),t,r,n);return}t.validators.push({validator:i,classGroupId:r});return}Object.entries(i).forEach(([a,o])=>{tx(o,G5(t,a),r,n)})})},G5=(e,t)=>{let r=e;return t.split(q2).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)}}},fP="!",Dj=e=>{const{separator:t,experimentalParseClassName:r}=e,n=t.length===1,i=t[0],a=t.length,o=s=>{const l=[];let c=0,u=0,f;for(let v=0;v<s.length;v++){let y=s[v];if(c===0){if(y===i&&(n||s.slice(v,v+a)===t)){l.push(s.slice(u,v)),u=v+a;continue}if(y==="/"){f=v;continue}}y==="["?c++:y==="]"&&c--}const d=l.length===0?s:s.substring(u),h=d.startsWith(fP),g=h?d.substring(1):d,p=f&&f>u?f-u: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 c=o[l],{modifiers:u,hasImportantModifier:f,baseClassName:d,maybePostfixModifierPosition:h}=r(c);let g=!!h,p=n(g?d.substring(0,h):d);if(!p){if(!g){s=c+(s.length>0?" "+s:s);continue}if(p=n(d),!p){s=c+(s.length>0?" "+s:s);continue}g=!1}const v=Bj(u).join(":"),y=f?v+fP:v,b=y+p;if(a.includes(b))continue;a.push(b);const _=i(p,g);for(let A=0;A<_.length;++A){const S=_[A];a.push(y+S)}s=c+(s.length>0?" "+s:s)}return s};function zj(){let e=0,t,r,n="";for(;e<arguments.length;)(t=arguments[e++])&&(r=hP(t))&&(n&&(n+=" "),n+=r);return n}const hP=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=hP(e[n]))&&(r&&(r+=" "),r+=t);return r};function Wj(e,...t){let r,n,i,a=o;function o(l){const c=t.reduce((u,f)=>f(u),e());return r=$j(c),n=r.cache.get,i=r.cache.set,a=s,s(l)}function s(l){const c=n(l);if(c)return c;const u=Uj(l,r);return i(l,u),u}return function(){return a(zj.apply(null,arguments))}}const Cr=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},dP=/^\[(?:([a-z-]+):)?(.+)\]$/i,Hj=/^\d+\/\d+$/,Gj=new Set(["px","full","screen"]),Vj=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Yj=/\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$/,Kj=/^(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),zo=e=>Mc(e,"length",ak),Jl=e=>!!e&&!Number.isNaN(Number(e)),N1=e=>Mc(e,"number",Jl),Au=e=>!!e&&Number.isInteger(Number(e)),Zj=e=>e.endsWith("%")&&Jl(e.slice(0,-1)),$t=e=>dP.test(e),Wo=e=>Vj.test(e),Qj=new Set(["length","size","percentage"]),ek=e=>Mc(e,Qj,pP),tk=e=>Mc(e,"position",pP),rk=new Set(["image","url"]),nk=e=>Mc(e,rk,sk),ik=e=>Mc(e,"",ok),Tu=()=>!0,Mc=(e,t,r)=>{const n=dP.exec(e);return n?n[1]?typeof t=="string"?n[1]===t:t.has(n[1]):r(n[2]):!1},ak=e=>Yj.test(e)&&!Kj.test(e),pP=()=>!1,ok=e=>Xj.test(e),sk=e=>Jj.test(e),lk=()=>{const e=Cr("colors"),t=Cr("spacing"),r=Cr("blur"),n=Cr("brightness"),i=Cr("borderColor"),a=Cr("borderRadius"),o=Cr("borderSpacing"),s=Cr("borderWidth"),l=Cr("contrast"),c=Cr("grayscale"),u=Cr("hueRotate"),f=Cr("invert"),d=Cr("gap"),h=Cr("gradientColorStops"),g=Cr("gradientColorStopPositions"),p=Cr("inset"),v=Cr("margin"),y=Cr("opacity"),b=Cr("padding"),_=Cr("saturate"),A=Cr("scale"),S=Cr("sepia"),O=Cr("skew"),T=Cr("space"),k=Cr("translate"),L=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",$t,t],P=()=>[$t,t],M=()=>["",ro,zo],U=()=>["auto",Jl,$t],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],W=()=>["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",$t],Q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ce=()=>[Jl,$t];return{cacheSize:500,separator:":",theme:{colors:[Tu],spacing:[ro,zo],blur:["none","",Wo,$t],brightness:ce(),borderColor:[e],borderRadius:["none","","full",Wo,$t],borderSpacing:P(),borderWidth:M(),contrast:ce(),grayscale:Z(),hueRotate:ce(),invert:Z(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[Zj,zo],inset:C(),margin:C(),opacity:ce(),padding:P(),saturate:ce(),scale:ce(),sepia:Z(),skew:ce(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",$t]}],container:["container"],columns:[{columns:[Wo]}],"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(),$t]}],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",Au,$t]}],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",$t]}],grow:[{grow:Z()}],shrink:[{shrink:Z()}],order:[{order:["first","last","none",Au,$t]}],"grid-cols":[{"grid-cols":[Tu]}],"col-start-end":[{col:["auto",{span:["full",Au,$t]},$t]}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":[Tu]}],"row-start-end":[{row:["auto",{span:[Au,$t]},$t]}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",$t]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",$t]}],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:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[T]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[T]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",$t,t]}],"min-w":[{"min-w":[$t,t,"min","max","fit"]}],"max-w":[{"max-w":[$t,t,"none","full","min","max","fit","prose",{screen:[Wo]},Wo]}],h:[{h:[$t,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[$t,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[$t,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[$t,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Wo,zo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",N1]}],"font-family":[{font:[Tu]}],"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",$t]}],"line-clamp":[{"line-clamp":["none",Jl,N1]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ro,$t]}],"list-image":[{"list-image":["none",$t]}],"list-style-type":[{list:["none","disc","decimal",$t]}],"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:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ro,zo]}],"underline-offset":[{"underline-offset":["auto",ro,$t]}],"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",$t]}],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",$t]}],"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:[...q(),"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:q()}],"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:["",...q()]}],"outline-offset":[{"outline-offset":[ro,$t]}],"outline-w":[{outline:[ro,zo]}],"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,zo]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Wo,ik]}],"shadow-color":[{shadow:[Tu]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Wo,$t]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[f]}],saturate:[{saturate:[_]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[f]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[_]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"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",$t]}],duration:[{duration:ce()}],ease:[{ease:["linear","in","out","in-out",$t]}],delay:[{delay:ce()}],animate:[{animate:["none","spin","ping","pulse","bounce",$t]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[A]}],"scale-x":[{"scale-x":[A]}],"scale-y":[{"scale-y":[A]}],rotate:[{rotate:[Au,$t]}],"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",$t]}],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",$t]}],"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",$t]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ro,zo,N1]}],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"]}}},ck=Wj(lk);function kt(...e){return ck(Dt(e))}function uk(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 cr(e){"@babel/helpers - typeof";return cr=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},cr(e)}var Wn=Uint8Array,ki=Uint16Array,U2=Int32Array,rp=new Wn([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]),np=new Wn([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]),rx=new Wn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),mP=function(e,t){for(var r=new ki(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var i=new U2(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}},vP=mP(rp,2),gP=vP.b,nx=vP.r;gP[28]=258,nx[258]=28;var yP=mP(np,0),fk=yP.b,V5=yP.r,ix=new ki(32768);for(var Lr=0;Lr<32768;++Lr){var Ho=(Lr&43690)>>1|(Lr&21845)<<1;Ho=(Ho&52428)>>2|(Ho&13107)<<2,Ho=(Ho&61680)>>4|(Ho&3855)<<4,ix[Lr]=((Ho&65280)>>8|(Ho&255)<<8)>>1}var Ra=(function(e,t,r){for(var n=e.length,i=0,a=new ki(t);i<n;++i)e[i]&&++a[e[i]-1];var o=new ki(t);for(i=1;i<t;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(r){s=new ki(1<<t);var l=15-t;for(i=0;i<n;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],f=o[e[i]-1]++<<u,d=f|(1<<u)-1;f<=d;++f)s[ix[f]>>l]=c}else for(s=new ki(n),i=0;i<n;++i)e[i]&&(s[i]=ix[o[e[i]-1]++]>>15-e[i]);return s}),as=new Wn(288);for(var Lr=0;Lr<144;++Lr)as[Lr]=8;for(var Lr=144;Lr<256;++Lr)as[Lr]=9;for(var Lr=256;Lr<280;++Lr)as[Lr]=7;for(var Lr=280;Lr<288;++Lr)as[Lr]=8;var sf=new Wn(32);for(var Lr=0;Lr<32;++Lr)sf[Lr]=5;var hk=Ra(as,9,0),dk=Ra(as,9,1),pk=Ra(sf,5,0),mk=Ra(sf,5,1),O1=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},sa=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},C1=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},z2=function(e){return(e+7)/8|0},xP=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new Wn(e.subarray(t,r))},vk=["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"],ha=function(e,t,r){var n=new Error(t||vk[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,ha),!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 Wn(0);var o=!r,s=o||t.i!=2,l=t.i;o&&(r=new Wn(i*3));var c=function(_e){var se=r.length;if(_e>se){var Fe=new Wn(Math.max(se*2,_e));Fe.set(r),r=Fe}},u=t.f||0,f=t.p||0,d=t.b||0,h=t.l,g=t.d,p=t.m,v=t.n,y=i*8;do{if(!h){u=sa(e,f,1);var b=sa(e,f+1,3);if(f+=3,b)if(b==1)h=dk,g=mk,p=9,v=5;else if(b==2){var O=sa(e,f,31)+257,T=sa(e,f+10,15)+4,k=O+sa(e,f+5,31)+1;f+=14;for(var L=new Wn(k),B=new Wn(19),C=0;C<T;++C)B[rx[C]]=sa(e,f+C*3,7);f+=T*3;for(var P=O1(B),M=(1<<P)-1,U=Ra(B,P,1),C=0;C<k;){var J=U[sa(e,f,M)];f+=J&15;var _=J>>4;if(_<16)L[C++]=_;else{var q=0,W=0;for(_==16?(W=3+sa(e,f,3),f+=2,q=L[C-1]):_==17?(W=3+sa(e,f,7),f+=3):_==18&&(W=11+sa(e,f,127),f+=7);W--;)L[C++]=q}}var ee=L.subarray(0,O),Z=L.subarray(O);p=O1(ee),v=O1(Z),h=Ra(ee,p,1),g=Ra(Z,v,1)}else ha(1);else{var _=z2(f)+4,A=e[_-4]|e[_-3]<<8,S=_+A;if(S>i){l&&ha(0);break}s&&c(d+A),r.set(e.subarray(_,S),d),t.b=d+=A,t.p=f=S*8,t.f=u;continue}if(f>y){l&&ha(0);break}}s&&c(d+131072);for(var Q=(1<<p)-1,ce=(1<<v)-1,N=f;;N=f){var q=h[C1(e,f)&Q],I=q>>4;if(f+=q&15,f>y){l&&ha(0);break}if(q||ha(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=rp[C];R=sa(e,f,(1<<D)-1)+gP[C],f+=D}var G=g[C1(e,f)&ce],fe=G>>4;G||ha(3),f+=G&15;var Z=fk[fe];if(fe>3){var D=np[fe];Z+=C1(e,f)&(1<<D)-1,f+=D}if(f>y){l&&ha(0);break}s&&c(d+131072);var ae=d+R;if(d<Z){var ne=a-Z,ve=Math.min(Z,ae);for(ne+d<0&&ha(3);d<ve;++d)r[d]=n[ne+d]}for(;d<ae;++d)r[d]=r[d-Z]}}t.l=h,t.p=N,t.b=d,t.f=u,h&&(u=1,t.m=p,t.d=g,t.n=v)}while(!u);return d!=r.length&&o?xP(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},Eu=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},j1=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:wP,l:0};if(i==1){var o=new Wn(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(S,O){return S.f-O.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,u=1,f=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=r[r[c].f<r[f].f?c++:f++],l=r[c!=u&&r[c].f<r[f].f?c++:f++],r[u++]={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 ki(d+1),g=ax(r[u-1],h,0);if(g>t){var n=0,p=0,v=g-t,y=1<<v;for(a.sort(function(O,T){return h[T.s]-h[O.s]||O.f-T.f});n<i;++n){var b=a[n].s;if(h[b]>t)p+=y-(1<<g-h[b]),h[b]=t;else break}for(p>>=v;p>0;){var _=a[n].s;h[_]<t?p-=1<<t-h[_]++-1:++n}for(;n>=0&&p;--n){var A=a[n].s;h[A]==t&&(--h[A],++p)}g=t}return{t:new Wn(h),l:g}},ax=function(e,t,r){return e.s==-1?Math.max(ax(e.l,t,r+1),ax(e.r,t,r+1)):t[e.s]=r},Y5=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new ki(++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}},Pu=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},bP=function(e,t,r){var n=r.length,i=z2(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},K5=function(e,t,r,n,i,a,o,s,l,c,u){no(t,u++,r),++i[256];for(var f=j1(i,15),d=f.t,h=f.l,g=j1(a,15),p=g.t,v=g.l,y=Y5(d),b=y.c,_=y.n,A=Y5(p),S=A.c,O=A.n,T=new ki(19),k=0;k<b.length;++k)++T[b[k]&31];for(var k=0;k<S.length;++k)++T[S[k]&31];for(var L=j1(T,7),B=L.t,C=L.l,P=19;P>4&&!B[rx[P-1]];--P);var M=c+5<<3,U=Pu(i,as)+Pu(a,sf)+o,J=Pu(i,d)+Pu(a,p)+o+14+3*P+Pu(T,B)+2*T[16]+3*T[17]+7*T[18];if(l>=0&&M<=U&&M<=J)return bP(t,u,e.subarray(l,l+c));var q,W,ee,Z;if(no(t,u,1+(J<U)),u+=2,J<U){q=Ra(d,h,0),W=d,ee=Ra(p,v,0),Z=p;var Q=Ra(B,C,0);no(t,u,_-257),no(t,u+5,O-1),no(t,u+10,P-4),u+=14;for(var k=0;k<P;++k)no(t,u+3*k,B[rx[k]]);u+=3*P;for(var ce=[b,S],N=0;N<2;++N)for(var I=ce[N],k=0;k<I.length;++k){var R=I[k]&31;no(t,u,Q[R]),u+=B[R],R>15&&(no(t,u,I[k]>>5&127),u+=I[k]>>12)}}else q=hk,W=as,ee=pk,Z=sf;for(var k=0;k<s;++k){var D=n[k];if(D>255){var R=D>>18&31;Eu(t,u,q[R+257]),u+=W[R+257],R>7&&(no(t,u,D>>23&31),u+=rp[R]);var G=D&31;Eu(t,u,ee[G]),u+=Z[G],G>3&&(Eu(t,u,D>>5&8191),u+=np[G])}else Eu(t,u,q[D]),u+=W[D]}return Eu(t,u,q[256]),u+W[256]},yk=new U2([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),wP=new Wn(0),xk=function(e,t,r,n,i,a){var o=a.z||e.length,s=new Wn(n+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(n,s.length-i),c=a.l,u=(a.r||0)&7;if(t){u&&(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 ki(32768),v=a.h||new ki(g+1),y=Math.ceil(r/3),b=2*y,_=function(Ae){return(e[Ae]^e[Ae+1]<<y^e[Ae+2]<<b)&g},A=new U2(25e3),S=new ki(288),O=new ki(32),T=0,k=0,L=a.i||0,B=0,C=a.w||0,P=0;L+2<o;++L){var M=_(L),U=L&32767,J=v[M];if(p[U]=J,v[M]=U,C<=L){var q=o-L;if((T>7e3||B>24576)&&(q>423||!c)){u=K5(e,l,0,A,S,O,k,B,P,L-P,u),B=T=k=0,P=L;for(var W=0;W<286;++W)S[W]=0;for(var W=0;W<30;++W)O[W]=0}var ee=2,Z=0,Q=h,ce=U-J&32767;if(q>2&&M==_(L-ce))for(var N=Math.min(d,q)-1,I=Math.min(32767,L),R=Math.min(258,q);ce<=I&&--Q&&U!=J;){if(e[L+ee]==e[L+ee-ce]){for(var D=0;D<R&&e[L+D]==e[L+D-ce];++D);if(D>ee){if(ee=D,Z=ce,D>N)break;for(var G=Math.min(ce,D-2),fe=0,W=0;W<G;++W){var ae=L-ce+W&32767,ne=p[ae],ve=ae-ne&32767;ve>fe&&(fe=ve,J=ae)}}}U=J,J=p[U],ce+=U-J&32767}if(Z){A[B++]=268435456|nx[ee]<<18|V5[Z];var _e=nx[ee]&31,se=V5[Z]&31;k+=rp[_e]+np[se],++S[257+_e],++O[se],C=L+ee,++T}else A[B++]=e[L],++S[e[L]]}}for(L=Math.max(L,C);L<o;++L)A[B++]=e[L],++S[e[L]];u=K5(e,l,c,A,S,O,k,B,P,L-P,u),c||(a.r=u&7|l[u/8|0]<<3,u-=7,a.h=v,a.p=p,a.i=L,a.w=C)}else{for(var L=a.w||0;L<o+c;L+=65535){var Fe=L+65535;Fe>=o&&(l[u/8|0]=c,Fe=o),u=bP(l,u+1,e.subarray(L,Fe))}a.i=o}return xP(s,0,n+z2(u)+i)},_P=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 Wn(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)},SP=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=_P();i.p(t.dictionary),SP(e,2,i.d())}},_k=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&ha(6,"invalid zlib data"),(e[1]>>5&1)==1&&ha(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function ox(e,t){t||(t={});var r=_P();r.p(e);var n=bk(e,t,t.dictionary?6:2,4);return wk(n,t),SP(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(wP,{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 Pt=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function k1(){Pt.console&&typeof Pt.console.log=="function"&&Pt.console.log.apply(Pt.console,arguments)}var Tr={log:k1,warn:function(e){Pt.console&&(typeof Pt.console.warn=="function"?Pt.console.warn.apply(Pt.console,arguments):k1.call(null,arguments))},error:function(e){Pt.console&&(typeof Pt.console.error=="function"?Pt.console.error.apply(Pt.console,arguments):k1(e))}};function L1(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){Ns(n.response,t,r)},n.onerror=function(){Tr.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 s0(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 Uu,sx,Ns=Pt.saveAs||((typeof window>"u"?"undefined":cr(window))!=="object"||window!==Pt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=Pt.URL||Pt.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)?L1(e,t,r):s0(i,i.target="_blank"):s0(i)):(i.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(i.href)}),4e4),setTimeout((function(){s0(i)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(X5(e))L1(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){s0(n)}))}else navigator.msSaveOrOpenBlob((function(i,a){return a===void 0?a={autoBom:!1}:cr(a)!=="object"&&(Tr.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 L1(e,t,r);var i=e.type==="application/octet-stream",a=/constructor/i.test(Pt.HTMLElement)||Pt.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":cr(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=o?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=u:location=u,n=null},s.readAsDataURL(e)}else{var l=Pt.URL||Pt.webkitURL,c=l.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout((function(){l.revokeObjectURL(c)}),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 AP(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),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}/**
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 I1(e,t){var r=e[0],n=e[1],i=e[2],a=e[3];r=Dn(r,n,i,a,t[0],7,-680876936),a=Dn(a,r,n,i,t[1],12,-389564586),i=Dn(i,a,r,n,t[2],17,606105819),n=Dn(n,i,a,r,t[3],22,-1044525330),r=Dn(r,n,i,a,t[4],7,-176418897),a=Dn(a,r,n,i,t[5],12,1200080426),i=Dn(i,a,r,n,t[6],17,-1473231341),n=Dn(n,i,a,r,t[7],22,-45705983),r=Dn(r,n,i,a,t[8],7,1770035416),a=Dn(a,r,n,i,t[9],12,-1958414417),i=Dn(i,a,r,n,t[10],17,-42063),n=Dn(n,i,a,r,t[11],22,-1990404162),r=Dn(r,n,i,a,t[12],7,1804603682),a=Dn(a,r,n,i,t[13],12,-40341101),i=Dn(i,a,r,n,t[14],17,-1502002290),r=Bn(r,n=Dn(n,i,a,r,t[15],22,1236535329),i,a,t[1],5,-165796510),a=Bn(a,r,n,i,t[6],9,-1069501632),i=Bn(i,a,r,n,t[11],14,643717713),n=Bn(n,i,a,r,t[0],20,-373897302),r=Bn(r,n,i,a,t[5],5,-701558691),a=Bn(a,r,n,i,t[10],9,38016083),i=Bn(i,a,r,n,t[15],14,-660478335),n=Bn(n,i,a,r,t[4],20,-405537848),r=Bn(r,n,i,a,t[9],5,568446438),a=Bn(a,r,n,i,t[14],9,-1019803690),i=Bn(i,a,r,n,t[3],14,-187363961),n=Bn(n,i,a,r,t[8],20,1163531501),r=Bn(r,n,i,a,t[13],5,-1444681467),a=Bn(a,r,n,i,t[2],9,-51403784),i=Bn(i,a,r,n,t[7],14,1735328473),r=$n(r,n=Bn(n,i,a,r,t[12],20,-1926607734),i,a,t[5],4,-378558),a=$n(a,r,n,i,t[8],11,-2022574463),i=$n(i,a,r,n,t[11],16,1839030562),n=$n(n,i,a,r,t[14],23,-35309556),r=$n(r,n,i,a,t[1],4,-1530992060),a=$n(a,r,n,i,t[4],11,1272893353),i=$n(i,a,r,n,t[7],16,-155497632),n=$n(n,i,a,r,t[10],23,-1094730640),r=$n(r,n,i,a,t[13],4,681279174),a=$n(a,r,n,i,t[0],11,-358537222),i=$n(i,a,r,n,t[3],16,-722521979),n=$n(n,i,a,r,t[6],23,76029189),r=$n(r,n,i,a,t[9],4,-640364487),a=$n(a,r,n,i,t[12],11,-421815835),i=$n(i,a,r,n,t[15],16,530742520),r=qn(r,n=$n(n,i,a,r,t[2],23,-995338651),i,a,t[0],6,-198630844),a=qn(a,r,n,i,t[7],10,1126891415),i=qn(i,a,r,n,t[14],15,-1416354905),n=qn(n,i,a,r,t[5],21,-57434055),r=qn(r,n,i,a,t[12],6,1700485571),a=qn(a,r,n,i,t[3],10,-1894986606),i=qn(i,a,r,n,t[10],15,-1051523),n=qn(n,i,a,r,t[1],21,-2054922799),r=qn(r,n,i,a,t[8],6,1873313359),a=qn(a,r,n,i,t[15],10,-30611744),i=qn(i,a,r,n,t[6],15,-1560198380),n=qn(n,i,a,r,t[13],21,1309151649),r=qn(r,n,i,a,t[4],6,-145523070),a=qn(a,r,n,i,t[11],10,-1120210379),i=qn(i,a,r,n,t[2],15,718787259),n=qn(n,i,a,r,t[9],21,-343485551),e[0]=Jo(r,e[0]),e[1]=Jo(n,e[1]),e[2]=Jo(i,e[2]),e[3]=Jo(a,e[3])}function ip(e,t,r,n,i,a){return t=Jo(Jo(t,e),Jo(n,a)),Jo(t<<i|t>>>32-i,r)}function Dn(e,t,r,n,i,a,o){return ip(t&r|~t&n,e,t,i,a,o)}function Bn(e,t,r,n,i,a,o){return ip(t&n|r&~n,e,t,i,a,o)}function $n(e,t,r,n,i,a,o){return ip(t^r^n,e,t,i,a,o)}function qn(e,t,r,n,i,a,o){return ip(r^(t|~n),e,t,i,a,o)}function TP(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)I1(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(I1(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,I1(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}Uu=Pt.atob.bind(Pt),sx=Pt.btoa.bind(Pt);var J5="0123456789abcdef".split("");function Pk(e){for(var t="",r=0;r<4;r++)t+=J5[e>>8*r+4&15]+J5[e>>8*r&15];return t}function Nk(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function lx(e){return TP(e).map(Nk).join("")}var Ok=(function(e){for(var t=0;t<e.length;t++)e[t]=Pk(e[t]);return e.join("")})(TP("hello"))!="5d41402abc4b2a76b9719d911017c592";function Jo(e,t){if(Ok){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 cx(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 c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+o.charCodeAt(l))%256,s[l]=s[c],s[c]=u}r=e,n=s}else s=n;var f=t.length,d=0,h=0,g="";for(l=0;l<f;l++)h=(h+(u=s[d=(d+1)%256]))%256,s[d]=s[h],s[h]=u,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=lx(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=cx(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(cr(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){Pt.console&&Tr.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 EP(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,EP.call(this,n,i)}function Ls(e,t,r,n,i){if(!(this instanceof Ls))return new Ls(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,EP.call(this,n,i)}function gt(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,c="S",u=null;cr(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,a=e.compress||e.compressPdf||a,(u=e.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.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),c=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 v={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 v};var y=h.__private__.getPageFormat=function(E){return v[E]};i=i||"a4";var b={COMPAT:"compat",ADVANCED:"advanced"},_=b.COMPAT;function A(){this.saveGraphicsState(),le(new wt(at,0,0,-at,0,jo()*at).toString()+" cm"),this.setFontSize(this.getFontSize()/at),c="n",_=b.ADVANCED}function S(){this.restoreGraphicsState(),c="S",_=b.COMPAT}var O=h.__private__.combineFontStyleAndFontWeight=function(E,H){if(E=="bold"&&H=="normal"||E=="bold"&&H==400||E=="normal"&&H=="italic"||E=="bold"&&H=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return H&&(E=H==400||H==="normal"?E==="italic"?"italic":"normal":H!=700&&H!=="bold"||E!=="normal"?(H==700?"bold":H)+""+E:"bold"),E};h.advancedAPI=function(E){var H=_===b.COMPAT;return H&&A.call(this),typeof E!="function"||(E(this),H&&S.call(this)),this},h.compatAPI=function(E){var H=_===b.ADVANCED;return H&&S.call(this),typeof E!="function"||(E(this),H&&A.call(this)),this},h.isAdvancedAPI=function(){return _===b.ADVANCED};var T,k=function(E){if(_!==b.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,H){var me=t||H;if(isNaN(E)||isNaN(me))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return E.toFixed(me).replace(/0+$/,"")};T=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 _===b.COMPAT?E*at:_===b.ADVANCED?E:void 0},M=function(E){return _===b.COMPAT?jo()-E:_===b.ADVANCED?E:void 0},U=function(E){return P(M(E))};h.__private__.setPrecision=h.setPrecision=function(E){typeof parseInt(E,10)=="number"&&(t=parseInt(E,10))};var J,q="00000000000000000000000000000000",W=h.__private__.getFileId=function(){return q},ee=h.__private__.setFileId=function(E){return q=E!==void 0&&/^[a-fA-F0-9]{32}$/.test(E)?E.toUpperCase():q.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),u!==null&&(Rn=new Ul(u.userPermissions,u.userPassword,u.ownerPassword,q)),q};h.setFileId=function(E){return ee(E),this},h.getFileId=function(){return W()};var Z=h.__private__.convertDateToPDFDate=function(E){var H=E.getTimezoneOffset(),me=H<0?"+":"-",ge=Math.floor(Math.abs(H/60)),Te=Math.abs(H%60),Re=[me,R(ge),"'",R(Te),"'"].join("");return["D:",E.getFullYear(),R(E.getMonth()+1),R(E.getDate()),R(E.getHours()),R(E.getMinutes()),R(E.getSeconds()),Re].join("")},Q=h.__private__.convertPDFDateToDate=function(E){var H=parseInt(E.substr(2,4),10),me=parseInt(E.substr(6,2),10)-1,ge=parseInt(E.substr(8,2),10),Te=parseInt(E.substr(10,2),10),Re=parseInt(E.substr(12,2),10),Ge=parseInt(E.substr(14,2),10);return new Date(H,me,ge,Te,Re,Ge,0)},ce=h.__private__.setCreationDate=function(E){var H;if(E===void 0&&(E=new Date),E instanceof Date)H=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");H=E}return J=H},N=h.__private__.getCreationDate=function(E){var H=J;return E==="jsDate"&&(H=Q(J)),H};h.setCreationDate=function(E){return ce(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,fe=[],ae=[],ne=0,ve=[],_e=[],se=!1,Fe=ae,Ae=function(){G=0,ne=0,ae=[],fe=[],ve=[],ie=Dr(),oe=Dr()};h.__private__.setCustomOutputDestination=function(E){se=!0,Fe=E};var Ee=function(E){se||(Fe=E)};h.__private__.resetCustomOutputDestination=function(){se=!1,Fe=ae};var le=h.__private__.out=function(E){return E=E.toString(),ne+=E.length+1,Fe.push(E),Fe},De=h.__private__.write=function(E){return le(arguments.length===1?E.toString():Array.prototype.join.call(arguments," "))},tt=h.__private__.getArrayBuffer=function(E){for(var H=E.length,me=new ArrayBuffer(H),ge=new Uint8Array(me);H--;)ge[H]=E.charCodeAt(H);return me},Ue=[["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 Ue};var Ke=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(E){return Ke=_===b.ADVANCED?E/at:E,this};var Ze,Je=h.__private__.getFontSize=h.getFontSize=function(){return _===b.COMPAT?Ke:Ke*at},ft=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(E){return ft=E,this},h.__private__.getR2L=h.getR2L=function(){return ft};var pt,xt=h.__private__.setZoomMode=function(E){var H=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(E))Ze=E;else if(isNaN(E)){if(H.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.');Ze=E}else Ze=parseInt(E,10)};h.__private__.getZoomMode=function(){return Ze};var Nt,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.');pt=E};h.__private__.getPageMode=function(){return pt};var zt=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.');Nt=E};h.__private__.getLayoutMode=function(){return Nt},h.__private__.setDisplayMode=h.setDisplayMode=function(E,H,me){return xt(E),zt(H),Ft(me),this};var bt={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(E){if(Object.keys(bt).indexOf(E)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return bt[E]},h.__private__.getDocumentProperties=function(){return bt},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(E){for(var H in bt)bt.hasOwnProperty(H)&&E[H]&&(bt[H]=E[H]);return this},h.__private__.setDocumentProperty=function(E,H){if(Object.keys(bt).indexOf(E)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return bt[E]=H};var Rt,at,Mr,Wt,An,Vt={},fr={},Vn=[],we={},mt={},Tt={},Sr={},Yt=null,Et=0,St=[],Xt=new Q5(h),Ha=e.hotfixes||[],ln={},Ii={},Fi=[],wt=function E(H,me,ge,Te,Re,Ge){if(!(this instanceof E))return new E(H,me,ge,Te,Re,Ge);isNaN(H)&&(H=1),isNaN(me)&&(me=0),isNaN(ge)&&(ge=0),isNaN(Te)&&(Te=1),isNaN(Re)&&(Re=0),isNaN(Ge)&&(Ge=0),this._matrix=[H,me,ge,Te,Re,Ge]};Object.defineProperty(wt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(wt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(wt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(wt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(wt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(wt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(wt.prototype,"a",{get:function(){return this._matrix[0]},set:function(E){this._matrix[0]=E}}),Object.defineProperty(wt.prototype,"b",{get:function(){return this._matrix[1]},set:function(E){this._matrix[1]=E}}),Object.defineProperty(wt.prototype,"c",{get:function(){return this._matrix[2]},set:function(E){this._matrix[2]=E}}),Object.defineProperty(wt.prototype,"d",{get:function(){return this._matrix[3]},set:function(E){this._matrix[3]=E}}),Object.defineProperty(wt.prototype,"e",{get:function(){return this._matrix[4]},set:function(E){this._matrix[4]=E}}),Object.defineProperty(wt.prototype,"f",{get:function(){return this._matrix[5]},set:function(E){this._matrix[5]=E}}),Object.defineProperty(wt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(wt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(wt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(wt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),wt.prototype.join=function(E){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(T).join(E)},wt.prototype.multiply=function(E){var H=E.sx*this.sx+E.shy*this.shx,me=E.sx*this.shy+E.shy*this.sy,ge=E.shx*this.sx+E.sy*this.shx,Te=E.shx*this.shy+E.sy*this.sy,Re=E.tx*this.sx+E.ty*this.shx+this.tx,Ge=E.tx*this.shy+E.ty*this.sy+this.ty;return new wt(H,me,ge,Te,Re,Ge)},wt.prototype.decompose=function(){var E=this.sx,H=this.shy,me=this.shx,ge=this.sy,Te=this.tx,Re=this.ty,Ge=Math.sqrt(E*E+H*H),ct=(E/=Ge)*me+(H/=Ge)*ge;me-=E*ct,ge-=H*ct;var vt=Math.sqrt(me*me+ge*ge);return ct/=vt,E*(ge/=vt)<H*(me/=vt)&&(E=-E,H=-H,ct=-ct,Ge=-Ge),{scale:new wt(Ge,0,0,vt,0,0),translate:new wt(1,0,0,1,Te,Re),rotate:new wt(E,H,-H,E,0,0),skew:new wt(1,0,ct,1,0,0)}},wt.prototype.toString=function(E){return this.join(" ")},wt.prototype.inversed=function(){var E=this.sx,H=this.shy,me=this.shx,ge=this.sy,Te=this.tx,Re=this.ty,Ge=1/(E*ge-H*me),ct=ge*Ge,vt=-H*Ge,Mt=-me*Ge,Lt=E*Ge;return new wt(ct,vt,Mt,Lt,-ct*Te-Mt*Re,-vt*Te-Lt*Re)},wt.prototype.applyToPoint=function(E){var H=E.x*this.sx+E.y*this.shx+this.tx,me=E.x*this.shy+E.y*this.sy+this.ty;return new vl(H,me)},wt.prototype.applyToRectangle=function(E){var H=this.applyToPoint(E),me=this.applyToPoint(new vl(E.x+E.w,E.y+E.h));return new iu(H.x,H.y,me.x-H.x,me.y-H.y)},wt.prototype.clone=function(){var E=this.sx,H=this.shy,me=this.shx,ge=this.sy,Te=this.tx,Re=this.ty;return new wt(E,H,me,ge,Te,Re)},h.Matrix=wt;var yi=h.matrixMult=function(E,H){return H.multiply(E)},ai=new wt(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=ai;var Fn=function(E,H){if(!mt[E]){var me=(H instanceof Ko?"Sh":"P")+(Object.keys(we).length+1).toString(10);H.id=me,mt[E]=me,we[me]=H,Xt.publish("addPattern",H)}};h.ShadingPattern=Ko,h.TilingPattern=Ls,h.addShadingPattern=function(E,H){return k("addShadingPattern()"),Fn(E,H),this},h.beginTilingPattern=function(E){k("beginTilingPattern()"),Fh(E.boundingBox[0],E.boundingBox[1],E.boundingBox[2]-E.boundingBox[0],E.boundingBox[3]-E.boundingBox[1],E.matrix)},h.endTilingPattern=function(E,H){k("endTilingPattern()"),H.stream=_e[I].join(`
81
- `),Fn(E,H),Xt.publish("endTilingPattern",H),Fi.pop().restore()};var Hr=h.__private__.newObject=function(){var E=Dr();return K(E,!0),E},Dr=h.__private__.newObjectDeferred=function(){return G++,fe[G]=function(){return ne},G},K=function(E,H){return H=typeof H=="boolean"&&H,fe[E]=ne,H&&le(E+" 0 obj"),E},de=h.__private__.newAdditionalObject=function(){var E={objId:Dr(),content:""};return ve.push(E),E},ie=Dr(),oe=Dr(),he=h.__private__.decodeColorString=function(E){var H=E.split(" ");if(H.length!==2||H[1]!=="g"&&H[1]!=="G")H.length===5&&(H[4]==="k"||H[4]==="K")&&(H=[(1-H[0])*(1-H[3]),(1-H[1])*(1-H[3]),(1-H[2])*(1-H[3]),"r"]);else{var me=parseFloat(H[0]);H=[me,me,me,"r"]}for(var ge="#",Te=0;Te<3;Te++)ge+=("0"+Math.floor(255*parseFloat(H[Te])).toString(16)).slice(-2);return ge},pe=h.__private__.encodeColorString=function(E){var H;typeof E=="string"&&(E={ch1:E});var me=E.ch1,ge=E.ch2,Te=E.ch3,Re=E.ch4,Ge=E.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof me=="string"&&me.charAt(0)!=="#"){var ct=new AP(me);if(ct.ok)me=ct.toHex();else if(!/^\d*\.?\d*$/.test(me))throw new Error('Invalid color "'+me+'" passed to jsPDF.encodeColorString.')}if(typeof me=="string"&&/^#[0-9A-Fa-f]{3}$/.test(me)&&(me="#"+me[1]+me[1]+me[2]+me[2]+me[3]+me[3]),typeof me=="string"&&/^#[0-9A-Fa-f]{6}$/.test(me)){var vt=parseInt(me.substr(1),16);me=vt>>16&255,ge=vt>>8&255,Te=255&vt}if(ge===void 0||Re===void 0&&me===ge&&ge===Te)if(typeof me=="string")H=me+" "+Ge[0];else switch(E.precision){case 2:H=B(me/255)+" "+Ge[0];break;case 3:default:H=C(me/255)+" "+Ge[0]}else if(Re===void 0||cr(Re)==="object"){if(Re&&!isNaN(Re.a)&&Re.a===0)return H=["1.","1.","1.",Ge[1]].join(" ");if(typeof me=="string")H=[me,ge,Te,Ge[1]].join(" ");else switch(E.precision){case 2:H=[B(me/255),B(ge/255),B(Te/255),Ge[1]].join(" ");break;default:case 3:H=[C(me/255),C(ge/255),C(Te/255),Ge[1]].join(" ")}}else if(typeof me=="string")H=[me,ge,Te,Re,Ge[2]].join(" ");else switch(E.precision){case 2:H=[B(me),B(ge),B(Te),B(Re),Ge[2]].join(" ");break;case 3:default:H=[C(me),C(ge),C(Te),C(Re),Ge[2]].join(" ")}return H},Ne=h.__private__.getFilters=function(){return o},Le=h.__private__.putStream=function(E){var H=(E=E||{}).data||"",me=E.filters||Ne(),ge=E.alreadyAppliedFilters||[],Te=E.addLength1||!1,Re=H.length,Ge=E.objectId,ct=function(Mn){return Mn};if(u!==null&&Ge===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(ct=Rn.encryptor(Ge,0));var vt={};me===!0&&(me=["FlateEncode"]);var Mt=E.additionalKeyValues||[],Lt=(vt=gt.API.processDataByFilters!==void 0?gt.API.processDataByFilters(H,me):{data:H,reverseChain:[]}).reverseChain+(Array.isArray(ge)?ge.join(" "):ge.toString());if(vt.data.length!==0&&(Mt.push({key:"Length",value:vt.data.length}),Te===!0&&Mt.push({key:"Length1",value:Re})),Lt.length!=0)if(Lt.split("/").length-1==1)Mt.push({key:"Filter",value:Lt});else{Mt.push({key:"Filter",value:"["+Lt+"]"});for(var Gt=0;Gt<Mt.length;Gt+=1)if(Mt[Gt].key==="DecodeParms"){for(var Rr=[],Br=0;Br<vt.reverseChain.split("/").length-1;Br+=1)Rr.push("null");Rr.push(Mt[Gt].value),Mt[Gt].value="["+Rr.join(" ")+"]"}}le("<<");for(var Qr=0;Qr<Mt.length;Qr++)le("/"+Mt[Qr].key+" "+Mt[Qr].value);le(">>"),vt.data.length!==0&&(le("stream"),le(ct(vt.data)),le("endstream"))},Pe=h.__private__.putPage=function(E){var H=E.number,me=E.data,ge=E.objId,Te=E.contentsObjId;K(ge,!0),le("<</Type /Page"),le("/Parent "+E.rootDictionaryObjId+" 0 R"),le("/Resources "+E.resourceDictionaryObjId+" 0 R"),le("/MediaBox ["+parseFloat(T(E.mediaBox.bottomLeftX))+" "+parseFloat(T(E.mediaBox.bottomLeftY))+" "+T(E.mediaBox.topRightX)+" "+T(E.mediaBox.topRightY)+"]"),E.cropBox!==null&&le("/CropBox ["+T(E.cropBox.bottomLeftX)+" "+T(E.cropBox.bottomLeftY)+" "+T(E.cropBox.topRightX)+" "+T(E.cropBox.topRightY)+"]"),E.bleedBox!==null&&le("/BleedBox ["+T(E.bleedBox.bottomLeftX)+" "+T(E.bleedBox.bottomLeftY)+" "+T(E.bleedBox.topRightX)+" "+T(E.bleedBox.topRightY)+"]"),E.trimBox!==null&&le("/TrimBox ["+T(E.trimBox.bottomLeftX)+" "+T(E.trimBox.bottomLeftY)+" "+T(E.trimBox.topRightX)+" "+T(E.trimBox.topRightY)+"]"),E.artBox!==null&&le("/ArtBox ["+T(E.artBox.bottomLeftX)+" "+T(E.artBox.bottomLeftY)+" "+T(E.artBox.topRightX)+" "+T(E.artBox.topRightY)+"]"),typeof E.userUnit=="number"&&E.userUnit!==1&&le("/UserUnit "+E.userUnit),Xt.publish("putPage",{objId:ge,pageContext:St[H],pageNumber:H,page:me}),le("/Contents "+Te+" 0 R"),le(">>"),le("endobj");var Re=me.join(`
82
- `);return _===b.ADVANCED&&(Re+=`
83
- Q`),K(Te,!0),Le({data:Re,filters:Ne(),objectId:Te}),le("endobj"),ge},je=h.__private__.putPages=function(){var E,H,me=[];for(E=1;E<=Et;E++)St[E].objId=Dr(),St[E].contentsObjId=Dr();for(E=1;E<=Et;E++)me.push(Pe({number:E,data:_e[E],objId:St[E].objId,contentsObjId:St[E].contentsObjId,mediaBox:St[E].mediaBox,cropBox:St[E].cropBox,bleedBox:St[E].bleedBox,trimBox:St[E].trimBox,artBox:St[E].artBox,userUnit:St[E].userUnit,rootDictionaryObjId:ie,resourceDictionaryObjId:oe}));K(ie,!0),le("<</Type /Pages");var ge="/Kids [";for(H=0;H<Et;H++)ge+=me[H]+" 0 R ";le(ge+"]"),le("/Count "+Et),le(">>"),le("endobj"),Xt.publish("postPutPages")},ke=function(E){Xt.publish("putFont",{font:E,out:le,newObject:Hr,putStream:Le}),E.isAlreadyPutted!==!0&&(E.objectNumber=Hr(),le("<<"),le("/Type /Font"),le("/BaseFont /"+zl(E.postScriptName)),le("/Subtype /Type1"),typeof E.encoding=="string"&&le("/Encoding /"+E.encoding),le("/FirstChar 32"),le("/LastChar 255"),le(">>"),le("endobj"))},Ve=function(){for(var E in Vt)Vt.hasOwnProperty(E)&&(f===!1||f===!0&&d.hasOwnProperty(E))&&ke(Vt[E])},Qe=function(E){E.objectNumber=Hr();var H=[];H.push({key:"Type",value:"/XObject"}),H.push({key:"Subtype",value:"/Form"}),H.push({key:"BBox",value:"["+[T(E.x),T(E.y),T(E.x+E.width),T(E.y+E.height)].join(" ")+"]"}),H.push({key:"Matrix",value:"["+E.matrix.toString()+"]"});var me=E.pages[1].join(`
84
- `);Le({data:me,additionalKeyValues:H,objectId:E.objectNumber}),le("endobj")},lt=function(){for(var E in ln)ln.hasOwnProperty(E)&&Qe(ln[E])},Xe=function(E,H){var me,ge=[],Te=1/(H-1);for(me=0;me<1;me+=Te)ge.push(me);if(ge.push(1),E[0].offset!=0){var Re={offset:0,color:E[0].color};E.unshift(Re)}if(E[E.length-1].offset!=1){var Ge={offset:1,color:E[E.length-1].color};E.push(Ge)}for(var ct="",vt=0,Mt=0;Mt<ge.length;Mt++){for(me=ge[Mt];me>E[vt+1].offset;)vt++;var Lt=E[vt].offset,Gt=(me-Lt)/(E[vt+1].offset-Lt),Rr=E[vt].color,Br=E[vt+1].color;ct+=D(Math.round((1-Gt)*Rr[0]+Gt*Br[0]).toString(16))+D(Math.round((1-Gt)*Rr[1]+Gt*Br[1]).toString(16))+D(Math.round((1-Gt)*Rr[2]+Gt*Br[2]).toString(16))}return ct.trim()},st=function(E,H){H||(H=21);var me=Hr(),ge=Xe(E.colors,H),Te=[];Te.push({key:"FunctionType",value:"0"}),Te.push({key:"Domain",value:"[0.0 1.0]"}),Te.push({key:"Size",value:"["+H+"]"}),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]"}),Le({data:ge,additionalKeyValues:Te,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:me}),le("endobj"),E.objectNumber=Hr(),le("<< /ShadingType "+E.type),le("/ColorSpace /DeviceRGB");var Re="/Coords ["+T(parseFloat(E.coords[0]))+" "+T(parseFloat(E.coords[1]))+" ";E.type===2?Re+=T(parseFloat(E.coords[2]))+" "+T(parseFloat(E.coords[3])):Re+=T(parseFloat(E.coords[2]))+" "+T(parseFloat(E.coords[3]))+" "+T(parseFloat(E.coords[4]))+" "+T(parseFloat(E.coords[5])),le(Re+="]"),E.matrix&&le("/Matrix ["+E.matrix.toString()+"]"),le("/Function "+me+" 0 R"),le("/Extend [true true]"),le(">>"),le("endobj")},Ot=function(E,H){var me=Dr(),ge=Hr();H.push({resourcesOid:me,objectOid:ge}),E.objectNumber=ge;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(T).join(" ")+"]"}),Te.push({key:"XStep",value:T(E.xStep)}),Te.push({key:"YStep",value:T(E.yStep)}),Te.push({key:"Resources",value:me+" 0 R"}),E.matrix&&Te.push({key:"Matrix",value:"["+E.matrix.toString()+"]"}),Le({data:E.stream,additionalKeyValues:Te,objectId:E.objectNumber}),le("endobj")},tr=function(E){var H;for(H in we)we.hasOwnProperty(H)&&(we[H]instanceof Ko?st(we[H]):we[H]instanceof Ls&&Ot(we[H],E))},yr=function(E){for(var H in E.objectNumber=Hr(),le("<<"),E)switch(H){case"opacity":le("/ca "+B(E[H]));break;case"stroke-opacity":le("/CA "+B(E[H]))}le(">>"),le("endobj")},Zr=function(){var E;for(E in Tt)Tt.hasOwnProperty(E)&&yr(Tt[E])},ea=function(){for(var E in le("/XObject <<"),ln)ln.hasOwnProperty(E)&&ln[E].objectNumber>=0&&le("/"+E+" "+ln[E].objectNumber+" 0 R");Xt.publish("putXobjectDict"),le(">>")},Ga=function(){Rn.oid=Hr(),le("<<"),le("/Filter /Standard"),le("/V "+Rn.v),le("/R "+Rn.r),le("/U <"+Rn.toHexString(Rn.U)+">"),le("/O <"+Rn.toHexString(Rn.O)+">"),le("/P "+Rn.P),le(">>"),le("endobj")},Ta=function(){for(var E in le("/Font <<"),Vt)Vt.hasOwnProperty(E)&&(f===!1||f===!0&&d.hasOwnProperty(E))&&le("/"+E+" "+Vt[E].objectNumber+" 0 R");le(">>")},ta=function(){if(Object.keys(we).length>0){for(var E in le("/Shading <<"),we)we.hasOwnProperty(E)&&we[E]instanceof Ko&&we[E].objectNumber>=0&&le("/"+E+" "+we[E].objectNumber+" 0 R");Xt.publish("putShadingPatternDict"),le(">>")}},Ea=function(E){if(Object.keys(we).length>0){for(var H in le("/Pattern <<"),we)we.hasOwnProperty(H)&&we[H]instanceof h.TilingPattern&&we[H].objectNumber>=0&&we[H].objectNumber<E&&le("/"+H+" "+we[H].objectNumber+" 0 R");Xt.publish("putTilingPatternDict"),le(">>")}},xi=function(){if(Object.keys(Tt).length>0){var E;for(E in le("/ExtGState <<"),Tt)Tt.hasOwnProperty(E)&&Tt[E].objectNumber>=0&&le("/"+E+" "+Tt[E].objectNumber+" 0 R");Xt.publish("putGStateDict"),le(">>")}},Gr=function(E){K(E.resourcesOid,!0),le("<<"),le("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ta(),ta(),Ea(E.objectOid),xi(),ea(),le(">>"),le("endobj")},bh=function(){var E=[];Ve(),Zr(),lt(),tr(E),Xt.publish("putResources"),E.forEach(Gr),Gr({resourcesOid:oe,objectOid:Number.MAX_SAFE_INTEGER}),Xt.publish("postPutResources")},wh=function(){Xt.publish("putAdditionalObjects");for(var E=0;E<ve.length;E++){var H=ve[E];K(H.objId,!0),le(H.content),le("endobj")}Xt.publish("postPutAdditionalObjects")},_h=function(E){fr[E.fontName]=fr[E.fontName]||{},fr[E.fontName][E.fontStyle]=E.id},Kc=function(E,H,me,ge,Te){var Re={id:"F"+(Object.keys(Vt).length+1).toString(10),postScriptName:E,fontName:H,fontStyle:me,encoding:ge,isStandardFont:Te||!1,metadata:{}};return Xt.publish("addFont",{font:Re,instance:this}),Vt[Re.id]=Re,_h(Re),Re.id},Gp=function(E){for(var H=0,me=Ue.length;H<me;H++){var ge=Kc.call(this,E[H][0],E[H][1],E[H][2],Ue[H][3],!0);f===!1&&(d[ge]=!0);var Te=E[H][0].split("-");_h({id:ge,fontName:Te[0],fontStyle:Te[1]||""})}Xt.publish("addFonts",{fonts:Vt,dictionary:fr})},ra=function(E){return E.foo=function(){try{return E.apply(this,arguments)}catch(ge){var H=ge.stack||"";~H.indexOf(" at ")&&(H=H.split(" at ")[1]);var me="Error in function "+H.split(`
85
- `)[0].split("<")[0]+": "+ge.message;if(!Pt.console)throw new Error(me);Pt.console.error(me,ge),Pt.alert&&alert(me)}},E.foo.bar=E,E.foo},ul=function(E,H){var me,ge,Te,Re,Ge,ct,vt,Mt,Lt;if(Te=(H=H||{}).sourceEncoding||"Unicode",Ge=H.outputEncoding,(H.autoencode||Ge)&&Vt[Rt].metadata&&Vt[Rt].metadata[Te]&&Vt[Rt].metadata[Te].encoding&&(Re=Vt[Rt].metadata[Te].encoding,!Ge&&Vt[Rt].encoding&&(Ge=Vt[Rt].encoding),!Ge&&Re.codePages&&(Ge=Re.codePages[0]),typeof Ge=="string"&&(Ge=Re[Ge]),Ge)){for(vt=!1,ct=[],me=0,ge=E.length;me<ge;me++)(Mt=Ge[E.charCodeAt(me)])?ct.push(String.fromCharCode(Mt)):ct.push(E[me]),ct[me].charCodeAt(0)>>8&&(vt=!0);E=ct.join("")}for(me=E.length;vt===void 0&&me!==0;)E.charCodeAt(me-1)>>8&&(vt=!0),me--;if(!vt)return E;for(ct=H.noBOM?[]:[254,255],me=0,ge=E.length;me<ge;me++){if((Lt=(Mt=E.charCodeAt(me))>>8)>>8)throw new Error("Character at position "+me+" of string '"+E+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");ct.push(Lt),ct.push(Mt-(Lt<<8))}return String.fromCharCode.apply(void 0,ct)},oi=h.__private__.pdfEscape=h.pdfEscape=function(E,H){return ul(E,H).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Xc=h.__private__.beginPage=function(E){_e[++Et]=[],St[Et]={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])}},Ah(Et),Ee(_e[I])},Sh=function(E,H){var me,ge,Te;switch(r=H||r,typeof E=="string"&&(me=y(E.toLowerCase()),Array.isArray(me)&&(ge=me[0],Te=me[1])),Array.isArray(E)&&(ge=E[0]*at,Te=E[1]*at),isNaN(ge)&&(ge=i[0],Te=i[1]),(ge>14400||Te>14400)&&(Tr.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ge=Math.min(14400,ge),Te=Math.min(14400,Te)),i=[ge,Te],r.substr(0,1)){case"l":Te>ge&&(i=[Te,ge]);break;case"p":ge>Te&&(i=[Te,ge])}Xc(i),Ch(eu),le(na),ru!==0&&le(ru+" J"),nu!==0&&le(nu+" j"),Xt.publish("addPage",{pageNumber:Et})},Vp=function(E){E>0&&E<=Et&&(_e.splice(E,1),St.splice(E,1),Et--,I>Et&&(I=Et),this.setPage(I))},Ah=function(E){E>0&&E<=Et&&(I=E)},Yp=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return _e.length-1},Th=function(E,H,me){var ge,Te=void 0;return me=me||{},E=E!==void 0?E:Vt[Rt].fontName,H=H!==void 0?H:Vt[Rt].fontStyle,ge=E.toLowerCase(),fr[ge]!==void 0&&fr[ge][H]!==void 0?Te=fr[ge][H]:fr[E]!==void 0&&fr[E][H]!==void 0?Te=fr[E][H]:me.disableWarning===!1&&Tr.warn("Unable to look up font label for font '"+E+"', '"+H+"'. Refer to getFontList() for available fonts."),Te||me.noFallback||(Te=fr.times[H])==null&&(Te=fr.times.normal),Te},Kp=h.__private__.putInfo=function(){var E=Hr(),H=function(ge){return ge};for(var me in u!==null&&(H=Rn.encryptor(E,0)),le("<<"),le("/Producer ("+oi(H("jsPDF "+gt.version))+")"),bt)bt.hasOwnProperty(me)&&bt[me]&&le("/"+me.substr(0,1).toUpperCase()+me.substr(1)+" ("+oi(H(bt[me]))+")");le("/CreationDate ("+oi(H(J))+")"),le(">>"),le("endobj")},Jc=h.__private__.putCatalog=function(E){var H=(E=E||{}).rootDictionaryObjId||ie;switch(Hr(),le("<<"),le("/Type /Catalog"),le("/Pages "+H+" 0 R"),Ze||(Ze="fullwidth"),Ze){case"fullwidth":le("/OpenAction [3 0 R /FitH null]");break;case"fullheight":le("/OpenAction [3 0 R /FitV null]");break;case"fullpage":le("/OpenAction [3 0 R /Fit]");break;case"original":le("/OpenAction [3 0 R /XYZ null null 1]");break;default:var me=""+Ze;me.substr(me.length-1)==="%"&&(Ze=parseInt(Ze)/100),typeof Ze=="number"&&le("/OpenAction [3 0 R /XYZ null null "+B(Ze)+"]")}switch(Nt||(Nt="continuous"),Nt){case"continuous":le("/PageLayout /OneColumn");break;case"single":le("/PageLayout /SinglePage");break;case"two":case"twoleft":le("/PageLayout /TwoColumnLeft");break;case"tworight":le("/PageLayout /TwoColumnRight")}pt&&le("/PageMode /"+pt),Xt.publish("putCatalog"),le(">>"),le("endobj")},Xp=h.__private__.putTrailer=function(){le("trailer"),le("<<"),le("/Size "+(G+1)),le("/Root "+G+" 0 R"),le("/Info "+(G-1)+" 0 R"),u!==null&&le("/Encrypt "+Rn.oid+" 0 R"),le("/ID [ <"+q+"> <"+q+"> ]"),le(">>")},Jp=h.__private__.putHeader=function(){le("%PDF-"+g),le("%ºß¬à")},Zp=h.__private__.putXRef=function(){var E="0000000000";le("xref"),le("0 "+(G+1)),le("0000000000 65535 f ");for(var H=1;H<=G;H++)typeof fe[H]=="function"?le((E+fe[H]()).slice(-10)+" 00000 n "):fe[H]!==void 0?le((E+fe[H]).slice(-10)+" 00000 n "):le("0000000000 00000 n ")},Va=h.__private__.buildDocument=function(){Ae(),Ee(ae),Xt.publish("buildDocument"),Jp(),je(),wh(),bh(),u!==null&&Ga(),Kp(),Jc();var E=ne;return Zp(),Xp(),le("startxref"),le(""+E),le("%%EOF"),Ee(_e[I]),ae.join(`
86
- `)},fl=h.__private__.getBlob=function(E){return new Blob([tt(E)],{type:"application/pdf"})},hl=h.output=h.__private__.output=ra((function(E,H){switch(typeof(H=H||{})=="string"?H={filename:H}:H.filename=H.filename||"generated.pdf",E){case void 0:return Va();case"save":h.save(H.filename);break;case"arraybuffer":return tt(Va());case"blob":return fl(Va());case"bloburi":case"bloburl":if(Pt.URL!==void 0&&typeof Pt.URL.createObjectURL=="function")return Pt.URL&&Pt.URL.createObjectURL(fl(Va()))||void 0;Tr.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var me="",ge=Va();try{me=sx(ge)}catch{me=sx(unescape(encodeURIComponent(ge)))}return"data:application/pdf;filename="+H.filename+";base64,"+me;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Pt)==="[object Window]"){var Te="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Re=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';H.pdfObjectUrl&&(Te=H.pdfObjectUrl,Re="");var Ge='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Te+'"'+Re+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(H)+");<\/script></body></html>",ct=Pt.open();return ct!==null&&ct.document.write(Ge),ct}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Pt)==="[object Window]"){var vt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(H.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+H.filename+'" width="500px" height="400px" /></body></html>',Mt=Pt.open();if(Mt!==null){Mt.document.write(vt);var Lt=this;Mt.document.documentElement.querySelector("#pdfViewer").onload=function(){Mt.document.title=H.filename,Mt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Lt.output("bloburl"))}}return Mt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Pt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Gt='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",H)+'"></iframe></body></html>',Rr=Pt.open();if(Rr!==null&&(Rr.document.write(Gt),Rr.document.title=H.filename),Rr||typeof safari>"u")return Rr;break;case"datauri":case"dataurl":return Pt.document.location.href=this.output("datauristring",H);default:return null}})),Eh=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=Eh("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 Rn=null;ce(),ee();var Qp=function(E){return u!==null?Rn.encryptor(E,0):function(H){return H}},Ph=h.__private__.getPageInfo=h.getPageInfo=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:St[E].objId,pageNumber:E,pageContext:St[E]}},jt=h.__private__.getPageInfoByObjId=function(E){if(isNaN(E)||E%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var H in St)if(St[H].objId===E)break;return Ph(H)},e1=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:St[I].objId,pageNumber:I,pageContext:St[I]}};h.addPage=function(){return Sh.apply(this,arguments),this},h.setPage=function(){return Ah.apply(this,arguments),Ee.call(this,_e[I]),this},h.insertPage=function(E){return this.addPage(),this.movePage(I,E),this},h.movePage=function(E,H){var me,ge;if(E>H){me=_e[E],ge=St[E];for(var Te=E;Te>H;Te--)_e[Te]=_e[Te-1],St[Te]=St[Te-1];_e[H]=me,St[H]=ge,this.setPage(H)}else if(E<H){me=_e[E],ge=St[E];for(var Re=E;Re<H;Re++)_e[Re]=_e[Re+1],St[Re]=St[Re+1];_e[H]=me,St[H]=ge,this.setPage(H)}return this},h.deletePage=function(){return Vp.apply(this,arguments),this},h.__private__.text=h.text=function(E,H,me,ge,Te){var Re,Ge,ct,vt,Mt,Lt,Gt,Rr,Br,Qr=(ge=ge||{}).scope||this;if(typeof E=="number"&&typeof H=="number"&&(typeof me=="string"||Array.isArray(me))){var Mn=me;me=H,H=E,E=Mn}if(arguments[3]instanceof wt?(k("The transform parameter of text() with a Matrix value"),Br=Te):(ct=arguments[4],vt=arguments[5],cr(Gt=arguments[3])==="object"&&Gt!==null||(typeof ct=="string"&&(vt=ct,ct=null),typeof Gt=="string"&&(vt=Gt,Gt=null),typeof Gt=="number"&&(ct=Gt,Gt=null),ge={flags:Gt,angle:ct,align:vt})),isNaN(H)||isNaN(me)||E==null)throw new Error("Invalid arguments passed to jsPDF.text");if(E.length===0)return Qr;var vn="",ia=!1,bi=typeof ge.lineHeightFactor=="number"?ge.lineHeightFactor:vs,Oa=Qr.internal.scaleFactor;function Rh(Pr){return Pr=Pr.split(" ").join(Array(ge.TabLen||9).join(" ")),oi(Pr,Gt)}function lu(Pr){for(var Nr,Yr=Pr.concat(),cn=[],Za=Yr.length;Za--;)typeof(Nr=Yr.shift())=="string"?cn.push(Nr):Array.isArray(Pr)&&(Nr.length===1||Nr[1]===void 0&&Nr[2]===void 0)?cn.push(Nr[0]):cn.push([Nr[0],Nr[1],Nr[2]]);return cn}function cu(Pr,Nr){var Yr;if(typeof Pr=="string")Yr=Nr(Pr)[0];else if(Array.isArray(Pr)){for(var cn,Za,gu=Pr.concat(),Pl=[],qh=gu.length;qh--;)typeof(cn=gu.shift())=="string"?Pl.push(Nr(cn)[0]):Array.isArray(cn)&&typeof cn[0]=="string"&&(Za=Nr(cn[0],cn[1],cn[2]),Pl.push([Za[0],Za[1],Za[2]]));Yr=Pl}return Yr}var yl=!1,uu=!0;if(typeof E=="string")yl=!0;else if(Array.isArray(E)){var fu=E.concat();Ge=[];for(var xl,Tn=fu.length;Tn--;)(typeof(xl=fu.shift())!="string"||Array.isArray(xl)&&typeof xl[0]!="string")&&(uu=!1);yl=uu}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=Ke/Qr.internal.scaleFactor,wl=bl*(bi-1);switch(ge.baseline){case"bottom":me-=wl;break;case"top":me+=bl-wl;break;case"hanging":me+=bl-2*wl;break;case"middle":me+=bl/2-wl}if((Lt=ge.maxWidth||0)>0&&(typeof E=="string"?E=Qr.splitTextToSize(E,Lt):Object.prototype.toString.call(E)==="[object Array]"&&(E=E.reduce((function(Pr,Nr){return Pr.concat(Qr.splitTextToSize(Nr,Lt))}),[]))),Re={text:E,x:H,y:me,options:ge,mutex:{pdfEscape:oi,activeFontKey:Rt,fonts:Vt,activeFontSize:Ke}},Xt.publish("preProcessText",Re),E=Re.text,ct=(ge=Re.options).angle,!(Br instanceof wt)&&ct&&typeof ct=="number"){ct*=Math.PI/180,ge.rotationDirection===0&&(ct=-ct),_===b.ADVANCED&&(ct=-ct);var _l=Math.cos(ct),hu=Math.sin(ct);Br=new wt(_l,hu,-hu,_l,0,0)}else ct&&ct instanceof wt&&(Br=ct);_!==b.ADVANCED||Br||(Br=ai),(Mt=ge.charSpace||ml)!==void 0&&(vn+=T(P(Mt))+` Tc
87
- `,this.setCharSpace(this.getCharSpace()||0)),(Rr=ge.horizontalScale)!==void 0&&(vn+=T(100*Rr)+` Tz
88
- `),ge.lang;var si=-1,u1=ge.renderingMode!==void 0?ge.renderingMode:ge.stroke,du=Qr.internal.getCurrentPageInfo().pageContext;switch(u1){case 0:case!1:case"fill":si=0;break;case 1:case!0:case"stroke":si=1;break;case 2:case"fillThenStroke":si=2;break;case 3:case"invisible":si=3;break;case 4:case"fillAndAddForClipping":si=4;break;case 5:case"strokeAndAddPathForClipping":si=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":si=6;break;case 7:case"addToPathForClipping":si=7}var Mh=du.usedRenderingMode!==void 0?du.usedRenderingMode:-1;si!==-1?vn+=si+` Tr
89
- `:Mh!==-1&&(vn+=`0 Tr
90
- `),si!==-1&&(du.usedRenderingMode=si),vt=ge.align||"left";var Ri,Sl=Ke*bi,Dh=Qr.internal.pageSize.getWidth(),Bh=Vt[Rt];Mt=ge.charSpace||ml,Lt=ge.maxWidth||0,Gt=Object.assign({autoencode:!0,noBOM:!0},ge.flags);var ko=[],xs=function(Pr){return Qr.getStringUnitWidth(Pr,{font:Bh,charSpace:Mt,fontSize:Ke,doKerning:!1})*Ke/Oa};if(Object.prototype.toString.call(E)==="[object Array]"){var li;Ge=lu(E),vt!=="left"&&(Ri=Ge.map(xs));var Yn,Lo=0;if(vt==="right"){H-=Ri[0],E=[],Tn=Ge.length;for(var Ka=0;Ka<Tn;Ka++)Ka===0?(Yn=Na(H),li=Ya(me)):(Yn=P(Lo-Ri[Ka]),li=-Sl),E.push([Ge[Ka],Yn,li]),Lo=Ri[Ka]}else if(vt==="center"){H-=Ri[0]/2,E=[],Tn=Ge.length;for(var Xa=0;Xa<Tn;Xa++)Xa===0?(Yn=Na(H),li=Ya(me)):(Yn=P((Lo-Ri[Xa])/2),li=-Sl),E.push([Ge[Xa],Yn,li]),Lo=Ri[Xa]}else if(vt==="left"){E=[],Tn=Ge.length;for(var Al=0;Al<Tn;Al++)E.push(Ge[Al])}else if(vt==="justify"&&Bh.encoding==="Identity-H"){E=[],Tn=Ge.length,Lt=Lt!==0?Lt:Dh;for(var Ja=0,Vr=0;Vr<Tn;Vr++)if(li=Vr===0?Ya(me):-Sl,Yn=Vr===0?Na(H):Ja,Vr<Tn-1){var pu=P((Lt-Ri[Vr])/(Ge[Vr].split(" ").length-1)),Kn=Ge[Vr].split(" ");E.push([Kn[0]+" ",Yn,li]),Ja=0;for(var Mi=1;Mi<Kn.length;Mi++){var Tl=(xs(Kn[Mi-1]+" "+Kn[Mi])-xs(Kn[Mi]))*Oa+pu;Mi==Kn.length-1?E.push([Kn[Mi],Tl,0]):E.push([Kn[Mi]+" ",Tl,0]),Ja-=Tl}}else E.push([Ge[Vr],Yn,li]);E.push(["",Ja,0])}else{if(vt!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(E=[],Tn=Ge.length,Lt=Lt!==0?Lt:Dh,Vr=0;Vr<Tn;Vr++)li=Vr===0?Ya(me):-Sl,Yn=Vr===0?Na(H):0,Vr<Tn-1?ko.push(T(P((Lt-Ri[Vr])/(Ge[Vr].split(" ").length-1)))):ko.push(0),E.push([Ge[Vr],Yn,li])}}var $h=typeof ge.R2L=="boolean"?ge.R2L:ft;$h===!0&&(E=cu(E,(function(Pr,Nr,Yr){return[Pr.split("").reverse().join(""),Nr,Yr]}))),Re={text:E,x:H,y:me,options:ge,mutex:{pdfEscape:oi,activeFontKey:Rt,fonts:Vt,activeFontSize:Ke}},Xt.publish("postProcessText",Re),E=Re.text,ia=Re.mutex.isHex||!1;var mu=Vt[Rt].encoding;mu!=="WinAnsiEncoding"&&mu!=="StandardEncoding"||(E=cu(E,(function(Pr,Nr,Yr){return[Rh(Pr),Nr,Yr]}))),Ge=lu(E),E=[];for(var bs,ws,Io,_s=0,El=1,Ss=Array.isArray(Ge[0])?El:_s,Fo="",vu=function(Pr,Nr,Yr){var cn="";return Yr instanceof wt?(Yr=typeof ge.angle=="number"?yi(Yr,new wt(1,0,0,1,Pr,Nr)):yi(new wt(1,0,0,1,Pr,Nr),Yr),_===b.ADVANCED&&(Yr=yi(new wt(1,0,0,-1,0,0),Yr)),cn=Yr.join(" ")+` Tm
91
- `):cn=T(Pr)+" "+T(Nr)+` Td
92
- `,cn},Di=0;Di<Ge.length;Di++){switch(Fo="",Ss){case El:Io=(ia?"<":"(")+Ge[Di][0]+(ia?">":")"),bs=parseFloat(Ge[Di][1]),ws=parseFloat(Ge[Di][2]);break;case _s:Io=(ia?"<":"(")+Ge[Di]+(ia?">":")"),bs=Na(H),ws=Ya(me)}ko!==void 0&&ko[Di]!==void 0&&(Fo=ko[Di]+` Tw
93
- `),Di===0?E.push(Fo+vu(bs,ws,Br)+Io):Ss===_s?E.push(Fo+Io):Ss===El&&E.push(Fo+vu(bs,ws,Br)+Io)}E=Ss===_s?E.join(` Tj
94
- T* `):E.join(` Tj
95
- `),E+=` Tj
96
- `;var Bi=`BT
97
- /`;return Bi+=Rt+" "+Ke+` Tf
98
- `,Bi+=T(Ke*bi)+` TL
99
- `,Bi+=gs+`
100
- `,Bi+=vn,Bi+=E,le(Bi+="ET"),d[Rt]=!0,Qr};var t1=h.__private__.clip=h.clip=function(E){return le(E==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return t1("evenodd")},h.__private__.discardPath=h.discardPath=function(){return le("n"),this};var Pa=h.__private__.isValidStyle=function(E){var H=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(E)!==-1&&(H=!0),H};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(E){return Pa(E)&&(c=E),this};var Nh=h.__private__.getStyle=h.getStyle=function(E){var H=c;switch(E){case"D":case"S":H="S";break;case"F":H="f";break;case"FD":case"DF":H="B";break;case"f":case"f*":case"B":case"B*":H=E}return H},Oh=h.close=function(){return le("h"),this};h.stroke=function(){return le("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,H){cr(H)==="object"?n1(H,E):le(E)},Zc=function(E){E===null||_===b.ADVANCED&&E===void 0||(E=Nh(E),le(E))};function r1(E,H,me,ge,Te){var Re=new Ls(H||this.boundingBox,me||this.xStep,ge||this.yStep,this.gState,Te||this.matrix);Re.stream=this.stream;var Ge=E+"$$"+this.cloneIndex+++"$$";return Fn(Ge,Re),Re}var n1=function(E,H){var me=mt[E.key],ge=we[me];if(ge instanceof Ko)le("q"),le(i1(H)),ge.gState&&h.setGState(ge.gState),le(E.matrix.toString()+" cm"),le("/"+me+" sh"),le("Q");else if(ge instanceof Ls){var Te=new wt(1,0,0,-1,0,jo());E.matrix&&(Te=Te.multiply(E.matrix||ai),me=r1.call(ge,E.key,E.boundingBox,E.xStep,E.yStep,Te).id),le("q"),le("/Pattern cs"),le("/"+me+" scn"),ge.gState&&h.setGState(ge.gState),le(H),le("Q")}},i1=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"}},Qc=h.moveTo=function(E,H){return le(T(P(E))+" "+T(U(H))+" m"),this},ms=h.lineTo=function(E,H){return le(T(P(E))+" "+T(U(H))+" l"),this},Oo=h.curveTo=function(E,H,me,ge,Te,Re){return le([T(P(E)),T(U(H)),T(P(me)),T(U(ge)),T(P(Te)),T(U(Re)),"c"].join(" ")),this};h.__private__.line=h.line=function(E,H,me,ge,Te){if(isNaN(E)||isNaN(H)||isNaN(me)||isNaN(ge)||!Pa(Te))throw new Error("Invalid arguments passed to jsPDF.line");return _===b.COMPAT?this.lines([[me-E,ge-H]],E,H,[1,1],Te||"S"):this.lines([[me-E,ge-H]],E,H,[1,1]).stroke()},h.__private__.lines=h.lines=function(E,H,me,ge,Te,Re){var Ge,ct,vt,Mt,Lt,Gt,Rr,Br,Qr,Mn,vn,ia;if(typeof E=="number"&&(ia=me,me=H,H=E,E=ia),ge=ge||[1,1],Re=Re||!1,isNaN(H)||isNaN(me)||!Array.isArray(E)||!Array.isArray(ge)||!Pa(Te)||typeof Re!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Qc(H,me),Ge=ge[0],ct=ge[1],Mt=E.length,Mn=H,vn=me,vt=0;vt<Mt;vt++)(Lt=E[vt]).length===2?(Mn=Lt[0]*Ge+Mn,vn=Lt[1]*ct+vn,ms(Mn,vn)):(Gt=Lt[0]*Ge+Mn,Rr=Lt[1]*ct+vn,Br=Lt[2]*Ge+Mn,Qr=Lt[3]*ct+vn,Mn=Lt[4]*Ge+Mn,vn=Lt[5]*ct+vn,Oo(Gt,Rr,Br,Qr,Mn,vn));return Re&&Oh(),Zc(Te),this},h.path=function(E){for(var H=0;H<E.length;H++){var me=E[H],ge=me.c;switch(me.op){case"m":Qc(ge[0],ge[1]);break;case"l":ms(ge[0],ge[1]);break;case"c":Oo.apply(this,ge);break;case"h":Oh()}}return this},h.__private__.rect=h.rect=function(E,H,me,ge,Te){if(isNaN(E)||isNaN(H)||isNaN(me)||isNaN(ge)||!Pa(Te))throw new Error("Invalid arguments passed to jsPDF.rect");return _===b.COMPAT&&(ge=-ge),le([T(P(E)),T(U(H)),T(P(me)),T(P(ge)),"re"].join(" ")),Zc(Te),this},h.__private__.triangle=h.triangle=function(E,H,me,ge,Te,Re,Ge){if(isNaN(E)||isNaN(H)||isNaN(me)||isNaN(ge)||isNaN(Te)||isNaN(Re)||!Pa(Ge))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[me-E,ge-H],[Te-me,Re-ge],[E-Te,H-Re]],E,H,[1,1],Ge,!0),this},h.__private__.roundedRect=h.roundedRect=function(E,H,me,ge,Te,Re,Ge){if(isNaN(E)||isNaN(H)||isNaN(me)||isNaN(ge)||isNaN(Te)||isNaN(Re)||!Pa(Ge))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ct=4/3*(Math.SQRT2-1);return Te=Math.min(Te,.5*me),Re=Math.min(Re,.5*ge),this.lines([[me-2*Te,0],[Te*ct,0,Te,Re-Re*ct,Te,Re],[0,ge-2*Re],[0,Re*ct,-Te*ct,Re,-Te,Re],[2*Te-me,0],[-Te*ct,0,-Te,-Re*ct,-Te,-Re],[0,2*Re-ge],[0,-Re*ct,Te*ct,-Re,Te,-Re]],E+Te,H,[1,1],Ge,!0),this},h.__private__.ellipse=h.ellipse=function(E,H,me,ge,Te){if(isNaN(E)||isNaN(H)||isNaN(me)||isNaN(ge)||!Pa(Te))throw new Error("Invalid arguments passed to jsPDF.ellipse");var Re=4/3*(Math.SQRT2-1)*me,Ge=4/3*(Math.SQRT2-1)*ge;return Qc(E+me,H),Oo(E+me,H-Ge,E+Re,H-ge,E,H-ge),Oo(E-Re,H-ge,E-me,H-Ge,E-me,H),Oo(E-me,H+Ge,E-Re,H+ge,E,H+ge),Oo(E+Re,H+ge,E+me,H+Ge,E+me,H),Zc(Te),this},h.__private__.circle=h.circle=function(E,H,me,ge){if(isNaN(E)||isNaN(H)||isNaN(me)||!Pa(ge))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(E,H,me,me,ge)},h.setFont=function(E,H,me){return me&&(H=O(H,me)),Rt=Th(E,H,{disableWarning:!1}),this};var a1=h.__private__.getFont=h.getFont=function(){return Vt[Th.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var E,H,me={};for(E in fr)if(fr.hasOwnProperty(E))for(H in me[E]=[],fr[E])fr[E].hasOwnProperty(H)&&me[E].push(H);return me},h.addFont=function(E,H,me,ge,Te){var Re=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&Re.indexOf(arguments[3])!==-1?Te=arguments[3]:arguments[3]&&Re.indexOf(arguments[3])==-1&&(me=O(me,ge)),Te=Te||"Identity-H",Kc.call(this,E,H,me,Te)};var vs,eu=e.lineWidth||.200025,pl=h.__private__.getLineWidth=h.getLineWidth=function(){return eu},Ch=h.__private__.setLineWidth=h.setLineWidth=function(E){return eu=E,le(T(P(E))+" w"),this};h.__private__.setLineDash=gt.API.setLineDash=gt.API.setLineDashPattern=function(E,H){if(E=E||[],H=H||0,isNaN(H)||!Array.isArray(E))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return E=E.map((function(me){return T(P(me))})).join(" "),H=T(P(H)),le("["+E+"] "+H+" d"),this};var jh=h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*vs};h.__private__.getLineHeight=h.getLineHeight=function(){return Ke*vs};var kh=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(E){return typeof(E=E||1.15)=="number"&&(vs=E),this},Lh=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return vs};kh(e.lineHeight);var Na=h.__private__.getHorizontalCoordinate=function(E){return P(E)},Ya=h.__private__.getVerticalCoordinate=function(E){return _===b.ADVANCED?E:St[I].mediaBox.topRightY-St[I].mediaBox.bottomLeftY-P(E)},o1=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(E){return T(Na(E))},Co=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(E){return T(Ya(E))},na=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return he(na)},h.__private__.setStrokeColor=h.setDrawColor=function(E,H,me,ge){return na=pe({ch1:E,ch2:H,ch3:me,ch4:ge,pdfColorType:"draw",precision:2}),le(na),this};var tu=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return he(tu)},h.__private__.setFillColor=h.setFillColor=function(E,H,me,ge){return tu=pe({ch1:E,ch2:H,ch3:me,ch4:ge,pdfColorType:"fill",precision:2}),le(tu),this};var gs=e.textColor||"0 g",s1=h.__private__.getTextColor=h.getTextColor=function(){return he(gs)};h.__private__.setTextColor=h.setTextColor=function(E,H,me,ge){return gs=pe({ch1:E,ch2:H,ch3:me,ch4:ge,pdfColorType:"text",precision:3}),this};var ml=e.charSpace,l1=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(ml||0)};h.__private__.setCharSpace=h.setCharSpace=function(E){if(isNaN(E))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ml=E,this};var ru=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 H=h.CapJoinStyles[E];if(H===void 0)throw new Error("Line cap style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ru=H,le(H+" J"),this};var nu=0;h.__private__.setLineJoin=h.setLineJoin=function(E){var H=h.CapJoinStyles[E];if(H===void 0)throw new Error("Line join style of '"+E+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return nu=H,le(H+" 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 le(T(P(E))+" M"),this},h.GState=lf,h.setGState=function(E){(E=typeof E=="string"?Tt[Sr[E]]:Ih(null,E)).equals(Yt)||(le("/"+E.id+" gs"),Yt=E)};var Ih=function(E,H){if(!E||!Sr[E]){var me=!1;for(var ge in Tt)if(Tt.hasOwnProperty(ge)&&Tt[ge].equals(H)){me=!0;break}if(me)H=Tt[ge];else{var Te="GS"+(Object.keys(Tt).length+1).toString(10);Tt[Te]=H,H.id=Te}return E&&(Sr[E]=H.id),Xt.publish("addGState",H),H}};h.addGState=function(E,H){return Ih(E,H),this},h.saveGraphicsState=function(){return le("q"),Vn.push({key:Rt,size:Ke,color:gs}),this},h.restoreGraphicsState=function(){le("Q");var E=Vn.pop();return Rt=E.key,Ke=E.size,gs=E.color,Yt=null,this},h.setCurrentTransformationMatrix=function(E){return le(E.toString()+" cm"),this},h.comment=function(E){return le("#"+E),this};var vl=function(E,H){var me=E||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return me},set:function(Re){isNaN(Re)||(me=parseFloat(Re))}});var ge=H||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ge},set:function(Re){isNaN(Re)||(ge=parseFloat(Re))}});var Te="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Te},set:function(Re){Te=Re.toString()}}),this},iu=function(E,H,me,ge){vl.call(this,E,H),this.type="rect";var Te=me||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Te},set:function(Ge){isNaN(Ge)||(Te=parseFloat(Ge))}});var Re=ge||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Re},set:function(Ge){isNaN(Ge)||(Re=parseFloat(Ge))}}),this},au=function(){this.page=Et,this.currentPage=I,this.pages=_e.slice(0),this.pagesContext=St.slice(0),this.x=Mr,this.y=Wt,this.matrix=An,this.width=ys(I),this.height=jo(I),this.outputDestination=Fe,this.id="",this.objectNumber=-1};au.prototype.restore=function(){Et=this.page,I=this.currentPage,St=this.pagesContext,_e=this.pages,Mr=this.x,Wt=this.y,An=this.matrix,ou(I,this.width),su(I,this.height),Fe=this.outputDestination};var Fh=function(E,H,me,ge,Te){Fi.push(new au),Et=I=0,_e=[],Mr=E,Wt=H,An=Te,Xc([me,ge])},c1=function(E){if(Ii[E])Fi.pop().restore();else{var H=new au,me="Xo"+(Object.keys(ln).length+1).toString(10);H.id=me,Ii[E]=me,ln[me]=H,Xt.publish("addFormObject",H),Fi.pop().restore()}};for(var gl in h.beginFormObject=function(E,H,me,ge,Te){return Fh(E,H,me,ge,Te),this},h.endFormObject=function(E){return c1(E),this},h.doFormObject=function(E,H){var me=ln[Ii[E]];return le("q"),le(H.toString()+" cm"),le("/"+me.id+" Do"),le("Q"),this},h.getFormObject=function(E){var H=ln[Ii[E]];return{x:H.x,y:H.y,width:H.width,height:H.height,matrix:H.matrix}},h.save=function(E,H){return E=E||"generated.pdf",(H=H||{}).returnPromise=H.returnPromise||!1,H.returnPromise===!1?(Ns(fl(Va()),E),typeof Ns.unload=="function"&&Pt.setTimeout&&setTimeout(Ns.unload,911),this):new Promise((function(me,ge){try{var Te=Ns(fl(Va()),E);typeof Ns.unload=="function"&&Pt.setTimeout&&setTimeout(Ns.unload,911),me(Te)}catch(Re){ge(Re.message)}}))},gt.API)gt.API.hasOwnProperty(gl)&&(gl==="events"&&gt.API.events.length?(function(E,H){var me,ge,Te;for(Te=H.length-1;Te!==-1;Te--)me=H[Te][0],ge=H[Te][1],E.subscribe.apply(E,[me].concat(typeof ge=="function"?[ge]:ge))})(Xt,gt.API.events):h[gl]=gt.API[gl]);var ys=h.getPageWidth=function(E){return(St[E=E||I].mediaBox.topRightX-St[E].mediaBox.bottomLeftX)/at},ou=h.setPageWidth=function(E,H){St[E].mediaBox.topRightX=H*at+St[E].mediaBox.bottomLeftX},jo=h.getPageHeight=function(E){return(St[E=E||I].mediaBox.topRightY-St[E].mediaBox.bottomLeftY)/at},su=h.setPageHeight=function(E,H){St[E].mediaBox.topRightY=H*at+St[E].mediaBox.bottomLeftY};return h.internal={pdfEscape:oi,getStyle:Nh,getFont:a1,getFontSize:Je,getCharSpace:l1,getTextColor:s1,getLineHeight:jh,getLineHeightFactor:Lh,getLineWidth:pl,write:De,getHorizontalCoordinate:Na,getVerticalCoordinate:Ya,getCoordinateString:o1,getVerticalCoordinateString:Co,collections:{},newObject:Hr,newAdditionalObject:de,newObjectDeferred:Dr,newObjectDeferredBegin:K,getFilters:Ne,putStream:Le,events:Xt,scaleFactor:at,pageSize:{getWidth:function(){return ys(I)},setWidth:function(E){ou(I,E)},getHeight:function(){return jo(I)},setHeight:function(E){su(I,E)}},encryptionOptions:u,encryption:Rn,getEncryptor:Qp,output:hl,getNumberOfPages:Yp,pages:_e,out:le,f2:B,f3:C,getPageInfo:Ph,getPageInfoByObjId:jt,getCurrentPageInfo:e1,getPDFVersion:p,Point:vl,Rectangle:iu,Matrix:wt,hasHotfix:Eh},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return ys(I)},set:function(E){ou(I,E)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return jo(I)},set:function(E){su(I,E)},enumerable:!0,configurable:!0}),Gp.call(h,Ue),Rt="F1",Sh(i,r),Xt.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 cx(lx(t).substr(0,5),e)},Ul.prototype.encryptor=function(e,t){var r=lx(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return cx(r,n)}},lf.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||cr(e)!==cr(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},gt.API={events:[]},gt.version="2.5.2";var qr=gt.API,W2=1,Zs=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},kl=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},It=function(e){return e.toFixed(2)},Go=function(e){return e.toFixed(5)};qr.__acroform__={};var vi=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},ew=function(e){return e*W2},ja=function(e){var t=new NP,r=dt.internal.getHeight(e)||0,n=dt.internal.getWidth(e)||0;return t.BBox=[0,0,Number(It(n)),Number(It(r))],t},Ck=qr.__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=qr.__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=qr.__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},Kr=qr.__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)},Xr=qr.__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)},Jr=qr.__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=qr.__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(It(l.lowerLeft_X)),Number(It(l.lowerLeft_Y)),Number(It(l.upperRight_X)),Number(It(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=ux(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+" "+It(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}},ux=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=dt.internal.getHeight(e)||0;o=o<0?-o:o;var s=dt.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(C,P,M){if(C+1<i.length){var U=P+" "+i[C+1][0];return l0(U,e,M).width<=s-4}return!1};a++;e:for(;a>0;){t="",a--;var c,u,f=l0("3",e,a).height,d=e.multiline?o-a:(o-f)/2,h=d+=2,g=0,p=0,v=0;if(a<=0){t=`(...) Tj
103
- `,t+="% Width of Text: "+l0(t,e,a=12).width+", FieldWidth:"+s+`
104
- `;break}for(var y="",b=0,_=0;_<i.length;_++)if(i.hasOwnProperty(_)){var A=!1;if(i[_].length!==1&&v!==i[_].length-1){if((f+2)*(b+2)+2>o)continue e;y+=i[_][v],A=!0,p=_,_--}else{y=(y+=i[_][v]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var S=parseInt(_),O=l(S,y,a),T=_>=i.length-1;if(O&&!T){y+=" ",v=0;continue}if(O||T){if(T)p=S;else if(e.multiline&&(f+2)*(b+2)+2>o)continue e}else{if(!e.multiline||(f+2)*(b+2)+2>o)continue e;p=S}}for(var k="",L=g;L<=p;L++){var B=i[L];if(e.multiline){if(L===p){k+=B[v]+" ",v=(v+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,u=l0(k,e,a).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;case"left":default:c=2}t+=It(c)+" "+It(h)+` Td
105
- `,t+="("+Zs(k)+`) Tj
106
- `,t+=-It(c)+` 0 Td
107
- `,h=-(a+2),u=0,g=A?p:p+1,b++,y=""}break}return n.text=t,n.fontSize=a,n},l0=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),cr(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(_a.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Fk)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");W2=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new OP,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=[],c=s.Rect;if(s.Rect&&(s.Rect=Lk(s.Rect,i)),i.internal.newObjectDeferredBegin(s.objId,!0),s.DA=dt.createDefaultAppearanceStream(s),cr(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=Ik(s);l.push({key:"AP",value:"<</N "+u+">>"}),i.internal.acroformPlugin.xForms.push(u)}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}},PP=qr.__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+=" "),cr(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")},F1=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:PP(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 NP=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}})};vi(NP,Ia);var OP=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}})};vi(OP,Ia);var _a=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!!Kr(t,3)},set:function(y){y?this.F=Xr(t,3):this.F=Jr(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 D0)return;a="FieldObject"+e.FieldNum++}var y=function(b){return b};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 c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/W2:c},set:function(y){c=y}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(y){u=y}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof D0||this instanceof ts))return F1(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 dn?d:F1(d,this.objId,this.scope)},set:function(y){y=y.toString(),d=this instanceof dn?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 dn?kl(d.substr(1,d.length-1)):d},set:function(y){y=y.toString(),d=this instanceof dn?"/"+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 dn?h:F1(h,this.objId,this.scope)},set:function(y){y=y.toString(),h=this instanceof dn?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 dn?kl(h.substr(1,h.length-1)):h},set:function(y){y=y.toString(),h=this instanceof dn?"/"+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!!Kr(this.Ff,1)},set:function(y){y?this.Ff=Xr(this.Ff,1):this.Ff=Jr(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,2)},set:function(y){y?this.Ff=Xr(this.Ff,2):this.Ff=Jr(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,3)},set:function(y){y?this.Ff=Xr(this.Ff,3):this.Ff=Jr(this.Ff,3)}});var v=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(v!==null)return v},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');v=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(v){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:v=2;break;case"center":case 1:v=1;break;case"left":case 0:default:v=0}}})};vi(_a,Ia);var Ds=function(){_a.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 PP(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,c=[];l=o.exec(a);)c.push(l[s]);return c})(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!!Kr(this.Ff,18)},set:function(r){r?this.Ff=Xr(this.Ff,18):this.Ff=Jr(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=Xr(this.Ff,19):this.Ff=Jr(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,20)},set:function(r){r?(this.Ff=Xr(this.Ff,20),t.sort()):this.Ff=Jr(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,22)},set:function(r){r?this.Ff=Xr(this.Ff,22):this.Ff=Jr(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(r){r?this.Ff=Xr(this.Ff,23):this.Ff=Jr(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,27)},set:function(r){r?this.Ff=Xr(this.Ff,27):this.Ff=Jr(this.Ff,27)}}),this.hasAppearanceStream=!1};vi(Ds,_a);var Bs=function(){Ds.call(this),this.fontName="helvetica",this.combo=!1};vi(Bs,Ds);var $s=function(){Bs.call(this),this.combo=!0};vi($s,Bs);var zu=function(){$s.call(this),this.edit=!0};vi(zu,$s);var dn=function(){_a.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,15)},set:function(r){r?this.Ff=Xr(this.Ff,15):this.Ff=Jr(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,16)},set:function(r){r?this.Ff=Xr(this.Ff,16):this.Ff=Jr(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,17)},set:function(r){r?this.Ff=Xr(this.Ff,17):this.Ff=Jr(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(r){r?this.Ff=Xr(this.Ff,26):this.Ff=Jr(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){cr(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}})};vi(dn,_a);var Wu=function(){dn.call(this),this.pushButton=!0};vi(Wu,dn);var qs=function(){dn.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:[]}})};vi(qs,dn);var D0=function(){var e,t;_a.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){cr(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=dt.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};vi(D0,_a),qs.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()}},qs.prototype.createOption=function(e){var t=new D0;return t.Parent=this,t.optionName=e,this.Kids.push(t),Bk.call(this.scope,t),t};var Hu=function(){dn.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=dt.CheckBox.createAppearanceStream()};vi(Hu,dn);var ts=function(){_a.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,13)},set:function(t){t?this.Ff=Xr(this.Ff,13):this.Ff=Jr(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,21)},set:function(t){t?this.Ff=Xr(this.Ff,21):this.Ff=Jr(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,23)},set:function(t){t?this.Ff=Xr(this.Ff,23):this.Ff=Jr(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,24)},set:function(t){t?this.Ff=Xr(this.Ff,24):this.Ff=Jr(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,25)},set:function(t){t?this.Ff=Xr(this.Ff,25):this.Ff=Jr(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,26)},set:function(t){t?this.Ff=Xr(this.Ff,26):this.Ff=Jr(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}})};vi(ts,_a);var Gu=function(){ts.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Kr(this.Ff,14)},set:function(e){e?this.Ff=Xr(this.Ff,14):this.Ff=Jr(this.Ff,14)}}),this.password=!0};vi(Gu,ts);var dt={CheckBox:{createAppearanceStream:function(){return{N:{On:dt.CheckBox.YesNormal},D:{On:dt.CheckBox.YesPushDown,Off:dt.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=ux(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+It(dt.internal.getWidth(e))+" "+It(dt.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+It(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=dt.internal.getHeight(e),o=dt.internal.getWidth(e),s=ux(e,e.caption);return i.push("1 g"),i.push("0 0 "+It(o)+" "+It(a)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+It(o-1)+" "+It(a-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+r+" "+It(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 "+It(dt.internal.getWidth(e))+" "+It(dt.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
113
- `),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:dt.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=dt.RadioButton.Circle.YesNormal,t.D[e]=dt.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=ja(e);t.scope=e.scope;var r=[],n=dt.internal.getWidth(e)<=dt.internal.getHeight(e)?dt.internal.getWidth(e)/4:dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=dt.internal.Bezier_C,a=Number((n*i).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Go(dt.internal.getWidth(e)/2)+" "+Go(dt.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=dt.internal.getWidth(e)<=dt.internal.getHeight(e)?dt.internal.getWidth(e)/4:dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*dt.internal.Bezier_C).toFixed(5)),o=Number((n*dt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Go(dt.internal.getWidth(e)/2)+" "+Go(dt.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 "+Go(dt.internal.getWidth(e)/2)+" "+Go(dt.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=dt.internal.getWidth(e)<=dt.internal.getHeight(e)?dt.internal.getWidth(e)/4:dt.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var i=Number((2*n).toFixed(5)),a=Number((i*dt.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Go(dt.internal.getWidth(e)/2)+" "+Go(dt.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:dt.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=dt.RadioButton.Cross.YesNormal,t.D[e]=dt.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=ja(e);t.scope=e.scope;var r=[],n=dt.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+It(dt.internal.getWidth(e)-2)+" "+It(dt.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(It(n.x1.x)+" "+It(n.x1.y)+" m"),r.push(It(n.x2.x)+" "+It(n.x2.y)+" l"),r.push(It(n.x4.x)+" "+It(n.x4.y)+" m"),r.push(It(n.x3.x)+" "+It(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=dt.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+It(dt.internal.getWidth(e))+" "+It(dt.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+It(dt.internal.getWidth(e)-2)+" "+It(dt.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(It(r.x1.x)+" "+It(r.x1.y)+" m"),n.push(It(r.x2.x)+" "+It(r.x2.y)+" l"),n.push(It(r.x4.x)+" "+It(r.x4.y)+" m"),n.push(It(r.x3.x)+" "+It(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 "+It(dt.internal.getWidth(e))+" "+It(dt.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}};dt.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=dt.internal.getWidth(e),r=dt.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}}}},dt.internal.getWidth=function(e){var t=0;return cr(e)==="object"&&(t=ew(e.Rect[2])),t},dt.internal.getHeight=function(e){var t=0;return cr(e)==="object"&&(t=ew(e.Rect[3])),t};var Bk=qr.addField=function(e){if(Dk(this,e),!(e instanceof _a))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};qr.AcroFormChoiceField=Ds,qr.AcroFormListBox=Bs,qr.AcroFormComboBox=$s,qr.AcroFormEditBox=zu,qr.AcroFormButton=dn,qr.AcroFormPushButton=Wu,qr.AcroFormRadioButton=qs,qr.AcroFormCheckBox=Hu,qr.AcroFormTextField=ts,qr.AcroFormPasswordField=Gu,qr.AcroFormAppearance=dt,qr.AcroForm={ChoiceField:Ds,ListBox:Bs,ComboBox:$s,EditBox:zu,Button:dn,PushButton:Wu,RadioButton:qs,CheckBox:Hu,TextField:ts,PasswordField:Gu,Appearance:dt},gt.AcroForm={ChoiceField:Ds,ListBox:Bs,ComboBox:$s,EditBox:zu,Button:dn,PushButton:Wu,RadioButton:qs,CheckBox:Hu,TextField:ts,PasswordField:Gu,Appearance:dt};var $k=gt.AcroForm;function CP(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,U,J,q,W,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(W in r)for(J=r[W],M=0;M<J.length;M+=1){for(q=!0,U=0;U<J[M].length;U+=1)if(J[M][U]!==void 0&&J[M][U]!==C[U]){q=!1;break}if(q===!0){ee=W;break}}else for(W in r)for(J=r[W],M=0;M<J.length;M+=1){for(q=!0,U=0;U<J[M].length;U+=1)if(J[M][U]!==void 0&&J[M][U]!==C.charCodeAt(U)){q=!1;break}if(q===!0){ee=W;break}}return ee===t&&P!==t&&(ee=P),ee},i=function C(P){for(var M=this.internal.write,U=this.internal.putStream,J=(0,this.internal.getFilters)();J.indexOf("FlateEncode")!==-1;)J.splice(J.indexOf("FlateEncode"),1);P.objectId=this.internal.newObject();var q=[];if(q.push({key:"Type",value:"/XObject"}),q.push({key:"Subtype",value:"/Image"}),q.push({key:"Width",value:P.width}),q.push({key:"Height",value:P.height}),P.colorSpace===v.INDEXED?q.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]"}):(q.push({key:"ColorSpace",value:"/"+P.colorSpace}),P.colorSpace===v.DEVICE_CMYK&&q.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),q.push({key:"BitsPerComponent",value:P.bitsPerComponent}),"decodeParameters"in P&&P.decodeParameters!==void 0&&q.push({key:"DecodeParms",value:"<<"+P.decodeParameters+">>"}),"transparency"in P&&Array.isArray(P.transparency)){for(var W="",ee=0,Z=P.transparency.length;ee<Z;ee++)W+=P.transparency[ee]+" "+P.transparency[ee]+" ";q.push({key:"Mask",value:"["+W+"]"})}P.sMask!==void 0&&q.push({key:"SMask",value:P.objectId+1+" 0 R"});var Q=P.filter!==void 0?["/"+P.filter]:void 0;if(U({data:P.data,additionalKeyValues:q,alreadyAppliedFilters:Q,objectId:P.objectId}),M("endobj"),"sMask"in P&&P.sMask!==void 0){var ce="/Predictor "+P.predictor+" /Colors 1 /BitsPerComponent "+P.bitsPerComponent+" /Columns "+P.width,N={width:P.width,height:P.height,colorSpace:"DeviceGray",bitsPerComponent:P.bitsPerComponent,decodeParameters:ce,data:P.sMask};"filter"in P&&(N.filter=P.filter),C.call(this,N)}if(P.colorSpace===v.INDEXED){var I=this.internal.newObject();U({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 U in P)M("/I"+(C=P[U]).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},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(C){return typeof e["process"+C.toUpperCase()]=="function"},f=function(C){return cr(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 Uu(unescape(M).split("base64,").pop());var U=e.loadFile(M,!0);if(U!==void 0)return U}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 Uu(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,U,J,q){var W=g.call(this,M,U,J),ee=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString,Q=l.call(this);if(M=W[0],U=W[1],Q[J.index]=J,q){q*=Math.PI/180;var ce=Math.cos(q),N=Math.sin(q),I=function(D){return D.toFixed(4)},R=[I(ce),I(N),I(-1*N),I(ce),0,0,"cm"]}this.internal.write("q"),q?(this.internal.write([1,"0","0",1,ee(C),Z(P+U),"cm"].join(" ")),this.internal.write(R.join(" ")),this.internal.write([ee(M),"0","0",ee(U),"0","0","cm"].join(" "))):this.internal.write([ee(M),"0","0",ee(U),ee(C),Z(P+U),"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")},v=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"},b=e.__addimage__.sHashCode=function(C){var P,M,U=0;if(typeof C=="string")for(M=C.length,P=0;P<M;P++)U=(U<<5)-U+C.charCodeAt(P),U|=0;else if(O(C))for(M=C.byteLength/2,P=0;P<M;P++)U=(U<<5)-U+C[P],U|=0;return U},_=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},A=e.__addimage__.extractImageFromDataUrl=function(C){var P=(C=C||"").split("base64,"),M=null;if(P.length===2){var U=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(P[0]);Array.isArray(U)&&(M={mimeType:U[1],charset:U[2],data:P[1]})}return M},S=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(C){return S()&&C instanceof ArrayBuffer};var O=e.__addimage__.isArrayBufferView=function(C){return S()&&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)},T=e.__addimage__.binaryStringToUint8Array=function(C){for(var P=C.length,M=new Uint8Array(P),U=0;U<P;U++)M[U]=C.charCodeAt(U);return M},k=e.__addimage__.arrayBufferToBinaryString=function(C){for(var P="",M=O(C)?C:new Uint8Array(C),U=0;U<M.length;U+=8192)P+=String.fromCharCode.apply(null,M.subarray(U,U+8192));return P};e.addImage=function(){var C,P,M,U,J,q,W,ee,Z;if(typeof arguments[1]=="number"?(P=t,M=arguments[1],U=arguments[2],J=arguments[3],q=arguments[4],W=arguments[5],ee=arguments[6],Z=arguments[7]):(P=arguments[1],M=arguments[2],U=arguments[3],J=arguments[4],q=arguments[5],W=arguments[6],ee=arguments[7],Z=arguments[8]),cr(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,U=Q.y||U||0,J=Q.w||Q.width||J,q=Q.h||Q.height||q,W=Q.alias||W,ee=Q.compression||ee,Z=Q.rotation||Q.angle||Z}var ce=this.internal.getFilters();if(ee===void 0&&ce.indexOf("FlateEncode")!==-1&&(ee="SLOW"),isNaN(M)||isNaN(U))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var N=L.call(this,C,P,W,ee);return p.call(this,M,U,J,q,N,Z),this};var L=function(C,P,M,U){var J,q,W;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),!u(P))throw new Error("addImage does not support files of type '"+P+"', please ensure that a plugin for '"+P+"' support is added.");if(((W=M)==null||W.length===0)&&(M=(function(Z){return typeof Z=="string"||O(Z)?b(Z):O(Z.data)?b(Z.data):null})(C)),(J=h.call(this,M))||(S()&&(C instanceof Uint8Array||P==="RGBA"||(q=C,C=T(C))),J=this["process"+P.toUpperCase()](C,c.call(this),M,(function(Z){return Z&&typeof Z=="string"&&(Z=Z.toUpperCase()),Z in e.image_compression?Z:y.NONE})(U),q)),!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 U,J="";if(typeof C=="string"){U=(M=A(C))!==null?M.data:C;try{J=Uu(U)}catch(q){if(P)throw _(U)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+q.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return J};e.getImageProperties=function(C){var P,M,U="";if(f(C)&&(C=d(C)),typeof C=="string"&&n(C)===t&&((U=B(C,!1))===""&&(U=e.loadFile(C)||""),C=U),M=n(C),!u(M))throw new Error("addImage does not support files of type '"+M+"', please ensure that a plugin for '"+M+"' support is added.");if(!S()||C instanceof Uint8Array||(C=T(C)),!(P=this["process"+M.toUpperCase()](C)))throw new Error("An unknown error occurred whilst processing the image");return P.fileType=M,P}})(gt.API),(function(e){var t=function(r){if(r!==void 0&&r!="")return!0};gt.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),c=r.pageContext.annotations,u=!1,f=0;f<c.length&&!u;f++)switch((n=c[f]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var d=0;d<c.length;d++){n=c[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(),v=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(p.objId),b=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 "+v.objId+" 0 R",a+=" /P "+l.objId+" 0 R",a+=" /T ("+h(y(b))+") >>",p.content=a;var _=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 "+_,n.open&&(a+=" /Open true"),a+=" >>",v.content=a,this.internal.write(p.objId,"0 R",v.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 A=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:#"+A+")",a+=" /Border [0 0 0]",a+=" >>",this.internal.write(a);break;case"link":if(n.options.name){var S=this.annotations._nameMap[n.options.name];n.options.pageNumber=S.page,n.options.top=S.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,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:c(n),w:l(r+i),h:c(n+a)},options:o,type:"link"})},e.textWithLink=function(r,n,i,a){var o,s,l=this.getTextWidth(r),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(a.maxWidth!==void 0){s=a.maxWidth;var u=this.splitTextToSize(r,s).length;o=Math.ceil(c*u)}else s=l,o=c;return this.text(r,n,i,a),i+=.2*c,a.align==="center"&&(n-=l/2),a.align==="right"&&(n-=l),this.link(n,i-c,s,o,a),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}})(gt.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 c=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 u=e.__arabicParser__.arabicLetterHasMedialForm=function(p){return o(p)&&a(p)&&t[p.charCodeAt(0)].length==4},f=e.__arabicParser__.resolveLigatures=function(p){var v=0,y=r,b="",_=0;for(v=0;v<p.length;v+=1)y[p.charCodeAt(v)]!==void 0?(_++,typeof(y=y[p.charCodeAt(v)])=="number"&&(b+=String.fromCharCode(y),y=r,_=0),v===p.length-1&&(y=r,b+=p.charAt(v-(_-1)),v-=_-1,_=0)):(y=r,b+=p.charAt(v-_),v-=_,_=0);return b};e.__arabicParser__.isArabicDiacritic=function(p){return p!==void 0&&n[p.charCodeAt(0)]!==void 0};var d=e.__arabicParser__.getCorrectForm=function(p,v,y){return o(p)?a(p)===!1?-1:!c(p)||!o(v)&&!o(y)||!o(y)&&s(v)||s(p)&&!o(v)||s(p)&&l(v)||s(p)&&s(v)?0:u(p)&&o(v)&&!s(v)&&o(y)&&c(y)?3:s(p)||!o(y)?1:2:-1},h=function(p){var v=0,y=0,b=0,_="",A="",S="",O=(p=p||"").split("\\s+"),T=[];for(v=0;v<O.length;v+=1){for(T.push(""),y=0;y<O[v].length;y+=1)_=O[v][y],A=O[v][y-1],S=O[v][y+1],o(_)?(b=d(_,A,S),T[v]+=b!==-1?String.fromCharCode(t[_.charCodeAt(0)][b]):_):T[v]+=_;T[v]=f(T[v])}return T.join(" ")},g=e.__arabicParser__.processArabic=e.processArabic=function(){var p,v=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(v)){var b=0;for(y=[],b=0;b<v.length;b+=1)Array.isArray(v[b])?y.push([h(v[b][0]),v[b][1],v[b][2]]):y.push([h(v[b])]);p=y}else p=h(v);return typeof arguments[0]=="string"?p:(arguments[0].text=p,arguments[0])};e.events.push(["preProcessText",g])})(gt.API),gt.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}])})(gt.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 c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(p){c=p}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(p){u=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,c){n.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),f=c.font||this.getFont(),d=c.scaleFactor||this.internal.scaleFactor,h=0,g=0,p=0,v=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=c.maxWidth;y>0?typeof l=="string"?l=this.splitTextToSize(l,y):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce((function(_,A){return _.concat(v.splitTextToSize(A,y))}),[])):l=Array.isArray(l)?l:[l];for(var b=0;b<l.length;b++)h<(p=this.getStringUnitWidth(l[b],{font:f})*u)&&(h=p);return h!==0&&(g=l.length),{w:h/=d,h:Math.max((g*u*this.getLineHeightFactor()-u*(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 c=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,f=this.internal.__cell__.margins||t,d=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.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=c.y+c.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-u,l.y+u,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+u,{align:"center",baseline:"top",maxWidth:l.width-u-u}):this.text(l.text,l.x+u,l.y+u,{align:"left",baseline:"top",maxWidth:l.width-u-u})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,u,f,d){if(n.call(this),!u)throw new Error("No data for PDF table.");var h,g,p,v,y=[],b=[],_=[],A={},S={},O=[],T=[],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",U=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=U,this.setFontSize(B),f==null)b=y=Object.keys(u[0]),_=y.map((function(){return"left"}));else if(Array.isArray(f)&&cr(f[0])==="object")for(y=f.map((function(Q){return Q.name})),b=f.map((function(Q){return Q.prompt||Q.name||""})),_=f.map((function(Q){return Q.align||"left"})),h=0;h<f.length;h+=1)S[f[h].name]=f[h].width*(19.049976/25.4);else Array.isArray(f)&&typeof f[0]=="string"&&(b=y=f,_=y.map((function(){return"left"})));if(k||Array.isArray(f)&&typeof f[0]=="string")for(h=0;h<y.length;h+=1){for(A[v=y[h]]=u.map((function(Q){return Q[v]})),this.setFont(void 0,"bold"),O.push(this.getTextDimensions(b[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),g=A[v],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);S[v]=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=b[h],J[y[h]].align=_[h];var q=s.call(this,J,S);T=y.map((function(Q){return new a(l,c,S[Q],q,J[Q].text,void 0,J[Q].align)})),this.setTableHeaderRow(T),this.printHeaderRow(1,!1)}var W=f.reduce((function(Q,ce){return Q[ce.name]=ce.align,Q}),{});for(h=0;h<u.length;h+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:h,data:u[h]},this);var ee=s.call(this,u[h],S);for(p=0;p<y.length;p+=1){var Z=u[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,c,S[y[p]],ee,Z,h+2,W[y[p]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var u=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,c[h]-u-u)}),this).map((function(h){return this.getLineHeightFactor()*h.length*f/d+u+u}),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,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;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){u=this.internal.__cell__.tableHeaderRow[h].clone(),c&&(u.y=this.internal.__cell__.margins.top||0,d.push(u)),u.lineNumber=l;var g=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,u),this.setTextColor(g)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),r=!1}})(gt.API);var jP={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},kP=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],fx=CP(kP),LP=[100,200,300,400,500,600,700,800,900],qk=CP(LP);function hx(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=(function(a){return jP[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 fx[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=hx(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,c){if(c[l])return c[l];var u=fx[l],f=u<=fx.normal?-1:1,d=tw(c,kP,u,f);if(!d)throw new Error("Could not find a matching font-stretch value for "+l);return d})(a.stretch,o),o=(function(l,c){if(c[l])return c[l];for(var u=jP[l],f=0;f<u.length;++f)if(c[u[f]])return c[u[f]];throw new Error("Could not find a matching font-style for "+l)})(a.style,o),!(o=(function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var u=qk[l],f=tw(c,LP,u,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 c0,aw,ow,R1=["times"];(function(e){var t,r,n,i,a,o,s,l,c,u=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,c=new u}]);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(Ee){R=!!Ee}});var D=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return D},set:function(Ee){D=!!Ee}});var G=0;Object.defineProperty(this,"posX",{get:function(){return G},set:function(Ee){isNaN(Ee)||(G=Ee)}});var fe=0;Object.defineProperty(this,"posY",{get:function(){return fe},set:function(Ee){isNaN(Ee)||(fe=Ee)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(Ee){var le;typeof Ee=="number"?le=[Ee,Ee,Ee,Ee]:((le=new Array(4))[0]=Ee[0],le[1]=Ee.length>=2?Ee[1]:le[0],le[2]=Ee.length>=3?Ee[2]:le[0],le[3]=Ee.length>=4?Ee[3]:le[1]),c.margin=le}});var ae=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ae},set:function(Ee){ae=Ee}});var ne=0;Object.defineProperty(this,"lastBreak",{get:function(){return ne},set:function(Ee){ne=Ee}});var ve=[];Object.defineProperty(this,"pageBreaks",{get:function(){return ve},set:function(Ee){ve=Ee}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(Ee){Ee instanceof u&&(c=Ee)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(Ee){c.path=Ee}});var _e=[];Object.defineProperty(this,"ctxStack",{get:function(){return _e},set:function(Ee){_e=Ee}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(Ee){var le;le=d(Ee),this.ctx.fillStyle=le.style,this.ctx.isFillTransparent=le.a===0,this.ctx.fillOpacity=le.a,this.pdf.setFillColor(le.r,le.g,le.b,{a:le.a}),this.pdf.setTextColor(le.r,le.g,le.b,{a:le.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(Ee){var le=d(Ee);this.ctx.strokeStyle=le.style,this.ctx.isStrokeTransparent=le.a===0,this.ctx.strokeOpacity=le.a,le.a===0?this.pdf.setDrawColor(255,255,255):(le.a,this.pdf.setDrawColor(le.r,le.g,le.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(Ee){["butt","round","square"].indexOf(Ee)!==-1&&(this.ctx.lineCap=Ee,this.pdf.setLineCap(Ee))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(Ee){isNaN(Ee)||(this.ctx.lineWidth=Ee,this.pdf.setLineWidth(Ee))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(Ee){["bevel","round","miter"].indexOf(Ee)!==-1&&(this.ctx.lineJoin=Ee,this.pdf.setLineJoin(Ee))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(Ee){isNaN(Ee)||(this.ctx.miterLimit=Ee,this.pdf.setMiterLimit(Ee))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(Ee){this.ctx.textBaseline=Ee}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(Ee){["right","end","center","left","start"].indexOf(Ee)!==-1&&(this.ctx.textAlign=Ee)}});var se=null;function Fe(Ee,le){if(se===null){var De=(function(tt){var Ue=[];return Object.keys(tt).forEach((function(Ke){tt[Ke].forEach((function(Ze){var Je=null;switch(Ze){case"bold":Je={family:Ke,weight:"bold"};break;case"italic":Je={family:Ke,style:"italic"};break;case"bolditalic":Je={family:Ke,weight:"bold",style:"italic"};break;case"":case"normal":Je={family:Ke}}Je!==null&&(Je.ref={name:Ke,style:Ze},Ue.push(Je))}))})),Ue})(Ee.getFontList());se=(function(tt){for(var Ue={},Ke=0;Ke<tt.length;++Ke){var Ze=hx(tt[Ke]),Je=Ze.family,ft=Ze.stretch,pt=Ze.style,xt=Ze.weight;Ue[Je]=Ue[Je]||{},Ue[Je][ft]=Ue[Je][ft]||{},Ue[Je][ft][pt]=Ue[Je][ft][pt]||{},Ue[Je][ft][pt][xt]=Ze}return Ue})(De.concat(le))}return se}var Ae=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ae},set:function(Ee){se=null,Ae=Ee}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(Ee){var le;if(this.ctx.font=Ee,(le=/^\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(Ee))!==null){var De=le[1],tt=(le[2],le[3]),Ue=le[4],Ke=(le[5],le[6]),Ze=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ue)[2];Ue=Math.floor(Ze==="px"?parseFloat(Ue)*this.pdf.internal.scaleFactor:Ze==="em"?parseFloat(Ue)*this.pdf.getFontSize():parseFloat(Ue)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ue);var Je=(function(bt){var Rt,at,Mr=[],Wt=bt.trim();if(Wt==="")return R1;if(Wt in rw)return[rw[Wt]];for(;Wt!=="";){switch(at=null,Rt=(Wt=iw(Wt)).charAt(0)){case'"':case"'":at=Wk(Wt.substring(1),Rt);break;default:at=Hk(Wt)}if(at===null||(Mr.push(at[0]),(Wt=iw(at[1]))!==""&&Wt.charAt(0)!==","))return R1;Wt=Wt.replace(/^,/,"")}return Mr})(Ke);if(this.fontFaces){var ft=zk(Fe(this.pdf,this.fontFaces),Je.map((function(bt){return{family:bt,stretch:"normal",weight:tt,style:De}})));this.pdf.setFont(ft.ref.name,ft.ref.style)}else{var pt="";(tt==="bold"||parseInt(tt,10)>=700||De==="bold")&&(pt="bold"),De==="italic"&&(pt+="italic"),pt.length===0&&(pt="normal");for(var xt="",Nt={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<Je.length;Ft++){if(this.pdf.internal.getFont(Je[Ft],pt,{noFallback:!0,disableWarning:!0})!==void 0){xt=Je[Ft];break}if(pt==="bolditalic"&&this.pdf.internal.getFont(Je[Ft],"bold",{noFallback:!0,disableWarning:!0})!==void 0)xt=Je[Ft],pt="bold";else if(this.pdf.internal.getFont(Je[Ft],"normal",{noFallback:!0,disableWarning:!0})!==void 0){xt=Je[Ft],pt="normal";break}}if(xt===""){for(var zt=0;zt<Je.length;zt++)if(Nt[Je[zt]]){xt=Nt[Je[zt]];break}}xt=xt===""?"Times":xt,this.pdf.setFont(xt,pt)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(Ee){this.ctx.globalCompositeOperation=Ee}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(Ee){this.ctx.globalAlpha=Ee}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(Ee){this.ctx.lineDashOffset=Ee,ce.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(Ee){this.ctx.lineDash=Ee,ce.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(Ee){this.ctx.ignoreClearRect=!!Ee}})};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(){A.call(this,"fill",!1)},f.prototype.stroke=function(){A.call(this,"stroke",!1)},f.prototype.beginPath=function(){this.path=[{type:"begin"}]},f.prototype.moveTo=function(N,I){if(isNaN(N)||isNaN(I))throw Tr.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"&&cr(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 Tr.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)),A.call(this,null,!0)},f.prototype.quadraticCurveTo=function(N,I,R,D){if(isNaN(R)||isNaN(D)||isNaN(N)||isNaN(I))throw Tr.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)),fe=this.ctx.transform.applyToPoint(new o(N,I));this.path.push({type:"qct",x1:fe.x,y1:fe.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,fe){if(isNaN(G)||isNaN(fe)||isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D))throw Tr.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ae=this.ctx.transform.applyToPoint(new o(G,fe)),ne=this.ctx.transform.applyToPoint(new o(N,I)),ve=this.ctx.transform.applyToPoint(new o(R,D));this.path.push({type:"bct",x1:ne.x,y1:ne.y,x2:ve.x,y2:ve.y,x:ae.x,y:ae.y}),this.ctx.lastPoint=new o(ae.x,ae.y)},f.prototype.arc=function(N,I,R,D,G,fe){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D)||isNaN(G))throw Tr.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(fe=!!fe,!this.ctx.transform.isIdentity){var ae=this.ctx.transform.applyToPoint(new o(N,I));N=ae.x,I=ae.y;var ne=this.ctx.transform.applyToPoint(new o(0,R)),ve=this.ctx.transform.applyToPoint(new o(0,0));R=Math.sqrt(Math.pow(ne.x-ve.x,2)+Math.pow(ne.y-ve.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:fe})},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 Tr.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 Tr.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 Tr.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 Tr.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 u(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 fe=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(N);if(fe!==null)I=parseInt(fe[1]),R=parseInt(fe[2]),D=parseInt(fe[3]),G=1;else if((fe=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(N))!==null)I=parseInt(fe[1]),R=parseInt(fe[2]),D=parseInt(fe[3]),G=parseFloat(fe[4]);else{if(G=1,typeof N=="string"&&N.charAt(0)!=="#"){var ae=new AP(N);N=ae.ok?ae.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 Tr.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),fe=this.ctx.transform.scaleX;P.call(this,{text:N,x:I,y:R,scale:fe,angle:G,align:this.textAlign,maxWidth:D})}},f.prototype.strokeText=function(N,I,R,D){if(isNaN(I)||isNaN(R)||typeof N!="string")throw Tr.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),fe=this.ctx.transform.scaleX;P.call(this,{text:N,x:I,y:R,scale:fe,renderingMode:"stroke",angle:G,align:this.textAlign,maxWidth:D})}},f.prototype.measureText=function(N){if(typeof N!="string")throw Tr.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,fe=function(ae){var ne=(ae=ae||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ne}}),this};return new fe({width:G*=Math.round(96*R/72*1e4)/1e4})},f.prototype.scale=function(N,I){if(isNaN(N)||isNaN(I))throw Tr.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 Tr.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 Tr.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,fe){if(isNaN(N)||isNaN(I)||isNaN(R)||isNaN(D)||isNaN(G)||isNaN(fe))throw Tr.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ae=new l(N,I,R,D,G,fe);this.ctx.transform=this.ctx.transform.multiply(ae)},f.prototype.setTransform=function(N,I,R,D,G,fe){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,fe=isNaN(fe)?0:fe,this.ctx.transform=new l(N,I,R,D,G,fe)};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,fe,ae,ne,ve){var _e=this.pdf.getImageProperties(N),se=1,Fe=1,Ae=1,Ee=1;D!==void 0&&ne!==void 0&&(Ae=ne/D,Ee=ve/G,se=_e.width/D*ne/D,Fe=_e.height/G*ve/G),fe===void 0&&(fe=I,ae=R,I=0,R=0),D!==void 0&&ne===void 0&&(ne=D,ve=G),D===void 0&&ne===void 0&&(ne=_e.width,ve=_e.height);for(var le,De=this.ctx.transform.decompose(),tt=ee(De.rotate.shx),Ue=new l,Ke=(Ue=(Ue=(Ue=Ue.multiply(De.translate)).multiply(De.skew)).multiply(De.scale)).applyToRectangle(new s(fe-I*Ae,ae-R*Ee,D*se,G*Fe)),Ze=v.call(this,Ke),Je=[],ft=0;ft<Ze.length;ft+=1)Je.indexOf(Ze[ft])===-1&&Je.push(Ze[ft]);if(_(Je),this.autoPaging)for(var pt=Je[0],xt=Je[Je.length-1],Nt=pt;Nt<xt+1;Nt++){this.pdf.setPage(Nt);var Ft=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],zt=Nt===1?this.posY+this.margin[0]:this.margin[0],bt=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=Nt===1?0:bt+(Nt-2)*Rt;if(this.ctx.clip_path.length!==0){var Mr=this.path;le=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(le,this.posX+this.margin[3],-at+zt+this.ctx.prevPageLastElemOffset),S.call(this,"fill",!0),this.path=Mr}var Wt=JSON.parse(JSON.stringify(Ke));Wt=b([Wt],this.posX+this.margin[3],-at+zt+this.ctx.prevPageLastElemOffset)[0];var An=(Nt>pt||Nt<xt)&&p.call(this);An&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ft,Rt,null).clip().discardPath()),this.pdf.addImage(N,"JPEG",Wt.x,Wt.y,Wt.w,Wt.h,null,null,tt),An&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(N,"JPEG",Ke.x,Ke.y,Ke.w,Ke.h,null,null,tt)};var v=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 fe=Z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,N.x1,N.y1,N.x,N.y);D.push(Math.floor((fe.y+G)/R)+1),D.push(Math.floor((fe.y+fe.h+G)/R)+1);break;case"bct":var ae=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((ae.y+G)/R)+1),D.push(Math.floor((ae.y+ae.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,fe=this.lineJoin;this.pdf.addPage(),this.fillStyle=N,this.strokeStyle=I,this.font=R,this.lineCap=D,this.lineWidth=G,this.lineJoin=fe},b=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},_=function(N){return N.sort((function(I,R){return I-R}))},A=function(N,I){for(var R,D,G=this.fillStyle,fe=this.strokeStyle,ae=this.lineCap,ne=this.lineWidth,ve=Math.abs(ne*this.ctx.transform.scaleX),_e=this.lineJoin,se=JSON.parse(JSON.stringify(this.path)),Fe=JSON.parse(JSON.stringify(this.path)),Ae=[],Ee=0;Ee<Fe.length;Ee++)if(Fe[Ee].x!==void 0)for(var le=v.call(this,Fe[Ee]),De=0;De<le.length;De+=1)Ae.indexOf(le[De])===-1&&Ae.push(le[De]);for(var tt=0;tt<Ae.length;tt++)for(;this.pdf.internal.getNumberOfPages()<Ae[tt];)y.call(this);if(_(Ae),this.autoPaging)for(var Ue=Ae[0],Ke=Ae[Ae.length-1],Ze=Ue;Ze<Ke+1;Ze++){this.pdf.setPage(Ze),this.fillStyle=G,this.strokeStyle=fe,this.lineCap=ae,this.lineWidth=ve,this.lineJoin=_e;var Je=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ft=Ze===1?this.posY+this.margin[0]:this.margin[0],pt=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],Nt=Ze===1?0:pt+(Ze-2)*xt;if(this.ctx.clip_path.length!==0){var Ft=this.path;R=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(R,this.posX+this.margin[3],-Nt+ft+this.ctx.prevPageLastElemOffset),S.call(this,N,!0),this.path=Ft}if(D=JSON.parse(JSON.stringify(se)),this.path=b(D,this.posX+this.margin[3],-Nt+ft+this.ctx.prevPageLastElemOffset),I===!1||Ze===0){var zt=(Ze>Ue||Ze<Ke)&&p.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Je,xt,null).clip().discardPath()),S.call(this,N,I),zt&&this.pdf.restoreGraphicsState()}this.lineWidth=ne}else this.lineWidth=ve,S.call(this,N,I),this.lineWidth=ne;this.path=se},S=function(N,I){if((N!=="stroke"||I||!g.call(this))&&(N==="stroke"||I||!h.call(this))){for(var R,D,G=[],fe=this.path,ae=0;ae<fe.length;ae++){var ne=fe[ae];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 ve=G.length;if(fe[ae-1]&&!isNaN(fe[ae-1].x)&&(R=[ne.x-fe[ae-1].x,ne.y-fe[ae-1].y],ve>0)){for(;ve>=0;ve--)if(G[ve-1].close!==!0&&G[ve-1].begin!==!0){G[ve-1].deltas.push(R),G[ve-1].abs.push(ne);break}}break;case"bct":R=[ne.x1-fe[ae-1].x,ne.y1-fe[ae-1].y,ne.x2-fe[ae-1].x,ne.y2-fe[ae-1].y,ne.x-fe[ae-1].x,ne.y-fe[ae-1].y],G[G.length-1].deltas.push(R);break;case"qct":var _e=fe[ae-1].x+2/3*(ne.x1-fe[ae-1].x),se=fe[ae-1].y+2/3*(ne.y1-fe[ae-1].y),Fe=ne.x+2/3*(ne.x1-ne.x),Ae=ne.y+2/3*(ne.y1-ne.y),Ee=ne.x,le=ne.y;R=[_e-fe[ae-1].x,se-fe[ae-1].y,Fe-fe[ae-1].x,Ae-fe[ae-1].y,Ee-fe[ae-1].x,le-fe[ae-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 De=!1,tt=0;tt<G.length;tt++)if(G[tt].arc)for(var Ue=G[tt].abs,Ke=0;Ke<Ue.length;Ke++){var Ze=Ue[Ke];Ze.type==="arc"?k.call(this,Ze.x,Ze.y,Ze.radius,Ze.startAngle,Ze.endAngle,Ze.counterclockwise,void 0,I,!De):M.call(this,Ze.x,Ze.y),De=!0}else if(G[tt].close===!0)this.pdf.internal.out("h"),De=!1;else if(G[tt].begin!==!0){var Je=G[tt].start.x,ft=G[tt].start.y;U.call(this,G[tt].deltas,Je,ft),De=!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}},T=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,fe,ae,ne,ve){for(var _e=q.call(this,R,D,G,fe),se=0;se<_e.length;se++){var Fe=_e[se];se===0&&(ve?C.call(this,Fe.x1+N,Fe.y1+I):M.call(this,Fe.x1+N,Fe.y1+I)),J.call(this,N,I,Fe.x2,Fe.y2,Fe.x3,Fe.y3,Fe.x4,Fe.y4)}ne?B.call(this):L.call(this,ae)},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=T.call(this,D)-R.h,fe=this.ctx.transform.applyToPoint(new o(N.x,D)),ae=this.ctx.transform.decompose(),ne=new l;ne=(ne=(ne=ne.multiply(ae.translate)).multiply(ae.skew)).multiply(ae.scale);for(var ve,_e,se,Fe=this.ctx.transform.applyToRectangle(new s(N.x,D,R.w,R.h)),Ae=ne.applyToRectangle(new s(N.x,G,R.w,R.h)),Ee=v.call(this,Ae),le=[],De=0;De<Ee.length;De+=1)le.indexOf(Ee[De])===-1&&le.push(Ee[De]);if(_(le),this.autoPaging)for(var tt=le[0],Ue=le[le.length-1],Ke=tt;Ke<Ue+1;Ke++){this.pdf.setPage(Ke);var Ze=Ke===1?this.posY+this.margin[0]:this.margin[0],Je=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ft=this.pdf.internal.pageSize.height-this.margin[2],pt=ft-this.margin[0],xt=this.pdf.internal.pageSize.width-this.margin[1],Nt=xt-this.margin[3],Ft=Ke===1?0:Je+(Ke-2)*pt;if(this.ctx.clip_path.length!==0){var zt=this.path;ve=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(ve,this.posX+this.margin[3],-1*Ft+Ze),S.call(this,"fill",!0),this.path=zt}var bt=b([JSON.parse(JSON.stringify(Ae))],this.posX+this.margin[3],-Ft+Ze+this.ctx.prevPageLastElemOffset)[0];N.scale>=.01&&(_e=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_e*N.scale),se=this.lineWidth,this.lineWidth=se*N.scale);var Rt=this.autoPaging!=="text";if(Rt||bt.y+bt.h<=ft){if(Rt||bt.y>=Ze&&bt.x<=xt){var at=Rt?N.text:this.pdf.splitTextToSize(N.text,N.maxWidth||xt-bt.x)[0],Mr=b([JSON.parse(JSON.stringify(Fe))],this.posX+this.margin[3],-Ft+Ze+this.ctx.prevPageLastElemOffset)[0],Wt=Rt&&(Ke>tt||Ke<Ue)&&p.call(this);Wt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Nt,pt,null).clip().discardPath()),this.pdf.text(at,Mr.x,Mr.y,{angle:N.angle,align:I,renderingMode:N.renderingMode}),Wt&&this.pdf.restoreGraphicsState()}}else bt.y<ft&&(this.ctx.prevPageLastElemOffset+=ft-bt.y);N.scale>=.01&&(this.pdf.setFontSize(_e),this.lineWidth=se)}else N.scale>=.01&&(_e=this.pdf.internal.getFontSize(),this.pdf.setFontSize(_e*N.scale),se=this.lineWidth,this.lineWidth=se*N.scale),this.pdf.text(N.text,fe.x+this.posX,fe.y+this.posY,{angle:N.angle,align:I,renderingMode:N.renderingMode,maxWidth:N.maxWidth}),N.scale>=.01&&(this.pdf.setFontSize(_e),this.lineWidth=se)},M=function(N,I,R,D){R=R||0,D=D||0,this.pdf.internal.out(r(N+R)+" "+n(I+D)+" l")},U=function(N,I,R){return this.pdf.lines(N,I,R,null,null)},J=function(N,I,R,D,G,fe,ae,ne){this.pdf.internal.out([t(i(R+N)),t(a(D+I)),t(i(G+N)),t(a(fe+I)),t(i(ae+N)),t(a(ne+I)),"c"].join(" "))},q=function(N,I,R,D){for(var G=2*Math.PI,fe=Math.PI/2;I>R;)I-=G;var ae=Math.abs(R-I);ae<G&&D&&(ae=G-ae);for(var ne=[],ve=D?-1:1,_e=I;ae>1e-5;){var se=_e+ve*Math.min(ae,fe);ne.push(W.call(this,N,_e,se)),ae-=Math.abs(se-_e),_e=se}return ne},W=function(N,I,R){var D=(R-I)/2,G=N*Math.cos(D),fe=N*Math.sin(D),ae=G,ne=-fe,ve=ae*ae+ne*ne,_e=ve+ae*G+ne*fe,se=4/3*(Math.sqrt(2*ve*_e)-_e)/(ae*fe-ne*G),Fe=ae-se*ne,Ae=ne+se*ae,Ee=Fe,le=-Ae,De=D+I,tt=Math.cos(De),Ue=Math.sin(De);return{x1:N*Math.cos(I),y1:N*Math.sin(I),x2:Fe*tt-Ae*Ue,y2:Fe*Ue+Ae*tt,x3:Ee*tt-le*Ue,y3:Ee*Ue+le*tt,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,fe){var ae=N+.5*(R-N),ne=I+.5*(D-I),ve=G+.5*(R-G),_e=fe+.5*(D-fe),se=Math.min(N,G,ae,ve),Fe=Math.max(N,G,ae,ve),Ae=Math.min(I,fe,ne,_e),Ee=Math.max(I,fe,ne,_e);return new s(se,Ae,Fe-se,Ee-Ae)},Q=function(N,I,R,D,G,fe,ae,ne){var ve,_e,se,Fe,Ae,Ee,le,De,tt,Ue,Ke,Ze,Je,ft,pt=R-N,xt=D-I,Nt=G-R,Ft=fe-D,zt=ae-G,bt=ne-fe;for(_e=0;_e<41;_e++)tt=(le=(se=N+(ve=_e/40)*pt)+ve*((Ae=R+ve*Nt)-se))+ve*(Ae+ve*(G+ve*zt-Ae)-le),Ue=(De=(Fe=I+ve*xt)+ve*((Ee=D+ve*Ft)-Fe))+ve*(Ee+ve*(fe+ve*bt-Ee)-De),_e==0?(Ke=tt,Ze=Ue,Je=tt,ft=Ue):(Ke=Math.min(Ke,tt),Ze=Math.min(Ze,Ue),Je=Math.max(Je,tt),ft=Math.max(ft,Ue));return new s(Math.round(Ke),Math.round(Ze),Math.round(Je-Ke),Math.round(ft-Ze))},ce=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)}}})(gt.API),(function(e){var t=function(a){var o,s,l,c,u,f,d,h,g,p;for(s=[],l=0,c=(a+=o="\0\0\0\0".slice(a.length%4||4)).length;c>l;l+=4)(u=(a.charCodeAt(l)<<24)+(a.charCodeAt(l+1)<<16)+(a.charCodeAt(l+2)<<8)+a.charCodeAt(l+3))!==0?(f=(u=((u=((u=((u=(u-(p=u%85))/85)-(g=u%85))/85)-(h=u%85))/85)-(d=u%85))/85)%85,s.push(f+33,d+33,h+33,g+33,p+33)):s.push(122);return(function(v,y){for(var b=y;b>0;b--)v.pop()})(s,o.length),String.fromCharCode.apply(String,s)+"~>"},r=function(a){var o,s,l,c,u,f=String,d="length",h=255,g="charCodeAt",p="slice",v="replace";for(a[p](-2),a=a[p](0,-2)[v](/\s/g,"")[v]("z","!!!!!"),l=[],c=0,u=(a+=o="uuuuu"[p](a[d]%5||5))[d];u>c;c+=5)s=52200625*(a[g](c)-33)+614125*(a[g](c+1)-33)+7225*(a[g](c+2)-33)+85*(a[g](c+3)-33)+(a[g](c+4)-33),l.push(h&s>>24,h&s>>16,h&s>>8,h&s);return(function(y,b){for(var _=b;_>0;_--)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=ox(o)).reduce((function(l,c){return l+String.fromCharCode(c)}),"")};e.processDataByFilters=function(a,o){var s=0,l=a||"",c=[];for(typeof(o=o||[])=="string"&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=i(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}})(gt.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,c,u){var f=new XMLHttpRequest,d=0,h=function(g){var p=g.length,v=[],y=String.fromCharCode;for(d=0;d<p;d+=1)v.push(y(255&g.charCodeAt(d)));return v.join("")};if(f.open("GET",l,!c),f.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(f.onload=function(){f.status===200?u(h(this.responseText)):u(void 0)}),f.send(null),c&&f.status===200)return h(f.responseText)})(i,a,o)}catch{}return s})(t,r,n)},e.loadImageFile=e.loadFile})(gt.API),(function(e){function t(){return(Pt.html2canvas?Promise.resolve(Pt.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(Pt.DOMPurify?Promise.resolve(Pt.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=cr(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 c in s.className&&(l.className=s.className),s.innerHTML&&s.dompurify&&(l.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)l.style[c]=s.style[c];return l},a=function o(s){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return c=(c=c.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(c,u){for(var f=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),d=c.firstChild;d;d=d.nextSibling)u!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||f.appendChild(l(d,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(f.width=c.width,f.height=c.height,f.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(f.value=c.value),f.addEventListener("load",(function(){f.scrollTop=c.scrollTop,f.scrollLeft=c.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,c=this.opt.fontFaces,u=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:u,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=c,c)for(var d=0;d<c.length;++d){var h=c[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,c){return Math.floor(l*c/72*96)}return this.then((function(){(o=o||gt.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,c){return o!=null&&(this.progress.val=o),s!=null&&(this.progress.state=s),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},a.prototype.updateProgress=function(o,s,l,c){return this.setProgress(o?this.progress.val+o:null,s||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},a.prototype.then=function(o,s){var l=this;return this.thenCore(o,s,(function(c,u){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,(function(f){return l.updateProgress(null,c),f})).then(c,u).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 c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:a.convert(Object.assign({},this),Promise.prototype),u=l.call(c,o,s);return a.convert(u,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,gt.getPageSize=function(o,s,l){if(cr(o)==="object"){var c=o;o=c.orientation,s=c.unit||s,l=c.format||l}s=s||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var u,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":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+s}var h,g=0,p=0;if(d.hasOwnProperty(f))g=d[f][1]/u,p=d[f][0]/u;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:u,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(hx):null;var l=new a(s);return s.worker?l:l.from(o).doCallback()}})(gt.API),gt.API.addJS=function(e){return ow=e,this.internal.events.subscribe("postPutResources",(function(){c0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(c0+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(){c0!==void 0&&aw!==void 0&&this.internal.out("/Names <</JavaScript "+c0+" 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 c=this.internal.pages.length,u=[];for(a=0;a<c;a++){var f=r.internal.newObject();u.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<u.length;a++)r.internal.write("(page_"+(a+1)+")"+u[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 c=0;c<n.children.length;c++)this.renderItems(n.children[c])},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}}])})(gt.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,i,a,o,s){var l,c=this.decode.DCT_DECODE,u=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},v=4;v<g;v+=2){if(v+=h,t.indexOf(f.charCodeAt(v+1))!==-1){d=256*f.charCodeAt(v+5)+f.charCodeAt(v+6),p={width:256*f.charCodeAt(v+7)+f.charCodeAt(v+8),height:d,numcomponents:f.charCodeAt(v+9)};break}h=256*f.charCodeAt(v+2)+f.charCodeAt(v+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}u={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:n,alias:i}}return u}})(gt.API);var Ll,u0,sw,lw,cw,Gk=(function(){var e,t,r;function n(a){var o,s,l,c,u,f,d,h,g,p,v,y,b,_;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 A,S;for(S=[],A=0;A<4;++A)S.push(String.fromCharCode(this.data[this.pos++]));return S}).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()},u=this.readUInt16(),c=this.readUInt16()||100,f.delay=1e3*u/c,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(b=0;0<=p?b<p:b>p;0<=p?++b:--b)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=(v=this.read(o)).indexOf(0),h=String.fromCharCode.apply(String,v.slice(0,d)),this.text[h]=String.fromCharCode.apply(String,v.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=(_=this.colorType)===4||_===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,c=this;if(a==null&&(a=this.imgData),a.length===0)return new Uint8Array(0);function u(f,d,h,g){var p,v,y,b,_,A,S,O,T,k,L,B,C,P,M,U,J,q,W,ee,Z,Q=Math.ceil((c.width-f)/h),ce=Math.ceil((c.height-d)/g),N=c.width==Q&&c.height==ce;for(P=o*Q,B=N?s:new Uint8Array(P*ce),A=a.length,C=0,v=0;C<ce&&l<A;){switch(a[l++]){case 0:for(b=J=0;J<P;b=J+=1)B[v++]=a[l++];break;case 1:for(b=q=0;q<P;b=q+=1)p=a[l++],_=b<o?0:B[v-o],B[v++]=(p+_)%256;break;case 2:for(b=W=0;W<P;b=W+=1)p=a[l++],y=(b-b%o)/o,M=C&&B[(C-1)*P+y*o+b%o],B[v++]=(M+p)%256;break;case 3:for(b=ee=0;ee<P;b=ee+=1)p=a[l++],y=(b-b%o)/o,_=b<o?0:B[v-o],M=C&&B[(C-1)*P+y*o+b%o],B[v++]=(p+Math.floor((_+M)/2))%256;break;case 4:for(b=Z=0;Z<P;b=Z+=1)p=a[l++],y=(b-b%o)/o,_=b<o?0:B[v-o],C===0?M=U=0:(M=B[(C-1)*P+y*o+b%o],U=y&&B[(C-1)*P+(y-1)*o+b%o]),S=_+M-U,O=Math.abs(S-_),k=Math.abs(S-M),L=Math.abs(S-U),T=O<=k&&O<=L?_:k<=L?M:U,B[v++]=(p+T)%256;break;default:throw new Error("Invalid filter algorithm: "+a[l-1])}if(!N){var I=((d+C*g)*c.width+f)*o,R=C*P;for(b=0;b<Q;b+=1){for(var D=0;D<o;D+=1)s[I++]=B[R++];I+=(h-1)*o}}C++}}return a=Sk(a),c.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),s},n.prototype.decodePalette=function(){var a,o,s,l,c,u,f,d,h;for(s=this.palette,u=this.transparency.indexed||[],c=new Uint8Array((u.length||0)+s.length),l=0,a=0,o=f=0,d=s.length;f<d;o=f+=3)c[l++]=s[o],c[l++]=s[o+1],c[l++]=s[o+2],c[l++]=(h=u[a++])!=null?h:255;return c},n.prototype.copyToImageData=function(a,o){var s,l,c,u,f,d,h,g,p,v,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=(c=a.data||a).length,f=p||o,u=d=0,l===1)for(;u<g;)h=p?4*o[u/4]:d,v=f[h++],c[u++]=v,c[u++]=v,c[u++]=v,c[u++]=s?f[h++]:255,d=h;else for(;u<g;)h=p?4*o[u/4]:d,c[u++]=f[h++],c[u++]=f[h++],c[u++]=f[h++],c[u++]=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(Pt)==="[object Window]"){try{t=Pt.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,c,u,f,d,h;if(this.animation){for(h=[],s=u=0,f=(d=this.animation.frames).length;u<f;s=++u)o=d[s],l=a.createImageData(o.width,o.height),c=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(l,c),o.imageData=l,h.push(o.image=e(l));return h}},n.prototype.renderFrame=function(a,o){var s,l,c;return s=(l=this.animation.frames)[o],c=l[o-1],o===0&&a.clearRect(0,0,this.width,this.height),(c!=null?c.disposeOp:void 0)===1?a.clearRect(c.xOffset,c.yOffset,c.width,c.height):(c!=null?c.disposeOp:void 0)===2&&a.putImageData(c.imageData,c.xOffset,c.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,c,u,f,d=this;return s=0,f=this.animation,c=f.numFrames,l=f.frames,u=f.numPlays,(o=function(){var h,g;if(h=s++%c,g=l[h],d.renderFrame(a,h),c>1&&s/c<u)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 c=!0,u=[],f=0,d=null,h=0,g=null;for(this.width=r,this.height=n;c&&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 v=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,_=e[t++]|e[t++]<<8,A=e[t++],S=A>>6&1,O=1<<(7&A)+1,T=s,k=l,L=!1;A>>7&&(L=!0,T=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}u.push({x:v,y,width:b,height:_,has_local_palette:L,palette_offset:T,palette_size:k,data_offset:B,data_length:t-B,transparent_index:d,interlaced:!!S,delay:f,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return g},this.frameInfo=function(P){if(P<0||P>=u.length)throw new Error("Frame index out of range.");return u[P]},this.decodeAndBlitFrameBGRA=function(P,M){var U=this.frameInfo(P),J=U.width*U.height,q=new Uint8Array(J);uw(e,U.data_offset,q,J);var W=U.palette_offset,ee=U.transparent_index;ee===null&&(ee=256);var Z=U.width,Q=r-Z,ce=Z,N=4*(U.y*r+U.x),I=4*((U.y+U.height)*r+U.x),R=N,D=4*Q;U.interlaced===!0&&(D+=4*r*7);for(var G=8,fe=0,ae=q.length;fe<ae;++fe){var ne=q[fe];if(ce===0&&(ce=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 ve=e[W+3*ne],_e=e[W+3*ne+1],se=e[W+3*ne+2];M[R++]=se,M[R++]=_e,M[R++]=ve,M[R++]=255}--ce}},this.decodeAndBlitFrameRGBA=function(P,M){var U=this.frameInfo(P),J=U.width*U.height,q=new Uint8Array(J);uw(e,U.data_offset,q,J);var W=U.palette_offset,ee=U.transparent_index;ee===null&&(ee=256);var Z=U.width,Q=r-Z,ce=Z,N=4*(U.y*r+U.x),I=4*((U.y+U.height)*r+U.x),R=N,D=4*Q;U.interlaced===!0&&(D+=4*r*7);for(var G=8,fe=0,ae=q.length;fe<ae;++fe){var ne=q[fe];if(ce===0&&(ce=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 ve=e[W+3*ne],_e=e[W+3*ne+1],se=e[W+3*ne+2];M[R++]=ve,M[R++]=_e,M[R++]=se,M[R++]=255}--ce}}}function uw(e,t,r,n){for(var i=e[t++],a=1<<i,o=a+1,s=o+1,l=i+1,c=(1<<l)-1,u=0,f=0,d=0,h=e[t++],g=new Int32Array(4096),p=null;;){for(;u<16&&h!==0;)f|=e[t++]<<u,u+=8,h===1?h=e[t++]:--h;if(u<l)break;var v=f&c;if(f>>=l,u-=l,v!==a){if(v===o)break;for(var y=v<s?v:p,b=0,_=y;_>a;)_=g[_]>>8,++b;var A=_;if(d+b+(y!==v?1:0)>n)return void Tr.log("Warning, gif stream longer than expected.");r[d++]=A;var S=d+=b;for(y!==v&&(r[d++]=A),_=y;b--;)_=g[_],r[--S]=255&_,_>>=8;p!==null&&s<4096&&(g[s++]=p<<8|A,s>=c+1&&l<12&&(++l,c=c<<1|1)),p=v}else s=o+1,c=(1<<(l=i+1))-1,p=null}return d!==n&&Tr.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 M1(e){var t,r,n,i,a,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),f=new Array(65535),d=new Array(65535),h=new Array(64),g=new Array(64),p=[],v=0,y=7,b=new Array(64),_=new Array(64),A=new Array(64),S=new Array(256),O=new Array(2048),T=[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],U=[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 q(N,I){for(var R=0,D=0,G=new Array,fe=1;fe<=16;fe++){for(var ae=1;ae<=N[fe];ae++)G[I[D]]=[],G[I[D]][0]=R,G[I[D]][1]=fe,D++,R++;R*=2}return G}function W(N){for(var I=N[0],R=N[1]-1;R>=0;)I&1<<R&&(v|=1<<y),R--,--y<0&&(v==255?(ee(255),ee(0)):ee(v),y=7,v=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 fe,ae=G[0],ne=G[240],ve=(function(Ue,Ke){var Ze,Je,ft,pt,xt,Nt,Ft,zt,bt,Rt,at=0;for(bt=0;bt<8;++bt){Ze=Ue[at],Je=Ue[at+1],ft=Ue[at+2],pt=Ue[at+3],xt=Ue[at+4],Nt=Ue[at+5],Ft=Ue[at+6];var Mr=Ze+(zt=Ue[at+7]),Wt=Ze-zt,An=Je+Ft,Vt=Je-Ft,fr=ft+Nt,Vn=ft-Nt,we=pt+xt,mt=pt-xt,Tt=Mr+we,Sr=Mr-we,Yt=An+fr,Et=An-fr;Ue[at]=Tt+Yt,Ue[at+4]=Tt-Yt;var St=.707106781*(Et+Sr);Ue[at+2]=Sr+St,Ue[at+6]=Sr-St;var Xt=.382683433*((Tt=mt+Vn)-(Et=Vt+Wt)),Ha=.5411961*Tt+Xt,ln=1.306562965*Et+Xt,Ii=.707106781*(Yt=Vn+Vt),Fi=Wt+Ii,wt=Wt-Ii;Ue[at+5]=wt+Ha,Ue[at+3]=wt-Ha,Ue[at+1]=Fi+ln,Ue[at+7]=Fi-ln,at+=8}for(at=0,bt=0;bt<8;++bt){Ze=Ue[at],Je=Ue[at+8],ft=Ue[at+16],pt=Ue[at+24],xt=Ue[at+32],Nt=Ue[at+40],Ft=Ue[at+48];var yi=Ze+(zt=Ue[at+56]),ai=Ze-zt,Fn=Je+Ft,Hr=Je-Ft,Dr=ft+Nt,K=ft-Nt,de=pt+xt,ie=pt-xt,oe=yi+de,he=yi-de,pe=Fn+Dr,Ne=Fn-Dr;Ue[at]=oe+pe,Ue[at+32]=oe-pe;var Le=.707106781*(Ne+he);Ue[at+16]=he+Le,Ue[at+48]=he-Le;var Pe=.382683433*((oe=ie+K)-(Ne=Hr+ai)),je=.5411961*oe+Pe,ke=1.306562965*Ne+Pe,Ve=.707106781*(pe=K+Hr),Qe=ai+Ve,lt=ai-Ve;Ue[at+40]=lt+je,Ue[at+24]=lt-je,Ue[at+8]=Qe+ke,Ue[at+56]=Qe-ke,at++}for(bt=0;bt<64;++bt)Rt=Ue[bt]*Ke[bt],h[bt]=Rt>0?Rt+.5|0:Rt-.5|0;return h})(N,I),_e=0;_e<64;++_e)g[T[_e]]=ve[_e];var se=g[0]-R;R=g[0],se==0?W(D[0]):(W(D[d[fe=32767+se]]),W(f[fe]));for(var Fe=63;Fe>0&&g[Fe]==0;)Fe--;if(Fe==0)return W(ae),R;for(var Ae,Ee=1;Ee<=Fe;){for(var le=Ee;g[Ee]==0&&Ee<=Fe;)++Ee;var De=Ee-le;if(De>=16){Ae=De>>4;for(var tt=1;tt<=Ae;++tt)W(ne);De&=15}fe=32767+g[Ee],W(G[(De<<4)+d[fe]]),W(f[fe]),Ee++}return Fe!=63&&W(ae),R}function ce(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[T[D]]=G}for(var fe=[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],ae=0;ae<64;ae++){var ne=o((fe[ae]*I+50)/100);ne=Math.min(Math.max(ne,1),255),l[T[ae]]=ne}for(var ve=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],_e=0,se=0;se<8;se++)for(var Fe=0;Fe<8;Fe++)c[_e]=1/(s[T[_e]]*ve[se]*ve[Fe]*8),u[_e]=1/(l[T[_e]]*ve[se]*ve[Fe]*8),_e++})(N<50?Math.floor(5e3/N):Math.floor(200-2*N)),a=N)}this.encode=function(N,I){I&&ce(I),p=new Array,v=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 Je=0;Je<64;Je++)ee(s[Je]);ee(1);for(var ft=0;ft<64;ft++)ee(l[ft])})(),(function(Je,ft){Z(65472),Z(17),ee(8),Z(ft),Z(Je),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 Je=0;Je<16;Je++)ee(k[Je+1]);for(var ft=0;ft<=11;ft++)ee(L[ft]);ee(16);for(var pt=0;pt<16;pt++)ee(B[pt+1]);for(var xt=0;xt<=161;xt++)ee(C[xt]);ee(1);for(var Nt=0;Nt<16;Nt++)ee(P[Nt+1]);for(var Ft=0;Ft<=11;Ft++)ee(M[Ft]);ee(17);for(var zt=0;zt<16;zt++)ee(U[zt+1]);for(var bt=0;bt<=161;bt++)ee(J[bt])})(),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;v=0,y=7,this.encode.displayName="_encode_";for(var fe,ae,ne,ve,_e,se,Fe,Ae,Ee,le=N.data,De=N.width,tt=N.height,Ue=4*De,Ke=0;Ke<tt;){for(fe=0;fe<Ue;){for(_e=Ue*Ke+fe,Fe=-1,Ae=0,Ee=0;Ee<64;Ee++)se=_e+(Ae=Ee>>3)*Ue+(Fe=4*(7&Ee)),Ke+Ae>=tt&&(se-=Ue*(Ke+1+Ae-tt)),fe+Fe>=Ue&&(se-=fe+Fe-Ue+4),ae=le[se++],ne=le[se++],ve=le[se++],b[Ee]=(O[ae]+O[ne+256>>0]+O[ve+512>>0]>>16)-128,_[Ee]=(O[ae+768>>0]+O[ne+1024>>0]+O[ve+1280>>0]>>16)-128,A[Ee]=(O[ae+1280>>0]+O[ne+1536>>0]+O[ve+1792>>0]>>16)-128;R=Q(b,c,R,t,n),D=Q(_,u,D,r,i),G=Q(A,u,G,r,i),fe+=32}Ke+=8}if(y>=0){var Ze=[];Ze[1]=y+1,Ze[0]=(1<<y+1)-1,W(Ze)}return Z(65497),new Uint8Array(p)},e=e||50,(function(){for(var N=String.fromCharCode,I=0;I<256;I++)S[I]=N(I)})(),t=q(k,L),r=q(P,M),n=q(B,C),i=q(U,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})(),ce(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 la(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,U){for(var J=U[M],q=0;q<J&&(P.push(U.length>M+1?[]:new L),!(U.length<M+1));q++)C(P[q],M+1,U)})(B,0,k),B}var l=function(){var k=this;function L(m,w){for(var j=1<<w-1>>>0;m&j;)j>>>=1;return j?(m&j-1)+j:m}function B(m,w,j,F,z){t(!(F%j));do m[w+(F-=j)]=z;while(0<F)}function C(m,w,j,F,z){if(t(2328>=z),512>=z)var Y=a(512);else if((Y=a(z))==null)return 0;return(function(X,te,re,ue,ye,Oe){var Ce,Se,ze=te,Ie=1<<re,xe=a(16),be=a(16);for(t(ye!=0),t(ue!=null),t(X!=null),t(0<re),Se=0;Se<ye;++Se){if(15<ue[Se])return 0;++xe[ue[Se]]}if(xe[0]==ye)return 0;for(be[1]=0,Ce=1;15>Ce;++Ce){if(xe[Ce]>1<<Ce)return 0;be[Ce+1]=be[Ce]+xe[Ce]}for(Se=0;Se<ye;++Se)Ce=ue[Se],0<ue[Se]&&(Oe[be[Ce]++]=Se);if(be[15]==1)return(ue=new P).g=0,ue.value=Oe[0],B(X,ze,1,Ie,ue),Ie;var $e,He=-1,qe=Ie-1,ut=0,it=1,_t=1,ot=1<<re;for(Se=0,Ce=1,ye=2;Ce<=re;++Ce,ye<<=1){if(it+=_t<<=1,0>(_t-=xe[Ce]))return 0;for(;0<xe[Ce];--xe[Ce])(ue=new P).g=Ce,ue.value=Oe[Se++],B(X,ze+ut,ye,ot,ue),ut=L(ut,Ce)}for(Ce=re+1,ye=2;15>=Ce;++Ce,ye<<=1){if(it+=_t<<=1,0>(_t-=xe[Ce]))return 0;for(;0<xe[Ce];--xe[Ce]){if(ue=new P,(ut&qe)!=He){for(ze+=ot,$e=1<<(He=Ce)-re;15>He&&!(0>=($e-=xe[He]));)++He,$e<<=1;Ie+=ot=1<<($e=He-re),X[te+(He=ut&qe)].g=$e+re,X[te+He].value=ze-te-He}ue.g=Ce-re,ue.value=Oe[Se++],B(X,ze+(ut>>re),ye,ot,ue),ut=L(ut,Ce)}}return it!=2*be[15]-1?0:Ie})(m,w,j,F,z,Y)}function P(){this.value=this.g=0}function M(){this.value=this.g=0}function U(){this.G=o(5,P),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(Tn,M)}function J(m,w,j,F){t(m!=null),t(w!=null),t(2147483648>F),m.Ca=254,m.I=0,m.b=-8,m.Ka=0,m.oa=w,m.pa=j,m.Jd=w,m.Yc=j+F,m.Zc=4<=F?j+F-4+1:j,fe(m)}function q(m,w){for(var j=0;0<w--;)j|=ne(m,128)<<w;return j}function W(m,w){var j=q(m,w);return ae(m)?-j:j}function ee(m,w,j,F){var z,Y=0;for(t(m!=null),t(w!=null),t(4294967288>F),m.Sb=F,m.Ra=0,m.u=0,m.h=0,4<F&&(F=4),z=0;z<F;++z)Y+=w[j+z]<<8*z;m.Ra=Y,m.bb=F,m.oa=w,m.pa=j}function Z(m){for(;8<=m.u&&m.bb<m.Sb;)m.Ra>>>=8,m.Ra+=m.oa[m.pa+m.bb]<<_l-8>>>0,++m.bb,m.u-=8;R(m)&&(m.h=1,m.u=0)}function Q(m,w){if(t(0<=w),!m.h&&w<=wl){var j=I(m)&bl[w];return m.u+=w,Z(m),j}return m.h=1,m.u=0}function ce(){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(m){return m.Ra>>>(m.u&_l-1)>>>0}function R(m){return t(m.bb<=m.Sb),m.h||m.bb==m.Sb&&m.u>_l}function D(m,w){m.u=w,m.h=R(m)}function G(m){m.u>=hu&&(t(m.u>=hu),Z(m))}function fe(m){t(m!=null&&m.oa!=null),m.pa<m.Zc?(m.I=(m.oa[m.pa++]|m.I<<8)>>>0,m.b+=8):(t(m!=null&&m.oa!=null),m.pa<m.Yc?(m.b+=8,m.I=m.oa[m.pa++]|m.I<<8):m.Ka?m.b=0:(m.I<<=8,m.b+=8,m.Ka=1))}function ae(m){return q(m,1)}function ne(m,w){var j=m.Ca;0>m.b&&fe(m);var F=m.b,z=j*w>>>8,Y=(m.I>>>F>z)+0;for(Y?(j-=z,m.I-=z+1<<F>>>0):j=z+1,F=j,z=0;256<=F;)z+=8,F>>=8;return F=7^z+si[F],m.b-=F,m.Ca=(j<<F)-1,Y}function ve(m,w,j){m[w+0]=j>>24&255,m[w+1]=j>>16&255,m[w+2]=j>>8&255,m[w+3]=j>>0&255}function _e(m,w){return m[w+0]<<0|m[w+1]<<8}function se(m,w){return _e(m,w)|m[w+2]<<16}function Fe(m,w){return _e(m,w)|_e(m,w+2)<<16}function Ae(m,w){var j=1<<w;return t(m!=null),t(0<w),m.X=a(j),m.X==null?0:(m.Mb=32-w,m.Xa=w,1)}function Ee(m,w){t(m!=null),t(w!=null),t(m.Xa==w.Xa),n(w.X,0,m.X,0,1<<w.Xa)}function le(){this.X=[],this.Xa=this.Mb=0}function De(m,w,j,F){t(j!=null),t(F!=null);var z=j[0],Y=F[0];return z==0&&(z=(m*Y+w/2)/w),Y==0&&(Y=(w*z+m/2)/m),0>=z||0>=Y?0:(j[0]=z,F[0]=Y,1)}function tt(m,w){return m+(1<<w)-1>>>w}function Ue(m,w){return((4278255360&m)+(4278255360&w)>>>0&4278255360)+((16711935&m)+(16711935&w)>>>0&16711935)>>>0}function Ke(m,w){k[w]=function(j,F,z,Y,X,te,re){var ue;for(ue=0;ue<X;++ue){var ye=k[m](te[re+ue-1],z,Y+ue);te[re+ue]=Ue(j[F+ue],ye)}}}function Ze(){this.ud=this.hd=this.jd=0}function Je(m,w){return((4278124286&(m^w))>>>1)+(m&w)>>>0}function ft(m){return 0<=m&&256>m?m:0>m?0:255<m?255:void 0}function pt(m,w){return ft(m+(m-w+.5>>1))}function xt(m,w,j){return Math.abs(w-j)-Math.abs(m-j)}function Nt(m,w,j,F,z,Y,X){for(F=Y[X-1],j=0;j<z;++j)Y[X+j]=F=Ue(m[w+j],F)}function Ft(m,w,j,F,z){var Y;for(Y=0;Y<j;++Y){var X=m[w+Y],te=X>>8&255,re=16711935&(re=(re=16711935&X)+((te<<16)+te));F[z+Y]=(4278255360&X)+re>>>0}}function zt(m,w){w.jd=m>>0&255,w.hd=m>>8&255,w.ud=m>>16&255}function bt(m,w,j,F,z,Y){var X;for(X=0;X<F;++X){var te=w[j+X],re=te>>>8,ue=te,ye=255&(ye=(ye=te>>>16)+((m.jd<<24>>24)*(re<<24>>24)>>>5));ue=255&(ue=(ue=ue+((m.hd<<24>>24)*(re<<24>>24)>>>5))+((m.ud<<24>>24)*(ye<<24>>24)>>>5)),z[Y+X]=(4278255360&te)+(ye<<16)+ue}}function Rt(m,w,j,F,z){k[w]=function(Y,X,te,re,ue,ye,Oe,Ce,Se){for(re=Oe;re<Ce;++re)for(Oe=0;Oe<Se;++Oe)ue[ye++]=z(te[F(Y[X++])])},k[m]=function(Y,X,te,re,ue,ye,Oe){var Ce=8>>Y.b,Se=Y.Ea,ze=Y.K[0],Ie=Y.w;if(8>Ce)for(Y=(1<<Y.b)-1,Ie=(1<<Ce)-1;X<te;++X){var xe,be=0;for(xe=0;xe<Se;++xe)xe&Y||(be=F(re[ue++])),ye[Oe++]=z(ze[be&Ie]),be>>=Ce}else k["VP8LMapColor"+j](re,ue,ze,Ie,ye,Oe,X,te,Se)}}function at(m,w,j,F,z){for(j=w+j;w<j;){var Y=m[w++];F[z++]=Y>>16&255,F[z++]=Y>>8&255,F[z++]=Y>>0&255}}function Mr(m,w,j,F,z){for(j=w+j;w<j;){var Y=m[w++];F[z++]=Y>>16&255,F[z++]=Y>>8&255,F[z++]=Y>>0&255,F[z++]=Y>>24&255}}function Wt(m,w,j,F,z){for(j=w+j;w<j;){var Y=(X=m[w++])>>16&240|X>>12&15,X=X>>0&240|X>>28&15;F[z++]=Y,F[z++]=X}}function An(m,w,j,F,z){for(j=w+j;w<j;){var Y=(X=m[w++])>>16&248|X>>13&7,X=X>>5&224|X>>3&31;F[z++]=Y,F[z++]=X}}function Vt(m,w,j,F,z){for(j=w+j;w<j;){var Y=m[w++];F[z++]=Y>>0&255,F[z++]=Y>>8&255,F[z++]=Y>>16&255}}function fr(m,w,j,F,z,Y){if(Y==0)for(j=w+j;w<j;)ve(F,((Y=m[w++])[0]>>24|Y[1]>>8&65280|Y[2]<<8&16711680|Y[3]<<24)>>>0),z+=32;else n(F,z,m,w,j)}function Vn(m,w){k[w][0]=k[m+"0"],k[w][1]=k[m+"1"],k[w][2]=k[m+"2"],k[w][3]=k[m+"3"],k[w][4]=k[m+"4"],k[w][5]=k[m+"5"],k[w][6]=k[m+"6"],k[w][7]=k[m+"7"],k[w][8]=k[m+"8"],k[w][9]=k[m+"9"],k[w][10]=k[m+"10"],k[w][11]=k[m+"11"],k[w][12]=k[m+"12"],k[w][13]=k[m+"13"],k[w][14]=k[m+"0"],k[w][15]=k[m+"0"]}function we(m){return m==d1||m==p1||m==Vh||m==m1}function mt(){this.eb=[],this.size=this.A=this.fb=0}function Tt(){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 Sr(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new mt,this.f.kb=new Tt,this.sd=null}function Yt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Et(){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 St(m){return alert("todo:WebPSamplerProcessPlane"),m.T}function Xt(m,w){var j=m.T,F=w.ba.f.RGBA,z=F.eb,Y=F.fb+m.ka*F.A,X=qi[w.ba.S],te=m.y,re=m.O,ue=m.f,ye=m.N,Oe=m.ea,Ce=m.W,Se=w.cc,ze=w.dc,Ie=w.Mc,xe=w.Nc,be=m.ka,$e=m.ka+m.T,He=m.U,qe=He+1>>1;for(be==0?X(te,re,null,null,ue,ye,Oe,Ce,ue,ye,Oe,Ce,z,Y,null,null,He):(X(w.ec,w.fc,te,re,Se,ze,Ie,xe,ue,ye,Oe,Ce,z,Y-F.A,z,Y,He),++j);be+2<$e;be+=2)Se=ue,ze=ye,Ie=Oe,xe=Ce,ye+=m.Rc,Ce+=m.Rc,Y+=2*F.A,X(te,(re+=2*m.fa)-m.fa,te,re,Se,ze,Ie,xe,ue,ye,Oe,Ce,z,Y-F.A,z,Y,He);return re+=m.fa,m.j+$e<m.o?(n(w.ec,w.fc,te,re,He),n(w.cc,w.dc,ue,ye,qe),n(w.Mc,w.Nc,Oe,Ce,qe),j--):1&$e||X(te,re,null,null,ue,ye,Oe,Ce,ue,ye,Oe,Ce,z,Y+F.A,null,null,He),j}function Ha(m,w,j){var F=m.F,z=[m.J];if(F!=null){var Y=m.U,X=w.ba.S,te=X==Gh||X==Vh;w=w.ba.f.RGBA;var re=[0],ue=m.ka;re[0]=m.T,m.Kb&&(ue==0?--re[0]:(--ue,z[0]-=m.width),m.j+m.ka+m.T==m.o&&(re[0]=m.o-m.j-ue));var ye=w.eb;ue=w.fb+ue*w.A,m=Nr(F,z[0],m.width,Y,re,ye,ue+(te?0:3),w.A),t(j==re),m&&we(X)&&Bi(ye,ue,te,Y,re,w.A)}return 0}function ln(m){var w=m.ma,j=w.ba.S,F=11>j,z=j==Wh||j==Hh||j==Gh||j==h1||j==12||we(j);if(w.memory=null,w.Ib=null,w.Jb=null,w.Nd=null,!uu(w.Oa,m,z?11:12))return 0;if(z&&we(j)&&Ge(),m.da)alert("todo:use_scaling");else{if(F){if(w.Ib=St,m.Kb){if(j=m.U+1>>1,w.memory=a(m.U+2*j),w.memory==null)return 0;w.ec=w.memory,w.fc=0,w.cc=w.ec,w.dc=w.fc+m.U,w.Mc=w.cc,w.Nc=w.dc+j,w.Ib=Xt,Ge()}}else alert("todo:EmitYUV");z&&(w.Jb=Ha,F&&Te())}if(F&&!P5){for(m=0;256>m;++m)fj[m]=89858*(m-128)+Kh>>Yh,pj[m]=-22014*(m-128)+Kh,dj[m]=-45773*(m-128),hj[m]=113618*(m-128)+Kh>>Yh;for(m=xu;m<y1;++m)w=76283*(m-16)+Kh>>Yh,mj[m-xu]=bi(w,255),vj[m-xu]=bi(w+8>>4,15);P5=1}return 1}function Ii(m){var w=m.ma,j=m.U,F=m.T;return t(!(1&m.ka)),0>=j||0>=F?0:(j=w.Ib(m,w),w.Jb!=null&&w.Jb(m,w,j),w.Dc+=j,1)}function Fi(m){m.ma.memory=null}function wt(m,w,j,F){return Q(m,8)!=47?0:(w[0]=Q(m,14)+1,j[0]=Q(m,14)+1,F[0]=Q(m,1),Q(m,3)!=0?0:!m.h)}function yi(m,w){if(4>m)return m+1;var j=m-2>>1;return(2+(1&m)<<j)+Q(w,j)+1}function ai(m,w){return 120<w?w-120:1<=(j=((j=JC[w-1])>>4)*m+(8-(15&j)))?j:1;var j}function Fn(m,w,j){var F=I(j),z=m[w+=255&F].g-8;return 0<z&&(D(j,j.u+8),F=I(j),w+=m[w].value,w+=F&(1<<z)-1),D(j,j.u+m[w].g),m[w].value}function Hr(m,w,j){return j.g+=m.g,j.value+=m.value<<w>>>0,t(8>=j.g),m.g}function Dr(m,w,j){var F=m.xc;return t((w=F==0?0:m.vc[m.md*(j>>F)+(w>>F)])<m.Wb),m.Ya[w]}function K(m,w,j,F){var z=m.ab,Y=m.c*w,X=m.C;w=X+w;var te=j,re=F;for(F=m.Ta,j=m.Ua;0<z--;){var ue=m.gc[z],ye=X,Oe=w,Ce=te,Se=re,ze=(re=F,te=j,ue.Ea);switch(t(ye<Oe),t(Oe<=ue.nc),ue.hc){case 2:Mh(Ce,Se,(Oe-ye)*ze,re,te);break;case 0:var Ie=ye,xe=Oe,be=re,$e=te,He=(ot=ue).Ea;Ie==0&&(u1(Ce,Se,null,null,1,be,$e),Nt(Ce,Se+1,0,0,He-1,be,$e+1),Se+=He,$e+=He,++Ie);for(var qe=1<<ot.b,ut=qe-1,it=tt(He,ot.b),_t=ot.K,ot=ot.w+(Ie>>ot.b)*it;Ie<xe;){var Qt=_t,hr=ot,Kt=1;for(du(Ce,Se,be,$e-He,1,be,$e);Kt<He;){var Ht=(Kt&~ut)+qe;Ht>He&&(Ht=He),(0,ko[Qt[hr++]>>8&15])(Ce,Se+ +Kt,be,$e+Kt-He,Ht-Kt,be,$e+Kt),Kt=Ht}Se+=He,$e+=He,++Ie&ut||(ot+=it)}Oe!=ue.nc&&n(re,te-ze,re,te+(Oe-ye-1)*ze,ze);break;case 1:for(ze=Ce,xe=Se,He=(Ce=ue.Ea)-($e=Ce&~(be=(Se=1<<ue.b)-1)),Ie=tt(Ce,ue.b),qe=ue.K,ue=ue.w+(ye>>ue.b)*Ie;ye<Oe;){for(ut=qe,it=ue,_t=new Ze,ot=xe+$e,Qt=xe+Ce;xe<ot;)zt(ut[it++],_t),xs(_t,ze,xe,Se,re,te),xe+=Se,te+=Se;xe<Qt&&(zt(ut[it++],_t),xs(_t,ze,xe,He,re,te),xe+=He,te+=He),++ye&be||(ue+=Ie)}break;case 3:if(Ce==re&&Se==te&&0<ue.b){for(xe=re,Ce=ze=te+(Oe-ye)*ze-($e=(Oe-ye)*tt(ue.Ea,ue.b)),Se=re,be=te,Ie=[],$e=(He=$e)-1;0<=$e;--$e)Ie[$e]=Se[be+$e];for($e=He-1;0<=$e;--$e)xe[Ce+$e]=Ie[$e];Ri(ue,ye,Oe,re,ze,re,te)}else Ri(ue,ye,Oe,Ce,Se,re,te)}te=F,re=j}re!=j&&n(F,j,te,re,Y)}function de(m,w){var j=m.V,F=m.Ba+m.c*m.C,z=w-m.C;if(t(w<=m.l.o),t(16>=z),0<z){var Y=m.l,X=m.Ta,te=m.Ua,re=Y.width;if(K(m,z,j,F),z=te=[te],t((j=m.C)<(F=w)),t(Y.v<Y.va),F>Y.o&&(F=Y.o),j<Y.j){var ue=Y.j-j;j=Y.j,z[0]+=ue*re}if(j>=F?j=0:(z[0]+=4*Y.v,Y.ka=j-Y.j,Y.U=Y.va-Y.v,Y.T=F-j,j=1),j){if(te=te[0],11>(j=m.ca).S){var ye=j.f.RGBA,Oe=(F=j.S,z=Y.U,Y=Y.T,ue=ye.eb,ye.A),Ce=Y;for(ye=ye.fb+m.Ma*ye.A;0<Ce--;){var Se=X,ze=te,Ie=z,xe=ue,be=ye;switch(F){case zh:li(Se,ze,Ie,xe,be);break;case Wh:Yn(Se,ze,Ie,xe,be);break;case d1:Yn(Se,ze,Ie,xe,be),Bi(xe,be,0,Ie,1,0);break;case y5:Xa(Se,ze,Ie,xe,be);break;case Hh:fr(Se,ze,Ie,xe,be,1);break;case p1:fr(Se,ze,Ie,xe,be,1),Bi(xe,be,0,Ie,1,0);break;case Gh:fr(Se,ze,Ie,xe,be,0);break;case Vh:fr(Se,ze,Ie,xe,be,0),Bi(xe,be,1,Ie,1,0);break;case h1:Lo(Se,ze,Ie,xe,be);break;case m1:Lo(Se,ze,Ie,xe,be),Pr(xe,be,Ie,1,0);break;case x5:Ka(Se,ze,Ie,xe,be);break;default:t(0)}te+=re,ye+=Oe}m.Ma+=Y}else alert("todo:EmitRescaledRowsYUVA");t(m.Ma<=j.height)}}m.C=w,t(m.C<=m.i)}function ie(m){var w;if(0<m.ua)return 0;for(w=0;w<m.Wb;++w){var j=m.Ya[w].G,F=m.Ya[w].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 oe(m,w,j,F,z,Y){if(m.Z!=0){var X=m.qd,te=m.rd;for(t(Mo[m.Z]!=null);w<j;++w)Mo[m.Z](X,te,F,z,F,z,Y),X=F,te=z,z+=Y;m.qd=X,m.rd=te}}function he(m,w){var j=m.l.ma,F=j.Z==0||j.Z==1?m.l.j:m.C;if(F=m.C<F?F:m.C,t(w<=m.l.o),w>F){var z=m.l.width,Y=j.ca,X=j.tb+z*F,te=m.V,re=m.Ba+m.c*F,ue=m.gc;t(m.ab==1),t(ue[0].hc==3),Dh(ue[0],F,w,te,re,Y,X),oe(j,F,w,Y,X,z)}m.C=m.Ma=w}function pe(m,w,j,F,z,Y,X){var te=m.$/F,re=m.$%F,ue=m.m,ye=m.s,Oe=j+m.$,Ce=Oe;z=j+F*z;var Se=j+F*Y,ze=280+ye.ua,Ie=m.Pb?te:16777216,xe=0<ye.ua?ye.Wa:null,be=ye.wc,$e=Oe<Se?Dr(ye,re,te):null;t(m.C<Y),t(Se<=z);var He=!1;e:for(;;){for(;He||Oe<Se;){var qe=0;if(te>=Ie){var ut=Oe-j;t((Ie=m).Pb),Ie.wd=Ie.m,Ie.xd=ut,0<Ie.s.ua&&Ee(Ie.s.Wa,Ie.s.vb),Ie=te+QC}if(re&be||($e=Dr(ye,re,te)),t($e!=null),$e.Qb&&(w[Oe]=$e.qb,He=!0),!He)if(G(ue),$e.jc){qe=ue,ut=w;var it=Oe,_t=$e.pd[I(qe)&Tn-1];t($e.jc),256>_t.g?(D(qe,qe.u+_t.g),ut[it]=_t.value,qe=0):(D(qe,qe.u+_t.g-256),t(256<=_t.value),qe=_t.value),qe==0&&(He=!0)}else qe=Fn($e.G[0],$e.H[0],ue);if(ue.h)break;if(He||256>qe){if(!He)if($e.nd)w[Oe]=($e.qb|qe<<8)>>>0;else{if(G(ue),He=Fn($e.G[1],$e.H[1],ue),G(ue),ut=Fn($e.G[2],$e.H[2],ue),it=Fn($e.G[3],$e.H[3],ue),ue.h)break;w[Oe]=(it<<24|He<<16|qe<<8|ut)>>>0}if(He=!1,++Oe,++re>=F&&(re=0,++te,X!=null&&te<=Y&&!(te%16)&&X(m,te),xe!=null))for(;Ce<Oe;)qe=w[Ce++],xe.X[(506832829*qe&4294967295)>>>xe.Mb]=qe}else if(280>qe){if(qe=yi(qe-256,ue),ut=Fn($e.G[4],$e.H[4],ue),G(ue),ut=ai(F,ut=yi(ut,ue)),ue.h)break;if(Oe-j<ut||z-Oe<qe)break e;for(it=0;it<qe;++it)w[Oe+it]=w[Oe+it-ut];for(Oe+=qe,re+=qe;re>=F;)re-=F,++te,X!=null&&te<=Y&&!(te%16)&&X(m,te);if(t(Oe<=z),re&be&&($e=Dr(ye,re,te)),xe!=null)for(;Ce<Oe;)qe=w[Ce++],xe.X[(506832829*qe&4294967295)>>>xe.Mb]=qe}else{if(!(qe<ze))break e;for(He=qe-280,t(xe!=null);Ce<Oe;)qe=w[Ce++],xe.X[(506832829*qe&4294967295)>>>xe.Mb]=qe;qe=Oe,t(!(He>>>(ut=xe).Xa)),w[qe]=ut.X[He],He=!0}He||t(ue.h==R(ue))}if(m.Pb&&ue.h&&Oe<z)t(m.m.h),m.a=5,m.m=m.wd,m.$=m.xd,0<m.s.ua&&Ee(m.s.vb,m.s.Wa);else{if(ue.h)break e;X!=null&&X(m,te>Y?Y:te),m.a=0,m.$=Oe-j}return 1}return m.a=3,0}function Ne(m){t(m!=null),m.vc=null,m.yc=null,m.Ya=null;var w=m.Wa;w!=null&&(w.X=null),m.vb=null,t(m!=null)}function Le(){var m=new c1;return m==null?null:(m.a=0,m.xb=_5,Vn("Predictor","VP8LPredictors"),Vn("Predictor","VP8LPredictors_C"),Vn("PredictorAdd","VP8LPredictorsAdd"),Vn("PredictorAdd","VP8LPredictorsAdd_C"),Mh=Ft,xs=bt,li=at,Yn=Mr,Lo=Wt,Ka=An,Xa=Vt,k.VP8LMapColor32b=Sl,k.VP8LMapColor8b=Bh,m)}function Pe(m,w,j,F,z){var Y=1,X=[m],te=[w],re=F.m,ue=F.s,ye=null,Oe=0;e:for(;;){if(j)for(;Y&&Q(re,1);){var Ce=X,Se=te,ze=F,Ie=1,xe=ze.m,be=ze.gc[ze.ab],$e=Q(xe,2);if(ze.Oc&1<<$e)Y=0;else{switch(ze.Oc|=1<<$e,be.hc=$e,be.Ea=Ce[0],be.nc=Se[0],be.K=[null],++ze.ab,t(4>=ze.ab),$e){case 0:case 1:be.b=Q(xe,3)+2,Ie=Pe(tt(be.Ea,be.b),tt(be.nc,be.b),0,ze,be.K),be.K=be.K[0];break;case 3:var He,qe=Q(xe,8)+1,ut=16<qe?0:4<qe?1:2<qe?2:3;if(Ce[0]=tt(be.Ea,ut),be.b=ut,He=Ie=Pe(qe,1,0,ze,be.K)){var it,_t=qe,ot=be,Qt=1<<(8>>ot.b),hr=a(Qt);if(hr==null)He=0;else{var Kt=ot.K[0],Ht=ot.w;for(hr[0]=ot.K[0][0],it=1;it<1*_t;++it)hr[it]=Ue(Kt[Ht+it],hr[it-1]);for(;it<4*Qt;++it)hr[it]=0;ot.K[0]=null,ot.K[0]=hr,He=1}}Ie=He;break;case 2:break;default:t(0)}Y=Ie}}if(X=X[0],te=te[0],Y&&Q(re,1)&&!(Y=1<=(Oe=Q(re,4))&&11>=Oe)){F.a=3;break e}var Ar;if(Ar=Y)t:{var xr,Bt,en,ci=F,tn=X,ui=te,dr=Oe,_i=j,Si=ci.m,gn=ci.s,En=[null],Xn=1,Ui=0,Ca=ZC[dr];r:for(;;){if(_i&&Q(Si,1)){var yn=Q(Si,3)+2,eo=tt(tn,yn),As=tt(ui,yn),Nl=eo*As;if(!Pe(eo,As,0,ci,En))break r;for(En=En[0],gn.xc=yn,xr=0;xr<Nl;++xr){var Do=En[xr]>>8&65535;En[xr]=Do,Do>=Xn&&(Xn=Do+1)}}if(Si.h)break r;for(Bt=0;5>Bt;++Bt){var $r=b5[Bt];!Bt&&0<dr&&($r+=1<<dr),Ui<$r&&(Ui=$r)}var x1=o(Xn*Ca,P),C5=Xn,j5=o(C5,U);if(j5==null)var Jh=null;else t(65536>=C5),Jh=j5;var bu=a(Ui);if(Jh==null||bu==null||x1==null){ci.a=1;break r}var Zh=x1;for(xr=en=0;xr<Xn;++xr){var oa=Jh[xr],Ol=oa.G,Cl=oa.H,k5=0,Qh=1,L5=0;for(Bt=0;5>Bt;++Bt){$r=b5[Bt],Ol[Bt]=Zh,Cl[Bt]=en,!Bt&&0<dr&&($r+=1<<dr);i:{var e0,b1=$r,t0=ci,wu=bu,xj=Zh,bj=en,w1=0,Bo=t0.m,wj=Q(Bo,1);if(i(wu,0,0,b1),wj){var _j=Q(Bo,1)+1,Sj=Q(Bo,1),I5=Q(Bo,Sj==0?1:8);wu[I5]=1,_j==2&&(wu[I5=Q(Bo,8)]=1);var r0=1}else{var F5=a(19),R5=Q(Bo,4)+4;if(19<R5){t0.a=3;var n0=0;break i}for(e0=0;e0<R5;++e0)F5[XC[e0]]=Q(Bo,3);var _1=void 0,_u=void 0,M5=t0,Aj=F5,i0=b1,D5=wu,S1=0,$o=M5.m,B5=8,$5=o(128,P);n:for(;C($5,0,7,Aj,19);){if(Q($o,1)){var Tj=2+2*Q($o,3);if((_1=2+Q($o,Tj))>i0)break n}else _1=i0;for(_u=0;_u<i0&&_1--;){G($o);var q5=$5[0+(127&I($o))];D($o,$o.u+q5.g);var jl=q5.value;if(16>jl)D5[_u++]=jl,jl!=0&&(B5=jl);else{var Ej=jl==16,U5=jl-16,Pj=YC[U5],z5=Q($o,VC[U5])+Pj;if(_u+z5>i0)break n;for(var Nj=Ej?B5:0;0<z5--;)D5[_u++]=Nj}}S1=1;break n}S1||(M5.a=3),r0=S1}(r0=r0&&!Bo.h)&&(w1=C(xj,bj,8,wu,b1)),r0&&w1!=0?n0=w1:(t0.a=3,n0=0)}if(n0==0)break r;if(Qh&&KC[Bt]==1&&(Qh=Zh[en].g==0),k5+=Zh[en].g,en+=n0,3>=Bt){var Su,A1=bu[0];for(Su=1;Su<$r;++Su)bu[Su]>A1&&(A1=bu[Su]);L5+=A1}}if(oa.nd=Qh,oa.Qb=0,Qh&&(oa.qb=(Ol[3][Cl[3]+0].value<<24|Ol[1][Cl[1]+0].value<<16|Ol[2][Cl[2]+0].value)>>>0,k5==0&&256>Ol[0][Cl[0]+0].value&&(oa.Qb=1,oa.qb+=Ol[0][Cl[0]+0].value<<8)),oa.jc=!oa.Qb&&6>L5,oa.jc){var a0,to=oa;for(a0=0;a0<Tn;++a0){var qo=a0,Uo=to.pd[qo],o0=to.G[0][to.H[0]+qo];256<=o0.value?(Uo.g=o0.g+256,Uo.value=o0.value):(Uo.g=0,Uo.value=0,qo>>=Hr(o0,8,Uo),qo>>=Hr(to.G[1][to.H[1]+qo],16,Uo),qo>>=Hr(to.G[2][to.H[2]+qo],0,Uo),Hr(to.G[3][to.H[3]+qo],24,Uo))}}}gn.vc=En,gn.Wb=Xn,gn.Ya=Jh,gn.yc=x1,Ar=1;break t}Ar=0}if(!(Y=Ar)){F.a=3;break e}if(0<Oe){if(ue.ua=1<<Oe,!Ae(ue.Wa,Oe)){F.a=1,Y=0;break e}}else ue.ua=0;var T1=F,W5=X,Oj=te,E1=T1.s,P1=E1.xc;if(T1.c=W5,T1.i=Oj,E1.md=tt(W5,P1),E1.wc=P1==0?-1:(1<<P1)-1,j){F.xb=oj;break e}if((ye=a(X*te))==null){F.a=1,Y=0;break e}Y=(Y=pe(F,ye,0,X,te,te,null))&&!re.h;break e}return Y?(z!=null?z[0]=ye:(t(ye==null),t(j)),F.$=0,j||Ne(ue)):Ne(ue),Y}function je(m,w){var j=m.c*m.i,F=j+w+16*w;return t(m.c<=w),m.V=a(F),m.V==null?(m.Ta=null,m.Ua=0,m.a=1,0):(m.Ta=m.V,m.Ua=m.Ba+j+w,1)}function ke(m,w){var j=m.C,F=w-j,z=m.V,Y=m.Ba+m.c*j;for(t(w<=m.l.o);0<F;){var X=16<F?16:F,te=m.l.ma,re=m.l.width,ue=re*X,ye=te.ca,Oe=te.tb+re*j,Ce=m.Ta,Se=m.Ua;K(m,X,z,Y),Yr(Ce,Se,ye,Oe,ue),oe(te,j,j+X,ye,Oe,re),F-=X,z+=X*m.c,j+=X}t(j==w),m.C=m.Ma=w}function Ve(){this.ub=this.yd=this.td=this.Rb=0}function Qe(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function lt(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Xe(){this.Yb=(function(){var m=[];return(function w(j,F,z){for(var Y=z[F],X=0;X<Y&&(j.push(z.length>F+1?[]:0),!(z.length<F+1));X++)w(j[X],F+1,z)})(m,0,[3,11]),m})()}function st(){this.jb=a(3),this.Wc=s([4,8],Xe),this.Xc=s([4,17],Xe)}function Ot(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function tr(){this.ld=this.La=this.dd=this.tc=0}function yr(){this.Na=this.la=0}function Zr(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function ea(){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 tr),this.Y=0,this.ya=Array(new ea),this.aa=0,this.l=new Ea}function Ta(){this.y=a(16),this.f=a(8),this.ea=a(8)}function ta(){this.cb=this.a=0,this.sc="",this.m=new ce,this.Od=new Ve,this.Kc=new Qe,this.ed=new Ot,this.Qa=new lt,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,ce),this.ia=0,this.pb=o(4,Zr),this.Pa=new st,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 yr),this.sb=0,this.wa=Array(new tr),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 ea),this.L=this.aa=0,this.gd=s([4,2],tr),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 xi(){var m=new ta;return m!=null&&(m.a=0,m.sc="OK",m.cb=0,m.Xb=0,yu||(yu=_h)),m}function Gr(m,w,j){return m.a==0&&(m.a=w,m.sc=j,m.cb=0),0}function bh(m,w,j){return 3<=j&&m[w+0]==157&&m[w+1]==1&&m[w+2]==42}function wh(m,w){if(m==null)return 0;if(m.a=0,m.sc="OK",w==null)return Gr(m,2,"null VP8Io passed to VP8GetHeaders()");var j=w.data,F=w.w,z=w.ha;if(4>z)return Gr(m,7,"Truncated header.");var Y=j[F+0]|j[F+1]<<8|j[F+2]<<16,X=m.Od;if(X.Rb=!(1&Y),X.td=Y>>1&7,X.yd=Y>>4&1,X.ub=Y>>5,3<X.td)return Gr(m,3,"Incorrect keyframe parameters.");if(!X.yd)return Gr(m,4,"Frame not displayable.");F+=3,z-=3;var te=m.Kc;if(X.Rb){if(7>z)return Gr(m,7,"cannot parse picture header");if(!bh(j,F,z))return Gr(m,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,m.za=te.c+15>>4,m.Ub=te.i+15>>4,w.width=te.c,w.height=te.i,w.Da=0,w.j=0,w.v=0,w.va=w.width,w.o=w.height,w.da=0,w.ib=w.width,w.hb=w.height,w.U=w.width,w.T=w.height,i((Y=m.Pa).jb,0,255,Y.jb.length),t((Y=m.Qa)!=null),Y.Cb=0,Y.Bb=0,Y.Fb=1,i(Y.Zb,0,0,Y.Zb.length),i(Y.Lb,0,0,Y.Lb)}if(X.ub>z)return Gr(m,7,"bad partition length");J(Y=m.m,j,F,X.ub),F+=X.ub,z-=X.ub,X.Rb&&(te.Ld=ae(Y),te.Kd=ae(Y)),te=m.Qa;var re,ue=m.Pa;if(t(Y!=null),t(te!=null),te.Cb=ae(Y),te.Cb){if(te.Bb=ae(Y),ae(Y)){for(te.Fb=ae(Y),re=0;4>re;++re)te.Zb[re]=ae(Y)?W(Y,7):0;for(re=0;4>re;++re)te.Lb[re]=ae(Y)?W(Y,6):0}if(te.Bb)for(re=0;3>re;++re)ue.jb[re]=ae(Y)?q(Y,8):255}else te.Bb=0;if(Y.Ka)return Gr(m,3,"cannot parse segment header");if((te=m.ed).zd=ae(Y),te.Tb=q(Y,6),te.wb=q(Y,3),te.Pc=ae(Y),te.Pc&&ae(Y)){for(ue=0;4>ue;++ue)ae(Y)&&(te.vd[ue]=W(Y,6));for(ue=0;4>ue;++ue)ae(Y)&&(te.od[ue]=W(Y,6))}if(m.L=te.Tb==0?0:te.zd?1:2,Y.Ka)return Gr(m,3,"cannot parse filter header");var ye=z;if(z=re=F,F=re+ye,te=ye,m.Xb=(1<<q(m.m,2))-1,ye<3*(ue=m.Xb))j=7;else{for(re+=3*ue,te-=3*ue,ye=0;ye<ue;++ye){var Oe=j[z+0]|j[z+1]<<8|j[z+2]<<16;Oe>te&&(Oe=te),J(m.Jc[+ye],j,re,Oe),re+=Oe,te-=Oe,z+=3}J(m.Jc[+ue],j,re,te),j=re<F?0:5}if(j!=0)return Gr(m,j,"cannot parse partitions");for(j=q(re=m.m,7),z=ae(re)?W(re,4):0,F=ae(re)?W(re,4):0,te=ae(re)?W(re,4):0,ue=ae(re)?W(re,4):0,re=ae(re)?W(re,4):0,ye=m.Qa,Oe=0;4>Oe;++Oe){if(ye.Cb){var Ce=ye.Zb[Oe];ye.Fb||(Ce+=j)}else{if(0<Oe){m.pb[Oe]=m.pb[0];continue}Ce=j}var Se=m.pb[Oe];Se.Sc[0]=v1[bi(Ce+z,127)],Se.Sc[1]=g1[bi(Ce+0,127)],Se.Eb[0]=2*v1[bi(Ce+F,127)],Se.Eb[1]=101581*g1[bi(Ce+te,127)]>>16,8>Se.Eb[1]&&(Se.Eb[1]=8),Se.Qc[0]=v1[bi(Ce+ue,117)],Se.Qc[1]=g1[bi(Ce+re,127)],Se.lc=Ce+re}if(!X.Rb)return Gr(m,4,"Not a key frame.");for(ae(Y),X=m.Pa,j=0;4>j;++j){for(z=0;8>z;++z)for(F=0;3>F;++F)for(te=0;11>te;++te)ue=ne(Y,ij[j][z][F][te])?q(Y,8):rj[j][z][F][te],X.Wc[j][z].Yb[F][te]=ue;for(z=0;17>z;++z)X.Xc[j][z]=X.Wc[j][aj[z]]}return m.kc=ae(Y),m.kc&&(m.Bd=q(Y,8)),m.cb=1}function _h(m,w,j,F,z,Y,X){var te=w[z].Yb[j];for(j=0;16>z;++z){if(!ne(m,te[j+0]))return z;for(;!ne(m,te[j+1]);)if(te=w[++z].Yb[0],j=0,z==16)return 16;var re=w[z+1].Yb;if(ne(m,te[j+2])){var ue=m,ye=0;if(ne(ue,(Ce=te)[(Oe=j)+3]))if(ne(ue,Ce[Oe+6])){for(te=0,Oe=2*(ye=ne(ue,Ce[Oe+8]))+(Ce=ne(ue,Ce[Oe+9+ye])),ye=0,Ce=ej[Oe];Ce[te];++te)ye+=ye+ne(ue,Ce[te]);ye+=3+(8<<Oe)}else ne(ue,Ce[Oe+7])?(ye=7+2*ne(ue,165),ye+=ne(ue,145)):ye=5+ne(ue,159);else ye=ne(ue,Ce[Oe+4])?3+ne(ue,Ce[Oe+5]):2;te=re[2]}else ye=1,te=re[1];re=X+tj[z],0>(ue=m).b&&fe(ue);var Oe,Ce=ue.b,Se=(Oe=ue.Ca>>1)-(ue.I>>Ce)>>31;--ue.b,ue.Ca+=Se,ue.Ca|=1,ue.I-=(Oe+1&Se)<<Ce,Y[re]=((ye^Se)-Se)*F[(0<z)+0]}return 16}function Kc(m){var w=m.rb[m.sb-1];w.la=0,w.Na=0,i(m.zc,0,0,m.zc.length),m.ja=0}function Gp(m,w){if(m==null)return 0;if(w==null)return Gr(m,2,"NULL VP8Io parameter in VP8Decode().");if(!m.cb&&!wh(m,w))return 0;if(t(m.cb),w.ac==null||w.ac(w)){w.ob&&(m.L=0);var j=Xh[m.L];if(m.L==2?(m.yb=0,m.zb=0):(m.yb=w.v-j>>4,m.zb=w.j-j>>4,0>m.yb&&(m.yb=0),0>m.zb&&(m.zb=0)),m.Va=w.o+15+j>>4,m.Hb=w.va+15+j>>4,m.Hb>m.za&&(m.Hb=m.za),m.Va>m.Ub&&(m.Va=m.Ub),0<m.L){var F=m.ed;for(j=0;4>j;++j){var z;if(m.Qa.Cb){var Y=m.Qa.Lb[j];m.Qa.Fb||(Y+=F.Tb)}else Y=F.Tb;for(z=0;1>=z;++z){var X=m.gd[j][z],te=Y;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 Gr(m,6,"Frame setup failed"),j=m.a;if(j=j==0){if(j){m.$c=0,0<m.Aa||(m.Ic=yj);e:{j=m.Ic,F=4*(re=m.za);var ue=32*re,ye=re+1,Oe=0<m.L?re*(0<m.Aa?2:1):0,Ce=(m.Aa==2?2:1)*re;if((X=F+832+(z=3*(16*j+Xh[m.L])/2*ue)+(Y=m.Fa!=null&&0<m.Fa.length?m.Kc.c*m.Kc.i:0))!=X)j=0;else{if(X>m.Vb){if(m.Vb=0,m.Ec=a(X),m.Fc=0,m.Ec==null){j=Gr(m,1,"no memory during frame initialization.");break e}m.Vb=X}X=m.Ec,te=m.Fc,m.Ac=X,m.Bc=te,te+=F,m.Gd=o(ue,Ta),m.Hd=0,m.rb=o(ye+1,yr),m.sb=1,m.wa=Oe?o(Oe,tr):null,m.Y=0,m.D.Nb=0,m.D.wa=m.wa,m.D.Y=m.Y,0<m.Aa&&(m.D.Y+=re),t(!0),m.oc=X,m.pc=te,te+=832,m.ya=o(Ce,ea),m.aa=0,m.D.ya=m.ya,m.D.aa=m.aa,m.Aa==2&&(m.D.aa+=re),m.R=16*re,m.B=8*re,re=(ue=Xh[m.L])*m.R,ue=ue/2*m.B,m.sa=X,m.ta=te+re,m.qa=m.sa,m.ra=m.ta+16*j*m.R+ue,m.Ha=m.qa,m.Ia=m.ra+8*j*m.B+ue,m.$c=0,te+=z,m.mb=Y?X:null,m.nb=Y?te:null,t(te+Y<=m.Fc+m.Vb),Kc(m),i(m.Ac,m.Bc,0,F),j=1}}if(j){if(w.ka=0,w.y=m.sa,w.O=m.ta,w.f=m.qa,w.N=m.ra,w.ea=m.Ha,w.Vd=m.Ia,w.fa=m.R,w.Rc=m.B,w.F=null,w.J=0,!qh){for(j=-255;255>=j;++j)cn[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)gu[112+j]=-16>j?-16:15<j?15:j;for(j=-255;510>=j;++j)Pl[255+j]=0>j?0:255<j?255:j;qh=1}Al=Kp,Ja=Vp,pu=Ah,Kn=Yp,Mi=Th,Vr=Sh,Tl=tu,$h=gs,mu=l1,bs=ru,ws=s1,Io=ml,_s=nu,El=Ih,Ss=Lh,Fo=Na,vu=Ya,Di=o1,aa[0]=Pa,aa[1]=Xp,aa[2]=e1,aa[3]=t1,aa[4]=Nh,aa[5]=dl,aa[6]=Oh,aa[7]=Zc,aa[8]=n1,aa[9]=r1,Ro[0]=Eh,Ro[1]=Zp,Ro[2]=Va,Ro[3]=fl,Ro[4]=Rn,Ro[5]=Qp,Ro[6]=Ph,Qa[0]=Oo,Qa[1]=Jp,Qa[2]=i1,Qa[3]=Qc,Qa[4]=vs,Qa[5]=a1,Qa[6]=eu,j=1}else j=0}j&&(j=(function(Se,ze){for(Se.M=0;Se.M<Se.Va;++Se.M){var Ie,xe=Se.Jc[Se.M&Se.Xb],be=Se.m,$e=Se;for(Ie=0;Ie<$e.za;++Ie){var He=be,qe=$e,ut=qe.Ac,it=qe.Bc+4*Ie,_t=qe.zc,ot=qe.ya[qe.aa+Ie];if(qe.Qa.Bb?ot.$b=ne(He,qe.Pa.jb[0])?2+ne(He,qe.Pa.jb[2]):ne(He,qe.Pa.jb[1]):ot.$b=0,qe.kc&&(ot.Ad=ne(He,qe.Bd)),ot.Za=!ne(He,145)+0,ot.Za){var Qt=ot.Ob,hr=0;for(qe=0;4>qe;++qe){var Kt,Ht=_t[0+qe];for(Kt=0;4>Kt;++Kt){Ht=nj[ut[it+Kt]][Ht];for(var Ar=w5[ne(He,Ht[0])];0<Ar;)Ar=w5[2*Ar+ne(He,Ht[Ar])];Ht=-Ar,ut[it+Kt]=Ht}n(Qt,hr,ut,it,4),hr+=4,_t[0+qe]=Ht}}else Ht=ne(He,156)?ne(He,128)?1:3:ne(He,163)?2:0,ot.Ob[0]=Ht,i(ut,it,Ht,4),i(_t,0,Ht,4);ot.Dd=ne(He,142)?ne(He,114)?ne(He,183)?1:3:2:0}if($e.m.Ka)return Gr(Se,7,"Premature end-of-partition0 encountered.");for(;Se.ja<Se.za;++Se.ja){if($e=xe,He=(be=Se).rb[be.sb-1],ut=be.rb[be.sb+be.ja],Ie=be.ya[be.aa+be.ja],it=be.kc?Ie.Ad:0)He.la=ut.la=0,Ie.Za||(He.Na=ut.Na=0),Ie.Hc=0,Ie.Gc=0,Ie.ia=0;else{var xr,Bt;if(He=ut,ut=$e,it=be.Pa.Xc,_t=be.ya[be.aa+be.ja],ot=be.pb[_t.$b],qe=_t.ad,Qt=0,hr=be.rb[be.sb-1],Ht=Kt=0,i(qe,Qt,0,384),_t.Za)var en=0,ci=it[3];else{Ar=a(16);var tn=He.Na+hr.Na;if(tn=yu(ut,it[1],tn,ot.Eb,0,Ar,0),He.Na=hr.Na=(0<tn)+0,1<tn)Al(Ar,0,qe,Qt);else{var ui=Ar[0]+3>>3;for(Ar=0;256>Ar;Ar+=16)qe[Qt+Ar]=ui}en=1,ci=it[0]}var dr=15&He.la,_i=15&hr.la;for(Ar=0;4>Ar;++Ar){var Si=1&_i;for(ui=Bt=0;4>ui;++ui)dr=dr>>1|(Si=(tn=yu(ut,ci,tn=Si+(1&dr),ot.Sc,en,qe,Qt))>en)<<7,Bt=Bt<<2|(3<tn?3:1<tn?2:qe[Qt+0]!=0),Qt+=16;dr>>=4,_i=_i>>1|Si<<7,Kt=(Kt<<8|Bt)>>>0}for(ci=dr,en=_i>>4,xr=0;4>xr;xr+=2){for(Bt=0,dr=He.la>>4+xr,_i=hr.la>>4+xr,Ar=0;2>Ar;++Ar){for(Si=1&_i,ui=0;2>ui;++ui)tn=Si+(1&dr),dr=dr>>1|(Si=0<(tn=yu(ut,it[2],tn,ot.Qc,0,qe,Qt)))<<3,Bt=Bt<<2|(3<tn?3:1<tn?2:qe[Qt+0]!=0),Qt+=16;dr>>=2,_i=_i>>1|Si<<5}Ht|=Bt<<4*xr,ci|=dr<<4<<xr,en|=(240&_i)<<xr}He.la=ci,hr.la=en,_t.Hc=Kt,_t.Gc=Ht,_t.ia=43690&Ht?0:ot.ia,it=!(Kt|Ht)}if(0<be.L&&(be.wa[be.Y+be.ja]=be.gd[Ie.$b][Ie.Za],be.wa[be.Y+be.ja].La|=!it),$e.Ka)return Gr(Se,7,"Premature end-of-file encountered.")}if(Kc(Se),be=ze,$e=1,Ie=(xe=Se).D,He=0<xe.L&&xe.M>=xe.zb&&xe.M<=xe.Va,xe.Aa==0)e:{if(Ie.M=xe.M,Ie.uc=He,cu(xe,Ie),$e=1,Ie=(Bt=xe.D).Nb,He=(Ht=Xh[xe.L])*xe.R,ut=Ht/2*xe.B,Ar=16*Ie*xe.R,ui=8*Ie*xe.B,it=xe.sa,_t=xe.ta-He+Ar,ot=xe.qa,qe=xe.ra-ut+ui,Qt=xe.Ha,hr=xe.Ia-ut+ui,_i=(dr=Bt.M)==0,Kt=dr>=xe.Va-1,xe.Aa==2&&cu(xe,Bt),Bt.uc)for(Si=(tn=xe).D.M,t(tn.D.uc),Bt=tn.yb;Bt<tn.Hb;++Bt){en=Bt,ci=Si;var gn=(En=($r=tn).D).Nb;xr=$r.R;var En=En.wa[En.Y+en],Xn=$r.sa,Ui=$r.ta+16*gn*xr+16*en,Ca=En.dd,yn=En.tc;if(yn!=0)if(t(3<=yn),$r.L==1)0<en&&Fo(Xn,Ui,xr,yn+4),En.La&&Di(Xn,Ui,xr,yn),0<ci&&Ss(Xn,Ui,xr,yn+4),En.La&&vu(Xn,Ui,xr,yn);else{var eo=$r.B,As=$r.qa,Nl=$r.ra+8*gn*eo+8*en,Do=$r.Ha,$r=$r.Ia+8*gn*eo+8*en;gn=En.ld,0<en&&($h(Xn,Ui,xr,yn+4,Ca,gn),bs(As,Nl,Do,$r,eo,yn+4,Ca,gn)),En.La&&(Io(Xn,Ui,xr,yn,Ca,gn),El(As,Nl,Do,$r,eo,yn,Ca,gn)),0<ci&&(Tl(Xn,Ui,xr,yn+4,Ca,gn),mu(As,Nl,Do,$r,eo,yn+4,Ca,gn)),En.La&&(ws(Xn,Ui,xr,yn,Ca,gn),_s(As,Nl,Do,$r,eo,yn,Ca,gn))}}if(xe.ia&&alert("todo:DitherRow"),be.put!=null){if(Bt=16*dr,dr=16*(dr+1),_i?(be.y=xe.sa,be.O=xe.ta+Ar,be.f=xe.qa,be.N=xe.ra+ui,be.ea=xe.Ha,be.W=xe.Ia+ui):(Bt-=Ht,be.y=it,be.O=_t,be.f=ot,be.N=qe,be.ea=Qt,be.W=hr),Kt||(dr-=Ht),dr>be.o&&(dr=be.o),be.F=null,be.J=null,xe.Fa!=null&&0<xe.Fa.length&&Bt<dr&&(be.J=su(xe,be,Bt,dr-Bt),be.F=xe.mb,be.F==null&&be.F.length==0)){$e=Gr(xe,3,"Could not decode alpha data.");break e}Bt<be.j&&(Ht=be.j-Bt,Bt=be.j,t(!(1&Ht)),be.O+=xe.R*Ht,be.N+=xe.B*(Ht>>1),be.W+=xe.B*(Ht>>1),be.F!=null&&(be.J+=be.width*Ht)),Bt<dr&&(be.O+=be.v,be.N+=be.v>>1,be.W+=be.v>>1,be.F!=null&&(be.J+=be.v),be.ka=Bt-be.j,be.U=be.va-be.v,be.T=dr-Bt,$e=be.put(be))}Ie+1!=xe.Ic||Kt||(n(xe.sa,xe.ta-He,it,_t+16*xe.R,He),n(xe.qa,xe.ra-ut,ot,qe+8*xe.B,ut),n(xe.Ha,xe.Ia-ut,Qt,hr+8*xe.B,ut))}if(!$e)return Gr(Se,6,"Output aborted.")}return 1})(m,w)),w.bc!=null&&w.bc(w),j&=1}return j?(m.cb=0,j):0}function ra(m,w,j,F,z){z=m[w+j+32*F]+(z>>3),m[w+j+32*F]=-256&z?0>z?0:255:z}function ul(m,w,j,F,z,Y){ra(m,w,0,j,F+z),ra(m,w,1,j,F+Y),ra(m,w,2,j,F-Y),ra(m,w,3,j,F-z)}function oi(m){return(20091*m>>16)+m}function Xc(m,w,j,F){var z,Y=0,X=a(16);for(z=0;4>z;++z){var te=m[w+0]+m[w+8],re=m[w+0]-m[w+8],ue=(35468*m[w+4]>>16)-oi(m[w+12]),ye=oi(m[w+4])+(35468*m[w+12]>>16);X[Y+0]=te+ye,X[Y+1]=re+ue,X[Y+2]=re-ue,X[Y+3]=te-ye,Y+=4,w++}for(z=Y=0;4>z;++z)te=(m=X[Y+0]+4)+X[Y+8],re=m-X[Y+8],ue=(35468*X[Y+4]>>16)-oi(X[Y+12]),ra(j,F,0,0,te+(ye=oi(X[Y+4])+(35468*X[Y+12]>>16))),ra(j,F,1,0,re+ue),ra(j,F,2,0,re-ue),ra(j,F,3,0,te-ye),Y++,F+=32}function Sh(m,w,j,F){var z=m[w+0]+4,Y=35468*m[w+4]>>16,X=oi(m[w+4]),te=35468*m[w+1]>>16;ul(j,F,0,z+X,m=oi(m[w+1]),te),ul(j,F,1,z+Y,m,te),ul(j,F,2,z-Y,m,te),ul(j,F,3,z-X,m,te)}function Vp(m,w,j,F,z){Xc(m,w,j,F),z&&Xc(m,w+16,j,F+4)}function Ah(m,w,j,F){Ja(m,w+0,j,F,1),Ja(m,w+32,j,F+128,1)}function Yp(m,w,j,F){var z;for(m=m[w+0]+4,z=0;4>z;++z)for(w=0;4>w;++w)ra(j,F,w,z,m)}function Th(m,w,j,F){m[w+0]&&Kn(m,w+0,j,F),m[w+16]&&Kn(m,w+16,j,F+4),m[w+32]&&Kn(m,w+32,j,F+128),m[w+48]&&Kn(m,w+48,j,F+128+4)}function Kp(m,w,j,F){var z,Y=a(16);for(z=0;4>z;++z){var X=m[w+0+z]+m[w+12+z],te=m[w+4+z]+m[w+8+z],re=m[w+4+z]-m[w+8+z],ue=m[w+0+z]-m[w+12+z];Y[0+z]=X+te,Y[8+z]=X-te,Y[4+z]=ue+re,Y[12+z]=ue-re}for(z=0;4>z;++z)X=(m=Y[0+4*z]+3)+Y[3+4*z],te=Y[1+4*z]+Y[2+4*z],re=Y[1+4*z]-Y[2+4*z],ue=m-Y[3+4*z],j[F+0]=X+te>>3,j[F+16]=ue+re>>3,j[F+32]=X-te>>3,j[F+48]=ue-re>>3,F+=64}function Jc(m,w,j){var F,z=w-32,Y=wi,X=255-m[z-1];for(F=0;F<j;++F){var te,re=Y,ue=X+m[w-1];for(te=0;te<j;++te)m[w+te]=re[ue+m[z+te]];w+=32}}function Xp(m,w){Jc(m,w,4)}function Jp(m,w){Jc(m,w,8)}function Zp(m,w){Jc(m,w,16)}function Va(m,w){var j;for(j=0;16>j;++j)n(m,w+32*j,m,w-32,16)}function fl(m,w){var j;for(j=16;0<j;--j)i(m,w,m[w-1],16),w+=32}function hl(m,w,j){var F;for(F=0;16>F;++F)i(w,j+32*F,m,16)}function Eh(m,w){var j,F=16;for(j=0;16>j;++j)F+=m[w-1+32*j]+m[w+j-32];hl(F>>5,m,w)}function Rn(m,w){var j,F=8;for(j=0;16>j;++j)F+=m[w-1+32*j];hl(F>>4,m,w)}function Qp(m,w){var j,F=8;for(j=0;16>j;++j)F+=m[w+j-32];hl(F>>4,m,w)}function Ph(m,w){hl(128,m,w)}function jt(m,w,j){return m+2*w+j+2>>2}function e1(m,w){var j,F=w-32;for(F=new Uint8Array([jt(m[F-1],m[F+0],m[F+1]),jt(m[F+0],m[F+1],m[F+2]),jt(m[F+1],m[F+2],m[F+3]),jt(m[F+2],m[F+3],m[F+4])]),j=0;4>j;++j)n(m,w+32*j,F,0,F.length)}function t1(m,w){var j=m[w-1],F=m[w-1+32],z=m[w-1+64],Y=m[w-1+96];ve(m,w+0,16843009*jt(m[w-1-32],j,F)),ve(m,w+32,16843009*jt(j,F,z)),ve(m,w+64,16843009*jt(F,z,Y)),ve(m,w+96,16843009*jt(z,Y,Y))}function Pa(m,w){var j,F=4;for(j=0;4>j;++j)F+=m[w+j-32]+m[w-1+32*j];for(F>>=3,j=0;4>j;++j)i(m,w+32*j,F,4)}function Nh(m,w){var j=m[w-1+0],F=m[w-1+32],z=m[w-1+64],Y=m[w-1-32],X=m[w+0-32],te=m[w+1-32],re=m[w+2-32],ue=m[w+3-32];m[w+0+96]=jt(F,z,m[w-1+96]),m[w+1+96]=m[w+0+64]=jt(j,F,z),m[w+2+96]=m[w+1+64]=m[w+0+32]=jt(Y,j,F),m[w+3+96]=m[w+2+64]=m[w+1+32]=m[w+0+0]=jt(X,Y,j),m[w+3+64]=m[w+2+32]=m[w+1+0]=jt(te,X,Y),m[w+3+32]=m[w+2+0]=jt(re,te,X),m[w+3+0]=jt(ue,re,te)}function Oh(m,w){var j=m[w+1-32],F=m[w+2-32],z=m[w+3-32],Y=m[w+4-32],X=m[w+5-32],te=m[w+6-32],re=m[w+7-32];m[w+0+0]=jt(m[w+0-32],j,F),m[w+1+0]=m[w+0+32]=jt(j,F,z),m[w+2+0]=m[w+1+32]=m[w+0+64]=jt(F,z,Y),m[w+3+0]=m[w+2+32]=m[w+1+64]=m[w+0+96]=jt(z,Y,X),m[w+3+32]=m[w+2+64]=m[w+1+96]=jt(Y,X,te),m[w+3+64]=m[w+2+96]=jt(X,te,re),m[w+3+96]=jt(te,re,re)}function dl(m,w){var j=m[w-1+0],F=m[w-1+32],z=m[w-1+64],Y=m[w-1-32],X=m[w+0-32],te=m[w+1-32],re=m[w+2-32],ue=m[w+3-32];m[w+0+0]=m[w+1+64]=Y+X+1>>1,m[w+1+0]=m[w+2+64]=X+te+1>>1,m[w+2+0]=m[w+3+64]=te+re+1>>1,m[w+3+0]=re+ue+1>>1,m[w+0+96]=jt(z,F,j),m[w+0+64]=jt(F,j,Y),m[w+0+32]=m[w+1+96]=jt(j,Y,X),m[w+1+32]=m[w+2+96]=jt(Y,X,te),m[w+2+32]=m[w+3+96]=jt(X,te,re),m[w+3+32]=jt(te,re,ue)}function Zc(m,w){var j=m[w+0-32],F=m[w+1-32],z=m[w+2-32],Y=m[w+3-32],X=m[w+4-32],te=m[w+5-32],re=m[w+6-32],ue=m[w+7-32];m[w+0+0]=j+F+1>>1,m[w+1+0]=m[w+0+64]=F+z+1>>1,m[w+2+0]=m[w+1+64]=z+Y+1>>1,m[w+3+0]=m[w+2+64]=Y+X+1>>1,m[w+0+32]=jt(j,F,z),m[w+1+32]=m[w+0+96]=jt(F,z,Y),m[w+2+32]=m[w+1+96]=jt(z,Y,X),m[w+3+32]=m[w+2+96]=jt(Y,X,te),m[w+3+64]=jt(X,te,re),m[w+3+96]=jt(te,re,ue)}function r1(m,w){var j=m[w-1+0],F=m[w-1+32],z=m[w-1+64],Y=m[w-1+96];m[w+0+0]=j+F+1>>1,m[w+2+0]=m[w+0+32]=F+z+1>>1,m[w+2+32]=m[w+0+64]=z+Y+1>>1,m[w+1+0]=jt(j,F,z),m[w+3+0]=m[w+1+32]=jt(F,z,Y),m[w+3+32]=m[w+1+64]=jt(z,Y,Y),m[w+3+64]=m[w+2+64]=m[w+0+96]=m[w+1+96]=m[w+2+96]=m[w+3+96]=Y}function n1(m,w){var j=m[w-1+0],F=m[w-1+32],z=m[w-1+64],Y=m[w-1+96],X=m[w-1-32],te=m[w+0-32],re=m[w+1-32],ue=m[w+2-32];m[w+0+0]=m[w+2+32]=j+X+1>>1,m[w+0+32]=m[w+2+64]=F+j+1>>1,m[w+0+64]=m[w+2+96]=z+F+1>>1,m[w+0+96]=Y+z+1>>1,m[w+3+0]=jt(te,re,ue),m[w+2+0]=jt(X,te,re),m[w+1+0]=m[w+3+32]=jt(j,X,te),m[w+1+32]=m[w+3+64]=jt(F,j,X),m[w+1+64]=m[w+3+96]=jt(z,F,j),m[w+1+96]=jt(Y,z,F)}function i1(m,w){var j;for(j=0;8>j;++j)n(m,w+32*j,m,w-32,8)}function Qc(m,w){var j;for(j=0;8>j;++j)i(m,w,m[w-1],8),w+=32}function ms(m,w,j){var F;for(F=0;8>F;++F)i(w,j+32*F,m,8)}function Oo(m,w){var j,F=8;for(j=0;8>j;++j)F+=m[w+j-32]+m[w-1+32*j];ms(F>>4,m,w)}function a1(m,w){var j,F=4;for(j=0;8>j;++j)F+=m[w+j-32];ms(F>>3,m,w)}function vs(m,w){var j,F=4;for(j=0;8>j;++j)F+=m[w-1+32*j];ms(F>>3,m,w)}function eu(m,w){ms(128,m,w)}function pl(m,w,j){var F=m[w-j],z=m[w+0],Y=3*(z-F)+f1[1020+m[w-2*j]-m[w+j]],X=Uh[112+(Y+4>>3)];m[w-j]=wi[255+F+Uh[112+(Y+3>>3)]],m[w+0]=wi[255+z-X]}function Ch(m,w,j,F){var z=m[w+0],Y=m[w+j];return $i[255+m[w-2*j]-m[w-j]]>F||$i[255+Y-z]>F}function jh(m,w,j,F){return 4*$i[255+m[w-j]-m[w+0]]+$i[255+m[w-2*j]-m[w+j]]<=F}function kh(m,w,j,F,z){var Y=m[w-3*j],X=m[w-2*j],te=m[w-j],re=m[w+0],ue=m[w+j],ye=m[w+2*j],Oe=m[w+3*j];return 4*$i[255+te-re]+$i[255+X-ue]>F?0:$i[255+m[w-4*j]-Y]<=z&&$i[255+Y-X]<=z&&$i[255+X-te]<=z&&$i[255+Oe-ye]<=z&&$i[255+ye-ue]<=z&&$i[255+ue-re]<=z}function Lh(m,w,j,F){var z=2*F+1;for(F=0;16>F;++F)jh(m,w+F,j,z)&&pl(m,w+F,j)}function Na(m,w,j,F){var z=2*F+1;for(F=0;16>F;++F)jh(m,w+F*j,1,z)&&pl(m,w+F*j,1)}function Ya(m,w,j,F){var z;for(z=3;0<z;--z)Lh(m,w+=4*j,j,F)}function o1(m,w,j,F){var z;for(z=3;0<z;--z)Na(m,w+=4,j,F)}function Co(m,w,j,F,z,Y,X,te){for(Y=2*Y+1;0<z--;){if(kh(m,w,j,Y,X))if(Ch(m,w,j,te))pl(m,w,j);else{var re=m,ue=w,ye=j,Oe=re[ue-2*ye],Ce=re[ue-ye],Se=re[ue+0],ze=re[ue+ye],Ie=re[ue+2*ye],xe=27*($e=f1[1020+3*(Se-Ce)+f1[1020+Oe-ze]])+63>>7,be=18*$e+63>>7,$e=9*$e+63>>7;re[ue-3*ye]=wi[255+re[ue-3*ye]+$e],re[ue-2*ye]=wi[255+Oe+be],re[ue-ye]=wi[255+Ce+xe],re[ue+0]=wi[255+Se-xe],re[ue+ye]=wi[255+ze-be],re[ue+2*ye]=wi[255+Ie-$e]}w+=F}}function na(m,w,j,F,z,Y,X,te){for(Y=2*Y+1;0<z--;){if(kh(m,w,j,Y,X))if(Ch(m,w,j,te))pl(m,w,j);else{var re=m,ue=w,ye=j,Oe=re[ue-ye],Ce=re[ue+0],Se=re[ue+ye],ze=Uh[112+((Ie=3*(Ce-Oe))+4>>3)],Ie=Uh[112+(Ie+3>>3)],xe=ze+1>>1;re[ue-2*ye]=wi[255+re[ue-2*ye]+xe],re[ue-ye]=wi[255+Oe+Ie],re[ue+0]=wi[255+Ce-ze],re[ue+ye]=wi[255+Se-xe]}w+=F}}function tu(m,w,j,F,z,Y){Co(m,w,j,1,16,F,z,Y)}function gs(m,w,j,F,z,Y){Co(m,w,1,j,16,F,z,Y)}function s1(m,w,j,F,z,Y){var X;for(X=3;0<X;--X)na(m,w+=4*j,j,1,16,F,z,Y)}function ml(m,w,j,F,z,Y){var X;for(X=3;0<X;--X)na(m,w+=4,1,j,16,F,z,Y)}function l1(m,w,j,F,z,Y,X,te){Co(m,w,z,1,8,Y,X,te),Co(j,F,z,1,8,Y,X,te)}function ru(m,w,j,F,z,Y,X,te){Co(m,w,1,z,8,Y,X,te),Co(j,F,1,z,8,Y,X,te)}function nu(m,w,j,F,z,Y,X,te){na(m,w+4*z,z,1,8,Y,X,te),na(j,F+4*z,z,1,8,Y,X,te)}function Ih(m,w,j,F,z,Y,X,te){na(m,w+4,1,z,8,Y,X,te),na(j,F+4,1,z,8,Y,X,te)}function vl(){this.ba=new Sr,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Et,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function iu(){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 au(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Fh(){this.ua=0,this.Wa=new le,this.vb=new le,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new U,this.yc=new P}function c1(){this.xb=this.a=0,this.l=new Ea,this.ca=new Sr,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 Fh,this.ab=0,this.gc=o(4,au),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 ys(m,w,j,F,z,Y,X){for(m=m==null?0:m[w+0],w=0;w<X;++w)z[Y+w]=m+j[F+w]&255,m=z[Y+w]}function ou(m,w,j,F,z,Y,X){var te;if(m==null)ys(null,null,j,F,z,Y,X);else for(te=0;te<X;++te)z[Y+te]=m[w+te]+j[F+te]&255}function jo(m,w,j,F,z,Y,X){if(m==null)ys(null,null,j,F,z,Y,X);else{var te,re=m[w+0],ue=re,ye=re;for(te=0;te<X;++te)ue=ye+(re=m[w+te])-ue,ye=j[F+te]+(-256&ue?0>ue?0:255:ue)&255,ue=re,z[Y+te]=ye}}function su(m,w,j,F){var z=w.width,Y=w.o;if(t(m!=null&&w!=null),0>j||0>=F||j+F>Y)return null;if(!m.Cc){if(m.ga==null){var X;if(m.ga=new gl,(X=m.ga==null)||(X=w.width*w.o,t(m.Gb.length==0),m.Gb=a(X),m.Uc=0,m.Gb==null?X=0:(m.mb=m.Gb,m.nb=m.Uc,m.rc=null,X=1),X=!X),!X){X=m.ga;var te=m.Fa,re=m.P,ue=m.qc,ye=m.mb,Oe=m.nb,Ce=re+1,Se=ue-1,ze=X.l;if(t(te!=null&&ye!=null&&w!=null),Mo[0]=null,Mo[1]=ys,Mo[2]=ou,Mo[3]=jo,X.ca=ye,X.tb=Oe,X.c=w.width,X.i=w.height,t(0<X.c&&0<X.i),1>=ue)w=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)w=0;else if(ze.put=Ii,ze.ac=ln,ze.bc=Fi,ze.ma=X,ze.width=w.width,ze.height=w.height,ze.Da=w.Da,ze.v=w.v,ze.va=w.va,ze.j=w.j,ze.o=w.o,X.$a)e:{t(X.$a==1),w=Le();t:for(;;){if(w==null){w=0;break e}if(t(X!=null),X.mc=w,w.c=X.c,w.i=X.i,w.l=X.l,w.l.ma=X,w.l.width=X.c,w.l.height=X.i,w.a=0,ee(w.m,te,Ce,Se),!Pe(X.c,X.i,1,w,null)||(w.ab==1&&w.gc[0].hc==3&&ie(w.s)?(X.ic=1,te=w.c*w.i,w.Ta=null,w.Ua=0,w.V=a(te),w.Ba=0,w.V==null?(w.a=1,w=0):w=1):(X.ic=0,w=je(w,X.c)),!w))break t;w=1;break e}X.mc=null,w=0}else w=Se>=X.c*X.i;X=!w}if(X)return null;m.ga.Lc!=1?m.Ga=0:F=Y-j}t(m.ga!=null),t(j+F<=Y);e:{if(w=(te=m.ga).c,Y=te.l.o,te.$a==0){if(Ce=m.rc,Se=m.Vc,ze=m.Fa,re=m.P+1+j*w,ue=m.mb,ye=m.nb+j*w,t(re<=m.P+m.qc),te.Z!=0)for(t(Mo[te.Z]!=null),X=0;X<F;++X)Mo[te.Z](Ce,Se,ze,re,ue,ye,w),Ce=ue,Se=ye,ye+=w,re+=w;else for(X=0;X<F;++X)n(ue,ye,ze,re,w),Ce=ue,Se=ye,ye+=w,re+=w;m.rc=Ce,m.Vc=Se}else{if(t(te.mc!=null),w=j+F,t((X=te.mc)!=null),t(w<=X.i),X.C>=w)w=1;else if(te.ic||Te(),te.ic){te=X.V,Ce=X.Ba,Se=X.c;var Ie=X.i,xe=(ze=1,re=X.$/Se,ue=X.$%Se,ye=X.m,Oe=X.s,X.$),be=Se*Ie,$e=Se*w,He=Oe.wc,qe=xe<$e?Dr(Oe,ue,re):null;t(xe<=be),t(w<=Ie),t(ie(Oe));t:for(;;){for(;!ye.h&&xe<$e;){if(ue&He||(qe=Dr(Oe,ue,re)),t(qe!=null),G(ye),256>(Ie=Fn(qe.G[0],qe.H[0],ye)))te[Ce+xe]=Ie,++xe,++ue>=Se&&(ue=0,++re<=w&&!(re%16)&&he(X,re));else{if(!(280>Ie)){ze=0;break t}Ie=yi(Ie-256,ye);var ut,it=Fn(qe.G[4],qe.H[4],ye);if(G(ye),!(xe>=(it=ai(Se,it=yi(it,ye)))&&be-xe>=Ie)){ze=0;break t}for(ut=0;ut<Ie;++ut)te[Ce+xe+ut]=te[Ce+xe+ut-it];for(xe+=Ie,ue+=Ie;ue>=Se;)ue-=Se,++re<=w&&!(re%16)&&he(X,re);xe<$e&&ue&He&&(qe=Dr(Oe,ue,re))}t(ye.h==R(ye))}he(X,re>w?w:re);break t}!ze||ye.h&&xe<be?(ze=0,X.a=ye.h?5:3):X.$=xe,w=ze}else w=pe(X,X.V,X.Ba,X.c,X.i,w,ke);if(!w){F=0;break e}}j+F>=Y&&(m.Cc=1),F=1}if(!F)return null;if(m.Cc&&((F=m.ga)!=null&&(F.mc=null),m.ga=null,0<m.Ga))return alert("todo:WebPDequantizeLevels"),null}return m.nb+j*z}function E(m,w,j,F,z,Y){for(;0<z--;){var X,te=m,re=w+(j?1:0),ue=m,ye=w+(j?0:3);for(X=0;X<F;++X){var Oe=ue[ye+4*X];Oe!=255&&(Oe*=32897,te[re+4*X+0]=te[re+4*X+0]*Oe>>23,te[re+4*X+1]=te[re+4*X+1]*Oe>>23,te[re+4*X+2]=te[re+4*X+2]*Oe>>23)}w+=Y}}function H(m,w,j,F,z){for(;0<F--;){var Y;for(Y=0;Y<j;++Y){var X=m[w+2*Y+0],te=15&(ue=m[w+2*Y+1]),re=4369*te,ue=(240&ue|ue>>4)*re>>16;m[w+2*Y+0]=(240&X|X>>4)*re>>16&240|(15&X|X<<4)*re>>16>>4&15,m[w+2*Y+1]=240&ue|te}w+=z}}function me(m,w,j,F,z,Y,X,te){var re,ue,ye=255;for(ue=0;ue<z;++ue){for(re=0;re<F;++re){var Oe=m[w+re];Y[X+4*re]=Oe,ye&=Oe}w+=j,X+=te}return ye!=255}function ge(m,w,j,F,z){var Y;for(Y=0;Y<z;++Y)j[F+Y]=m[w+Y]>>8}function Te(){Bi=E,Pr=H,Nr=me,Yr=ge}function Re(m,w,j){k[m]=function(F,z,Y,X,te,re,ue,ye,Oe,Ce,Se,ze,Ie,xe,be,$e,He){var qe,ut=He-1>>1,it=te[re+0]|ue[ye+0]<<16,_t=Oe[Ce+0]|Se[ze+0]<<16;t(F!=null);var ot=3*it+_t+131074>>2;for(w(F[z+0],255&ot,ot>>16,Ie,xe),Y!=null&&(ot=3*_t+it+131074>>2,w(Y[X+0],255&ot,ot>>16,be,$e)),qe=1;qe<=ut;++qe){var Qt=te[re+qe]|ue[ye+qe]<<16,hr=Oe[Ce+qe]|Se[ze+qe]<<16,Kt=it+Qt+_t+hr+524296,Ht=Kt+2*(Qt+_t)>>3;ot=Ht+it>>1,it=(Kt=Kt+2*(it+hr)>>3)+Qt>>1,w(F[z+2*qe-1],255&ot,ot>>16,Ie,xe+(2*qe-1)*j),w(F[z+2*qe-0],255&it,it>>16,Ie,xe+(2*qe-0)*j),Y!=null&&(ot=Kt+_t>>1,it=Ht+hr>>1,w(Y[X+2*qe-1],255&ot,ot>>16,be,$e+(2*qe-1)*j),w(Y[X+2*qe+0],255&it,it>>16,be,$e+(2*qe+0)*j)),it=Qt,_t=hr}1&He||(ot=3*it+_t+131074>>2,w(F[z+He-1],255&ot,ot>>16,Ie,xe+(He-1)*j),Y!=null&&(ot=3*_t+it+131074>>2,w(Y[X+He-1],255&ot,ot>>16,be,$e+(He-1)*j)))}}function Ge(){qi[zh]=sj,qi[Wh]=S5,qi[y5]=lj,qi[Hh]=A5,qi[Gh]=T5,qi[h1]=E5,qi[x5]=cj,qi[d1]=S5,qi[p1]=A5,qi[Vh]=T5,qi[m1]=E5}function ct(m){return m&-16384?0>m?0:255:m>>uj}function vt(m,w){return ct((19077*m>>8)+(26149*w>>8)-14234)}function Mt(m,w,j){return ct((19077*m>>8)-(6419*w>>8)-(13320*j>>8)+8708)}function Lt(m,w){return ct((19077*m>>8)+(33050*w>>8)-17685)}function Gt(m,w,j,F,z){F[z+0]=vt(m,j),F[z+1]=Mt(m,w,j),F[z+2]=Lt(m,w)}function Rr(m,w,j,F,z){F[z+0]=Lt(m,w),F[z+1]=Mt(m,w,j),F[z+2]=vt(m,j)}function Br(m,w,j,F,z){var Y=Mt(m,w,j);w=Y<<3&224|Lt(m,w)>>3,F[z+0]=248&vt(m,j)|Y>>5,F[z+1]=w}function Qr(m,w,j,F,z){var Y=240&Lt(m,w)|15;F[z+0]=240&vt(m,j)|Mt(m,w,j)>>4,F[z+1]=Y}function Mn(m,w,j,F,z){F[z+0]=255,Gt(m,w,j,F,z+1)}function vn(m,w,j,F,z){Rr(m,w,j,F,z),F[z+3]=255}function ia(m,w,j,F,z){Gt(m,w,j,F,z),F[z+3]=255}function bi(m,w){return 0>m?0:m>w?w:m}function Oa(m,w,j){k[m]=function(F,z,Y,X,te,re,ue,ye,Oe){for(var Ce=ye+(-2&Oe)*j;ye!=Ce;)w(F[z+0],Y[X+0],te[re+0],ue,ye),w(F[z+1],Y[X+0],te[re+0],ue,ye+j),z+=2,++X,++re,ye+=2*j;1&Oe&&w(F[z+0],Y[X+0],te[re+0],ue,ye)}}function Rh(m,w,j){return j==0?m==0?w==0?6:5:w==0?4:0:j}function lu(m,w,j,F,z){switch(m>>>30){case 3:Ja(w,j,F,z,0);break;case 2:Vr(w,j,F,z);break;case 1:Kn(w,j,F,z)}}function cu(m,w){var j,F,z=w.M,Y=w.Nb,X=m.oc,te=m.pc+40,re=m.oc,ue=m.pc+584,ye=m.oc,Oe=m.pc+600;for(j=0;16>j;++j)X[te+32*j-1]=129;for(j=0;8>j;++j)re[ue+32*j-1]=129,ye[Oe+32*j-1]=129;for(0<z?X[te-1-32]=re[ue-1-32]=ye[Oe-1-32]=129:(i(X,te-32-1,127,21),i(re,ue-32-1,127,9),i(ye,Oe-32-1,127,9)),F=0;F<m.za;++F){var Ce=w.ya[w.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,ue+32*j-4,re,ue+32*j+4,4),n(ye,Oe+32*j-4,ye,Oe+32*j+4,4)}var Se=m.Gd,ze=m.Hd+F,Ie=Ce.ad,xe=Ce.Hc;if(0<z&&(n(X,te-32,Se[ze].y,0,16),n(re,ue-32,Se[ze].f,0,8),n(ye,Oe-32,Se[ze].ea,0,8)),Ce.Za){var be=X,$e=te-32+16;for(0<z&&(F>=m.za-1?i(be,$e,Se[ze].y[15],4):n(be,$e,Se[ze+1].y,0,4)),j=0;4>j;j++)be[$e+128+j]=be[$e+256+j]=be[$e+384+j]=be[$e+0+j];for(j=0;16>j;++j,xe<<=2)be=X,$e=te+N5[j],aa[Ce.Ob[j]](be,$e),lu(xe,Ie,16*+j,be,$e)}else if(be=Rh(F,z,Ce.Ob[0]),Ro[be](X,te),xe!=0)for(j=0;16>j;++j,xe<<=2)lu(xe,Ie,16*+j,X,te+N5[j]);for(j=Ce.Gc,be=Rh(F,z,Ce.Dd),Qa[be](re,ue),Qa[be](ye,Oe),xe=Ie,be=re,$e=ue,255&(Ce=j>>0)&&(170&Ce?pu(xe,256,be,$e):Mi(xe,256,be,$e)),Ce=ye,xe=Oe,255&(j>>=8)&&(170&j?pu(Ie,320,Ce,xe):Mi(Ie,320,Ce,xe)),z<m.Ub-1&&(n(Se[ze].y,0,X,te+480,16),n(Se[ze].f,0,re,ue+224,8),n(Se[ze].ea,0,ye,Oe+224,8)),j=8*Y*m.B,Se=m.sa,ze=m.ta+16*F+16*Y*m.R,Ie=m.qa,Ce=m.ra+8*F+j,xe=m.Ha,be=m.Ia+8*F+j,j=0;16>j;++j)n(Se,ze+j*m.R,X,te+32*j,16);for(j=0;8>j;++j)n(Ie,Ce+j*m.B,re,ue+32*j,8),n(xe,be+j*m.B,ye,Oe+32*j,8)}}function yl(m,w,j,F,z,Y,X,te,re){var ue=[0],ye=[0],Oe=0,Ce=re!=null?re.kd:0,Se=re??new iu;if(m==null||12>j)return 7;Se.data=m,Se.w=w,Se.ha=j,w=[w],j=[j],Se.gb=[Se.gb];e:{var ze=w,Ie=j,xe=Se.gb;if(t(m!=null),t(Ie!=null),t(xe!=null),xe[0]=0,12<=Ie[0]&&!r(m,ze[0],"RIFF")){if(r(m,ze[0]+8,"WEBP")){xe=3;break e}var be=Fe(m,ze[0]+4);if(12>be||4294967286<be){xe=3;break e}if(Ce&&be>Ie[0]-8){xe=7;break e}xe[0]=be,ze[0]+=12,Ie[0]-=12}xe=0}if(xe!=0)return xe;for(be=0<Se.gb[0],j=j[0];;){e:{var $e=m;Ie=w,xe=j;var He=ue,qe=ye,ut=ze=[0];if((ot=Oe=[Oe])[0]=0,8>xe[0])xe=7;else{if(!r($e,Ie[0],"VP8X")){if(Fe($e,Ie[0]+4)!=10){xe=3;break e}if(18>xe[0]){xe=7;break e}var it=Fe($e,Ie[0]+8),_t=1+se($e,Ie[0]+12);if(2147483648<=_t*($e=1+se($e,Ie[0]+15))){xe=3;break e}ut!=null&&(ut[0]=it),He!=null&&(He[0]=_t),qe!=null&&(qe[0]=$e),Ie[0]+=18,xe[0]-=18,ot[0]=1}xe=0}}if(Oe=Oe[0],ze=ze[0],xe!=0)return xe;if(Ie=!!(2&ze),!be&&Oe)return 3;if(Y!=null&&(Y[0]=!!(16&ze)),X!=null&&(X[0]=Ie),te!=null&&(te[0]=0),X=ue[0],ze=ye[0],Oe&&Ie&&re==null){xe=0;break}if(4>j){xe=7;break}if(be&&Oe||!be&&!Oe&&!r(m,w[0],"ALPH")){j=[j],Se.na=[Se.na],Se.P=[Se.P],Se.Sa=[Se.Sa];e:{it=m,xe=w,be=j;var ot=Se.gb;He=Se.na,qe=Se.P,ut=Se.Sa,_t=22,t(it!=null),t(be!=null),$e=xe[0];var Qt=be[0];for(t(He!=null),t(ut!=null),He[0]=null,qe[0]=null,ut[0]=0;;){if(xe[0]=$e,be[0]=Qt,8>Qt){xe=7;break e}var hr=Fe(it,$e+4);if(4294967286<hr){xe=3;break e}var Kt=8+hr+1&-2;if(_t+=Kt,0<ot&&_t>ot){xe=3;break e}if(!r(it,$e,"VP8 ")||!r(it,$e,"VP8L")){xe=0;break e}if(Qt[0]<Kt){xe=7;break e}r(it,$e,"ALPH")||(He[0]=it,qe[0]=$e+8,ut[0]=hr),$e+=Kt,Qt-=Kt}}if(j=j[0],Se.na=Se.na[0],Se.P=Se.P[0],Se.Sa=Se.Sa[0],xe!=0)break}j=[j],Se.Ja=[Se.Ja],Se.xa=[Se.xa];e:if(ot=m,xe=w,be=j,He=Se.gb[0],qe=Se.Ja,ut=Se.xa,it=xe[0],$e=!r(ot,it,"VP8 "),_t=!r(ot,it,"VP8L"),t(ot!=null),t(be!=null),t(qe!=null),t(ut!=null),8>be[0])xe=7;else{if($e||_t){if(ot=Fe(ot,it+4),12<=He&&ot>He-12){xe=3;break e}if(Ce&&ot>be[0]-8){xe=7;break e}qe[0]=ot,xe[0]+=8,be[0]-=8,ut[0]=_t}else ut[0]=5<=be[0]&&ot[it+0]==47&&!(ot[it+4]>>5),qe[0]=be[0];xe=0}if(j=j[0],Se.Ja=Se.Ja[0],Se.xa=Se.xa[0],w=w[0],xe!=0)break;if(4294967286<Se.Ja)return 3;if(te==null||Ie||(te[0]=Se.xa?2:1),X=[X],ze=[ze],Se.xa){if(5>j){xe=7;break}te=X,Ce=ze,Ie=Y,m==null||5>j?m=0:5<=j&&m[w+0]==47&&!(m[w+4]>>5)?(be=[0],ot=[0],He=[0],ee(qe=new N,m,w,j),wt(qe,be,ot,He)?(te!=null&&(te[0]=be[0]),Ce!=null&&(Ce[0]=ot[0]),Ie!=null&&(Ie[0]=He[0]),m=1):m=0):m=0}else{if(10>j){xe=7;break}te=ze,m==null||10>j||!bh(m,w+3,j-3)?m=0:(Ce=m[w+0]|m[w+1]<<8|m[w+2]<<16,Ie=16383&(m[w+7]<<8|m[w+6]),m=16383&(m[w+9]<<8|m[w+8]),1&Ce||3<(Ce>>1&7)||!(Ce>>4&1)||Ce>>5>=Se.Ja||!Ie||!m?m=0:(X&&(X[0]=Ie),te&&(te[0]=m),m=1))}if(!m||(X=X[0],ze=ze[0],Oe&&(ue[0]!=X||ye[0]!=ze)))return 3;re!=null&&(re[0]=Se,re.offset=w-re.w,t(4294967286>w-re.w),t(re.offset==re.ha-j));break}return xe==0||xe==7&&Oe&&re==null?(Y!=null&&(Y[0]|=Se.na!=null&&0<Se.na.length),F!=null&&(F[0]=X),z!=null&&(z[0]=ze),0):xe}function uu(m,w,j){var F=w.width,z=w.height,Y=0,X=0,te=F,re=z;if(w.Da=m!=null&&0<m.Da,w.Da&&(te=m.cd,re=m.bd,Y=m.v,X=m.j,11>j||(Y&=-2,X&=-2),0>Y||0>X||0>=te||0>=re||Y+te>F||X+re>z))return 0;if(w.v=Y,w.j=X,w.va=Y+te,w.o=X+re,w.U=te,w.T=re,w.da=m!=null&&0<m.da,w.da){if(!De(te,re,j=[m.ib],Y=[m.hb]))return 0;w.ib=j[0],w.hb=Y[0]}return w.ob=m!=null&&m.ob,w.Kb=m==null||!m.Sd,w.da&&(w.ob=w.ib<3*F/4&&w.hb<3*z/4,w.Kb=0),1}function fu(m){if(m==null)return 2;if(11>m.S){var w=m.f.RGBA;w.fb+=(m.height-1)*w.A,w.A=-w.A}else w=m.f.kb,m=m.height,w.O+=(m-1)*w.fa,w.fa=-w.fa,w.N+=(m-1>>1)*w.Ab,w.Ab=-w.Ab,w.W+=(m-1>>1)*w.Db,w.Db=-w.Db,w.F!=null&&(w.J+=(m-1)*w.lb,w.lb=-w.lb);return 0}function xl(m,w,j,F){if(F==null||0>=m||0>=w)return 2;if(j!=null){if(j.Da){var z=j.cd,Y=j.bd,X=-2&j.v,te=-2&j.j;if(0>X||0>te||0>=z||0>=Y||X+z>m||te+Y>w)return 2;m=z,w=Y}if(j.da){if(!De(m,w,z=[j.ib],Y=[j.hb]))return 2;m=z[0],w=Y[0]}}F.width=m,F.height=w;e:{var re=F.width,ue=F.height;if(m=F.S,0>=re||0>=ue||!(m>=zh&&13>m))m=2;else{if(0>=F.Rd&&F.sd==null){X=Y=z=w=0;var ye=(te=re*O5[m])*ue;if(11>m||(Y=(ue+1)/2*(w=(re+1)/2),m==12&&(X=(z=re)*ue)),(ue=a(ye+2*Y+X))==null){m=1;break e}F.sd=ue,11>m?((re=F.f.RGBA).eb=ue,re.fb=0,re.A=te,re.size=ye):((re=F.f.kb).y=ue,re.O=0,re.fa=te,re.Fd=ye,re.f=ue,re.N=0+ye,re.Ab=w,re.Cd=Y,re.ea=ue,re.W=0+ye+Y,re.Db=w,re.Ed=Y,m==12&&(re.F=ue,re.J=0+ye+2*Y),re.Tc=X,re.lb=z)}if(w=1,z=F.S,Y=F.width,X=F.height,z>=zh&&13>z)if(11>z)m=F.f.RGBA,w&=(te=Math.abs(m.A))*(X-1)+Y<=m.size,w&=te>=Y*O5[z],w&=m.eb!=null;else{m=F.f.kb,te=(Y+1)/2,ye=(X+1)/2,re=Math.abs(m.fa),ue=Math.abs(m.Ab);var Oe=Math.abs(m.Db),Ce=Math.abs(m.lb),Se=Ce*(X-1)+Y;w&=re*(X-1)+Y<=m.Fd,w&=ue*(ye-1)+te<=m.Cd,w=(w&=Oe*(ye-1)+te<=m.Ed)&re>=Y&ue>=te&Oe>=te,w&=m.y!=null,w&=m.f!=null,w&=m.ea!=null,z==12&&(w&=Ce>=Y,w&=Se<=m.Tc,w&=m.F!=null)}else w=0;m=w?0:2}}return m!=0||j!=null&&j.fd&&(m=fu(F)),m}var Tn=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,hu=8,si=[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];Ke("Predictor0","PredictorAdd0"),k.Predictor0=function(){return 4278190080},k.Predictor1=function(m){return m},k.Predictor2=function(m,w,j){return w[j+0]},k.Predictor3=function(m,w,j){return w[j+1]},k.Predictor4=function(m,w,j){return w[j-1]},k.Predictor5=function(m,w,j){return Je(Je(m,w[j+1]),w[j+0])},k.Predictor6=function(m,w,j){return Je(m,w[j-1])},k.Predictor7=function(m,w,j){return Je(m,w[j+0])},k.Predictor8=function(m,w,j){return Je(w[j-1],w[j+0])},k.Predictor9=function(m,w,j){return Je(w[j+0],w[j+1])},k.Predictor10=function(m,w,j){return Je(Je(m,w[j-1]),Je(w[j+0],w[j+1]))},k.Predictor11=function(m,w,j){var F=w[j+0];return 0>=xt(F>>24&255,m>>24&255,(w=w[j-1])>>24&255)+xt(F>>16&255,m>>16&255,w>>16&255)+xt(F>>8&255,m>>8&255,w>>8&255)+xt(255&F,255&m,255&w)?F:m},k.Predictor12=function(m,w,j){var F=w[j+0];return(ft((m>>24&255)+(F>>24&255)-((w=w[j-1])>>24&255))<<24|ft((m>>16&255)+(F>>16&255)-(w>>16&255))<<16|ft((m>>8&255)+(F>>8&255)-(w>>8&255))<<8|ft((255&m)+(255&F)-(255&w)))>>>0},k.Predictor13=function(m,w,j){var F=w[j-1];return(pt((m=Je(m,w[j+0]))>>24&255,F>>24&255)<<24|pt(m>>16&255,F>>16&255)<<16|pt(m>>8&255,F>>8&255)<<8|pt(m>>0&255,F>>0&255))>>>0};var u1=k.PredictorAdd0;k.PredictorAdd1=Nt,Ke("Predictor2","PredictorAdd2"),Ke("Predictor3","PredictorAdd3"),Ke("Predictor4","PredictorAdd4"),Ke("Predictor5","PredictorAdd5"),Ke("Predictor6","PredictorAdd6"),Ke("Predictor7","PredictorAdd7"),Ke("Predictor8","PredictorAdd8"),Ke("Predictor9","PredictorAdd9"),Ke("Predictor10","PredictorAdd10"),Ke("Predictor11","PredictorAdd11"),Ke("Predictor12","PredictorAdd12"),Ke("Predictor13","PredictorAdd13");var du=k.PredictorAdd2;Rt("ColorIndexInverseTransform","MapARGB","32b",(function(m){return m>>8&255}),(function(m){return m})),Rt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(m){return m}),(function(m){return m>>8&255}));var Mh,Ri=k.ColorIndexInverseTransform,Sl=k.MapARGB,Dh=k.VP8LColorIndexInverseTransformAlpha,Bh=k.MapAlpha,ko=k.VP8LPredictorsAdd=[];ko.length=16,(k.VP8LPredictors=[]).length=16,(k.VP8LPredictorsAdd_C=[]).length=16,(k.VP8LPredictors_C=[]).length=16;var xs,li,Yn,Lo,Ka,Xa,Al,Ja,Vr,pu,Kn,Mi,Tl,$h,mu,bs,ws,Io,_s,El,Ss,Fo,vu,Di,Bi,Pr,Nr,Yr,cn=a(511),Za=a(2041),gu=a(225),Pl=a(767),qh=0,f1=Za,Uh=gu,wi=Pl,$i=cn,zh=0,Wh=1,y5=2,Hh=3,Gh=4,h1=5,x5=6,d1=7,p1=8,Vh=9,m1=10,VC=[2,3,7],YC=[3,3,11],b5=[280,256,256,256,40],KC=[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],g1=[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],yu=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],Ro=[],aa=[],Qa=[],oj=1,_5=2,Mo=[],qi=[];Re("UpsampleRgbLinePair",Gt,3),Re("UpsampleBgrLinePair",Rr,3),Re("UpsampleRgbaLinePair",ia,4),Re("UpsampleBgraLinePair",vn,4),Re("UpsampleArgbLinePair",Mn,4),Re("UpsampleRgba4444LinePair",Qr,2),Re("UpsampleRgb565LinePair",Br,2);var sj=k.UpsampleRgbLinePair,lj=k.UpsampleBgrLinePair,S5=k.UpsampleRgbaLinePair,A5=k.UpsampleBgraLinePair,T5=k.UpsampleArgbLinePair,E5=k.UpsampleRgba4444LinePair,cj=k.UpsampleRgb565LinePair,Yh=16,Kh=1<<Yh-1,xu=-227,y1=482,uj=6,P5=0,fj=a(256),hj=a(256),dj=a(256),pj=a(256),mj=a(y1-xu),vj=a(y1-xu);Oa("YuvToRgbRow",Gt,3),Oa("YuvToBgrRow",Rr,3),Oa("YuvToRgbaRow",ia,4),Oa("YuvToBgraRow",vn,4),Oa("YuvToArgbRow",Mn,4),Oa("YuvToRgba4444Row",Qr,2),Oa("YuvToRgb565Row",Br,2);var N5=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Xh=[0,2,8],gj=[8,7,6,4,4,2,2,2,1,1,1,1],yj=1;this.WebPDecodeRGBA=function(m,w,j,F,z){var Y=Wh,X=new vl,te=new Sr;X.ba=te,te.S=Y,te.width=[te.width],te.height=[te.height];var re=te.width,ue=te.height,ye=new Yt;if(ye==null||m==null)var Oe=2;else t(ye!=null),Oe=yl(m,w,j,ye.width,ye.height,ye.Pd,ye.Qd,ye.format,null);if(Oe!=0?re=0:(re!=null&&(re[0]=ye.width[0]),ue!=null&&(ue[0]=ye.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 iu).data=m,z.w=w,z.ha=j,z.kd=1,w=[0],t(z!=null),((m=yl(z.data,z.w,z.ha,null,null,null,w,null,z))==0||m==7)&&w[0]&&(m=4),(w=m)==0){if(t(X!=null),F.data=z.data,F.w=z.w+z.offset,F.ha=z.ha-z.offset,F.put=Ii,F.ac=ln,F.bc=Fi,F.ma=X,z.xa){if((m=Le())==null){X=1;break e}if((function(Ce,Se){var ze=[0],Ie=[0],xe=[0];t:for(;;){if(Ce==null)return 0;if(Se==null)return Ce.a=2,0;if(Ce.l=Se,Ce.a=0,ee(Ce.m,Se.data,Se.w,Se.ha),!wt(Ce.m,ze,Ie,xe)){Ce.a=3;break t}if(Ce.xb=_5,Se.width=ze[0],Se.height=Ie[0],!Pe(ze[0],Ie[0],1,Ce,null))break t;return 1}return t(Ce.a!=0),0})(m,F)){if(F=(w=xl(F.width,F.height,X.Oa,X.ba))==0){t:{F=m;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),!uu(z.Oa,j,Hh)){F.a=2;break r}if(!je(F,j.width)||j.da)break r;if((j.da||we(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&&!Ae(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&&(w=m.a)}else w=m.a}else{if((m=new xi)==null){X=1;break e}if(m.Fa=z.na,m.P=z.P,m.qc=z.Sa,wh(m,F)){if((w=xl(F.width,F.height,X.Oa,X.ba))==0){if(m.Aa=0,j=X.Oa,t((z=m)!=null),j!=null){if(0<(re=0>(re=j.Md)?0:100<re?255:255*re/100)){for(ue=ye=0;4>ue;++ue)12>(Oe=z.pb[ue]).lc&&(Oe.ia=re*gj[0>Oe.lc?0:Oe.lc]>>3),ye|=Oe.ia;ye&&(alert("todo:VP8InitRandom"),z.ia=1)}z.Ga=j.Id,100<z.Ga?z.Ga=100:0>z.Ga&&(z.Ga=0)}Gp(m,F)||(w=m.a)}}else w=m.a}w==0&&X.Oa!=null&&X.Oa.fd&&(w=fu(X.ba))}X=w}Y=X!=0?null:11>Y?te.f.RGBA.eb:te.f.kb.y}else Y=null;return Y};var O5=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(k,L){for(var B="",C=0;C<4;C++)B+=String.fromCharCode(k[L++]);return B}function u(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,v=e,y=(function(k,L){var B={},C=0,P=!1,M=0,U=0;if(B.frames=[],!(function(I,R,D,G){for(var fe=0;fe<G;fe++)if(I[R+fe]!=D.charCodeAt(fe))return!0;return!1})(k,L,"RIFF",4)){var J,q;for(f(k,L+=4),L+=8;L<k.length;){var W=c(k,L),ee=f(k,L+=4);L+=4;var Z=ee+(1&ee);switch(W){case"VP8 ":case"VP8L":B.frames[C]===void 0&&(B.frames[C]={}),(N=B.frames[C]).src_off=P?U:L-8,N.src_size=M+ee+8,C++,P&&(P=!1,M=0,U=0);break;case"VP8X":(N=B.header={}).feature_flags=k[L];var Q=L+4;N.canvas_width=1+u(k,Q),Q+=3,N.canvas_height=1+u(k,Q),Q+=3;break;case"ALPH":P=!0,M=Z+8,U=L-8;break;case"ANIM":(N=B.header).bgcolor=f(k,L),Q=L+4,N.loop_count=(J=k)[(q=Q)+0]<<0|J[q+1]<<8,Q+=2;break;case"ANMF":var ce,N;(N=B.frames[C]={}).offset_x=2*u(k,L),L+=3,N.offset_y=2*u(k,L),L+=3,N.width=1+u(k,L),L+=3,N.height=1+u(k,L),L+=3,N.duration=u(k,L),L+=3,ce=k[L++],N.dispose=1&ce,N.blend=ce>>1&1}W!="ANMF"&&(L+=Z)}return B}})(v,0);y.response=v,y.rgbaoutput=!0,y.dataurl=!1;var b=y.header?y.header:null,_=y.frames?y.frames:null;if(b){b.loop_counter=b.loop_count,d=[b.canvas_height],h=[b.canvas_width];for(var A=0;A<_.length&&_[A].blend!=0;A++);}var S=_[0],O=p.WebPDecodeRGBA(v,S.src_off,S.src_size,h,d);S.rgba=O,S.imgwidth=h[0],S.imgheight=d[0];for(var T=0;T<h[0]*d[0]*4;T++)g[T]=O[T];return this.width=h,this.height=d,this.data=g,this}(function(e){var t=function(){return typeof ox=="function"},r=function(d,h,g,p){var v=4,y=o;switch(p){case e.image_compression.FAST:v=1,y=a;break;case e.image_compression.MEDIUM:v=6,y=s;break;case e.image_compression.SLOW:v=9,y=l}d=n(d,h,g,y);var b=ox(d,{level:v});return e.__addimage__.arrayBufferToBinaryString(b)},n=function(d,h,g,p){for(var v,y,b,_=d.length/h,A=new Uint8Array(d.length+_),S=u(),O=0;O<_;O+=1){if(b=O*h,v=d.subarray(b,b+h),p)A.set(p(v,g,y),b+O);else{for(var T,k=S.length,L=[];T<k;T+=1)L[T]=S[T](v,g,y);var B=f(L.concat());A.set(L[B],b+O)}y=v}return A},i=function(d){var h=Array.apply([],d);return h.unshift(0),h},a=function(d,h){var g,p=[],v=d.length;p[0]=1;for(var y=0;y<v;y+=1)g=d[y-h]||0,p[y+1]=d[y]-g+256&255;return p},o=function(d,h,g){var p,v=[],y=d.length;v[0]=2;for(var b=0;b<y;b+=1)p=g&&g[b]||0,v[b+1]=d[b]-p+256&255;return v},s=function(d,h,g){var p,v,y=[],b=d.length;y[0]=3;for(var _=0;_<b;_+=1)p=d[_-h]||0,v=g&&g[_]||0,y[_+1]=d[_]+256-(p+v>>>1)&255;return y},l=function(d,h,g){var p,v,y,b,_=[],A=d.length;_[0]=4;for(var S=0;S<A;S+=1)p=d[S-h]||0,v=g&&g[S]||0,y=g&&g[S-h]||0,b=c(p,v,y),_[S+1]=d[S]-b+256&255;return _},c=function(d,h,g){if(d===h&&h===g)return d;var p=Math.abs(h-g),v=Math.abs(d-g),y=Math.abs(d+h-g-g);return p<=v&&p<=y?d:v<=y?h:g},u=function(){return[i,a,o,s,l]},f=function(d){var h=d.map((function(g){return g.reduce((function(p,v){return p+Math.abs(v)}),0)}));return h.indexOf(Math.min.apply(null,h))};e.processPNG=function(d,h,g,p){var v,y,b,_,A,S,O,T,k,L,B,C,P,M,U,J=this.decode.FLATE_DECODE,q="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(b=new Gk(d)).imgData,y=b.bits,v=b.colorSpace,A=b.colors,[4,6].indexOf(b.colorType)!==-1){if(b.bits===8){k=(T=b.pixelBitlength==32?new Uint32Array(b.decodePixels().buffer):b.pixelBitlength==16?new Uint16Array(b.decodePixels().buffer):new Uint8Array(b.decodePixels().buffer)).length,B=new Uint8Array(k*b.colors),L=new Uint8Array(k);var W,ee=b.pixelBitlength-b.bits;for(M=0,U=0;M<k;M++){for(P=T[M],W=0;W<ee;)B[U++]=P>>>W&255,W+=b.bits;L[M]=P>>>W&255}}if(b.bits===16){k=(T=new Uint32Array(b.decodePixels().buffer)).length,B=new Uint8Array(k*(32/b.pixelBitlength)*b.colors),L=new Uint8Array(k*(32/b.pixelBitlength)),C=b.colors>1,M=0,U=0;for(var Z=0;M<k;)P=T[M++],B[U++]=P>>>0&255,C&&(B[U++]=P>>>16&255,P=T[M++],B[U++]=P>>>0&255),L[Z++]=P>>>16&255;y=8}p!==e.image_compression.NONE&&t()?(d=r(B,b.width*b.colors,b.colors,p),O=r(L,b.width,1,p)):(d=B,O=L,J=void 0)}if(b.colorType===3&&(v=this.color_spaces.INDEXED,S=b.palette,b.transparency.indexed)){var Q=b.transparency.indexed,ce=0;for(M=0,k=Q.length;M<k;++M)ce+=Q[M];if((ce/=255)===k-1&&Q.indexOf(0)!==-1)_=[Q.indexOf(0)];else if(ce!==k){for(T=b.decodePixels(),L=new Uint8Array(T.length),M=0,k=T.length;M<k;M++)L[M]=Q[T[M]];O=r(L,b.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&&(q="/Predictor "+N+" "),q+="/Colors "+A+" /BitsPerComponent "+y+" /Columns "+b.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:q,transparency:_,palette:S,sMask:O,predictor:N,width:b.width,height:b.height,bitsPerComponent:y,colorSpace:v}}}})(gt.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 c={data:l,width:o,height:s},u=new M1(100).encode(c,100);return e.processJPEG.call(this,u,r,n,i)},e.processGIF87A=e.processGIF89A})(gt.API),la.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)},la.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){Tr.log("bit decode error:"+r)}},la.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)}},la.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,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},la.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)}},la.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,c=a>>15?255:0,u=n*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=o,this.data[u+3]=c}this.pos+=e}},la.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,c=(o>>11)/t*255|0,u=i*this.width*4+4*a;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},la.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}},la.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}},la.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,r,n,i){var a=new la(t,!1),o=a.width,s=a.height,l={data:a.getData(),width:o,height:s},c=new M1(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}})(gt.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},c=new M1(100).encode(l,100);return e.processJPEG.call(this,c,r,n,i)}})(gt.API),gt.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,c=0;c<i;c+=4){var u=n[c],f=n[c+1],d=n[c+2],h=n[c+3];a[s++]=u,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}},gt.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=gt.API,u0=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,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,f=t.doKerning!==!1,d=0,h=e.length,g=0,p=s[0]||l,v=[];for(r=0;r<h;r++)n=e.charCodeAt(r),typeof i.metadata.widthOfString=="function"?v.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(n))+o*(1e3/a)||0)/1e3):(d=f&&cr(c[n])==="object"&&!isNaN(parseInt(c[n][g],10))?c[n][g]/u:0,v.push((s[n]||p)/l+d)),g=n;return v},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:u0.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},cw=function(e,t,r){r||(r={});var n,i,a,o,s,l,c,u=[],f=[u],d=r.textIndent||0,h=0,g=0,p=e.split(" "),v=u0.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?p[0].length+2:r.lineIndent||0){var y=Array(l).join(" "),b=[];p.map((function(A){(A=A.split(/\s*\n/)).length>1?b=b.concat(A.map((function(S,O){return(O&&S.length?`
214
- `:"")+S}))):b.push(A[0])})),p=b,l=sw.apply(this,[y,r])}for(a=0,o=p.length;a<o;a++){var _=0;if(n=p[a],l&&n[0]==`
215
- `&&(n=n.substr(1),_=1),d+h+(g=(i=u0.apply(this,[n,r])).reduce((function(A,S){return A+S}),0))>t||_){if(g>t){for(s=lw.apply(this,[n,i,t-(d+h),t]),u.push(s.shift()),u=[s.pop()];s.length;)f.push([s.shift()]);g=i.slice(n.length-(u[0]?u[0].length:0)).reduce((function(A,S){return A+S}),0)}else u=[n];f.push(u),d=g+l,h=v}else u.push(n),d+=h+g,h=v}return c=l?function(A,S){return(S?y:"")+A.join(" ")}:function(A){return A.join(" ")},f.map(c)},Ll.splitTextToSize=function(e,t,r){var n,i=(r=r||{}).fontSize||this.internal.getFontSize(),a=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var f=this.internal.getFont(u.fontName,u.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,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(cw.apply(this,[n[s],o,a]));return c},(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,v=["{"];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(cr(d)!=="object")throw new Error("Don't know what to do with value type "+cr(d)+".");g=o(d)}v.push(h+g)}return v.push("}"),v.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,v={},y=1,b=v,_=[],A="",S="",O=f.length-1,T=1;T<O;T+=1)(p=f[T])=="'"?d?(g=d.join(""),d=void 0):d=[]:d?d.push(p):p=="{"?(_.push([b,g]),b={},g=void 0):p=="}"?((h=_.pop())[0][h[1]]=b,g=void 0,b=h[0]):p=="-"?y=-1:g===void 0?r.hasOwnProperty(p)?(A+=r[p],g=parseInt(A,16)*y,y=1,A=""):A+=p:r.hasOwnProperty(p)?(S+=r[p],b[g]=parseInt(S,16)*y,y=1,g=void 0,S=""):S+=p;return v},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={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}},u={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=u.Unicode[d.postScriptName];h&&(d.metadata.Unicode={},d.metadata.Unicode.widths=h.widths,d.metadata.Unicode.kerning=h.kerning);var g=c.Unicode[d.postScriptName];g&&(d.metadata.Unicode.encoding=g,d.encoding=g.codePages[0])}])})(gt.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(Uu(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(i,n)}}])})(gt),(function(e){function t(){return(Pt.canvg?Promise.resolve(Pt.canvg):Promise.resolve().then(()=>require("./index.es-DH2iywgK.js"))).catch((function(r){return Promise.reject(new Error("Could not load canvg: "+r))})).then((function(r){return r.default?r.default:r}))}gt.API.addSvgAsImage=function(r,n,i,a,o,s,l,c){if(isNaN(n)||isNaN(i))throw Tr.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(a)||isNaN(o))throw Tr.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=a,u.height=o;var f=u.getContext("2d");f.fillStyle="#fff",f.fillRect(0,0,u.width,u.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(u.toDataURL("image/jpeg",1),n,i,a,o,l,c)}))}})(),gt.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},gt.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=[],c=0,u=0,f=0;function d(g,p){var v,y=!1;for(v=0;v<g.length;v+=1)g[v]===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(cr(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(c=0;c<a.length;c+=1)if(n=!0,a[c].length===1&&typeof a[c][0]=="number")l.push(String(a[c]-1));else if(a[c].length>1){for(u=0;u<a[c].length;u+=1)typeof a[c][u]!="number"&&(n=!1);n===!0&&l.push([a[c][0]-1,a[c][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>")),c=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 "+c+" >>"),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}})(gt.API),(function(e){var t=e.API,r=t.pdfEscape16=function(a,o){for(var s,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],u=[""],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 u.join("");s=s.toString(16),u.push(c[4-s.length],s)}return u.join("")},n=function(a){var o,s,l,c,u,f,d;for(u=`/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&&(u+=`
232
- `+l.length+` beginbfchar
233
- `+l.join(`
234
- `)+`
235
- endbfchar`,l=[]),a[o]!==void 0&&a[o]!==null&&typeof a[o].toString=="function"&&(c=("0000"+a[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(u+=`
236
- `+l.length+` beginbfchar
237
- `+l.join(`
238
- `)+`
239
- endbfchar
240
- `),u+=`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,c=o.newObject,u=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=c();u({data:h,addLength1:!0,objectId:p}),l("endobj");var v=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:v}),l("endobj");var y=c();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 b=c();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=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+v+" 0 R"),l("/BaseFont /"+zl(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+b+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(a)}]),t.events.push(["putFont",function(a){(function(o){var s=o.font,l=o.out,c=o.newObject,u=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=c();u({data:d,addLength1:!0,objectId:g}),l("endobj");var p=c();u({data:n(s.metadata.toUnicode),addLength1:!0,objectId:p}),l("endobj");var v=c();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=c();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 "+v+" 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,c=a.y,u=a.options||{},f=a.mutex||{},d=f.pdfEscape,h=f.activeFontKey,g=f.fonts,p=h,v="",y=0,b="",_=g[p].encoding;if(g[p].encoding!=="Identity-H")return{text:s,x:l,y:c,options:u,mutex:f};for(b=s,p=h,Array.isArray(s)&&(b=s[0]),y=0;y<b.length;y+=1)g[p].metadata.hasOwnProperty("cmap")&&(o=g[p].metadata.cmap.unicode.codeMap[b[y].charCodeAt(0)]),o||b[y].charCodeAt(0)<256&&g[p].metadata.hasOwnProperty("Unicode")?v+=b[y]:v+="";var A="";return parseInt(p.slice(1))<14||_==="WinAnsiEncoding"?A=d(v,p).split("").map((function(S){return S.charCodeAt(0).toString(16)})).join(""):_==="Identity-H"&&(A=r(v,g[p])),f.isHex=!0,{text:A,x:l,y:c,options:u,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 c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?s.push([i(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):s.push(i(Object.assign({},l,{text:o[c]})).text);a.text=s}else a.text=i(Object.assign({},l,{text:o})).text}])})(gt),(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}})(gt.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var i,a,o,s,l,c,u,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},v=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],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)$/),b=!1,_=0;this.__bidiEngine__={};var A=function(C){var P=C.charCodeAt(),M=P>>8,U=p[M];return U!==void 0?f[256*U+(255&P)]:M===252||M===253?"AL":y.test(M)?"L":M===8?"R":"N"},S=function(C){for(var P,M=0;M<C.length;M++){if((P=A(C.charAt(M)))==="L")return!1;if(P==="R")return!0}return!1},O=function(C,P,M,U){var J,q,W,ee,Z=P[U];switch(Z){case"L":case"R":b=!1;break;case"N":case"AN":break;case"EN":b&&(Z="AN");break;case"AL":b=!0,Z="R";break;case"WS":Z="N";break;case"CS":U<1||U+1>=P.length||(J=M[U-1])!=="EN"&&J!=="AN"||(q=P[U+1])!=="EN"&&q!=="AN"?Z="N":b&&(q="AN"),Z=q===J?q:"N";break;case"ES":Z=(J=U>0?M[U-1]:"B")==="EN"&&U+1<P.length&&P[U+1]==="EN"?"EN":"N";break;case"ET":if(U>0&&M[U-1]==="EN"){Z="EN";break}if(b){Z="N";break}for(W=U+1,ee=P.length;W<ee&&P[W]==="ET";)W++;Z=W<ee&&P[W]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(ee=P.length,W=U+1;W<ee&&P[W]==="NSM";)W++;if(W<ee){var Q=C[U],ce=Q>=1425&&Q<=2303||Q===64286;if(J=P[W],ce&&(J==="R"||J==="AL")){Z="R";break}}}Z=U<1||(J=P[U-1])==="B"?"N":M[U-1];break;case"B":b=!1,i=!0,Z=_;break;case"S":a=!0,Z="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":b=!1;break;case"BN":Z="N"}return Z},T=function(C,P,M){var U=C.split("");return M&&k(U,M,{hiLevel:_}),U.reverse(),P&&P.reverse(),U.join("")},k=function(C,P,M){var U,J,q,W,ee,Z=-1,Q=C.length,ce=0,N=[],I=_?h:d,R=[];for(b=!1,i=!1,a=!1,J=0;J<Q;J++)R[J]=A(C[J]);for(q=0;q<Q;q++){if(ee=ce,N[q]=O(C,R,N,q),U=240&(ce=I[ee][g[N[q]]]),ce&=15,P[q]=W=I[ce][5],U>0)if(U===16){for(J=Z;J<q;J++)P[J]=1;Z=-1}else Z=-1;if(I[ce][6])Z===-1&&(Z=q);else if(Z>-1){for(J=Z;J<q;J++)P[J]=W;Z=-1}R[q]==="B"&&(P[q]=0),M.hiLevel|=W}a&&(function(D,G,fe){for(var ae=0;ae<fe;ae++)if(D[ae]==="S"){G[ae]=_;for(var ne=ae-1;ne>=0&&D[ne]==="WS";ne--)G[ne]=_}})(R,P,Q)},L=function(C,P,M,U,J){if(!(J.hiLevel<C)){if(C===1&&_===1&&!i)return P.reverse(),void(M&&M.reverse());for(var q,W,ee,Z,Q=P.length,ce=0;ce<Q;){if(U[ce]>=C){for(ee=ce+1;ee<Q&&U[ee]>=C;)ee++;for(Z=ce,W=ee-1;Z<W;Z++,W--)q=P[Z],P[Z]=P[W],P[W]=q,M&&(q=M[Z],M[Z]=M[W],M[W]=q);ce=ee}ce++}}},B=function(C,P,M){var U=C.split(""),J={hiLevel:_};return M||(M=[]),k(U,M,J),(function(q,W,ee){if(ee.hiLevel!==0&&u)for(var Z,Q=0;Q<q.length;Q++)W[Q]===1&&(Z=v.indexOf(q[Q]))>=0&&(q[Q]=v[Z+1])})(U,M,J),L(2,U,P,M,J),L(1,U,P,M,J),U.join("")};return this.__bidiEngine__.doBidiReorder=function(C,P,M){if((function(J,q){if(q)for(var W=0;W<J.length;W++)q[W]=W;s===void 0&&(s=S(J)),c===void 0&&(c=S(J))})(C,P),o||!l||c)if(o&&l&&s^c)_=s?1:0,C=T(C,P,M);else if(!o&&l&&c)_=s?1:0,C=B(C,P,M),C=T(C,P);else if(!o||s||l||c){if(o&&!l&&s^c)C=T(C,P),s?(_=0,C=B(C,P,M)):(_=1,C=B(C,P,M),C=T(C,P));else if(o&&s&&!l&&c)_=1,C=B(C,P,M),C=T(C,P);else if(!o&&!l&&s^c){var U=u;s?(_=1,C=B(C,P,M),_=0,u=!1,C=B(C,P,M),u=U):(_=0,C=B(C,P,M),C=T(C,P),_=1,u=!1,C=B(C,P,M),u=U,C=T(C,P))}}else _=0,C=B(C,P,M);else _=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,c=C.isOutputRtl,u=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})}])})(gt),gt.API.TTFFont=(function(){function e(t){var r;if(this.rawData=t,r=this.contents=new os(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 Yk(this.contents),this.head=new Xk(this),this.name=new tL(this),this.cmap=new IP(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,c;for(c=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}).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 Sa,os=(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})(),Yk=(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,c,u,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),u=16*h-f,(i=new os).writeInt(this.scalarType),i.writeShort(h),i.writeShort(f),i.writeShort(o),i.writeShort(u),a=16*h,c=i.pos+a,s=null,g=[],r)for(d=r[p],i.writeString(p),i.writeInt(e(d)),i.writeInt(c),i.writeInt(d.length),g=g.concat(d),p==="head"&&(s=c),c+=d.length;c%4;)g.push(0),c++;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=FP.call(r);r.length%4;)r.push(0);for(a=new os(r),i=0,n=0,o=r.length;n<o;n=n+=4)i+=a.readUInt32();return 4294967295&i},t})(),Kk={}.hasOwnProperty,Ua=function(e,t){for(var r in t)Kk.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};Sa=(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,Sa),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 os).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,c,u,f,d,h,g,p,v,y,b,_;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 A,S;for(S=[],l=A=0;0<=d?A<d:A>d;l=0<=d?++A:--A)S.push(t.readUInt16());return S})(),t.pos+=2,p=(function(){var A,S;for(S=[],l=A=0;0<=d?A<d:A>d;l=0<=d?++A:--A)S.push(t.readUInt16());return S})(),c=(function(){var A,S;for(S=[],l=A=0;0<=d?A<d:A>d;l=0<=d?++A:--A)S.push(t.readUInt16());return S})(),u=(function(){var A,S;for(S=[],l=A=0;0<=d?A<d:A>d;l=0<=d?++A:--A)S.push(t.readUInt16());return S})(),i=(this.length-t.pos+this.offset)/2,s=(function(){var A,S;for(S=[],l=A=0;0<=i?A<i:A>i;l=0<=i?++A:--A)S.push(t.readUInt16());return S})(),l=y=0,_=a.length;y<_;l=++y)for(v=a[l],n=b=g=p[l];g<=v?b<=v:b>=v;n=g<=v?++b:--b)u[l]===0?o=n+c[l]:(o=s[u[l]/2+(n-g)-(d-l)]||0)!==0&&(o+=c[l]),this.codeMap[n]=65535&o}t.pos=f}return e.encode=function(t,r){var n,i,a,o,s,l,c,u,f,d,h,g,p,v,y,b,_,A,S,O,T,k,L,B,C,P,M,U,J,q,W,ee,Z,Q,ce,N,I,R,D,G,fe,ae,ne,ve,_e,se;switch(U=new os,o=Object.keys(t).sort((function(Fe,Ae){return Fe-Ae})),r){case"macroman":for(p=0,v=(function(){var Fe=[];for(g=0;g<256;++g)Fe.push(0);return Fe})(),b={0:0},a={},J=0,Z=o.length;J<Z;J++)b[ne=t[i=o[J]]]==null&&(b[ne]=++p),a[i]={old:t[i],new:b[t[i]]},v[i]=b[t[i]];return U.writeUInt16(1),U.writeUInt16(0),U.writeUInt32(12),U.writeUInt16(0),U.writeUInt16(262),U.writeUInt16(0),U.write(v),{charMap:a,subtable:U.data,maxGlyphID:p+1};case"unicode":for(P=[],f=[],_=0,b={},n={},y=c=null,q=0,Q=o.length;q<Q;q++)b[S=t[i=o[q]]]==null&&(b[S]=++_),n[i]={old:S,new:b[S]},s=b[S]-i,y!=null&&s===c||(y&&f.push(y),P.push(i),c=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,T=2*L-k,l=[],O=[],h=[],g=W=0,ce=P.length;W<ce;g=++W){if(C=P[g],u=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<=u?ee<=u:ee>=u;i=C<=u?++ee:--ee)h.push(n[i].new);else l.push(M-C),O.push(0)}for(U.writeUInt16(3),U.writeUInt16(1),U.writeUInt32(12),U.writeUInt16(4),U.writeUInt16(16+8*L+2*h.length),U.writeUInt16(0),U.writeUInt16(B),U.writeUInt16(k),U.writeUInt16(d),U.writeUInt16(T),fe=0,N=f.length;fe<N;fe++)i=f[fe],U.writeUInt16(i);for(U.writeUInt16(0),ae=0,I=P.length;ae<I;ae++)i=P[ae],U.writeUInt16(i);for(ve=0,R=l.length;ve<R;ve++)s=l[ve],U.writeUInt16(s);for(_e=0,D=O.length;_e<D;_e++)A=O[_e],U.writeUInt16(A);for(se=0,G=h.length;se<G;se++)p=h[se],U.writeUInt16(p);return{charMap:n,subtable:U.data,maxGlyphID:_+1}}},e})(),IP=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),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 os).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,Sa),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,Sa),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,Sa),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,c;for(c=[],o=s=0,l=this.file.maxp.numGlyphs;0<=l?s<l:s>l;o=0<=l?++s:--s)c.push(r.readUInt32());return c}).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,Sa),t.prototype.tag="name",t.prototype.parse=function(r){var n,i,a,o,s,l,c,u,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(c={},o=f=0,d=i.length;f<d;o=++f)a=i[o],r.pos=a.offset,u=r.readString(a.length),s=new eL(u,a),c[h=a.nameID]==null&&(c[h]=[]),c[a.nameID].push(s);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},t})(),rL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),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,Sa),t.prototype.tag="hmtx",t.prototype.parse=function(r){var n,i,a,o,s,l,c;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 u,f;for(f=[],n=u=0;0<=a?u<a:u>a;n=0<=a?++u:--u)f.push(r.readInt16());return f})(),this.widths=(function(){var u,f,d,h;for(h=[],u=0,f=(d=this.metrics).length;u<f;u++)o=d[u],h.push(o.advance);return h}).call(this),i=this.widths[this.widths.length-1],c=[],n=s=0;0<=a?s<a:s>a;n=0<=a?++s:--s)c.push(this.widths.push(i));return c},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})(),FP=[].slice,iL=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Ua(t,Sa),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(r){var n,i,a,o,s,l,c,u,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 os(n.read(a))).readShort(),u=l.readShort(),d=l.readShort(),c=l.readShort(),f=l.readShort(),this.cache[r]=s===-1?new oL(l,u,d,c,f):new aL(l,s,u,d,c,f),this.cache[r]))},t.prototype.encode=function(r,n,i){var a,o,s,l,c;for(s=[],o=[],l=0,c=n.length;l<c;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 os(FP.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,Sa),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],c=this.offsets[s+1]-l;c>0&&(a+=c)}for(var u=new Array(4*i.length),f=0;f<i.length;++f)u[4*f+3]=255&i[f],u[4*f+2]=(65280&i[f])>>8,u[4*f+1]=(16711680&i[f])>>16,u[4*f]=(4278190080&i[f])>>24;return u},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,c,u,f,d,h,g,p,v,y;for(i in n=IP.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 u=(function(b){var _,A;for(_ in A={},b)A[b[_]]=_;return A})(h),f=Object.keys(u).sort((function(b,_){return b-_})),p=(function(){var b,_,A;for(A=[],b=0,_=f.length;b<_;b++)s=f[b],A.push(u[s]);return A})(),a=this.font.glyf.encode(o,p,h),c=this.font.loca.encode(a.offsets,p),v={cmap:this.font.cmap.raw(),glyf:a.table,loca:c,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&&(v["OS/2"]=this.font.os2.raw()),this.font.directory.encode(v)},e})();gt.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,c;for(c=[],s=0,l=r.length;s<l;s++)n=r[s],c.push(t.convert(n));return c})().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 cL=Object.freeze(Object.defineProperty({__proto__:null,AcroForm:$k,AcroFormAppearance:dt,AcroFormButton:dn,AcroFormCheckBox:Hu,AcroFormChoiceField:Ds,AcroFormComboBox:$s,AcroFormEditBox:zu,AcroFormListBox:Bs,AcroFormPasswordField:Gu,AcroFormPushButton:Wu,AcroFormRadioButton:qs,AcroFormTextField:ts,GState:lf,ShadingPattern:Ko,TilingPattern:Ls,default:gt,jsPDF:gt},Symbol.toStringTag,{value:"Module"}));var Hl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function uL(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 R0={exports:{}};const fL=uL(cL);/*!
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=R0.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 c=this&&this.__extends||(function(){var d=function(h,g){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,v){p.__proto__=v}||function(p,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(p[y]=v[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 u=(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=u;var f=(function(d){c(h,d);function h(g,p,v,y,b,_){var A=d.call(this,g,p,_)||this;return A.cell=v,A.row=y,A.column=b,A.section=y.section,A}return h})(u);l.CellHookData=f}),340:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0});var u=c(4),f=c(136),d=c(744),h=c(776),g=c(664),p=c(972);function v(y){y.API.autoTable=function(){for(var b=[],_=0;_<arguments.length;_++)b[_]=arguments[_];var A;b.length===1?A=b[0]:(console.error("Use of deprecated autoTable initiation"),A=b[2]||{},A.columns=b[0],A.body=b[1]);var S=(0,h.parseInput)(this,A),O=(0,p.createTable)(this,S);return(0,g.drawTable)(this,O),this},y.API.lastAutoTable=!1,y.API.previousAutoTable=!1,y.API.autoTable.previous=!1,y.API.autoTableText=function(b,_,A,S){(0,f.default)(b,_,A,S,this)},y.API.autoTableSetDefaults=function(b){return d.DocHandler.setDefaults(b,this),this},y.autoTableSetDefaults=function(b,_){d.DocHandler.setDefaults(b,_)},y.API.autoTableHtmlToJson=function(b,_){var A;if(_===void 0&&(_=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var S=new d.DocHandler(this),O=(0,u.parseHtml)(S,b,window,_,!1),T=O.head,k=O.body,L=((A=T[0])===null||A===void 0?void 0:A.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 b=this.lastAutoTable;return b&&b.finalY?b.finalY:0},y.API.autoTableAddPageContent=function(b){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=b,this},y.API.autoTableAddPage=function(){return console.error("Use of deprecated function: autoTableAddPage. Use doc.addPage()"),this.addPage(),this}}l.default=v}),136:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function c(u,f,d,h,g){h=h||{};var p=1.15,v=g.internal.scaleFactor,y=g.internal.getFontSize()/v,b=g.getLineHeightFactor?g.getLineHeightFactor():p,_=y*b,A=/\r\n|\r|\n/g,S="",O=1;if((h.valign==="middle"||h.valign==="bottom"||h.halign==="center"||h.halign==="right")&&(S=typeof u=="string"?u.split(A):u,O=S.length||1),d+=y*(2-p),h.valign==="middle"?d-=O/2*_:h.valign==="bottom"&&(d-=O*_),h.halign==="center"||h.halign==="right"){var T=y;if(h.halign==="center"&&(T*=.5),S&&O>=1){for(var k=0;k<S.length;k++)g.text(S[k],f-g.getStringUnitWidth(S[k])*T,d),d+=_;return g}f-=g.getStringUnitWidth(u)*T}return h.halign==="justify"?g.text(u,f,d,{maxWidth:h.maxWidth||100,align:"justify"}):g.text(u,f,d),g}l.default=c}),420:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.getPageAvailableWidth=l.parseSpacing=l.getFillStyle=l.addTableBorder=l.getStringWidth=void 0;function c(g,p,v){v.applyStyles(p,!0);var y=Array.isArray(g)?g:[g],b=y.map(function(_){return v.getTextWidth(_)}).reduce(function(_,A){return Math.max(_,A)},0);return b}l.getStringWidth=c;function u(g,p,v,y){var b=p.settings.tableLineWidth,_=p.settings.tableLineColor;g.applyStyles({lineWidth:b,lineColor:_});var A=f(b,!1);A&&g.rect(v.x,v.y,p.getWidth(g.pageSize().width),y.y-v.y,A)}l.addTableBorder=u;function f(g,p){var v=g>0,y=p||p===0;return v&&y?"DF":v?"S":y?"F":null}l.getFillStyle=f;function d(g,p){var v,y,b,_;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:(v=g.left)!==null&&v!==void 0?v:p,top:(y=g.top)!==null&&y!==void 0?y:p,right:(b=g.right)!==null&&b!==void 0?b:p,bottom:(_=g.bottom)!==null&&_!==void 0?_:p}):(typeof g!="number"&&(g=p),{top:g,right:g,bottom:g,left:g})}l.parseSpacing=d;function h(g,p){var v=d(p.settings.margin,0);return g.pageSize().width-(v.left+v.right)}l.getPageAvailableWidth=h}),796:(function(s,l){var c=this&&this.__extends||(function(){var h=function(g,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,y){v.__proto__=y}||function(v,y){for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(v[b]=y[b])},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 v(){this.constructor=g}g.prototype=p===null?Object.create(p):(v.prototype=p.prototype,new v)}})();Object.defineProperty(l,"__esModule",{value:!0}),l.getTheme=l.defaultStyles=l.HtmlRowInput=void 0;var u=(function(h){c(g,h);function g(p){var v=h.call(this)||this;return v._element=p,v}return g})(Array);l.HtmlRowInput=u;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,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseCss=void 0;var u=c(420);function f(v,y,b,_,A){var S={},O=1.3333333333333333,T=h(y,function(Z){return A.getComputedStyle(Z).backgroundColor});T!=null&&(S.fillColor=T);var k=h(y,function(Z){return A.getComputedStyle(Z).color});k!=null&&(S.textColor=k);var L=p(_,b);L&&(S.cellPadding=L);var B="borderTopColor",C=O*b,P=_.borderTopWidth;if(_.borderBottomWidth===P&&_.borderRightWidth===P&&_.borderLeftWidth===P){var M=(parseFloat(P)||0)/C;M&&(S.lineWidth=M)}else S.lineWidth={top:(parseFloat(_.borderTopWidth)||0)/C,right:(parseFloat(_.borderRightWidth)||0)/C,bottom:(parseFloat(_.borderBottomWidth)||0)/C,left:(parseFloat(_.borderLeftWidth)||0)/C},S.lineWidth.top||(S.lineWidth.right?B="borderRightColor":S.lineWidth.bottom?B="borderBottomColor":S.lineWidth.left&&(B="borderLeftColor"));var U=h(y,function(Z){return A.getComputedStyle(Z)[B]});U!=null&&(S.lineColor=U);var J=["left","right","center","justify"];J.indexOf(_.textAlign)!==-1&&(S.halign=_.textAlign),J=["middle","bottom","top"],J.indexOf(_.verticalAlign)!==-1&&(S.valign=_.verticalAlign);var q=parseInt(_.fontSize||"");isNaN(q)||(S.fontSize=q/O);var W=d(_);W&&(S.fontStyle=W);var ee=(_.fontFamily||"").toLowerCase();return v.indexOf(ee)!==-1&&(S.font=ee),S}l.parseCss=f;function d(v){var y="";return(v.fontWeight==="bold"||v.fontWeight==="bolder"||parseInt(v.fontWeight)>=700)&&(y="bold"),(v.fontStyle==="italic"||v.fontStyle==="oblique")&&(y+="italic"),y}function h(v,y){var b=g(v,y);if(!b)return null;var _=b.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!_||!Array.isArray(_))return null;var A=[parseInt(_[1]),parseInt(_[2]),parseInt(_[3])],S=parseInt(_[4]);return S===0||isNaN(A[0])||isNaN(A[1])||isNaN(A[2])?null:A}function g(v,y){var b=y(v);return b==="rgba(0, 0, 0, 0)"||b==="transparent"||b==="initial"||b==="inherit"?v.parentElement==null?null:g(v.parentElement,y):b}function p(v,y){var b=[v.paddingTop,v.paddingRight,v.paddingBottom,v.paddingLeft],_=96/(72/y),A=(parseInt(v.lineHeight)-parseInt(v.fontSize))/y/2,S=b.map(function(T){return parseInt(T||"0")/_}),O=(0,u.parseSpacing)(S,0);return A>O.top&&(O.top=A),A>O.bottom&&(O.bottom=A),O}}),744:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.DocHandler=void 0;var c={},u=(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:c=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,v;h===void 0&&(h=!1),d.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(d.fontStyle);var y=this.jsPDFDocument.internal.getFont(),b=y.fontStyle,_=y.fontName;if(d.font&&(_=d.font),d.fontStyle){b=d.fontStyle;var A=this.getFontList()[_];A&&A.indexOf(b)===-1&&(this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(A[0]),b=A[0])}if(this.jsPDFDocument.setFont(_,b),d.fontSize&&this.jsPDFDocument.setFontSize(d.fontSize),!h){var S=f.unifyColor(d.fillColor);S&&(g=this.jsPDFDocument).setFillColor.apply(g,S),S=f.unifyColor(d.textColor),S&&(p=this.jsPDFDocument).setTextColor.apply(p,S),S=f.unifyColor(d.lineColor),S&&(v=this.jsPDFDocument).setDrawColor.apply(v,S),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,v){return this.jsPDFDocument.rect(d,h,g,p,v)},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 c||{}},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=u}),4:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseHtml=void 0;var u=c(903),f=c(796);function d(p,v,y,b,_){var A,S;b===void 0&&(b=!1),_===void 0&&(_=!1);var O;typeof v=="string"?O=y.document.querySelector(v):O=v;var T=Object.keys(p.getFontList()),k=p.scaleFactor(),L=[],B=[],C=[];if(!O)return console.error("Html table could not be found with input: ",v),{head:L,body:B,foot:C};for(var P=0;P<O.rows.length;P++){var M=O.rows[P],U=(S=(A=M==null?void 0:M.parentElement)===null||A===void 0?void 0:A.tagName)===null||S===void 0?void 0:S.toLowerCase(),J=h(T,k,y,M,b,_);J&&(U==="thead"?L.push(J):U==="tfoot"?C.push(J):B.push(J))}return{head:L,body:B,foot:C}}l.parseHtml=d;function h(p,v,y,b,_,A){for(var S=new f.HtmlRowInput(b),O=0;O<b.cells.length;O++){var T=b.cells[O],k=y.getComputedStyle(T);if(_||k.display!=="none"){var L=void 0;A&&(L=(0,u.parseCss)(p,T,v,k,y)),S.push({rowSpan:T.rowSpan,colSpan:T.colSpan,styles:L,_element:T,content:g(T)})}}var B=y.getComputedStyle(b);if(S.length>0&&(_||B.display!=="none"))return S}function g(p){var v=p.cloneNode(!0);return v.innerHTML=v.innerHTML.replace(/\n/g,"").replace(/ +/g," "),v.innerHTML=v.innerHTML.split(/<br.*?>/).map(function(y){return y.trim()}).join(`
253
- `),v.innerText||v.textContent||""}}),776:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.parseInput=void 0;var u=c(4),f=c(356),d=c(420),h=c(744),g=c(792);function p(O,T){var k=new h.DocHandler(O),L=k.getDocumentOptions(),B=k.getGlobalOptions();(0,g.default)(k,B,L,T);var C=(0,f.assign)({},B,L,T),P;typeof window<"u"&&(P=window);var M=v(B,L,T),U=y(B,L,T),J=b(k,C),q=A(k,C,P);return{id:T.tableId,content:q,hooks:U,styles:M,settings:J}}l.parseInput=p;function v(O,T,k){for(var L={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},B=function(U){if(U==="columnStyles"){var J=O[U],q=T[U],W=k[U];L.columnStyles=(0,f.assign)({},J,q,W)}else{var ee=[O,T,k],Z=ee.map(function(Q){return Q[U]||{}});L[U]=(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,T,k){for(var L=[O,T,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 b(O,T){var k,L,B,C,P,M,U,J,q,W,ee,Z,Q=(0,d.parseSpacing)(T.margin,40/O.scaleFactor()),ce=(k=_(O,T.startY))!==null&&k!==void 0?k:Q.top,N;T.showFoot===!0?N="everyPage":T.showFoot===!1?N="never":N=(L=T.showFoot)!==null&&L!==void 0?L:"everyPage";var I;T.showHead===!0?I="everyPage":T.showHead===!1?I="never":I=(B=T.showHead)!==null&&B!==void 0?B:"everyPage";var R=(C=T.useCss)!==null&&C!==void 0?C:!1,D=T.theme||(R?"plain":"striped"),G=!!T.horizontalPageBreak,fe=(P=T.horizontalPageBreakRepeat)!==null&&P!==void 0?P:null;return{includeHiddenHtml:(M=T.includeHiddenHtml)!==null&&M!==void 0?M:!1,useCss:R,theme:D,startY:ce,margin:Q,pageBreak:(U=T.pageBreak)!==null&&U!==void 0?U:"auto",rowPageBreak:(J=T.rowPageBreak)!==null&&J!==void 0?J:"auto",tableWidth:(q=T.tableWidth)!==null&&q!==void 0?q:"auto",showHead:I,showFoot:N,tableLineWidth:(W=T.tableLineWidth)!==null&&W!==void 0?W:0,tableLineColor:(ee=T.tableLineColor)!==null&&ee!==void 0?ee:200,horizontalPageBreak:G,horizontalPageBreakRepeat:fe,horizontalPageBreakBehaviour:(Z=T.horizontalPageBreakBehaviour)!==null&&Z!==void 0?Z:"afterAllRows"}}function _(O,T){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 T=="number"?T:(T==null||T===!1)&&C&&(k==null?void 0:k.finalY)!=null?k.finalY+20/L:null}function A(O,T,k){var L=T.head||[],B=T.body||[],C=T.foot||[];if(T.html){var P=T.includeHiddenHtml;if(k){var M=(0,u.parseHtml)(O,T.html,k,P,T.useCss)||{};L=M.head||L,B=M.body||L,C=M.foot||L}else console.error("Cannot parse html in non browser environment")}var U=T.columns||S(L,B,C);return{columns:U,head:L,body:B,foot:C}}function S(O,T,k){var L=O[0]||T[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 U=0;U<P;U++){var J=void 0;Array.isArray(L)?J=B.length:J=C+(U>0?"_".concat(U):"");var q={dataKey:J};B.push(q)}}),B}}),792:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0});function c(f,d,h,g){for(var p=function(_){_&&typeof _!="object"&&console.error("The options parameter should be of type object, is: "+typeof _),typeof _.extendWidth<"u"&&(_.tableWidth=_.extendWidth?"auto":"wrap",console.error("Use of deprecated option: extendWidth, use tableWidth instead.")),typeof _.margins<"u"&&(typeof _.margin>"u"&&(_.margin=_.margins),console.error("Use of deprecated option: margins, use margin instead.")),_.startY&&typeof _.startY!="number"&&(console.error("Invalid value for startY option",_.startY),delete _.startY),!_.didDrawPage&&(_.afterPageContent||_.beforePageContent||_.afterPageAdd)&&(console.error("The afterPageContent, beforePageContent and afterPageAdd hooks are deprecated. Use didDrawPage instead"),_.didDrawPage=function(C){f.applyStyles(f.userStyles),_.beforePageContent&&_.beforePageContent(C),f.applyStyles(f.userStyles),_.afterPageContent&&_.afterPageContent(C),f.applyStyles(f.userStyles),_.afterPageAdd&&C.pageNumber>1&&C.afterPageAdd(C),f.applyStyles(f.userStyles)}),["createdHeaderCell","drawHeaderRow","drawRow","drawHeaderCell"].forEach(function(C){_[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];_[M]&&(console.error("Use of deprecated option ".concat(M,". Use ").concat(P," instead")),_[P]=_[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 _[P]<"u"&&(typeof _.styles[M]>"u"&&(_.styles[M]=_[P]),console.error("Use of deprecated option: "+P+", use the style "+M+" instead."))});for(var A=0,S=["styles","bodyStyles","headStyles","footStyles"];A<S.length;A++){var O=S[A];u(_[O]||{})}for(var T=_.columnStyles||{},k=0,L=Object.keys(T);k<L.length;k++){var B=L[k];u(T[B]||{})}},v=0,y=[d,h,g];v<y.length;v++){var b=y[v];p(b)}}l.default=c;function u(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,c){Object.defineProperty(l,"__esModule",{value:!0}),l.Column=l.Cell=l.Row=l.Table=void 0;var u=c(796),f=c(172),d=c(420),h=(function(){function y(b,_){this.pageNumber=1,this.pageCount=1,this.id=b.id,this.settings=b.settings,this.styles=b.styles,this.hooks=b.hooks,this.columns=_.columns,this.head=_.head,this.body=_.body,this.foot=_.foot}return y.prototype.getHeadHeight=function(b){return this.head.reduce(function(_,A){return _+A.getMaxCellHeight(b)},0)},y.prototype.getFootHeight=function(b){return this.foot.reduce(function(_,A){return _+A.getMaxCellHeight(b)},0)},y.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},y.prototype.callCellHooks=function(b,_,A,S,O,T){for(var k=0,L=_;k<L.length;k++){var B=L[k],C=new f.CellHookData(b,this,A,S,O,T),P=B(C)===!1;if(A.text=Array.isArray(A.text)?A.text:[A.text],P)return!1}return!0},y.prototype.callEndPageHooks=function(b,_){b.applyStyles(b.userStyles);for(var A=0,S=this.hooks.didDrawPage;A<S.length;A++){var O=S[A];O(new f.HookData(b,this,_))}},y.prototype.callWillDrawPageHooks=function(b,_){for(var A=0,S=this.hooks.willDrawPage;A<S.length;A++){var O=S[A];O(new f.HookData(b,this,_))}},y.prototype.getWidth=function(b){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var _=this.columns.reduce(function(S,O){return S+O.wrappedWidth},0);return _}else{var A=this.settings.margin;return b-A.left-A.right}},y})();l.Table=h;var g=(function(){function y(b,_,A,S,O){O===void 0&&(O=!1),this.height=0,this.raw=b,b instanceof u.HtmlRowInput&&(this.raw=b._element,this.element=b._element),this.index=_,this.section=A,this.cells=S,this.spansMultiplePages=O}return y.prototype.getMaxCellHeight=function(b){var _=this;return b.reduce(function(A,S){var O;return Math.max(A,((O=_.cells[S.index])===null||O===void 0?void 0:O.height)||0)},0)},y.prototype.hasRowSpan=function(b){var _=this;return b.filter(function(A){var S=_.cells[A.index];return S?S.rowSpan>1:!1}).length>0},y.prototype.canEntireRowFit=function(b,_){return this.getMaxCellHeight(_)<=b},y.prototype.getMinimumRowHeight=function(b,_){var A=this;return b.reduce(function(S,O){var T=A.cells[O.index];if(!T)return 0;var k=_.getLineHeight(T.styles.fontSize),L=T.padding("vertical"),B=L+k;return B>S?B:S},0)},y})();l.Row=g;var p=(function(){function y(b,_,A){var S,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=_,this.section=A,this.raw=b;var T=b;b!=null&&typeof b=="object"&&!Array.isArray(b)?(this.rowSpan=b.rowSpan||1,this.colSpan=b.colSpan||1,T=(O=(S=b.content)!==null&&S!==void 0?S:b.title)!==null&&O!==void 0?O:b,b._element&&(this.raw=b._element)):(this.rowSpan=1,this.colSpan=1);var k=T!=null?""+T:"",L=/\r\n|\r|\n/g;this.text=k.split(L)}return y.prototype.getTextPos=function(){var b;if(this.styles.valign==="top")b=this.y+this.padding("top");else if(this.styles.valign==="bottom")b=this.y+this.height-this.padding("bottom");else{var _=this.height-this.padding("vertical");b=this.y+_/2+this.padding("top")}var A;if(this.styles.halign==="right")A=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var S=this.width-this.padding("horizontal");A=this.x+S/2+this.padding("left")}else A=this.x+this.padding("left");return{x:A,y:b}},y.prototype.getContentHeight=function(b,_){_===void 0&&(_=1.15);var A=Array.isArray(this.text)?this.text.length:1,S=this.styles.fontSize/b*_,O=A*S+this.padding("vertical");return Math.max(O,this.styles.minCellHeight)},y.prototype.padding=function(b){var _=(0,d.parseSpacing)(this.styles.cellPadding,0);return b==="vertical"?_.top+_.bottom:b==="horizontal"?_.left+_.right:_[b]},y})();l.Cell=p;var v=(function(){function y(b,_,A){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=b,this.raw=_,this.index=A}return y.prototype.getMaxCustomCellWidth=function(b){for(var _=0,A=0,S=b.allRows();A<S.length;A++){var O=S[A],T=O.cells[this.index];T&&typeof T.styles.cellWidth=="number"&&(_=Math.max(_,T.styles.cellWidth))}return _},y})();l.Column=v}),356:(function(s,l){Object.defineProperty(l,"__esModule",{value:!0}),l.assign=void 0;function c(u,f,d,h,g){if(u==null)throw new TypeError("Cannot convert undefined or null to object");for(var p=Object(u),v=1;v<arguments.length;v++){var y=arguments[v];if(y!=null)for(var b in y)Object.prototype.hasOwnProperty.call(y,b)&&(p[b]=y[b])}return p}l.assign=c}),972:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.createTable=void 0;var u=c(744),f=c(260),d=c(324),h=c(796),g=c(356);function p(O,T){var k=new u.DocHandler(O),L=v(T,k.scaleFactor()),B=new f.Table(T,L);return(0,d.calculateWidths)(k,B),k.applyStyles(k.userStyles),B}l.createTable=p;function v(O,T){var k=O.content,L=A(k.columns);if(k.head.length===0){var B=b(L,"head");B&&k.head.push(B)}if(k.foot.length===0){var B=b(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,T),body:y("body",k.body,L,P,C,T),foot:y("foot",k.foot,L,P,C,T)}}function y(O,T,k,L,B,C){var P={},M=T.map(function(U,J){for(var q=0,W={},ee=0,Z=0,Q=0,ce=k;Q<ce.length;Q++){var N=ce[Q];if(P[N.index]==null||P[N.index].left===0)if(Z===0){var I=void 0;Array.isArray(U)?I=U[N.index-ee-q]:I=U[N.dataKey];var R={};typeof I=="object"&&!Array.isArray(I)&&(R=(I==null?void 0:I.styles)||{});var D=S(O,N,J,B,L,C,R),G=new f.Cell(I,D,O);W[N.dataKey]=G,W[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,q++}return new f.Row(U,J,O,W)});return M}function b(O,T){var k={};return O.forEach(function(L){if(L.raw!=null){var B=_(T,L.raw);B!=null&&(k[L.dataKey]=B)}}),Object.keys(k).length>0?k:null}function _(O,T){if(O==="head"){if(typeof T=="object")return T.header||T.title||null;if(typeof T=="string"||typeof T=="number")return T}else if(O==="foot"&&typeof T=="object")return T.footer;return null}function A(O){return O.map(function(T,k){var L,B,C;return typeof T=="object"?C=(B=(L=T.dataKey)!==null&&L!==void 0?L:T.key)!==null&&B!==void 0?B:k:C=k,new f.Column(C,T,k)})}function S(O,T,k,L,B,C,P){var M=(0,h.getTheme)(L),U;O==="head"?U=B.headStyles:O==="body"?U=B.bodyStyles:O==="foot"&&(U=B.footStyles);var J=(0,g.assign)({},M.table,M[O],B.styles,U),q=B.columnStyles[T.dataKey]||B.columnStyles[T.index]||{},W=O==="body"?q:{},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,W);return(0,g.assign)(Q,P)}}),664:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.addPage=l.drawTable=void 0;var u=c(420),f=c(260),d=c(744),h=c(356),g=c(136),p=c(224);function v(q,W){var ee=W.settings,Z=ee.startY,Q=ee.margin,ce={x:Q.left,y:Z},N=W.getHeadHeight(W.columns)+W.getFootHeight(W.columns),I=Z+Q.bottom+N;if(ee.pageBreak==="avoid"){var R=W.body,D=R.reduce(function(ae,ne){return ae+ne.height},0);I+=D}var G=new d.DocHandler(q);(ee.pageBreak==="always"||ee.startY!=null&&I>G.pageSize().height)&&(J(G),ce.y=Q.top),W.callWillDrawPageHooks(G,ce);var fe=(0,h.assign)({},ce);W.startPageNumber=G.pageNumber(),ee.horizontalPageBreak?y(G,W,fe,ce):(G.applyStyles(G.userStyles),(ee.showHead==="firstPage"||ee.showHead==="everyPage")&&W.head.forEach(function(ae){return B(G,W,ae,ce,W.columns)}),G.applyStyles(G.userStyles),W.body.forEach(function(ae,ne){var ve=ne===W.body.length-1;L(G,W,ae,ve,fe,ce,W.columns)}),G.applyStyles(G.userStyles),(ee.showFoot==="lastPage"||ee.showFoot==="everyPage")&&W.foot.forEach(function(ae){return B(G,W,ae,ce,W.columns)})),(0,u.addTableBorder)(G,W,fe,ce),W.callEndPageHooks(G,ce),W.finalY=ce.y,q.lastAutoTable=W,q.previousAutoTable=W,q.autoTable&&(q.autoTable.previous=W),G.applyStyles(G.userStyles)}l.drawTable=v;function y(q,W,ee,Z){var Q=(0,p.calculateAllColumnsCanFitInPage)(q,W),ce=W.settings;if(ce.horizontalPageBreakBehaviour==="afterAllRows")Q.forEach(function(D,G){q.applyStyles(q.userStyles),G>0?U(q,W,ee,Z,D.columns,!0):b(q,W,Z,D.columns),_(q,W,ee,Z,D.columns),S(q,W,Z,D.columns)});else for(var N=-1,I=Q[0],R=function(){var D=N;if(I){q.applyStyles(q.userStyles);var G=I.columns;N>=0?U(q,W,ee,Z,G,!0):b(q,W,Z,G),D=A(q,W,N+1,Z,G),S(q,W,Z,G)}var fe=D-N;Q.slice(1).forEach(function(ae){q.applyStyles(q.userStyles),U(q,W,ee,Z,ae.columns,!0),A(q,W,N+1,Z,ae.columns,fe),S(q,W,Z,ae.columns)}),N=D};N<W.body.length-1;)R()}function b(q,W,ee,Z){var Q=W.settings;q.applyStyles(q.userStyles),(Q.showHead==="firstPage"||Q.showHead==="everyPage")&&W.head.forEach(function(ce){return B(q,W,ce,ee,Z)})}function _(q,W,ee,Z,Q){q.applyStyles(q.userStyles),W.body.forEach(function(ce,N){var I=N===W.body.length-1;L(q,W,ce,I,ee,Z,Q)})}function A(q,W,ee,Z,Q,ce){q.applyStyles(q.userStyles),ce=ce??W.body.length;var N=Math.min(ee+ce,W.body.length),I=-1;return W.body.slice(ee,N).forEach(function(R,D){var G=ee+D===W.body.length-1,fe=M(q,W,G,Z);R.canEntireRowFit(fe,Q)&&(B(q,W,R,Z,Q),I=ee+D)}),I}function S(q,W,ee,Z){var Q=W.settings;q.applyStyles(q.userStyles),(Q.showFoot==="lastPage"||Q.showFoot==="everyPage")&&W.foot.forEach(function(ce){return B(q,W,ce,ee,Z)})}function O(q,W,ee){var Z=ee.getLineHeight(q.styles.fontSize),Q=q.padding("vertical"),ce=Math.floor((W-Q)/Z);return Math.max(0,ce)}function T(q,W,ee,Z){var Q={};q.spansMultiplePages=!0,q.height=0;for(var ce=0,N=0,I=ee.columns;N<I.length;N++){var R=I[N],D=q.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 fe=O(D,W,Z);D.text.length>fe&&(G.text=D.text.splice(fe,D.text.length));var ae=Z.scaleFactor(),ne=Z.getLineHeightFactor();D.contentHeight=D.getContentHeight(ae,ne),D.contentHeight>=W&&(D.contentHeight=W,G.styles.minCellHeight-=W),D.contentHeight>q.height&&(q.height=D.contentHeight),G.contentHeight=G.getContentHeight(ae,ne),G.contentHeight>ce&&(ce=G.contentHeight),Q[R.index]=G}}var ve=new f.Row(q.raw,-1,q.section,Q,!0);ve.height=ce;for(var _e=0,se=ee.columns;_e<se.length;_e++){var R=se[_e],G=ve.cells[R.index];G&&(G.height=ve.height);var D=q.cells[R.index];D&&(D.height=q.height)}return ve}function k(q,W,ee,Z){var Q=q.pageSize().height,ce=Z.settings.margin,N=ce.top+ce.bottom,I=Q-N;W.section==="body"&&(I-=Z.getHeadHeight(Z.columns)+Z.getFootHeight(Z.columns));var R=W.getMinimumRowHeight(Z.columns,q),D=R<ee;if(R>I)return console.error("Will not be able to print row ".concat(W.index," correctly since it's minimum height is larger than page height")),!0;if(!D)return!1;var G=W.hasRowSpan(Z.columns),fe=W.getMaxCellHeight(Z.columns)>I;return fe?(G&&console.error("The content of row ".concat(W.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(q,W,ee,Z,Q,ce,N){var I=M(q,W,Z,ce);if(ee.canEntireRowFit(I,N))B(q,W,ee,ce,N);else if(k(q,ee,I,W)){var R=T(ee,I,W,q);B(q,W,ee,ce,N),U(q,W,Q,ce,N),L(q,W,R,Z,Q,ce,N)}else U(q,W,Q,ce,N),L(q,W,ee,Z,Q,ce,N)}function B(q,W,ee,Z,Q){Z.x=W.settings.margin.left;for(var ce=0,N=Q;ce<N.length;ce++){var I=N[ce],R=ee.cells[I.index];if(!R){Z.x+=I.width;continue}q.applyStyles(R.styles),R.x=Z.x,R.y=Z.y;var D=W.callCellHooks(q,W.hooks.willDrawCell,R,ee,I,Z);if(D===!1){Z.x+=I.width;continue}C(q,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"))},q.getDocument()),W.callCellHooks(q,W.hooks.didDrawCell,R,ee,I,Z),Z.x+=I.width}Z.y+=ee.height}function C(q,W,ee){var Z=W.styles;if(q.getDocument().setFillColor(q.getDocument().getFillColor()),typeof Z.lineWidth=="number"){var Q=(0,u.getFillStyle)(Z.lineWidth,Z.fillColor);Q&&q.rect(W.x,ee.y,W.width,W.height,Q)}else typeof Z.lineWidth=="object"&&(Z.fillColor&&q.rect(W.x,ee.y,W.width,W.height,"F"),P(q,W,ee,Z.lineWidth))}function P(q,W,ee,Z){var Q,ce,N,I;Z.top&&(Q=ee.x,ce=ee.y,N=ee.x+W.width,I=ee.y,Z.right&&(N+=.5*Z.right),Z.left&&(Q-=.5*Z.left),R(Z.top,Q,ce,N,I)),Z.bottom&&(Q=ee.x,ce=ee.y+W.height,N=ee.x+W.width,I=ee.y+W.height,Z.right&&(N+=.5*Z.right),Z.left&&(Q-=.5*Z.left),R(Z.bottom,Q,ce,N,I)),Z.left&&(Q=ee.x,ce=ee.y,N=ee.x,I=ee.y+W.height,Z.top&&(ce-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),R(Z.left,Q,ce,N,I)),Z.right&&(Q=ee.x+W.width,ce=ee.y,N=ee.x+W.width,I=ee.y+W.height,Z.top&&(ce-=.5*Z.top),Z.bottom&&(I+=.5*Z.bottom),R(Z.right,Q,ce,N,I));function R(D,G,fe,ae,ne){q.getDocument().setLineWidth(D),q.getDocument().line(G,fe,ae,ne,"S")}}function M(q,W,ee,Z){var Q=W.settings.margin.bottom,ce=W.settings.showFoot;return(ce==="everyPage"||ce==="lastPage"&&ee)&&(Q+=W.getFootHeight(W.columns)),q.pageSize().height-Z.y-Q}function U(q,W,ee,Z,Q,ce){Q===void 0&&(Q=[]),ce===void 0&&(ce=!1),q.applyStyles(q.userStyles),W.settings.showFoot==="everyPage"&&!ce&&W.foot.forEach(function(I){return B(q,W,I,Z,Q)}),W.callEndPageHooks(q,Z);var N=W.settings.margin;(0,u.addTableBorder)(q,W,ee,Z),J(q),W.pageNumber++,W.pageCount++,Z.x=N.left,Z.y=N.top,ee.y=N.top,W.callWillDrawPageHooks(q,Z),W.settings.showHead==="everyPage"&&(W.head.forEach(function(I){return B(q,W,I,Z,Q)}),q.applyStyles(q.userStyles))}l.addPage=U;function J(q){var W=q.pageNumber();q.setPage(W+1);var ee=q.pageNumber();return ee===W?(q.addPage(),!0):!1}}),224:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.calculateAllColumnsCanFitInPage=void 0;var u=c(420);function f(h,g,p){var v;p===void 0&&(p={});var y=(0,u.getPageAvailableWidth)(h,g),b=new Map,_=[],A=[],S=[];g.settings.horizontalPageBreakRepeat,Array.isArray(g.settings.horizontalPageBreakRepeat)?S=g.settings.horizontalPageBreakRepeat:(typeof g.settings.horizontalPageBreakRepeat=="string"||typeof g.settings.horizontalPageBreakRepeat=="number")&&(S=[g.settings.horizontalPageBreakRepeat]),S.forEach(function(L){var B=g.columns.find(function(C){return C.dataKey===L||C.index===L});B&&!b.has(B.index)&&(b.set(B.index,!0),_.push(B.index),A.push(g.columns[B.index]),y-=B.wrappedWidth)});for(var O=!0,T=(v=p==null?void 0:p.start)!==null&&v!==void 0?v:0;T<g.columns.length;){if(b.has(T)){T++;continue}var k=g.columns[T].wrappedWidth;if(O||y>=k)O=!1,_.push(T),A.push(g.columns[T]),y-=k;else break;T++}return{colIndexes:_,columns:A,lastIndex:T-1}}function d(h,g){for(var p=[],v=0;v<g.columns.length;v++){var y=f(h,g,{start:v});y.columns.length&&(p.push(y),v=y.lastIndex)}return p}l.calculateAllColumnsCanFitInPage=d}),324:(function(s,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.ellipsize=l.resizeColumns=l.calculateWidths=void 0;var u=c(420);function f(_,A){d(_,A);var S=[],O=0;A.columns.forEach(function(k){var L=k.getMaxCustomCellWidth(A);L?k.width=L:(k.width=k.wrappedWidth,S.push(k)),O+=k.width});var T=A.getWidth(_.pageSize().width)-O;T&&(T=h(S,T,function(k){return Math.max(k.minReadableWidth,k.minWidth)})),T&&(T=h(S,T,function(k){return k.minWidth})),T=Math.abs(T),!A.settings.horizontalPageBreak&&T>.1/_.scaleFactor()&&(T=T<1?T:Math.round(T),console.warn("Of the table content, ".concat(T," units width could not fit page"))),p(A),v(A,_),g(A)}l.calculateWidths=f;function d(_,A){var S=_.scaleFactor(),O=A.settings.horizontalPageBreak,T=(0,u.getPageAvailableWidth)(_,A);A.allRows().forEach(function(k){for(var L=0,B=A.columns;L<B.length;L++){var C=B[L],P=k.cells[C.index];if(P){var M=A.hooks.didParseCell;A.callCellHooks(_,M,P,k,C,null);var U=P.padding("horizontal");P.contentWidth=(0,u.getStringWidth)(P.text,P.styles,_)+U;var J=(0,u.getStringWidth)(P.text.join(" ").split(/[^\S\u00A0]+/),P.styles,_);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>T?(P.minWidth=T,P.wrappedWidth=T):(P.minWidth=P.contentWidth,P.wrappedWidth=P.contentWidth);else{var q=10/S;P.minWidth=P.styles.minCellWidth||q,P.wrappedWidth=P.contentWidth,P.minWidth>P.wrappedWidth&&(P.wrappedWidth=P.minWidth)}}}}),A.allRows().forEach(function(k){for(var L=0,B=A.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=A.styles.columnStyles[C.dataKey]||A.styles.columnStyles[C.index]||{},U=M.cellWidth||M.minCellWidth;U&&typeof U=="number"&&(C.minWidth=U,C.wrappedWidth=U)}P&&(P.colSpan>1&&!C.minWidth&&(C.minWidth=P.minWidth),P.colSpan>1&&!C.wrappedWidth&&(C.wrappedWidth=P.minWidth))}})}function h(_,A,S){for(var O=A,T=_.reduce(function(q,W){return q+W.wrappedWidth},0),k=0;k<_.length;k++){var L=_[k],B=L.wrappedWidth/T,C=O*B,P=L.width+C,M=S(L),U=P<M?M:P;A-=U-L.width,L.width=U}if(A=Math.round(A*1e10)/1e10,A){var J=_.filter(function(q){return A<0?q.width>S(q):!0});J.length&&(A=h(J,A,S))}return A}l.resizeColumns=h;function g(_){for(var A={},S=1,O=_.allRows(),T=0;T<O.length;T++)for(var k=O[T],L=0,B=_.columns;L<B.length;L++){var C=B[L],P=A[C.index];if(S>1)S--,delete k.cells[C.index];else if(P)P.cell.height+=k.height,S=P.cell.colSpan,delete k.cells[C.index],P.left--,P.left<=1&&delete A[C.index];else{var M=k.cells[C.index];if(!M)continue;if(M.height=k.height,M.rowSpan>1){var U=O.length-T,J=M.rowSpan>U?U:M.rowSpan;A[C.index]={cell:M,left:J,row:k}}}}}function p(_){for(var A=_.allRows(),S=0;S<A.length;S++)for(var O=A[S],T=null,k=0,L=0,B=0;B<_.columns.length;B++){var C=_.columns[B];if(L-=1,L>1&&_.columns[B+1])k+=C.width,delete O.cells[C.index];else if(T){var P=T;delete O.cells[C.index],T=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){T=P,k+=C.width;continue}P.width=C.width+k}}}function v(_,A){for(var S={count:0,height:0},O=0,T=_.allRows();O<T.length;O++){for(var k=T[O],L=0,B=_.columns;L<B.length;L++){var C=B[L],P=k.cells[C.index];if(P){A.applyStyles(P.styles,!0);var M=P.width-P.padding("horizontal");if(P.styles.overflow==="linebreak")P.text=A.splitTextToSize(P.text,M+1/A.scaleFactor(),{fontSize:P.styles.fontSize});else if(P.styles.overflow==="ellipsize")P.text=y(P.text,M,P.styles,A,"...");else if(P.styles.overflow==="hidden")P.text=y(P.text,M,P.styles,A,"");else if(typeof P.styles.overflow=="function"){var U=P.styles.overflow(P.text,M);typeof U=="string"?P.text=[U]:P.text=U}P.contentHeight=P.getContentHeight(A.scaleFactor(),A.getLineHeightFactor());var J=P.contentHeight/P.rowSpan;P.rowSpan>1&&S.count*S.height<J*P.rowSpan?S={height:J,count:P.rowSpan}:S&&S.count>0&&S.height>J&&(J=S.height),J>k.height&&(k.height=J)}}S.count--}}function y(_,A,S,O,T){return _.map(function(k){return b(k,A,S,O,T)})}l.ellipsize=y;function b(_,A,S,O,T){var k=1e4*O.scaleFactor();if(A=Math.ceil(A*k)/k,A>=(0,u.getStringWidth)(_,S,O))return _;for(;A<(0,u.getStringWidth)(_+T,S,O)&&!(_.length<=1);)_=_.substring(0,_.length-1);return _.trim()+T}}),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 c=i[s]={exports:{}};return n[s].call(c.exports,c,c.exports,a),c.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),c=a(776),u=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(A){(0,l.default)(A)}s.applyPlugin=p;function v(A,S){var O=(0,c.parseInput)(A,S),T=(0,f.createTable)(A,O);(0,u.drawTable)(A,T)}function y(A,S){var O=(0,c.parseInput)(A,S);return(0,f.createTable)(A,O)}s.__createTable=y;function b(A,S){(0,u.drawTable)(A,S)}s.__drawTable=b;try{var _=a(964);_.jsPDF&&(_=_.jsPDF),p(_)}catch{}s.default=v})(),o})()})})(R0)),R0.exports}hL();function dL({title:e,subtitle:t,headers:r,rows:n,filename:i,orientation:a="portrait"}){const o=new gt(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 gt;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 mL({student:e,payment:t,schoolName:r}){const n=new gt;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 vL({className:e,date:t,records:r,summary:n}){const i=new gt;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 B0={};B0.version="0.18.5";var RP=1252,gL=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],MP=function(e){gL.indexOf(e)!=-1&&(RP=e)};function yL(){MP(1252)}var cf=function(e){MP(e)};function xL(){cf(1200),yL()}var f0=function(t){return String.fromCharCode(t)},mw=function(t){return String.fromCharCode(t)},$0,Zo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function uf(e){for(var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0,c=0;c<e.length;)r=e.charCodeAt(c++),a=r>>2,n=e.charCodeAt(c++),o=(r&3)<<4|n>>4,i=e.charCodeAt(c++),s=(n&15)<<2|i>>6,l=i&63,isNaN(n)?s=l=64:isNaN(i)&&(l=64),t+=Zo.charAt(a)+Zo.charAt(o)+Zo.charAt(s)+Zo.charAt(l);return t}function xo(e){var t="",r=0,n=0,i=0,a=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)a=Zo.indexOf(e.charAt(c++)),o=Zo.indexOf(e.charAt(c++)),r=a<<2|o>>4,t+=String.fromCharCode(r),s=Zo.indexOf(e.charAt(c++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=Zo.indexOf(e.charAt(c++)),i=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(i));return t}var er=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),To=(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 er?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function vw(e){return er?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var va=function(t){return er?To(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function ap(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 jn=er?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:To(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)),jn(t)}var Vu=/\u0000/g,h0=/[\u0001-\u0006]/g;function Zl(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function ya(e,t){var r=""+e;return r.length>=t?r:Ur("0",t-r.length)+r}function H2(e,t){var r=""+e;return r.length>=t?r:Ur(" ",t-r.length)+r}function q0(e,t){var r=""+e;return r.length>=t?r:r+Ur(" ",t-r.length)}function _L(e,t){var r=""+Math.round(e);return r.length>=t?r:Ur("0",t-r.length)+r}function SL(e,t){var r=""+e;return r.length>=t?r:Ur("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 U0(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"]],D1=[["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 Wr={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 z0(e,t,r){for(var n=e<0?-1:1,i=e*n,a=0,o=1,s=0,l=1,c=0,u=0,f=Math.floor(i);c<t&&(f=Math.floor(i),s=f*o+a,u=f*c+l,!(i-f<5e-8));)i=1/(i-f),a=o,o=s,l=c,c=u;if(u>t&&(c>t?(u=l,s=a):(u=c,s=o)),!r)return[0,n*s,u];var d=Math.floor(n*s/u);return[d,n*s-d*u,u]}function d0(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 DP=new Date(1899,11,31,0,0,0),EL=DP.getTime(),PL=new Date(1900,2,1,0,0,0);function BP(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=PL&&(r+=1440*60*1e3),(r-(EL+(e.getTimezoneOffset()-DP.getTimezoneOffset())*6e4))/(1440*60*1e3)}function G2(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function NL(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function OL(e){var t=e<0?12:11,r=G2(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function CL(e){var t=G2(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=OL(e):t===10?r=e.toFixed(10).substr(0,12):r=CL(e),G2(NL(r.toUpperCase()))}function dx(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 ss(14,BP(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,c=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,c=2;break;default:l=s%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,c=t.length;break;case 3:return D1[r.m-1][1];case 5:return D1[r.m-1][0];default:return D1[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,c=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,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,c=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")?ya(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=ya(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}c=t.length===3?1:2;break;case 101:l=s,c=1;break}var u=c>0?ya(l,c):"";return u}function Qo(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 $P=/%/g;function IL(e,t,r){var n=t.replace($P,""),i=t.length-n.length;return fo(e,n,r*Math.pow(10,2*i))+Ur("%",i)}function FL(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return fo(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function qP(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"-"+qP(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,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.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 UP=/# (\?+)( ?)\/( ?)(\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?Ur(" ",e[1].length+1+e[4].length):H2(o,e[1].length)+e[2]+"/"+e[3]+ya(s,e[4].length))}function ML(e,t,r){return r+(t===0?"":""+t)+Ur(" ",e[1].length+2+e[4].length)}var zP=/^#*0*\.([0#]+)/,WP=/\).*[0#]/,HP=/\(###\) ###\\?-####/;function Qn(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 Gi(e,t,r){if(e.charCodeAt(0)===40&&!t.match(WP)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Gi("n",n,r):"("+Gi("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 qP(t,r);if(t.charCodeAt(0)===36)return"$"+Gi(e,t.substr(t.charAt(1)==" "?2:1),r);var i,a,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+Il(l,t.length);if(t.match(/^[#?]+$/))return i=Il(r,0),i==="0"&&(i=""),i.length>t.length?i:Qn(t.substr(0,t.length-i.length))+i;if(a=t.match(UP))return RL(a,l,c);if(t.match(/^#+0+$/))return c+Il(l,t.length-t.indexOf("0"));if(a=t.match(zP))return i=bw(r,a[1].length).replace(/^([^\.]+)$/,"$1."+Qn(a[1])).replace(/\.$/,"."+Qn(a[1])).replace(/\.(\d*)$/,function(g,p){return"."+p+Ur("0",Qn(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+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 c+Qo(Il(l,0));if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Gi(e,t,-r):Qo(""+(Math.floor(r)+DL(r,a[1].length)))+"."+ya(ww(r,a[1].length),a[1].length);if(a=t.match(/^#,#*,#0/))return Gi(e,t.replace(/^#,#*,/,""),r);if(a=t.match(/^([0#]+)(\\?-([0#]+))+$/))return i=Zl(Gi(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(HP))return i=Gi(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=z0(l,Math.pow(10,o)-1,!1),i=""+c,u=fo("n",a[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=q0(s[2],o),u.length<a[4].length&&(u=Qn(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=z0(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?H2(s[1],o)+a[2]+"/"+a[3]+q0(s[2],o):Ur(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=Il(r,0),t.length<=i.length?i:Qn(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 Qn(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?"-"+Gi(e,t,-r):Qo(BL(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?ya(0,3-g.length):"")+g})+"."+ya(o,a[1].length);switch(t){case"###,##0.00":return Gi(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var h=Qo(Il(l,0));return h!=="0"?c+h:"";case"###,###.00":return Gi(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Gi(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 fo(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function qL(e,t,r){var n=t.replace($P,""),i=t.length-n.length;return fo(e,n,r*Math.pow(10,2*i))+Ur("%",i)}function GP(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"-"+GP(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,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.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(WP)){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 GP(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),c=r<0?"-":"";if(t.match(/^00+$/))return c+ya(l,t.length);if(t.match(/^[#?]+$/))return i=""+r,r===0&&(i=""),i.length>t.length?i:Qn(t.substr(0,t.length-i.length))+i;if(a=t.match(UP))return ML(a,l,c);if(t.match(/^#+0+$/))return c+ya(l,t.length-t.indexOf("0"));if(a=t.match(zP))return i=(""+r).replace(/^([^\.]+)$/,"$1."+Qn(a[1])).replace(/\.$/,"."+Qn(a[1])),i=i.replace(/\.(\d*)$/,function(g,p){return"."+p+Ur("0",Qn(a[1]).length-p.length)}),t.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),a=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=t.match(/^#{1,3},##0(\.?)$/))return c+Qo(""+l);if(a=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+ka(e,t,-r):Qo(""+r)+"."+Ur("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(HP))return i=ka(e,"##########",r),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(a[4].length,7),s=z0(l,Math.pow(10,o)-1,!1),i=""+c,u=fo("n",a[1],s[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=q0(s[2],o),u.length<a[4].length&&(u=Qn(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(a[1].length,a[4].length),7),s=z0(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?H2(s[1],o)+a[2]+"/"+a[3]+q0(s[2],o):Ur(" ",2*o+1+a[2].length+a[3].length));if(a=t.match(/^[#0?]+$/))return i=""+r,t.length<=i.length?i:Qn(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 Qn(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):Qo(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?ya(0,3-g.length):"")+g})+"."+ya(0,a[1].length);switch(t){case"###,###":case"##,###":case"#,###":var h=Qo(""+l);return h!=="0"?c+h:"";default:if(t.match(/\.[0#?]*$/))return ka(e,t.slice(0,t.lastIndexOf(".")),r)+Qn(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function fo(e,t,r){return(r|0)===r?ka(e,t,r):Gi(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 VP=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function YP(e){for(var t=0,r="",n="";t<e.length;)switch(r=e.charAt(t)){case"G":U0(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(VP))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",c,u,f,d="H";o<e.length;)switch(s=e.charAt(o)){case"G":if(!U0(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(c==null&&(c=d0(t,r,e.charAt(o+1)==="2"),c==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||c==null&&(c=d0(t,r),c==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(c==null&&(c=d0(t,r)),e.substr(o,3).toUpperCase()==="A/P"?(c!=null&&(p.v=c.H>=12?"P":"A"),p.t="T",d="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(c!=null&&(p.v=c.H>=12?"PM":"AM"),p.t="T",o+=5,d="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(c!=null&&(p.v=c.H>=12?"下午":"上午"),p.t="T",o+=5,d="h"):(p.t="t",++o),c==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(VP)){if(c==null&&(c=d0(t,r),c==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",YP(e)||(i[i.length]={t:"t",v:a}));break;case".":if(c!=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 v=0,y=0,b;for(o=i.length-1,l="t";o>=0;--o)switch(i[o].t){case"h":case"H":i[o].t=d,l="h",v<1&&(v=1);break;case"s":(b=i[o].v.match(/\.0+$/))&&(y=Math.max(y,b[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":l=i[o].t;break;case"m":l==="s"&&(i[o].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&i[o].v.match(/[Hh]/)&&(v=1),v<2&&i[o].v.match(/[Mm]/)&&(v=2),v<3&&i[o].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var _="",A;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,c,y),i[o].t="t";break;case"n":case"?":for(A=o+1;i[A]!=null&&((s=i[A].t)==="?"||s==="D"||(s===" "||s==="t")&&i[A+1]!=null&&(i[A+1].t==="?"||i[A+1].t==="t"&&i[A+1].v==="/")||i[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(i[A].v==="/"||i[A].v===" "&&i[A+1]!=null&&i[A+1].t=="?"));)i[o].v+=i[A].v,i[A]={v:"",t:";"},++A;_+=i[o].v,o=A-1;break;case"G":i[o].t="t",i[o].v=dx(t,r);break}var S="",O,T;if(_.length>0){_.charCodeAt(0)==40?(O=t<0&&_.charCodeAt(0)===45?-t:t,T=fo("n",_,O)):(O=t<0&&n>1?-t:t,T=fo("n",_,O),O<0&&i[0]&&i[0].t=="t"&&(T=T.substr(1),i[0].v="-"+i[0].v)),A=T.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&&T.indexOf("E")===-1){for(o=i.length-1;o>=0;--o)i[o]==null||"n?".indexOf(i[o].t)===-1||(A>=i[o].v.length-1?(A-=i[o].v.length,i[o].v=T.substr(A+1,i[o].v.length)):A<0?i[o].v="":(i[o].v=T.substr(0,A+1),A=-1),i[o].t="t",L=o);A>=0&&L<i.length&&(i[L].v=T.substr(0,A+1)+i[L].v)}else if(k!==i.length&&T.indexOf("E")===-1){for(A=T.indexOf(".")-1,o=k;o>=0;--o)if(!(i[o]==null||"n?".indexOf(i[o].t)===-1)){for(u=i[o].v.indexOf(".")>-1&&o===k?i[o].v.indexOf(".")-1:i[o].v.length-1,S=i[o].v.substr(u+1);u>=0;--u)A>=0&&(i[o].v.charAt(u)==="0"||i[o].v.charAt(u)==="#")&&(S=T.charAt(A--)+S);i[o].v=S,i[o].t="t",L=o}for(A>=0&&L<i.length&&(i[L].v=T.substr(0,A+1)+i[L].v),A=T.indexOf(".")+1,o=k;o<i.length;++o)if(!(i[o]==null||"n?(".indexOf(i[o].t)===-1&&o!==k)){for(u=i[o].v.indexOf(".")>-1&&o===k?i[o].v.indexOf(".")+1:0,S=i[o].v.substr(0,u);u<i[o].v.length;++u)A<T.length&&(S+=T.charAt(A++));i[o].v=S,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=fo(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 ss(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:Wr)[e],n==null&&(n=r.table&&r.table[xw[e]]||Wr[xw[e]]),n==null&&(n=TL[e]||"General");break}if(U0(n,0))return dx(t,r);t instanceof Date&&(t=BP(t,r.date1904));var i=WL(n,t);if(U0(i[1]))return dx(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 KP(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Wr[r]==null){t<0&&(t=r);continue}if(Wr[r]==e){t=r;break}}t<0&&(t=391)}return Wr[t]=e,t}function op(e){for(var t=0;t!=392;++t)e[t]!==void 0&&KP(e[t],t)}function sp(){Wr=AL()}var XP=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function HL(e){var t=typeof e=="number"?Wr[e]:e;return t=t.replace(XP,"(\\d+)"),new RegExp("^"+t+"$")}function GL(e,t,r){var n=-1,i=-1,a=-1,o=-1,s=-1,l=-1;(t.match(XP)||[]).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 c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("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?c:n==-1&&i==-1&&a==-1?u:c+"T"+u}var VL=(function(){var e={};e.version="1.2.0";function t(){for(var T=0,k=new Array(256),L=0;L!=256;++L)T=L,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,T=T&1?-306674912^T>>>1:T>>>1,k[L]=T;return typeof Int32Array<"u"?new Int32Array(k):k}var r=t();function n(T){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]=T[B];for(B=0;B!=256;++B)for(L=T[B],k=256+B;k<4096;k+=256)L=C[k]=L>>>8^T[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],c=i[4],u=i[5],f=i[6],d=i[7],h=i[8],g=i[9],p=i[10],v=i[11],y=i[12],b=i[13],_=i[14];function A(T,k){for(var L=k^-1,B=0,C=T.length;B<C;)L=L>>>8^r[(L^T.charCodeAt(B++))&255];return~L}function S(T,k){for(var L=k^-1,B=T.length-15,C=0;C<B;)L=_[T[C++]^L&255]^b[T[C++]^L>>8&255]^y[T[C++]^L>>16&255]^v[T[C++]^L>>>24]^p[T[C++]]^g[T[C++]]^h[T[C++]]^d[T[C++]]^f[T[C++]]^u[T[C++]]^c[T[C++]]^l[T[C++]]^s[T[C++]]^o[T[C++]]^a[T[C++]]^r[T[C++]];for(B+=15;C<B;)L=L>>>8^r[(L^T[C++])&255];return~L}function O(T,k){for(var L=k^-1,B=0,C=T.length,P=0,M=0;B<C;)P=T.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=T.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=A,e.buf=S,e.str=O,e})(),br=(function(){var t={};t.version="1.2.1";function r(K,de){for(var ie=K.split("/"),oe=de.split("/"),he=0,pe=0,Ne=Math.min(ie.length,oe.length);he<Ne;++he){if(pe=ie[he].length-oe[he].length)return pe;if(ie[he]!=oe[he])return ie[he]<oe[he]?-1:1}return ie.length-oe.length}function n(K){if(K.charAt(K.length-1)=="/")return K.slice(0,-1).indexOf("/")===-1?K:n(K.slice(0,-1));var de=K.lastIndexOf("/");return de===-1?K:K.slice(0,de+1)}function i(K){if(K.charAt(K.length-1)=="/")return i(K.slice(0,-1));var de=K.lastIndexOf("/");return de===-1?K:K.slice(de+1)}function a(K,de){typeof de=="string"&&(de=new Date(de));var ie=de.getHours();ie=ie<<6|de.getMinutes(),ie=ie<<5|de.getSeconds()>>>1,K.write_shift(2,ie);var oe=de.getFullYear()-1980;oe=oe<<4|de.getMonth()+1,oe=oe<<5|de.getDate(),K.write_shift(2,oe)}function o(K){var de=K.read_shift(2)&65535,ie=K.read_shift(2)&65535,oe=new Date,he=ie&31;ie>>>=5;var pe=ie&15;ie>>>=4,oe.setMilliseconds(0),oe.setFullYear(ie+1980),oe.setMonth(pe-1),oe.setDate(he);var Ne=de&31;de>>>=5;var Le=de&63;return de>>>=6,oe.setHours(de),oe.setMinutes(Le),oe.setSeconds(Ne<<1),oe}function s(K){Ni(K,0);for(var de={},ie=0;K.l<=K.length-4;){var oe=K.read_shift(2),he=K.read_shift(2),pe=K.l+he,Ne={};switch(oe){case 21589:ie=K.read_shift(1),ie&1&&(Ne.mtime=K.read_shift(4)),he>5&&(ie&2&&(Ne.atime=K.read_shift(4)),ie&4&&(Ne.ctime=K.read_shift(4))),Ne.mtime&&(Ne.mt=new Date(Ne.mtime*1e3));break}K.l=pe,de[oe]=Ne}return de}var l;function c(){return l||(l={})}function u(K,de){if(K[0]==80&&K[1]==75)return Tt(K,de);if((K[0]|32)==109&&(K[1]|32)==105)return Fi(K,de);if(K.length<512)throw new Error("CFB file size "+K.length+" < 512");var ie=3,oe=512,he=0,pe=0,Ne=0,Le=0,Pe=0,je=[],ke=K.slice(0,512);Ni(ke,0);var Ve=f(ke);switch(ie=Ve[0],ie){case 3:oe=512;break;case 4:oe=4096;break;case 0:if(Ve[1]==0)return Tt(K,de);default:throw new Error("Major Version: Expected 3 or 4 saw "+ie)}oe!==512&&(ke=K.slice(0,oe),Ni(ke,28));var Qe=K.slice(0,oe);d(ke,ie);var lt=ke.read_shift(4,"i");if(ie===3&&lt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+lt);ke.l+=4,Ne=ke.read_shift(4,"i"),ke.l+=4,ke.chk("00100000","Mini Stream Cutoff Size: "),Le=ke.read_shift(4,"i"),he=ke.read_shift(4,"i"),Pe=ke.read_shift(4,"i"),pe=ke.read_shift(4,"i");for(var Xe=-1,st=0;st<109&&(Xe=ke.read_shift(4,"i"),!(Xe<0));++st)je[st]=Xe;var Ot=h(K,oe);v(Pe,pe,Ot,oe,je);var tr=b(Ot,Ne,je,oe);tr[Ne].name="!Directory",he>0&&Le!==M&&(tr[Le].name="!MiniFAT"),tr[je[0]].name="!FAT",tr.fat_addrs=je,tr.ssz=oe;var yr={},Zr=[],ea=[],Ga=[];_(Ne,tr,Ot,Zr,he,yr,ea,Le),g(ea,Ga,Zr),Zr.shift();var Ta={FileIndex:ea,FullPaths:Ga};return de&&de.raw&&(Ta.raw={header:Qe,sectors:Ot}),Ta}function f(K){if(K[K.l]==80&&K[K.l+1]==75)return[0,0];K.chk(U,"Header Signature: "),K.l+=16;var de=K.read_shift(2,"u");return[K.read_shift(2,"u"),de]}function d(K,de){var ie=9;switch(K.l+=2,ie=K.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)}K.chk("0600","Mini Sector Shift: "),K.chk("000000000000","Reserved: ")}function h(K,de){for(var ie=Math.ceil(K.length/de)-1,oe=[],he=1;he<ie;++he)oe[he-1]=K.slice(he*de,(he+1)*de);return oe[ie-1]=K.slice(ie*de),oe}function g(K,de,ie){for(var oe=0,he=0,pe=0,Ne=0,Le=0,Pe=ie.length,je=[],ke=[];oe<Pe;++oe)je[oe]=ke[oe]=oe,de[oe]=ie[oe];for(;Le<ke.length;++Le)oe=ke[Le],he=K[oe].L,pe=K[oe].R,Ne=K[oe].C,je[oe]===oe&&(he!==-1&&je[he]!==he&&(je[oe]=je[he]),pe!==-1&&je[pe]!==pe&&(je[oe]=je[pe])),Ne!==-1&&(je[Ne]=oe),he!==-1&&oe!=je[oe]&&(je[he]=je[oe],ke.lastIndexOf(he)<Le&&ke.push(he)),pe!==-1&&oe!=je[oe]&&(je[pe]=je[oe],ke.lastIndexOf(pe)<Le&&ke.push(pe));for(oe=1;oe<Pe;++oe)je[oe]===oe&&(pe!==-1&&je[pe]!==pe?je[oe]=je[pe]:he!==-1&&je[he]!==he&&(je[oe]=je[he]));for(oe=1;oe<Pe;++oe)if(K[oe].type!==0){if(Le=oe,Le!=je[Le])do Le=je[Le],de[oe]=de[Le]+"/"+de[oe];while(Le!==0&&je[Le]!==-1&&Le!=je[Le]);je[oe]=-1}for(de[0]+="/",oe=1;oe<Pe;++oe)K[oe].type!==2&&(de[oe]+="/")}function p(K,de,ie){for(var oe=K.start,he=K.size,pe=[],Ne=oe;ie&&he>0&&Ne>=0;)pe.push(de.slice(Ne*P,Ne*P+P)),he-=P,Ne=js(ie,Ne*4);return pe.length===0?Me(0):jn(pe).slice(0,K.size)}function v(K,de,ie,oe,he){var pe=M;if(K===M){if(de!==0)throw new Error("DIFAT chain shorter than expected")}else if(K!==-1){var Ne=ie[K],Le=(oe>>>2)-1;if(!Ne)return;for(var Pe=0;Pe<Le&&(pe=js(Ne,Pe*4))!==M;++Pe)he.push(pe);v(js(Ne,oe-4),de-1,ie,oe,he)}}function y(K,de,ie,oe,he){var pe=[],Ne=[];he||(he=[]);var Le=oe-1,Pe=0,je=0;for(Pe=de;Pe>=0;){he[Pe]=!0,pe[pe.length]=Pe,Ne.push(K[Pe]);var ke=ie[Math.floor(Pe*4/oe)];if(je=Pe*4&Le,oe<4+je)throw new Error("FAT boundary crossed: "+Pe+" 4 "+oe);if(!K[ke])break;Pe=js(K[ke],je)}return{nodes:pe,data:jw([Ne])}}function b(K,de,ie,oe){var he=K.length,pe=[],Ne=[],Le=[],Pe=[],je=oe-1,ke=0,Ve=0,Qe=0,lt=0;for(ke=0;ke<he;++ke)if(Le=[],Qe=ke+de,Qe>=he&&(Qe-=he),!Ne[Qe]){Pe=[];var Xe=[];for(Ve=Qe;Ve>=0;){Xe[Ve]=!0,Ne[Ve]=!0,Le[Le.length]=Ve,Pe.push(K[Ve]);var st=ie[Math.floor(Ve*4/oe)];if(lt=Ve*4&je,oe<4+lt)throw new Error("FAT boundary crossed: "+Ve+" 4 "+oe);if(!K[st]||(Ve=js(K[st],lt),Xe[Ve]))break}pe[Qe]={nodes:Le,data:jw([Pe])}}return pe}function _(K,de,ie,oe,he,pe,Ne,Le){for(var Pe=0,je=oe.length?2:0,ke=de[K].data,Ve=0,Qe=0,lt;Ve<ke.length;Ve+=128){var Xe=ke.slice(Ve,Ve+128);Ni(Xe,64),Qe=Xe.read_shift(2),lt=J2(Xe,0,Qe-je),oe.push(lt);var st={name:lt,type:Xe.read_shift(1),color:Xe.read_shift(1),L:Xe.read_shift(4,"i"),R:Xe.read_shift(4,"i"),C:Xe.read_shift(4,"i"),clsid:Xe.read_shift(16),state:Xe.read_shift(4,"i"),start:0,size:0},Ot=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);Ot!==0&&(st.ct=A(Xe,Xe.l-8));var tr=Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2)+Xe.read_shift(2);tr!==0&&(st.mt=A(Xe,Xe.l-8)),st.start=Xe.read_shift(4,"i"),st.size=Xe.read_shift(4,"i"),st.size<0&&st.start<0&&(st.size=st.type=0,st.start=M,st.name=""),st.type===5?(Pe=st.start,he>0&&Pe!==M&&(de[Pe].name="!StreamData")):st.size>=4096?(st.storage="fat",de[st.start]===void 0&&(de[st.start]=y(ie,st.start,de.fat_addrs,de.ssz)),de[st.start].name=st.name,st.content=de[st.start].data.slice(0,st.size)):(st.storage="minifat",st.size<0?st.size=0:Pe!==M&&st.start!==M&&de[Pe]&&(st.content=p(st,de[Pe].data,(de[Le]||{}).data))),st.content&&Ni(st.content,0),pe[lt]=st,Ne.push(st)}}function A(K,de){return new Date((Ci(K,de+4)/1e7*Math.pow(2,32)+Ci(K,de)/1e7-11644473600)*1e3)}function S(K,de){return c(),u(l.readFileSync(K),de)}function O(K,de){var ie=de&&de.type;switch(ie||er&&Buffer.isBuffer(K)&&(ie="buffer"),ie||"base64"){case"file":return S(K,de);case"base64":return u(va(xo(K)),de);case"binary":return u(va(K),de)}return u(K,de)}function T(K,de){var ie=de||{},oe=ie.root||"Root Entry";if(K.FullPaths||(K.FullPaths=[]),K.FileIndex||(K.FileIndex=[]),K.FullPaths.length!==K.FileIndex.length)throw new Error("inconsistent CFB structure");K.FullPaths.length===0&&(K.FullPaths[0]=oe+"/",K.FileIndex[0]={name:oe,type:5}),ie.CLSID&&(K.FileIndex[0].clsid=ie.CLSID),k(K)}function k(K){var de="Sh33tJ5";if(!br.find(K,"/"+de)){var ie=Me(4);ie[0]=55,ie[1]=ie[3]=50,ie[2]=54,K.FileIndex.push({name:de,type:2,content:ie,size:4,L:69,R:69,C:69}),K.FullPaths.push(K.FullPaths[0]+de),L(K)}}function L(K,de){T(K);for(var ie=!1,oe=!1,he=K.FullPaths.length-1;he>=0;--he){var pe=K.FileIndex[he];switch(pe.type){case 0:oe?ie=!0:(K.FileIndex.pop(),K.FullPaths.pop());break;case 1:case 2:case 5:oe=!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 Ne=new Date(1987,1,19),Le=0,Pe=Object.create?Object.create(null):{},je=[];for(he=0;he<K.FullPaths.length;++he)Pe[K.FullPaths[he]]=!0,K.FileIndex[he].type!==0&&je.push([K.FullPaths[he],K.FileIndex[he]]);for(he=0;he<je.length;++he){var ke=n(je[he][0]);oe=Pe[ke],oe||(je.push([ke,{name:i(ke).replace("/",""),type:1,clsid:q,ct:Ne,mt:Ne,content:null}]),Pe[ke]=!0)}for(je.sort(function(lt,Xe){return r(lt[0],Xe[0])}),K.FullPaths=[],K.FileIndex=[],he=0;he<je.length;++he)K.FullPaths[he]=je[he][0],K.FileIndex[he]=je[he][1];for(he=0;he<je.length;++he){var Ve=K.FileIndex[he],Qe=K.FullPaths[he];if(Ve.name=i(Qe).replace("/",""),Ve.L=Ve.R=Ve.C=-(Ve.color=1),Ve.size=Ve.content?Ve.content.length:0,Ve.start=0,Ve.clsid=Ve.clsid||q,he===0)Ve.C=je.length>1?1:-1,Ve.size=0,Ve.type=5;else if(Qe.slice(-1)=="/"){for(Le=he+1;Le<je.length&&n(K.FullPaths[Le])!=Qe;++Le);for(Ve.C=Le>=je.length?-1:Le,Le=he+1;Le<je.length&&n(K.FullPaths[Le])!=n(Qe);++Le);Ve.R=Le>=je.length?-1:Le,Ve.type=1}else n(K.FullPaths[he+1]||"")==n(Qe)&&(Ve.R=he+1),Ve.type=2}}}function B(K,de){var ie=de||{};if(ie.fileType=="mad")return wt(K,ie);switch(L(K),ie.fileType){case"zip":return Yt(K,ie)}var oe=(function(lt){for(var Xe=0,st=0,Ot=0;Ot<lt.FileIndex.length;++Ot){var tr=lt.FileIndex[Ot];if(tr.content){var yr=tr.content.length;yr>0&&(yr<4096?Xe+=yr+63>>6:st+=yr+511>>9)}}for(var Zr=lt.FullPaths.length+3>>2,ea=Xe+7>>3,Ga=Xe+127>>7,Ta=ea+st+Zr+Ga,ta=Ta+127>>7,Ea=ta<=109?0:Math.ceil((ta-109)/127);Ta+ta+Ea+127>>7>ta;)Ea=++ta<=109?0:Math.ceil((ta-109)/127);var xi=[1,Ea,ta,Ga,Zr,st,Xe,0];return lt.FileIndex[0].size=Xe<<6,xi[7]=(lt.FileIndex[0].start=xi[0]+xi[1]+xi[2]+xi[3]+xi[4]+xi[5])+(xi[6]+7>>3),xi})(K),he=Me(oe[7]<<9),pe=0,Ne=0;{for(pe=0;pe<8;++pe)he.write_shift(1,J[pe]);for(pe=0;pe<8;++pe)he.write_shift(2,0);for(he.write_shift(2,62),he.write_shift(2,3),he.write_shift(2,65534),he.write_shift(2,9),he.write_shift(2,6),pe=0;pe<3;++pe)he.write_shift(2,0);for(he.write_shift(4,0),he.write_shift(4,oe[2]),he.write_shift(4,oe[0]+oe[1]+oe[2]+oe[3]-1),he.write_shift(4,0),he.write_shift(4,4096),he.write_shift(4,oe[3]?oe[0]+oe[1]+oe[2]-1:M),he.write_shift(4,oe[3]),he.write_shift(-4,oe[1]?oe[0]-1:M),he.write_shift(4,oe[1]),pe=0;pe<109;++pe)he.write_shift(-4,pe<oe[2]?oe[1]+pe:-1)}if(oe[1])for(Ne=0;Ne<oe[1];++Ne){for(;pe<236+Ne*127;++pe)he.write_shift(-4,pe<oe[2]?oe[1]+pe:-1);he.write_shift(-4,Ne===oe[1]-1?M:Ne+1)}var Le=function(lt){for(Ne+=lt;pe<Ne-1;++pe)he.write_shift(-4,pe+1);lt&&(++pe,he.write_shift(-4,M))};for(Ne=pe=0,Ne+=oe[1];pe<Ne;++pe)he.write_shift(-4,W.DIFSECT);for(Ne+=oe[2];pe<Ne;++pe)he.write_shift(-4,W.FATSECT);Le(oe[3]),Le(oe[4]);for(var Pe=0,je=0,ke=K.FileIndex[0];Pe<K.FileIndex.length;++Pe)ke=K.FileIndex[Pe],ke.content&&(je=ke.content.length,!(je<4096)&&(ke.start=Ne,Le(je+511>>9)));for(Le(oe[6]+7>>3);he.l&511;)he.write_shift(-4,W.ENDOFCHAIN);for(Ne=pe=0,Pe=0;Pe<K.FileIndex.length;++Pe)ke=K.FileIndex[Pe],ke.content&&(je=ke.content.length,!(!je||je>=4096)&&(ke.start=Ne,Le(je+63>>6)));for(;he.l&511;)he.write_shift(-4,W.ENDOFCHAIN);for(pe=0;pe<oe[4]<<2;++pe){var Ve=K.FullPaths[pe];if(!Ve||Ve.length===0){for(Pe=0;Pe<17;++Pe)he.write_shift(4,0);for(Pe=0;Pe<3;++Pe)he.write_shift(4,-1);for(Pe=0;Pe<12;++Pe)he.write_shift(4,0);continue}ke=K.FileIndex[pe],pe===0&&(ke.start=ke.size?ke.start-1:M);var Qe=pe===0&&ie.root||ke.name;if(je=2*(Qe.length+1),he.write_shift(64,Qe,"utf16le"),he.write_shift(2,je),he.write_shift(1,ke.type),he.write_shift(1,ke.color),he.write_shift(-4,ke.L),he.write_shift(-4,ke.R),he.write_shift(-4,ke.C),ke.clsid)he.write_shift(16,ke.clsid,"hex");else for(Pe=0;Pe<4;++Pe)he.write_shift(4,0);he.write_shift(4,ke.state||0),he.write_shift(4,0),he.write_shift(4,0),he.write_shift(4,0),he.write_shift(4,0),he.write_shift(4,ke.start),he.write_shift(4,ke.size),he.write_shift(4,0)}for(pe=1;pe<K.FileIndex.length;++pe)if(ke=K.FileIndex[pe],ke.size>=4096)if(he.l=ke.start+1<<9,er&&Buffer.isBuffer(ke.content))ke.content.copy(he,he.l,0,ke.size),he.l+=ke.size+511&-512;else{for(Pe=0;Pe<ke.size;++Pe)he.write_shift(1,ke.content[Pe]);for(;Pe&511;++Pe)he.write_shift(1,0)}for(pe=1;pe<K.FileIndex.length;++pe)if(ke=K.FileIndex[pe],ke.size>0&&ke.size<4096)if(er&&Buffer.isBuffer(ke.content))ke.content.copy(he,he.l,0,ke.size),he.l+=ke.size+63&-64;else{for(Pe=0;Pe<ke.size;++Pe)he.write_shift(1,ke.content[Pe]);for(;Pe&63;++Pe)he.write_shift(1,0)}if(er)he.l=he.length;else for(;he.l<he.length;)he.write_shift(1,0);return he}function C(K,de){var ie=K.FullPaths.map(function(Pe){return Pe.toUpperCase()}),oe=ie.map(function(Pe){var je=Pe.split("/");return je[je.length-(Pe.slice(-1)=="/"?2:1)]}),he=!1;de.charCodeAt(0)===47?(he=!0,de=ie[0].slice(0,-1)+de):he=de.indexOf("/")!==-1;var pe=de.toUpperCase(),Ne=he===!0?ie.indexOf(pe):oe.indexOf(pe);if(Ne!==-1)return K.FileIndex[Ne];var Le=!pe.match(h0);for(pe=pe.replace(Vu,""),Le&&(pe=pe.replace(h0,"!")),Ne=0;Ne<ie.length;++Ne)if((Le?ie[Ne].replace(h0,"!"):ie[Ne]).replace(Vu,"")==pe||(Le?oe[Ne].replace(h0,"!"):oe[Ne]).replace(Vu,"")==pe)return K.FileIndex[Ne];return null}var P=64,M=-2,U="d0cf11e0a1b11ae1",J=[208,207,17,224,161,177,26,225],q="00000000000000000000000000000000",W={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:M,FREESECT:-1,HEADER_SIGNATURE:U,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:q,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ee(K,de,ie){c();var oe=B(K,ie);l.writeFileSync(de,oe)}function Z(K){for(var de=new Array(K.length),ie=0;ie<K.length;++ie)de[ie]=String.fromCharCode(K[ie]);return de.join("")}function Q(K,de){var ie=B(K,de);switch(de&&de.type||"buffer"){case"file":return c(),l.writeFileSync(de.filename,ie),ie;case"binary":return typeof ie=="string"?ie:Z(ie);case"base64":return uf(typeof ie=="string"?ie:Z(ie));case"buffer":if(er)return Buffer.isBuffer(ie)?ie:To(ie);case"array":return typeof ie=="string"?va(ie):ie}return ie}var ce;function N(K){try{var de=K.InflateRaw,ie=new de;if(ie._processChunk(new Uint8Array([3,0]),ie._finishFlushFlag),ie.bytesRead)ce=K;else throw new Error("zlib does not expose bytesRead")}catch(oe){console.error("cannot use native zlib: "+(oe.message||oe))}}function I(K,de){if(!ce)return we(K,de);var ie=ce.InflateRaw,oe=new ie,he=oe._processChunk(K.slice(K.l),oe._finishFlushFlag);return K.l+=oe.bytesRead,he}function R(K){return ce?ce.deflateRawSync(K):Rt(K)}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],fe=[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 ae(K){var de=(K<<1|K<<11)&139536|(K<<5|K<<15)&558144;return(de>>16|de>>8|de)&255}for(var ne=typeof Uint8Array<"u",ve=ne?new Uint8Array(256):[],_e=0;_e<256;++_e)ve[_e]=ae(_e);function se(K,de){var ie=ve[K&255];return de<=8?ie>>>8-de:(ie=ie<<8|ve[K>>8&255],de<=16?ie>>>16-de:(ie=ie<<8|ve[K>>16&255],ie>>>24-de))}function Fe(K,de){var ie=de&7,oe=de>>>3;return(K[oe]|(ie<=6?0:K[oe+1]<<8))>>>ie&3}function Ae(K,de){var ie=de&7,oe=de>>>3;return(K[oe]|(ie<=5?0:K[oe+1]<<8))>>>ie&7}function Ee(K,de){var ie=de&7,oe=de>>>3;return(K[oe]|(ie<=4?0:K[oe+1]<<8))>>>ie&15}function le(K,de){var ie=de&7,oe=de>>>3;return(K[oe]|(ie<=3?0:K[oe+1]<<8))>>>ie&31}function De(K,de){var ie=de&7,oe=de>>>3;return(K[oe]|(ie<=1?0:K[oe+1]<<8))>>>ie&127}function tt(K,de,ie){var oe=de&7,he=de>>>3,pe=(1<<ie)-1,Ne=K[he]>>>oe;return ie<8-oe||(Ne|=K[he+1]<<8-oe,ie<16-oe)||(Ne|=K[he+2]<<16-oe,ie<24-oe)||(Ne|=K[he+3]<<24-oe),Ne&pe}function Ue(K,de,ie){var oe=de&7,he=de>>>3;return oe<=5?K[he]|=(ie&7)<<oe:(K[he]|=ie<<oe&255,K[he+1]=(ie&7)>>8-oe),de+3}function Ke(K,de,ie){var oe=de&7,he=de>>>3;return ie=(ie&1)<<oe,K[he]|=ie,de+1}function Ze(K,de,ie){var oe=de&7,he=de>>>3;return ie<<=oe,K[he]|=ie&255,ie>>>=8,K[he+1]=ie,de+8}function Je(K,de,ie){var oe=de&7,he=de>>>3;return ie<<=oe,K[he]|=ie&255,ie>>>=8,K[he+1]=ie&255,K[he+2]=ie>>>8,de+16}function ft(K,de){var ie=K.length,oe=2*ie>de?2*ie:de+5,he=0;if(ie>=de)return K;if(er){var pe=vw(oe);if(K.copy)K.copy(pe);else for(;he<K.length;++he)pe[he]=K[he];return pe}else if(ne){var Ne=new Uint8Array(oe);if(Ne.set)Ne.set(K);else for(;he<ie;++he)Ne[he]=K[he];return Ne}return K.length=oe,K}function pt(K){for(var de=new Array(K),ie=0;ie<K;++ie)de[ie]=0;return de}function xt(K,de,ie){var oe=1,he=0,pe=0,Ne=0,Le=0,Pe=K.length,je=ne?new Uint16Array(32):pt(32);for(pe=0;pe<32;++pe)je[pe]=0;for(pe=Pe;pe<ie;++pe)K[pe]=0;Pe=K.length;var ke=ne?new Uint16Array(Pe):pt(Pe);for(pe=0;pe<Pe;++pe)je[he=K[pe]]++,oe<he&&(oe=he),ke[pe]=0;for(je[0]=0,pe=1;pe<=oe;++pe)je[pe+16]=Le=Le+je[pe-1]<<1;for(pe=0;pe<Pe;++pe)Le=K[pe],Le!=0&&(ke[pe]=je[Le+16]++);var Ve=0;for(pe=0;pe<Pe;++pe)if(Ve=K[pe],Ve!=0)for(Le=se(ke[pe],oe)>>oe-Ve,Ne=(1<<oe+4-Ve)-1;Ne>=0;--Ne)de[Le|Ne<<Ve]=Ve&15|pe<<4;return oe}var Nt=ne?new Uint16Array(512):pt(512),Ft=ne?new Uint16Array(32):pt(32);if(!ne){for(var zt=0;zt<512;++zt)Nt[zt]=0;for(zt=0;zt<32;++zt)Ft[zt]=0}(function(){for(var K=[],de=0;de<32;de++)K.push(5);xt(K,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,Nt,288)})();var bt=(function(){for(var de=ne?new Uint8Array(32768):[],ie=0,oe=0;ie<fe.length-1;++ie)for(;oe<fe[ie+1];++oe)de[oe]=ie;for(;oe<32768;++oe)de[oe]=29;var he=ne?new Uint8Array(259):[];for(ie=0,oe=0;ie<G.length-1;++ie)for(;oe<G[ie+1];++oe)he[oe]=ie;function pe(Le,Pe){for(var je=0;je<Le.length;){var ke=Math.min(65535,Le.length-je),Ve=je+ke==Le.length;for(Pe.write_shift(1,+Ve),Pe.write_shift(2,ke),Pe.write_shift(2,~ke&65535);ke-- >0;)Pe[Pe.l++]=Le[je++]}return Pe.l}function Ne(Le,Pe){for(var je=0,ke=0,Ve=ne?new Uint16Array(32768):[];ke<Le.length;){var Qe=Math.min(65535,Le.length-ke);if(Qe<10){for(je=Ue(Pe,je,+(ke+Qe==Le.length)),je&7&&(je+=8-(je&7)),Pe.l=je/8|0,Pe.write_shift(2,Qe),Pe.write_shift(2,~Qe&65535);Qe-- >0;)Pe[Pe.l++]=Le[ke++];je=Pe.l*8;continue}je=Ue(Pe,je,+(ke+Qe==Le.length)+2);for(var lt=0;Qe-- >0;){var Xe=Le[ke];lt=(lt<<5^Xe)&32767;var st=-1,Ot=0;if((st=Ve[lt])&&(st|=ke&-32768,st>ke&&(st-=32768),st<ke))for(;Le[st+Ot]==Le[ke+Ot]&&Ot<250;)++Ot;if(Ot>2){Xe=he[Ot],Xe<=22?je=Ze(Pe,je,ve[Xe+1]>>1)-1:(Ze(Pe,je,3),je+=5,Ze(Pe,je,ve[Xe-23]>>5),je+=3);var tr=Xe<8?0:Xe-4>>2;tr>0&&(Je(Pe,je,Ot-G[Xe]),je+=tr),Xe=de[ke-st],je=Ze(Pe,je,ve[Xe]>>3),je-=3;var yr=Xe<4?0:Xe-2>>1;yr>0&&(Je(Pe,je,ke-st-fe[Xe]),je+=yr);for(var Zr=0;Zr<Ot;++Zr)Ve[lt]=ke&32767,lt=(lt<<5^Le[ke])&32767,++ke;Qe-=Ot-1}else Xe<=143?Xe=Xe+48:je=Ke(Pe,je,1),je=Ze(Pe,je,ve[Xe]),Ve[lt]=ke&32767,++ke}je=Ze(Pe,je,0)-1}return Pe.l=(je+7)/8|0,Pe.l}return function(Pe,je){return Pe.length<8?pe(Pe,je):Ne(Pe,je)}})();function Rt(K){var de=Me(50+Math.floor(K.length*1.1)),ie=bt(K,de);return de.slice(0,ie)}var at=ne?new Uint16Array(32768):pt(32768),Mr=ne?new Uint16Array(32768):pt(32768),Wt=ne?new Uint16Array(128):pt(128),An=1,Vt=1;function fr(K,de){var ie=le(K,de)+257;de+=5;var oe=le(K,de)+1;de+=5;var he=Ee(K,de)+4;de+=4;for(var pe=0,Ne=ne?new Uint8Array(19):pt(19),Le=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Pe=1,je=ne?new Uint8Array(8):pt(8),ke=ne?new Uint8Array(8):pt(8),Ve=Ne.length,Qe=0;Qe<he;++Qe)Ne[D[Qe]]=pe=Ae(K,de),Pe<pe&&(Pe=pe),je[pe]++,de+=3;var lt=0;for(je[0]=0,Qe=1;Qe<=Pe;++Qe)ke[Qe]=lt=lt+je[Qe-1]<<1;for(Qe=0;Qe<Ve;++Qe)(lt=Ne[Qe])!=0&&(Le[Qe]=ke[lt]++);var Xe=0;for(Qe=0;Qe<Ve;++Qe)if(Xe=Ne[Qe],Xe!=0){lt=ve[Le[Qe]]>>8-Xe;for(var st=(1<<7-Xe)-1;st>=0;--st)Wt[lt|st<<Xe]=Xe&7|Qe<<3}var Ot=[];for(Pe=1;Ot.length<ie+oe;)switch(lt=Wt[De(K,de)],de+=lt&7,lt>>>=3){case 16:for(pe=3+Fe(K,de),de+=2,lt=Ot[Ot.length-1];pe-- >0;)Ot.push(lt);break;case 17:for(pe=3+Ae(K,de),de+=3;pe-- >0;)Ot.push(0);break;case 18:for(pe=11+De(K,de),de+=7;pe-- >0;)Ot.push(0);break;default:Ot.push(lt),Pe<lt&&(Pe=lt);break}var tr=Ot.slice(0,ie),yr=Ot.slice(ie);for(Qe=ie;Qe<286;++Qe)tr[Qe]=0;for(Qe=oe;Qe<30;++Qe)yr[Qe]=0;return An=xt(tr,at,286),Vt=xt(yr,Mr,30),de}function Vn(K,de){if(K[0]==3&&!(K[1]&3))return[Gs(de),2];for(var ie=0,oe=0,he=vw(de||1<<18),pe=0,Ne=he.length>>>0,Le=0,Pe=0;(oe&1)==0;){if(oe=Ae(K,ie),ie+=3,oe>>>1)oe>>1==1?(Le=9,Pe=5):(ie=fr(K,ie),Le=An,Pe=Vt);else{ie&7&&(ie+=8-(ie&7));var je=K[ie>>>3]|K[(ie>>>3)+1]<<8;if(ie+=32,je>0)for(!de&&Ne<pe+je&&(he=ft(he,pe+je),Ne=he.length);je-- >0;)he[pe++]=K[ie>>>3],ie+=8;continue}for(;;){!de&&Ne<pe+32767&&(he=ft(he,pe+32767),Ne=he.length);var ke=tt(K,ie,Le),Ve=oe>>>1==1?Nt[ke]:at[ke];if(ie+=Ve&15,Ve>>>=4,(Ve>>>8&255)===0)he[pe++]=Ve;else{if(Ve==256)break;Ve-=257;var Qe=Ve<8?0:Ve-4>>2;Qe>5&&(Qe=0);var lt=pe+G[Ve];Qe>0&&(lt+=tt(K,ie,Qe),ie+=Qe),ke=tt(K,ie,Pe),Ve=oe>>>1==1?Ft[ke]:Mr[ke],ie+=Ve&15,Ve>>>=4;var Xe=Ve<4?0:Ve-2>>1,st=fe[Ve];for(Xe>0&&(st+=tt(K,ie,Xe),ie+=Xe),!de&&Ne<lt&&(he=ft(he,lt+100),Ne=he.length);pe<lt;)he[pe]=he[pe-st],++pe}}}return de?[he,ie+7>>>3]:[he.slice(0,pe),ie+7>>>3]}function we(K,de){var ie=K.slice(K.l||0),oe=Vn(ie,de);return K.l+=oe[1],oe[0]}function mt(K,de){if(K)typeof console<"u"&&console.error(de);else throw new Error(de)}function Tt(K,de){var ie=K;Ni(ie,0);var oe=[],he=[],pe={FileIndex:oe,FullPaths:he};T(pe,{root:de.root});for(var Ne=ie.length-4;(ie[Ne]!=80||ie[Ne+1]!=75||ie[Ne+2]!=5||ie[Ne+3]!=6)&&Ne>=0;)--Ne;ie.l=Ne+4,ie.l+=4;var Le=ie.read_shift(2);ie.l+=6;var Pe=ie.read_shift(4);for(ie.l=Pe,Ne=0;Ne<Le;++Ne){ie.l+=20;var je=ie.read_shift(4),ke=ie.read_shift(4),Ve=ie.read_shift(2),Qe=ie.read_shift(2),lt=ie.read_shift(2);ie.l+=8;var Xe=ie.read_shift(4),st=s(ie.slice(ie.l+Ve,ie.l+Ve+Qe));ie.l+=Ve+Qe+lt;var Ot=ie.l;ie.l=Xe+4,Sr(ie,je,ke,pe,st),ie.l=Ot}return pe}function Sr(K,de,ie,oe,he){K.l+=2;var pe=K.read_shift(2),Ne=K.read_shift(2),Le=o(K);if(pe&8257)throw new Error("Unsupported ZIP encryption");for(var Pe=K.read_shift(4),je=K.read_shift(4),ke=K.read_shift(4),Ve=K.read_shift(2),Qe=K.read_shift(2),lt="",Xe=0;Xe<Ve;++Xe)lt+=String.fromCharCode(K[K.l++]);if(Qe){var st=s(K.slice(K.l,K.l+Qe));(st[21589]||{}).mt&&(Le=st[21589].mt),((he||{})[21589]||{}).mt&&(Le=he[21589].mt)}K.l+=Qe;var Ot=K.slice(K.l,K.l+je);switch(Ne){case 8:Ot=I(K,ke);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+Ne)}var tr=!1;pe&8&&(Pe=K.read_shift(4),Pe==134695760&&(Pe=K.read_shift(4),tr=!0),je=K.read_shift(4),ke=K.read_shift(4)),je!=de&&mt(tr,"Bad compressed size: "+de+" != "+je),ke!=ie&&mt(tr,"Bad uncompressed size: "+ie+" != "+ke),ai(oe,lt,Ot,{unsafe:!0,mt:Le})}function Yt(K,de){var ie=de||{},oe=[],he=[],pe=Me(1),Ne=ie.compression?8:0,Le=0,Pe=0,je=0,ke=0,Ve=0,Qe=K.FullPaths[0],lt=Qe,Xe=K.FileIndex[0],st=[],Ot=0;for(Pe=1;Pe<K.FullPaths.length;++Pe)if(lt=K.FullPaths[Pe].slice(Qe.length),Xe=K.FileIndex[Pe],!(!Xe.size||!Xe.content||lt=="Sh33tJ5")){var tr=ke,yr=Me(lt.length);for(je=0;je<lt.length;++je)yr.write_shift(1,lt.charCodeAt(je)&127);yr=yr.slice(0,yr.l),st[Ve]=VL.buf(Xe.content,0);var Zr=Xe.content;Ne==8&&(Zr=R(Zr)),pe=Me(30),pe.write_shift(4,67324752),pe.write_shift(2,20),pe.write_shift(2,Le),pe.write_shift(2,Ne),Xe.mt?a(pe,Xe.mt):pe.write_shift(4,0),pe.write_shift(-4,st[Ve]),pe.write_shift(4,Zr.length),pe.write_shift(4,Xe.content.length),pe.write_shift(2,yr.length),pe.write_shift(2,0),ke+=pe.length,oe.push(pe),ke+=yr.length,oe.push(yr),ke+=Zr.length,oe.push(Zr),pe=Me(46),pe.write_shift(4,33639248),pe.write_shift(2,0),pe.write_shift(2,20),pe.write_shift(2,Le),pe.write_shift(2,Ne),pe.write_shift(4,0),pe.write_shift(-4,st[Ve]),pe.write_shift(4,Zr.length),pe.write_shift(4,Xe.content.length),pe.write_shift(2,yr.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,tr),Ot+=pe.l,he.push(pe),Ot+=yr.length,he.push(yr),++Ve}return pe=Me(22),pe.write_shift(4,101010256),pe.write_shift(2,0),pe.write_shift(2,0),pe.write_shift(2,Ve),pe.write_shift(2,Ve),pe.write_shift(4,Ot),pe.write_shift(4,ke),pe.write_shift(2,0),jn([jn(oe),jn(he),pe])}var Et={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 St(K,de){if(K.ctype)return K.ctype;var ie=K.name||"",oe=ie.match(/\.([^\.]+)$/);return oe&&Et[oe[1]]||de&&(oe=(ie=de).match(/[\.\\]([^\.\\])+$/),oe&&Et[oe[1]])?Et[oe[1]]:"application/octet-stream"}function Xt(K){for(var de=uf(K),ie=[],oe=0;oe<de.length;oe+=76)ie.push(de.slice(oe,oe+76));return ie.join(`\r
254
- `)+`\r
255
- `}function Ha(K){var de=K.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(je){var ke=je.charCodeAt(0).toString(16).toUpperCase();return"="+(ke.length==1?"0"+ke:ke)});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=[],oe=de.split(`\r
258
- `),he=0;he<oe.length;++he){var pe=oe[he];if(pe.length==0){ie.push("");continue}for(var Ne=0;Ne<pe.length;){var Le=76,Pe=pe.slice(Ne,Ne+Le);Pe.charAt(Le-1)=="="?Le--:Pe.charAt(Le-2)=="="?Le-=2:Pe.charAt(Le-3)=="="&&(Le-=3),Pe=pe.slice(Ne,Ne+Le),Ne+=Le,Ne<pe.length&&(Pe+="="),ie.push(Pe)}}return ie.join(`\r
259
- `)}function ln(K){for(var de=[],ie=0;ie<K.length;++ie){for(var oe=K[ie];ie<=K.length&&oe.charAt(oe.length-1)=="=";)oe=oe.slice(0,oe.length-1)+K[++ie];de.push(oe)}for(var he=0;he<de.length;++he)de[he]=de[he].replace(/[=][0-9A-Fa-f]{2}/g,function(pe){return String.fromCharCode(parseInt(pe.slice(1),16))});return va(de.join(`\r
260
- `))}function Ii(K,de,ie){for(var oe="",he="",pe="",Ne,Le=0;Le<10;++Le){var Pe=de[Le];if(!Pe||Pe.match(/^\s*$/))break;var je=Pe.match(/^(.*?):\s*([^\s].*)$/);if(je)switch(je[1].toLowerCase()){case"content-location":oe=je[2].trim();break;case"content-type":pe=je[2].trim();break;case"content-transfer-encoding":he=je[2].trim();break}}switch(++Le,he.toLowerCase()){case"base64":Ne=va(xo(de.slice(Le).join("")));break;case"quoted-printable":Ne=ln(de.slice(Le));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+he)}var ke=ai(K,oe.slice(ie.length),Ne,{unsafe:!0});pe&&(ke.ctype=pe)}function Fi(K,de){if(Z(K.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var ie=de&&de.root||"",oe=(er&&Buffer.isBuffer(K)?K.toString("binary"):Z(K)).split(`\r
261
- `),he=0,pe="";for(he=0;he<oe.length;++he)if(pe=oe[he],!!/^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 Ne=(oe[1]||"").match(/boundary="(.*?)"/);if(!Ne)throw new Error("MAD cannot find boundary");var Le="--"+(Ne[1]||""),Pe=[],je=[],ke={FileIndex:Pe,FullPaths:je};T(ke);var Ve,Qe=0;for(he=0;he<oe.length;++he){var lt=oe[he];lt!==Le&&lt!==Le+"--"||(Qe++&&Ii(ke,oe.slice(Ve,he),ie),Ve=he)}return ke}function wt(K,de){var ie=de||{},oe=ie.boundary||"SheetJS";oe="------="+oe;for(var he=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+oe.slice(2)+'"',"","",""],pe=K.FullPaths[0],Ne=pe,Le=K.FileIndex[0],Pe=1;Pe<K.FullPaths.length;++Pe)if(Ne=K.FullPaths[Pe].slice(pe.length),Le=K.FileIndex[Pe],!(!Le.size||!Le.content||Ne=="Sh33tJ5")){Ne=Ne.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Ot){return"_x"+Ot.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Ot){return"_u"+Ot.charCodeAt(0).toString(16)+"_"});for(var je=Le.content,ke=er&&Buffer.isBuffer(je)?je.toString("binary"):Z(je),Ve=0,Qe=Math.min(1024,ke.length),lt=0,Xe=0;Xe<=Qe;++Xe)(lt=ke.charCodeAt(Xe))>=32&&lt<128&&++Ve;var st=Ve>=Qe*4/5;he.push(oe),he.push("Content-Location: "+(ie.root||"file:///C:/SheetJS/")+Ne),he.push("Content-Transfer-Encoding: "+(st?"quoted-printable":"base64")),he.push("Content-Type: "+St(Le,Ne)),he.push(""),he.push(st?Ha(ke):Xt(ke))}return he.push(oe+`--\r
262
- `),he.join(`\r
263
- `)}function yi(K){var de={};return T(de,K),de}function ai(K,de,ie,oe){var he=oe&&oe.unsafe;he||T(K);var pe=!he&&br.find(K,de);if(!pe){var Ne=K.FullPaths[0];de.slice(0,Ne.length)==Ne?Ne=de:(Ne.slice(-1)!="/"&&(Ne+="/"),Ne=(Ne+de).replace("//","/")),pe={name:i(de),type:2},K.FileIndex.push(pe),K.FullPaths.push(Ne),he||br.utils.cfb_gc(K)}return pe.content=ie,pe.size=ie?ie.length:0,oe&&(oe.CLSID&&(pe.clsid=oe.CLSID),oe.mt&&(pe.mt=oe.mt),oe.ct&&(pe.ct=oe.ct)),pe}function Fn(K,de){T(K);var ie=br.find(K,de);if(ie){for(var oe=0;oe<K.FileIndex.length;++oe)if(K.FileIndex[oe]==ie)return K.FileIndex.splice(oe,1),K.FullPaths.splice(oe,1),!0}return!1}function Hr(K,de,ie){T(K);var oe=br.find(K,de);if(oe){for(var he=0;he<K.FileIndex.length;++he)if(K.FileIndex[he]==oe)return K.FileIndex[he].name=i(ie),K.FullPaths[he]=ie,!0}return!1}function Dr(K){L(K,!0)}return t.find=C,t.read=O,t.parse=u,t.write=Q,t.writeFile=ee,t.utils={cfb_new:yi,cfb_add:ai,cfb_del:Fn,cfb_mov:Hr,cfb_gc:Dr,ReadShift:Ku,CheckField:pN,prep_blob:Ni,bconcat:jn,use_zlib:N,_deflateRaw:Rt,_inflateRaw:we,consts:W},t})();function YL(e){return typeof e=="string"?ap(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=ap(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([YL(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 In(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=In(e),i=0;i!==n.length;++i)r[e[n[i]][t]]==null&&(r[e[n[i]][t]]=n[i]);return r}function V2(e){for(var t=[],r=In(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function lp(e){for(var t=[],r=In(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function KL(e){for(var t=[],r=In(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 W0=new Date(1899,11,30,0,0,0);function pi(e,t){var r=e.getTime(),n=W0.getTime()+(e.getTimezoneOffset()-W0.getTimezoneOffset())*6e4;return(r-n)/(1440*60*1e3)}var JP=new Date,XL=W0.getTime()+(JP.getTimezoneOffset()-W0.getTimezoneOffset())*6e4,Tw=JP.getTimezoneOffset();function ZP(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"),QP=isNaN(Ew.getFullYear())?new Date("2/19/17"):Ew,JL=QP.getFullYear()==2017;function ni(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(QP.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 cp(e,t){if(er&&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 mi(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]=mi(e[r]));return t}function Ur(e,t){for(var r="";r.length<t;)r+=e;return r}function ho(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 qt(e,t,r){if(e.FullPaths){if(typeof r=="string"){var n;return er?n=To(r):n=wL(r),br.utils.cfb_add(e,t,n)}br.utils.cfb_add(e,t,r)}else e.file(t,r)}function Y2(){return br.utils.cfb_new()}var sn=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
264
- `,QL={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},K2=V2(QL),X2=/[&<>'"]/g,eI=/[\u0000-\u0008\u000b-\u001f]/g;function vr(e){var t=e+"";return t.replace(X2,function(r){return K2[r]}).replace(eI,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function Pw(e){return vr(e).replace(/ /g,"_x0020_")}var eN=/[\u0000-\u001f]/g;function tI(e){var t=e+"";return t.replace(X2,function(r){return K2[r]}).replace(/\n/g,"<br/>").replace(eN,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function rI(e){var t=e+"";return t.replace(X2,function(r){return K2[r]}).replace(eN,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 B1(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 Nw(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 Ow(e){return To(e,"binary").toString("utf8")}var p0="foo bar baz☃🍣",Yu=er&&(Ow(p0)==B1(p0)&&Ow||Nw(p0)==B1(p0)&&Nw)||B1,hf=er?function(e){return To(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}})(),tN=/(^\s|\s$|\n)/;function kn(e,t){return"<"+e+(t.match(tN)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function df(e){return In(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function et(e,t,r){return"<"+e+(r!=null?df(r):"")+(t!=null?(t.match(tN)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function px(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=et("vt:lpwstr",vr(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return et((e|0)==e?"vt:i4":"vt:r8",vr(String(e)));case"boolean":return et("vt:bool",e?"true":"false")}if(e instanceof Date)return et("vt:filetime",px(e));throw new Error("Unable to serialize "+e)}var bn={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"},Dc=["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"],Oi={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=er?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:To(t)})):Cw(e)}:Cw,kw=function(e,t,r){for(var n=[],i=t;i<r;i+=2)n.push(String.fromCharCode(Du(e,i)));return n.join("").replace(Vu,"")},J2=er?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Vu,""):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("")},rN=er?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=er?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):Iw(t,r,n)}:Iw,nN=function(e,t){var r=Ci(e,t);return r>0?eh(e,t+4,t+4+r-1):""},iN=nN,aN=function(e,t){var r=Ci(e,t);return r>0?eh(e,t+4,t+4+r-1):""},oN=aN,sN=function(e,t){var r=2*Ci(e,t);return r>0?eh(e,t+4,t+4+r-1):""},lN=sN,cN=function(t,r){var n=Ci(t,r);return n>0?J2(t,r+4,r+4+n):""},uN=cN,fN=function(e,t){var r=Ci(e,t);return r>0?eh(e,t+4,t+4+r):""},hN=fN,dN=function(e,t){return sI(e,t)},H0=dN,Z2=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};er&&(iN=function(t,r){if(!Buffer.isBuffer(t))return nN(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},oN=function(t,r){if(!Buffer.isBuffer(t))return aN(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},lN=function(t,r){if(!Buffer.isBuffer(t))return sN(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},uN=function(t,r){if(!Buffer.isBuffer(t))return cN(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},hN=function(t,r){if(!Buffer.isBuffer(t))return fN(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},H0=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):dN(t,r)},Z2=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});var Wl=function(e,t){return e[t]},Du=function(e,t){return e[t+1]*256+e[t]},cI=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Ci=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},js=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},uI=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Ku(e,t){var r="",n,i,a=[],o,s,l,c;switch(t){case"dbcs":if(c=this.l,er&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)r+=String.fromCharCode(Du(this,c)),c+=2;e*=2;break;case"utf8":r=eh(this,this.l,this.l+e);break;case"utf16le":e*=2,r=J2(this,this.l,this.l+e);break;case"wstr":return Ku.call(this,e,"dbcs");case"lpstr-ansi":r=iN(this,this.l),e=4+Ci(this,this.l);break;case"lpstr-cp":r=oN(this,this.l),e=4+Ci(this,this.l);break;case"lpwstr":r=lN(this,this.l),e=4+2*Ci(this,this.l);break;case"lpp4":e=4+Ci(this,this.l),r=uN(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Ci(this,this.l),r=hN(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(f0(o));r=a.join("");break;case"_wstr":for(e=0,r="";(o=Du(this,this.l+e))!==0;)a.push(f0(o)),e+=2;e+=2,r=a.join("");break;case"dbcs-cont":for(r="",c=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=Wl(this,c),this.l=c+1,s=Ku.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(f0(Du(this,c))),c+=2}r=a.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(r="",c=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=Wl(this,c),this.l=c+1,s=Ku.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),a.join("")+s;a.push(f0(Wl(this,c))),c+=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"?cI:Du)(this,this.l),this.l+=2,n;case 4:case-4:return t==="i"||(this[this.l+3]&128)===0?(n=(e>0?js:uI)(this,this.l),this.l+=4,n):(i=Ci(this,this.l),this.l+=4,i);case 8:case-8:if(t==="f")return e==8?i=H0(this,this.l):i=H0([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=rN(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 pN(e,t){var r=rN(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Ni(e,t){e.l=t,e.read_shift=Ku,e.chk=pN,e.write_shift=pI}function Ba(e,t){e.l+=t}function Me(e){var t=Gs(e);return Ni(t,0),t}function di(){var e=[],t=er?256:2048,r=function(c){var u=Me(c);return Ni(u,0),u},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(c){return n&&c<n.length-n.l?n:(i(),n=r(Math.max(c+1,t)))},o=function(){return i(),jn(e)},s=function(c){i(),n=c,n.l==null&&(n.l=n.length),a(t)};return{next:a,push:s,end:o,_bufs:e}}function We(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&&Z2(r)&&e.push(r)}}function Xu(e,t,r){var n=mi(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=mi(e);return n.s=Xu(n.s,t.s,r),n.e=Xu(n.e,t.s,r),n}function Ju(e,t){if(e.cRel&&e.c<0)for(e=mi(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=mi(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=gr(e);return!e.cRel&&e.cRel!=null&&(r=gI(r)),!e.rRel&&e.rRel!=null&&(r=mI(r)),r}function $1(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?"":"$")+Hn(e.s.c)+":"+(e.e.cRel?"":"$")+Hn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+Ln(e.s.r)+":"+(e.e.rRel?"":"$")+Ln(e.e.r):Ju(e.s,t.biff)+":"+Ju(e.e,t.biff)}function Q2(e){return parseInt(vI(e),10)-1}function Ln(e){return""+(e+1)}function mI(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function vI(e){return e.replace(/\$(\d+)$/,"$1")}function eb(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 Hn(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 wn(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 gr(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 Li(e){var t=e.indexOf(":");return t==-1?{s:wn(e),e:wn(e)}:{s:wn(e.slice(0,t)),e:wn(e.slice(t+1))}}function an(e,t){return typeof t>"u"||typeof t=="number"?an(e.s,e.e):(typeof e!="string"&&(e=gr(e)),typeof t!="string"&&(t=gr(t)),e==t?e:e+":"+t)}function Ir(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=ss(e.z,r?pi(t):t)}catch{}try{return e.w=ss((e.XF||{}).numFmtId||(r?14:0),r?pi(t):t)}catch{return""+t}}function bo(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 mN(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"?wn(n.origin):n.origin;o=l.r,s=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=Ir(a["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),o==-1&&(c.e.r=o=u.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(c.s.r>g&&(c.s.r=g),c.s.c>p&&(c.s.c=p),c.e.r<g&&(c.e.r=g),c.e.c<p&&(c.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||Wr[14],n.cellDates?(h.t="d",h.w=ss(h.z,pi(h.v))):(h.t="n",h.v=pi(h.v),h.w=ss(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 v=gr({c:p,r:g});a[v]&&a[v].z&&(h.z=a[v].z),a[v]=h}}}return c.s.c<1e7&&(a["!ref"]=an(c)),a}function Bc(e,t){return mN(null,e,t)}function bI(e){return e.read_shift(4,"i")}function wa(e,t){return t||(t=Me(4)),t.write_shift(4,e),t}function Gn(e){var t=e.read_shift(4);return t===0?"":e.read_shift(t,"dbcs")}function _n(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 tb(e,t){var r=e.l,n=e.read_shift(1),i=Gn(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),_n(e.t,t),r?t.slice(0,t.l):t}var AI=tb;function TI(e,t){var r=!1;return t==null&&(r=!0,t=Me(23+4*e.t.length)),t.write_shift(1,1),_n(e.t,t),t.write_shift(4,1),_I({},t),r?t.slice(0,t.l):t}function Zi(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=Gn,vN=_n;function rb(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function G0(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 PI=Gn,mx=rb,nb=G0;function gN(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?H0([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):js(t,0)>>2;return r?i/100:i}function yN(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 xN(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 NI(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=xN,$c=NI;function qc(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 OI(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 c=DI[i];c&&(t.rgb=Vw(c));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 V0(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 bN=2,Ei=3,m0=11,Y0=19,v0=64,kI=65,LI=71,II=4108,FI=4126,On=80,Mw={1:{n:"CodePage",t:bN},2:{n:"Category",t:On},3:{n:"PresentationFormat",t:On},4:{n:"ByteCount",t:Ei},5:{n:"LineCount",t:Ei},6:{n:"ParagraphCount",t:Ei},7:{n:"SlideCount",t:Ei},8:{n:"NoteCount",t:Ei},9:{n:"HiddenCount",t:Ei},10:{n:"MultimediaClipCount",t:Ei},11:{n:"ScaleCrop",t:m0},12:{n:"HeadingPairs",t:II},13:{n:"TitlesOfParts",t:FI},14:{n:"Manager",t:On},15:{n:"Company",t:On},16:{n:"LinksUpToDate",t:m0},17:{n:"CharacterCount",t:Ei},19:{n:"SharedDoc",t:m0},22:{n:"HyperlinksChanged",t:m0},23:{n:"AppVersion",t:Ei,p:"version"},24:{n:"DigSig",t:kI},26:{n:"ContentType",t:On},27:{n:"ContentStatus",t:On},28:{n:"Language",t:On},29:{n:"Version",t:On},255:{},2147483648:{n:"Locale",t:Y0},2147483651:{n:"Behavior",t:Y0},1919054434:{}},Dw={1:{n:"CodePage",t:bN},2:{n:"Title",t:On},3:{n:"Subject",t:On},4:{n:"Author",t:On},5:{n:"Keywords",t:On},6:{n:"Comments",t:On},7:{n:"Template",t:On},8:{n:"LastAuthor",t:On},9:{n:"RevNumber",t:On},10:{n:"EditTime",t:v0},11:{n:"LastPrinted",t:v0},12:{n:"CreatedDate",t:v0},13:{n:"ModifiedDate",t:v0},14:{n:"PageCount",t:Ei},15:{n:"WordCount",t:Ei},16:{n:"CharCount",t:Ei},17:{n:"Thumbnail",t:LI},18:{n:"Application",t:On},19:{n:"DocSecurity",t:Ei},255:{},2147483648:{n:"Locale",t:Y0},2147483651:{n:"Behavior",t:Y0},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=mi(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"},g0={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 wN(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function _N(e,t){var r=KL(BI),n=[],i;n[n.length]=sn,n[n.length]=et("Types",null,{xmlns:bn.CT,"xmlns:xsd":bn.xsd,"xmlns:xsi":bn.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 et("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]=et("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:g0[l][t.bookType]||g0[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=et("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:g0[l][t.bookType]||g0[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=et("Override",null,{PartName:(c[0]=="/"?"":"/")+c,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 Jt={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 SN(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Ql(e){var t=[sn,et("Relationships",null,{xmlns:bn.RELS})];return In(e["!id"]).forEach(function(r){t[t.length]=et("Relationship",null,e["!id"][r])}),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function mr(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,[Jt.HLINK,Jt.XPATH,Jt.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=[sn];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=[sn];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 AN(){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 '+B0.version+"</meta:generator></office:meta></office:document-meta>"}var Us=[["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 q1(e,t,r,n,i){i[e]!=null||t==null||t===""||(i[e]=t,t=vr(t),n[n.length]=r?et(e,t,r):kn(e,t))}function TN(e,t){var r=t||{},n=[sn,et("cp:coreProperties",null,{"xmlns:cp":bn.CORE_PROPS,"xmlns:dc":bn.dc,"xmlns:dcterms":bn.dcterms,"xmlns:dcmitype":bn.dcmitype,"xmlns:xsi":bn.xsi})],i={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&q1("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:px(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&q1("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:px(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=Us.length;++a){var o=Us[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&&q1(o[0],s,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var ec=[["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"]],EN=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function PN(e){var t=[],r=et;return e||(e={}),e.Application="SheetJS",t[t.length]=sn,t[t.length]=et("Properties",null,{xmlns:bn.EXT_PROPS,"xmlns:vt":bn.vt}),ec.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=vr(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>"+vr(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function NN(e){var t=[sn,et("Properties",null,{xmlns:bn.CUST_PROPS,"xmlns:vt":bn.vt})];if(!e)return t.join("");var r=1;return In(e).forEach(function(i){++r,t[t.length]=et("property",oI(e[i]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:vr(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 In($w).map(function(n){for(var i=0;i<Us.length;++i)if(Us[i][1]==n)return Us[i];for(i=0;i<ec.length;++i)if(ec[i][1]==n)return ec[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(kn($w[n[1]]||n[1],i))}}),et("DocumentProperties",r.join(""),{xmlns:Oi.o})}function WI(e,t){var r=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return e&&In(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)){for(var o=0;o<Us.length;++o)if(a==Us[o][1])return;for(o=0;o<ec.length;++o)if(a==ec[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(et(Pw(a),s,{"dt:dt":l}))}}),t&&In(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(et(Pw(a),o,{"dt:dt":s}))}}),"<"+n+' xmlns="'+Oi.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 jn([r,n])}var ON=["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),c=Me(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),a.push(l),i.push(c),o+=8+l.length,!t){c=Me(8),c.write_shift(4,0),i.unshift(c);var u=[Me(4)];for(u[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);u.push(l)}l=jn(u),a.unshift(l),o+=8+l.length}for(s=0;s<e.length;++s)if(!(t&&!t[e[s][0]])&&!(ON.indexOf(e[s][0])>-1||EN.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 v=GI(d);v==-1&&(v=31,d=String(d)),l=qw(v,d)}a.push(l),c=Me(8),c.write_shift(4,t?h:2+s),i.push(c),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),jn([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,br.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 c=Uw(i,null,null);o.write_shift(16,a,"hex"),o.write_shift(4,68+l.length),s.push(c)}return jn(s)}function VI(e,t){t||(t=Me(e));for(var r=0;r<e;++r)t.write_shift(1,0);return t}function YI(e,t){return e.read_shift(t)===1}function ei(e,t){return t||(t=Me(2)),t.write_shift(2,+!!e),t}function CN(e){return e.read_shift(2,"u")}function Vi(e,t){return t||(t=Me(2)),t.write_shift(2,e),t}function jN(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 kN(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 KI(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 jn(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 LN(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 Ys(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 IN(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 ib(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]=KI(e[i]);var a=jn([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 Ys(e,t,n,i),i.write_shift(4,r),i}function c7(e,t,r,n,i){var a=!i||i.biff==8,o=Me(8+ +a+(1+a)*r.length);return Ys(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 u7(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 Ys(e,t,n,o),jN(r,a,o),o}function p7(e,t,r,n){var i=Me(14);return Ys(e,t,n,i),Vs(r,i),i}function m7(e,t,r){if(r.biff<8)return v7(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 v7(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=kN(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)IN(e[r],t);return t}function y7(e){var t=Me(24),r=wn(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 jn([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=wn(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 c={s:i,e:a,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}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=V2({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 c=[],u=Gs(1);switch(l.type){case"base64":u=va(xo(s));break;case"binary":u=va(s);break;case"buffer":case"array":u=s;break}Ni(u,0);var f=u.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,v=521;f==2&&(p=u.read_shift(2)),u.l+=3,f!=2&&(p=u.read_shift(4)),p>1048576&&(p=1e6),f!=2&&(v=u.read_shift(2));var y=u.read_shift(2),b=l.codepage||1252;f!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(b=e[u[u.l]]),u.l+=1,u.l+=2),g&&(u.l+=36);for(var _=[],A={},S=Math.min(u.length,f==2?521:v-10-(h?264:0)),O=g?32:11;u.l<S&&u[u.l]!=13;)switch(A={},A.name=$0.utils.decode(b,u.slice(u.l,u.l+O)).replace(/[\u0000\r\n].*$/g,""),u.l+=O,A.type=String.fromCharCode(u.read_shift(1)),f!=2&&!g&&(A.offset=u.read_shift(4)),A.len=u.read_shift(1),f==2&&(A.offset=u.read_shift(2)),A.dec=u.read_shift(1),A.name.length&&_.push(A),f!=2&&(u.l+=g?13:14),A.type){case"B":(!h||A.len!=8)&&l.WTF&&console.log("Skipping "+A.name+":"+A.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+A.name+":"+A.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: "+A.type)}if(u[u.l]!==13&&(u.l=v-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=v;var T=0,k=0;for(c[0]=[],k=0;k!=_.length;++k)c[0][k]=_[k].name;for(;p-- >0;){if(u[u.l]===42){u.l+=y;continue}for(++u.l,c[++T]=[],k=0,k=0;k!=_.length;++k){var L=u.slice(u.l,u.l+_[k].len);u.l+=_[k].len,Ni(L,0);var B=$0.utils.decode(b,L);switch(_[k].type){case"C":B.trim().length&&(c[T][k]=B.replace(/\s+$/,""));break;case"D":B.length===8?c[T][k]=new Date(+B.slice(0,4),+B.slice(4,6)-1,+B.slice(6,8)):c[T][k]=B;break;case"F":c[T][k]=parseFloat(B.trim());break;case"+":case"I":c[T][k]=g?L.read_shift(-4,"i")^2147483648:L.read_shift(4,"i");break;case"L":switch(B.trim().toUpperCase()){case"Y":case"T":c[T][k]=!0;break;case"N":case"F":c[T][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));c[T][k]="##MEMO##"+(g?parseInt(B.trim(),10):L.read_shift(4));break;case"N":B=B.replace(/\u0000/g,"").trim(),B&&B!="."&&(c[T][k]=+B||0);break;case"@":c[T][k]=new Date(L.read_shift(-8,"f")-621356832e5);break;case"T":c[T][k]=new Date((L.read_shift(4)-2440588)*864e5+L.read_shift(4));break;case"Y":c[T][k]=L.read_shift(4,"i")/1e4+L.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[T][k]=-L.read_shift(-8,"f");break;case"B":if(h&&_[k].len==8){c[T][k]=L.read_shift(8,"f");break}case"G":case"P":L.l+=_[k].len;break;case"0":if(_[k].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+_[k].type)}}}if(f!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=_,c}function n(s,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var u=Bc(r(s,c),c);return u["!cols"]=c.DBF.map(function(f){return{wch:f.len,DBF:f}}),delete c.DBF,u}function i(s,l){try{return Qs(n(s,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var c=l||{};if(+c.codepage>=0&&cf(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=di(),f=Q0(s,{header:1,raw:!0,cellDates:!0}),d=f[0],h=f.slice(1),g=s["!cols"]||[],p=0,v=0,y=0,b=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(v=0;v<1024;++v)if(d.indexOf(d[p]+"_"+v)==-1){d[p]+="_"+v;break}}}}var _=Ir(s["!ref"]),A=[],S=[],O=[];for(p=0;p<=_.e.c-_.s.c;++p){var T="",k="",L=0,B=[];for(v=0;v<h.length;++v)h[v][p]!=null&&B.push(h[v][p]);if(B.length==0||d[p]==null){A[p]="?";continue}for(v=0;v<B.length;++v){switch(typeof B[v]){case"number":k="B";break;case"string":k="C";break;case"boolean":k="L";break;case"object":k=B[v]instanceof Date?"D":"C";break;default:k="C"}L=Math.max(L,String(B[v]).length),T=T&&T!=k?"C":k}L>250&&(L=250),k=((g[p]||{}).DBF||{}).type,k=="C"&&g[p].DBF.len>L&&(L=g[p].DBF.len),T=="B"&&k=="N"&&(T="N",O[p]=g[p].DBF.dec,L=g[p].DBF.len),S[p]=T=="C"||k=="N"?L:a[T]||0,b+=S[p],A[p]=T}var C=u.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,b),p=0;p<4;++p)C.write_shift(4,0);for(C.write_shift(4,0|(+t[RP]||3)<<8),p=0,v=0;p<d.length;++p)if(d[p]!=null){var P=u.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,A[p]=="?"?"C":A[p],"sbcs"),P.write_shift(4,v),P.write_shift(1,S[p]||a[A[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),v+=S[p]||a[A[p]]||0}var U=u.next(264);for(U.write_shift(4,13),p=0;p<65;++p)U.write_shift(4,0);for(p=0;p<h.length;++p){var J=u.next(b);for(J.write_shift(1,0),v=0;v<d.length;++v)if(d[v]!=null)switch(A[v]){case"L":J.write_shift(1,h[p][v]==null?63:h[p][v]?84:70);break;case"B":J.write_shift(8,h[p][v]||0,"f");break;case"N":var q="0";for(typeof h[p][v]=="number"&&(q=h[p][v].toFixed(O[v]||0)),y=0;y<S[v]-q.length;++y)J.write_shift(1,32);J.write_shift(1,q,"sbcs");break;case"D":h[p][v]?(J.write_shift(4,("0000"+h[p][v].getFullYear()).slice(-4),"sbcs"),J.write_shift(2,("00"+(h[p][v].getMonth()+1)).slice(-2),"sbcs"),J.write_shift(2,("00"+h[p][v].getDate()).slice(-2),"sbcs")):J.write_shift(8,"00000000","sbcs");break;case"C":var W=String(h[p][v]!=null?h[p][v]:"").slice(0,S[v]);for(J.write_shift(1,W,"sbcs"),y=0;y<S[v]-W.length;++y)J.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:i,to_sheet:n,from_sheet:o}})(),P7=(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("+In(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(d,h){var g=e[h];return typeof g=="number"?mw(g):g},n=function(d,h,g){var p=h.charCodeAt(0)-32<<4|g.charCodeAt(0)-48;return p==59?d:mw(p)};e["|"]=254;function i(d,h){switch(h.type){case"base64":return a(xo(d),h);case"binary":return a(d,h);case"buffer":return a(er&&Buffer.isBuffer(d)?d.toString("binary"):Zf(d),h);case"array":return a(cp(d),h)}throw new Error("Unrecognized type "+h.type)}function a(d,h){var g=d.split(/[\n\r]+/),p=-1,v=-1,y=0,b=0,_=[],A=[],S=null,O={},T=[],k=[],L=[],B=0,C;for(+h.codepage>=0&&cf(+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,";")}),U=M[0],J;if(P.length>0)switch(U){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":M[1].charAt(0)=="P"&&A.push(P.slice(3).replace(/;;/g,";"));break;case"C":var q=!1,W=!1,ee=!1,Z=!1,Q=-1,ce=-1;for(b=1;b<M.length;++b)switch(M[b].charAt(0)){case"A":break;case"X":v=parseInt(M[b].slice(1))-1,W=!0;break;case"Y":for(p=parseInt(M[b].slice(1))-1,W||(v=0),C=_.length;C<=p;++C)_[C]=[];break;case"K":J=M[b].slice(1),J.charAt(0)==='"'?J=J.slice(1,J.length-1):J==="TRUE"?J=!0:J==="FALSE"?J=!1:isNaN(ho(J))?isNaN(ff(J).getDate())||(J=ni(J)):(J=ho(J),S!==null&&YP(S)&&(J=ZP(J))),q=!0;break;case"E":Z=!0;var N=TF(M[b].slice(1),{r:p,c:v});_[p][v]=[_[p][v],N];break;case"S":ee=!0,_[p][v]=[_[p][v],"S5S"];break;case"G":break;case"R":Q=parseInt(M[b].slice(1))-1;break;case"C":ce=parseInt(M[b].slice(1))-1;break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+P)}if(q&&(_[p][v]&&_[p][v].length==2?_[p][v][0]=J:_[p][v]=J,S=null),ee){if(Z)throw new Error("SYLK shared formula cannot have own formula");var I=Q>-1&&_[Q][ce];if(!I||!I[1])throw new Error("SYLK shared formula cannot find base");_[p][v][1]=EF(I[1],{r:p-Q,c:v-ce})}break;case"F":var R=0;for(b=1;b<M.length;++b)switch(M[b].charAt(0)){case"X":v=parseInt(M[b].slice(1))-1,++R;break;case"Y":for(p=parseInt(M[b].slice(1))-1,C=_.length;C<=p;++C)_[C]=[];break;case"M":B=parseInt(M[b].slice(1))/20;break;case"F":break;case"G":break;case"P":S=A[parseInt(M[b].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(L=M[b].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},ab(k[C-1]);break;case"C":v=parseInt(M[b].slice(1))-1,k[v]||(k[v]={});break;case"R":p=parseInt(M[b].slice(1))-1,T[p]||(T[p]={}),B>0?(T[p].hpt=B,T[p].hpx=BN(B)):B===0&&(T[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+P)}R<1&&(S=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+P)}}return T.length>0&&(O["!rows"]=T),k.length>0&&(O["!cols"]=k),h&&h.sheetRows&&(_=_.slice(0,h.sheetRows)),[_,O]}function o(d,h){var g=i(d,h),p=g[0],v=g[1],y=Bc(p,h);return In(v).forEach(function(b){y[b]=v[b]}),y}function s(d,h){return Qs(o(d,h),h)}function l(d,h,g,p){var v="C;Y"+(g+1)+";X"+(p+1)+";K";switch(d.t){case"n":v+=d.v||0,d.f&&!d.F&&(v+=";E"+sb(d.f,{r:g,c:p}));break;case"b":v+=d.v?"TRUE":"FALSE";break;case"e":v+=d.w||d.v;break;case"d":v+='"'+(d.w||d.v)+'"';break;case"s":v+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return v}function c(d,h){h.forEach(function(g,p){var v="F;W"+(p+1)+" "+(p+1)+" ";g.hidden?v+="0":(typeof g.width=="number"&&!g.wpx&&(g.wpx=K0(g.width)),typeof g.wpx=="number"&&!g.wch&&(g.wch=X0(g.wpx)),typeof g.wch=="number"&&(v+=Math.round(g.wch))),v.charAt(v.length-1)!=" "&&d.push(v)})}function u(d,h){h.forEach(function(g,p){var v="F;";g.hidden?v+="M0;":g.hpt?v+="M"+20*g.hpt+";":g.hpx&&(v+="M"+20*J0(g.hpx)+";"),v.length>2&&d.push(v+"R"+(p+1))})}function f(d,h){var g=["ID;PWXL;N;E"],p=[],v=Ir(d["!ref"]),y,b=Array.isArray(d),_=`\r
276
- `;g.push("P;PGeneral"),g.push("F;P0;DG0G8;M255"),d["!cols"]&&c(g,d["!cols"]),d["!rows"]&&u(g,d["!rows"]),g.push("B;Y"+(v.e.r-v.s.r+1)+";X"+(v.e.c-v.s.c+1)+";D"+[v.s.c,v.s.r,v.e.c,v.e.r].join(" "));for(var A=v.s.r;A<=v.e.r;++A)for(var S=v.s.c;S<=v.e.c;++S){var O=gr({r:A,c:S});y=b?(d[A]||[])[S]:d[O],!(!y||y.v==null&&(!y.f||y.F))&&p.push(l(y,d,A,S))}return g.join(_)+_+p.join(_)+_+"E"+_}return{to_workbook:s,to_sheet:o,from_sheet:f}})(),N7=(function(){function e(a,o){switch(o.type){case"base64":return t(xo(a),o);case"binary":return t(a,o);case"buffer":return t(er&&Buffer.isBuffer(a)?a.toString("binary"):Zf(a),o);case"array":return t(cp(a),o)}throw new Error("Unrecognized type "+o.type)}function t(a,o){for(var s=a.split(`
277
- `),l=-1,c=-1,u=0,f=[];u!==s.length;++u){if(s[u].trim()==="BOT"){f[++l]=[],c=0;continue}if(!(l<0)){var d=s[u].trim().split(","),h=d[0],g=d[1];++u;for(var p=s[u]||"";(p.match(/["]/g)||[]).length&1&&u<s.length-1;)p+=`
278
- `+s[++u];switch(p=p.trim(),+h){case-1:if(p==="BOT"){f[++l]=[],c=0;continue}else if(p!=="EOD")throw new Error("Unrecognized DIF special command "+p);break;case 0:p==="TRUE"?f[l][c]=!0:p==="FALSE"?f[l][c]=!1:isNaN(ho(g))?isNaN(ff(g).getDate())?f[l][c]=g:f[l][c]=ni(g):f[l][c]=ho(g),++c;break;case 1:p=p.slice(1,p.length-1),p=p.replace(/""/g,'"'),p&&p.match(/^=".*"$/)&&(p=p.slice(2,-1)),f[l][c++]=p!==""?p:null;break}if(p==="EOD")break}}return o&&o.sheetRows&&(f=f.slice(0,o.sheetRows)),f}function r(a,o){return Bc(e(a,o),o)}function n(a,o){return Qs(r(a,o),o)}var i=(function(){var a=function(l,c,u,f,d){l.push(c),l.push(u+","+f),l.push('"'+d.replace(/"/g,'""')+'"')},o=function(l,c,u,f){l.push(c+","+u),l.push(c==1?'"'+f.replace(/"/g,'""')+'"':f)};return function(l){var c=[],u=Ir(l["!ref"]),f,d=Array.isArray(l);a(c,"TABLE",0,1,"sheetjs"),a(c,"VECTORS",0,u.e.r-u.s.r+1,""),a(c,"TUPLES",0,u.e.c-u.s.c+1,""),a(c,"DATA",0,0,"");for(var h=u.s.r;h<=u.e.r;++h){o(c,-1,0,"BOT");for(var g=u.s.c;g<=u.e.c;++g){var p=gr({r:h,c:g});if(f=d?(l[h]||[])[g]:l[p],!f){o(c,1,0,"");continue}switch(f.t){case"n":var v=f.w;!v&&f.v!=null&&(v=f.v),v==null?f.f&&!f.F?o(c,1,0,"="+f.f):o(c,1,0,""):o(c,0,v,"V");break;case"b":o(c,0,f.v?1:0,f.v?"TRUE":"FALSE");break;case"s":o(c,1,0,isNaN(f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=ss(f.z||Wr[14],pi(ni(f.v)))),o(c,0,f.w,"V");break;default:o(c,1,0,"")}}}o(c,-1,0,"EOD");var y=`\r
279
- `,b=c.join(y);return b}})();return{to_workbook:n,to_sheet:r,from_sheet:i}})(),FN=(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,v=0,y=[];v!==h.length;++v){var b=h[v].trim().split(":");if(b[0]==="cell"){var _=wn(b[1]);if(y.length<=_.r)for(g=y.length;g<=_.r;++g)y[g]||(y[g]=[]);switch(g=_.r,p=_.c,b[2]){case"t":y[g][p]=e(b[3]);break;case"v":y[g][p]=+b[3];break;case"vtf":var A=b[b.length-1];case"vtc":switch(b[3]){case"nl":y[g][p]=!!+b[4];break;default:y[g][p]=+b[4];break}b[2]=="vtf"&&(y[g][p]=[y[g][p],A])}}}return d&&d.sheetRows&&(y=y.slice(0,d.sheetRows)),y}function n(f,d){return Bc(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 c(f){if(!f||!f["!ref"])return"";for(var d=[],h=[],g,p="",v=Li(f["!ref"]),y=Array.isArray(f),b=v.s.r;b<=v.e.r;++b)for(var _=v.s.c;_<=v.e.c;++_)if(p=gr({r:b,c:_}),g=y?(f[b]||[])[_]: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 A=pi(ni(g.v));h[2]="vtc",h[3]="nd",h[4]=""+A,h[5]=g.w||ss(g.z||Wr[14],A);break;case"e":continue}d.push(h.join(":"))}return d.push("sheet:c:"+(v.e.c-v.s.c+1)+":r:"+(v.e.r-v.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
286
- `)}function u(f){return[a,o,s,o,c(f),l].join(`
287
- `)}return{to_workbook:i,to_sheet:n,from_sheet:u}})(),O7=(function(){function e(u,f,d,h,g){g.raw?f[d][h]=u:u===""||(u==="TRUE"?f[d][h]=!0:u==="FALSE"?f[d][h]=!1:isNaN(ho(u))?isNaN(ff(u).getDate())?f[d][h]=u:f[d][h]=ni(u):f[d][h]=ho(u))}function t(u,f){var d=f||{},h=[];if(!u||u.length===0)return h;for(var g=u.split(/[\r\n]/),p=g.length-1;p>=0&&g[p].length===0;)--p;for(var v=10,y=0,b=0;b<=p;++b)y=g[b].indexOf(" "),y==-1?y=g[b].length:y++,v=Math.max(v,y);for(b=0;b<=p;++b){h[b]=[];var _=0;for(e(g[b].slice(0,v).trim(),h,b,_,d),_=1;_<=(g[b].length-v)/10+1;++_)e(g[b].slice(v+(_-1)*10,v+_*10).trim(),h,b,_,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(u){for(var f={},d=!1,h=0,g=0;h<u.length;++h)(g=u.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,v){return p[0]-v[0]||n[p[1]]-n[v[1]]}),r[g.pop()[1]]||44}function a(u,f){var d=f||{},h="",g=d.dense?[]:{},p={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(h=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(h=u.charAt(4),u=u.slice(6)):h=i(u.slice(0,1024)):d&&d.FS?h=d.FS:h=i(u.slice(0,1024));var v=0,y=0,b=0,_=0,A=0,S=h.charCodeAt(0),O=!1,T=0,k=u.charCodeAt(0);u=u.replace(/\r\n/mg,`
288
- `);var L=d.dateNF!=null?HL(d.dateNF):null;function B(){var C=u.slice(_,A),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,'"')):PF(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(b=ho(C)))P.t="n",d.cellText!==!1&&(P.w=C),P.v=b;else if(!isNaN(ff(C).getDate())||L&&C.match(L)){P.z=d.dateNF||Wr[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=ni(C,M)):(P.t="n",P.v=pi(ni(C,M))),d.cellText!==!1&&(P.w=ss(P.z,P.v instanceof Date?pi(P.v):P.v)),d.cellNF||delete P.z}else P.t="s",P.v=C;if(P.t=="z"||(d.dense?(g[v]||(g[v]=[]),g[v][y]=P):g[gr({c:y,r:v})]=P),_=A+1,k=u.charCodeAt(_),p.e.c<y&&(p.e.c=y),p.e.r<v&&(p.e.r=v),T==S)++y;else if(y=0,++v,d.sheetRows&&d.sheetRows<=v)return!0}e:for(;A<u.length;++A)switch(T=u.charCodeAt(A)){case 34:k===34&&(O=!O);break;case S:case 10:case 13:if(!O&&B())break e;break}return A-_>0&&B(),g["!ref"]=an(p),g}function o(u,f){return!(f&&f.PRN)||f.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?a(u,f):Bc(t(u,f),f)}function s(u,f){var d="",h=f.type=="string"?[0,0,0,0]:q9(u,f);switch(f.type){case"base64":d=xo(u);break;case"binary":d=u;break;case"buffer":f.codepage==65001?d=u.toString("utf8"):f.codepage&&typeof $0<"u"||(d=er&&Buffer.isBuffer(u)?u.toString("binary"):Zf(u));break;case"array":d=cp(u);break;case"string":d=u;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?d=Yu(d.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?d=Yu(d):f.type=="binary"&&typeof $0<"u",d.slice(0,19)=="socialcalc:version:"?FN.to_sheet(f.type=="string"?d:Yu(d),f):o(d,f)}function l(u,f){return Qs(s(u,f),f)}function c(u){for(var f=[],d=Ir(u["!ref"]),h,g=Array.isArray(u),p=d.s.r;p<=d.e.r;++p){for(var v=[],y=d.s.c;y<=d.e.c;++y){var b=gr({r:p,c:y});if(h=g?(u[p]||[])[y]:u[b],!h||h.v==null){v.push(" ");continue}for(var _=(h.w||(bo(h),h.w)||"").slice(0,10);_.length<10;)_+=" ";v.push(_+(y===0?" ":""))}f.push(v.join(""))}return f.join(`
289
- `)}return{to_workbook:l,to_sheet:s,from_sheet:c}})(),Gw=(function(){function e(N,I,R){if(N){Ni(N,N.l||0);for(var D=R.Enum||Q;N.l<N.length;){var G=N.read_shift(2),fe=D[G]||D[65535],ae=N.read_shift(2),ne=N.l+ae,ve=fe.f&&fe.f(N,ae,R);if(N.l=ne,I(ve,fe,G))return}}}function t(N,I){switch(I.type){case"base64":return r(va(xo(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",fe="",ae=0,ne={},ve=[],_e=[],se={s:{r:0,c:0},e:{r:0,c:0}},Fe=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(De,tt,Ue){switch(Ue){case 0:R.vers=De,De>=4096&&(R.qpro=!0);break;case 6:se=De;break;case 204:De&&(fe=De);break;case 222:fe=De;break;case 15:case 51:R.qpro||(De[1].v=De[1].v.slice(1));case 13:case 14:case 16:Ue==14&&(De[2]&112)==112&&(De[2]&15)>1&&(De[2]&15)<15&&(De[1].z=R.dateNF||Wr[14],R.cellDates&&(De[1].t="d",De[1].v=ZP(De[1].v))),R.qpro&&De[3]>ae&&(D["!ref"]=an(se),ne[G]=D,ve.push(G),D=R.dense?[]:{},se={s:{r:0,c:0},e:{r:0,c:0}},ae=De[3],G=fe||"Sheet"+(ae+1),fe="");var Ke=R.dense?(D[De[0].r]||[])[De[0].c]:D[gr(De[0])];if(Ke){Ke.t=De[1].t,Ke.v=De[1].v,De[1].z!=null&&(Ke.z=De[1].z),De[1].f!=null&&(Ke.f=De[1].f);break}R.dense?(D[De[0].r]||(D[De[0].r]=[]),D[De[0].r][De[0].c]=De[1]):D[gr(De[0])]=De[1];break}},R);else if(N[2]==26||N[2]==14)R.Enum=ce,N[2]==14&&(R.qpro=!0,N.l=0),e(N,function(De,tt,Ue){switch(Ue){case 204:G=De;break;case 22:De[1].v=De[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(De[3]>ae&&(D["!ref"]=an(se),ne[G]=D,ve.push(G),D=R.dense?[]:{},se={s:{r:0,c:0},e:{r:0,c:0}},ae=De[3],G="Sheet"+(ae+1)),Fe>0&&De[0].r>=Fe)break;R.dense?(D[De[0].r]||(D[De[0].r]=[]),D[De[0].r][De[0].c]=De[1]):D[gr(De[0])]=De[1],se.e.c<De[0].c&&(se.e.c=De[0].c),se.e.r<De[0].r&&(se.e.r=De[0].r);break;case 27:De[14e3]&&(_e[De[14e3][0]]=De[14e3][1]);break;case 1537:_e[De[0]]=De[1],De[0]==ae&&(G=De[1]);break}},R);else throw new Error("Unrecognized LOTUS BOF "+N[2]);if(D["!ref"]=an(se),ne[fe||G]=D,ve.push(fe||G),!_e.length)return{SheetNames:ve,Sheets:ne};for(var Ae={},Ee=[],le=0;le<_e.length;++le)ne[ve[le]]?(Ee.push(_e[le]||ve[le]),Ae[_e[le]]=ne[_e[le]]||ne[ve[le]]):(Ee.push(_e[le]),Ae[_e[le]]={"!ref":"A1"});return{SheetNames:Ee,Sheets:Ae}}function n(N,I){var R=I||{};if(+R.codepage>=0&&cf(+R.codepage),R.type=="string")throw new Error("Cannot write WK1 to JS string");var D=di(),G=Ir(N["!ref"]),fe=Array.isArray(N),ae=[];rt(D,0,a(1030)),rt(D,6,l(G));for(var ne=Math.min(G.e.r,8191),ve=G.s.r;ve<=ne;++ve)for(var _e=Ln(ve),se=G.s.c;se<=G.e.c;++se){ve===G.s.r&&(ae[se]=Hn(se));var Fe=ae[se]+_e,Ae=fe?(N[ve]||[])[se]:N[Fe];if(!(!Ae||Ae.t=="z"))if(Ae.t=="n")(Ae.v|0)==Ae.v&&Ae.v>=-32768&&Ae.v<=32767?rt(D,13,h(ve,se,Ae.v)):rt(D,14,p(ve,se,Ae.v));else{var Ee=bo(Ae);rt(D,15,f(ve,se,Ee.slice(0,239)))}}return rt(D,1),D.end()}function i(N,I){var R=I||{};if(+R.codepage>=0&&cf(+R.codepage),R.type=="string")throw new Error("Cannot write WK3 to JS string");var D=di();rt(D,0,o(N));for(var G=0,fe=0;G<N.SheetNames.length;++G)(N.Sheets[N.SheetNames[G]]||{})["!ref"]&&rt(D,27,Z(N.SheetNames[G],fe++));var ae=0;for(G=0;G<N.SheetNames.length;++G){var ne=N.Sheets[N.SheetNames[G]];if(!(!ne||!ne["!ref"])){for(var ve=Ir(ne["!ref"]),_e=Array.isArray(ne),se=[],Fe=Math.min(ve.e.r,8191),Ae=ve.s.r;Ae<=Fe;++Ae)for(var Ee=Ln(Ae),le=ve.s.c;le<=ve.e.c;++le){Ae===ve.s.r&&(se[le]=Hn(le));var De=se[le]+Ee,tt=_e?(ne[Ae]||[])[le]:ne[De];if(!(!tt||tt.t=="z"))if(tt.t=="n")rt(D,23,B(Ae,le,ae,tt.v));else{var Ue=bo(tt);rt(D,22,T(Ae,le,ae,Ue.slice(0,239)))}}++ae}}return rt(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,fe=0;fe<N.SheetNames.length;++fe){var ae=N.SheetNames[fe],ne=N.Sheets[ae];if(!(!ne||!ne["!ref"])){++G;var ve=Li(ne["!ref"]);R<ve.e.r&&(R=ve.e.r),D<ve.e.c&&(D=ve.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 c(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 u(N,I,R){var D=N.l+I,G=c(N,I,R);if(G[1].t="s",R.vers==20768){N.l++;var fe=N.read_shift(1);return G[1].v=N.read_shift(fe,"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 fe=R.charCodeAt(G);D.write_shift(1,fe>=128?95:fe)}return D.write_shift(1,0),D}function d(N,I,R){var D=c(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=c(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 v(N,I,R){var D=N.l+I,G=c(N,I,R);if(G[1].v=N.read_shift(8,"f"),R.qpro)N.l=D;else{var fe=N.read_shift(2);A(N.slice(N.l,N.l+fe),G),N.l+=fe}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?Hn(I):Ln(I))}var b={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]},_=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function A(N,I){Ni(N,0);for(var R=[],D=0,G="",fe="",ae="",ne="";N.l<N.length;){var ve=N[N.l++];switch(ve){case 0:R.push(N.read_shift(8,"f"));break;case 1:fe=y(I[0].c,N.read_shift(2),!0),G=y(I[0].r,N.read_shift(2),!1),R.push(fe+G);break;case 2:{var _e=y(I[0].c,N.read_shift(2),!0),se=y(I[0].r,N.read_shift(2),!1);fe=y(I[0].c,N.read_shift(2),!0),G=y(I[0].r,N.read_shift(2),!1),R.push(_e+se+":"+fe+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 Fe="";ve=N[N.l++];)Fe+=String.fromCharCode(ve);R.push('"'+Fe.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(),ae=R.pop(),R.push(["AND","OR"][ve-20]+"("+ae+","+ne+")");break;default:if(ve<32&&_[ve])ne=R.pop(),ae=R.pop(),R.push(ae+_[ve]+ne);else if(b[ve]){if(D=b[ve][1],D==69&&(D=N[N.l++]),D>R.length){console.error("WK1 bad formula parse 0x"+ve.toString(16)+":|"+R.join("|")+"|");return}var Ae=R.slice(-D);R.length-=D,R.push(b[ve][0]+"("+Ae.join(",")+")")}else return ve<=7?console.error("WK1 invalid opcode "+ve.toString(16)):ve<=24?console.error("WK1 unsupported op "+ve.toString(16)):ve<=30?console.error("WK1 invalid opcode "+ve.toString(16)):ve<=115?console.error("WK1 unsupported function opcode "+ve.toString(16)):console.error("WK1 unrecognized opcode "+ve.toString(16))}}R.length==1?I[1].f=""+R[0]:console.error("WK1 bad formula parse |"+R.join("|")+"|")}function S(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=S(N);return R[1].t="s",R[1].v=N.read_shift(I-4,"cstr"),R}function T(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 fe=0;fe<D.length;++fe){var ae=D.charCodeAt(fe);G.write_shift(1,ae>=128?95:ae)}return G.write_shift(1,0),G}function k(N,I){var R=S(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=S(N),D=N.read_shift(4),G=N.read_shift(4),fe=N.read_shift(2);if(fe==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 ae=fe&32768;return fe=(fe&32767)-16446,R[1].v=(1-ae*2)*(G*Math.pow(2,fe+32)+D*Math.pow(2,fe)),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 fe=0,ae=0,ne=0,ve=0;return D<0&&(fe=1,D=-D),ae=Math.log2(D)|0,D/=Math.pow(2,ae-31),ve=D>>>0,(ve&2147483648)==0&&(D/=2,++ae,ve=D>>>0),D-=ve,ve|=2147483648,ve>>>=0,D*=Math.pow(2,32),ne=D>>>0,G.write_shift(4,ne),G.write_shift(4,ve),ae+=16383+(fe?32768:0),G.write_shift(2,ae),G}function C(N,I){var R=L(N);return N.l+=I-14,R}function P(N,I){var R=S(N),D=N.read_shift(4);return R[1].v=D>>6,R}function M(N,I){var R=S(N),D=N.read_shift(8,"f");return R[1].v=D,R}function U(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 q(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 W(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:CN},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:u},16:{n:"FORMULA",f:v},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:u},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:q},65535:{n:""}},ce={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:U},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:W},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 RN(e,t){if(!t.bookSST)return"";var r=[sn];r[r.length]=et("sst",null,{xmlns:Dc[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+=">"+vr(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=di();We(t,159,k7(e));for(var r=0;r<e.length;++r)We(t,19,L7(e[r]));return We(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 MN(e){var t=0,r,n=F7(e),i=n.length+1,a,o,s,l,c;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,c=s|l,t=c^o;return t^52811}var R7=(function(){function e(i,a){switch(a.type){case"base64":return t(xo(i),a);case"binary":return t(i,a);case"buffer":return t(er&&Buffer.isBuffer(i)?i.toString("binary"):Zf(i),a);case"array":return t(cp(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 c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,f){Array.isArray(s)&&(s[f]=[]);for(var d=/\\\w+\b/g,h=0,g,p=-1;g=d.exec(u);){switch(g[0]){case"\\cell":var v=u.slice(h,d.lastIndex-g[0].length);if(v[0]==" "&&(v=v.slice(1)),++p,v.length){var y={v,t:"s"};Array.isArray(s)?s[f][p]=y:s[gr({r:f,c:p})]=y}break}h=d.lastIndex}p>c.e.c&&(c.e.c=p)}),s["!ref"]=an(c),s}function r(i,a){return Qs(e(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],o=Ir(i["!ref"]),s,l=Array.isArray(i),c=o.s.r;c<=o.e.r;++c){a.push("\\trowd\\trautofit1");for(var u=o.s.c;u<=o.e.c;++u)a.push("\\cellx"+(u+1));for(a.push("\\pard\\intbl"),u=o.s.c;u<=o.e.c;++u){var f=gr({r:c,c:u});s=l?(i[c]||[])[u]:i[f],!(!s||s.v==null&&(!s.f||s.F))&&(a.push(" "+(s.w||(bo(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,po=M7;function K0(e){return Math.floor((e+Math.round(128/po)/256)*po)}function X0(e){return Math.floor((e-5)/po*100+.5)/100}function vx(e){return Math.round((e*po+5)/po*256)/256}function ab(e){e.width?(e.wpx=K0(e.width),e.wch=X0(e.wpx),e.MDW=po):e.wpx?(e.wch=X0(e.wpx),e.width=vx(e.wch),e.MDW=po):typeof e.wch=="number"&&(e.width=vx(e.wch),e.wpx=K0(e.width),e.MDW=po),e.customWidth&&delete e.customWidth}var D7=96,DN=D7;function J0(e){return e*96/DN}function BN(e){return e*DN/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]=et("numFmt",null,{numFmtId:n,formatCode:vr(e[n])}))}),t.length===1?"":(t[t.length]="</numFmts>",t[0]=et("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function $7(e){var t=[];return t[t.length]=et("cellXfs",null),e.forEach(function(r){t[t.length]=et("xf",null,r)}),t[t.length]="</cellXfs>",t.length===2?"":(t[0]=et("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}function $N(e,t){var r=[sn,et("styleSheet",null,{xmlns:Dc[0],"xmlns:vt":bn.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=Gn(e);return[r,n]}function U7(e,t,r){r||(r=Me(6+4*t.length)),r.write_shift(2,e),_n(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=OI(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=Gn(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),V0(e.color,t);var n=0;return n=2,t.write_shift(1,n),_n(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"],U1,G7=Ba;function Yw(e,t){t||(t=Me(84)),U1||(U1=V2(H7));var r=U1[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(V0({auto:1},t),V0({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 qN(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 Nu(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 Y7=Ba;function K7(e,t){return t||(t=Me(51)),t.write_shift(1,0),Nu(null,t),Nu(null,t),Nu(null,t),Nu(null,t),Nu(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),G0(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),G0(t,n),G0(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&&(We(e,615,wa(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)t[i]!=null&&We(e,44,U7(i,t[i]))}),We(e,616))}}function Q7(e){var t=1;We(e,611,wa(t)),We(e,43,W7({sz:12,color:{theme:1},name:"Calibri",family:2})),We(e,612)}function eF(e){var t=2;We(e,603,wa(t)),We(e,45,Yw({patternType:"none"})),We(e,45,Yw({patternType:"gray125"})),We(e,604)}function tF(e){var t=1;We(e,613,wa(t)),We(e,46,K7()),We(e,614)}function rF(e){var t=1;We(e,626,wa(t)),We(e,47,qN({numFmtId:0},65535)),We(e,627)}function nF(e,t){We(e,617,wa(t.length)),t.forEach(function(r){We(e,47,qN(r,0))}),We(e,618)}function iF(e){var t=1;We(e,619,wa(t)),We(e,48,X7({xfId:0,name:"Normal"})),We(e,620)}function aF(e){var t=0;We(e,505,wa(t)),We(e,506)}function oF(e){var t=0;We(e,508,J7(t,"TableStyleMedium9","PivotStyleMedium4")),We(e,509)}function sF(e,t){var r=di();return We(r,278),Z7(r,e.SSF),Q7(r),eF(r),tF(r),rF(r),nF(r,t.cellXfs),iF(r),aF(r),oF(r),We(r,279),r.end()}function UN(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[sn];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:Gn(e)}}function cF(e){var t=Me(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),_n(e.name,t),t.slice(0,t.l)}function uF(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),_n(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 mF(){var e=di();return We(e,332),We(e,334,wa(1)),We(e,335,cF({name:"XLDAPR",version:12e4,flags:3496657072})),We(e,336),We(e,339,hF(1,"XLDAPR")),We(e,52),We(e,35,wa(514)),We(e,4096,wa(0)),We(e,4097,Vi(1)),We(e,36),We(e,53),We(e,340),We(e,337,pF(1)),We(e,51,fF([[1,0]])),We(e,338),We(e,333),e.end()}function zN(){var e=[sn];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 vF(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=gr(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var Gl=1024;function WN(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),i=[et("xml",null,{"xmlns:v":Oi.v,"xmlns:o":Oi.o,"xmlns:x":Oi.x,"xmlns:mv":Oi.mv}).replace(/\/>/,">"),et("o:shapelayout",et("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),et("v:shapetype",[et("v:stroke",null,{joinstyle:"miter"}),et("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=wn(a[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?et("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=et("v:fill",l,s),u={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"})+">",c,et("v:shadow",null,u),et("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",kn("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),kn("x:AutoFill","False"),kn("x:Row",String(o.r)),kn("x:Column",String(o.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function HN(e){var t=[sn,et("comments",null,{xmlns:Dc[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=vr(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(vr(l.a))),a.push(l.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)t.push(kn("t",vr(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(kn("t",vr(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=[sn,et("ThreadedComments",null,{xmlns:bn.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(et("threadedComment",kn("text",o.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function yF(e){var t=[sn,et("personList",null,{xmlns:bn.TCMNT,"xmlns:x":Dc[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(et("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=gr(r.s),e.l+=16,t}function bF(e,t){return t==null&&(t=Me(36)),t.write_shift(4,e[1].iauthor),$c(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=Gn;function _F(e){return _n(e.slice(0,54))}function SF(e){var t=di(),r=[];return We(t,628),We(t,630),e.forEach(function(n){n[1].forEach(function(i){r.indexOf(i.a)>-1||(r.push(i.a.slice(0,54)),We(t,632,_F(i.a)))})}),We(t,631),We(t,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=r.indexOf(i.a);var a={s:wn(n[0]),e:wn(n[0])};We(t,635,bF([a,i])),i.t&&i.t.length>0&&We(t,637,TI(i)),We(t,636),delete i.iauthor})}),We(t,634),We(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)!=="/"&&br.utils.cfb_add(e,i,t.FileIndex[n].content)}})}var GN=["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 c=a.length>0?parseInt(a,10)|0:0,u=o.length>0?parseInt(o,10)|0:0;return s?u+=t.c:--u,l?c+=t.r:--c,i+(s?"":"$")+Hn(u)+(l?"":"$")+Ln(c)}return function(i,a){return t=a,i.replace(e,r)}})(),ob=/(^|[^._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,sb=(function(){return function(t,r){return t.replace(ob,function(n,i,a,o,s,l){var c=eb(o)-(a?0:r.c),u=Q2(l)-(s?0:r.r),f=u==0?"":s?u+1:"["+u+"]",d=c==0?"":a?c+1:"["+c+"]";return i+"R"+f+"C"+d})}})();function EF(e,t){return e.replace(ob,function(r,n,i,a,o,s){return n+(i=="$"?i+a:Hn(eb(a)+t.c))+(o=="$"?o+s:Ln(Q2(s)+t.r))})}function PF(e){return e.length!=1}function rn(e){e.l+=1}function ls(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function VN(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return YN(e);r.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),o=ls(e),s=ls(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 YN(e){var t=ls(e),r=ls(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 NF(e,t,r){if(r.biff<8)return YN(e);var n=e.read_shift(r.biff==12?4:2),i=e.read_shift(r.biff==12?4:2),a=ls(e),o=ls(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 KN(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return OF(e);var n=e.read_shift(r&&r.biff==12?4:2),i=ls(e);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function OF(e){var t=ls(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=VN(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=VN(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=NF(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 Kw(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 XN(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function WF(e){return e.read_shift(2),XN(e)}function HF(e){return e.read_shift(2),XN(e)}function GF(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var i=KN(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 YF(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=KN(e,0,r);return[n,i,a]}function KF(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[KR[i],QN[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?QN:YR)[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++,qc(e)}function iR(e,t,r){return e.l++,kN(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]=YI(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]=qc(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 cR(e,t,r){if(r.biff==5)return uR(e);var n=e.read_shift(1)>>>5&3,i=e.read_shift(2),a=e.read_shift(4);return[n,i,a]}function uR(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 mR=Ba,vR=Ba,gR=Ba;function rh(e,t,r){return e.l+=2,[CF(e)]}function lb(e){return e.l+=6,[]}var yR=rh,xR=lb,bR=lb,wR=rh;function JN(e){return e.l+=2,[CN(e),e.read_shift(2)&1]}var _R=rh,SR=JN,AR=lb,TR=rh,ER=rh,PR=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function NR(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=PR[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:i,C:a}}function OR(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:rn},4:{n:"PtgSub",f:rn},5:{n:"PtgMul",f:rn},6:{n:"PtgDiv",f:rn},7:{n:"PtgPower",f:rn},8:{n:"PtgConcat",f:rn},9:{n:"PtgLt",f:rn},10:{n:"PtgLe",f:rn},11:{n:"PtgEq",f:rn},12:{n:"PtgGe",f:rn},13:{n:"PtgGt",f:rn},14:{n:"PtgNe",f:rn},15:{n:"PtgIsect",f:rn},16:{n:"PtgUnion",f:rn},17:{n:"PtgRange",f:rn},18:{n:"PtgUplus",f:rn},19:{n:"PtgUminus",f:rn},20:{n:"PtgPercent",f:rn},21:{n:"PtgParen",f:rn},22:{n:"PtgMissArg",f:rn},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:KF},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:mR},40:{n:"PtgMemNoMem",f:vR},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:cR},58:{n:"PtgRef3d",f:YF},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:JN},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:NR},29:{n:"PtgSxName",f:OR},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:Kw},33:{n:"PtgAttrBaxcel",f:Kw},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 ZN(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=ZN(e,t,r);return n=="#REF"?n:UR(n,r)}function oc(e,t,r,n,i){var a=i&&i.biff||8,o={s:{c:0,r:0}},s=[],l,c,u,f=0,d=0,h,g="";if(!e[0]||!e[0][0])return"";for(var p=-1,v="",y=0,b=e[0].length;y<b;++y){var _=e[0][y];switch(_[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(),c=s.pop(),p>=0){switch(e[0][p][1][0]){case 0:v=Ur(" ",e[0][p][1][1]);break;case 1:v=Ur("\r",e[0][p][1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}c=c+v,p=-1}s.push(c+qR[_[0]]+l);break;case"PtgIsect":l=s.pop(),c=s.pop(),s.push(c+" "+l);break;case"PtgUnion":l=s.pop(),c=s.pop(),s.push(c+","+l);break;case"PtgRange":l=s.pop(),c=s.pop(),s.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Xu(_[1][1],o,i),s.push(Ju(u,a));break;case"PtgRefN":u=r?Xu(_[1][1],r,i):_[1][1],s.push(Ju(u,a));break;case"PtgRef3d":f=_[1][1],u=Xu(_[1][2],o,i),g=Jw(n,f,i),s.push(g+"!"+Ju(u,a));break;case"PtgFunc":case"PtgFuncVar":var A=_[1][0],S=_[1][1];A||(A=0),A&=127;var O=A==0?[]:s.slice(-A);s.length-=A,S==="User"&&(S=O.shift()),s.push(S+"("+O.join(",")+")");break;case"PtgBool":s.push(_[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(_[1]);break;case"PtgNum":s.push(String(_[1]));break;case"PtgStr":s.push('"'+_[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(_[1]);break;case"PtgAreaN":h=Fw(_[1][1],r?{s:r}:o,i),s.push($1(h,i));break;case"PtgArea":h=Fw(_[1][1],o,i),s.push($1(h,i));break;case"PtgArea3d":f=_[1][1],h=_[1][2],g=Jw(n,f,i),s.push(g+"!"+$1(h,i));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=_[1][2];var T=(n.names||[])[d-1]||(n[0]||[])[d],k=T?T.Name:"SH33TJSNAME"+String(d);k&&k.slice(0,6)=="_xlfn."&&!i.xlfn&&(k=k.slice(6)),s.push(k);break;case"PtgNameX":var L=_[1][1];d=_[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=(ZN(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="(",U=")";if(p>=0){switch(v="",e[0][p][1][0]){case 2:M=Ur(" ",e[0][p][1][1])+M;break;case 3:M=Ur("\r",e[0][p][1][1])+M;break;case 4:U=Ur(" ",e[0][p][1][1])+U;break;case 5:U=Ur("\r",e[0][p][1][1])+U;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(M+s.pop()+U);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":u={c:_[1][1],r:_[1][0]};var J={c:r.c,r:r.r};if(n.sharedf[gr(u)]){var q=n.sharedf[gr(u)];s.push(oc(q,o,J,n,i))}else{var W=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(u.c<c[0].s.c||u.c>c[0].e.c)&&!(u.r<c[0].s.r||u.r>c[0].e.r)){s.push(oc(c[1],o,J,n,i)),W=!0;break}W||s.push(_[1])}break;case"PtgArray":s.push("{"+$R(_[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"+_[1].idx+"[#"+_[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(_));default:throw new Error("Unrecognized Formula Token: "+String(_))}var ee=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&p>=0&&ee.indexOf(e[0][y][0])==-1){_=e[0][p];var Z=!0;switch(_[1][0]){case 4:Z=!1;case 0:v=Ur(" ",_[1][1]);break;case 5:Z=!1;case 1:v=Ur("\r",_[1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+_[1][0])}s.push((Z?v:"")+s.pop()+(Z?"":v)),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=Ys(t,r,i),o=zR(e.v),s=Me(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=Me(e.bf.length),u=0;u<e.bf.length;++u)c[u]=e.bf[u];var f=jn([a,o,s,c]);return f}function up(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=up,fp=up,GR=up,VR=up,YR={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"},QN={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"},KR={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(ob,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function JR(e){return e.replace(/\./,"!")}var Zu=typeof Map<"u";function cb(e,t,r){var n=0,i=e.length;if(r){if(Zu?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var a=Zu?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&&(Zu?(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 hp(e,t){var r={min:e+1,max:e+1},n=-1;return t.MDW&&(po=t.MDW),t.width!=null?r.customWidth=1:t.wpx!=null?n=X0(t.wpx):t.wch!=null&&(n=t.wch),n>-1?(r.width=vx(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 eO(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){KP(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=Ir(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="'+an(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(vr(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),s=(s||"")+et("outlinePr",null,c)}!a&&!s||(i[i.length]=et("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=MN(e.password).toString(16).toUpperCase()),et("sheetProtection",null,t)}function iM(e){return eO(e),et("pageMargins",null,e)}function aM(e,t){for(var r=["<cols>"],n,i=0;i!=t.length;++i)(n=t[i])&&(r[r.length]=et("col",null,hp(i,n)));return r[r.length]="</cols>",r.join("")}function oM(e,t,r,n){var i=typeof e.ref=="string"?e.ref:an(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var a=r.Workbook.Names,o=Li(i);o.s.r==o.e.r&&(o.e.r=Li(t["!ref"]).e.r,i=an(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}),et("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"),et("sheetViews",et("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=ni(e.v,-1).toISOString():(e=mi(e),e.t="n",i=""+(e.v=pi(ni(e.v)))),typeof e.z>"u"&&(e.z=Wr[14]);break;default:i=e.v;break}var s=kn("v",vr(i)),l={r:t},c=us(n.cellXfs,e,n);switch(c!==0&&(l.s=c),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=kn("v",""+cb(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 u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=et("f",vr(e.f),u)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),et("c",s,l)}function cM(e,t,r,n){var i=[],a=[],o=Ir(e["!ref"]),s="",l,c="",u=[],f=0,d=0,h=e["!rows"],g=Array.isArray(e),p={r:c},v,y=-1;for(d=o.s.c;d<=o.e.c;++d)u[d]=Hn(d);for(f=o.s.r;f<=o.e.r;++f){for(a=[],c=Ln(f),d=o.s.c;d<=o.e.c;++d){l=u[d]+c;var b=g?(e[f]||[])[d]:e[l];b!==void 0&&(s=lM(b,l,e,t))!=null&&a.push(s)}(a.length>0||h&&h[f])&&(p={r:c},h&&h[f]&&(v=h[f],v.hidden&&(p.hidden=1),y=-1,v.hpx?y=J0(v.hpx):v.hpt&&(y=v.hpt),y>-1&&(p.ht=y,p.customHeight=1),v.level&&(p.outlineLevel=v.level)),i[i.length]=et("row",a.join(""),p))}if(h)for(;f<h.length;++f)h&&h[f]&&(p={r:f+1},v=h[f],v.hidden&&(p.hidden=1),y=-1,v.hpx?y=J0(v.hpx):v.hpt&&(y=v.hpt),y>-1&&(p.ht=y,p.customHeight=1),v.level&&(p.outlineLevel=v.level),i[i.length]=et("row","",p));return i.join("")}function tO(e,t,r,n){var i=[sn,et("worksheet",null,{xmlns:Dc[0],"xmlns:r":bn.r})],a=r.SheetNames[e],o=0,s="",l=r.Sheets[a];l==null&&(l={});var c=l["!ref"]||"A1",u=Ir(c);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=an(u)}n||(n={}),l["!comments"]=[];var f=[];eM(l,r,e,t,i),i[i.length]=et("dimension",null,{ref:c}),i[i.length]=sM(l,t,e,r),t.sheetFormat&&(i[i.length]=et("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=cM(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=mr(n,-1,vr(p[1].Target).replace(/#.*$/,""),Jt.HLINK),h["r:id"]="rId"+g),(d=p[1].Target.indexOf("#"))>-1&&(h.location=vr(p[1].Target.slice(d+1))),p[1].Tooltip&&(h.tooltip=vr(p[1].Tooltip)),i[i.length]=et("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]=kn("ignoredErrors",et("ignoredError",null,{numberStoredAsText:1,sqref:c}))),f.length>0&&(g=mr(n,-1,"../drawings/drawing"+(e+1)+".xml",Jt.DRAW),i[i.length]=et("drawing",null,{"r:id":"rId"+g}),l["!drawing"]=f),l["!comments"].length>0&&(g=mr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Jt.VML),i[i.length]=et("legacyDrawing",null,{"r:id":"rId"+g}),l["!legacy"]=g),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function uM(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=J0(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 c={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.c<u<<10)){for(var f=-1,d=-1,h=u<<10;h<u+1<<10;++h){c.c=h;var g=Array.isArray(r)?(r[c.r]||[])[c.c]:r[gr(c)];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])&&We(e,0,i)}var dM=nl,pM=$c;function mM(){}function vM(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 V0({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),vN(e,r),r.slice(0,r.l)}function yM(e){var t=Zi(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=Zi(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=Zi(e),r=e.read_shift(1);return[t,r,"e"]}function PM(e,t,r){return r==null&&(r=Me(9)),el(t,r),r.write_shift(1,e.v),r}function NM(e){var t=tl(e),r=e.read_shift(1);return[t,r,"e"]}function OM(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=Zi(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=Zi(e),r=qc(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=qc(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=Zi(e),r=gN(e);return[t,r,"n"]}function BM(e,t,r){return r==null&&(r=Me(12)),el(t,r),yN(e.v,r),r}function $M(e){var t=tl(e),r=gN(e);return[t,r,"n"]}function qM(e,t,r){return r==null&&(r=Me(8)),rl(t,r),yN(e.v,r),r}function UM(e){var t=Zi(e),r=tb(e);return[t,r,"is"]}function zM(e){var t=Zi(e),r=Gn(e);return[t,r,"str"]}function WM(e,t,r){return r==null&&(r=Me(12+4*e.v.length)),el(t,r),_n(e.v,r),r.length>r.l?r.slice(0,r.l):r}function HM(e){var t=tl(e),r=Gn(e);return[t,r,"str"]}function GM(e,t,r){return r==null&&(r=Me(8+4*e.v.length)),rl(t,r),_n(e.v,r),r.length>r.l?r.slice(0,r.l):r}function VM(e,t,r){var n=e.l+t,i=Zi(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"b"];if(r.cellFormula){e.l+=2;var s=fp(e,n-e.l,r);o[3]=oc(s,null,i,r.supbooks,r)}else e.l=n;return o}function YM(e,t,r){var n=e.l+t,i=Zi(e);i.r=r["!row"];var a=e.read_shift(1),o=[i,a,"e"];if(r.cellFormula){e.l+=2;var s=fp(e,n-e.l,r);o[3]=oc(s,null,i,r.supbooks,r)}else e.l=n;return o}function KM(e,t,r){var n=e.l+t,i=Zi(e);i.r=r["!row"];var a=qc(e),o=[i,a,"n"];if(r.cellFormula){e.l+=2;var s=fp(e,n-e.l,r);o[3]=oc(s,null,i,r.supbooks,r)}else e.l=n;return o}function XM(e,t,r){var n=e.l+t,i=Zi(e);i.r=r["!row"];var a=Gn(e),o=[i,a,"str"];if(r.cellFormula){e.l+=2;var s=fp(e,n-e.l,r);o[3]=oc(s,null,i,r.supbooks,r)}else e.l=n;return o}var JM=nl,ZM=$c;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=rb(e),a=Gn(e),o=Gn(e),s=Gn(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));$c({s:wn(e[0]),e:wn(e[0])},r),nb("rId"+t,r);var n=e[1].Target.indexOf("#"),i=n==-1?"":e[1].Target.slice(n+1);return _n(i||"",r),_n(e[1].Tooltip||"",r),_n("",r),r.slice(0,r.l)}function rD(){}function nD(e,t,r){var n=e.l+t,i=xN(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=hp(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 rO=["left","right","top","bottom","header","footer"];function oD(e){var t={};return rO.forEach(function(r){t[r]=qc(e)}),t}function sD(e,t){return t==null&&(t=Me(48)),eO(e),rO.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 cD(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 uD(e){var t=Me(24);return t.write_shift(4,4),t.write_shift(4,1),$c(e,t),t}function fD(e,t){return t==null&&(t=Me(66)),t.write_shift(2,e.password?MN(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=mi(t),t.z=t.z||Wr[14],t.v=pi(ni(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([gr(l),t.l]),t.c&&a["!comments"].push([gr(l),t.c]),t.t){case"s":case"str":return i.bookSST?(s=cb(i.Strings,t.v,i.revStrings),l.t="s",l.v=s,o?We(e,18,LM(t,l)):We(e,7,jM(t,l))):(l.t="str",o?We(e,17,GM(t,l)):We(e,6,WM(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?We(e,13,qM(t,l)):We(e,2,BM(t,l)):o?We(e,16,MM(t,l)):We(e,5,FM(t,l)),!0;case"b":return l.t="b",o?We(e,15,TM(t,l)):We(e,4,SM(t,l)),!0;case"e":return l.t="e",o?We(e,14,OM(t,l)):We(e,3,PM(t,l)),!0}return o?We(e,12,wM(t,l)):We(e,1,xM(t,l)),!0}function mD(e,t,r,n){var i=Ir(t["!ref"]||"A1"),a,o="",s=[];We(e,145);var l=Array.isArray(t),c=i.e.r;t["!rows"]&&(c=Math.max(i.e.r,t["!rows"].length-1));for(var u=i.s.r;u<=c;++u){o=Ln(u),hM(e,t,i,u);var f=!1;if(u<=i.e.r)for(var d=i.s.c;d<=i.e.c;++d){u===i.s.r&&(s[d]=Hn(d)),a=s[d]+o;var h=l?(t[u]||[])[d]:t[a];if(!h){f=!1;continue}f=pD(e,h,u,d,n,t,f)}}We(e,146)}function vD(e,t){!t||!t["!merges"]||(We(e,177,QM(t["!merges"].length)),t["!merges"].forEach(function(r){We(e,176,ZM(r))}),We(e,178))}function gD(e,t){!t||!t["!cols"]||(We(e,390),t["!cols"].forEach(function(r,n){r&&We(e,60,aD(n,r))}),We(e,391))}function yD(e,t){!t||!t["!ref"]||(We(e,648),We(e,649,uD(Ir(t["!ref"]))),We(e,650))}function xD(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var i=mr(r,-1,n[1].Target.replace(/#.*$/,""),Jt.HLINK);We(e,494,tD(n,i))}}),delete t["!links"]}function bD(e,t,r,n){if(t["!comments"].length>0){var i=mr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Jt.VML);We(e,551,nb("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:an(i.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=Li(a);s.s.r==s.e.r&&(s.e.r=Li(t["!ref"]).e.r,a=an(s));for(var l=0;l<o.length;++l){var c=o[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+r.SheetNames[n]+"'!"+a;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+r.SheetNames[n]+"'!"+a}),We(e,161,$c(Ir(a))),We(e,162)}}function _D(e,t,r){We(e,133),We(e,137,cD(t,r)),We(e,138),We(e,134)}function SD(e,t){t["!protect"]&&We(e,535,fD(t["!protect"]))}function AD(e,t,r,n){var i=di(),a=r.SheetNames[e],o=r.Sheets[a]||{},s=a;try{r&&r.Workbook&&(s=r.Workbook.Sheets[e].CodeName||s)}catch{}var l=Ir(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"]=[],We(i,129),(r.vbaraw||o["!outline"])&&We(i,147,gM(s,o["!outline"])),We(i,148,pM(l)),_D(i,o,r.Workbook),gD(i,o),mD(i,o,e,t),SD(i,o),wD(i,o,r,e),vD(i,o),xD(i,o,n),o["!margins"]&&We(i,476,sD(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&yD(i,o),bD(i,o,e,n),We(i,130),i.end()}function TD(e,t){e.l+=10;var r=Gn(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 PD(e){return!e.Workbook||!e.Workbook.WBProps?"false":iI(e.Workbook.WBProps.date1904)?"true":"false"}var ND="][*?/\\".split("");function nO(e,t){if(e.length>31)throw new Error("Sheet names cannot exceed 31 chars");var r=!0;return ND.forEach(function(n){if(e.indexOf(n)!=-1)throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}),r}function OD(e,t,r){e.forEach(function(n,i){nO(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||[];OD(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 iO(e){var t=[sn];t[t.length]=et("workbook",null,{xmlns:Dc[0],"xmlns:r":bn.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]=et("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:vr(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]=et("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]=et("definedName",vr(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=mx(e),r.name=Gn(e),r}function kD(e,t){return t||(t=Me(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),nb(e.strRelID,t),_n(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?Gn(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),vN(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=PI(e),o=GR(e,0,r),s=rb(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){We(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]};We(e,156,kD(i))}We(e,144)}function MD(e,t){t||(t=Me(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return _n("SheetJS",t),_n(B0.version,t),_n(B0.version,t),_n("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||(We(e,135),We(e,158,DD(i)),We(e,136))}}function $D(e,t){var r=di();return We(r,131),We(r,128,MD()),We(r,153,ID(e.Workbook&&e.Workbook.WBProps||null)),BD(r,e),RD(r,e),We(r,132),r.end()}function qD(e,t,r){return(t.slice(-4)===".bin"?$D:iO)(e)}function UD(e,t,r,n,i){return(t.slice(-4)===".bin"?AD:tO)(e,r,n,i)}function zD(e,t,r){return(t.slice(-4)===".bin"?sF:$N)(e,r)}function WD(e,t,r){return(t.slice(-4)===".bin"?I7:RN)(e,r)}function HD(e,t,r){return(t.slice(-4)===".bin"?SF:HN)(e)}function GD(e){return(e.slice(-4)===".bin"?mF:zN)()}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 YD(){return""}function KD(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach(function(n,i){var a=[];a.push(et("NumberFormat",null,{"ss:Format":vr(Wr[n.numFmtId])}));var o={"ss:ID":"s"+(21+i)};r.push(et("Style",a.join(""),o))}),et("Styles",r.join(""))}function aO(e){return et("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+sb(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(aO(i)))}return et("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(aO(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(et("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&i.push(et("Footer",null,{"x:Margin":e["!margins"].footer})),i.push(et("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(et("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(kn("ProtectContents","True")),e["!protect"].objects&&i.push(kn("ProtectObjects","True")),e["!protect"].scenarios&&i.push(kn("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?i.push(kn("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&i.push(kn("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?"":et("WorksheetOptions",i.join(""),{xmlns:Oi.x})}function QD(e){return e.map(function(t){var r=nI(t.t||""),n=et("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return et("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"]="="+vr(sb(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=wn(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"]=vr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=vr(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],u=0;u!=c.length;++u)c[u].s.c!=o.c||c[u].s.r!=o.r||(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].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||Wr[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)),et("Cell",p,s)}function t9(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=BN(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=Ir(e["!ref"]),a=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach(function(v,y){ab(v);var b=!!v.width,_=hp(y,v),A={"ss:Index":y+1};b&&(A["ss:Width"]=K0(_.width)),v.hidden&&(A["ss:Hidden"]="1"),s.push(et("Column",null,A))});for(var l=Array.isArray(e),c=i.s.r;c<=i.e.r;++c){for(var u=[t9(c,(e["!rows"]||[])[c])],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>c)&&!(a[o].e.c<f)&&!(a[o].e.r<c)){(a[o].s.c!=f||a[o].s.r!=c)&&(d=!0);break}if(!d){var h={r:c,c:f},g=gr(h),p=l?(e[c]||[])[f]:e[g];u.push(e9(p,g,e,t,r,n,h))}}u.push("</Row>"),u.length>2&&s.push(u.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=mi(Wr)),e.SSF&&(sp(),op(e.SSF),t.revssf=lp(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(YD()),r.push(""),r.push("");for(var n=0;n<e.SheetNames.length;++n)r.push(et("Worksheet",n9(n,t,e),{"ss:Name":vr(e.SheetNames[n])}));return r[2]=KD(e,t),r[3]=XD(e),sn+et("Workbook",r.join(""),{xmlns:Oi.ss,"xmlns:o":Oi.o,"xmlns:x":Oi.x,"xmlns:ss":Oi.ss,"xmlns:dt":Oi.dt,"xmlns:html":Oi.html})}var z1={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=In(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=In(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 c=[];for(a=0;a<i.length;++a)ON.indexOf(i[a][0])>-1||EN.indexOf(i[a][0])>-1||i[a][1]!=null&&c.push(i[a]);n.length&&br.utils.cfb_add(t,"/SummaryInformation",zw(n,z1.SI,l,Dw)),(r.length||c.length)&&br.utils.cfb_add(t,"/DocumentSummaryInformation",zw(r,z1.DSI,s,Mw,c.length?c:null,z1.UDI))}function o9(e,t){var r=t||{},n=br.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 br.utils.cfb_add(n,i,oO(e,r)),r.biff==8&&(e.Props||e.Custprops)&&a9(e,n),r.biff==8&&e.vbaraw&&AF(n,br.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var s9={0:{f:uM},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:KM},10:{f:VM},11:{f:YM},12:{f:bM},13:{f:$M},14:{f:NM},15:{f:AM},16:{f:RM},17:{f:HM},18:{f:kM},19:{f:tb},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:Y7},47:{f:V7},48:{},49:{f:bI},50:{},51:{f:uF},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:vF},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:vM},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:mx},357:{},358:{},359:{},360:{T:1},361:{},362:{f:m7},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:mM},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:mx},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 rt(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&&Z2(r)&&e.push(r)}}function l9(e,t,r,n){var i=(r||[]).length||0;if(i<=8224)return rt(e,t,r,i);var a=t;if(!isNaN(a)){for(var o=r.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var u=e.next(4);for(u.write_shift(2,a),u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;l<i;){for(u=e.next(4),u.write_shift(2,60),c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c}}}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 c9(e,t,r,n){var i=Me(9);return nh(i,e,t),jN(r,n||"b",i),i}function u9(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"?pi(ni(t.v)):t.v;i==(i|0)&&i>=0&&i<65536?rt(e,2,T7(r,n,i)):rt(e,3,A7(r,n,i));return;case"b":case"e":rt(e,5,c9(r,n,t.v,t.t));return;case"s":case"str":rt(e,4,u9(r,n,(t.v||"").slice(0,255)));return}rt(e,1,nh(null,r,n))}function h9(e,t,r,n){var i=Array.isArray(t),a=Ir(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=an(a)}for(var c=a.s.r;c<=a.e.r;++c){s=Ln(c);for(var u=a.s.c;u<=a.e.c;++u){c===a.s.r&&(l[u]=Hn(u)),o=l[u]+s;var f=i?(t[c]||[])[u]:t[o];f&&f9(e,f,c,u)}}}function d9(e,t){for(var r=t||{},n=di(),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 rt(n,r.biff==4?1033:r.biff==3?521:9,ib(e,16,r)),h9(n,e.Sheets[e.SheetNames[i]],i,r),rt(n,10),n.end()}function p9(e,t,r){rt(e,49,s7({sz:12,name:"Arial"},r))}function m9(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&&rt(e,1054,u7(i,t[i],r))})}function v9(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),rt(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),IN(Ir(t["!ref"]||"A1"),r),r.write_shift(4,4),rt(e,2152,r)}function g9(e,t){for(var r=0;r<16;++r)rt(e,224,Hw({numFmtId:0,style:!0},0,t));t.cellXfs.forEach(function(n){rt(e,224,Hw(n,0,t))})}function y9(e,t){for(var r=0;r<t["!links"].length;++r){var n=t["!links"][r];rt(e,440,y7(n)),n[1].Tooltip&&rt(e,2048,x7(n))}delete t["!links"]}function x9(e,t){if(t){var r=0;t.forEach(function(n,i){++r<=256&&n&&rt(e,125,_7(hp(i,n),i))})}}function b9(e,t,r,n,i){var a=16+us(i.cellXfs,t,i);if(t.v==null&&!t.bf){rt(e,513,Ys(r,n,a));return}if(t.bf)rt(e,6,WR(t,r,n,i,a));else switch(t.t){case"d":case"n":var o=t.t=="d"?pi(ni(t.v)):t.v;rt(e,515,p7(r,n,o,a));break;case"b":case"e":rt(e,517,d7(r,n,t.v,a,i,t.t));break;case"s":case"str":if(i.bookSST){var s=cb(i.Strings,t.v,i.revStrings);rt(e,253,l7(r,n,s,a))}else rt(e,516,c7(r,n,(t.v||"").slice(0,255),a,i));break;default:rt(e,513,Ys(r,n,a))}}function w9(e,t,r){var n=di(),i=r.SheetNames[e],a=r.Sheets[i]||{},o=(r||{}).Workbook||{},s=(o.Sheets||[])[e]||{},l=Array.isArray(a),c=t.biff==8,u,f="",d=[],h=Ir(a["!ref"]||"A1"),g=c?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)}rt(n,2057,ib(r,16,t)),rt(n,13,Vi(1)),rt(n,12,Vi(100)),rt(n,15,ei(!0)),rt(n,17,ei(!1)),rt(n,16,Vs(.001)),rt(n,95,ei(!0)),rt(n,42,ei(!1)),rt(n,43,ei(!1)),rt(n,130,Vi(1)),rt(n,128,h7()),rt(n,131,ei(!1)),rt(n,132,ei(!1)),c&&x9(n,a["!cols"]),rt(n,512,f7(h,t)),c&&(a["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=Ln(p);for(var v=h.s.c;v<=h.e.c;++v){p===h.s.r&&(d[v]=Hn(v)),u=d[v]+f;var y=l?(a[p]||[])[v]:a[u];y&&(b9(n,y,p,v,t),c&&y.l&&a["!links"].push([u,y.l]))}}var b=s.CodeName||s.name||i;return c&&rt(n,574,o7((o.Views||[])[0])),c&&(a["!merges"]||[]).length&&rt(n,229,g7(a["!merges"])),c&&y9(n,a),rt(n,442,LN(b)),c&&v9(n,a),rt(n,10),n.end()}function _9(e,t,r){var n=di(),i=(e||{}).Workbook||{},a=i.Sheets||[],o=i.WBProps||{},s=r.biff==8,l=r.biff==5;if(rt(n,2057,ib(e,5,r)),r.bookType=="xla"&&rt(n,135),rt(n,225,s?Vi(1200):null),rt(n,193,VI(2)),l&&rt(n,191),l&&rt(n,192),rt(n,226),rt(n,92,r7("SheetJS",r)),rt(n,66,Vi(s?1200:1252)),s&&rt(n,353,Vi(0)),s&&rt(n,448),rt(n,317,S7(e.SheetNames.length)),s&&e.vbaraw&&rt(n,211),s&&e.vbaraw){var c=o.CodeName||"ThisWorkbook";rt(n,442,LN(c))}rt(n,156,Vi(17)),rt(n,25,ei(!1)),rt(n,18,ei(!1)),rt(n,19,Vi(0)),s&&rt(n,431,ei(!1)),s&&rt(n,444,Vi(0)),rt(n,61,a7()),rt(n,64,ei(!1)),rt(n,141,Vi(0)),rt(n,34,ei(PD(e)=="true")),rt(n,14,ei(!0)),s&&rt(n,439,ei(!1)),rt(n,218,Vi(0)),p9(n,e,r),m9(n,e.SSF,r),g9(n,r),s&&rt(n,352,ei(!1));var u=n.end(),f=di();s&&rt(f,140,b7()),s&&r.Strings&&l9(f,252,i7(r.Strings)),rt(f,10);var d=f.end(),h=di(),g=0,p=0;for(p=0;p<e.SheetNames.length;++p)g+=(s?12:11)+(s?2:1)*e.SheetNames[p].length;var v=u.length+g+d.length;for(p=0;p<e.SheetNames.length;++p){var y=a[p]||{};rt(h,133,n7({pos:v,hs:y.Hidden||0,dt:0,name:e.SheetNames[p]},r)),v+=t[p].length}var b=h.end();if(g!=b.length)throw new Error("BS8 "+g+" != "+b.length);var _=[];return u.length&&_.push(u),b.length&&_.push(b),d.length&&_.push(d),jn(_)}function S9(e,t){var r=t||{},n=[];e&&!e.SSF&&(e.SSF=mi(Wr)),e&&e.SSF&&(sp(),op(e.SSF),r.revssf=lp(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)),jn(n)}function oO(e,t){for(var r=0;r<=e.SheetNames.length;++r){var n=e.Sheets[e.SheetNames[r]];if(!(!n||!n["!ref"])){var i=Li(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,c=0;c<i.length;++c)if(!(i[c].s.r>r||i[c].s.c>o)&&!(i[c].e.r<r||i[c].e.c<o)){if(i[c].s.r<r||i[c].s.c<o){s=-1;break}s=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(s<0)){var u=gr({r,c:o}),f=n.dense?(e[r]||[])[o]:e[u],d=f&&f.v!=null&&(f.h||tI(f.w||(bo(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")+"-"+u,a.push(et("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 P9(e,t,r){var n=[];return n.join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function sO(e,t){var r=t||{},n=r.header!=null?r.header:T9,i=r.footer!=null?r.footer:E9,a=[n],o=Li(e["!ref"]);r.dense=Array.isArray(e),a.push(P9(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 lO(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"?wn(n.origin):n.origin;i=o.r,a=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:i,c:a}};if(e["!ref"]){var u=Li(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),i==-1&&(c.e.r=i=u.e.r+1)}var f=[],d=0,h=e["!rows"]||(e["!rows"]=[]),g=0,p=0,v=0,y=0,b=0,_=0;for(e["!cols"]||(e["!cols"]=[]);g<s.length&&p<l;++g){var A=s[g];if(Zw(A)){if(n.display)continue;h[p]={hidden:!0}}var S=A.children;for(v=y=0;v<S.length;++v){var O=S[v];if(!(n.display&&Zw(O))){var T=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)}_=+O.getAttribute("colspan")||1,((b=+O.getAttribute("rowspan")||1)>1||_>1)&&f.push({s:{r:p+i,c:y+a},e:{r:p+i+(b||1)-1,c:y+a+(_||1)-1}});var B={t:"s",v:T},C=O.getAttribute("data-t")||O.getAttribute("t")||"";T!=null&&(T.length==0?B.t=C||"z":n.raw||T.trim().length==0||C=="s"||(T==="TRUE"?B={t:"b",v:!0}:T==="FALSE"?B={t:"b",v:!1}:isNaN(ho(T))?isNaN(ff(T).getDate())||(B={t:"d",v:ni(T)},n.cellDates||(B={t:"n",v:pi(B.v)}),B.z=n.dateNF||Wr[14]):B={t:"n",v:ho(T)})),B.z===void 0&&k!=null&&(B.z=k);var P="",M=O.getElementsByTagName("A");if(M&&M.length)for(var U=0;U<M.length&&!(M[U].hasAttribute("href")&&(P=M[U].getAttribute("href"),P.charAt(0)!="#"));++U);P&&P.charAt(0)!="#"&&(B.l={Target:P}),n.dense?(e[p+i]||(e[p+i]=[]),e[p+i][y+a]=B):e[gr({c:y+a,r:p+i})]=B,c.e.c<y+a&&(c.e.c=y+a),y+=_}}++p}return f.length&&(e["!merges"]=(e["!merges"]||[]).concat(f)),c.e.r=Math.max(c.e.r,p-1+i),e["!ref"]=an(c),p>=l&&(e["!fullref"]=an((c.e.r=s.length-g+p-1+i,c))),e}function cO(e,t){var r=t||{},n=r.dense?[]:{};return lO(n,e,t)}function N9(e,t){return Qs(cO(e,t),t)}function Zw(e){var t="",r=O9(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function O9(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 sn+t}})(),Qw=(function(){var e=function(a){return vr(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="'+vr(o.SheetNames[s])+`" table:style-name="ta1">
314
- `);var c=0,u=0,f=Li(a["!ref"]||"A1"),d=a["!merges"]||[],h=0,g=Array.isArray(a);if(a["!cols"])for(u=0;u<=f.e.c;++u)l.push(" <table:table-column"+(a["!cols"][u]?' table:style-name="co'+a["!cols"][u].ods+'"':"")+`></table:table-column>
315
- `);var p="",v=a["!rows"]||[];for(c=0;c<f.s.r;++c)p=v[c]?' table:style-name="ro'+v[c].ods+'"':"",l.push(" <table:table-row"+p+`></table:table-row>
316
- `);for(;c<=f.e.r;++c){for(p=v[c]?' table:style-name="ro'+v[c].ods+'"':"",l.push(" <table:table-row"+p+`>
317
- `),u=0;u<f.s.c;++u)l.push(t);for(;u<=f.e.c;++u){var y=!1,b={},_="";for(h=0;h!=d.length;++h)if(!(d[h].s.c>u)&&!(d[h].s.r>c)&&!(d[h].e.c<u)&&!(d[h].e.r<c)){(d[h].s.c!=u||d[h].s.r!=c)&&(y=!0),b["table:number-columns-spanned"]=d[h].e.c-d[h].s.c+1,b["table:number-rows-spanned"]=d[h].e.r-d[h].s.r+1;break}if(y){l.push(r);continue}var A=gr({r:c,c:u}),S=g?(a[c]||[])[u]:a[A];if(S&&S.f&&(b["table:formula"]=vr(XR(S.f)),S.F&&S.F.slice(0,A.length)==A)){var O=Li(S.F);b["table:number-matrix-columns-spanned"]=O.e.c-O.s.c+1,b["table:number-matrix-rows-spanned"]=O.e.r-O.s.r+1}if(!S){l.push(t);continue}switch(S.t){case"b":_=S.v?"TRUE":"FALSE",b["office:value-type"]="boolean",b["office:boolean-value"]=S.v?"true":"false";break;case"n":_=S.w||String(S.v||0),b["office:value-type"]="float",b["office:value"]=S.v||0;break;case"s":case"str":_=S.v==null?"":S.v,b["office:value-type"]="string";break;case"d":_=S.w||ni(S.v).toISOString(),b["office:value-type"]="date",b["office:date-value"]=ni(S.v).toISOString(),b["table:style-name"]="ce1";break;default:l.push(t);continue}var T=e(_);if(S.l&&S.l.Target){var k=S.l.Target;k=k.charAt(0)=="#"?"#"+JR(k.slice(1)):k,k.charAt(0)!="#"&&!k.match(/^\w+:/)&&(k="../"+k),T=et("text:a",T,{"xlink:href":k.replace(/&/g,"&amp;")})}l.push(" "+et("table:table-cell",et("text:p",T,{}),b)+`
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(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u<c["!cols"].length;++u)if(c["!cols"][u]){var f=c["!cols"][u];if(f.width==null&&f.wpx==null&&f.wch==null)continue;ab(f),f.ods=s;var d=c["!cols"][u].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(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var u=0;u<c["!rows"].length;++u)if(c["!rows"][u]){c["!rows"][u].ods=l;var f=c["!rows"][u].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=[sn],c=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"}),u=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"+c+u+`>
340
- `),l.push(AN().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`>
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 uO(e,t){if(t.bookType=="fods")return Qw(e,t);var r=Y2(),n="",i=[],a=[];return n="mimetype",qt(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",qt(r,n,Qw(e,t)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",qt(r,n,C9(e,t)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",qt(r,n,sn+AN()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",qt(r,n,UI(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",qt(r,n,$I(i)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Z0(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 cs(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 pr(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 tc(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 hn(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 c={data:s,type:a};t[i]==null?t[i]=[c]:t[i].push(c)}return t}function Pn(e){var t=[];return e.forEach(function(r,n){r.forEach(function(i){i.data&&(t.push(pr(n*8+i.type)),i.type==2&&t.push(pr(i.data.length)),t.push(i.data))})}),cs(t)}function ca(e){for(var t,r=[],n=[0];n[0]<e.length;){var i=pf(e,n),a=hn(e.slice(n[0],n[0]+i));n[0]+=i;var o={id:tc(a[1][0].data),messages:[]};a[2].forEach(function(s){var l=hn(s.data),c=tc(l[3][0].data);o.messages.push({meta:l,data:e.slice(n[0],n[0]+c)}),n[0]+=c}),(t=a[3])!=null&&t[0]&&(o.merge=tc(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:pr(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:pr(+!!r.merge),type:0}]);var i=[];r.messages.forEach(function(o){i.push(o.data),o.meta[3]=[{type:0,data:pr(o.data.length)}],n[2].push({data:Pn(o.meta),type:2})});var a=Pn(n);t.push(pr(a.length)),t.push(a),i.forEach(function(o){return t.push(o)})}),cs(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,c=0;if(a==1?(c=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(c=(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=[cs(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(i.push(i[0].slice(-l)),c-=l;c>=i[i.length-1].length;)i.push(i[i.length-1]),c-=i[i.length-1].length;i.push(i[0].slice(-l,-l+c))}}var u=cs(i);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}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 cs(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=pr(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 cs(t)}function W1(e,t){var r=new Uint8Array(32),n=Z0(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 H1(e,t){var r=new Uint8Array(32),n=Z0(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 Vo(e){var t=hn(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)&&tc(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=Z0(e[7][0].data),u=0,f=[],d=Z0(e[4][0].data),h=0,g=[],p=0;p<t.length;++p){if(t[p]==null){c.setUint16(p*2,65535,!0),d.setUint16(p*2,65535);continue}c.setUint16(p*2,u,!0),d.setUint16(p*2,h,!0);var v,y;switch(typeof t[p]){case"string":v=W1({t:"s",v:t[p]},r),y=H1({t:"s",v:t[p]},r);break;case"number":v=W1({t:"n",v:t[p]},r),y=H1({t:"n",v:t[p]},r);break;case"boolean":v=W1({t:"b",v:t[p]},r),y=H1({t:"b",v:t[p]},r);break;default:throw new Error("Unsupported value "+t[p])}f.push(v),u+=v.length,g.push(y),h+=y.length,++l}for(e[2][0].data=pr(l);p<e[7][0].data.length/2;++p)c.setUint16(p*2,65535,!0),d.setUint16(p*2,65535,!0);return e[6][0].data=cs(f),e[3][0].data=cs(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=Li(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(an(n)));var a=Q0(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=[],c=br.read(t.numbers,{type:"base64"});c.FileIndex.map(function(I,R){return[I,c.FullPaths[R]]}).forEach(function(I){var R=I[0],D=I[1];if(R.type==2&&R.name.match(/\.iwa/)){var G=R.content,fe=ua(G),ae=ca(fe);ae.forEach(function(ne){l.push(ne.id),s[ne.id]={deps:[],location:D,type:tc(ne.messages[0].meta[1][0].data)}})}}),l.sort(function(I,R){return I-R});var u=l.filter(function(I){return I>1}).map(function(I){return[I,pr(I)]});c.FileIndex.map(function(I,R){return[I,c.FullPaths[R]]}).forEach(function(I){var R=I[0];if(I[1],!!R.name.match(/\.iwa/)){var D=ca(ua(R.content));D.forEach(function(G){G.messages.forEach(function(fe){u.forEach(function(ae){G.messages.some(function(ne){return tc(ne.meta[1][0].data)!=11006&&k9(ne.data,ae[1])})&&s[ae[0]].deps.push(G.id)})})})}});for(var f=br.find(c,s[1].location),d=ca(ua(f.content)),h,g=0;g<d.length;++g){var p=d[g];p.id==1&&(h=p)}var v=Vo(hn(h.messages[0].data)[1][0].data);for(f=br.find(c,s[v].location),d=ca(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==v&&(h=p);for(v=Vo(hn(h.messages[0].data)[2][0].data),f=br.find(c,s[v].location),d=ca(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==v&&(h=p);for(v=Vo(hn(h.messages[0].data)[2][0].data),f=br.find(c,s[v].location),d=ca(ua(f.content)),g=0;g<d.length;++g)p=d[g],p.id==v&&(h=p);var y=hn(h.messages[0].data);{y[6][0].data=pr(n.e.r+1),y[7][0].data=pr(n.e.c+1);var b=Vo(y[46][0].data),_=br.find(c,s[b].location),A=ca(ua(_.content));{for(var S=0;S<A.length&&A[S].id!=b;++S);if(A[S].id!=b)throw"Bad ColumnRowUIDMapArchive";var O=hn(A[S].messages[0].data);O[1]=[],O[2]=[],O[3]=[];for(var T=0;T<=n.e.c;++T){var k=[];k[1]=k[2]=[{type:0,data:pr(T+420690)}],O[1].push({type:2,data:Pn(k)}),O[2].push({type:0,data:pr(T)}),O[3].push({type:0,data:pr(T)})}O[4]=[],O[5]=[],O[6]=[];for(var L=0;L<=n.e.r;++L)k=[],k[1]=k[2]=[{type:0,data:pr(L+726270)}],O[4].push({type:2,data:Pn(k)}),O[5].push({type:0,data:pr(L)}),O[6].push({type:0,data:pr(L)});A[S].messages[0].data=Pn(O)}_.content=Rl(Fl(A)),_.size=_.content.length,delete y[46];var B=hn(y[4][0].data);{B[7][0].data=pr(n.e.r+1);var C=hn(B[1][0].data),P=Vo(C[2][0].data);_=br.find(c,s[P].location),A=ca(ua(_.content));{if(A[0].id!=P)throw"Bad HeaderStorageBucket";var M=hn(A[0].messages[0].data);for(L=0;L<a.length;++L){var U=hn(M[2][0].data);U[1][0].data=pr(L),U[4][0].data=pr(a[L].length),M[2][L]={type:M[2][0].type,data:Pn(U)}}A[0].messages[0].data=Pn(M)}_.content=Rl(Fl(A)),_.size=_.content.length;var J=Vo(B[2][0].data);_=br.find(c,s[J].location),A=ca(ua(_.content));{if(A[0].id!=J)throw"Bad HeaderStorageBucket";for(M=hn(A[0].messages[0].data),T=0;T<=n.e.c;++T)U=hn(M[2][0].data),U[1][0].data=pr(T),U[4][0].data=pr(n.e.r+1),M[2][T]={type:M[2][0].type,data:Pn(U)};A[0].messages[0].data=Pn(M)}_.content=Rl(Fl(A)),_.size=_.content.length;var q=Vo(B[4][0].data);(function(){for(var I=br.find(c,s[q].location),R=ca(ua(I.content)),D,G=0;G<R.length;++G){var fe=R[G];fe.id==q&&(D=fe)}var ae=hn(D.messages[0].data);{ae[3]=[];var ne=[];o.forEach(function(se,Fe){ne[1]=[{type:0,data:pr(Fe)}],ne[2]=[{type:0,data:pr(1)}],ne[3]=[{type:2,data:j9(se)}],ae[3].push({type:2,data:Pn(ne)})})}D.messages[0].data=Pn(ae);var ve=Fl(R),_e=Rl(ve);I.content=_e,I.size=I.content.length})();var W=hn(B[3][0].data);{var ee=W[1][0];delete W[2];var Z=hn(ee.data);{var Q=Vo(Z[2][0].data);(function(){for(var I=br.find(c,s[Q].location),R=ca(ua(I.content)),D,G=0;G<R.length;++G){var fe=R[G];fe.id==Q&&(D=fe)}var ae=hn(D.messages[0].data);{delete ae[6],delete W[7];var ne=new Uint8Array(ae[5][0].data);ae[5]=[];for(var ve=0,_e=0;_e<=n.e.r;++_e){var se=hn(ne);ve+=F9(se,a[_e],o),se[1][0].data=pr(_e),ae[5].push({data:Pn(se),type:2})}ae[1]=[{type:0,data:pr(n.e.c+1)}],ae[2]=[{type:0,data:pr(n.e.r+1)}],ae[3]=[{type:0,data:pr(ve)}],ae[4]=[{type:0,data:pr(n.e.r+1)}]}D.messages[0].data=Pn(ae);var Fe=Fl(R),Ae=Rl(Fe);I.content=Ae,I.size=I.content.length})()}ee.data=Pn(Z)}B[3][0].data=Pn(W)}y[4][0].data=Pn(B)}h.messages[0].data=Pn(y);var ce=Fl(d),N=Rl(ce);return f.content=N,f.size=f.content.length,c}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"?uO(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=mi(Wr)),e&&e.SSF&&(sp(),op(e.SSF),t.revssf=lp(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,Zu?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=GN.indexOf(t.bookType)>-1,i=wN();ub(t=t||{});var a=Y2(),o="",s=0;if(t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",qt(a,o,TN(e.Props,t)),i.coreprops.push(o),mr(t.rels,2,o,Jt.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=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,qt(a,o,PN(e.Props)),i.extprops.push(o),mr(t.rels,3,o,Jt.EXT_PROPS),e.Custprops!==e.Props&&In(e.Custprops||{}).length>0&&(o="docProps/custom.xml",qt(a,o,NN(e.Custprops)),i.custprops.push(o),mr(t.rels,4,o,Jt.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],d=(f||{})["!type"]||"sheet";switch(d){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,qt(a,o,UD(s-1,o,t,e,u)),i.sheets.push(o),mr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Jt.WS[0])}if(f){var h=f["!comments"],g=!1,p="";h&&h.length>0&&(p="xl/comments"+s+"."+r,qt(a,p,HD(h,p)),i.comments.push(p),mr(u,-1,"../comments"+s+"."+r,Jt.CMNT),g=!0),f["!legacy"]&&g&&qt(a,"xl/drawings/vmlDrawing"+s+".vml",WN(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&qt(a,SN(o),Ql(u))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,qt(a,o,WD(t.Strings,o,t)),i.strs.push(o),mr(t.wbrels,-1,"sharedStrings."+r,Jt.SST)),o="xl/workbook."+r,qt(a,o,qD(e,o)),i.workbooks.push(o),mr(t.rels,1,o,Jt.WB),o="xl/theme/theme1.xml",qt(a,o,UN(e.Themes,t)),i.themes.push(o),mr(t.wbrels,-1,"theme/theme1.xml",Jt.THEME),o="xl/styles."+r,qt(a,o,zD(e,o,t)),i.styles.push(o),mr(t.wbrels,-1,"styles."+r,Jt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",qt(a,o,e.vbaraw),i.vba.push(o),mr(t.wbrels,-1,"vbaProject.bin",Jt.VBA)),o="xl/metadata."+r,qt(a,o,GD(o)),i.metadata.push(o),mr(t.wbrels,-1,"metadata."+r,Jt.XLMETA),qt(a,"[Content_Types].xml",_N(i,t)),qt(a,"_rels/.rels",Ql(t.rels)),qt(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=mi(Wr)),e&&e.SSF&&(sp(),op(e.SSF),t.revssf=lp(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,Zu?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=GN.indexOf(t.bookType)>-1,i=wN();ub(t=t||{});var a=Y2(),o="",s=0;if(t.cellXfs=[],us(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",qt(a,o,TN(e.Props,t)),i.coreprops.push(o),mr(t.rels,2,o,Jt.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=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,qt(a,o,PN(e.Props)),i.extprops.push(o),mr(t.rels,3,o,Jt.EXT_PROPS),e.Custprops!==e.Props&&In(e.Custprops||{}).length>0&&(o="docProps/custom.xml",qt(a,o,NN(e.Custprops)),i.custprops.push(o),mr(t.rels,4,o,Jt.CUST_PROPS));var u=["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,qt(a,o,tO(s-1,t,e,f)),i.sheets.push(o),mr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,Jt.WS[0])}if(d){var g=d["!comments"],p=!1,v="";if(g&&g.length>0){var y=!1;g.forEach(function(b){b[1].forEach(function(_){_.T==!0&&(y=!0)})}),y&&(v="xl/threadedComments/threadedComment"+s+"."+r,qt(a,v,gF(g,u,t)),i.threadedcomments.push(v),mr(f,-1,"../threadedComments/threadedComment"+s+"."+r,Jt.TCMNT)),v="xl/comments"+s+"."+r,qt(a,v,HN(g)),i.comments.push(v),mr(f,-1,"../comments"+s+"."+r,Jt.CMNT),p=!0}d["!legacy"]&&p&&qt(a,"xl/drawings/vmlDrawing"+s+".vml",WN(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}f["!id"].rId1&&qt(a,SN(o),Ql(f))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,qt(a,o,RN(t.Strings,t)),i.strs.push(o),mr(t.wbrels,-1,"sharedStrings."+r,Jt.SST)),o="xl/workbook."+r,qt(a,o,iO(e)),i.workbooks.push(o),mr(t.rels,1,o,Jt.WB),o="xl/theme/theme1.xml",qt(a,o,UN(e.Themes,t)),i.themes.push(o),mr(t.wbrels,-1,"theme/theme1.xml",Jt.THEME),o="xl/styles."+r,qt(a,o,$N(e,t)),i.styles.push(o),mr(t.wbrels,-1,"styles."+r,Jt.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",qt(a,o,e.vbaraw),i.vba.push(o),mr(t.wbrels,-1,"vbaProject.bin",Jt.VBA)),o="xl/metadata."+r,qt(a,o,zN()),i.metadata.push(o),mr(t.wbrels,-1,"metadata."+r,Jt.XLMETA),u.length>1&&(o="xl/persons/person.xml",qt(a,o,yF(u)),i.people.push(o),mr(t.wbrels,-1,"persons/person.xml",Jt.PEOPLE)),qt(a,"[Content_Types].xml",_N(i,t)),qt(a,"_rels/.rels",Ql(t.rels)),qt(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=xo(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 fO(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Qf(t.file,br.write(e,{type:er?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return br.write(e,t)}function U9(e,t){var r=mi(t||{}),n=D9(e,r);return z9(n,r)}function z9(e,t){var r={},n=er?"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?br.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(ap(i))}return t.password&&typeof encrypt_agile<"u"?fO(encrypt_agile(i,t.password),t):t.type==="file"?Qf(t.file,i):t.type=="string"?Yu(i):i}function W9(e,t){var r=t||{},n=o9(e,r);return fO(n,r)}function La(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return uf(hf(n));case"binary":return hf(n);case"string":return e;case"file":return Qf(t.file,n,"utf8");case"buffer":return er?To(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 uf(e);case"binary":return e;case"string":return e;case"file":return Qf(t.file,e,"binary");case"buffer":return er?To(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function y0(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"?uf(r):t.type=="string"?Yu(r):r;case"file":return Qf(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function hO(e,t){xL(),CD(e);var r=mi(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var n=hO(e,r);return r.type="array",ap(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(P7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"htm":case"html":return La(sO(e.Sheets[e.SheetNames[i]],r),r);case"txt":return H9(pO(e.Sheets[e.SheetNames[i]],r),r);case"csv":return La(fb(e.Sheets[e.SheetNames[i]],r),r,"\uFEFF");case"dif":return La(N7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"dbf":return y0(E7.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"prn":return La(O7.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(FN.from_sheet(e.Sheets[e.SheetNames[i]],r),r);case"fods":return La(uO(e,r),r);case"wk1":return y0(Gw.sheet_to_wk1(e.Sheets[e.SheetNames[i]],r),r);case"wk3":return y0(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),y0(oO(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 dO(e,t,r){var n={};return n.type="file",n.file=t,G9(n),hO(e,n)}function V9(e,t,r,n,i,a,o,s){var l=Ln(r),c=s.defval,u=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(c===void 0)continue;a[h]!=null&&(d[a[h]]=c);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(c!==void 0)d[a[h]]=c;else if(u&&p===null)d[a[h]]=null;else continue;else d[a[h]]=u&&(g.t!=="n"||g.t==="n"&&s.rawNumbers!==!1)?p:bo(g,p,s);p!=null&&(f=!1)}}return{row:d,isempty:f}}function Q0(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}},c=t||{},u=c.range!=null?c.range:e["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof u){case"string":l=Ir(u);break;case"number":l=Ir(e["!ref"]),l.s.r=u;break;default:l=u}n>0&&(i=0);var f=Ln(l.s.r),d=[],h=[],g=0,p=0,v=Array.isArray(e),y=l.s.r,b=0,_={};v&&!e[y]&&(e[y]=[]);var A=c.skipHidden&&e["!cols"]||[],S=c.skipHidden&&e["!rows"]||[];for(b=l.s.c;b<=l.e.c;++b)if(!(A[b]||{}).hidden)switch(d[b]=Hn(b),r=v?e[y][b]:e[d[b]+f],n){case 1:a[b]=b-l.s.c;break;case 2:a[b]=d[b];break;case 3:a[b]=c.header[b-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=bo(r,null,c),p=_[o]||0,!p)_[o]=1;else{do s=o+"_"+p++;while(_[s]);_[o]=p,_[s]=1}a[b]=s}for(y=l.s.r+i;y<=l.e.r;++y)if(!(S[y]||{}).hidden){var O=V9(e,l,y,d,n,a,v,c);(O.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(h[g++]=O.row)}return h.length=g,h}var e_=/"/g;function Y9(e,t,r,n,i,a,o,s){for(var l=!0,c=[],u="",f=Ln(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)u="";else if(h.v!=null){l=!1,u=""+(s.rawNumbers&&h.t=="n"?h.v:bo(h,null,s));for(var g=0,p=0;g!==u.length;++g)if((p=u.charCodeAt(g))===i||p===a||p===34||s.forceQuotes){u='"'+u.replace(e_,'""')+'"';break}u=="ID"&&(u='"ID"')}else h.f!=null&&!h.F?(l=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(e_,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(o)}function fb(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var i=Ir(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),c=new RegExp((a=="|"?"\\|":a)+"+$"),u="",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]=Hn(g));for(var p=0,v=i.s.r;v<=i.e.r;++v)(h[v]||{}).hidden||(u=Y9(e,i,v,f,o,l,a,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&r.push((p++?s:"")+u)));return delete n.dense,r.join("")}function pO(e,t){t||(t={}),t.FS=" ",t.RS=`
347
- `;var r=fb(e,t);return r}function K9(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var i=Ir(e["!ref"]),a="",o=[],s,l=[],c=Array.isArray(e);for(s=i.s.c;s<=i.e.c;++s)o[s]=Hn(s);for(var u=i.s.r;u<=i.e.r;++u)for(a=Ln(u),s=i.s.c;s<=i.e.c;++s)if(t=o[s]+a,r=c?(e[u]||[])[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 mO(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"?wn(n.origin):n.origin;o=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:o+t.length-1+i}};if(a["!ref"]){var f=Ir(a["!ref"]);u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),o==-1&&(o=f.e.r+1,u.e.r=o+t.length-1+i)}else o==-1&&(o=0,u.e.r=t.length-1+i);var d=n.header||[],h=0;t.forEach(function(p,v){In(p).forEach(function(y){(h=d.indexOf(y))==-1&&(d[h=d.length]=y);var b=p[y],_="z",A="",S=gr({c:s+h,r:o+v+i});c=mf(a,S),b&&typeof b=="object"&&!(b instanceof Date)?a[S]=b:(typeof b=="number"?_="n":typeof b=="boolean"?_="b":typeof b=="string"?_="s":b instanceof Date?(_="d",n.cellDates||(_="n",b=pi(b)),A=n.dateNF||Wr[14]):b===null&&n.nullError&&(_="e",b=0),c?(c.t=_,c.v=b,delete c.w,delete c.R,A&&(c.z=A)):a[S]=c={t:_,v:b},A&&(c.z=A))})}),u.e.c=Math.max(u.e.c,s+d.length-1);var g=Ln(o);if(i)for(h=0;h<d.length;++h)a[Hn(h+s)+g]={t:"s",v:d[h]};return a["!ref"]=an(u),a}function X9(e,t){return mO(null,e,t)}function mf(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=wn(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"?mf(e,gr(t)):mf(e,gr({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(nO(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 vO(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function rB(e,t,r){return vO(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:Ir(t),a=typeof t=="string"?t:an(t),o=i.s.r;o<=i.e.r;++o)for(var s=i.s.c;s<=i.e.c;++s){var l=mf(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 rc={encode_col:Hn,encode_row:Ln,encode_cell:gr,encode_range:an,decode_col:eb,decode_row:Q2,split_cell:xI,decode_cell:wn,decode_range:Li,format_cell:bo,sheet_add_aoa:mN,sheet_add_json:mO,sheet_add_dom:lO,aoa_to_sheet:Bc,json_to_sheet:X9,table_to_sheet:cO,table_to_book:N9,sheet_to_csv:fb,sheet_to_txt:pO,sheet_to_json:Q0,sheet_to_html:sO,sheet_to_formulae:K9,sheet_to_row_object_array:Q0,sheet_get_cell:mf,book_new:Z9,book_append_sheet:Q9,book_set_sheet_visibility:eB,cell_set_number_format:tB,cell_set_hyperlink:vO,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=rc.aoa_to_sheet(i),o=rc.book_new();rc.book_append_sheet(o,a,n),dO(o,`${e}.xlsx`)}function oB(e,t){const r=rc.book_new();t.forEach(({name:n,headers:i,rows:a})=>{const o=[i,...a],s=rc.aoa_to_sheet(o);rc.book_append_sheet(r,s,n)}),dO(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(),c=i?r.ctrlKey||r.metaKey:!0,u=o?r.shiftKey:!0;l&&c&&u&&(r.preventDefault(),s())})};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e])}function cB(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 c=JSON.parse(l);return Date.now()-c.savedAt>1440*60*1e3?(localStorage.removeItem(r),i(!1),null):c.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 G1="recently-viewed",uB=8;function fB(){const[e,t]=V.useState(()=>{try{return JSON.parse(localStorage.getItem(G1))||[]}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,uB);try{localStorage.setItem(G1,JSON.stringify(s))}catch{}return s})},[]),n=V.useCallback(()=>{t([]);try{localStorage.removeItem(G1)}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 c=r.indexOf(l);if(c!==-1)return c}}catch{}return 0},[i,a]=V.useState(n),o=V.useCallback(s=>{a(s);try{const l=new URL(window.location.href),c=r[s];s===0?l.searchParams.delete(t):c&&l.searchParams.set(t,c),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,c)=>{const u=l[o]??"",f=c[o]??"";return u<f?s==="asc"?-1:1:u>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 gO=[20,50,100,1e3],gx="table-page-sizes";function mB(e,t){if(!e)return t;try{const n=JSON.parse(localStorage.getItem(gx)||"{}")[e];if(n&&gO.includes(n))return n}catch{}return t}function vB(e,t){if(e)try{const r=JSON.parse(localStorage.getItem(gx)||"{}");r[e]=t,localStorage.setItem(gx,JSON.stringify(r))}catch{}}function gB(e=20,t){const[r,n]=V.useState(0),[i,a]=V.useState(()=>mB(t,e)),o=V.useCallback(c=>{a(c),n(0),vB(t,c)},[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:gO}}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}),c=(s==null?void 0:s.classes)||[],u=V.useMemo(()=>[{value:"",label:t},...c.map(g=>({value:g.name,label:g.display_name}))],[c,t]),f=l&&!!n,d=V.useMemo(()=>{if(!n)return[{value:"",label:r}];const g=c.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,c,r]);return{selectedClass:n,selectedSection:a,setSelectedClass:g=>{i(g),o("")},setSelectedSection:o,classOptions:u,sectionOptions:d,sectionsLoading:f,classes:c,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 sr({children:e,variant:t="primary",size:r="md",icon:n,loading:i,disabled:a,className:o,...s}){return x.jsxs("button",{disabled:a||i,className:kt("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?x.jsx(Ye.Loader2,{size:16,className:"animate-spin"}):n&&x.jsx(n,{size:16}),e]})}function wB({children:e,className:t,hover:r=!1,interactive:n=!1,...i}){return x.jsx("div",{className:kt("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 x.jsx("div",{className:kt("pb-4 mb-4 border-b border-slate-200",t),children:e})}function SB({children:e,className:t}){return x.jsx("div",{className:kt(t),children:e})}function AB({children:e,className:t}){return x.jsx("h3",{className:kt("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",Generated:"warning","Partially Paid":"warning",Rejected:"danger",Absent:"danger",Overdue:"danger",Cancelled:"danger",Inactive:"neutral",Unpaid:"danger"};function M0({children:e,variant:t,status:r,className:n}){const i=t||EB[r||e]||"neutral";return x.jsx("span",{className:kt("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 hb({items:e,className:t}){return x.jsx("nav",{className:kt("flex items-center gap-1 text-xs text-slate-500 mb-2",t),children:e.map((r,n)=>x.jsxs("span",{className:"flex items-center gap-1",children:[n>0&&x.jsx(Ye.ChevronRight,{size:12,className:"text-slate-400"}),r.href?x.jsx(ns.Link,{to:r.href,className:"hover:text-primary-600 transition-colors duration-150",children:r.label}):x.jsx("span",{className:"text-slate-800 font-medium",children:r.label})]},n))})}function yO({label:e,error:t,icon:r,className:n,...i}){return x.jsxs("div",{className:"space-y-1.5",children:[e&&x.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),x.jsxs("div",{className:"relative",children:[r&&x.jsx(r,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),x.jsx("input",{className:kt("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&&x.jsx("p",{className:"text-xs text-danger-500",children:t})]})}function xO({value:e,onChange:t,placeholder:r="Search...",className:n}){return x.jsx(yO,{icon:Ye.Search,value:e,onChange:i=>t(i.target.value),placeholder:r,className:n})}function PB({label:e,options:t=[],value:r,onChange:n,placeholder:i="Select...",error:a,className:o,...s}){return x.jsxs("div",{className:"space-y-1.5",children:[e&&x.jsx("label",{className:"text-sm font-medium text-slate-700",children:e}),x.jsxs("div",{className:"relative",children:[x.jsxs("select",{value:r,onChange:l=>n(l.target.value),className:kt("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:[x.jsx("option",{value:"",children:i}),t.map(l=>x.jsx("option",{value:l.value??l,children:l.label??l},l.value??l))]}),x.jsx(Ye.ChevronDown,{size:16,className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"})]}),a&&x.jsx("p",{className:"text-xs text-danger-500",children:a})]})}const NB={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 ih({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(u=>{var f,d,h;if(u.key==="Escape"&&(u.stopPropagation(),t()),u.key==="Enter"&&i&&o.current){const p=((d=(f=document.activeElement)==null?void 0:f.tagName)==null?void 0:d.toLowerCase())==="textarea",v=((h=document.activeElement)==null?void 0:h.getAttribute("contenteditable"))==="true";if(!p&&!v){const y=o.current.querySelectorAll('.flex.items-center.justify-end button, [class*="justify-end"] button'),b=y.length>0?y[y.length-1]:null;b&&!b.disabled&&(u.preventDefault(),b.click())}}if(u.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],v=g[g.length-1];u.shiftKey&&document.activeElement===p?(u.preventDefault(),v.focus()):!u.shiftKey&&document.activeElement===v&&(u.preventDefault(),p.focus())}},[t,i]),c=V.useRef(!1);return V.useEffect(()=>{if(!e){c.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||c.current))return c.current=!0,s.current=document.activeElement,setTimeout(()=>{var f;const u=(f=o.current)==null?void 0:f.querySelectorAll('input, textarea, select, [tabindex]:not([tabindex="-1"])');u!=null&&u.length&&u[0].focus()},50),()=>{var u;(u=s.current)==null||u.focus()}},[e]),e?x.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",role:"presentation",children:[x.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"}),x.jsxs("div",{ref:o,role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",className:kt("relative bg-white rounded-xl shadow-2xl w-full max-h-[90vh] flex flex-col animate-fade-in-up",NB[a]),children:[x.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-slate-200 shrink-0",children:[x.jsx("h2",{id:"modal-title",className:"text-lg font-semibold text-slate-900",children:r}),x.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:x.jsx(Ye.X,{size:16,className:"text-slate-500"})})]}),x.jsx("div",{className:"px-6 py-4 overflow-y-auto flex-1",children:n}),i&&x.jsx("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-slate-200 shrink-0",children:i})]})]}):null}function oo({value:e,onChange:t,options:r=[],onSearch:n,placeholder:i="Search...",labelKey:a="label",valueKey:o="value",renderOption:s,loading:l=!1,showSearch:c}){const[u,f]=V.useState(!1),[d,h]=V.useState(""),g=V.useRef(null),p=V.useRef(null),v=c===!0||c!==!1&&r.length>5,y=r.find(O=>O[o]===e);V.useEffect(()=>{const O=T=>{g.current&&!g.current.contains(T.target)&&f(!1)};return document.addEventListener("mousedown",O),()=>document.removeEventListener("mousedown",O)},[]);const b=O=>{h(O),n&&(clearTimeout(p.current),p.current=setTimeout(()=>n(O),300))},_=O=>{t(O[o]),f(!1),h("")},A=O=>{O.stopPropagation(),t(""),h("")},S=d&&!n?r.filter(O=>(O[a]||"").toLowerCase().includes(d.toLowerCase())):r;return x.jsxs("div",{ref:g,className:"relative",children:[x.jsxs("div",{role:"combobox","aria-expanded":u,"aria-haspopup":"listbox",tabIndex:0,onClick:()=>f(!u),onKeyDown:O=>{(O.key==="Enter"||O.key===" ")&&(O.preventDefault(),f(!u)),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:[x.jsx("span",{className:y?"text-slate-800":"text-slate-400",children:y?s?s(y):y[a]:i}),x.jsxs("div",{className:"flex items-center gap-1",children:[e&&x.jsx("button",{onClick:A,"aria-label":"Clear selection",className:"p-0.5 hover:bg-slate-100 rounded transition-colors duration-150",children:x.jsx(Ye.X,{size:12,className:"text-slate-400"})}),x.jsx(Ye.ChevronDown,{size:16,className:`text-slate-400 transition-transform duration-150 ${u?"rotate-180":""}`})]})]}),u&&x.jsxs("div",{className:"absolute z-[9999] 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:[v&&x.jsx("div",{className:"p-2 border-b border-slate-100",children:x.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:[x.jsx(Ye.Search,{size:14,className:"text-slate-400"}),x.jsx("input",{autoFocus:!0,value:d,onChange:O=>b(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"})]})}),x.jsxs("div",{className:"overflow-y-auto max-h-44",role:"listbox",children:[l&&x.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"Loading..."}),!l&&S.length===0&&x.jsx("div",{className:"px-3 py-2 text-xs text-slate-400",children:"No results found"}),S.map(O=>x.jsx("div",{role:"option","aria-selected":O[o]===e,onClick:()=>_(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 OB({columns:e=[],data:t=[],loading:r=!1,emptyMessage:n="No data found",emptyIcon:i,page:a,totalPages:o,totalCount:s,pageSize:l=20,onPageChange:c,onPageSizeChange:u,pageSizeOptions:f=[20,50,100,1e3],filters:d,search:h,onExport:g,exportLabel:p="Export",headerTitle:v,headerCount:y,headerExtra:b,sortConfig:_,onSort:A,onRowClick:S,rowClassName:O,className:T}){const k=c&&o>1,L=d&&d.length>0||h,B=v||g||b;return x.jsxs("div",{className:kt("bg-white border border-slate-200 rounded-xl transition-all duration-200 hover:shadow-soft-lg hover:border-slate-300",T),children:[B&&x.jsxs("div",{className:"flex items-center justify-between px-5 py-3.5 border-b border-slate-100",children:[x.jsx("div",{className:"flex items-center gap-2",children:v&&x.jsxs("h3",{className:"text-base font-semibold text-slate-900",children:[v,y!=null&&x.jsxs("span",{className:"ml-1.5 text-sm font-normal text-slate-400",children:["(",y,")"]})]})}),x.jsxs("div",{className:"flex items-center gap-2",children:[g&&x.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:[x.jsx(Ye.Download,{size:13}),p]}),b]})]}),L&&x.jsx("div",{className:"px-5 pt-4 pb-5 border-b border-slate-100",children:x.jsxs("div",{className:"bg-slate-50 border border-slate-200 rounded-xl px-4 py-4 space-y-3",children:[x.jsxs("div",{className:"flex flex-wrap items-center gap-4",children:[x.jsxs("div",{className:"flex items-center gap-1.5 text-slate-500",children:[x.jsx(Ye.Filter,{size:14}),x.jsx("span",{className:"text-xs font-semibold",children:"Filters"})]}),d&&d.map(C=>{var P;return x.jsx("div",{className:"min-w-[170px]",children:x.jsx(oo,{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&&x.jsx("div",{className:"w-full",children:x.jsx(xO,{value:h.value,onChange:h.onChange,placeholder:h.placeholder||"Search..."})})]})}),k&&x.jsx("div",{className:"border-b border-slate-100",children:x.jsx(CB,{page:a,totalPages:o,totalCount:s,pageSize:l,onPageChange:c,onPageSizeChange:u,pageSizeOptions:f})}),t.length===0&&!r?x.jsxs("div",{className:"text-center py-12 px-5",children:[i&&x.jsx("div",{className:"w-12 h-12 rounded-full bg-slate-100 flex items-center justify-center mx-auto mb-3",children:x.jsx(i,{size:20,className:"text-slate-400"})}),x.jsx("p",{className:"text-sm text-slate-400",children:n})]}):x.jsxs("div",{className:kt("overflow-x-auto relative",r&&"min-h-[200px]"),children:[r&&x.jsx("div",{className:"absolute inset-0 bg-white/60 backdrop-blur-[1px] z-10 flex items-center justify-center",children:x.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:[x.jsxs("div",{className:"relative w-10 h-10",children:[x.jsx("div",{className:"absolute inset-0 border-[3px] border-slate-100 rounded-full"}),x.jsx("div",{className:"absolute inset-0 border-[3px] border-primary-500 border-t-transparent rounded-full animate-spin"})]}),x.jsx("span",{className:"text-xs font-medium text-slate-500 tracking-wide",children:"Fetching data..."})]})}),x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{children:x.jsx("tr",{className:"bg-slate-50 border-b border-slate-200 text-left",children:e.map(C=>x.jsx("th",{className:kt("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&&A&&"cursor-pointer select-none hover:text-slate-700",C.width),onClick:C.sortable&&A?()=>A(C.key):void 0,children:x.jsxs("span",{className:"inline-flex items-center gap-1",children:[C.label,C.sortable&&A&&(_==null?void 0:_.key)===C.key&&(_.direction==="asc"?x.jsx(Ye.ChevronUp,{size:12,className:"text-slate-700"}):x.jsx(Ye.ChevronDown,{size:12,className:"text-slate-700"}))]})},C.key))})}),x.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((C,P)=>x.jsx("tr",{className:kt("hover:bg-primary-50/40 transition-colors duration-150",S&&"cursor-pointer",O&&O(C)),onClick:S?()=>S(C):void 0,children:e.map(M=>x.jsx("td",{className:kt("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),c=()=>{const u=[];if(t<=5)for(let f=0;f<t;f++)u.push(f);else{u.push(0),e>2&&u.push("...");const f=Math.max(1,e-1),d=Math.min(t-2,e+1);for(let h=f;h<=d;h++)u.push(h);e<t-3&&u.push("..."),u.push(t-1)}return u};return x.jsxs("div",{className:"flex items-center justify-between px-5 py-3 border-t border-slate-100",children:[x.jsxs("div",{className:"flex items-center gap-5",children:[x.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?x.jsxs(x.Fragment,{children:[x.jsxs("span",{className:"text-slate-600 font-semibold",children:[s,"–",l]})," of ",x.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):x.jsxs(x.Fragment,{children:["Page ",x.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",x.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),a&&x.jsx("div",{className:"flex items-center gap-1 bg-slate-50 rounded-lg border border-slate-200 p-0.5",children:o.map(u=>x.jsx("button",{onClick:()=>a(u),className:kt("px-2.5 py-1 rounded-md text-[11px] font-semibold transition-all duration-150",u===n?"bg-white text-slate-900 shadow-sm border border-slate-200":"text-slate-400 hover:text-slate-600"),children:u},u))})]}),x.jsxs("div",{className:"flex items-center",children:[x.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:x.jsx(Ye.ChevronLeft,{size:14,className:"text-slate-500"})}),c().map((u,f)=>u==="..."?x.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}`):x.jsx("button",{onClick:()=>i(u),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 ${u===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:u+1},u)),x.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:x.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=ns.useLocation(),[l,c]=V.useState(!1);e.findIndex(v=>s.pathname.startsWith(v.path)),V.useEffect(()=>{const v=s.pathname,y=e.find(b=>v.startsWith(b.path));if(y)try{const b=JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]"),_=[y.path,...b.filter(A=>A!==y.path)].slice(0,5);sessionStorage.setItem("sidebar-recent",JSON.stringify(_))}catch{}},[s.pathname,e]);const[u,f]=V.useState(!1);V.useEffect(()=>{const v=setTimeout(()=>f(!0),50);return()=>clearTimeout(v)},[]);const d=e.some(v=>v.group),h=d?e.reduce((v,y)=>{const b=y.group||"Other";return v[b]||(v[b]=[]),v[b].push(y),v},{}):null,g=(v,y)=>{const b=v.icon;return x.jsxs(ns.NavLink,{to:v.path,style:{animationDelay:`${y*50}ms`,animationFillMode:"forwards"},className:({isActive:_})=>kt("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",_?"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:[b&&x.jsx(b,{size:20,className:kt("flex-shrink-0 transition-all duration-200",s.pathname.startsWith(v.path)&&"drop-shadow-[0_0_6px_rgba(255,255,255,0.5)]")}),x.jsx("span",{className:kt("truncate transition-all duration-200 overflow-hidden whitespace-nowrap",n?"w-0 opacity-0":"w-auto opacity-100"),style:{transitionDelay:n?"0ms":"100ms"},children:v.label}),n&&x.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:v.label})]},v.path)},p=()=>{if(d&&h){let v=0;return Object.entries(h).map(([y,b])=>x.jsxs("div",{children:[!n&&x.jsx("p",{className:"text-[10px] uppercase tracking-wider text-slate-500 px-3 pt-4 pb-1 font-semibold",children:y}),b.map(_=>{const A=v;return v++,g(_,A)})]},y))}return e.map((v,y)=>g(v,y))};return x.jsxs(x.Fragment,{children:[x.jsxs("aside",{className:kt("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:[x.jsxs("div",{className:"flex items-center justify-between px-4 h-[72px]",children:[!n&&x.jsxs("div",{className:"flex flex-col",children:[x.jsx("span",{className:"text-lg font-bold tracking-tight",children:t}),x.jsx("span",{className:"text-[10px] text-slate-400 font-medium tracking-wide uppercase",children:"Admin Portal"})]}),x.jsx("button",{onClick:i,className:"p-1.5 rounded-lg hover:bg-white/10 transition-all duration-200",children:x.jsx("span",{className:kt("block transition-transform duration-200",n&&"rotate-180"),children:n?x.jsx(Ye.PanelLeft,{size:18}):x.jsx(Ye.PanelLeftClose,{size:18})})})]}),x.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),r&&x.jsx("div",{className:kt("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:x.jsxs("div",{className:"flex items-center gap-3",children:[x.jsxs("div",{className:"relative flex-shrink-0",children:[x.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()}),x.jsx("span",{className:"absolute bottom-0 right-0 w-3 h-3 bg-emerald-400 border-2 border-slate-900 rounded-full"})]}),!n&&x.jsxs("div",{className:"overflow-hidden",children:[x.jsx("p",{className:"text-sm font-semibold truncate",children:r.name}),x.jsx("p",{className:"text-xs text-slate-400 truncate",children:r.email}),r.role&&x.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})]})]})}),x.jsx("div",{className:"mx-4 h-px bg-gradient-to-r from-transparent via-slate-600/50 to-transparent"}),x.jsx("nav",{className:"relative flex-1 overflow-y-auto py-4 px-2 space-y-1.5",children:p()}),a&&x.jsx("div",{className:"px-2 py-4 mt-2 border-t border-slate-700/30",children:x.jsxs("button",{onClick:()=>c(!0),className:kt("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:[x.jsx(Ye.LogOut,{size:20}),!n&&x.jsx("span",{children:"Logout"}),n&&x.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"})]})}),l&&x.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50",onClick:()=>c(!1),children:x.jsx("div",{className:"bg-white rounded-xl p-6 w-80 shadow-2xl",onClick:v=>v.stopPropagation(),children:x.jsxs("div",{className:"flex flex-col items-center text-center",children:[x.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:x.jsx(Ye.LogOut,{size:22,className:"text-red-600"})}),x.jsx("h3",{className:"text-lg font-semibold text-slate-900 mb-1",children:"Confirm Logout"}),x.jsx("p",{className:"text-sm text-slate-500 mb-5",children:"Are you sure you want to logout?"}),x.jsxs("div",{className:"flex gap-3 w-full",children:[x.jsx("button",{onClick:()=>c(!1),className:"flex-1 px-4 py-2 rounded-lg border border-slate-200 text-sm font-medium text-slate-700 hover:bg-slate-50 transition-colors",children:"Cancel"}),x.jsx("button",{onClick:()=>{c(!1),a()},className:"flex-1 px-4 py-2 rounded-lg bg-red-600 text-sm font-medium text-white hover:bg-red-700 transition-colors",children:"Logout"})]})]})})})]}),x.jsx(kB,{items:e,onLogout:a})]})}function kB({items:e,onLogout:t}){const[r,n]=V.useState(!1),[i,a]=V.useState(!1),o=e.slice(0,4),s=e.slice(4);return x.jsxs(x.Fragment,{children:[x.jsx("nav",{className:"fixed bottom-0 left-0 right-0 z-40 bg-white border-t border-slate-200 md:hidden",children:x.jsxs("div",{className:"flex items-center justify-around px-2 py-1.5",children:[o.map(l=>{const c=l.icon;return x.jsxs(ns.NavLink,{to:l.path,className:({isActive:u})=>kt("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]",u?"text-primary-600 bg-primary-50":"text-slate-500 hover:text-slate-700"),children:[c&&x.jsx(c,{size:20}),x.jsx("span",{className:"truncate",children:l.label.split(" ")[0]})]},l.path)}),s.length>0&&x.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:[x.jsx(Ye.MoreHorizontal,{size:20}),x.jsx("span",{children:"More"})]})]})}),r&&x.jsxs("div",{className:"fixed inset-0 z-50 md:hidden",onClick:()=>n(!1),children:[x.jsx("div",{className:"fixed inset-0 bg-black/40"}),x.jsxs("div",{className:"fixed bottom-0 left-0 right-0 bg-white rounded-t-2xl p-4 animate-fade-in-up",children:[x.jsxs("div",{className:"flex items-center justify-between mb-4",children:[x.jsx("h3",{className:"text-sm font-semibold text-slate-900",children:"More Options"}),x.jsx("button",{onClick:()=>n(!1),className:"p-1.5 rounded-lg hover:bg-slate-100 transition-colors",children:x.jsx(Ye.X,{size:16,className:"text-slate-500"})})]}),x.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[s.map(l=>{const c=l.icon;return x.jsxs(ns.NavLink,{to:l.path,onClick:()=>n(!1),className:({isActive:u})=>kt("flex flex-col items-center gap-1.5 p-3 rounded-xl text-[11px] font-medium transition-all duration-150",u?"text-primary-600 bg-primary-50":"text-slate-600 hover:bg-slate-50"),children:[c&&x.jsx(c,{size:22}),x.jsx("span",{className:"text-center leading-tight",children:l.label})]},l.path)}),t&&x.jsxs("button",{onClick:()=>{n(!1),a(!0)},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:[x.jsx(Ye.LogOut,{size:22}),x.jsx("span",{children:"Logout"})]})]})]})]}),i&&x.jsx("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-black/50",onClick:()=>a(!1),children:x.jsx("div",{className:"bg-white rounded-xl p-6 w-80 shadow-2xl",onClick:l=>l.stopPropagation(),children:x.jsxs("div",{className:"flex flex-col items-center text-center",children:[x.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:x.jsx(Ye.LogOut,{size:22,className:"text-red-600"})}),x.jsx("h3",{className:"text-lg font-semibold text-slate-900 mb-1",children:"Confirm Logout"}),x.jsx("p",{className:"text-sm text-slate-500 mb-5",children:"Are you sure you want to logout?"}),x.jsxs("div",{className:"flex gap-3 w-full",children:[x.jsx("button",{onClick:()=>a(!1),className:"flex-1 px-4 py-2 rounded-lg border border-slate-200 text-sm font-medium text-slate-700 hover:bg-slate-50 transition-colors",children:"Cancel"}),x.jsx("button",{onClick:()=>{a(!1),t()},className:"flex-1 px-4 py-2 rounded-lg bg-red-600 text-sm font-medium text-white hover:bg-red-700 transition-colors",children:"Logout"})]})]})})})]})}function LB({title:e,subtitle:t,school:r,user:n,notificationCount:i=0,onLogout:a,onProfile:o,onSettings:s,onChangePassword:l,navItems:c=[]}){const[u,f]=V.useState(!1),d=V.useRef(null),h=ns.useNavigate(),g=(()=>{try{return JSON.parse(sessionStorage.getItem("sidebar-recent")||"[]").slice(0,5)}catch{return[]}})();return V.useEffect(()=>{const p=v=>{d.current&&!d.current.contains(v.target)&&f(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[]),x.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:[x.jsx("div",{className:"flex-1"}),x.jsxs("div",{className:"absolute left-1/2 -translate-x-1/2 flex items-center gap-3",children:[(r==null?void 0:r.logo)&&x.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?x.jsx("h1",{className:"text-lg font-bold text-slate-900",children:r.name}):!r&&e?x.jsxs("div",{children:[x.jsx("h1",{className:"text-lg font-bold text-slate-900",children:e}),t&&x.jsx("p",{className:"text-xs text-slate-500",children:t})]}):null]}),x.jsxs("div",{className:"flex items-center gap-3",children:[x.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:[x.jsx(Ye.Search,{size:14}),x.jsx("span",{children:"Search..."}),x.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"})]}),x.jsxs("button",{className:"relative p-2 rounded-lg hover:bg-slate-100 transition-colors duration-150",children:[x.jsx(Ye.Bell,{size:20,className:"text-slate-600"}),i>0&&x.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&&x.jsxs("div",{ref:d,className:"relative",children:[x.jsxs("button",{onClick:()=>f(!u),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:[x.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()}),x.jsxs("div",{className:"hidden sm:block text-left",children:[x.jsx("p",{className:"text-xs font-medium text-slate-900",children:n.name}),x.jsx("p",{className:"text-[10px] text-slate-500 capitalize",children:n.role})]}),x.jsx(Ye.ChevronDown,{size:14,className:`text-slate-400 transition-transform duration-150 ${u?"rotate-180":""}`})]}),u&&x.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:[x.jsxs("div",{className:"px-4 py-3 border-b border-slate-100 bg-slate-50/50",children:[x.jsx("p",{className:"text-sm font-semibold text-slate-900",children:n.name}),x.jsx("p",{className:"text-xs text-slate-500 capitalize",children:n.role})]}),x.jsxs("div",{className:"py-1.5",children:[o&&x.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:[x.jsx(Ye.User,{size:16,className:"text-slate-400"}),"My Profile"]}),s&&x.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:[x.jsx(Ye.Settings,{size:16,className:"text-slate-400"}),"Settings"]}),l&&x.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:[x.jsx(Ye.KeyRound,{size:16,className:"text-slate-400"}),"Change Password"]}),g.length>0&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"border-t border-slate-100 my-1"}),x.jsxs("div",{className:"px-4 py-2",children:[x.jsxs("p",{className:"text-[10px] uppercase tracking-wider text-slate-400 font-semibold flex items-center gap-1 mb-1.5",children:[x.jsx(Ye.Clock,{size:10})," Recents"]}),g.map(p=>{const v=c.find(b=>b.path===p);if(!v)return null;const y=v.icon;return x.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&&x.jsx(y,{size:14,className:"text-slate-400"}),v.label]},p)})]})]}),a&&x.jsxs(x.Fragment,{children:[x.jsx("div",{className:"border-t border-slate-100 my-1"}),x.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:[x.jsx(Ye.LogOut,{size:16,className:"text-red-400"}),"Logout"]})]})]})]})]})]})]})}function Zn({className:e}){return x.jsx("div",{className:kt("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 x.jsxs("div",{className:"bg-white rounded-xl shadow-soft border border-slate-100 p-6 space-y-3",children:[x.jsx(Zn,{className:"h-4 w-1/3"}),x.jsx(Zn,{className:"h-8 w-1/2"}),x.jsx(Zn,{className:"h-3 w-2/3"})]})}function bO(){return x.jsxs("div",{className:"space-y-6",children:[x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((e,t)=>x.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5 flex items-center gap-4",children:[x.jsx(Zn,{className:"w-11 h-11 rounded-xl"}),x.jsxs("div",{className:"space-y-2 flex-1",children:[x.jsx(Zn,{className:"h-3 w-2/3"}),x.jsx(Zn,{className:"h-6 w-1/2"})]})]},t))}),x.jsxs("div",{className:"bg-white rounded-xl border border-slate-100 p-5",children:[x.jsx(Zn,{className:"h-4 w-1/4 mb-4"}),x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3",children:Array.from({length:4}).map((e,t)=>x.jsx(Zn,{className:"h-20 rounded-xl"},t))})]}),x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-4",children:[x.jsxs("div",{className:"md:col-span-7 bg-white rounded-xl border border-slate-100 p-5",children:[x.jsx(Zn,{className:"h-4 w-1/4 mb-4"}),x.jsx(Zn,{className:"h-48 w-full"})]}),x.jsxs("div",{className:"md:col-span-5 bg-white rounded-xl border border-slate-100 p-5",children:[x.jsx(Zn,{className:"h-4 w-1/3 mb-4"}),x.jsx(Zn,{className:"h-48 w-full"})]})]})]})}function FB({rows:e=5,cols:t=4}){return x.jsxs("div",{className:"rounded-xl border border-slate-200 overflow-hidden",children:[x.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)=>x.jsx(Zn,{className:"h-3 flex-1"},n))}),Array.from({length:e}).map((r,n)=>x.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)=>x.jsx(Zn,{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)?x.jsx(ns.Navigate,{to:n,replace:!0}):e:x.jsx(ns.Navigate,{to:n,replace:!0})}function MB({activities:e=[],className:t}){return e.length===0?null:x.jsx("div",{className:kt("space-y-1",t),children:e.map((r,n)=>x.jsxs("div",{className:"flex items-start gap-3 py-3 border-b border-surface-50 last:border-0",children:[x.jsx("div",{className:kt("w-8 h-8 rounded flex items-center justify-center flex-shrink-0",r.bgColor||"bg-info-100"),children:r.icon||x.jsx(Ye.Activity,{className:"w-3.5 h-3.5 text-info-600"})}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"text-sm font-medium text-surface-800 truncate",children:r.title}),x.jsx("p",{className:"text-xs text-surface-500",children:r.description})]}),x.jsxs("div",{className:"text-right flex-shrink-0",children:[x.jsx("p",{className:"text-2xs text-surface-400",children:r.time}),r.tag&&x.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 wO=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 c=()=>{o(!0),setTimeout(()=>n(e),300)};return x.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:[x.jsx("div",{className:`w-8 h-8 rounded-lg ${BB[t]} flex items-center justify-center flex-shrink-0`,children:x.jsx(i,{size:16})}),x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"text-sm font-medium text-slate-900",children:r}),x.jsx("div",{className:"w-full h-0.5 bg-slate-100 rounded-full mt-2 overflow-hidden",children:x.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}%`}})})]}),x.jsx("button",{onClick:c,className:"shrink-0 p-1 rounded-lg hover:bg-slate-100 transition-colors duration-150 mt-0.5",children:x.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,c]=V.useState(!1),u=V.useRef(!1);V.useEffect(()=>{const d=setInterval(()=>{s(h=>h<=100?(clearInterval(d),u.current||(r(),c(!0),setTimeout(()=>a(e),300)),0):h-100)},100);return()=>clearInterval(d)},[e,r,a,i]);const f=()=>{u.current=!0,n(),c(!0),setTimeout(()=>a(e),300)};return x.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:[x.jsxs("div",{className:"flex-1 min-w-0",children:[x.jsx("p",{className:"text-sm font-medium",children:t}),x.jsx("div",{className:"w-full h-1 bg-slate-700 rounded-full mt-2 overflow-hidden",children:x.jsx("div",{className:"h-full bg-primary-400 rounded-full transition-all duration-100",style:{width:`${o/i*100}%`}})})]}),x.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((u,f="info")=>{const d=Date.now()+Math.random();r(h=>[...h,{id:d,message:u,type:f}])},[]),o=V.useCallback(u=>{r(f=>f.filter(d=>d.id!==u))},[]),s=V.useCallback((u,f,d,h=5e3)=>{const g=Date.now()+Math.random();i(p=>[...p,{id:g,message:u,onConfirm:f,onUndo:d,timeout:h}])},[]),l=V.useCallback(u=>{i(f=>f.filter(d=>d.id!==u))},[]),c=V.useMemo(()=>({success:u=>a(u,"success"),error:u=>a(u,"error"),warning:u=>a(u,"warning"),info:u=>a(u,"info"),undoable:(u,f,d,h)=>s(u,f,d,h)}),[a,s]);return x.jsxs(wO.Provider,{value:c,children:[e,x.jsxs("div",{className:"fixed top-4 right-4 z-[100] flex flex-col gap-3",children:[t.map(u=>x.jsx(qB,{...u,onRemove:o},u.id)),n.map(u=>x.jsx(UB,{...u,onRemove:l},u.id))]})]})}function WB(){const e=V.useContext(wO);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 x.jsxs(ih,{open:e,onClose:t,title:n,size:"sm",children:[x.jsxs("div",{className:"flex flex-col items-center text-center py-2",children:[x.jsx("div",{className:"w-12 h-12 rounded-full bg-red-100 flex items-center justify-center mb-3",children:x.jsx(Ye.AlertTriangle,{className:"w-6 h-6 text-red-600"})}),x.jsx("p",{className:"text-sm text-slate-600",children:i})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[x.jsx(sr,{variant:"ghost",onClick:t,children:"Cancel"}),x.jsx(sr,{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 x.jsx("div",{className:kt("flex gap-1 bg-slate-100/80 rounded-xl p-1.5 max-w-full 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 x.jsxs("button",{onClick:()=>r(a),className:kt("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&&x.jsx(l,{size:15,className:o?"text-primary-600":"text-slate-400"}),s,typeof i=="object"&&i.count!=null&&x.jsx("span",{className:kt("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 x.jsxs("label",{className:kt("flex items-center gap-3 cursor-pointer group",i&&"opacity-50 cursor-not-allowed",a),children:[x.jsxs("div",{className:"relative",children:[x.jsx("input",{type:"checkbox",checked:e,onChange:t,disabled:i,className:"sr-only peer"}),x.jsx("div",{className:kt("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&&x.jsx(Ye.Check,{size:13,className:"text-white",strokeWidth:3})})]}),(r||n)&&x.jsxs("div",{children:[r&&x.jsx("span",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900 transition-colors",children:r}),n&&x.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:n})]})]})}function _O({children:e,className:t}){return x.jsxs("div",{className:kt("bg-white border border-slate-200 rounded-xl px-4 py-3 mb-6 flex flex-wrap items-center gap-3",t),children:[x.jsxs("div",{className:"flex items-center gap-1.5 text-slate-400 mr-1",children:[x.jsx(Ye.Filter,{size:15}),x.jsx("span",{className:"text-xs font-medium hidden sm:inline",children:"Filters"})]}),e]})}_O.Item=function({children:t,className:r}){return x.jsx("div",{className:kt("min-w-[160px]",r),children:t})};function YB({value:e,onChange:t,label:r,placeholder:n,min:i,max:a,className:o,disabled:s}){const l=V.useRef(null),c=()=>{if(l.current)if(l.current.showPicker)try{l.current.showPicker()}catch{l.current.focus()}else l.current.focus()};return x.jsxs("div",{className:o,children:[r&&x.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:r}),x.jsxs("div",{className:"relative group",onClick:c,children:[x.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 z-10",children:x.jsx(Ye.Calendar,{size:15,className:"text-primary-500 transition-transform duration-200 group-hover:scale-110"})}),x.jsx("input",{ref:l,type:"date",value:e||"",onChange:u=>t(u.target.value),min:i,max:a,disabled:s,placeholder:n||"DD/MM/YYYY",className:kt("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 cursor-pointer","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")})]})]})}function KB({value:e,onChange:t,label:r,className:n,disabled:i}){return x.jsxs("div",{className:n,children:[r&&x.jsx("label",{className:"text-xs font-medium text-slate-500 mb-1.5 block",children:r}),x.jsxs("div",{className:"relative",children:[x.jsx(Ye.Clock,{size:15,className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"}),x.jsx("input",{type:"time",value:e||"",onChange:a=>t(a.target.value),disabled:i,className:kt("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?x.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] p-8",children:[x.jsx("div",{className:"w-16 h-16 rounded-full bg-red-50 flex items-center justify-center mb-4",children:x.jsx("svg",{className:"w-8 h-8 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:x.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"})})}),x.jsx("h2",{className:"text-lg font-bold text-slate-900 mb-2",children:"Something went wrong"}),x.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."}),x.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:x.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?x.jsxs(x.Fragment,{children:[x.jsx(Ye.Wifi,{size:16,className:"mr-2"})," Back online"]}):x.jsxs(x.Fragment,{children:[x.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 x.jsxs("button",{onClick:()=>n(t),className:kt("flex items-center gap-1 text-xs font-semibold text-slate-500 uppercase tracking-wider hover:text-slate-700 transition-colors",i),children:[e,x.jsxs("span",{className:"text-slate-300",children:[!a&&x.jsx(Ye.ChevronsUpDown,{size:12}),o==="asc"&&x.jsx(Ye.ChevronUp,{size:12,className:"text-primary-500"}),o==="desc"&&x.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),c=()=>{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)},u=()=>{clearTimeout(l.current),l.current=setTimeout(()=>i(!1),200)};return x.jsxs(x.Fragment,{children:[x.jsx("span",{ref:s,onMouseEnter:c,onMouseLeave:u,className:kt("inline-block",r),children:e}),n&&x.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:u,children:t})]})}const r_={noData:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("rect",{x:"40",y:"30",width:"120",height:"90",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("rect",{x:"55",y:"50",width:"90",height:"8",rx:"4",fill:"#e2e8f0"}),x.jsx("rect",{x:"55",y:"65",width:"70",height:"8",rx:"4",fill:"#e2e8f0"}),x.jsx("rect",{x:"55",y:"80",width:"50",height:"8",rx:"4",fill:"#e2e8f0"}),x.jsx("circle",{cx:"100",cy:"105",r:"4",fill:"#cbd5e1"}),x.jsx("path",{d:"M85 100 L100 112 L115 100",stroke:"#cbd5e1",strokeWidth:"2",strokeLinecap:"round"})]}),noStudents:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("circle",{cx:"100",cy:"55",r:"25",fill:"#e0f2fe",stroke:"#bae6fd",strokeWidth:"2"}),x.jsx("circle",{cx:"100",cy:"48",r:"10",fill:"#7dd3fc"}),x.jsx("path",{d:"M80 72 Q100 85 120 72",stroke:"#7dd3fc",strokeWidth:"3",fill:"none"}),x.jsx("rect",{x:"60",y:"90",width:"80",height:"40",rx:"6",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("line",{x1:"75",y1:"102",x2:"125",y2:"102",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("line",{x1:"75",y1:"112",x2:"110",y2:"112",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("line",{x1:"75",y1:"122",x2:"95",y2:"122",stroke:"#e2e8f0",strokeWidth:"2"})]}),noResults:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("circle",{cx:"85",cy:"70",r:"30",stroke:"#e2e8f0",strokeWidth:"3",fill:"#f8fafc"}),x.jsx("line",{x1:"107",y1:"92",x2:"130",y2:"115",stroke:"#cbd5e1",strokeWidth:"4",strokeLinecap:"round"}),x.jsx("path",{d:"M75 65 L80 75 L95 60",stroke:"#94a3b8",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none"})]}),noSchedule:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("rect",{x:"50",y:"30",width:"100",height:"100",rx:"8",fill:"#f1f5f9",stroke:"#e2e8f0",strokeWidth:"2"}),x.jsx("rect",{x:"50",y:"30",width:"100",height:"25",rx:"8",fill:"#e0f2fe"}),x.jsx("circle",{cx:"70",cy:"70",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"100",cy:"70",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"130",cy:"70",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"70",cy:"90",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"100",cy:"90",r:"4",fill:"#0ea5e9"}),x.jsx("circle",{cx:"130",cy:"90",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"70",cy:"110",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"100",cy:"110",r:"4",fill:"#cbd5e1"}),x.jsx("circle",{cx:"130",cy:"110",r:"4",fill:"#cbd5e1"})]}),success:x.jsxs("svg",{viewBox:"0 0 200 150",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"w-40 h-32",children:[x.jsx("circle",{cx:"100",cy:"75",r:"40",fill:"#dcfce7",stroke:"#86efac",strokeWidth:"2"}),x.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 x.jsxs("div",{className:kt("flex flex-col items-center justify-center py-12 text-center",i),children:[r_[e]||r_.noData,t&&x.jsx("p",{className:"text-base font-semibold text-slate-700 mt-4",children:t}),r&&x.jsx("p",{className:"text-sm text-slate-400 mt-1 max-w-sm",children:r}),n&&x.jsx("div",{className:"mt-4",children:n})]})}function t$({title:e,children:t,className:r}){return x.jsxs("div",{className:kt("bg-white border border-slate-200 rounded-xl p-5 transition-all duration-200 hover:shadow-sm",r),children:[x.jsxs("h3",{className:"text-sm font-bold text-slate-900 mb-4 flex items-center gap-2",children:[x.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary-500"}),e]}),t]})}function r$({tokenExpiresAt:e,onLogout:t,onRefresh:r,warningMinutes:n=5}){const[i,a]=V.useState(!1),[o,s]=V.useState(0),[l,c]=V.useState(!1),u=V.useRef(null);V.useEffect(()=>{if(!e)return;const g=()=>{const p=Date.now(),y=(typeof e=="number"?e:new Date(e).getTime())-p,b=n*60*1e3;y<=0?(a(!1),t==null||t()):y<=b?(a(!0),s(Math.ceil(y/1e3))):a(!1)};return g(),u.current=setInterval(g,1e3),()=>clearInterval(u.current)},[e,n,t]);const f=async()=>{c(!0);try{r?await r():window.location.reload(),a(!1)}catch{t==null||t()}finally{c(!1)}};if(!i)return null;const d=Math.floor(o/60),h=o%60;return x.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:x.jsxs("div",{className:"flex items-start gap-3",children:[x.jsx("div",{className:"w-8 h-8 rounded-full bg-amber-100 flex items-center justify-center flex-shrink-0",children:x.jsx(Ye.Clock,{size:16,className:"text-amber-600"})}),x.jsxs("div",{className:"flex-1",children:[x.jsx("p",{className:"text-sm font-semibold text-amber-800",children:"Session Expiring Soon"}),x.jsxs("p",{className:"text-xs text-amber-600 mt-0.5",children:["Your session will expire in ",d,":",h.toString().padStart(2,"0")]}),x.jsxs("div",{className:"flex gap-2 mt-2",children:[x.jsx("button",{onClick:f,disabled:l,className:"px-3 py-1.5 text-xs font-medium bg-amber-500 text-white rounded-lg hover:bg-amber-600 transition-colors disabled:opacity-50",children:l?"Refreshing...":"Stay Logged In"}),x.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 x0(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(c=>!c.is_break);const s=[...e].sort((c,u)=>(c.start_time||"").localeCompare(u.start_time||"")),l=(c,u)=>{const f=t[u];return f&&f[c]||null};return s.length===0?x.jsx("div",{className:"bg-white border border-slate-200 rounded-xl p-8 text-center text-slate-400",children:"No timetable configured yet"}):x.jsx("div",{className:"bg-white border border-slate-200 rounded-xl overflow-auto shadow-soft",children:x.jsxs("div",{className:"grid min-w-[900px]",style:{gridTemplateColumns:`220px repeat(${r.length}, 1fr)`},children:[x.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:x.jsx("p",{className:"text-xs font-bold text-slate-500 uppercase tracking-wider",children:"Time / Day"})}),r.map(c=>{const u=new Date().toLocaleDateString("en-US",{weekday:"long"})===c;return x.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:x.jsx("div",{className:`px-4 py-2 rounded-lg text-center ${u?"bg-primary-500 shadow-glow-primary":"bg-white shadow-sm border border-slate-100"}`,children:x.jsx("p",{className:`text-sm font-semibold ${u?"text-white":"text-slate-800"}`,children:c})})},c)}),s.map((c,u)=>{const f=s.filter((d,h)=>h<u&&!d.is_break).length;return c.is_break?x.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:[x.jsxs("span",{className:"text-sm font-bold text-red-500",children:["☕ ",c.name||"Break"]}),x.jsxs("span",{className:"text-sm text-red-400",children:["(",x0(c.start_time)," – ",x0(c.end_time),")"]})]},c.id||`break-${u}`):x.jsxs(V.Fragment,{children:[x.jsxs("div",{className:"p-4 border-b border-slate-100 bg-slate-50/50 flex items-center gap-3",children:[x.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}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-bold text-slate-900",children:c.name||`Period ${f+1}`}),x.jsxs("p",{className:"text-xs font-medium text-slate-600",children:[x0(c.start_time)," – ",x0(c.end_time)]})]})]}),r.map(d=>{const h=l(f,d);return x.jsx("div",{className:"p-1.5 border-b border-l border-slate-100 flex items-center justify-center min-h-[90px]",children:h?x.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:[x.jsx("p",{className:"text-sm font-bold text-slate-900",children:h.subject||""}),x.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"&&x.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?x.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:x.jsx("span",{className:"text-xs text-slate-400 font-medium",children:"+ Add"})}):x.jsx("div",{className:"w-full h-full min-h-[70px] flex items-center justify-center",children:x.jsx("span",{className:"text-xs text-slate-300",children:"—"})})},`${c.id||u}-${d}`)})]},c.id||`period-${u}`)})]})})}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 c=0;c<t;c++)l.push(c);else{l.push(0),e>2&&l.push("...");const c=Math.max(1,e-1),u=Math.min(t-2,e+1);for(let f=c;f<=u;f++)l.push(f);e<t-3&&l.push("..."),l.push(t-1)}return l};return x.jsxs("div",{className:"flex items-center justify-between py-2.5",children:[x.jsx("p",{className:"text-[11px] text-slate-400 font-medium tracking-wide",children:r!=null?x.jsxs(x.Fragment,{children:[x.jsxs("span",{className:"text-slate-600 font-semibold",children:[a,"–",o]})," of ",x.jsx("span",{className:"text-slate-600 font-semibold",children:r})," results"]}):x.jsxs(x.Fragment,{children:["Page ",x.jsx("span",{className:"text-slate-600 font-semibold",children:e+1})," of ",x.jsx("span",{className:"text-slate-600 font-semibold",children:t})]})}),x.jsxs("div",{className:"flex items-center",children:[x.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:x.jsx(Ye.ChevronLeft,{size:14,className:"text-slate-500"})}),s().map((l,c)=>l==="..."?x.jsx("span",{className:"w-8 h-8 border-y border-slate-200 flex items-center justify-center text-[10px] text-slate-300",children:"•••"},`e-${c}`):x.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)),x.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:x.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:c=null,supportEmail:u="support@theinquisitive.in",usernameLabel:f="Email Address",usernameType:d="email",usernameIcon:h=Ye.Mail,usernameField:g="email",usernameValidation:p}){const[v,y]=V.useState(""),[b,_]=V.useState(""),[A,S]=V.useState(!1),[O,T]=V.useState(""),[k,L]=V.useState(""),C=p||(M=>M?d==="email"&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(M)?"Invalid email":null:`${f} is required`),P=M=>{M.preventDefault(),T(""),L("");const U=C(v);if(U){T(U);return}if(!b){L("Password is required");return}s({[g]:v,password:b})};return x.jsxs("div",{className:`min-h-screen flex items-center justify-center bg-gradient-to-br ${n} ${i} relative overflow-hidden`,children:[x.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[x.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 rounded-full bg-white/5"}),x.jsx("div",{className:"absolute -bottom-32 -left-32 w-64 h-64 rounded-full bg-white/5"})]}),x.jsxs("div",{className:"relative bg-white rounded-2xl shadow-2xl p-8 w-full max-w-[420px] text-center mx-4",children:[r&&x.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:x.jsx(r,{className:`w-7 h-7 text-${a}-600`})}),x.jsx("h1",{className:"text-xl font-bold text-slate-800 mb-0.5",children:e}),x.jsx("p",{className:"text-sm text-slate-400 mb-6",children:t}),c&&x.jsx("div",{className:"bg-red-50 border border-red-200 text-red-700 text-sm rounded-lg p-3 mb-4 text-left",children:c}),x.jsxs("form",{onSubmit:P,className:"space-y-4",children:[x.jsxs("div",{children:[x.jsxs("div",{className:"relative",children:[x.jsx(h,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),x.jsx("input",{type:d,placeholder:f,value:v,onChange:M=>{y(M.target.value),T("")},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 ${O?"border-red-400":"border-slate-300"}`})]}),O&&x.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:O})]}),x.jsxs("div",{children:[x.jsxs("div",{className:"relative",children:[x.jsx(Ye.Lock,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),x.jsx("input",{type:A?"text":"password",placeholder:"Password",value:b,onChange:M=>{_(M.target.value),L("")},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 ${k?"border-red-400":"border-slate-300"}`}),x.jsx("button",{type:"button",onClick:()=>S(!A),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600",children:A?x.jsx(Ye.EyeOff,{className:"w-4 h-4"}):x.jsx(Ye.Eye,{className:"w-4 h-4"})})]}),k&&x.jsx("p",{className:"text-xs text-red-500 mt-1 text-left",children:k})]}),x.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"})]}),x.jsx("div",{className:"mt-6 pt-5 border-t border-slate-100",children:x.jsxs("p",{className:"text-xs text-slate-400",children:["Having technical issues?"," ",x.jsx("a",{href:`mailto:${u}`,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),[c,u]=V.useState(!1),[f,d]=V.useState(!1),[h,g]=V.useState({}),p=()=>{const b={};return a.current_password||(b.current_password="Current password is required"),a.new_password?a.new_password.length<6&&(b.new_password="Password must be at least 6 characters"):b.new_password="New password is required",a.confirm_password?a.new_password!==a.confirm_password&&(b.confirm_password="Passwords do not match"):b.confirm_password="Please confirm your new password",b},v=()=>{const b=p();g(b),!(Object.keys(b).length>0)&&r(a)},y=()=>{o({current_password:"",new_password:"",confirm_password:""}),g({}),l(!1),u(!1),d(!1),t()};return x.jsxs(ih,{open:e,onClose:y,title:"Change Password",size:"sm",children:[x.jsxs("div",{className:"space-y-4",children:[i&&x.jsx("div",{className:"p-3 rounded-lg bg-red-50 border border-red-200",children:x.jsx("p",{className:"text-sm text-red-600",children:i})}),x.jsxs("div",{className:"space-y-1.5",children:[x.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Current Password"}),x.jsxs("div",{className:"relative",children:[x.jsx(Ye.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),x.jsx("input",{type:s?"text":"password",value:a.current_password,onChange:b=>o({...a,current_password:b.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"}`}),x.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?x.jsx(Ye.EyeOff,{size:16}):x.jsx(Ye.Eye,{size:16})})]}),h.current_password&&x.jsx("p",{className:"text-xs text-red-500",children:h.current_password})]}),x.jsxs("div",{className:"space-y-1.5",children:[x.jsx("label",{className:"text-sm font-medium text-slate-700",children:"New Password"}),x.jsxs("div",{className:"relative",children:[x.jsx(Ye.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),x.jsx("input",{type:c?"text":"password",value:a.new_password,onChange:b=>o({...a,new_password:b.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"}`}),x.jsx("button",{type:"button",onClick:()=>u(!c),className:"absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 transition-colors",children:c?x.jsx(Ye.EyeOff,{size:16}):x.jsx(Ye.Eye,{size:16})})]}),h.new_password&&x.jsx("p",{className:"text-xs text-red-500",children:h.new_password})]}),x.jsxs("div",{className:"space-y-1.5",children:[x.jsx("label",{className:"text-sm font-medium text-slate-700",children:"Confirm New Password"}),x.jsxs("div",{className:"relative",children:[x.jsx(Ye.Lock,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-400"}),x.jsx("input",{type:f?"text":"password",value:a.confirm_password,onChange:b=>o({...a,confirm_password:b.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"}`}),x.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?x.jsx(Ye.EyeOff,{size:16}):x.jsx(Ye.Eye,{size:16})})]}),h.confirm_password&&x.jsx("p",{className:"text-xs text-red-500",children:h.confirm_password})]})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-6 pt-4 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",onClick:y,disabled:n,children:"Cancel"}),x.jsx(sr,{onClick:v,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),[c,u]=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),u(!0),setTimeout(()=>u(!1),2e3)},p=()=>{o(""),l(!1),u(!1),d(""),t()};return x.jsxs(ih,{open:e,onClose:p,title:"Reset Password",size:"sm",children:[x.jsxs("div",{className:"space-y-4",children:[x.jsxs("div",{className:"flex items-center gap-3 p-3 bg-amber-50 border border-amber-200 rounded-xl",children:[x.jsx("div",{className:"w-9 h-9 rounded-lg bg-amber-100 flex items-center justify-center shrink-0",children:x.jsx(Ye.Key,{size:16,className:"text-amber-600"})}),x.jsxs("div",{children:[x.jsxs("p",{className:"text-sm font-medium text-amber-900",children:["Reset password",i?` for ${i}`:""]}),x.jsx("p",{className:"text-xs text-amber-700 mt-0.5",children:"The user will need to use this new password to log in."})]})]}),x.jsxs("div",{children:[x.jsx("label",{className:"text-sm font-medium text-slate-700 mb-1.5 block",children:"New Password"}),x.jsxs("div",{className:"relative",children:[x.jsx("input",{type:s?"text":"password",value:a,onChange:v=>{o(v.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"}),x.jsxs("div",{className:"absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-1",children:[x.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?x.jsx(Ye.EyeOff,{size:14}):x.jsx(Ye.Eye,{size:14})}),x.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:c?x.jsx(Ye.Check,{size:14,className:"text-emerald-500"}):x.jsx(Ye.Copy,{size:14})})]})]}),f&&x.jsx("p",{className:"text-xs text-red-500 mt-1",children:f}),x.jsx("p",{className:"text-[11px] text-slate-400 mt-1.5",children:"Minimum 6 characters. The user should change this after logging in."})]})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-5 pt-4 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",onClick:p,children:"Cancel"}),x.jsx(sr,{onClick:h,loading:n,disabled:!a||a.length<6,children:"Reset Password"})]})]})}function c$({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 x.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:x.jsxs("div",{className:"flex justify-between items-start",children:[x.jsxs("div",{className:"flex gap-4 items-center",children:[x.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()}),x.jsxs("div",{children:[x.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[x.jsx("h2",{className:"text-xl font-bold text-slate-900",children:e}),n.map((o,s)=>x.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&&x.jsx("p",{className:"text-sm text-slate-500 mt-0.5",children:t})]})]}),i&&x.jsx("div",{className:"flex-shrink-0",children:i})]})})}function u$({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 x.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&&x.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[t&&x.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:x.jsx(t,{className:`w-3.5 h-3.5 ${r||"text-slate-600"}`})}),x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:e})]}),x.jsx("div",{className:o,children:i.map((s,l)=>x.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&&x.jsx("div",{className:"w-9 h-9 rounded-lg bg-white border border-slate-200 flex items-center justify-center flex-shrink-0",children:x.jsx(s.icon,{className:"w-4 h-4 text-slate-500"})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400",children:s.label}),x.jsx("p",{className:"text-sm font-medium text-slate-900",children:s.value||"N/A"})]})]},l))})]})}var V1,n_;function gi(){if(n_)return V1;n_=1;var e=Array.isArray;return V1=e,V1}var Y1,i_;function SO(){if(i_)return Y1;i_=1;var e=typeof Hl=="object"&&Hl&&Hl.Object===Object&&Hl;return Y1=e,Y1}var K1,a_;function za(){if(a_)return K1;a_=1;var e=SO(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return K1=r,K1}var X1,o_;function ah(){if(o_)return X1;o_=1;var e=za(),t=e.Symbol;return X1=t,X1}var J1,s_;function f$(){if(s_)return J1;s_=1;var e=ah(),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 c=!0}catch{}var u=n.call(o);return c&&(s?o[i]=l:delete o[i]),u}return J1=a,J1}var Z1,l_;function h$(){if(l_)return Z1;l_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Z1=r,Z1}var Q1,c_;function Eo(){if(c_)return Q1;c_=1;var e=ah(),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 Q1=o,Q1}var em,u_;function Po(){if(u_)return em;u_=1;function e(t){return t!=null&&typeof t=="object"}return em=e,em}var tm,f_;function Uc(){if(f_)return tm;f_=1;var e=Eo(),t=Po(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return tm=n,tm}var rm,h_;function db(){if(h_)return rm;h_=1;var e=gi(),t=Uc(),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 rm=i,rm}var nm,d_;function fs(){if(d_)return nm;d_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return nm=e,nm}var im,p_;function pb(){if(p_)return im;p_=1;var e=Eo(),t=fs(),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 im=o,im}var am,m_;function d$(){if(m_)return am;m_=1;var e=za(),t=e["__core-js_shared__"];return am=t,am}var om,v_;function p$(){if(v_)return om;v_=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 om=r,om}var sm,g_;function AO(){if(g_)return sm;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 sm=r,sm}var lm,y_;function m$(){if(y_)return lm;y_=1;var e=pb(),t=p$(),r=fs(),n=AO(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,u=RegExp("^"+l.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!r(d)||t(d))return!1;var h=e(d)?u:a;return h.test(n(d))}return lm=f,lm}var cm,x_;function v$(){if(x_)return cm;x_=1;function e(t,r){return t==null?void 0:t[r]}return cm=e,cm}var um,b_;function il(){if(b_)return um;b_=1;var e=m$(),t=v$();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return um=r,um}var fm,w_;function dp(){if(w_)return fm;w_=1;var e=il(),t=e(Object,"create");return fm=t,fm}var hm,__;function g$(){if(__)return hm;__=1;var e=dp();function t(){this.__data__=e?e(null):{},this.size=0}return hm=t,hm}var dm,S_;function y$(){if(S_)return dm;S_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return dm=e,dm}var pm,A_;function x$(){if(A_)return pm;A_=1;var e=dp(),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 pm=i,pm}var mm,T_;function b$(){if(T_)return mm;T_=1;var e=dp(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return mm=n,mm}var vm,E_;function w$(){if(E_)return vm;E_=1;var e=dp(),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 vm=r,vm}var gm,P_;function _$(){if(P_)return gm;P_=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 c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,gm=a,gm}var ym,N_;function S$(){if(N_)return ym;N_=1;function e(){this.__data__=[],this.size=0}return ym=e,ym}var xm,O_;function mb(){if(O_)return xm;O_=1;function e(t,r){return t===r||t!==t&&r!==r}return xm=e,xm}var bm,C_;function pp(){if(C_)return bm;C_=1;var e=mb();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return bm=t,bm}var wm,j_;function A$(){if(j_)return wm;j_=1;var e=pp(),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 wm=n,wm}var _m,k_;function T$(){if(k_)return _m;k_=1;var e=pp();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return _m=t,_m}var Sm,L_;function E$(){if(L_)return Sm;L_=1;var e=pp();function t(r){return e(this.__data__,r)>-1}return Sm=t,Sm}var Am,I_;function P$(){if(I_)return Am;I_=1;var e=pp();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 Am=t,Am}var Tm,F_;function mp(){if(F_)return Tm;F_=1;var e=S$(),t=A$(),r=T$(),n=E$(),i=P$();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Tm=a,Tm}var Em,R_;function vb(){if(R_)return Em;R_=1;var e=il(),t=za(),r=e(t,"Map");return Em=r,Em}var Pm,M_;function N$(){if(M_)return Pm;M_=1;var e=_$(),t=mp(),r=vb();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Pm=n,Pm}var Nm,D_;function O$(){if(D_)return Nm;D_=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Nm=e,Nm}var Om,B_;function vp(){if(B_)return Om;B_=1;var e=O$();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Om=t,Om}var Cm,$_;function C$(){if($_)return Cm;$_=1;var e=vp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Cm=t,Cm}var jm,q_;function j$(){if(q_)return jm;q_=1;var e=vp();function t(r){return e(this,r).get(r)}return jm=t,jm}var km,U_;function k$(){if(U_)return km;U_=1;var e=vp();function t(r){return e(this,r).has(r)}return km=t,km}var Lm,z_;function L$(){if(z_)return Lm;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 Lm=t,Lm}var Im,W_;function gb(){if(W_)return Im;W_=1;var e=N$(),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 c=o[s];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Im=a,Im}var Fm,H_;function TO(){if(H_)return Fm;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 c=n.apply(this,o);return a.cache=l.set(s,c)||l,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Fm=r,Fm}var Rm,G_;function I$(){if(G_)return Rm;G_=1;var e=TO(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Rm=r,Rm}var Mm,V_;function F$(){if(V_)return Mm;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,c){a.push(l?c.replace(r,"$1"):s||o)}),a});return Mm=n,Mm}var Dm,Y_;function yb(){if(Y_)return Dm;Y_=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 Dm=e,Dm}var Bm,K_;function R$(){if(K_)return Bm;K_=1;var e=ah(),t=yb(),r=gi(),n=Uc(),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 Bm=o,Bm}var $m,X_;function EO(){if(X_)return $m;X_=1;var e=R$();function t(r){return r==null?"":e(r)}return $m=t,$m}var qm,J_;function PO(){if(J_)return qm;J_=1;var e=gi(),t=db(),r=F$(),n=EO();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return qm=i,qm}var Um,Z_;function gp(){if(Z_)return Um;Z_=1;var e=Uc();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Um=t,Um}var zm,Q_;function xb(){if(Q_)return zm;Q_=1;var e=PO(),t=gp();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 zm=r,zm}var Wm,e4;function NO(){if(e4)return Wm;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 Wm=t,Wm}var M$=NO();const Ki=ur(M$);var Hm,t4;function D$(){if(t4)return Hm;t4=1;function e(t){return t==null}return Hm=e,Hm}var B$=D$();const Ut=ur(B$);var Gm,r4;function $$(){if(r4)return Gm;r4=1;var e=Eo(),t=gi(),r=Po(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Gm=i,Gm}var q$=$$();const Ks=ur(q$);var U$=pb();const Ct=ur(U$);var z$=fs();const zc=ur(z$);var b0={exports:{}},rr={};/**
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 rr;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"),c=Symbol.for("react.suspense"),u=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(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case r:case i:case n:case c:case u:return v;default:switch(v=v&&v.$$typeof,v){case s:case o:case l:case d:case f:case a:return v;default:return y}}case t:return y}}}return rr.ContextConsumer=o,rr.ContextProvider=a,rr.Element=e,rr.ForwardRef=l,rr.Fragment=r,rr.Lazy=d,rr.Memo=f,rr.Portal=t,rr.Profiler=i,rr.StrictMode=n,rr.Suspense=c,rr.SuspenseList=u,rr.isAsyncMode=function(){return!1},rr.isConcurrentMode=function(){return!1},rr.isContextConsumer=function(v){return p(v)===o},rr.isContextProvider=function(v){return p(v)===a},rr.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},rr.isForwardRef=function(v){return p(v)===l},rr.isFragment=function(v){return p(v)===r},rr.isLazy=function(v){return p(v)===d},rr.isMemo=function(v){return p(v)===f},rr.isPortal=function(v){return p(v)===t},rr.isProfiler=function(v){return p(v)===i},rr.isStrictMode=function(v){return p(v)===n},rr.isSuspense=function(v){return p(v)===c},rr.isSuspenseList=function(v){return p(v)===u},rr.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===i||v===n||v===c||v===u||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===d||v.$$typeof===f||v.$$typeof===a||v.$$typeof===o||v.$$typeof===l||v.$$typeof===g||v.getModuleId!==void 0)},rr.typeOf=p,rr}var nr={};/**
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"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g=!1,p=!1,v=!1,y=!1,b=!1,_;_=Symbol.for("react.module.reference");function A(Ae){return!!(typeof Ae=="string"||typeof Ae=="function"||Ae===r||Ae===i||b||Ae===n||Ae===c||Ae===u||y||Ae===h||g||p||v||typeof Ae=="object"&&Ae!==null&&(Ae.$$typeof===d||Ae.$$typeof===f||Ae.$$typeof===a||Ae.$$typeof===o||Ae.$$typeof===l||Ae.$$typeof===_||Ae.getModuleId!==void 0))}function S(Ae){if(typeof Ae=="object"&&Ae!==null){var Ee=Ae.$$typeof;switch(Ee){case e:var le=Ae.type;switch(le){case r:case i:case n:case c:case u:return le;default:var De=le&&le.$$typeof;switch(De){case s:case o:case l:case d:case f:case a:return De;default:return Ee}}case t:return Ee}}}var O=o,T=a,k=e,L=l,B=r,C=d,P=f,M=t,U=i,J=n,q=c,W=u,ee=!1,Z=!1;function Q(Ae){return ee||(ee=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ce(Ae){return Z||(Z=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(Ae){return S(Ae)===o}function I(Ae){return S(Ae)===a}function R(Ae){return typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===e}function D(Ae){return S(Ae)===l}function G(Ae){return S(Ae)===r}function fe(Ae){return S(Ae)===d}function ae(Ae){return S(Ae)===f}function ne(Ae){return S(Ae)===t}function ve(Ae){return S(Ae)===i}function _e(Ae){return S(Ae)===n}function se(Ae){return S(Ae)===c}function Fe(Ae){return S(Ae)===u}nr.ContextConsumer=O,nr.ContextProvider=T,nr.Element=k,nr.ForwardRef=L,nr.Fragment=B,nr.Lazy=C,nr.Memo=P,nr.Portal=M,nr.Profiler=U,nr.StrictMode=J,nr.Suspense=q,nr.SuspenseList=W,nr.isAsyncMode=Q,nr.isConcurrentMode=ce,nr.isContextConsumer=N,nr.isContextProvider=I,nr.isElement=R,nr.isForwardRef=D,nr.isFragment=G,nr.isLazy=fe,nr.isMemo=ae,nr.isPortal=ne,nr.isProfiler=ve,nr.isStrictMode=_e,nr.isSuspense=se,nr.isSuspenseList=Fe,nr.isValidElementType=A,nr.typeOf=S})()),nr}var a4;function G$(){return a4||(a4=1,process.env.NODE_ENV==="production"?b0.exports=W$():b0.exports=H$()),b0.exports}var V$=G$(),Vm,o4;function OO(){if(o4)return Vm;o4=1;var e=Eo(),t=Po(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Vm=n,Vm}var Ym,s4;function Y$(){if(s4)return Ym;s4=1;var e=OO();function t(r){return e(r)&&r!=+r}return Ym=t,Ym}var K$=Y$();const oh=ur(K$);var X$=OO();const J$=ur(X$);var xa=function(t){return t===0?0:t>0?1:-1},Is=function(t){return Ks(t)&&t.indexOf("%")===t.length-1},nt=function(t){return J$(t)&&!oh(t)},Z$=function(t){return Ut(t)},pn=function(t){return nt(t)||Ks(t)},Q$=0,sh=function(t){var r=++Q$;return"".concat(t||"").concat(r)},ba=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(!nt(t)&&!Ks(t))return n;var a;if(Is(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return oh(a)&&(a=n),i&&a>r&&(a=r),a},Xo=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},ti=function(t,r){return nt(t)&&nt(r)?function(n){return t+n*(r-t)}:function(){return r}};function ed(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Ki(n,t))===r})}var tq=function(t,r){return nt(t)&&nt(r)?t-r:Ks(t)&&Ks(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function nc(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 yx(e){"@babel/helpers - typeof";return yx=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},yx(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"],Km={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"],td=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(V.isValidElement(t)&&(n=t.props),!zc(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}},sc=function(t,r,n){if(!zc(t)||yx(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 c4(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 xx(e){"@babel/helpers - typeof";return xx=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},xx(e)}var u4={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"},mo=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},f4=null,Xm=null,wb=function e(t){if(t===f4&&Array.isArray(Xm))return Xm;var r=[];return V.Children.forEach(t,function(n){Ut(n)||(V$.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Xm=r,f4=t,r};function Xi(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return mo(i)}):n=[mo(t)],wb(e).forEach(function(i){var a=Ki(i,"type.displayName")||Ki(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Pi(e,t){var r=Xi(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!(!nt(n)||n<=0||!nt(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"],cq=function(t){return t&&t.type&&Ks(t.type)&&lq.indexOf(t.type)>=0},uq=function(t){return t&&xx(t)==="object"&&"clipDot"in t},fq=function(t,r,n,i){var a,o=(a=Km==null?void 0:Km[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!Ct(t)&&(i&&o.includes(r)||nq.includes(r))||n&&bb.includes(r)},yt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(V.isValidElement(t)&&(i=t.props),!zc(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},bx=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(Ut(t)&&Ut(r))return!0;if(!Ut(t)&&!Ut(r)){var n=t.props||{},i=n.children,a=c4(n,aq),o=r.props||{},s=o.children,l=c4(o,oq);return i&&s?nc(a,l)&&bx(i,s):!i&&!s?nc(a,l):!1}return!1},p4=function(t,r){var n=[],i={};return wb(t).forEach(function(a,o){if(cq(a))n.push(a);else if(a){var s=mo(a.type),l=r[s]||{},c=l.handler,u=l.once;if(c&&(!u||!i[s])){var f=c(a,s,o);n.push(f),i[s]=!0}}}),n},hq=function(t){var r=t&&t.type;return r&&u4[r]?u4[r]:null},dq=function(t,r){return wb(r).indexOf(t)},pq=["children","width","height","viewBox","className","style","title","desc"];function wx(){return wx=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},wx.apply(this,arguments)}function mq(e,t){if(e==null)return{};var r=vq(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 vq(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 _x(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,c=mq(e,pq),u=i||{width:r,height:n,x:0,y:0},f=Dt("recharts-surface",a);return V.createElement("svg",wx({},yt(c,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(u.x," ").concat(u.y," ").concat(u.width," ").concat(u.height)}),V.createElement("title",null,s),V.createElement("desc",null,l),t)}var gq=["children","className"];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 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 lr=V.forwardRef(function(e,t){var r=e.children,n=e.className,i=yq(e,gq),a=Dt("recharts-layer",n);return V.createElement("g",Sx({className:a},yt(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++]}))}},Jm,m4;function wq(){if(m4)return Jm;m4=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 Jm=e,Jm}var Zm,v4;function _q(){if(v4)return Zm;v4=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 Zm=t,Zm}var Qm,g4;function CO(){if(g4)return Qm;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(c){return s.test(c)}return Qm=l,Qm}var ev,y4;function Sq(){if(y4)return ev;y4=1;function e(t){return t.split("")}return ev=e,ev}var tv,x4;function Aq(){if(x4)return tv;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]",c="(?:"+s+"|"+l+")",u="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",g=c+"?",p="["+a+"]?",v="(?:"+h+"(?:"+[u,f,d].join("|")+")"+p+g+")*",y=p+g+v,b="(?:"+[u+s+"?",s,f,d,o].join("|")+")",_=RegExp(l+"(?="+l+")|"+b+y,"g");function A(S){return S.match(_)||[]}return tv=A,tv}var rv,b4;function Tq(){if(b4)return rv;b4=1;var e=Sq(),t=CO(),r=Aq();function n(i){return t(i)?r(i):e(i)}return rv=n,rv}var nv,w4;function Eq(){if(w4)return nv;w4=1;var e=_q(),t=CO(),r=Tq(),n=EO();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),c=s?e(s,1).join(""):o.slice(1);return l[a]()+c}}return nv=i,nv}var iv,_4;function Pq(){if(_4)return iv;_4=1;var e=Eq(),t=e("toUpperCase");return iv=t,iv}var Nq=Pq();const yp=ur(Nq);function Or(e){return function(){return e}}const jO=Math.cos,rd=Math.sin,Aa=Math.sqrt,nd=Math.PI,xp=2*nd,Ax=Math.PI,Tx=2*Ax,Os=1e-6,Oq=Tx-Os;function kO(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 kO;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?kO: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,c=i-r,u=o-t,f=s-r,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>Os)if(!(Math.abs(f*l-c*u)>Os)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,g=i-s,p=l*l+c*c,v=h*h+g*g,y=Math.sqrt(p),b=Math.sqrt(d),_=a*Math.tan((Ax-Math.acos((p+d-v)/(2*y*b)))/2),A=_/b,S=_/y;Math.abs(A-1)>Os&&this._append`L${t+A*u},${r+A*f}`,this._append`A${a},${a},0,0,${+(f*h>u*g)},${this._x1=t+S*l},${this._y1=r+S*c}`}}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),c=t+s,u=r+l,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Os||Math.abs(this._y1-u)>Os)&&this._append`L${c},${u}`,n&&(d<0&&(d=d%Tx+Tx),d>Oq?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:d>Os&&this._append`A${n},${n},0,${+(d>=Ax)},${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 LO(e){this._context=e}LO.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 bp(e){return new LO(e)}function IO(e){return e[0]}function FO(e){return e[1]}function RO(e,t){var r=Or(!0),n=null,i=bp,a=null,o=_b(s);e=typeof e=="function"?e:e===void 0?IO:Or(e),t=typeof t=="function"?t:t===void 0?FO:Or(t);function s(l){var c,u=(l=Sb(l)).length,f,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=u;++c)!(c<u&&r(f=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,c,l),+t(f,c,l));if(h)return a=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Or(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Or(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Or(!!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 w0(e,t,r){var n=null,i=Or(!0),a=null,o=bp,s=null,l=_b(c);e=typeof e=="function"?e:e===void 0?IO:Or(+e),t=typeof t=="function"?t:Or(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?FO:Or(+r);function c(f){var d,h,g,p=(f=Sb(f)).length,v,y=!1,b,_=new Array(p),A=new Array(p);for(a==null&&(s=o(b=l())),d=0;d<=p;++d){if(!(d<p&&i(v=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(_[g],A[g]);s.lineEnd(),s.areaEnd()}y&&(_[d]=+e(v,d,f),A[d]=+t(v,d,f),s.point(n?+n(v,d,f):_[d],r?+r(v,d,f):A[d]))}if(b)return s=null,b+""||null}function u(){return RO().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Or(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Or(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Or(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Or(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Or(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Or(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Or(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}class MO{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 MO(e,!0)}function Lq(e){return new MO(e,!1)}const Ab={draw(e,t){const r=Aa(t/nd);e.moveTo(r,0),e.arc(0,0,r,0,xp)}},Iq={draw(e,t){const r=Aa(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()}},DO=Aa(1/3),Fq=DO*2,Rq={draw(e,t){const r=Aa(t/Fq),n=r*DO;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Mq={draw(e,t){const r=Aa(t),n=-r/2;e.rect(n,n,r,r)}},Dq=.8908130915292852,BO=rd(nd/10)/rd(7*nd/10),Bq=rd(xp/10)*BO,$q=-jO(xp/10)*BO,qq={draw(e,t){const r=Aa(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=xp*a/5,s=jO(o),l=rd(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},av=Aa(3),Uq={draw(e,t){const r=-Aa(t/(av*3));e.moveTo(0,r*2),e.lineTo(-av*r,-r),e.lineTo(av*r,-r),e.closePath()}},zi=-.5,Wi=Aa(3)/2,Ex=1/Aa(12),zq=(Ex/2+1)*3,Wq={draw(e,t){const r=Aa(t/zq),n=r/2,i=r*Ex,a=n,o=r*Ex+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(zi*n-Wi*i,Wi*n+zi*i),e.lineTo(zi*a-Wi*o,Wi*a+zi*o),e.lineTo(zi*s-Wi*l,Wi*s+zi*l),e.lineTo(zi*n+Wi*i,zi*i-Wi*n),e.lineTo(zi*a+Wi*o,zi*o-Wi*a),e.lineTo(zi*s+Wi*l,zi*l-Wi*s),e.closePath()}};function Hq(e,t){let r=null,n=_b(i);e=typeof e=="function"?e:Or(e||Ab),t=typeof t=="function"?t:Or(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:Or(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Or(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function id(){}function ad(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 $O(e){this._context=e}$O.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:ad(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:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gq(e){return new $O(e)}function qO(e){this._context=e}qO.prototype={areaStart:id,areaEnd:id,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:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vq(e){return new qO(e)}function UO(e){this._context=e}UO.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:ad(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Yq(e){return new UO(e)}function zO(e){this._context=e}zO.prototype={areaStart:id,areaEnd:id,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 Kq(e){return new zO(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 ov(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 od(e){this._context=e}od.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:ov(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,ov(this,T4(this,r=A4(this,e,t)),r);break;default:ov(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 WO(e){this._context=new HO(e)}(WO.prototype=Object.create(od.prototype)).point=function(e,t){od.prototype.point.call(this,t,e)};function HO(e){this._context=e}HO.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 od(e)}function Jq(e){return new WO(e)}function GO(e){this._context=e}GO.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 GO(e)}function wp(e,t){this._context=e,this._t=t}wp.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 wp(e,.5)}function eU(e){return new wp(e,0)}function tU(e){return new wp(e,1)}function lc(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 Px(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=Or([]),t=Px,r=lc,n=rU;function i(a){var o=Array.from(e.apply(this,arguments),nU),s,l=o.length,c=-1,u;for(const f of a)for(s=0,++c;s<l;++s)(o[s][c]=[0,+n(f,o[s].key,c,a)]).data=f;for(s=0,u=Sb(t(o));s<l;++s)o[u[s]].index=s;return r(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Or(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Or(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Px:typeof a=="function"?a:Or(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??lc,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}lc(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}lc(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,c=0;s<o;++s){for(var u=e[t[s]],f=u[n][1]||0,d=u[n-1][1]||0,h=(f-d)/2,g=0;g<s;++g){var p=e[t[g]],v=p[n][1]||0,y=p[n-1][1]||0;h+=v-y}l+=f,c+=h*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=c/l)}i[n-1][1]+=i[n-1][0]=r,lc(e,t)}}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)}var lU=["type","size","sizeType"];function Nx(){return Nx=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},Nx.apply(this,arguments)}function P4(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 N4(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P4(Object(r),!0).forEach(function(n){cU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P4(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function cU(e,t,r){return t=uU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uU(e){var t=fU(e,"string");return vf(t)=="symbol"?t:t+""}function fU(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)}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 VO={symbolCircle:Ab,symbolCross:Iq,symbolDiamond:Rq,symbolSquare:Mq,symbolStar:qq,symbolTriangle:Uq,symbolWye:Wq},pU=Math.PI/180,mU=function(t){var r="symbol".concat(yp(t));return VO[r]||Ab},vU=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){VO["symbol".concat(yp(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),c=N4(N4({},l),{},{type:n,size:a,sizeType:s}),u=function(){var v=mU(n),y=Hq().type(v).size(vU(a,s,n));return y()},f=c.className,d=c.cx,h=c.cy,g=yt(c,!0);return d===+d&&h===+h&&a===+a?V.createElement("path",Nx({},g,{className:Dt("recharts-symbols",f),transform:"translate(".concat(d,", ").concat(h,")"),d:u()})):null};Tb.registerSymbol=gU;function cc(e){"@babel/helpers - typeof";return cc=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},cc(e)}function Ox(){return Ox=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},Ox.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 yU(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){gf(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 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,KO(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=sd(t),SU(e,YO()?Reflect.construct(t,r||[],sd(e).constructor):t.apply(e,r))}function SU(e,t){if(t&&(cc(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 YO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YO=function(){return!!e})()}function sd(e){return sd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sd(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&&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 gf(e,t,r){return t=KO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KO(e){var t=EU(e,"string");return cc(t)=="symbol"?t:t+""}function EU(e,t){if(cc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Hi=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=Hi/2,o=Hi/6,s=Hi/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:Hi,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(Hi,"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(Hi/8,"h").concat(Hi,"v").concat(Hi*3/4,"h").concat(-Hi,"z"),className:"recharts-legend-icon"});if(V.isValidElement(n.legendIcon)){var c=yU({},n);return delete c.legendIcon,V.cloneElement(n.legendIcon,c)}return V.createElement(Tb,{fill:l,cx:a,cy:a,size:Hi,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,c=i.inactiveColor,u={x:0,y:0,width:Hi,height:Hi},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,v=Dt(gf(gf({"recharts-legend-item":!0},"legend-item-".concat(g),!0),"inactive",h.inactive));if(h.type==="none")return null;var y=Ct(h.value)?null:h.value;vo(!Ct(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 b=h.inactive?c:h.color;return V.createElement("li",Ox({className:v,style:f,key:"legend-item-".concat(g)},sc(n.props,h,g)),V.createElement(_x,{width:o,height:o,viewBox:u,style:d},n.renderIcon(h)),V.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},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 sv,C4;function PU(){if(C4)return sv;C4=1;var e=mp();function t(){this.__data__=new e,this.size=0}return sv=t,sv}var lv,j4;function NU(){if(j4)return lv;j4=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return lv=e,lv}var cv,k4;function OU(){if(k4)return cv;k4=1;function e(t){return this.__data__.get(t)}return cv=e,cv}var uv,L4;function CU(){if(L4)return uv;L4=1;function e(t){return this.__data__.has(t)}return uv=e,uv}var fv,I4;function jU(){if(I4)return fv;I4=1;var e=mp(),t=vb(),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 fv=i,fv}var hv,F4;function XO(){if(F4)return hv;F4=1;var e=mp(),t=PU(),r=NU(),n=OU(),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,hv=o,hv}var dv,R4;function kU(){if(R4)return dv;R4=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return dv=t,dv}var pv,M4;function LU(){if(M4)return pv;M4=1;function e(t){return this.__data__.has(t)}return pv=e,pv}var mv,D4;function JO(){if(D4)return mv;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,mv=n,mv}var vv,B4;function ZO(){if(B4)return vv;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 vv=e,vv}var gv,$4;function QO(){if($4)return gv;$4=1;function e(t,r){return t.has(r)}return gv=e,gv}var yv,q4;function e6(){if(q4)return yv;q4=1;var e=JO(),t=ZO(),r=QO(),n=1,i=2;function a(o,s,l,c,u,f){var d=l&n,h=o.length,g=s.length;if(h!=g&&!(d&&g>h))return!1;var p=f.get(o),v=f.get(s);if(p&&v)return p==s&&v==o;var y=-1,b=!0,_=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++y<h;){var A=o[y],S=s[y];if(c)var O=d?c(S,A,y,s,o,f):c(A,S,y,o,s,f);if(O!==void 0){if(O)continue;b=!1;break}if(_){if(!t(s,function(T,k){if(!r(_,k)&&(A===T||u(A,T,l,c,f)))return _.push(k)})){b=!1;break}}else if(!(A===S||u(A,S,l,c,f))){b=!1;break}}return f.delete(o),f.delete(s),b}return yv=a,yv}var xv,U4;function IU(){if(U4)return xv;U4=1;var e=za(),t=e.Uint8Array;return xv=t,xv}var bv,z4;function FU(){if(z4)return bv;z4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return bv=e,bv}var wv,W4;function Pb(){if(W4)return wv;W4=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return wv=e,wv}var _v,H4;function RU(){if(H4)return _v;H4=1;var e=ah(),t=IU(),r=mb(),n=e6(),i=FU(),a=Pb(),o=1,s=2,l="[object Boolean]",c="[object Date]",u="[object Error]",f="[object Map]",d="[object Number]",h="[object RegExp]",g="[object Set]",p="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",_=e?e.prototype:void 0,A=_?_.valueOf:void 0;function S(O,T,k,L,B,C,P){switch(k){case b:if(O.byteLength!=T.byteLength||O.byteOffset!=T.byteOffset)return!1;O=O.buffer,T=T.buffer;case y:return!(O.byteLength!=T.byteLength||!C(new t(O),new t(T)));case l:case c:case d:return r(+O,+T);case u:return O.name==T.name&&O.message==T.message;case h:case p:return O==T+"";case f:var M=i;case g:var U=L&o;if(M||(M=a),O.size!=T.size&&!U)return!1;var J=P.get(O);if(J)return J==T;L|=s,P.set(O,T);var q=n(M(O),M(T),L,B,C,P);return P.delete(O),q;case v:if(A)return A.call(O)==A.call(T)}return!1}return _v=S,_v}var Sv,G4;function t6(){if(G4)return Sv;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 Sv=e,Sv}var Av,V4;function MU(){if(V4)return Av;V4=1;var e=t6(),t=gi();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Av=r,Av}var Tv,Y4;function DU(){if(Y4)return Tv;Y4=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 Tv=e,Tv}var Ev,K4;function BU(){if(K4)return Ev;K4=1;function e(){return[]}return Ev=e,Ev}var Pv,X4;function $U(){if(X4)return Pv;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 Pv=a,Pv}var Nv,J4;function qU(){if(J4)return Nv;J4=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Nv=e,Nv}var Ov,Z4;function UU(){if(Z4)return Ov;Z4=1;var e=Eo(),t=Po(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Ov=n,Ov}var Cv,Q4;function Nb(){if(Q4)return Cv;Q4=1;var e=UU(),t=Po(),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 Cv=a,Cv}var Bu={exports:{}},jv,eS;function zU(){if(eS)return jv;eS=1;function e(){return!1}return jv=e,jv}Bu.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,c=l||n;e.exports=c})(Bu,Bu.exports)),Bu.exports}var kv,rS;function Ob(){if(rS)return kv;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 kv=r,kv}var Lv,nS;function Cb(){if(nS)return Lv;nS=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Lv=t,Lv}var Iv,iS;function WU(){if(iS)return Iv;iS=1;var e=Eo(),t=Cb(),r=Po(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",u="[object Number]",f="[object Object]",d="[object RegExp]",h="[object Set]",g="[object String]",p="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",b="[object Float32Array]",_="[object Float64Array]",A="[object Int8Array]",S="[object Int16Array]",O="[object Int32Array]",T="[object Uint8Array]",k="[object Uint8ClampedArray]",L="[object Uint16Array]",B="[object Uint32Array]",C={};C[b]=C[_]=C[A]=C[S]=C[O]=C[T]=C[k]=C[L]=C[B]=!0,C[n]=C[i]=C[v]=C[a]=C[y]=C[o]=C[s]=C[l]=C[c]=C[u]=C[f]=C[d]=C[h]=C[g]=C[p]=!1;function P(M){return r(M)&&t(M.length)&&!!C[e(M)]}return Iv=P,Iv}var Fv,aS;function n6(){if(aS)return Fv;aS=1;function e(t){return function(r){return t(r)}}return Fv=e,Fv}var $u={exports:{}};$u.exports;var oS;function HU(){return oS||(oS=1,(function(e,t){var r=SO(),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})($u,$u.exports)),$u.exports}var Rv,sS;function i6(){if(sS)return Rv;sS=1;var e=WU(),t=n6(),r=HU(),n=r&&r.isTypedArray,i=n?t(n):e;return Rv=i,Rv}var Mv,lS;function GU(){if(lS)return Mv;lS=1;var e=qU(),t=Nb(),r=gi(),n=r6(),i=Ob(),a=i6(),o=Object.prototype,s=o.hasOwnProperty;function l(c,u){var f=r(c),d=!f&&t(c),h=!f&&!d&&n(c),g=!f&&!d&&!h&&a(c),p=f||d||h||g,v=p?e(c.length,String):[],y=v.length;for(var b in c)(u||s.call(c,b))&&!(p&&(b=="length"||h&&(b=="offset"||b=="parent")||g&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,y)))&&v.push(b);return v}return Mv=l,Mv}var Dv,cS;function VU(){if(cS)return Dv;cS=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Dv=t,Dv}var Bv,uS;function a6(){if(uS)return Bv;uS=1;function e(t,r){return function(n){return t(r(n))}}return Bv=e,Bv}var $v,fS;function YU(){if(fS)return $v;fS=1;var e=a6(),t=e(Object.keys,Object);return $v=t,$v}var qv,hS;function KU(){if(hS)return qv;hS=1;var e=VU(),t=YU(),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 qv=i,qv}var Uv,dS;function lh(){if(dS)return Uv;dS=1;var e=pb(),t=Cb();function r(n){return n!=null&&t(n.length)&&!e(n)}return Uv=r,Uv}var zv,pS;function _p(){if(pS)return zv;pS=1;var e=GU(),t=KU(),r=lh();function n(i){return r(i)?e(i):t(i)}return zv=n,zv}var Wv,mS;function XU(){if(mS)return Wv;mS=1;var e=MU(),t=$U(),r=_p();function n(i){return e(i,r,t)}return Wv=n,Wv}var Hv,vS;function JU(){if(vS)return Hv;vS=1;var e=XU(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,c,u){var f=s&t,d=e(a),h=d.length,g=e(o),p=g.length;if(h!=p&&!f)return!1;for(var v=h;v--;){var y=d[v];if(!(f?y in o:n.call(o,y)))return!1}var b=u.get(a),_=u.get(o);if(b&&_)return b==o&&_==a;var A=!0;u.set(a,o),u.set(o,a);for(var S=f;++v<h;){y=d[v];var O=a[y],T=o[y];if(l)var k=f?l(T,O,y,o,a,u):l(O,T,y,a,o,u);if(!(k===void 0?O===T||c(O,T,s,l,u):k)){A=!1;break}S||(S=y=="constructor")}if(A&&!S){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)&&(A=!1)}return u.delete(a),u.delete(o),A}return Hv=i,Hv}var Gv,gS;function ZU(){if(gS)return Gv;gS=1;var e=il(),t=za(),r=e(t,"DataView");return Gv=r,Gv}var Vv,yS;function QU(){if(yS)return Vv;yS=1;var e=il(),t=za(),r=e(t,"Promise");return Vv=r,Vv}var Yv,xS;function o6(){if(xS)return Yv;xS=1;var e=il(),t=za(),r=e(t,"Set");return Yv=r,Yv}var Kv,bS;function ez(){if(bS)return Kv;bS=1;var e=il(),t=za(),r=e(t,"WeakMap");return Kv=r,Kv}var Xv,wS;function tz(){if(wS)return Xv;wS=1;var e=ZU(),t=vb(),r=QU(),n=o6(),i=ez(),a=Eo(),o=AO(),s="[object Map]",l="[object Object]",c="[object Promise]",u="[object Set]",f="[object WeakMap]",d="[object DataView]",h=o(e),g=o(t),p=o(r),v=o(n),y=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||t&&b(new t)!=s||r&&b(r.resolve())!=c||n&&b(new n)!=u||i&&b(new i)!=f)&&(b=function(_){var A=a(_),S=A==l?_.constructor:void 0,O=S?o(S):"";if(O)switch(O){case h:return d;case g:return s;case p:return c;case v:return u;case y:return f}return A}),Xv=b,Xv}var Jv,_S;function rz(){if(_S)return Jv;_S=1;var e=XO(),t=e6(),r=RU(),n=JU(),i=tz(),a=gi(),o=r6(),s=i6(),l=1,c="[object Arguments]",u="[object Array]",f="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function g(p,v,y,b,_,A){var S=a(p),O=a(v),T=S?u:i(p),k=O?u:i(v);T=T==c?f:T,k=k==c?f:k;var L=T==f,B=k==f,C=T==k;if(C&&o(p)){if(!o(v))return!1;S=!0,L=!1}if(C&&!L)return A||(A=new e),S||s(p)?t(p,v,y,b,_,A):r(p,v,T,y,b,_,A);if(!(y&l)){var P=L&&h.call(p,"__wrapped__"),M=B&&h.call(v,"__wrapped__");if(P||M){var U=P?p.value():p,J=M?v.value():v;return A||(A=new e),_(U,J,y,b,A)}}return C?(A||(A=new e),n(p,v,y,b,_,A)):!1}return Jv=g,Jv}var Zv,SS;function jb(){if(SS)return Zv;SS=1;var e=rz(),t=Po();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 Zv=r,Zv}var Qv,AS;function nz(){if(AS)return Qv;AS=1;var e=XO(),t=jb(),r=1,n=2;function i(a,o,s,l){var c=s.length,u=c,f=!l;if(a==null)return!u;for(a=Object(a);c--;){var d=s[c];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<u;){d=s[c];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 v=new e;if(l)var y=l(g,p,h,a,o,v);if(!(y===void 0?t(p,g,r|n,l,v):y))return!1}}return!0}return Qv=i,Qv}var eg,TS;function s6(){if(TS)return eg;TS=1;var e=fs();function t(r){return r===r&&!e(r)}return eg=t,eg}var tg,ES;function iz(){if(ES)return tg;ES=1;var e=s6(),t=_p();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 tg=r,tg}var rg,PS;function l6(){if(PS)return rg;PS=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return rg=e,rg}var ng,NS;function az(){if(NS)return ng;NS=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 ng=n,ng}var ig,OS;function oz(){if(OS)return ig;OS=1;function e(t,r){return t!=null&&r in Object(t)}return ig=e,ig}var ag,CS;function sz(){if(CS)return ag;CS=1;var e=PO(),t=Nb(),r=gi(),n=Ob(),i=Cb(),a=gp();function o(s,l,c){l=e(l,s);for(var u=-1,f=l.length,d=!1;++u<f;){var h=a(l[u]);if(!(d=s!=null&&c(s,h)))break;s=s[h]}return d||++u!=f?d:(f=s==null?0:s.length,!!f&&i(f)&&n(h,f)&&(r(s)||t(s)))}return ag=o,ag}var og,jS;function lz(){if(jS)return og;jS=1;var e=oz(),t=sz();function r(n,i){return n!=null&&t(n,i,e)}return og=r,og}var sg,kS;function cz(){if(kS)return sg;kS=1;var e=jb(),t=NO(),r=lz(),n=db(),i=s6(),a=l6(),o=gp(),s=1,l=2;function c(u,f){return n(u)&&i(f)?a(o(u),f):function(d){var h=t(d,u);return h===void 0&&h===f?r(d,u):e(f,h,s|l)}}return sg=c,sg}var lg,LS;function Wc(){if(LS)return lg;LS=1;function e(t){return t}return lg=e,lg}var cg,IS;function uz(){if(IS)return cg;IS=1;function e(t){return function(r){return r==null?void 0:r[t]}}return cg=e,cg}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 fg,RS;function hz(){if(RS)return fg;RS=1;var e=uz(),t=fz(),r=db(),n=gp();function i(a){return r(a)?e(n(a)):t(a)}return fg=i,fg}var hg,MS;function Wa(){if(MS)return hg;MS=1;var e=az(),t=cz(),r=Wc(),n=gi(),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 hg=a,hg}var dg,DS;function c6(){if(DS)return dg;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 dg=e,dg}var pg,BS;function dz(){if(BS)return pg;BS=1;function e(t){return t!==t}return pg=e,pg}var mg,$S;function pz(){if($S)return mg;$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 mg=e,mg}var vg,qS;function mz(){if(qS)return vg;qS=1;var e=c6(),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 gg,US;function vz(){if(US)return gg;US=1;var e=mz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return gg=t,gg}var yg,zS;function gz(){if(zS)return yg;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 yg=e,yg}var xg,WS;function yz(){if(WS)return xg;WS=1;function e(){}return xg=e,xg}var bg,HS;function xz(){if(HS)return bg;HS=1;var e=o6(),t=yz(),r=Pb(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return bg=i,bg}var wg,GS;function bz(){if(GS)return wg;GS=1;var e=JO(),t=vz(),r=gz(),n=QO(),i=xz(),a=Pb(),o=200;function s(l,c,u){var f=-1,d=t,h=l.length,g=!0,p=[],v=p;if(u)g=!1,d=r;else if(h>=o){var y=c?null:i(l);if(y)return a(y);g=!1,d=n,v=new e}else v=c?[]:p;e:for(;++f<h;){var b=l[f],_=c?c(b):b;if(b=u||b!==0?b:0,g&&_===_){for(var A=v.length;A--;)if(v[A]===_)continue e;c&&v.push(_),p.push(b)}else d(v,_,u)||(v!==p&&v.push(_),p.push(b))}return p}return wg=s,wg}var _g,VS;function wz(){if(VS)return _g;VS=1;var e=Wa(),t=bz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return _g=r,_g}var _z=wz();const YS=ur(_z);function u6(e,t,r){return t===!0?YS(e,r):Ct(t)?YS(e,t):e}function uc(e){"@babel/helpers - typeof";return uc=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},uc(e)}var Sz=["ref"];function KS(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?KS(Object(r),!0).forEach(function(n){Sp(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(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=ld(t),Pz(e,f6()?Reflect.construct(t,r||[],ld(e).constructor):t.apply(e,r))}function Pz(e,t){if(t&&(uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Nz(e)}function Nz(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 ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ld(e)}function Oz(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 Sp(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 uc(t)=="symbol"?t:t+""}function Cz(e,t){if(uc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uc(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,zs=(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)),Sp(r,"lastBoundingBox",{width:-1,height:-1}),r}return Oz(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,c=i.chartWidth,u=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:((c||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:((u||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,c=i.payloadUniqBy,u=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:u6(u,c,Lz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=io(io({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&nt(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(V.PureComponent);Sp(zs,"displayName","Legend");Sp(zs,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Sg,ZS;function Fz(){if(ZS)return Sg;ZS=1;var e=ah(),t=Nb(),r=gi(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Sg=i,Sg}var Ag,QS;function d6(){if(QS)return Ag;QS=1;var e=t6(),t=Fz();function r(n,i,a,o,s){var l=-1,c=n.length;for(a||(a=t),s||(s=[]);++l<c;){var u=n[l];i>0&&a(u)?i>1?r(u,i-1,a,o,s):e(s,u):o||(s[s.length]=u)}return s}return Ag=r,Ag}var Tg,e3;function Rz(){if(e3)return Tg;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 c=s[t?l:++a];if(n(o[c],c,o)===!1)break}return r}}return Tg=e,Tg}var Eg,t3;function Mz(){if(t3)return Eg;t3=1;var e=Rz(),t=e();return Eg=t,Eg}var Pg,r3;function p6(){if(r3)return Pg;r3=1;var e=Mz(),t=_p();function r(n,i){return n&&e(n,i,t)}return Pg=r,Pg}var Ng,n3;function Dz(){if(n3)return Ng;n3=1;var e=lh();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 Ng=t,Ng}var Og,i3;function kb(){if(i3)return Og;i3=1;var e=p6(),t=Dz(),r=t(e);return Og=r,Og}var Cg,a3;function m6(){if(a3)return Cg;a3=1;var e=kb(),t=lh();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,c){o[++a]=i(s,l,c)}),o}return Cg=r,Cg}var jg,o3;function Bz(){if(o3)return jg;o3=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return jg=e,jg}var kg,s3;function $z(){if(s3)return kg;s3=1;var e=Uc();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,c=n===null,u=n===n,f=e(n);if(!c&&!f&&!s&&r>n||s&&l&&u&&!c&&!f||a&&l&&u||!i&&u||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||c&&i&&o||!l&&o||!u)return-1}return 0}return kg=t,kg}var Lg,l3;function qz(){if(l3)return Lg;l3=1;var e=$z();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,c=i.length;++a<l;){var u=e(o[a],s[a]);if(u){if(a>=c)return u;var f=i[a];return u*(f=="desc"?-1:1)}}return r.index-n.index}return Lg=t,Lg}var Ig,c3;function Uz(){if(c3)return Ig;c3=1;var e=yb(),t=xb(),r=Wa(),n=m6(),i=Bz(),a=n6(),o=qz(),s=Wc(),l=gi();function c(u,f,d){f.length?f=e(f,function(p){return l(p)?function(v){return t(v,p.length===1?p[0]:p)}:p}):f=[s];var h=-1;f=e(f,a(r));var g=n(u,function(p,v,y){var b=e(f,function(_){return _(p)});return{criteria:b,index:++h,value:p}});return i(g,function(p,v){return o(p,v,d)})}return Ig=c,Ig}var Fg,u3;function zz(){if(u3)return Fg;u3=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 Fg=e,Fg}var Rg,f3;function Wz(){if(f3)return Rg;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),c=Array(l);++s<l;)c[s]=o[i+s];s=-1;for(var u=Array(i+1);++s<i;)u[s]=o[s];return u[i]=a(c),e(n,this,u)}}return Rg=r,Rg}var Mg,h3;function Hz(){if(h3)return Mg;h3=1;function e(t){return function(){return t}}return Mg=e,Mg}var Dg,d3;function v6(){if(d3)return Dg;d3=1;var e=il(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Dg=t,Dg}var Bg,p3;function Gz(){if(p3)return Bg;p3=1;var e=Hz(),t=v6(),r=Wc(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Bg=n,Bg}var $g,m3;function Vz(){if(m3)return $g;m3=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 $g=n,$g}var qg,v3;function Yz(){if(v3)return qg;v3=1;var e=Gz(),t=Vz(),r=t(e);return qg=r,qg}var Ug,g3;function Kz(){if(g3)return Ug;g3=1;var e=Wc(),t=Wz(),r=Yz();function n(i,a){return r(t(i,a,e),i+"")}return Ug=n,Ug}var zg,y3;function Ap(){if(y3)return zg;y3=1;var e=mb(),t=lh(),r=Ob(),n=fs();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 zg=i,zg}var Wg,x3;function Xz(){if(x3)return Wg;x3=1;var e=d6(),t=Uz(),r=Kz(),n=Ap(),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 Wg=i,Wg}var Jz=Xz();const Lb=ur(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 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 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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)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 Hg(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)&&pn(e[0])&&pn(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,c=l===void 0?{}:l,u=t.payload,f=t.formatter,d=t.itemSorter,h=t.wrapperClassName,g=t.labelClassName,p=t.label,v=t.labelFormatter,y=t.accessibilityLayer,b=y===void 0?!1:y,_=function(){if(u&&u.length){var P={padding:0,margin:0},M=(d?Lb(u,d):u).map(function(U,J){if(U.type==="none")return null;var q=Hg({display:"block",paddingTop:4,paddingBottom:4,color:U.color||"#000"},s),W=U.formatter||f||oW,ee=U.value,Z=U.name,Q=ee,ce=Z;if(W&&Q!=null&&ce!=null){var N=W(ee,Z,U,J,u);if(Array.isArray(N)){var I=Zz(N,2);Q=I[0],ce=I[1]}else Q=N}return V.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(J),style:q},pn(ce)?V.createElement("span",{className:"recharts-tooltip-item-name"},ce):null,pn(ce)?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"},U.unit||""))});return V.createElement("ul",{className:"recharts-tooltip-item-list",style:P},M)}return null},A=Hg({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),S=Hg({margin:0},c),O=!Ut(p),T=O?p:"",k=Dt("recharts-default-tooltip",h),L=Dt("recharts-tooltip-label",g);O&&v&&u!==void 0&&u!==null&&(T=v(p,u));var B=b?{role:"status","aria-live":"assertive"}:{};return V.createElement("div",kx({className:k,style:A},B),V.createElement("p",{className:L,style:S},V.isValidElement(T)?T:"".concat(T)),_())};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 _0(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=cW(e,"string");return xf(t)=="symbol"?t:t+""}function cW(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 Ou="recharts-tooltip-wrapper",uW={visibility:"hidden"};function fW(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Dt(Ou,_0(_0(_0(_0({},"".concat(Ou,"-right"),nt(r)&&t&&nt(t.x)&&r>=t.x),"".concat(Ou,"-left"),nt(r)&&t&&nt(t.x)&&r<t.x),"".concat(Ou,"-bottom"),nt(n)&&t&&nt(t.y)&&n>=t.y),"".concat(Ou,"-top"),nt(n)&&t&&nt(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,c=e.viewBoxDimension;if(a&&nt(a[n]))return a[n];var u=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?u:f;if(o[n]){var d=u,h=l[n];return d<h?Math.max(f,l[n]):Math.max(u,l[n])}var g=f+s,p=l[n]+c;return g>p?Math.max(u,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,c,u,f;return o.height>0&&o.width>0&&r?(u=_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}),c=hW({translateX:u,translateY:f,useTranslate3d:s})):c=uW,{cssProperties:c,cssClasses:fW({translateX:u,translateY:f,coordinate:r})}}function fc(e){"@babel/helpers - typeof";return fc=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},fc(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){Ix(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 mW(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 vW(e,t,r){return t&&mW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gW(e,t,r){return t=cd(t),yW(e,g6()?Reflect.construct(t,r||[],cd(e).constructor):t.apply(e,r))}function yW(e,t){if(t&&(fc(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 cd(e){return cd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cd(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&&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 Ix(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 fc(t)=="symbol"?t:t+""}function wW(e,t){if(fc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fc(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)),Ix(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Ix(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,c,u;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:(c=(u=r.props.coordinate)===null||u===void 0?void 0:u.y)!==null&&c!==void 0?c:0}})}}),r}return bW(t,e),vW(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,c=i.children,u=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,h=i.offset,g=i.position,p=i.reverseDirection,v=i.useTranslate3d,y=i.viewBox,b=i.wrapperStyle,_=dW({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:h,position:g,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),A=_.cssClasses,S=_.cssProperties,O=A3(A3({transition:d&&a?"transform ".concat(s,"ms ").concat(l):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return V.createElement("div",{tabIndex:-1,className:A,style:O,ref:function(k){n.wrapperNode=k}},c)}}])})(V.PureComponent),SW=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},al={isSsr:SW()};function hc(e){"@babel/helpers - typeof";return hc=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},hc(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 P3(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 PW(e,t,r){return t=ud(t),NW(e,x6()?Reflect.construct(t,r||[],ud(e).constructor):t.apply(e,r))}function NW(e,t){if(t&&(hc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OW(e)}function OW(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 ud(e){return ud=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ud(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&&Fx(e,t)}function Fx(e,t){return Fx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fx(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 hc(t)=="symbol"?t:t+""}function jW(e,t){if(hc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hc(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 da=(function(e){function t(){return AW(this,t),PW(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,c=i.content,u=i.coordinate,f=i.filterNull,d=i.isAnimationActive,h=i.offset,g=i.payload,p=i.payloadUniqBy,v=i.position,y=i.reverseDirection,b=i.useTranslate3d,_=i.viewBox,A=i.wrapperStyle,S=g??[];f&&S.length&&(S=u6(g.filter(function(T){return T.value!=null&&(T.hide!==!0||n.props.includeHidden)}),p,kW));var O=S.length>0;return V.createElement(_W,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:d,active:a,coordinate:u,hasPayload:O,offset:h,position:v,reverseDirection:y,useTranslate3d:b,viewBox:_,wrapperStyle:A},LW(c,P3(P3({},this.props),{},{payload:S})))}}])})(V.PureComponent);Ib(da,"displayName","Tooltip");Ib(da,"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 Gg,N3;function IW(){if(N3)return Gg;N3=1;var e=za(),t=function(){return e.Date.now()};return Gg=t,Gg}var Vg,O3;function FW(){if(O3)return Vg;O3=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Vg=t,Vg}var Yg,C3;function RW(){if(C3)return Yg;C3=1;var e=FW(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Yg=r,Yg}var Kg,j3;function w6(){if(j3)return Kg;j3=1;var e=RW(),t=fs(),r=Uc(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var u=typeof c.valueOf=="function"?c.valueOf():c;c=t(u)?u+"":u}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=a.test(c);return f||o.test(c)?s(c.slice(2),f?2:8):i.test(c)?n:+c}return Kg=l,Kg}var Xg,k3;function MW(){if(k3)return Xg;k3=1;var e=fs(),t=IW(),r=w6(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,c){var u,f,d,h,g,p,v=0,y=!1,b=!1,_=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(c)&&(y=!!c.leading,b="maxWait"in c,d=b?i(r(c.maxWait)||0,l):d,_="trailing"in c?!!c.trailing:_);function A(M){var U=u,J=f;return u=f=void 0,v=M,h=s.apply(J,U),h}function S(M){return v=M,g=setTimeout(k,l),y?A(M):h}function O(M){var U=M-p,J=M-v,q=l-U;return b?a(q,d-J):q}function T(M){var U=M-p,J=M-v;return p===void 0||U>=l||U<0||b&&J>=d}function k(){var M=t();if(T(M))return L(M);g=setTimeout(k,O(M))}function L(M){return g=void 0,_&&u?A(M):(u=f=void 0,h)}function B(){g!==void 0&&clearTimeout(g),v=0,u=p=f=g=void 0}function C(){return g===void 0?h:L(t())}function P(){var M=t(),U=T(M);if(u=arguments,f=this,p=M,U){if(g===void 0)return S(p);if(b)return clearTimeout(g),g=setTimeout(k,l),A(p)}return g===void 0&&(g=setTimeout(k,l)),h}return P.cancel=B,P.flush=C,P}return Xg=o,Xg}var Jg,L3;function DW(){if(L3)return Jg;L3=1;var e=MW(),t=fs(),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 Jg=n,Jg}var BW=DW();const _6=ur(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 S0(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function VW(e){if(Array.isArray(e))return e}var Zg=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,c=e.minWidth,u=c===void 0?0:c,f=e.minHeight,d=e.maxHeight,h=e.children,g=e.debounce,p=g===void 0?0:g,v=e.id,y=e.className,b=e.onResize,_=e.style,A=_===void 0?{}:_,S=V.useRef(null),O=V.useRef();O.current=b,V.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var T=V.useState({containerWidth:i.width,containerHeight:i.height}),k=zW(T,2),L=k[0],B=k[1],C=V.useCallback(function(M,U){B(function(J){var q=Math.round(M),W=Math.round(U);return J.containerWidth===q&&J.containerHeight===W?J:{containerWidth:q,containerHeight:W}})},[]);V.useEffect(function(){var M=function(Z){var Q,ce=Z[0].contentRect,N=ce.width,I=ce.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 U=new ResizeObserver(M),J=S.current.getBoundingClientRect(),q=J.width,W=J.height;return C(q,W),U.observe(S.current),function(){U.disconnect()}},[C,p]);var P=V.useMemo(function(){var M=L.containerWidth,U=L.containerHeight;if(M<0||U<0)return null;vo(Is(o)||Is(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=Is(o)?M:o,q=Is(l)?U:l;r&&r>0&&(J?q=J/r:q&&(J=q*r),d&&q>d&&(q=d)),vo(J>0||q>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,q,o,l,u,f,r);var W=!Array.isArray(h)&&mo(h.type).endsWith("Chart");return V.Children.map(h,function(ee){return V.isValidElement(ee)?V.cloneElement(ee,S0({width:J,height:q},W?{style:S0({height:"100%",width:"100%",maxHeight:q,maxWidth:J},ee.props.style)}:{})):ee})},[r,h,l,d,f,u,L,o]);return V.createElement("div",{id:v?"".concat(v):void 0,className:Dt("recharts-responsive-container",y),style:S0(S0({},A),{},{width:o,height:l,minWidth:u,minHeight:f,maxHeight:d}),ref:S},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 Rx(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){YW(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 YW(e,t,r){return t=KW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KW(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=Rx({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Qu=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=Rx(Rx({},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 fd(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)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%]*)/,cH=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,uH=/(-?\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 A0=(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!==""&&!cH.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=uH.exec(r))!==null&&n!==void 0?n:[],a=fd(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=fd(n,4),a=i[1],o=i[2],s=i[3],l=A0.parse(a??""),c=A0.parse(s??""),u=o==="*"?l.multiply(c):l.divide(c);if(u.isNaN())return Vl;t=t.replace($3,u.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,d=(f=q3.exec(t))!==null&&f!==void 0?f:[],h=fd(d,4),g=h[1],p=h[2],v=h[3],y=A0.parse(g??""),b=A0.parse(v??""),_=p==="+"?y.add(b):y.subtract(b);if(_.isNaN())return Vl;t=t.replace(q3,_.toString())}return t}var U3=/\(([^()]*)\)/;function dH(e){for(var t=e;t.includes("(");){var r=U3.exec(t),n=fd(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 mH(e){try{return pH(e)}catch{return Vl}}function Qg(e){var t=mH(e.slice(5,-1));return t===Vl?"":t}var vH=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],gH=["dx","dy","angle","className","breakAll"];function Mx(){return Mx=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},Mx.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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function _H(e){if(Array.isArray(e))return e}var E6=/[ \f\n\r\t\v\u2028\u2029]+/,P6=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Ut(r)||(n?a=r.toString().split(""):a=r.toString().split(E6));var o=a.map(function(l){return{word:l,width:Qu(l,i).width}}),s=n?0:Qu(" ",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,c=t.breakAll,u=nt(o),f=s,d=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce(function(q,W){var ee=W.word,Z=W.width,Q=q[q.length-1];if(Q&&(i==null||a||Q.width+Z+n<Number(i)))Q.words.push(ee),Q.width+=Z+n;else{var ce={words:[ee],width:Z};q.push(ce)}return q},[])},h=d(r),g=function(J){return J.reduce(function(q,W){return q.width>W.width?q:W})};if(!u)return h;for(var p="…",v=function(J){var q=f.slice(0,J),W=P6({breakAll:c,style:l,children:q+p}).wordsWithComputedWidth,ee=d(W),Z=ee.length>o||g(ee).width>Number(i);return[Z,ee]},y=0,b=f.length-1,_=0,A;y<=b&&_<=f.length-1;){var S=Math.floor((y+b)/2),O=S-1,T=v(O),k=W3(T,2),L=k[0],B=k[1],C=v(S),P=W3(C,1),M=P[0];if(!L&&!M&&(y=S+1),L&&M&&(b=S-1),!L&&M){A=B;break}_++}return A||h},G3=function(t){var r=Ut(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,c,u=P6({breakAll:o,children:i,style:a});if(u){var f=u.wordsWithComputedWidth,d=u.spaceWidth;l=f,c=d}else return G3(i);return SH({breakAll:o,children:i,maxLines:s,style:a},l,c,r,n)}return G3(i)},V3="#808080",dc=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,c=l===void 0?"0.71em":l,u=t.scaleToFit,f=u===void 0?!1:u,d=t.textAnchor,h=d===void 0?"start":d,g=t.verticalAnchor,p=g===void 0?"end":g,v=t.fill,y=v===void 0?V3:v,b=z3(t,vH),_=V.useMemo(function(){return AH({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),A=b.dx,S=b.dy,O=b.angle,T=b.className,k=b.breakAll,L=z3(b,gH);if(!pn(n)||!pn(a))return null;var B=n+(nt(A)?A:0),C=a+(nt(S)?S:0),P;switch(p){case"start":P=Qg("calc(".concat(c,")"));break;case"middle":P=Qg("calc(".concat((_.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:P=Qg("calc(".concat(_.length-1," * -").concat(s,")"));break}var M=[];if(f){var U=_[0].width,J=b.width;M.push("scale(".concat((nt(J)?J/U:1)/U,")"))}return O&&M.push("rotate(".concat(O,", ").concat(B,", ").concat(C,")")),M.length&&(L.transform=M.join(" ")),V.createElement("text",Mx({},yt(L,!0),{x:B,y:C,className:Dt("recharts-text",T),textAnchor:h,fill:y.includes("url")?V3:y}),_.map(function(q,W){var ee=q.words.join(k?"":" ");return V.createElement("tspan",{x:B,dy:W===0?P:s,key:"".concat(ee,"-").concat(W)},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,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<0?c=f+1:u=f}while(c<u)}return c}function a(s,l,c=0,u=s.length){if(c<u){if(t(l,l)!==0)return u;do{const f=c+u>>>1;r(s[f],l)<=0?c=f+1:u=f}while(c<u)}return c}function o(s,l,c=0,u=s.length){const f=i(s,l,c,u-1);return f>c&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function EH(){return 0}function N6(e){return e===null?NaN:+e}function*PH(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const NH=Fb(rs),ch=NH.right;Fb(N6).center;class Y3 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(K3(this,t))}has(t){return super.has(K3(this,t))}set(t,r){return super.set(OH(this,t),r)}delete(t){return super.delete(CH(this,t))}}function K3({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function OH({_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 O6;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 O6(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 hd(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,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),l=Math.round(t*c),s/c<e&&++s,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),l=Math.round(t/c),s*c<e&&++s,l*c>t&&--l),l<s&&.5<=r&&r<2?hd(e,t,r*2):[s,l,c]}function Dx(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?hd(t,e,r):hd(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let c=0;c<s;++c)l[c]=(a-c)/-o;else for(let c=0;c<s;++c)l[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)l[c]=(i+c)/-o;else for(let c=0;c<s;++c)l[c]=(i+c)*o;return l}function Bx(e,t,r){return t=+t,e=+e,r=+r,hd(e,t,r)[2]}function $x(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Bx(t,e,r):Bx(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?O6:kH(i);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/l+d)),g=Math.min(n,Math.floor(t+(l-c)*f/l+d));C6(e,t,h,g,i)}const a=e[t];let o=r,s=n;for(Cu(e,r,t),i(e[n],a)>0&&Cu(e,r,n);o<s;){for(Cu(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Cu(e,r,s):(++s,Cu(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Cu(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function RH(e,t,r){if(e=Float64Array.from(PH(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=N6){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 Qi(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function No(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 qx=Symbol("implicit");function Rb(){var e=new Y3,t=[],r=[],n=qx;function i(a){let o=e.get(a);if(o===void 0){if(n!==qx)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 Y3;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)},Qi.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,c=0,u=.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+c*2),s&&(a=Math.floor(a)),g+=(p-g-a*(d-l))*u,o=a*(1-l),s&&(g=Math.round(g),o=Math.round(o));var v=DH(d).map(function(y){return g+a*y});return r(h?v.reverse():v)}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,c=+d),f()):l},e.paddingInner=function(d){return arguments.length?(l=Math.min(1,d),f()):l},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),f()):u},e.copy=function(){return Sf(t(),[n,i]).round(s).paddingInner(l).paddingOuter(c).align(u)},Qi.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,dd=1/Af,ic="\\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\\(${ic},${ic},${ic}\\)$`),qH=new RegExp(`^rgb\\(${Ma},${Ma},${Ma}\\)$`),UH=new RegExp(`^rgba\\(${ic},${ic},${ic},${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 fi(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?T0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?T0(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 fi(t[1],t[2],t[3],1):(t=qH.exec(e))?new fi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=UH.exec(e))?T0(t[1],t[2],t[3],t[4]):(t=zH.exec(e))?T0(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 fi(NaN,NaN,NaN,0):null}function tA(e){return new fi(e>>16&255,e>>8&255,e&255,1)}function T0(e,t,r,n){return n<=0&&(e=t=r=NaN),new fi(e,t,r,n)}function YH(e){return e instanceof uh||(e=Ef(e)),e?(e=e.rgb(),new fi(e.r,e.g,e.b,e.opacity)):new fi}function Ux(e,t,r,n){return arguments.length===1?YH(e):new fi(e,t,r,n??1)}function fi(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Mb(fi,Ux,k6(uh,{brighter(e){return e=e==null?dd:Math.pow(dd,e),new fi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Af:Math.pow(Af,e),new fi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new fi(Ws(this.r),Ws(this.g),Ws(this.b),pd(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:KH,formatRgb:nA,toString:nA}));function rA(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}`}function KH(){return`#${Fs(this.r)}${Fs(this.g)}${Fs(this.b)}${Fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function nA(){const e=pd(this.opacity);return`${e===1?"rgb(":"rgba("}${Ws(this.r)}, ${Ws(this.g)}, ${Ws(this.b)}${e===1?")":`, ${e})`}`}function pd(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ws(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fs(e){return e=Ws(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 ga(e,t,r,n)}function L6(e){if(e instanceof ga)return new ga(e.h,e.s,e.l,e.opacity);if(e instanceof uh||(e=Ef(e)),!e)return new ga;if(e instanceof ga)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 ga(o,s,l,e.opacity)}function XH(e,t,r,n){return arguments.length===1?L6(e):new ga(e,t,r,n??1)}function ga(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Mb(ga,XH,k6(uh,{brighter(e){return e=e==null?dd:Math.pow(dd,e),new ga(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Af:Math.pow(Af,e),new ga(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 fi(ey(e>=240?e-240:e+120,i,n),ey(e,i,n),ey(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new ga(aA(this.h),E0(this.s),E0(this.l),pd(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=pd(this.opacity);return`${e===1?"hsl(":"hsla("}${aA(this.h)}, ${E0(this.s)*100}%, ${E0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function aA(e){return e=(e||0)%360,e<0?e+360:e}function E0(e){return Math.max(0,Math.min(1,e||0))}function ey(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=Ux(i)).r,(a=Ux(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),c=I6(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=s(u),i.b=l(u),i.opacity=c(u),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]=Hc(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 md(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]=Hc(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var zx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ty=new RegExp(zx.source,"g");function aG(e){return function(){return e}}function oG(e){return function(t){return e(t)+""}}function sG(e,t){var r=zx.lastIndex=ty.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=zx.exec(e))&&(i=ty.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:md(n,i)})),r=ty.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(c){for(var u=0,f;u<t;++u)s[(f=l[u]).i]=f.x(c);return s.join("")})}function Hc(e,t){var r=typeof t,n;return t==null||r==="boolean"?Db(t):(r==="number"?md: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:md)(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=Hc);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 cG(e){return function(){return e}}function vd(e){return+e}var sA=[0,1];function ri(e){return e}function Wx(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:cG(isNaN(t)?NaN:.5)}function uG(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=Wx(i,n),a=r(o,a)):(n=Wx(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]=Wx(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=ch(e,s,1,n)-1;return a[l](i[l](s))}}function fh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Tp(){var e=sA,t=sA,r=Hc,n,i,a,o=ri,s,l,c;function u(){var d=Math.min(e.length,t.length);return o!==ri&&(o=uG(e[0],e[d-1])),s=d>2?hG:fG,l=c=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((c||(c=s(t,e.map(n),md)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,vd),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),r=Bb,u()},f.clamp=function(d){return arguments.length?(o=d?!0:ri,u()):o!==ri},f.interpolate=function(d){return arguments.length?(r=d,u()):r},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return n=d,i=h,u()}}function $b(){return Tp()(ri,ri)}function dG(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gd(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 pc(e){return e=gd(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 mG(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var vG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pf(e){if(!(t=vG.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]})}Pf.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 yd;function yG(e,t){var r=gd(e,t);if(!r)return yd=void 0,e.toPrecision(t);var n=r[0],i=r[1],a=i-(yd=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")+gd(e,Math.max(0,t+a-1))[0]}function lA(e,t){var r=gd(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 cA={"%":(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 uA(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?uA: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?uA:mG(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 c(f,d){f=Pf(f);var h=f.fill,g=f.align,p=f.sign,v=f.symbol,y=f.zero,b=f.width,_=f.comma,A=f.precision,S=f.trim,O=f.type;O==="n"?(_=!0,O="g"):cA[O]||(A===void 0&&(A=12),S=!0,O="g"),(y||h==="0"&&g==="=")&&(y=!0,h="0",g="=");var T=(d&&d.prefix!==void 0?d.prefix:"")+(v==="$"?r:v==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),k=(v==="$"?n:/[%p]/.test(O)?o:"")+(d&&d.suffix!==void 0?d.suffix:""),L=cA[O],B=/[defgprs%]/.test(O);A=A===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function C(P){var M=T,U=k,J,q,W;if(O==="c")U=L(P)+U,P="";else{P=+P;var ee=P<0||1/P<0;if(P=isNaN(P)?l:L(Math.abs(P),A),S&&(P=gG(P)),ee&&+P==0&&p!=="+"&&(ee=!1),M=(ee?p==="("?p:s:p==="-"||p==="("?"":p)+M,U=(O==="s"&&!isNaN(P)&&yd!==void 0?hA[8+yd/3]:"")+U+(ee&&p==="("?")":""),B){for(J=-1,q=P.length;++J<q;)if(W=P.charCodeAt(J),48>W||W>57){U=(W===46?i+P.slice(J+1):P.slice(J))+U,P=P.slice(0,J);break}}}_&&!y&&(P=t(P,1/0));var Z=M.length+P.length+U.length,Q=Z<b?new Array(b-Z+1).join(h):"";switch(_&&y&&(P=t(Q+P,Q.length?b-U.length:1/0),Q=""),g){case"<":P=M+P+U+Q;break;case"=":P=M+Q+P+U;break;case"^":P=Q.slice(0,Z=Q.length>>1)+M+P+U+Q.slice(Z);break;default:P=Q+M+P+U;break}return a(P)}return C.toString=function(){return f+""},C}function u(f,d){var h=Math.max(-8,Math.min(8,Math.floor(pc(d)/3)))*3,g=Math.pow(10,-h),p=c((f=Pf(f),f.type="f",f),{suffix:hA[8+h/3]});return function(v){return p(g*v)}}return{format:c,formatPrefix:u}}var P0,Ub,F6;bG({thousands:",",grouping:[3],currency:["$",""]});function bG(e){return P0=xG(e),Ub=P0.format,F6=P0.formatPrefix,P0}function wG(e){return Math.max(0,-pc(Math.abs(e)))}function _G(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pc(t)/3)))*3-pc(Math.abs(e)))}function SG(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pc(t)-pc(e))+1}function R6(e,t,r,n){var i=$x(e,t,r),a;switch(n=Pf(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 hs(e){var t=e.domain;return e.ticks=function(r){var n=t();return Dx(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,c,u=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);u-- >0;){if(c=Bx(o,s,r),c===l)return n[i]=o,n[a]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function xd(){var e=$b();return e.copy=function(){return fh(e,xd())},Qi.apply(e,arguments),hs(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,vd),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,vd):[0,1],hs(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 PG(e){return e===10?EG:e===Math.E?Math.exp:t=>Math.pow(e,t)}function NG(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 mA(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=NG(n),a=PG(n),r()[0]<0?(i=mA(i),a=mA(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 c=l[0],u=l[l.length-1];const f=u<c;f&&([c,u]=[u,c]);let d=i(c),h=i(u),g,p;const v=s==null?10:+s;let y=[];if(!(n%1)&&h-d<v){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(g=1;g<n;++g)if(p=d<0?g/a(-d):g*a(d),!(p<c)){if(p>u)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<c)){if(p>u)break;y.push(p)}y.length*2<v&&(y=Dx(c,u,v))}else y=Dx(d,h,Math.min(h-d,v)).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=Pf(l)).precision==null&&(l.trim=!0),l=Ub(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/a(Math.round(i(u)));return f*n<n-.5&&(f*=n),f<=c?l(u):""}},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(Tp()).domain([1,10]);return e.copy=()=>fh(e,B6()).base(e.base()),Qi.apply(e,arguments),e}function vA(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(vA(t),gA(t));return r.constant=function(n){return arguments.length?e(vA(t=+n),gA(t)):t},hs(r)}function $6(){var e=Wb(Tp());return e.copy=function(){return fh(e,$6()).constant(e.constant())},Qi.apply(e,arguments)}function yA(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function OG(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(ri,ri),r=1;function n(){return r===1?e(ri,ri):r===.5?e(OG,CG):e(yA(r),yA(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},hs(t)}function Gb(){var e=Hb(Tp());return e.copy=function(){return fh(e,Gb()).exponent(e.exponent())},Qi.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,vd)).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)},Qi.apply(i,arguments),hs(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[ch(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)},Qi.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[ch(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 c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},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)},Qi.apply(hs(o),arguments)}function W6(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[ch(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)},Qi.apply(i,arguments)}const ry=new Date,ny=new Date;function mn(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 c;do l.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return l},i.filter=a=>mn(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)=>(ry.setTime(+a),ny.setTime(+o),e(ry),e(ny),Math.floor(r(ry,ny))),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 bd=mn(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?mn(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bd);bd.range;const lo=1e3,Yi=lo*60,co=Yi*60,wo=co*24,Vb=wo*7,bA=wo*30,iy=wo*365,Rs=mn(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lo)},(e,t)=>(t-e)/lo,e=>e.getUTCSeconds());Rs.range;const Yb=mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lo)},(e,t)=>{e.setTime(+e+t*Yi)},(e,t)=>(t-e)/Yi,e=>e.getMinutes());Yb.range;const Kb=mn(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Yi)},(e,t)=>(t-e)/Yi,e=>e.getUTCMinutes());Kb.range;const Xb=mn(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lo-e.getMinutes()*Yi)},(e,t)=>{e.setTime(+e+t*co)},(e,t)=>(t-e)/co,e=>e.getHours());Xb.range;const Jb=mn(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*co)},(e,t)=>(t-e)/co,e=>e.getUTCHours());Jb.range;const hh=mn(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yi)/wo,e=>e.getDate()-1);hh.range;const Ep=mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wo,e=>e.getUTCDate()-1);Ep.range;const H6=mn(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/wo,e=>Math.floor(e/wo));H6.range;function ol(e){return mn(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())*Yi)/Vb)}const Pp=ol(0),wd=ol(1),LG=ol(2),IG=ol(3),mc=ol(4),FG=ol(5),RG=ol(6);Pp.range;wd.range;LG.range;IG.range;mc.range;FG.range;RG.range;function sl(e){return mn(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 Np=sl(0),_d=sl(1),MG=sl(2),DG=sl(3),vc=sl(4),BG=sl(5),$G=sl(6);Np.range;_d.range;MG.range;DG.range;vc.range;BG.range;$G.range;const Zb=mn(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=mn(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 _o=mn(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());_o.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:mn(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)});_o.range;const So=mn(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());So.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:mn(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)});So.range;function G6(e,t,r,n,i,a){const o=[[Rs,1,lo],[Rs,5,5*lo],[Rs,15,15*lo],[Rs,30,30*lo],[a,1,Yi],[a,5,5*Yi],[a,15,15*Yi],[a,30,30*Yi],[i,1,co],[i,3,3*co],[i,6,6*co],[i,12,12*co],[n,1,wo],[n,2,2*wo],[r,1,Vb],[t,1,bA],[t,3,3*bA],[e,1,iy]];function s(c,u,f){const d=u<c;d&&([c,u]=[u,c]);const h=f&&typeof f.range=="function"?f:l(c,u,f),g=h?h.range(c,+u+1):[];return d?g.reverse():g}function l(c,u,f){const d=Math.abs(u-c)/f,h=Fb(([,,v])=>v).right(o,d);if(h===o.length)return e.every($x(c/iy,u/iy,f));if(h===0)return bd.every(Math.max($x(c,u,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(So,Qb,Np,H6,Jb,Kb),[zG,WG]=G6(_o,Zb,Pp,hh,Xb,Yb);function ay(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 oy(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 ju(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,c=ku(i),u=Lu(i),f=ku(a),d=Lu(a),h=ku(o),g=Lu(o),p=ku(s),v=Lu(s),y=ku(l),b=Lu(l),_={a:W,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:mV,M:vV,p:ce,q:N,Q:OA,s:CA,S:gV,u:yV,U:xV,V:bV,w:wV,W:_V,x:null,X:null,y:SV,Y:TV,Z:PV,"%":NA},A={a:I,A:R,b:D,B:G,c:null,d:PA,e:PA,f:jV,g:qV,G:zV,H:NV,I:OV,j:CV,L:K6,m:kV,M:LV,p:fe,q:ae,Q:OA,s:CA,S:IV,u:FV,U:RV,V:MV,w:DV,W:BV,x:null,X:null,y:$V,Y:UV,Z:WV,"%":NA},S={a:B,A:C,b:P,B:M,c:U,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:cV,s:uV,S:aV,u:XG,U:JG,V:ZG,w:KG,W:QG,x:J,X:q,y:SA,Y:_A,Z:eV,"%":lV};_.x=O(r,_),_.X=O(n,_),_.c=O(t,_),A.x=O(r,A),A.X=O(n,A),A.c=O(t,A);function O(ne,ve){return function(_e){var se=[],Fe=-1,Ae=0,Ee=ne.length,le,De,tt;for(_e instanceof Date||(_e=new Date(+_e));++Fe<Ee;)ne.charCodeAt(Fe)===37&&(se.push(ne.slice(Ae,Fe)),(De=wA[le=ne.charAt(++Fe)])!=null?le=ne.charAt(++Fe):De=le==="e"?" ":"0",(tt=ve[le])&&(le=tt(_e,De)),se.push(le),Ae=Fe+1);return se.push(ne.slice(Ae,Fe)),se.join("")}}function T(ne,ve){return function(_e){var se=ju(1900,void 0,1),Fe=k(se,ne,_e+="",0),Ae,Ee;if(Fe!=_e.length)return null;if("Q"in se)return new Date(se.Q);if("s"in se)return new Date(se.s*1e3+("L"in se?se.L:0));if(ve&&!("Z"in se)&&(se.Z=0),"p"in se&&(se.H=se.H%12+se.p*12),se.m===void 0&&(se.m="q"in se?se.q:0),"V"in se){if(se.V<1||se.V>53)return null;"w"in se||(se.w=1),"Z"in se?(Ae=oy(ju(se.y,0,1)),Ee=Ae.getUTCDay(),Ae=Ee>4||Ee===0?_d.ceil(Ae):_d(Ae),Ae=Ep.offset(Ae,(se.V-1)*7),se.y=Ae.getUTCFullYear(),se.m=Ae.getUTCMonth(),se.d=Ae.getUTCDate()+(se.w+6)%7):(Ae=ay(ju(se.y,0,1)),Ee=Ae.getDay(),Ae=Ee>4||Ee===0?wd.ceil(Ae):wd(Ae),Ae=hh.offset(Ae,(se.V-1)*7),se.y=Ae.getFullYear(),se.m=Ae.getMonth(),se.d=Ae.getDate()+(se.w+6)%7)}else("W"in se||"U"in se)&&("w"in se||(se.w="u"in se?se.u%7:"W"in se?1:0),Ee="Z"in se?oy(ju(se.y,0,1)).getUTCDay():ay(ju(se.y,0,1)).getDay(),se.m=0,se.d="W"in se?(se.w+6)%7+se.W*7-(Ee+5)%7:se.w+se.U*7-(Ee+6)%7);return"Z"in se?(se.H+=se.Z/100|0,se.M+=se.Z%100,oy(se)):ay(se)}}function k(ne,ve,_e,se){for(var Fe=0,Ae=ve.length,Ee=_e.length,le,De;Fe<Ae;){if(se>=Ee)return-1;if(le=ve.charCodeAt(Fe++),le===37){if(le=ve.charAt(Fe++),De=S[le in wA?ve.charAt(Fe++):le],!De||(se=De(ne,_e,se))<0)return-1}else if(le!=_e.charCodeAt(se++))return-1}return se}function L(ne,ve,_e){var se=c.exec(ve.slice(_e));return se?(ne.p=u.get(se[0].toLowerCase()),_e+se[0].length):-1}function B(ne,ve,_e){var se=h.exec(ve.slice(_e));return se?(ne.w=g.get(se[0].toLowerCase()),_e+se[0].length):-1}function C(ne,ve,_e){var se=f.exec(ve.slice(_e));return se?(ne.w=d.get(se[0].toLowerCase()),_e+se[0].length):-1}function P(ne,ve,_e){var se=y.exec(ve.slice(_e));return se?(ne.m=b.get(se[0].toLowerCase()),_e+se[0].length):-1}function M(ne,ve,_e){var se=p.exec(ve.slice(_e));return se?(ne.m=v.get(se[0].toLowerCase()),_e+se[0].length):-1}function U(ne,ve,_e){return k(ne,t,ve,_e)}function J(ne,ve,_e){return k(ne,r,ve,_e)}function q(ne,ve,_e){return k(ne,n,ve,_e)}function W(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 ce(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 fe(ne){return i[+(ne.getUTCHours()>=12)]}function ae(ne){return 1+~~(ne.getUTCMonth()/3)}return{format:function(ne){var ve=O(ne+="",_);return ve.toString=function(){return ne},ve},parse:function(ne){var ve=T(ne+="",!1);return ve.toString=function(){return ne},ve},utcFormat:function(ne){var ve=O(ne+="",A);return ve.toString=function(){return ne},ve},utcParse:function(ne){var ve=T(ne+="",!0);return ve.toString=function(){return ne},ve}}}var wA={"-":"",_:" ",0:"0"},Sn=/^\s*\d+/,GG=/^%/,VG=/[\\^$*+?|[\]().{}]/g;function Zt(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 YG(e){return e.replace(VG,"\\$&")}function ku(e){return new RegExp("^(?:"+e.map(YG).join("|")+")","i")}function Lu(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function KG(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function XG(e,t,r){var n=Sn.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function JG(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ZG(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function QG(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function _A(e,t,r){var n=Sn.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function SA(e,t,r){var n=Sn.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=Sn.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=Sn.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=Sn.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function nV(e,t,r){var n=Sn.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=Sn.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function iV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function aV(e,t,r){var n=Sn.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function oV(e,t,r){var n=Sn.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function sV(e,t,r){var n=Sn.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 cV(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function uV(e,t,r){var n=Sn.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function EA(e,t){return Zt(e.getDate(),t,2)}function fV(e,t){return Zt(e.getHours(),t,2)}function hV(e,t){return Zt(e.getHours()%12||12,t,2)}function dV(e,t){return Zt(1+hh.count(_o(e),e),t,3)}function V6(e,t){return Zt(e.getMilliseconds(),t,3)}function pV(e,t){return V6(e,t)+"000"}function mV(e,t){return Zt(e.getMonth()+1,t,2)}function vV(e,t){return Zt(e.getMinutes(),t,2)}function gV(e,t){return Zt(e.getSeconds(),t,2)}function yV(e){var t=e.getDay();return t===0?7:t}function xV(e,t){return Zt(Pp.count(_o(e)-1,e),t,2)}function Y6(e){var t=e.getDay();return t>=4||t===0?mc(e):mc.ceil(e)}function bV(e,t){return e=Y6(e),Zt(mc.count(_o(e),e)+(_o(e).getDay()===4),t,2)}function wV(e){return e.getDay()}function _V(e,t){return Zt(wd.count(_o(e)-1,e),t,2)}function SV(e,t){return Zt(e.getFullYear()%100,t,2)}function AV(e,t){return e=Y6(e),Zt(e.getFullYear()%100,t,2)}function TV(e,t){return Zt(e.getFullYear()%1e4,t,4)}function EV(e,t){var r=e.getDay();return e=r>=4||r===0?mc(e):mc.ceil(e),Zt(e.getFullYear()%1e4,t,4)}function PV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Zt(t/60|0,"0",2)+Zt(t%60,"0",2)}function PA(e,t){return Zt(e.getUTCDate(),t,2)}function NV(e,t){return Zt(e.getUTCHours(),t,2)}function OV(e,t){return Zt(e.getUTCHours()%12||12,t,2)}function CV(e,t){return Zt(1+Ep.count(So(e),e),t,3)}function K6(e,t){return Zt(e.getUTCMilliseconds(),t,3)}function jV(e,t){return K6(e,t)+"000"}function kV(e,t){return Zt(e.getUTCMonth()+1,t,2)}function LV(e,t){return Zt(e.getUTCMinutes(),t,2)}function IV(e,t){return Zt(e.getUTCSeconds(),t,2)}function FV(e){var t=e.getUTCDay();return t===0?7:t}function RV(e,t){return Zt(Np.count(So(e)-1,e),t,2)}function X6(e){var t=e.getUTCDay();return t>=4||t===0?vc(e):vc.ceil(e)}function MV(e,t){return e=X6(e),Zt(vc.count(So(e),e)+(So(e).getUTCDay()===4),t,2)}function DV(e){return e.getUTCDay()}function BV(e,t){return Zt(_d.count(So(e)-1,e),t,2)}function $V(e,t){return Zt(e.getUTCFullYear()%100,t,2)}function qV(e,t){return e=X6(e),Zt(e.getUTCFullYear()%100,t,2)}function UV(e,t){return Zt(e.getUTCFullYear()%1e4,t,4)}function zV(e,t){var r=e.getUTCDay();return e=r>=4||r===0?vc(e):vc.ceil(e),Zt(e.getUTCFullYear()%1e4,t,4)}function WV(){return"+0000"}function NA(){return"%"}function OA(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,c){var u=$b(),f=u.invert,d=u.domain,h=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),b=c("%b %d"),_=c("%B"),A=c("%Y");function S(O){return(l(O)<O?h:s(O)<O?g:o(O)<O?p:a(O)<O?v:n(O)<O?i(O)<O?y:b:r(O)<O?_:A)(O)}return u.invert=function(O){return new Date(f(O))},u.domain=function(O){return arguments.length?d(Array.from(O,VV)):d().map(GV)},u.ticks=function(O){var T=d();return e(T[0],T[T.length-1],O??10)},u.tickFormat=function(O,T){return T==null?S:c(T)},u.nice=function(O){var T=d();return(!O||typeof O.range!="function")&&(O=t(T[0],T[T.length-1],O??10)),O?d(D6(T,O)):u},u.copy=function(){return fh(u,e5(e,t,r,n,i,a,o,s,l,c))},u}function YV(){return Qi.apply(e5(zG,WG,_o,Zb,Pp,hh,Xb,Yb,Rs,J6).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function KV(){return Qi.apply(e5(qG,UG,So,Qb,Np,Ep,Jb,Kb,Rs,Z6).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Op(){var e=0,t=1,r,n,i,a,o=ri,s=!1,l;function c(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))}c.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(d){var h,g;return arguments.length?([h,g]=d,o=f(h,g),c):[o(0),o(1)]}}return c.range=u(Hc),c.rangeRound=u(Bb),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),c}}function ds(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Q6(){var e=hs(Op()(ri));return e.copy=function(){return ds(e,Q6())},No.apply(e,arguments)}function e8(){var e=zb(Op()).domain([1,10]);return e.copy=function(){return ds(e,e8()).base(e.base())},No.apply(e,arguments)}function t8(){var e=Wb(Op());return e.copy=function(){return ds(e,t8()).constant(e.constant())},No.apply(e,arguments)}function t5(){var e=Hb(Op());return e.copy=function(){return ds(e,t5()).exponent(e.exponent())},No.apply(e,arguments)}function XV(){return t5.apply(null,arguments).exponent(.5)}function r8(){var e=[],t=ri;function r(n){if(n!=null&&!isNaN(n=+n))return t((ch(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)},No.apply(r,arguments)}function Cp(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,c=ri,u,f=!1,d;function h(p){return isNaN(p=+p)?d:(p=.5+((p=+u(p))-a)*(n*p<n*a?s:l),c(f?Math.max(0,Math.min(1,p)):p))}h.domain=function(p){return arguments.length?([e,t,r]=p,i=u(e=+e),a=u(t=+t),o=u(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?(c=p,h):c};function g(p){return function(v){var y,b,_;return arguments.length?([y,b,_]=v,c=lG(p,[y,b,_]),h):[c(0),c(.5),c(1)]}}return h.range=g(Hc),h.rangeRound=g(Bb),h.unknown=function(p){return arguments.length?(d=p,h):d},function(p){return u=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=hs(Cp()(ri));return e.copy=function(){return ds(e,n8())},No.apply(e,arguments)}function i8(){var e=zb(Cp()).domain([.1,1,10]);return e.copy=function(){return ds(e,i8()).base(e.base())},No.apply(e,arguments)}function a8(){var e=Wb(Cp());return e.copy=function(){return ds(e,a8()).constant(e.constant())},No.apply(e,arguments)}function r5(){var e=Hb(Cp());return e.copy=function(){return ds(e,r5()).exponent(e.exponent())},No.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:qx,scaleLinear:xd,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:YV,scaleUtc:KV,tickFormat:R6},Symbol.toStringTag,{value:"Module"}));var sy,kA;function jp(){if(kA)return sy;kA=1;var e=Uc();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(c===void 0?l===l&&!e(l):i(l,c)))var c=l,u=s}return u}return sy=t,sy}var ly,LA;function o8(){if(LA)return ly;LA=1;function e(t,r){return t>r}return ly=e,ly}var cy,IA;function ZV(){if(IA)return cy;IA=1;var e=jp(),t=o8(),r=Wc();function n(i){return i&&i.length?e(i,r,t):void 0}return cy=n,cy}var QV=ZV();const kp=ur(QV);var uy,FA;function s8(){if(FA)return uy;FA=1;function e(t,r){return t<r}return uy=e,uy}var fy,RA;function eY(){if(RA)return fy;RA=1;var e=jp(),t=s8(),r=Wc();function n(i){return i&&i.length?e(i,r,t):void 0}return fy=n,fy}var tY=eY();const Lp=ur(tY);var hy,MA;function rY(){if(MA)return hy;MA=1;var e=yb(),t=Wa(),r=m6(),n=gi();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return hy=i,hy}var dy,DA;function nY(){if(DA)return dy;DA=1;var e=d6(),t=rY();function r(n,i){return e(t(n,i),1)}return dy=r,dy}var iY=nY();const aY=ur(iY);var py,BA;function oY(){if(BA)return py;BA=1;var e=jb();function t(r,n){return e(r,n)}return py=t,py}var sY=oY();const dh=ur(sY);var Gc=1e9,lY={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},i5,Fr=!0,Ji="[DecimalError] ",Hs=Ji+"Invalid argument: ",n5=Ji+"Exponent out of range: ",Vc=Math.floor,Cs=Math.pow,cY=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ji,xn=1e7,kr=7,l8=9007199254740991,Sd=Vc(l8/kr),ht={};ht.absoluteValue=ht.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ht.comparedTo=ht.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};ht.decimalPlaces=ht.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*kr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ht.dividedBy=ht.div=function(e){return go(this,new this.constructor(e))};ht.dividedToIntegerBy=ht.idiv=function(e){var t=this,r=t.constructor;return Er(go(t,new r(e),0,1),r.precision)};ht.equals=ht.eq=function(e){return!this.cmp(e)};ht.exponent=function(){return on(this)};ht.greaterThan=ht.gt=function(e){return this.cmp(e)>0};ht.greaterThanOrEqualTo=ht.gte=function(e){return this.cmp(e)>=0};ht.isInteger=ht.isint=function(){return this.e>this.d.length-2};ht.isNegative=ht.isneg=function(){return this.s<0};ht.isPositive=ht.ispos=function(){return this.s>0};ht.isZero=function(){return this.s===0};ht.lessThan=ht.lt=function(e){return this.cmp(e)<0};ht.lessThanOrEqualTo=ht.lte=function(e){return this.cmp(e)<1};ht.logarithm=ht.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(ji))throw Error(Ji+"NaN");if(r.s<1)throw Error(Ji+(r.s?"NaN":"-Infinity"));return r.eq(ji)?new n(0):(Fr=!1,t=go(Nf(r,a),Nf(e,a),a),Fr=!0,Er(t,i))};ht.minus=ht.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?f8(t,e):c8(t,(e.s=-e.s,e))};ht.modulo=ht.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ji+"NaN");return r.s?(Fr=!1,t=go(r,e,0,1).times(e),Fr=!0,r.minus(t)):Er(new n(r),i)};ht.naturalExponential=ht.exp=function(){return u8(this)};ht.naturalLogarithm=ht.ln=function(){return Nf(this)};ht.negated=ht.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ht.plus=ht.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?c8(t,e):f8(t,(e.s=-e.s,e))};ht.precision=ht.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Hs+e);if(t=on(i)+1,n=i.d.length-1,r=n*kr+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};ht.squareRoot=ht.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(Ji+"NaN")}for(e=on(s),Fr=!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=Vc((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(go(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(Er(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return Fr=!0,Er(n,r)};ht.times=ht.mul=function(e){var t,r,n,i,a,o,s,l,c,u=this,f=u.constructor,d=u.d,h=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,l=d.length,c=h.length,l<c&&(a=d,d=h,h=a,o=l,l=c,c=o),a=[],o=l+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+h[n]*d[i-n-1]+t,a[i--]=s%xn|0,t=s/xn|0;a[i]=(a[i]+t)%xn|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,Fr?Er(e,f.precision):e};ht.toDecimalPlaces=ht.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:($a(e,0,Gc),t===void 0?t=n.rounding:$a(t,0,8),Er(r,e+on(r)+1,t))};ht.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Xs(n,!0):($a(e,0,Gc),t===void 0?t=i.rounding:$a(t,0,8),n=Er(new i(n),e+1,t),r=Xs(n,!0,e+1)),r};ht.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Xs(i):($a(e,0,Gc),t===void 0?t=a.rounding:$a(t,0,8),n=Er(new a(i),e+on(i)+1,t),r=Xs(n.abs(),!1,e+on(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ht.toInteger=ht.toint=function(){var e=this,t=e.constructor;return Er(new t(e),on(e)+1,t.rounding)};ht.toNumber=function(){return+this};ht.toPower=ht.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(ji);if(s=new l(s),!s.s){if(e.s<1)throw Error(Ji+"Infinity");return s}if(s.eq(ji))return s;if(n=l.precision,e.eq(ji))return Er(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=u<0?-u:u)<=l8){for(i=new l(ji),t=Math.ceil(n/kr+4),Fr=!1;r%2&&(i=i.times(s),qA(i.d,t)),r=Vc(r/2),r!==0;)s=s.times(s),qA(s.d,t);return Fr=!0,e.s<0?new l(ji).div(i):Er(i,n)}}else if(a<0)throw Error(Ji+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,Fr=!1,i=e.times(Nf(s,n+c)),Fr=!0,i=u8(i),i.s=a,i};ht.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=on(i),n=Xs(i,r<=a.toExpNeg||r>=a.toExpPos)):($a(e,1,Gc),t===void 0?t=a.rounding:$a(t,0,8),i=Er(new a(i),e,t),r=on(i),n=Xs(i,e<=r||r<=a.toExpNeg,e)),n};ht.toSignificantDigits=ht.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):($a(e,1,Gc),t===void 0?t=n.rounding:$a(t,0,8)),Er(new n(r),e,t)};ht.toString=ht.valueOf=ht.val=ht.toJSON=ht[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=on(e),r=e.constructor;return Xs(e,t<=r.toExpNeg||t>=r.toExpPos)};function c8(e,t){var r,n,i,a,o,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),Fr?Er(t,f):t;if(l=e.d,c=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=c.length):(n=c,i=o,s=l.length),o=Math.ceil(f/kr),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=c.length,s-a<0&&(a=s,n=c,c=l,l=n),r=0;a;)r=(l[--a]=l[a]+c[a]+r)/xn|0,l[a]%=xn;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Fr?Er(t,f):t}function $a(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Hs+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=kr-n.length,r&&(a+=Yo(r)),a+=n;o=e[t],n=o+"",r=kr-n.length,r&&(a+=Yo(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var go=(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%xn|0,o=a/xn|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*xn+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,c,u,f,d,h,g,p,v,y,b,_,A,S,O,T,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(Ji+"Division by zero");for(l=n.e-i.e,T=P.length,S=C.length,h=new L(B),g=h.d=[],c=0;P[c]==(C[c]||0);)++c;if(P[c]>(C[c]||0)&&--l,a==null?b=a=L.precision:o?b=a+(on(n)-on(i))+1:b=a,b<0)return new L(0);if(b=b/kr+2|0,c=0,T==1)for(u=0,P=P[0],b++;(c<S||u)&&b--;c++)_=u*xn+(C[c]||0),g[c]=_/P|0,u=_%P|0;else{for(u=xn/(P[0]+1)|0,u>1&&(P=e(P,u),C=e(C,u),T=P.length,S=C.length),A=T,p=C.slice(0,T),v=p.length;v<T;)p[v++]=0;k=P.slice(),k.unshift(0),O=P[0],P[1]>=xn/2&&++O;do u=0,s=t(P,p,T,v),s<0?(y=p[0],T!=v&&(y=y*xn+(p[1]||0)),u=y/O|0,u>1?(u>=xn&&(u=xn-1),f=e(P,u),d=f.length,v=p.length,s=t(f,p,d,v),s==1&&(u--,r(f,T<d?k:P,d))):(u==0&&(s=u=1),f=P.slice()),d=f.length,d<v&&f.unshift(0),r(p,f,v),s==-1&&(v=p.length,s=t(P,p,T,v),s<1&&(u++,r(p,T<v?k:P,v))),v=p.length):s===0&&(u++,p=[0]),g[c++]=u,s&&p[0]?p[v++]=C[A]||0:(p=[C[A]],v=1);while((A++<S||p[0]!==void 0)&&b--)}return g[0]||g.shift(),h.e=l,Er(h,o?a+on(h)+1:a)}})();function u8(e,t){var r,n,i,a,o,s,l=0,c=0,u=e.constructor,f=u.precision;if(on(e)>16)throw Error(n5+on(e));if(!e.s)return new u(ji);for(Fr=!1,s=f,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Cs(2,c))/Math.LN10*2+5|0,s+=n,r=i=a=new u(ji),u.precision=s;;){if(i=Er(i.times(e),s),r=r.times(++l),o=a.plus(go(i,r,s)),Fa(o.d).slice(0,s)===Fa(a.d).slice(0,s)){for(;c--;)a=Er(a.times(a),s);return u.precision=f,t==null?(Fr=!0,Er(a,f)):a}a=o}}function on(e){for(var t=e.e*kr,r=e.d[0];r>=10;r/=10)t++;return t}function my(e,t,r){if(t>e.LN10.sd())throw Fr=!0,r&&(e.precision=r),Error(Ji+"LN10 precision limit exceeded");return Er(new e(e.LN10),t)}function Yo(e){for(var t="";e--;)t+="0";return t}function Nf(e,t){var r,n,i,a,o,s,l,c,u,f=1,d=10,h=e,g=h.d,p=h.constructor,v=p.precision;if(h.s<1)throw Error(Ji+(h.s?"NaN":"-Infinity"));if(h.eq(ji))return new p(0);if(t==null?(Fr=!1,c=v):c=t,h.eq(10))return t==null&&(Fr=!0),my(p,c);if(c+=d,p.precision=c,r=Fa(g),n=r.charAt(0),a=on(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=on(h),n>1?(h=new p("0."+r),a++):h=new p(n+"."+r.slice(1))}else return l=my(p,c+2,v).times(a+""),h=Nf(new p(n+"."+r.slice(1)),c-d).plus(l),p.precision=v,t==null?(Fr=!0,Er(h,v)):h;for(s=o=h=go(h.minus(ji),h.plus(ji),c),u=Er(h.times(h),c),i=3;;){if(o=Er(o.times(u),c),l=s.plus(go(o,new p(i),c)),Fa(l.d).slice(0,c)===Fa(s.d).slice(0,c))return s=s.times(2),a!==0&&(s=s.plus(my(p,c+2,v).times(a+""))),s=go(s,new p(f),c),p.precision=v,t==null?(Fr=!0,Er(s,v)):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=Vc(r/kr),e.d=[],n=(r+1)%kr,r<0&&(n+=kr),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=kr;n<i;)e.d.push(+t.slice(n,n+=kr));t=t.slice(n),n=kr-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),Fr&&(e.e>Sd||e.e<-Sd))throw Error(n5+r)}else e.s=0,e.e=0,e.d=[0];return e}function Er(e,t,r){var n,i,a,o,s,l,c,u,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=kr,i=t,c=f[u=0];else{if(u=Math.ceil((n+1)/kr),a=f.length,u>=a)return e;for(c=a=f[u],o=1;a>=10;a/=10)o++;n%=kr,i=n-kr+o}if(r!==void 0&&(a=Cs(10,o-i-1),s=c/a%10|0,l=t<0||f[u+1]!==void 0||c%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?c/Cs(10,o-i):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=on(e),f.length=1,t=t-a-1,f[0]=Cs(10,(kr-t%kr)%kr),e.e=Vc(-t/kr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,a=1,u--):(f.length=u+1,a=Cs(10,kr-n),f[u]=i>0?(c/Cs(10,o-i)%Cs(10,i)|0)*a:0),l)for(;;)if(u==0){(f[0]+=a)==xn&&(f[0]=1,++e.e);break}else{if(f[u]+=a,f[u]!=xn)break;f[u--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(Fr&&(e.e>Sd||e.e<-Sd))throw Error(n5+on(e));return e}function f8(e,t){var r,n,i,a,o,s,l,c,u,f,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),Fr?Er(t,h):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=f.length):(r=f,n=c,s=l.length),i=Math.max(Math.ceil(h/kr),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,u=i<s,u&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){u=l[i]<f[i];break}o=0}for(u&&(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]=xn-1;--l[a],l[i]+=xn}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,Fr?Er(t,h):t):new d(0)}function Xs(e,t,r){var n,i=on(e),a=Fa(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Yo(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Yo(-i-1)+a,r&&(n=r-o)>0&&(a+=Yo(n))):i>=o?(a+=Yo(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Yo(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Yo(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(Hs+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(Hs+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,cY.test(a))$A(o,a);else throw Error(Hs+a)}if(i.prototype=ht,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=uY,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 uY(e){if(!e||typeof e!="object")throw Error(Ji+"Object expected");var t,r,n,i=["precision",1,Gc,"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(Vc(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Hs+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Hs+r+": "+n);return this}var i5=h8(lY);ji=new i5(1);const wr=i5;function fY(e){return mY(e)||pY(e)||dY(e)||hY()}function hY(){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 dY(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 pY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mY(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 vY=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)}},gY=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),c=0;c<s;c++)l[c]=arguments[c];var u=i.map(function(f){return p8(f)?l.shift():f});return r.apply(void 0,fY(u).concat(l))}))})},Ip=function(t){return gY(t.length,t)},Gx=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},yY=Ip(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),xY=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return vY;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))}},Vx=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},m8=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 bY(e){var t;return e===0?t=1:t=Math.floor(new wr(e).abs().log(10).toNumber())+1,t}function wY(e,t,r){for(var n=new wr(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var _Y=Ip(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),SY=Ip(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),AY=Ip(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Fp={rangeStep:wY,getDigitCount:bY,interpolateNumber:_Y,uninterpolateNumber:SY,uninterpolateTruncation:AY};function Yx(e){return PY(e)||EY(e)||v8(e)||TY()}function TY(){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 EY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function PY(e){if(Array.isArray(e))return Kx(e)}function Of(e,t){return CY(e)||OY(e,t)||v8(e,t)||NY()}function NY(){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 v8(e,t){if(e){if(typeof e=="string")return Kx(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 Kx(e,t)}}function Kx(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 OY(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 CY(e){if(Array.isArray(e))return e}function g8(e){var t=Of(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 wr(0);var n=Fp.getDigitCount(e.toNumber()),i=new wr(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new wr(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new wr(Math.ceil(l))}function jY(e,t,r){var n=1,i=new wr(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new wr(10).pow(Fp.getDigitCount(e)-1),i=new wr(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new wr(Math.floor(e)))}else e===0?i=new wr(Math.floor((t-1)/2)):r||(i=new wr(Math.floor(e)));var o=Math.floor((t-1)/2),s=xY(yY(function(l){return i.add(new wr(l-o).mul(n)).toNumber()}),Gx);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 wr(0),tickMin:new wr(0),tickMax:new wr(0)};var a=y8(new wr(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new wr(0):(o=new wr(e).add(t).div(2),o=o.sub(new wr(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new wr(t).sub(o).div(a).toNumber()),c=s+l+1;return c>r?x8(e,t,r,n,i+1):(c<r&&(l=t>0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:a,tickMin:o.sub(new wr(s).mul(a)),tickMax:o.add(new wr(l).mul(a))})}function kY(e){var t=Of(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=Of(s,2),c=l[0],u=l[1];if(c===-1/0||u===1/0){var f=u===1/0?[c].concat(Yx(Gx(0,i-1).map(function(){return 1/0}))):[].concat(Yx(Gx(0,i-1).map(function(){return-1/0})),[u]);return r>n?Vx(f):f}if(c===u)return jY(c,i,a);var d=x8(c,u,o,a),h=d.step,g=d.tickMin,p=d.tickMax,v=Fp.rangeStep(g,p.add(new wr(.1).mul(h)),h);return r>n?Vx(v):v}function LY(e,t){var r=Of(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=g8([n,i]),s=Of(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,i];if(l===c)return[l];var u=Math.max(t,2),f=y8(new wr(c).sub(l).div(u-1),a,0),d=[].concat(Yx(Fp.rangeStep(new wr(l),new wr(c).sub(new wr(.99).mul(f)),f)),[c]);return n>i?Vx(d):d}var IY=m8(kY),FY=m8(LY),RY=process.env.NODE_ENV==="production",vy="Invariant failed";function hi(e,t){if(RY)throw new Error(vy);var r=typeof t=="function"?t():t,n=r?"".concat(vy,": ").concat(r):vy;throw new Error(n)}var MY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function gc(e){"@babel/helpers - typeof";return gc=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},gc(e)}function Ad(){return Ad=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},Ad.apply(this,arguments)}function DY(e,t){return UY(e)||qY(e,t)||$Y(e,t)||BY()}function BY(){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 $Y(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 qY(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function UY(e){if(Array.isArray(e))return e}function zY(e,t){if(e==null)return{};var r=WY(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 WY(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 HY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GY(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 VY(e,t,r){return t&&GY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YY(e,t,r){return t=Td(t),KY(e,b8()?Reflect.construct(t,r||[],Td(e).constructor):t.apply(e,r))}function KY(e,t){if(t&&(gc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XY(e)}function XY(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 Td(e){return Td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Td(e)}function JY(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&&Xx(e,t)}function Xx(e,t){return Xx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xx(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=ZY(e,"string");return gc(t)=="symbol"?t:t+""}function ZY(e,t){if(gc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ph=(function(e){function t(){return HY(this,t),YY(this,t,arguments)}return JY(t,e),VY(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,c=n.dataPointFormatter,u=n.xAxis,f=n.yAxis,d=zY(n,MY),h=yt(d,!1);this.props.direction==="x"&&u.type!=="number"&&(process.env.NODE_ENV!=="production"?hi(!1,'ErrorBar requires Axis type property to be "number".'):hi());var g=l.map(function(p){var v=c(p,s),y=v.x,b=v.y,_=v.value,A=v.errorVal;if(!A)return null;var S=[],O,T;if(Array.isArray(A)){var k=DY(A,2);O=k[0],T=k[1]}else O=T=A;if(a==="vertical"){var L=u.scale,B=b+i,C=B+o,P=B-o,M=L(_-O),U=L(_+T);S.push({x1:U,y1:C,x2:U,y2:P}),S.push({x1:M,y1:B,x2:U,y2:B}),S.push({x1:M,y1:C,x2:M,y2:P})}else if(a==="horizontal"){var J=f.scale,q=y+i,W=q-o,ee=q+o,Z=J(_-O),Q=J(_+T);S.push({x1:W,y1:Q,x2:ee,y2:Q}),S.push({x1:q,y1:Z,x2:q,y2:Q}),S.push({x1:W,y1:Z,x2:ee,y2:Z})}return V.createElement(lr,Ad({className:"recharts-errorBar",key:"bar-".concat(S.map(function(ce){return"".concat(ce.x1,"-").concat(ce.x2,"-").concat(ce.y1,"-").concat(ce.y2)}))},h),S.map(function(ce){return V.createElement("line",Ad({},ce,{key:"line-".concat(ce.x1,"-").concat(ce.x2,"-").concat(ce.y1,"-").concat(ce.y2)}))}))});return V.createElement(lr,{className:"recharts-errorBars"},g)}}])})(V.Component);w8(ph,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});w8(ph,"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 Ts(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){QY(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 QY(e,t,r){return t=eK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eK(e){var t=tK(e,"string");return Cf(t)=="symbol"?t:t+""}function tK(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=Pi(r,zs);if(!o)return null;var s=zs.defaultProps,l=s!==void 0?Ts(Ts({},s),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(u,f){var d=f.item,h=f.props,g=h.sectors||h.data||[];return u.concat(g.map(function(p){return{type:o.props.iconType||d.props.legendType,value:p.name,color:p.fill,payload:p}}))},[]):c=(n||[]).map(function(u){var f=u.item,d=f.type.defaultProps,h=d!==void 0?Ts(Ts({},d),f.props):{},g=h.dataKey,p=h.name,v=h.legendType,y=h.hide;return{inactive:y,dataKey:g,type:l.iconType||v||"square",color:a5(f),value:p||g,payload:h}}),Ts(Ts(Ts({},l),zs.getWithHeight(o,i)),{},{payload:c,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 aK(e)||iK(e)||nK(e)||rK()}function rK(){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 nK(e,t){if(e){if(typeof e=="string")return Jx(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 Jx(e,t)}}function iK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aK(e){if(Array.isArray(e))return Jx(e)}function Jx(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 zr(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){ac(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 ac(e,t,r){return t=oK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oK(e){var t=sK(e,"string");return jf(t)=="symbol"?t:t+""}function sK(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 ii(e,t,r){return Ut(e)||Ut(t)?r:pn(t)?Ki(e,t,r):Ct(t)?t(e):r}function tf(e,t,r,n){var i=aY(e,function(s){return ii(s,t)});if(r==="number"){var a=i.filter(function(s){return nt(s)||parseFloat(s)});return a.length?[Lp(a),kp(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!Ut(s)}):i;return o.map(function(s){return pn(s)||s instanceof Date?s:""})}var lK=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,c=0;c<s;c++){var u=c>0?i[c-1].coordinate:i[s-1].coordinate,f=i[c].coordinate,d=c>=s-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(xa(f-u)!==xa(d-f)){var g=[];if(xa(d-f)===xa(l[1]-l[0])){h=d;var p=f+l[1]-l[0];g[0]=Math.min(p,(p+u)/2),g[1]=Math.max(p,(p+u)/2)}else{h=u;var v=d+l[1]-l[0];g[0]=Math.min(f,(v+f)/2),g[1]=Math.max(f,(v+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[c].index;break}}else{var b=Math.min(u,d),_=Math.max(u,d);if(t>(b+f)/2&&t<=(_+f)/2){o=i[c].index;break}}}else for(var A=0;A<s;A++)if(A===0&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A>0&&A<s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A===s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].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?zr(zr({},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},cK=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,c=s.length;l<c;l++)for(var u=a[s[l]].stackGroups,f=Object.keys(u),d=0,h=f.length;d<h;d++){var g=u[f[d]],p=g.items,v=g.cateAxisId,y=p.filter(function(T){return mo(T.type).indexOf("Bar")>=0});if(y&&y.length){var b=y[0].type.defaultProps,_=b!==void 0?zr(zr({},b),y[0].props):y[0].props,A=_.barSize,S=_[v];o[S]||(o[S]=[]);var O=Ut(A)?r:A;o[S].push({item:y[0],stackList:y.slice(1),barSize:Ut(O)?void 0:ba(O,n,0)})}}return o},uK=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 c=ba(r,i,0,!0),u,f=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/l,g=o.reduce(function(A,S){return A+S.barSize||0},0);g+=(l-1)*c,g>=i&&(g-=(l-1)*c,c=0),g>=i&&h>0&&(d=!0,h*=.9,g=l*h);var p=(i-g)/2>>0,v={offset:p-c,size:0};u=o.reduce(function(A,S){var O={item:S.item,position:{offset:v.offset+v.size+c,size:d?h:S.barSize}},T=[].concat(HA(A),[O]);return v=T[T.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(k){T.push({item:k,position:v})}),T},f)}else{var y=ba(n,i,0,!0);i-2*y-(l-1)*c<=0&&(c=0);var b=(i-2*y-(l-1)*c)/l;b>1&&(b>>=0);var _=s===+s?Math.min(b,s):b;u=o.reduce(function(A,S,O){var T=[].concat(HA(A),[{item:S.item,position:{offset:y+(b+c)*O+(b-_)/2,size:_}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(k){T.push({item:k,position:T[T.length-1].position})}),T},f)}return u},fK=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=S8({children:a,legendWidth:l});if(c){var u=i||{},f=u.width,d=u.height,h=c.align,g=c.verticalAlign,p=c.layout;if((p==="vertical"||p==="horizontal"&&g==="middle")&&h!=="center"&&nt(t[h]))return zr(zr({},t),{},ac({},h,t[h]+(f||0)));if((p==="horizontal"||p==="vertical"&&h==="center")&&g!=="middle"&&nt(t[g]))return zr(zr({},t),{},ac({},g,t[g]+(d||0)))}return t},hK=function(t,r,n){return Ut(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=Xi(o,ph).filter(function(c){return hK(i,a,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,u){var f=ii(u,n);if(Ut(f))return c;var d=Array.isArray(f)?[Lp(f),kp(f)]:[f,f],h=l.reduce(function(g,p){var v=ii(u,p,0),y=d[0]-Math.abs(Array.isArray(v)?v[0]:v),b=d[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,g[0]),Math.max(b,g[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},dK=function(t,r,n,i,a){var o=r.map(function(s){return A8(t,s,n,a,i)}).filter(function(s){return!Ut(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 c=l.props.dataKey;return n==="number"&&c&&A8(t,l,c,i)||tf(t,c,n,a)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var u=0,f=c.length;u<f;u++)s[c[u]]||(s[c[u]]=!0,l.push(c[u]));return l},[])},E8=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},P8=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,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?xa(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var u=(t.ticks||t.niceTicks).map(function(f){var d=a?a.indexOf(f):f;return{coordinate:i(d)+c,value:f,offset:c}});return u.filter(function(f){return!oh(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,d){return{coordinate:i(f)+c,value:f,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+c,value:f,offset:c}}):i.domain().map(function(f,d){return{coordinate:i(f)+c,value:a?a[f]:f,index:d,offset:c}})},gy=new WeakMap,N0=function(t,r){if(typeof r!="function")return t;gy.has(t)||gy.set(t,new WeakMap);var n=gy.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},N8=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:xd(),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:xd(),realScaleType:"linear"};if(Ks(i)){var l="scale".concat(yp(i));return{scale:(jA[l]||ef)(),realScaleType:jA[l]?l:"point"}}return Ct(i)?{scale:i}:{scale:ef(),realScaleType:"point"}},VA=1e-4,O8=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]])}},pK=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},mK=function(t,r){if(!r||r.length!==2||!nt(r[0])||!nt(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(!nt(t[0])||t[0]<n)&&(a[0]=n),(!nt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},vK=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=oh(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])}},gK=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=oh(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)}},yK={sign:vK,expand:aU,none:lc,silhouette:oU,wiggle:sU,positive:gK},xK=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=yK[n],o=iU().keys(i).value(function(s,l){return+ii(s,l,0)}).order(Px).offset(a);return o(t)},bK=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(f,d){var h,g=(h=d.type)!==null&&h!==void 0&&h.defaultProps?zr(zr({},d.type.defaultProps),d.props):d.props,p=g.stackId,v=g.hide;if(v)return f;var y=g[n],b=f[y]||{hasStack:!1,stackGroups:{}};if(pn(p)){var _=b.stackGroups[p]||{numericAxisId:n,cateAxisId:i,items:[]};_.items.push(d),b.hasStack=!0,b.stackGroups[p]=_}else b.stackGroups[sh("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return zr(zr({},f),{},ac({},y,b))},l),u={};return Object.keys(c).reduce(function(f,d){var h=c[d];if(h.hasStack){var g={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(p,v){var y=h.stackGroups[v];return zr(zr({},p),{},ac({},v,{numericAxisId:n,cateAxisId:i,items:y.items,stackedData:xK(t,y.items,a)}))},g)}return zr(zr({},f),{},ac({},d,h))},u)},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 c=t.domain();if(!c.length)return null;var u=IY(c,a,s);return t.domain([Lp(u),kp(u)]),{niceTicks:u}}if(a&&i==="number"){var f=t.domain(),d=FY(f,a,s);return{niceTicks:d}}return null};function YA(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&&!Ut(i[t.dataKey])){var s=ed(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=ii(i,Ut(o)?t.dataKey:o);return Ut(l)?null:t.scale(l)}var KA=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=ii(o,r.dataKey,r.domain[s]);return Ut(l)?null:r.scale(l)-a/2+i},wK=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]},_K=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(pn(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},SK=function(t){return t.reduce(function(r,n){return[Lp(n.concat([r[0]]).filter(nt)),kp(n.concat([r[1]]).filter(nt))]},[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(c,u){var f=SK(u.slice(r,n+1));return[Math.min(c[0],f[0]),Math.max(c[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})$/,Zx=function(t,r,n){if(Ct(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(nt(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 Ct(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(nt(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 Ct(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Ed=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 c=a[s],u=a[s-1];o=Math.min((c.coordinate||0)-(u.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},ZA=function(t,r,n){return!t||!t.length||dh(t,Ki(n,"type.defaultProps.domain"))?r:t},k8=function(t,r){var n=t.type.defaultProps?zr(zr({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,c=n.chartType,u=n.hide;return zr(zr({},yt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:a5(t),value:ii(r,i),type:l,payload:r,chartType:c,hide:u})};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=AK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AK(e){var t=TK(e,"string");return kf(t)=="symbol"?t:t+""}function TK(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 EK(e,t){return CK(e)||OK(e,t)||NK(e,t)||PK()}function PK(){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 NK(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 OK(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function CK(e){if(Array.isArray(e))return e}var Pd=Math.PI/180,jK=function(t){return t*180/Math.PI},_r=function(t,r,n,i){return{x:t+Math.cos(-Pd*i)*n,y:r+Math.sin(-Pd*i)*n}},kK=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},LK=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.startAngle,c=t.endAngle,u=ba(t.cx,o,o/2),f=ba(t.cy,s,s/2),d=kK(o,s,n),h=ba(t.innerRadius,d,0),g=ba(t.outerRadius,d,d*.8),p=Object.keys(r);return p.reduce(function(v,y){var b=r[y],_=b.domain,A=b.reversed,S;if(Ut(b.range))i==="angleAxis"?S=[l,c]:i==="radiusAxis"&&(S=[h,g]),A&&(S=[S[1],S[0]]);else{S=b.range;var O=S,T=EK(O,2);l=T[0],c=T[1]}var k=N8(b,a),L=k.realScaleType,B=k.scale;B.domain(_).range(S),O8(B);var C=C8(B,ao(ao({},b),{},{realScaleType:L})),P=ao(ao(ao({},b),C),{},{range:S,radius:g,realScaleType:L,scale:B,cx:u,cy:f,innerRadius:h,outerRadius:g,startAngle:l,endAngle:c});return ao(ao({},v),{},L8({},y,P))},{})},IK=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))},FK=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=IK({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,c=Math.acos(l);return i>o&&(c=2*Math.PI-c),{radius:s,angle:jK(c),angleInRadian:c}},RK=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}},MK=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=FK({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,c=r.outerRadius;if(o<l||o>c)return!1;if(o===0)return!0;var u=RK(r),f=u.startAngle,d=u.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:MK(h,r)}):null},I8=function(t){return!V.isValidElement(t)&&!Ct(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 DK=["offset"];function BK(e){return zK(e)||UK(e)||qK(e)||$K()}function $K(){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 qK(e,t){if(e){if(typeof e=="string")return Qx(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 Qx(e,t)}}function UK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zK(e){if(Array.isArray(e))return Qx(e)}function Qx(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 WK(e,t){if(e==null)return{};var r=HK(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 HK(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 fn(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){GK(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 GK(e,t,r){return t=VK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VK(e){var t=YK(e,"string");return Lf(t)=="symbol"?t:t+""}function YK(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 KK=function(t){var r=t.value,n=t.formatter,i=Ut(t.children)?r:t.children;return Ct(n)?n(i):i},XK=function(t,r){var n=xa(r-t),i=Math.min(Math.abs(r-t),360);return n*i},JK=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,c=l.cx,u=l.cy,f=l.innerRadius,d=l.outerRadius,h=l.startAngle,g=l.endAngle,p=l.clockWise,v=(f+d)/2,y=XK(h,g),b=y>=0?1:-1,_,A;i==="insideStart"?(_=h+b*o,A=p):i==="insideEnd"?(_=g-b*o,A=!p):i==="end"&&(_=g+b*o,A=p),A=y<=0?A:!A;var S=_r(c,u,v,_),O=_r(c,u,v,_+(A?1:-1)*359),T="M".concat(S.x,",").concat(S.y,`
382
- A`).concat(v,",").concat(v,",0,1,").concat(A?0:1,`,
383
- `).concat(O.x,",").concat(O.y),k=Ut(t.id)?sh("recharts-radial-line-"):t.id;return V.createElement("text",If({},n,{dominantBaseline:"central",className:Dt("recharts-radial-bar-label",s)}),V.createElement("defs",null,V.createElement("path",{id:k,d:T})),V.createElement("textPath",{xlinkHref:"#".concat(k)},r))},ZK=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,c=a.outerRadius,u=a.startAngle,f=a.endAngle,d=(u+f)/2;if(i==="outside"){var h=_r(o,s,c+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 v=(l+c)/2,y=_r(o,s,v,d),b=y.x,_=y.y;return{x:b,y:_,textAnchor:"middle",verticalAnchor:"middle"}},QK=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,c=o.width,u=o.height,f=u>=0?1:-1,d=f*i,h=f>0?"end":"start",g=f>0?"start":"end",p=c>=0?1:-1,v=p*i,y=p>0?"end":"start",b=p>0?"start":"end";if(a==="top"){var _={x:s+c/2,y:l-f*i,textAnchor:"middle",verticalAnchor:h};return fn(fn({},_),n?{height:Math.max(l-n.y,0),width:c}:{})}if(a==="bottom"){var A={x:s+c/2,y:l+u+d,textAnchor:"middle",verticalAnchor:g};return fn(fn({},A),n?{height:Math.max(n.y+n.height-(l+u),0),width:c}:{})}if(a==="left"){var S={x:s-v,y:l+u/2,textAnchor:y,verticalAnchor:"middle"};return fn(fn({},S),n?{width:Math.max(S.x-n.x,0),height:u}:{})}if(a==="right"){var O={x:s+c+v,y:l+u/2,textAnchor:b,verticalAnchor:"middle"};return fn(fn({},O),n?{width:Math.max(n.x+n.width-O.x,0),height:u}:{})}var T=n?{width:c,height:u}:{};return a==="insideLeft"?fn({x:s+v,y:l+u/2,textAnchor:b,verticalAnchor:"middle"},T):a==="insideRight"?fn({x:s+c-v,y:l+u/2,textAnchor:y,verticalAnchor:"middle"},T):a==="insideTop"?fn({x:s+c/2,y:l+d,textAnchor:"middle",verticalAnchor:g},T):a==="insideBottom"?fn({x:s+c/2,y:l+u-d,textAnchor:"middle",verticalAnchor:h},T):a==="insideTopLeft"?fn({x:s+v,y:l+d,textAnchor:b,verticalAnchor:g},T):a==="insideTopRight"?fn({x:s+c-v,y:l+d,textAnchor:y,verticalAnchor:g},T):a==="insideBottomLeft"?fn({x:s+v,y:l+u-d,textAnchor:b,verticalAnchor:h},T):a==="insideBottomRight"?fn({x:s+c-v,y:l+u-d,textAnchor:y,verticalAnchor:h},T):zc(a)&&(nt(a.x)||Is(a.x))&&(nt(a.y)||Is(a.y))?fn({x:s+ba(a.x,c),y:l+ba(a.y,u),textAnchor:"end",verticalAnchor:"end"},T):fn({x:s+c/2,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},T)},eX=function(t){return"cx"in t&&nt(t.cx)};function Cn(e){var t=e.offset,r=t===void 0?5:t,n=WK(e,DK),i=fn({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,c=i.content,u=i.className,f=u===void 0?"":u,d=i.textBreakAll;if(!a||Ut(s)&&Ut(l)&&!V.isValidElement(c)&&!Ct(c))return null;if(V.isValidElement(c))return V.cloneElement(c,i);var h;if(Ct(c)){if(h=V.createElement(c,i),V.isValidElement(h))return h}else h=KK(i);var g=eX(a),p=yt(i,!0);if(g&&(o==="insideStart"||o==="insideEnd"||o==="end"))return JK(i,h,p);var v=g?ZK(i):QK(i);return V.createElement(dc,If({className:Dt("recharts-label",f)},p,v,{breakAll:d}),h)}Cn.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,c=t.innerRadius,u=t.outerRadius,f=t.x,d=t.y,h=t.top,g=t.left,p=t.width,v=t.height,y=t.clockWise,b=t.labelViewBox;if(b)return b;if(nt(p)&&nt(v)){if(nt(f)&&nt(d))return{x:f,y:d,width:p,height:v};if(nt(h)&&nt(g))return{x:h,y:g,width:p,height:v}}return nt(f)&&nt(d)?{x:f,y:d,width:0,height:0}:nt(r)&&nt(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:u||l||s||0,clockWise:y}:t.viewBox?t.viewBox:{}},tX=function(t,r){return t?t===!0?V.createElement(Cn,{key:"label-implicit",viewBox:r}):pn(t)?V.createElement(Cn,{key:"label-implicit",viewBox:r,value:t}):V.isValidElement(t)?t.type===Cn?V.cloneElement(t,{key:"label-implicit",viewBox:r}):V.createElement(Cn,{key:"label-implicit",content:t,viewBox:r}):Ct(t)?V.createElement(Cn,{key:"label-implicit",content:t,viewBox:r}):zc(t)?V.createElement(Cn,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=Xi(i,Cn).map(function(l,c){return V.cloneElement(l,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var s=tX(t.label,r||a);return[s].concat(BK(o))};Cn.parseViewBox=F8;Cn.renderCallByParent=rX;var yy,nT;function nX(){if(nT)return yy;nT=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return yy=e,yy}var iX=nX();const R8=ur(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)||uX(e)||cX(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 cX(e,t){if(e){if(typeof e=="string")return e2(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 e2(e,t)}}function uX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fX(e){if(Array.isArray(e))return e2(e)}function e2(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 Nd(){return Nd=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},Nd.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=mX(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 mX(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 vX=function(t){return Array.isArray(t.value)?R8(t.value):t.value};function yo(e){var t=e.valueAccessor,r=t===void 0?vX:t,n=oT(e,aX),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=oT(n,oX);return!i||!i.length?null:V.createElement(lr,{className:"recharts-label-list"},i.map(function(u,f){var d=Ut(a)?r(u,f):ii(u&&u.payload,a),h=Ut(s)?{}:{id:"".concat(s,"-").concat(f)};return V.createElement(Cn,Nd({},yt(u,!0),c,h,{parentViewBox:u.parentViewBox,value:d,textBreakAll:l,viewBox:Cn.parseViewBox(Ut(o)?u:aT(aT({},u),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}yo.displayName="LabelList";function gX(e,t){return e?e===!0?V.createElement(yo,{key:"labelList-implicit",data:t}):V.isValidElement(e)||Ct(e)?V.createElement(yo,{key:"labelList-implicit",data:t,content:e}):zc(e)?V.createElement(yo,Nd({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=Xi(n,yo).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))}yo.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 t2(){return t2=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},t2.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=xa(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,c=t.cornerIsExternal,u=l*(s?1:-1)+i,f=Math.asin(l/u)/Pd,d=c?a:a+o*f,h=_r(r,n,u,d),g=_r(r,n,i,d),p=c?a-o*f:a,v=_r(r,n,u*Math.cos(f*Pd),p);return{center:h,circleTangency:g,lineTangency:v,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),c=o+l,u=_r(r,n,a,o),f=_r(r,n,a,c),d="M ".concat(u.x,",").concat(u.y,`
385
- A `).concat(a,",").concat(a,`,0,
386
- `).concat(+(Math.abs(l)>180),",").concat(+(o>c),`,
387
- `).concat(f.x,",").concat(f.y,`
388
- `);if(i>0){var h=_r(r,n,i,o),g=_r(r,n,i,c);d+="L ".concat(g.x,",").concat(g.y,`
389
- A `).concat(i,",").concat(i,`,0,
390
- `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`,
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,c=t.startAngle,u=t.endAngle,f=xa(u-c),d=O0({cx:r,cy:n,radius:a,angle:c,sign:f,cornerRadius:o,cornerIsExternal:l}),h=d.circleTangency,g=d.lineTangency,p=d.theta,v=O0({cx:r,cy:n,radius:a,angle:u,sign:-f,cornerRadius:o,cornerIsExternal:l}),y=v.circleTangency,b=v.lineTangency,_=v.theta,A=l?Math.abs(c-u):Math.abs(c-u)-p-_;if(A<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:c,endAngle:u});var S="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(+(A>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
397
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
398
- `);if(i>0){var O=O0({cx:r,cy:n,radius:i,angle:c,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),T=O.circleTangency,k=O.lineTangency,L=O.theta,B=O0({cx:r,cy:n,radius:i,angle:u,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),C=B.circleTangency,P=B.lineTangency,M=B.theta,U=l?Math.abs(c-u):Math.abs(c-u)-L-M;if(U<0&&o===0)return"".concat(S,"L").concat(r,",").concat(n,"Z");S+="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(+(U>180),",").concat(+(f>0),",").concat(T.x,",").concat(T.y,`
401
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(k.x,",").concat(k.y,"Z")}else S+="L".concat(r,",").concat(n,"Z");return S},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,c=r.cornerIsExternal,u=r.startAngle,f=r.endAngle,d=r.className;if(o<a||u===f)return null;var h=Dt("recharts-sector",d),g=o-a,p=ba(s,g,0,!0),v;return p>0&&Math.abs(u-f)<360?v=SX({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(p,g/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:u,endAngle:f}):v=M8({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:f}),V.createElement("path",t2({},yt(r,!0),{className:h,d:v,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 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 cT(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 uT(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cT(Object(r),!0).forEach(function(n){TX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cT(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=PX(e,"string");return Mf(t)=="symbol"?t:t+""}function PX(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:Yq,curveBasis:Gq,curveBumpX:kq,curveBumpY:Lq,curveLinearClosed:Kq,curveLinear:bp,curveMonotoneX:Xq,curveMonotoneY:Jq,curveNatural:Zq,curveStep:Qq,curveStepAfter:tU,curveStepBefore:eU},C0=function(t){return t.x===+t.x&&t.y===+t.y},Iu=function(t){return t.x},Fu=function(t){return t.y},NX=function(t,r){if(Ct(t))return t;var n="curve".concat(yp(t));return(n==="curveMonotone"||n==="curveBump")&&r?fT["".concat(n).concat(r==="vertical"?"Y":"X")]:fT[n]||bp},OX=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,c=l===void 0?!1:l,u=NX(n,s),f=c?a.filter(function(p){return C0(p)}):a,d;if(Array.isArray(o)){var h=c?o.filter(function(p){return C0(p)}):o,g=f.map(function(p,v){return uT(uT({},p),{},{base:h[v]})});return s==="vertical"?d=w0().y(Fu).x1(Iu).x0(function(p){return p.base.x}):d=w0().x(Iu).y1(Fu).y0(function(p){return p.base.y}),d.defined(C0).curve(u),d(g)}return s==="vertical"&&nt(o)?d=w0().y(Fu).x1(Iu).x0(o):nt(o)?d=w0().x(Iu).y1(Fu).y0(o):d=RO().x(Iu).y(Fu),d.defined(C0).curve(u),d(f)},n2=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?OX(t):i;return is.createElement("path",r2({},yt(t,!1),td(t),{className:Dt("recharts-curve",r),d:o,ref:a}))},j0={exports:{}},k0={exports:{}},ir={};/** @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 ir;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,c=e?Symbol.for("react.concurrent_mode"):60111,u=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,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function _(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case t:switch(S=S.type,S){case l:case c:case n:case a:case i:case f:return S;default:switch(S=S&&S.$$typeof,S){case s:case u:case g:case h:case o:return S;default:return O}}case r:return O}}}function A(S){return _(S)===c}return ir.AsyncMode=l,ir.ConcurrentMode=c,ir.ContextConsumer=s,ir.ContextProvider=o,ir.Element=t,ir.ForwardRef=u,ir.Fragment=n,ir.Lazy=g,ir.Memo=h,ir.Portal=r,ir.Profiler=a,ir.StrictMode=i,ir.Suspense=f,ir.isAsyncMode=function(S){return A(S)||_(S)===l},ir.isConcurrentMode=A,ir.isContextConsumer=function(S){return _(S)===s},ir.isContextProvider=function(S){return _(S)===o},ir.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},ir.isForwardRef=function(S){return _(S)===u},ir.isFragment=function(S){return _(S)===n},ir.isLazy=function(S){return _(S)===g},ir.isMemo=function(S){return _(S)===h},ir.isPortal=function(S){return _(S)===r},ir.isProfiler=function(S){return _(S)===a},ir.isStrictMode=function(S){return _(S)===i},ir.isSuspense=function(S){return _(S)===f},ir.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===c||S===a||S===i||S===f||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===h||S.$$typeof===o||S.$$typeof===s||S.$$typeof===u||S.$$typeof===v||S.$$typeof===y||S.$$typeof===b||S.$$typeof===p)},ir.typeOf=_,ir}var ar={};/** @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,c=e?Symbol.for("react.concurrent_mode"):60111,u=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,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function _(se){return typeof se=="string"||typeof se=="function"||se===n||se===c||se===a||se===i||se===f||se===d||typeof se=="object"&&se!==null&&(se.$$typeof===g||se.$$typeof===h||se.$$typeof===o||se.$$typeof===s||se.$$typeof===u||se.$$typeof===v||se.$$typeof===y||se.$$typeof===b||se.$$typeof===p)}function A(se){if(typeof se=="object"&&se!==null){var Fe=se.$$typeof;switch(Fe){case t:var Ae=se.type;switch(Ae){case l:case c:case n:case a:case i:case f:return Ae;default:var Ee=Ae&&Ae.$$typeof;switch(Ee){case s:case u:case g:case h:case o:return Ee;default:return Fe}}case r:return Fe}}}var S=l,O=c,T=s,k=o,L=t,B=u,C=n,P=g,M=h,U=r,J=a,q=i,W=f,ee=!1;function Z(se){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(se)||A(se)===l}function Q(se){return A(se)===c}function ce(se){return A(se)===s}function N(se){return A(se)===o}function I(se){return typeof se=="object"&&se!==null&&se.$$typeof===t}function R(se){return A(se)===u}function D(se){return A(se)===n}function G(se){return A(se)===g}function fe(se){return A(se)===h}function ae(se){return A(se)===r}function ne(se){return A(se)===a}function ve(se){return A(se)===i}function _e(se){return A(se)===f}ar.AsyncMode=S,ar.ConcurrentMode=O,ar.ContextConsumer=T,ar.ContextProvider=k,ar.Element=L,ar.ForwardRef=B,ar.Fragment=C,ar.Lazy=P,ar.Memo=M,ar.Portal=U,ar.Profiler=J,ar.StrictMode=q,ar.Suspense=W,ar.isAsyncMode=Z,ar.isConcurrentMode=Q,ar.isContextConsumer=ce,ar.isContextProvider=N,ar.isElement=I,ar.isForwardRef=R,ar.isFragment=D,ar.isLazy=G,ar.isMemo=fe,ar.isPortal=ae,ar.isProfiler=ne,ar.isStrictMode=ve,ar.isSuspense=_e,ar.isValidElementType=_,ar.typeOf=A})()),ar}var pT;function B8(){return pT||(pT=1,process.env.NODE_ENV==="production"?k0.exports=CX():k0.exports=jX()),k0.exports}/*
416
- object-assign
417
- (c) Sindre Sorhus
418
- @license MIT
419
- */var xy,mT;function kX(){if(mT)return xy;mT=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(u){return o[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xy=i()?Object.assign:function(a,o){for(var s,l=n(a),c,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){c=e(s);for(var d=0;d<c.length;d++)r.call(s,c[d])&&(l[c[d]]=s[c[d]])}}return l},xy}var by,vT;function o5(){if(vT)return by;vT=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return by=e,by}var wy,gT;function $8(){return gT||(gT=1,wy=Function.call.bind(Object.prototype.hasOwnProperty)),wy}var _y,yT;function LX(){if(yT)return _y;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,c){if(process.env.NODE_ENV!=="production"){for(var u in a)if(n(a,u)){var f;try{if(typeof a[u]!="function"){var d=Error((l||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[u](o,u,l,s,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+u+"` 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=c?c():"";e("Failed "+s+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},_y=i,_y}var Sy,xT;function IX(){if(xT)return Sy;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 Sy=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(Q){var ce=Q&&(c&&Q[c]||Q[u]);if(typeof ce=="function")return ce}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:b(),arrayOf:_,element:A(),elementType:S(),instanceOf:O,node:B(),objectOf:k,oneOf:T,oneOfType:L,shape:P,exact:M};function g(Q,ce){return Q===ce?Q!==0||1/Q===1/ce:Q!==Q&&ce!==ce}function p(Q,ce){this.message=Q,this.data=ce&&typeof ce=="object"?ce:{},this.stack=""}p.prototype=Error.prototype;function v(Q){if(process.env.NODE_ENV!=="production")var ce={},N=0;function I(D,G,fe,ae,ne,ve,_e){if(ae=ae||d,ve=ve||fe,_e!==r){if(l){var se=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 se.name="Invariant Violation",se}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Fe=ae+":"+fe;!ce[Fe]&&N<3&&(a("You are manually calling a React.PropTypes validation function for the `"+ve+"` prop on `"+ae+"`. 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."),ce[Fe]=!0,N++)}}return G[fe]==null?D?G[fe]===null?new p("The "+ne+" `"+ve+"` is marked as required "+("in `"+ae+"`, but its value is `null`.")):new p("The "+ne+" `"+ve+"` is marked as required in "+("`"+ae+"`, but its value is `undefined`.")):null:Q(G,fe,ae,ne,ve)}var R=I.bind(null,!1);return R.isRequired=I.bind(null,!0),R}function y(Q){function ce(N,I,R,D,G,fe){var ae=N[I],ne=q(ae);if(ne!==Q){var ve=W(ae);return new p("Invalid "+D+" `"+G+"` of type "+("`"+ve+"` supplied to `"+R+"`, expected ")+("`"+Q+"`."),{expectedType:Q})}return null}return v(ce)}function b(){return v(o)}function _(Q){function ce(N,I,R,D,G){if(typeof Q!="function")return new p("Property `"+G+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var fe=N[I];if(!Array.isArray(fe)){var ae=q(fe);return new p("Invalid "+D+" `"+G+"` of type "+("`"+ae+"` supplied to `"+R+"`, expected an array."))}for(var ne=0;ne<fe.length;ne++){var ve=Q(fe,ne,R,D,G+"["+ne+"]",r);if(ve instanceof Error)return ve}return null}return v(ce)}function A(){function Q(ce,N,I,R,D){var G=ce[N];if(!s(G)){var fe=q(G);return new p("Invalid "+R+" `"+D+"` of type "+("`"+fe+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return v(Q)}function S(){function Q(ce,N,I,R,D){var G=ce[N];if(!e.isValidElementType(G)){var fe=q(G);return new p("Invalid "+R+" `"+D+"` of type "+("`"+fe+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return v(Q)}function O(Q){function ce(N,I,R,D,G){if(!(N[I]instanceof Q)){var fe=Q.name||d,ae=Z(N[I]);return new p("Invalid "+D+" `"+G+"` of type "+("`"+ae+"` supplied to `"+R+"`, expected ")+("instance of `"+fe+"`."))}return null}return v(ce)}function T(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 ce(N,I,R,D,G){for(var fe=N[I],ae=0;ae<Q.length;ae++)if(g(fe,Q[ae]))return null;var ne=JSON.stringify(Q,function(_e,se){var Fe=W(se);return Fe==="symbol"?String(se):se});return new p("Invalid "+D+" `"+G+"` of value `"+String(fe)+"` "+("supplied to `"+R+"`, expected one of "+ne+"."))}return v(ce)}function k(Q){function ce(N,I,R,D,G){if(typeof Q!="function")return new p("Property `"+G+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var fe=N[I],ae=q(fe);if(ae!=="object")return new p("Invalid "+D+" `"+G+"` of type "+("`"+ae+"` supplied to `"+R+"`, expected an object."));for(var ne in fe)if(n(fe,ne)){var ve=Q(fe,ne,R,D,G+"."+ne,r);if(ve instanceof Error)return ve}return null}return v(ce)}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 ce=0;ce<Q.length;ce++){var N=Q[ce];if(typeof N!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ee(N)+" at index "+ce+"."),o}function I(R,D,G,fe,ae){for(var ne=[],ve=0;ve<Q.length;ve++){var _e=Q[ve],se=_e(R,D,G,fe,ae,r);if(se==null)return null;se.data&&n(se.data,"expectedType")&&ne.push(se.data.expectedType)}var Fe=ne.length>0?", expected one of type ["+ne.join(", ")+"]":"";return new p("Invalid "+fe+" `"+ae+"` supplied to "+("`"+G+"`"+Fe+"."))}return v(I)}function B(){function Q(ce,N,I,R,D){return U(ce[N])?null:new p("Invalid "+R+" `"+D+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return v(Q)}function C(Q,ce,N,I,R){return new p((Q||"React class")+": "+ce+" type `"+N+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function P(Q){function ce(N,I,R,D,G){var fe=N[I],ae=q(fe);if(ae!=="object")return new p("Invalid "+D+" `"+G+"` of type `"+ae+"` "+("supplied to `"+R+"`, expected `object`."));for(var ne in Q){var ve=Q[ne];if(typeof ve!="function")return C(R,D,G,ne,W(ve));var _e=ve(fe,ne,R,D,G+"."+ne,r);if(_e)return _e}return null}return v(ce)}function M(Q){function ce(N,I,R,D,G){var fe=N[I],ae=q(fe);if(ae!=="object")return new p("Invalid "+D+" `"+G+"` of type `"+ae+"` "+("supplied to `"+R+"`, expected `object`."));var ne=t({},N[I],Q);for(var ve in ne){var _e=Q[ve];if(n(Q,ve)&&typeof _e!="function")return C(R,D,G,ve,W(_e));if(!_e)return new p("Invalid "+D+" `"+G+"` key `"+ve+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(N[I],null," ")+`
420
- Valid keys: `+JSON.stringify(Object.keys(Q),null," "));var se=_e(fe,ve,R,D,G+"."+ve,r);if(se)return se}return null}return v(ce)}function U(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(U);if(Q===null||s(Q))return!0;var ce=f(Q);if(ce){var N=ce.call(Q),I;if(ce!==Q.entries){for(;!(I=N.next()).done;)if(!U(I.value))return!1}else for(;!(I=N.next()).done;){var R=I.value;if(R&&!U(R[1]))return!1}}else return!1;return!0;default:return!1}}function J(Q,ce){return Q==="symbol"?!0:ce?ce["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&ce instanceof Symbol:!1}function q(Q){var ce=typeof Q;return Array.isArray(Q)?"array":Q instanceof RegExp?"object":J(ce,Q)?"symbol":ce}function W(Q){if(typeof Q>"u"||Q===null)return""+Q;var ce=q(Q);if(ce==="object"){if(Q instanceof Date)return"date";if(Q instanceof RegExp)return"regexp"}return ce}function ee(Q){var ce=W(Q);switch(ce){case"array":case"object":return"an "+ce;case"boolean":case"date":case"regexp":return"a "+ce;default:return ce}}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},Sy}var Ay,bT;function FX(){if(bT)return Ay;bT=1;var e=o5();function t(){}function r(){}return r.resetWarningCache=t,Ay=function(){function n(o,s,l,c,u,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},Ay}var wT;function RX(){if(wT)return j0.exports;if(wT=1,process.env.NODE_ENV!=="production"){var e=B8(),t=!0;j0.exports=IX()(e.isElement,t)}else j0.exports=FX()();return j0.exports}var MX=RX();const or=ur(MX),{getOwnPropertyNames:DX,getOwnPropertySymbols:BX}=Object,{hasOwnProperty:$X}=Object.prototype;function Ty(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function L0(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 YX(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 KX(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 c=t.entries();let u=!1,f=0;for(;(s=c.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)){u=i[f]=!0;break}f++}if(!u)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 Ru(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 c=!1,u=0;for(;(s=l.next())&&!s.done;){if(!i[u]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){c=i[u]=!0;break}u++}if(!c)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]",cJ="[object Map]",uJ="[object Number]",fJ="[object Object]",hJ="[object RegExp]",dJ="[object Set]",pJ="[object String]",mJ={"[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},vJ="[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:c,areRegExpsEqual:u,areSetsEqual:f,areTypedArraysEqual:d,areUrlsEqual:h,unknownTagComparators:g}){return function(v,y,b){if(v===y)return!0;if(v==null||y==null)return!1;const _=typeof v;if(_!==typeof y)return!1;if(_!=="object")return _==="number"?s(v,y,b):_==="function"?a(v,y,b):!1;const A=v.constructor;if(A!==y.constructor)return!1;if(A===Object)return l(v,y,b);if(Array.isArray(v))return t(v,y,b);if(A===Date)return n(v,y,b);if(A===RegExp)return u(v,y,b);if(A===Map)return o(v,y,b);if(A===Set)return f(v,y,b);const S=gJ.call(v);if(S===sJ)return n(v,y,b);if(S===hJ)return u(v,y,b);if(S===cJ)return o(v,y,b);if(S===dJ)return f(v,y,b);if(S===fJ)return typeof v.then!="function"&&typeof y.then!="function"&&l(v,y,b);if(S===vJ)return h(v,y,b);if(S===lJ)return i(v,y,b);if(S===iJ)return l(v,y,b);if(mJ[S])return d(v,y,b);if(S===nJ)return e(v,y,b);if(S===oJ)return r(v,y,b);if(S===aJ||S===uJ||S===pJ)return c(v,y,b);if(g){let O=g[S];if(!O){const T=qX(v);T&&(O=g[T])}if(O)return O(v,y,b)}return!1}}function xJ({circular:e,createCustomConfig:t,strict:r}){let n={areArrayBuffersEqual:GX,areArraysEqual:r?Ru:VX,areDataViewsEqual:YX,areDatesEqual:KX,areErrorsEqual:XX,areFunctionsEqual:JX,areMapsEqual:r?Ty(TT,Ru):TT,areNumbersEqual:ZX,areObjectsEqual:r?Ru:QX,arePrimitiveWrappersEqual:eJ,areRegExpsEqual:tJ,areSetsEqual:r?Ty(ET,Ru):ET,areTypedArraysEqual:r?Ty(Od,Ru):Od,areUrlsEqual:rJ,unknownTagComparators:void 0};if(t&&(n=Object.assign({},n,t(n))),e){const i=L0(n.areArraysEqual),a=L0(n.areMapsEqual),o=L0(n.areObjectsEqual),s=L0(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:c=e?new WeakMap:void 0,meta:u}=r();return t(s,l,{cache:c,equals:n,meta:u,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=ps();ps({strict:!0});ps({circular:!0});ps({circular:!0,strict:!0});ps({createInternalComparator:()=>ll});ps({strict:!0,createInternalComparator:()=>ll});ps({circular:!0,createInternalComparator:()=>ll});ps({circular:!0,createInternalComparator:()=>ll,strict:!0});function ps(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 PT(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 i2(e){"@babel/helpers - typeof";return i2=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},i2(e)}function AJ(e){return NJ(e)||PJ(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 NT(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 NT(e,t)}}function NT(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 PJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function NJ(e){if(Array.isArray(e))return e}function OJ(){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],c=s.slice(1);if(typeof l=="number"){PT(i.bind(null,c),l);return}i(l),PT(i.bind(null,c));return}i2(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 OT(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?OT(Object(r),!0).forEach(function(n){U8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OT(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",Cd=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 c=[n,i,a,o,s,l],u=0;console.warn(r.replace(/%s/g,function(){return c[u++]}))}};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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)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 a2(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 a2(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 a2(e)}function a2(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 jd=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 c=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),u=RJ(c,4);i=u[0],a=u[1],o=u[2],s=u[3]}else Cd(!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)}}Cd([i,o,a,s].every(function(v){return typeof v=="number"&&v>=0&&v<=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 b=y>1?1:y,_=b,A=0;A<8;++A){var S=f(_)-b,O=h(_);if(Math.abs(S-b)<jd||O<jd)return d(_);_=g(_-S/O)}return d(_)};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(u,f,d){var h=-(u-f)*n,g=d*a,p=d+(h-g)*s/1e3,v=d*s/1e3+u;return Math.abs(v-f)<jd&&Math.abs(p)<jd?[f,0]:[v,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);Cd(!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:(Cd(!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 KJ(e)||YJ(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 YJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KJ(e){if(Array.isArray(e))return s2(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 Nn(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){o2(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 o2(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 s2(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 s2(e,t)}}function s2(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function tZ(e){if(Array.isArray(e))return e}var kd=function(t,r,n){return t+(r-t)*n},l2=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(l2(o)){var s=t(o.from,o.to,o.velocity),l=ZJ(s,2),c=l[0],u=l[1];return Nn(Nn({},o),{},{from:c,velocity:u})}return o},r);return n<1?rf(function(a,o){return l2(o)?Nn(Nn({},o),{},{velocity:kd(o.velocity,i[a].velocity,n),from:kd(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(v,y){return Nn(Nn({},v),{},o2({},y,[e[y],t[y]]))},{}),s=a.reduce(function(v,y){return Nn(Nn({},v),{},o2({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,c,u,f=function(){return null},d=function(){return rf(function(y,b){return b.from},s)},h=function(){return!Object.values(s).filter(l2).length},g=function(y){c||(c=y);var b=y-c,_=b/r.dt;s=rZ(r,s,_),i(Nn(Nn(Nn({},e),t),d())),c=y,h()||(l=requestAnimationFrame(f))},p=function(y){u||(u=y);var b=(y-u)/n,_=rf(function(S,O){return kd.apply(void 0,IT(O).concat([r(b)]))},o);if(i(Nn(Nn(Nn({},e),t),_)),b<1)l=requestAnimationFrame(f);else{var A=rf(function(S,O){return kd.apply(void 0,IT(O).concat([r(1)]))},o);i(Nn(Nn(Nn({},e),t),A))}};return f=r.isStepper?g:p,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function yc(e){"@babel/helpers - typeof";return yc=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},yc(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 Ey(e){return uZ(e)||cZ(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 c2(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 c2(e,t)}}function cZ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uZ(e){if(Array.isArray(e))return c2(e)}function c2(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 fa(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){qu(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 qu(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 yc(t)==="symbol"?t:String(t)}function pZ(e,t){if(yc(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yc(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mZ(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&&u2(e,t)}function u2(e,t){return u2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},u2(e,t)}function vZ(e){var t=gZ();return function(){var n=Ld(e),i;if(t){var a=Ld(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return f2(this,i)}}function f2(e,t){if(t&&(yc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h2(e)}function h2(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 Ld(e){return Ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ld(e)}var qa=(function(e){mZ(r,e);var t=vZ(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,c=o.from,u=o.to,f=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(h2(a)),a.changeStyle=a.changeStyle.bind(h2(a)),!s||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:u}),f2(a);if(f&&f.length)a.state={style:f[0].style};else if(c){if(typeof d=="function")return a.state={style:c},f2(a);a.state={style:l?qu({},l,c):c}}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,c=a.shouldReAnimate,u=a.to,f=a.from,d=this.state.style;if(s){if(!o){var h={style:l?qu({},l,u):u};this.state&&d&&(l&&d[l]!==u||!l&&d!==u)&&this.setState(h);return}if(!(_J(i.to,u)&&i.canBegin&&i.isActive)){var g=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=g||c?f:i.to;if(this.state&&d){var v={style:l?qu({},l,p):p};(l&&d[l]!==p||!l&&d!==p)&&this.setState(v)}this.runAnimation(fa(fa({},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,c=i.easing,u=i.begin,f=i.onAnimationEnd,d=i.onAnimationStart,h=nZ(o,s,GJ(c),l,this.changeStyle),g=function(){a.stopJSAnimation=h()};this.manager.start([d,u,g,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,c=o[0],u=c.style,f=c.duration,d=f===void 0?0:f,h=function(p,v,y){if(y===0)return p;var b=v.duration,_=v.easing,A=_===void 0?"ease":_,S=v.style,O=v.properties,T=v.onAnimationEnd,k=y>0?o[y-1]:v,L=O||Object.keys(S);if(typeof A=="function"||A==="spring")return[].concat(Ey(p),[a.runJSAnimation.bind(a,{from:k.style,to:S,duration:b,easing:A}),b]);var B=jT(L,b,A),C=fa(fa(fa({},k.style),S),{},{transition:B});return[].concat(Ey(p),[C,b,T]).filter(LJ)};return this.manager.start([l].concat(Ey(o.reduce(h,[u,Math.max(d,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=OJ());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,c=i.easing,u=i.onAnimationStart,f=i.onAnimationEnd,d=i.steps,h=i.children,g=this.manager;if(this.unSubscribe=g.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var p=s?qu({},s,l):l,v=jT(Object.keys(p),o,c);g.start([u,a,fa(fa({},p),{},{transition:v}),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),c=V.Children.count(a),u=this.state.style;if(typeof a=="function")return a(u);if(!s||c===0||o<=0)return a;var f=function(h){var g=h.props,p=g.style,v=p===void 0?{}:p,y=g.className,b=V.cloneElement(h,fa(fa({},l),{},{style:fa(fa({},v),u),className:y}));return b};return c===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:or.oneOfType([or.object,or.string]),to:or.oneOfType([or.object,or.string]),attributeName:or.string,duration:or.number,begin:or.number,easing:or.oneOfType([or.string,or.func]),steps:or.arrayOf(or.shape({duration:or.number.isRequired,style:or.object.isRequired,easing:or.oneOfType([or.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),or.func]),properties:or.arrayOf("string"),onAnimationEnd:or.func})),children:or.oneOfType([or.node,or.func]),isActive:or.bool,canBegin:or.bool,onAnimationEnd:or.func,shouldReAnimate:or.bool,onAnimationStart:or.func,onAnimationReStart:or.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 Id(){return Id=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},Id.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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)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,c=i>=0&&n>=0||i<0&&n<0?1:0,u;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];u="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(u+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+l*f[0],",").concat(r)),u+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(u+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`,
428
- `).concat(t+n,",").concat(r+s*f[1])),u+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(u+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`,
429
- `).concat(t+n-l*f[2],",").concat(r+i)),u+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(u+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`,
430
- `).concat(t,",").concat(r+i-s*f[3])),u+="Z"}else if(o>0&&a===+a&&a>0){var g=Math.min(o,a);u="M ".concat(t,",").concat(r+s*g,`
431
- A `).concat(g,",").concat(g,",0,0,").concat(c,",").concat(t+l*g,",").concat(r,`
432
- L `).concat(t+n-l*g,",").concat(r,`
433
- A `).concat(g,",").concat(g,",0,0,").concat(c,",").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(c,",").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(c,",").concat(t,",").concat(r+i-s*g," Z")}else u="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return u},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 c=Math.min(a,a+s),u=Math.max(a,a+s),f=Math.min(o,o+l),d=Math.max(o,o+l);return n>=c&&n<=u&&i>=f&&i<=d}return!1},PZ={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({},PZ),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 A=n.current.getTotalLength();A&&s(A)}catch{}},[]);var l=r.x,c=r.y,u=r.width,f=r.height,d=r.radius,h=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isAnimationActive,b=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||u===0||f===0)return null;var _=Dt("recharts-rectangle",h);return b?V.createElement(qa,{canBegin:o>0,from:{width:u,height:f,x:l,y:c},to:{width:u,height:f,x:l,y:c},duration:p,animationEasing:g,isActive:b},function(A){var S=A.width,O=A.height,T=A.x,k=A.y;return V.createElement(qa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,isActive:y,easing:g},V.createElement("path",Id({},yt(r,!0),{className:_,d:$T(T,k,S,O,d),ref:n})))}):V.createElement("path",Id({},yt(r,!0),{className:_,d:$T(l,c,u,f,d)}))},NZ=["points","className","baseLinePoints","connectNulls"];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 OZ(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 d2(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 d2(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 d2(e)}function d2(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))},Y8=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=OZ(t,NZ);if(!r||!r.length)return null;var s=Dt("recharts-polygon",n);if(i&&i.length){var l=o.stroke&&o.stroke!=="none",c=RZ(r,i,a);return V.createElement("g",{className:s},V.createElement("path",Yl({},yt(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),l?V.createElement("path",Yl({},yt(o,!0),{fill:"none",d:nf(r,a)})):null,l?V.createElement("path",Yl({},yt(o,!0),{fill:"none",d:nf(i,a)})):null)}var u=nf(r,a);return V.createElement("path",Yl({},yt(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",className:s,d:u}))};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)}var mh=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Dt("recharts-dot",a);return r===+r&&n===+n&&i===+i?is.createElement("circle",p2({},yt(t,!1),td(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 m2(){return m2=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},m2.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,c=l===void 0?0:l,u=t.width,f=u===void 0?0:u,d=t.height,h=d===void 0?0:d,g=t.className,p=UZ(t,MZ),v=DZ({x:n,y:a,top:s,left:c,width:f,height:h},p);return!nt(n)||!nt(a)||!nt(f)||!nt(h)||!nt(s)||!nt(c)?null:V.createElement("path",m2({},yt(v,!0),{className:Dt("recharts-cross",g),d:WZ(n,a,f,h,s,c)}))},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=YZ(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 YZ(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 Ao(){return Ao=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},Ao.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){KZ(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 KZ(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=_r(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"},yt(t,!1));return V.createElement("g",{className:"recharts-polar-grid-angle"},o.map(function(c){var u=_r(r,n,i,c),f=_r(r,n,a,c);return V.createElement("line",Ao({},l,{key:"line-".concat(c),x1:u.x,y1:u.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"},yt(t,!1)),{},{fill:"none"});return V.createElement("circle",Ao({},o,{className:Dt("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"},yt(t,!1)),{},{fill:"none"});return V.createElement("path",Ao({},i,{className:Dt("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,Ao({key:o},t,{radius:i,index:a})):V.createElement(tQ,Ao({key:o},t,{radius:i,index:a}))}))},K8=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,c=l===void 0?0:l,u=t.gridType,f=u===void 0?"polygon":u,d=t.radialLines,h=d===void 0?!0:d,g=VZ(t,GZ);return c<=0?null:V.createElement("g",{className:"recharts-polar-grid"},V.createElement(QZ,Ao({cx:n,cy:a,innerRadius:s,outerRadius:c,gridType:f,radialLines:h},g)),V.createElement(rQ,Ao({cx:n,cy:a,innerRadius:s,outerRadius:c,gridType:f,radialLines:h},g)))};K8.displayName="PolarGrid";var Py,HT;function nQ(){if(HT)return Py;HT=1;var e=jp(),t=o8(),r=Wa();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Py=n,Py}var iQ=nQ();const aQ=ur(iQ);var Ny,GT;function oQ(){if(GT)return Ny;GT=1;var e=jp(),t=Wa(),r=s8();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return Ny=n,Ny}var sQ=oQ();const lQ=ur(sQ);var cQ=["cx","cy","angle","ticks","axisLine"],uQ=["ticks","tick","angle","tickFormatter","stroke"];function xc(e){"@babel/helpers - typeof";return xc=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},xc(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 Es(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){Rp(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 YT(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 KT(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&&KT(e.prototype,t),r&&KT(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function pQ(e,t,r){return t=Fd(t),mQ(e,X8()?Reflect.construct(t,r||[],Fd(e).constructor):t.apply(e,r))}function mQ(e,t){if(t&&(xc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vQ(e)}function vQ(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 Fd(e){return Fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fd(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&&v2(e,t)}function v2(e,t){return v2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},v2(e,t)}function Rp(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 xc(t)=="symbol"?t:t+""}function yQ(e,t){if(xc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xc(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 _r(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(u){return u.coordinate||0}),c=lQ(s,function(u){return u.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.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,c=YT(n,cQ),u=s.reduce(function(g,p){return[Math.min(g[0],p.coordinate),Math.max(g[1],p.coordinate)]},[1/0,-1/0]),f=_r(i,a,u[0],o),d=_r(i,a,u[1],o),h=Es(Es(Es({},yt(c,!1)),{},{fill:"none"},yt(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,c=i.stroke,u=YT(i,uQ),f=this.getTickTextAnchor(),d=yt(u,!1),h=yt(o,!1),g=a.map(function(p,v){var y=n.getTickValueCoord(p),b=Es(Es(Es(Es({textAnchor:f,transform:"rotate(".concat(90-s,", ").concat(y.x,", ").concat(y.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:v},y),{},{payload:p});return V.createElement(lr,af({className:Dt("recharts-polar-radius-axis-tick",I8(o)),key:"tick-".concat(p.coordinate)},sc(n.props,p,v)),t.renderTickItem(o,b,l?l(p.value,v):p.value))});return V.createElement(lr,{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(lr,{className:Dt("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Cn.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return V.isValidElement(n)?o=V.cloneElement(n,i):Ct(n)?o=n(i):o=V.createElement(dc,af({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(V.PureComponent);Rp(vh,"displayName","PolarRadiusAxis");Rp(vh,"axisType","radiusAxis");Rp(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 bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}function ks(){return ks=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},ks.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 Ps(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){Mp(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=Rd(t),_Q(e,Z8()?Reflect.construct(t,r||[],Rd(e).constructor):t.apply(e,r))}function _Q(e,t){if(t&&(bc(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 Rd(e){return Rd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rd(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&&g2(e,t)}function g2(e,t){return g2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},g2(e,t)}function Mp(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 bc(t)=="symbol"?t:t+""}function TQ(e,t){if(bc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var EQ=Math.PI/180,ZT=1e-5,gh=(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,c=i.tickSize,u=c||8,f=_r(a,o,s,n.coordinate),d=_r(a,o,s+(l==="inner"?-1:1)*u,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,c=Ps(Ps({},yt(this.props,!1)),{},{fill:"none"},yt(s,!1));if(l==="circle")return V.createElement(mh,ks({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var u=this.props.ticks,f=u.map(function(d){return _r(i,a,o,d.coordinate)});return V.createElement(Y8,ks({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,s=i.tickLine,l=i.tickFormatter,c=i.stroke,u=yt(this.props,!1),f=yt(o,!1),d=Ps(Ps({},u),{},{fill:"none"},yt(s,!1)),h=a.map(function(g,p){var v=n.getTickLineCoord(g),y=n.getTickTextAnchor(g),b=Ps(Ps(Ps({textAnchor:y},u),{},{stroke:"none",fill:c},f),{},{index:p,payload:g,x:v.x2,y:v.y2});return V.createElement(lr,ks({className:Dt("recharts-polar-angle-axis-tick",I8(o)),key:"tick-".concat(g.coordinate)},sc(n.props,g,p)),s&&V.createElement("line",ks({className:"recharts-polar-angle-axis-tick-line"},d,v)),o&&t.renderTickItem(o,b,l?l(g.value,p):g.value))});return V.createElement(lr,{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(lr,{className:Dt("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):Ct(n)?o=n(i):o=V.createElement(dc,ks({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(V.PureComponent);Mp(gh,"displayName","PolarAngleAxis");Mp(gh,"axisType","angleAxis");Mp(gh,"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 Oy,QT;function PQ(){if(QT)return Oy;QT=1;var e=a6(),t=e(Object.getPrototypeOf,Object);return Oy=t,Oy}var Cy,eE;function NQ(){if(eE)return Cy;eE=1;var e=Eo(),t=PQ(),r=Po(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function c(u){if(!r(u)||e(u)!=n)return!1;var f=t(u);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 Cy=c,Cy}var OQ=NQ();const CQ=ur(OQ);var jy,tE;function jQ(){if(tE)return jy;tE=1;var e=Eo(),t=Po(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return jy=n,jy}var kQ=jQ();const LQ=ur(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 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 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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)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 _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,c=r.y,u=r.upperWidth,f=r.lowerWidth,d=r.height,h=r.className,g=r.animationEasing,p=r.animationDuration,v=r.animationBegin,y=r.isUpdateAnimationActive;if(l!==+l||c!==+c||u!==+u||f!==+f||d!==+d||u===0&&f===0||d===0)return null;var b=Dt("recharts-trapezoid",h);return y?V.createElement(qa,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:l,y:c},to:{upperWidth:u,lowerWidth:f,height:d,x:l,y:c},duration:p,animationEasing:g,isActive:y},function(_){var A=_.upperWidth,S=_.lowerWidth,O=_.height,T=_.x,k=_.y;return V.createElement(qa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:p,easing:g},V.createElement("path",Md({},yt(r,!0),{className:b,d:aE(T,k,A,S,O),ref:n})))}):V.createElement("g",null,V.createElement("path",Md({},yt(r,!0),{className:b,d:aE(l,c,u,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 Dd(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=YQ(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YQ(e){var t=KQ(e,"string");return Hf(t)=="symbol"?t:t+""}function KQ(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 Dd(Dd({},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),c;if(V.isValidElement(t))c=V.cloneElement(t,Dd(Dd({},l),ZQ(t)));else if(Ct(t))c=t(l);else if(CQ(t)&&!LQ(t)){var u=i(t,l);c=V.createElement(sE,{shapeType:r,elementProps:u})}else{var f=l;c=V.createElement(sE,{shapeType:r,elementProps:f})}return s?V.createElement(lr,{className:o},c):c}function Dp(e,t){return t!=null&&"trapezoids"in e.props}function Bp(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 Dp(e,t)?r=eee:Bp(e,t)?r=tee:Gf(e,t)&&(r=ree),r}function iee(e,t){var r;return Dp(e,t)?r="trapezoids":Bp(e,t)?r="sectors":Gf(e,t)&&(r="points"),r}function aee(e,t){if(Dp(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(Bp(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,c){var u=dh(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=c===d;return u&&h}),s=n.indexOf(o[o.length-1]);return s}var ky,lE;function see(){if(lE)return ky;lE=1;function e(t){return t&&t.length?t[0]:void 0}return ky=e,ky}var Ly,cE;function lee(){return cE||(cE=1,Ly=see()),Ly}var cee=lee();const uee=ur(cee);var fee=["key"];function wc(e){"@babel/helpers - typeof";return wc=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},wc(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 Bd(){return Bd=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},Bd.apply(this,arguments)}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 Jn(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){so(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 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 mee(e,t,r){return t&&fE(e.prototype,t),r&&fE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vee(e,t,r){return t=$d(t),gee(e,eC()?Reflect.construct(t,r||[],$d(e).constructor):t.apply(e,r))}function gee(e,t){if(t&&(wc(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 $d(e){return $d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$d(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&&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 so(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 wc(t)=="symbol"?t:t+""}function bee(e,t){if(wc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var yh=(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=vee(this,t,[].concat(i)),so(r,"state",{isAnimationFinished:!1}),so(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),Ct(o)&&o()}),so(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),Ct(o)&&o()}),so(r,"handleMouseEnter",function(o){var s=r.props.onMouseEnter;s&&s(r.props,o)}),so(r,"handleMouseLeave",function(o){var s=r.props.onMouseLeave;s&&s(r.props,o)}),r}return xee(t,e),mee(t,[{key:"renderDots",value:function(n){var i=this.props,a=i.dot,o=i.dataKey,s=yt(this.props,!1),l=yt(a,!0),c=n.map(function(u,f){var d=Jn(Jn(Jn({key:"dot-".concat(f),r:3},s),l),{},{dataKey:o,cx:u.x,cy:u.y,index:f,payload:u});return t.renderDotItem(a,d)});return V.createElement(lr,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(n){var i=this.props,a=i.shape,o=i.dot,s=i.isRange,l=i.baseLinePoints,c=i.connectNulls,u;return V.isValidElement(a)?u=V.cloneElement(a,Jn(Jn({},this.props),{},{points:n})):Ct(a)?u=a(Jn(Jn({},this.props),{},{points:n})):u=V.createElement(Y8,Bd({},yt(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:n,baseLinePoints:s?l:null,connectNulls:c})),V.createElement(lr,{className:"recharts-radar-polygon"},u,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,c=i.animationEasing,u=i.animationId,f=this.state.prevPoints;return V.createElement(qa,{begin:s,duration:l,isActive:o,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(d){var h=d.t,g=f&&f.length/a.length,p=a.map(function(v,y){var b=f&&f[Math.floor(y*g)];if(b){var _=ti(b.x,v.x),A=ti(b.y,v.y);return Jn(Jn({},v),{},{x:_(h),y:A(h)})}var S=ti(v.cx,v.x),O=ti(v.cy,v.y);return Jn(Jn({},v),{},{x:S(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||!dh(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,c=Dt("recharts-radar",a);return V.createElement(lr,{className:c},this.renderPolygon(),(!s||l)&&yo.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(Ct(n))a=n(i);else{var o=i.key,s=hee(i,fee);a=V.createElement(mh,Bd({},s,{key:o,className:Dt("recharts-radar-dot",typeof n!="boolean"?n.className:"")}))}return a}}])})(V.PureComponent);so(yh,"displayName","Radar");so(yh,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!al.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});so(yh,"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,c=[],u=r.type!=="number"?a??0:0;n.forEach(function(d,h){var g=ii(d,r.dataKey,h),p=ii(d,i),v=r.scale(g)+u,y=Array.isArray(p)?R8(p):p,b=Ut(y)?void 0:t.scale(y);Array.isArray(p)&&p.length>=2&&(l=!0),c.push(Jn(Jn({},_r(o,s,b,v)),{},{name:g,value:p,cx:o,cy:s,radius:b,angle:v,payload:d}))});var f=[];return l&&c.forEach(function(d){if(Array.isArray(d.value)){var h=uee(d.value),g=Ut(h)?void 0:t.scale(h);f.push(Jn(Jn({},d),{},{radius:g},_r(o,s,g,d.angle)))}else f.push(d)}),{points:c,isRange:l,baseLinePoints:f}});var Iy,hE;function wee(){if(hE)return Iy;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),c=Array(l);l--;)c[o?l:++s]=n,n+=a;return c}return Iy=r,Iy}var Fy,dE;function rC(){if(dE)return Fy;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 Fy=n,Fy}var Ry,pE;function _ee(){if(pE)return Ry;pE=1;var e=wee(),t=Ap(),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 Ry=n,Ry}var My,mE;function See(){if(mE)return My;mE=1;var e=_ee(),t=e();return My=t,My}var Aee=See();const qd=ur(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 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 gE(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){nC(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 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 Pee=["Webkit","Moz","O","ms"],Nee=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=Pee.reduce(function(a,o){return gE(gE({},a),{},nC({},o+n,r))},{});return i[t]=r,i};function _c(e){"@babel/helpers - typeof";return _c=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},_c(e)}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 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 Dy(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){Ti(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 Oee(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=zd(t),kee(e,iC()?Reflect.construct(t,r||[],zd(e).constructor):t.apply(e,r))}function kee(e,t){if(t&&(_c(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 zd(e){return zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zd(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&&x2(e,t)}function x2(e,t){return x2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},x2(e,t)}function Ti(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 _c(t)=="symbol"?t:t+""}function Fee(e,t){if(_c(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_c(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,c=ef().domain(qd(0,l)).range([a,a+o-s]),u=c.domain().map(function(f){return c(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:u}},bE=function(t){return t.changedTouches&&!!t.changedTouches.length},Sc=(function(e){function t(r){var n;return Oee(this,t),n=jee(this,t,[r]),Ti(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ti(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ti(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()}),Ti(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ti(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ti(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ti(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,c=s.data,u=c.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===u?u:g-g%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=ii(a[n],s,n);return Ct(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,c=l.x,u=l.width,f=l.travellerWidth,d=l.startIndex,h=l.endIndex,g=l.onChange,p=n.pageX-a;p>0?p=Math.min(p,c+u-f-s,c+u-f-o):p<0&&(p=Math.max(p,c-o,c-s));var v=this.getIndex({startX:o+p,endX:s+p});(v.startIndex!==d||v.endIndex!==h)&&g&&g(v),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,c=this.state[o],u=this.props,f=u.x,d=u.width,h=u.travellerWidth,g=u.onChange,p=u.gap,v=u.data,y={startX:this.state.startX,endX:this.state.endX},b=n.pageX-a;b>0?b=Math.min(b,f+d-h-c):b<0&&(b=Math.max(b,f-c)),y[o]=c+b;var _=this.getIndex(y),A=_.startIndex,S=_.endIndex,O=function(){var k=v.length-1;return o==="startX"&&(s>l?A%p===0:S%p===0)||s<l&&S===k||o==="endX"&&(s>l?S%p===0:A%p===0)||s>l&&S===k};this.setState(Ti(Ti({},o,c+b),"brushMoveStartX",n.pageX),function(){g&&O()&&g(_)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,c=o.endX,u=this.state[i],f=s.indexOf(u);if(f!==-1){var d=f+n;if(!(d===-1||d>=s.length)){var h=s[d];i==="startX"&&h>=c||i==="endX"&&h<=l||this.setState(Ti({},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,c=n.stroke;return V.createElement("rect",{stroke:c,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,c=n.children,u=n.padding,f=V.Children.only(c);return f?V.cloneElement(f,{x:i,y:a,width:o,height:s,margin:u,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,c=l.y,u=l.travellerWidth,f=l.height,d=l.traveller,h=l.ariaLabel,g=l.data,p=l.startIndex,v=l.endIndex,y=Math.max(n,this.props.x),b=Dy(Dy({},yt(this.props,!1)),{},{x:y,y:c,width:u,height:f}),_=h||"Min value: ".concat((a=g[p])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=g[v])===null||o===void 0?void 0:o.name);return V.createElement(lr,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),s.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,b))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,c=a.travellerWidth,u=Math.min(n,i)+c,f=Math.max(Math.abs(i-n)-c,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:u,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,c=n.stroke,u=this.state,f=u.startX,d=u.endX,h=5,g={pointerEvents:"none",fill:c};return V.createElement(lr,{className:"recharts-brush-texts"},V.createElement(dc,Ud({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,d)-h,y:o+s/2},g),this.getTextOfTick(i)),V.createElement(dc,Ud({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,c=n.width,u=n.height,f=n.alwaysShowText,d=this.state,h=d.startX,g=d.endX,p=d.isTextActive,v=d.isSlideMoving,y=d.isTravellerMoving,b=d.isTravellerFocused;if(!i||!i.length||!nt(s)||!nt(l)||!nt(c)||!nt(u)||c<=0||u<=0)return null;var _=Dt("recharts-brush",a),A=V.Children.count(o)===1,S=Nee("userSelect","none");return V.createElement(lr,{className:_,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),A&&this.renderPanorama(),this.renderSlide(h,g),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(g,"endX"),(p||v||y||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,c=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:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),V.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return V.isValidElement(n)?a=V.cloneElement(n,i):Ct(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,c=n.updateId,u=n.startIndex,f=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Dy({prevData:a,prevTravellerWidth:l,prevUpdateId:c,prevX:s,prevWidth:o},a&&a.length?Ree({data:a,width:o,x:s,travellerWidth:l,startIndex:u,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:c,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);Ti(Sc,"displayName","Brush");Ti(Sc,"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 By,wE;function Mee(){if(wE)return By;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 By=t,By}var $y,_E;function Dee(){if(_E)return $y;_E=1;var e=ZO(),t=Wa(),r=Mee(),n=gi(),i=Ap();function a(o,s,l){var c=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),c(o,t(s,3))}return $y=a,$y}var Bee=Dee();const $ee=ur(Bee);var Da=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},qy,SE;function qee(){if(SE)return qy;SE=1;var e=v6();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return qy=t,qy}var Uy,AE;function Uee(){if(AE)return Uy;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,c){e(o,l,a(s,l,c))}),o}return Uy=n,Uy}var zee=Uee();const Wee=ur(zee);var zy,TE;function Hee(){if(TE)return zy;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 zy=e,zy}var Wy,EE;function Gee(){if(EE)return Wy;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 Wy=t,Wy}var Hy,PE;function Vee(){if(PE)return Hy;PE=1;var e=Hee(),t=Gee(),r=Wa(),n=gi(),i=Ap();function a(o,s,l){var c=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),c(o,r(s,3))}return Hy=a,Hy}var Yee=Vee();const oC=ur(Yee);var Kee=["x","y"];function Ac(e){"@babel/helpers - typeof";return Ac=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},Ac(e)}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 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 Mu(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){Xee(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 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 Ac(t)=="symbol"?t:t+""}function Zee(e,t){if(Ac(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ac(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,Kee),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||i.height),u=parseInt(c,10),f="".concat(t.width||i.width),d=parseInt(f,10);return Mu(Mu(Mu(Mu(Mu({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:d,name:t.name,radius:t.radius})}function OE(e){return V.createElement(QQ,b2({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=nt(n)||Z$(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?hi(!1,"minPointSize callback function received a value with type of ".concat(Ac(n),". Currently only numbers or null/undefined are supported.")):hi()),r)}},nte=["value","background"],sC;function Tc(e){"@babel/helpers - typeof";return Tc=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},Tc(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 Wd(){return Wd=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},Wd.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 nn(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){es(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,cC(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=Hd(t),cte(e,lC()?Reflect.construct(t,r||[],Hd(e).constructor):t.apply(e,r))}function cte(e,t){if(t&&(Tc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ute(e)}function ute(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 Hd(e){return Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hd(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&&w2(e,t)}function w2(e,t){return w2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},w2(e,t)}function es(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=hte(e,"string");return Tc(t)=="symbol"?t:t+""}function hte(e,t){if(Tc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Tc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cl=(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)),es(r,"state",{isAnimationFinished:!1}),es(r,"id",sh("recharts-bar-")),es(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),es(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,c=a.activeBar,u=yt(this.props,!1);return n&&n.map(function(f,d){var h=d===l,g=h?c:o,p=nn(nn(nn({},u),f),{},{isActive:h,option:g,index:d,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return V.createElement(lr,Wd({className:"recharts-bar-rectangle"},sc(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(OE,p))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,c=i.animationDuration,u=i.animationEasing,f=i.animationId,d=this.state.prevData;return V.createElement(qa,{begin:l,duration:c,isActive:s,easing:u,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(v,y){var b=d&&d[y];if(b){var _=ti(b.x,v.x),A=ti(b.y,v.y),S=ti(b.width,v.width),O=ti(b.height,v.height);return nn(nn({},v),{},{x:_(g),y:A(g),width:S(g),height:O(g)})}if(o==="horizontal"){var T=ti(0,v.height),k=T(g);return nn(nn({},v),{},{y:v.y+v.height-k,height:k})}var L=ti(0,v.width),B=L(g);return nn(nn({},v),{},{width:B})});return V.createElement(lr,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||!dh(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=yt(this.props.background,!1);return a.map(function(c,u){c.value;var f=c.background,d=ite(c,nte);if(!f)return null;var h=nn(nn(nn(nn(nn({},d),{},{fill:"#eee"},f),l),sc(n.props,c,u)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:u,className:"recharts-bar-background-rectangle"});return V.createElement(OE,Wd({key:"background-bar-".concat(u),option:n.props.background,isActive:u===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,c=a.layout,u=a.children,f=Xi(u,ph);if(!f)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(v,y){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:ii(v,y)}},g={clipPath:n?"url(#clipPath-".concat(i,")"):null};return V.createElement(lr,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:c,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,c=n.left,u=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 v=this.state.isAnimationFinished,y=Dt("recharts-bar",o),b=s&&s.allowDataOverflow,_=l&&l.allowDataOverflow,A=b||_,S=Ut(p)?this.id:p;return V.createElement(lr,{className:y},b||_?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(S)},V.createElement("rect",{x:b?c:c-f/2,y:_?u:u-d/2,width:b?f:f*2,height:_?d:d*2}))):null,V.createElement(lr,{className:"recharts-bar-rectangles",clipPath:A?"url(#clipPath-".concat(S,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(A,S),(!h||v)&&yo.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=cl;es(cl,"displayName","Bar");es(cl,"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"});es(cl,"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,c=e.stackedData,u=e.dataStartIndex,f=e.displayedData,d=e.offset,h=pK(n,r);if(!h)return null;var g=t.layout,p=r.type.defaultProps,v=p!==void 0?nn(nn({},p),r.props):r.props,y=v.dataKey,b=v.children,_=v.minPointSize,A=g==="horizontal"?o:a,S=c?A.scale.domain():null,O=wK({numericAxis:A}),T=Xi(b,S6),k=f.map(function(L,B){var C,P,M,U,J,q;c?C=mK(c[u+B],S):(C=ii(L,y),Array.isArray(C)||(C=[O,C]));var W=rte(_,sC.defaultProps.minPointSize)(C[1],B);if(g==="horizontal"){var ee,Z=[o.scale(C[0]),o.scale(C[1])],Q=Z[0],ce=Z[1];P=KA({axis:a,ticks:s,bandSize:i,offset:h.offset,entry:L,index:B}),M=(ee=ce??Q)!==null&&ee!==void 0?ee:void 0,U=h.size;var N=Q-ce;if(J=Number.isNaN(N)?0:N,q={x:P,y:o.y,width:U,height:o.height},Math.abs(W)>0&&Math.abs(J)<Math.abs(W)){var I=xa(J||W)*(Math.abs(W)-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=KA({axis:o,ticks:l,bandSize:i,offset:h.offset,entry:L,index:B}),U=G-D,J=h.size,q={x:a.x,y:M,width:a.width,height:J},Math.abs(W)>0&&Math.abs(U)<Math.abs(W)){var fe=xa(U||W)*(Math.abs(W)-Math.abs(U));U+=fe}}return nn(nn(nn({},L),{},{x:P,y:M,width:U,height:J,value:c?C:C[1],payload:L,background:q},T&&T[B]&&T[B].props),{},{tooltipPayload:[k8(r,L)],tooltipPosition:{x:P+U/2,y:M+J/2}})});return nn({data:k,layout:g},d)});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 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,uC(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 pa(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){$p(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 $p(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=mte(e,"string");return Yf(t)=="symbol"?t:t+""}function mte(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)}var fC=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,c=t.children,u=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=!!Pi(c,cl);return u.reduce(function(h,g){var p=r[g],v=p.orientation,y=p.domain,b=p.padding,_=b===void 0?{}:b,A=p.mirror,S=p.reversed,O="".concat(v).concat(A?"Mirror":""),T,k,L,B,C;if(p.type==="number"&&(p.padding==="gap"||p.padding==="no-gap")){var P=y[1]-y[0],M=1/0,U=p.categoricalDomain.sort(tq);if(U.forEach(function(R,D){D>0&&(M=Math.min((R||0)-(U[D-1]||0),M))}),Number.isFinite(M)){var J=M/P,q=p.layout==="vertical"?n.height:n.width;if(p.padding==="gap"&&(T=J*q/2),p.padding==="no-gap"){var W=ba(t.barCategoryGap,J*q),ee=J*q/2;T=ee-W-(ee-W)/q*W}}}i==="xAxis"?k=[n.left+(_.left||0)+(T||0),n.left+n.width-(_.right||0)-(T||0)]:i==="yAxis"?k=l==="horizontal"?[n.top+n.height-(_.bottom||0),n.top+(_.top||0)]:[n.top+(_.top||0)+(T||0),n.top+n.height-(_.bottom||0)-(T||0)]:k=p.range,S&&(k=[k[1],k[0]]);var Z=N8(p,a,d),Q=Z.scale,ce=Z.realScaleType;Q.domain(y).range(k),O8(Q);var N=C8(Q,pa(pa({},p),{},{realScaleType:ce}));i==="xAxis"?(C=v==="top"&&!A||v==="bottom"&&A,L=n.left,B=f[O]-C*p.height):i==="yAxis"&&(C=v==="left"&&!A||v==="right"&&A,L=f[O]-C*p.width,B=n.top);var I=pa(pa(pa({},p),N),{},{realScaleType:ce,x:L,y:B,scale:Q,width:i==="xAxis"?n.width:p.width,height:i==="yAxis"?n.height:p.height});return I.bandSize=Ed(I,N),!p.hide&&i==="xAxis"?f[O]+=(C?-1:1)*I.height:p.hide||(f[O]+=(C?-1:1)*I.width),pa(pa({},h),{},$p({},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)}},vte=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)}}])})();$p(dC,"EPS",1e-4);var l5=function(t){var r=Object.keys(t).reduce(function(n,i){return pa(pa({},n),{},$p({},i,dC.create(t[i])))},{});return pa(pa({},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,c){return r[c].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)},Gy,IE;function xte(){if(IE)return Gy;IE=1;var e=Wa(),t=lh(),r=_p();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(f){return c(l[f],f,l)}}var u=i(a,o,s);return u>-1?l[c?a[u]:u]:void 0}}return Gy=n,Gy}var Vy,FE;function bte(){if(FE)return Vy;FE=1;var e=rC();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Vy=t,Vy}var Yy,RE;function wte(){if(RE)return Yy;RE=1;var e=c6(),t=Wa(),r=bte(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var c=s==null?0:r(s);return c<0&&(c=n(l+c,0)),e(a,t(o,3),c)}return Yy=i,Yy}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=ur(Ste);var Tte=TO();const Ete=ur(Tte);var Pte=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 Gd(e){"@babel/helpers - typeof";return Gd=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},Gd(e)}var c5=V.createContext(void 0),u5=V.createContext(void 0),pC=V.createContext(void 0),mC=V.createContext({}),vC=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,c=t.height,u=Pte(a);return V.createElement(c5.Provider,{value:n},V.createElement(u5.Provider,{value:i},V.createElement(mC.Provider,{value:a},V.createElement(pC.Provider,{value:u},V.createElement(vC.Provider,{value:o},V.createElement(gC.Provider,{value:c},V.createElement(yC.Provider,{value:l},s)))))))},Nte=function(){return V.useContext(vC)};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(c5);r==null&&(process.env.NODE_ENV!=="production"?hi(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):hi());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?hi(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(Gd(t),"]. ").concat(xC(r))):hi()),n},Ote=function(){var t=V.useContext(c5);return Xo(t)},Cte=function(){var t=V.useContext(u5),r=Ate(t,function(n){return oC(n.domain,Number.isFinite)});return r||Xo(t)},wC=function(t){var r=V.useContext(u5);r==null&&(process.env.NODE_ENV!=="production"?hi(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):hi());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?hi(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(Gd(t),"]. ").concat(xC(r))):hi()),n},jte=function(){var t=V.useContext(pC);return t},kte=function(){return V.useContext(mC)},f5=function(){return V.useContext(yC)},h5=function(){return V.useContext(gC)};function Ec(e){"@babel/helpers - typeof";return Ec=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},Ec(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=Vd(t),Mte(e,_C()?Reflect.construct(t,r||[],Vd(e).constructor):t.apply(e,r))}function Mte(e,t){if(t&&(Ec(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 Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Vd(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&&_2(e,t)}function _2(e,t){return _2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_2(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 Ec(t)=="symbol"?t:t+""}function $te(e,t){if(Ec(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ec(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Hte(e){if(Array.isArray(e))return e}function S2(){return S2=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},S2.apply(this,arguments)}var Gte=function(t,r){var n;return V.isValidElement(t)?n=V.cloneElement(t,r):Ct(t)?n=t(r):n=V.createElement("line",S2({},r,{className:"recharts-reference-line-line"})),n},Vte=function(t,r,n,i,a,o,s,l,c){var u=a.x,f=a.y,d=a.width,h=a.height;if(n){var g=c.y,p=t.y.apply(g,{position:o});if(Da(c,"discard")&&!t.y.isInRange(p))return null;var v=[{x:u+d,y:p},{x:u,y:p}];return l==="left"?v.reverse():v}if(r){var y=c.x,b=t.x.apply(y,{position:o});if(Da(c,"discard")&&!t.x.isInRange(b))return null;var _=[{x:b,y:f+h},{x:b,y:f}];return s==="top"?_.reverse():_}if(i){var A=c.segment,S=A.map(function(O){return t.apply(O,{position:o})});return Da(c,"discard")&&$ee(S,function(O){return!t.isInRange(O)})?null:S}return null};function Yte(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,c=Nte(),u=bC(i),f=wC(a),d=jte();if(!c||!d)return null;vo(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=l5({x:u.scale,y:f.scale}),g=pn(t),p=pn(r),v=n&&n.length===2,y=Vte(h,g,p,v,d,e.position,u.orientation,f.orientation,e);if(!y)return null;var b=qte(y,2),_=b[0],A=_.x,S=_.y,O=b[1],T=O.x,k=O.y,L=Da(e,"hidden")?"url(#".concat(c,")"):void 0,B=$E($E({clipPath:L},yt(e,!0)),{},{x1:A,y1:S,x2:T,y2:k});return V.createElement(lr,{className:Dt("recharts-reference-line",s)},Gte(o,B),Cn.renderCallByParent(e,vte({x1:A,y1:S,x2:T,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(Yte,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 A2(){return A2=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},A2.apply(this,arguments)}function Pc(e){"@babel/helpers - typeof";return Pc=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},Pc(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){qp(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 Kte(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=Yd(t),Qte(e,AC()?Reflect.construct(t,r||[],Yd(e).constructor):t.apply(e,r))}function Qte(e,t){if(t&&(Pc(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 Yd(e){return Yd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yd(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&&T2(e,t)}function T2(e,t){return T2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},T2(e,t)}function qp(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 Pc(t)=="symbol"?t:t+""}function rre(e,t){if(Pc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pc(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},Up=(function(e){function t(){return Kte(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,c=pn(i),u=pn(a);if(vo(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!u)return null;var f=nre(this.props);if(!f)return null;var d=f.x,h=f.y,g=this.props,p=g.shape,v=g.className,y=Da(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=zE(zE({clipPath:y},yt(this.props,!0)),{},{cx:d,cy:h});return V.createElement(lr,{className:Dt("recharts-reference-dot",v)},t.renderDot(p,b),Cn.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(V.Component);qp(Up,"displayName","ReferenceDot");qp(Up,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});qp(Up,"renderDot",function(e,t){var r;return V.isValidElement(e)?r=V.cloneElement(e,t):Ct(e)?r=e(t):r=V.createElement(mh,A2({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function E2(){return E2=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},E2.apply(this,arguments)}function Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(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){zp(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,PC(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=Kd(t),lre(e,EC()?Reflect.construct(t,r||[],Kd(e).constructor):t.apply(e,r))}function lre(e,t){if(t&&(Nc(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 EC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EC=function(){return!!e})()}function Kd(e){return Kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Kd(e)}function ure(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&&P2(e,t)}function P2(e,t){return P2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},P2(e,t)}function zp(e,t,r){return t=PC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PC(e){var t=fre(e,"string");return Nc(t)=="symbol"?t:t+""}function fre(e,t){if(Nc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nc(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,c=a.y2,u=a.xAxis,f=a.yAxis;if(!u||!f)return null;var d=l5({x:u.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(c,{position:"end"}):d.y.rangeMax};return Da(a,"discard")&&(!d.isInRange(h)||!d.isInRange(g))?null:hC(h,g)},Wp=(function(e){function t(){return ire(this,t),sre(this,t,arguments)}return ure(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,c=n.alwaysShow,u=n.clipPathId;vo(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=pn(i),d=pn(a),h=pn(o),g=pn(s),p=this.props.shape;if(!f&&!d&&!h&&!g&&!p)return null;var v=hre(f,d,h,g,this.props);if(!v&&!p)return null;var y=Da(this.props,"hidden")?"url(#".concat(u,")"):void 0;return V.createElement(lr,{className:Dt("recharts-reference-area",l)},t.renderRect(p,HE(HE({clipPath:y},yt(this.props,!0)),v)),Cn.renderCallByParent(this.props,v))}}])})(V.Component);zp(Wp,"displayName","ReferenceArea");zp(Wp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});zp(Wp,"renderRect",function(e,t){var r;return V.isValidElement(e)?r=V.cloneElement(e,t):Ct(e)?r=e(t):r=V.createElement(s5,E2({},t,{className:"recharts-reference-area-rect"})),r});function NC(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 Xd(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 mre(e,t){return NC(e,t+1)}function vre(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,u=o,f=function(){var g=n==null?void 0:n[l];if(g===void 0)return{v:NC(n,c)};var p=l,v,y=function(){return v===void 0&&(v=r(g,p)),v},b=g.coordinate,_=l===0||Xd(e,b,y,u,s);_||(l=0,u=o,c+=1),_&&(u=b+e*(y()/2+i),l+=c)},d;c<=a.length;)if(d=f(),d)return d.v;return[]}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 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 Un(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 Kf(t)=="symbol"?t:t+""}function xre(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 bre(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,c=function(d){var h=a[d],g,p=function(){return g===void 0&&(g=r(h,d)),g};if(d===o-1){var v=e*(h.coordinate+e*p()/2-l);a[d]=h=Un(Un({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else a[d]=h=Un(Un({},h),{},{tickCoord:h.coordinate});var y=Xd(e,h.tickCoord,p,s,l);y&&(l=h.tickCoord-e*(p()/2+i),a[d]=Un(Un({},h),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return a}function wre(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(a){var u=n[s-1],f=r(u,s-1),d=e*(u.coordinate+e*f/2-c);o[s-1]=u=Un(Un({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate});var h=Xd(e,u.tickCoord,function(){return f},l,c);h&&(c=u.tickCoord-e*(f/2+i),o[s-1]=Un(Un({},u),{},{isShow:!0}))}for(var g=a?s-1:s,p=function(b){var _=o[b],A,S=function(){return A===void 0&&(A=r(_,b)),A};if(b===0){var O=e*(_.coordinate-e*S()/2-l);o[b]=_=Un(Un({},_),{},{tickCoord:O<0?_.coordinate-O*e:_.coordinate})}else o[b]=_=Un(Un({},_),{},{tickCoord:_.coordinate});var T=Xd(e,_.tickCoord,S,l,c);T&&(l=_.tickCoord+e*(S()/2+i),o[b]=Un(Un({},_),{},{isShow:!0}))},v=0;v<g;v++)p(v);return o}function m5(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(nt(l)||al.isSsr)return mre(i,typeof l=="number"&&nt(l)?l:0);var d=[],h=s==="top"||s==="bottom"?"width":"height",g=u&&h==="width"?Qu(u,{fontSize:t,letterSpacing:r}):{width:0,height:0},p=function(_,A){var S=Ct(c)?c(_.value,A):_.value;return h==="width"?dre(Qu(S,{fontSize:t,letterSpacing:r}),g,f):Qu(S,{fontSize:t,letterSpacing:r})[h]},v=i.length>=2?xa(i[1].coordinate-i[0].coordinate):1,y=pre(a,v,h);return l==="equidistantPreserveStart"?vre(v,y,p,i,o):(l==="preserveStart"||l==="preserveStartEnd"?d=wre(v,y,p,i,o,l==="preserveStartEnd"):d=bre(v,y,p,i,o),d.filter(function(b){return b.isShow}))}var _re=["viewBox"],Sre=["viewBox"],Are=["ticks"];function Oc(e){"@babel/helpers - typeof";return Oc=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},Oc(e)}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 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 un(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){v5(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 Xy(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 YE(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 Pre(e,t,r){return t&&YE(e.prototype,t),r&&YE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nre(e,t,r){return t=Jd(t),Ore(e,OC()?Reflect.construct(t,r||[],Jd(e).constructor):t.apply(e,r))}function Ore(e,t){if(t&&(Oc(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 OC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OC=function(){return!!e})()}function Jd(e){return Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Jd(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&&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 v5(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 Oc(t)=="symbol"?t:t+""}function kre(e,t){if(Oc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yc=(function(e){function t(r){var n;return Ere(this,t),n=Nre(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return jre(t,e),Pre(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Xy(n,_re),s=this.props,l=s.viewBox,c=Xy(s,Sre);return!nc(a,l)||!nc(o,c)||!nc(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,c=i.orientation,u=i.tickSize,f=i.mirror,d=i.tickMargin,h,g,p,v,y,b,_=f?-1:1,A=n.tickSize||u,S=nt(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=g=n.coordinate,v=o+ +!f*l,p=v-_*A,b=p-_*d,y=S;break;case"left":p=v=n.coordinate,g=a+ +!f*s,h=g-_*A,y=h-_*d,b=S;break;case"right":p=v=n.coordinate,g=a+ +f*s,h=g+_*A,y=h+_*d,b=S;break;default:h=g=n.coordinate,v=o+ +f*l,p=v+_*A,b=p+_*d,y=S;break}return{line:{x1:h,y1:p,x2:g,y2:v},tick:{x:y,y:b}}}},{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,c=n.mirror,u=n.axisLine,f=un(un(un({},yt(this.props,!1)),yt(u,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var d=+(l==="top"&&!c||l==="bottom"&&c);f=un(un({},f),{},{x1:i,y1:a+d*s,x2:i+o,y2:a+d*s})}else{var h=+(l==="left"&&!c||l==="right"&&c);f=un(un({},f),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+s})}return V.createElement("line",Kl({},f,{className:Dt("recharts-cartesian-axis-line",Ki(u,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,c=s.stroke,u=s.tick,f=s.tickFormatter,d=s.unit,h=m5(un(un({},this.props),{},{ticks:n}),i,a),g=this.getTickTextAnchor(),p=this.getTickVerticalAnchor(),v=yt(this.props,!1),y=yt(u,!1),b=un(un({},v),{},{fill:"none"},yt(l,!1)),_=h.map(function(A,S){var O=o.getTickLineCoord(A),T=O.line,k=O.tick,L=un(un(un(un({textAnchor:g,verticalAnchor:p},v),{},{stroke:"none",fill:c},y),k),{},{index:S,payload:A,visibleTicksCount:h.length,tickFormatter:f});return V.createElement(lr,Kl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(A.value,"-").concat(A.coordinate,"-").concat(A.tickCoord)},sc(o.props,A,S)),l&&V.createElement("line",Kl({},b,T,{className:Dt("recharts-cartesian-axis-tick-line",Ki(l,"className"))})),u&&t.renderTickItem(u,L,"".concat(Ct(f)?f(A.value,S):A.value).concat(d||"")))});return V.createElement("g",{className:"recharts-cartesian-axis-ticks"},_)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,c=i.className,u=i.hide;if(u)return null;var f=this.props,d=f.ticks,h=Xy(f,Are),g=d;return Ct(l)&&(g=d&&d.length>0?l(this.props):l(h)),o<=0||s<=0||!g||!g.length?null:V.createElement(lr,{className:Dt("recharts-cartesian-axis",c),ref:function(v){n.layerReference=v}},a&&this.renderAxisLine(),this.renderTicks(g,this.state.fontSize,this.state.letterSpacing),Cn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Dt(i.className,"recharts-cartesian-axis-tick-value");return V.isValidElement(n)?o=V.cloneElement(n,un(un({},i),{},{className:s})):Ct(n)?o=n(un(un({},i),{},{className:s})):o=V.createElement(dc,Kl({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(V.Component);v5(Yc,"displayName","CartesianAxis");v5(Yc,"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 KE(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 zn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KE(Object(r),!0).forEach(function(n){Fre(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KE(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 Ms(){return Ms=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},Ms.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(Ct(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),c=yt(l,!1);c.offset;var u=XE(c,Ire);r=V.createElement("line",Ms({},u,{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 c=zn(zn({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return jC(i,c)});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 c=zn(zn({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return jC(i,c)});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,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var u=s.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==u[0]&&u.unshift(0);var f=u.map(function(d,h){var g=!u[h+1],p=g?i+o-d:u[h+1]-d;if(p<=0)return null;var v=h%t.length;return V.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:p,width:a,stroke:"none",fill:t[v],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,c=e.verticalPoints;if(!r||!n||!n.length)return null;var u=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==u[0]&&u.unshift(0);var f=u.map(function(d,h){var g=!u[h+1],p=g?a+s-d:u[h+1]-d;if(p<=0)return null;var v=h%n.length;return V.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:p,height:l,stroke:"none",fill:n[v],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 P8(m5(zn(zn(zn({},Yc.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 P8(m5(zn(zn(zn({},Yc.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 O2(e){var t,r,n,i,a,o,s=f5(),l=h5(),c=kte(),u=zn(zn({},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:nt(e.x)?e.x:c.left,y:nt(e.y)?e.y:c.top,width:nt(e.width)?e.width:c.width,height:nt(e.height)?e.height:c.height}),f=u.x,d=u.y,h=u.width,g=u.height,p=u.syncWithTicks,v=u.horizontalValues,y=u.verticalValues,b=Ote(),_=Cte();if(!nt(h)||h<=0||!nt(g)||g<=0||!nt(f)||f!==+f||!nt(d)||d!==+d)return null;var A=u.verticalCoordinatesGenerator||Wre,S=u.horizontalCoordinatesGenerator||Hre,O=u.horizontalPoints,T=u.verticalPoints;if((!O||!O.length)&&Ct(S)){var k=v&&v.length,L=S({yAxis:_?zn(zn({},_),{},{ticks:k?v:_.ticks}):void 0,width:s,height:l,offset:c},k?!0:p);vo(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Js(L),"]")),Array.isArray(L)&&(O=L)}if((!T||!T.length)&&Ct(A)){var B=y&&y.length,C=A({xAxis:b?zn(zn({},b),{},{ticks:B?y:b.ticks}):void 0,width:s,height:l,offset:c},B?!0:p);vo(Array.isArray(C),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Js(C),"]")),Array.isArray(C)&&(T=C)}return V.createElement("g",{className:"recharts-cartesian-grid"},V.createElement(Bre,{fill:u.fill,fillOpacity:u.fillOpacity,x:u.x,y:u.y,width:u.width,height:u.height,ry:u.ry}),V.createElement($re,Ms({},u,{offset:c,horizontalPoints:O,xAxis:b,yAxis:_})),V.createElement(qre,Ms({},u,{offset:c,verticalPoints:T,xAxis:b,yAxis:_})),V.createElement(Ure,Ms({},u,{horizontalPoints:O})),V.createElement(zre,Ms({},u,{verticalPoints:T})))}O2.displayName="CartesianGrid";var Gre=["type","layout","connectNulls","ref"],Vre=["key"];function Cc(e){"@babel/helpers - typeof";return Cc=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},Cc(e)}function JE(e,t){if(e==null)return{};var r=Yre(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 Yre(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 Ai(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){ma(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)||Kre()}function Kre(){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 C2(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 C2(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 C2(e)}function C2(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=Zd(t),rne(e,kC()?Reflect.construct(t,r||[],Zd(e).constructor):t.apply(e,r))}function rne(e,t){if(t&&(Cc(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 Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Zd(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&&j2(e,t)}function j2(e,t){return j2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},j2(e,t)}function ma(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 Cc(t)=="symbol"?t:t+""}function ane(e,t){if(Cc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xh=(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)),ma(r,"state",{isAnimationFinished:!0,totalLength:0}),ma(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),ma(r,"getStrokeDasharray",function(o,s,l){var c=l.reduce(function(y,b){return y+b});if(!c)return r.generateSimpleStrokeDasharray(s,o);for(var u=Math.floor(o/c),f=o%c,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 v=h.length%2===0?[0,d]:[d];return[].concat($l(t.repeat(l,u)),$l(h),v).map(function(y){return"".concat(y,"px")}).join(", ")}),ma(r,"id",sh("recharts-line-")),ma(r,"pathRef",function(o){r.mainCurve=o}),ma(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),ma(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,c=a.layout,u=a.children,f=Xi(u,ph);if(!f)return null;var d=function(p,v){return{x:p.x,y:p.y,value:p.value,errorVal:ii(p.payload,v)}},h={clipPath:n?"url(#clipPath-".concat(i,")"):null};return V.createElement(lr,h,f.map(function(g){return V.cloneElement(g,{key:"bar-".concat(g.props.dataKey),data:o,xAxis:s,yAxis:l,layout:c,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,c=s.points,u=s.dataKey,f=yt(this.props,!1),d=yt(l,!0),h=c.map(function(p,v){var y=Ai(Ai(Ai({key:"dot-".concat(v),r:3},f),d),{},{index:v,cx:p.x,cy:p.y,value:p.value,dataKey:u,payload:p.payload,points:c});return t.renderDotItem(l,y)}),g={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return V.createElement(lr,of({className:"recharts-line-dots",key:"dots"},g),h)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,c=s.layout,u=s.connectNulls;s.ref;var f=JE(s,Gre),d=Ai(Ai(Ai({},yt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:c,connectNulls:u});return V.createElement(n2,of({},d,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,c=o.isAnimationActive,u=o.animationBegin,f=o.animationDuration,d=o.animationEasing,h=o.animationId,g=o.animateNewValues,p=o.width,v=o.height,y=this.state,b=y.prevPoints,_=y.totalLength;return V.createElement(qa,{begin:u,duration:f,isActive:c,easing:d,from:{t:0},to:{t:1},key:"line-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var S=A.t;if(b){var O=b.length/s.length,T=s.map(function(P,M){var U=Math.floor(M*O);if(b[U]){var J=b[U],q=ti(J.x,P.x),W=ti(J.y,P.y);return Ai(Ai({},P),{},{x:q(S),y:W(S)})}if(g){var ee=ti(p*2,P.x),Z=ti(v/2,P.y);return Ai(Ai({},P),{},{x:ee(S),y:Z(S)})}return Ai(Ai({},P),{},{x:P.x,y:P.y})});return a.renderCurveStatically(T,n,i)}var k=ti(0,_),L=k(S),B;if(l){var C="".concat(l).split(/[,\s]+/gim).map(function(P){return parseFloat(P)});B=a.getStrokeDasharray(L,_,C)}else B=a.generateSimpleStrokeDasharray(_,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,c=l.prevPoints,u=l.totalLength;return s&&o&&o.length&&(!c&&u>0||!dh(c,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,c=i.xAxis,u=i.yAxis,f=i.top,d=i.left,h=i.width,g=i.height,p=i.isAnimationActive,v=i.id;if(a||!s||!s.length)return null;var y=this.state.isAnimationFinished,b=s.length===1,_=Dt("recharts-line",l),A=c&&c.allowDataOverflow,S=u&&u.allowDataOverflow,O=A||S,T=Ut(v)?this.id:v,k=(n=yt(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=uq(o)?o:{},U=M.clipDot,J=U===void 0?!0:U,q=B*2+P;return V.createElement(lr,{className:_},A||S?V.createElement("defs",null,V.createElement("clipPath",{id:"clipPath-".concat(T)},V.createElement("rect",{x:A?d:d-h/2,y:S?f:f-g/2,width:A?h:h*2,height:S?g:g*2})),!J&&V.createElement("clipPath",{id:"clipPath-dots-".concat(T)},V.createElement("rect",{x:d-q/2,y:f-q/2,width:h+q,height:g+q}))):null,!b&&this.renderCurve(O,T),this.renderErrorBar(O,T),(b||o)&&this.renderDots(O,J,T),(!p||y)&&yo.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(Ct(n))a=n(i);else{var o=i.key,s=JE(i,Vre),l=Dt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=V.createElement(mh,of({key:o},s,{className:l}))}return a}}])})(V.PureComponent);ma(xh,"displayName","Line");ma(xh,"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});ma(xh,"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,c=e.offset,u=t.layout,f=l.map(function(d,h){var g=ii(d,o);return u==="horizontal"?{x:YA({axis:r,ticks:i,bandSize:s,entry:d,index:h}),y:Ut(g)?null:n.scale(g),value:g,payload:d}:{x:Ut(g)?null:r.scale(g),y:YA({axis:n,ticks:a,bandSize:s,entry:d,index:h}),value:g,payload:d}});return Ai({points:f,layout:u},c)});function jc(e){"@babel/helpers - typeof";return jc=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},jc(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 cne(e,t,r){return t=Qd(t),une(e,IC()?Reflect.construct(t,r||[],Qd(e).constructor):t.apply(e,r))}function une(e,t){if(t&&(jc(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 Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qd(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&&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 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 jc(t)=="symbol"?t:t+""}function dne(e,t){if(jc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function L2(){return L2=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},L2.apply(this,arguments)}function pne(e){var t=e.xAxisId,r=f5(),n=h5(),i=bC(t);return i==null?null:is.createElement(Yc,L2({},i,{className:Dt("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 kc=(function(e){function t(){return one(this,t),cne(this,t,arguments)}return hne(t,e),lne(t,[{key:"render",value:function(){return is.createElement(pne,this.props)}}])})(is.Component);FC(kc,"displayName","XAxis");FC(kc,"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 Lc(e){"@babel/helpers - typeof";return Lc=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},Lc(e)}function mne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vne(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&&vne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yne(e,t,r){return t=ep(t),xne(e,MC()?Reflect.construct(t,r||[],ep(e).constructor):t.apply(e,r))}function xne(e,t){if(t&&(Lc(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 ep(e){return ep=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ep(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&&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 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 Lc(t)=="symbol"?t:t+""}function _ne(e,t){if(Lc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function F2(){return F2=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},F2.apply(this,arguments)}var Sne=function(t){var r=t.yAxisId,n=f5(),i=h5(),a=wC(r);return a==null?null:is.createElement(Yc,F2({},a,{className:Dt("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)}}))},Ic=(function(e){function t(){return mne(this,t),yne(this,t,arguments)}return wne(t,e),gne(t,[{key:"render",value:function(){return is.createElement(Sne,this.props)}}])})(is.Component);DC(Ic,"displayName","YAxis");DC(Ic,"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 eP(e){return Pne(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 R2(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 R2(e,t)}}function Ene(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pne(e){if(Array.isArray(e))return R2(e)}function R2(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 M2=function(t,r,n,i,a){var o=Xi(t,p5),s=Xi(t,Up),l=[].concat(eP(o),eP(s)),c=Xi(t,Wp),u="".concat(i,"Id"),f=i[0],d=r;if(l.length&&(d=l.reduce(function(p,v){if(v.props[u]===n&&Da(v.props,"extendDomain")&&nt(v.props[f])){var y=v.props[f];return[Math.min(p[0],y),Math.max(p[1],y)]}return p},d)),c.length){var h="".concat(f,"1"),g="".concat(f,"2");d=c.reduce(function(p,v){if(v.props[u]===n&&Da(v.props,"extendDomain")&&nt(v.props[h])&&nt(v.props[g])){var y=v.props[h],b=v.props[g];return[Math.min(p[0],y,b),Math.max(p[1],y,b)]}return p},d)}return a&&a.length&&(d=a.reduce(function(p,v){return nt(v)?[Math.min(p[0],v),Math.max(p[1],v)]:p},d)),d},Jy={exports:{}},tP;function Nne(){return tP||(tP=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,c,u){this.fn=l,this.context=c,this.once=u||!1}function a(l,c,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||l,d),g=r?r+c:c;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,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,f=this._events[u];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(c){var u=r?r+c:c,f=this._events[u];return f?f.fn?1:f.length:0},s.prototype.emit=function(c,u,f,d,h,g){var p=r?r+c:c;if(!this._events[p])return!1;var v=this._events[p],y=arguments.length,b,_;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,u),!0;case 3:return v.fn.call(v.context,u,f),!0;case 4:return v.fn.call(v.context,u,f,d),!0;case 5:return v.fn.call(v.context,u,f,d,h),!0;case 6:return v.fn.call(v.context,u,f,d,h,g),!0}for(_=1,b=new Array(y-1);_<y;_++)b[_-1]=arguments[_];v.fn.apply(v.context,b)}else{var A=v.length,S;for(_=0;_<A;_++)switch(v[_].once&&this.removeListener(c,v[_].fn,void 0,!0),y){case 1:v[_].fn.call(v[_].context);break;case 2:v[_].fn.call(v[_].context,u);break;case 3:v[_].fn.call(v[_].context,u,f);break;case 4:v[_].fn.call(v[_].context,u,f,d);break;default:if(!b)for(S=1,b=new Array(y-1);S<y;S++)b[S-1]=arguments[S];v[_].fn.apply(v[_].context,b)}}return!0},s.prototype.on=function(c,u,f){return a(this,c,u,f,!1)},s.prototype.once=function(c,u,f){return a(this,c,u,f,!0)},s.prototype.removeListener=function(c,u,f,d){var h=r?r+c:c;if(!this._events[h])return this;if(!u)return o(this,h),this;var g=this._events[h];if(g.fn)g.fn===u&&(!d||g.once)&&(!f||g.context===f)&&o(this,h);else{for(var p=0,v=[],y=g.length;p<y;p++)(g[p].fn!==u||d&&!g[p].once||f&&g[p].context!==f)&&v.push(g[p]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(c){var u;return c?(u=r?r+c:c,this._events[u]&&o(this,u)):(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})(Jy)),Jy.exports}var One=Nne();const Cne=ur(One);var Zy=new Cne,Qy="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 ex(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),ex(this,"activeIndex",0),ex(this,"coordinateList",[]),ex(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,c=l===void 0?null:l,u=r.offset,f=u===void 0?null:u,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=c??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,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,u=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+c,d=o+this.offset.top+s/2+u;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&&nt(n)&&nt(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=_r(t,r,n,i),s=_r(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,c=t.innerRadius,u=t.outerRadius,f=t.angle,d=_r(s,l,c,f),h=_r(s,l,u,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 rP(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 I0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rP(Object(r),!0).forEach(function(n){Bne(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rP(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,c=e.activeTooltipIndex,u=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=n2;if(d==="ScatterChart")g=o,p=HZ;else if(d==="BarChart")g=Mne(f,o,l,u),p=s5;else if(f==="radial"){var v=qC(o),y=v.cx,b=v.cy,_=v.radius,A=v.startAngle,S=v.endAngle;g={cx:y,cy:b,startAngle:A,endAngle:S,innerRadius:_,outerRadius:_},p=D8}else g={points:Dne(f,o,l)},p=n2;var O=I0(I0(I0(I0({stroke:"#ccc",pointerEvents:"none"},l),g),yt(h,!1)),{},{payload:s,payloadIndex:c,className:Dt("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 Fc(e){"@babel/helpers - typeof";return Fc=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},Fc(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 nP(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,c=!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(u){c=!0,i=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function Vne(e){if(Array.isArray(e))return e}function iP(e,t){if(e==null)return{};var r=Yne(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 Yne(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 Kne(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=tp(t),Qne(e,UC()?Reflect.construct(t,r||[],tp(e).constructor):t.apply(e,r))}function Qne(e,t){if(t&&(Fc(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 tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tp(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&&D2(e,t)}function D2(e,t){return D2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},D2(e,t)}function Rc(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 B2(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 B2(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 B2(e)}function B2(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 aP(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 Be(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(r),!0).forEach(function(n){At(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function At(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 Fc(t)=="symbol"?t:t+""}function aie(e,t){if(Fc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fc(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 F0(e){return e}var lie=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},cie=function(t,r,n,i){var a=r.find(function(u){return u&&u.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 Be(Be(Be({},i),_r(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,c=i.angle;return Be(Be(Be({},i),_r(i.cx,i.cy,l,c)),{},{angle:c,radius:l})}return HC},Hp=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var c=l.props.data;return c&&c.length?[].concat(Rc(s),Rc(c)):s},[]);return o.length>0?o:t&&t.length&&nt(i)&&nt(a)?t.slice(i,a+1):[]};function GC(e){return e==="number"?[0,"auto"]:void 0}var $2=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=Hp(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,c){var u,f=(u=c.props.data)!==null&&u!==void 0?u: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=ed(h,o.dataKey,i)}else d=f&&f[n]||s[n];return d?[].concat(Rc(l),[k8(c,d)]):l},[])},oP=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=lie(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,u=lK(o,s,c,l);if(u>=0&&c){var f=c[u]&&c[u].value,d=$2(t,r,u,f),h=cie(n,s,u,a);return{activeTooltipIndex:u,activeLabel:f,activePayload:d,activeCoordinate:h}}return null},uie=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,f=t.children,d=t.stackOffset,h=E8(u,a);return n.reduce(function(g,p){var v,y=p.type.defaultProps!==void 0?Be(Be({},p.type.defaultProps),p.props):p.props,b=y.type,_=y.dataKey,A=y.allowDataOverflow,S=y.allowDuplicatedCategory,O=y.scale,T=y.ticks,k=y.includeHidden,L=y[o];if(g[L])return g;var B=Hp(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:c}),C=B.length,P,M,U;Rne(y.domain,A,b)&&(P=Zx(y.domain,null,A),h&&(b==="number"||O!=="auto")&&(U=tf(B,_,"category")));var J=GC(b);if(!P||P.length===0){var q,W=(q=y.domain)!==null&&q!==void 0?q:J;if(_){if(P=tf(B,_,b),b==="category"&&h){var ee=eq(P);S&&ee?(M=P,P=qd(0,C)):S||(P=ZA(W,P,p).reduce(function(N,I){return N.indexOf(I)>=0?N:[].concat(Rc(N),[I])},[]))}else if(b==="category")S?P=P.filter(function(N){return N!==""&&!Ut(N)}):P=ZA(W,P,p).reduce(function(N,I){return N.indexOf(I)>=0||I===""||Ut(I)?N:[].concat(Rc(N),[I])},[]);else if(b==="number"){var Z=dK(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)}),_,a,u);Z&&(P=Z)}h&&(b==="number"||O!=="auto")&&(U=tf(B,_,"category"))}else h?P=qd(0,C):s&&s[L]&&s[L].hasStack&&b==="number"?P=d==="expand"?[0,1]:j8(s[L].stackGroups,l,c):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)}),b,u,!0);if(b==="number")P=M2(f,P,L,a,T),W&&(P=Zx(W,P,A));else if(b==="category"&&W){var Q=W,ce=P.every(function(N){return Q.indexOf(N)>=0});ce&&(P=Q)}}return Be(Be({},g),{},At({},L,Be(Be({},y),{},{axisType:a,domain:P,categoricalDomain:U,duplicateDomain:M,originalDomain:(v=y.domain)!==null&&v!==void 0?v:J,isCategorical:h,layout:u})))},{})},fie=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,u=t.layout,f=t.children,d=Hp(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),h=d.length,g=E8(u,a),p=-1;return n.reduce(function(v,y){var b=y.type.defaultProps!==void 0?Be(Be({},y.type.defaultProps),y.props):y.props,_=b[o],A=GC("number");if(!v[_]){p++;var S;return g?S=qd(0,h):s&&s[_]&&s[_].hasStack?(S=j8(s[_].stackGroups,l,c),S=M2(f,S,_,a)):(S=Zx(A,T8(d,n.filter(function(O){var T,k,L=o in O.props?O.props[o]:(T=O.type.defaultProps)===null||T===void 0?void 0:T[o],B="hide"in O.props?O.props.hide:(k=O.type.defaultProps)===null||k===void 0?void 0:k.hide;return L===_&&!B}),"number",u),i.defaultProps.allowDataOverflow),S=M2(f,S,_,a)),Be(Be({},v),{},At({},_,Be(Be({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ki(oie,"".concat(a,".").concat(p%2),null),domain:S,originalDomain:A,isCategorical:g,layout:u})))}return v},{})},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,c=r.dataEndIndex,u=t.children,f="".concat(i,"Id"),d=Xi(u,a),h={};return d&&d.length?h=uie(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(h=fie(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),h},die=function(t){var r=Xo(t),n=uo(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Lb(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Ed(r,n)}},sP=function(t){var r=t.children,n=t.defaultShowTooltip,i=Pi(r,Sc),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=mo(r&&r.type);return n&&n.indexOf("Bar")>=0})},lP=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"}},mie=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,c=n.width,u=n.height,f=n.children,d=n.margin||{},h=Pi(f,Sc),g=Pi(f,zs),p=Object.keys(l).reduce(function(S,O){var T=l[O],k=T.orientation;return!T.mirror&&!T.hide?Be(Be({},S),{},At({},k,S[k]+T.width)):S},{left:d.left||0,right:d.right||0}),v=Object.keys(o).reduce(function(S,O){var T=o[O],k=T.orientation;return!T.mirror&&!T.hide?Be(Be({},S),{},At({},k,Ki(S,"".concat(k))+T.height)):S},{top:d.top||0,bottom:d.bottom||0}),y=Be(Be({},v),p),b=y.bottom;h&&(y.bottom+=h.props.height||Sc.defaultProps.height),g&&r&&(y=fK(y,i,n,r));var _=c-y.left-y.right,A=u-y.top-y.bottom;return Be(Be({brushBottom:b},y),{},{width:Math.max(_,0),height:Math.max(A,0)})},vie=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,c=t.legendContent,u=t.formatAxisMap,f=t.defaultProps,d=function(y,b){var _=b.graphicalItems,A=b.stackGroups,S=b.offset,O=b.updateId,T=b.dataStartIndex,k=b.dataEndIndex,L=y.barSize,B=y.layout,C=y.barGap,P=y.barCategoryGap,M=y.maxBarSize,U=lP(B),J=U.numericAxisName,q=U.cateAxisName,W=pie(_),ee=[];return _.forEach(function(Z,Q){var ce=Hp(y.data,{graphicalItems:[Z],dataStartIndex:T,dataEndIndex:k}),N=Z.type.defaultProps!==void 0?Be(Be({},Z.type.defaultProps),Z.props):Z.props,I=N.dataKey,R=N.maxBarSize,D=N["".concat(J,"Id")],G=N["".concat(q,"Id")],fe={},ae=l.reduce(function(Ze,Je){var ft,pt,xt=b["".concat(Je.axisType,"Map")],Nt=N["".concat(Je.axisType,"Id")];xt&&xt[Nt]||Je.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?hi(!1,"Specifying a(n) ".concat(Je.axisType,"Id requires a corresponding ").concat(Je.axisType,"Id on the targeted graphical component ").concat((ft=Z==null||(pt=Z.type)===null||pt===void 0?void 0:pt.displayName)!==null&&ft!==void 0?ft:"")):hi());var Ft=xt[Nt];return Be(Be({},Ze),{},At(At({},Je.axisType,Ft),"".concat(Je.axisType,"Ticks"),uo(Ft)))},fe),ne=ae[q],ve=ae["".concat(q,"Ticks")],_e=A&&A[D]&&A[D].hasStack&&_K(Z,A[D].stackGroups),se=mo(Z.type).indexOf("Bar")>=0,Fe=Ed(ne,ve),Ae=[],Ee=W&&cK({barSize:L,stackGroups:A,totalSize:vie(ae,q)});if(se){var le,De,tt=Ut(R)?M:R,Ue=(le=(De=Ed(ne,ve,!0))!==null&&De!==void 0?De:tt)!==null&&le!==void 0?le:0;Ae=uK({barGap:C,barCategoryGap:P,bandSize:Ue!==Fe?Ue:Fe,sizeList:Ee[G],maxBarSize:tt}),Ue!==Fe&&(Ae=Ae.map(function(Ze){return Be(Be({},Ze),{},{position:Be(Be({},Ze.position),{},{offset:Ze.position.offset-Ue/2})})}))}var Ke=Z&&Z.type&&Z.type.getComposedData;Ke&&ee.push({props:Be(Be({},Ke(Be(Be({},ae),{},{displayedData:ce,props:y,dataKey:I,item:Z,bandSize:Fe,barPosition:Ae,offset:S,stackedData:_e,layout:B,dataStartIndex:T,dataEndIndex:k}))),{},At(At(At({key:Z.key||"item-".concat(Q)},J,ae[J]),q,ae[q]),"animationId",O)),childIndex:dq(Z,y.children),item:Z})}),ee},h=function(y,b){var _=y.props,A=y.dataStartIndex,S=y.dataEndIndex,O=y.updateId;if(!h4({props:_}))return null;var T=_.children,k=_.layout,L=_.stackOffset,B=_.data,C=_.reverseStackOrder,P=lP(k),M=P.numericAxisName,U=P.cateAxisName,J=Xi(T,n),q=bK(B,J,"".concat(M,"Id"),"".concat(U,"Id"),L,C),W=l.reduce(function(N,I){var R="".concat(I.axisType,"Map");return Be(Be({},N),{},At({},R,hie(_,Be(Be({},I),{},{graphicalItems:J,stackGroups:I.axisType===M&&q,dataStartIndex:A,dataEndIndex:S}))))},{}),ee=mie(Be(Be({},W),{},{props:_,graphicalItems:J}),b==null?void 0:b.legendBBox);Object.keys(W).forEach(function(N){W[N]=u(_,W[N],ee,N.replace("Map",""),r)});var Z=W["".concat(U,"Map")],Q=die(Z),ce=d(_,Be(Be({},W),{},{dataStartIndex:A,dataEndIndex:S,updateId:O,graphicalItems:J,stackGroups:q,offset:ee}));return Be(Be({formattedGraphicalItems:ce,graphicalItems:J,offset:ee,stackGroups:q},Q),W)},g=(function(v){function y(b){var _,A,S;return Kne(this,y),S=Zne(this,y,[b]),At(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),At(S,"accessibilityManager",new Fne),At(S,"handleLegendBBoxUpdate",function(O){if(O){var T=S.state,k=T.dataStartIndex,L=T.dataEndIndex,B=T.updateId;S.setState(Be({legendBBox:O},h({props:S.props,dataStartIndex:k,dataEndIndex:L,updateId:B},Be(Be({},S.state),{},{legendBBox:O}))))}}),At(S,"handleReceiveSyncEvent",function(O,T,k){if(S.props.syncId===O){if(k===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(T)}}),At(S,"handleBrushChange",function(O){var T=O.startIndex,k=O.endIndex;if(T!==S.state.dataStartIndex||k!==S.state.dataEndIndex){var L=S.state.updateId;S.setState(function(){return Be({dataStartIndex:T,dataEndIndex:k},h({props:S.props,dataStartIndex:T,dataEndIndex:k,updateId:L},S.state))}),S.triggerSyncEvent({dataStartIndex:T,dataEndIndex:k})}}),At(S,"handleMouseEnter",function(O){var T=S.getMouseInfo(O);if(T){var k=Be(Be({},T),{},{isTooltipActive:!0});S.setState(k),S.triggerSyncEvent(k);var L=S.props.onMouseEnter;Ct(L)&&L(k,O)}}),At(S,"triggeredAfterMouseMove",function(O){var T=S.getMouseInfo(O),k=T?Be(Be({},T),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(k),S.triggerSyncEvent(k);var L=S.props.onMouseMove;Ct(L)&&L(k,O)}),At(S,"handleItemMouseEnter",function(O){S.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),At(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),At(S,"handleMouseMove",function(O){O.persist(),S.throttleTriggeredAfterMouseMove(O)}),At(S,"handleMouseLeave",function(O){S.throttleTriggeredAfterMouseMove.cancel();var T={isTooltipActive:!1};S.setState(T),S.triggerSyncEvent(T);var k=S.props.onMouseLeave;Ct(k)&&k(T,O)}),At(S,"handleOuterEvent",function(O){var T=hq(O),k=Ki(S.props,"".concat(T));if(T&&Ct(k)){var L,B;/.*touch.*/i.test(T)?B=S.getMouseInfo(O.changedTouches[0]):B=S.getMouseInfo(O),k((L=B)!==null&&L!==void 0?L:{},O)}}),At(S,"handleClick",function(O){var T=S.getMouseInfo(O);if(T){var k=Be(Be({},T),{},{isTooltipActive:!0});S.setState(k),S.triggerSyncEvent(k);var L=S.props.onClick;Ct(L)&&L(k,O)}}),At(S,"handleMouseDown",function(O){var T=S.props.onMouseDown;if(Ct(T)){var k=S.getMouseInfo(O);T(k,O)}}),At(S,"handleMouseUp",function(O){var T=S.props.onMouseUp;if(Ct(T)){var k=S.getMouseInfo(O);T(k,O)}}),At(S,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),At(S,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.handleMouseDown(O.changedTouches[0])}),At(S,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&S.handleMouseUp(O.changedTouches[0])}),At(S,"handleDoubleClick",function(O){var T=S.props.onDoubleClick;if(Ct(T)){var k=S.getMouseInfo(O);T(k,O)}}),At(S,"handleContextMenu",function(O){var T=S.props.onContextMenu;if(Ct(T)){var k=S.getMouseInfo(O);T(k,O)}}),At(S,"triggerSyncEvent",function(O){S.props.syncId!==void 0&&Zy.emit(Qy,S.props.syncId,O,S.eventEmitterSymbol)}),At(S,"applySyncEvent",function(O){var T=S.props,k=T.layout,L=T.syncMethod,B=S.state.updateId,C=O.dataStartIndex,P=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)S.setState(Be({dataStartIndex:C,dataEndIndex:P},h({props:S.props,dataStartIndex:C,dataEndIndex:P,updateId:B},S.state)));else if(O.activeTooltipIndex!==void 0){var M=O.chartX,U=O.chartY,J=O.activeTooltipIndex,q=S.state,W=q.offset,ee=q.tooltipTicks;if(!W)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=Be(Be({},W),{},{x:W.left,y:W.top}),ce=Math.min(M,Q.x+Q.width),N=Math.min(U,Q.y+Q.height),I=ee[J]&&ee[J].value,R=$2(S.state,S.props.data,J),D=ee[J]?{x:k==="horizontal"?ee[J].coordinate:ce,y:k==="horizontal"?N:ee[J].coordinate}:HC;S.setState(Be(Be({},O),{},{activeLabel:I,activeCoordinate:D,activePayload:R,activeTooltipIndex:J}))}else S.setState(O)}),At(S,"renderCursor",function(O){var T,k=S.state,L=k.isTooltipActive,B=k.activeCoordinate,C=k.activePayload,P=k.offset,M=k.activeTooltipIndex,U=k.tooltipAxisBandSize,J=S.getTooltipEventType(),q=(T=O.props.active)!==null&&T!==void 0?T:L,W=S.props.layout,ee=O.key||"_recharts-cursor";return V.createElement(Une,{key:ee,activeCoordinate:B,activePayload:C,activeTooltipIndex:M,chartName:r,element:O,isActive:q,layout:W,offset:P,tooltipAxisBandSize:U,tooltipEventType:J})}),At(S,"renderPolarAxis",function(O,T,k){var L=Ki(O,"type.axisType"),B=Ki(S.state,"".concat(L,"Map")),C=O.type.defaultProps,P=C!==void 0?Be(Be({},C),O.props):O.props,M=B&&B[P["".concat(L,"Id")]];return V.cloneElement(O,Be(Be({},M),{},{className:Dt(L,M.className),key:O.key||"".concat(T,"-").concat(k),ticks:uo(M,!0)}))}),At(S,"renderPolarGrid",function(O){var T=O.props,k=T.radialLines,L=T.polarAngles,B=T.polarRadius,C=S.state,P=C.radiusAxisMap,M=C.angleAxisMap,U=Xo(P),J=Xo(M),q=J.cx,W=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(U,!0).map(function(Q){return Q.coordinate}),cx:q,cy:W,innerRadius:ee,outerRadius:Z,key:O.key||"polar-grid",radialLines:k})}),At(S,"renderLegend",function(){var O=S.state.formattedGraphicalItems,T=S.props,k=T.children,L=T.width,B=T.height,C=S.props.margin||{},P=L-(C.left||0)-(C.right||0),M=S8({children:k,formattedGraphicalItems:O,legendWidth:P,legendContent:c});if(!M)return null;var U=M.item,J=iP(M,zne);return V.cloneElement(U,Be(Be({},J),{},{chartWidth:L,chartHeight:B,margin:C,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),At(S,"renderTooltip",function(){var O,T=S.props,k=T.children,L=T.accessibilityLayer,B=Pi(k,da);if(!B)return null;var C=S.state,P=C.isTooltipActive,M=C.activeCoordinate,U=C.activePayload,J=C.activeLabel,q=C.offset,W=(O=B.props.active)!==null&&O!==void 0?O:P;return V.cloneElement(B,{viewBox:Be(Be({},q),{},{x:q.left,y:q.top}),active:W,label:J,payload:W?U:[],coordinate:M,accessibilityLayer:L})}),At(S,"renderBrush",function(O){var T=S.props,k=T.margin,L=T.data,B=S.state,C=B.offset,P=B.dataStartIndex,M=B.dataEndIndex,U=B.updateId;return V.cloneElement(O,{key:O.key||"_recharts-brush",onChange:N0(S.handleBrushChange,O.props.onChange),data:L,x:nt(O.props.x)?O.props.x:C.left,y:nt(O.props.y)?O.props.y:C.top+C.height+C.brushBottom-(k.bottom||0),width:nt(O.props.width)?O.props.width:C.width,startIndex:P,endIndex:M,updateId:"brush-".concat(U)})}),At(S,"renderReferenceElement",function(O,T,k){if(!O)return null;var L=S,B=L.clipPathId,C=S.state,P=C.xAxisMap,M=C.yAxisMap,U=C.offset,J=O.type.defaultProps||{},q=O.props,W=q.xAxisId,ee=W===void 0?J.xAxisId:W,Z=q.yAxisId,Q=Z===void 0?J.yAxisId:Z;return V.cloneElement(O,{key:O.key||"".concat(T,"-").concat(k),xAxis:P[ee],yAxis:M[Q],viewBox:{x:U.left,y:U.top,width:U.width,height:U.height},clipPathId:B})}),At(S,"renderActivePoints",function(O){var T=O.item,k=O.activePoint,L=O.basePoint,B=O.childIndex,C=O.isRange,P=[],M=T.props.key,U=T.item.type.defaultProps!==void 0?Be(Be({},T.item.type.defaultProps),T.item.props):T.item.props,J=U.activeDot,q=U.dataKey,W=Be(Be({index:B,dataKey:q,cx:k.x,cy:k.y,r:4,fill:a5(T.item),strokeWidth:2,stroke:"#fff",payload:k.payload,value:k.value},yt(J,!1)),td(J));return P.push(y.renderActiveDot(J,W,"".concat(M,"-activePoint-").concat(B))),L?P.push(y.renderActiveDot(J,Be(Be({},W),{},{cx:L.x,cy:L.y}),"".concat(M,"-basePoint-").concat(B))):C&&P.push(null),P}),At(S,"renderGraphicChild",function(O,T,k){var L=S.filterFormatItem(O,T,k);if(!L)return null;var B=S.getTooltipEventType(),C=S.state,P=C.isTooltipActive,M=C.tooltipAxis,U=C.activeTooltipIndex,J=C.activeLabel,q=S.props.children,W=Pi(q,da),ee=L.props,Z=ee.points,Q=ee.isRange,ce=ee.baseLine,N=L.item.type.defaultProps!==void 0?Be(Be({},L.item.type.defaultProps),L.item.props):L.item.props,I=N.activeDot,R=N.hide,D=N.activeBar,G=N.activeShape,fe=!!(!R&&P&&W&&(I||D||G)),ae={};B!=="axis"&&W&&W.props.trigger==="click"?ae={onClick:N0(S.handleItemMouseEnter,O.props.onClick)}:B!=="axis"&&(ae={onMouseLeave:N0(S.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:N0(S.handleItemMouseEnter,O.props.onMouseEnter)});var ne=V.cloneElement(O,Be(Be({},L.props),ae));function ve(Je){return typeof M.dataKey=="function"?M.dataKey(Je.payload):null}if(fe)if(U>=0){var _e,se;if(M.dataKey&&!M.allowDuplicatedCategory){var Fe=typeof M.dataKey=="function"?ve:"payload.".concat(M.dataKey.toString());_e=ed(Z,Fe,J),se=Q&&ce&&ed(ce,Fe,J)}else _e=Z==null?void 0:Z[U],se=Q&&ce&&ce[U];if(G||D){var Ae=O.props.activeIndex!==void 0?O.props.activeIndex:U;return[V.cloneElement(O,Be(Be(Be({},L.props),ae),{},{activeIndex:Ae})),null,null]}if(!Ut(_e))return[ne].concat(Rc(S.renderActivePoints({item:L,activePoint:_e,basePoint:se,childIndex:U,isRange:Q})))}else{var Ee,le=(Ee=S.getItemByXY(S.state.activeCoordinate))!==null&&Ee!==void 0?Ee:{graphicalItem:ne},De=le.graphicalItem,tt=De.item,Ue=tt===void 0?O:tt,Ke=De.childIndex,Ze=Be(Be(Be({},L.props),ae),{},{activeIndex:Ke});return[V.cloneElement(Ue,Ze),null,null]}return Q?[ne,null,null]:[ne,null]}),At(S,"renderCustomized",function(O,T,k){return V.cloneElement(O,Be(Be({key:"recharts-customized-".concat(k)},S.props),S.state))}),At(S,"renderMap",{CartesianGrid:{handler:F0,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:F0},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:F0},YAxis:{handler:F0},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((_=b.id)!==null&&_!==void 0?_:sh("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=_6(S.triggeredAfterMouseMove,(A=b.throttleDelay)!==null&&A!==void 0?A:1e3/60),S.state={},S}return tie(y,v),Jne(y,[{key:"componentDidMount",value:function(){var _,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(_=this.props.margin.left)!==null&&_!==void 0?_:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var _=this.props,A=_.children,S=_.data,O=_.height,T=_.layout,k=Pi(A,da);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=$2(this.state,S,L,B),P=this.state.tooltipTicks[L].coordinate,M=(this.state.offset.top+O)/2,U=T==="horizontal",J=U?{x:P,y:M}:{y:P,x:M},q=this.state.formattedGraphicalItems.find(function(ee){var Z=ee.item;return Z.type.name==="Scatter"});q&&(J=Be(Be({},J),q.props.points[L].tooltipPosition),C=q.props.points[L].tooltipPayload);var W={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:B,activePayload:C,activeCoordinate:J};this.setState(W),this.renderCursor(k),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(_,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==_.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==_.margin){var S,O;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(_){bx([Pi(_.children,da)],[Pi(this.props.children,da)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var _=Pi(this.props.children,da);if(_&&typeof _.props.shared=="boolean"){var A=_.props.shared?"axis":"item";return s.indexOf(A)>=0?A:a}return a}},{key:"getMouseInfo",value:function(_){if(!this.container)return null;var A=this.container,S=A.getBoundingClientRect(),O=eH(S),T={chartX:Math.round(_.pageX-O.left),chartY:Math.round(_.pageY-O.top)},k=S.width/A.offsetWidth||1,L=this.inRange(T.chartX,T.chartY,k);if(!L)return null;var B=this.state,C=B.xAxisMap,P=B.yAxisMap,M=this.getTooltipEventType(),U=oP(this.state,this.props.data,this.props.layout,L);if(M!=="axis"&&C&&P){var J=Xo(C).scale,q=Xo(P).scale,W=J&&J.invert?J.invert(T.chartX):null,ee=q&&q.invert?q.invert(T.chartY):null;return Be(Be({},T),{},{xValue:W,yValue:ee},U)}return U?Be(Be({},T),U):null}},{key:"inRange",value:function(_,A){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,T=_/S,k=A/S;if(O==="horizontal"||O==="vertical"){var L=this.state.offset,B=T>=L.left&&T<=L.left+L.width&&k>=L.top&&k<=L.top+L.height;return B?{x:T,y:k}:null}var C=this.state,P=C.angleAxisMap,M=C.radiusAxisMap;if(P&&M){var U=Xo(P);return tT({x:T,y:k},U)}return null}},{key:"parseEventsOfWrapper",value:function(){var _=this.props.children,A=this.getTooltipEventType(),S=Pi(_,da),O={};S&&A==="axis"&&(S.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 T=td(this.props,this.handleOuterEvent);return Be(Be({},T),O)}},{key:"addListener",value:function(){Zy.on(Qy,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Zy.removeListener(Qy,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(_,A,S){for(var O=this.state.formattedGraphicalItems,T=0,k=O.length;T<k;T++){var L=O[T];if(L.item===_||L.props.key===_.key||A===mo(L.item.type)&&S===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var _=this.clipPathId,A=this.state.offset,S=A.left,O=A.top,T=A.height,k=A.width;return V.createElement("defs",null,V.createElement("clipPath",{id:_},V.createElement("rect",{x:S,y:O,height:T,width:k})))}},{key:"getXScales",value:function(){var _=this.state.xAxisMap;return _?Object.entries(_).reduce(function(A,S){var O=nP(S,2),T=O[0],k=O[1];return Be(Be({},A),{},At({},T,k.scale))},{}):null}},{key:"getYScales",value:function(){var _=this.state.yAxisMap;return _?Object.entries(_).reduce(function(A,S){var O=nP(S,2),T=O[0],k=O[1];return Be(Be({},A),{},At({},T,k.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(_){var A;return(A=this.state.xAxisMap)===null||A===void 0||(A=A[_])===null||A===void 0?void 0:A.scale}},{key:"getYScaleByAxisId",value:function(_){var A;return(A=this.state.yAxisMap)===null||A===void 0||(A=A[_])===null||A===void 0?void 0:A.scale}},{key:"getItemByXY",value:function(_){var A=this.state,S=A.formattedGraphicalItems,O=A.activeItem;if(S&&S.length)for(var T=0,k=S.length;T<k;T++){var L=S[T],B=L.props,C=L.item,P=C.type.defaultProps!==void 0?Be(Be({},C.type.defaultProps),C.props):C.props,M=mo(C.type);if(M==="Bar"){var U=(B.data||[]).find(function(ee){return EZ(_,ee)});if(U)return{graphicalItem:L,payload:U}}else if(M==="RadialBar"){var J=(B.data||[]).find(function(ee){return tT(_,ee)});if(J)return{graphicalItem:L,payload:J}}else if(Dp(L,O)||Bp(L,O)||Gf(L,O)){var q=oee({graphicalItem:L,activeTooltipItem:O,itemData:P.data}),W=P.activeIndex===void 0?q:P.activeIndex;return{graphicalItem:Be(Be({},L),{},{childIndex:W}),payload:Gf(L,O)?P.data[q]:L.props.data[q]}}}return null}},{key:"render",value:function(){var _=this;if(!h4(this))return null;var A=this.props,S=A.children,O=A.className,T=A.width,k=A.height,L=A.style,B=A.compact,C=A.title,P=A.desc,M=iP(A,Wne),U=yt(M,!1);if(B)return V.createElement(DE,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},V.createElement(_x,Xl({},U,{width:T,height:k,title:C,desc:P}),this.renderClipPath(),p4(S,this.renderMap)));if(this.props.accessibilityLayer){var J,q;U.tabIndex=(J=this.props.tabIndex)!==null&&J!==void 0?J:0,U.role=(q=this.props.role)!==null&&q!==void 0?q:"application",U.onKeyDown=function(ee){_.accessibilityManager.keyboardEvent(ee)},U.onFocus=function(){_.accessibilityManager.focus()}}var W=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:Dt("recharts-wrapper",O),style:Be({position:"relative",cursor:"default",width:T,height:k},L)},W,{ref:function(Z){_.container=Z}}),V.createElement(_x,Xl({},U,{width:T,height:k,title:C,desc:P,style:sie}),this.renderClipPath(),p4(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(V.Component);At(g,"displayName",r),At(g,"defaultProps",Be({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),At(g,"getDerivedStateFromProps",function(v,y){var b=v.dataKey,_=v.data,A=v.children,S=v.width,O=v.height,T=v.layout,k=v.stackOffset,L=v.margin,B=y.dataStartIndex,C=y.dataEndIndex;if(y.updateId===void 0){var P=sP(v);return Be(Be(Be({},P),{},{updateId:0},h(Be(Be({props:v},P),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:_,prevWidth:S,prevHeight:O,prevLayout:T,prevStackOffset:k,prevMargin:L,prevChildren:A})}if(b!==y.prevDataKey||_!==y.prevData||S!==y.prevWidth||O!==y.prevHeight||T!==y.prevLayout||k!==y.prevStackOffset||!nc(L,y.prevMargin)){var M=sP(v),U={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},J=Be(Be({},oP(y,_,T)),{},{updateId:y.updateId+1}),q=Be(Be(Be({},M),U),J);return Be(Be(Be({},q),h(Be({props:v},q),y)),{},{prevDataKey:b,prevData:_,prevWidth:S,prevHeight:O,prevLayout:T,prevStackOffset:k,prevMargin:L,prevChildren:A})}if(!bx(A,y.prevChildren)){var W,ee,Z,Q,ce=Pi(A,Sc),N=ce&&(W=(ee=ce.props)===null||ee===void 0?void 0:ee.startIndex)!==null&&W!==void 0?W:B,I=ce&&(Z=(Q=ce.props)===null||Q===void 0?void 0:Q.endIndex)!==null&&Z!==void 0?Z:C,R=N!==B||I!==C,D=!Ut(_),G=D&&!R?y.updateId:y.updateId+1;return Be(Be({updateId:G},h(Be(Be({props:v},y),{},{updateId:G,dataStartIndex:N,dataEndIndex:I}),y)),{},{prevChildren:A,dataStartIndex:N,dataEndIndex:I})}return null}),At(g,"renderActiveDot",function(v,y,b){var _;return V.isValidElement(v)?_=V.cloneElement(v,y):Ct(v)?_=v(y):_=V.createElement(mh,y),V.createElement(lr,{className:"recharts-active-dot",key:b},_)});var p=V.forwardRef(function(y,b){return V.createElement(g,Xl({},y,{ref:b}))});return p.displayName=g.displayName,p},gie=g5({chartName:"LineChart",GraphicalChild:xh,axisComponents:[{axisType:"xAxis",AxisComp:kc},{axisType:"yAxis",AxisComp:Ic}],formatAxisMap:fC}),yie=g5({chartName:"BarChart",GraphicalChild:cl,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:kc},{axisType:"yAxis",AxisComp:Ic}],formatAxisMap:fC}),xie=g5({chartName:"RadarChart",GraphicalChild:yh,axisComponents:[{axisType:"angleAxis",AxisComp:gh},{axisType:"radiusAxis",AxisComp:vh}],formatAxisMap:LK,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:c,setClassFilter:u,classOptions:f=[],sectionFilter:d,setSectionFilter:h,sectionOptions:g=[],searchName:p,setSearchName:v,onEdit:y,onResetPassword:b,onPrint:_,onExportPdf:A,breadcrumbItems:S,children:O,editingSection:T=null,editForm:k={},onEditSection:L,onSaveSection:B,onCancelEdit:C,onFieldChange:P,isSaving:M=!1,onAwardAdd:U,onAwardEdit:J,onAwardDelete:q,onActivityAdd:W,onActivityEdit:ee,onActivityDelete:Z,onMeetingAdd:Q,onMeetingEdit:ce,onMeetingDelete:N,onDisciplinaryAdd:I,onDisciplinaryEdit:R,onDisciplinaryDelete:D}){var Ke,Ze,Je,ft,pt,xt,Nt,Ft,zt,bt,Rt,at,Mr,Wt,An,Vt,fr,Vn;const[G,fe]=V.useState({}),ae=e||{name:"",roll:"",class:"",email:"",phone:"",type:"",personal:{},parent:{},medical:{},mentor:{}},ne=t,ve=Array.isArray(n==null?void 0:n.activities)?n.activities:[],_e=Array.isArray(n==null?void 0:n.awards)?n.awards:[],se=Array.isArray(i==null?void 0:i.structure)?i.structure:[],Fe=Array.isArray(i==null?void 0:i.payments)?i.payments:[],Ae=we=>fe(mt=>({...mt,[we]:!mt[we]})),Ee=ne.length>0?(()=>{const we={};return ne.forEach(mt=>mt.subjects.forEach(Tt=>{we[Tt.name]||(we[Tt.name]={total:0,count:0}),we[Tt.name].total+=Tt.marks/(Tt.total||100)*100,we[Tt.name].count+=1})),Object.entries(we).map(([mt,Tt])=>({subject:mt.slice(0,10),avg:Math.round(Tt.total/Tt.count)}))})():[],le=Ee.map(we=>({subject:we.subject,score:we.avg})),De=ne.map(we=>{const mt={exam:we.name.split(" ")[0]};return we.subjects.forEach(Tt=>{mt[Tt.name.slice(0,10)]=Math.round(Tt.marks/(Tt.total||100)*100)}),mt}),tt=[...new Set(ne.flatMap(we=>we.subjects.map(mt=>mt.name.slice(0,10))))],Ue=o.filter(we=>(!c||we.class.split("-")[0]===c)&&(!p||we.name.toLowerCase().includes(p.toLowerCase())));return x.jsxs("div",{className:"flex gap-4 h-[calc(100vh-80px)] overflow-hidden",children:[x.jsxs("div",{className:"w-80 min-w-[320px] overflow-y-auto pr-2 print:hidden",children:[x.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:[x.jsx("div",{className:"mb-2",children:x.jsx(oo,{value:c,onChange:we=>{u(we),h&&h("")},options:f,placeholder:"All Classes"})}),g.length>0&&h&&x.jsx("div",{className:"mb-2",children:x.jsx(oo,{value:d,onChange:h,options:g,placeholder:"All Sections"})}),x.jsxs("div",{className:"relative",children:[x.jsx(Ye.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-slate-400"}),x.jsx("input",{value:p,onChange:we=>v(we.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"})]})]}),x.jsxs("p",{className:"text-xs text-slate-500 mb-2",children:[Ue.length," Students"]}),Ue.map(we=>x.jsx("div",{onClick:()=>l(we.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===we.id?"border-indigo-500 bg-indigo-50 shadow-sm":"bg-white border-slate-200 hover:border-indigo-400 hover:shadow-soft-lg"}`,children:x.jsxs("div",{className:"flex items-center gap-2.5",children:[x.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:we.avatar}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:we.name}),x.jsxs("p",{className:"text-xs text-slate-500",children:[we.roll," • ",we.class]})]})]})},we.id))]}),x.jsxs("div",{className:"flex-1 overflow-y-auto pr-2 scroll-smooth",children:[x.jsxs("div",{className:"flex gap-2 mb-3 print:hidden",children:[x.jsx(sr,{variant:"secondary",size:"sm",icon:Ye.Printer,onClick:_,children:"Print Profile"}),x.jsx(sr,{variant:"secondary",size:"sm",icon:Ye.FileText,onClick:A,children:"Export PDF"}),x.jsx(sr,{variant:"primary",size:"sm",icon:Ye.Pencil,onClick:y,children:"Edit Details"}),x.jsx(sr,{variant:"secondary",size:"sm",icon:Ye.Key,onClick:b,children:"Reset Password"})]}),x.jsx(hb,{items:S}),x.jsxs("div",{id:"student-profile-content",className:`bg-white border rounded-xl p-4 md:p-5 mb-3 mt-3 transition-all duration-200 hover:shadow-soft-lg ${T==="academic"?"border-primary-300 ring-1 ring-primary-100":"border-slate-200 hover:border-slate-300"}`,children:[x.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[x.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"}),x.jsxs("div",{className:"flex-1",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx("h2",{className:"text-lg font-bold text-slate-900",children:ae.name}),x.jsx("span",{className:"text-xs font-semibold bg-indigo-50 text-indigo-600 px-2.5 py-0.5 rounded-full",children:"Day Scholar"}),L&&!T&&x.jsxs("button",{onClick:()=>L("academic"),className:"ml-auto text-xs text-primary-600 hover:text-primary-700 font-medium flex items-center gap-1",children:[x.jsx(Ye.Pencil,{className:"w-3 h-3"}),"Edit"]})]}),T==="academic"&&P?x.jsxs("div",{className:"grid grid-cols-4 gap-3 mt-2",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Full Name"}),x.jsx("input",{value:k.full_name||"",onChange:we=>P("full_name",we.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Email"}),x.jsx("input",{value:k.email||"",onChange:we=>P("email",we.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Class"}),x.jsx("input",{value:k.class_name||"",onChange:we=>P("class_name",we.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Phone"}),x.jsx("input",{value:k.phone||"",onChange:we=>P("phone",we.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]})]}):x.jsxs("div",{className:"grid grid-cols-4 gap-4 mt-2",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Roll No"}),x.jsx("p",{className:"text-sm text-slate-800",children:ae.roll})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Email"}),x.jsx("p",{className:"text-sm text-slate-800",children:ae.email})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Class"}),x.jsx("p",{className:"text-sm text-slate-800",children:ae.class})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:"Phone"}),x.jsx("p",{className:"text-sm text-slate-800",children:ae.phone})]})]})]})]}),T==="academic"&&x.jsxs("div",{className:"flex justify-end gap-2 mt-2 pt-2 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",size:"sm",onClick:C,children:"Cancel"}),x.jsx(sr,{variant:"primary",size:"sm",onClick:B,disabled:M,children:M?"Saving...":"Save"})]}),x.jsx("div",{className:"grid grid-cols-4 gap-3",children:[{label:"Attendance",value:(Ke=ae.stats)!=null&&Ke.attendance_percentage?`${ae.stats.attendance_percentage}%`:"-",color:"text-amber-500"},{label:"Avg Grade",value:(Ze=ae.stats)!=null&&Ze.average_grade?`${ae.stats.average_grade}%`:"-",color:"text-green-500"},{label:"Assignments",value:((Je=ae.stats)==null?void 0:Je.assignments_submitted)??"-",color:"text-indigo-500"},{label:"Fee Due",value:se.length>0?`₹${Math.max(0,se.reduce((we,mt)=>we+(mt.amount||0),0)-Fe.reduce((we,mt)=>we+(mt.amount||0),0)).toLocaleString()}`:"-",color:"text-green-500"}].map(we=>x.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:[x.jsx("p",{className:"text-xs text-slate-500",children:we.label}),x.jsx("p",{className:`text-lg font-bold ${we.color}`,children:we.value})]},we.label))})]}),[{title:"Personal Information",key:"personal",fields:[["Phone",ae.phone||(e==null?void 0:e.phone),"phone"],["Email",ae.email||(e==null?void 0:e.email),"email"],["Date of Birth",(ft=ae.personal)==null?void 0:ft.dob,"date_of_birth"],["Admission Date",(pt=ae.personal)==null?void 0:pt.admissionDate,"admission_date"],["Student Type",ae.type||((xt=e==null?void 0:e.metadata_)==null?void 0:xt.student_type),"student_type"],["Address",(Nt=ae.personal)==null?void 0:Nt.address,"address"]]},{title:"Parent/Guardian Information",key:"parent",fields:[["Parent Name",(Ft=ae.parent)==null?void 0:Ft.name,"parent_name"],["Phone",(zt=ae.parent)==null?void 0:zt.phone,"parent_phone"],["Email",(bt=ae.parent)==null?void 0:bt.email,"parent_email"],["Relationship",(Rt=ae.parent)==null?void 0:Rt.relationship,"parent_relationship"],["Emergency Contact",(at=ae.parent)==null?void 0:at.emergency,"parent_emergency"]]},{title:"Medical & Additional Information",key:"medical",fields:[["Blood Group",(Mr=ae.medical)==null?void 0:Mr.bloodGroup,"blood_group"],["Gender",(Wt=ae.medical)==null?void 0:Wt.gender,"gender"],["Religion",(An=ae.medical)==null?void 0:An.religion,"religion"],["Medical Conditions",(Vt=ae.medical)==null?void 0:Vt.conditions,"medical_conditions"]]}].map(we=>{const mt=T===we.key;return x.jsxs("div",{className:`bg-white border rounded-xl p-4 mb-3 transition-all duration-200 hover:shadow-soft-lg ${mt?"border-primary-300 ring-1 ring-primary-100":"border-slate-200 hover:border-slate-300"}`,children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:we.title}),L&&!mt&&!T&&x.jsxs("button",{onClick:()=>L(we.key),className:"text-xs text-primary-600 hover:text-primary-700 font-medium flex items-center gap-1",children:[x.jsx(Ye.Pencil,{className:"w-3 h-3"}),"Edit"]})]}),x.jsx("div",{className:"grid grid-cols-3 gap-3",children:we.fields.map(([Tt,Sr,Yt])=>x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400",children:Tt}),mt&&P?Yt==="gender"?x.jsx(oo,{value:k[Yt]||"",onChange:Et=>P(Yt,Et),options:[{value:"",label:"Select"},{value:"Male",label:"Male"},{value:"Female",label:"Female"},{value:"Other",label:"Other"}],placeholder:"Select..."}):Yt==="parent_relationship"?x.jsx(oo,{value:k[Yt]||"",onChange:Et=>P(Yt,Et),options:[{value:"Father",label:"Father"},{value:"Mother",label:"Mother"},{value:"Guardian",label:"Guardian"},{value:"Parent/Guardian",label:"Parent/Guardian"}],placeholder:"Select..."}):Yt==="student_type"?x.jsx(oo,{value:k[Yt]||"",onChange:Et=>P(Yt,Et),options:[{value:"",label:"Select"},{value:"Day Scholar",label:"Day Scholar"},{value:"Hosteller",label:"Hosteller"}],placeholder:"Select..."}):Yt==="date_of_birth"||Yt==="admission_date"?x.jsx("input",{type:"date",value:k[Yt]||"",onChange:Et=>P(Yt,Et.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"}):x.jsx("input",{value:k[Yt]||"",onChange:Et=>P(Yt,Et.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"}):x.jsx("p",{className:"text-sm text-slate-800",children:Sr||"-"})]},Tt))}),mt&&x.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",size:"sm",onClick:C,children:"Cancel"}),x.jsx(sr,{variant:"primary",size:"sm",onClick:B,disabled:M,children:M?"Saving...":"Save"})]})]},we.title)}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-800 mb-3",children:"Class Teacher & Mentor"}),x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:[x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3",children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase font-semibold mb-2",children:"Class Teacher"}),(fr=ae.class_teacher)!=null&&fr.name?x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("div",{className:"w-9 h-9 rounded-full bg-gradient-to-br from-emerald-500 to-emerald-700 text-white flex items-center justify-center text-xs font-bold",children:(ae.class_teacher.name||"").slice(0,2).toUpperCase()}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ae.class_teacher.name}),ae.class_teacher.email&&x.jsx("p",{className:"text-[10px] text-slate-500",children:ae.class_teacher.email})]})]}):x.jsx("p",{className:"text-xs text-slate-400",children:"Not assigned"})]}),x.jsxs("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-3",children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase font-semibold mb-2",children:"Mentor"}),(Vn=ae.mentor)!=null&&Vn.name?x.jsxs("div",{className:"flex items-center gap-2",children:[x.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-bold",children:(ae.mentor.name||"").slice(0,2).toUpperCase()}),x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:ae.mentor.name}),ae.mentor.email&&x.jsx("p",{className:"text-[10px] text-slate-500",children:ae.mentor.email})]})]}):x.jsx("p",{className:"text-xs text-slate-400",children:"Not assigned"})]})]})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-3",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Examination Results"}),x.jsx("button",{onClick:()=>{const we={};ne.forEach((mt,Tt)=>{we[Tt]=!0}),fe(we)},className:"text-xs text-indigo-600 transition-all duration-150 active:scale-[0.97]",children:"Expand All"})]}),ne.map((we,mt)=>{const Tt=we.subjects.reduce((Et,St)=>Et+St.marks,0),Sr=we.subjects.reduce((Et,St)=>Et+St.total,0),Yt=(Tt/Sr*100).toFixed(1);return x.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:[x.jsxs("div",{className:"flex justify-between items-center cursor-pointer",onClick:()=>Ae(mt),children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:we.name}),x.jsxs("p",{className:"text-xs text-slate-500",children:[we.subjects.length," subjects • ",Tt,"/",Sr," • ",Yt,"%"]})]}),G[mt]?x.jsx(Ye.ChevronUp,{className:"w-4 h-4 text-slate-400"}):x.jsx(Ye.ChevronDown,{className:"w-4 h-4 text-slate-400"})]}),G[mt]&&x.jsx("div",{className:"overflow-x-auto rounded-lg border border-slate-200 mt-2",children:x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[x.jsx("th",{className:"text-left py-1.5 px-2",children:"Subject"}),x.jsx("th",{className:"text-left py-1.5 px-2",children:"Marks"}),x.jsx("th",{className:"text-left py-1.5 px-2",children:"Percentage"}),x.jsx("th",{className:"text-left py-1.5 px-2",children:"Grade"})]})}),x.jsx("tbody",{children:we.subjects.map(Et=>x.jsxs("tr",{className:"border-t border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[x.jsx("td",{className:"py-1.5 px-2 text-slate-800",children:Et.name}),x.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[Et.marks,"/",Et.total]}),x.jsxs("td",{className:"py-1.5 px-2 text-slate-800",children:[Et.marks,"%"]}),x.jsx("td",{className:"py-1.5 px-2",children:x.jsx("span",{className:`text-xs px-2.5 py-0.5 rounded-full font-semibold ${Et.marks>=80?"bg-green-100 text-green-700":"bg-amber-100 text-amber-700"}`,children:Et.grade})})]},Et.name))})]})})]},mt)})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-800 mb-3",children:"Performance Analysis"}),Ee.length>0?x.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Average % by Subject"}),x.jsx(Zg,{width:"100%",height:200,children:x.jsxs(yie,{data:Ee,children:[x.jsx(O2,{strokeDasharray:"3 3"}),x.jsx(kc,{dataKey:"subject",fontSize:11}),x.jsx(Ic,{domain:[0,100]}),x.jsx(da,{}),x.jsx(cl,{dataKey:"avg",fill:"#6366f1",radius:[4,4,0,0],name:"Avg %"})]})})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Subject Strength"}),x.jsx(Zg,{width:"100%",height:200,children:x.jsxs(xie,{data:le,children:[x.jsx(K8,{}),x.jsx(gh,{dataKey:"subject",fontSize:11}),x.jsx(vh,{domain:[0,100]}),x.jsx(yh,{dataKey:"score",stroke:"#6366f1",fill:"#6366f1",fillOpacity:.3})]})})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-slate-500 text-center mb-1",children:"Performance Trend"}),x.jsx(Zg,{width:"100%",height:200,children:x.jsxs(gie,{data:De,children:[x.jsx(O2,{strokeDasharray:"3 3"}),x.jsx(kc,{dataKey:"exam",fontSize:11}),x.jsx(Ic,{domain:[0,100]}),x.jsx(da,{}),x.jsx(zs,{}),tt.map((we,mt)=>x.jsx(xh,{type:"monotone",dataKey:we,stroke:["#6366f1","#10b981","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899"][mt%7],strokeWidth:2},we))]})})]})]}):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No exam data for performance analysis"})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Parent Meeting History"}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsxs("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-green-100 text-green-600",children:[r.length," Meetings"]}),Q&&x.jsx(sr,{variant:"primary",size:"sm",onClick:Q,children:"+ Add Meeting"})]})]}),r.length===0&&x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No meetings yet"}),r.map((we,mt)=>x.jsxs("div",{className:`border rounded-xl p-2.5 mb-1.5 flex justify-between items-center transition-colors duration-150 ${we.parent_attended===!1?"bg-red-50 border-red-200":"bg-gradient-to-br from-slate-50 to-slate-100 border-slate-200 hover:bg-slate-50"}`,children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:we.type||"Meeting"}),x.jsxs("p",{className:"text-xs text-slate-500",children:[we.date,we.agenda?` • ${we.agenda}`:""]}),we.notes&&x.jsx("p",{className:"text-xs text-slate-500",children:we.notes}),we.parent_attended===!1&&x.jsx("p",{className:"text-xs text-red-500 font-medium mt-0.5",children:"Parent did not attend"})]}),x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx(M0,{status:we.status||"Scheduled"}),(ce||N)&&x.jsxs("div",{className:"flex gap-1",children:[ce&&x.jsx("button",{onClick:()=>ce(we),className:"text-xs text-primary-600 hover:text-primary-700 font-medium px-1.5 py-0.5 rounded hover:bg-primary-50",children:"Edit"}),N&&x.jsx("button",{onClick:()=>N(we),className:"text-xs text-red-500 hover:text-red-700 font-medium px-1.5 py-0.5 rounded hover:bg-red-50",children:"Delete"})]})]})]},we.id||mt))]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Extra-Curricular Activities"}),W&&x.jsx(sr,{variant:"primary",size:"sm",onClick:W,children:"+ Add Activity"})]}),ve.length===0&&x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No activities yet"}),ve.map((we,mt)=>x.jsx("div",{className:"bg-gradient-to-br from-slate-50 to-slate-100 border border-slate-200 rounded-xl p-2.5 mb-1.5 transition-colors duration-150 hover:bg-slate-50",children:x.jsxs("div",{className:"flex justify-between items-center",children:[x.jsxs("div",{children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:we.name}),x.jsx(M0,{status:we.status||"Active"})]}),x.jsxs("p",{className:"text-xs text-slate-500",children:[we.activity_type,we.role?` • ${we.role}`:"",we.since?` • Since ${we.since}`:""]}),we.achievement&&x.jsxs("p",{className:"text-xs text-slate-500",children:["Achievement: ",we.achievement]})]}),(ee||Z)&&x.jsxs("div",{className:"flex gap-1",children:[ee&&x.jsx("button",{onClick:()=>ee(we),className:"text-xs text-primary-600 hover:text-primary-700 font-medium px-1.5 py-0.5 rounded hover:bg-primary-50",children:"Edit"}),Z&&x.jsx("button",{onClick:()=>Z(we),className:"text-xs text-red-500 hover:text-red-700 font-medium px-1.5 py-0.5 rounded hover:bg-red-50",children:"Delete"})]})]})},we.id||mt))]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Awards & Achievements"}),U&&x.jsx(sr,{variant:"primary",size:"sm",onClick:U,children:"+ Add Award"})]}),_e.length===0&&x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No awards yet"}),_e.map((we,mt)=>x.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:[x.jsxs("div",{className:"flex items-center justify-between",children:[x.jsxs("div",{className:"flex items-center gap-1",children:[x.jsx(Ye.Trophy,{className:"w-4 h-4 text-amber-500"}),x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:we.name||we.title})]}),(J||q)&&x.jsxs("div",{className:"flex gap-1",children:[J&&x.jsx("button",{onClick:()=>J(we),className:"text-xs text-primary-600 hover:text-primary-700 font-medium px-1.5 py-0.5 rounded hover:bg-primary-50",children:"Edit"}),q&&x.jsx("button",{onClick:()=>q(we),className:"text-xs text-red-500 hover:text-red-700 font-medium px-1.5 py-0.5 rounded hover:bg-red-50",children:"Delete"})]})]}),x.jsxs("p",{className:"text-xs text-slate-500",children:[we.category,we.category&&we.year?" • ":"",we.year,we.level?` • ${we.level}`:"",we.awarded_by?` • By: ${we.awarded_by}`:""]}),we.description&&x.jsx("p",{className:"text-xs text-slate-500",children:we.description})]},we.id||mt))]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Disciplinary Records"}),I&&x.jsxs("button",{onClick:I,className:"text-xs font-medium text-primary-600 hover:text-primary-700 flex items-center gap-1",children:[x.jsx(Ye.Plus,{className:"w-3 h-3"}),"Add"]})]}),a.length===0?x.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:[x.jsx(Ye.CheckCircle,{className:"w-5 h-5 text-green-500"}),x.jsx("p",{className:"text-sm text-slate-800",children:"Clean Record - No disciplinary issues reported"})]}):x.jsx("div",{className:"space-y-2",children:a.map(we=>x.jsx("div",{className:"border border-slate-200 rounded-lg p-3 hover:bg-slate-50",children:x.jsxs("div",{className:"flex justify-between items-start",children:[x.jsxs("div",{className:"flex-1",children:[x.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[x.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded-full ${we.severity==="High"?"bg-red-100 text-red-700":we.severity==="Medium"?"bg-yellow-100 text-yellow-700":"bg-blue-100 text-blue-700"}`,children:we.severity}),x.jsx("span",{className:"text-xs text-slate-500",children:we.category}),x.jsx("span",{className:`text-xs font-medium px-2 py-0.5 rounded-full ${we.status==="Open"?"bg-orange-100 text-orange-700":we.status==="Resolved"?"bg-green-100 text-green-700":"bg-slate-100 text-slate-700"}`,children:we.status})]}),x.jsx("p",{className:"text-sm text-slate-800",children:we.description}),x.jsxs("p",{className:"text-xs text-slate-500 mt-1",children:[we.incident_date,we.action_taken?` • ${we.action_taken}`:""]})]}),x.jsxs("div",{className:"flex gap-1 ml-2",children:[R&&x.jsx("button",{onClick:()=>R(we),className:"p-1 text-slate-400 hover:text-primary-600",children:x.jsx(Ye.Pencil,{className:"w-3.5 h-3.5"})}),D&&x.jsx("button",{onClick:()=>D(we),className:"p-1 text-slate-400 hover:text-red-500",children:x.jsx(Ye.Trash2,{className:"w-3.5 h-3.5"})})]})]})},we.id))})]}),(e==null?void 0:e.transport)&&x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900 mb-3",children:"Transport Information"}),x.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Transport Service"}),e.transport.enrolled?x.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-700",children:"Enrolled"}):x.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-600",children:"Not Enrolled"})]}),e.transport.enrolled&&x.jsxs(x.Fragment,{children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Route"}),x.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.transport.route_name||"—"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Bus Number"}),x.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.transport.bus_number||"—"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[10px] text-slate-400 uppercase mb-0.5",children:"Pickup Point"}),x.jsx("p",{className:"text-sm font-medium text-slate-800",children:e.transport.pickup_point||"—"})]})]})]})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsxs("div",{className:"flex justify-between items-center mb-2",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-900",children:"Fee Structure"}),x.jsx("div",{className:"flex gap-1",children:ae.type&&x.jsx("span",{className:"text-xs font-medium px-2.5 py-0.5 rounded-full bg-indigo-100 text-indigo-600",children:ae.type})})]}),x.jsx("div",{className:"overflow-x-auto rounded-xl border border-slate-200",children:x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200 text-xs text-slate-500 font-semibold",children:[x.jsx("th",{className:"text-left py-2 px-3",children:"Fee Component"}),x.jsx("th",{className:"text-left py-2 px-3",children:"Amount (₹)"}),x.jsx("th",{className:"text-left py-2 px-3",children:"Concession"}),x.jsx("th",{className:"text-left py-2 px-3",children:"Status"})]})}),x.jsxs("tbody",{children:[se.map(we=>x.jsxs("tr",{className:"border-b border-slate-100 hover:bg-primary-50/40 transition-colors duration-150",children:[x.jsx("td",{className:"py-2 px-3 text-slate-800",children:we.component}),x.jsxs("td",{className:"py-2 px-3 text-slate-800",children:["₹",(we.amount||0).toLocaleString()]}),x.jsx("td",{className:"py-2 px-3 text-slate-800",children:we.concession>0?x.jsxs("span",{className:"text-green-600",children:["-₹",we.concession.toLocaleString()]}):"—"}),x.jsx("td",{className:"py-2 px-3",children:we.status||we.frequency})]},we.component)),x.jsxs("tr",{className:"bg-slate-50",children:[x.jsx("td",{className:"py-2 px-3 font-bold text-slate-800",children:"Total"}),x.jsxs("td",{className:"py-2 px-3 font-bold text-slate-800",children:["₹",se.reduce((we,mt)=>we+(mt.amount||0),0).toLocaleString()]}),x.jsx("td",{className:"py-2 px-3 font-bold text-green-600",children:se.reduce((we,mt)=>we+(mt.concession||0),0)>0?`-₹${se.reduce((we,mt)=>we+(mt.concession||0),0).toLocaleString()}`:""}),x.jsx("td",{})]})]})]})})]}),x.jsxs("div",{className:"bg-white border border-slate-200 rounded-xl p-5 mb-4 transition-all duration-200 hover:shadow-md hover:border-slate-300",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-800 mb-3",children:"Fee Payment History"}),x.jsx("div",{className:"grid grid-cols-3 gap-3 mb-3",children:(()=>{const we=se.reduce((Sr,Yt)=>Sr+(Yt.amount||0),0),mt=Fe.reduce((Sr,Yt)=>Sr+(Yt.amount||0),0),Tt=Math.max(0,we-mt);return[{label:"Total Fees",value:`₹${we.toLocaleString()}`,color:"text-slate-800"},{label:"Paid",value:`₹${mt.toLocaleString()}`,color:"text-green-500"},{label:"Due",value:`₹${Tt.toLocaleString()}`,color:"text-red-500"}].map(Sr=>x.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:[x.jsx("p",{className:"text-xs text-slate-500",children:Sr.label}),x.jsx("p",{className:`text-lg font-bold ${Sr.color}`,children:Sr.value})]},Sr.label))})()}),Fe.length>0?Fe.map((we,mt)=>x.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:[x.jsxs("div",{children:[x.jsxs("p",{className:"text-sm font-semibold text-slate-800",children:["₹",(we.amount||0).toLocaleString()," - ",we.method||we.payment_method||"-"]}),x.jsxs("p",{className:"text-xs text-slate-500",children:[we.date||we.payment_date||"-",we.ref||we.reference?` • Ref: ${we.ref||we.reference}`:""]})]}),x.jsx(M0,{status:we.status||"Paid"})]},mt)):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No payment history"})]})]}),O]})}function wie({teacher:e,assignments:t=[],onEdit:r,onResetPassword:n,onPrint:i,onExportPdf:a,onBack:o,breadcrumbItems:s,isLoading:l,children:c,editingSection:u=null,editForm:f={},onEditSection:d,onSaveSection:h,onCancelEdit:g,onFieldChange:p,isSaving:v=!1,onAwardAdd:y,onAwardEdit:b,onAwardDelete:_}){var B,C,P,M,U,J;if(l||!e)return x.jsx(bO,{});const A=e,S=((B=A.user)==null?void 0:B.full_name)||A.full_name||"",O=((C=A.user)==null?void 0:C.email)||A.email||"",T=((P=A.user)==null?void 0:P.phone)||A.phone||"",k=S.split(" ").map(q=>q[0]).join("").slice(0,2).toUpperCase(),L=[{label:"Total Classes",value:t.length||A.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:A.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:A.max_workload_hours?`${A.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 x.jsxs("div",{children:[x.jsx(hb,{items:s}),x.jsxs("div",{className:"flex justify-between items-center mb-4 mt-2",children:[x.jsxs("div",{className:"flex items-center gap-2",children:[x.jsx("button",{onClick:o,className:"p-1.5 hover:bg-slate-100 rounded-lg transition-all duration-150 active:scale-[0.97]",children:x.jsx(Ye.ArrowLeft,{className:"w-5 h-5"})}),x.jsx("h1",{className:"text-2xl md:text-3xl font-bold text-slate-900",children:"Teacher Profile"})]}),x.jsxs("div",{className:"flex gap-2",children:[x.jsx(sr,{variant:"secondary",size:"sm",icon:Ye.Printer,onClick:i,children:"Print"}),x.jsx(sr,{variant:"secondary",size:"sm",icon:Ye.FileText,onClick:a,children:"Export PDF"}),x.jsx(sr,{variant:"primary",size:"sm",icon:Ye.Pencil,onClick:r,children:"Edit Profile"}),x.jsx(sr,{variant:"secondary",size:"sm",icon:Ye.Key,onClick:n,children:"Reset Password"})]})]}),x.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:x.jsxs("div",{className:"flex justify-between items-start",children:[x.jsxs("div",{className:"flex gap-4 items-center",children:[x.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:k}),x.jsxs("div",{children:[x.jsx("h2",{className:"text-xl font-bold text-slate-900",children:S}),x.jsxs("p",{className:"text-sm text-slate-500 mb-2",children:[A.primary_subject||((M=A.subjects)==null?void 0:M[0])||A.department||""," Teacher"]}),x.jsxs("div",{className:"flex gap-4 text-xs text-slate-600",children:[x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx("span",{className:"text-slate-400",children:"ID:"})," ",A.employee_id]}),x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx(Ye.Mail,{className:"w-3 h-3 text-slate-400"}),O]}),x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx(Ye.Phone,{className:"w-3 h-3 text-slate-400"}),T||"N/A"]}),x.jsxs("span",{className:"flex items-center gap-1",children:[x.jsx(Ye.Calendar,{className:"w-3 h-3 text-slate-400"}),"Joined: ",A.joining_date||"N/A"]})]})]})]}),x.jsx("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:A.max_workload_hours?`${A.max_workload_hours} hours/week`:"-"})]})}),x.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 md:gap-4 mb-4",children:L.map(q=>x.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 ${q.glow} cursor-default group`,children:[x.jsx("div",{className:`${q.bg} p-2.5 md:p-3 rounded-xl transition-transform duration-200 group-hover:scale-110`,children:x.jsx(q.icon,{className:`w-5 h-5 ${q.color}`})}),x.jsxs("div",{children:[x.jsx("p",{className:"text-xs text-slate-500 font-medium",children:q.label}),x.jsx("p",{className:"text-xl md:text-2xl font-bold text-slate-900 mt-0.5",children:q.value})]})]},q.label))}),x.jsx(ql,{title:"Professional Information",editButton:d&&!u&&x.jsxs("button",{onClick:()=>d("professional"),className:"text-xs text-indigo-600 hover:text-indigo-700 font-medium flex items-center gap-1",children:[x.jsx(Ye.Pencil,{className:"w-3 h-3"}),"Edit"]}),highlight:u==="professional",children:u==="professional"&&p?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Qualification"}),x.jsx("input",{value:f.qualification||"",onChange:q=>p("qualification",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Primary Subject"}),x.jsx("input",{value:f.primary_subject||"",onChange:q=>p("primary_subject",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Max Workload (hrs/week)"}),x.jsx("input",{type:"number",value:f.max_workload_hours||"",onChange:q=>p("max_workload_hours",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Department"}),x.jsx("input",{value:f.department||"",onChange:q=>p("department",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Designation"}),x.jsx("input",{value:f.designation||"",onChange:q=>p("designation",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Employment Type"}),x.jsx(oo,{value:f.employment_type||"",onChange:q=>p("employment_type",q),options:[{value:"",label:"Select"},{value:"Full-time",label:"Full-time"},{value:"Part-time",label:"Part-time"},{value:"Contract",label:"Contract"}],placeholder:"Select..."})]})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",size:"sm",onClick:g,children:"Cancel"}),x.jsx(sr,{variant:"primary",size:"sm",onClick:h,disabled:v,children:v?"Saving...":"Save"})]})]}):x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsx(jr,{label:"Qualification",value:A.qualification||"-"}),x.jsx(jr,{label:"Subject Specialization",value:Array.isArray(A.subjects)?A.subjects.map(q=>q.name||q).join(", ")||"-":A.primary_subject||"-"}),x.jsx(jr,{label:"Designation",value:A.designation||"-"}),x.jsx(jr,{label:"Teaching Load",value:A.max_workload_hours?`${A.max_workload_hours} hours per week`:"-"}),x.jsx(jr,{label:"Department",value:A.department||"-"}),x.jsx(jr,{label:"Employment Type",value:A.employment_type||"-"})]})}),x.jsx(ql,{title:"Personal Information",editButton:d&&!u&&x.jsxs("button",{onClick:()=>d("personal"),className:"text-xs text-indigo-600 hover:text-indigo-700 font-medium flex items-center gap-1",children:[x.jsx(Ye.Pencil,{className:"w-3 h-3"}),"Edit"]}),highlight:u==="personal",children:u==="personal"&&p?x.jsxs(x.Fragment,{children:[x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Full Name"}),x.jsx("input",{value:f.full_name||"",onChange:q=>p("full_name",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Email"}),x.jsx("input",{value:f.email||"",onChange:q=>p("email",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Phone"}),x.jsx("input",{value:f.phone||"",onChange:q=>p("phone",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Gender"}),x.jsx(oo,{value:f.gender||"",onChange:q=>p("gender",q),options:[{value:"",label:"Select"},{value:"Male",label:"Male"},{value:"Female",label:"Female"},{value:"Other",label:"Other"}],placeholder:"Select..."})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Date of Joining"}),x.jsx("input",{type:"date",value:f.joining_date||"",onChange:q=>p("joining_date",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]}),x.jsxs("div",{children:[x.jsx("p",{className:"text-[11px] text-slate-400 mb-0.5",children:"Address"}),x.jsx("input",{value:f.address||"",onChange:q=>p("address",q.target.value),className:"w-full border border-slate-300 rounded-lg px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:border-transparent transition-all duration-150 hover:border-slate-400"})]})]}),x.jsxs("div",{className:"flex justify-end gap-2 mt-3 pt-3 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",size:"sm",onClick:g,children:"Cancel"}),x.jsx(sr,{variant:"primary",size:"sm",onClick:h,disabled:v,children:v?"Saving...":"Save"})]})]}):x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsx(jr,{label:"Date of Birth",value:A.date_of_birth||"-"}),x.jsx(jr,{label:"Date of Joining",value:A.joining_date||"-"}),x.jsx(jr,{label:"Gender",value:A.gender||"-"}),x.jsx(jr,{label:"Phone",value:((U=A.user)==null?void 0:U.phone)||A.phone||"-"}),x.jsx(jr,{label:"Email",value:((J=A.user)==null?void 0:J.email)||A.email||"-"}),x.jsx(jr,{label:"Address",value:[A.address_line1||A.address,A.city,A.state,A.pincode].filter(Boolean).join(", ")||"-"}),x.jsx(jr,{label:"Emergency Contact",value:A.emergency_contact_name?`${A.emergency_contact_name} (${A.emergency_contact_relationship||""}) - ${A.emergency_contact_phone||""}`:"-"})]})}),x.jsx(ql,{title:"Salary & Bank Details",children:x.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[x.jsx(jr,{label:"Basic Salary",value:A.basic_salary?`₹${Number(A.basic_salary).toLocaleString()}`:"-"}),x.jsx(jr,{label:"HRA",value:A.hra?`₹${Number(A.hra).toLocaleString()}`:"-"}),x.jsx(jr,{label:"DA",value:A.da?`₹${Number(A.da).toLocaleString()}`:"-"}),x.jsx(jr,{label:"Transport Allowance",value:A.ta?`₹${Number(A.ta).toLocaleString()}`:"-"}),x.jsx(jr,{label:"Other Allowances",value:A.other_allowances?`₹${Number(A.other_allowances).toLocaleString()}`:"-"}),x.jsx(jr,{label:"PF Deduction",value:A.pf_deduction?`₹${Number(A.pf_deduction).toLocaleString()}`:"-"}),x.jsx(jr,{label:"Tax Deduction",value:A.tax_deduction?`₹${Number(A.tax_deduction).toLocaleString()}`:"-"}),x.jsx(jr,{label:"Other Deductions",value:A.other_deductions?`₹${Number(A.other_deductions).toLocaleString()}`:"-"}),x.jsx(jr,{label:"Bank Name",value:A.bank_name||"-"}),x.jsx(jr,{label:"Account Number",value:A.account_number||"-"}),x.jsx(jr,{label:"IFSC Code",value:A.ifsc_code||"-"}),x.jsx(jr,{label:"PAN Number",value:A.pan_number||"-"})]})}),x.jsx(ql,{title:"Leave Summary",children:x.jsx("div",{className:"grid grid-cols-3 gap-3 mb-4",children:(A.leave_balances||[]).length>0?(A.leave_balances||[]).map((q,W)=>x.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:[x.jsx("p",{className:"text-xs text-slate-500 font-medium",children:q.display_name||q.leave_type}),x.jsxs("div",{className:"flex items-baseline gap-1 mt-1",children:[x.jsx("span",{className:"text-2xl font-bold text-slate-800",children:q.used||0}),x.jsxs("span",{className:"text-sm text-slate-400",children:["/ ",q.total_allocated||0," days"]})]}),x.jsxs("p",{className:"text-[10px] text-slate-400 mt-0.5",children:["Remaining: ",q.remaining||0," | Pending: ",q.pending||0]}),x.jsx("div",{className:"w-full h-1.5 bg-slate-200 rounded-full mt-2",children:x.jsx("div",{className:`h-full ${["bg-blue-500","bg-red-500","bg-green-500","bg-amber-500","bg-purple-500"][W%5]} rounded-full transition-all duration-300`,style:{width:`${q.total_allocated>0?(q.used||0)/q.total_allocated*100:0}%`}})})]},q.leave_type||W)):x.jsx("div",{className:"col-span-3 text-center py-4 text-sm text-slate-400",children:"No leave data available"})})}),x.jsx(ql,{title:"Current Teaching Schedule",children:t.length>0?x.jsx("div",{className:"rounded-lg border border-slate-200 overflow-hidden",children:x.jsxs("table",{className:"w-full text-sm",children:[x.jsx("thead",{children:x.jsxs("tr",{className:"bg-slate-50 border-b border-slate-200",children:[x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Class"}),x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Section"}),x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Subject"}),x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Periods/Week"}),x.jsx("th",{className:"text-left px-4 py-2 text-xs font-semibold text-slate-500",children:"Role"})]})}),x.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((q,W)=>x.jsxs("tr",{className:"hover:bg-slate-50/50",children:[x.jsx("td",{className:"px-4 py-2.5 font-medium text-slate-800",children:q.class_name}),x.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:q.section}),x.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:q.subject||"-"}),x.jsx("td",{className:"px-4 py-2.5 text-slate-600",children:q.periods_per_week||"-"}),x.jsx("td",{className:"px-4 py-2.5",children:q.is_class_teacher?x.jsx("span",{className:"text-xs font-medium px-2 py-0.5 rounded-full bg-emerald-100 text-emerald-700",children:"Class Teacher"}):x.jsx("span",{className:"text-xs text-slate-400",children:"Subject Teacher"})})]},W))})]})}):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No teaching schedule assigned"})}),x.jsx(ql,{title:"Awards & Recognition",editButton:y&&x.jsx("button",{onClick:y,className:"text-xs text-indigo-600 hover:text-indigo-700 font-medium",children:"+ Add Award"}),children:(A.awards||[]).length>0?(A.awards||[]).map((q,W)=>x.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:[x.jsx(Ye.Trophy,{className:"w-5 h-5 text-amber-600 mt-0.5 flex-shrink-0"}),x.jsxs("div",{className:"flex-1",children:[x.jsx("p",{className:"text-sm font-semibold text-slate-800",children:q.title}),x.jsx("p",{className:"text-xs text-slate-500",children:q.awarded_by||q.org}),x.jsx("p",{className:"text-xs text-slate-400 mt-0.5",children:q.description||q.desc})]}),(b||_)&&x.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[b&&x.jsx("button",{onClick:()=>b(q),className:"text-xs text-indigo-600 hover:text-indigo-700 px-1",children:"Edit"}),_&&x.jsx("button",{onClick:()=>_(q),className:"text-xs text-red-600 hover:text-red-700 px-1",children:"Delete"})]})]},q.id||W)):x.jsx("div",{className:"text-center py-4 text-sm text-slate-400",children:"No awards recorded"})}),c]})}function ql({title:e,badge:t,editButton:r,highlight:n,children:i}){return x.jsxs("div",{className:`bg-white border rounded-xl p-5 md:p-6 mb-4 transition-all duration-200 hover:shadow-md ${n?"border-primary-300 ring-1 ring-primary-100":"border-slate-200 hover:border-slate-300"}`,children:[x.jsxs("div",{className:"flex justify-between items-center mb-4",children:[x.jsx("h3",{className:"text-sm font-bold text-slate-800 uppercase tracking-wide",children:e}),r||t]}),i]})}function jr({label:e,value:t}){return x.jsxs("div",{className:"mb-3",children:[x.jsx("p",{className:"text-[11px] text-slate-400 uppercase tracking-wide mb-0.5",children:e}),x.jsx("p",{className:"text-sm font-medium text-slate-800",children:t||"-"})]})}function _ie({open:e,onClose:t,title:r,steps:n,activeStep:i,onStepChange:a,onNext:o,onSubmit:s,isSubmitting:l,submitLabel:c="Submit",submitErrorMessage:u,size:f="3xl",children:d}){const[h,g]=V.useState(!1),p=async()=>{if(o){g(!0);const y=await o(i);if(g(!1),!y)return}a(i+1)},v=()=>{a(i-1)};return x.jsxs(ih,{open:e,onClose:t,title:r,size:f,children:[x.jsx("div",{className:"flex items-center justify-between mb-6 px-2",children:n.map((y,b)=>x.jsxs("div",{className:"flex items-center flex-1",children:[x.jsxs("div",{className:"flex items-center gap-2.5",children:[x.jsx("div",{className:kt("w-8 h-8 rounded-full flex items-center justify-center text-xs font-bold transition-all duration-200",b<i&&"bg-emerald-500 text-white",b===i&&"bg-primary-600 text-white shadow-md shadow-primary-200",b>i&&"bg-slate-100 text-slate-400"),children:b<i?"✓":y.icon||String(b+1)}),x.jsx("span",{className:kt("text-xs font-medium hidden sm:inline",b===i&&"text-primary-700",b<i&&"text-emerald-600",b>i&&"text-slate-400"),children:y.label})]}),b<n.length-1&&x.jsx("div",{className:kt("flex-1 h-0.5 mx-3 rounded",b<i?"bg-emerald-300":"bg-slate-200")})]},y.id))}),x.jsx("div",{className:"max-h-[55vh] overflow-y-auto pr-1 pb-4",children:d}),u&&x.jsx("p",{className:"text-sm text-red-600 bg-red-50 px-3 py-2 rounded-lg mt-3",children:u}),x.jsxs("div",{className:"flex items-center justify-between mt-6 pt-4 border-t border-slate-100",children:[x.jsx(sr,{variant:"ghost",onClick:t,children:"Cancel"}),x.jsxs("div",{className:"flex items-center gap-2",children:[i>0&&x.jsx(sr,{variant:"secondary",onClick:v,children:"← Previous"}),i<n.length-1?x.jsx(sr,{variant:"primary",onClick:p,loading:h,children:"Next →"}):x.jsx(sr,{variant:"primary",onClick:s,loading:l,children:c})]})]})]})}function Sie({school:e={},title:t,subtitle:r}){return x.jsxs("div",{className:"print-header border-b-2 border-slate-800 pb-4 mb-6",children:[x.jsxs("div",{className:"flex items-center gap-4",children:[e.logo_url?x.jsx("img",{src:e.logo_url,alt:e.name,className:"w-16 h-16 object-contain rounded"}):x.jsx("div",{className:"w-16 h-16 bg-primary-100 rounded flex items-center justify-center text-primary-700 text-2xl font-bold",children:(e.name||"S").charAt(0)}),x.jsxs("div",{className:"flex-1 text-center",children:[x.jsx("h1",{className:"text-xl font-bold text-slate-900 uppercase tracking-wide",children:e.name||"School Name"}),e.affiliation&&x.jsx("p",{className:"text-xs text-slate-600 mt-0.5",children:e.affiliation}),e.address&&x.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:e.address}),x.jsxs("div",{className:"flex items-center justify-center gap-3 mt-1 text-[10px] text-slate-500",children:[e.phone&&x.jsxs("span",{children:["📞 ",e.phone]}),e.email&&x.jsxs("span",{children:["✉ ",e.email]}),e.website&&x.jsxs("span",{children:["🌐 ",e.website]})]})]}),x.jsx("div",{className:"w-16"})]}),t&&x.jsxs("div",{className:"text-center mt-3 pt-3 border-t border-slate-200",children:[x.jsx("h2",{className:"text-sm font-bold text-slate-800 uppercase tracking-wider",children:t}),r&&x.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:r})]})]})}exports.Badge=M0;exports.Breadcrumb=hb;exports.Button=sr;exports.Card=wB;exports.CardContent=SB;exports.CardHeader=_B;exports.CardTitle=AB;exports.ChangePasswordModal=s$;exports.Checkbox=VB;exports.ConfirmDialog=HB;exports.DataTable=OB;exports.DateInput=YB;exports.EmptyState=e$;exports.ErrorBoundary=XB;exports.FilterBar=_O;exports.HoverCard=QB;exports.Input=yO;exports.LoginPage=o$;exports.Modal=ih;exports.MultiStepFormModal=_ie;exports.NetworkStatus=JB;exports.Pagination=a$;exports.PrintHeader=Sie;exports.ProfileHeader=c$;exports.ProfileInfoGrid=u$;exports.ProtectedRoute=RB;exports.RecentActivities=MB;exports.ResetPasswordModal=l$;exports.SearchInput=xO;exports.SearchableSelect=oo;exports.SectionCard=t$;exports.Select=PB;exports.SessionTimeout=r$;exports.Sidebar=jB;exports.Skeleton=Zn;exports.SkeletonCard=IB;exports.SkeletonDashboard=bO;exports.SkeletonTable=FB;exports.SortableHeader=ZB;exports.StudentDetailView=bie;exports.Tabs=GB;exports.TeacherDetailView=wie;exports.TimeInput=KB;exports.TimetableGrid=i$;exports.ToastProvider=zB;exports.Topbar=LB;exports._typeof=cr;exports.cn=kt;exports.commonjsGlobal=Hl;exports.exportMultiSheetExcel=oB;exports.exportToCsv=uk;exports.exportToExcel=aB;exports.generateAttendanceReport=vL;exports.generateFeeReceipt=mL;exports.generatePdf=dL;exports.generateStudentReportCard=pL;exports.getDefaultExportFromCjs=ur;exports.useClassSectionFilter=yB;exports.useFormDraft=cB;exports.useKeyboardShortcuts=lB;exports.useLocalStorage=sB;exports.usePagination=gB;exports.useRecentlyViewed=fB;exports.useSortableData=pB;exports.useTabState=hB;exports.useToast=WB;