var e,t,n=Object.defineProperty,i=(e,t,i)=>(((e,t,i)=>{t in e?n(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i})(e,"symbol"!=typeof t?t+"":t,i),i);import{r as a,c as r,b as s,R as l,f as o,e as d,g as c}from"./vendor-c65bce76.js";import{_ as u,a as p,b as A,U as h,B as f,S as m,c as v,I as g,d as y,m as x,e as b,f as w,M as j,P as C,g as S,h as N,F as I,T as F,i as B,j as P,A as k,D as T,k as E,E as D,l as L,R as U,n as _,o as O,C as M,p as R,q as Q,r as H,s as V,t as z,u as q,v as W,W as Y,w as K,x as G,y as $,z as X,G as J,H as Z,J as ee,K as te,L as ne,N as ie,O as ae,Q as re,Y as se,V as le,X as oe,Z as de,$ as ce,a0 as ue,a1 as pe,a2 as Ae,a3 as he,a4 as fe,a5 as me,a6 as ve,a7 as ge,a8 as ye,a9 as xe,aa as be,ab as we,ac as je}from"./ui-2d515953.js";import{C as Ce,h as Se,a as Ne}from"./utils-faf49605.js";import{A as Ie,I as Fe,n as Be,G as Pe,P as ke,m as Te,d as Ee,a as De}from"./editor-e98c3426.js";function Le(e,t){for(var n=0;ni[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var Ue={exports:{}},_e={},Oe=a,Me=Symbol.for("react.element"),Re=Symbol.for("react.fragment"),Qe=Object.prototype.hasOwnProperty,He=Oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ve={key:!0,ref:!0,__self:!0,__source:!0};function ze(e,t,n){var i,a={},r=null,s=null;for(i in void 0!==n&&(r=""+n),void 0!==t.key&&(r=""+t.key),void 0!==t.ref&&(s=t.ref),t)Qe.call(t,i)&&!Ve.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===a[i]&&(a[i]=t[i]);return{$$typeof:Me,type:e,key:r,ref:s,props:a,_owner:He.current}}_e.Fragment=Re,_e.jsx=ze,_e.jsxs=ze,Ue.exports=_e;var qe,We,Ye=Ue.exports,Ke={},Ge=r; /** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.removeEventListener(Xe,u),o=null}},createHref:e=>t(a,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:p,replace:A,go:e=>s.go(e)};return f}((function(e,t){let{pathname:n,search:i,hash:a}=e.location;return nt("",{pathname:n,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:it(t)}),null,e)}function Ze(e,t){if(!1===e||null==e)throw new Error(t)}function et(e,t){if(!e)try{throw new Error(t)}catch(Ou){}}function tt(e,t){return{usr:e.state,key:e.key,idx:t}}function nt(e,t,n,i){return void 0===n&&(n=null),$e({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?at(t):t,{state:n,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function it(e){let{pathname:t="/",search:n="",hash:i=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(t+="#"===i.charAt(0)?i:"#"+i),t}function at(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var rt,st;function lt(e,t,n){return void 0===n&&(n="/"),function(e,t,n,i){let a="string"==typeof t?at(t):t,r=bt(a.pathname||"/",n);if(null==r)return null;let s=ot(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(s);let l=null;for(let o=0;null==l&&o{let s={relativePath:void 0===r?e.path||"":r,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};s.relativePath.startsWith("/")&&(Ze(s.relativePath.startsWith(i),'Absolute route path "'+s.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(i.length));let l=St([i,s.relativePath]),o=n.concat(s);e.children&&e.children.length>0&&(Ze(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),ot(e.children,t,o,l)),(null!=e.path||e.index)&&t.push({path:l,score:vt(l,e.index),routesMeta:o})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let i of dt(e.path))a(e,t,i);else a(e,t)})),t}function dt(e){let t=e.split("/");if(0===t.length)return[];let[n,...i]=t,a=n.endsWith("?"),r=n.replace(/\?$/,"");if(0===i.length)return a?[r,""]:[r];let s=dt(i.join("/")),l=[];return l.push(...s.map((e=>""===e?r:[r,e].join("/")))),a&&l.push(...s),l.map((t=>e.startsWith("/")&&""===t?"/":t))}(st=rt||(rt={})).data="data",st.deferred="deferred",st.redirect="redirect",st.error="error";const ct=/^:[\w-]+$/,ut=3,pt=2,At=1,ht=10,ft=-2,mt=e=>"*"===e;function vt(e,t){let n=e.split("/"),i=n.length;return n.some(mt)&&(i+=ft),t&&(i+=pt),n.filter((e=>!mt(e))).reduce(((e,t)=>e+(ct.test(t)?ut:""===t?At:ht)),i)}function gt(e,t,n){void 0===n&&(n=!1);let{routesMeta:i}=e,a={},r="/",s=[];for(let l=0;l(i.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(i.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let r=new RegExp(a,t?void 0:"i");return[r,i]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let r=a[0],s=r.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:i.reduce(((e,t,n)=>{let{paramName:i,isOptional:a}=t;if("*"===i){let e=l[n]||"";s=r.slice(0,r.length-e.length).replace(/(.)\/+$/,"$1")}const o=l[n];return e[i]=a&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:r,pathnameBase:s,pattern:e}}function xt(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return et(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function bt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&"/"!==i?null:e.slice(n)||"/"}function wt(e,t,n,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function jt(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function Ct(e,t,n,i){let a;void 0===i&&(i=!1),"string"==typeof e?a=at(e):(a=$e({},e),Ze(!a.pathname||!a.pathname.includes("?"),wt("?","pathname","search",a)),Ze(!a.pathname||!a.pathname.includes("#"),wt("#","pathname","hash",a)),Ze(!a.search||!a.search.includes("#"),wt("#","search","hash",a)));let r,s=""===e||""===a.pathname,l=s?"/":a.pathname;if(null==l)r=n;else{let e=t.length-1;if(!i&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}r=e>=0?t[e]:"/"}let o=function(e,t){void 0===t&&(t="/");let{pathname:n,search:i="",hash:a=""}="string"==typeof e?at(e):e,r=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:r,search:It(i),hash:Ft(a)}}(a,r),d=l&&"/"!==l&&l.endsWith("/"),c=(s||"."===l)&&n.endsWith("/");return o.pathname.endsWith("/")||!d&&!c||(o.pathname+="/"),o}const St=e=>e.join("/").replace(/\/\/+/g,"/"),Nt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),It=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Ft=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";const Bt=["post","put","patch","delete"];new Set(Bt);const Pt=["get",...Bt]; /** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0})),a.useCallback((function(i,a){void 0===a&&(a={}),n.current&&("number"==typeof i?e.navigate(i):e.navigate(i,kt({fromRouteId:t},a)))}),[e,t])}():function(){Ot()||Ze(!1);let e=a.useContext(Tt),{basename:t,future:n,navigator:i}=a.useContext(Dt),{matches:r}=a.useContext(Ut),{pathname:s}=Mt(),l=JSON.stringify(jt(r,n.v7_relativeSplatPath)),o=a.useRef(!1);return Rt((()=>{o.current=!0})),a.useCallback((function(n,a){if(void 0===a&&(a={}),!o.current)return;if("number"==typeof n)return void i.go(n);let r=Ct(n,JSON.parse(l),s,"path"===a.relative);null==e&&"/"!==t&&(r.pathname="/"===r.pathname?t:St([t,r.pathname])),(a.replace?i.replace:i.push)(r,a.state,a)}),[t,i,l,s,e])}()}const Ht=a.createContext(null);function Vt(){let{matches:e}=a.useContext(Ut),t=e[e.length-1];return t?t.params:{}}function zt(e,t){let{relative:n}=void 0===t?{}:t,{future:i}=a.useContext(Dt),{matches:r}=a.useContext(Ut),{pathname:s}=Mt(),l=JSON.stringify(jt(r,i.v7_relativeSplatPath));return a.useMemo((()=>Ct(e,JSON.parse(l),s,"path"===n)),[e,l,s,n])}function qt(e,t){return function(e,t,n,i){Ot()||Ze(!1);let{navigator:r}=a.useContext(Dt),{matches:s}=a.useContext(Ut),l=s[s.length-1],o=l?l.params:{};!l||l.pathname;let d=l?l.pathnameBase:"/";l&&l.route;let c,u=Mt();if(t){var p;let e="string"==typeof t?at(t):t;"/"===d||(null==(p=e.pathname)?void 0:p.startsWith(d))||Ze(!1),c=e}else c=u;let A=c.pathname||"/",h=A;if("/"!==d){let e=d.replace(/^\//,"").split("/");h="/"+A.replace(/^\//,"").split("/").slice(e.length).join("/")}let f=lt(e,{pathname:h}),m=function(e,t,n,i){var r;void 0===t&&(t=[]);void 0===n&&(n=null);void 0===i&&(i=null);if(null==e){var s;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(s=i)&&s.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let l=e,o=null==(r=n)?void 0:r.errors;if(null!=o){let e=l.findIndex((e=>e.route.id&&void 0!==(null==o?void 0:o[e.route.id])));e>=0||Ze(!1),l=l.slice(0,Math.min(l.length,e+1))}let d=!1,c=-1;if(n&&i&&i.v7_partialHydration)for(let a=0;a=0?l.slice(0,c+1):[l[0]];break}}}return l.reduceRight(((e,i,r)=>{let s,u=!1,p=null,A=null;var h;n&&(s=o&&i.route.id?o[i.route.id]:void 0,p=i.route.errorElement||Yt,d&&(c<0&&0===r?(h="route-fallback",!1||Zt[h]||(Zt[h]=!0),u=!0,A=null):c===r&&(u=!0,A=i.route.hydrateFallbackElement||null)));let f=t.concat(l.slice(0,r+1)),m=()=>{let t;return t=s?p:u?A:i.route.Component?a.createElement(i.route.Component,null):i.route.element?i.route.element:e,a.createElement(Gt,{match:i,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===r)?a.createElement(Kt,{location:n.location,revalidation:n.revalidation,component:p,error:s,children:m(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):m()}),null)}(f&&f.map((e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:St([d,r.encodeLocation?r.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:St([d,r.encodeLocation?r.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,i);if(t&&m)return a.createElement(Lt.Provider,{value:{location:kt({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:qe.Pop}},m);return m}(e,t)}function Wt(){let e=function(){var e;let t=a.useContext(_t),n=function(){let e=a.useContext(Et);return e||Ze(!1),e}(Xt.UseRouteError),i=Jt(Xt.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[i]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:i},n):null,null)}const Yt=a.createElement(Wt,null);class Kt extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){}render(){return void 0!==this.state.error?a.createElement(Ut.Provider,{value:this.props.routeContext},a.createElement(_t.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Gt(e){let{routeContext:t,match:n,children:i}=e,r=a.useContext(Tt);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),a.createElement(Ut.Provider,{value:t},i)}var $t=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($t||{}),Xt=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Xt||{});function Jt(e){let t=function(){let e=a.useContext(Ut);return e||Ze(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||Ze(!1),n.route.id}const Zt={};function en(e){return function(e){let t=a.useContext(Ut).outlet;return t?a.createElement(Ht.Provider,{value:e},t):t}(e.context)}function tn(e){Ze(!1)}function nn(e){let{basename:t="/",children:n=null,location:i,navigationType:r=qe.Pop,navigator:s,static:l=!1,future:o}=e;Ot()&&Ze(!1);let d=t.replace(/^\/*/,"/"),c=a.useMemo((()=>({basename:d,navigator:s,static:l,future:kt({v7_relativeSplatPath:!1},o)})),[d,o,s,l]);"string"==typeof i&&(i=at(i));let{pathname:u="/",search:p="",hash:A="",state:h=null,key:f="default"}=i,m=a.useMemo((()=>{let e=bt(u,d);return null==e?null:{location:{pathname:e,search:p,hash:A,state:h,key:f},navigationType:r}}),[d,u,p,A,h,f,r]);return null==m?null:a.createElement(Dt.Provider,{value:c},a.createElement(Lt.Provider,{children:n,value:m}))}function an(e){let{children:t,location:n}=e;return qt(rn(t),n)}function rn(e,t){void 0===t&&(t=[]);let n=[];return a.Children.forEach(e,((e,i)=>{if(!a.isValidElement(e))return;let r=[...t,i];if(e.type===a.Fragment)return void n.push.apply(n,rn(e.props.children,r));e.type!==tn&&Ze(!1),e.props.index&&e.props.children&&Ze(!1);let s={id:e.props.id||r.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=rn(e.props.children,r)),n.push(s)})),n} /** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let i=e[n];return t.concat(Array.isArray(i)?i.map((e=>[n,e])):[[n,i]])}),[]))}new Promise((()=>{}));const on=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(Ou){}const dn=s.startTransition;function cn(e){let{basename:t,children:n,future:i,window:r}=e,s=a.useRef();null==s.current&&(s.current=Je({window:r,v5Compat:!0}));let l=s.current,[o,d]=a.useState({action:l.action,location:l.location}),{v7_startTransition:c}=i||{},u=a.useCallback((e=>{c&&dn?dn((()=>d(e))):d(e)}),[d,c]);return a.useLayoutEffect((()=>l.listen(u)),[l,u]),a.useEffect((()=>{return null==(e=i)||e.v7_startTransition,void 0===(null==e?void 0:e.v7_relativeSplatPath)&&(!t||t.v7_relativeSplatPath),void(t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation));var e,t}),[i]),a.createElement(nn,{basename:t,children:n,location:o.location,navigationType:o.action,navigator:l,future:i})}const un="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,pn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,An=a.forwardRef((function(e,t){let n,{onClick:i,relative:r,reloadDocument:s,replace:l,state:o,target:d,to:c,preventScrollReset:u,viewTransition:p}=e,A=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i=0||(a[n]=e[n]);return a}(e,on),{basename:h}=a.useContext(Dt),f=!1;if("string"==typeof c&&pn.test(c)&&(n=c,un))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=bt(t.pathname,h);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:f=!0}catch(Ou){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;Ot()||Ze(!1);let{basename:i,navigator:r}=a.useContext(Dt),{hash:s,pathname:l,search:o}=zt(e,{relative:n}),d=l;return"/"!==i&&(d="/"===l?i:St([i,l])),r.createHref({pathname:d,search:o,hash:s})}(c,{relative:r}),v=function(e,t){let{target:n,replace:i,state:r,preventScrollReset:s,relative:l,viewTransition:o}=void 0===t?{}:t,d=Qt(),c=Mt(),u=zt(e,{relative:l});return a.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,n)){t.preventDefault();let n=void 0!==i?i:it(c)===it(u);d(e,{replace:n,state:r,preventScrollReset:s,relative:l,viewTransition:o})}}),[c,d,u,i,r,n,e,s,l,o])}(c,{replace:l,state:o,target:d,preventScrollReset:u,relative:r,viewTransition:p});return a.createElement("a",sn({},A,{href:n||m,onClick:f||s?i:function(e){i&&i(e),e.defaultPrevented||v(e)},ref:t,target:d}))}));var hn,fn,mn,vn;function gn(e){let t=a.useRef(ln(e)),n=a.useRef(!1),i=Mt(),r=a.useMemo((()=>function(e,t){let n=ln(e);return t&&t.forEach(((e,i)=>{n.has(i)||t.getAll(i).forEach((e=>{n.append(i,e)}))})),n}(i.search,n.current?null:t.current)),[i.search]),s=Qt(),l=a.useCallback(((e,t)=>{const i=ln("function"==typeof e?e(r):e);n.current=!0,s("?"+i,t)}),[s,r]);return[r,l]}(fn=hn||(hn={})).UseScrollRestoration="useScrollRestoration",fn.UseSubmit="useSubmit",fn.UseSubmitFetcher="useSubmitFetcher",fn.UseFetcher="useFetcher",fn.useViewTransitionState="useViewTransitionState",(vn=mn||(mn={})).UseFetcher="useFetcher",vn.UseFetchers="useFetchers",vn.UseScrollRestoration="useScrollRestoration";var yn={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xn=l.createContext&&l.createContext(yn),bn=globalThis&&globalThis.__assign||function(){return bn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n1?t-1:0),i=1;i3?t.i-4:t.i:Array.isArray(e)?1:Ii(e)?2:Fi(e)?3:0}function Ci(e,t){return 2===ji(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Si(e,t,n){var i=ji(e);2===i?e.set(t,n):3===i?e.add(n):e[t]=n}function Ni(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function Ii(e){return ta&&e instanceof Map}function Fi(e){return na&&e instanceof Set}function Bi(e){return e.o||e.t}function Pi(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=da(e);delete t[sa];for(var n=oa(t),i=0;i1&&(e.set=e.add=e.clear=e.delete=Ti),Object.freeze(e),t&&wi(e,(function(e,t){return ki(t,!0)}),!0)),e}function Ti(){yi(2)}function Ei(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Di(e){var t=ca[e];return t||yi(18,e),t}function Li(){return Zi}function Ui(e,t){t&&(Di("Patches"),e.u=[],e.s=[],e.v=t)}function _i(e){Oi(e),e.p.forEach(Ri),e.p=null}function Oi(e){e===Zi&&(Zi=e.l)}function Mi(e){return Zi={p:[],l:Zi,h:e,m:!0,_:0}}function Ri(e){var t=e[sa];0===t.i||1===t.i?t.j():t.g=!0}function Qi(e,t){t._=t.p.length;var n=t.p[0],i=void 0!==e&&e!==n;return t.h.O||Di("ES5").S(t,e,i),i?(n[sa].P&&(_i(t),yi(4)),bi(e)&&(e=Hi(t,e),t.l||zi(t,e)),t.u&&Di("Patches").M(n[sa].t,e,t.u,t.s)):e=Hi(t,n,[]),_i(t),t.u&&t.v(t.u,t.s),e!==aa?e:void 0}function Hi(e,t,n){if(Ei(t))return t;var i=t[sa];if(!i)return wi(t,(function(a,r){return Vi(e,i,t,a,r,n)}),!0),t;if(i.A!==e)return t;if(!i.P)return zi(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var a=4===i.i||5===i.i?i.o=Pi(i.k):i.o,r=a,s=!1;3===i.i&&(r=new Set(a),a.clear(),s=!0),wi(r,(function(t,r){return Vi(e,i,a,t,r,n,s)})),zi(e,a,!1),n&&e.u&&Di("Patches").N(i,n,e.u,e.s)}return i.o}function Vi(e,t,n,i,a,r,s){if(xi(a)){var l=Hi(e,a,r&&t&&3!==t.i&&!Ci(t.R,i)?r.concat(i):void 0);if(Si(n,i,l),!xi(l))return;e.m=!1}else s&&n.add(a);if(bi(a)&&!Ei(a)){if(!e.h.D&&e._<1)return;Hi(e,a),t&&t.A.l||zi(e,a)}}function zi(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&ki(t,n)}function qi(e,t){var n=e[sa];return(n?Bi(n):e)[t]}function Wi(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Object.getPrototypeOf(n)}}function Yi(e){e.P||(e.P=!0,e.l&&Yi(e.l))}function Ki(e){e.o||(e.o=Pi(e.t))}function Gi(e,t,n){var i=Ii(t)?Di("MapSet").F(t,n):Fi(t)?Di("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),i={i:n?1:0,A:t?t.A:Li(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},a=i,r=ua;n&&(a=[i],r=pa);var s=Proxy.revocable(a,r),l=s.revoke,o=s.proxy;return i.k=o,i.j=l,o}(t,n):Di("ES5").J(t,n);return(n?n.A:Li()).p.push(i),i}function $i(e){return xi(e)||yi(22,e),function e(t){if(!bi(t))return t;var n,i=t[sa],a=ji(t);if(i){if(!i.P&&(i.i<4||!Di("ES5").K(i)))return i.t;i.I=!0,n=Xi(t,a),i.I=!1}else n=Xi(t,a);return wi(n,(function(t,a){i&&function(e,t){return 2===ji(e)?e.get(t):e[t]}(i.t,t)===a||Si(n,t,e(a))})),3===a?new Set(n):n}(e)}function Xi(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Pi(e)}var Ji,Zi,ea="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),ta="undefined"!=typeof Map,na="undefined"!=typeof Set,ia="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,aa=ea?Symbol.for("immer-nothing"):((Ji={})["immer-nothing"]=!0,Ji),ra=ea?Symbol.for("immer-draftable"):"__$immer_draftable",sa=ea?Symbol.for("immer-state"):"__$immer_state",la=""+Object.prototype.constructor,oa="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,da=Object.getOwnPropertyDescriptors||function(e){var t={};return oa(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},ca={},ua={get:function(e,t){if(t===sa)return e;var n,i,a,r=Bi(e);if(!Ci(r,t))return n=e,(a=Wi(r,t))?"value"in a?a.value:null===(i=a.get)||void 0===i?void 0:i.call(n.k):void 0;var s=r[t];return e.I||!bi(s)?s:s===qi(e.t,t)?(Ki(e),e.o[t]=Gi(e.A.h,s,e)):s},has:function(e,t){return t in Bi(e)},ownKeys:function(e){return Reflect.ownKeys(Bi(e))},set:function(e,t,n){var i=Wi(Bi(e),t);if(null==i?void 0:i.set)return i.set.call(e.k,n),!0;if(!e.P){var a=qi(Bi(e),t),r=null==a?void 0:a[sa];if(r&&r.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(Ni(n,a)&&(void 0!==n||Ci(e.t,t)))return!0;Ki(e),Yi(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==qi(e.t,t)||t in e.t?(e.R[t]=!1,Ki(e),Yi(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Bi(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:i.enumerable,value:n[t]}:i},defineProperty:function(){yi(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yi(12)}},pa={};wi(ua,(function(e,t){pa[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),pa.deleteProperty=function(e,t){return pa.set.call(this,e,t,void 0)},pa.set=function(e,t,n){return ua.set.call(this,e[0],t,n,e[0])};var Aa=function(){function e(e){var t=this;this.O=ia,this.D=!0,this.produce=function(e,n,i){if("function"==typeof e&&"function"!=typeof n){var a=n;n=e;var r=t;return function(e){var t=this;void 0===e&&(e=a);for(var i=arguments.length,s=Array(i>1?i-1:0),l=1;l1?i-1:0),r=1;r=0;n--){var i=t[n];if(0===i.path.length&&"replace"===i.op){e=i.value;break}}n>-1&&(t=t.slice(n+1));var a=Di("Patches").$;return xi(e)?a(e,t):this.produce(e,(function(e){return a(e,t)}))},e}(),ha=new Aa,fa=ha.produce;function ma(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}ha.produceWithPatches.bind(ha),ha.setAutoFreeze.bind(ha),ha.setUseProxies.bind(ha),ha.applyPatches.bind(ha),ha.createDraft.bind(ha),ha.finishDraft.bind(ha);var va="function"==typeof Symbol&&Symbol.observable||"@@observable",ga=function(){return Math.random().toString(36).substring(7).split("").join(".")},ya={INIT:"@@redux/INIT"+ga(),REPLACE:"@@redux/REPLACE"+ga(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ga()}};function xa(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(ma(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(ma(1));return n(xa)(e,t)}if("function"!=typeof e)throw new Error(ma(2));var a=e,r=t,s=[],l=s,o=!1;function d(){l===s&&(l=s.slice())}function c(){if(o)throw new Error(ma(3));return r}function u(e){if("function"!=typeof e)throw new Error(ma(4));if(o)throw new Error(ma(5));var t=!0;return d(),l.push(e),function(){if(t){if(o)throw new Error(ma(6));t=!1,d();var n=l.indexOf(e);l.splice(n,1),s=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(ma(7));if(void 0===e.type)throw new Error(ma(8));if(o)throw new Error(ma(9));try{o=!0,r=a(r,e)}finally{o=!1}for(var t=s=l,n=0;n0&&a[a.length-1])||6!==r[0]&&2!==r[0])){s=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]=0;t--){var a=e[t][sa];if(!a.P)switch(a.i){case 5:i(a)&&Yi(a);break;case 4:n(a)&&Yi(a)}}}function n(e){for(var t=e.t,n=e.k,i=oa(n),a=i.length-1;a>=0;a--){var r=i[a];if(r!==sa){var s=t[r];if(void 0===s&&!Ci(t,r))return!0;var l=n[r],o=l&&l[sa];if(o?o.t!==s:!Ni(l,s))return!0}}var d=!!t[sa];return i.length!==oa(t).length+(d?0:1)}function i(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var i=0;i=0&&this.changeListeners.splice(t,1)},e}();var cr={exports:{}};const ur={},pr=function(e,t,n){if(!t||0===t.length)return e();const i=document.getElementsByTagName("link");return Promise.all(t.map((e=>{if((e=function(e){return"/"+e}(e))in ur)return;ur[e]=!0;const t=e.endsWith(".css"),a=t?'[rel="stylesheet"]':"";if(!!n)for(let n=i.length-1;n>=0;n--){const a=i[n];if(a.href===e&&(!t||"stylesheet"===a.rel))return}else if(document.querySelector(`link[href="${e}"]${a}`))return;const r=document.createElement("link");return r.rel=t?"stylesheet":"modulepreload",t||(r.as="script",r.crossOrigin=""),r.href=e,document.head.appendChild(r),t?new Promise(((t,n)=>{r.addEventListener("load",t),r.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${e}`))))})):void 0}))).then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))};var Ar=Uint8Array,hr=Uint16Array,fr=Int32Array,mr=new Ar([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]),vr=new Ar([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]),gr=new Ar([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),yr=function(e,t){for(var n=new hr(31),i=0;i<31;++i)n[i]=t+=1<>1|(21845&Ir)<<1;Fr=(61680&(Fr=(52428&Fr)>>2|(13107&Fr)<<2))>>4|(3855&Fr)<<4,Nr[Ir]=((65280&Fr)>>8|(255&Fr)<<8)>>1}var Br=function(e,t,n){for(var i=e.length,a=0,r=new hr(t);a>o]=d}else for(s=new hr(i),a=0;a>15-e[a]);return s},Pr=new Ar(288);for(Ir=0;Ir<144;++Ir)Pr[Ir]=8;for(Ir=144;Ir<256;++Ir)Pr[Ir]=9;for(Ir=256;Ir<280;++Ir)Pr[Ir]=7;for(Ir=280;Ir<288;++Ir)Pr[Ir]=8;var kr=new Ar(32);for(Ir=0;Ir<32;++Ir)kr[Ir]=5;var Tr=Br(Pr,9,0),Er=Br(Pr,9,1),Dr=Br(kr,5,0),Lr=Br(kr,5,1),Ur=function(e){for(var t=e[0],n=1;nt&&(t=e[n]);return t},_r=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(7&t)&n},Or=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Mr=function(e){return(e+7)/8|0},Rr=function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new Ar(e.subarray(t,n))},Qr=["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"],Hr=function(e,t,n){var i=new Error(t||Qr[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Hr),!n)throw i;return i},Vr=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8},zr=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>8,e[i+2]|=n>>16},qr=function(e,t){for(var n=[],i=0;ip&&(p=r[i].s);var A=new hr(p+1),h=Wr(n[c-1],A,0);if(h>t){i=0;var f=0,m=h-t,v=1<t))break;f+=v-(1<>=m;f>0;){var y=r[i].s;A[y]=0&&f;--i){var x=r[i].s;A[x]==t&&(--A[x],++f)}h=t}return{t:new Ar(A),l:h}},Wr=function(e,t,n){return-1==e.s?Math.max(Wr(e.l,t,n+1),Wr(e.r,t,n+1)):t[e.s]=n},Yr=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new hr(++t),i=0,a=e[0],r=1,s=function(e){n[i++]=e},l=1;l<=t;++l)if(e[l]==a&&l!=t)++r;else{if(!a&&r>2){for(;r>138;r-=138)s(32754);r>2&&(s(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(s(a),--r;r>6;r-=6)s(8304);r>2&&(s(r-3<<5|8208),r=0)}for(;r--;)s(a);r=1,a=e[l]}return{c:n.subarray(0,i),n:t}},Kr=function(e,t){for(var n=0,i=0;i>8,e[a+2]=255^e[a],e[a+3]=255^e[a+1];for(var r=0;r4&&!N[gr[F-1]];--F);var B,P,k,T,E=d+5<<3,D=Kr(a,Pr)+Kr(r,kr)+s,L=Kr(a,p)+Kr(r,f)+s+14+3*F+Kr(j,N)+2*j[16]+3*j[17]+7*j[18];if(o>=0&&E<=D&&E<=L)return Gr(t,c,e.subarray(o,o+d));if(Vr(t,c,1+(L15&&(Vr(t,c,M[C]>>5&127),c+=M[C]>>12)}}}else B=Tr,P=Pr,k=Dr,T=kr;for(C=0;C255){zr(t,c,B[(R=Q>>18&31)+257]),c+=P[R+257],R>7&&(Vr(t,c,Q>>23&31),c+=mr[R]);var H=31&Q;zr(t,c,k[H]),c+=T[H],H>3&&(zr(t,c,Q>>5&8191),c+=vr[H])}else zr(t,c,B[Q]),c+=P[Q]}return zr(t,c,B[256]),c+P[256]},Xr=new fr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Jr=new Ar(0),Zr=function(){var e=1,t=0;return{p:function(n){for(var i=e,a=t,r=0|n.length,s=0;s!=r;){for(var l=Math.min(s+2655,r);s>16),a=(65535&a)+15*(a>>16)}e=i,t=a},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},es=function(e,t,n,i,a){if(!a&&(a={l:1},t.dictionary)){var r=t.dictionary.subarray(-32768),s=new Ar(r.length+e.length);s.set(r),s.set(e,r.length),e=s,a.w=r.length}return function(e,t,n,i,a,r){var s=r.z||e.length,l=new Ar(i+s+5*(1+Math.ceil(s/7e3))+a),o=l.subarray(i,l.length-a),d=r.l,c=7&(r.r||0);if(t){c&&(o[0]=r.r>>3);for(var u=Xr[t-1],p=u>>13,A=8191&u,h=(1<7e3||N>24576)&&(T>423||!d)){c=$r(e,o,0,x,b,w,C,N,F,S-F,c),N=j=C=0,F=S;for(var E=0;E<286;++E)b[E]=0;for(E=0;E<30;++E)w[E]=0}var D=2,L=0,U=A,_=P-k&32767;if(T>2&&B==y(S-_))for(var O=Math.min(p,T)-1,M=Math.min(32767,S),R=Math.min(258,T);_<=M&&--U&&P!=k;){if(e[S+D]==e[S+D-_]){for(var Q=0;QD){if(D=Q,L=_,Q>O)break;var H=Math.min(_,Q-2),V=0;for(E=0;EV&&(V=q,k=z)}}}_+=(P=k)-(k=f[P])&32767}if(L){x[N++]=268435456|wr[D]<<18|Sr[L];var W=31&wr[D],Y=31&Sr[L];C+=mr[W]+vr[Y],++b[257+W],++w[Y],I=S+D,++j}else x[N++]=e[S],++b[e[S]]}}for(S=Math.max(S,I);S=s&&(o[c/8|0]=d,K=s),c=Gr(o,c+1,e.subarray(S,K))}r.i=s}return Rr(l,0,i+Mr(c)+a)}(e,null==t.level?6:t.level,null==t.mem?a.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,i,a)},ts=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function ns(e,t){t||(t={});var n=Zr();n.p(e);var i=es(e,t,t.dictionary?6:2,4);return function(e,t){var n=t.level,i=0==n?0:n<6?1:9==n?3:2;if(e[0]=120,e[1]=i<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var a=Zr();a.p(t.dictionary),ts(e,2,a.d())}}(i,t),ts(i,i.length-4,n.d()),i}function is(e,t){return function(e,t,n,i){var a=e.length,r=i?i.length:0;if(!a||t.f&&!t.l)return n||new Ar(0);var s=!n,l=s||2!=t.i,o=t.i;s&&(n=new Ar(3*a));var d=function(e){var t=n.length;if(e>t){var i=new Ar(Math.max(2*t,e));i.set(n),n=i}},c=t.f||0,u=t.p||0,p=t.b||0,A=t.l,h=t.d,f=t.m,m=t.n,v=8*a;do{if(!A){c=_r(e,u,1);var g=_r(e,u+1,3);if(u+=3,!g){var y=e[(P=Mr(u)+4)-4]|e[P-3]<<8,x=P+y;if(x>a){o&&Hr(0);break}l&&d(p+y),n.set(e.subarray(P,x),p),t.b=p+=y,t.p=u=8*x,t.f=c;continue}if(1==g)A=Er,h=Lr,f=9,m=5;else if(2==g){var b=_r(e,u,31)+257,w=_r(e,u+10,15)+4,j=b+_r(e,u+5,31)+1;u+=14;for(var C=new Ar(j),S=new Ar(19),N=0;N>4)<16)C[N++]=P;else{var T=0,E=0;for(16==P?(E=3+_r(e,u,3),u+=2,T=C[N-1]):17==P?(E=3+_r(e,u,7),u+=3):18==P&&(E=11+_r(e,u,127),u+=7);E--;)C[N++]=T}}var D=C.subarray(0,b),L=C.subarray(b);f=Ur(D),m=Ur(L),A=Br(D,f,1),h=Br(L,m,1)}else Hr(1);if(u>v){o&&Hr(0);break}}l&&d(p+131072);for(var U=(1<>4;if((u+=15&T)>v){o&&Hr(0);break}if(T||Hr(2),M<256)n[p++]=M;else{if(256==M){O=u,A=null;break}var R=M-254;if(M>264){var Q=mr[N=M-257];R=_r(e,u,(1<>4;if(H||Hr(3),u+=15&H,L=Cr[V],V>3&&(Q=vr[V],L+=Or(e,u)&(1<v){o&&Hr(0);break}l&&d(p+131072);var z=p+R;if(p>4>7||(n[0]<<8|n[1])%31)&&Hr(6,"invalid zlib data"),(n[1]>>5&1)==+!i&&Hr(6,"invalid zlib data: "+(32&n[1]?"need":"unexpected")+" dictionary"),2+(n[1]>>3&4)),-4),{i:2},t&&t.out,t&&t.dictionary);var n,i}var as="undefined"!=typeof TextDecoder&&new TextDecoder;try{as.decode(Jr,{stream:!0})}catch(Ou){}function rs(e,t="utf8"){return new TextDecoder(t).decode(e)}const ss=new TextEncoder;const ls=(()=>{const e=new Uint8Array(4);return!((new Uint32Array(e.buffer)[0]=1)&e[0])})(),os={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class ds{constructor(e=8192,t={}){i(this,"buffer"),i(this,"byteLength"),i(this,"byteOffset"),i(this,"length"),i(this,"offset"),i(this,"lastWrittenByte"),i(this,"littleEndian"),i(this,"_data"),i(this,"_mark"),i(this,"_marks");let n=!1;"number"==typeof e?e=new ArrayBuffer(e):(n=!0,this.lastWrittenByte=e.byteLength);const a=t.offset?t.offset>>>0:0,r=e.byteLength-a;let s=a;(ArrayBuffer.isView(e)||e instanceof ds)&&(e.byteLength!==e.buffer.byteLength&&(s=e.byteOffset+a),e=e.buffer),this.lastWrittenByte=n?r:0,this.buffer=e,this.length=r,this.byteLength=r,this.byteOffset=s,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,s,r),this._mark=0,this._marks=[]}available(e=1){return this.offset+e<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(e=1){return this.offset+=e,this}back(e=1){return this.offset-=e,this}seek(e){return this.offset=e,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const e=this._marks.pop();if(void 0===e)throw new Error("Mark stack empty");return this.seek(e),this}rewind(){return this.offset=0,this}ensureAvailable(e=1){if(!this.available(e)){const t=2*(this.offset+e),n=new Uint8Array(t);n.set(new Uint8Array(this.buffer)),this.buffer=n.buffer,this.length=t,this.byteLength=t,this._data=new DataView(this.buffer)}return this}readBoolean(){return 0!==this.readUint8()}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(e=1){return this.readArray(e,"uint8")}readArray(e,t){const n=os[t].BYTES_PER_ELEMENT*e,i=this.byteOffset+this.offset,a=this.buffer.slice(i,i+n);if(this.littleEndian===ls&&"uint8"!==t&&"int8"!==t){const e=new Uint8Array(this.buffer.slice(i,i+n));e.reverse();const a=new os[t](e.buffer);return this.offset+=n,a.reverse(),a}const r=new os[t](a);return this.offset+=n,r}readInt16(){const e=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,e}readUint16(){const e=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,e}readInt32(){const e=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,e}readUint32(){const e=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat32(){const e=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,e}readFloat64(){const e=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,e}readBigInt64(){const e=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,e}readBigUint64(){const e=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,e}readChar(){return String.fromCharCode(this.readInt8())}readChars(e=1){let t="";for(let n=0;nthis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}} /*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */function cs(e){let t=e.length;for(;--t>=0;)e[t]=0}const us=256,ps=286,As=30,hs=15,fs=new Uint8Array([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]),ms=new Uint8Array([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]),vs=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),gs=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ys=new Array(576);cs(ys);const xs=new Array(60);cs(xs);const bs=new Array(512);cs(bs);const ws=new Array(256);cs(ws);const js=new Array(29);cs(js);const Cs=new Array(As);function Ss(e,t,n,i,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=i,this.max_length=a,this.has_stree=e&&e.length}let Ns,Is,Fs;function Bs(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}cs(Cs);const Ps=e=>e<256?bs[e]:bs[256+(e>>>7)],ks=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},Ts=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<{Ts(e,n[2*t],n[2*t+1])},Ds=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},Ls=(e,t,n)=>{const i=new Array(16);let a,r,s=0;for(a=1;a<=hs;a++)s=s+n[a-1]<<1,i[a]=s;for(r=0;r<=t;r++){let t=e[2*r+1];0!==t&&(e[2*r]=Ds(i[t]++,t))}},Us=e=>{let t;for(t=0;t{e.bi_valid>8?ks(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Os=(e,t,n,i)=>{const a=2*t,r=2*n;return e[a]{const i=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a{let i,a,r,s,l=0;if(0!==e.sym_next)do{i=255&e.pending_buf[e.sym_buf+l++],i+=(255&e.pending_buf[e.sym_buf+l++])<<8,a=e.pending_buf[e.sym_buf+l++],0===i?Es(e,a,t):(r=ws[a],Es(e,r+us+1,t),s=fs[r],0!==s&&(a-=js[r],Ts(e,a,s)),i--,r=Ps(i),Es(e,r,n),s=ms[r],0!==s&&(i-=Cs[r],Ts(e,i,s)))}while(l{const n=t.dyn_tree,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,r=t.stat_desc.elems;let s,l,o,d=-1;for(e.heap_len=0,e.heap_max=573,s=0;s>1;s>=1;s--)Ms(e,n,s);o=r;do{s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Ms(e,n,1),l=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=l,n[2*o]=n[2*s]+n[2*l],e.depth[o]=(e.depth[s]>=e.depth[l]?e.depth[s]:e.depth[l])+1,n[2*s+1]=n[2*l+1]=o,e.heap[1]=o++,Ms(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,i=t.max_code,a=t.stat_desc.static_tree,r=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,o=t.stat_desc.max_length;let d,c,u,p,A,h,f=0;for(p=0;p<=hs;p++)e.bl_count[p]=0;for(n[2*e.heap[e.heap_max]+1]=0,d=e.heap_max+1;d<573;d++)c=e.heap[d],p=n[2*n[2*c+1]+1]+1,p>o&&(p=o,f++),n[2*c+1]=p,c>i||(e.bl_count[p]++,A=0,c>=l&&(A=s[c-l]),h=n[2*c],e.opt_len+=h*(p+A),r&&(e.static_len+=h*(a[2*c+1]+A)));if(0!==f){do{for(p=o-1;0===e.bl_count[p];)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[o]--,f-=2}while(f>0);for(p=o;0!==p;p--)for(c=e.bl_count[p];0!==c;)u=e.heap[--d],u>i||(n[2*u+1]!==p&&(e.opt_len+=(p-n[2*u+1])*n[2*u],n[2*u+1]=p),c--)}})(e,t),Ls(n,d,e.bl_count)},Hs=(e,t,n)=>{let i,a,r=-1,s=t[1],l=0,o=7,d=4;for(0===s&&(o=138,d=3),t[2*(n+1)+1]=65535,i=0;i<=n;i++)a=s,s=t[2*(i+1)+1],++l{let i,a,r=-1,s=t[1],l=0,o=7,d=4;for(0===s&&(o=138,d=3),i=0;i<=n;i++)if(a=s,s=t[2*(i+1)+1],!(++l{Ts(e,0+(i?1:0),3),_s(e),ks(e,n),ks(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};var Ws=e=>{zs||((()=>{let e,t,n,i,a;const r=new Array(16);for(n=0,i=0;i<28;i++)for(js[i]=n,e=0;e<1<>=7;i{let a,r,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t{let t;for(Hs(e,e.dyn_ltree,e.l_desc.max_code),Hs(e,e.dyn_dtree,e.d_desc.max_code),Qs(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*gs[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),a=e.opt_len+3+7>>>3,r=e.static_len+3+7>>>3,r<=a&&(a=r)):a=r=n+5,n+4<=a&&-1!==t?qs(e,t,n,i):4===e.strategy||r===a?(Ts(e,2+(i?1:0),3),Rs(e,ys,xs)):(Ts(e,4+(i?1:0),3),((e,t,n,i)=>{let a;for(Ts(e,t-257,5),Ts(e,n-1,5),Ts(e,i-4,4),a=0;a(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(ws[n]+us+1)]++,e.dyn_dtree[2*Ps(t)]++),e.sym_next===e.sym_end),_tr_align:e=>{Ts(e,2,3),Es(e,256,ys),(e=>{16===e.bi_valid?(ks(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}};var Gs=(e,t,n,i)=>{let a=65535&e,r=e>>>16&65535,s=0;for(;0!==n;){s=n>2e3?2e3:n,n-=s;do{a=a+t[i++]|0,r=r+a|0}while(--s);a%=65521,r%=65521}return a|r<<16};const $s=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());var Xs=(e,t,n,i)=>{const a=$s,r=i+n;e^=-1;for(let s=i;s>>8^a[255&(e^t[s])];return-1^e},Js={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Zs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:el,_tr_stored_block:tl,_tr_flush_block:nl,_tr_tally:il,_tr_align:al}=Ks,{Z_NO_FLUSH:rl,Z_PARTIAL_FLUSH:sl,Z_FULL_FLUSH:ll,Z_FINISH:ol,Z_BLOCK:dl,Z_OK:cl,Z_STREAM_END:ul,Z_STREAM_ERROR:pl,Z_DATA_ERROR:Al,Z_BUF_ERROR:hl,Z_DEFAULT_COMPRESSION:fl,Z_FILTERED:ml,Z_HUFFMAN_ONLY:vl,Z_RLE:gl,Z_FIXED:yl,Z_DEFAULT_STRATEGY:xl,Z_UNKNOWN:bl,Z_DEFLATED:wl}=Zs,jl=258,Cl=262,Sl=42,Nl=113,Il=666,Fl=(e,t)=>(e.msg=Js[t],t),Bl=e=>2*e-(e>4?9:0),Pl=e=>{let t=e.length;for(;--t>=0;)e[t]=0},kl=e=>{let t,n,i,a=e.w_size;t=e.hash_size,i=t;do{n=e.head[--i],e.head[i]=n>=a?n-a:0}while(--t);t=a,i=t;do{n=e.prev[--i],e.prev[i]=n>=a?n-a:0}while(--t)};let Tl=(e,t,n)=>(t<{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},Dl=(e,t)=>{nl(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,El(e.strm)},Ll=(e,t)=>{e.pending_buf[e.pending++]=t},Ul=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},_l=(e,t,n,i)=>{let a=e.avail_in;return a>i&&(a=i),0===a?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),1===e.state.wrap?e.adler=Gs(e.adler,t,a,n):2===e.state.wrap&&(e.adler=Xs(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},Ol=(e,t)=>{let n,i,a=e.max_chain_length,r=e.strstart,s=e.prev_length,l=e.nice_match;const o=e.strstart>e.w_size-Cl?e.strstart-(e.w_size-Cl):0,d=e.window,c=e.w_mask,u=e.prev,p=e.strstart+jl;let A=d[r+s-1],h=d[r+s];e.prev_length>=e.good_match&&(a>>=2),l>e.lookahead&&(l=e.lookahead);do{if(n=t,d[n+s]===h&&d[n+s-1]===A&&d[n]===d[r]&&d[++n]===d[r+1]){r+=2,n++;do{}while(d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&d[++r]===d[++n]&&rs){if(e.match_start=t,s=i,i>=l)break;A=d[r+s-1],h=d[r+s]}}}while((t=u[t&c])>o&&0!==--a);return s<=e.lookahead?s:e.lookahead},Ml=e=>{const t=e.w_size;let n,i,a;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Cl)&&(e.window.set(e.window.subarray(t,t+t-i),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),kl(e),i+=t),0===e.strm.avail_in)break;if(n=_l(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=Tl(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=Tl(e,e.ins_h,e.window[a+3-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead{let n,i,a,r=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,s=0,l=e.strm.avail_in;do{if(n=65535,a=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(n=i+e.strm.avail_in),n>a&&(n=a),n>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,El(e.strm),i&&(i>n&&(i=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,n-=i),n&&(_l(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===s);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_watera&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&(_l(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,r=a>e.w_size?e.w_size:a,i=e.strstart-e.block_start,(i>=r||(i||t===ol)&&t!==rl&&0===e.strm.avail_in&&i<=a)&&(n=i>a?a:i,s=t===ol&&0===e.strm.avail_in&&n===i?1:0,tl(e,e.block_start,n,s),e.block_start+=n,El(e.strm)),s?3:1)},Ql=(e,t)=>{let n,i;for(;;){if(e.lookahead=3&&(e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-Cl&&(e.match_length=Ol(e,n)),e.match_length>=3)if(i=il(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+1]);else i=il(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(Dl(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===ol?(Dl(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Dl(e,!1),0===e.strm.avail_out)?1:2},Hl=(e,t)=>{let n,i,a;for(;;){if(e.lookahead=3&&(e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,i=il(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=Tl(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,i&&(Dl(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(i=il(e,0,e.window[e.strstart-1]),i&&Dl(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=il(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===ol?(Dl(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Dl(e,!1),0===e.strm.avail_out)?1:2};function Vl(e,t,n,i,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=i,this.func=a}const zl=[new Vl(0,0,0,0,Rl),new Vl(4,4,8,4,Ql),new Vl(4,5,16,8,Ql),new Vl(4,6,32,32,Ql),new Vl(4,4,16,16,Hl),new Vl(8,16,32,32,Hl),new Vl(8,16,128,128,Hl),new Vl(8,32,128,256,Hl),new Vl(32,128,258,1024,Hl),new Vl(32,258,258,4096,Hl)];function ql(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=wl,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),Pl(this.dyn_ltree),Pl(this.dyn_dtree),Pl(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),Pl(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),Pl(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Wl=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Sl&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==Nl&&t.status!==Il?1:0},Yl=e=>{if(Wl(e))return Fl(e,pl);e.total_in=e.total_out=0,e.data_type=bl;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?Sl:Nl,e.adler=2===t.wrap?0:1,t.last_flush=-2,el(t),cl},Kl=e=>{const t=Yl(e);var n;return t===cl&&((n=e.state).window_size=2*n.w_size,Pl(n.head),n.max_lazy_match=zl[n.level].max_lazy,n.good_match=zl[n.level].good_length,n.nice_match=zl[n.level].nice_length,n.max_chain_length=zl[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},Gl=(e,t,n,i,a,r)=>{if(!e)return pl;let s=1;if(t===fl&&(t=6),i<0?(s=0,i=-i):i>15&&(s=2,i-=16),a<1||a>9||n!==wl||i<8||i>15||t<0||t>9||r<0||r>yl||8===i&&1!==s)return Fl(e,pl);8===i&&(i=9);const l=new ql;return e.state=l,l.strm=e,l.status=Sl,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<{let n=t.length;if(Wl(e))return pl;const i=e.state,a=i.wrap;if(2===a||1===a&&i.status!==Sl||i.lookahead)return pl;if(1===a&&(e.adler=Gs(e.adler,t,n,0)),i.wrap=0,n>=i.w_size){0===a&&(Pl(i.head),i.strstart=0,i.block_start=0,i.insert=0);let e=new Uint8Array(i.w_size);e.set(t.subarray(n-i.w_size,n),0),t=e,n=i.w_size}const r=e.avail_in,s=e.next_in,l=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Ml(i);i.lookahead>=3;){let e=i.strstart,t=i.lookahead-2;do{i.ins_h=Tl(i,i.ins_h,i.window[e+3-1]),i.prev[e&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=e,e++}while(--t);i.strstart=e,i.lookahead=2,Ml(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,e.next_in=s,e.input=l,e.avail_in=r,i.wrap=a,cl},Xl={deflateInit:(e,t)=>Gl(e,t,wl,15,8,xl),deflateInit2:Gl,deflateReset:Kl,deflateResetKeep:Yl,deflateSetHeader:(e,t)=>Wl(e)||2!==e.state.wrap?pl:(e.state.gzhead=t,cl),deflate:(e,t)=>{if(Wl(e)||t>dl||t<0)return e?Fl(e,pl):pl;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===Il&&t!==ol)return Fl(e,0===e.avail_out?hl:pl);const i=n.last_flush;if(n.last_flush=t,0!==n.pending){if(El(e),0===e.avail_out)return n.last_flush=-1,cl}else if(0===e.avail_in&&Bl(t)<=Bl(i)&&t!==ol)return Fl(e,hl);if(n.status===Il&&0!==e.avail_in)return Fl(e,hl);if(n.status===Sl&&0===n.wrap&&(n.status=Nl),n.status===Sl){let t=wl+(n.w_bits-8<<4)<<8,i=-1;if(i=n.strategy>=vl||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=i<<6,0!==n.strstart&&(t|=32),t+=31-t%31,Ul(n,t),0!==n.strstart&&(Ul(n,e.adler>>>16),Ul(n,65535&e.adler)),e.adler=1,n.status=Nl,El(e),0!==n.pending)return n.last_flush=-1,cl}if(57===n.status)if(e.adler=0,Ll(n,31),Ll(n,139),Ll(n,8),n.gzhead)Ll(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Ll(n,255&n.gzhead.time),Ll(n,n.gzhead.time>>8&255),Ll(n,n.gzhead.time>>16&255),Ll(n,n.gzhead.time>>24&255),Ll(n,9===n.level?2:n.strategy>=vl||n.level<2?4:0),Ll(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Ll(n,255&n.gzhead.extra.length),Ll(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Xs(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(Ll(n,0),Ll(n,0),Ll(n,0),Ll(n,0),Ll(n,0),Ll(n,9===n.level?2:n.strategy>=vl||n.level<2?4:0),Ll(n,3),n.status=Nl,El(e),0!==n.pending)return n.last_flush=-1,cl;if(69===n.status){if(n.gzhead.extra){let t=n.pending,i=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+i>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=a,El(e),0!==n.pending)return n.last_flush=-1,cl;t=0,i-=a}let a=new Uint8Array(n.gzhead.extra);n.pending_buf.set(a.subarray(n.gzindex,n.gzindex+i),n.pending),n.pending+=i,n.gzhead.hcrc&&n.pending>t&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-i,i)),El(e),0!==n.pending)return n.last_flush=-1,cl;i=0}t=n.gzindexi&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,i=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-i,i)),El(e),0!==n.pending)return n.last_flush=-1,cl;i=0}t=n.gzindexi&&(e.adler=Xs(e.adler,n.pending_buf,n.pending-i,i))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(El(e),0!==n.pending))return n.last_flush=-1,cl;Ll(n,255&e.adler),Ll(n,e.adler>>8&255),e.adler=0}if(n.status=Nl,El(e),0!==n.pending)return n.last_flush=-1,cl}if(0!==e.avail_in||0!==n.lookahead||t!==rl&&n.status!==Il){let i=0===n.level?Rl(n,t):n.strategy===vl?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(Ml(e),0===e.lookahead)){if(t===rl)return 1;break}if(e.match_length=0,n=il(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(Dl(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===ol?(Dl(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Dl(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===gl?((e,t)=>{let n,i,a,r;const s=e.window;for(;;){if(e.lookahead<=jl){if(Ml(e),e.lookahead<=jl&&t===rl)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(a=e.strstart-1,i=s[a],i===s[++a]&&i===s[++a]&&i===s[++a])){r=e.strstart+jl;do{}while(i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&i===s[++a]&&ae.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=il(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=il(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(Dl(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===ol?(Dl(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(Dl(e,!1),0===e.strm.avail_out)?1:2})(n,t):zl[n.level].func(n,t);if(3!==i&&4!==i||(n.status=Il),1===i||3===i)return 0===e.avail_out&&(n.last_flush=-1),cl;if(2===i&&(t===sl?al(n):t!==dl&&(tl(n,0,0,!1),t===ll&&(Pl(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),El(e),0===e.avail_out))return n.last_flush=-1,cl}return t!==ol?cl:n.wrap<=0?ul:(2===n.wrap?(Ll(n,255&e.adler),Ll(n,e.adler>>8&255),Ll(n,e.adler>>16&255),Ll(n,e.adler>>24&255),Ll(n,255&e.total_in),Ll(n,e.total_in>>8&255),Ll(n,e.total_in>>16&255),Ll(n,e.total_in>>24&255)):(Ul(n,e.adler>>>16),Ul(n,65535&e.adler)),El(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?cl:ul)},deflateEnd:e=>{if(Wl(e))return pl;const t=e.state.status;return e.state=null,t===Nl?Fl(e,Al):cl},deflateSetDictionary:$l,deflateInfo:"pako deflate (from Nodeca project)"};const Jl=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Zl=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(const t in n)Jl(n,t)&&(e[t]=n[t])}}return e},eo=e=>{let t=0;for(let i=0,a=e.length;i=252?6:Wfe>=248?5:Wfe>=240?4:Wfe>=224?3:Wfe>=192?2:1;no[254]=no[254]=1;var io=e=>{if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,i,a,r,s=e.length,l=0;for(a=0;a>>6,t[r++]=128|63&n):n<65536?(t[r++]=224|n>>>12,t[r++]=128|n>>>6&63,t[r++]=128|63&n):(t[r++]=240|n>>>18,t[r++]=128|n>>>12&63,t[r++]=128|n>>>6&63,t[r++]=128|63&n);return t},ao=(e,t)=>{const n=t||e.length;if("function"==typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,t));let i,a;const r=new Array(2*n);for(a=0,i=0;i4)r[a++]=65533,i+=s-1;else{for(t&=2===s?31:3===s?15:7;s>1&&i1?r[a++]=65533:t<65536?r[a++]=t:(t-=65536,r[a++]=55296|t>>10&1023,r[a++]=56320|1023&t)}}return((e,t)=>{if(t<65534&&e.subarray&&to)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let i=0;i{(t=t||e.length)>e.length&&(t=e.length);let n=t-1;for(;n>=0&&128==(192&e[n]);)n--;return n<0||0===n?t:n+no[e[n]]>t?n:t};var so=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0};const lo=Object.prototype.toString,{Z_NO_FLUSH:oo,Z_SYNC_FLUSH:co,Z_FULL_FLUSH:uo,Z_FINISH:po,Z_OK:Ao,Z_STREAM_END:ho,Z_DEFAULT_COMPRESSION:fo,Z_DEFAULT_STRATEGY:mo,Z_DEFLATED:vo}=Zs;function go(e){this.options=Zl({level:fo,method:vo,chunkSize:16384,windowBits:15,memLevel:8,strategy:mo},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new so,this.strm.avail_out=0;let n=Xl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Ao)throw new Error(Js[n]);if(t.header&&Xl.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"==typeof t.dictionary?io(t.dictionary):"[object ArrayBuffer]"===lo.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=Xl.deflateSetDictionary(this.strm,e),n!==Ao)throw new Error(Js[n]);this._dict_set=!0}}go.prototype.push=function(e,t){const n=this.strm,i=this.options.chunkSize;let a,r;if(this.ended)return!1;for(r=t===~~t?t:!0===t?po:oo,"string"==typeof e?n.input=io(e):"[object ArrayBuffer]"===lo.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),(r===co||r===uo)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(a=Xl.deflate(n,r),a===ho)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),a=Xl.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===Ao;if(0!==n.avail_out){if(r>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},go.prototype.onData=function(e){this.chunks.push(e)},go.prototype.onEnd=function(e){e===Ao&&(this.result=eo(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};const yo=16209;var xo=function(e,t){let n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C,S;const N=e.state;n=e.next_in,C=e.input,i=n+(e.avail_in-5),a=e.next_out,S=e.output,r=a-(t-e.avail_out),s=a+(e.avail_out-257),l=N.dmax,o=N.wsize,d=N.whave,c=N.wnext,u=N.window,p=N.hold,A=N.bits,h=N.lencode,f=N.distcode,m=(1<>>24,p>>>=y,A-=y,y=g>>>16&255,0===y)S[a++]=65535&g;else{if(!(16&y)){if(64&y){if(32&y){N.mode=16191;break e}e.msg="invalid literal/length code",N.mode=yo;break e}g=h[(65535&g)+(p&(1<>>=y,A-=y),A<15&&(p+=C[n++]<>>24,p>>>=y,A-=y,y=g>>>16&255,16&y){if(b=65535&g,y&=15,Al){e.msg="invalid distance too far back",N.mode=yo;break e}if(p>>>=y,A-=y,y=a-r,b>y){if(y=b-y,y>d&&N.sane){e.msg="invalid distance too far back",N.mode=yo;break e}if(w=0,j=u,0===c){if(w+=o-y,y2;)S[a++]=j[w++],S[a++]=j[w++],S[a++]=j[w++],x-=3;x&&(S[a++]=j[w++],x>1&&(S[a++]=j[w++]))}else{w=a-b;do{S[a++]=S[w++],S[a++]=S[w++],S[a++]=S[w++],x-=3}while(x>2);x&&(S[a++]=S[w++],x>1&&(S[a++]=S[w++]))}break}if(64&y){e.msg="invalid distance code",N.mode=yo;break e}g=f[(65535&g)+(p&(1<>3,n-=x,A-=x<<3,p&=(1<{const o=l.bits;let d,c,u,p,A,h,f=0,m=0,v=0,g=0,y=0,x=0,b=0,w=0,j=0,C=0,S=null;const N=new Uint16Array(16),I=new Uint16Array(16);let F,B,P,k=null;for(f=0;f<=bo;f++)N[f]=0;for(m=0;m=1&&0===N[g];g--);if(y>g&&(y=g),0===g)return a[r++]=20971520,a[r++]=20971520,l.bits=1,0;for(v=1;v0&&(0===e||1!==g))return-1;for(I[1]=0,f=1;f852||2===e&&j>592)return 1;for(;;){F=f-b,s[m]+1=h?(B=k[s[m]-h],P=S[s[m]-h]):(B=96,P=0),d=1<>b)+c]=F<<24|B<<16|P}while(0!==c);for(d=1<>=1;if(0!==d?(C&=d-1,C+=d):C=0,m++,0===--N[f]){if(f===g)break;f=t[n+s[m]]}if(f>y&&(C&p)!==u){for(0===b&&(b=y),A+=v,x=f-b,w=1<852||2===e&&j>592)return 1;u=C&p,a[u]=y<<24|x<<16|A-r}}return 0!==C&&(a[A+C]=f-b<<24|64<<16),l.bits=y,0};const{Z_FINISH:Io,Z_BLOCK:Fo,Z_TREES:Bo,Z_OK:Po,Z_STREAM_END:ko,Z_NEED_DICT:To,Z_STREAM_ERROR:Eo,Z_DATA_ERROR:Do,Z_MEM_ERROR:Lo,Z_BUF_ERROR:Uo,Z_DEFLATED:_o}=Zs,Oo=16180,Mo=16190,Ro=16191,Qo=16192,Ho=16194,Vo=16199,zo=16200,qo=16206,Wo=16209,Yo=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function Ko(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Go=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode16211?1:0},$o=e=>{if(Go(e))return Eo;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=Oo,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,Po},Xo=e=>{if(Go(e))return Eo;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,$o(e)},Jo=(e,t)=>{let n;if(Go(e))return Eo;const i=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Eo:(null!==i.window&&i.wbits!==t&&(i.window=null),i.wrap=n,i.wbits=t,Xo(e))},Zo=(e,t)=>{if(!e)return Eo;const n=new Ko;e.state=n,n.strm=e,n.window=null,n.mode=Oo;const i=Jo(e,t);return i!==Po&&(e.state=null),i};let ed,td,nd=!0;const id=e=>{if(nd){ed=new Int32Array(512),td=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(No(1,e.lens,0,288,ed,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;No(2,e.lens,0,32,td,0,e.work,{bits:5}),nd=!1}e.lencode=ed,e.lenbits=9,e.distcode=td,e.distbits=5},ad=(e,t,n,i)=>{let a;const r=e.state;return null===r.window&&(r.wsize=1<=r.wsize?(r.window.set(t.subarray(n-r.wsize,n),0),r.wnext=0,r.whave=r.wsize):(a=r.wsize-r.wnext,a>i&&(a=i),r.window.set(t.subarray(n-i,n-i+a),r.wnext),(i-=a)?(r.window.set(t.subarray(n-i,n),0),r.wnext=i,r.whave=r.wsize):(r.wnext+=a,r.wnext===r.wsize&&(r.wnext=0),r.whave{let n,i,a,r,s,l,o,d,c,u,p,A,h,f,m,v,g,y,x,b,w,j,C=0;const S=new Uint8Array(4);let N,I;const F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Go(e)||!e.output||!e.input&&0!==e.avail_in)return Eo;n=e.state,n.mode===Ro&&(n.mode=Qo),s=e.next_out,a=e.output,o=e.avail_out,r=e.next_in,i=e.input,l=e.avail_in,d=n.hold,c=n.bits,u=l,p=o,j=Po;e:for(;;)switch(n.mode){case Oo:if(0===n.wrap){n.mode=Qo;break}for(;c<16;){if(0===l)break e;l--,d+=i[r++]<>>8&255,n.check=Xs(n.check,S,2,0),d=0,c=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&d)<<8)+(d>>8))%31){e.msg="incorrect header check",n.mode=Wo;break}if((15&d)!==_o){e.msg="unknown compression method",n.mode=Wo;break}if(d>>>=4,c-=4,w=8+(15&d),0===n.wbits&&(n.wbits=w),w>15||w>n.wbits){e.msg="invalid window size",n.mode=Wo;break}n.dmax=1<>8&1),512&n.flags&&4&n.wrap&&(S[0]=255&d,S[1]=d>>>8&255,n.check=Xs(n.check,S,2,0)),d=0,c=0,n.mode=16182;case 16182:for(;c<32;){if(0===l)break e;l--,d+=i[r++]<>>8&255,S[2]=d>>>16&255,S[3]=d>>>24&255,n.check=Xs(n.check,S,4,0)),d=0,c=0,n.mode=16183;case 16183:for(;c<16;){if(0===l)break e;l--,d+=i[r++]<>8),512&n.flags&&4&n.wrap&&(S[0]=255&d,S[1]=d>>>8&255,n.check=Xs(n.check,S,2,0)),d=0,c=0,n.mode=16184;case 16184:if(1024&n.flags){for(;c<16;){if(0===l)break e;l--,d+=i[r++]<>>8&255,n.check=Xs(n.check,S,2,0)),d=0,c=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&(A=n.length,A>l&&(A=l),A&&(n.head&&(w=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(i.subarray(r,r+A),w)),512&n.flags&&4&n.wrap&&(n.check=Xs(n.check,i,A,r)),l-=A,r+=A,n.length-=A),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===l)break e;A=0;do{w=i[r+A++],n.head&&w&&n.length<65536&&(n.head.name+=String.fromCharCode(w))}while(w&&A>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Ro;break;case 16189:for(;c<32;){if(0===l)break e;l--,d+=i[r++]<>>=7&c,c-=7&c,n.mode=qo;break}for(;c<3;){if(0===l)break e;l--,d+=i[r++]<>>=1,c-=1,3&d){case 0:n.mode=16193;break;case 1:if(id(n),n.mode=Vo,t===Bo){d>>>=2,c-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=Wo}d>>>=2,c-=2;break;case 16193:for(d>>>=7&c,c-=7&c;c<32;){if(0===l)break e;l--,d+=i[r++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=Wo;break}if(n.length=65535&d,d=0,c=0,n.mode=Ho,t===Bo)break e;case Ho:n.mode=16195;case 16195:if(A=n.length,A){if(A>l&&(A=l),A>o&&(A=o),0===A)break e;a.set(i.subarray(r,r+A),s),l-=A,r+=A,o-=A,s+=A,n.length-=A;break}n.mode=Ro;break;case 16196:for(;c<14;){if(0===l)break e;l--,d+=i[r++]<>>=5,c-=5,n.ndist=1+(31&d),d>>>=5,c-=5,n.ncode=4+(15&d),d>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Wo;break}n.have=0,n.mode=16197;case 16197:for(;n.have>>=3,c-=3}for(;n.have<19;)n.lens[F[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,N={bits:n.lenbits},j=No(0,n.lens,0,19,n.lencode,0,n.work,N),n.lenbits=N.bits,j){e.msg="invalid code lengths set",n.mode=Wo;break}n.have=0,n.mode=16198;case 16198:for(;n.have>>24,v=C>>>16&255,g=65535&C,!(m<=c);){if(0===l)break e;l--,d+=i[r++]<>>=m,c-=m,n.lens[n.have++]=g;else{if(16===g){for(I=m+2;c>>=m,c-=m,0===n.have){e.msg="invalid bit length repeat",n.mode=Wo;break}w=n.lens[n.have-1],A=3+(3&d),d>>>=2,c-=2}else if(17===g){for(I=m+3;c>>=m,c-=m,w=0,A=3+(7&d),d>>>=3,c-=3}else{for(I=m+7;c>>=m,c-=m,w=0,A=11+(127&d),d>>>=7,c-=7}if(n.have+A>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Wo;break}for(;A--;)n.lens[n.have++]=w}}if(n.mode===Wo)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Wo;break}if(n.lenbits=9,N={bits:n.lenbits},j=No(1,n.lens,0,n.nlen,n.lencode,0,n.work,N),n.lenbits=N.bits,j){e.msg="invalid literal/lengths set",n.mode=Wo;break}if(n.distbits=6,n.distcode=n.distdyn,N={bits:n.distbits},j=No(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,N),n.distbits=N.bits,j){e.msg="invalid distances set",n.mode=Wo;break}if(n.mode=Vo,t===Bo)break e;case Vo:n.mode=zo;case zo:if(l>=6&&o>=258){e.next_out=s,e.avail_out=o,e.next_in=r,e.avail_in=l,n.hold=d,n.bits=c,xo(e,p),s=e.next_out,a=e.output,o=e.avail_out,r=e.next_in,i=e.input,l=e.avail_in,d=n.hold,c=n.bits,n.mode===Ro&&(n.back=-1);break}for(n.back=0;C=n.lencode[d&(1<>>24,v=C>>>16&255,g=65535&C,!(m<=c);){if(0===l)break e;l--,d+=i[r++]<>y)],m=C>>>24,v=C>>>16&255,g=65535&C,!(y+m<=c);){if(0===l)break e;l--,d+=i[r++]<>>=y,c-=y,n.back+=y}if(d>>>=m,c-=m,n.back+=m,n.length=g,0===v){n.mode=16205;break}if(32&v){n.back=-1,n.mode=Ro;break}if(64&v){e.msg="invalid literal/length code",n.mode=Wo;break}n.extra=15&v,n.mode=16201;case 16201:if(n.extra){for(I=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;C=n.distcode[d&(1<>>24,v=C>>>16&255,g=65535&C,!(m<=c);){if(0===l)break e;l--,d+=i[r++]<>y)],m=C>>>24,v=C>>>16&255,g=65535&C,!(y+m<=c);){if(0===l)break e;l--,d+=i[r++]<>>=y,c-=y,n.back+=y}if(d>>>=m,c-=m,n.back+=m,64&v){e.msg="invalid distance code",n.mode=Wo;break}n.offset=g,n.extra=15&v,n.mode=16203;case 16203:if(n.extra){for(I=n.extra;c>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Wo;break}n.mode=16204;case 16204:if(0===o)break e;if(A=p-o,n.offset>A){if(A=n.offset-A,A>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Wo;break}A>n.wnext?(A-=n.wnext,h=n.wsize-A):h=n.wnext-A,A>n.length&&(A=n.length),f=n.window}else f=a,h=s-n.offset,A=n.length;A>o&&(A=o),o-=A,n.length-=A;do{a[s++]=f[h++]}while(--A);0===n.length&&(n.mode=zo);break;case 16205:if(0===o)break e;a[s++]=n.length,o--,n.mode=zo;break;case qo:if(n.wrap){for(;c<32;){if(0===l)break e;l--,d|=i[r++]<Zo(e,15),inflateInit2:Zo,inflate:rd,inflateEnd:e=>{if(Go(e))return Eo;let t=e.state;return t.window&&(t.window=null),e.state=null,Po},inflateGetHeader:(e,t)=>{if(Go(e))return Eo;const n=e.state;return 2&n.wrap?(n.head=t,t.done=!1,Po):Eo},inflateSetDictionary:(e,t)=>{const n=t.length;let i,a,r;return Go(e)?Eo:(i=e.state,0!==i.wrap&&i.mode!==Mo?Eo:i.mode===Mo&&(a=1,a=Gs(a,t,n,0),a!==i.check)?Do:(r=ad(e,t,n,n),r?(i.mode=16210,Lo):(i.havedict=1,Po)))},inflateInfo:"pako inflate (from Nodeca project)"};var ld=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1};const od=Object.prototype.toString,{Z_NO_FLUSH:dd,Z_FINISH:cd,Z_OK:ud,Z_STREAM_END:pd,Z_NEED_DICT:Ad,Z_STREAM_ERROR:hd,Z_DATA_ERROR:fd,Z_MEM_ERROR:md}=Zs;function vd(e){this.options=Zl({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new so,this.strm.avail_out=0;let n=sd.inflateInit2(this.strm,t.windowBits);if(n!==ud)throw new Error(Js[n]);if(this.header=new ld,sd.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=io(t.dictionary):"[object ArrayBuffer]"===od.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=sd.inflateSetDictionary(this.strm,t.dictionary),n!==ud)))throw new Error(Js[n])}function gd(e,t){const n=new vd(t);if(n.push(e),n.err)throw n.msg||Js[n.err];return n.result}vd.prototype.push=function(e,t){const n=this.strm,i=this.options.chunkSize,a=this.options.dictionary;let r,s,l;if(this.ended)return!1;for(s=t===~~t?t:!0===t?cd:dd,"[object ArrayBuffer]"===od.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(i),n.next_out=0,n.avail_out=i),r=sd.inflate(n,s),r===Ad&&a&&(r=sd.inflateSetDictionary(n,a),r===ud?r=sd.inflate(n,s):r===fd&&(r=Ad));n.avail_in>0&&r===pd&&n.state.wrap>0&&0!==e[n.next_in];)sd.inflateReset(n),r=sd.inflate(n,s);switch(r){case hd:case fd:case Ad:case md:return this.onEnd(r),this.ended=!0,!1}if(l=n.avail_out,n.next_out&&(0===n.avail_out||r===pd))if("string"===this.options.to){let e=ro(n.output,n.next_out),t=n.next_out-e,a=ao(n.output,e);n.next_out=t,n.avail_out=i-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(a)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(r!==ud||0!==l){if(r===pd)return r=sd.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},vd.prototype.onData=function(e){this.chunks.push(e)},vd.prototype.onEnd=function(e){e===ud&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=eo(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var yd={Inflate:vd,inflate:gd,inflateRaw:function(e,t){return(t=t||{}).raw=!0,gd(e,t)},ungzip:gd,constants:Zs};const{Inflate:xd,inflate:bd,inflateRaw:wd,ungzip:jd}=yd;var Cd=xd,Sd=bd;const Nd=[];for(let Wfe=0;Wfe<256;Wfe++){let e=Wfe;for(let t=0;t<8;t++)1&e?e=3988292384^e>>>1:e>>>=1;Nd[Wfe]=e}const Id=4294967295;function Fd(e,t){return(function(e,t,n){let i=e;for(let a=0;a>>8;return i}(Id,e,t)^Id)>>>0}function Bd(e,t,n){const i=e.readUint32(),a=Fd(new Uint8Array(e.buffer,e.byteOffset+e.offset-t-4,t),t);if(a!==i)throw new Error(`CRC mismatch for chunk ${n}. Expected ${i}, found ${a}`)}function Pd(e,t,n){for(let i=0;i>1)&255}else{for(;r>1)&255;for(;r>1)&255}}function Dd(e,t,n,i,a){let r=0;if(0===n.length){for(;r>8&255;return e}return o;var A}const Vd=Uint8Array.of(137,80,78,71,13,10,26,10);function zd(e){if(!function(e){if(e.length79)throw new Error("keyword length must be between 1 and 79")}const Yd=/^[\u0000-\u00FF]*$/;function Kd(e,t,n){const i=Gd(t);e[i]=function(e,t){return qd.decode(e.readBytes(t))}(t,n-i.length-1)}function Gd(e){for(e.mark();0!==e.readByte(););const t=e.offset;e.reset();const n=qd.decode(e.readBytes(t-e.offset-1));return e.skip(1),Wd(n),n}const $d=-1,Xd=0,Jd=2,Zd=3,ec=4,tc=6,nc=-1,ic=0,ac=-1,rc=0,sc=-1,lc=0,oc=1,dc=0,cc=1,uc=2,pc=0,Ac=1;class hc extends ds{constructor(e,t={}){super(e),i(this,"_checkCrc"),i(this,"_inflator"),i(this,"_png"),i(this,"_apng"),i(this,"_end"),i(this,"_hasPalette"),i(this,"_palette"),i(this,"_hasTransparency"),i(this,"_transparency"),i(this,"_compressionMethod"),i(this,"_filterMethod"),i(this,"_interlaceMethod"),i(this,"_colorType"),i(this,"_isAnimated"),i(this,"_numberOfFrames"),i(this,"_numberOfPlays"),i(this,"_frames"),i(this,"_writingDataChunks");const{checkCrc:n=!1}=t;this._checkCrc=n,this._inflator=new Cd,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=nc,this._filterMethod=ac,this._interlaceMethod=sc,this._colorType=$d,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(zd(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeChunk(e,t)}return this.decodeImage(),this._png}decodeApng(){for(zd(this);!this._end;){const e=this.readUint32(),t=this.readChars(4);this.decodeApngChunk(e,t)}return this.decodeApngImage(),this._apng}decodeChunk(e,t){const n=this.offset;switch(t){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case"tEXt":Kd(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e)}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?Bd(this,e+4,t):this.skip(4)}decodeApngChunk(e,t){const n=this.offset;switch("fdAT"!==t&&"IDAT"!==t&&this._writingDataChunks&&this.pushDataToFrame(),t){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,t),this.offset=n+e}if(this.offset-n!==e)throw new Error(`Length mismatch while decoding chunk ${t}`);this._checkCrc?Bd(this,e+4,t):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=function(e){if(1!==e&&2!==e&&4!==e&&8!==e&&16!==e)throw new Error(`invalid bit depth: ${e}`);return e}(this.readUint8());const t=this.readUint8();let n;switch(this._colorType=t,t){case Xd:n=1;break;case Jd:n=3;break;case Zd:n=1;break;case ec:n=2;break;case tc:n=4;break;default:throw new Error(`Unknown color type: ${t}`)}if(this._png.channels=n,this._compressionMethod=this.readUint8(),this._compressionMethod!==ic)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!=0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const t=e/3;this._hasPalette=!0;const n=[];this._palette=n;for(let i=0;ithis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let t=0;tthis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${e} vs ${this._palette.length})`);let t=0;for(;t({index:((e+t.yOffset)*this._png.width+t.xOffset+n)*this._png.channels,frameIndex:(e*t.width+n)*this._png.channels});switch(t.blendOp){case pc:for(let n=0;n=n||r>=i))for(let e=0;e>8&255;return e}return o;var c}({data:t,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth})}this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,t=this._frames.at(-1);t?t.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:dc,blendOp:pc,data:e}),this._inflator=new Cd,this._writingDataChunks=!1}}var fc,mc;(mc=fc||(fc={}))[mc.UNKNOWN=0]="UNKNOWN",mc[mc.METRE=1]="METRE";var vc=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function gc(){vc.console&&"function"==typeof vc.console.log&&vc.console.log.apply(vc.console,arguments)}var yc={log:gc,warn:function(e){vc.console&&("function"==typeof vc.console.warn?vc.console.warn.apply(vc.console,arguments):gc.call(null,arguments))},error:function(e){vc.console&&("function"==typeof vc.console.error?vc.console.error.apply(vc.console,arguments):gc(e))}};function xc(e,t,n){var i=new XMLHttpRequest;i.open("GET",e),i.responseType="blob",i.onload=function(){jc(i.response,t,n)},i.onerror=function(){yc.error("could not download file")},i.send()}function bc(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(Zre){}return t.status>=200&&t.status<=299}function wc(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(Zre){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 jc=vc.saveAs||("object"!==("undefined"==typeof window?"undefined":p(window))||window!==vc?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var i=vc.URL||vc.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener","string"==typeof e?(a.href=e,a.origin!==location.origin?bc(a.href)?xc(e,t,n):wc(a,a.target="_blank"):wc(a)):(a.href=i.createObjectURL(e),setTimeout((function(){i.revokeObjectURL(a.href)}),4e4),setTimeout((function(){wc(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(bc(e))xc(e,t,n);else{var i=document.createElement("a");i.href=e,i.target="_blank",setTimeout((function(){wc(i)}))}else navigator.msSaveOrOpenBlob((a=e,void 0===(r=n)?r={autoBom:!1}:"object"!==p(r)&&(yc.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob([String.fromCharCode(65279),a],{type:a.type}):a),t);var a,r}:function(e,t,n,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return xc(e,t,n);var a="application/octet-stream"===e.type,r=/constructor/i.test(vc.HTMLElement)||vc.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||a&&r)&&"object"===("undefined"==typeof FileReader?"undefined":p(FileReader))){var l=new FileReader;l.onloadend=function(){var e=l.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},l.readAsDataURL(e)}else{var o=vc.URL||vc.webkitURL,d=o.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){o.revokeObjectURL(d)}),4e4)}}); /** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function Cc(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 n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],i=0;i255?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 e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}var Sc=vc.atob.bind(vc),Nc=vc.btoa.bind(vc); /** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function Ic(e,t){var n=e[0],i=e[1],a=e[2],r=e[3];n=Bc(n,i,a,r,t[0],7,-680876936),r=Bc(r,n,i,a,t[1],12,-389564586),a=Bc(a,r,n,i,t[2],17,606105819),i=Bc(i,a,r,n,t[3],22,-1044525330),n=Bc(n,i,a,r,t[4],7,-176418897),r=Bc(r,n,i,a,t[5],12,1200080426),a=Bc(a,r,n,i,t[6],17,-1473231341),i=Bc(i,a,r,n,t[7],22,-45705983),n=Bc(n,i,a,r,t[8],7,1770035416),r=Bc(r,n,i,a,t[9],12,-1958414417),a=Bc(a,r,n,i,t[10],17,-42063),i=Bc(i,a,r,n,t[11],22,-1990404162),n=Bc(n,i,a,r,t[12],7,1804603682),r=Bc(r,n,i,a,t[13],12,-40341101),a=Bc(a,r,n,i,t[14],17,-1502002290),n=Pc(n,i=Bc(i,a,r,n,t[15],22,1236535329),a,r,t[1],5,-165796510),r=Pc(r,n,i,a,t[6],9,-1069501632),a=Pc(a,r,n,i,t[11],14,643717713),i=Pc(i,a,r,n,t[0],20,-373897302),n=Pc(n,i,a,r,t[5],5,-701558691),r=Pc(r,n,i,a,t[10],9,38016083),a=Pc(a,r,n,i,t[15],14,-660478335),i=Pc(i,a,r,n,t[4],20,-405537848),n=Pc(n,i,a,r,t[9],5,568446438),r=Pc(r,n,i,a,t[14],9,-1019803690),a=Pc(a,r,n,i,t[3],14,-187363961),i=Pc(i,a,r,n,t[8],20,1163531501),n=Pc(n,i,a,r,t[13],5,-1444681467),r=Pc(r,n,i,a,t[2],9,-51403784),a=Pc(a,r,n,i,t[7],14,1735328473),n=kc(n,i=Pc(i,a,r,n,t[12],20,-1926607734),a,r,t[5],4,-378558),r=kc(r,n,i,a,t[8],11,-2022574463),a=kc(a,r,n,i,t[11],16,1839030562),i=kc(i,a,r,n,t[14],23,-35309556),n=kc(n,i,a,r,t[1],4,-1530992060),r=kc(r,n,i,a,t[4],11,1272893353),a=kc(a,r,n,i,t[7],16,-155497632),i=kc(i,a,r,n,t[10],23,-1094730640),n=kc(n,i,a,r,t[13],4,681279174),r=kc(r,n,i,a,t[0],11,-358537222),a=kc(a,r,n,i,t[3],16,-722521979),i=kc(i,a,r,n,t[6],23,76029189),n=kc(n,i,a,r,t[9],4,-640364487),r=kc(r,n,i,a,t[12],11,-421815835),a=kc(a,r,n,i,t[15],16,530742520),n=Tc(n,i=kc(i,a,r,n,t[2],23,-995338651),a,r,t[0],6,-198630844),r=Tc(r,n,i,a,t[7],10,1126891415),a=Tc(a,r,n,i,t[14],15,-1416354905),i=Tc(i,a,r,n,t[5],21,-57434055),n=Tc(n,i,a,r,t[12],6,1700485571),r=Tc(r,n,i,a,t[3],10,-1894986606),a=Tc(a,r,n,i,t[10],15,-1051523),i=Tc(i,a,r,n,t[1],21,-2054922799),n=Tc(n,i,a,r,t[8],6,1873313359),r=Tc(r,n,i,a,t[15],10,-30611744),a=Tc(a,r,n,i,t[6],15,-1560198380),i=Tc(i,a,r,n,t[13],21,1309151649),n=Tc(n,i,a,r,t[4],6,-145523070),r=Tc(r,n,i,a,t[11],10,-1120210379),a=Tc(a,r,n,i,t[2],15,718787259),i=Tc(i,a,r,n,t[9],21,-343485551),e[0]=Rc(n,e[0]),e[1]=Rc(i,e[1]),e[2]=Rc(a,e[2]),e[3]=Rc(r,e[3])}function Fc(e,t,n,i,a,r){return t=Rc(Rc(t,e),Rc(i,r)),Rc(t<>>32-a,n)}function Bc(e,t,n,i,a,r,s){return Fc(t&n|~t&i,e,t,a,r,s)}function Pc(e,t,n,i,a,r,s){return Fc(t&i|n&~i,e,t,a,r,s)}function kc(e,t,n,i,a,r,s){return Fc(t^n^i,e,t,a,r,s)}function Tc(e,t,n,i,a,r,s){return Fc(n^(t|~i),e,t,a,r,s)}function Ec(e){var t,n=e.length,i=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Ic(i,Dc(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(Ic(i,a),t=0;t<16;t++)a[t]=0;return a[14]=8*n,Ic(i,a),i}function Dc(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}var Lc="0123456789abcdef".split("");function Uc(e){for(var t="",n=0;n<4;n++)t+=Lc[e>>8*n+4&15]+Lc[e>>8*n&15];return t}function _c(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Oc(e){return Ec(e).map(_c).join("")}var Mc="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295} /** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function Qc(e,t){var n,i,a,r;if(e!==n){for(var s=(a=e,r=1+(256/e.length|0),new Array(r+1).join(a)),l=[],o=0;o<256;o++)l[o]=o;var d=0;for(o=0;o<256;o++){var c=l[o];d=(d+c+s.charCodeAt(o))%256,l[o]=l[d],l[d]=c}n=e,i=l}else l=i;var u=t.length,p=0,A=0,h="";for(o=0;o€/\f©þdSiz";var r=(t+this.padding).substr(0,32),s=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,s),this.P=-(1+(255^a)),this.encryptionKey=Oc(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=Qc(this.encryptionKey,this.padding)}function zc(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,i=0;i126?"#"+("0"+a.toString(16)).slice(-2):e[i]}return t}function qc(e){if("object"!==p(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,i){if(i=i||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof i)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var a=Math.random().toString(35);return t[e][a]=[n,!!i],a},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var r in t[n]){var s=t[n][r];try{s[0].apply(e,i)}catch(ese){vc.console&&yc.error("jsPDF PubSub Error",ese.message,ese)}s[1]&&a.push(r)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Wc(e){if(!(this instanceof Wc))return new Wc(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function Yc(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function Kc(e,t,n,i,a){if(!(this instanceof Kc))return new Kc(e,t,n,i,a);this.type="axial"===e?2:3,this.coords=t,this.colors=n,Yc.call(this,i,a)}function Gc(e,t,n,i,a){if(!(this instanceof Gc))return new Gc(e,t,n,i,a);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,Yc.call(this,i,a)}function $c(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],r=arguments[3],s=[],l=1,o=16,d="S",c=null;"object"===p(e=e||{})&&(n=e.orientation,i=e.unit||i,a=e.format||a,r=e.compress||e.compressPdf||r,null!==(c=e.encryption||null)&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),l="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(o=e.floatPrecision),d=e.defaultPathOperation||"S"),s=e.filters||(!0===r?["FlateEncode"]:s),i=i||"mm",n=(""+(n||"P")).toLowerCase();var u=e.putOnlyUsedFonts||!1,A={},h={internal:{},__private__:{}};h.__private__.PubSub=qc;var f="1.3",m=h.__private__.getPdfVersion=function(){return f};h.__private__.setPdfVersion=function(e){f=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 g=h.__private__.getPageFormat=function(e){return v[e]};a=a||"a4";var y="compat",x="advanced",b=y;function w(){this.saveGraphicsState(),J(new Te(Ae,0,0,-Ae,0,hn()*Ae).toString()+" cm"),this.setFontSize(this.getFontSize()/Ae),d="n",b=x}function j(){this.restoreGraphicsState(),d="S",b=y}var C=h.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};h.advancedAPI=function(e){var t=b===y;return t&&w.call(this),"function"!=typeof e||(e(this),t&&j.call(this)),this},h.compatAPI=function(e){var t=b===x;return t&&j.call(this),"function"!=typeof e||(e(this),t&&w.call(this)),this},h.isAdvancedAPI=function(){return b===x};var S,N=function(e){if(b!==x)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},I=h.roundToPrecision=h.__private__.roundToPrecision=function(e,n){var i=t||n;if(isNaN(e)||isNaN(i))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(i).replace(/0+$/,"")};S=h.hpf=h.__private__.hpf="number"==typeof o?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,o)}:"smart"===o?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return I(e,16)};var F=h.f2=h.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return I(e,2)},B=h.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return I(e,3)},P=h.scale=h.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return b===y?e*Ae:b===x?e:void 0},k=function(e){return P((t=e,b===y?hn()-t:b===x?t:void 0));var t};h.__private__.setPrecision=h.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var T,E="00000000000000000000000000000000",D=h.__private__.getFileId=function(){return E},L=h.__private__.setFileId=function(e){return E=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():E.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),null!==c&&(yt=new Vc(c.userPermissions,c.userPassword,c.ownerPassword,E)),E};h.setFileId=function(e){return L(e),this},h.getFileId=function(){return D()};var U=h.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",i=Math.floor(Math.abs(t/60)),a=Math.abs(t%60),r=[n,Q(i),"'",Q(a),"'"].join("");return["D:",e.getFullYear(),Q(e.getMonth()+1),Q(e.getDate()),Q(e.getHours()),Q(e.getMinutes()),Q(e.getSeconds()),r].join("")},_=h.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,i=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),r=parseInt(e.substr(12,2),10),s=parseInt(e.substr(14,2),10);return new Date(t,n,i,a,r,s,0)},O=h.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=U(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");t=e}return T=t},M=h.__private__.getCreationDate=function(e){var t=T;return"jsDate"===e&&(t=_(T)),t};h.setCreationDate=function(e){return O(e),this},h.getCreationDate=function(e){return M(e)};var R,Q=h.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},H=h.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},V=0,z=[],q=[],W=0,Y=[],K=[],G=!1,$=q;h.__private__.setCustomOutputDestination=function(e){G=!0,$=e};var X=function(e){G||($=e)};h.__private__.resetCustomOutputDestination=function(){G=!1,$=q};var J=h.__private__.out=function(e){return e=e.toString(),W+=e.length+1,$.push(e),$},Z=h.__private__.write=function(e){return J(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},ee=h.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),i=new Uint8Array(n);t--;)i[t]=e.charCodeAt(t);return n},te=[["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 te};var ne=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(e){return ne=b===x?e/Ae:e,this};var ie,ae=h.__private__.getFontSize=h.getFontSize=function(){return b===y?ne:ne*Ae},re=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(e){return re=e,this},h.__private__.getR2L=h.getR2L=function(){return re};var se,le=h.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))ie=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))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.');ie=e}else ie=parseInt(e,10)};h.__private__.getZoomMode=function(){return ie};var oe,de=h.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');se=e};h.__private__.getPageMode=function(){return se};var ce=h.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');oe=e};h.__private__.getLayoutMode=function(){return oe},h.__private__.setDisplayMode=h.setDisplayMode=function(e,t,n){return le(e),ce(t),de(n),this};var ue={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(e){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ue[e]},h.__private__.getDocumentProperties=function(){return ue},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(e){for(var t in ue)ue.hasOwnProperty(t)&&e[t]&&(ue[t]=e[t]);return this},h.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ue[e]=t};var pe,Ae,he,fe,me,ve={},ge={},ye=[],xe={},be={},we={},je={},Ce=null,Se=0,Ne=[],Ie=new qc(h),Fe=e.hotfixes||[],Be={},Pe={},ke=[],Te=function e(t,n,i,a,r,s){if(!(this instanceof e))return new e(t,n,i,a,r,s);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(i)&&(i=0),isNaN(a)&&(a=1),isNaN(r)&&(r=0),isNaN(s)&&(s=0),this._matrix=[t,n,i,a,r,s]};Object.defineProperty(Te.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Te.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Te.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Te.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Te.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Te.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Te.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(Te.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(Te.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(Te.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(Te.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(Te.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(Te.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Te.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Te.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Te.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Te.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(S).join(e)},Te.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,i=e.shx*this.sx+e.sy*this.shx,a=e.shx*this.shy+e.sy*this.sy,r=e.tx*this.sx+e.ty*this.shx+this.tx,s=e.tx*this.shy+e.ty*this.sy+this.ty;return new Te(t,n,i,a,r,s)},Te.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,i=this.sy,a=this.tx,r=this.ty,s=Math.sqrt(e*e+t*t),l=(e/=s)*n+(t/=s)*i;n-=e*l,i-=t*l;var o=Math.sqrt(n*n+i*i);return l/=o,e*(i/=o)>16&255,i=o>>8&255,a=255&o}if(void 0===i||void 0===r&&n===i&&i===a)t="string"==typeof n?n+" "+s[0]:2===e.precision?F(n/255)+" "+s[0]:B(n/255)+" "+s[0];else if(void 0===r||"object"===p(r)){if(r&&!isNaN(r.a)&&0===r.a)return["1.","1.","1.",s[1]].join(" ");t="string"==typeof n?[n,i,a,s[1]].join(" "):2===e.precision?[F(n/255),F(i/255),F(a/255),s[1]].join(" "):[B(n/255),B(i/255),B(a/255),s[1]].join(" ")}else t="string"==typeof n?[n,i,a,r,s[2]].join(" "):2===e.precision?[F(n),F(i),F(a),F(r),s[2]].join(" "):[B(n),B(i),B(a),B(r),s[2]].join(" ");return t},qe=h.__private__.getFilters=function(){return s},We=h.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||qe(),i=e.alreadyAppliedFilters||[],a=e.addLength1||!1,r=t.length,s=e.objectId,l=function(e){return e};if(null!==c&&void 0===s)throw new Error("ObjectId must be passed to putStream for file encryption");null!==c&&(l=yt.encryptor(s,0));var o={};!0===n&&(n=["FlateEncode"]);var d=e.additionalKeyValues||[],u=(o=void 0!==$c.API.processDataByFilters?$c.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(i)?i.join(" "):i.toString());if(0!==o.data.length&&(d.push({key:"Length",value:o.data.length}),!0===a&&d.push({key:"Length1",value:r})),0!=u.length)if(u.split("/").length-1==1)d.push({key:"Filter",value:u});else{d.push({key:"Filter",value:"["+u+"]"});for(var p=0;p>"),0!==o.data.length&&(J("stream"),J(l(o.data)),J("endstream"))},Ye=h.__private__.putPage=function(e){var t=e.number,n=e.data,i=e.objId,a=e.contentsObjId;Me(i,!0),J("<>"),J("endobj");var r=n.join("\n");return b===x&&(r+="\nQ"),Me(a,!0),We({data:r,filters:qe(),objectId:a}),J("endobj"),i},Ke=h.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Se;e++)Ne[e].objId=Oe(),Ne[e].contentsObjId=Oe();for(e=1;e<=Se;e++)n.push(Ye({number:e,data:K[e],objId:Ne[e].objId,contentsObjId:Ne[e].contentsObjId,mediaBox:Ne[e].mediaBox,cropBox:Ne[e].cropBox,bleedBox:Ne[e].bleedBox,trimBox:Ne[e].trimBox,artBox:Ne[e].artBox,userUnit:Ne[e].userUnit,rootDictionaryObjId:Qe,resourceDictionaryObjId:He}));Me(Qe,!0),J("<>"),J("endobj"),Ie.publish("postPutPages")},Ge=function(e){Ie.publish("putFont",{font:e,out:J,newObject:_e,putStream:We}),!0!==e.isAlreadyPutted&&(e.objectNumber=_e(),J("<<"),J("/Type /Font"),J("/BaseFont /"+zc(e.postScriptName)),J("/Subtype /Type1"),"string"==typeof e.encoding&&J("/Encoding /"+e.encoding),J("/FirstChar 32"),J("/LastChar 255"),J(">>"),J("endobj"))},$e=function(e){e.objectNumber=_e();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[S(e.x),S(e.y),S(e.x+e.width),S(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");We({data:n,additionalKeyValues:t,objectId:e.objectNumber}),J("endobj")},Xe=function(e,t){t||(t=21);var n=_e(),i=function(e,t){var n,i=[],a=1/(t-1);for(n=0;n<1;n+=a)i.push(n);if(i.push(1),0!=e[0].offset){var r={offset:0,color:e[0].color};e.unshift(r)}if(1!=e[e.length-1].offset){var s={offset:1,color:e[e.length-1].color};e.push(s)}for(var l="",o=0,d=0;de[o+1].offset;)o++;var c=e[o].offset,u=(n-c)/(e[o+1].offset-c),p=e[o].color,A=e[o+1].color;l+=H(Math.round((1-u)*p[0]+u*A[0]).toString(16))+H(Math.round((1-u)*p[1]+u*A[1]).toString(16))+H(Math.round((1-u)*p[2]+u*A[2]).toString(16))}return l.trim()}(e.colors,t),a=[];a.push({key:"FunctionType",value:"0"}),a.push({key:"Domain",value:"[0.0 1.0]"}),a.push({key:"Size",value:"["+t+"]"}),a.push({key:"BitsPerSample",value:"8"}),a.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),a.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),We({data:i,additionalKeyValues:a,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),J("endobj"),e.objectNumber=_e(),J("<< /ShadingType "+e.type),J("/ColorSpace /DeviceRGB");var r="/Coords ["+S(parseFloat(e.coords[0]))+" "+S(parseFloat(e.coords[1]))+" ";2===e.type?r+=S(parseFloat(e.coords[2]))+" "+S(parseFloat(e.coords[3])):r+=S(parseFloat(e.coords[2]))+" "+S(parseFloat(e.coords[3]))+" "+S(parseFloat(e.coords[4]))+" "+S(parseFloat(e.coords[5])),J(r+="]"),e.matrix&&J("/Matrix ["+e.matrix.toString()+"]"),J("/Function "+n+" 0 R"),J("/Extend [true true]"),J(">>"),J("endobj")},Je=function(e,t){var n=Oe(),i=_e();t.push({resourcesOid:n,objectOid:i}),e.objectNumber=i;var a=[];a.push({key:"Type",value:"/Pattern"}),a.push({key:"PatternType",value:"1"}),a.push({key:"PaintType",value:"1"}),a.push({key:"TilingType",value:"1"}),a.push({key:"BBox",value:"["+e.boundingBox.map(S).join(" ")+"]"}),a.push({key:"XStep",value:S(e.xStep)}),a.push({key:"YStep",value:S(e.yStep)}),a.push({key:"Resources",value:n+" 0 R"}),e.matrix&&a.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),We({data:e.stream,additionalKeyValues:a,objectId:e.objectNumber}),J("endobj")},Ze=function(e){for(var t in e.objectNumber=_e(),J("<<"),e)switch(t){case"opacity":J("/ca "+F(e[t]));break;case"stroke-opacity":J("/CA "+F(e[t]))}J(">>"),J("endobj")},et=function(e){Me(e.resourcesOid,!0),J("<<"),J("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in J("/Font <<"),ve)ve.hasOwnProperty(e)&&(!1===u||!0===u&&A.hasOwnProperty(e))&&J("/"+e+" "+ve[e].objectNumber+" 0 R");J(">>")}(),function(){if(Object.keys(xe).length>0){for(var e in J("/Shading <<"),xe)xe.hasOwnProperty(e)&&xe[e]instanceof Kc&&xe[e].objectNumber>=0&&J("/"+e+" "+xe[e].objectNumber+" 0 R");Ie.publish("putShadingPatternDict"),J(">>")}}(),function(e){if(Object.keys(xe).length>0){for(var t in J("/Pattern <<"),xe)xe.hasOwnProperty(t)&&xe[t]instanceof h.TilingPattern&&xe[t].objectNumber>=0&&xe[t].objectNumber>")}}(e.objectOid),function(){if(Object.keys(we).length>0){var e;for(e in J("/ExtGState <<"),we)we.hasOwnProperty(e)&&we[e].objectNumber>=0&&J("/"+e+" "+we[e].objectNumber+" 0 R");Ie.publish("putGStateDict"),J(">>")}}(),function(){for(var e in J("/XObject <<"),Be)Be.hasOwnProperty(e)&&Be[e].objectNumber>=0&&J("/"+e+" "+Be[e].objectNumber+" 0 R");Ie.publish("putXobjectDict"),J(">>")}(),J(">>"),J("endobj")},tt=function(e){ge[e.fontName]=ge[e.fontName]||{},ge[e.fontName][e.fontStyle]=e.id},nt=function(e,t,n,i,a){var r={id:"F"+(Object.keys(ve).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:i,isStandardFont:a||!1,metadata:{}};return Ie.publish("addFont",{font:r,instance:this}),ve[r.id]=r,tt(r),r.id},it=h.__private__.pdfEscape=h.pdfEscape=function(e,t){return function(e,t){var n,i,a,r,s,l,o,d,c;if(a=(t=t||{}).sourceEncoding||"Unicode",s=t.outputEncoding,(t.autoencode||s)&&ve[pe].metadata&&ve[pe].metadata[a]&&ve[pe].metadata[a].encoding&&(r=ve[pe].metadata[a].encoding,!s&&ve[pe].encoding&&(s=ve[pe].encoding),!s&&r.codePages&&(s=r.codePages[0]),"string"==typeof s&&(s=r[s]),s)){for(o=!1,l=[],n=0,i=e.length;n>8&&(o=!0);e=l.join("")}for(n=e.length;void 0===o&&0!==n;)e.charCodeAt(n-1)>>8&&(o=!0),n--;if(!o)return e;for(l=t.noBOM?[]:[254,255],n=0,i=e.length;n>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");l.push(c),l.push(d-(c<<8))}return String.fromCharCode.apply(void 0,l)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},at=h.__private__.beginPage=function(e){K[++Se]=[],Ne[Se]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},lt(Se),X(K[R])},rt=function(e,t){var i,r,s;switch(n=t||n,"string"==typeof e&&(i=g(e.toLowerCase()),Array.isArray(i)&&(r=i[0],s=i[1])),Array.isArray(e)&&(r=e[0]*Ae,s=e[1]*Ae),isNaN(r)&&(r=a[0],s=a[1]),(r>14400||s>14400)&&(yc.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),r=Math.min(14400,r),s=Math.min(14400,s)),a=[r,s],n.substr(0,1)){case"l":s>r&&(a=[s,r]);break;case"p":r>s&&(a=[s,r])}at(a),Mt(_t),J(Yt),0!==Zt&&J(Zt+" J"),0!==en&&J(en+" j"),Ie.publish("addPage",{pageNumber:Se})},st=function(e){e>0&&e<=Se&&(K.splice(e,1),Ne.splice(e,1),Se--,R>Se&&(R=Se),this.setPage(R))},lt=function(e){e>0&&e<=Se&&(R=e)},ot=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return K.length-1},dt=function(e,t,n){var i,a=void 0;return n=n||{},e=void 0!==e?e:ve[pe].fontName,t=void 0!==t?t:ve[pe].fontStyle,i=e.toLowerCase(),void 0!==ge[i]&&void 0!==ge[i][t]?a=ge[i][t]:void 0!==ge[e]&&void 0!==ge[e][t]?a=ge[e][t]:!1===n.disableWarning&&yc.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),a||n.noFallback||null==(a=ge.times[t])&&(a=ge.times.normal),a},ct=h.__private__.putInfo=function(){var e=_e(),t=function(e){return e};for(var n in null!==c&&(t=yt.encryptor(e,0)),J("<<"),J("/Producer ("+it(t("jsPDF "+$c.version))+")"),ue)ue.hasOwnProperty(n)&&ue[n]&&J("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+it(t(ue[n]))+")");J("/CreationDate ("+it(t(T))+")"),J(">>"),J("endobj")},ut=h.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Qe;switch(_e(),J("<<"),J("/Type /Catalog"),J("/Pages "+t+" 0 R"),ie||(ie="fullwidth"),ie){case"fullwidth":J("/OpenAction [3 0 R /FitH null]");break;case"fullheight":J("/OpenAction [3 0 R /FitV null]");break;case"fullpage":J("/OpenAction [3 0 R /Fit]");break;case"original":J("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ie;"%"===n.substr(n.length-1)&&(ie=parseInt(ie)/100),"number"==typeof ie&&J("/OpenAction [3 0 R /XYZ null null "+F(ie)+"]")}switch(oe||(oe="continuous"),oe){case"continuous":J("/PageLayout /OneColumn");break;case"single":J("/PageLayout /SinglePage");break;case"two":case"twoleft":J("/PageLayout /TwoColumnLeft");break;case"tworight":J("/PageLayout /TwoColumnRight")}se&&J("/PageMode /"+se),Ie.publish("putCatalog"),J(">>"),J("endobj")},pt=h.__private__.putTrailer=function(){J("trailer"),J("<<"),J("/Size "+(V+1)),J("/Root "+V+" 0 R"),J("/Info "+(V-1)+" 0 R"),null!==c&&J("/Encrypt "+yt.oid+" 0 R"),J("/ID [ <"+E+"> <"+E+"> ]"),J(">>")},At=h.__private__.putHeader=function(){J("%PDF-"+f),J("%ºß¬à")},ht=h.__private__.putXRef=function(){var e="0000000000";J("xref"),J("0 "+(V+1)),J("0000000000 65535 f ");for(var t=1;t<=V;t++)"function"==typeof z[t]?J((e+z[t]()).slice(-10)+" 00000 n "):void 0!==z[t]?J((e+z[t]).slice(-10)+" 00000 n "):J("0000000000 00000 n ")},ft=h.__private__.buildDocument=function(){var e;V=0,W=0,q=[],z=[],Y=[],Qe=Oe(),He=Oe(),X(q),Ie.publish("buildDocument"),At(),Ke(),function(){Ie.publish("putAdditionalObjects");for(var e=0;e"),J("/O <"+yt.toHexString(yt.O)+">"),J("/P "+yt.P),J(">>"),J("endobj")),ct(),ut();var t=W;return ht(),pt(),J("startxref"),J(""+t),J("%%EOF"),X(K[R]),q.join("\n")},mt=h.__private__.getBlob=function(e){return new Blob([ee(e)],{type:"application/pdf"})},vt=h.output=h.__private__.output=((Ue=function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return ft();case"save":h.save(t.filename);break;case"arraybuffer":return ee(ft());case"blob":return mt(ft());case"bloburi":case"bloburl":if(void 0!==vc.URL&&"function"==typeof vc.URL.createObjectURL)return vc.URL&&vc.URL.createObjectURL(mt(ft()))||void 0;yc.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",i=ft();try{n=Nc(i)}catch(A){n=Nc(unescape(encodeURIComponent(i)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(vc)){var a="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",r=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(a=t.pdfObjectUrl,r="");var s='